// ==UserScript==
// @name        SaveFrom.net helper
// @namespace   http://savefrom.net/
// @version     8.8.2
// @date        2019-02-15
// @author      Magicbit, Inc
// @description Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @homepage    http://savefrom.net/user.php?helper=userjs
// @icon        http://sf-helper.com/img/icon_16.png
// @icon64      http://sf-helper.com/img/icon_64.png
// @updateURL   https://download.sf-helper.com/chrome/helper.meta.js
// @downloadURL https://download.sf-helper.com/chrome/helper.user.js
// @include     http://*
// @include     https://*
// @run-at      document-end
// @grant       GM_listValues
// @grant       GM_setValue
// @grant       GM_getValue
// @grant       GM_deleteValue
// @grant       GM_xmlhttpRequest
// @grant       GM_info
// @grant       GM_openInTab
// @grant       GM_setClipboard
// @grant       GM_registerMenuCommand
// @grant       GM_unregisterMenuCommand
// @grant       GM_notification
// @grant       GM_download
// @grant       GM.info
// @grant       GM.listValues
// @grant       GM.setValue
// @grant       GM.getValue
// @grant       GM.deleteValue
// @grant       GM.openInTab
// @grant       GM.setClipboard
// @grant       GM.xmlHttpRequest
// @connect     vk.com
// @connect     vk.me
// @connect     userapi.com
// @connect     vkuseraudio.net
// @connect     vkuservideo.net
// @connect     vk-cdn.net
// @connect     youtube.com
// @connect     youtube-nocookie.com
// @connect     ytimg.com
// @connect     googlevideo.com
// @connect     video.google.com
// @connect     google-analytics.com
// @connect     api.amplitude.com
// @connect     dailymotion.com
// @connect     vimeo.com
// @connect     vimeocdn.com
// @connect     akamaized.net
// @connect     odnoklassniki.ru
// @connect     ok.ru
// @connect     cdn-ok.com
// @connect     mycdn.me
// @connect     pladform.ru
// @connect     clipyou.ru
// @connect     soundcloud.com
// @connect     sndcdn.com
// @connect     mail.ru
// @connect     176.9.38.116
// @connect     cdninstagram.com
// @connect     fbcdn.net
// @connect     facebook.com
// @connect     sf-helper.com
// @connect     savefr.com
// @connect     travelbar.tools
// @connect     promobar.tools
// @connect     savefrom.net
// @connect     self
// @connect     *
// ==/UserScript==
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=214)}([function(e,t,n){e.exports=n(140)},function(e,t,n){e.exports=n(135)},function(e,t,n){e.exports=n(117)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var o=n(6),i=n.n(o);function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),i()(e,o.key,o)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},function(e,t,n){e.exports=n(112)},function(e,t,n){e.exports=n(130)},function(e,t,n){e.exports=n(153)},function(e,t,n){e.exports=n(132)},function(e,t,n){e.exports=n(138)},function(e,t,n){e.exports=n(154)},function(e,t,n){e.exports=n(133)},function(e,t,n){e.exports=n(151)},function(e,t,n){"use strict";n.r(t);var o=n(9),i=n.n(o),r=n(11),a=n.n(r),s=(n(1),n(14)),l=(Object(s.default)("webRequest"),!1),u=n(42),d=function(e){e=e.split(/\r?\n/);var t={};return e.forEach(function(e){var n=e.indexOf(":");if(-1!==n){var o=e.substr(0,n).trim().toLowerCase(),i=e.substr(n+1).trim();t[o]=i}}),t},c=function(){var e=this,t=null,n=function(t,n){e.readyState=n.readyState,e.status=n.status,e.statusText=n.statusText,"string"==typeof n.response&&(e.responseText=n.response),n.responseText&&(e.responseText=n.responseText),e._responseHeaders=n.responseHeaders,e.onreadystatechange&&e.onreadystatechange(),e[t]&&e[t]()},o={headers:{},responseType:"text",onload:n.bind(null,"onload"),onerror:n.bind(null,"onerror"),onabort:n.bind(null,"onabort"),ontimeout:n.bind(null,"ontimeout")};this._responseHeaders="",this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.response="",this.responseType="",this.responseURL="",this.open=function(e,t){o.method=e,o.url=t},this.overrideMimeType=function(e){o.overrideMimeType=e},this.setRequestHeader=function(e,t){"cookie"===e.toLowerCase()&&""===t&&(o.anonymous=!0),o.headers[e]=t},this.getResponseHeader=function(e){return this._responseHeaders?(e=e.toLowerCase(),this.headers||(this.headers=d(this._responseHeaders)),this.headers.hasOwnProperty(e)?this.headers[e]:null):null},this.getAllResponseHeaders=function(){return this._responseHeaders},this.abort=function(){t&&t.abort()},this.send=function(e){o.data=e,t="function"==typeof GM_xmlhttpRequest?GM_xmlhttpRequest(o):GM.xmlHttpRequest(o)},this.onabort=null,this.onerror=null,this.onload=null,this.onreadystatechange=null,this.ontimeout=null};t.default=function(e,t){var n={},o=function(e,n){o=null,m.timeoutTimer&&clearTimeout(m.timeoutTimer);var i=null;e&&(i=String(e.message||e)||"ERROR"),t&&t(i,r(n),n)},r=function(e){var t={};t.statusCode=g.status,t.statusText=g.statusText;var n=null,o=g.getAllResponseHeaders();return"string"==typeof o&&(n=d(o)),t.headers=n||{},t.body=e,t};"object"!=typeof e&&(e={url:e});var s=e.url,f=e.method||e.type||"GET";f=f.toUpperCase();var p=e.data;"string"!=typeof p&&(p=u.stringify(p)),p&&"GET"===f&&(s+=(/\?/.test(s)?"&":"?")+p,p=void 0),!1===e.cache&&-1!==["GET","HEAD"].indexOf(f)&&(s+=(/\?/.test(s)?"&":"?")+"_="+a()()),e.headers=e.headers||{},p&&(e.headers["Content-Type"]=e.contentType||e.headers["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8");var m={};m.url=s,m.method=f,p&&(m.data=p),e.json&&(m.json=!0),e.xml&&(m.xml=!0),e.timeout&&(m.timeout=e.timeout),e.mimeType&&(m.mimeType=e.mimeType),e.withCredentials&&(m.withCredentials=!0),i()(e.headers).length&&(m.headers=e.headers),m.timeout>0&&(m.timeoutTimer=setTimeout(function(){o&&o(new Error("ETIMEDOUT")),g.abort()},m.timeout));var h={0:200,1223:204},g=e.localXHR?new XMLHttpRequest:new c;g.open(m.method,m.url,!0),m.mimeType&&g.overrideMimeType(m.mimeType),m.withCredentials&&(g.withCredentials=!0);var v=[];for(var b in m.headers)l&&l.isSpecialHeader(b)&&v.push({key:b,value:m.headers[b]}),g.setRequestHeader(b,m.headers[b]);g.onload=function(){var e=h[g.status]||g.status;try{if(e>=200&&e<300||304===e){var t=g.responseText;if(m.json)t=JSON.parse(t);else if(m.xml)t=(new DOMParser).parseFromString(t,"text/xml");else if("string"!=typeof t)throw console.error("Response is not string!",t),new Error("Response is not string!");return o&&o(null,t)}throw new Error(g.status+" "+g.statusText)}catch(e){return o&&o(e)}};var y=g.onerror=function(){o&&o(new Error(g.status+" "+g.statusText))},k=null;void 0!==g.onabort?g.onabort=y:k=function(){4===g.readyState&&o&&setTimeout(function(){return y()})},k&&(g.onreadystatechange=k);var w=function(){try{g.send(m.data||null)}catch(e){setTimeout(function(){o&&o(e)})}};l&&v.length?l.requestPermission(function(e){e&&function(){for(var e,t=0;e=v[t];t++)g.setRequestHeader(l.wrapHeaderKey(e.key,e.value),e.value)}(),o&&w()}):w();return n.abort=function(){o=null,g.abort()},n}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=null;return(t=function(){}).log=t.info=t.warn=t.error=t.debug=t,t}},function(e,t){var n=e.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},function(e,t,n){var o=n(17),i=n(15),r=n(31),a=n(29),s=n(26),l=function(e,t,n){var u,d,c,f=e&l.F,p=e&l.G,m=e&l.S,h=e&l.P,g=e&l.B,v=e&l.W,b=p?i:i[t]||(i[t]={}),y=b.prototype,k=p?o:m?o[t]:(o[t]||{}).prototype;for(u in p&&(n=t),n)(d=!f&&k&&void 0!==k[u])&&s(b,u)||(c=d?k[u]:n[u],b[u]=p&&"function"!=typeof k[u]?n[u]:g&&d?r(c,o):v&&k[u]==c?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):h&&"function"==typeof c?r(Function.call,c):c,h&&((b.virtual||(b.virtual={}))[u]=c,e&l.R&&y&&!y[u]&&a(y,u,c)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var o=n(61)("wks"),i=n(48),r=n(17).Symbol,a="function"==typeof r;(e.exports=function(e){return o[e]||(o[e]=a&&r[e]||(a?r:i)("Symbol."+e))}).store=o},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o);t.default=function(e,t){t&&!i()(t)&&(t=[t]);for(var n,o=[],r={"{":0,"[":0},a={"}":"{","]":"["},s=/[{}\]\[":0-9.,-]/,l=/[\r\n\s\t]/,u="",d=0;n=e[d];d++)if('"'!==n)s.test(n)?(u+=n,"{"===n||"["===n?(r["{"]||r["["]||(u=n),r[n]++):"}"!==n&&"]"!==n||(r[a[n]]--,r["{"]||r["["]||o.push(u))):"t"===n&&"true"===e.substr(d,4)?(u+="true",d+=3):"f"===n&&"false"===e.substr(d,5)?(u+="false",d+=4):"n"===n&&"null"===e.substr(d,4)?(u+="null",d+=3):l.test(n)||(r["{"]=0,r["["]=0,u="");else{for(var c=d;-1!==c&&(c===d||"\\"===e[c-1]);)c=e.indexOf('"',c+1);-1===c&&(c=e.length-1),u+=e.substr(d,c-d+1),d=c}for(var f,p=[],m=function(e,n){if("{}"===e||"[]"===e)return"continue";try{t?t.every(function(t){return t.test(e)})&&p.push(JSON.parse(e)):p.push(JSON.parse(e))}catch(e){}},h=0;f=o[h];h++)m(f);return p}},function(e,t,n){var o=n(23);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o),r=n(24),a={create:function(e,t){var n,o;for(var i in n="object"!=typeof e?document.createElement(e):e,t){var r=t[i];(o=s[i])?o(n,r):n[i]=r}return n}},s={text:function(e,t){e.textContent=t},data:function(e,t){for(var n in t)e.dataset[n]=t[n]},class:function(e,t){if(i()(t))for(var n=0,o=t.length;n<o;n++)e.classList.add(t[n]);else e.setAttribute("class",t)},style:function(e,t){if("object"==typeof t)for(var n in t){var o=n;"float"===o&&(o="cssFloat");var r=t[n];if(i()(r))for(var a=0,s=r.length;a<s;a++)e.style[o]=r[a];else e.style[o]=r}else e.setAttribute("style",t)},append:function(e,t){i()(t)||(t=[t]);for(var n=0,o=t.length;n<o;n++){var r=t[n];(r||0===r)&&("object"!=typeof r&&(r=document.createTextNode(r)),e.appendChild(r))}},on:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,o=t.length;n<o;n++){var a=t[n];i()(a)&&r.default.on.apply(r.default,[e].concat(a))}},one:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,o=t.length;n<o;n++){var a=t[n];i()(a)&&r.default.one.apply(r.default,[e].concat(a))}},onCreate:function(e,t){t.call(e,e)},attr:function(e,t){var n,o;for(n in t)o=t[n],e.setAttribute(n,o)}};t.default=a},function(e,t,n){var o=n(20),i=n(83),r=n(57),a=Object.defineProperty;t.f=n(25)?Object.defineProperty:function(e,t,n){if(o(e),t=r(t,!0),o(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";n.r(t);var o={on:function(e,t,n,o){e.addEventListener(t,n,o)},off:function(e,t,n,o){e.removeEventListener(t,n,o)},one:function(e,t,n,i){var r=["oneFn",t,!!i].join("_"),a=n[r];a||(n[r]=a=function(e){o.off(this,t,a,i),n.apply(this,arguments)}),o.on(e,t,a,i),e=null}},i="sf-removed-"+Math.floor(1e6*Math.random()),r="sf-notify-on-remove-"+Math.floor(1e6*Math.random());o.onRemoveEventName=i,o.onRemoveClassName=r,o.onRemoveListener=function(e){o.trigger(e,i,{cancelable:!0,bubbles:!1})},o.onRemoveEvent=function(e,t){e.classList.add(r),e.addEventListener(i,t)},o.offRemoveEvent=function(e,t){e.removeEventListener(o.onRemoveEventName,t)},o.trigger=function(e,t,n){void 0===n&&(n={}),void 0===n.bubbles&&(n.bubbles=!1),void 0===n.cancelable&&(n.cancelable=!1);var o=null;o="function"==typeof MouseEvent&&-1!==["click"].indexOf(t)?new MouseEvent(t,n):new CustomEvent(t,n),e.dispatchEvent(o)},t.default=o},function(e,t,n){e.exports=!n(30)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(85),i=n(47);e.exports=function(e){return o(i(e))}},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o);t.default=function(e,t){t&&!i()(t)&&(t=[t]);var n=[];return e.replace(/<script(?:\s*|\s[^>]+[^\/])>/g,function(o,i){i+=o.length;var r=e.indexOf("<\/script>",i);if(-1!==r){var a=e.substr(i,r-i);t?t.every(function(e){return e.test(a)})&&n.push(a):n.push(a)}}),n}},function(e,t,n){var o=n(22),i=n(37);e.exports=n(25)?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(46);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(84),i=n(62);e.exports=Object.keys||function(e){return o(e,i)}},function(e,t){e.exports={}},function(e,t,n){"use strict";n.r(t);var o=n(1),i=n.n(o),r=n(43),a={maxLength:80,rtrim:/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,illegalRe:/[\/?<>\\:*|"~\u202B]/g,controlRe:/[\x00-\x1f\x80-\x9f]/g,zeroWidthJoinerRe:/\u200D/g,reservedRe:/^\.+/,trim:function(e){return e.replace(this.rtrim,"")},partsRe:/^(.+)\.([a-z0-9]{1,4})$/i,getParts:function(e){return e.match(this.partsRe)},specialChars:"nbsp,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,times,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,divide,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml".split(","),specialCharsList:[["amp","quot","lt","gt"],[38,34,60,62]],specialCharsRe:/&([^;]{2,6});/g,decodeSpecialChars:function(e){var t=this;return e.replace(this.specialCharsRe,function(e,n){var o=null;if("#"===n[0])return o=i()(n.substr(1)),isNaN(o)?"":String.fromCharCode(o);var r=t.specialCharsList[0].indexOf(n);return-1!==r?(o=t.specialCharsList[1][r],String.fromCharCode(o)):-1!==(r=t.specialChars.indexOf(n))?(o=r+160,String.fromCharCode(o)):""})},decodeHexChars:function(e){return e.replace(/(\\x[a-zA-Z0-9]{2})/g,function(e,t){var n=t;try{n=String.fromCharCode(i()("0x"+n.substr(2),16))}catch(e){}return n})},rnRe:/\r?\n/g,re1:/[*?"]/g,re2:/</g,re3:/>/g,spaceRe:/[\s\t\uFEFF\xA0]+/g,dblRe:/(\.|!|\?|_|,|-|:|\+){2,}/g,re4:/[.,:;\/\-_+=']$/g,modify:function(e){if(!e)return"";e=Object(r.default)(e);try{e=decodeURIComponent(e)}catch(t){e=unescape(e)}if(e=(e=this.decodeSpecialChars(e)).replace(this.rnRe," "),(e=(e=this.trim(e)).replace(this.zeroWidthJoinerRe,"").replace(this.re1,"").replace(this.re2,"(").replace(this.re2,"(").replace(this.re3,")").replace(this.spaceRe," ").replace(this.dblRe,"$1").replace(this.illegalRe,"_").replace(this.controlRe,"").replace(this.reservedRe,"").replace(this.re4,"")).length>this.maxLength){var t=this.getParts(e);t&&3==t.length&&(t[1]=t[1].substr(0,this.maxLength),e=t[1]+"."+t[2])}return this.trim(e)}};t.default=a},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=null;n=!(t=t||{}).params&&/\?/.test(e)?e.match(/[^?]*\?(.*)/)[1]:e;for(var o=t.sep||"&",i=n.split(o),r={},a=0,s=i.length;a<s;a++){var l=i[a].split("="),u=l[0],d=l[1]||"";if(t.noDecode)r[u]=d;else{try{u=decodeURIComponent(u)}catch(e){u=unescape(u)}try{r[u]=decodeURIComponent(d)}catch(e){r[u]=unescape(d)}}}return r}},function(e,t,n){"use strict";n.r(t);var o=n(0),i=n.n(o),r=n(13);t.default=function(e){return new i.a(function(t,n){Object(r.default)(e,function(e,o){e?n(e):t(o)})})}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var o=n(47);e.exports=function(e){return Object(o(e))}},function(e,t,n){"use strict";t.decode=t.parse=n(182),t.encode=t.stringify=n(183)},function(e,t,n){"use strict";n.r(t);var o=n(8),i=n.n(o),r=/\\(\\u[0-9a-f]{4})/g;t.default=function(e){try{return JSON.parse(i()(e).replace(r,"$1"))}catch(t){return e}}},function(e,t,n){e.exports=n(119)},function(e,t,n){"use strict";n.r(t);var o=function(e,t){var n=document.createElement("div");return o="function"==typeof n.matches?function(e,t){return e.matches(t)}:"function"==typeof n.matchesSelector?function(e,t){return e.matchesSelector(t)}:"function"==typeof n.webkitMatchesSelector?function(e,t){return e.webkitMatchesSelector(t)}:"function"==typeof n.mozMatchesSelector?function(e,t){return e.mozMatchesSelector(t)}:"function"==typeof n.oMatchesSelector?function(e,t){return e.oMatchesSelector(t)}:"function"==typeof n.msMatchesSelector?function(e,t){return e.msMatchesSelector(t)}:function(e,t){return!1},n=null,o(e,t)};t.default=function(e,t){return o(e,t)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t,n){"use strict";var o=n(120)(!0);n(87)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var o=n(22).f,i=n(26),r=n(18)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,r)&&o(e,r,{configurable:!0,value:t})}},function(e,t,n){t.f=n(18)},function(e,t,n){var o=n(40),i=n(37),r=n(27),a=n(57),s=n(26),l=n(83),u=Object.getOwnPropertyDescriptor;t.f=n(25)?u:function(e,t){if(e=r(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){e.exports=n(164)},function(e,t,n){"use strict";n.r(t);var o=null;t.default=function(e,t){if(!o){var n=document.createElement("div");"function"==typeof n.matches?o=function(e,t){return e.matches(t)}:"function"==typeof n.matchesSelector?o=function(e,t){return e.matchesSelector(t)}:"function"==typeof n.webkitMatchesSelector?o=function(e,t){return e.webkitMatchesSelector(t)}:"function"==typeof n.mozMatchesSelector&&(o=function(e,t){return e.mozMatchesSelector(t)}),n=null}return o(e,t)}},function(e,t,n){"use strict";n.r(t);t.default=function(){return"undefined"!=typeof MutationObserver?MutationObserver:"undefined"!=typeof WebKitMutationObserver?WebKitMutationObserver:"undefined"!=typeof MozMutationObserver?MozMutationObserver:n(186).default}},function(e,t,n){var o=n(23),i=n(17).document,r=o(i)&&o(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},function(e,t,n){var o=n(23);e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!o(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var o=n(59),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(61)("keys"),i=n(48);e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var o=n(15),i=n(17),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(39)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(20),i=n(122),r=n(62),a=n(60)("IE_PROTO"),s=function(){},l=function(){var e,t=n(56)("iframe"),o=r.length;for(t.style.display="none",n(89).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;o--;)delete l.prototype[r[o]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=o(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var o=n(26),i=n(41),r=n(60)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),o(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(38),i=n(18)("toStringTag"),r="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:r?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){n(126);for(var o=n(17),i=n(29),r=n(33),a=n(18)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],d=o[u],c=d&&d.prototype;c&&!c[a]&&i(c,a,u),r[u]=r.Array}},function(e,t){e.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(e,t,n){var o=n(16),i=n(15),r=n(30);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*r(function(){n(1)}),"Object",a)}},function(e,t){},function(e,t,n){"use strict";var o=n(46);function i(e){var t,n;this.promise=new e(function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o}),this.resolve=o(t),this.reject=o(n)}e.exports.f=function(e){return new i(e)}},function(e,t,n){var o=n(17),i=n(15),r=n(39),a=n(51),s=n(22).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=r?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){"use strict";n.r(t);t.default=function(){return window.top!==window.self}},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o);t.default=function(){var e=[];return i()(navigator.languages)?e=navigator.languages:navigator.language&&(e=[navigator.language]),e}},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o);t.default=function e(t,n){var o=[];i()(t)||(t=[t]),n&&!i()(n)&&(n=[n]);var r=function(e,t){var n=[];for(var o in t){var i=t[o];"cssFloat"===o&&(o="float");var r=o.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()});n.push(r+":"+i)}return n.length?[e.join(","),"{",n.join(";"),"}"].join(""):""},a=function(e,t){if(i()(t)||(t=[t]),n){var o=[],r=e.join||""===e.join?e.join:" ";n.forEach(function(e){t.forEach(function(t){o.push(e+r+t)})}),t=o}return t};return t.forEach(function(t){var i=null,s=t.media,l=t.selector,u=t.style,d=t.append;if(s&&d)o.push([s,"{",e(d,n),"}"].join(""));else if(l||u)i=a(t,l),o.push(r(i,u)),d&&o.push(e(d,i));else for(var c in t)-1===["append","join"].indexOf(c)&&(l=c,(d=(u=t[c]).append)&&delete u.append,i=a(t,l),o.push(r(i,u)),d&&o.push(e(d,i)))}),o.join("")}},function(e,t,n){"use strict";n.r(t);var o=n(14),i=Object(o.default)("extensionMarker"),r="savefrom-helper-extension",a={getItem:function(e){var t=null;try{t=window.sessionStorage.getItem(e)}catch(t){i.error("getItem error",e,t)}return t},setItem:function(e,t){try{window.sessionStorage.setItem(e,t)}catch(n){i.error("setMarker error",e,t,n)}},hash:function(e){var t=e.length,n=0,o=0;if(t>0)for(;o<t;)n=(n<<5)-n+e.charCodeAt(o++)|0;return""+n},getMarker:function(){var e=null;return"undefined"!=typeof GM_info&&(e=GM_info.script&&GM_info.script.uuid),e||"undefined"!=typeof GM&&(e=GM.info&&GM.info.script&&GM.info.script.uuid),e||(e="userscript"),this.hash(""+e)},getCurrentMarker:function(){return this.getItem(r)},setMarker:function(e){return this.setItem(r,e)},getFallbackMarker:function(){return this.getItem("".concat(r,"-fallback"))},setFallbackMarker:function(){return this.setItem("".concat(r,"-fallback"),"1")},isSingle:function(){var e=this.getMarker(),t=this.getCurrentMarker();return"1"===t&&null===this.getFallbackMarker()&&(this.setFallbackMarker(),t=null),null===t&&this.setMarker(t=e),t===e}};t.default=a},function(e,t,n){"use strict";n.r(t);t.default=function(e){return function(t){return e.some(function(e){return function(e,t){var n=e.matches.test(t);return n&&e.exclude_matches&&(n=!e.exclude_matches.test(t)),n&&e.include_globs&&(n=e.include_globs.test(t)),n&&e.exclude_globs&&(n=!e.exclude_globs.test(t)),n}(e,t)})}}},function(e,t,n){"use strict";n.r(t);var o=n(8),i=n.n(o);t.default=function(e){var t=function(e){for(var t=e[0],n=0;;){if(-1===(n=e.indexOf(t,n+1))){n=e.length;break}if("\\"!==e[n-1])break}var o="";try{o='"'===t?JSON.parse('"'+e.substr(1,n-1)+'"'):JSON.parse('"'+e.substr(1,n-1).replace(/\\'/g,"'").replace(/"/g,'\\"')+'"')}catch(e){}return{data:o,i:n}},n={"[":function(e){var t,o,r,a,s,l=[],u="";for(a=1;r=e[a];a++)if(o=n[r])t=o(e.substr(a)),u=i()(t.data),a+=t.i;else{if("]"===r)break;","===r?(u&&l.push(u),u=""):u+=r}u&&l.push(u);try{s=JSON.parse("["+l.join(",")+"]")}catch(e){}return{data:s||[],i:a}},"{":function(e){var t,o,r,a,s,l=[],u=["",""],d=0;for(a=1;r=e[a];a++)if(o=n[r])t=o(e.substr(a)),u[d]=0===d?t.data:i()(t.data),a+=t.i;else{if("}"===r)break;":"===r?d=1:","===r?(l.push(i()(u[0])+":"+u[1]),u=["",""],d=0):u[d]=(u[d]+r).trim()}u[1]&&l.push(i()(u[0])+":"+u[1]);try{s=JSON.parse("{"+l.join(",")+"}")}catch(e){}return{data:s||{},i:a}},'"':t,"'":t};return{some:function(t){return function(e,t){for(var o,i,r=0;i=e[r];r++)if(("["===i||"{"===i)&&(r+=(o=n[i](e.substr(r))).i,t(o.data)))return!0}(e,t)}}}},function(e,t,n){e.exports=n(161)},function(e,t,n){e.exports=n(162)},function(e,t,n){e.exports=n(169)},function(e,t,n){e.exports=n(174)},function(e,t,n){e.exports=!n(25)&&!n(30)(function(){return 7!=Object.defineProperty(n(56)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(26),i=n(27),r=n(115)(!1),a=n(60)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,u=[];for(n in s)n!=a&&o(s,n)&&u.push(n);for(;t.length>l;)o(s,n=t[l++])&&(~r(u,n)||u.push(n));return u}},function(e,t,n){var o=n(38);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(38);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){"use strict";var o=n(39),i=n(16),r=n(88),a=n(29),s=n(33),l=n(121),u=n(50),d=n(65),c=n(18)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,m,h,g,v){l(n,t,m);var b,y,k,w=function(e){if(!f&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",S="values"==h,A=!1,C=e.prototype,L=C[c]||C["@@iterator"]||h&&C[h],M=L||w(h),I=h?S?w("entries"):M:void 0,O="Array"==t&&C.entries||L;if(O&&(k=d(O.call(new e)))!==Object.prototype&&k.next&&(u(k,x,!0),o||"function"==typeof k[c]||a(k,c,p)),S&&L&&"values"!==L.name&&(A=!0,M=function(){return L.call(this)}),o&&!v||!f&&!A&&C[c]||a(C,c,M),s[t]=M,s[x]=p,h)if(b={values:S?M:w("values"),keys:g?M:w("keys"),entries:I},v)for(y in b)y in C||r(C,y,b[y]);else i(i.P+i.F*(f||A),t,b);return b}},function(e,t,n){e.exports=n(29)},function(e,t,n){var o=n(17).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(20);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&o(r.call(e)),t}}},function(e,t,n){var o=n(33),i=n(18)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||r[i]===e)}},function(e,t,n){var o=n(66),i=n(18)("iterator"),r=n(33);e.exports=n(15).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||r[o(e)]}},function(e,t,n){var o=n(18)("iterator"),i=!1;try{var r=[7][o]();r.return=function(){i=!0},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r=[7],a=r[o]();a.next=function(){return{done:n=!0}},r[o]=function(){return a},e(r)}catch(e){}return n}},function(e,t,n){var o=n(16),i=n(47),r=n(30),a=n(68),s="["+a+"]",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(e,t,n){var i={},s=r(function(){return!!a[e]()||"​"!="​"[e]()}),l=i[e]=s?t(c):a[e];n&&(i[n]=l),o(o.P+o.F*s,"String",i)},c=d.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(u,"")),e};e.exports=d},function(e,t,n){var o=n(20),i=n(46),r=n(18)("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||null==(n=o(a)[r])?t:i(n)}},function(e,t,n){var o,i,r,a=n(31),s=n(144),l=n(89),u=n(56),d=n(17),c=d.process,f=d.setImmediate,p=d.clearImmediate,m=d.MessageChannel,h=d.Dispatch,g=0,v={},b=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},y=function(e){b.call(e.data)};f&&p||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},o(g),g},p=function(e){delete v[e]},"process"==n(38)(c)?o=function(e){c.nextTick(a(b,e,1))}:h&&h.now?o=function(e){h.now(a(b,e,1))}:m?(r=(i=new m).port2,i.port1.onmessage=y,o=a(r.postMessage,r,1)):d.addEventListener&&"function"==typeof postMessage&&!d.importScripts?(o=function(e){d.postMessage(e+"","*")},d.addEventListener("message",y,!1)):o="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:f,clear:p}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var o=n(20),i=n(23),r=n(71);e.exports=function(e,t){if(o(e),i(t)&&t.constructor===e)return t;var n=r.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var o=n(84),i=n(62).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,i)}},function(e,t,n){"use strict";e.exports=a,e.exports.preferredLanguages=a;var o=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function i(e,t){var n=o.exec(e);if(!n)return null;var i=n[1],r=n[2],a=i;r&&(a+="-"+r);var s=1;if(n[3]){var l=n[3].split(";");for(t=0;t<l.length;t++){var u=l[t].split("=");"q"===u[0]&&(s=parseFloat(u[1]))}}return{prefix:i,suffix:r,q:s,i:t,full:a}}function r(e,t,n){var o=i(e);if(!o)return null;var r=0;if(t.full.toLowerCase()===o.full.toLowerCase())r|=4;else if(t.prefix.toLowerCase()===o.full.toLowerCase())r|=2;else if(t.full.toLowerCase()===o.prefix.toLowerCase())r|=1;else if("*"!==t.full)return null;return{i:n,o:t.i,q:t.q,s:r}}function a(e,t){var n=function(e){for(var t=e.split(","),n=0,o=0;n<t.length;n++){var r=i(t[n].trim(),n);r&&(t[o++]=r)}return t.length=o,t}(void 0===e?"*":e||"");if(!t)return n.filter(u).sort(s).map(l);var o=t.map(function(e,t){return function(e,t,n){for(var o={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=r(e,t[i],n);a&&(o.s-a.s||o.q-a.q||o.o-a.o)<0&&(o=a)}return o}(e,n,t)});return o.filter(u).sort(s).map(function(e){return t[o.indexOf(e)]})}function s(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.full}function u(e){return e.q>0}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=null;return function(){var o=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(o,i)},t)}}},function(e,t,n){"use strict";n.r(t);t.default=function(e){return e.charAt(0).toUpperCase()+e.substr(1)}},function(e,t,n){"use strict";n.r(t);var o=n(11),i=n.n(o),r=n(1),a=n.n(r);t.default=function(){return a()(i()()/1e3,10)}},function(e,t,n){"use strict";n.r(t);var o=n(77),i=Object(o.default)([{matches:/^(?:https?|file|ftp):\/\/[^\\\/]*\.ozon\.travel\/.*$|^(?:https?|file|ftp):\/\/ozon\.travel\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.onetwotrip\.com\/.*$|^(?:https?|file|ftp):\/\/onetwotrip\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.onetravel\.com\/.*$|^(?:https?|file|ftp):\/\/onetravel\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.aeroflot\.ru\/.*$|^(?:https?|file|ftp):\/\/aeroflot\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.anywayanyday\.com\/.*$|^(?:https?|file|ftp):\/\/anywayanyday\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.svyaznoy\.travel\/.*$|^(?:https?|file|ftp):\/\/svyaznoy\.travel\/.*$|^(?:https?|file|ftp):\/\/avia\.tickets\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.s7\.ru\/.*$|^(?:https?|file|ftp):\/\/s7\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.kupibilet\.ru\/.*$|^(?:https?|file|ftp):\/\/kupibilet\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.trip\.ru\/.*$|^(?:https?|file|ftp):\/\/trip\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.trip\.com\/.*$|^(?:https?|file|ftp):\/\/trip\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.ctrip\.com\/.*$|^(?:https?|file|ftp):\/\/ctrip\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.tutu\.ru\/.*$|^(?:https?|file|ftp):\/\/tutu\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.uralairlines\.ru\/.*$|^(?:https?|file|ftp):\/\/uralairlines\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.flyredwings\.com\/.*$|^(?:https?|file|ftp):\/\/flyredwings\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.airastana\.com\/.*$|^(?:https?|file|ftp):\/\/airastana\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.airmoldova\.md\/.*$|^(?:https?|file|ftp):\/\/airmoldova\.md\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.sindbad\.ru\/.*$|^(?:https?|file|ftp):\/\/sindbad\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.aviakassa\.ru\/.*$|^(?:https?|file|ftp):\/\/aviakassa\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.aviakassa\.com\/.*$|^(?:https?|file|ftp):\/\/aviakassa\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.biletix\.ru\/.*$|^(?:https?|file|ftp):\/\/biletix\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.utair\.ru\/.*$|^(?:https?|file|ftp):\/\/utair\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.orbitz\.com\/.*$|^(?:https?|file|ftp):\/\/orbitz\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.travelocity\.com\/.*$|^(?:https?|file|ftp):\/\/travelocity\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.travelocity\.ca\/.*$|^(?:https?|file|ftp):\/\/travelocity\.ca\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.expedia-cn\.com\/.*$|^(?:https?|file|ftp):\/\/expedia-cn\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.priceline\.com\/.*$|^(?:https?|file|ftp):\/\/priceline\.com\/.*$|^(?:https?|file|ftp):\/\/booking\.airasia\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.ryanair\.com\/.*$|^(?:https?|file|ftp):\/\/ryanair\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.hotels\.com\/.*$|^(?:https?|file|ftp):\/\/hotels\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.ostrovok\.ru\/.*$|^(?:https?|file|ftp):\/\/ostrovok\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.travel\.ru\/.*$|^(?:https?|file|ftp):\/\/travel\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.oktogo\.ru\/.*$|^(?:https?|file|ftp):\/\/oktogo\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.roomguru\.ru\/.*$|^(?:https?|file|ftp):\/\/roomguru\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.tripadvisor\.ru\/.*$|^(?:https?|file|ftp):\/\/tripadvisor\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.hilton\.ru\/.*$|^(?:https?|file|ftp):\/\/hilton\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.hilton\.com\/.*$|^(?:https?|file|ftp):\/\/hilton\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.marriott\.com\/.*$|^(?:https?|file|ftp):\/\/marriott\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.hostelworld\.com\/.*$|^(?:https?|file|ftp):\/\/hostelworld\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.tiket\.com\/.*$|^(?:https?|file|ftp):\/\/tiket\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.hotelsclick\.com\/.*$|^(?:https?|file|ftp):\/\/hotelsclick\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.hotelscombined\.com\/.*$|^(?:https?|file|ftp):\/\/hotelscombined\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.wizzair\.com\/.*$|^(?:https?|file|ftp):\/\/wizzair\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.emirates\.com\/.*$|^(?:https?|file|ftp):\/\/emirates\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.delta\.com\/.*$|^(?:https?|file|ftp):\/\/delta\.com\/.*$|^(?:https?|file|ftp):\/\/booking\.etihad\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.budget\.com\/.*$|^(?:https?|file|ftp):\/\/budget\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.hertz\.com\/.*$|^(?:https?|file|ftp):\/\/hertz\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.europcar\.com\/.*$|^(?:https?|file|ftp):\/\/europcar\.com\/.*$/i},{matches:/^(?:https?|file|ftp):\/\/[^\\\/]*\/.*$/i,include_globs:/^[^:]*:\/\/skyscanner\.[^\\\/]*\/.*$|^[^:]*:\/\/[^\\\/]*\.skyscanner\.[^\\\/]*\/.*$|^[^:]*:\/\/momondo\.[^\\\/]*\/.*$|^[^:]*:\/\/[^\\\/]*\.momondo\.[^\\\/]*\/.*$|^[^:]*:\/\/kayak\.[^\\\/]*\/.*$|^[^:]*:\/\/[^\\\/]*\.kayak\.[^\\\/]*\/.*$|^[^:]*:\/\/booking\.[^\\\/]*\/.*$|^[^:]*:\/\/[^\\\/]*\.booking\.[^\\\/]*\/.*$|^[^:]*:\/\/agoda\.[^\\\/]*\/.*$|^[^:]*:\/\/[^\\\/]*\.agoda\.[^\\\/]*\/.*$|^[^:]*:\/\/expedia\.[^\\\/]*\/.*$|^[^:]*:\/\/[^\\\/]*\.expedia\.[^\\\/]*\/.*$|^[^:]*:\/\/avis\.[^\\\/]*\/.*$|^[^:]*:\/\/[^\\\/]*\.avis\.[^\\\/]*\/.*$/i}]);t.default=function(e){return i(e)}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var i=(a=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),r=o.sources.map(function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"});return[n].concat(r).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},i=0;i<this.length;i++){var r=this[i][0];null!=r&&(o[r]=!0)}for(i=0;i<e.length;i++){var a=e[i];null!=a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var o,i,r={},a=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=o.apply(this,arguments)),i}),s=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var o=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,n);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}}(),l=null,u=0,d=[],c=n(195);function f(e,t){for(var n=0;n<e.length;n++){var o=e[n],i=r[o.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(b(o.parts[a],t))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(b(o.parts[a],t));r[o.id]={id:o.id,refs:1,parts:s}}}}function p(e,t){for(var n=[],o={},i=0;i<e.length;i++){var r=e[i],a=t.base?r[0]+t.base:r[0],s={css:r[1],media:r[2],sourceMap:r[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}function m(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=d[d.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(e.insertAt.before,n);n.insertBefore(t,i)}}function h(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var o=function(){0;return n.nc}();o&&(e.attrs.nonce=o)}return v(t,e.attrs),m(e,t),t}function v(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function b(e,t){var n,o,i,r;if(t.transform&&e.css){if(!(r="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=r}if(t.singleton){var a=u++;n=l||(l=g(t)),o=w.bind(null,n,a,!1),i=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),m(e,t),t}(t),o=function(e,t,n){var o=n.css,i=n.sourceMap,r=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||r)&&(o=c(o));i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([o],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),o=function(e,t){var n=t.css,o=t.media;o&&e.setAttribute("media",o);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){h(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return f(n,t),function(e){for(var o=[],i=0;i<n.length;i++){var a=n[i];(s=r[a.id]).refs--,o.push(s)}e&&f(p(e,t),t);for(i=0;i<o.length;i++){var s;if(0===(s=o[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete r[s.id]}}}};var y,k=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function w(e,t,n,o){var i=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=k(t,i);else{var r=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}},function(e,t,n){e.exports=n(125)},function(e,t,n){e.exports=n(167)},function(e,t,n){e.exports=n(171)},function(e,t,n){e.exports=n(176)},function(e,t,n){e.exports=n(204)},function(e,t,n){n(113),e.exports=n(15).Object.assign},function(e,t,n){var o=n(16);o(o.S+o.F,"Object",{assign:n(114)})},function(e,t,n){"use strict";var o=n(32),i=n(63),r=n(40),a=n(41),s=n(85),l=Object.assign;e.exports=!l||n(30)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o})?function(e,t){for(var n=a(e),l=arguments.length,u=1,d=i.f,c=r.f;l>u;)for(var f,p=s(arguments[u++]),m=d?o(p).concat(d(p)):o(p),h=m.length,g=0;h>g;)c.call(p,f=m[g++])&&(n[f]=p[f]);return n}:l},function(e,t,n){var o=n(27),i=n(58),r=n(116);e.exports=function(e){return function(t,n,a){var s,l=o(t),u=i(l.length),d=r(a,u);if(e&&n!=n){for(;u>d;)if((s=l[d++])!=s)return!0}else for(;u>d;d++)if((e||d in l)&&l[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var o=n(59),i=Math.max,r=Math.min;e.exports=function(e,t){return(e=o(e))<0?i(e+t,0):r(e,t)}},function(e,t,n){n(118),e.exports=n(15).Array.isArray},function(e,t,n){var o=n(16);o(o.S,"Array",{isArray:n(86)})},function(e,t,n){n(49),n(123),e.exports=n(15).Array.from},function(e,t,n){var o=n(59),i=n(47);e.exports=function(e){return function(t,n){var r,a,s=String(i(t)),l=o(n),u=s.length;return l<0||l>=u?e?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}}},function(e,t,n){"use strict";var o=n(64),i=n(37),r=n(50),a={};n(29)(a,n(18)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:i(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var o=n(22),i=n(20),r=n(32);e.exports=n(25)?Object.defineProperties:function(e,t){i(e);for(var n,a=r(t),s=a.length,l=0;s>l;)o.f(e,n=a[l++],t[n]);return e}},function(e,t,n){"use strict";var o=n(31),i=n(16),r=n(41),a=n(90),s=n(91),l=n(58),u=n(124),d=n(92);i(i.S+i.F*!n(93)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,c,f=r(e),p="function"==typeof this?this:Array,m=arguments.length,h=m>1?arguments[1]:void 0,g=void 0!==h,v=0,b=d(f);if(g&&(h=o(h,m>2?arguments[2]:void 0,2)),null==b||p==Array&&s(b))for(n=new p(t=l(f.length));t>v;v++)u(n,v,g?h(f[v],v):f[v]);else for(c=b.call(f),n=new p;!(i=c.next()).done;v++)u(n,v,g?a(c,h,[i.value,v],!0):i.value);return n.length=v,n}})},function(e,t,n){"use strict";var o=n(22),i=n(37);e.exports=function(e,t,n){t in e?o.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){n(67),n(49),e.exports=n(129)},function(e,t,n){"use strict";var o=n(127),i=n(128),r=n(33),a=n(27);e.exports=n(87)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var o=n(66),i=n(18)("iterator"),r=n(33);e.exports=n(15).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||r.hasOwnProperty(o(t))}},function(e,t,n){n(131);var o=n(15).Object;e.exports=function(e,t,n){return o.defineProperty(e,t,n)}},function(e,t,n){var o=n(16);o(o.S+o.F*!n(25),"Object",{defineProperty:n(22).f})},function(e,t,n){var o=n(15),i=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t,n){n(134),e.exports=n(15).Date.now},function(e,t,n){var o=n(16);o(o.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){n(136),e.exports=n(15).parseInt},function(e,t,n){var o=n(16),i=n(137);o(o.G+o.F*(parseInt!=i),{parseInt:i})},function(e,t,n){var o=n(17).parseInt,i=n(94).trim,r=n(68),a=/^[-+]?0[xX]/;e.exports=8!==o(r+"08")||22!==o(r+"0x16")?function(e,t){var n=i(String(e),3);return o(n,t>>>0||(a.test(n)?16:10))}:o},function(e,t,n){n(139),e.exports=n(15).Object.keys},function(e,t,n){var o=n(41),i=n(32);n(69)("keys",function(){return function(e){return i(o(e))}})},function(e,t,n){n(70),n(49),n(67),n(141),n(149),n(150),e.exports=n(15).Promise},function(e,t,n){"use strict";var o,i,r,a,s=n(39),l=n(17),u=n(31),d=n(66),c=n(16),f=n(23),p=n(46),m=n(142),h=n(143),g=n(95),v=n(96).set,b=n(145)(),y=n(71),k=n(97),w=n(146),x=n(98),S=l.TypeError,A=l.process,C=A&&A.versions,L=C&&C.v8||"",M=l.Promise,I="process"==d(A),O=function(){},P=i=y.f,T=!!function(){try{var e=M.resolve(1),t=(e.constructor={})[n(18)("species")]=function(e){e(O,O)};return(I||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==L.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),F=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},E=function(e,t){if(!e._n){e._n=!0;var n=e._c;b(function(){for(var o=e._v,i=1==e._s,r=0,a=function(t){var n,r,a,s=i?t.ok:t.fail,l=t.resolve,u=t.reject,d=t.domain;try{s?(i||(2==e._h&&B(e),e._h=1),!0===s?n=o:(d&&d.enter(),n=s(o),d&&(d.exit(),a=!0)),n===t.promise?u(S("Promise-chain cycle")):(r=F(n))?r.call(n,l,u):l(n)):u(o)}catch(e){d&&!a&&d.exit(),u(e)}};n.length>r;)a(n[r++]);e._c=[],e._n=!1,t&&!e._h&&N(e)})}},N=function(e){v.call(l,function(){var t,n,o,i=e._v,r=D(e);if(r&&(t=k(function(){I?A.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(o=l.console)&&o.error&&o.error("Unhandled promise rejection",i)}),e._h=I||D(e)?2:1),e._a=void 0,r&&t.e)throw t.v})},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},B=function(e){v.call(l,function(){var t;I?A.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},R=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),E(t,!0))},_=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=F(e))?b(function(){var o={_w:n,_d:!1};try{t.call(e,u(_,o,1),u(R,o,1))}catch(e){R.call(o,e)}}):(n._v=e,n._s=1,E(n,!1))}catch(e){R.call({_w:n,_d:!1},e)}}};T||(M=function(e){m(this,M,"Promise","_h"),p(e),o.call(this);try{e(u(_,this,1),u(R,this,1))}catch(e){R.call(this,e)}},(o=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(147)(M.prototype,{then:function(e,t){var n=P(g(this,M));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=I?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&E(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new o;this.promise=e,this.resolve=u(_,e,1),this.reject=u(R,e,1)},y.f=P=function(e){return e===M||e===a?new r(e):i(e)}),c(c.G+c.W+c.F*!T,{Promise:M}),n(50)(M,"Promise"),n(148)("Promise"),a=n(15).Promise,c(c.S+c.F*!T,"Promise",{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),c(c.S+c.F*(s||!T),"Promise",{resolve:function(e){return x(s&&this===a?M:this,e)}}),c(c.S+c.F*!(T&&n(93)(function(e){M.all(e).catch(O)})),"Promise",{all:function(e){var t=this,n=P(t),o=n.resolve,i=n.reject,r=k(function(){var n=[],r=0,a=1;h(e,!1,function(e){var s=r++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||o(n))},i)}),--a||o(n)});return r.e&&i(r.v),n.promise},race:function(e){var t=this,n=P(t),o=n.reject,i=k(function(){h(e,!1,function(e){t.resolve(e).then(n.resolve,o)})});return i.e&&o(i.v),n.promise}})},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(31),i=n(90),r=n(91),a=n(20),s=n(58),l=n(92),u={},d={};(t=e.exports=function(e,t,n,c,f){var p,m,h,g,v=f?function(){return e}:l(e),b=o(n,c,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(r(v)){for(p=s(e.length);p>y;y++)if((g=t?b(a(m=e[y])[0],m[1]):b(e[y]))===u||g===d)return g}else for(h=v.call(e);!(m=h.next()).done;)if((g=i(h,b,m.value,t))===u||g===d)return g}).BREAK=u,t.RETURN=d},function(e,t){e.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var o=n(17),i=n(96).set,r=o.MutationObserver||o.WebKitMutationObserver,a=o.process,s=o.Promise,l="process"==n(38)(a);e.exports=function(){var e,t,n,u=function(){var o,i;for(l&&(o=a.domain)&&o.exit();e;){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(l)n=function(){a.nextTick(u)};else if(!r||o.navigator&&o.navigator.standalone)if(s&&s.resolve){var d=s.resolve(void 0);n=function(){d.then(u)}}else n=function(){i.call(o,u)};else{var c=!0,f=document.createTextNode("");new r(u).observe(f,{characterData:!0}),n=function(){f.data=c=!c}}return function(o){var i={fn:o,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){var o=n(17).navigator;e.exports=o&&o.userAgent||""},function(e,t,n){var o=n(29);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:o(e,i,t[i]);return e}},function(e,t,n){"use strict";var o=n(17),i=n(15),r=n(22),a=n(25),s=n(18)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:o[e];a&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var o=n(16),i=n(15),r=n(17),a=n(95),s=n(98);o(o.P+o.R,"Promise",{finally:function(e){var t=a(this,i.Promise||r.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var o=n(16),i=n(71),r=n(97);o(o.S,"Promise",{try:function(e){var t=i.f(this),n=r(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){n(152);var o=n(15).Object;e.exports=function(e,t){return o.create(e,t)}},function(e,t,n){var o=n(16);o(o.S,"Object",{create:n(64)})},function(e,t,n){n(70),e.exports=n(51).f("toStringTag")},function(e,t,n){n(155),n(70),n(159),n(160),e.exports=n(15).Symbol},function(e,t,n){"use strict";var o=n(17),i=n(26),r=n(25),a=n(16),s=n(88),l=n(156).KEY,u=n(30),d=n(61),c=n(50),f=n(48),p=n(18),m=n(51),h=n(72),g=n(157),v=n(86),b=n(20),y=n(23),k=n(27),w=n(57),x=n(37),S=n(64),A=n(158),C=n(52),L=n(22),M=n(32),I=C.f,O=L.f,P=A.f,T=o.Symbol,F=o.JSON,E=F&&F.stringify,N=p("_hidden"),D=p("toPrimitive"),B={}.propertyIsEnumerable,R=d("symbol-registry"),_=d("symbols"),q=d("op-symbols"),j=Object.prototype,z="function"==typeof T,U=o.QObject,V=!U||!U.prototype||!U.prototype.findChild,H=r&&u(function(){return 7!=S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=I(j,t);o&&delete j[t],O(e,t,n),o&&e!==j&&O(j,t,o)}:O,G=function(e){var t=_[e]=S(T.prototype);return t._k=e,t},W=z&&"symbol"==typeof T.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof T},Y=function(e,t,n){return e===j&&Y(q,t,n),b(e),t=w(t,!0),b(n),i(_,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=S(n,{enumerable:x(0,!1)})):(i(e,N)||O(e,N,x(1,{})),e[N][t]=!0),H(e,t,n)):O(e,t,n)},K=function(e,t){b(e);for(var n,o=g(t=k(t)),i=0,r=o.length;r>i;)Y(e,n=o[i++],t[n]);return e},Q=function(e){var t=B.call(this,e=w(e,!0));return!(this===j&&i(_,e)&&!i(q,e))&&(!(t||!i(this,e)||!i(_,e)||i(this,N)&&this[N][e])||t)},J=function(e,t){if(e=k(e),t=w(t,!0),e!==j||!i(_,t)||i(q,t)){var n=I(e,t);return!n||!i(_,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=P(k(e)),o=[],r=0;n.length>r;)i(_,t=n[r++])||t==N||t==l||o.push(t);return o},X=function(e){for(var t,n=e===j,o=P(n?q:k(e)),r=[],a=0;o.length>a;)!i(_,t=o[a++])||n&&!i(j,t)||r.push(_[t]);return r};z||(s((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===j&&t.call(q,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),H(this,e,x(1,n))};return r&&V&&H(j,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),C.f=J,L.f=Y,n(99).f=A.f=Z,n(40).f=Q,n(63).f=X,r&&!n(39)&&s(j,"propertyIsEnumerable",Q,!0),m.f=function(e){return G(p(e))}),a(a.G+a.W+a.F*!z,{Symbol:T});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;$.length>ee;)p($[ee++]);for(var te=M(p.store),ne=0;te.length>ne;)h(te[ne++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return i(R,e+="")?R[e]:R[e]=T(e)},keyFor:function(e){if(!W(e))throw TypeError(e+" is not a symbol!");for(var t in R)if(R[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!z,"Object",{create:function(e,t){return void 0===t?S(e):K(S(e),t)},defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:X}),F&&a(a.S+a.F*(!z||u(function(){var e=T();return"[null]"!=E([e])||"{}"!=E({a:e})||"{}"!=E(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=t=o[1],(y(t)||void 0!==e)&&!W(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!W(t))return t}),o[1]=t,E.apply(F,o)}}),T.prototype[D]||n(29)(T.prototype,D,T.prototype.valueOf),c(T,"Symbol"),c(Math,"Math",!0),c(o.JSON,"JSON",!0)},function(e,t,n){var o=n(48)("meta"),i=n(23),r=n(26),a=n(22).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(30)(function(){return l(Object.preventExtensions({}))}),d=function(e){a(e,o,{value:{i:"O"+ ++s,w:{}}})},c=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,o)){if(!l(e))return"F";if(!t)return"E";d(e)}return e[o].i},getWeak:function(e,t){if(!r(e,o)){if(!l(e))return!0;if(!t)return!1;d(e)}return e[o].w},onFreeze:function(e){return u&&c.NEED&&l(e)&&!r(e,o)&&d(e),e}}},function(e,t,n){var o=n(32),i=n(63),r=n(40);e.exports=function(e){var t=o(e),n=i.f;if(n)for(var a,s=n(e),l=r.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},function(e,t,n){var o=n(27),i=n(99).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(o(e))}},function(e,t,n){n(72)("asyncIterator")},function(e,t,n){n(72)("observable")},function(e,t,n){n(49),n(67),e.exports=n(51).f("iterator")},function(e,t,n){n(163),e.exports=n(15).Object.getPrototypeOf},function(e,t,n){var o=n(41),i=n(65);n(69)("getPrototypeOf",function(){return function(e){return i(o(e))}})},function(e,t,n){n(165),e.exports=n(15).Object.setPrototypeOf},function(e,t,n){var o=n(16);o(o.S,"Object",{setPrototypeOf:n(166).set})},function(e,t,n){var o=n(23),i=n(20),r=function(e,t){if(i(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=n(31)(Function.call,n(52).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return r(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:r}},function(e,t,n){n(168);var o=n(15).Object;e.exports=function(e,t){return o.getOwnPropertyDescriptor(e,t)}},function(e,t,n){var o=n(27),i=n(52).f;n(69)("getOwnPropertyDescriptor",function(){return function(e,t){return i(o(e),t)}})},function(e,t,n){n(170),e.exports=n(15).Reflect.get},function(e,t,n){var o=n(52),i=n(65),r=n(26),a=n(16),s=n(23),l=n(20);a(a.S,"Reflect",{get:function e(t,n){var a,u,d=arguments.length<3?t:arguments[2];return l(t)===d?t[n]:(a=o.f(t,n))?r(a,"value")?a.value:void 0!==a.get?a.get.call(d):void 0:s(u=i(t))?e(u,n,d):void 0}})},function(e,t,n){n(172),e.exports=n(15).Object.entries},function(e,t,n){var o=n(16),i=n(173)(!0);o(o.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){var o=n(32),i=n(27),r=n(40).f;e.exports=function(e){return function(t){for(var n,a=i(t),s=o(a),l=s.length,u=0,d=[];l>u;)r.call(a,n=s[u++])&&d.push(e?[n,a[n]]:a[n]);return d}}},function(e,t,n){var o=function(){return this||"object"==typeof self&&self}()||Function("return this")(),i=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,r=i&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,e.exports=n(175),i)o.regeneratorRuntime=r;else try{delete o.regeneratorRuntime}catch(e){o.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";var n,o=Object.prototype,i=o.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag",u="object"==typeof e,d=t.regeneratorRuntime;if(d)u&&(e.exports=d);else{(d=t.regeneratorRuntime=u?e.exports:{}).wrap=k;var c="suspendedStart",f="suspendedYield",p="executing",m="completed",h={},g={};g[a]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(T([])));b&&b!==o&&i.call(b,a)&&(g=b);var y=A.prototype=x.prototype=Object.create(g);S.prototype=y.constructor=A,A.constructor=S,A[l]=S.displayName="GeneratorFunction",d.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},d.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(y),e},d.awrap=function(e){return{__await:e}},C(L.prototype),L.prototype[s]=function(){return this},d.AsyncIterator=L,d.async=function(e,t,n,o){var i=new L(k(e,t,n,o));return d.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},C(y),y[l]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},d.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},d.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,i){return s.type="throw",s.arg=e,t.next=o,i&&(t.method="next",t.arg=n),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var i=o.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:T(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=n),h}}}function k(e,t,n,o){var i=t&&t.prototype instanceof x?t:x,r=Object.create(i.prototype),a=new P(o||[]);return r._invoke=function(e,t,n){var o=c;return function(i,r){if(o===p)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw r;return F()}for(n.method=i,n.arg=r;;){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===c)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var l=w(e,t,n);if("normal"===l.type){if(o=n.done?m:f,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}(e,n,a),r}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function x(){}function S(){}function A(){}function C(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function L(e){var t;this._invoke=function(n,o){function r(){return new Promise(function(t,r){!function t(n,o,r,a){var s=w(e[n],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,r,a)},function(e){t("throw",e,r,a)}):Promise.resolve(u).then(function(e){l.value=e,r(l)},function(e){return t("throw",e,r,a)})}a(s.arg)}(n,o,t,r)})}return t=t?t.then(r,r):r()}}function M(e,t){var o=e.iterator[t.method];if(o===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,M(e,t),"throw"===t.method))return h;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=w(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,h):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return r.next=r}}return{next:F}}function F(){return{value:n,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(e,t,n){n(177),e.exports=n(15).parseFloat},function(e,t,n){var o=n(16),i=n(178);o(o.G+o.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){var o=n(17).parseFloat,i=n(94).trim;e.exports=1/o(n(68)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=o(t);return 0===n&&"-"==t.charAt(0)?-0:n}:o},function(e,t,n){"use strict";n.r(t);t.default=function(e){return"data-"+e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}},function(e,t,n){"use strict";n.r(t);var o=n(45);t.default=function(e,t){if(!e||1!==e.nodeType)return null;if(Object(o.default)(e,t))return e;if(!Object(o.default)(e,t+" "+e.tagName))return null;for(var n=e=e.parentNode;n;n=n.parentNode){if(1!==n.nodeType)return null;if(Object(o.default)(n,t))return n}return null}},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o);t.default=function(e,t){i()(t)||(t=[t]);for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;for(var o,r=0;o=t[r];r++)if(n.classList.contains(o))return n}return null}},function(e,t,n){"use strict";function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,r){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;r&&"number"==typeof r.maxKeys&&(l=r.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var d=0;d<u;++d){var c,f,p,m,h=e[d].replace(s,"%20"),g=h.indexOf(n);g>=0?(c=h.substr(0,g),f=h.substr(g+1)):(c=h,f=""),p=decodeURIComponent(c),m=decodeURIComponent(f),o(a,p)?i(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var o=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(a(e),function(a){var s=encodeURIComponent(o(a))+n;return i(e[a])?r(e[a],function(e){return s+encodeURIComponent(o(e))}).join(t):s+encodeURIComponent(o(e[a]))}).join(t):s?encodeURIComponent(o(s))+n+encodeURIComponent(o(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o),r=n(21);t.default=function e(t,n){if(n=n||{},"string"==typeof t){if("["!==t[0])return document.createTextNode(t);try{t=t.replace(/"/g,"\\u0022").replace(/\\'/g,"\\u0027").replace(/'/g,'"').replace(/([{,])\s*([a-zA-Z0-9]+):/g,'$1"$2":'),t=JSON.parse(t)}catch(e){return document.createTextNode(t)}}if(!i()(t))return document.createTextNode(t);for(var o=n.fragment||document.createDocumentFragment(),a=0,s=t.length;a<s;a++){var l=t[a];if("object"==typeof l)for(var u in l){var d,c=l[u],f=c.append;delete c.append,o.appendChild(d=r.default.create(u,c)),void 0!==f&&e(f,{fragment:d})}else o.appendChild(document.createTextNode(l))}return o}},function(e,t,n){"use strict";n.r(t);var o=/^[^{]+\{\s*\[native \w/,i=function(e,t){return(i=o.test(document.compareDocumentPosition)||o.test(document.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1}).apply(this,arguments)};t.default=function(e,t){return i(e,t)}},function(e,t,n){"use strict";n.r(t);var o,i,r=n(11),a=n.n(r),s=n(6),l=void 0!==l?l:void 0;void 0===l&&(o=n.n(s).a,i=a()()%1e9,(l=function(){this.name="__st"+(1e9*Math.random()>>>0)+i+++"__"}).prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:o(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!(!t||t[0]!==e||(t[0]=t[1]=void 0,0))},has:function(e){var t=e[this.name];return!!t&&t[0]===e}});var u=void 0!==u?u:void 0;!function(){if(void 0===u){var e,t=new l;if("undefined"!=typeof navigator&&/Trident|Edge/.test(navigator.userAgent))e=setTimeout;else if(window.setImmediate)e=window.setImmediate;else{var n=[],o=String(Math.random());window.addEventListener("message",function(e){if(e.data===o){var t=n;n=[],t.forEach(function(e){e()})}}),e=function(e){n.push(e),window.postMessage(o,"*")}}var i,r,a=!1,s=[],d=0;(u=function(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++d}).prototype={observe:function(e,n){var o;if(o=e,e=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(o)||o,!n.childList&&!n.attributes&&!n.characterData||n.attributeOldValue&&!n.attributes||n.attributeFilter&&n.attributeFilter.length&&!n.attributes||n.characterDataOldValue&&!n.characterData)throw new SyntaxError;var i,r=t.get(e);r||t.set(e,r=[]);for(var a=0;a<r.length;a++)if(r[a].observer===this){(i=r[a]).removeListeners(),i.options=n;break}i||(i=new v(this,e,n),r.push(i),this.nodes_.push(e)),i.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var n=t.get(e),o=0;o<n.length;o++){var i=n[o];if(i.observer===this){i.removeListeners(),n.splice(o,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},v.prototype={enqueue:function(t){var n,o=this.observer.records_,i=o.length;if(o.length>0){var r=g(o[i-1],t);if(r)return void(o[i-1]=r)}else n=this.observer,s.push(n),a||(a=!0,e(c));o[i]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var n=t.get(e);n||t.set(e,n=[]),n.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var n=t.get(e),o=0;o<n.length;o++)if(n[o]===this){n.splice(o,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,o=e.target;(s=new m("attributes",o)).attributeName=t,s.attributeNamespace=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;f(o,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(n)))return e.attributeOldValue?h(a):s});break;case"DOMCharacterDataModified":var s=m("characterData",o=e.target);a=e.prevValue;f(o,function(e){if(e.characterData)return e.characterDataOldValue?h(a):s});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var l,u,d=e.target;"DOMNodeInserted"===e.type?(l=[d],u=[]):(l=[],u=[d]);var c=d.previousSibling,p=d.nextSibling;(s=m("childList",e.target.parentNode)).addedNodes=l,s.removedNodes=u,s.previousSibling=c,s.nextSibling=p,f(e.relatedNode,function(e){if(e.childList)return s})}i=r=void 0}}}function c(){a=!1;var e=s;s=[],e.sort(function(e,t){return e.uid_-t.uid_});var n=!1;e.forEach(function(e){var o=e.takeRecords();!function(e){e.nodes_.forEach(function(n){var o=t.get(n);o&&o.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}(e),o.length&&(e.callback_(o,e),n=!0)}),n&&c()}function f(e,n){for(var o=e;o;o=o.parentNode){var i=t.get(o);if(i)for(var r=0;r<i.length;r++){var a=i[r],s=a.options;if(o===e||s.subtree){var l=n(s);l&&a.enqueue(l)}}}}function p(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function m(e,t){return i=new p(e,t)}function h(e){return r||((n=new p((t=i).type,t.target)).addedNodes=t.addedNodes.slice(),n.removedNodes=t.removedNodes.slice(),n.previousSibling=t.previousSibling,n.nextSibling=t.nextSibling,n.attributeName=t.attributeName,n.attributeNamespace=t.attributeNamespace,n.oldValue=t.oldValue,(r=n).oldValue=e,r);var t,n}function g(e,t){return e===t?e:r&&((n=e)===r||n===i)?r:null;var n}function v(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}}(),t.default=u},function(e,t,n){"use strict";n.r(t),n.d(t,"showTooltip",function(){return c}),n.d(t,"hideTooltip",function(){return f});var o=n(5),i=n.n(o),r=n(3),a=n(4),s=n(21),l=n(24),u=n(75),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(r.a)(this,e),this.target=t,this.options=i()({content:"",defaultWidth:0,defaultHeight:0},n),this.handleMouseleave=this.handleMouseleave.bind(this),this.isVisible=!1,this.timeout=null}return Object(a.a)(e,[{key:"handleMouseleave",value:function(){this.hide()}},{key:"show",value:function(){if(this.isVisible)this.startHideTimeout();else{this.node||(this.node=this.createTooltip()),this.isVisible=!0;var e=document.body;e&&(this.node.classList.add("hidden"),e.appendChild(this.node),this.setPos(),this.node.classList.remove("hidden")),this.target.addEventListener("mouseleave",this.handleMouseleave),this.startHideTimeout()}}},{key:"hide",value:function(){var e=this;this.isVisible&&(this.isVisible=!1,this.stopHideTimeout(),this.node.classList.add("hidden"),this.target.removeEventListener("mouseleave",this.handleMouseleave),setTimeout(function(){if(!e.isVisible&&e.node){var t=e.node.parentNode;t&&t.removeChild(e.node),e.node=null}},250))}},{key:"startHideTimeout",value:function(){var e=this;this.stopHideTimeout(),this.timeout=setTimeout(function(){e.hide()},3e3)}},{key:"stopHideTimeout",value:function(){clearTimeout(this.timeout)}},{key:"createTooltip",value:function(){return s.default.create("div",{class:["sf-paper-tooltip-ctr"],append:[s.default.create("div",{class:"sf-paper-tooltip",text:this.options.content}),s.default.create("style",{text:Object(u.default)({".sf-paper-tooltip-ctr":{display:"block",outline:"none",userSelect:"none",cursor:"default",position:"absolute",zIndex:1e4,transition:"opacity 0.25s",maxWidth:"400px"},".sf-paper-tooltip-ctr.hidden":{opacity:0},".sf-paper-tooltip":{display:"block",outline:"none",fontFamily:"Arial",fontSize:"12px",backgroundColor:"#616161",opacity:.9,color:"white",padding:"8px",borderRadius:"2px",margin:"8px"}})})]})}},{key:"setPos",value:function(){var e=window,t=e.pageXOffset,n=e.pageYOffset,o=e.innerWidth,i=e.innerHeight,r=i+n,a=o+t,s=this.node.getBoundingClientRect();s.width||s.height||(s.width=this.options.defaultWidth,s.height=this.options.defaultHeight);var l=this.target.getBoundingClientRect(),u={},d=["top","bottom","left","right"].map(function(e){var d=null,c=null,f=0;if(-1!==["left","right"].indexOf(e)){var p=(l.height-s.height)/2;if(d=Math.round(l.top+n+p),s.height<i){var m=d+s.height;m>r&&(d-=m-r,f=1),d<0&&(d=0,f=1)}}else"top"===e?d=Math.round(l.top+n)-s.height:"bottom"===e&&(d=Math.round(l.top+n)+l.height);if(-1!==["top","bottom"].indexOf(e)){var h=(l.width-s.width)/2;if(c=Math.round(l.left+t+h),s.width<o){var g=c+s.width;g>a&&(c-=g-a,f=1),c<0&&(c=0,f=1)}}else"left"===e?c=Math.round(l.left+t-s.width):"right"===e&&(c=Math.round(l.left+t+l.width));var v=c+s.width,b=d+s.height,y=s.width,k=s.height,w=y;d<0&&(k-=-1*d),b>r&&(k-=b-r),c<0&&(w-=-1*c),v>a&&(w-=v-a);var x=100/(s.width*s.height)*(w*k)-f;return u[e]={top:d,left:c,quality:x}});d.sort(function(e,t){var n=e.quality,o=t.quality;return n===o?0:n>o?-1:1});var c=d[0];this.node.style.top=c.top+"px",this.node.style.left=c.left+"px"}}]),e}(),c=function(e,t){if(!(e.dataset.sfTitleTooltip>0)){e.dataset.sfTitleTooltip=1;var n=new d(e,t);e.addEventListener("show_tooltip",function(){n.show()}),e.addEventListener("hide_tooltip",function(){n.hide()})}l.default.trigger(e,"show_tooltip")},f=function(e){e.dataset.sfTitleTooltip>0&&l.default.trigger(e,"hide_tooltip")}},function(e,t,n){"use strict";n.r(t);t.default=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++){var o=arguments[t];for(var i in o)void 0!==o[i]&&(delete e[i],e[i]=o[i])}return e}},function(e,t,n){"use strict";n.r(t);t.default={animation:"none 0s ease 0s 1 normal none running",backfaceVisibility:"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor",borderCollapse:"separate",borderImage:"none",borderRadius:"0",borderSpacing:"0",bottom:"auto",boxShadow:"none",boxSizing:"content-box",captionSide:"top",clear:"none",clip:"auto",color:"inherit",columns:"auto",columnCount:"auto",columnFill:"balance",columnGap:"normal",columnRule:"medium none currentColor",columnSpan:"1",columnWidth:"auto",content:"normal",counterIncrement:"none",counterReset:"none",cursor:"auto",direction:"ltr",display:"inline",emptyCells:"show",float:"none",font:"normal normal normal normal medium/normal inherit",height:"auto",hyphens:"none",left:"auto",letterSpacing:"normal",listStyle:"disc outside none",margin:"0",maxHeight:"none",maxWidth:"none",minHeight:"0",minWidth:"0",opacity:"1",orphans:"0",outline:"medium none invert",overflow:"visible",overflowX:"visible",overflowY:"visible",padding:"0",pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",perspective:"none",perspectiveOrigin:"50% 50%",position:"static",right:"auto",tabSize:"8",tableLayout:"auto",textAlign:"inherit",textAlignLast:"auto",textDecoration:"none solid currentColor",textIndent:"0",textShadow:"none",textTransform:"none",top:"auto",transform:"none",transformOrigin:"50% 50% 0",transformStyle:"flat",transition:"none 0s ease 0s",unicodeBidi:"normal",verticalAlign:"baseline",visibility:"visible",whiteSpace:"normal",widows:"0",width:"auto",wordSpacing:"normal",zIndex:"auto",all:"initial"}},function(e,t,n){"use strict";n.r(t);var o=n(0),i=n.n(o);t.default=function(e){return[function(t){return i.a.resolve(e()).then(function(){return t})},function(t){return i.a.resolve(e()).then(function(){throw t})}]}},function(e,t,n){var o;e.exports=(o=n(192),function(e){var t=o,n=t.lib,i=n.WordArray,r=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var o=t+n,i=e[o];e[o]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],m=e[t+3],h=e[t+4],g=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],k=e[t+9],w=e[t+10],x=e[t+11],S=e[t+12],A=e[t+13],C=e[t+14],L=e[t+15],M=r[0],I=r[1],O=r[2],P=r[3];M=u(M,I,O,P,a,7,s[0]),P=u(P,M,I,O,l,12,s[1]),O=u(O,P,M,I,p,17,s[2]),I=u(I,O,P,M,m,22,s[3]),M=u(M,I,O,P,h,7,s[4]),P=u(P,M,I,O,g,12,s[5]),O=u(O,P,M,I,v,17,s[6]),I=u(I,O,P,M,b,22,s[7]),M=u(M,I,O,P,y,7,s[8]),P=u(P,M,I,O,k,12,s[9]),O=u(O,P,M,I,w,17,s[10]),I=u(I,O,P,M,x,22,s[11]),M=u(M,I,O,P,S,7,s[12]),P=u(P,M,I,O,A,12,s[13]),O=u(O,P,M,I,C,17,s[14]),M=d(M,I=u(I,O,P,M,L,22,s[15]),O,P,l,5,s[16]),P=d(P,M,I,O,v,9,s[17]),O=d(O,P,M,I,x,14,s[18]),I=d(I,O,P,M,a,20,s[19]),M=d(M,I,O,P,g,5,s[20]),P=d(P,M,I,O,w,9,s[21]),O=d(O,P,M,I,L,14,s[22]),I=d(I,O,P,M,h,20,s[23]),M=d(M,I,O,P,k,5,s[24]),P=d(P,M,I,O,C,9,s[25]),O=d(O,P,M,I,m,14,s[26]),I=d(I,O,P,M,y,20,s[27]),M=d(M,I,O,P,A,5,s[28]),P=d(P,M,I,O,p,9,s[29]),O=d(O,P,M,I,b,14,s[30]),M=c(M,I=d(I,O,P,M,S,20,s[31]),O,P,g,4,s[32]),P=c(P,M,I,O,y,11,s[33]),O=c(O,P,M,I,x,16,s[34]),I=c(I,O,P,M,C,23,s[35]),M=c(M,I,O,P,l,4,s[36]),P=c(P,M,I,O,h,11,s[37]),O=c(O,P,M,I,b,16,s[38]),I=c(I,O,P,M,w,23,s[39]),M=c(M,I,O,P,A,4,s[40]),P=c(P,M,I,O,a,11,s[41]),O=c(O,P,M,I,m,16,s[42]),I=c(I,O,P,M,v,23,s[43]),M=c(M,I,O,P,k,4,s[44]),P=c(P,M,I,O,S,11,s[45]),O=c(O,P,M,I,L,16,s[46]),M=f(M,I=c(I,O,P,M,p,23,s[47]),O,P,a,6,s[48]),P=f(P,M,I,O,b,10,s[49]),O=f(O,P,M,I,C,15,s[50]),I=f(I,O,P,M,g,21,s[51]),M=f(M,I,O,P,S,6,s[52]),P=f(P,M,I,O,m,10,s[53]),O=f(O,P,M,I,w,15,s[54]),I=f(I,O,P,M,l,21,s[55]),M=f(M,I,O,P,y,6,s[56]),P=f(P,M,I,O,L,10,s[57]),O=f(O,P,M,I,v,15,s[58]),I=f(I,O,P,M,A,21,s[59]),M=f(M,I,O,P,h,6,s[60]),P=f(P,M,I,O,x,10,s[61]),O=f(O,P,M,I,p,15,s[62]),I=f(I,O,P,M,k,21,s[63]),r[0]=r[0]+M|0,r[1]=r[1]+I|0,r[2]=r[2]+O|0,r[3]=r[3]+P|0},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var r=e.floor(o/4294967296),a=o;n[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var d=l[u];l[u]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return s},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,o,i,r,a){var s=e+(t&n|~t&o)+i+a;return(s<<r|s>>>32-r)+t}function d(e,t,n,o,i,r,a){var s=e+(t&o|n&~o)+i+a;return(s<<r|s>>>32-r)+t}function c(e,t,n,o,i,r,a){var s=e+(t^n^o)+i+a;return(s<<r|s>>>32-r)+t}function f(e,t,n,o,i,r,a){var s=e+(n^(t|~o))+i+a;return(s<<r|s>>>32-r)+t}t.MD5=r._createHelper(l),t.HmacMD5=r._createHmacHelper(l)}(Math),o.MD5)},function(e,t,n){var o;e.exports=(o=o||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},i=o.lib={},r=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,o=this.sigBytes,i=e.sigBytes;if(this.clamp(),o%4)for(var r=0;r<i;r++){var a=n[r>>>2]>>>24-r%4*8&255;t[o+r>>>2]|=a<<24-(o+r)%4*8}else for(var r=0;r<i;r+=4)t[o+r>>>2]=n[r>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,o=[],i=function(t){var t=t,n=987654321,o=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&o)<<16)+(t=18e3*(65535&t)+(t>>16)&o)&o;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},r=0;r<t;r+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),o.push(4294967296*s()|0)}return new a.init(o,t)}}),s=o.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;o.push((r>>>4).toString(16)),o.push((15&r).toString(16))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o+=2)n[o>>>3]|=parseInt(e.substr(o,2),16)<<24-o%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,o=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;o.push(String.fromCharCode(r))}return o.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>2]|=(255&e.charCodeAt(o))<<24-o%4*8;return new a.init(n,t)}},d=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},c=i.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,o=n.words,i=n.sigBytes,r=this.blockSize,s=4*r,l=i/s,u=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*r,d=e.min(4*u,i);if(u){for(var c=0;c<u;c+=r)this._doProcessBlock(o,c);var f=o.splice(0,u);n.sigBytes-=d}return new a.init(f,d)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(i.Hasher=c.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}}),o.algo={});return o}(Math),o)},function(e,t,n){"use strict";n.r(t);var o=n(3),i=n(4),r=n(9),a=n.n(r),s=n(55),l=n(54),u={addedNodes:"added",removedNodes:"removed"},d=a()(u),c=function(){function e(t){Object(o.a)(this,e),this.target=t.target||document.body,this.options=t.options||{childList:!0,subtree:!0},this.filterTarget=t.filterTarget||[],this.queries=t.queries,this.observer=null,this.init()}return Object(i.a)(e,[{key:"init",value:function(){var e=this,t=Object(s.default)();this.observer=new t(function(t){for(var n=null;n=t.shift();)e._isAvailableTarget(n.target)&&e._match(n)}),this.start()}},{key:"start",value:function(){this._disconnect(),this._connect(),this.trigger(this.target)}},{key:"trigger",value:function(e){this._match({addedNodes:[e],removedNodes:[]})}},{key:"stop",value:function(){this._disconnect()}},{key:"_match",value:function(e){for(var t,n=this.queries,o=0;t=n[o];o++){for(var i,r={target:e.target,added:[],removed:[]},a=0;i=d[a];a++){var s=u[i];if(void 0===t.is||t.is===s)for(var c,f=r[s],p=e[i],m=0;c=p[m];m++)1===c.nodeType&&(Object(l.default)(c,t.css)?f.push(c):f.push.apply(f,c.querySelectorAll(t.css)))}(r.added.length||r.removed.length)&&t.callback(r)}}},{key:"_isAvailableTarget",value:function(e){for(var t,n=this.filterTarget,o=0;t=n[o];o++)if(Object(l.default)(e,t.css))return!1;return!0}},{key:"_connect",value:function(){this.observer.observe(this.target,this.options)}},{key:"_disconnect",value:function(){this.observer.disconnect()}}],[{key:"isAvailable",value:function(){return!!Object(s.default)()}}]),e}();t.default=c},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){for(var n;-1!==(n=e.indexOf("."));){if(-1!==t.indexOf(e))return!0;e=e.substr(n+1)}return!1}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,o=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,r=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(r)?e:(i=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:o+r.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e?function e(t,n){var o;o=Array.isArray(t)?[]:{};n.push(t);Object.keys(t).forEach(function(i){var r=t[i];"function"!=typeof r&&(r&&"object"==typeof r?-1!==n.indexOf(t[i])?o[i]="[Circular]":o[i]=e(t[i],n.slice(0)):o[i]=r)});"string"==typeof t.name&&(o.name=t.name);"string"==typeof t.message&&(o.message=t.message);"string"==typeof t.stack&&(o.stack=t.stack);return o}(e,[]):"function"==typeof e?"[Function: "+(e.name||"anonymous")+"]":e}},function(e,t,n){var o=n(198).default;e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function i(e){return e&&"object"===(void 0===e?"undefined":o(e))&&"string"==typeof e.name&&"string"==typeof e.message}t.default=function(e){return i(e)?Object.assign(new Error,{stack:void 0},e):e},t.isSerializedError=i},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function r(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var d=new Error('Uncaught, unspecified "error" event. ('+t+")");throw d.context=t,d}if(r(n=this._events[e]))return!1;if(o(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(u=n.slice()).length,l=0;l<a;l++)u[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!o(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=r(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!o(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,r,a,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,r=-1,n===t||o(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(o(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(o(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";n.r(t);t.default=function(){return"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"}},function(e,t,n){"use strict";n.r(t);t.default={youtube:"moduleYoutube",dailymotion:"moduleDailymotion",vimeo:"moduleVimeo",facebook:"moduleFacebook",soundcloud:"moduleSoundcloud",vk:"moduleVkontakte",odnoklassniki:"moduleOdnoklassniki",mailru:"moduleMailru",instagram:"moduleInstagram",rutube:"moduleRutube"}},function(e,t,n){"use strict";n.r(t);var o=n(8),i=n.n(o),r=n(36),a=n(14),s=n(42),l=Object(a.default)("amplitude");t.default=function(e){return l.debug("send",e),Object(r.default)({url:"https://api.amplitude.com/httpapi",method:"POST",contentType:"application/x-www-form-urlencoded",data:s.stringify({api_key:"bc3c8ed7b305f692ec048b0425b002df",event:i()(e)})}).catch(function(e){l.error("amplitude error",e)})}},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o),r=n(0),a=n.n(r),s=n(28),l=n(19),u=n(13),d=n(14),c=Object(d.default)("vimeo_com_embed"),f={getVimeoLinks:function(e,t){return f._getVimeoLinks(e.extVideoId,e.url,function(n,o,i){var r={action:e.action,extVideoId:e.extVideoId,links:n,title:o,thumb:i};t(r)}),!0},_getVimeoLinks:function(e,t,n){f.getVimeoNoEmbedLinks(e,t,function(t,o,i){if(t)return n(t,o,i);f.getVimeoEmbedLinks(e,n)})},getVimeoEmbedLinks:function(e,t){var n=function(){return t(null,"","")};if(!e)return n();Object(u.default)({url:"https://player.vimeo.com/video/"+e},function(e,o,i){if(e||!i)return n();var r=Object(l.default)(i,[/"files":/]),a=null;return r.some(function(e){if(e.video&&e.request&&e.request.files)return a=e,!0}),(i=f.getLinksFromConfig(a))?t(i.links,i.title,i.thumb):n()})},getVimeoConfig:function(e,t){var n=function(){return t(null,"","")};Object(u.default)({url:e},function(e,o,i){return e||!i?n():(i=f.getVimeoDataFromConfig(i))?t(i.links,i.title,i.thumb):n()})},getVimeoLinksFromConfigAction:function(e,t){var n=this;return new a.a(function(t,o){var i=n.getLinksFromConfig(e.config);i?t(i):o(new Error("Get links from config error"))}).then(t,function(e){c.error("getVimeoLinksFromConfigAction error",e),t(null)}),!0},getClipPageConfig:function(e,t){var n=null;return Object(s.default)(e,/['"]config_url['"]\s*:\s*/).some(function(e){return Object(l.default)(e,/['"]config_url['"]\s*:\s*/).some(function(e){if(e.player&&(n=e.player.config_url))return!0})}),n?f.getVimeoConfig(n,t):t(null,"","")},getVimeoNoEmbedLinks:function(e,t,n){if(e&&t){var o=/vimeo\.com\/[^\/]+\/review\/\d+/i.test(t),i=/vimeo\.com\/\d+\/\w+/i.test(t);o||i||(t=null)}Object(u.default)({url:t||"https://vimeo.com/"+e},function(e,t,o){if(e||!o)return n(null,"","");var i=o.match(/data-config-url=["']([^\s"'<>]+)/i);return(i=i&&i[1].replace(/&amp;/gi,"&"))?f.getVimeoConfig(i,n):f.getClipPageConfig(o,n)})},getVimeoLinksFromConfig:function(e,t){var n=f.getLinksFromConfig(e.config);return t(n||null)},getLinksFromConfig:function(e){if(!(e&&e.video&&e.request&&e.request.files))return null;var t=e.video,n=e.request.files,o={};o.title=t.title||"";var r=null;for(var a in t.thumbs)(null===r||r<a)&&(r=a,o.thumb=t.thumbs[a]);for(var s in o.links=[],n)i()(n[s])&&n[s].forEach(function(e){if(e&&e.url&&e.mime){var t=e.mime.split("/")[1];t||(t=(t=e.url.match(/\.(\w{2,4})(?:\?|#|$)/i))&&t[1]||"mp4");var n=t.toUpperCase(),i=e.quality;/^\d+p$/.test(i)&&(i=i.replace(/p$/,""));var r=n+" "+i;o.links.push({url:e.url,name:r,height:i,type:n,format:n,ext:t})}});return o.links.length||(o=null),o},getVimeoDataFromConfig:function(e){e=e.replace(/(\{|,)\s*(\w+)\s*:/gi,'$1"$2":').replace(/(:\s+)\'/g,'$1"').replace(/\'([,\]\}])/g,'"$1');try{e=JSON.parse(e)}catch(e){return null}return this.getLinksFromConfig(e)}};t.default=function(e){return e,f}},function(e,t,n){n(205),e.exports=n(15).Number.isFinite},function(e,t,n){var o=n(16),i=n(17).isFinite;o(o.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){"use strict";n.r(t);var o=n(13),i={getSoundcloudTrackInfo:function(e,t){return i._getSoundcloudTrackInfo(e.trackUrl,e.client_id,function(n,o){var i={action:e.action,trackUrl:e.trackUrl,client_id:e.client_id,data:n,checkLinks:o};t(i)}),!0},_getSoundcloudTrackInfo:function(e,t,n){if(e&&t){var r="http://api.soundcloud.com/resolve.json?url="+e+"&client_id="+encodeURIComponent(t);Object(o.default)({url:r,headers:{Referer:r},json:!0},function(e,o){var r=o.body;if(e||!r)return n();i.checkSoundcloudLinks(r,t,n)})}else n(null)},checkSoundcloudLinks:function(e,t,n){if(!e)return n();var o=e;if("track"!==o.kind&&o.tracks&&1===o.tracks.length&&(o=o.tracks[0]),"track"===o.kind&&o.stream_url)i.validateSoundcloudTrackUrl(o.stream_url,t,function(t){n(e,t)});else{if(!o.tracks||!o.tracks[0])return n(e);i.validateSoundcloudTrackUrl(o.tracks[0].stream_url,t,function(t){n(e,t)})}},validateSoundcloudTrackUrl:function(e,t,n){e+=-1===e.indexOf("?")?"?":"&",e+="client_id="+t,Object(o.default)({url:e,type:"HEAD"},function(e){n(!e)})}};t.default=function(e){return e,i}},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o),r=n(35),a=n(13),s=n(34),l=n(42),u={getOdnoklassnikiLinks:function(e,t){return u._getOdnoklassnikiLinks(e.extVideoId,function(n){var o={action:e.action,extVideoId:e.extVideoId,links:n,title:e.title};t(o)}),!0},getOdnoklassnikiAudioLinks:function(e,t){return u._getOdnoklassnikiAudioLinks(e.url,e.trackId,e.jsessionId,function(n){var o={action:e.action,trackId:e.trackId,jsessionId:e.jsessionId,data:n};t(o)}),!0},_getOdnoklassnikiLinks:function(e,t){if(e){var n="http://in.video.mail.ru/cgi-bin/video/oklite?eid="+e;Object(a.default)({url:n},function(n,o,i){if(n||!i)return t(null);var r="http://www.okcontent.video.mail.ru/media/",a=i.match(/\$vcontentHost=([^\s"'<>]+)/i);a&&a.length>1&&(r="http://"+a[1]+"/media/"),r+=e;var s=[],l="",u=i.match(/\$height=([0-9]+)/);u&&u.length>1&&(l=u[1]),s.push({url:r+"-v.mp4",name:"SD",ext:"FLV",subname:l}),i.search(/\$HDexist=1/i)>-1&&(l="",(u=i.match(/\$HDheight=([0-9]+)/))&&u.length>1&&(l=u[1]),s.push({url:r+"-hv.mp4",name:"HD",ext:"MP4",subname:l})),s&&t(s)})}else t(null)},_getOdnoklassnikiAudioLinks:function(e,t,n,o){if(!t||!n)return o(null);Object(a.default)({url:"http://wmf1.ok.ru/play;jsessionid="+n+"?tid="+t,json:!0},function(e,t,n){if(e||!n)return o(null);o(n)})},getOkAudioListLinks:function(e,t){var n=[],o=e.trackIdArr,r=e.jsessionId;if(!i()(o)||"string"!=typeof r||!o.length)return t(n);for(var a,s=o.length,l=0,u=function(e){e&&n.push(e),function(){if(++l===s)t(n)}()},d=0;a=o[d];d++)this._getOdnoklassnikiAudioLinks(void 0,a,r,u);return!0},getClipyouLinks:function(e,t,n,o,r){Object(a.default)({url:"http://media.clipyou.ru/api/player/secure_link?record_id="+e+"&type=mp4&resource_hash="+t,json:!0},function(e,t,a){if(e||!a||!i()(a.data)||!a.data.length)return r();var s=[];a.data.forEach(function(e){s.push({quality:n,url:e,title:o})}),r(s)})},getClipyouHash:function(e,t){Object(a.default)({url:"http://media.clipyou.ru/api/player_data.json?id="+e},function(e,n,o){if(e||!o)return t();if(!(o=o.match('resource_hash".?:.?"([^"]*)"'))||o.length<2)return t();var i=o[1];t(i)})},getPladformVideo:function(e,t){var n={action:e.action,extVideoId:e.extVideoId,links:[],title:e.title},o=function(){t(n)},i=e.extVideoId.playerId,r=e.extVideoId.videoId;return Object(a.default)({url:"http://out.pladform.ru/getVideo?pl="+i+"&videoid="+r,xml:!0},function(e,t,i){if(e||!i)return o();var r=i.querySelectorAll("src");if(0===r.length)return o();var a=i.querySelector("cover")||void 0;a&&(a=a.textContent)&&"//"===a.substr(0,2)&&(a="http:"+a);var s=i.querySelector("time")||void 0;s=s&&s.textContent;var l=i.querySelector("title");(l=l&&l.textContent)&&(n.title=l);var d=r[0],c=d.getAttribute("type"),f=d.textContent||"",p=d.getAttribute("quality");if(d){if("clipyou"===c)return u.getClipyouHash(f,function(e){if(!e)return o();u.getClipyouLinks(f,e,p,l,function(e){n.links=e,o()})});if("rutube"===c){var m=i.querySelector("external_embed");return(m=m&&m.textContent)&&(n.action="getRutubeLinks",n.links=[m]),o()}}for(var h,g=["ld","sd"],v=["360","720"],b=0;h=r[b];b++){f=h.textContent||"",p=h.getAttribute("quality"),/^\d+p$/.test(p)&&(p=p.match(/^(\d+)p$/)[1]);var y=g.indexOf(p);-1!==y&&(p=v[y]),"video"===(c=h.getAttribute("type"))&&n.links.push({url:f,quality:p,title:l,cover:a,duration:s})}return o()}),!0},getOkMetadata:function(e,t){var n=e.url;return n?(Object(a.default)({method:"POST",url:n,json:!0},function(e,n,o){if(e||!o)return t();t(o)}),!0):t()},getOkViaMobile:function(e,t){var n=e.metadata,o={"st.cmd":"movieLayer","st.mvId":e.mvId},i="http://m.ok.ru/dk?"+l.stringify(o),u={action:e.action,links:null,title:n.movie.title};return Object(a.default)({url:i},function(o,i,a){if(o||!a)return t();var l=new RegExp('href="([^"]+st\\.cmd=moviePlaybackRedirect[^"]+st\\.mvid='+e.mvId+'[^"]+)"'),d=a.match(l);if(!(d=d&&d[1]))return t();if(d=s.default.decodeSpecialChars(d),u.links=[{url:d}],!/st.mq=\d+/.test(d))return t(u);var c=n.videos;if(!c||!c.length)return t(u);c.forEach(function(e){if(e.url){var t=Object(r.default)(e.url);t.type&&(e.url=d.replace(/(st.mq=)\d+/,"$1"+t.type))}}),u.links=c,t(u)}),!0},okDirectOrMobile:function(e,t){var n=e.metadata,o=null;n.videos&&n.videos.some(function(e){if(e.url)return o=e.url,!0});var i=function(){e.action="getOkViaMobile",u.getOkViaMobile(e,t)};return o?(Object(a.default)({url:o,type:"HEAD"},function(o){return o?i():(e.action="getOkViaMobileNoWrap",e.links=n.videos,t(e))}),!0):(i(),!0)}};t.default=function(e){return e,u}},function(e,t,n){"use strict";n.r(t);var o=n(2),i=n.n(o),r=n(28),a=n(78),s=n(13),l={getFacebookLinks:function(e,t){return l._getFacebookLinks(e.extVideoId,function(n,o,i,r){var a={action:e.action,extVideoId:e.extVideoId,links:n||null,title:o||"",thumb:i||"",duration:r||""};t(a)}),!0},getFacebookLinksFromData:function(e,t){var n=e.data,o=e.extVideoId;return l.getLinksFromData2(n,o,!0,function(n,o,i,r){var a={action:"getFacebookLinksFromData",extVideoId:e.extVideoId,links:n||null,title:o||"",thumb:i||"",duration:r||""};t(a)})},_getFacebookLinks:function(e,t){Object(s.default)({type:"GET",url:"https://www.facebook.com/video.php?v="+e,headers:{Cookie:""}},function(n,o,i){if(n||!i)return t();l.getLinksFromData(i,e,t)})},getLinksFromData:function(e,t,n){var o=e.match(/\["params","([^"]*)"\]/im);if(!o)return this.getLinksFromData2(e,t,!1,n);var r=null;try{if((r=JSON.parse(decodeURIComponent(JSON.parse('"'+o[1]+'"'))).video_data).progressive&&(r=r.progressive),!r)return n()}catch(e){return n()}var a=null,s=null,u=[],d={sd_src:"SD",hd_src:"HD"};i()(r)||(r=[r]);for(var c,f=0;c=r[f];f++)["sd_src","hd_src"].forEach(function(e){if(c.thumbnail_src&&(a=c.thumbnail_src),c.video_duration&&(s=c.video_duration),c[e]){var t=l.getFileExtension(c[e],"mp4");u.push({url:c[e],name:d[e],type:t,ext:t.toUpperCase()})}});n(u,"",a,s)},getLinksFromData2:function(e,t,n,o){var i=null,s=function(e){return e.split(/"?videoData"?:\[/).some(function(e){return Object(a.default)(e).some(function(e){if((e.sd_src||e.hd_src)&&String(e.video_id)===String(t))return i=e,!0})})};if(n?s(e):Object(r.default)(e,[/"?videoData"?:\[/]).some(s),!i)return o();var u,d=[];return i.sd_src&&(u=l.getFileExtension(i.sd_src,"mp4"),d.push({url:i.sd_src,name:"SD",type:u,ext:u.toUpperCase()})),i.hd_src&&(u=l.getFileExtension(i.hd_src,"mp4"),d.push({url:i.hd_src,name:"HD",type:u,ext:u.toUpperCase()})),o(d,"",i.thumbnail_src,i.video_duration)},getFileExtension:function(e,t){var n=e.match(/\.([a-z0-9]{3,4})(\?|$)/i);return n?(n=n[1]).toLowerCase():t||""},getFacebookPhotoUrl:function(e,t){return e.fbid?(Object(s.default)({url:"https://www.facebook.com/photo.php?fbid="+e.fbid},function(e,n,o){if(e||!o)return t();if(r=o.match(/<a[^>]+fbPhotosPhotoActionsItem[^>]+href="([^">]+dl=1)"[^>]+>/i)){var i=r[1].replace(/&amp;/g,"&");return t([i])}var r,a=[],s={};return(r=o.match(/(<a[^>]+rel="theater"[^>]+>)/gi))&&r.forEach(function(e){var t=e.match(/data-pl[os]i="[^"]+"/gi);t&&t.forEach(function(e){var t=e.indexOf("=");if(-1!==t){var n=e.substr(0,t),o=e.substr(t+1);o=o.substr(1,o.length-2).replace(/&amp;/g,"&"),s[n]=o,a.push(o)}})}),s["data-ploi"]?t([s["data-ploi"]]):t(a)}),!0):t()}};t.default=function(e){return e,l}},function(e,t,n){"use strict";n.r(t);var o=n(28),i=n(19),r=n(13),a=null,s={getMailruLinks:function(e,t){return s._getMailruLinks(e.extVideoId,function(n,o,i,r,a){var s={action:e.action,extVideoId:r||e.extVideoId,links:n,title:o,thumb:i,duration:a};t(s)}),!0},_getMailruLinks:function(e,t){var n,a=e,l=e.match(/\/([^\/]+)\/([^\/]+)\/video\/(.+).html/);if(l||(l=e.match(/embed\/([^\/]+)\/([^\/]+)\/(.+).html/)),l&&(n="http://api.video.mail.ru/videos/"+l[1]+"/"+l[2]+"/"+l[3]+".json",a=l[1]+"/"+l[2]+"/video/"+l[3]+".html"),n)return s.onGetMailruMetadataUrl(n,a,t);Object(r.default)({url:"http://my.mail.ru/"+e},function(e,r,l){if(e||!l)return t();var u=/"metaUrl":/,d=null;if(Object(o.default)(l,u).some(function(e){return Object(i.default)(e,u).some(function(e){if(e.metaUrl)return d=e,!0})}),d)return n=d.metaUrl,void s.onGetMailruMetadataUrl(n,a,t);if(!(l=l.match(/<meta\s+content="[^"]+(videoapi\.my\.mail[^&]+)&[^"]+"[^>]+\/>/)))return t();var c=(l=decodeURIComponent(l[1])).substr(l.lastIndexOf("/")+1);n="http://videoapi.my.mail.ru/videos/"+c+".json",s.onGetMailruMetadataUrl(n,a,t)})},onGetMailruMetadataUrl:function(e,t,n){s.getMailruMetadata(e,function(e){if(!e||"string"==typeof e)return n();s.readMailruMetadata(e,function(e,o,i,r){n(s.prepMailruLinks(e),o,i,t,r)})})},prepMailruLinks:function(e){if(e){for(var t,n=[],o=0;t=e[o];o++){var i=t.url,r="FLV";-1!==i.indexOf(".mp4")&&(r="MP4"),-1!==i.indexOf(".mov")&&(r="MOV"),-1!==i.indexOf(".mpg")&&(r="MPG"),t.quality||(t.quality="-?-");var a=t.quality.toUpperCase(),s=["1080P","720P","480P","360P","272P"].indexOf(a);-1!==s&&(a=["1080","720","480","360","272"][s]);var l=r.toLowerCase();n.push({url:i,subname:a,name:r,ext:l})}return n.sort(function(e,t){return"HD"===e.subname?1:e.subname>t.subname}),n}},getMailruMetadata:function(e,t){if(!e)return t();Object(r.default)({url:e,json:!0},function(e,n,o){if(e||!o)return t();t(o)})},readMailruMetadata:function(e,t){var n,o=[],i=void 0,r=void 0;if(e.meta&&(r=e.meta.poster,i=e.meta.duration),"UPLOADED"===e.provider){if(n=e.movie?e.movie.title:void 0,!e.videos)return t();e.videos.forEach(function(e){o.push({quality:e.name,url:e.url,title:n})})}else if("ugc"===e.provider){if(n=e.meta?e.meta.title:void 0,!e.videos)return t();e.videos.forEach(function(e){o.push({quality:e.key,url:e.url,title:n})})}else if("pladform"===e.provider){return n=e.meta?e.meta.title:void 0,void a.modules.odnoklassniki.getPladformVideo({extVideoId:{playerId:e.meta.playerId,videoId:e.meta.videoId}},function(e){if(!e)return t();"getRutubeLinks"===e.action&&(e.links=null);var o=e.links;if(!o)return t();o.forEach(function(e){void 0===e.title&&(e.title=n)}),t(o,n,r,i)})}return 0===o.length?t():t(o,n,r,i)}};t.default=function(e){return a=e,s}},function(e,t,n){"use strict";n.r(t);var o=n(211);t.default=function(e){if("<all_urls>"===e)return"^https?:\\/\\/.+$";var t=e.match(/(\*|http|https|file|ftp):\/\/([^\/]+)(?:\/(.*))?/);if(!t)throw new Error("Invalid url-pattern");var n=t[1];"*"===n&&(n="https?");var i=t[2],r=["^",n,":\\/\\/",i="*"===i?".+":(i=(i=o(i)).replace(/^\\\*\\\./,"(?:[^/]+\\.)?")).replace(/\\\.\\\*$/g,"\\.[a-z\\.]{2,}")],a=t[3];return a?"*"===a?(a="(?:|/.*)",r.push(a),r.push("$")):a&&(a=(a=o(a="/"+a)).replace(/\\\*/g,".*"),r.push(a),r.push("$")):r.push("$"),r.join("")}},function(e,t,n){"use strict";var o=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(o,"\\$&")}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=/:\/\/(?:[^\/?#]*@)?([^:\/?#]+)/.exec(e);return(n=n&&n[1])&&t&&(n=n.replace(/^www\./,"")),n}},function(e,t,n){"use strict";n.r(t);var o=n(1),i=n.n(o);t.default=function(e,t){var n=/^[\d.]+$/;if(!n.test(e)||!n.test(t))throw new Error("Incorrect version");for(var o=function(e,t){for(;e.length<t;)e="0"+e;return e},r=e.split("."),a=t.split("."),s=0;s<a.length;s++){var l=r[s]||"",u=a[s]||"",d=Math.max(l.length,u.length);if(l=i()(o(l,d)),(u=i()(o(u,d)))!==l)return u>l}return!1}},function(e,t,n){"use strict";n.r(t);var o=n(5),i=n.n(o),r=n(2),a=n.n(r);var s=n(44),l=n.n(s),u=n(107),d=n.n(u);function c(e){return function(e){if(a()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(d()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return l()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var f=n(6),p=n.n(f);function m(e,t,n){return t in e?p()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=n(8),g=n.n(h),v=n(11),b=n.n(v),y=n(1),k=n.n(y),w=n(9),x=n.n(w),S=n(0),A=n.n(S),C=n(12),L=n.n(C),M=n(7),I=n.n(M),O=n(10),P=n.n(O),T=n(3),F=n(4),E=n(79),N=n.n(E);function D(e){return(D="function"==typeof P.a&&"symbol"==typeof N.a?function(e){return typeof e}:function(e){return e&&"function"==typeof P.a&&e.constructor===P.a&&e!==P.a.prototype?"symbol":typeof e})(e)}function B(e){return(B="function"==typeof P.a&&"symbol"===D(N.a)?function(e){return D(e)}:function(e){return e&&"function"==typeof P.a&&e.constructor===P.a&&e!==P.a.prototype?"symbol":D(e)})(e)}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?R(e):t}var q=n(80),j=n.n(q),z=n(53),U=n.n(z);function V(e){return(V=U.a?j.a:function(e){return e.__proto__||j()(e)})(e)}var H=n(108),G=n.n(H),W=n(81),Y=n.n(W);function K(e,t,n){return(K="undefined"!=typeof Reflect&&Y.a?Y.a:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=V(e)););return e}(e,t);if(o){var i=G()(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Q(e,t){return(Q=U.a||function(e,t){return e.__proto__=t,e})(e,t)}function J(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=L()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Q(e,t)}var Z=n(109),X=n.n(Z),$=n(82),ee=n.n($);function te(e,t,n,o,i,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):A.a.resolve(l).then(o,i)}var ne=n(110),oe=n.n(ne),ie=n(74),re=n(100).preferredLanguages,ae=function(e){return function(t){function n(){var e;return Object(T.a)(this,n),(e=_(this,V(n).call(this))).defaultLocale="en",e.localeMap={de:{extName:{message:"SaveFrom.net Helfer"},extDescription:{message:"Laden Sie von YouTube, Facebook, VK.com und mehr als 40 anderen Seiten mit einem Klick herunter."},extNameLite:{message:"SaveFrom.net Helfer Lite"},extDescriptionLite:{message:"Herunterladen von Facebook, VK.com und mehr als 40 weiteren Seiten mit einem Klick herunter."},lang:{message:"de"},titleDefault:{message:"SaveFrom.net Helfer"},titleDesabled:{message:"SaveFrom.net Helfer deaktiviert"},menuEnable:{message:"Aktivieren"},menuDisable:{message:"Deaktivieren"},showButton:{message:"Erweiterungs Knopf anzeigen"},copy:{message:"Kopie"},download:{message:"Herunterladen"},downloadTitle:{message:"Klicken Sie den Link während Sie die Alt/Einstellung oder Ctrl/Strg Taste drücken zum Herunterladen der Dateien."},noLinksFound:{message:"Keine Links wurden gefunden"},more:{message:"Mehr"},close:{message:"Schließen"},kbps:{message:"kbps"},withoutAudio:{message:"without audio"},size:{message:"größe"},subtitles:{message:"Untertitel"},playlist:{message:"Wiedergabliste"},filelist:{message:"List of files"},downloadWholePlaylist:{message:"Die komplette Wiedergabliste herunterladen"},getFileSizeTitle:{message:"Dateigröße bestimmen"},getFileSizeFailTitle:{message:"Fehler bei bestimmung der Dateigröße. Bitte versuchen Sie es erneut."},lmButtonTitle:{message:"Holen Sie sich einen direkten Link."},downloadFromCurrentPage:{message:"Zu SaveFrom.net"},updateLinks:{message:"Links aktualisieren"},updateLinksNotification:{message:"Links aktualisiert"},downloadMP3Files:{message:"Download Audiodateien"},downloadPlaylist:{message:"Download Playlist"},downloadPhotos:{message:"Download Bilder"},installFullVersion:{message:"Install full version"},disable:{message:"Deaktivieren"},showOptions:{message:"Einstellungen"},reportBug:{message:"Fehler melden"},openPoll:{message:"Become better"},disableModule:{message:"Auf dieser Webseite deaktivieren"},enableModule:{message:"Auf dieser Webseite aktivieren"},enableDisableModule:{message:"Ein/Aus auf dieser Webseite"},showHideButton:{message:"Erweitern Ein-/Ausblenden"},updateTo:{message:"Update auf %d"},aboutPage:{message:"Über"},aboutTitle:{message:"SaveFrom.net Helfer"},aboutVersion:{message:"Version"},aboutDescription:{message:"Hilft den Nutzern direkte Links zu Herunterladen von mehr als 40 Webseiten, inklusive Dailymotion.com, YouTube.com, VK.com und weiteren zu bekommen."},aboutDescriptionLite:{message:"Hilft den Nutzern direkte Links zu Herunterladen von mehr als 40 Webseiten, inklusive Dailymotion.com, VK.com und weiteren zu bekommen."},aboutSupported:{message:"Unterstützte Ressourcen"},homePage:{message:"Homepage"},optionsTitle:{message:"SaveFrom.net Helfer - Einstellungen"},optionsHandleLinks:{message:"Links handhaben"},optionsMediaHostings:{message:"Zu Medienhoster"},optionsModules:{message:"Module"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Links ausblenden"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsBitrate:{message:"Bitrate sofort zeigen"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"Tipps für UVD einblenden"},optionsGmNativeDownload:{message:"Erweiterter Download-Modus"},optionsShowUmmyBtn:{message:"Schaltfläche Ummy anzeigen"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Jedes Mal nachfragen, wo eine Datei gespeichert werden soll"},menuDownloadFromCurrentPage:{message:"Laden Sie die Dateien mit SaveFrom.net von der aktuellen Seite"},menuUpdateLinks:{message:"Hier klicken, wenn die Download-Taste nicht erscheint"},menuDownloadMP3Files:{message:"Alle auf dieser Seite gefundenen Audiodateien herunterladen"},menuDownloadPlaylist:{message:"Playliste mit den Links zu den Audiodateien generieren und downloaden"},menuDownloadPhotos:{message:"Alle auf der aktuellen Seite gefundenen Bilder herunterladen"},menuReportBug:{message:"Schreiben Sie uns, wenn Probleme auftreten"},menuShowOptions:{message:"AN/AUS unterstützte Ressourcen und Helperoptionen"},menuEnableExtension:{message:""},menuOpenPoll:{message:""},quality:{message:"Qualität"},qualityNote:{message:"Wenn es nicht um Qualität geht, wird das nächste verfügbare Video heruntergeladen."},filelistTitle:{message:"Die Liste der gefundenen dateien"},filelistInstruction:{message:"['Zum Herunterladen aller datien kopieren Sie die liste der Links in Ihren ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'Download Manager'}},'. Wenn Sie noch keinen Download Manager haben we empfehlen wir Ihnen die Installation des ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Wiedergabliste"},playlistInstruction:{message:"Zur Wiedergabe Ihrer gespeicherten Wiedergabliste kann es nun mit einem Musik-Player geöffnet werden."},ummySfTitle:{message:"HD oder MP3"},ummyMenuItem:{message:"[{span:{}},' mithilfe von Ummy herunterladen']"},ummyMenuInfo:{message:"[{p:{text:'Schnell und einfach HD Videos und MP3 über Ummy Video Downloader herunterladen!'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Jetzt installieren'}}]}},{p:{append:['Nach der Installation startet jederzeit ein Download, wenn Sie auf ',{img:{src:'#'}},' klicken']}}]"},warningPopupTitle:{message:"Überprüfen Sie die Browsereinstellungen"},warningPopupDesc:{message:'Die Option "Jedes Mal nachfragen, wo eine Datei gespeichert werden soll" muss deaktiviert sein.'},readMore:{message:"Mehr"},noWarning:{message:"Nicht benachrichtigen"},cancel:{message:"Abbrechen"},continue:{message:"Fortsetzen"},beforeDownloadPopupWarn:{message:"Achtung! Der Download kann nicht abgebrochen oder angehalten werden."},vkInfo:{message:"Info"},vkInfoTitle:{message:"Dateigröße und Bitrate"},vkMp3LinksNotFound:{message:"Links zu MP3 Dateien wurden nicht gefunden"},vkPhotoLinksNotFound:{message:"Photos are not found"},vkDownloadPhotoAlbum:{message:"Album herunterladen"},vkDownloadAllPhotoAlbums:{message:"Alle Alben herunterladen"},vkFoundPhotos:{message:"Gefundene Fotos"},vkNotAvailablePhotos:{message:"%d Foto(s) vorübergehend nicht verfügbar"},vkFoundLinks:{message:"Gefundene Links"},vkFoundOf:{message:"von"},vkShowAs:{message:"Zeigen als"},vkListOfLinks:{message:"Liste der Links"},vkListOfLinksInstruction:{message:"['Um alle Fotos herunterzuladen, kopieren Sie die Links aus der Liste und fügen Sie diese in Ihren ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'Download Manager'}},' ein. Wenn Sie noch keinen Download Manager haben we empfehlen wir Ihnen die Installation des ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tabelle der Thumbnails"},vkListOfPhotos:{message:"Liste der Fotos"},vkListOfPhotosInstruction:{message:"Klicken Sie auf ein Foto um es herunterzuladen."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Herunterladen: Öffnen Sie ',{a:{href:'{url}',text:'die Video Seite'}},' und drücken Sie den \"Herunterladen\" Knopf über dem Video-Spieler']"},vkFoundFiles:{message:"Dateien gefunden: %d"},shareIn:{message:"In %w teilen"},socialDesc:{message:"Der SaveFrom.net Helper ermöglicht es Ihnen Dateien YouTube.com, Facebook.com, VK.com und mehr als 40 andere Seiten mit einem Klick herunterzuladen"},tutorialS1Title:{message:"Gute Nachrichten!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}},' wurde erfolgreich installiert. Jetzt kannst due jedes Video mit einem Klick von YouTube herunterladen']"},tutorialS1Arrow:{message:"['Wie das geht?',{br:{}},'Hier erfährst du es']"},tutorialS2Main:{message:'Wähle das Format des Videos, das du herunterladen möchtest und klicken auf "Herunterladen"'},tutorialS3History:{message:"Historie"},tutorialS3Main:{message:"['Du möchtest ein Video aus Historie herunterladen? Klicken einfach in der Vorschau des zuletzt gesehenen Videos auf ', {img: {src: '#arrow'}}]"},tutorialS4Main:{message:"['Du musst dir das Video nicht ansehen — klicke einfach auf ', {img: {src: '#arrow'}}, ', wähle die Qualität und lade es herunter. Ganz einfach, oder?']"},tutorialS5Title:{message:"Viel Spaß mit SaveFrom.net Helper!"},tutorialS5Main:{message:"['Noch Fragen? Vorschläge? Willkommen auf unserer ', {a: {text: 'Support-Seite', href: '#support'}} ,'. Schließe dich uns bei ', {a: {text: 'Facebook', href: '#fb'}} ,' an']"},tutorialTooltipText:{message:"['Klicken Sie zum ',{b: {text: 'Download'}},', einfach auf die Schaltfläche']"},ummyTooltipConfirm:{message:"['Hatten Sie ',{img:{}},' Ummy Video Downloader bereits zuvor installiert?']"},yes:{message:"Ja"},no:{message:"Nein"},tooltipHide:{message:"Diese Meldung nicht wieder anzeigen"}},en:{extName:{message:"SaveFrom.net helper"},extDescription:{message:"Download YouTube, Facebook, VK.com and 40+ sites in one click."},extNameLite:{message:"SaveFrom.net helper lite"},extDescriptionLite:{message:"Download Facebook, VK.com and 40+ sites in one click."},lang:{message:"en"},titleDefault:{message:"SaveFrom.net helper"},titleDesabled:{message:"SaveFrom.net helper disabled"},menuEnable:{message:"Enable"},menuDisable:{message:"Disable"},showButton:{message:"Show extension button"},copy:{message:"Copy"},download:{message:"Download"},downloadTitle:{message:"Click the link while holding Alt/Option or Ctrl key to download the file."},noLinksFound:{message:"No links were found"},more:{message:"More"},close:{message:"Close"},kbps:{message:"kbps"},withoutAudio:{message:"without audio"},size:{message:"size"},subtitles:{message:"Subtitles"},playlist:{message:"Playlist"},filelist:{message:"List of files"},downloadWholePlaylist:{message:"Download the whole playlist"},getFileSizeTitle:{message:"Get file size"},getFileSizeFailTitle:{message:"Unable to get the file size. Please try again."},lmButtonTitle:{message:"Get a direct link"},downloadFromCurrentPage:{message:"Go to SaveFrom.net"},updateLinks:{message:"Refresh links"},updateLinksNotification:{message:"Links updated"},downloadMP3Files:{message:"Download audio files"},downloadPlaylist:{message:"Download a playlist"},downloadPhotos:{message:"Download pictures"},installFullVersion:{message:"Install full version"},disable:{message:"Disable"},showOptions:{message:"Settings"},reportBug:{message:"Report a bug"},openPoll:{message:"Become better"},disableModule:{message:"Disable on this website"},enableModule:{message:"Enable on this website"},enableDisableModule:{message:"Turn On/Off on this website"},showHideButton:{message:"Show/hide extension button"},updateTo:{message:"Update to %d"},aboutPage:{message:"About"},aboutTitle:{message:"SaveFrom.net Helper"},aboutVersion:{message:"Version"},aboutDescription:{message:"Helps users to get direct links to download from more than 40 websites, including Dailymotion.com, YouTube.com, VK.com and others."},aboutDescriptionLite:{message:"Helps users to get direct links to download from more than 40 websites, including Dailymotion.com, VK.com and others."},aboutSupported:{message:"Supported resources"},homePage:{message:"Home page"},optionsTitle:{message:"SaveFrom.net Helper - Preferences"},optionsHandleLinks:{message:"Handle links"},optionsMediaHostings:{message:"To mediahostings"},optionsModules:{message:"Modules"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Hide links"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsBitrate:{message:"Show bitrate instantly"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"Show tips for Ummy Video Downloader"},optionsGmNativeDownload:{message:"Advanced download mode"},optionsShowUmmyBtn:{message:"Show the Ummy button"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Always ask me where to save files"},menuDownloadFromCurrentPage:{message:"Download files from the current page using SaveFrom.net"},menuUpdateLinks:{message:"Press if Download button doesn't appear"},menuDownloadMP3Files:{message:"Download all audio files found on the current page"},menuDownloadPlaylist:{message:"Generates and downloads the playlist consisting of links to audio files"},menuDownloadPhotos:{message:"Download all pictures found on the current page"},menuReportBug:{message:"Let us know if you have any problems"},menuShowOptions:{message:"ON/OFF supported resources and Helper options"},menuEnableExtension:{message:""},menuOpenPoll:{message:"We work hard to become better. Please, give us a hand!"},quality:{message:"Quality"},qualityNote:{message:"The best available video will be downloaded If there is no chosen quality."},filelistTitle:{message:"The list of the found files"},filelistInstruction:{message:"['To download all files copy the list of links and paste it into the ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. If you do not have a download manager installed we recommend installing ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Playlist"},playlistInstruction:{message:"To playback the saved playlist it may be now opened in the music player."},ummySfTitle:{message:"HD or MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Fast and easy download HD videos and MP3 via Ummy Video Downloader!'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Install Now'}}]}},{p:{append:['When installed, a download will start anytime you click on ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Check browser settings"},warningPopupDesc:{message:'The option "Always ask me where to save files" must be turned off.'},readMore:{message:"More"},noWarning:{message:"Don't notify"},cancel:{message:"Cancel"},continue:{message:"Continue"},beforeDownloadPopupWarn:{message:"Warning! Downloading cannot be canceled or suspended."},vkInfo:{message:"Info"},vkInfoTitle:{message:"File size and bitrate"},vkMp3LinksNotFound:{message:"Links to MP3 files are not found"},vkPhotoLinksNotFound:{message:"Photos are not found"},vkDownloadPhotoAlbum:{message:"Download album"},vkDownloadAllPhotoAlbums:{message:"Download all albums"},vkFoundPhotos:{message:"Found photos"},vkNotAvailablePhotos:{message:"%d photos are temporarily unavailable"},vkFoundLinks:{message:"Found links"},vkFoundOf:{message:"of"},vkShowAs:{message:"Show as"},vkListOfLinks:{message:"List of links"},vkListOfLinksInstruction:{message:"['To download all photos copy the list of links and paste it into the ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. If you do not have a download manager installed we recommend installing ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Table of thumbnails"},vkListOfPhotos:{message:"List of photos"},vkListOfPhotosInstruction:{message:"Click on the photo to download it."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Download: open ',{a:{href:'{url}',text:'the video page'}},' and press the \"Download\" button above the player']"},vkFoundFiles:{message:"Files found: %d"},shareIn:{message:"Share on %w"},socialDesc:{message:"SaveFrom.net helper enables you to download files from YouTube.com, Facebook.com, VK.com and more than 40 other just in one click for free"},tutorialS1Title:{message:"Good news!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}},' has been successfully installed and now you can download any video from YouTube in one click']"},tutorialS1Arrow:{message:"['Want to know how?',{br:{}},'Click here']"},tutorialS2Main:{message:'To download a video choose a format and click the "Download" button'},tutorialS3History:{message:"History"},tutorialS3Main:{message:"['Do you want to download a video from History?',{br:{}},'Just click ', {img: {src: '#arrow'}},' on the preview of the previously watched video']"},tutorialS4Main:{message:"['No need to watch a video — just click on ', {img: {src: '#arrow'}},', choose the quality, and download. Quite easy, isn’t it?']"},tutorialS5Title:{message:"Enjoy SaveFrom.net Helper!"},tutorialS5Main:{message:"['Still have questions? Want to share your ideas? Welcome to ',{a: {text: 'our support page', href: '#support'}},' or join us on ', {a: {text: 'Facebook', href: '#fb'}}]"},tutorialTooltipText:{message:"['Just click the button to ',{b: {text: 'download'}}]"},ummyTooltipConfirm:{message:"['Have you already installed',{br:{}},{img:{}},' Ummy Video Downloader earlier?']"},yes:{message:"Yes"},no:{message:"No"},tooltipHide:{message:"Do not show this message again"}},es:{extName:{message:"SaveFrom.net helper"},extDescription:{message:"Descargas desde YouTube, Facebook, VK.com y 40+ sitios en un sólo clic."},extNameLite:{message:"SaveFrom.net helper lite"},extDescriptionLite:{message:"Descargas desde Facebook, VK.com y 40+ sitios en un sólo clic."},lang:{message:"es"},titleDefault:{message:"SaveFrom.net helper"},titleDesabled:{message:"SaveFrom.net helper deshabilitado"},menuEnable:{message:"Habilitar"},menuDisable:{message:"Deshabilitar"},showButton:{message:"Mostrar botón de extensión"},copy:{message:"Copiar"},download:{message:"Descargar"},downloadTitle:{message:"Haga clic en el enlace mientras presiona la tecla Alt/Opción o Ctrl para descargar el archivo."},noLinksFound:{message:"No se han encontrado enlaces"},more:{message:"Más"},close:{message:"Cerrar"},kbps:{message:"kbps"},withoutAudio:{message:"sin audio"},size:{message:"tamaño"},subtitles:{message:"Subtítulos"},playlist:{message:"Lista de reproducción"},filelist:{message:"Lista de archivos"},downloadWholePlaylist:{message:"Descargar toda la lista de reproducción"},getFileSizeTitle:{message:"Obtener tamaño de archivo"},getFileSizeFailTitle:{message:"No se pudo obtener el tamaño del archivo. Por favor, inténtelo de nuevo."},lmButtonTitle:{message:"Obtener un enlace directo"},downloadFromCurrentPage:{message:"Ir a SaveFrom.net"},updateLinks:{message:"Actualizar enlaces"},updateLinksNotification:{message:"Enlaces actualizados"},downloadMP3Files:{message:"Descargar archivos de audio"},downloadPlaylist:{message:"Descargar una lista de reproducción"},downloadPhotos:{message:"Descargar imágenes"},installFullVersion:{message:"Instalar la versión completa"},disable:{message:"Deshabilitar"},showOptions:{message:"Ajustes"},reportBug:{message:"Informar sobre un problema"},openPoll:{message:"Mejorar"},disableModule:{message:"Desactivar en este sitio web"},enableModule:{message:"Activar en este sitio web"},enableDisableModule:{message:"Activ./Desactiv. en esta web"},showHideButton:{message:"Mostrar/ocultar botón extens"},updateTo:{message:"Actualizar a la %d"},aboutPage:{message:"Acerca de"},aboutTitle:{message:"SaveFrom.net Helper"},aboutVersion:{message:"Versión"},aboutDescription:{message:"Ayuda a los usuarios a obtener enlaces directos para descargar desde más de 40 sitios web, incluidos Dailymotion.com, YouTube.com, VK.com y otros."},aboutDescriptionLite:{message:"Ayuda a los usuarios a obtener enlaces directos para descargar desde más de 40 sitios web, incluidos Dailymotion.com, VK.com y otros."},aboutSupported:{message:"Recursos admitidos"},homePage:{message:"Página de inicio"},optionsTitle:{message:"SaveFrom.net Helper - Preferencias"},optionsHandleLinks:{message:"Manejar enlaces"},optionsMediaHostings:{message:"A servidores multimedia"},optionsModules:{message:"Módulos"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Ocultar enlaces"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsBitrate:{message:"Mostrar velocidad de bits instantáneamente"},optionsSovetnikEnabled:{message:"Consejero"},optionsShowUmmyInfo:{message:"Muestra consejos para Ummy Video Downloader"},optionsGmNativeDownload:{message:"Móudlo de descarga avanzada"},optionsShowUmmyBtn:{message:"Mostrar el botón Ummy"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Preguntarme siempre dónde guardar los archivos"},menuDownloadFromCurrentPage:{message:"Descargar archivos de la página actual usando SaveFrom.net"},menuUpdateLinks:{message:"Pulse si no aparece el botón Descargar"},menuDownloadMP3Files:{message:"Descargar todos los archivos de audio de la página actual"},menuDownloadPlaylist:{message:"Genera y descarga la lista de reproducción que consiste en enlaces a archivos de audio"},menuDownloadPhotos:{message:"Descargar todas las imágenes encontradas en la página actual"},menuReportBug:{message:"Háganos saber si tiene algún problema"},menuShowOptions:{message:"ACTIVAR/DESACTIVAR recursos admitidos y opciones del Helper"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Trabajamos duro para mejorar. ¡Échenos una mano!"},quality:{message:"Calidad"},qualityNote:{message:"Si no se elige ninguna calidad, se descargará el mejor vídeo disponible."},filelistTitle:{message:"La lista de los archivos encontrados"},filelistInstruction:{message:"['Para descargar todos los archivos, copie la lista de enlaces y péguela en el ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'gestor de descargas'}},'. Si no tiene instalado un gestor de descargas, le recomendamos que instale ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Lista de reproducción"},playlistInstruction:{message:"Para reproducir la lista de reproducción guardada, puede abrirla ahora en el reproductor de música."},ummySfTitle:{message:"HD o MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Instale Ummy Video Downloader y descargue sus vídeos favoritos en HD o MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Descargar'}}]}},{p:{append:['Después de la instalación, se iniciará una descarga automáticamente siempre que haga clic en ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Compruebe la configuración de su navegador"},warningPopupDesc:{message:'La opción "Preguntarme siempre dónde guardar los archivos" debe estar desactivada.'},readMore:{message:"Más"},noWarning:{message:"No notificar"},cancel:{message:"Cancelar"},continue:{message:"Continuar"},beforeDownloadPopupWarn:{message:"¡Advertencia! La descarga no se puede cancelar o suspender."},vkInfo:{message:"Información"},vkInfoTitle:{message:"Tamaño de archivo y velocidad de bits"},vkMp3LinksNotFound:{message:"No se han encontrado enlaces a archivos MP3"},vkPhotoLinksNotFound:{message:"No se han encontrado imágenes"},vkDownloadPhotoAlbum:{message:"Descargar álbum"},vkDownloadAllPhotoAlbums:{message:"Descargar todos los álbums"},vkFoundPhotos:{message:"Imágenes encontradas"},vkNotAvailablePhotos:{message:"%d imágenes están temporalmente no disponibles"},vkFoundLinks:{message:"Enlaces encontrados"},vkFoundOf:{message:"de"},vkShowAs:{message:"Mostrar como"},vkListOfLinks:{message:"Lista de enlaces"},vkListOfLinksInstruction:{message:"['Para descargar todas las imágenes, copie la lista de enlaces y péguela en el ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'gestor de descargas'}},'. Si no tiene instalado un gestor de descargas, le recomendamos que instale ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tabla de miniaturas"},vkListOfPhotos:{message:"Lista de imágenes"},vkListOfPhotosInstruction:{message:"Haga clic en la imagen para descargarla."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Descargar: abra ',{a:{href:'{url}',text:'la página del vídeo'}},' y pulse el botón \"Descargar\" sobre el reproductor']"},vkFoundFiles:{message:"Archivos encontrados: %d"},shareIn:{message:"Compartir en %w"},socialDesc:{message:"SaveFrom.net helper le permite descargar archivos desde YouTube.com, Facebook.com, VK.com y más de 40 sitios distintos con tan sólo un clic y gratis"},tutorialS1Title:{message:"¡Excelentes noticias!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}}, ' se instaló con éxito y ahora puedes descargar cualquier video de YouTube con un solo clic']"},tutorialS1Arrow:{message:"['¿Quieres saber cómo?', {br:{}}, 'Haz clic aquí']"},tutorialS2Main:{message:'Para descargar un video, elige el formato y haz clic en el botón "Descargar"'},tutorialS3History:{message:"Historial"},tutorialS3Main:{message:"['¿Deseas descargar un video del Historial?', {br:{}}, 'Simplemente haz clic en ', {img: {src: '#arrow'}}, ' en la vista previa del video visto anteriormente.']"},tutorialS4Main:{message:"['No es necesario mirar un video: simplemente haz clic en ', {img: {src: '#arrow'}}, ', elige la calidad y descárgalo. Fácil, ¿verdad?']"},tutorialS5Title:{message:"¡Disfruta de SaveForm.net Helper!"},tutorialS5Main:{message:"['¿Todavía tienes preguntas? ¿Quieres compartir tus ideas? Puedes ir a nuestra ',{a: {text: 'página de soporte', href: '#support'}},' o unirte a nosotros en ', {a: {text: 'Facebook', href: '#fb'}}]"},tutorialTooltipText:{message:"['Simplemente haz clic en el botón para ',{b: {text: 'descargar'}}]"},ummyTooltipConfirm:{message:"['¿Ya has instalado',{br:{}},{img:{}},' Ummy Video Downloader antes?']"},yes:{message:"Sí"},no:{message:"No"},tooltipHide:{message:"No mostrar de nuevo este mensaje"}},fr:{extName:{message:"SaveFrom.net Helper"},extDescription:{message:"Téléchargez YouTube, Facebook, VK.com et 40+ sites en un seul clic."},extNameLite:{message:"SaveFrom.net Helper lite"},extDescriptionLite:{message:"Téléchargez Facebook, VK.com et 40+ sites en un seul clic."},lang:{message:"fr"},titleDefault:{message:"SaveFrom.net Helper"},titleDesabled:{message:"Assistant SaveFrom.net désactivé"},menuEnable:{message:"Activer"},menuDisable:{message:"Désactiver"},showButton:{message:"Afficher le bouton d'extension"},copy:{message:"Copier"},download:{message:"Télécharger"},downloadTitle:{message:"Cliquer sur le lien tout en maintenant la touche Alt/Option ou Ctrl pour télécharger le fichier."},noLinksFound:{message:"Aucun lien n'a été trouvé"},more:{message:"Plus"},close:{message:"Fermer"},kbps:{message:"kbps"},withoutAudio:{message:"sans audio"},size:{message:"taille"},subtitles:{message:"Sous-titres"},playlist:{message:"Playlist"},filelist:{message:"Liste de fichiers"},downloadWholePlaylist:{message:"Télécharger toute la playlist"},getFileSizeTitle:{message:"Obtenir la taille du fichier"},getFileSizeFailTitle:{message:"Impossible d'obtenir la taille du fichier. Veuillez réessayer."},lmButtonTitle:{message:"Obtenir un lien direct"},downloadFromCurrentPage:{message:"Aller à SaveFrom.net"},updateLinks:{message:"Rafraîchir les liens"},updateLinksNotification:{message:"Liens mis à jour"},downloadMP3Files:{message:"Télécharger les fichiers audio"},downloadPlaylist:{message:"Télécharger une playlist"},downloadPhotos:{message:"Télécharger les images"},installFullVersion:{message:"Installer la version complète"},disable:{message:"Désactiver"},showOptions:{message:"Paramètres"},reportBug:{message:"Signaler un bug"},openPoll:{message:"Améliorer"},disableModule:{message:"Désactiver sur ce site"},enableModule:{message:"Activer sur ce site"},enableDisableModule:{message:"Activer On/Off sur ce site web"},showHideButton:{message:"Afficher/masquer le bouton d'extension"},updateTo:{message:"Passer à la version %d"},aboutPage:{message:"À propos"},aboutTitle:{message:"SaveFrom.net Helper"},aboutVersion:{message:"Version"},aboutDescription:{message:"Aide les utilisateurs à obtenir des liens directs pour télécharger depuis plus de 40 sites web, y compris Dailymotion.com, YouTube.com, VK.com et d'autres."},aboutDescriptionLite:{message:"Aide les utilisateurs à obtenir des liens directs pour télécharger depuis plus de 40 sites web, y compris Dailymotion.com, VK.com et d'autres."},aboutSupported:{message:"Ressources prises en charge"},homePage:{message:"Page d'accueil"},optionsTitle:{message:"SaveFrom.net Helper - Préférences"},optionsHandleLinks:{message:"manipuler les liens"},optionsMediaHostings:{message:"Vers l'hébergement de médias"},optionsModules:{message:"Modules"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Masquer les liens"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsBitrate:{message:"Afficher instantanément le bitrate"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"Afficher les astuces pour Ummy Video Downloader"},optionsGmNativeDownload:{message:"Mode de téléchargement avancé"},optionsShowUmmyBtn:{message:"Montrer le bouton Ummy"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Toujours demander où enregistrer les fichiers"},menuDownloadFromCurrentPage:{message:"Téléchargement des fichiers depuis la page actuelle en utilisant SaveFrom.net"},menuUpdateLinks:{message:"Appuyez si le bouton Télécharger n'apparaît pas"},menuDownloadMP3Files:{message:"Télécharger tous les fichiers audio trouvés sur la page actuelle"},menuDownloadPlaylist:{message:"Génère et télécharge la playlist consistant en liens vers les fichiers audio"},menuDownloadPhotos:{message:"Télécharger toutes les images trouvées sur la page actuelle"},menuReportBug:{message:"Prévenez-nous si vous avez des problèmes"},menuShowOptions:{message:"ON/OFF ressources prises en charge et options Helper"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Nous faisons tout pour nous améliorer. N'hésitez pas à nous aider !"},quality:{message:"Qualité"},qualityNote:{message:"La meilleure vidéo disponible sera téléchargée s'il n'y a pas de qualité choisie."},filelistTitle:{message:"La liste des fichiers trouvés"},filelistInstruction:{message:"['Pour télécharger tous les fichiers copiez la liste des liens et collez-la dans ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. Si vous n\\'avez pas installé de gestionnaire de téléchargement, nous vous recommandons d\\'installer ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Playlist"},playlistInstruction:{message:"Pour lire la playlist sauvegardée, ouvrez-la dans le lecteur musical."},ummySfTitle:{message:"HD ou MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Installez Ummy Video Downloader et téléchargez vos vidéos favorites en HD ou MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Download'}}]}},{p:{append:['Après l\\'installation, un téléchargement démarrera automatiquement dès que vous cliquez sur ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Vérifier les paramètres du navigateur"},warningPopupDesc:{message:'L\'option "Toujours me demander où sauvegarder les fichiers" doit être désactivée.'},readMore:{message:"Plus"},noWarning:{message:"ne pas notifier'"},cancel:{message:"Annuler"},continue:{message:"Continuer"},beforeDownloadPopupWarn:{message:"Attention! Le téléchargement ne peut pas être annulé ou suspendu."},vkInfo:{message:"Info"},vkInfoTitle:{message:"Taille de fichier et bitrate"},vkMp3LinksNotFound:{message:"Les liens vers les fichiers MP3 sont introuvables"},vkPhotoLinksNotFound:{message:"Photos introuvables"},vkDownloadPhotoAlbum:{message:"Télécharger l'album"},vkDownloadAllPhotoAlbums:{message:"Télécharger tous les albums"},vkFoundPhotos:{message:"Photos trouvées"},vkNotAvailablePhotos:{message:"%d photos sont temporairement indisponibles"},vkFoundLinks:{message:"Liens trouvés"},vkFoundOf:{message:"de"},vkShowAs:{message:"Afficher comme"},vkListOfLinks:{message:"Liste des liens"},vkListOfLinksInstruction:{message:"['Pour télécharger toutes les photos copiez la liste des liens et collez-la dans ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. Si vous n\\'avez pas installé de gestionnaire de téléchargement nous vous recommandons d\\'installer ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tableau des vignettes"},vkListOfPhotos:{message:"Liste des photos"},vkListOfPhotosInstruction:{message:"Cliquez sur la photo pour la télécharger."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"O"},vkFileSizeKByte:{message:"ko"},vkFileSizeMByte:{message:"Mo"},vkFileSizeGByte:{message:"Go"},vkFileSizeTByte:{message:"To"},vkDownloadFromYoutube:{message:"['Download: open ',{a:{href:'{url}',text:'the video page'}},' et appuyez sur le bouton \"Télécharger\" au-dessus du lecteur']"},vkFoundFiles:{message:"Fichiers trouvés : %d"},shareIn:{message:"Partager sur %w"},socialDesc:{message:"SaveFrom.net helper vous permet de télécharger des fichiers de YouTube.com, Facebook.com, VK.com et plus de 40 autres gratuitement et en un seul clic"},tutorialS1Title:{message:"Bonnes nouvelles !"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}}, ' a été installé avec succès et maintenant vous pouvez télécharger les vidéos de YouTube en un clic']"},tutorialS1Arrow:{message:"['Vous voulez savoir comment ? Cliquez ici']"},tutorialS2Main:{message:'Pour télécharger une vidéo, choisissez un format et cliquez sur le bouton "Télécharger"'},tutorialS3History:{message:"Historique"},tutorialS3Main:{message:"['Voulez-vous télécharger une vidéo depuis l’historique ?', {br:{}}, 'Il suffit de cliquer sur ', {img: {src: '#arrow'}}, ' située sur l\\'aperçu de la vidéo précédemment regardée']"},tutorialS4Main:{message:"['Pas besoin de regarder une vidéo — il suffit de cliquer sur ', {img: {src: '#arrow'}}, ', faites le choix de la qualité, et télécharger. Facile, est-ce pas ?']"},tutorialS5Title:{message:"Profitez de SaveFrom.net Helper !"},tutorialS5Main:{message:"['Vous avez encore des questions ? Vous voulez partager vos idées ? Bienvenue sur notre page ',{a: {text: 'de d’Aide', href: '#support'}},' ou rejoignez-nous sur ', {a: {text: 'Facebook', href: '#fb'}}]"},tutorialTooltipText:{message:"['Il suffit de cliquer sur le bouton pour ',{b: {text: 'télécharger'}}]"},ummyTooltipConfirm:{message:"['Avez-vous déjà installé',{br:{}},{img:{}},' Ummy Video Downloader avant ?']"},yes:{message:"Oui"},no:{message:"Non"},tooltipHide:{message:"Ne plus afficher ce message"}},id:{extName:{message:"Bantuan SaveFrom.net"},extDescription:{message:"Unduh YouTube, Facebook, VK.com, dan 40+ situs dengan satu klik."},extNameLite:{message:"Bantuan SaveFrom.net lite"},extDescriptionLite:{message:"Unduh Facebook, VK.com, dan 40+ situs dengan satu klik."},lang:{message:"id"},titleDefault:{message:"Bantuan SaveFrom.net"},titleDesabled:{message:"Bantuan SaveFrom.net nonaktif"},menuEnable:{message:"Aktifkan"},menuDisable:{message:"Nonaktifkan"},showButton:{message:"Tampilkan tombol ekstensi"},copy:{message:"Salin"},download:{message:"Unduh"},downloadTitle:{message:"Klik tautan sambil menahan tombol Alt/Option atau Ctrl untuk mengunduh file."},noLinksFound:{message:"Tautan tidak ditemukan"},more:{message:"Lainnya"},close:{message:"Tutup"},kbps:{message:"kbps"},withoutAudio:{message:"tanpa audio"},size:{message:"ukuran"},subtitles:{message:"Subtitel"},playlist:{message:"Daftar putar"},filelist:{message:"Daftar file"},downloadWholePlaylist:{message:"Unduh seluruh daftar putar"},getFileSizeTitle:{message:"Dapatkan ukuran file"},getFileSizeFailTitle:{message:"Gagal mendapatkan ukuran file. Mohon coba lagi."},lmButtonTitle:{message:"Dapatkan tautan langsung"},downloadFromCurrentPage:{message:"Buka SaveFrom.net"},updateLinks:{message:"Segarkan tautan"},updateLinksNotification:{message:"Tautan diperbarui"},downloadMP3Files:{message:"Unduh file audio"},downloadPlaylist:{message:"Unduh daftar putar"},downloadPhotos:{message:"Unduh gambar"},installFullVersion:{message:"Pasang versi lengkap"},disable:{message:"Nonaktifkan"},showOptions:{message:"Setelan"},reportBug:{message:"Laporkan bug"},openPoll:{message:"Jadikan lebih baik"},disableModule:{message:"Nonaktifkan di situs web ini"},enableModule:{message:"Aktifkan di situs web ini"},enableDisableModule:{message:"Nyalakan/Matikan di situs ini"},showHideButton:{message:"Tampilkan/tutup tbl ekstensi"},updateTo:{message:"Perbarui ke %d"},aboutPage:{message:"Tentang"},aboutTitle:{message:"Bantuan SaveFrom.net"},aboutVersion:{message:"Versi"},aboutDescription:{message:"Membantu pengguna mendapatkan tautan langsung dari 40+ situs web, termasuk Dailymotion.com, YouTube.com, VK.com dan lain-lain."},aboutDescriptionLite:{message:"Membantu pengguna mendapatkan tautan langsung untuk mengunduh dari 40+ situs web, termasuk Dailymotion.com, VK.com dan lain-lain."},aboutSupported:{message:"Sumber daya yang didukung"},homePage:{message:"Laman beranda"},optionsTitle:{message:"Bantuan SaveFrom.net - Preferensi"},optionsHandleLinks:{message:"Tangani tautan"},optionsMediaHostings:{message:"Ke mediahosting"},optionsModules:{message:"Modul"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Sembunyikan tautan"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsBitrate:{message:"Langsung tampilkan bitrate"},optionsSovetnikEnabled:{message:"Penasihat"},optionsShowUmmyInfo:{message:"Tampilkan tips untuk Ummy Video Downloader"},optionsGmNativeDownload:{message:"Mode unduh lanjutan"},optionsShowUmmyBtn:{message:"Perlihatkan tombol Ummy"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Selalu tanyakan lokasi penyimpanan berkas"},menuDownloadFromCurrentPage:{message:"Unduh file dari laman saat ini dengan SaveFrom.net"},menuUpdateLinks:{message:"Tekan jika tombol Unduh tidak muncul"},menuDownloadMP3Files:{message:"Unduh semua file audio yang ada di laman saat ini"},menuDownloadPlaylist:{message:"Buat dan unduh daftar putar berisi tautan ke file audio"},menuDownloadPhotos:{message:"Unduh semua gambar yang ada di laman saat ini"},menuReportBug:{message:"Beri tahu kami jika Anda mengalami masalah"},menuShowOptions:{message:"AKTIFKAN/NONAKTIFKAN sumber daya yang didukung dan opsi Bantuan"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Kami bekerja keras untuk jadi lebih baik. Tolong, bantu kami!"},quality:{message:"Kualitas"},qualityNote:{message:"Video terbaik yang tersedia akan diunduh jika tidak ada kualitas yang dipilih."},filelistTitle:{message:"Daftar file yang ditemukan"},filelistInstruction:{message:"['Untuk mengunduh semua file, salin daftar tautan dan tempelkan ke ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'pengelola unduhan'}},'. Jika Anda tidak memiliki pengelola unduhan, kami menyarankan ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Daftar putar"},playlistInstruction:{message:"Untuk memutar daftar putar yang disimpan, sekarang bisa dibuka di pemutar musik."},ummySfTitle:{message:"HD atau MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Pasang Ummy Video Downloader  dan unduh video favorit Anda dalam format HD atau MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Unduh'}}]}},{p:{append:['Setelah pemasangan, unduhan akan otomatis dimulai setiap kali Anda mengeklik ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Periksa setelan browser"},warningPopupDesc:{message:'Opsi "Selalu tanya saya di mana menyimpan file" harus dinonaktifkan.'},readMore:{message:"Lainnya"},noWarning:{message:"Jangan beri tahu"},cancel:{message:"Batal"},continue:{message:"Lanjutkan"},beforeDownloadPopupWarn:{message:"Perhatian! Pengunduhan tidak dapat dibatalkan atau ditunda."},vkInfo:{message:"Info"},vkInfoTitle:{message:"Ukuran file dan bitrate"},vkMp3LinksNotFound:{message:"Tautan atau file MP3 tidak ditemukan"},vkPhotoLinksNotFound:{message:"Foto tidak ditemukan"},vkDownloadPhotoAlbum:{message:"Unduh album"},vkDownloadAllPhotoAlbums:{message:"Unduh semua album"},vkFoundPhotos:{message:"Foto ditemukan"},vkNotAvailablePhotos:{message:"%d foto sementara ini tidak tersedia"},vkFoundLinks:{message:"Tautan ditemukan"},vkFoundOf:{message:"dari"},vkShowAs:{message:"Tampilkan sebagai"},vkListOfLinks:{message:"Daftar tautan"},vkListOfLinksInstruction:{message:"['Untuk mengunduh semua foto, salin daftar tautan dan tempelkan ke ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'pengelola unduhan'}},'. Jika Anda tidak memiliki pengelola unduhan, kami menyarankan ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tabel gambar mini"},vkListOfPhotos:{message:"Daftar foto"},vkListOfPhotosInstruction:{message:"Klik foto untuk mengunduhnya."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Mengunduh: buka ',{a:{href:'{url}',text:'laman video'}},' dan tekan tombol \"Unduh\" di atas pemutar']"},vkFoundFiles:{message:"File ditemukan: %d"},shareIn:{message:"Bagikan di %w"},socialDesc:{message:"Dengan bantuan SaveFrom.net, Anda dapat mengunduh file dari YouTube.com, Facebook.com, VK.com, dan lebih dari 40 lainnya hanya dengan satu klik gratis"},tutorialS1Title:{message:"Berita bagus!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}},' telah berhasil diinstal dan kini Anda dapat mengunduh video apa pun dari YouTube dengan satu klik']"},tutorialS1Arrow:{message:"['Anda ingin tahu caranya?', {br:{}}, 'Klik di sini']"},tutorialS2Main:{message:'Untuk mengunduh video, pilih suatu format dan klik tombol "Unduh"'},tutorialS3History:{message:"Riwayat"},tutorialS3Main:{message:"['Apakah Anda ingin mengunduh video dari Riwayat?', {br:{}}, 'Cukup klik ', {img: {src: '#arrow'}}, ' pada pratinjau video yang telah ditonton sebelumnya']"},tutorialS4Main:{message:"['Tidak perlu menonton video — cukup klik pada ', {img: {src: '#arrow'}}, ', pilih mutunya, dan unduh. Cukup mudah, ya?']"},tutorialS5Title:{message:"Nikmati SaveFrom.net Helper!"},tutorialS5Main:{message:"['Masih punya pertanyaan? Ingin berbagi ide? Selamat datang di ', {a: {text: 'halaman dukungan', href: '#support'}},' kami atau bergabunglah dengan kami di ', {a: {text: 'Facebook', href: '#fb'}}]"},tutorialTooltipText:{message:"['Cukup klik tombol untuk ',{b: {text: 'mengunduh'}}]"},ummyTooltipConfirm:{message:"['Apakah Anda sudah menginstal',{br:{}},{img:{}},' Ummy Video Downloader sebelumnya?']"},yes:{message:"Ya"},no:{message:"Tidak"},tooltipHide:{message:"Jangan perlihatkan pesan ini lagi"}},ru:{extName:{message:"SaveFrom.net помощник"},extDescription:{message:"Скачивайте с Вконтакте, YouTube, Одноклассники и еще 40 сайтов за 1 клик."},extNameLite:{message:"SaveFrom.net помощник lite"},extDescriptionLite:{message:"Скачивайте с Вконтакте, Одноклассники и еще 40 сайтов за 1 клик."},lang:{message:"ru"},titleDefault:{message:"SaveFrom.net помощник"},titleDesabled:{message:"SaveFrom.net помощник выключен"},menuEnable:{message:"Включить"},menuDisable:{message:"Выключить"},showButton:{message:"Показывать кнопку расширения"},copy:{message:"Копировать"},download:{message:"Скачать"},downloadTitle:{message:"Нажмите на ссылку, удерживая клавишу Alt или Ctrl, чтобы сохранить файл."},noLinksFound:{message:"Не удалось найти ссылки"},more:{message:"Ещё"},close:{message:"Закрыть"},kbps:{message:"кб/с"},withoutAudio:{message:"без аудио"},size:{message:"размер"},subtitles:{message:"Субтитры"},playlist:{message:"Плейлист"},filelist:{message:"Список файлов"},downloadWholePlaylist:{message:"Скачать весь плейлист"},getFileSizeTitle:{message:"Определить размер файла"},getFileSizeFailTitle:{message:"Не удалось определить размер файла. Попробуйте повторить попытку."},lmButtonTitle:{message:"Получи прямую ссылку"},downloadFromCurrentPage:{message:"Перейти на SaveFrom.net"},updateLinks:{message:"Обновить ссылки"},updateLinksNotification:{message:"Ссылки обновлены"},downloadMP3Files:{message:"Скачать аудио файлы"},downloadPlaylist:{message:"Скачать плейлист"},downloadPhotos:{message:"Скачать фотографии"},installFullVersion:{message:"Установить полную версию"},disable:{message:"Выключить"},showOptions:{message:"Настройки"},reportBug:{message:"Сообщить об ошибке"},openPoll:{message:"Стать лучше"},disableModule:{message:"Отключить на этом сайте"},enableModule:{message:"Включить на этом сайте"},enableDisableModule:{message:"Вкл/Выкл на этом сайте"},showHideButton:{message:"Показ./скр. кнопку расширения"},updateTo:{message:"Обновить до %d"},aboutPage:{message:"О расширении"},aboutTitle:{message:"SaveFrom.net помощник"},aboutVersion:{message:"Версия"},aboutDescription:{message:"Позволяет получать прямые ссылки для скачивания с более чем 40 сайтов, среди которых  VK.com, YouTube.com и другие."},aboutDescriptionLite:{message:"Позволяет получать прямые ссылки для скачивания с более чем 40 сайтов, среди которых  VK.com, Vimeo и другие."},aboutSupported:{message:"Поддерживаемые ресурсы"},homePage:{message:"Домашняя страница"},optionsTitle:{message:"SaveFrom.net помощник - Настройки"},optionsHandleLinks:{message:"Обрабатывать ссылки"},optionsMediaHostings:{message:"На медиахостинги"},optionsModules:{message:"Модули"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Скрывать ссылки"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"Вконтакте"},optionsOdnoklassniki:{message:"Одноклассники"},optionsMailru:{message:"Мой мир"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsBitrate:{message:"Показывать битрейт сразу"},optionsSovetnikEnabled:{message:"Советник"},optionsShowUmmyInfo:{message:"Показывать подсказки для Ummy Video Downloader"},optionsGmNativeDownload:{message:"Расширенный режим закачки"},optionsShowUmmyBtn:{message:"Отображать кнопку Ummy"},optionsAviaBarEnabled:{message:"Советник Дешевых Авиабилетов"},optionsSaveAsDialog:{message:"Всегда выдавать запрос на сохранение файлов"},menuDownloadFromCurrentPage:{message:"Скачать файлы с текущей страницы с помощью сервиса SaveFrom.net"},menuUpdateLinks:{message:"Нажмите, если ссылка для скачивания не появляется"},menuDownloadMP3Files:{message:"Скачать все найденные на странице аудиофайлы"},menuDownloadPlaylist:{message:"Формирует и скачивает плейлист с ссылками на аудиофайлы"},menuDownloadPhotos:{message:"Скачать все найденные на странице фотографии"},menuReportBug:{message:"Дайте нам знать, если возникли проблемы"},menuShowOptions:{message:"Вкл./откл. поддерживаемые ресурсы и возможности помощника"},menuEnableExtension:{message:""},menuOpenPoll:{message:'Пожалуйста, оцените качество расширения "SaveFrom.net помощник"'},quality:{message:"Качество"},qualityNote:{message:"Если видео в нужном качестве нет, скачается лучшее из возможного."},filelistTitle:{message:"Список найденных файлов"},filelistInstruction:{message:"['Чтобы скачать все файлы, скопируйте список ссылок и вставьте его в ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер закачек'}},'. Если у вас не установлен менеджер закачек, рекомендуем установить ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},playlistTitle:{message:"Плейлист"},playlistInstruction:{message:"Сохраненный плейлист можно открыть в плеере для  воспроизведения."},ummySfTitle:{message:"HD или MP3"},ummyMenuItem:{message:"[{span:{}},' с помощью Ummy']"},ummyMenuInfo:{message:"[{p:{append:['Скачивайте HD и MP3 с помощью бесплатной программы', {br:{}}, 'Ummy Video Downloader!']}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Установить'}}]}},{p:{append:['После установки скачивание будет начинаться автоматически', {br:{}}, 'при клике на ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Проверьте настройки браузера"},warningPopupDesc:{message:"Выбор папки при скачивании должен быть отключен."},readMore:{message:"Подробнее..."},noWarning:{message:"Не предупреждать"},cancel:{message:"Отмена"},continue:{message:"Продолжить"},beforeDownloadPopupWarn:{message:"Внимание: отменить или приостановить закачку будет невозможно."},vkInfo:{message:"Параметры"},vkInfoTitle:{message:"Размер файла и битрейт"},vkMp3LinksNotFound:{message:"Не найдены ссылки на MP3 файлы"},vkPhotoLinksNotFound:{message:"Не найдены ссылки на фотографии"},vkDownloadPhotoAlbum:{message:"Скачать альбом"},vkDownloadAllPhotoAlbums:{message:"Скачать все альбомы"},vkFoundPhotos:{message:"Найдено фотографий"},vkNotAvailablePhotos:{message:"%d фото временно не доступно"},vkFoundLinks:{message:"Найдено ссылок"},vkFoundOf:{message:"из"},vkShowAs:{message:"Показать как"},vkListOfLinks:{message:"Список ссылок"},vkListOfLinksInstruction:{message:"['Чтобы скачать все фотографии, скопируйте список ссылок и вставьте его в ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер закачек'}},'. Если у вас не установлен менеджер закачек, рекомендуем установить ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},vkTableOfThumbnails:{message:"Таблицу эскизов"},vkListOfPhotos:{message:"Список фотографий"},vkListOfPhotosInstruction:{message:"Чтобы скачать фотографию, щелкните на ней левой кнопкой мыши."},vkKbps:{message:"кб/с"},vkFileSizeByte:{message:"Б"},vkFileSizeKByte:{message:"кБ"},vkFileSizeMByte:{message:"МБ"},vkFileSizeGByte:{message:"ГБ"},vkFileSizeTByte:{message:"ТБ"},vkDownloadFromYoutube:{message:"['Скачать: откройте ',{a:{href:'{url}',text:'страницу видео ролика'}},' и нажмите кнопку \"Скачать\" над плеером']"},vkFoundFiles:{message:"Найдено файлов: %d"},shareIn:{message:"Поделиться в %w"},socialDesc:{message:"SaveFrom.net помощник помогает бесплатно скачивать с VK.com, YouTube.com, Odnoklassniki.ru и более 40 других сайтов в 1 клик"},tutorialS1Title:{message:"Хорошие новости!"},tutorialS1Main:{message:"['У тебя установлен SaveFrom.net помощник ',{img: {src: '#logo'}},', и теперь ты можешь скачать любое видео с YouTube в один клик']"},tutorialS1Arrow:{message:"['Хочешь узнать как?',{br:{}},'Нажми здесь']"},tutorialS2Main:{message:'Чтобы скачать видео, выбери формат и нажми кнопку "Скачать"'},tutorialS3History:{message:"Просмотренные"},tutorialS3Main:{message:"['Хочешь скачать уже просмотренное видео?',{br:{}},'Нажимай на ', {img: {src: '#arrow'}},' на превью в Просмотренных видео']"},tutorialS4Main:{message:"['Видео не обязательно просматривать —',{br:{}},'нажимай на ', {img: {src: '#arrow'}},', выбирай формат и скачивай. Это удобно!']"},tutorialS5Title:{message:"Приятной работы!"},tutorialS5Main:{message:"['Остались вопросы? Есть предложения? Загляните на ', {a: {text: 'страницу поддержки', href: '#support'}},' или вступайте в наше ', {a: {text: 'ВК-собщество', href: '#vk'}}]"},tutorialTooltipText:{message:"['Чтобы ',{b: {text: 'скачать'}},', просто кликните по кнопке']"},ummyTooltipConfirm:{message:"['Вы уже установили',{br:{}},{img:{}},' Ummy Video Downloader?']"},yes:{message:"Да"},no:{message:"Нет"},tooltipHide:{message:"Больше не показывать это сообщение"}},tr:{extName:{message:"SaveFrom.net asistan"},extDescription:{message:"Sadece bir tıklama ile YouTube, Facebook, VK.com ve 40'dan fazla siteden dosya indirin."},extNameLite:{message:"SaveFrom.net asistan lite"},extDescriptionLite:{message:"Sadece bir tıklama ile Facebook, VK.com ve 40'dan fazla siteden dosya indirin"},lang:{message:"tr"},titleDefault:{message:"SaveFrom.net asistan"},titleDesabled:{message:"SaveFrom.net asistan devre dışı"},menuEnable:{message:"Etkin"},menuDisable:{message:"Devre dışı"},showButton:{message:"Eklenti düğmesini göster"},copy:{message:"Kopyala"},download:{message:"İndir"},downloadTitle:{message:"Dosyayı indirmek için Alt/Option veya Ctrl tuşuna basılı tutarak bağlantıyı tıklayın."},noLinksFound:{message:"Hiçbir bağlantı bulunamadı"},more:{message:"Daha fazla"},close:{message:"Kapat"},kbps:{message:"kbps"},withoutAudio:{message:"without audio"},size:{message:"boyut"},subtitles:{message:"Alt yazı"},playlist:{message:"Çalma listesi"},filelist:{message:"Dosya listesi"},downloadWholePlaylist:{message:"Tüm çalma listesini indir"},getFileSizeTitle:{message:"Dosya boyutunu al"},getFileSizeFailTitle:{message:"Dosya boyutu alınamadı. Lütfen tekrar deneyiniz."},lmButtonTitle:{message:"Doğrudan bağlantı al"},downloadFromCurrentPage:{message:"SaveFrom.net'e git"},updateLinks:{message:"Bağlantıları yenile"},updateLinksNotification:{message:"Bağlantılar güncellendi"},downloadMP3Files:{message:"Ses dosyalarını indir"},downloadPlaylist:{message:"Çalma listesini indir"},downloadPhotos:{message:"Resimleri indir"},installFullVersion:{message:"Tam versiyonu kur"},disable:{message:"Devre dışı"},showOptions:{message:"Ayarlar"},reportBug:{message:"Hata bildir"},openPoll:{message:"Become better"},disableModule:{message:"Bu web sitesinde devre dışı bırak"},enableModule:{message:"Bu web sitesinde etkinleştir"},enableDisableModule:{message:"Bu sitede etkin/devre dışı"},showHideButton:{message:"Eklenti butonunu göster/gizle"},updateTo:{message:"%d sürümüne güncelle"},aboutPage:{message:"Hakkında"},aboutTitle:{message:"SaveFrom.net Asistan"},aboutVersion:{message:"Versiyon"},aboutDescription:{message:"Kullanıcıların, Dailymotion.com, YouTube.com, VK.com ve diğerleri de dahil olmak üzere 40'dan fazla web sitesinden dosya indirmek için doğrudan bağlantılar almalarını sağlar."},aboutDescriptionLite:{message:"Kullanıcıların, Dailymotion.com, VK.com ve diğerleri de dahil olmak üzere 40'dan fazla web sitesinden dosya indirmek için doğrudan bağlantılar almalarını sağlar."},aboutSupported:{message:"Desteklenen kaynaklar"},homePage:{message:"Ana Sayfa"},optionsTitle:{message:"SaveFrom.net Asistan - Tercihler"},optionsHandleLinks:{message:"Linkleri taşı"},optionsMediaHostings:{message:"Medya paylaşıma"},optionsModules:{message:"Modüller"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Bağlantıları gizle"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsBitrate:{message:"Bit hızını anlık olarak göster"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"UVD için ipuçlarını göster"},optionsGmNativeDownload:{message:"Gelişmiş indirme modu"},optionsShowUmmyBtn:{message:"Ummy düğmesini göster"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Dosyaların nereye kaydedileceğini her seferinde sor"},menuDownloadFromCurrentPage:{message:"SaveFrom.net'i kullanarak geçerli sayfadan dosya indirin"},menuUpdateLinks:{message:"Download düğmesi görünmüyorsa tıklayın"},menuDownloadMP3Files:{message:"Geçerli sayfada bulunan tüm ses dosyalarını indirin"},menuDownloadPlaylist:{message:"Ses dosyalarından oluşan bir çalma listesi oluşturur ve indirir"},menuDownloadPhotos:{message:"Geçerli sayfada bulunan tüm resimleri indirin"},menuReportBug:{message:"Herhangi bir sorun olması durumunda bize bildirin"},menuShowOptions:{message:"Desteklenen kaynakları ve Helper seçeneklerini AÇ/KAPAT"},menuEnableExtension:{message:""},menuOpenPoll:{message:""},quality:{message:"Kalite"},qualityNote:{message:"Herhangi bir seçilebilir kalitenin olmaması durumunda mevcut olan en iyi video indirilecektir."},filelistTitle:{message:"Bulunan dosyalarını listesi"},filelistInstruction:{message:"['Tüm dosyalarını indirmek için bağlantı listesini kopyalayın ve ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'indirme yöneticisine'}},' yapıştırın. Kurulu bir indirme yöneticiniz yoksa ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},' yüklemenizi tavsiye ederiz.']"},playlistTitle:{message:"Çalma Listesi"},playlistInstruction:{message:"Artık kaydedilen çalma listenizi yürütmek için müzik çalarınızda açabilirsiniz."},ummySfTitle:{message:"HD veya MP3"},ummyMenuItem:{message:"['Ummy ile ',{span:{}}]"},ummyMenuInfo:{message:"[{p:{text:'Ummy Video İndirici\\'yi yükleyin ve en sevdiğiniz HD videoları ya da MP3\\'leri hemen indirin.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'İndir'}}]}},{p:{append:['Kurulumdan sonra ',{img:{src:'#'}},' simgesine tıklayarak dosya indirme işlemini otomatik olarak başlatabilirsiniz.']}}]"},warningPopupTitle:{message:"Tarayıcı ayarlarını kontrol edin"},warningPopupDesc:{message:'"Dosyaların nereye kaydedileceğini her seferinde sor" seçeneği kapalı olmalıdır.'},readMore:{message:"Daha fazla"},noWarning:{message:"Bildirme"},cancel:{message:"İptal"},continue:{message:"Devam"},beforeDownloadPopupWarn:{message:"Uyarı! İndirme işlemi iptal edilemez ya da ertelenemez."},vkInfo:{message:"Bilgi"},vkInfoTitle:{message:"Dosya boyutu ve bit hızı"},vkMp3LinksNotFound:{message:"MP3 dosyaları için bağlantılar bulunamıyor"},vkPhotoLinksNotFound:{message:"Fotoğraflar bulunamadı"},vkDownloadPhotoAlbum:{message:"Albümü indir"},vkDownloadAllPhotoAlbums:{message:"Tüm albümleri indir"},vkFoundPhotos:{message:"Bulunan fotoğraflar"},vkNotAvailablePhotos:{message:"%d resim geçici olarak kullanılamıyor"},vkFoundLinks:{message:"Bulunan bağlantılar"},vkFoundOf:{message:"den"},vkShowAs:{message:"Olarak göster"},vkListOfLinks:{message:"Bağlantı listesi"},vkListOfLinksInstruction:{message:"['Tüm fotoğrafları indirmek için bağlantı listesini kopyalayın ve ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'indirme yöneticisine'}},' yapıştırın. Kurulu bir indirme yöneticiniz yoksa ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},' yüklemenizi tavsiye ederiz.']"},vkTableOfThumbnails:{message:"Küçükk resimler tablosu"},vkListOfPhotos:{message:"Fotoğraf listesi"},vkListOfPhotosInstruction:{message:"İndirmek için fotoğrafın üzerine tıklayın."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['İndirme: ',{a:{href:'{url}',text:'video sayfasını'}},' açın ve oynatıcı üzerindeki \"İndir\" dümesine basın']"},vkFoundFiles:{message:"Bulunan dosyalar: %d"},shareIn:{message:"%w üzerinden paylaş"},socialDesc:{message:"SaveFrom.net Helper, sadece bir tıklama ile YouTube.com, Facebook.com, VK.com ve 40'dan fazla siteden ücretsiz olarak dosya indirmenizi sağlar."},tutorialS1Title:{message:"Size harika bir haberimiz var!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}}, ' başarıyla kuruldu. Artık tek bir tıklama ile YouTube\\'dan istediğiniz videoyu indirebilirsiniz']"},tutorialS1Arrow:{message:"['Nasıl olduğunu öğrenmek ister misiniz? Buraya tıklayın']"},tutorialS2Main:{message:'Sadece indirmek istediğiniz videonun formatını seçin ve "İndir" butonuna tıklayın'},tutorialS3History:{message:"Geçmiş"},tutorialS3Main:{message:"['Web geçmişinizdeki videoları indirmek ister misiniz?', {br:{}}, ' Sadece daha önce izlediğiniz bir videonun önizlemesi üzerindeki ', {img: {src: '#arrow'}}, ' simgesine tıklayın']"},tutorialS4Main:{message:"['Videoları izlemenize gerek yok — sadece ', {img: {src: '#arrow'}}, ' simgesine tıklayın, kalite değerini seçin ve anında indirin. Oldukça kolay, değil mi?']"},tutorialS5Title:{message:"Hemen SaveFrom.net Helper'in keyfini çıkarmaya başlayın!"},tutorialS5Main:{message:"['Hala kafanıza takılan sorular mı var? Düşüncelerinizi paylaşmak mı istiyorsunuz? ',{a: {text: 'Destek sayfamızı', href: '#support'}},' ziyaret edin veya ',{a: {text: 'Facebook', href: '#fb'}},' topluluğumuza katılın']"},tutorialTooltipText:{message:"[{b: {text: 'İndirmek'}}, ' için sadece butona tıklayın']"},ummyTooltipConfirm:{message:"[{img:{}},' Ummy Video Downloader programını daha önce yüklediniz mi?']"},yes:{message:"Evet"},no:{message:"Hayır"},tooltipHide:{message:"Bu mesajı tekrar gösterme"}},uk:{extName:{message:"SaveFrom.net помічник"},extDescription:{message:"Завантажуйте з «ВКонтакте», YouTube, Facebook і ще 40 сайтів за 1 клік."},extNameLite:{message:"SaveFrom.net помічник lite"},extDescriptionLite:{message:"Завантажуйте з «ВКонтакте», YouTube, Facebook і ще 40 сайтів за 1 клік."},lang:{message:"uk"},titleDefault:{message:"SaveFrom.net помічник"},titleDesabled:{message:"SaveFrom.net помічник вимкнений"},menuEnable:{message:"Увімкнути"},menuDisable:{message:"Вимкнути"},showButton:{message:"Показувати кнопку розширення"},copy:{message:"Копіювати"},download:{message:"Завантажити"},downloadTitle:{message:"Натисніть на посилання, утримуючи клавішу Alt чи Ctrl, щоб зберегти файл."},noLinksFound:{message:"Не вдалося знайти посилання"},more:{message:"Ще"},close:{message:"Закрити"},kbps:{message:"кб/с"},withoutAudio:{message:"без аудіо"},size:{message:"розмір"},subtitles:{message:"Субтитри"},playlist:{message:"Плейліст"},filelist:{message:"Список файлів"},downloadWholePlaylist:{message:"Завантажити весь плейліст"},getFileSizeTitle:{message:"Визначити розмір файлу"},getFileSizeFailTitle:{message:"Не вдалося визначити розмір файлу. Спробуйте ще раз."},lmButtonTitle:{message:"Отримай пряме посилання"},downloadFromCurrentPage:{message:"Перейти на SaveFrom.net"},updateLinks:{message:"Відновити посилання"},updateLinksNotification:{message:"Посилання оновлені"},downloadMP3Files:{message:"Скачати аудіо файли"},downloadPlaylist:{message:"Скачати плейлист"},downloadPhotos:{message:"Скачати фотографії"},installFullVersion:{message:"Встановити повну версію"},disable:{message:"Вимкнути"},showOptions:{message:"Налаштування"},reportBug:{message:"Повідомити про помилку"},openPoll:{message:"Стати краще"},disableModule:{message:"Вимкнути на цьому сайті"},enableModule:{message:"Увімкнути на цьому сайті"},enableDisableModule:{message:"Вкл./вимк. на цьому сайті"},showHideButton:{message:"Показ./скр. кнопку розширення"},updateTo:{message:"Оновити до %d"},aboutPage:{message:"Про розширення"},aboutTitle:{message:"SaveFrom.net помічник"},aboutVersion:{message:"Версія"},aboutDescription:{message:"Дозволяє отримувати прямі посилання для завантаження з понад 40 сайтів, серед яких VK.com, YouTube.com та інші."},aboutDescriptionLite:{message:"Дозволяє отримувати прямі посилання для завантаження з понад 40 сайтів, серед яких VK.com та інші."},aboutSupported:{message:"Ресурси, які підтримуються"},homePage:{message:"Домашня сторінка"},optionsTitle:{message:"SaveFrom.net помічник - Налаштування"},optionsHandleLinks:{message:"Обробляти посилання"},optionsMediaHostings:{message:"На медіахостинги"},optionsModules:{message:"Модулі"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Сховати посилання"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"ВКонтакте"},optionsOdnoklassniki:{message:"Одноклассники"},optionsMailru:{message:"Мой мир"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsBitrate:{message:"Показувати бітрейт одразу"},optionsSovetnikEnabled:{message:"Порадник"},optionsShowUmmyInfo:{message:"Показувати підказки для Ummy Video Downloader"},optionsGmNativeDownload:{message:"Розширений режим закачування"},optionsShowUmmyBtn:{message:"Відображати кнопку Ummy"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Завжди запитувати де зберегти файли"},menuDownloadFromCurrentPage:{message:"Завантажити файли з поточної сторінки за допомогою сервісу SaveFrom.net"},menuUpdateLinks:{message:"Натисніть, якщо посилання для скачування не з'являється"},menuDownloadMP3Files:{message:"Завантажити всі знайдені на сторінці аудіофайли"},menuDownloadPlaylist:{message:"Формує та завантажує плейлист з посиланнями на аудіофайли"},menuDownloadPhotos:{message:"Завантажити всі знайдені на сторінці фотографії"},menuReportBug:{message:"Дайте нам знати, якщо виникли проблеми"},menuShowOptions:{message:"Вкл. / Вимк. підтримувані ресурси і можливості помічника"},menuEnableExtension:{message:""},menuOpenPoll:{message:'Будь ласка, оцініть якість розширення "SaveFrom.net помічник"'},quality:{message:"Якість"},qualityNote:{message:"Якщо відео в потрібній якості немає, скачається найкраще з можливого."},filelistTitle:{message:"Список знайдених файлів"},filelistInstruction:{message:"['Щоб завантажити усі файли, скопіюйте список посилань і вставте його у ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер завантажень'}},'. Якщо у вас не встановлений менеджер завантажень, рекомендуємо встановити ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},playlistTitle:{message:"Плейліст"},playlistInstruction:{message:"Збережений плейліст можна відкрити у плеєрі для відтворення."},ummySfTitle:{message:"HD або MP3"},ummyMenuItem:{message:"[{span:{}},' з домомогою Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Встановіть безкоштовний Ummy Video Downloader і завантажуйте свої улюблені відео в HD або в MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'СКАЧАТИ'}}]}},{p:{append:['Після встановлення при кліці на ',{img:{src:'#'}},' закачка буде починатися автоматично.']}}]"},warningPopupTitle:{message:"Перевірте налаштування браузера"},warningPopupDesc:{message:"Вибір папки при скачуванні повинен бути відключений."},readMore:{message:"Детальніше..."},noWarning:{message:"Не попереджати"},cancel:{message:"Скасування"},continue:{message:"Продовжити"},beforeDownloadPopupWarn:{message:"Увага: скасувати або призупинити завантаження буде неможливо."},vkInfo:{message:"Параметри"},vkInfoTitle:{message:"Розмір файлу і бітрейт"},vkMp3LinksNotFound:{message:"Не знайдено посилань на MP3-файли"},vkPhotoLinksNotFound:{message:"Не знайдено посилань на фотографії"},vkDownloadPhotoAlbum:{message:"Завантажити альбом"},vkDownloadAllPhotoAlbums:{message:"Завантажити усі альбоми"},vkFoundPhotos:{message:"Знайдено фотографій"},vkNotAvailablePhotos:{message:"%d фото тимчасово недоступно"},vkFoundLinks:{message:"Знайдено посилань"},vkFoundOf:{message:"з"},vkShowAs:{message:"Показати як"},vkListOfLinks:{message:"Список посилань"},vkListOfLinksInstruction:{message:"['Щоб завантажити усі фотографії, скопіюйте список посилань і вставте його у ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер завантажень'}},'. Якщо у вас не встановлений менеджер завантажень, рекомендуємо встановити ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},vkTableOfThumbnails:{message:"Таблицю ескізів"},vkListOfPhotos:{message:"Список фотографій"},vkListOfPhotosInstruction:{message:"Щоб завантажити фотографію, натисніть на неї лівою кнопкою миші."},vkKbps:{message:"кб/с"},vkFileSizeByte:{message:"Б"},vkFileSizeKByte:{message:"кБ"},vkFileSizeMByte:{message:"МБ"},vkFileSizeGByte:{message:"ГБ"},vkFileSizeTByte:{message:"ТБ"},vkDownloadFromYoutube:{message:"['Завантажити: відкрийте ',{a:{href:'{url}',text:'сторінку відео-ролика'}},' і натисніть кнопку \"Завантажити\" над плеєром']"},vkFoundFiles:{message:"Знайдено файлів: %d"},shareIn:{message:"Поділитися в %w"},socialDesc:{message:"SaveFrom.net помічник дає вам можливість безкоштовно завантажувати файли з YouTube.com, Facebook.com, VK.com та більше 40 інших сайтів лише одним кліком"},tutorialS1Title:{message:"Добрі новини!"},tutorialS1Main:{message:"['У тебе встановлений SaveFrom.net помічник ',{img: {src: '#logo'}}, ', і тепер ти можеш завантажити будь-яке відео з YouTube в один клік']"},tutorialS1Arrow:{message:"['Прагнеш довідатися як?', {br:{}}, 'Натисни тут']"},tutorialS2Main:{message:'Щоб завантажити відео, оберіть формат і натисни кнопку "Завантажити"'},tutorialS3History:{message:"Переглянуті"},tutorialS3Main:{message:"['Хочеш скачати вже переглянуте відео?', {br:{}}, 'Натискай на ', {img: {src: '#arrow'}}, ' на превью в переглянутих відео']"},tutorialS4Main:{message:"['Відео не обов\\'язково переглядати —', {br:{}}, 'натискай на ', {img: {src: '#arrow'}}, ', обирай формат і скачуй. Це зручно!']"},tutorialS5Title:{message:"Приємної роботи!"},tutorialS5Main:{message:"['Залишилися питання? Є пропозиції? Загляньте на ',{a: {text: 'сторінку підтримки', href: '#support'}},' або вступайте до нашої ', {a: {text: 'ВК-спільноти', href: '#vk'}}]"},tutorialTooltipText:{message:"['Щоб ',{b: {text: 'скачати'}},', просто клікніть по кнопці']"},ummyTooltipConfirm:{message:"['Ви вже встановили',{br:{}},{img:{}},' Ummy Video Downloader?']"},yes:{message:"Так"},no:{message:"Ні"},tooltipHide:{message:"Більше не показувати це повідомлення"}}},e}return J(n,e),Object(F.a)(n,[{key:"getLocale",value:function(){var e=Object(ie.default)(),t=re(e.join(","),x()(this.localeMap)),n=null;return t&&(n=this.localeMap[t[0]]),n||(n=this.localeMap[this.defaultLocale]),n}}]),n}()},se=n(14),le=Object(se.default)("mono:router"),ue=function(e){function t(){var e;return Object(T.a)(this,t),(e=_(this,V(t).call(this))).monoInstances=[],e.contentScripts=[{matches:"^(?:https?|file|ftp)://[^\\/]*\\.vimeo\\.com/.*$|^(?:https?|file|ftp)://vimeo\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,1]},{matches:"^(?:https?|file|ftp)://[^\\/]*/.*$",include_globs:"^http://dailymotion\\.[^\\/]*/.*$|^http://[^\\/]*\\.dailymotion\\.[^\\/]*/.*$|^https://dailymotion\\.[^\\/]*/.*$|^https://[^\\/]*\\.dailymotion\\.[^\\/]*/.*$",run_at:"document_end",all_frames:!0,js:[0,2]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.youtube\\.com/.*$|^(?:https?|file|ftp)://youtube\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,3]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.soundcloud\\.com/.*$|^(?:https?|file|ftp)://soundcloud\\.com/.*$",run_at:"document_end",js:[0,4]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.vk\\.com/.*$|^(?:https?|file|ftp)://vk\\.com/.*$|^(?:https?|file|ftp)://[^\\/]*\\.vkontakte\\.ru/.*$|^(?:https?|file|ftp)://vkontakte\\.ru/.*$",run_at:"document_end",all_frames:!0,js:[0,5]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.ok\\.ru/.*$|^(?:https?|file|ftp)://ok\\.ru/.*$|^(?:https?|file|ftp)://[^\\/]*\\.odnoklassniki\\.ru/.*$|^(?:https?|file|ftp)://odnoklassniki\\.ru/.*$",run_at:"document_end",js:[0,6]},{matches:"^(?:https?|file|ftp)://my\\.mail\\.ru/.*$",run_at:"document_end",js:[0,7]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.facebook\\.com/.*$|^(?:https?|file|ftp)://facebook\\.com/.*$",run_at:"document_end",js:[0,8]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.savefrom\\.net/.*$|^(?:https?|file|ftp)://savefrom\\.net/.*$",run_at:"document_end",js:[0,9]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.instagram\\.com/.*$|^(?:https?|file|ftp)://instagram\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,10]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.rutube\\.ru/.*$|^(?:https?|file|ftp)://rutube\\.ru/.*$",run_at:"document_end",all_frames:!0,js:[0,11]},{matches:"^(?:https?|file|ftp)://[^\\/]*/.*$",run_at:"document_end",js:[12]}],e.contentScriptMap={"includes/commons.js":0,"includes/vimeo_com.js":1,"includes/dailymotion_com.js":2,"includes/youtube_com.js":3,"includes/soundcloud_com.js":4,"includes/vkontakte_ru.js":5,"includes/odnoklassniki_ru.js":6,"includes/mail_ru.js":7,"includes/facebook_com.js":8,"includes/savefrom_net.js":9,"includes/instagram_com.js":10,"includes/rutube_ru.js":11,"includes/tab.js":12,"includes/aliradar.js":13,"includes/aviaBar.js":14,"includes/fsStat.js":15,"includes/link_modifier.js":16,"includes/pricevisor.js":17,"includes/promoBar.js":18,"includes/sovetnik-sf.js":19,"includes/swStat.js":20},e.contentScriptIndex=[function(e){!window.savefromContentScriptWebpackJsonp&&(window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[]).push([[0],[function(t,n,o){o.r(n);var i=e;n.default=i},function(e,t){e.exports=n(21)},function(e,t){e.exports=n(24)},function(e,t){e.exports=n(34)},function(e,t){e.exports=n(75)},function(e,t,n){n.d(t,"b",function(){return a});var o=n(0),i=[],r=function(e,t,n){return A.a.resolve().then(function(){return!n||n()}).then(function(n){n&&(-1===i.indexOf(e)&&i.push(e),t())})},a=function(e,t,n){return r(e,function(){return o.default.callFn("getPreferences").then(function(n){t(e,{preferences:n})})},n)};t.a=r},function(e,t){e.exports=n(179)},function(e,t){e.exports=n(180)},function(e,t){e.exports=n(73)},function(e,t){e.exports=n(45)},function(e,t,n){var o=n(0),r=n(31),s=n.n(r),l=n(32),u=n.n(l),d=n(4),c=n.n(d),f=n(9),p=n.n(f),m=n(7),h=n.n(m),v=n(21),y=n.n(v),w=n(2),S=n.n(w),C=n(33),L=n.n(C),M=n(1),I=n.n(M),O=n(19),P=n.n(O),T=n(3),F=n.n(T),E=n(15),N=n(13),D=n.n(N),B=n(28),R=n(24),_=n.n(R),q=n(22),j=n.n(q),z=n(20),U=D()("components"),V=null,H={downloadParam:"sfh--download",setStyle:function(e,t){if(e&&t)for(var n in t)e.style[n]=t[n]},getStyle:function(e,t){return e&&window.getComputedStyle&&window.getComputedStyle(e,null).getPropertyValue(t)},addStyleRules:function(e,t,n){var o=n?document.querySelector("#savefrom-styles."+n):document.getElementById("savefrom-styles");if(!o){(o=document.createElement("style")).id="savefrom-styles",n&&o.classList.add(n);var i=document.querySelector("head style");i?i.parentNode.insertBefore(o,i):document.querySelector("head").appendChild(o)}if("object"==typeof t){var r=[];for(var a in t)r.push(a+":"+t[a]);t=r.join(";")}o.textContent+=e+"{"+t+"}"},getPosition:function(e,t){var n=e.getBoundingClientRect();if(t){var o=t.getBoundingClientRect();return{top:Math.round(n.top-o.top),left:Math.round(n.left-o.left),width:n.width,height:n.height}}return{top:Math.round(n.top+window.pageYOffset),left:Math.round(n.left+window.pageXOffset),width:n.width,height:n.height}},getSize:function(e){return{width:e.offsetWidth,height:e.offsetHeight}},getMatchFirst:function(e,t){var n=e.match(t);return n&&n.length>1?n[1]:""},getElementByIds:function(e){for(var t=0;t<e.length;t++){var n=document.getElementById(e[t]);if(n)return n}return null},getParentByClass:function(e,t){if(!e||""==t)return!1;var n;if("object"==typeof t&&t.length>0)for(n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;for(var o=0;o<t.length;o++)if(n.classList.contains(t[o]))return n}else for(n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;if(n.classList.contains(t))return n}return null},getParentByTagName:function(e,t){if(!e||!t)return!1;for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;if(n.tagName===t)return n}return null},getParentById:function(e,t){for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;if(n.id===t)return n}return null},hasChildrenTagName:function(e,t){for(var n,o=0;n=e.childNodes[o];o++)if(1===n.nodeType&&n.tagName===t)return!0;return!1},isParent:function(e,t){return!(!t||-1===[1,9,11].indexOf(t.nodeType))&&t.contains(e)},emptyNode:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},download:function(e,t,n,i){if(!t)return!1;if(!(e=e||this.getFileName(t)))return!1;if(!V.preferences.downloads)return!1;var r=n||{};return r.url=t,r.filename=e,i=i||void 0,o.default.sendMessage({action:"downloadFile",options:r},i),!0},downloadList:{showDownloadWarningPopup:function(e,t){var n=H.playlist.getInfoPopupTemplate();o.default.sendMessage({action:"getWarningIcon",type:t},function(e){n.icon.style.backgroundImage="url("+e+")"}),I.a.create(n.textContainer,{append:[I.a.create("p",{text:o.default.i18n.getMessage("warningPopupTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),I.a.create("p",{text:o.default.i18n.getMessage("warningPopupDesc")+" ",style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"},append:I.a.create("a",{href:"ru"===o.default.i18n.getMessage("lang")||"uk"===o.default.i18n.getMessage("lang")?"http://vk.com/page-55689929_49003549":"http://vk.com/page-55689929_49004259",text:o.default.i18n.getMessage("readMore"),target:"_blank",style:{color:"#4A90E2"}})}),I.a.create("p",{style:{marginBottom:"13px"},append:[I.a.create("label",{style:{color:"#868686",cursor:"pointer",fontSize:"14px",lineHeight:"19px"},append:[I.a.create("input",{type:"checkbox",style:{cssFloat:"left",marginLeft:"0px"},on:["click",function(){o.default.sendMessage({action:"hideDownloadWarning",set:this.checked?1:0})}]}),o.default.i18n.getMessage("noWarning")]})]})]});var i=void 0,r=void 0;I.a.create(n.buttonContainer,{append:[i=I.a.create("button",{text:o.default.i18n.getMessage("cancel"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"4px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}}),r=I.a.create("button",{text:o.default.i18n.getMessage("continue"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]}),i.addEventListener("click",function(e){var t=n.body.parentNode;S.a.trigger(t.lastChild,"click")}),r.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),e(),S.a.trigger(i,"click")}),H.popupDiv(n.body,"dl_warning_box_popup")},startChromeDownloadList:function(e){var t=e.folderName,n=e.list;return t&&(t+="/"),o.default.sendMessage({action:"downloadList",fileList:n,folder:t})},startOldChromeDownloadList:function(e,t){var n=e.folderName,i=e.list,r=e.type;n&&(n+="/");var a=0,s=!1,l=500,u=document.body;u.focus(),t||(u.onblur=function(){s=!0});!function e(){var t=i[a];if(a++,void 0!==t)if(V.preferences.downloads?H.download(n+t.filename,t.url):S.a.trigger(I.a.create("a",{download:t.filename,href:t.url,on:["click",function(e){H.downloadOnClick(e)}]}),"click",{cancelable:!0,altKey:!0}),s)H.downloadList.showDownloadWarningPopup(function(){s=!1,u.focus(),e()},r);else{if(a>5&&l&&(l=void 0,u.onblur=void 0,s=!1,V.preferences.downloads))return void o.default.sendMessage({action:"downloadList",fileList:i.slice(a),folder:n});setTimeout(function(){e()},l)}}()},startDownload:function(e){return e.list.forEach(function(e){e.filename=F.a.modify(e.filename)}),e.folderName=F.a.modify(e.folderName),o.default.isChrome&&V.preferences.downloads||o.default.isFirefox?H.downloadList.startChromeDownloadList(e):o.default.isGM||o.default.isSafari?o.default.sendMessage({action:"hideDownloadWarning"},function(t){H.downloadList.startOldChromeDownloadList(e,t)}):void 0},showBeforeDownloadPopup:function(e,t){t.list=e;var n=t.type,i=t.folderName,r=t.onContinue||H.downloadList.startDownload,a=t.onShowList||H.playlist.popupFilelist,s=t.count||e.length,l=H.playlist.getInfoPopupTemplate();o.default.sendMessage({action:"getWarningIcon",color:"#00CCFF",type:n},function(e){l.icon.style.backgroundImage="url("+e+")"});var u=[];a&&(u=[" (",I.a.create("a",{href:"#",text:o.default.i18n.getMessage("vkListOfLinks").toLowerCase()}),")"])[1].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),a(t.list),S.a.trigger(d,"click")}),I.a.create(l.textContainer,{append:[I.a.create("p",{text:i||o.default.i18n.getMessage("playlistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),I.a.create("p",{text:o.default.i18n.getMessage("vkFoundFiles").replace("%d",s),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"},append:u}),I.a.create("p",{text:o.default.i18n.getMessage("beforeDownloadPopupWarn"),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}})]});var d=void 0,c=void 0;I.a.create(l.buttonContainer,{append:[d=I.a.create("button",{text:o.default.i18n.getMessage("cancel"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"4px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}}),c=I.a.create("button",{text:o.default.i18n.getMessage("continue"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]}),d.addEventListener("click",function(e){var t=l.body.parentNode;S.a.trigger(t.lastChild,"click")}),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),r(t),S.a.trigger(d,"click")}),H.popupDiv(l.body,"dl_confirm_box_popup")}},downloadLink:function(e,t){if(!e.href)return!1;var n=e.getAttribute("download");return this.download(n,e.href,null,t)},safariDlLink:function(e){if(!(e.button||e.ctrlKey||e.altKey||e.shitfKey)){var t=null;try{if("function"!=typeof MouseEvent)throw"legacy";t=new MouseEvent("click",{bubbles:!0,cancelable:e.cancelable,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,ctrlKey:!1,altKey:!0,shiftKey:!1,metaKey:e.metaKey,button:e.button,relatedTarget:e.relatedTarget})}catch(n){t=function(e){var t=document.createEvent("MouseEvents");return t.initMouseEvent("click",!0,e.cancelable,window,0,e.screenX,e.screenY,e.clientX,e.clientY,!1,!0,!1,e.metaKey,e.button,e.relatedTarget),t}(e)}e.preventDefault(),e.stopPropagation(),this.dispatchEvent(t)}},downloadOnClick:function(e,t,n){var i=H,r=(n=n||{}).el||e.target;if("A"!==r.tagName&&(r=h()(r,"A")),r){if(o.default.isSafari){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(B.showTooltip)(r,{content:o.default.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60});Object(B.hideTooltip)(r)}if(o.default.isSafari)return i.safariDlLink.call(r,e);V.preferences.downloads&&((o.default.isFirefox||o.default.isGM)&&/^blob:|^data:/.test(r.href)||2!==e.button&&(e.preventDefault(),e.stopPropagation(),i.downloadLink(r,t)))}},getQueryString:function(e,t,n){if(!e||"object"!=typeof e)return"";void 0===t&&(t=""),void 0===n&&(n="");var o="";for(var i in e)o.length&&(o+="&"),e[i]instanceof Object?(t||(t=""),n||(n=""),o+=H.getQueryString(e[i],t+i+"[","]"+n)):o+=t+escape(i)+n+"="+escape(e[i]);return o},decodeUnicodeEscapeSequence:function(e){return e.replace(/\\u([0-9a-f]{4})/g,function(e,t){if(t=k()(t,16),!isNaN(t))return String.fromCharCode(t)})},getFileExtension:function(e,t){var n=this.getMatchFirst(e,/\.([a-z0-9]{3,4})(\?|$)/i);return n?n.toLowerCase():t||""},getFileName:function(e){var t=this.getMatchFirst(e,/\/([^\?#\/]+\.[a-z\d]{2,6})(?:\?|#|$)/i);return t?F.a.modify(t):t},getTopLevelDomain:function(e){if(!e)return"";if(!e.match(/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}/))return e;var t=e.split("."),n=t.length;return 2==n?e:t[n-2]+"."+t[n-1]},dateToObj:function(e,t){var n=null==e?new Date:new Date(e);void 0===t&&(t=!0);var o={year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:n.getHours(),min:n.getMinutes(),sec:n.getSeconds()};if(t)for(var i in o)1==o[i].toString().length&&(o[i]="0"+o[i]);return o},utf8Encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t+=String.fromCharCode(o):o>127&&o<2048?(t+=String.fromCharCode(o>>6|192),t+=String.fromCharCode(63&o|128)):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128),t+=String.fromCharCode(63&o|128))}return t},sizeHuman:function(e,t){null!=t&&null!=t||(t=2);var n=e,i=0,r="",a=[o.default.i18n.getMessage("vkFileSizeByte"),o.default.i18n.getMessage("vkFileSizeKByte"),o.default.i18n.getMessage("vkFileSizeMByte"),o.default.i18n.getMessage("vkFileSizeGByte"),o.default.i18n.getMessage("vkFileSizeTByte")];for(n<0&&(r="-",n=Math.abs(n));n>=1e3;)i++,n/=1024;if(t>=0){var s=10*t;n=Math.round(n*s)/s}return i<a.length?r+n+" "+a[i]:e},secondsToDuration:function(e){if(!e||isNaN(e))return"";function t(e){return e<10?"0"+e:e.toString()}var n=Math.floor(e/3600);e%=3600;var o=Math.floor(e/60);return e%=60,n>0?n+":"+t(o)+":"+t(e):o+":"+t(e)},svg:{icon:{download:"M 4,0 4,8 0,8 8,16 16,8 12,8 12,0 4,0 z",info:"M 8,1.55 C 11.6,1.55 14.4,4.44 14.4,8 14.4,11.6 11.6,14.4 8,14.4 4.44,14.4 1.55,11.6 1.55,8 1.55,4.44 4.44,1.55 8,1.55 M 8,0 C 3.58,0 0,3.58 0,8 0,12.4 3.58,16 8,16 12.4,16 16,12.4 16,8 16,3.58 12.4,0 8,0 L 8,0 z M 9.16,12.3 H 6.92 V 7.01 H 9.16 V 12.3 z M 8.04,5.91 C 7.36,5.91 6.81,5.36 6.81,4.68 6.81,4 7.36,3.45 8.04,3.45 8.72,3.45 9.27,4 9.27,4.68 9.27,5.36 8.72,5.91 8.04,5.91 z",noSound:"M 11.4,5.05 13,6.65 14.6,5.05 16,6.35 14.4,7.95 16,9.55 14.6,11 13,9.35 11.4,11 10,9.55 11.6,7.95 10,6.35 z M 8,1.75 8,14.3 4,10.5 l -4,0 0,-4.75 4,0 z"},cache:{},getSrc:function(e,t){return this.icon[e]?(this.cache[e]||(this.cache[e]={}),this.cache[e][t]||(this.cache[e][t]=btoa('<?xml version="1.0" encoding="UTF-8"?><svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="16" height="16" viewBox="0 0 16 16" id="svg2" xml:space="preserve"><path d="'+this.icon[e]+'" fill="'+t+'" /></svg>')),this.cache[e][t]?"data:image/svg+xml;base64,"+this.cache[e][t]:""):""},getSvg:function(e,t,n,o){var i=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=i.namespaceURI;i.setAttribute("width",n||"16"),i.setAttribute("height",o||n||"16"),i.setAttribute("viewBox","0 0 16 16");var a=document.createElementNS(r,"path");return i.appendChild(a),a.setAttribute("d",this.icon[e]),t&&a.setAttribute("fill",t),i}},appendDownloadInfo:function(e,t,n,i){t||(t="#a0a0a0");var r=document.createElement("span");r.appendChild(document.createTextNode(o.default.i18n.getMessage("downloadTitle"))),this.setStyle(r,{display:"inline-block",position:"relative",border:"1px solid "+t,borderRadius:"5px",fontSize:"13px",lineHeight:"17px",padding:"2px 19px 2px 5px",marginTop:"5px",opacity:.9}),n&&this.setStyle(r,n);var a=document.createElement("span");a.textContent=String.fromCharCode(215),this.setStyle(a,{color:t,width:"14px",height:"14px",fontSize:"14px",fontWeight:"bold",lineHeight:"14px",position:"absolute",top:0,right:0,overflow:"hidden",cursor:"pointer"}),i&&this.setStyle(a,i),a.addEventListener("click",function(){r.parentNode.removeChild(r),o.default.sendMessage({action:"updateOption",key:"moduleShowDownloadInfo",value:0})},!1),r.appendChild(a),e.appendChild(r)},getFileSizeIcon:function(e,t,n,i){var r=this;i=i||{},e=e||{},t=t||{},n=n||{};var a=function(e){return I.a.create("div",{style:t,append:[I.a.create(H.svg.getSvg("info",e),{style:n})]})},s=I.a.create("div",{style:e,append:[I.a.create(a("#333333"),{title:o.default.i18n.getMessage("getFileSizeTitle"),on:["click",function e(t){t.stopPropagation(),t.preventDefault(),s.textContent="...";var n=i.url;n||(n=i.link&&i.link.href),Object(E.a)({action:"getFileSize",url:n}).then(function(e){if(e.error||!e.fileSize)throw new Error(g()(e));var t=e.fileType||"",n=r.sizeHuman(e.fileSize,2),a="";if(i.link&&/^audio\//i.test(t)){var l=k()(i.link.dataset.savefromHelperDuration);l>0&&(a+=Math.floor(e.fileSize/l/125),a+=" "+o.default.i18n.getMessage("kbps"))}var u="";u+=a?n+" ~ "+a:n,i.brackets&&(u="("+u+")"),s.textContent=u,s.title=t}).catch(function(t){var n;U.error(t),"ZERO"===t.message?(n=a("#ffac00")).title=o.default.i18n.getMessage("getFileSizeTitle"):(n=a("#ff0000")).title=o.default.i18n.getMessage("getFileSizeFailTitle"),n.addEventListener("click",e),s.textContent="",s.appendChild(n)})}]})]});return{node:s}},appendFileSizeIcon:function(e,t,n,r,a,s){t=t||{},n=n||{};var l="#333333";"0"===r?l="#ffac00":r?l="#ff0000":t.color&&(l=t.color);var u={width:"14px",height:"14px",marginLeft:"3px",verticalAlign:"middle",position:"relative",top:"-1px",cursor:"pointer"};i()(u,t);var d={fontSize:"75%",fontWeight:"normal",marginLeft:"3px",whiteSpace:"nowrap"};i()(d,n);var c=I.a.create("img",{src:H.svg.getSrc("info",l),title:r?o.default.i18n.getMessage("getFileSizeFailTitle"):o.default.i18n.getMessage("getFileSizeTitle"),style:u}),f=this;return s?s.appendChild(c):e.nextSibling?e.parentNode.insertBefore(c,e.nextSibling):e.parentNode.appendChild(c),c.addEventListener("click",function(i){i.preventDefault(),i.stopPropagation();var r=I.a.create("span",{text:"...",style:d});return c.parentNode.replaceChild(r,c),o.default.sendMessage({action:"getFileSize",url:e.href},function(i){if(i.fileSize>0){var s=i.fileType||"",l=f.sizeHuman(i.fileSize,2),u="";if(/^audio\//i.test(s)){var d=e.getAttribute("data-savefrom-helper-duration");(d=d&&k()(d))>0&&(u=Math.floor(i.fileSize/d/125),u+=" "+o.default.i18n.getMessage("kbps"))}var c="";c=u?l+" ~ "+u:l,a||(c="("+c+")"),r.textContent=c,r.title=s}else if(i.error){var p=f.appendFileSizeIcon(e,t,n,!0,a,document.createDocumentFragment());r.parentNode.replaceChild(p,r)}else{var m=f.appendFileSizeIcon(e,t,n,"0",a,document.createDocumentFragment());r.parentNode.replaceChild(m,r)}})},!1),c},appendNoSoundIcon:function(e,t){var n="#ff0000";(t=t||{}).color&&(n=t.color);var r={width:"14px",height:"14px",marginLeft:"3px",verticalAlign:"middle",position:"relative",top:"-1px",cursor:"pointer"};i()(r,t);var a=I.a.create("img",{src:H.svg.getSrc("noSound",n),title:o.default.i18n.getMessage("withoutAudio"),style:r});e.nextSibling?e.parentNode.insertBefore(a,e.nextSibling):e.parentNode?e.parentNode.appendChild(a):e.appendChild(a)},video:{dataAttr:"data-savefrom-video-visible",yt:{inited:!1,show3D:!1,showMP4NoAudio:!1,showFormat:{FLV:!0,MP4:!0,WebM:!1,"3GP":!1,"Audio AAC":!1,"Audio Vorbis":!1,"Audio Opus":!1},format:{FLV:{5:{quality:"240"},6:{quality:"270"},34:{quality:"360"},35:{quality:"480"}},MP4:{18:{quality:"360"},22:{quality:"720"},37:{quality:"1080"},38:{quality:"8K"},59:{quality:"480"},78:{quality:"480"},82:{quality:"360","3d":!0},83:{quality:"240","3d":!0},84:{quality:"720","3d":!0},85:{quality:"1080","3d":!0},160:{quality:"144",noAudio:!0},133:{quality:"240",noAudio:!0},134:{quality:"360",noAudio:!0},135:{quality:"480",noAudio:!0},136:{quality:"720",noAudio:!0},137:{quality:"1080",noAudio:!0},212:{quality:"480",noAudio:!0},213:{quality:"480",noAudio:!0},214:{quality:"720",noAudio:!0},215:{quality:"720",noAudio:!0},264:{quality:"1440",noAudio:!0},138:{quality:"8K",noAudio:!0},298:{quality:"720",noAudio:!0,sFps:!0},299:{quality:"1080",noAudio:!0,sFps:!0},266:{quality:"4K",noAudio:!0}},WebM:{43:{quality:"360"},44:{quality:"480"},45:{quality:"720"},46:{quality:"1080"},167:{quality:"360",noAudio:!0},168:{quality:"480",noAudio:!0},169:{quality:"720",noAudio:!0},170:{quality:"1080",noAudio:!0},218:{quality:"480",noAudio:!0},219:{quality:"480",noAudio:!0},242:{quality:"240",noAudio:!0},243:{quality:"360",noAudio:!0},244:{quality:"480",noAudio:!0},245:{quality:"480",noAudio:!0},246:{quality:"480",noAudio:!0},247:{quality:"720",noAudio:!0},248:{quality:"1080",noAudio:!0},271:{quality:"1440",noAudio:!0},272:{quality:"8K",noAudio:!0},278:{quality:"144",noAudio:!0},100:{quality:"360","3d":!0},101:{quality:"480","3d":!0},102:{quality:"720","3d":!0},302:{quality:"720",noAudio:!0,sFps:!0},303:{quality:"1080",noAudio:!0,sFps:!0},308:{quality:"1440",noAudio:!0,sFps:!0},313:{quality:"4K",noAudio:!0},315:{quality:"4K",noAudio:!0,sFps:!0},330:{quality:"144",noAudio:!0,sFps:!0},331:{quality:"240",noAudio:!0,sFps:!0},332:{quality:"360",noAudio:!0,sFps:!0},333:{quality:"480",noAudio:!0,sFps:!0},334:{quality:"720",noAudio:!0,sFps:!0},335:{quality:"1080",noAudio:!0,sFps:!0},336:{quality:"1440",noAudio:!0,sFps:!0},337:{quality:"2160",noAudio:!0,sFps:!0},398:{quality:"720",noAudio:!0},397:{quality:"480",noAudio:!0},396:{quality:"360",noAudio:!0},395:{quality:"240",noAudio:!0},394:{quality:"144",noAudio:!0}},"3GP":{17:{quality:"144"},36:{quality:"240"}},"Audio AAC":{139:{quality:"48",ext:"m4a",noVideo:!0},140:{quality:"128",ext:"m4a",noVideo:!0},141:{quality:"256",ext:"m4a",noVideo:!0},256:{quality:"192",ext:"m4a",noVideo:!0},258:{quality:"384",ext:"m4a",noVideo:!0},325:{quality:"384",ext:"m4a",noVideo:!0},328:{quality:"384",ext:"m4a",noVideo:!0},380:{quality:"384",ext:"m4a",noVideo:!0}},"Audio Vorbis":{171:{quality:"128",ext:"webm",noVideo:!0},172:{quality:"192",ext:"webm",noVideo:!0}},"Audio Opus":{249:{quality:"48",ext:"opus",noVideo:!0},250:{quality:"128",ext:"opus",noVideo:!0},251:{quality:"256",ext:"opus",noVideo:!0}}},init:function(){if(!H.video.yt.inited){["Audio AAC","Audio Vorbis","Audio Opus"].forEach(function(e){var t=H.video.yt.format[e];for(var n in t)t[n].quality+=" "+o.default.i18n.getMessage("kbps")}),H.video.yt.show3D="0"==V.preferences.ytHide3D,H.video.yt.showMP4NoAudio="0"==V.preferences.ytHideMP4NoAudio;var e=!1,t=!1;for(var n in H.video.yt.showFormat){var i="ytHide"+n.replace(" ","_");"ytHideAudio_AAC"===i&&(i="ytHideAudio_MP4");var r="0"==V.preferences[i];"Audio AAC"===n&&(t=r),H.video.yt.showFormat[n]=r,r&&(e=!0)}H.video.yt.showFormat["Audio Vorbis"]=t,H.video.yt.showFormat["Audio Opus"]=t,e||(H.video.yt.showFormat.FLV=!0),H.video.yt.inited=!0}},show:function(e,t,n,i,r){i=i||{};var a=document.createElement("div");H.setStyle(a,{display:"inline-block",margin:"0 auto"}),t.appendChild(a);var s=document.createElement("div");H.setStyle(s,{display:"inline-block",padding:"0 90px 0 0",position:"relative"}),a.appendChild(s);var l=document.createElement("table");H.setStyle(l,{emptyCells:"show",borderCollapse:"collapse",margin:"0 auto",padding:"0",width:"auto"}),s.appendChild(l);var u=!1;for(var d in H.video.yt.format)H.video.yt.append(e,d,H.video.yt.format[d],l,i,r)&&(u=!0);for(var d in e)if("ummy"!==d&&"ummyAudio"!==d&&"meta"!==d){H.video.yt.append(e,"",null,l,i,r)&&(u=!0);break}if(l.firstChild){if(u){var c=document.createElement("span");c.textContent=o.default.i18n.getMessage("more")+" "+String.fromCharCode(187),H.setStyle(c,{color:"#555",border:"1px solid #a0a0a0",borderRadius:"3px",display:"block",fontFamily:"Arial",fontSize:"15px",lineHeight:"17px",padding:"1px 5px",position:"absolute",bottom:"3px",right:"0",cursor:"pointer"}),i.btn&&"object"==typeof i.btn&&H.setStyle(c,i.btn),s.appendChild(c),c.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation();for(var n=t.querySelectorAll("*["+H.video.dataAttr+"]"),i=0;i<n.length;i++){var r=n[i].getAttribute(H.video.dataAttr),a="none",s=String.fromCharCode(187);"0"==r?(r="1",a="",s=String.fromCharCode(171)):r="0",n[i].style.display=a,n[i].setAttribute(H.video.dataAttr,r),this.textContent=o.default.i18n.getMessage("more")+" "+s}return!1},!1),1===n&&(l.querySelector("td a"),a.appendChild(document.createElement("br")),H.appendDownloadInfo(a,"#a0a0a0",null,{width:"16px",height:"16px",fontSize:"16px",lineHeight:"16px"}))}}else t.textContent=o.default.i18n.getMessage("noLinksFound")},append:function(e,t,n,i,r,a){var s=!1,l={whiteSpace:"nowrap"},u={fontSize:"75%",fontWeight:"normal",marginLeft:"3px",whiteSpace:"nowrap"},d=document.createElement("tr"),c=document.createElement("td");c.appendChild(document.createTextNode(t||"???")),t&&H.video.yt.showFormat[t]||(d.setAttribute(H.video.dataAttr,"0"),d.style.display="none",s=!0),H.setStyle(c,{border:"none",padding:"3px 15px 3px 0",textAlign:"left",verticalAlign:"middle"}),d.appendChild(c),c=document.createElement("td"),H.setStyle(c,{border:"none",padding:"3px 0",textAlign:"left",verticalAlign:"middle",lineHeight:"17px"}),d.appendChild(c);var f=e.meta||{},p=!1;if(n){for(var m in n)if(e[m]){var h=n[m].quality;p&&(c.lastChild.style.marginRight="15px",c.appendChild(document.createTextNode(" ")));var g=document.createElement("span");g.style.whiteSpace="nowrap";var v=document.createElement("a");if(v.href=e[m],v.title=o.default.i18n.getMessage("downloadTitle"),f[m]&&(f[m].quality&&(h=f[m].quality),n[m].sFps&&(h+=" "+(f[m].fps||60))),n[m]["3d"]?v.textContent="3D":v.textContent=h,a){var b=n[m].ext;b||(b=t.toLowerCase()),v.setAttribute("download",F.a.modify(a+"."+b)),v.addEventListener("click",function(e){H.downloadOnClick(e)},!1)}if(H.setStyle(v,l),r.link&&"object"==typeof r.link&&H.setStyle(v,r.link),g.appendChild(v),H.appendFileSizeIcon(v,r.fsIcon,r.fsText),n[m]["3d"]){H.video.yt.show3D||(s=!0,g.setAttribute(H.video.dataAttr,"0"),g.style.display="none");var y=document.createElement("span");y.textContent=h,H.setStyle(y,u),r.text&&"object"==typeof r.text&&H.setStyle(y,r.text),v.appendChild(y)}n[m].noAudio&&(H.video.yt.showMP4NoAudio||(s=!0,g.setAttribute(H.video.dataAttr,"0"),g.style.display="none"),H.appendNoSoundIcon(v,!!r&&r.noSoundIcon)),c.appendChild(g),p=!0,delete e[m]}}else for(var m in e){p&&(c.lastChild.style.marginRight="15px",c.appendChild(document.createTextNode(" ")));var k=document.createElement("span");k.style.whiteSpace="nowrap";var w=document.createElement("a");w.href=e[m],w.title=o.default.i18n.getMessage("downloadTitle"),w.textContent=m,H.setStyle(w,l),r.link&&"object"==typeof r.link&&H.setStyle(w,r.link),k.appendChild(w),H.appendFileSizeIcon(w,r.fsIcon,r.fsText),c.appendChild(k),p=!0,delete e[m]}if(!1!==p)return i.appendChild(d),s}}},playlist:{btnStyle:{display:"block",fontWeight:"bold",border:"none",textDecoration:"underline"},getFilelistHtml:function(e){if(e&&0!=e.length){for(var t,n=0,i="",r=0;r<e.length;r++)e[r].url&&(i+=e[r].url+"\r\n",n++);if(i)return n<5?n=5:n>14&&(n=14),I.a.create(document.createDocumentFragment(),{append:[I.a.create("p",{text:o.default.i18n.getMessage("filelistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"5px"}}),I.a.create("p",{style:{marginBottom:"11px"},append:P()(o.default.i18n.getMessage("filelistInstruction"))}),I.a.create("p",{text:o.default.i18n.getMessage("vkFoundFiles").replace("%d",e.length),style:{color:"#000",marginBottom:"11px"},append:I.a.create("a",{text:o.default.i18n.getMessage("playlist"),href:"#",class:"sf__playlist",style:{display:"none",cssFloat:"right"}})}),t=I.a.create("textarea",{text:i,rows:n,cols:60,style:{width:"100%",whiteSpace:o.default.isFirefox||o.default.isGM&&!o.default.isTM?"normal":"nowrap"}}),o.default.isChrome||o.default.isFirefox?I.a.create("button",{text:o.default.i18n.getMessage("copy"),style:{height:"27px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",marginTop:"6px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"5px",fontSize:"14px",cursor:"pointer",cssFloat:"right"},on:["click",function(e){var n=this;n.disabled=!0,o.default.isFirefox?(t.select(),document.execCommand("copy")):o.default.sendMessage({action:"addToClipboard",text:i}),setTimeout(function(){n.disabled=!1},1e3)}],append:I.a.create("style",{text:c()({"#savefrom_popup_box":{append:{"button:hover:not(:disabled)":{backgroundColor:"#597A9E !important",borderColor:"#597A9E !important",color:"#fff"},"button:active":{opacity:.9}}}})})}):void 0]})}},popupFilelist:function(e,t,n,o){var i=H.playlist.getFilelistHtml(e);if(i){var r=H.popupDiv(i,o);if(n){var a=r.querySelector("a.sf__playlist");a&&(a.addEventListener("click",function(n){return setTimeout(function(){H.playlist.popupPlaylist(e,t,!0,o)},100),n.preventDefault(),!1},!1),H.setStyle(a,H.playlist.btnStyle))}}},getInfoPopupTemplate:function(){var e=I.a.create("div",{class:"sf-infoPopupTemplate",style:{width:"400px",minHeight:"40px"}}),t=I.a.create("div",{style:{backgroundSize:"48px",backgroundRepeat:"no-repeat",backgroundPosition:"center top",display:"inline-block",width:"60px",height:"60px",cssFloat:"left",marginTop:"16px",marginRight:"10px"}}),n=I.a.create("div",{style:{display:"inline-block",width:"330px"}}),o=I.a.create("div",{style:{textAlign:"right"},append:I.a.create("style",{text:c()({".sf-infoPopupTemplate":{append:[{"a.sf-button":{padding:"1px 6px",display:"inline-block",textAlign:"center",height:"23px",lineHeight:"23px",textDecoration:"none"}},{selector:["button:hover","a.sf-button:hover"],style:{backgroundColor:"#597A9E !important",borderColor:"#597A9E !important",color:"#fff"}}]}})})});return e.appendChild(t),e.appendChild(n),e.appendChild(o),{icon:t,buttonContainer:o,textContainer:n,body:e}},getM3U:function(e){for(var t="#EXTM3U\r\n",n=0;n<e.length;n++)e[n].duration||(e[n].duration="-1"),(e[n].title||e[n].duration)&&(t+="#EXTINF:"+e[n].duration+","+e[n].title+"\r\n"),t+=e[n].url+"\r\n";return t},getPlaylistHtml:function(e,t){if(e&&0!=e.length){var n=e.length,i=H.dateToObj(),r=i.year+"-"+i.month+"-"+i.day+" "+i.hour+"-"+i.min,a=H.playlist.getM3U(e);a=a.replace(/\r\n/g,"\n");var s=y()(a,"audio/x-mpegurl"),l=H.playlist.getInfoPopupTemplate();return o.default.sendMessage({action:"getWarningIcon",color:"#00CCFF",type:"playlist"},function(e){l.icon.style.backgroundImage="url("+e+")"}),I.a.create(l.textContainer,{append:[I.a.create("p",{text:t||o.default.i18n.getMessage("playlistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),I.a.create("p",{text:o.default.i18n.getMessage("playlistInstruction"),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}}),I.a.create("a",{text:o.default.i18n.getMessage("filelist")+" ("+n+")",href:"#",class:"sf__playlist",style:{display:"none",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}})]}),t||(t="playlist"),t+=" "+r,I.a.create(l.buttonContainer,{append:[I.a.create("a",{text:o.default.i18n.getMessage("download"),href:s,download:F.a.modify(t+".m3u"),class:"sf-button",style:{width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]}),l.body}},popupPlaylist:function(e,t,n,o){var i=H.playlist.getPlaylistHtml(e,t);if(i){var r=H.popupDiv(i,o);if(n){var a=r.querySelector("a.sf__playlist");a&&(a.addEventListener("click",function(n){return setTimeout(function(){H.playlist.popupFilelist(e,t,!0,o)},100),n.preventDefault(),!1},!1),a.style.display="inline",a=null)}for(var s,l=r.querySelectorAll("a[download]"),u=0;s=l[u];u++)s.addEventListener("click",H.downloadOnClick,!1)}}},popupCloseBtn:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAWUlEQVQ4y2NgGHHAH4j1sYjrQ+WIAvFA/B+I36MZpg8V+w9VQ9Al/5EwzDBkQ2AYr8uwaXiPQ0yfkKuwGUayIYQMI8kQqhlEFa9RLbCpFv1US5BUzSLDBAAARN9OlWGGF8kAAAAASUVORK5CYII=",popupDiv:function(e,t,n,o,i){t||(t="savefrom_popup_box"),n||(n=580),o||(o=520);var r=document.getElementById(t);r&&r.parentNode.removeChild(r),r=I.a.create("div",{id:t,style:{zIndex:"9999",display:"block",cssFloat:"none",position:"fixed",margin:"0",padding:"0",visibility:"hidden",color:"#000",background:"#fff",border:"3px solid #c0cad5",borderRadius:"7px",overflow:"auto"}});var a=I.a.create("div",{style:{display:"block",cssFloat:"none",position:"relative",overflow:"auto",margin:"0",padding:"10px 15px"}});"function"==typeof e?e(a):a.appendChild(e);var s=I.a.create("img",{src:H.popupCloseBtn,alt:"x",width:18,height:18,style:{position:"absolute",top:"10px",right:"15px",opacity:"0.5",cursor:"pointer"},on:[["mouseenter",function(){this.style.opacity="0.9"}],["mouseleave",function(){this.style.opacity="0.5"}],["click",function(){return r.parentNode&&r.parentNode.removeChild(r),i&&i(),!1}]]});a.appendChild(s),r.appendChild(a),document.body.appendChild(r),r.offsetWidth>n&&(r.style.width=n+"px"),r.offsetHeight>o&&(r.style.height=o+"px",r.style.width=n+20+"px"),setTimeout(function(){var e=Math.floor((window.innerWidth-r.offsetWidth)/2),t=Math.floor((window.innerHeight-r.offsetHeight)/2);t<0&&(t=0),-1!==location.host.indexOf("youtu")&&t<92&&(t=92,r.style.height=r.offsetHeight-t-10+"px"),e<0&&(e=0),H.setStyle(r,{top:t+"px",left:e+"px",visibility:"visible"})});var l=function e(t){var n=t.target;n===r||H.isParent(n,r)||(r.parentNode&&r.parentNode.removeChild(r),document.removeEventListener("click",e,!1),i&&i())};return setTimeout(function(){document.addEventListener("click",l,!1)},100),r.addEventListener("close",function(){r.parentNode&&r.parentNode.removeChild(r),document.removeEventListener("click",l,!1),i&&i()}),r.addEventListener("kill",function(){r.parentNode&&r.parentNode.removeChild(r),document.removeEventListener("click",l,!1)}),r},popupDiv2:function(e){var t={id:"savefrom_popup_box",containerStyle:null,bodyStyle:null,content:null,container:null,body:null,_onClose:function(){document.removeEventListener("click",t._onClose),n.parentNode&&n.parentNode.removeChild(n),t.onClose&&t.onClose()}};i()(t,e);var n=t.container=I.a.create("div",{id:t.id,style:{zIndex:9999,display:"block",position:"fixed",background:"#fff",border:"3px solid #c0cad5",borderRadius:"7px"},append:[I.a.create("style",{text:c()({selector:"#"+t.id,style:L.a})})],on:[["click",function(e){e.stopPropagation()}]]}),o=I.a.create("img",{src:H.popupCloseBtn,alt:"x",width:18,height:18,style:{position:"absolute",top:"10px",right:"15px",opacity:"0.5",cursor:"pointer"},on:[["mouseenter",function(){this.style.opacity="0.9"}],["mouseleave",function(){this.style.opacity="0.5"}],["click",t._onClose]]});n.appendChild(o);var r=t.body=I.a.create("div",{style:s()({display:"block",position:"relative",padding:"10px 15px",overflow:"auto"},t.bodyStyle)});return"function"==typeof t.content?t.content(r):r.appendChild(t.content),n.appendChild(r),document.body.appendChild(n),document.addEventListener("click",t._onClose),t},showTooltip:function(e,t,n,o){if(e){var i=document.querySelector(".savefrom-tooltip");i||((i=document.createElement("div")).className="savefrom-tooltip",H.setStyle(i,{position:"absolute",opacity:0,zIndex:-1}),o&&H.setStyle(i,o)),i.textContent=t,i.lastNode&&i.lastNode===e?r():(i.lastNode&&(S.a.off(i.lastNode,"mouseleave",a),S.a.off(i.lastNode,"mousemove",r),i.lastRow&&S.a.off(i.lastRow,"mouseleave",a)),i.lastNode=e,n&&(i.lastRow=n),S.a.on(e,"mouseleave",a),S.a.on(e,"mousemove",r,!1),n&&S.a.on(n,"mouseleave",a),document.body.appendChild(i),r())}function r(t){void 0!==t&&t.stopPropagation();var n=H.getPosition(e),o=H.getSize(i);0==n.top&&0==n.left||(n.top=n.top-o.height-10,n.left=n.left-o.width/2+H.getSize(e).width/2,n.left=Math.min(n.left,document.body.clientWidth+document.body.scrollLeft-o.width),n.top<document.body.scrollTop&&(n.top=n.top+o.height+H.getSize(e).height+20),n.top+="px",n.left+="px",n.zIndex=9999,n.opacity=1,H.setStyle(i,n))}function a(){i.parentNode&&document.body.removeChild(i),i.lastNode=null,i.lastRow=null,H.setStyle(i,{zIndex:-1,opacity:0}),S.a.off(e,"mouseleave",a),S.a.off(e,"mousemove",r),n&&S.a.off(n,"mouseleave",a)}},embedDownloader:{dataAttr:"data-savefrom-get-links",dataIdAttr:"data-savefrom-container-id",containerClass:"savefrom-links-container",linkClass:"savefrom-link",panel:null,lastLink:null,style:null,hostings:{youtube:{re:[/^https?:\/\/(?:[a-z]+\.)?youtube\.com\/(?:#!?\/)?watch\?.*v=([\w\-]+)/i,/^https?:\/\/(?:[a-z0-9]+\.)?youtube\.com\/(?:embed|v)\/([\w\-]+)/i,/^https?:\/\/(?:[a-z]+\.)?youtu\.be\/([\w\-]+)/i],action:"getYoutubeLinks",prepareLinks:function(e){var t=[],n=H.video.yt.format,o=e.meta||{};for(var i in n)for(var r in n[i]){var a=o[r]||{};if(e[r]){var s=i;n[i][r].ext&&(s=n[i][r].ext);var l=n[i][r].quality;a.quality&&(l=a.quality),n[i][r].sFps&&(l+=" "+(a.fps||60)),n[i][r]["3d"]&&(l+=" (3d)"),t.push({name:i+" "+l,type:s,url:e[r],noSound:n[i][r].noAudio})}}return t}},vimeo:{re:[/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/(?:\w+\#)?(\d+)/i,/^https?:\/\/player\.vimeo\.com\/video\/(\d+)/i,/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/channels\/(?:[^\/]+)\/(\d+)$/i,/^https?:\/\/vimeo\.com\/(?:.+)clip_id=(\d+)/i],action:"getVimeoLinks",prepareLinks:function(e){return e.map(function(e){var t=e.ext;return t||(t="MP4",-1!=e.url.search(/\.flv($|\?)/i)&&(t="FLV")),e.name=e.name?e.name:t,e.type=e.type?e.type:t,e.ext=t,e})}},vk:{re:[/^https?:\/\/(?:[\w\-]+\.)?(?:vk\.com|vkontakte\.ru)\/(?:[^\/]+\/)*(?:[\w\-\.]+\?.*z=)?(video-?\d+_-?\d+\?list=[0-9a-z]+|video-?\d+_-?\d+)/i,/^https?:\/\/(?:[\w\-]+\.)?(?:vk\.com|vkontakte\.ru)\/video_ext\.php\?(.+)/i],action:"getVKLinks"},dailymotion:{re:[/^http:\/\/(?:www\.)?dai\.ly\/([a-z0-9]+)_?/i,/^https?:\/\/(?:[\w]+\.)?dailymotion\.com(?:\/embed|\/swf)?\/video\/([a-z0-9]+)_?/i],action:"getDailymotionLinks"},facebook:{re:[/^https?:\/\/(?:[\w]+\.)?facebook\.com(?:\/video)?\/video.php.*[?&]{1}v=([0-9]+).*/i,/^https?:\/\/(?:[\w]+\.)?facebook\.com\/.+\/videos(?:\/\w[^\/]+)?\/(\d+)/i],action:"getFacebookLinks"}},init:function(e){this.style=e,this.panel&&H.popupMenu.removePanel(),this.panel=null,this.lastLink=null;var t,n=document.querySelectorAll("a["+this.dataAttr+"]"),o=n.length;for(t=0;t<o;t++)["savefrom.net","sf-addon.com"].indexOf(H.getTopLevelDomain(n[t].hostname))>-1&&(n[t].removeEventListener("click",this.onClick,!1),n[t].addEventListener("click",this.onClick,!1));document.body&&(document.body.removeEventListener("click",this.onBodyClick,!0),document.body.addEventListener("click",this.onBodyClick,!0))},checkUrl:function(e){for(var t in this.hostings)for(var n=this.hostings[t],o=0,i=n.re.length;o<i;o++){var r=e.match(n.re[o]);if(r)return{hosting:t,action:n.action,extVideoId:r[1]}}return null},reMapHosting:function(e){return{getYoutubeLinks:"youtube",getVimeoLinks:"vimeo",getDailymotionLinks:"dailymotion",getFacebookLinks:"facebook",getVKLinks:"vk"}[e]},onClick:function(e,t){var n=H.embedDownloader;if(!t){for(t=e.target;t.parentNode&&"A"!==t.nodeName;)t=t.parentNode;if(!t)return}var i=t.getAttribute("data-savefrom-get-links");if(i&&0===e.button&&!e.ctrlKey&&!e.shiftKey){if(n.lastLink===t&&n.panel&&"none"!=n.panel.style.display)return n.lastLink=null,n.panel.style.display="none",e.preventDefault(),void e.stopPropagation();n.lastLink=t;var r=n.checkUrl(i);if(r){e.preventDefault(),e.stopPropagation();var a={action:r.action,extVideoId:r.extVideoId};return n.showLinks(o.default.i18n.getMessage("download")+" ...",null,t),o.default.sendMessage(a,function(e){var i=r.hosting;e.action!=a.action&&(i=n.reMapHosting(e.action)),e.links?n.showLinks(e.links,e.title,t,i,!0):n.showLinks(o.default.i18n.getMessage("noLinksFound"),null,t,void 0,!0)}),!1}}},onBodyClick:function(e){var t=H.embedDownloader,n=e.target;if(!t.panel||"none"==t.panel.style.display){if("A"!==n.tagName&&p()(n,"A "+n.tagName))for(;n.parentNode&&"A"!==n.tagName;)n=n.parentNode;if("A"!==n.nodeName)return;return n.hasAttribute(t.dataAttr)&&["savefrom.net","sf-addon.com"].indexOf(H.getTopLevelDomain(n.hostname))>-1?t.onClick(e,n):void 0}t.panel===n||t.panel.contains(n)||(t.lastLink=null,t.panel.style.display="none",e.preventDefault(),e.stopPropagation())},hidePanel:function(){this.panel&&(this.panel.style.display="none")},createMenu:function(e,t,n,i,r){var a=o.default.i18n.getMessage("noLinksFound");"string"==typeof e?a=e:void 0!==H.popupMenu.prepareLinks[i]&&e&&(a=H.popupMenu.prepareLinks[i](e,t));var s={links:a,button:n,popupId:void 0,showFileSize:!0,containerClass:this.containerClass,linkClass:this.linkClass,style:{popup:this.style?this.style.container:void 0,item:this.style?this.style.link:void 0},isUpdate:r};r&&this.panel?H.popupMenu.update(this.panel,s):this.panel=H.popupMenu.create(s)},showLinks:function(e,t,n,i,r){var a,s=n.getAttribute(this.dataIdAttr);if(s&&(a=document.getElementById(s)),a)if(this.panel&&(this.panel.style.display="none"),"string"==typeof e)a.textContent=e;else if(e&&0!=e.length){i&&this.hostings[i]&&this.hostings[i].prepareLinks&&(e=this.hostings[i].prepareLinks(e)),a.textContent="";for(var l=0;l<e.length;l++)if(e[l].url&&e[l].name){(n=document.createElement("a")).href=e[l].url,n.title=o.default.i18n.getMessage("downloadTitle"),n.appendChild(document.createTextNode(e[l].name));var u=document.createElement("span");u.className=this.linkClass,u.appendChild(n),a.appendChild(u),H.appendFileSizeIcon(n),e[l].noSound&&H.appendNoSoundIcon(n),t&&!e[l].noTitle&&e[l].type&&(n.setAttribute("download",F.a.modify(t+"."+e[l].type.toLowerCase())),n.addEventListener("click",H.downloadOnClick,!1))}}else a.textContent=o.default.i18n.getMessage("noLinksFound");else this.createMenu(e,t,n,i,r)}},createUmmyInfo:function(e,t){e=e||{};var n,r,a,s,l,u,d,f,p=i()({vid:111,utm_source:"savefrom-helper",utm_medium:"youtube-helper"},e.params);p.utm_campaign||("hd"===e.itemType?p.utm_campaign="youtube-helper-hd":"mp3"===e.itemType&&(p.utm_campaign="youtube-helper-mp3")),n=/^Mac/.test(navigator.platform)&&/^yt-/.test(p.video)?"http://videodownloader.ummy.net/save-from-youtube.html?"+z.stringify({vid:p.vid,video:p.video,utm_source:"savefrom-helper",utm_medium:"youtube-helper",utm_campaign:"ummy",utm_content:"ummy_integration_h"}):"http://videodownloader.ummy.net/?"+z.stringify(p),e.posLeft?(u={border:"8px solid transparent",borderLeft:"10px solid rgb(192, 187, 187)",borderRight:0,top:"8px",right:"11px"},d=i()({},u,{right:"12px",borderLeft:"10px solid #fff"}),f={right:"21px"},e.darkTheme&&(r={borderLeftColor:"rgba(255, 255, 255, 0.4)"},a={borderLeftColor:"rgba(28,28,28, 0.6)"})):(u={border:"8px solid transparent",borderRight:"10px solid rgb(192, 187, 187)",borderLeft:0,top:"8px",left:"11px"},d=i()({},u,{left:"12px",borderRight:"10px solid #fff"}),f={left:"21px"},e.darkTheme&&(r={borderRightColor:"#fff"},a={borderRightColor:"#000"})),l=e.darkTheme?{a:{color:"#eee"}}:{},s=e.darkTheme?{backgroundColor:"rgba(28,28,28,0.8)",border:"1px solid rgba(255, 255, 255, 0.4)",color:"#fff"}:{backgroundColor:"#fff",border:"1px solid #ccc"};var m=I.a.create(document.createDocumentFragment(),{append:[I.a.create("span",{style:i()({display:"inline-block",width:0,position:"absolute"},u,r)}),I.a.create("span",{style:i()({display:"inline-block",width:0,position:"absolute",zIndex:1},d,a)})]}),h=null,g=null,v=I.a.create("div",{class:"sf-ummy-info-popup-container",style:{position:"absolute",zIndex:9999},append:[m,g=I.a.create("div",{class:"sf-ummy-info-popup",style:i()({position:"relative",backgroundColor:"#fff",border:"1px solid #ccc",padding:"6px 5px",textAlign:"center",maxWidth:"240px",lineHeight:"16px",fontSize:"12px",fontFamily:"arial, sans-serif",cursor:"default"},f,s),append:[P()(o.default.i18n.getMessage("ummyMenuInfo").replace("{url}",n)),I.a.create("label",{style:{verticalAlign:"middle",display:"block"},append:[h=I.a.create("input",{type:"checkbox",name:"showUmmyInfo",style:{verticalAlign:"middle"}}),o.default.i18n.getMessage("tooltipHide")]}),I.a.create("style",{text:c()({".sf-ummy-info-popup":{append:i()({"> p":{margin:"0 0 .8em 0"},"> p.center":{textAlign:"center"},"> p > .green-btn-2.arrow":{color:"#fff",background:"#84bd07",borderRadius:"5px",display:"inline-block",position:"relative",lineHeight:1,padding:"8px 34px 8px 10px",textDecoration:"none",fontSize:"12px"},"> p > .green-btn-2.arrow:hover":{color:"#fff",opacity:.8},"> p > .green-btn-2.arrow:after":{background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAAAjklEQVQoke3RsRGCQBCF4YuJsQDoQMpjKMImtAjth9xMEj4DF4c5QDH3n7lk773b3XsJNzTpR9DglrwYcUG9w1iHdoTpgYkBJ5QrxkPcDXNDQm/JHR2KOF3UcvoUgnZL8KFBi2I+Yrk2YsZjsaIsBVQ4i08KxqhVu1OYBLji+E/hzTKFlV13pfAVGynkPAFtrlNTMRczMgAAAABJRU5ErkJggg==) 0 0 no-repeat",content:'""',display:"block",position:"absolute",width:"16px",height:"14px",top:"50%",right:"10px",marginTop:"-7px"},input:{display:"inline-block"}},l)}})})]})],on:[["mouseclick",function(e){e.stopPropagation()}],["mousedown",function(e){e.stopPropagation()}]]});return o.default.sendMessage({action:"getUmmyIcon"},function(e){var t=g.querySelector("img");t&&(t.src=e,t.style.verticalAlign="text-bottom")}),h.checked=!V.preferences.showUmmyInfo,h.addEventListener("change",function(e){e.preventDefault(),e.stopPropagation(),this.checked?(S.a.trigger(t,"sfRmInfoPopup"),V.preferences.showUmmyInfo=0):(S.a.trigger(t,"sfAddInfoPopup"),V.preferences.showUmmyInfo=1),o.default.sendMessage({action:"updateOption",key:"showUmmyInfo",value:V.preferences.showUmmyInfo})}),e.onCreateUmmyInfo&&e.onCreateUmmyInfo(v),v},bindUmmyInfo:function(e,t){if(((t=t||{}).noUmmy||V.preferences.showUmmyInfo)&&!(t.widthLimit&&document.documentElement.offsetWidth<t.widthLimit)){t.leftOffset=t.leftOffset||21;var n=null,o=null,i=null,r=8,a=null,s=null,l=null,u=function e(){clearTimeout(l),l=setTimeout(function(){if(n&&n.parentNode){if("none"!==n.style.display)return e();n.parentNode.removeChild(n)}},3e4)},d=function(){clearTimeout(o),o=setTimeout(function(){n&&(n.style.display="none")},50)},c=function(){if(t.noUmmy||V.preferences.showUmmyInfo){clearTimeout(o);var l=H.getPosition(e);n?i=l.top-4:(n=t.expUmmyInfo?t.expUmmyInfo(t.createUmmyInfoDetails,e):H.createUmmyInfo(t.createUmmyInfoDetails,e),a=n.firstChild,s=a.nextElementSibling,i=l.top-4,S.a.on(n,"mouseenter",function(){clearTimeout(o)}),S.a.on(n,"mouseleave",d)),n.style.top=i+"px","1"!==n.dataset.hide&&(function(e){var o=H.getPosition(e);if(t.posLeft)n.style.right=document.documentElement.clientWidth-o.left-t.leftOffset+"px";else{var i=H.getSize(e);n.style.left=i.width+o.left-t.leftOffset+"px"}}(e),n.parentNode||(n.style.display="none",(t.container||document.body).appendChild(n)),"block"!==n.style.display&&(n.style.display="block",S.a.trigger(n,"sfShowInfoPopup")),setTimeout(function(){var e=window.innerHeight,t=n.clientHeight,o=window.scrollY;if(t+i>e+o){var l=e-t+o;if(l<0)return;if(i===l)return;n.style.top=l+"px";var u=8-(e-(t+i)+o);r!==u&&(r=u,a.style.top=r+"px",s.style.top=r+"px")}else 8!==r&&(r=8,a.style.top=r+"px",s.style.top=r+"px")}),u())}};S.a.on(e,"mouseenter",c),S.a.on(e,"mouseleave",d),S.a.on(e,"sfRmInfoPopup",function(){S.a.off(e,"mouseenter",c)}),S.a.on(e,"sfAddInfoPopup",function(){S.a.on(e,"mouseenter",c)})}},popupMenu:{popupId:"sf_popupMenu",popup:void 0,popupStyle:void 0,dataArrtVisible:"data-isVisible",extStyleCache:void 0,ummyIcon:null,badgeQualityList:["8K","4K","2160","1440","1080","720","ummy"],createBadge:function(e,t){var n=this;t=t||{};var i={display:"inline-block",lineHeight:"18px",width:"19px",height:"17px",color:"#fff",fontSize:"12px",borderRadius:"2px",verticalAlign:"middle",textAlign:"center",paddingRight:"2px",fontWeight:"bold",marginLeft:"3px"};for(var r in t.containerStyle)i[r]=t.containerStyle[r];var a=I.a.create("div",{style:i});return"1080"===e||"2160"===e||"1440"===e||"720"===e?(a.textContent="HD",a.style.backgroundColor="#505050",a.style.paddingRight="1px"):"8K"===e||"4K"===e?(a.textContent="HD",a.style.paddingRight="1px",a.style.backgroundColor="rgb(247, 180, 6)"):"mp3"===e||"MP3"===e?(a.textContent="MP3",a.style.width="26px",a.style.paddingRight="1px",a.style.backgroundColor="#505050"):"ummy"===e&&(this.ummyIcon?a.style.background="url("+this.ummyIcon+") center center no-repeat":o.default.sendMessage({action:"getUmmyIcon"},function(e){a.style.background="url("+(n.ummyIcon=e)+") center center no-repeat"})),a},getTitleNode:function(e){var t=H.popupMenu,n=I.a.create("span",{style:{cssFloat:"left"}});if("converter"===e.extra){var o=document.createDocumentFragment();-1!==["MP3","8K","4K","1440","1080","720"].indexOf(e.format)?o.appendChild(t.createBadge(e.format,{containerStyle:{marginLeft:0}})):o.appendChild(document.createTextNode(e.format)),I.a.create(n,{append:[o," ",e.quality]}),o=null}else if("ummy"===e.quality)o=document.createDocumentFragment(),null!==e.uQuality&&(-1!==["8K","4K","1440","1080","720"].indexOf(e.uQuality)?o.appendChild(document.createTextNode(e.uQuality)):o.appendChild(t.createBadge(e.uQuality,{containerStyle:{marginLeft:0}}))),I.a.create(n,{append:[o," ","Ummy"]}),o=null;else if(e.itemText)n.textContent=e.itemText;else{var i=e.quality?" "+e.quality:"",r=e.format?e.format:"???",a=e["3d"]?"3D ":"",s="";e.sFps&&(s+=" "+(e.fps||60)),n.textContent=a+r+i+s}return-1!==t.badgeQualityList.indexOf(String(e.quality))&&n.appendChild(t.createBadge(String(e.quality))),n},createPopupItem:function(e,t){var n,r=H.popupMenu;if("-"===(n="string"==typeof e?e:e.href))return{el:I.a.create("div",{style:{display:"block",margin:"1px 0",borderTop:"1px solid rgb(214, 214, 214)"}})};var s=document.createElement("-text-"===n?"div":"a");t.linkClass&&s.classList.add(t.linkClass);var l={display:"block",padding:"0 5px",textDecoration:"none",whiteSpace:"nowrap",overflow:"hidden"};if(e.isHidden&&(s.setAttribute(r.dataArrtVisible,"0"),l.display="none"),H.setStyle(s,l),"-text-"===n)return s.style.lineHeight="22px",{el:s};if(s.href=n,"#"===n)return{el:s};if((o.default.isGM||o.default.isSafari)&&("ummy"===e.quality||e.extra||(s.title=o.default.i18n.getMessage("downloadTitle"))),e.forceDownload){var u="";if(e.title){var d=(e.ext||e.format||"").toLowerCase();d&&(d="."+d),u=e.title+d}s.setAttribute("download",F.a.modify(u)),s.addEventListener("click",function(e){H.downloadOnClick(e,null,{el:this})},!1)}var c=[];e.func&&(a()(e.func)?c.push.apply(c,e.func):c.push(e.func)),t.onItemClick&&-1===c.indexOf(t.onItemClick)&&c.push(t.onItemClick),c.length&&s.addEventListener("click",function(t){var n=this;c.forEach(function(o){return o.call(n,t,e)})},!1),e.isBlank&&s.setAttribute("target","_blank"),s.appendChild(r.getTitleNode(e));var f=I.a.create("span",{style:{cssFloat:"right",lineHeight:"22px",height:"22px"}}),p={top:"5px",verticalAlign:"top"};for(var m in t.sizeIconStyle)p[m]=t.sizeIconStyle[m];e.noAudio&&H.appendNoSoundIcon(f,p);var h=null;if(e.noSize||(f.addEventListener("click",function e(t){"IMG"===f.firstChild.tagName&&(t.preventDefault(),t.stopPropagation(),S.a.trigger(f.firstChild,"click",{cancelable:!0})),this.removeEventListener("click",e)}),h=H.appendFileSizeIcon(s,p,{marginLeft:0},void 0,!0,f,e)),s.appendChild(f),"ummy"===e.quality){var g=i()({},t.bindUmmyInfoDetails),v=g.createUmmyInfoDetails=i()({itemType:e.uIsAudio?"mp3":"hd"},g.createUmmyInfoDetails);v.params=i()({video:e.videoId,vid:e.vid},v.params),H.bindUmmyInfo(s,g)}return{el:s,sizeIcon:h,prop:e}},sortMenuItems:function(e,t){void 0===t&&(t={});var n=["ummy","Audio Opus","Audio Vorbis","Audio AAC","3GP","WebM","FLV","MP4"],o={Mobile:280,LD:280,SD:360,HD:720,ummy:1};t.strQualityExtend&&i()(o,t.strQualityExtend);var r={},a=[],s=[],l=[],u=[],d=[],c=[],f=[],p=[];e.forEach(function(e){var n=e.prop;t.noProp&&(n=e);var i=n.sort||{};if(!n.format)return p.push(e),1;if(n.isOther)p.push(e);else if(n.isSubtitle)u.push(e);else if(n.noVideo)a[n.quality]=k()(n.quality),l.push(e);else{var m=i.size||o[n.quality]||-1;if(-1===m&&(m="K"===String(n.quality).substr(-1)?1e3*k()(n.quality):k()(n.quality)),t.maxSize&&m>t.maxSize)return 1;if(t.minSize&&m<t.minSize)return 1;r[n.quality]=m,n.noAudio?n.sFps?d.push(e):c.push(e):n["3d"]?f.push(e):s.push(e)}});var m=function(e,t){return e.noVideo&&t.noVideo?function(e,t){return a[e.quality]>a[t.quality]?-1:a[e.quality]===a[t.quality]?0:1}(e,t):e.noVideo?1:t.noVideo?-1:n.indexOf(e.format)>n.indexOf(t.format)?-1:n.indexOf(e.format)===n.indexOf(t.format)?0:1},h=function(e,n){var o=e.prop,i=n.prop;t.noProp&&(o=e,i=n);var a=function(e,t){return r[e.quality]>r[t.quality]?-1:r[e.quality]===r[t.quality]?0:1}(o,i);return 0!==a?a:m(o,i)};s.sort(h),f.sort(h),l.sort(h),d.sort(h),c.sort(h);var g=null;return t.typeList?(g=[],-1!==t.typeList.indexOf("video")&&(g=g.concat(s)),-1!==t.typeList.indexOf("3d")&&(g=g.concat(f)),-1!==t.typeList.indexOf("audio")&&(g=g.concat(l)),-1!==t.typeList.indexOf("mute")&&(g=g.concat(c)),-1!==t.typeList.indexOf("mute60")&&(g=g.concat(d)),-1!==t.typeList.indexOf("subtitles")&&(g=g.concat(u)),-1!==t.typeList.indexOf("other")&&(g=g.concat(p))):g=s.concat(f,l,u,d,c,p),t.groupCompare&&g.sort(h),g},removePanel:function(){null!==this.popup.parentNode&&this.popup.parentNode.removeChild(this.popup),void 0!==this.popupStyle&&null!==this.popupStyle.parentNode&&this.popupStyle.parentNode.removeChild(this.popupStyle),this.popup=void 0,this.popupStyle=void 0},getHiddenList:function(e,t){var n,i=this,r=document.createDocumentFragment();if(e.length<8)I.a.create(r,{append:e});else{var a=I.a.create("div",{style:{maxHeight:"192px",overflowY:"scroll",display:"none"},on:[["wheel",function(e){e.wheelDeltaY>0&&0===this.scrollTop?e.preventDefault():e.wheelDeltaY<0&&this.scrollHeight-(this.offsetHeight+this.scrollTop)<=0&&e.preventDefault()}],(n=!1,["scroll",function(){if(0!==this.scrollTop){if(n)return;n=!0,this.style.boxShadow="rgba(0, 0, 0, 0.40) -2px 1px 2px 0px inset"}else{if(!n)return;n=!1,this.style.boxShadow=""}}])],append:e});a.setAttribute(i.dataArrtVisible,"0"),r.appendChild(a)}var s=i.createPopupItem("-",t).el;r.appendChild(s);var l=i.createPopupItem("#",t).el;return I.a.create(l,{text:o.default.i18n.getMessage("more")+" "+String.fromCharCode(187),data:{visible:"0"},on:["click",function(e){e.preventDefault();var t,n=this.dataset.visible;n>0?(n--,t=187):(n++,t=171),this.textContent=o.default.i18n.getMessage("more")+" "+String.fromCharCode(t),this.dataset.visible=n;for(var r,a=this.parentNode.querySelectorAll("*["+i.dataArrtVisible+"]"),s=0;r=a[s];s++)r.style.display=1===n?"block":"none",r.setAttribute(i.dataArrtVisible,n)}]}),r.appendChild(l),0===t.visibleCount&&S.a.trigger(l,"click",{cancelable:!0}),r},getContent:function(e){var t=this,n=e.links,i=document.createDocumentFragment(),r=[];if("string"==typeof n){var a=t.createPopupItem("-text-",e).el;a.textContent=n,i.appendChild(a)}else if(0===n.length){var s=t.createPopupItem("-text-",e).el;s.textContent=o.default.i18n.getMessage("noLinksFound"),i.appendChild(s)}else{var l=[];n.forEach(function(n){l.push(t.createPopupItem(n,e))}),l=t.sortMenuItems(l,e.sortDetails);var u=[];l.forEach(function(t){if(t.prop.isHidden)return u.push(t.el),1;i.appendChild(t.el),e.showFileSize&&t.sizeIcon&&r.push(t.sizeIcon)}),e.visibleCount=l.length-u.length,u.length>0&&(e.getHiddenListFunc?i.appendChild(e.getHiddenListFunc(u,e)):i.appendChild(t.getHiddenList(u,e)))}return{sizeIconList:r,content:i}},create:function(e){var t=e.button,n=H.popupMenu;if(e.linkClass=e.linkClass||"sf-menu-item",e.offsetRight=e.offsetRight||0,e.offsetTop=e.offsetTop||0,e.parent=e.parent||document.body,!e.isUpdate||void 0!==n.popup&&"none"!==n.popup.style.display){n.popup&&n.removePanel();var o=n.popup=document.createElement("div"),i="#"+n.popupId;e.popupId?(i="#"+e.popupId,o.id=e.popupId):e.containerClass?(i="."+e.containerClass,o.classList.add(e.containerClass)):o.id=n.popupId;var r={display:"block",position:"absolute",minHeight:"24px",cursor:"default",textAlign:"left",whiteSpace:"nowrap",fontFamily:"arial, sans-serif"};e.extStyle&&delete r.display;var a=H.getPosition(t,e.parent),s=H.getSize(t);r.top=a.top+e.offsetTop+s.height+"px",r.left=a.left+e.offsetRight+"px",H.setStyle(o,r);var l={"background-color":"#fff","z-index":"9999","box-shadow":"0 2px 10px 0 rgba(0,0,0,0.2)",border:"1px solid #ccc","border-radius":"3px","font-size":"12px","font-weight":"bold","min-width":"190px"};if(e.style&&e.style.popup)for(var u in e.style.popup){var d=e.style.popup[u];l[u]=d}H.addStyleRules(i,l);var f={"line-height":"24px",color:"#3D3D3D"};if(e.style&&e.style.item)for(var u in e.style.item)d=e.style.item[u],f[u]=d;H.addStyleRules(i+" ."+e.linkClass,f);var p=function(e){e.stopPropagation()};for(I.a.create(o,{on:[["click",p],["mouseover",p],["mouseup",p],["mousedown",p],["mouseout",p]]});null!==o.firstChild;)o.removeChild(o.firstChild);var m=n.getContent.call(n,e),h=m.sizeIconList;m=m.content,o.appendChild(m);var g="#2F8AFF",v="#fff";e.style&&e.style.hover&&(g=e.style.hover.backgroundColor||g,v=e.style.hover.color||v);var b=n.popupStyle=document.createElement("style");if(b.textContent=c()({selector:i,append:{"a:hover":{backgroundColor:g,color:v},"> a:first-child":{borderTopLeftRadius:"3px",borderTopRightRadius:"3px"},"> a:last-child":{borderBottomLeftRadius:"3px",borderBottomRightRadius:"3px"}}}),e.parent.appendChild(b),e.parent.appendChild(o),e.extStyle){void 0!==H.popupMenu.extStyleCache&&null!==H.popupMenu.extStyleCache.parentNode&&H.popupMenu.extStyleCache.parentNode.removeChild(H.popupMenu.extStyleCache);var y="sf-extElStyle_"+i.substr(1),k="sf-extBodyStyle_"+i.substr(1);null===document.querySelector("style."+k)&&document.body.appendChild(I.a.create("style",{class:k,text:c()({selector:i,style:{display:"none"}})})),H.popupMenu.extStyleCache=e.extStyle.appendChild(I.a.create("style",{class:y,text:c()({selector:"body "+i,style:{display:"block"}})}))}return setTimeout(function(){h.forEach(function(e){S.a.trigger(e,"click",{bubbles:!1,cancelable:!0})})}),o}},update:function(e,t){for(var n=H.popupMenu;null!==e.firstChild;)e.removeChild(e.firstChild);var o=n.getContent.call(n,t),i=o.sizeIconList;o=o.content,e.appendChild(o),setTimeout(function(){i.forEach(function(e){S.a.trigger(e,"click",{bubbles:!1,cancelable:!0})})})},preprocessItem:{srt2url:function(e,t){var n=e.srt,o=y()(n,"text/plain");t.ext="srt",t.format="SRT",t.href=o,t.noSize=!0}},prepareLinks:{youtube:function(e,t,n,r){r=r||{},n=n||[],e=i()({},e);var a=H.video.yt;a.init();var s=[],l=null,u=e.meta||{};return x()(a.format).forEach(function(n){var o=a.format[n];return x()(o).forEach(function(r){var d=e[r];if(d){var c=!1;a.showFormat[n]||(c=!0);var f=o[r];f["3d"]&&!a.show3D&&(c=!0),f.noAudio&&!a.showMP4NoAudio&&(c=!0),l={href:d,isHidden:c,title:t,format:n,itag:r,forceDownload:!0},i()(l,f);var p=u[r];p&&(p.quality&&(l.quality=p.quality),p.fps&&(l.fps=p.fps)),s.push(l),delete e[r]}})}),(e.ummy||e.ummyAudio)&&function(){var t=null,n=-1,o=H.popupMenu.badgeQualityList;s.forEach(function(e){var t=o.indexOf(e.quality);-1!==t&&(-1===n||t<n)&&(n=t)}),-1!==n&&(t=o[n]);var i=u.videoId;i&&["ummy","ummyAudio"].forEach(function(n){var o=e[n];o&&(l={href:o,quality:"ummy",noSize:!0,format:"ummy",videoId:"yt-"+i},"ummy"===n?(l.itag="ummy",l.uQuality=t):"ummyAudio"===n&&(l.itag="ummyAudio",l.uQuality="mp3",l.uIsAudio=!0),r.ummyVid&&(l.vid=r.ummyVid),s.push(l),delete e[n])})}(),x()(e).forEach(function(n){"meta"!==n&&(l={href:e[n],isHidden:!0,title:t,quality:n,itag:n,forceDownload:!0},s.push(l),delete e[n])}),n.forEach(function(e){l={href:e.url,isHidden:!0,quality:"SRT"+(e.isAuto?"A":""),itemText:o.default.i18n.getMessage("subtitles")+" ("+e.lang+")",title:t+"-"+e.langCode,ext:"vtt",format:"VTT",isSubtitle:!0,langCode:e.langCode,forceDownload:!0},"srt2url"===e.preprocess&&H.popupMenu.preprocessItem.srt2url(e,l),s.push(l)}),u.extra&&u.extra.forEach(function(e){l={href:"#"+e.extra,noSize:!0,isHidden:!1},i()(l,e),e.itag&&x()(a.format).some(function(t){var n=a.format[t][e.itag];if(n)return i()(l,n),!0}),e.request&&(l.func=function(t){return t.preventDefault(),o.default.sendMessage(e.request)}),l.noAudio=!1,s.push(l)}),s},vimeo:function(e,t){var n,o=[];return e.forEach(function(e){var i=e.ext;i||(i="mp4",-1!=e.url.search(/\.flv($|\?)/i)&&(i="flv"));var r=e.height||"",a=e.type;n={href:e.url,title:t,ext:i,format:a,quality:r,forceDownload:!0},o.push(n)}),o},vk:function(e,t){var n,o=[];return e.forEach(function(e){var i=e.name||e.ext;i&&(i=i.toLowerCase());var r=i&&i.toUpperCase()||"",a=e.subname||"";n={href:e.url,title:t,ext:i,format:r,quality:a,forceDownload:!0},o.push(n)}),o},dailymotion:function(e,t){var n=[];return e.forEach(function(e){var o=null;"ummy"===e.extra?(o={href:e.url,quality:"ummy",noSize:!0,format:"ummy",videoId:e.videoId,sort:{size:480}},"ummyAudio"===e.type&&(o.uQuality="mp3",o.uIsAudio=!0)):o={href:e.url,title:t,ext:e.ext,format:e.ext,quality:e.height||"",forceDownload:!0},n.push(o)}),n},facebook:function(e,t){var n,o=[];return e.forEach(function(e){var i=e.ext,r=i?i.toUpperCase():"",a=e.name;n={href:e.url,title:t,ext:i,format:r,quality:a,forceDownload:!0},o.push(n)}),o},rutube:function(e){if(a()(e)&&(e=e[0]),"string"==typeof e){var t=[],n=e.match(/\/embed\/(\d+)/);(n=n&&n[1]||void 0)||(n=(n=e.match(/\/video\/([0-9a-z]+)/))&&n[1]||void 0),/\/\/video\./.test(e)&&(e=e.replace(/\/\/video\./,"//"),n||(n=(n=e.match(/\/(\d+)$/))&&n[1]||void 0)),n&&(n="rt-"+n);var o=e.replace(/^.*(\/\/.*)$/,"ummy:$1"),i={href:o,quality:"ummy",noSize:!0,format:"ummy",itag:"ummy",uQuality:"720",vid:114,videoId:n},r="?";-1!==o.indexOf(r)&&(r="&");var s={href:o+=r+"sf_type=audio",quality:"ummy",noSize:!0,format:"ummy",itag:"ummyAudio",uQuality:"mp3",uIsAudio:!0,vid:114,videoId:n};return t.push(i),t.push(s),t}},mailru:function(e,t){var n,o=[];return e.forEach(function(e){var i=e.ext,r=e.name,a=e.subname;n={href:e.url,title:t,ext:i,format:r,quality:a,forceDownload:!0},o.push(n)}),o}},quickInsert:function(e,t,n,o){o=o||{};var r={},a=function t(n){n&&(n.target===e||e.contains(n.target))||r.isShow&&(l.style.display="none",S.a.off(document,"mousedown",t),r.isShow=!1,o.onHide&&o.onHide(l))},s={links:t,button:e,popupId:n,showFileSize:!0};i()(s,o);var l=H.popupMenu.create(s);return o.onShow&&o.onShow(l),S.a.off(document,"mousedown",a),S.a.on(document,"mousedown",a),i()(r,{button:e,isShow:!0,el:l,hide:a,update:function(e){s.links=e,H.popupMenu.update(l,s)}})}},frameMenu:{getBtn:function(e){var t={verticalAlign:"middle",position:"absolute",zIndex:999,fontFamily:"arial, sans-serif"};for(var n in e.containerStyle)t[n]=e.containerStyle[n];var o=e.quickBtnStyleObj||{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid rgba(255, 255, 255, 0.4)",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingRight:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"};e.singleBtn&&!e.quickBtnStyleObj&&(delete o.borderTopRightRadius,delete o.borderBottomRightRadius);var i={position:"relative",display:"inline-block",fontSize:"inherit",height:"24px",padding:0,paddingRight:"21px",border:"1px solid rgba(255, 255, 255, 0.4)",borderLeft:0,borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#fff",zIndex:0,verticalAlign:"middle",marginLeft:0,boxSizing:"border-box",lineHeight:"22px"};for(var n in e.selectBtnStyle)i[n]=e.selectBtnStyle[n];var r,a=e.quickBtnIcon||I.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+H.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),s=e.selectBtnIcon||I.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #FFF",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}}),l=I.a.create("div",{id:e.btnId,style:t,on:e.on,append:[r=I.a.create("a",{class:"sf-quick-btn",style:o,href:"#",append:[a]}),I.a.create("style",{text:c()({selector:"#"+e.btnId,style:e.nodeCssStyle||{opacity:.8,display:"none"},append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-btn":e.quickBtnCssStyle||{backgroundColor:"rgba(28,28,28,0.1)"},".sf-select-btn":{backgroundColor:"rgba(28,28,28,0.1)"}},{selector:[":hover",".sf-over"],join:"",style:{opacity:1},append:{".sf-quick-btn":e.quickBtnOverCssStyle||{backgroundColor:"rgba(0, 163, 80, 0.5)"},".sf-select-btn":{backgroundColor:"rgba(60, 60, 60, 0.5)"}}},{join:"",".sf-over":{append:{".sf-select-btn":{backgroundColor:"rgba(28,28,28,0.8)"}}},".sf-show":{display:"block"}}]})})]}),u=null,d=null;return e.singleBtn||(d=function(e){var t="object"==typeof e?e:document.createTextNode(e),n=u.firstChild;n===s?u.insertBefore(t,n):u.replaceChild(t,n)},u=I.a.create("button",{class:"sf-select-btn",style:i,on:e.onSelectBtn,append:[s]}),l.appendChild(u)),{node:l,setQuality:d,setLoadingState:function(){d(I.a.create("img",{src:H.svg.getSrc("info","#ffffff"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:"-1px",position:"relative"}}))},selectBtn:u,quickBtn:r}},getHiddenList:function(e,t){var n=H.popupMenu,i=n.createPopupItem("-text-",t).el;I.a.create(i,{text:o.default.i18n.getMessage("more")+" "+String.fromCharCode(187),style:{cursor:"pointer"},on:["click",function(){for(var e,t=this.parentNode.querySelectorAll("*["+n.dataArrtVisible+"]"),o=0;e=t[o];o++)e.style.display="block",e.setAttribute(n.dataArrtVisible,1);this.parentNode.removeChild(this)}]});var r=document.createDocumentFragment();return r.appendChild(i),I.a.create(r,{append:e}),0===t.visibleCount&&S.a.trigger(i,"click",{cancelable:!0}),r},getMenuContainer:function(e){var t=H.popupMenu,n=e.button,o=e.popupId,i=I.a.create("div",{style:{position:"absolute",minHeight:"24px",cursor:"default",textAlign:"left",whiteSpace:"nowrap",overflow:"auto"}});"#"===o[0]?i.id=o.substr(1):i.classList.add(o);var r=t.getContent(e);i.appendChild(r.content),setTimeout(function(){r.sizeIconList.forEach(function(e){S.a.trigger(e,"click",{bubbles:!1,cancelable:!0})})});var a=H.getPosition(n,e.parent),s=H.getSize(n),l=function(e){e.stopPropagation()},u=a.top+s.height,d={top:u+"px",maxHeight:document.body.offsetHeight-u-40+"px"};return e.leftMenuPos?d.left=a.left+"px":d.right=document.body.offsetWidth-a.left-s.width+"px",I.a.create(i,{style:d,on:[["click",l],["mouseover",l],["mouseup",l],["mousedown",l],["mouseout",l],["wheel",function(e){e.wheelDeltaY>0&&0===this.scrollTop?e.preventDefault():e.wheelDeltaY<0&&this.scrollHeight-(this.offsetHeight+this.scrollTop)<=0&&e.preventDefault()}]],append:[I.a.create("style",{text:c()({selector:("#"===o[0]?"":".")+o,style:{display:"none",fontFamily:"arial, sans-serif",backgroundColor:"rgba(28,28,28,0.8)",zIndex:9999,borderRadius:"4px",fontSize:"12px",fontWeight:"bold",minWidth:"190px",color:"#fff"},append:[{join:"",".sf-show":{display:"block"},"::-webkit-scrollbar-track":{backgroundColor:"#424242"},"::-webkit-scrollbar":{width:"10px",backgroundColor:"#424242"},"::-webkit-scrollbar-thumb":{backgroundColor:"#8e8e8e"}},{".sf-menu-item":{lineHeight:"24px",color:"#fff"},".sf-menu-item:hover":{backgroundColor:"#1c1c1c"}}]})})]}),i},getMenu:function(e,t,n,o){var i={links:t,button:e,popupId:n||"#sf-frame-menu",showFileSize:!0,sizeIconStyle:{color:"#fff"},linkClass:"sf-menu-item",bindUmmyInfoDetails:{posLeft:!0,widthLimit:480,container:o.container,createUmmyInfoDetails:{posLeft:!0,darkTheme:!0}},getHiddenListFunc:this.getHiddenList.bind(this)};for(var r in o)i[r]=o[r];var a=this.getMenuContainer(i);(i.container||document.body).appendChild(a);var s=function(){a.parentNode&&a.parentNode.removeChild(a),l.isShow=!1,i.onHide&&i.onHide()};i.onShow&&i.onShow(a),S.a.off(document,"mousedown",s),S.a.on(document,"mousedown",s);var l={isShow:!0,el:a,hide:s,update:function(e){var t=H.popupMenu,n=a.lastChild;a.textContent="",i.links=e;var o=t.getContent(i);setTimeout(function(){o.sizeIconList.forEach(function(e){S.a.trigger(e,"click",{bubbles:!1,cancelable:!0})})}),a.appendChild(o.content),a.appendChild(n)}};return l}},mobileLightBox:{id:"sf-lightbox",clear:function(){var e=document.getElementById(H.mobileLightBox.id);null!==e&&e.parentNode.removeChild(e)},getTitle:function(e){var t=[];if(t.push(e.format||"???"),e.quality){var n=e.quality;e.sFps&&(n+=" "+(e.fps||60)),t.push(n)}return e["3d"]&&t.push("3D"),e.noAudio&&t.push(o.default.i18n.getMessage("withoutAudio")),t.join(" ")},createItem:function(e){var t=H.mobileLightBox,n=I.a.create("a",{style:{display:"block",marginBottom:"6px",border:"solid 1px #d3d3d3",lineHeight:"36px",minHeight:"36px",background:"#f8f8f8",verticalAlign:"middle",fontSize:"15px",textAlign:"center",color:"#333",borderRadius:"2px",overflow:"hidden",position:"relative"}}),o="";if(e.title){var i=(e.ext||e.format||"").toLowerCase();i&&(i="."+i),o=F.a.modify(e.title+i)}if("string"==typeof e)return n.textContent=e,n;n.href=e.href,n.download=o,n.textContent=t.getTitle(e),e.forceDownload&&n.addEventListener("click",function(e){H.downloadOnClick(e,null,{el:this})}),e.isHidden&&(n.classList.add("isOptional"),n.style.display="none");var r=H.getFileSizeIcon({cssFloat:"right",lineHeight:"36px",fontSize:"75%",marginRight:"10px"},{padding:"10px",verticalAlign:"middle",lineHeight:0},{width:"16px",height:"16px"},{url:e.href});return n.appendChild(r.node),n},getItems:function(e){var t=H.mobileLightBox;if("string"==typeof e)return{list:[t.createItem(e)],hiddenCount:0};for(var n,o=[],i=0;n=e[i];i++)"ummy"!==n.quality&&(n.extra||o.push({el:t.createItem(n),prop:n}));o=H.popupMenu.sortMenuItems(o);var r=[],a=[];for(i=0;n=o[i];i++)n.prop.isHidden?a.push(n.el):r.push(n.el);return{list:r.concat(a),hiddenCount:a.length}},show:function(e){var t,n=H.mobileLightBox,r=window.pageYOffset,a=window.innerHeight,s=k()(a/100*15),l=void 0,u=function(e){return a-46*(e?2:1)-2*s},d=function(e){e.hiddenCount>0?(l.style.height=u(1)+"px",t.style.display="block"):(t.style.display="none",l.style.height=u(0)+"px"),e.hiddenCount===e.list.length&&c(t)},c=function(e){var t="none",n=e.parentNode.querySelectorAll(".isOptional");"open"!==e.dataset.state?(e.dataset.state="open",e.textContent=o.default.i18n.getMessage("more")+" "+String.fromCharCode(171),t="block"):(e.dataset.state="close",e.textContent=o.default.i18n.getMessage("more")+" "+String.fromCharCode(187));for(var i,r=0;i=n[r];r++)i.style.display=t},f=document.getElementById(n.id);null!==f&&f.parentNode.removeChild(f);var p=window.innerWidth;p=p<=250?"90%":"70%",e&&0!==e.length||(e=o.default.i18n.getMessage("noLinksFound"));var m=n.getItems(e),h=I.a.create("div",{id:n.id,style:{position:"absolute",top:0,left:0,width:"100%",zIndex:9e3,height:document.body.scrollHeight+"px",background:"rgba(0,0,0,0.85)",textAlign:"center",boxSizing:"content-box"},on:[["click",function(e){e.preventDefault(),b()}]],append:I.a.create("div",{style:{display:"inline-block",width:p,backgroundColor:"#eee",height:a-2*s+"px",marginTop:s+r+"px",borderRadius:"4px",padding:"8px",position:"relative",boxSizing:"content-box"},append:[l=I.a.create("div",{style:{overflowY:"auto",marginBottom:"6px"},append:m.list,on:["touchmove",function(e){e.stopPropagation()}]}),t=I.a.create(n.createItem(o.default.i18n.getMessage("more")+" "+String.fromCharCode(187)),{href:"#",on:["click",function(e){e.preventDefault(),c(this)}]}),I.a.create(n.createItem(o.default.i18n.getMessage("close")),{style:{marginBottom:0},on:["click",function(e){e.preventDefault(),b()}]})],on:["click",function(e){e.stopPropagation()}]})});d(m),document.body.appendChild(h);var g=document.body.scrollTop,v={},b=function(){v.isShow&&(document.body.scrollTop=g,v.hide())};return i()(v,{isShow:!0,el:h,hide:function(){h.parentNode&&h.parentNode.removeChild(h),v.isShow=!1},close:b,update:function(e){if(null!==h.parentNode){e&&0!==e.length||(e=o.default.i18n.getMessage("noLinksFound")),l.textContent="";var t=n.getItems(e);I.a.create(l,{append:t.list}),d(t)}}})}},bridge:function(e){e.args=e.args||[],void 0===e.timeout&&(e.timeout=300);var t="sf-bridge-"+k()(1e3*Math.random())+"-"+b()();window.addEventListener("sf-bridge-"+t,function n(o){var i;window.removeEventListener("sf-bridge-"+t,n),i=o.detail?JSON.parse(o.detail):void 0,e.cb(i)});var n='(function(a,b,c,d){/* fix */var e=document.getElementById(c);e&&e.parentNode.removeChild(e);var f=!1,g=function(a){if(!f){f=!0;var b=new CustomEvent("sf-bridge-"+c,{detail:JSON.stringify(a)});window.dispatchEvent(b)}};d&&setTimeout(function(){g()},d),b.push(g),a.apply(null,b)})('+[e.func.toString(),g()(e.args),g()(t),k()(e.timeout)].join(",")+");";o.default.isSafari&&(n=n.replace("/* fix */",'(function(){"undefined"==typeof CustomEvent&&(CustomEvent=function d(a,b){b=b||{bubbles:!1,cancelable:!1};var c=document.createEvent("CustomEvent");return c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c},CustomEvent.prototype=window.Event.prototype)})();'));var i=I.a.create("script",{id:t,text:n});document.body.appendChild(i)},TutorialTooltip:function(e){var t=this;this.details={btnTopOffset:-3,btnLeftOffset:0},i()(this.details,e),this.onResize=this.onResize.bind(this),this.onResizeDebouce=u()(this.onResize,250),this.onClose=this.onClose.bind(this),this.target=e.target,"1"!==this.target.dataset.sfHasTooltip&&(this.target.dataset.sfHasTooltip="1",this.tooltipNode=this.getNode(),this.target.addEventListener("mouseup",this.onClose),this.target.addEventListener(S.a.onRemoveEventName,function(){t.onClose&&t.onClose(1)}),window.addEventListener("resize",this.onResizeDebouce),this.onResize(),(e.parent||document.body).appendChild(this.tooltipNode))}};H.TutorialTooltip.prototype.getNode=function(){var e=this,t=function(){var e=1e3,t=document.getElementById("masthead-positioner"),n=t&&window.getComputedStyle(t,null);return n&&(e=k()(n.getPropertyValue("z-index"))+1),e}();return I.a.create("div",{class:"sf-tooltip",on:["mouseup",function(e){e.stopPropagation()}],append:[I.a.create("span",{style:{display:"inline-block",border:"8px solid transparent",borderRight:"10px solid #4D4D4D",borderLeft:0,width:0,top:"8px",left:"0px",position:"absolute"}}),I.a.create("span",{style:{display:"inline-block",backgroundColor:"#4D4D4D",marginLeft:"10px",padding:"10px 10px",maxWidth:"220px",minWidth:"220px",lineHeight:"16px",fontSize:"14px",fontFamily:"font-family: arial, sans-serif",color:"#fff"},append:[I.a.create("p",{style:{margin:0},append:P()(o.default.i18n.getMessage("tutorialTooltipText"))}),I.a.create("a",{class:"sf-button",text:"OK",style:{display:"inline-block",textAlign:"center",textDecoration:"none",padding:"0 10px",cssFloat:"right",marginTop:"5px",lineHeight:"20px",borderRadius:"3px",fontSize:"12px",color:"#fff",fontWeight:"bolder",backgroundColor:"#167AC6",cursor:"pointer"},on:["click",function(t){t.preventDefault(),e.onClose&&e.onClose()}]}),I.a.create("style",{text:c()({".sf-tooltip":{position:"absolute",zIndex:t+2,append:{".sf-button:hover":{backgroundColor:"#126db3 !important"},".sf-button:active":{opacity:.9}}}})})]})]})},H.TutorialTooltip.prototype.onClose=function(e){e&&"mouseup"===e.type&&(e=null),this.tooltipNode&&(this.tooltipNode.parentNode&&this.tooltipNode.parentNode.removeChild(this.tooltipNode),this.tooltipNode=null),window.removeEventListener("resize",this.onResizeDebouce),this.target.removeEventListener("mouseup",this.onClose),this.onClose=null,e||this.details.onClose&&this.details.onClose()},H.TutorialTooltip.prototype.onResize=function(){var e=this.target;if(!e.offsetParent||!e.parentNode)return this.onClose&&this.onClose(1);var t=H.getPosition(e,this.details.parent),n=t.top+this.details.btnTopOffset,o=t.left+t.width+this.details.btnLeftOffset;this.tooltipNode.style.top=n+"px",this.tooltipNode.style.left=o+"px"},H.mutationWatcher={getMutationObserver:function(){return _()()},isAvailable:function(){return!!this.getMutationObserver()},disconnect:function(e){e.observer.disconnect()},connect:function(e){e.observer.observe(e.target,e.config)},joinMutations:function(e){for(var t,n,o,i,r,a,s=[],l=[],u={};o=e.shift();){for(-1===(a=l.indexOf(o.target))&&(u[a=l.push(o.target)-1]={target:o.target,added:[],removed:[]}),t=u[a],n=void 0,i=0;r=o.addedNodes[i];i++)1===r.nodeType&&(t.added.push(r),n=!0);for(i=0;r=o.removedNodes[i];i++)1===r.nodeType&&(t.removed.push(r),n=!0);void 0!==n&&void 0===t.inList&&(t.inList=!0,s.push(t))}return s},isMatched:j.a,match:function(e,t,n){var o,i,r,a,s=this,l=e.queries,u=!1;return["added","removed"].forEach(function(e){var d=n[e];for(a=0;o=d[a];a++)for(i=0;r=l[i];i++)if(void 0===r.is||r.is===e){var c=t[i][e];!0===s.isMatched(o,r.css)?c.push(o):c.push.apply(c,o.querySelectorAll(r.css)),!1===u&&(u=void 0!==c[0])}}),u},filterTarget:function(e,t){var n,o;for(n=0;o=e[n];n++)if(!0===this.isMatched(t,o.css))return!0;return!1},run:function(e){var t=this,n={config:{childList:!0,subtree:!0},target:document.body,filterTarget:[]};i()(n,e),n._disconnect=this.disconnect.bind(this,n),n._connect=this.connect.bind(this,n),n._match=this.match.bind(this,n);for(var o=[],r=0;r<n.queries.length;r++)o.push({added:[],removed:[]});o=g()(o);var a=this.getMutationObserver();return n.observer=new a(function(e){var i=t.joinMutations(e);if(0!==i.length){for(var r,a=!1,s=JSON.parse(o);r=i.shift();)!1===t.filterTarget(n.filterTarget,r.target)&&!0===n._match(s,r)&&(a=!0);!0===a&&n.callback(s)}}),n.trigger=function(e){var t=!1,i=JSON.parse(o),r={added:[e],removed:[]};n._match(i,r)&&(t=!0),!0===t&&n.callback(i)},n.start=function(){n._disconnect(),n._connect(),n.trigger(n.target)},n.stop=function(){n._disconnect()},n.start(),n}},H.mutationAttrWatcher={isAvailable:function(){return!!H.mutationWatcher.getMutationObserver()},disconnect:function(e){e.observer.disconnect()},connect:function(e){e.observer.observe(e.target,e.config)},run:function(e){var t={config:{attributes:!0,childList:!1,attributeOldValue:!0},target:document.body};i()(t,e),a()(t.attr)||(t.attr=[t.attr]),t.config.attributeFilter=t.attr,t._disconnect=this.disconnect.bind(this,t),t._connect=this.connect.bind(this,t);for(var n=[],o=0;o<t.attr.length;o++)n.push({});n=g()(n);var r=H.mutationWatcher.getMutationObserver();return t.observer=new r(function(e){for(var o,i=!1,r=JSON.parse(n);o=e.shift();){var a=t.attr.indexOf(o.attributeName);if(-1!==a){var s=o.target.getAttribute(o.attributeName);s!==o.oldValue&&(r[a]={value:s,oldValue:o.oldValue},i=!0)}}!0===i&&t.callback(r)}),t.start=function(){t._disconnect(),t._connect();for(var e,o=!1,i=JSON.parse(n),r=0;e=t.attr[r];r++){var a=t.target.getAttribute(e);null!==a&&(i[r]={value:a,oldValue:null},o=!0)}!0===o&&t.callback(i)},t.stop=function(){t._disconnect()},setTimeout(function(){t.start()}),t}},H.waitNodesBySelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1,o=null,i=A.a.resolve().then(function(){var i=t.target||document.body,r=H.mutationWatcher.getMutationObserver(),a=null,s=null,l=new A.a(function(e,t){a=e,s=t}),u=null;t.timeout>0&&(u=setTimeout(function(){o&&o()},t.timeout));var d=[],c=new r(function(t){var n,o;for(n=0;n<t.length;n++){var i=t[n];for(o=0;o<i.addedNodes.length;o++){var r=i.addedNodes[o];1===r.nodeType&&(j()(r,e)?d.push(r):d.push.apply(d,r.querySelectorAll(e)))}}d.length&&a(d)});return c.observe(i,{childList:!0,subtree:!0}),o=function(){o=null,s(new Error("ABORTED"))},d.push.apply(d,i.querySelectorAll(e)),d.length&&a(d),n&&o&&o(),l.then(function(e){return c.disconnect(),clearTimeout(u),e},function(e){throw c.disconnect(),clearTimeout(u),e})});return i.abort=function(){n=!0,o&&o()},i},t.a=function(e){return V=e,H}},function(e,t){e.exports=n(76)},function(e,t){e.exports=n(181)},function(e,t){e.exports=n(14)},function(e,t){e.exports=n(35)},function(e,t,n){var o=n(0);t.a=function(e){return new A.a(function(t){o.default.sendMessage(e,t)})}},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(36)},function(e,t){e.exports=n(19)},function(e,t){e.exports=n(184)},function(e,t){e.exports=n(42)},function(e,t){e.exports=n(217)},function(e,t){e.exports=n(54)},function(e,t){e.exports=n(185)},function(e,t){e.exports=n(55)},,function(e,t){e.exports=n(28)},,function(e,t){e.exports=n(187)},,,function(e,t){e.exports=n(188)},function(e,t){e.exports=n(101)},function(e,t){e.exports=n(189)}]])},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={18:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([38,0]),n()}({38:function(e,t,n){n.r(t);var o=n(0),r=n(10),a=n(5),s=n(8),l=n.n(s),u=n(12),d=n.n(u),c=n(6),f=n.n(c),p=n(26),m=n.n(p),h=n(18),v=n.n(h),b=n(4),y=n.n(b),w=n(9),x=n.n(w),S=n(7),C=n.n(S),L=n(2),M=n.n(L),I=n(1),O=n.n(I),P=n(15),T=n(13),F=n.n(T),E=n(11),N=n.n(E),D=n(17),B=n.n(D),R=F()("vimeo_com");N.a.isSingle()&&Object(a.b)("vimeo",function(e,t){var n=Object(r.a)(t),a=t.preferences,s=a.moduleVimeo?1:0,u=l()();o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return c.changeState(t.state)}"updatePreferences"!==t.action||i()(a,t.preferences)}),s&&setTimeout(function(){c.run()});var c={panelId:"savefrom__vimeo_links",btnBox:null,clipId:null,timer:null,btnPrefix:"sd_ld_bnt_",popupIsShow:!1,dlBtnClassName:"sf-dl-btn",currentMenu:null,linkCache:{},run:function(){if(s=1,u){if(c.clipId=c.getFrameClipId(),c.clipId)return c.appendIframeButtons();u=!1}this.videoFeed.injectStyle(),n.mutationWatcher.isAvailable()&&this.mutationMode.enable()},changeState:function(e){u||(s=e,c.videoFeed.disable(),c.rmAllBtn(),c.mutationMode.stop(),e&&c.run())},hideMenu:function(){c.currentMenu&&(c.currentMenu.hide(),c.currentMenu=null)},getFrameClipId:function(){var e=document.location.href.match(/player\.vimeo\.com\/video\/([\w\-]+)/i);if(e=e&&e[1])return e},getBrowserVideoData:function(e,t){var n=e.querySelector(".uploaded_on");if(n||(n=e.querySelector("#info .meta .stats")),!n)return null;if(t&&(t=(t=t.match(/([0-9]+)$/))&&t[1]),!t){var o=e.querySelector("a.js-title")||e.querySelector("a");if(!o)return;var i=o.getAttribute("href");if(!i)return;t=(t=i.match(/\/([0-9]+)$/))&&t[1]}return t?{id:t,parent:n,style:1}:void 0},getVideoId:function(e){var t,n=null;if(t=(e=e||document).querySelector(".player[data-clip-id]"))return t.dataset.clipId;if(t=e.querySelector(".player[data-fallback-url]")){var o=t.dataset.fallbackUrl||"";if(o=o.match(/video\/([0-9]+)\//))return o[1]}return(t=e.querySelector("div.player_wrapper > div.faux_player[data-clip_id]"))&&(n=t.dataset.clip_id)?n:void 0},onBtnClick:function(e,t){t.stopPropagation(),t.preventDefault();var i=e.id;if(!i){var r=null;e.playerContainer&&(r=C()(e.parent,e.playerContainer)),i=c.getVideoId(r)}if(c.currentMenu&&c.currentMenu.isShow)c.hideMenu();else{var a=o.default.i18n.getMessage("download")+" ...",s={};4===e.style&&(s.offsetTop=20);var l,u=this.dataset.sfMobile>0;l=c.currentMenu=u?n.mobileLightBox.show(a):n.popupMenu.quickInsert(this,a,"sf-popupMenu",s);var d=function(e){if(e&&e.links){c.linkCache[i]=e;var t=n.popupMenu.prepareLinks.vimeo(e.links,e.title);l.update(t)}else l.update(o.default.i18n.getMessage("noLinksFound"))},f=c.linkCache[i];if(!f)return c.getLinksFromPage2(i).catch(function(e){return R.error("getLinksFromPage error",e),Object(P.a)({action:"getVimeoLinks",extVideoId:i,url:location.href}).catch(function(e){throw R.error("getVimeoLinks error",e),e})}).then(function(e){d(e)},function(e){d()});d(f)}},getPlayerConfig:function(){return new A.a(function(e,t){n.bridge({func:"function(a){try{var c=null;try{c=vimeo.clip_page_config.clip}catch(a){}a({clipId:vimeo.clip_page_config.clip.id,url:vimeo.clip_page_config.player.config_url,clip:c})}catch(b){a(null)}}",cb:function(n){n?e(n):t(new Error("Player config is not found"))}})})},getLinksFromPage2:function(e){return e=k()(e,10),this.getPlayerConfig().then(function(t){var n=t.clipId,o=t.url,i=t.clip;if(n!==e)throw new Error("Clip id is change");var r=function(e){return Object(P.a)({action:"getVimeoLinksFromConfigAction",config:e}).then(function(e){if(e)return e;throw new Error("getLinksFromConfig result is empty")})};return A.a.resolve().then(function(){if(i)return r(i);throw new Error("Clip is not exists!")}).catch(function(e){return R.error("Get links from config error",e),B()({url:o,localXHR:!0,json:!0,withCredentials:!0}).then(function(e){var t=e.body;return r(t)})})})},rmAllBtn:function(){["sfSkip"].forEach(function(e){for(var t,n=f()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)});for(var e,t=document.querySelectorAll("."+c.dlBtnClassName),n=0;e=t[n];n++)"1"!==e.dataset.sfType&&"3"!==e.dataset.sfType||(e=e.parentNode),e.parentNode.removeChild(e);c.videoFeed.rmBtn(),c.hideMenu()},appendBtn:function(e){var t,i=e.parent,r=i.querySelector("."+c.dlBtnClassName);if(r){if(!r.dataset.sfId&&6!==e.style)return;r.parentNode.removeChild(r),r=null}if(1===e.style?t=O.a.create("a",{text:o.default.i18n.getMessage("download"),class:[c.dlBtnClassName,"sf-style-1"],style:{display:"inline"},data:{sfId:e.id,sfType:e.style},href:"#"+e.id}):2===e.style?t=O.a.create("button",{text:o.default.i18n.getMessage("download"),class:[c.dlBtnClassName,"btn","iconify_down_b"],data:{sfId:e.id,sfType:e.style}}):5===e.style?t=O.a.create("button",{class:[c.dlBtnClassName,"sf-type-5"],data:{sfId:e.id,sfType:e.style},append:[O.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),O.a.create("span",{style:{marginLeft:0},text:o.default.i18n.getMessage("download")})]}):7===e.style?t=O.a.create("button",{class:[c.dlBtnClassName,"sf-type-7"],data:{sfId:e.id,sfType:e.style},append:[O.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),O.a.create("span",{style:{marginLeft:0},text:o.default.i18n.getMessage("download")})]}):3===e.style?t=O.a.create("button",{class:[c.dlBtnClassName,"iris_btn","iris_btn-switch"],data:{sfId:e.id,sfType:e.style},append:[O.a.create(n.svg.getSvg("download","#00adef"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),O.a.create("span",{class:"iris_btn-content",style:{marginLeft:0},text:o.default.i18n.getMessage("download")})]}):4===e.style?t=O.a.create("i",{class:[c.dlBtnClassName,"sf-style-4"],data:{sfId:e.id,sfType:e.style},style:{display:"inline-block",border:"1px solid #F8F8F8",width:"20px",height:"20px",lineHeight:0,cursor:"pointer",marginLeft:"10px",verticalAlign:"middle"},append:O.a.create("style",{text:y()([{selector:"."+c.dlBtnClassName+".sf-style-4",style:{background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:"."+c.dlBtnClassName+".sf-style-4:hover",style:{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:"."+c.dlBtnClassName+".sf-style-4:active",style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}}])})}):6===e.style&&(t=O.a.create("button",{class:[c.dlBtnClassName,"btn","btn_sm","btn_blue_o"],data:{sfId:e.id,sfType:e.style,sfMobile:1},style:{marginLeft:"8px"},append:[O.a.create(n.svg.getSvg("download","#00adef"),{style:{display:"inline-block",width:"12px",height:"12px",verticalAlign:"text-bottom",marginRight:"4px"}}),O.a.create("span",{class:"btn_text",style:{marginLeft:0},text:o.default.i18n.getMessage("download")})]})),t.addEventListener("click",c.onBtnClick.bind(t,e)),1===e.style&&(t=O.a.create("span",{append:[t," | "]})),3===e.style&&(t=O.a.create("div",{class:"clip_info-user_actions",append:[t]})),1===e.style||2===e.style||6===e.style){var a=i.firstChild;a?i.insertBefore(t,a):i.appendChild(t)}else i.appendChild(t)},playerStateChangeObserver:null,observeVideoUi:function(e,t){var o=t;if(o){var i=null,r=/(\s|^)with-controls(\s|$)/;this.playerStateChangeObserver&&this.playerStateChangeObserver.stop(),this.playerStateChangeObserver=n.mutationAttrWatcher.run({attr:"class",target:o,callback:function(t){var n=t[0],o=!r.test(n.oldValue),a=!r.test(n.value);!o&&a?(clearTimeout(i),i=setTimeout(function(){e.lockHide||e.container.classList.add("sf-hide-ui")},100)):o&&!a&&(clearTimeout(i),e.container.classList.remove("sf-hide-ui"))}})}},appendIframeButtons:function(){var e=this,t=n.frameMenu.getBtn({quickBtnStyleObj:{display:"inline-block",border:0,borderRadius:".3em",cursor:"pointer",position:"relative",padding:"6px 8px"},quickBtnCssStyle:{backgroundColor:"rgba(23,35,34,.75)"},quickBtnOverCssStyle:{backgroundColor:"rgb(0, 173, 239)"},nodeCssStyle:{display:"none"},singleBtn:!0,btnId:e.panelId,containerStyle:{left:"10px",top:"10px"},quickBtnIcon:O.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"}}),on:[["click",function(i){if(i.preventDefault(),i.stopPropagation(),e.currentMenu&&e.currentMenu.isShow)e.hideMenu();else{var r=e.clipId,a=e.linkCache[r],s=o.default.i18n.getMessage("download")+" ...";a&&(s=n.popupMenu.prepareLinks.vimeo(a.links,a.title));var l=e.currentMenu=n.frameMenu.getMenu(this,s,"sf-frame-menu",{leftMenuPos:!0,container:t.container,onShow:function(){t.node.classList.add("sf-over")},onHide:function(){e.currentMenu=null,t.node.classList.remove("sf-over")}});a||e.getLinksFromPage(function(t,i){var a=o.default.i18n.getMessage("noLinksFound");t&&(e.linkCache[r]={links:t,title:i},a=n.popupMenu.prepareLinks.vimeo(t,i)),l.update(a)})}}],["mousedown",function(n){n.stopPropagation(),2===n.button&&(i&&(i.stop(),i=null),e.hideMenu(),t.container.parentNode&&t.container.parentNode.removeChild(t.container))}]]});t.quickBtn.title=o.default.i18n.getMessage("download"),t.container=O.a.create("div",{class:"sf-btn-ctr",append:t.node}),M.a.on(t.container,"mouseenter",function(){t.lockHide=!0}),M.a.on(t.container,"mouseleave",function(){t.lockHide=!1}),t.node.appendChild(O.a.create("style",{text:y()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #"+e.panelId,"body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(t.container);var i=n.mutationWatcher.run({callback:function(n){var o=n[0].added[0];o&&(e.observeVideoUi(t,o),setTimeout(function(){i.stop(),i=null},0))},queries:[{css:'#player .captions[aria-live="assertive"]',is:"added"}]})},getLinksFromPage:function(e){var t=[/"video":{/,/"request":{/,/"files":/],n=m()(document.body.innerHTML,t),i=null;n.some(function(e){return v()(e,t).some(function(e){if(e.video&&e.request&&e.request.files)return i=e,!0})});var r=null,a=null,s=null,l=function(t){return t&&(a=t.links||null,s=t.title||null),e(a,s)};return i?(r={action:"getVimeoLinksFromConfig",config:i},o.default.sendMessage(r,l)):(r={action:"getVimeoLinks",extVideoId:c.clipId},o.default.sendMessage(r,l))},videoFeed:{btnClassName:"sf-feed-dl-btn",style:null,onClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.dataset.sfId;if(this.dataset.sfCouchMode,c.currentMenu&&c.currentMenu.isShow)c.hideMenu();else{var i=c.linkCache[t],r=o.default.i18n.getMessage("download")+" ...";i&&(r=n.popupMenu.prepareLinks.vimeo(i.links,i.title));var a=c.currentMenu=n.popupMenu.quickInsert(this,r,"sf-popupMenu");if(!i){var s=null;/"url"/.test(t)&&(s=JSON.parse(t).url,t=null),o.default.sendMessage({action:"getVimeoLinks",extVideoId:t,url:s},function(e){var i=null;e.links?(c.linkCache[t]=e,i=n.popupMenu.prepareLinks.vimeo(e.links,e.title)):i=o.default.i18n.getMessage("noLinksFound"),a.update(i)})}}},getBtn:function(e){return O.a.create("i",{class:e.classList,data:{sfId:e.id,sfCouchMode:e.isCouchMode?1:0},on:["click",this.onClick]})},onImgOver2:function(e){var t,n,o=this.parentNode;if("A"===o.tagName){var i=o.getAttribute("href");if(i&&(n=(n=i.match(/^\/(\d+)$/))&&n[1])&&(t=o.parentNode)&&t.classList.contains("contextclip-img")&&!(t.dataset.sfBtn>0)){t.dataset.sfBtn="1";var r=[c.videoFeed.btnClassName,"sf-type1-btn"];o.appendChild(c.videoFeed.getBtn({id:n,classList:r})),o=null,t=null}}},onImgOver:function(e){var t,n,o=this.parentNode;if(x()(this,"a.contextclip-img-thumb")){t=this,o=this;var i=/\/([0-9]+)/.exec(this.href);i&&(n=i[1])}if(!n&&(x()(this,"div.iris_video-vital")||x()(this,"li.clip_thumbnail"))){o=this.querySelector(".iris_thumbnail"),t=this;var r=this.querySelector("a.iris_link-box");if(r){var a=r.href;!(n=(n=a.match(/\/([0-9]+)/))&&n[1])&&a&&(n=g()({url:a}))}}if(!n&&"LI"==o.tagName){if(!(n=o.dataset.resultId)||"clip_"!==n.substr(0,5))return;n=n.substr(5),t=o,o=this.querySelector(".thumbnail_wrapper")}if(!n){if("A"!==o.tagName)return;if(n=o.dataset.clipId,!(t=o.parentNode))return}var s=!1;if(!n){if((s="item_id"===(n=t.id).substr(0,7)&&t.classList.contains("clip"))||"clip"===n.substr(0,4)||(n=void 0),!n&&"ARTICLE"===t.tagName&&t.classList.contains("clip_item")&&(n=o.getAttribute("href")),!n)return;(n=n.match(/([0-9]+)$/))&&(n=n[1])}if(!t.dataset.sfBtn){t.dataset.sfBtn="1";var l=[c.videoFeed.btnClassName];this.classList.contains("thumbnail_lg_wide")&&l.push("sf-type1-btn"),this.classList.contains("contextclip-img-thumb")&&l.push("sf-type4-btn"),(this.classList.contains("clip_thumbnail")||this.classList.contains("iris_video-vital"))&&l.push("sf-type3-btn");var u=t.parentNode;u&&"clips"===u.id&&l.push("sf-type1-btn"),u=null,s&&l.push("sf-type1-btn"),t.classList.contains("promo_clip")&&1===l.length&&l.push("sf-type1-btn"),o.appendChild(c.videoFeed.getBtn({id:n,classList:l,isCouchMode:s})),o=null,t=null}},injectStyle:function(){this.style?!this.style.parentNode&&document.head.appendChild(this.style):(this.style=O.a.create("style",{text:y()([{selector:[".sf-dl-btn.sf-type-5",".sf-dl-btn.sf-type-7"],style:{color:"#fff",borderColor:"#00adef",backgroundColor:"#00adef",minWidth:"68px",minHeight:"32px",padding:"0 10px",lineHeight:"30px",fontSize:"14px",width:"auto",position:"relative",margin:0,fontWeight:700,borderWidth:"1px",borderStyle:"solid",borderRadius:"3px",letterSpacing:".1px",transition:"all .1s ease-in-out",cursor:"pointer",marginLeft:".5rem"}},{selector:[".sf-dl-btn.sf-type-7"],style:{verticalAlign:"middle"}},{selector:[".sf-dl-btn.sf-type-5:hover",".sf-dl-btn.sf-type-7:hover"],style:{color:"#fff",borderColor:"#08c",backgroundColor:"#08c"}},{selector:["a > .sf-feed-dl-btn","a .sf-feed-dl-btn.sf-type3-btn","a > .sf-feed-dl-btn.sf-type4-btn"],style:{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px",top:"auto",left:"auto",lineHeight:0}},{selector:["a > .sf-feed-dl-btn.sf-type4-btn"],style:{top:0,left:0}},{selector:["a > .sf-feed-dl-btn.sf-type1-btn","a > div > .sf-feed-dl-btn.sf-type3-btn"],style:{top:0}},{selector:["a > .sf-feed-dl-btn.sf-type2-btn"],style:{opacity:.5}},{selector:["a > div > .sf-feed-dl-btn.sf-type3-btn"],style:{zIndex:10}},{selector:["a > .sf-feed-dl-btn:hover","a > div > .sf-feed-dl-btn.sf-type3-btn:hover"],style:{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:["a > .sf-feed-dl-btn.sf-type2-btn:hover"],style:{opacity:.8}},{selector:["a > .sf-feed-dl-btn:active","a > div > .sf-feed-dl-btn.sf-type3-btn:active"],style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}},{selector:["a:hover > .sf-feed-dl-btn","a:hover > div > .sf-feed-dl-btn.sf-type3-btn"],style:{display:"block"}}])}),document.head.appendChild(this.style))},disable:function(){this.style&&this.style.parentNode&&this.style.parentNode.removeChild(this.style)},rmBtn:function(){for(var e,t=document.querySelectorAll(".sf-feed-dl-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e);var o=f()("sfBtn"),i=document.querySelectorAll("["+o+"]");for(n=0;e=i[n];n++)e.removeAttribute(o)}},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop()},wrapOnImgOver:function(){s&&c.videoFeed.onImgOver.apply(this,arguments)},wrapOnImgOver2:function(){s&&c.videoFeed.onImgOver2.apply(this,arguments)},enable:function(){if(this.observer)return this.observer.start();this.observer=n.mutationWatcher.run({callback:function(e){var t,n,o,i;for(t=e[0],n=0;o=t.added[n];n++)c.hideMenu(),o.dataset.sfSkip>0||(o.dataset.sfSkip="1",i=2,c.appendBtn({id:"",parent:o,style:i,playerContainer:"#clip"}));for(t=e[1],n=0;o=t.added[n];n++)if(c.hideMenu(),!(o.dataset.sfSkip>0)){o.dataset.sfSkip="1";var r=o.querySelector(".stats")||o.querySelector(".time");r&&(i=1,c.appendBtn({id:"",parent:r,style:i,playerContainer:"#channel_clip_container"}))}for(t=e[2],n=0;o=t.added[n];n++)if(!(o.dataset.sfSkip>0)&&(o.dataset.sfSkip="1","clip_"===o.id.substr(0,5))){var a=c.getBrowserVideoData(o,o.id);a&&c.appendBtn(a)}for(t=e[3],n=0;o=t.added[n];n++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",M.a.one(o,"mouseenter",c.mutationMode.wrapOnImgOver));for(t=e[4],n=0;o=t.added[n];n++)if(!(o.dataset.sfSkip>0)){o.dataset.sfSkip="1";var s=d()(o,"clip_thumbnail");M.a.one(s,"mouseenter",c.mutationMode.wrapOnImgOver)}for(t=e[5],n=0;o=t.added[n];n++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",s=d()(o,"iris_video-vital"),M.a.one(s,"mouseenter",c.mutationMode.wrapOnImgOver));for(t=e[6],n=0;o=t.added[n];n++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",s=d()(o,"contextclip-img-thumb"),M.a.one(s,"mouseenter",c.mutationMode.wrapOnImgOver));for(t=e[7],n=0;o=t.added[n];n++)if(!(o.dataset.sfSkip>0)&&(o.dataset.sfSkip="1",c.hideMenu(),u=C()(o,".clip_info-wrapper"))){var l=u.querySelector(".clip_info-actions");l&&(i=3,c.appendBtn({id:"",parent:l,style:i,playerContainer:".clip_main"}))}for(t=e[8],n=0;o=t.added[n];n++){var u;o.dataset.sfSkip>0||(o.dataset.sfSkip="1",c.hideMenu(),(u=C()(o,".clip_main-content"))&&(i=5,c.appendBtn({id:"",parent:o,style:i,playerContainer:".clip_main"})))}for(t=e[9],n=0;o=t.added[n];n++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",M.a.one(o,"mouseenter",c.mutationMode.wrapOnImgOver2));for(t=e[10],n=0;o=t.added[n];n++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",i=4,c.appendBtn({id:"",parent:o,style:i,playerContainer:".clip"}));for(t=e[11],n=0;o=t.added[n];n++)i=6,c.appendBtn({id:"",parent:o,style:i,playerContainer:".clip_wrapper"});for(t=e[12],n=0;o=t.added[n];n++)i=7,c.appendBtn({id:"",parent:o,style:i,playerContainer:"#main"})},queries:[{css:"#clip #info #tools",is:"added"},{css:"#channel_clip_container #info .meta",is:"added"},{css:"#browse_content ol.browse_videos_videos > li",is:"added"},{css:"img.thumbnail",is:"added"},{css:".clip_thumbnail .iris_thumbnail img",is:"added"},{css:".iris_video-vital .iris_thumbnail img",is:"added"},{css:".contextclip-img-thumb img",is:"added"},{css:".clip_main .clip_info a.js-user_link.iris_link-header",is:"added"},{css:".clip_main .clip_main-content div.clip_info-subline--inline",is:"added"},{css:".contextclip-img img",is:"added"},{css:".client_wrapper .clip header h1",is:"added"},{css:".clip_page .clip .meta_section_subinfo",is:"added"},{css:"#main .clip_info-subline--inline",is:"added"}]})}}}})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={3:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([39,0]),n()}({39:function(e,t,n){n.r(t);var o=n(0),r=n(10),a=n(5),s=n(8),l=n.n(s),u=n(6),d=n.n(u),c=n(26),f=n.n(c),p=n(18),m=n.n(p),h=n(4),g=n.n(h),v=n(2),b=n.n(v),y=n(1),k=n.n(y),w=n(15),x=n(13),S=n.n(x),C=n(11),L=n.n(C);n(23);var M=S()("dailymotion_com");L.a.isSingle()&&Object(a.b)("dailymotion",function(e,t){var n=Object(r.a)(t),a=t.preferences,s=a.moduleDailymotion?1:0,u=l()()&&/\/embed\/([\w\-]+)/i.test(document.location.href);o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return c.changeState(t.state)}"updatePreferences"!==t.action?s&&"updateLinks"===t.action&&c.updateLinks():i()(a,t.preferences)}),s&&setTimeout(function(){c.run()});var c={contextMenu:null,linkCache:{},embed:null,title:"",styleIndex:0,btnId:"sf__download_btn",result:null,popupIsShow:!1,run:function(){if(s=1,!u)return n.mutationWatcher.isAvailable()?c.mutationMode.enable():void 0;c.appendIframeButtons()},changeState:function(e){u||(s=e,c.rmBtn(),c.mutationMode.stop(),e&&c.run())},hideMenu:function(){c.contextMenu&&c.contextMenu.isShow&&(c.contextMenu.hide(),c.contextMenu=null)},updateLinks:function(){c.changeState(0),c.changeState(1)},appendIframeButtons:function(){var e=this,t=n.frameMenu.getBtn({quickBtnStyleObj:{display:"inline-block",cursor:"pointer",position:"relative",padding:"9px 10px"},quickBtnCssStyle:{backgroundColor:"rgba(0,0,0,.75)"},singleBtn:!0,btnId:e.btnId,containerStyle:{right:"50px",top:"10px"},quickBtnIcon:k.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"}}),on:[["click",function(i){if(i.preventDefault(),i.stopPropagation(),e.contextMenu&&e.contextMenu.isShow)e.hideMenu();else{var r=e.getIdFromUrl(),a=o.default.i18n.getMessage("download")+" ...",s=e.linkCache[r];s&&(a=n.popupMenu.prepareLinks.dailymotion(s.links,s.title));var l=e.contextMenu=n.frameMenu.getMenu(this,a,"sf-frame-menu",{container:t.container,onShow:function(){t.node.classList.add("sf-over")},onHide:function(){e.contextMenu=null,t.node.classList.remove("sf-over")}});s||o.default.sendMessage({action:"getDailymotionLinks",extVideoId:r,metadata:e.getMetadata(r)},function(t){var i=o.default.i18n.getMessage("noLinksFound");t.links&&(e.linkCache[r]=t,i=n.popupMenu.prepareLinks.dailymotion(t.links,t.title)),l.update(i)})}}],["mousedown",function(n){n.stopPropagation(),2===n.button&&(b.a.off(document.body,"mousemove",s),e.hideMenu(),t.container.parentNode&&t.container.parentNode.removeChild(t.container))}]]});t.quickBtn.title=o.default.i18n.getMessage("download"),t.container=k.a.create("div",{class:"sf-btn-ctr",append:t.node}),b.a.on(t.container,"mouseenter",function(){t.lockHide=!0}),b.a.on(t.container,"mouseleave",function(){t.lockHide=!1});var i=null,r=!1,a=function(){t.lockHide||(t.container.classList.add("sf-hide-ui"),r=!0)},s=function(){r&&(t.container.classList.remove("sf-hide-ui"),r=!1),clearTimeout(i),i=setTimeout(a,3e3)};b.a.on(document.body,"mousemove",s),t.node.appendChild(k.a.create("style",{text:g()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #"+e.btnId,"body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(t.container)},getIdFromUrl:function(e){var t=(e=e||location.href).match(/\/embed\/video\/([a-z0-9]+)/);return t&&t[1]},getMetadata:function(e){var t=null;return f()(document.body.innerHTML,/playerV5/).some(function(n){return m()(n).some(function(n){if(n&&n.metadata&&n.metadata.id===e)return t=n.metadata,!0})}),t},rmBtn:function(){for(var e,t=document.querySelectorAll(["#"+c.btnId,".sf-wrapper"]),n=0;e=t[n];n++)e.parentNode.removeChild(e);c.result=null,c.popupIsShow=!1},newGetVideoId:function(){var e="",t=/\/video\/([^\/?#]+)/.exec(location.href);return t&&(e=t[1]),e},insertBtn:function(e){var t=this;if(!e.querySelector(".sf-dl-btn")){var i=k.a.create("button",{id:c.btnId,class:["sf-dl-btn"],title:o.default.i18n.getMessage("download"),append:[k.a.create("span",{append:[n.svg.getSvg("download","#000")]}),k.a.create("style",{text:g()({selector:".sf-dl-btn",style:{display:"block",border:0,borderRadius:"50%",cursor:"pointer",background:"#e8e8e8",width:"32px",height:"32px",marginRight:"8px"},append:{selector:"span",style:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:"auto",marginLeft:"auto",width:"16px",height:"16px"}}})})],on:["click",function(e){if(e.preventDefault(),e.stopPropagation(),c.contextMenu&&c.contextMenu.isShow)c.hideMenu();else{var t=o.default.i18n.getMessage("download")+" ...",i=c.contextMenu=n.popupMenu.quickInsert(this,t,"sf-popupMenu");A.a.resolve().then(function(){var e=c.newGetVideoId();if(!e)throw new Error("Video is not found");return c.linkCache[e]||Object(w.a)({action:"getDailymotionLinks",extVideoId:e}).then(function(t){if(!t||!t.links)throw new Error("Links is not found");return c.linkCache[e]=t})}).then(function(e){var t=n.popupMenu.prepareLinks.dailymotion(e.links,e.title);i.update(t)}).catch(function(e){M.debug("Load links error",e),i.update(o.default.i18n.getMessage("noLinksFound"))})}}]});b.a.onRemoveEvent(i,function(n){e.dataset.sfSkip=0,document.body.contains(e)&&t.mutationMode.observer.trigger(e)}),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach(function(e){for(var t,n=d()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)})},enable:function(){if(this.observer)return this.observer.start();this.observer=n.mutationWatcher.run({callback:function(e){var t,n,o;for(t=e[0],n=0;o=t.added[n];n++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",c.insertBtn(o));for(t=e[1],n=0;o=t.removed[n];n++)b.a.onRemoveListener(o)},queries:[{css:'div[class^="VideoInfo__reportAndActions"]',is:"added"},{css:".".concat(b.a.onRemoveClassName),is:"removed"}]})}}}},function(){if(!l()())return!0;if(/\/embed\/([\w\-]+)/i.test(location.href)){var e=!1;try{e=location.hostname===window.parent.location.hostname}catch(e){}return!e}})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={20:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([40,0]),n()}({34:function(e,t){e.exports=n(102)},40:function(e,t,n){n.r(t);var o=n(0),r=n(10),a=n(5),s=n(8),l=n.n(s),u=n(34),d=n.n(u),c=n(14),f=n.n(c),p=n(6),m=n.n(p),h=n(4),v=n.n(h),b=n(9),y=n.n(b),w=n(7),S=n.n(w),C=n(2),L=n.n(C),M=n(1),I=n.n(M),O=n(19),P=n.n(O),T=n(3),F=n.n(T),E=n(13),N=n.n(E),D=n(11),B=n.n(D),R=n(23),_=n.n(R),q=n(20),j=N()("youtube_com");B.a.isSingle()&&Object(a.b)("youtube",function(e,t){var n=Object(r.a)(t),a=t.preferences,s=a.moduleYoutube?1:0,u=o.default.isChrome||o.default.isFirefox||o.default.isGM&&o.default.isTM,c=l()();o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return b.changeState(t.state)}if("updatePreferences"!==t.action){if(s){if("updateLinks"===t.action){var r=b.getIdFromLocation();r&&C(function(e){if(e&&e.args&&e.args.video_id===r){var t=document.getElementById(b.buttonId);null!==t&&t.parentNode.removeChild(t),O.rmBtn(),b.responseCache={},b.video_id=e.args.video_id;var n=document.getElementById("watch7-subscription-container");b.appendDownloadButton(n)}})}"downloadPlaylist"===t.action&&b.downloadPlaylist()}}else i()(a,t.preferences)}),s&&setTimeout(function(){b.run()});var p,h,b={swfargs:null,video_id:"",buttonId:"savefrom__yt_btn",responseCache:{},isMobile:!1,mobileMenu:null,currentMenu:null,currentTutorial:null,run:function(){if(s=1,c){var e=location.href.match(/\/embed\/([\w\-]+)/i);(e=e&&e[1])||(c=!1)}return 0===location.host.indexOf("m.")?(b.isMobile=!0,void(n.mutationWatcher.isAvailable()&&b.mobileMutationMode.enable())):c?(b.video_id=e,void b.appendFrameButton()):void(n.mutationWatcher.isAvailable()&&(b.videoFeed.injectStyle(),b.mutationMode.enable()))},changeState:function(e){if(s=e,!c&&!b.isMobile){b.tutorial.hide(),b.hideCurrentMenu(),b.videoFeed.rmBtn(),b.mutationMode.stop();var t=document.getElementById(b.buttonId);t&&t.parentNode.removeChild(t),O.rmBtn(),e&&b.run()}},hideCurrentMenu:function(){b.currentMenu&&(b.currentMenu.hide(),b.currentMenu=null)},hideMobileMenu:function(){b.mobileMenu&&(b.mobileMenu.hide(),b.mobileMenu=null)},mutationMode:{observer:null,stop:function(){b.mutationMode.observer&&b.mutationMode.observer.stop(),["sfSkip"].forEach(function(e){for(var t,n=m()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)})},wrapVideoFeedOnImgHover:function(){if(s&&b.videoFeed.testUrl(location.href)&&!(this.dataset.sfBtn>0)){this.dataset.sfBtn="1";var e=JSON.parse(this.dataset.sfContext);this.appendChild(b.videoFeed.getBtnNode(e.id,e.styleIndex))}},wrapNewVideoFeedOnThumbnailHover:function(){if(s&&b.videoFeed.testUrl(location.href)){var e=b.mutationMode,t=this,n=t.href,o=n&&n.match(b.videoFeed.hrefIdPattern),i=o&&o[1];if(i&&!t.querySelector(".sf-feed-btn")){var r=b.videoFeed.getBtnNode(i,2);L.a.onRemoveEvent(r,function(){this.parentNode||L.a.one(t,"mouseenter",e.wrapNewVideoFeedOnThumbnailHover)}),t.appendChild(r)}n=null,o=null,i=null,r=null}},enable:function(){var e=this;if(e.observer)return e.observer.start();e.observer=n.mutationWatcher.run({callback:function(t){var n,o,i,r,a,s,l;for(n=t[0],i=0;o=n.added[i];i++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",b.appendDownloadButton(o));if(b.videoFeed.testUrl(location.href)){for(r=1;r<3;r++)for(n=t[r],i=0;o=n.added[i];i++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",(a=o.dataset.videoIds)&&(s=o.parentNode,(l={}).id=a,l.styleIndex=1,s.dataset.sfContext=g()(l),L.a.one(s,"mouseenter",e.wrapVideoFeedOnImgHover)));for(r=3;r<4;r++)for(n=t[r],i=0;o=n.added[i];i++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",L.a.one(S()(o,"a"),"mouseenter",e.wrapNewVideoFeedOnThumbnailHover))}for(n=t[4],i=0;o=n.added[i];i++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",b.appendNewDownloadButton(o));for(n=t[5],i=0;o=n.removed[i];i++)L.a.onRemoveListener(o)},queries:[{css:"#watch7-subscription-container",is:"added"},{css:"button.addto-watch-later-button-sign-in",is:"added"},{css:"button.addto-watch-later-button",is:"added"},{css:"ytd-thumbnail a#thumbnail img",is:"added"},{css:".ytd-page-manager #info #top-level-buttons",is:"added"},{css:"."+L.a.onRemoveClassName,is:"removed"}]})}},mobileMutationMode:{observer:null,stop:function(){b.mutationMode.observer&&b.mutationMode.observer.stop(),["sfSkip"].forEach(function(e){for(var t,n=m()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)})},enable:function(){if(this.observer)return this.observer.start();this.observer=n.mutationWatcher.run({callback:function(e){var t,n,o,i;for(t=e[0],o=0;n=t.added[o];o++)if(0===n.id.indexOf("koya_elem_")){for(var r=0;r<4&&n;)n=n.parentNode,r++;if(n&&4===r){i=1;var a=n.querySelector("div:nth-child(1)>h1:nth-child(1)");if(a||(a=null),!a&&y()(n,'div > div > div[id^="koya_child_"]:last-child > div')){for(a=n,r=0;r<3&&a;)a=a.parentNode,r++;a&&a.querySelector("div:nth-child(1)>h2:nth-child(1)")?(n=n.parentNode,i=2):a=null}a&&(n.dataset.sfSkip>0||(n.dataset.sfSkip="1",b.appendMobileButton("",n,i)))}}for(t=e[1],o=0;n=t.added[o];o++)i=3,n.dataset.sfSkip>0||(n.dataset.sfSkip="1",b.appendMobileButton("",n,i));for(t=e[2],o=0;n=t.added[o];o++)i=4,n.dataset.sfSkip>0||(n.dataset.sfSkip="1",b.appendMobileButton("",n,i));for(t=e[3],o=0;n=t.added[o];o++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",b.appendNewMobileButton(n,i=5));for(t=e[4],o=0;n=t.removed[o];o++)L.a.onRemoveListener(n)},queries:[{css:'div > div > div > a[onclick][href="#"] > span[id]',is:"added"},{css:"#app .page-container .video-main-content-actions",is:"added"},{css:"#app .page-container .playlist-controls-secondary",is:"added"},{css:"#app .slim-video-metadata-actions",is:"added"},{css:"."+L.a.onRemoveClassName,is:"removed"}]})}},_onSelectBtnClick:function(e,t){if(!(t.button>0))if(t.stopPropagation(),t.preventDefault(),b.currentMenu&&b.currentMenu.isShow)b.hideCurrentMenu();else{var i=e.btnObj,r=i.videoId,a=b.currentMenu=n.popupMenu.quickInsert(i.node,o.default.i18n.getMessage("download")+" ...","sf-popupMenu",{onShow:function(){L.a.onRemoveEvent(i.node,b.hideCurrentMenu)},onHide:function(){L.a.offRemoveEvent(i.node,b.hideCurrentMenu)},onItemClick:function(e,t){var n=t.itag;"ummyAudio"===n&&(n="ummy"),i.lastItag!==n&&o.default.storage.set({ytLastITag:n},function(){b.quickBtn.setValue(i)}),b.onMenuItemClick(t,{isPageItem:1,videoId:r})},offsetTop:i.popupMenu&&i.popupMenu.offsetTop,offsetRight:i.popupMenu&&i.popupMenu.offsetRight,parent:i.popupMenu&&i.popupMenu.parent}),s=function(){a.update(o.default.i18n.getMessage("noLinksFound"))};if(!r)return s();var l=function(e){if(e.links){var t=n.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles);a.update(t)}else s()},u=b.responseCache[r];if(u)return l(u);o.default.sendMessage({action:"getYoutubeLinks",extVideoId:r,url:location.href,checkSubtitles:!0},function(e){e.links&&(b.responseCache[r]=e),l(e)}),i.isFirstMenuShow&&(i.isFirstMenuShow=!1)}},appendDownloadButton:function(e){var t=e.querySelector("#"+b.buttonId);t&&(t.parentNode&&t.parentNode.removeChild(t),t=null);var o=this,i={},r=o.getButtonUnderVideo(b._onSelectBtnClick.bind(null,i));return i.btnObj=r,r.isFirstMenuShow=!0,r.setLoadingState(),e.appendChild(r.node),C(function(t){var i=null;if(t&&t.args&&t.args.video_id&&(i=t.args.video_id),i){r.node.dataset.sfVideoId=i,r.ytConfig=t,r.videoId=i,r.isPage=1;var s=[],l=function(){l=null,b.tutorial.show({target:r.node})};s.push(function(){return l&&l()});var u=O(null,a,i);u&&(s.push(function(e){var t=e.slice(0);if(0!==(t=n.popupMenu.sortMenuItems(t,{typeList:["video","3d","mute","mute60"],groupCompare:!0})).length){var o=t[0],i=o.prop&&o.prop.quality;-1!==["8K","4K","1440","1080"].indexOf(i)&&L.a.trigger(u,"changeValue",{detail:g()(o.prop&&o.prop.quality)})}}),e.appendChild(u)),r.onGetLinksArr=s,o.quickBtn.setValue(r)}})},appendNewDownloadButton:function(e,t){var o=this,i=e.querySelector("#"+b.buttonId);if(i){if(t)return;i.classList.remove(L.a.onRemoveClassName),i.parentNode&&i.parentNode.removeChild(i),i=null}var r=new this.getNewButtonUnderVideo(b._onSelectBtnClick);r.isFirstMenuShow=!0,r.setLoadingState();var a=e.childNodes[2];a||(a=e.firstChild),a?e.insertBefore(r.node,a):e.appendChild(r.node);var s=null,l=null;return L.a.onRemoveEvent(r.node,function(){s&&(s.abort(),s=null),l&&(l.destroy(),l=null),e.parentNode&&b.appendNewDownloadButton(e,!0)}),r.popupMenu={offsetTop:-6,offsetRight:-1,parent:r.menuContainer},(s=n.waitNodesBySelector("#movie_player")).then(function(){if(_()(document.body,r.node))return M().then(function(e){var t=e&&e.args&&e.args.video_id;if(t){r.node.dataset.sfVideoId=t,r.ytConfig=e,r.videoId=t,r.isPage=1;var n=[];r.onGetLinksArr=n,n.push(function(){b.tutorial.show({target:r.node,parent:r.menuContainer,btnLeftOffset:-6,btnTopOffset:3})}),o.quickBtn.setValue(r)}else j.debug("videoId is not found!")});j.debug("Btn not exists")}).catch(function(e){"ABORTED"!==e.message&&j.error("waitNodesBySelector error",e)})},getIdFromLocation:function(e){e||(e=document.location.href);var t=e.match(/\/watch\?(?:.+&)?v=([\w\-]+)/i);return(t=t&&t[1])||null},appendNewMobileButton:function(e,t){var i=I.a.create("div",{id:b.buttonId,style:{flex:"1 1",minWidth:0,overflow:"hidden",margin:"-0.7em -0.57em",marginLeft:"0.7em",marginRight:0,display:"flex"},append:[I.a.create("button",{style:{padding:".7em .57em"},append:[I.a.create("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},append:[I.a.create("div",{style:{display:"block",height:"24px",width:"24px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",backgroundSize:"20px"}}),I.a.create("div",{style:{marginTop:"7px",alignSelf:"center",minHeight:"1em",lineHeight:"1em"},text:o.default.i18n.getMessage("download")})]})],on:["click",function(e){e.preventDefault(),b.hideMobileMenu();var t=b.getIdFromLocation(),i=b.mobileMenu=n.mobileLightBox.show(o.default.i18n.getMessage("download")+" ...");return A.a.resolve().then(function(){return b.responseCache[t]||new A.a(function(e,n){o.default.sendMessage({action:"getYoutubeLinks",extVideoId:t,url:location.href},function(t){var i=o.default.lastError;i?n(i):e(t)})})}).then(function(e){if(!e||!e.links)throw new Error("Empty response");return b.responseCache[t]=e,n.popupMenu.prepareLinks.youtube(e.links,e.title||b.getTitleModify())}).catch(function(e){return j.error("getYoutubeLinks error",e),null}).then(function(e){i.update(e)})}]})]});L.a.onRemoveEvent(i,function(){b.hideMobileMenu(),document.body.contains(e)&&(e.dataset.sfSkip="0",b.mobileMutationMode.observer.trigger(e))}),e.appendChild(i)},appendMobileButton:function(e,t,r){var a={};3===r?i()(a,{display:"flex",height:"24px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",padding:".7em .57em",marginLeft:".7em"}):4===r?i()(a,{display:"flex",width:"24px",background:"url("+n.svg.getSrc("download","#eee")+") center no-repeat",padding:".7em .57em",marginLeft:".7em"}):1===r?i()(a,{display:"inline-block",height:"28px",width:"18px",marginRight:"20px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",cssFloat:"right"}):2===r&&i()(a,{display:"inline-block",height:"38px",width:"18px",marginRight:"12px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",backgroundSize:"20px",cssFloat:"right"});var s=I.a.create("div",{data:{id:e},style:a,on:["click",function(){var e=this.dataset.id||b.getIdFromLocation();b.hideMobileMenu();var t=b.mobileMenu=n.mobileLightBox.show(o.default.i18n.getMessage("download")+" ..."),i=function(e){var o=null;e&&e.links&&(o=n.popupMenu.prepareLinks.youtube(e.links,e.title||b.getTitleModify())),t.update(o)},r=b.responseCache[e];if(r)return i(r);o.default.sendMessage({action:"getYoutubeLinks",extVideoId:e,url:location.href},function(t){t.links&&(b.responseCache[e]=t),i(t)})}]});L.a.onRemoveEvent(s,function(){b.hideMobileMenu(),3!==r&&4!==r||document.body.contains(t)&&(t.dataset.sfSkip="0",b.mobileMutationMode.observer.trigger(t))});var l='div[id^="koya_child_"]:nth-child(1) > a[href="#"] > span[id^="koya_elem_"]',u=t.lastElementChild;u.querySelector(l)||(u=u.previousElementSibling).querySelector(l)||(u=null),u&&(u=u.nextElementSibling),u?u.parentNode.insertBefore(s,u):t.appendChild(s)},getNewButtonUnderVideo:function(e){var t=this;this.node=I.a.create("div",{id:b.buttonId,style:{display:["-ms-flexbox","-webkit-flex","flex"],marginLeft:"8px",MsFlexDirection:"row",WebkitFlexDirection:"row",flexDirection:"row",MsFlexAlign:"center",WebkitAlignItems:"center",alignItems:"center",MsFlexPack:"center",WebkitJustifyContent:"center",justifyContent:"center",padding:"0 8px 0 0"},append:[this.menuContainer=I.a.create("div",{style:{position:"relative"}}),this.quickBtn=I.a.create("a",{class:"sf-quick-dl-btn",style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #00B75A",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"},href:"#",append:[I.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+n.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),I.a.create("span",{class:"sf-btn-name",style:{paddingRight:"12px"},text:o.default.i18n.getMessage("download")})]}),this.quickBtnStyle=I.a.create("style",{text:v()({selector:"#"+b.buttonId,style:{fontFamily:"Roboto, Arial, sans-serif",fontSize:"13px"},append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{backgroundColor:"#00B75A"},".sf-quick-dl-btn:hover":{backgroundColor:"rgb(0, 163, 80)"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}},{media:"@media screen and (max-width: 1293px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]})}),this.selectBtn=I.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:0,verticalAlign:"middle",boxSizing:"border-box",lineHeight:o.default.isSafari?"21px":"22px"},on:["mousedown",function(n){return e.call(this,{btnObj:t},n)}],append:[this.selectBtnIcon=I.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})]})]}),this.node.classList.add(L.a.onRemoveClassName);var i=function(e){var n="object"==typeof e?e:document.createTextNode(e);n.style.marginLeft=0;var o=t.selectBtn.firstChild;o===t.selectBtnIcon?t.selectBtn.insertBefore(n,o):t.selectBtn.replaceChild(n,o)};this.setQuality=i,this.setLoadingState=function(){i(I.a.create("img",{src:n.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:o.default.isSafari?"-3px":"-1px",position:"relative"}}))}},getButtonUnderVideo:function(e){var t,i,r=null,a=I.a.create("div",{id:b.buttonId,style:{display:"inline-block",marginLeft:"10px",verticalAlign:"middle"},append:[i=I.a.create("a",{class:"sf-quick-dl-btn",style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #00B75A",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"},href:"#",append:[I.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+n.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),I.a.create("span",{class:"sf-btn-name",style:{paddingRight:"12px"},text:o.default.i18n.getMessage("download")})]}),I.a.create("style",{text:v()({selector:"#"+b.buttonId,append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{backgroundColor:"#00B75A"},".sf-quick-dl-btn:hover":{backgroundColor:"rgb(0, 163, 80)"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}},{media:"@media screen and (max-width: 1293px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]})}),r=I.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:0,verticalAlign:"middle",boxSizing:"border-box",lineHeight:"22px"},on:["mousedown",e],append:[t=I.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})]})]});a.classList.add(L.a.onRemoveClassName);var s=function(e){var n="object"==typeof e?e:document.createTextNode(e),o=r.firstChild;o===t?r.insertBefore(n,o):r.replaceChild(n,o)};return{node:a,selectBtn:r,quickBtn:i,setQuality:s,setLoadingState:function(){s(I.a.create("img",{src:n.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:"-1px",position:"relative"}}))}}},titleChangeObserver:null,playerStateChangeObserver:null,observeFrameVideoChange:function(e){var t=this;if(n.mutationWatcher.isAvailable()){var o=document.querySelector(".ytp-title-link");o&&(this.titleChangeObserver&&this.titleChangeObserver.stop(),this.titleChangeObserver=n.mutationAttrWatcher.run({attr:"href",target:o,callback:function(n){var o=n[0],i=o.oldValue&&b.getIdFromLocation(o.oldValue),r=o.value&&b.getIdFromLocation(o.value);i!==r&&b.video_id!==r&&(b.video_id=r,b.frameQualityDetected&&(e.link=null,e.setLoadingState(),t.quickBtn.setValue(e)))}}));var i=document.querySelector(".html5-video-player");if(i){var r=null,a=/(\s|^)ytp-autohide(\s|$)/;this.playerStateChangeObserver&&this.playerStateChangeObserver.stop(),this.playerStateChangeObserver=n.mutationAttrWatcher.run({attr:"class",target:i,callback:function(t){var n=t[0],o=a.test(n.oldValue),i=a.test(n.value);!o&&i?(clearTimeout(r),r=setTimeout(function(){e.lockHide||e.container.classList.add("sf-hide-ui")},100)):o&&!i&&(clearTimeout(r),e.container.classList.remove("sf-hide-ui"))}})}}},appendFrameButton:function(){if(!(document.body.clientWidth<220||document.body.clientHeight<150)){var e=b,t=!0,i=n.frameMenu.getBtn({btnId:"sfYtFrameBtn",containerStyle:{top:"40px",right:"20px"},on:[["mousedown",function(t){t.stopPropagation(),2===t.button&&(e.onFrameMouseEnterBind&&(L.a.off(document.body,"mouseenter",e.onFrameMouseEnterBind),L.a.off(document.body,"mouseleave",e.onFrameMouseLeaveBind),e.onFrameMouseEnterBind=null,e.onFrameMouseLeaveBind=null),e.titleChangeObserver&&(e.titleChangeObserver.stop(),e.titleChangeObserver=null),e.playerStateChangeObserver&&(e.playerStateChangeObserver.stop(),e.playerStateChangeObserver=null),e.hideCurrentMenu(),i.container.parentNode&&i.container.parentNode.removeChild(i.container))}]],onSelectBtn:["mousedown",function(r){if(!(r.button>0)){r.stopPropagation(),r.preventDefault();var a=e.video_id;if(e.currentMenu)b.hideCurrentMenu();else{var s=e.currentMenu=n.frameMenu.getMenu(this.parentNode,o.default.i18n.getMessage("download")+" ...","sf-popupMenu",{container:i.container,onShow:function(){i.node.classList.add("sf-over"),t||(t=!1)},onHide:function(){e.currentMenu=null,i.node.classList.remove("sf-over")},onItemClick:function(t,n){var r=n.itag;"ummyAudio"===r&&(r="ummy"),i.lastItag!==r&&o.default.storage.set({ytLastITag:r},function(){e.quickBtn.setValue(i)}),b.onMenuItemClick(n,{isFrameItem:1,videoId:a})}}),l=function(e){var t=n.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles,{ummyVid:136});s.update(t)},u=e.responseCache[a];if(u)return l(u);o.default.sendMessage({action:"getYoutubeLinks",extVideoId:a,url:location.href,checkSubtitles:!0},function(t){if(t.links)return e.responseCache[a]=t,l(t);s.update(o.default.i18n.getMessage("noLinksFound"))})}}}]});i.setLoadingState(),i.container=I.a.create("div",{class:"sf-btn-ctr",append:i.node}),document.body.appendChild(i.container);L.a.on(i.node,"mouseenter",function t(){L.a.off(i.node,"mouseenter",t),e.frameQualityDetected||(e.frameQualityDetected=!0,e.quickBtn.setValue(i))}),L.a.one(document,"mouseenter",function(){e.onFrameMouseEnter(i)}),L.a.on(i.container,"mouseenter",function(){i.lockHide=!0}),L.a.on(i.container,"mouseleave",function(){i.lockHide=!1}),i.node.appendChild(I.a.create("style",{text:v()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #sfYtFrameBtn","body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-popupMenu"],style:{display:"block"}}])})),this.onFrameMouseEnterBind&&(L.a.off(document.body,"mouseenter",this.onFrameMouseEnterBind),L.a.off(document.body,"mouseleave",this.onFrameMouseLeaveBind)),this.onFrameMouseEnterBind=this.onFrameMouseEnter.bind(this,i),this.onFrameMouseLeaveBind=this.onFrameMouseLeave.bind(this,i),L.a.on(document.body,"mouseenter",this.onFrameMouseEnterBind),L.a.on(document.body,"mouseleave",this.onFrameMouseLeaveBind),this.observeFrameVideoChange(i)}},frameQualityDetected:!1,frameQualityTimer:null,onFrameMouseEnterBind:null,onFrameMouseLeaveBind:null,onFrameMouseEnter:function(e){var t=this;this.frameQualityDetected||(clearTimeout(this.frameQualityTimer),this.frameQualityTimer=setTimeout(function(){t.frameQualityDetected||(t.frameQualityDetected=!0,t.quickBtn.setValue(e))},500))},onFrameMouseLeave:function(e){this.frameQualityDetected||clearTimeout(this.frameQualityTimer)},getTitle:function(){var e=document.getElementById("watch-headline-title");if(e)return e.textContent;for(var t=document.getElementsByTagName("meta"),n=0;n<t.length;n++){var o=t[n].getAttribute("name");if(o&&"title"==o.toLowerCase())return t[n].getAttribute("content")}return c||b.isMobile?document.title.replace(/ - YouTube$/,""):""},getTitleModify:function(){var e=b.getTitle();return e&&(e=w(e)),e},onMenuItemClick:function(e,t){t=t||{},e.format||o.default.sendMessage({action:"track",t:"event",ec:"youtube",ea:"new_format",el:e.itag+" "+t.videoId})},onDlBtnClick:function(e,t,o){if(o=o||{},!t)return e.preventDefault(),e.stopPropagation(),void L.a.trigger(this.parentNode.lastChild,"mousedown");b.onMenuItemClick(t,o),"ummy"!==t.quality&&t.forceDownload&&n.downloadOnClick(e)},quickBtn:{prepMenuLinks:function(e,t){for(var o,i=n.popupMenu.prepareLinks.youtube(e,t),r={},a=[],s=0;o=i[s];s++)"ummy"===o.quality&&(r[o.itag]=o),a.push({prop:o});return{menuLinks:i=n.popupMenu.sortMenuItems(a),ummyLinks:r}},setValueInSelectBtn:function(e,t){"object"!=typeof t&&(t=document.createTextNode(t));var n=e.selectBtn.firstChild;n===e.selectBtn.lastChild?e.selectBtn.insertBefore(t,n):e.selectBtn.replaceChild(t,n)},getBestItem:function(e){for(var t,n=[],o=0;t=e[o];o++)t.prop.noAudio||t.prop.noVideo||"ummy"!==t.prop.format&&(t.prop.extra||t.prop.isHidden||n.push(t.prop));if(n.length)return n[0]},bindDlBtn:function(e){var t=e.quickBtn;e.quickBtnEvent&&t.removeEventListener("click",e.quickBtnEvent),t.addEventListener("click",e.quickBtnEvent=function(t){t.stopPropagation(),e.link&&b.currentMenu&&b.hideCurrentMenu();var n={videoId:e.videoId||b.video_id};e.isPage?n.isPage=1:n.isFrame=1,b.onDlBtnClick.call(this,t,e.link,n)})},setBestValue:function(e,t){var n=e.quickBtn;e.link=t;var i=t.quality;t.noVideo||(i=k()(i)),t["3d"]&&(i="3D "+i),t.sFps&&(i+=" "+(t.fps||60));var r=I.a.create("span",{text:i,style:{marginLeft:"6px",verticalAlign:"bottom"}});e.setQuality?e.setQuality(r):this.setValueInSelectBtn(e,r);var a=[t.format,i];if(t.noAudio&&a.push(o.default.i18n.getMessage("withoutAudio")),a=a.join(" "),n.title=a,n.href=t.href,t.title&&t.format){var s=(t.ext||t.format||"").toLowerCase();s&&(s="."+s),n.setAttribute("download",F.a.modify(t.title+s))}},setUmmyBadge:function(e,t){var n=this,i=e.quickBtn;e.link=t,o.default.sendMessage({action:"getUmmyIcon"},function(t){var o=I.a.create("span",{style:{width:"16px",height:"20px",backgroundImage:"url("+t+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",marginLeft:"6px",display:"inline-block",verticalAlign:"top"}});n.setValueInSelectBtn(e,o)}),i.title=d()(t.quality),i.href=t.href,i.removeAttribute("download")},onGetLinks:function(e,t,n){var i=this;if(t){var r=x()(t).length;t.meta&&r--}if(!t||!r)return this.setValueInSelectBtn(e,"");o.default.storage.get("ytLastITag",function(o){var r=o.ytLastITag;"ummyAudio"===r&&(r="ummy"),e.lastItag=r;var a=i.prepMenuLinks(t,n||b.getTitleModify());if(e.onGetLinksArr&&e.onGetLinksArr.forEach(function(e){return e(a.menuLinks)}),"ummy"===r&&a.ummyLinks[r])i.setUmmyBadge(e,a.ummyLinks[r]);else{var s=i.getBestItem(a.menuLinks);s?i.setBestValue(e,s):i.setValueInSelectBtn(e,"")}})},setValue:function(e){var t=this;this.bindDlBtn(e);var n=e.videoId||b.video_id;if(!n)return this.onGetLinks(e);var i=b.responseCache[n];if(i)return this.onGetLinks(e,i.links,i.title),void(i=null);var r={action:"getYoutubeLinks",extVideoId:n,url:location.href,noDash:!0};e.ytConfig&&(r.action="getYoutubeLinksFromConfig",r.config=e.ytConfig),o.default.sendMessage(r,function(n){return(n=n||{}).isQuick&&(e.quickBtn.dataset.isQuick="1"),t.onGetLinks(e,n.links,n.title)})}},videoFeed:{style:null,hrefIdPattern:/[\?&]v=([^&]+)/,imgIdPattern:/vi[^\/]*\/([^\/]+)/,rList:[/\/playlist\?/,/(user|channel|c|show)\/[^\/]+(\/feed|\/featured|\/videos|$)/i,/\/(feed)\/(trending|subscriptions|history)/i],testUrl:function(e){return this.rList.some(function(t){return t.test(e)})},injectStyle:function(){this.style?!this.style.parentNode&&document.head.appendChild(this.style):(this.style=I.a.create("style",{class:"sf-feed-style",text:v()([{selector:[".contains-percent-duration-watched .sf-feed-btn"],style:{bottom:"6px"}},{selector:["a > .sf-feed-btn","div > .sf-feed-btn","span > .sf-feed-btn"],style:{display:"none",border:"1px solid #d3d3d3",width:"20px",height:"20px",padding:0,position:"absolute",right:"26px",bottom:"2px",borderRadius:"2px",background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px",cursor:"pointer"}},{selector:["a > .sf-feed-btn.style-2"],style:{border:0,top:0,left:0,margin:"4px",padding:"2px 4px",background:"url("+n.svg.getSrc("download","#FFF")+") center no-repeat #000",backgroundSize:"14px",opacity:".8"}},{selector:["a > .sf-feed-btn:hover","div > .sf-feed-btn:hover","span > .sf-feed-btn:hover"],style:{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:["a > .sf-feed-btn.style-2:hover"],style:{border:0,top:0,left:0,margin:"4px",padding:"2px 4px",background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #000",backgroundSize:"14px",opacity:".8"}},{selector:["a > .sf-feed-btn:active","div > .sf-feed-btn:active","span > .sf-feed-btn:active"],style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}},{selector:["a:hover > .sf-feed-btn","div:hover > .sf-feed-btn","span:hover > .sf-feed-btn"],style:{display:"block"}}])}),document.head.appendChild(this.style))},rmBtn:function(){for(var e,t=document.querySelectorAll(".sf-feed-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e);["sfBtn","sfSkip"].forEach(function(o){var i=m()(o);for(t=document.querySelectorAll("["+i+"]"),n=0;e=t[n];n++)e.removeAttribute(i)})},getBtnNode:function(e,t){var i=["sf-feed-btn"];return t&&i.push("style-"+t),I.a.create("i",{class:i,on:["click",function(t){t.preventDefault(),t.stopPropagation();var i=this;if(b.currentMenu&&b.currentMenu.isShow)b.hideCurrentMenu();else{var r=e,a=i.parentNode;if(a&&"A"===a.tagName&&"thumbnail"===a.id){var s=b.videoFeed.hrefIdPattern.exec(a.href);s&&(r=s[1])}var l=document.querySelector("#home-page-skeleton.hidden"),u=b.currentMenu=n.popupMenu.quickInsert(i,o.default.i18n.getMessage("download")+" ...","sf-popupMenu",{offsetTop:l?54:0,onShow:function(){L.a.onRemoveEvent(i,b.hideCurrentMenu)},onHide:function(){L.a.offRemoveEvent(i,b.hideCurrentMenu)},onItemClick:function(e,t){b.onMenuItemClick(t,{isFeedItem:1,videoId:r})}});o.default.sendMessage({action:"getYoutubeLinks",extVideoId:r,url:location.href,checkSubtitles:!0},function(e){if(e.links){var t=n.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles);u.update(t)}else u.update(o.default.i18n.getMessage("noLinksFound"))})}}]})}},downloadPlaylist:(p=function(e){for(var t,n=[],o=e.querySelectorAll("img[src]"),i=b.videoFeed.imgIdPattern,r=0;t=o[r];r++){var a=t.src.match(i);a&&-1===n.indexOf(a[1])&&n.push(a[1])}var s=e.querySelectorAll("*[data-video-id]");for(r=0;t=s[r];r++){var l=t.dataset.videoId;-1===n.indexOf(l)&&n.push(l)}return n},h=function(e,t,i,r){var a=!1,s={},l=0,u=0,d=e.length,c=void 0;"audio"===t?(c=["audio"],t=void 0):(c=["video"],t=k()(t)||void 0);var f=function f(){if(!a){var p=e[l];if(void 0===p)return 0===u?r(s):void 0;l++,u++,function(e,t,i,r){var a=-1!==i.indexOf("audio");o.default.sendMessage({action:"getYoutubeLinks",extVideoId:e,noDash:a},function(e){var o=void 0;e.links&&(o=n.popupMenu.prepareLinks.youtube(e.links,e.title),o=n.popupMenu.sortMenuItems(o,{noProp:!0,maxSize:t,minSize:2,typeList:i})),r(o)})}(p,t,c,function(e){var t=e?e[0]:void 0;if(t){var n=(t.ext||t.format||"").toLowerCase();n&&(n="."+n);var o=F.a.modify(t.title+n);s[p]={url:t.href,title:t.title,filename:o}}i(l,d),u--,f()})}};return f(),f(),{abort:function(){a=!0}}},function(){var e=!1,t=void 0,i=function(e){var t,i,r,a,s,l=n.playlist.getInfoPopupTemplate();o.default.sendMessage({action:"getWarningIcon",type:"playlist",color:"#77D1FA"},function(e){l.icon.style.backgroundImage="url("+e+")"}),I.a.create(l.textContainer,{append:[I.a.create("p",{text:o.default.i18n.getMessage("playlist"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),i=I.a.create("div",{append:[I.a.create("p",{text:o.default.i18n.getMessage("quality")+":",style:{color:"#000000",fontSize:"14px",marginBottom:"13px",lineHeight:"24px"},append:[r=I.a.create("select",{style:{width:"75px",marginLeft:"5px"},append:[I.a.create("option",{text:"720",value:"720"}),I.a.create("option",{text:"480",value:"480"}),I.a.create("option",{text:"360",value:"360"}),I.a.create("option",{text:"240",value:"240"}),I.a.create("option",{text:"Audio",value:"audio"})]})]}),I.a.create("p",{text:o.default.i18n.getMessage("qualityNote"),style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]}),t=I.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]}),I.a.create(l.buttonContainer,{append:[s=I.a.create("button",{text:o.default.i18n.getMessage("cancel"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"4px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}}),a=I.a.create("button",{text:o.default.i18n.getMessage("continue"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]});var d=n.popupDiv(l.body,"pl_progress_popup",void 0,void 0,e);return{qualitySelect:function(e){t.style.display="none",l.buttonContainer.style.display="block",i.style.display="block",a.addEventListener("click",function(){e(r.value)}),s.addEventListener("click",function(){L.a.trigger(d,"kill")})},onPrepare:function(e){t.style.display="block",l.buttonContainer.style.display="none",i.style.display="none",t.textContent=e},onProgress:function(e,n){t.textContent=o.default.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+o.default.i18n.getMessage("vkFoundOf")+" "+n},onReady:function(e,t){L.a.trigger(d,"kill"),u?n.downloadList.showBeforeDownloadPopup(e,{type:"playlist",folderName:t}):n.playlist.popupPlaylist(e,t,!0,void 0,"video")},onError:function(e){o.default.sendMessage({action:"getWarningIcon",type:"playlist",color:"#AAAAAA"},function(e){l.icon.style.backgroundImage="url("+e+")"}),t.style.display="block",l.buttonContainer.style.display="none",i.style.display="none",t.textContent=e}}}(function(){e=!0,t&&t.abort()});i.qualitySelect(function(n){i.onPrepare(o.default.i18n.getMessage("download")+" ..."),function(e){var t=document,n=f()(location.href);if(n.list)o.default.sendMessage({action:"getYoutubeIdListFromPlaylist",listId:n.list,baseUrl:location.protocol+"//"+location.host},function(t){if(!t)return e();if(!t.idList||0===t.idList.length){var n=document.querySelector(".playlist-videos-container > .playlist-videos-list");if(null!==n&&(t.idList=p(n)),!t.title){var o=document.querySelector(".playlist-info > .playlist-title");null!==o&&(t.title=o.textContent.replace(/\r?\n/g," ").trim())}}e(t.idList,t.title)});else{var i=p(t);e(i,b.getTitle())}}(function(r,a){e||(r&&0!==r.length?t=h(r,n,i.onProgress,function(e){var t=[];for(var n in e)t.push(e[n]);var o=F.a.modify(a);i.onReady(t,o)}):i.onError(o.default.i18n.getMessage("noLinksFound")))})})})};b.tutorial={show:function(e){if(this.hide(),a.onceShowYtTooltip){e.onClose=function(){t&&t.stop(),o.default.sendMessage({action:"updateOption",key:"onceShowYtTooltip",value:a.onceShowYtTooltip=0})},b.currentTutorial=new n.TutorialTooltip(e);var t=null,i=document.querySelector("#page.watch");i&&(t=b.currentTutorial.attrWatcher=n.mutationAttrWatcher.run({attr:"class",target:i,callback:function(){var e=b.currentTutorial;e&&e.tooltipNode.parentNode?e.onResize():t.stop()}}))}},hide:function(){var e=b.currentTutorial;e&&(e.onClose&&e.onClose(1),e.attrWatcher&&e.attrWatcher.stop(),b.currentTutorial=null)}};var w=function(e){return(e=(e=(e=(e=(e=e.replace(/[\x2F\x5C\x3A\x7C]/g,"-")).replace(/[\x2A\x3F]/g,"")).replace(/\x22/g,"'")).replace(/\x3C/g,"(")).replace(/\x3E/g,")")).replace(/(?:^\s+)|(?:\s+$)/g,"")},C=function(e){return n.bridge({func:"function(a){var b=window.ytplayer&&window.ytplayer.config;return b?void a({args:b.args,sts:b.sts,assets:b.assets}):a()}",timeout:300,cb:function(t){if(!t||!t.args||!t.args.video_id){var n=document.querySelector('#watch7-content meta[itemprop="videoId"]'),o=n&&n.getAttribute("content");o&&((t=t||{}).args=t.args||{},t.args.video_id=o)}e(t)}})},M=function(){return new A.a(function(e,t){n.bridge({func:'function(a){try{var b=document.querySelector("#movie_player");if(!b)throw new Error("PLAYER_IS_NOT_FOUND");if(!b.getVideoData)throw new Error("PLAYER_API_IS_NOT_FOUND");b.getUpdatedConfigurationData||function(a){a&&!a.sf_apply&&(a.sf_apply=a.apply,a.apply=function(c,d){var e=d[0];if(e&&e.video_id){var f=JSON.parse(JSON.stringify(e));b.getSfPlayerVars=function(){return f}}return a.sf_apply(c,d)})}(b.loadVideoByPlayerVars);var c=window.ytplayer&&window.ytplayer.config,d=c&&c.sts,e=b.getUpdatedConfigurationData&&b.getUpdatedConfigurationData(),f=e&&e.assets;f&&f.js||(f=c&&c.assets);var g=e&&e.args;g||(g=c&&c.args);var h=b.getVideoData()||{},i=b.getSfPlayerVars&&b.getSfPlayerVars();a({result:{config:{sts:d,assets:f},video_id:h.video_id,sfConfig:i,ytConfig:g}})}catch(b){a({error:{message:b.message,stack:b.stack}})}}',timeout:300,cb:function(n){var o=null;n?n.error&&(o=i()(new Error("UNKNOWN_ERROR"),n.error)):o=new Error("EMPTY_RESPONSE"),o?t(o):e(n.result)}})}).then(function(e){var t=e.ytConfig||{},n=e.sfConfig||{},o=e.config,i=e.video_id;return i||(i=b.getIdFromLocation()),!n.video_id||i&&i!==n.video_id?t.video_id&&i===t.video_id?(o.args=t,o):i?{args:{video_id:i}}:null:(o.args=n,o)})},O=function e(t,n,i){if(e.rmBtn(),n.showUmmyItem&&n.showUmmyBtn){var r="ummy://www.youtube.com/watch?v="+i,a=I.a.create("span",{class:"sf-btn-name",text:o.default.i18n.getMessage("download")+" "}),s=I.a.create("span",{text:"HD"}),l=I.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundSize:"16px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}});o.default.sendMessage({action:"getUmmyIcon"},function(e){l.style.backgroundImage="url("+e+")"});var u=I.a.create("div",{id:e.id,style:{display:"inline-block",marginLeft:"10px",verticalAlign:"middle"},on:["changeValue",function(e){var t=JSON.parse(e.detail),n=I.a.create("span",{text:t});s.parentNode.replaceChild(n,s),s=n}],append:[I.a.create("a",{class:"sf-quick-dl-btn",style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #CCCCCC",borderRadius:"3px",paddingRight:"8px",paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#575757"},href:r,append:[l,a,s],on:["click",function(){/^ummy/.test(this.href)&&o.default.sendMessage({action:"track",t:"event",ec:"youtube",ea:"download",el:"ummy hd"})}]}),I.a.create("style",{text:v()([{selector:"#"+e.id,append:[{".sf-quick-dl-btn":{backgroundColor:"#F8F8F8"},".sf-quick-dl-btn:hover":{backgroundColor:"#EDEDED"},".sf-quick-dl-btn:active":{backgroundColor:"#F8F8F8"}},{media:"@media screen and (max-width: 1293px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]}])})]});return T.bindUmmyBtn(u,{video:"yt-"+i,vid:130}),u}};O.id="sf-ummy-btn",O.rmBtn=function(){for(var e,t=document.querySelectorAll("#"+O.id),n=0;e=t[n];n++)e.parentNode.removeChild(e)};var T={createInfoPopup:function(e,t){var n=I.a.create("div",{class:"sf-ummy-info-confirm-popup-container",style:{position:"absolute",zIndex:9999},append:[I.a.create("span",{style:{display:"inline-block",border:"8px solid transparent",borderRight:"10px solid rgb(192, 187, 187)",borderLeft:0,width:0,top:"8px",left:"11px",position:"absolute"}}),I.a.create("span",{style:{display:"inline-block",border:"8px solid transparent",borderRight:"10px solid #fff",borderLeft:0,width:0,top:"8px",left:"12px",position:"absolute"}}),I.a.create("div",{class:"sf-ummy-confirm-info-popup",style:{backgroundColor:"#fff",border:"1px solid #ccc",marginLeft:"21px",padding:"6px 5px",textAlign:"center",maxWidth:"240px",lineHeight:"16px",fontSize:"12px",fontFamily:"arial, sans-serif",cursor:"default"},append:[I.a.create("p",{append:P()(o.default.i18n.getMessage("ummyTooltipConfirm")),onCreate:function(e){var t=e.querySelector("img");t.style.verticalAlign="text-bottom",o.default.sendMessage({action:"getUmmyIcon"},function(e){t.src=e})}}),I.a.create("p",{style:{textAlign:"right"},append:[I.a.create("a",{class:"sf-btn",style:{cssFloat:"left"},text:o.default.i18n.getMessage("yes"),href:e,on:["click",function(e){setTimeout(function(){o.default.storage.get({onceUmmyLandingHide:0},function(e){e.onceUmmyLandingHide||(e.onceUmmyLandingHide=0),o.default.storage.set({onceUmmyLandingHide:++e.onceUmmyLandingHide}),n.parentNode.removeChild(n),n.dataset.hide="1"})},250)}]}),I.a.create("a",{class:"sf-btn",text:o.default.i18n.getMessage("no"),href:t,target:"_blank"})]}),I.a.create("p",{append:[I.a.create("label",{append:[I.a.create("input",{type:"checkbox",on:["change",function(){o.default.storage.set({onceUmmyLandingHide:3}),n.parentNode.removeChild(n),n.dataset.hide="1"}]}),I.a.create("span",{text:o.default.i18n.getMessage("tooltipHide")})]})]}),I.a.create("style",{text:v()({".sf-ummy-confirm-info-popup > p":{margin:"5px 0"},".sf-ummy-confirm-info-popup label > *":{verticalAlign:"middle"},".sf-ummy-confirm-info-popup .sf-btn":{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid rgb(204, 204, 204)",borderRadius:"3px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",color:"rgb(87, 87, 87)",textAlign:"center",margin:"0 10px",width:"80px"},".sf-ummy-confirm-info-popup .sf-btn:hover":{backgroundColor:"#ededed"}})})]})],on:[["mouseclick",function(e){e.stopPropagation()}],["mousedown",function(e){e.stopPropagation()}]]});return n},bindUmmyBtn:function(e,t){if(a.showUmmyLanding){var i,r=this;i=/^Mac/.test(navigator.platform)?"http://videodownloader.ummy.net/save-from-youtube.html?"+q.stringify({vid:t.vid,video:t.video,utm_source:"savefrom-helper",utm_medium:"youtube-helper",utm_campaign:"ummy",utm_content:"ummy_integration_h"}):"http://videodownloader.ummy.net/?"+q.stringify({vid:111,utm_source:"savefrom-helper",utm_medium:"youtube-helper",utm_campaign:"youtube-helper-hd"}),o.default.storage.get({onceUmmyLandingOpened:0,onceUmmyLandingHide:0},function(t){if(!(t.onceUmmyLandingHide>2)){t.onceUmmyLandingHide||(t.onceUmmyLandingHide=0);var a=e.querySelector("a"),s=a.href;if(t.onceUmmyLandingOpened)return n.bindUmmyInfo(e,{expUmmyInfo:r.createInfoPopup.bind(r,s,i),noUmmy:!0});a.target="_blank",a.href=i;a.addEventListener("click",function t(){setTimeout(function(){a.removeEventListener("click",t),o.default.storage.set({onceUmmyLandingOpened:1}),a.target="_self",a.href=s,n.bindUmmyInfo(e,{expUmmyInfo:r.createInfoPopup.bind(r,s,i),noUmmy:!0})},250)})}})}}}},function(){return!/\/\/gaming\.youtube/.test(location.href)})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={14:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([41,0]),n()}({29:function(e,t){e.exports=n(103)},41:function(e,t,n){n.r(t);var o=n(0),r=n(10),a=n(5),s=n(12),l=n.n(s),u=n(6),d=n.n(u),c=n(2),f=n.n(c),p=n(3),m=n.n(p),h=n(15),g=n(13),v=n.n(g),b=n(11),y=n.n(b),k=n(29),w=n.n(k),x=v()("soundcloud_com");y.a.isSingle()&&Object(a.b)("soundcloud",function(e,t){var n=Object(r.a)(t),a=t.preferences,s=a.moduleSoundcloud?1:0;o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return u.changeState(t.state)}"updatePreferences"!==t.action||i()(a,t.preferences)}),s&&setTimeout(function(){u.run()});var u={client_id:"9EUcKCN69MtmVKuO6hJmtNDRM1HMSfao",lastRow:null,timer:0,btnClass:"savefrom-helper--btn",nodeId:0,tracks:{},audioElClassList:["soundList__item","searchList__item","trackList__item","compactTrackList__item","soundBadgeList__item"],refreshClientId:function(){n.bridge({func:'function(a){"undefined"==typeof webpackJsonp||webpackJsonp([],{0:function f(b,c,d){var e;(function g(){var a=[];for(var b in d)if(d.hasOwnProperty(b)){var c=d[b];if("object"==typeof c){var e=!1;for(var f in c){c[f].exports&&(e=!0);break}e&&a.push(c)}}return a})().some(function(a){for(var b in a){var c=a[b];if(c){var d=c.exports;if(d){var f=d._store;if(f&&(e=f.client_id,e))break}}}if(e)return!0}),a({client_id:e})}})}',cb:function(e){e&&e.client_id&&(o.default.storage.set({scClientId:e.client_id,scClientId_expiresAt:w()()+21600}),u.client_id=e.client_id)}})},loadClientId:function(e){var t=this;o.default.storage.get(["scClientId","scClientId_expiresAt"],function(n){return n.scClientId&&(t.client_id=n.scClientId),(!n.scClientId_expiresAt||n.scClientId_expiresAt<w()())&&t.refreshClientId(),e()})},run:function(){s=1;var e=this;return this.loadClientId(function(){n.mutationWatcher.isAvailable()&&e.mutationMode.enable()})},changeState:function(e){s=e,u.mutationMode.stop(),u.rmBtn(),e&&u.run()},rmBtn:function(){["sfSkip","sfId","sfSingle"].forEach(function(e){for(var t,n=d()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)});for(var e,t=document.querySelectorAll("."+u.btnClass),n=0;e=t[n];n++)e.parentNode.removeChild(e)},handleRow:function(e,t){var n=e.querySelector(".soundActions .sc-button-group");if(n){var o=function(t){t&&u.appendButton(n,e,t)};if(t)0===n.getElementsByClassName(u.btnClass).length&&u.getTrackInfo(window.location.href,e,o);else{var i=e.querySelector("a.sound__coverArt[href], a.soundTitle__title[href], a.trackItemWithEdit__trackTitle[href], a.trackItem__trackTitle[href], .chartTrack__title>a[href]");null!==i&&u.getTrackInfo(i.href,e,o)}}},getTrackInfo:function(e,t,n){(e=e.replace(/#.*$/i,"")).search(/^\/\/(?:[\w-]+\.)?soundcloud\.com(?:\d+)?\//i)>-1?e=window.location.protocol+e:-1==e.search(/https?:\/\//i)&&("/"!=e.charAt(0)&&(e="/"+e),e=window.location.protocol+"//"+window.location.host+e);var o=u.tracks,i=o[e];if(!i){i=o[e]={cbList:[n]};var r={action:"getSoundcloudTrackInfo",trackUrl:e,client_id:u.client_id};return Object(h.a)(r).then(function(t){o[e]=u.setTrackInfo(t)},function(t){x.error("getSoundcloudTrackInfo",t),o[e]=null}).then(function(){for(var t;t=i.cbList.shift();)t(o[e])})}i.cbList?i.cbList.push(n):n(i)},setTrackInfo:function(e){var t=e.trackUrl,n=e.data;if(t&&n){var o={};if("track"!=n.kind&&n.tracks&&1==n.tracks.length&&(n=n.tracks[0]),"track"==n.kind&&n.stream_url)return u.setSingleTrackParams(o,n),o.checkLinks=e.checkLinks,o;if(n.tracks){for(var i=[],r=0,a=n.tracks.length;r<a;r++){var s={};u.setSingleTrackParams(s,n.tracks[r]),i.push(s)}if(i.length>0)return n.title&&(o.title=n.title),o.playlist=i,o.checkLinks=e.checkLinks,o}}},setSingleTrackParams:function(e,t){var n=t.stream_url;n+=-1==n.indexOf("?")?"?":"&",n+="client_id="+u.client_id,e.url=n;for(var o=["id","title","duration"],i=0;i<o.length;i++)t[o[i]]&&(e[o[i]]=t[o[i]]);e.title&&t.user&&t.user.username&&(e.title=t.user.username+" - "+e.title)},onDlBtnClick:function(e){n.downloadOnClick(e)},appendButton:function(e,t,i){var r=i;if(document.body.contains(t)&&(document.body.contains(e)||(e=t.querySelector(".soundActions .sc-button-group")))&&!(t.dataset.sfSkip>1)){t.dataset.sfSkip="2";for(var a=["sc-button-small","sc-button-medium","sc-button-large"],s=0;s<a.length;s++)e.querySelector("."+a[s])&&(a=[a[s]]);var l=document.createElement("a");t.dataset.sfId&&(l.dataset.sfParentId=t.dataset.sfId),l.className=u.btnClass+" sc-button sc-button-responsive "+a[0],l.style.position="relative";var d=document.createElement("img");if(r.playlist){l.href="#",l.title=o.default.i18n.getMessage("playlist");var c=r.title?m.a.modify(r.title):"soundcloud";l.addEventListener("click",function(e){e.preventDefault(),setTimeout(function(){n.playlist.popupPlaylist(r.playlist,c,!0)},100)},!1),!1===r.checkLinks?d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAJElEQVQoz2P4//8/A7mYgWqa6+vr/xPCtNE86udRP9PWz6RiANU4hUYGNDpOAAAAAElFTkSuQmCC":d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAMUlEQVR42mL8//8/A7mAiYECwILC82Uk7IzN/xmpYjPjqJ9H/UxTP1OkGQAAAP//AwDcahUV6UvyJwAAAABJRU5ErkJggg==",d.alt=o.default.i18n.getMessage("playlist")}else!1===r.checkLinks?(l.href="#",l.title=o.default.i18n.getMessage("noLinksFound"),l.addEventListener("click",function(e){e.preventDefault(),n.showTooltip(this,o.default.i18n.getMessage("noLinksFound"),void 0,{backgroundColor:"#fff",border:"1px solid #777",padding:"2px 5px 3px"})}),d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAVklEQVQoz2P4//8/A7mYgSqa0UF9ff1/GEaXG0SagYrmI2vAg+djtZkIA+bjdTYeA+YT5WcsBswnNcDmY9NIlGaoAQnYxHEFGMHQxqe5gRDGqpnuGQMALmDKhkjc9oYAAAAASUVORK5CYII=",d.alt="noLinksFound"):(l.href=r.url,l.title=o.default.i18n.getMessage("download"),r.title&&(l.setAttribute("download",m.a.modify(r.title.trim()+".mp3")),l.addEventListener("click",this.onDlBtnClick,!1)),d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAPklEQVR42mNgGHTgvw/DfxgexJqBiuYja8CD55NrwHxyXTCfWP/OJ0sjFgPmkxvXCWRFDy6MT3MDITw40j8Ak46HYQ4gDfUAAAAASUVORK5CYII=",d.alt="download");n.setStyle(d,{width:"15px",height:"15px",position:"absolute",top:"50%",left:"50%",margin:"-7px 0 0 -7px"}),l.appendChild(d),e.appendChild(l),d=null,l=null,e=null}},mutationMode:{observer:null,stop:function(){u.mutationMode.observer&&u.mutationMode.observer.stop()},enable:function(){if(u.mutationMode.observer)return u.mutationMode.observer.start();var e,t=(e=null,function(){var n=this;clearTimeout(e),e=setTimeout(function(){f.a.off(n,"mouseenter",t),s&&u.handleRow.call(u,n)},250)});u.mutationMode.observer=n.mutationWatcher.run({callback:function(e){var n,o,i,r;for(i=0;i<6;i++)for(n=e[i],o=0;r=n.added[o];o++)r.dataset.sfSkip>0||(r.dataset.sfSkip="1",r.dataset.sfId=""+u.nodeId++,f.a.on(r,"mouseenter",t));for(i=6;i<8;i++)for(n=e[i],o=0;r=n.added[o];o++){var a=null;if(!((a=6===i?l()(r,"listenEngagement"):l()(r,"visualSound")).dataset.sfSingle>0)){if(a.dataset.sfSkip="1",a.classList.contains("streamContext"))return;a.dataset.sfSingle="1",u.handleRow(a,1)}}for(n=e[8],o=0;r=n.removed[o];o++){if(!(r=document.querySelector("["+d()("sfId")+'="'+r.dataset.sfParentId+'"]')))return;if(r.dataset.sfSingle)return;r.dataset.sfSkip="1",document.body.contains(r)&&u.handleRow(r)}},queries:[{css:"li.trackList__item",is:"added"},{css:"li.compactTrackList__item",is:"added"},{css:"li.searchList__item",is:"added"},{css:"li.soundList__item",is:"added"},{css:"li.soundBadgeList__item",is:"added"},{css:"li.chartTracks__item",is:"added"},{css:"div.listenEngagement .soundActions .sc-button-group",is:"added"},{css:"div.visualSound .soundActions .sc-button-group",is:"added"},{css:".savefrom-helper--btn",is:"removed"}],filterTarget:[{css:"div.waveform__layer"},{css:"a.commentPopover__username"},{css:".commentPopover"},{css:"div.playbackTimeline__timePassed"},{css:"div.commentsList"},{css:"div.commentsList__item"},{css:"div.commentsList__body"}]})}}}})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={19:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([42,0]),n()}({27:function(e,t){e.exports=n(43)},42:function(e,t,n){n.r(t);var o=n(0),r=n(10),s=n(5),l=n(8),u=n.n(l),d=n(12),c=n.n(d),f=n(14),p=n.n(f),m=n(27),h=n.n(m),v=n(6),b=n.n(v),y=n(18),w=n.n(y),S=n(4),C=n.n(S),L=n(9),M=n.n(L),I=n(7),O=n.n(I),P=n(21),T=n.n(P),F=n(16),E=n.n(F),N=n(17),D=n.n(N),B=n(2),R=n.n(B),_=n(1),q=n.n(_),j=n(19),z=n.n(j),U=n(3),V=n.n(U),H=n(15),G=n(13),W=n.n(G),Y=n(11),K=n.n(Y),Q=n(20),J=W()("vkontakte_ru");K.a.isSingle()&&Object(s.b)("vk",function(e,t){var n=Object(r.a)(t),s=t.preferences,l=s.moduleVkontakte?1:0,d=o.default.isChrome||o.default.isFirefox||o.default.isGM&&o.default.isTM,f=u()(),m=!1;if(f)if(/\/video_ext\.php\?.+/.test(location.href))m=!0;else{if(!/\/widget_comments\.php\?.+/.test(location.href))return;f=!1}o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:l,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return L.changeState(t.state)}"updatePreferences"!==t.action?l&&("updateLinks"===t.action&&I(),"downloadMP3Files"===t.action&&(d?_.downloadMP3Files():_.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&_.showListOfAudioFiles(!0),"downloadPhotos"===t.action&&G.downloadPhoto()):i()(s,t.preferences)}),l&&setTimeout(function(){L.run()});var v,y,S,L={contextMenu:null,isMutation:!1,run:function(){if(l=1,/m\.vk\.com/.test(location.hostname))return W.run();m?j.addFrameBtn():(G.injectStyle(),n.mutationWatcher.isAvailable()&&(L.isMutation=!0,_.addCustomStyle(),L.mutationMode.enable()))},changeState:function(e){f||(l=e,P(),_.hideLinks(),U.off(),L.hideMenu(),G.rmCurrentPhotoBtn(),_.rmBitrate(),G.rmPhotoAlbumDlBtn(),L.mutationMode.stop(),e&&L.run())},hideMenu:function(){L.contextMenu&&(L.contextMenu.hide(),L.contextMenu=null)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach(function(e){for(var t,n=b()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)})},wrapNewAudioOnMouseOver:function(){l&&_.onNewMouseOver.apply(this,arguments)},wrapVideoFeedOnMouseOver:function(){l&&U.onLinkHover.apply(this,arguments)},onVideoInsert:function(e){var t=n.getParentById(e,"mv_box"),o=j.getPlayerNode(t);o?j.getLinksFromPlayer(t,o,j.newAppendButton.bind(j)):e.dataset.sfSkip=0},onVideoChange:function(e){var t=this;if(/video_box_wrap-?\d+_-?\d+/.test(e.id))if(e.sfWatch)t.onVideoInsert(e);else{e.sfWatch=!0;var o=n.mutationAttrWatcher.run({attr:"id",target:e,callback:function(){t.onVideoInsert(e)}});R.a.onRemoveEvent(e,function(){o.stop(),e.sfWatch=!1,e.dataset.sfSkip=0})}else t.onVideoInsert(e)},enable:function(){var e=this;if(this.observer)return this.observer.start();this.observer=n.mutationWatcher.run({callback:function(t){var n,o,i,r;for(n=t[0],o=0;r=n.added[o];o++)r.dataset.sfSkip>0||(r.dataset.sfSkip="1",R.a.one(r,"mouseenter",L.mutationMode.wrapVideoFeedOnMouseOver));for(n=t[1],o=0;r=n.added[o];o++)r.dataset.sfSkip>0||(r.dataset.sfSkip="1",e.onVideoChange(r));for(n=t[2],o=0;r=n.added[o];o++)(r=r.parentNode).dataset.sfSkip>0||(r.dataset.sfSkip="1",e.onVideoChange(r));for(n=t[3],o=0;r=n.added[o];o++)r.dataset.sfSkip>0||(r.dataset.sfSkip="1",G.addNewPhotoAlbumDlBtn(r));for(n=t[4],o=0;r=n.added[o];o++)r.dataset.sfSkip>0||(r.dataset.sfSkip="1",G.addNewDlCurrentPhotoBtn(r));for(i=5;i<8;i++)for(n=t[i],o=0;r=n.added[o];o++)r.dataset.sfSkip>0||(r.dataset.sfSkip="1",R.a.one(r,"mouseenter",L.mutationMode.wrapNewAudioOnMouseOver));for(n=t[8],o=0;r=n.removed[o];o++)R.a.onRemoveListener(r)},queries:[{css:".post_video_desc a.lnk",is:"added"},{css:"#mv_box #mv_player_box > .video_box_wrap",is:"added"},{css:"#mv_box #mv_player_box > .video_box_wrap > #video_player",is:"added"},{css:"#photos_all_block",is:"added"},{css:".pv_photo_wrap .pv_img_area_wrap",is:"added"},{css:".audio_row",is:"added"},{css:".top_audio_player .top_audio_player_title",is:"added"},{css:".audio_page_player .audio_page_player_title_performer",is:"added"},{css:"."+R.a.onRemoveClassName,is:"removed"}]})}}},I=function(){L.changeState(0),L.changeState(1)},P=function(){_.lastRow=null;for(var e=document.querySelectorAll("a.savefrom_vk_download,div.savefrom_vk_download,span.savefrom_vk_download"),t=e.length-1;t>=0;t--)_.elIsHidden(e[t])&&e[t].parentNode.removeChild(e[t])},F=function(){var e=document.title,t=e.indexOf("|");return-1!==t&&(e=e.substr(0,t-1)),V.a.modify(e)},N=function(e){for(var t=function(e){return!0===e?1:k()(e)||0},n=function(e){return!0===e?1:oe()(e)||0},o=e.split("<!>"),i=o.length-1;i>=0;--i){var r=o[i];if("<!"==r.substr(0,2)){var a=r.indexOf(">"),s=r.substr(2,a-2);switch(r=r.substr(a+1),s){case"json":var l=null;try{l=JSON.parse(r)}catch(o){}o[i]=l;break;case"int":o[i]=t(r);break;case"float":o[i]=n(r);break;case"bool":o[i]=!!t(r);break;case"null":o[i]=null;break;case"pageview_candidate":o.pop();break;case"debug":o.pop()}}}return o},B=function(e){return/<em>.*<\/em>/.test(e)&&(e=e.replace(/<\/?em>/g,"")),e},_={audioElClassList:["audio","audioRow","audioRowWall"],lastRow:null,className:"savefrom_vk_download",cache:{},lastValidRequest:null,waitUntilUnblock:function(e){var t=this,n=10;if(!t.lastValidRequest)return A.a.reject(new Error("Last valid request is empty!"));return function o(){return new A.a(function(e){setTimeout(e,15e3)}).then(function(){if(e.abort)throw new Error("Abort");return D()(t.lastValidRequest).then(function(e){if(n--,!N(e.body)[5]){if(n>0)return o();throw new Error("Can't request data")}})})}().then(function(){return new A.a(function(e){setTimeout(e,250)})})},needUnmask:function(e){var t=/audio_api_unavailable/;return e.some(function(e){if(t.test(e[2]))return!0})},unmaskUrlViaPlayer:(v=null,y=function(e){return new A.a(function(t){n.bridge({args:[e],func:'function(a,b){try{var c=new Function([],"return "+a)();a=null;var d=null;for(var e in c){var f=c[e];if(/\\.audioUnmaskSource=/.test(f)){d=e;break}}if(null===d)for(var e in c){var f=c[e];if(/"audioUnmaskSource"/.test(f)){d=e;break}}if(null===d)throw new Error("Unmask fn is no found!");var g={},h=function(a){if(g[a])return g[a].exports;var b=g[a]={exports:{},id:a,loaded:!1};return c[a].call(b.exports,b,b.exports,h),b.loaded=!0,b.exports};h.r=function(a){Object.defineProperty(a,"__esModule",{value:!0})},h.d=function(a,b,c){h.o(a,b)||Object.defineProperty(a,b,{configurable:!1,enumerable:!0,get:c})},h.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var i=h(d);if(!i.audioUnmaskSource)throw new Error("Unmask fn is no exists!");window.sfUnmaskUrl=i.audioUnmaskSource,b(!0)}catch(a){b(!1)}}',cb:t})}).then(function(e){if(!e)throw new Error("Can't create unmask function!")})},S=function(e){return D()({url:e,localXHR:!0}).then(function(e){var t=e.body,n="",o=t.indexOf("([function");if(-1===o&&(o=t.indexOf("([,function")),-1!==o&&(n=t.substr(o)),-1===o){if(-1===(o=t.indexOf("({0:function"))){var i=/(\({\d+:function)/.exec(t);i&&(o=t.indexOf(i[1]))}if(-1===o){var r=/(\({"[^"]+":function)/.exec(t);r&&(o=t.indexOf(r[1]))}-1!==o&&(n=t.substr(o))}if(!n)throw new Error("Modules is not found!");return n})},function(e){return _.needUnmask(e)?(null===v&&(v=function(){var e=/m\.vk\.com/.test(location.hostname),t=null;t=e?[/\/js\/cmodules\/mobile\/common\.js\?\d+/,/\/js\/s_c\.js\?\d+/]:[/\/js\/al\/audioplayer\.js\?\d+/,/\/cmodules\/web\/audioplayer\.js\?\d+/];var n="";return[].slice.call(document.querySelectorAll("script[src]")).some(function(e){var o=e.src;return t.some(function(e){if(e.test(o))return n=o,!0})}),n?A.a.resolve(n):A.a.reject(new Error("Player url is not found!"))}().then(S).then(y).then(function(){v=!0}).catch(function(e){J.error("Unmask via player error!",e),v=!1})),"boolean"==typeof v?_.unmaskUrl(e):v.then(function(){return _.unmaskUrl(e)})):A.a.resolve(e)}),unmaskUrl:function(e){return _.needUnmask(e)?new A.a(function(t){n.bridge({args:[e],func:'function(a,b){var c=!1,d=!1,e=function(a){var b="";if(!c&&window.sfUnmaskUrl)try{b=window.sfUnmaskUrl(a)}catch(a){c=!0}if(!d&&!b&&window.AudioPlayerFlash)try{var e={};window.AudioPlayerFlash.prototype.setUrl.apply(e,[a]),b=e._url}catch(a){d=!0}return"string"!=typeof b&&(b=""),b};a.forEach(function(a){var b=e(a[2]);b&&(a[2]=b)}),b(a)}',cb:t})}).then(function(t){return t||e}):A.a.resolve(e)},_getNewTrackListByIdsWithActionHash:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=0,i={},r=this.cache,a=e.filter(function(e){var t=e.fullId;return!r[t]||(i[t]=r[t],o++,!1)}),s=[];a.length;)s.push(a.splice(0,9));var l=e.length,u=A.a.resolve();return s.forEach(function(e){u=u.then(function(){var a=function(){if(n.abort)throw new Error("Abort");var a=e.map(function(e){return e.fullId+"_"+e.actionHash+"_"+e.urlHash});a.push(e[0].fullId);var s={type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},data:Q.stringify({act:"reload_audio",al:1,ids:a.join(",")}),url:"/al_audio.php",localXHR:!0};return D()(s).then(function(e){var a=N(e.body)[5];if(!a)throw new Error("Track list is not found!");return t.lastValidRequest=s,a.forEach(function(e){var t=e[1]+"_"+e[0];r[t]=e,i[t]=e,o++}),n.onProgress&&n.onProgress(o,l),new A.a(function(e){setTimeout(e,250)})})},s=2;return function e(){return a().catch(function(o){if("Track list is not found!"===o.message&&!n.withoutUnblock){if(t.lastValidRequest)return t.waitUntilUnblock(n).then(a);if(s-- >0)return new A.a(function(e){return setTimeout(e,15e3)}).then(function(){return e()})}throw o})}().catch(function(e){"Abort"!==e.message&&J.debug("requestIds error!",e)})})}),u=(u=u.then(function(){x()(r).slice(1e3).forEach(function(e){delete r[e]});var t=[];return e.forEach(function(e){var n=e.fullId,o=i[n];o&&t.push(o)}),t})).then(function(e){return _.unmaskUrlViaPlayer(e)}).then(function(e){return e.forEach(function(e){var t=e[2];if(/\.m3u8\?/.test(t)){var n=(t=t.replace("/index.m3u8",".mp3")).split("/");n.splice(n.length-2,1),t=n.join("/"),e[2]=t}}),e})},_getAlbumIdFromUrl:function(e){var t=this,n=[e],o=p()(e);o.z&&n.unshift(o.z);var i=null;return n.some(function(e){if(i=t._getAlbumId(e))return!0}),i},_getAlbumId:function(e){if(/[?&]q=/.test(e))return null;var t={url:"/al_audio.php",data:{}},n=/audio_playlist(-?\d+)_(-?\d+)(?:\/(\w+))?/.exec(e);if(n&&(t.data.access_hash=n[3]||"",t.data.act="load_section",t.data.al=1,t.data.claim=0,t.data.owner_id=n[1],t.data.playlist_id=n[2],t.data.type="playlist",t.data.offset=0),!t.data.act){var o=/audios(-?\d+)/.exec(e);if(o){var i=/[?&]section=(\w+)/.exec(e),r=i&&i[1];if(r&&-1===["playlists","all"].indexOf(r))return null;t.data.access_hash="",t.data.act="load_section",t.data.al=1,t.data.claim=0,t.data.owner_id=o[1],t.data.playlist_id=-1,t.data.type="playlist",t.data.offset=0}}return t.data.act?t:null},getNewNodeTrackInfo:function(e,t){var n=this.readNewDataAudio(e.dataset.audio),o=this.getNewTrackInfo(n);return o?o.url?_.unmaskUrlViaPlayer([[null,null,o.url]]).then(function(e){o.url=e[0][2],t(null,o)}):o.fullId?t(null,o):t(new Error("Track info is not found!")):t(new Error("Track info is not found!"))},_getAlbumTrackViaApi:function(e,t){if(!e.url)throw J.debug("Page is not exists!",e),new Error("Page is not exists!");var n=JSON.parse(g()(e.data)),o=function(){return t.abort?A.a.reject(new Error("Abort")):D()({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:e.url,data:n,timeout:6e4,localXHR:!0}).then(function(e){var t=N(e.body)[5];if(!t)throw new Error("Album data is empty!");return new A.a(function(e){setTimeout(e,250)}).then(function(){return t})})};return o().then(function(e){var t=20;return e.hasMore?function i(r){return!r||t<0?e:(t--,n.offset=r,o().then(function(t){return t.list.length?(e.list.push.apply(e.list,t.list),t.hasMore?i(t.nextOffset):e):e},function(t){return"Abort"!==t.message&&J.debug("getOffset error!",t),e}))}(e.nextOffset):e})},_getAllTrackViaDom:function(e,t){var n=this;t=t||{};var o=[];return[].slice.call(e.querySelectorAll(".audio_row")).forEach(function(e){if((!t.fromPage||!n.elIsHidden(e))&&(t.grabReply||!G.isReply(e))){var i=null;try{i=JSON.parse(e.dataset.audio)}catch(e){}i&&o.push(i)}}),{list:o}},_getNewAudioLinks:function(e,t){var n=this;t=t||{};var i=(e=e||document)===document,r=G.getPopup("","audio",function(){t.abort=!0});r.onPrepare(o.default.i18n.getMessage("download")+" ...");var a=function(){return A.a.resolve().then(function(){return n._getAllTrackViaDom(e,{fromPage:i,grabReply:!1})})};t.onProgress=function(e,t){r.onProgress(e,t)};var s=A.a.resolve();return(s=(s=(s=i?s.then(function(){return A.a.resolve().then(function(){var e=n._getAlbumIdFromUrl(location.href);if(!e)throw new Error("Album is not found");return n._getAlbumTrackViaApi(e,t)})}).catch(function(e){throw"Album is not found"!==e.message&&J.debug("findAlbumLinks error!",e),e}).catch(function(){return a()}):s.then(a)).then(function(e){var t=e.list;if(!t.length)throw new Error("Audio is not found");return r.onProgress(0,t.length),e})).then(function(e){var o=[],i="";"string"==typeof e.title&&(i=V.a.modify(e.title));var r=[];return e.list.forEach(function(e){var t=e[1]+"_"+e[0],n=_.getTrackActionHash(e),i=_.getTrackUrlHash(e);-1===r.indexOf(t)&&(r.push(t),o.push({fullId:t,actionHash:n,urlHash:i}))}),n._getNewTrackListByIdsWithActionHash(o,t).then(function(e){var t={},o=[];return e.forEach(function(e){var i=n.getNewTrackInfo(e);if(i&&i.url){var r=n.getNewAudioFilename(i),a=n.getNewAudioFullTitle(i);t[i.fullId]=i.url,o.push({url:i.url,title:a,filename:r})}}),{linkList:t,trackList:o,title:i}})})).then(function(e){return r.onReady(),e},function(e){throw r.onReady(),e})},tooltip:{tooltip:void 0,updatePos:function(e,t){var o=n.getPosition(e),i=n.getSize(this.tooltip);this.tooltip.style.top=o.top+t.top-i.height+"px";var r=o.left+k()(t.width/2)-k()(i.width/2),a=document.body.clientWidth+document.body.scrollLeft;a<r+i.width&&(r=a-i.width),this.tooltip.style.left=r+"px"},show:function(e,t){var n=this;return void 0!==this.tooltip?this.hide():(this.tooltip=q.a.create("div",{class:"sf-tooltip",style:i()({position:"absolute",display:"none",zIndex:9999,opacity:0,transition:"opacity 0.2s",whiteSpace:"nowrap"},t.style),on:["mouseenter",function(e){n.hide()}]}),document.body.appendChild(this.tooltip)),this.tooltip.style.display="block",setTimeout(function(){n.updatePos(e,t),n.tooltip.style.opacity=1},0),this.tooltip},hide:function(){this.tooltip&&(this.tooltip.style.opacity=0,this.tooltip.style.display="none")}},rmBitrate:function(){void 0===_.rmBitrate.style&&document.body.appendChild(_.rmBitrate.style=q.a.create("style",{text:".sf-bitrate-value {display: none;}"}));for(var e,t=document.querySelectorAll(".sf-bitrate-value"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},insertNewBitrate:function(e,t){if(e&&t&&t.classList.contains("audio_row__info")){var n=t.querySelector(".audio_row__duration");if(n&&(void 0!==_.rmBitrate.style&&(_.rmBitrate.style.parentNode.removeChild(_.rmBitrate.style),_.rmBitrate.style=void 0),!n.querySelector(".sf-bitrate-value"))){var o=q.a.create("span",{text:" "+e,class:"sf-bitrate-value",style:{position:"absolute",textAlign:"right",right:0,opacity:"0.8",top:"14px",fontSize:"11px",whiteSpace:"nowrap"}});n.appendChild(o)}}},onDlBtnLeave:function(){_.tooltip.hide()},onDlBtnOver:function(){var e=_,t=e.tooltip,n=this,i=n.dataset.fullId,r=n.parentNode&&n.parentNode.parentNode,a=-6;n.dataset.bitrateOffsetTop&&(a=k()(n.dataset.bitrateOffsetTop));var s={top:a,width:24,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)"}},l=t.show(n,s);l.dataset.fullId=i;var u=function(){var t=n.dataset.bitrate,i=n.dataset.size,a="";i?t?(e.insertNewBitrate(t,r),a=i+" ~ "+t):a=i:a=o.default.i18n.getMessage("getFileSizeFailTitle"),l.style.padding="2px 5px 3px",l.textContent=a};n.dataset.size?u():(l.style.padding="2px 2px 0 2px",l.textContent="",l.appendChild(q.a.create("img",{src:"/images/upload.gif",height:8,width:32,style:{marginTop:"2px",marginBottom:"1px"}})),n.dataset.preloadOver||(n.dataset.preloadOver=1,e._preloadNewTrackUrl(n).then(function(o){return n.dataset.preloadOver=2,n.href=o,e._onOverInsertBitrate(n,r).then(function(){l.dataset.fullId===i&&(u(),t.updatePos(n,s))})}).catch(function(e){J.error("_preloadNewTrackUrl error",e),n.dataset.preloadOver="",l.dataset.fullId===i&&(u(),t.updatePos(n,s))})))},preloadIdPromiseMap:{},_preloadNewTrackUrl:function(e){var t=this,n=t.preloadIdPromiseMap,o=e.dataset.fullId,i=e.dataset.actionHash,r=e.dataset.urlHash,a=n[o];return a||(a=n[o]=t._getNewTrackListByIdsWithActionHash([{fullId:o,actionHash:i,urlHash:r}],{withoutUnblock:!0}).then(function(e){delete n[o];var i=null;e.some(function(e){if(e[1]+"_"+e[0]===o)return i=e,!0});var r=i&&t.getNewTrackInfo(i);if(!r||!r.url)throw new Error("Track is not found");return r.url},function(e){throw delete n[o],e})),a},onNewDlBtnClick:function(e){n.downloadOnClick(e);for(var t,o=document.querySelectorAll("._audio_row_"+this.dataset.fullId),i=0;t=o[i];i++)t.style.backgroundColor="#f4f7fc"},_onNewDlBtnClickWrapper:function(e){var t=_,n=this;e.stopPropagation(),(n.dataset.preloadOver>1||n.dataset.preloadBitrate>1)&&(n.dataset.preloadDl=2),n.dataset.preloadDl?n.dataset.preloadDl>1?_.onNewDlBtnClick.call(n,e):e.preventDefault():(e.preventDefault(),n.dataset.preloadDl=1,t._preloadNewTrackUrl(n).then(function(t){n.dataset.preloadDl=2,n.href=t,_.onNewDlBtnClick.call(n,e)},function(e){J.error("_preloadNewTrackUrl error",e),n.dataset.preloadDl=""}))},getNewDlBtn:function(e,t){var n={href:e.url||"#sf-preload",class:[_.className,"sf-audio-btn"],download:V.a.modify(t)||"",data:{duration:e.duration||"",fullId:e.fullId,actionHash:e.actionHash,urlHash:e.urlHash},style:{width:"16px",height:"16px"},on:[["mouseenter",this.onDlBtnOver],["mouseleave",this.onDlBtnLeave],["click",this._onNewDlBtnClickWrapper],["mousedown",function(e){e.stopPropagation()}]]};return(o.default.isGM||o.default.isSafari)&&(n.title=o.default.i18n.getMessage("downloadTitle")),q.a.create("a",n)},preloadSizePromiseMap:{},_onOverInsertBitrate:function(e,t){var i=this,r=i.preloadSizePromiseMap,a=e.dataset.fullId,s=r[a];return s||(s=r[a]=Object(H.a)({action:"getFileSize",url:e.href}).then(function(s){if(delete r[a],!s)throw new Error("Response is empty");if(!s.fileSize)throw delete i.cache[a],new Error("File size is empty");var l=n.sizeHuman(s.fileSize,2),u="";e.dataset.duration&&(u=Math.floor(s.fileSize/e.dataset.duration/125)+" "+o.default.i18n.getMessage("kbps")),e.dataset.bitrate=u,e.dataset.size=l,_.insertNewBitrate(u,t)},function(e){throw delete r[a],e})),s},getNewAudioFullTitle:function(e){var t=[];return e.title&&t.push(e.title),e.performer&&(t.length&&t.unshift(" - "),t.unshift(e.performer)),t.join("")},getNewAudioFilename:function(e){var t=this.getNewAudioFullTitle(e);return t&&(t+=".mp3"),t},handleNewCurrentAudioRow:function(e,t,o){if(!e.querySelector("."+_.className)){var i=this.getNewAudioFilename(t),r=this.getNewDlBtn(t,i),a="#6C8CAC";1===o&&(a="#C4D1DE"),r.classList.remove("sf-audio-btn"),q.a.create(r,{style:{background:"url("+n.svg.getSrc("download",a)+") center no-repeat",backgroundSize:"12px",width:"12px",height:"12px",padding:0,margin:0,cssFloat:"left",marginRight:"3px",marginTop:"1px",marginBottom:"-2px"}});var s=null;if(R.a.onRemoveEvent(r,function(){R.a.one(e,"mouseenter",L.mutationMode.wrapNewAudioOnMouseOver),s&&s.stop()}),2===o){var l=O()(e,".audio_page_player");l&&(s=n.mutationAttrWatcher.run({target:l,attr:["data-full-id"],callback:function(){r.parentNode&&r.parentNode.removeChild(r),s&&s.stop()}}))}1===o&&(r.dataset.bitrateOffsetTop=1),e.insertBefore(r,e.firstChild)}},handleNewAudioRow:function(e,t,n){if(!e.querySelector("."+_.className)){var o=this,i=this.getNewAudioFilename(n),r=this.getNewDlBtn(n,i),a=t.parentNode;q.a.create(r,{class:["audio_row__action"],style:{width:"24px",height:"24px",cssFloat:"left"}});var l=t.firstChild;l?t.insertBefore(r,l):t.appendChild(r),1===s.vkShowBitrate&&(r.dataset.preloadBitrate||(r.dataset.preloadBitrate=1,o._preloadNewTrackUrl(r).then(function(e){return r.dataset.preloadBitrate=2,r.href=e,o._onOverInsertBitrate(r,a)}).catch(function(e){J.error("_preloadNewTrackUrl error",e)})))}},addNewDlTrackBtn:function(e){var t=this,o=function(){a.disconnect()},i=null,r=function(n){i||(i=new A.a(function(n,o){t.getNewNodeTrackInfo(e,function(e,t){e?o(e):n(t)})}).catch(function(e){o()})),i.then(function(o){o&&function(n,o){t.handleNewAudioRow(e,n,o)}(n,o)})},a=new(n.mutationWatcher.getMutationObserver())(function(e){if(l){for(var t=null,n=null,i=0;t=e.shift();)if("childList"===t.type&&t.addedNodes.length&&t.target.classList.contains("audio_row__info"))for(i=0,t.addedNodes;n=t.addedNodes[i];i++)if(n.classList.contains("audio_row__actions"))return void r(n)}else o()});a.observe(e,{childList:!0,subtree:!0});var s=e.querySelector(".audio_row__actions");s&&(r(s),s=null)},getNewTrackInfo:function(e){if(!e)return null;var t={};return"string"==typeof e[2]&&(t.url=e[2]),t.title=e[3],t.title&&(t.title=V.a.decodeSpecialChars(B(t.title))),t.performer=e[4],t.performer&&(t.performer=V.a.decodeSpecialChars(B(t.performer))),t.duration=k()(e[5]),t.actionHash=_.getTrackActionHash(e),t.urlHash=_.getTrackUrlHash(e),e[1]&&e[0]&&(t.fullId=e[1]+"_"+e[0]),t.id=e[0],t.ownerId=e[1],t},getTrackActionHash:function(e){return(e[13]||"").split("/")[2]||""},getTrackUrlHash:function(e){return(e[13]||"").split("/")[5]||""},readNewDataAudio:function(e){try{return JSON.parse(e)}catch(e){return null}},addNewDlCurrentTrackBtn:function(e,t){var o=this;n.bridge({func:'function(a){var b=null;if(!b&&"undefined"!=typeof ap&&ap._currentAudio&&(b=ap._currentAudio),!b&&"undefined"!=typeof cur&&cur.audioPage&&cur.audioPage._readyAudio&&(b=cur.audioPage._readyAudio),!b)try{b=JSON.parse(localStorage.audio_v9_track)}catch(a){}return a(b)}',cb:function(n){if(!n){var i=document.querySelector(".audio_page_player[data-audio]");n=i&&o.readNewDataAudio(i.dataset.audio)}var r=n&&o.getNewTrackInfo(n);if(r){var a=function(n){o.handleNewCurrentAudioRow(e,n,t)};r.url?a(r):r.fullId&&a(r)}},timeout:300})},onNewMouseOver:function(e){var t=_;if(this&&!this.querySelector("."+_.className)){var n=null;this.classList.contains("top_audio_player_title")&&(n=1),this.classList.contains("audio_page_player_title_performer")&&(n=2),n?t.addNewDlCurrentTrackBtn(this,n):t.addNewDlTrackBtn(this)}},addCustomStyle:function(){if(1!==this.addCustomStyle.hasStyle){this.addCustomStyle.hasStyle=1;var e=document.querySelector("#savefrom-styles.sf-audio");e&&e.parentNode.removeChild(e),n.addStyleRules(".savefrom_vk_download.sf-audio-btn",{background:"url("+n.svg.getSrc("download","#5f7fa2")+") center no-repeat !important",opacity:"0.4"},"sf-audio")}},hideLinks:function(){if(this.addCustomStyle.hasStyle){this.addCustomStyle.hasStyle=0;var e=document.querySelector("#savefrom-styles.sf-audio");e&&e.parentNode.removeChild(e),n.addStyleRules(".savefrom_vk_download",{display:"none"},"sf-audio")}_.tooltip.tooltip&&(_.tooltip.tooltip.parentNode.removeChild(_.tooltip.tooltip),_.tooltip.tooltip=void 0),_.cache={}},elIsHidden:function(e){return null===e.offsetParent},downloadMP3Files:function(){var e=G.getLayer()||document;_._getNewAudioLinks(e).then(function(e){e.linkList;var t=e.trackList,i=e.title||F(),r=t;if(0===r.length)return alert(o.default.i18n.getMessage("vkMp3LinksNotFound"));n.downloadList.showBeforeDownloadPopup(r,{type:"audio",folderName:i})},function(e){"Abort"!==e.message&&(J.debug("_getNewAudioLinks error!",e),alert(o.default.i18n.getMessage("vkMp3LinksNotFound")))})},showListOfAudioFiles:function(e){var t=G.getLayer()||document;_._getNewAudioLinks(t).then(function(t){var i=t.linkList,r=t.trackList,a=t.title||F(),s=null;if(e){if(0!==(s=r).length)return n.playlist.popupPlaylist(s,a,!0)}else{for(var l in s=[],i)s.push({url:i[l]});if(0!==s.length)return n.playlist.popupFilelist(s)}alert(o.default.i18n.getMessage("vkMp3LinksNotFound"))},function(e){"Abort"!==e.message&&(J.debug("_getNewAudioLinks error!",e),alert(o.default.i18n.getMessage("vkMp3LinksNotFound")))})}},j={panelId:"savefrom__vk_video_links",videoAttr:"data-savefrom-video",hiddenAttr:"data-savefrom-hidden",btnBoxId:"sf-iframe-dl-btn",btnBox:null,style:{fontSize:"10pt",margin:"15px 0",padding:"0"},getLinksFormUrl:function(e){if(e){if("//"===e.substr(0,2)&&(e="http:"+e),s.showUmmyItem&&this.isRutubeLink(e))return j.getRutubeLinks(e);if(this.isPladformLink(e))return j.getPladformLinks(e);var t,o=n.embedDownloader.hostings;for(var i in o){for(var r,a=o[i],l=0;r=a.re[l];l++){var u=e.match(r);if(u){t={hosting:i,action:a.action,extVideoId:u[1]};break}}if(t)break}if(t)return{request:t}}},getLinksFromFlashVars:function(e){var t=p()(e,{params:!0});return j.getLinksFromHtml5MetaData(t)},getLinksFromHtml5MetaData:function(e){if(e){var t=e.md_title;if(void 0!==t){var n=/url([0-9]+)/,o={},i=!1;for(var r in e){var a=null;if("extra_data"!==r||"52"!==e.extra){if(null!==(a=r.match(n))){var s=e[r],l=s.indexOf("?");-1!==l&&(s=s.substr(0,l)),i=!0,o[a[1]]=s}}else o[a=e.hd?"HD":"SD"]=e[r],i=!0}if(i)return{title:t,links:o}}}},getRutubeLinks:function(e){if(/rutube[^\/]+\/(?:play|video)\/embed\/(\d+)/.test(e)||/video\.rutube\./.test(e))return{isUmmy:!0,links:n.popupMenu.prepareLinks.rutube(e)}},isRutubeLink:function(e){return/\/\/.*rutube\..*/.test(e)},getPladformLinks:function(e){if(e){var t=p()(e);return{request:{action:"getPladformVideo",extVideoId:{playerId:t.pl,videoId:t.videoid}}}}},isPladformLink:function(e){return/\/\/.*pladform\..*/.test(e)},getLinksVideoEl:function(e,t){var n=t.querySelector(".vv_summary");if(!n)return null;n=n.textContent;for(var o,i,r={},a=e.querySelectorAll("source"),s=0;i=a[s];s++){var l=i.src||"",u=l.indexOf("?");-1!==u&&(l=l.substr(0,u));var d=l.match(/\.(\d+)\.[^\/]+$/);null!==d&&(r[d[1]]=l,o=!0)}return o?{title:n,links:r}:void 0},getPlayerNode:function(e){var t=null;return["iframe.video_yt_player","#html5_player","#flash_video_obj","#playerObj","#player",".video_box_wrap > #video_player"].some(function(n){if(t=e.querySelector(n))return!0}),t},getLinksFromMv:function(e,t,o){n.bridge({args:[t,e],func:"function(a,b,c){var d=window.mvcur;if(!d||!d.player||!d.player.vars)return c();var e=d.player.vars;return e.vid!==a||e.oid!==b?c():c({vars:d.player.vars})}",cb:function(e){if(!e)return o();var t=j.getLinksFromHtml5MetaData(e.vars);return o(t)},timeout:300})},getLinksFromFrame:function(e){var t=document.body.innerHTML,n=p()(location.href),o=k()(n.oid),i=k()(n.id);if(o&&i){var r=null;if(w()(t,[/"vid":/,/"oid":/,/"md_title":/]).some(function(e){return r=e,!0}),r&&r.vid===i&&r.oid===o)return e(null,{request:{hosting:"vk",action:"getVkLinksFromJsonMsg",json:r}});var a=document.body,s=j.getPlayerNode(a);if(s)return j.getLinksFromPlayer(a,s,function(t){t&&e(null,t)})}return e("ERROR")},getLinksFromPlayer:function(e,t,o){if(t){var i,r;if("OBJECT"===t.tagName)(r=t.querySelector('param[name="flashvars"]'))&&(r=r.getAttribute("value"),i=j.getLinksFromFlashVars(r));else if("IFRAME"===t.tagName){var a=t.getAttribute("src");i||(i=j.getLinksFormUrl(a))}else if("EMBED"===t.tagName){var s=t.getAttribute("src");i||(r=t.getAttribute("flashvars"))&&(i=j.getLinksFromFlashVars(r)),i||(i=j.getLinksFormUrl(s))}if(i)return o(i,e);if("DIV"===t.tagName&&"video_player"===t.id){var l=t.parentNode.id,u=l&&l.match(/video_box_wrap(-?\d+)_(-?\d+)/);if(u)return u.shift(),u=u.map(function(e){return k()(e)}),n.bridge({args:u,func:'function(a,b,c){var d=window.mvcur;if(!d)return c();var e="video"+a+"_"+b;return d.listId&&(e+="?list="+d.listId),c({path:e})}',cb:function(t){if(t)return o({request:{hosting:"vk",action:"getVKLinks",extVideoId:t.path,oidVid:u}},e)},timeout:300})}if("html5_player"===t.id)return n.bridge({func:"function(a){return window.html5video&&window.html5video.vars?void a(window.html5video.vars):a()}",cb:function(t){var n=j.getLinksFromHtml5MetaData(t);if(n)return o(n,e)},timeout:300});if("A"===t.tagName){var d=t.href,c=p()(d);if(c.to)return i=n.embedDownloader.checkUrl(c.to),o(i?{request:i}:null,e)}return o(null,e)}},preparePladformLinks:function(e){e&&"getRutubeLinks"===e.action&&(e.links=null);var t=e&&e.links,n="noname",o={};if(t)for(var i,r=0;i=t[r];r++)n=i.title,o[i.quality]&&(i.quality=0),o[i.quality.toUpperCase()]=i.url;return{title:n,links:o}},prepareLinks:function(e){var t=e.title,n=[];for(var o in e.links){var i=e.links[o],r=i.match(/[\w]+\.(mp4|flv)(?:\?|$)/i),a=(r=r?r[1]:"flv").toUpperCase();n.push({href:i,quality:o,title:t,ext:r,format:a,forceDownload:!0})}return n},getVideoLinksAsAjax:function(e){var t=/video(-?\d+_-?\d+)/.exec(e);t=t&&t[1];var n=p()(e).list;return G._getModuleName().then(function(e){return new A.a(function(o){U.getLinkAsAjax([t,n],function(e,t){o({hosting:t,response:e})},e)})})},newAppendButton:function(e,t){var i=this;if(e){var r=t.querySelector("#mv_info"),a=r&&r.querySelector(".mv_actions_block .like_cont .like_btns");r=null;var l=t.querySelector("#mv_top_controls");if(a&&_.elIsHidden(a)&&(a=null),a||l){for(var u,d=!(a||!l),c=t.querySelectorAll(".savefrom_vk_download"),f=0;u=c[f];f++)u.parentNode.removeChild(u);u=null,c=null;var p=q.a.create("div",{class:["savefrom_vk_download","sf-under-video"],style:{cursor:"pointer"},on:[["click",function(r){if(r.stopPropagation(),R.a.onRemoveEvent(this,L.hideMenu),L.contextMenu&&L.contextMenu.isShow)L.hideMenu();else{var a=L.contextMenu=n.popupMenu.quickInsert(this,o.default.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:t});if(e.isUmmy)a.update(e.links);else if(e.request){var l=function(t){var r=o.default.i18n.getMessage("noLinksFound");if(t)if("getPladformVideo"===e.request.action)r=s.showUmmyItem&&"getRutubeLinks"===t.action?n.popupMenu.prepareLinks.rutube(t.links):j.prepareLinks(j.preparePladformLinks(t));else if(t.links){var l=n.embedDownloader.reMapHosting(t.action);l&&(r=n.popupMenu.prepareLinks[l](t.links,t.title))}if("getVKLinks"===e.request.action&&"string"==typeof e.request.extVideoId&&("string"==typeof r||0===r.length))return i.getVideoLinksAsAjax(e.request.extVideoId).then(function(e){var t=e.hosting,i=e.response,r=o.default.i18n.getMessage("noLinksFound");i&&i.links&&(r=i.isUmmy?i.links:n.popupMenu.prepareLinks[t](i.links,i.title)),a.update(r)});a.update(r)},u=function(){try{o.default.sendMessage(e.request,l)}catch(e){l()}};e.request.oidVid?j.getLinksFromMv(e.request.oidVid[0],e.request.oidVid[1],function(e){if(e){var t=j.prepareLinks(e);a.update(t)}else u()}):u()}else{var d=j.prepareLinks(e);a.update(d)}}}],["mousedown",function(e){e.stopPropagation()}],["keydown",function(e){e.stopPropagation()}]]});if(a){q.a.create(p,{class:["like_btn"],append:[q.a.create("div",{class:["like_button_icon"],append:[q.a.create("img",{src:n.svg.getSrc("download","#828a99"),width:16,height:16,style:{margin:"4px"}})]}),q.a.create("div",{class:["like_button_label"],text:o.default.i18n.getMessage("download")})]});var m=a.querySelector(".ui_actions_menu_wrap");m?m.parentNode.insertBefore(p,m):a.appendChild(p)}else if(d){q.a.create(p,{class:["mv_top_button"],style:{textAlign:"center"},append:[q.a.create("img",{class:["mv_small_close_icon"],style:{backgroundImage:"none",width:"20px",height:"20px"},src:n.svg.getSrc("download","#FFFFFF"),width:20,height:20})]});var h=l.firstChild;if(h)if(_.elIsHidden(l.lastChild)){for(;h.nextElementSibling&&!_.elIsHidden(h.nextElementSibling);)h=h.nextElementSibling;h.parentNode.insertBefore(p,h)}else l.appendChild(p);else l.appendChild(p)}}}},appendNewFrameBtn:function(e,t){var i=this;if(!t.querySelector(".savefrom_vk_download")){var r=n.frameMenu.getBtn({singleBtn:!0,btnId:i.btnBoxId,containerStyle:{top:"10px",right:"10px"},on:[["click",function(t){if(t.preventDefault(),t.stopPropagation(),L.contextMenu&&L.contextMenu.isShow)L.hideMenu();else{var a=L.contextMenu=n.frameMenu.getMenu(this,o.default.i18n.getMessage("download")+"...","sf-frame-menu",{container:r.container,onShow:function(){r.node.classList.add("sf-over")},onHide:function(){L.contextMenu=null,r.node.classList.remove("sf-over")}});if(e.request){var l=function(t){var r=o.default.i18n.getMessage("noLinksFound");if(t&&"getPladformVideo"===e.request.action)r=s.showUmmyItem&&"getRutubeLinks"===t.action?n.popupMenu.prepareLinks.rutube(t.links):i.prepareLinks(i.preparePladformLinks(t));else if(t&&t.links){var l=n.embedDownloader.reMapHosting(t.action);l&&(r=n.popupMenu.prepareLinks[l](t.links,t.title))}a.update(r)};try{o.default.sendMessage(e.request,l)}catch(t){l()}}else a.update(i.prepareLinks(e))}}],["mousedown",function(e){e.stopPropagation(),2===e.button&&(L.hideMenu(),r.container.parentNode&&r.container.parentNode.removeChild(r.container))}]]});r.container=q.a.create("div",{class:"sf-btn-ctr",append:r.node}),r.node.appendChild(q.a.create("style",{text:C()([{selector:["body:hover .sf-btn-ctr #"+i.btnBoxId,"body:hover .sf-btn-ctr .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(r.container)}},addFrameBtn:function(){var e=document.getElementById("page_wrap");e&&j.getLinksFromFrame(function(t,n){t||j.appendNewFrameBtn(n,e)})}},U={linkDataAttr:"savefromHasBtn",getLinkAsAjaxRequest:function(e,t){t=t||0;var n=i()({},e),o=function(){if(t<1)return U.getLinkAsAjaxRequest(e,++t);e.error&&e.error()},r=n.data;0===t?r.act="show_inline":1===t&&(r.act="show"),E()(n,function(t,n,i){return t||!i?o():-1!==i.indexOf('href="/join"')?o():void e.success(i)})},getVideoDataFromLink:function(e){var t=e.getAttribute("onclick"),n=/showVideo\(['"]{1}([^'"]+)['"]{1},.?['"]{1}([^'"]+)['"]{1},.*\)/.exec(t);return n&&n.shift(),n},getLinkAsAjax:function(e,t,i){U.getLinkAsAjaxRequest({localXHR:1,type:"POST",url:"/al_video.php",data:{list:e[1],video:e[0],act:"show_inline",module:i,al:1},success:function(e){if(!e)return t();var i=e.match(/<iframe[^>]+src=['"]{1}([^'">]+)['"]{1}[^>]+>/i);if(i||(i=e.match(/var\s+opts\s+=\s+({[^}]*})/im))&&(i=i[1].match(/url:\s+['"]{1}([^'"]+)['"]{1}/i))&&0!==i[1].indexOf("//")&&0!==i[1].indexOf("http")&&(i=null),i){var r=i[1];if(s.showUmmyItem&&j.isRutubeLink(r))return t(j.getRutubeLinks(r));if(0===r.indexOf("//")&&(r="http:"+r),0!==r.indexOf("http"))return t();var a=n.embedDownloader.checkUrl(r);if(!a)return t();var l={action:a.action,extVideoId:a.extVideoId};o.default.sendMessage(l,function(e){var o=a.hosting;return e.action!==l.action&&(o=n.embedDownloader.reMapHosting(e.action)),t(e,o)})}else Object(H.a)({action:"getVkLinksFromData",data:e}).then(function(e){return t(e,"vk")}).catch(function(){return t({},"vk")})},error:function(){t()}})},addDownloadBtn:function(e){var t=e.href,i=q.a.create("a",{href:"http://savefrom.net/?url="+encodeURIComponent(t),style:{display:"inline-block",width:"16px",height:"16px",marginLeft:"5px",backgroundImage:"url("+n.svg.getSrc("download","#78A2CC")+")",backgroundRepeat:"no-repeat",marginBottom:"-4px"},on:["click",function(e){var t=this;if(e.preventDefault(),R.a.onRemoveEvent(r,L.hideMenu),L.contextMenu&&L.contextMenu.isShow)L.hideMenu();else{var s=document.querySelector("#wk_box");s&&s.contains(this)||(s=null);var l={parent:s},u=this.getAttribute(n.embedDownloader.dataAttr),d=n.embedDownloader.checkUrl(u);if(d){var c={action:d.action,extVideoId:d.extVideoId},f=L.contextMenu=n.popupMenu.quickInsert(i,o.default.i18n.getMessage("download")+" ...","sf-popupMenu",l),p=function(e){var i=d.hosting;if(e.action!=c.action&&(i=n.embedDownloader.reMapHosting(e.action)),a()(e.links)&&0===e.links.length&&(e.links=void 0),e.links){var r=n.popupMenu.prepareLinks[i](e.links,e.title);f.update(r)}else{var s=n.getParentByTagName(t.parentNode,"A"),l=U.getVideoDataFromLink(s);G.getModuleName(U.getLinkAsAjax.bind(U,l,function(e,t){var i;if(e&&e.links)return i=e.isUmmy?e.links:n.popupMenu.prepareLinks[t](e.links,e.title),void f.update(i);f.update(o.default.i18n.getMessage("noLinksFound"))}))}};try{o.default.sendMessage(c,p)}catch(e){p({})}}else L.contextMenu=n.popupMenu.quickInsert(i,o.default.i18n.getMessage("noLinksFound"),"sf-popupMenu",l)}}]});i.setAttribute(n.embedDownloader.dataAttr,t);var r=q.a.create("span",{class:"sf-video-feed-container",on:["click",function(e){e.stopPropagation()}],append:[i]}),s=e.querySelector(".post_video_title");s?s.appendChild(r):e.appendChild(r)},onLinkHover:function(){if("A"===this.tagName){var e=this.href||"";0===this.id.indexOf("post_media_lnk")&&-1!==e.indexOf("/video")&&(L.contextMenu&&L.contextMenu.isShow&&L.hideMenu(),this.dataset[U.linkDataAttr]||(this.dataset[U.linkDataAttr]=1,U.addDownloadBtn(this)))}},off:function(){for(var e,t=document.querySelectorAll(".sf-video-feed-container"),n=0;e=t[n];n++)e.parentNode.removeChild(e);var o=b()(U.linkDataAttr),i=document.querySelectorAll("*["+o+"]");for(n=0;e=i[n];n++)e.removeAttribute(o)}},G={photoCache:{},getAlbumId:function(e){if(!/(\?|&|#)act=edit/i.test(e)){var t=[];t.push(e);var n=p()(e);n.w&&t.push(n.w),n.z&&t.push.apply(t,n.z.split("/")),/#/.test(e)&&(t.push(e.substr(e.indexOf("#")+1)),t.push(decodeURIComponent(e.substr(e.indexOf("#")+1)))),t.reverse();var o=null,i=null;return t.some(function(e){if(i=e.match(/(?:\/|#|=|^)(albums?|tag|photos|feed(?:\d+)?_|wall)(-?\d+)(?:_(\d+))?/i))return i[3]?o=/^(feed|wall)/.test(i[1])?i[1]+i[2]+"_"+i[3]:"album"+i[2]+"_"+i[3]:("albums"==i[1]&&(i[1]="photos"),o=i[1]+i[2]),!0}),o}},getModuleName:function(e){var t=q.a.create("script",{text:"("+'function(){window.cur&&window.cur.module&&"string"==typeof window.cur.module&&(document.body.dataset["{dataArg}"]=window.cur.module)}'.replace("{dataArg}","sfModule")+")();"});document.body.appendChild(t),setTimeout(function(){t.parentNode.removeChild(t),e(document.body.dataset.sfModule)},0)},isReply:function(e){return M()(e,".replies "+e.tagName)||M()(e,".wl_replies "+e.tagName)},getWallPostContent:function(){var e=location.href.match(/wall(-?\d+_\d+)/);if(e=e&&e[1])return document.getElementById("post"+e)||document.getElementById("wpt"+e)},getPopup:function(e,t,i){var r,a=n.playlist.getInfoPopupTemplate();q.a.create(a.textContainer,{append:[q.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),r=q.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]});var s=n.popupDiv(a.body,"sf_progress_popup",void 0,void 0,i),l=function e(n){e.state!==n&&(e.state=n,a.buttonContainer.style.display="none",r.style.display="none",o.default.sendMessage({action:"getWarningIcon",type:t,color:"#77D1FA"},function(e){a.icon.style.backgroundImage="url("+e+")"}),"progress"===n&&(r.style.display="block"),"error"===n&&(o.default.sendMessage({action:"getWarningIcon",type:t,color:"#AAAAAA"},function(e){a.icon.style.backgroundImage="url("+e+")"}),r.style.display="block"))};return{onPrepare:function(e){l("progress"),r.textContent=e},onProgress:function(e,t){r.textContent=o.default.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+o.default.i18n.getMessage("vkFoundOf")+" "+t},onReady:function(){R.a.trigger(s,"kill")},onError:function(e){l("error"),r.textContent=e}}},getLayer:function(){var e=document.getElementById("layer_wrap");return null!==e&&"none"!==e.style.display&&0!==e.textContent.length||(e=null),null===e&&(null!==(e=document.getElementById("wk_layer_wrap"))&&"none"!==e.style.display&&0!==e.textContent.length||(e=null)),e},_getAlbumLinks:function(e,t){var n=this,o=n.photoCache,i="";/albums|tags|photos/.test(location.href)&&(i=F());var r={},a=[],s=0,l=0,u=0,d=0;return function c(){return function(i){if(t.abort)return A.a.reject(new Error("Abort"));var a={act:"show",al:1,list:e};return i&&(a.offset=i),D()({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:"/al_photos.php",data:a,localXHR:!0,timeout:6e4}).then(function(e){var t=N(e.body),i=t[6],a=t[8];s||(s=a.length),l=i,u||(u=Math.ceil(i/s));var d=[],c="";return a.forEach(function(e){if(!r[e.id]){r[e.id]=1;var t=n.getMaxPhotoSize(e);t&&(!c&&e.album&&(c=V.a.decodeSpecialChars(h()(e.album.replace(/<[^>]+>/g,"")))),t.id=e.id,o[e.id]=t,d.push(t))}}),new A.a(function(e){setTimeout(e,250)}).then(function(){return{title:c,list:d}})})}(d*s).then(function(e){if(u--,d++,a.push.apply(a,e.list),t.onProgress&&t.onProgress(a.length,l),i||(i=e.title),u>0)return c()})}().then(function(){if(x()(o).slice(1e3).forEach(function(e){delete o[e]}),!a.length)throw new Error("Album is empty");return i||(i=F()),{title:i,list:a}},function(e){throw"Abort"!==e.message&&J.debug("Get photo page error!",e),e})},_getPhotoLinks:function(e,t,n){var o=this;return o._getModuleName().then(function(i){return function(i){if(n.abort)return A.a.reject(new Error("Abort"));var r={act:"show",al:1,list:t,module:i,photo:e};return D()({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:"/al_photos.php",data:r,localXHR:!0,timeout:6e4}).then(function(t){var n=N(t.body)[8],i=null;if(n.some(function(t){if(t.id===e)return i=o.getMaxPhotoSize(t),!0}),!i)throw new Error("Photo is is not found!");return new A.a(function(e){setTimeout(e,250)}).then(function(){return i})})}(i)}).catch(function(e){throw"Abort"!==e.message&&J.debug("Get photo error!",e),e})},_getModuleName:function(){return new A.a(function(e,t){var n=q.a.create("script",{text:'(function(a){window.cur&&window.cur.module&&"string"==typeof window.cur.module&&(document.body.dataset[a]=window.cur.module)})('+g()("sfModule")+");"});document.body.appendChild(n),setTimeout(function(){n.parentNode.removeChild(n),e(document.body.dataset.sfModule)},0)})},_getAlbumLinksViaDom:function(e,t){var n=this,o=n.photoCache;if(t.abort)return A.a.reject(new Error("Abort"));var i=/showPhoto\s*\(\s*["']([-\d_]+)["']\s*,\s*["']([\w\-]+)["']/i,r=/\{["']?temp["']?\s*:\s*(\{.+?\})/i,a=/(\{|,)\s*(\w+)\s*:/gi,s={},l=[],u=function(e){if(!G.isReply(e)&&!_.elIsHidden(e)){var t=e.getAttribute("onclick"),o=i.exec(t);if(o){var u=o[1];if(!s[u]){s[u]=1;var d=o[2],c=null,f=r.exec(t);if(f){f=f[1].replace(a,'$1"$2":');var p=null;try{p=JSON.parse(f)}catch(e){}c=p&&n.getMaxPhotoSize(p)}c||(c={}),c.id=u,c.listId=d,l.push(c)}}}};if([].slice.call(e.querySelectorAll("a[onclick]")).forEach(u),0===l.length&&e!==document){var d=n.getWallPostContent();d&&[].slice.call(d.querySelectorAll("a[onclick]")).forEach(u)}return function(e){var i=A.a.resolve(),r=[],a=e.filter(function(e){var t=o[e.id];return!t||(r.push(t),!1)});return t.onProgress&&t.onProgress(r.length,e.length),a.forEach(function(a){i=i.then(function(){return n._getPhotoLinks(a.id,a.listId,t).then(function(n){o[a.id]=n,r.push(n),t.onProgress&&t.onProgress(r.length,e.length)},function(n){if("Abort"===n.message)throw n;a.url&&(r.push(a),t.onProgress&&t.onProgress(r.length,e.length),J.debug("Photo link from dom",n))})})}),i=i.then(function(){if(x()(o).slice(1e3).forEach(function(e){delete o[e]}),!r.length)throw new Error("Photos is not found");return{list:r}})}(l)},_getLinks:function(e,t){var i=this,r=A.a.resolve(),a={},s=i.getPopup(F(),"photo",function(){a.abort=!0});a.onProgress=function(e,t){s.onProgress(e,t)},s.onPrepare(o.default.i18n.getMessage("download")+" ...");var l=function(){if((e=e||document)===document){var t=i.getLayer();t&&(e=t)}return i._getAlbumLinksViaDom(e,a)};return(r=t?r.then(function(){return i._getAlbumLinks(t,a)}).catch(function(e){throw"Album is empty"!==e.message&&"Abort"!==e.message&&J.debug("findAlbumLinks error",e),e}).catch(function(){return l()}):r.then(l)).then(function(e){var t=e.title,o=function(e){var t=[];e.forEach(function(e){var n=e.url,o=i.getFilenameFromUrl(n);o||(o="unknown.jpg"),t.push({filename:o,url:n})});var n=String(t.length).length;return t.forEach(function(e,t){for(var o=String(t+1);o.length<n;)o="0"+o;e.filename=o+"-"+e.filename}),t}(e.list);s.onReady(),t||(t=F()),d?n.downloadList.showBeforeDownloadPopup(o,{count:o.length,folderName:t,type:"photo",onShowList:function(){i.showListOfLinks(t,o,!0)}}):i.showListOfLinks(t,o,!0)},function(e){"Abort"!==e.message&&J.debug("_getLinks error",e),s.onError(o.default.i18n.getMessage("noLinksFound"))})},rmPhotoAlbumDlBtn:function(){for(var e,t=document.querySelectorAll([".sf-dl-ablum-btn-divide",".sf-dl-ablum-btn"]),n=0;e=t[n];n++)e.parentNode.removeChild(e)},addNewPhotoAlbumDlBtn:function(e){var t=this,n=e.querySelector(".photos_album_intro_info"),i=e.querySelector(".page_block_header_extra"),r=n||i;if(r&&!r.querySelector(".sf-dl-ablum-btn")){var a=q.a.create("a",{text:o.default.i18n.getMessage("vkDownloadPhotoAlbum"),href:"#",class:"sf-dl-ablum-btn",on:["click",function(n){n.preventDefault();var o=G.getAlbumId(location.href);t._getLinks(e,o)}]}),s=q.a.create("span",{append:a});n?(s.classList.add("photos_album_info"),s=q.a.create(document.createDocumentFragment(),{append:[q.a.create("span",{class:"divide sf-dl-ablum-btn-divide",text:"|"}),s]})):i&&(s.classList.add("photos_comments_link"),s.style.margin="0 15px"),r.appendChild(s)}},getContainer:function(){var e=document.getElementById("photos_albums_container");return e||(e=document.getElementById("photos_container")),e},getFilenameFromUrl:function(e){var t=/\/([\w\-]+\.[a-z0-9]{3,4})(?:\?|$)/i.exec(e);return t&&t[1]||""},rmCurrentPhotoBtn:function(e){for(var t,n=void 0,o=document.querySelectorAll(".sf-dl-current-photo-btn"),i=0;t=o[i];i++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},style:null,injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=q.a.create("style",{text:C()({"div > .sf-dl-current-photo-btn":{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px",top:"20px",left:"30px",zIndex:10,cursor:"pointer"},"div > .sf-dl-current-photo-btn.sf-style-black":{border:0,background:"url("+n.svg.getSrc("download","#FFF")+") center no-repeat #000",backgroundSize:"14px",padding:"2px 4px",borderRadius:"2px",opacity:.4,transition:"opacity 100ms linear"},"div > .sf-dl-current-photo-btn:hover":{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px",opacity:.8},"div > .sf-dl-current-photo-btn.sf-style-black:hover":{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #000",backgroundSize:"14px"},"div > .sf-dl-current-photo-btn:active":{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"},"div:hover > .sf-dl-current-photo-btn":{display:"block"}})}),document.head.appendChild(this.style))},getMaxPhotoSize:function(e){var t,n,o=null,i=null;return["w","z","y","x"].some(function(t){return!!(o=e[t+"_"])||!!(i=e[t+"_src"])||void 0}),o||(o=[i]),o[0]?{url:(t=e.base,n=o[0],n.match(/\.[a-z]{3}$/i)||(n+=".jpg"),n.match(/https?:\/\//i)?n:(t||"").replace(/\/[a-z0-9_:\.]*$/i,"")+"/"+n),width:o[2]&&o[1],height:o[1]&&o[2]}:null},getNewCurrentPhotoLink:function(e,t){var o=this;return e?n.bridge({args:[e],func:'function(a,b){var c={};return"undefined"!=typeof cur&&cur.pvCurPhoto&&cur.pvCurPhoto.id===a&&(c=cur.pvCurPhoto),b(c)}',cb:function(e){if(!e||!e.id)return t("ID is not found!");var n=o.getMaxPhotoSize(e);return n?t(null,n):t("URL is not found!")},timeout:300}):t("ID is empty!")},addNewDlCurrentPhotoBtn:function(e){var t=e;if(!this.rmCurrentPhotoBtn(t)){var i=this,r=e.querySelector("a#pv_photo[href]");if(r){var a=q.a.create("a",{class:["sf-dl-current-photo-btn","sf-style-black"],href:"#",title:o.default.i18n.getMessage("download"),on:[["click",function(e){if(e.stopPropagation(),e.preventDefault(),R.a.onRemoveEvent(this,L.hideMenu),!L.contextMenu||!L.contextMenu.isShow){var a=L.contextMenu=n.popupMenu.quickInsert(this,o.default.i18n.getMessage("download")+" ...","photoDlMenu",{parent:t}),s=r.href.match(/photo(-?\d+_\d+)/);return s=s&&s[1],i.getNewCurrentPhotoLink(s,function(e,t){if(e)return a.update(o.default.i18n.getMessage("noLinksFound"));var n=V.a.modify(i.getFilenameFromUrl(t.url)),r=n.lastIndexOf("."),s=n.substr(r+1),l=n.substr(0,r),u=[];u.push({href:t.url,title:l,quality:o.default.i18n.getMessage("download"),format:" ",ext:s,forceDownload:!0,isOther:!0,isBlank:!0,func:function(){a.hide()}}),u.push({href:"#getAlbum",title:"",quality:o.default.i18n.getMessage("vkDownloadPhotoAlbum"),format:" ",ext:"",noSize:!0,isOther:!0,func:function(e){e.preventDefault(),G.downloadPhoto(),a.hide()}}),a.update(u)})}L.hideMenu()}],["mousedown",function(e){e.stopPropagation()}]]});n.mutationAttrWatcher.run({target:r,attr:["href"],callback:function(){L.contextMenu&&L.contextMenu.isShow&&L.hideMenu()}}),t.appendChild(a)}}},downloadPhoto:function(){var e=this.getContainer(),t=this.getAlbumId(location.href);if(!t){var n=document.querySelector(".pv_album_name a");n&&!_.elIsHidden(n)&&(t=this.getAlbumId(n.href))}this._getLinks(e,t)},showListOfPhotosContent:function(e,t){var n;return"<!DOCTYPE html><html>"+q.a.create("html",{append:[q.a.create("head",{append:[q.a.create("meta",{attr:{charset:"utf-8"}}),q.a.create("style",{text:"a,img{display:block;margin-bottom:5px;}p{width: 640px}"})]}),q.a.create("body",{append:[e,q.a.create("p",{text:o.default.i18n.getMessage("vkListOfPhotosInstruction")}),q.a.create("br"),q.a.create("br"),(n=document.createDocumentFragment(),t.forEach(function(e){var t=e.url,o=e.filename||"",i=q.a.create("img",{src:t,alt:"photo"});o&&(i=q.a.create("a",{href:t,download:o,append:i})),n.appendChild(i)}),n)]})]}).innerHTML+"</html>"},showListOfLinks:function(e,t,i){var r;r=i?q.a.create(document.createDocumentFragment(),{append:[q.a.create("p",{append:[q.a.create("a",{text:o.default.i18n.getMessage("vkListOfPhotos"),href:"#",class:"sf__hidden",style:{fontWeight:"bolder",border:"none",textDecoration:"underline"},on:["click",function(n){n.preventDefault();var i=G.showListOfPhotosContent(e,t),r="";o.default.isChrome||o.default.isTM?(r=T()(i,"text/html",!0),o.default.sendMessage({action:"openTab",url:r})):(r=T()(i,"text/html"),window.open(r,"_blank"))}]})]})]}):"";for(var a,s,l="",u=0;a=t[u];u++)l+=a.url+"\r\n";var d=q.a.create(document.createDocumentFragment(),{append:[q.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"5px"}}),q.a.create("p",{append:z()(o.default.i18n.getMessage("vkListOfLinksInstruction"))}),r,s=q.a.create("textarea",{text:l,cols:60,rows:10,style:{width:"100%"}}),o.default.isChrome||o.default.isFirefox?q.a.create("button",{text:o.default.i18n.getMessage("copy"),style:{height:"27px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",marginTop:"6px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"5px",fontSize:"14px",cursor:"pointer",cssFloat:"right"},on:["click",function(e){var t=this;t.disabled=!0,o.default.isFirefox?(s.select(),document.execCommand("copy")):o.default.sendMessage({action:"addToClipboard",text:l}),setTimeout(function(){t.disabled=!1},1e3)}],append:q.a.create("style",{text:C()({"#savefrom_popup_box button:hover:not(:disabled)":{backgroundColor:"#597A9E !important",borderColor:"#597A9E !important",color:"#fff"},"#savefrom_popup_box button:active":{opacity:.9}})})}):void 0]});n.popupDiv(d)}},W={mobileMenu:null,observer:null,styleEl:null,run:function(){var e=this;if(n.mutationWatcher.isAvailable()){if(e.observer)return e.observer.start();e.observer=n.mutationWatcher.run({callback:function(t){var n,o,i;for(n=t[0],o=0;i=n.added[o];o++)i.dataset.sfSkip>0||(i.dataset.sfSkip="1",e.insertAudioBtn(i));for(n=t[1],o=0;i=n.added[o];o++)i.parentNode.classList.contains("video_view")&&(i.dataset.sfSkip>0||(i.dataset.sfSkip="1",e.insertVideoBtn(i)));for(n=t[2],o=0;i=n.removed[o];o++)R.a.onRemoveListener(i)},queries:[{css:"div.audio_item",is:"added"},{css:"div.vv_body",is:"added"},{css:"."+R.a.onRemoveClassName,is:"removed"}]}),e.insertStyle()}},hideMenu:function(){W.mobileMenu&&(W.mobileMenu.hide(),W.mobileMenu=null)},insertStyle:function(){this.styleEl?this.styleEl.parentNode||document.head.appendChild(this.styleEl):(this.styleEl=q.a.create("style",{class:"sf-style",text:C()([{selector:".savefrom_vk_download.sf-audio",style:{display:"block",float:"right",borderRadius:"3px",width:"22px",height:"22px",marginTop:"1px",marginLeft:"3px",marginRight:"3px",background:"url("+n.svg.getSrc("download","#ffffff")+") center no-repeat",backgroundSize:"12px",backgroundColor:"#5E80AA"}},{selector:".audio_item .savefrom_vk_download.sf-audio",style:{position:"absolute",right:"32px",top:0,bottom:0,margin:"auto"}},{selector:".audio_item.ai_current .savefrom_vk_download.sf-audio",style:{bottom:"auto",top:"6px"}}])}),document.head.appendChild(this.styleEl))},onAudioBtnClick:function(e){e.stopPropagation(),n.downloadOnClick(e)},getAudioDlBtnNode:function(e,t){return q.a.create("a",{class:["savefrom_vk_download","sf-audio"],href:t,download:V.a.modify(e),target:"_blank",on:["click",this.onAudioBtnClick],title:o.default.i18n.getMessage("download")})},insertAudioBtn:function(e){var t=this,n=null,o=e.querySelector(".ai_label");if(o){var i=o.textContent.trim(),r=o.querySelector(".ai_title"),a=o.querySelector(".ai_artist"),s=r&&r.textContent.trim(),l=a&&a.textContent.trim();n=s&&l?"".concat(l.trim()," – ").concat(s.trim()):i}n="".concat(n||"unknown",".mp3");var u=e.querySelector("input");if(u=u&&u.value){var d=e.querySelector(".ai_dur");if(d){var c=d.parentNode;_.unmaskUrlViaPlayer([[null,null,u]]).then(function(e){u=e[0][2];var o=t.getAudioDlBtnNode(n,u),i=c.querySelector(".savefrom_vk_download");if(i)i.parentNode.replaceChild(o,i);else{var r=d.nextElementSibling;if(!r)return;c.insertBefore(o,r)}})}}},onVideoBtnClick:function(e,t){t.preventDefault(),t.stopPropagation(),W.hideMenu();var i=W.mobileMenu=n.mobileLightBox.show(o.default.i18n.getMessage("download")+" ..."),r=o.default.i18n.getMessage("noLinksFound");if(e.request){var a=function(t){if(t&&"getPladformVideo"===e.request.action)r=j.prepareLinks(j.preparePladformLinks(t));else{var o=n.embedDownloader.reMapHosting(t.action);o&&t&&t.links&&(r=n.popupMenu.prepareLinks[o](t.links,t.title))}i.update(r)};try{o.default.sendMessage(e.request,a)}catch(t){a()}}else r=j.prepareLinks(e),i.update(r)},appendVideoBtn:function(e,t){var n=t.querySelector(".mv_actions"),i=q.a.create("li",{class:["savefrom_vk_download","sf-video-ctr"],append:q.a.create("a",{class:["savefrom_vk_download","mva_item"],text:o.default.i18n.getMessage("download"),on:["click",this.onVideoBtnClick.bind(this,e)]})});n&&n.appendChild(i),R.a.onRemoveEvent(i,W.hideMenu)},insertVideoBtn:function(e){var t=this,n=e.querySelectorAll("iframe, video, a")[0],o=c()(e,"video_view"),i=function(){var e=/video(-?\d+)_(-?\d+)/.exec(location.href);return e&&{request:{hosting:"vk",action:"getVKLinks",extVideoId:"video"+e[1]+"_"+e[2]}}};n?j.getLinksFromPlayer(o,n,function(e,n){e||(e=i()),e&&t.appendVideoBtn(e,n)}):e.querySelector(".vv_not_support")&&i()&&t.appendVideoBtn(i(),o)}}})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={9:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([43,0]),n()}({35:function(e,t){e.exports=n(190)},43:function(e,t,n){n.r(t);var o=n(0),r=n(10),s=n(5),l=n(12),u=n.n(l),d=n(14),f=n.n(d),p=n(6),m=n.n(p),h=n(18),v=n.n(h),y=n(4),w=n.n(y),S=n(9),C=n.n(S),L=n(7),M=n.n(L),I=n(16),O=n.n(I),P=n(2),E=n.n(P),N=n(1),D=n.n(N),B=n(3),R=n.n(B),_=n(13),q=n.n(_),j=n(11),z=n.n(j),U=n(17),V=n.n(U),H=n(35),G=n.n(H),W=n(20),Y=q()("odnoklassniki_ru");z.a.isSingle()&&Object(s.b)("odnoklassniki",function(e,t){var s=Object(r.a)(t),l=t.preferences,d=l.moduleOdnoklassniki?1:0,p=o.default.isChrome||o.default.isFirefox||o.default.isGM&&o.default.isTM;o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:d,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return h.changeState(t.state)}"updatePreferences"!==t.action?d&&("updateLinks"===t.action&&y(),"downloadMP3Files"===t.action&&(p?L.downloadMP3Files():L.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&L.showListOfAudioFiles(!0)):i()(l,t.preferences)}),d&&setTimeout(function(){h.run()});var h={linkCache:{},contextMenu:null,videoToken:null,run:function(){if(d=1,L.getJsSessionId(),P.injectStyle(),N.injectStyle(),s.mutationWatcher.isAvailable())return h.mutationMode.enable()},changeState:function(e){d=e,I.rmBtn(),L.disable(),N.rmCurrentPhotoBtn(),P.disable(),P.rmBtn(),h.hideMenu(),h.mutationMode.stop(),h.clearCache(),e&&h.run()},hideMenu:function(){h.contextMenu&&(h.contextMenu.hide(),h.contextMenu=null)},clearCache:function(){var e=h.linkCache;for(var t in e)delete e[t]},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach(function(e){for(var t,n=m()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)})},wrapOnPhotoOver:function(){d&&N.addCurrentDlBtn(this)},wrapVideoFeedOnImgOver:function(){d&&P.onImgOver.call(this)},wrapAudioOnMouseOver:function(){d&&L.onMouseOver.apply(this,arguments)},wrapAudioOnMouseOut:function(){d&&L.onMouseOut.apply(this,arguments)},wrapNewAudioOnMouseEnter:function(){if(d)try{L.onNewMouseEnter.apply(this,arguments)}catch(e){Y.error("wrapNewAudioOnMouseEnter error",e)}},enable:function(){if(this.observer)return this.observer.start();var e=this;this.observer=s.mutationWatcher.run({callback:function(t){var n,i,r,a;for(r=0;r<2;r++)for(n=t[r],i=0;a=n.added[i];i++)a.sfSkip>0||(a.sfSkip="1",E.a.on(a,"mouseenter",e.wrapAudioOnMouseOver),E.a.on(a,"mouseleave",e.wrapAudioOnMouseOut));if(!o.default.isSafari)for(n=t[2],i=0;a=n.added[i];i++)a.dataset.sfSkip>0||(a.dataset.sfSkip="1",E.a.one(a,"mouseenter",e.wrapOnPhotoOver));for(n=t[3],i=0;a=n.added[i];i++)if(!(a.dataset.sfSkip>0)){a.dataset.sfSkip="1";var s=M()(a,".vp_video");if(!s)return;var l=I.getPlayerOptions(a);l&&I.appendLinkUnderVideo(s.parentNode,l)}for(n=t[4],i=0;a=n.added[i];i++)if(!(a.dataset.sfSkip>0)){if(a.dataset.sfSkip="1",(a=u()(a,"vid-card_cnt")).dataset.sfSkip)return;E.a.one(a,"mouseenter",e.wrapVideoFeedOnImgOver)}for(r=5;r<8;r++)for(n=t[r],i=0;a=n.added[i];i++)a.dataset.sfSkip>0||(a.dataset.sfSkip="1",E.a.one(a,"mouseenter",e.wrapVideoFeedOnImgOver));for(n=t[8],i=0;a=n.removed[i];i++)E.a.onRemoveListener(a);for(n=t[9],i=0;a=n.added[i];i++)a.addEventListener("click",P.onBtnClick);for(n=t[10],i=0;a=n.added[i];i++)a.dataset.sfSkip>0||(a.dataset.sfSkip="1",E.a.one(a,"mouseenter",e.wrapNewAudioOnMouseEnter))},queries:[{css:".track.js-track",is:"added"},{css:".mus-tr_i",is:"added"},{css:"#photo-layer_photo",is:"added"},{css:".vp_video .vid-card_cnt",is:"added"},{css:".vid-card_cnt .vid-card_cnt_w img",is:"added"},{css:".d_comment_text_w img",is:"added"},{css:".video-card .video-card_img-w img",is:"added"},{css:".vid-card_cnt img",is:"added"},{css:"."+E.a.onRemoveClassName,is:"removed"},{css:".sf-video-feed-bind-on-insert",is:"added"},{css:["wm-track","wm-track2"],is:"added"}]})}}},y=function(){h.clearCache(),S(),L.getJsSessionId(),I.catchPopup()},S=function(){for(var e=document.querySelectorAll(".savefrom_ok_download"),t=e.length-1;t>=0;t--)e[t].parentNode.removeChild(e[t])},L={downloadIdPrefix:"savefrom_ok_audio_download_",infoIdPrefix:"savefrom_ok_audio_info_",lastRow:null,lastRowCandidate:null,timer:0,jsessionId:"",clientHashV:"",scriptNode:null,cache:{},ajaxTimer:{},trackIdPromise:{},showRowElements:function(e,t,n){if(e){var o=e.querySelectorAll("div.savefrom_ok_download");t&&!o.length&&L.showRowLinks(e),o=e.querySelectorAll("div.savefrom_ok_download");for(var i=0;i<o.length;i++)o[i].style.display=t?"":"none"}},getNodeTrackId:function(e){var t=e.getAttribute("data-query");if(t)try{if((t=JSON.parse(t))&&t.trackId)return t.trackId}catch(e){return null}var n=e.querySelector("span.track_play[onclick]");if(n){var o=/(?:playMediatopic|playFeedTrack)\(['"]?(\d+)['"]?/.exec(n.getAttribute("onclick"));return o&&o[1]}return e.dataset.trackId?e.dataset.trackId:null},getTrackId:function(e){var t=L.getNodeTrackId(e);if(t)return(o={})[t]=e,o;var n=e.id;if(n){var o,i=n.indexOf("#");if(-1!==i&&(n=n.substr(i+1)),(t=s.getMatchFirst(n,/^\w+_(\d+)$/i))||-1!==n.indexOf("GROUP_FEED")&&(t=n.substr(n.lastIndexOf("_")+1)),t)return(o={})[t]=e,o}return null},showRowLinks:function(e){var t=L.getTrackId(e);for(var n in t)if(L.handleRow(n,t[n]))return!0;return!1},disable:function(){L.lastRowCandidate=null,L.lastRow=null;for(var e,t=document.querySelectorAll(".savefrom_ok_download"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},getJsSessionId:function(){return new A.a(function(e,t){s.bridge({func:'function(a){window.require(["OK/music/sid"],function(b){b.get().then(function(b){a([null,b])},function(b){a([b.message])})})}',cb:function(n){if(n){var o=n[0],i=n[1];o?t(new Error("Get sid error")):e(i)}else t(new Error("Get sid timeout"))}})}).catch(function(e){return new A.a(function(e,t){var n=location.protocol+"//"+location.host+"/web-api/music/conf";O()({type:"POST",url:n,data:"_",json:!0,localXHR:!0},function(n,o,i){!n&&i&&i.sid?e(i.sid):t(new Error("Get jsSessionId error!"))})})}).then(function(e){L.jsessionId=e},function(e){Y.debug("getJsSessionId error",e)})},getLink:function(e){e&&L.jsessionId&&(L.ajaxTimer[e]=window.setTimeout(function(){delete L.ajaxTimer[e],L.deleteLink(e)},3e4),o.default.sendMessage({action:"getOdnoklassnikiAudioLinks",url:location.href,trackId:e,jsessionId:L.jsessionId},function(e){L.setLink(e.trackId,e.data)}))},onMouseOver:function(){if(L.jsessionId){var e=this;e&&(L.lastRowCandidate=e,clearTimeout(L.timer),L.lastRow!==e&&(L.timer=window.setTimeout(function(){L.showRowElements(L.lastRow,!1),L.lastRow=e,L.lastRowCandidate=null,L.showRowElements(L.lastRow,!0)},250)))}},onMouseOut:function(){var e=this;(L.lastRow&&L.lastRow.contains(e)||L.lastRowCandidate&&L.lastRowCandidate.contains(e))&&(clearTimeout(L.timer),L.timer=window.setTimeout(function(){L.showRowElements(L.lastRow,!1),L.lastRow=null,L.lastRowCandidate=null},1e3)),e=null},onNewMouseEnter:function(e){var t=this;if(!this.querySelector(".savefrom_ok_download")){var n=L.getNodePath(this);if(document.querySelector(n)!==this)throw new Error("Node path is incorrect");return L.getNodeTack(n).then(function(e){"WM-TRACK2"===t.tagName?L.insertButtonOnOver(t,e):L.insertButton(t,e)})}},insertButtonOnOver:function(e,t){var n=this,o=new(s.mutationWatcher.getMutationObserver())(function(o){if(!d)return i();for(var r=null,a=null,s=0;r=o.shift();)if("childList"===r.type&&r.target===e)for(s=0,r.addedNodes;a=r.addedNodes[s];s++)if("SLOT"===a.tagName&&"controls"===a.name){e.querySelector(".savefrom_ok_download")||(n.insertButton(e,t),i());break}}),i=function(){o.disconnect()};o.observe(e,{childList:!0})},insertButton:function(e,t){var n=["sf-audio","savefrom_ok_download"],o=null;if("WM-TRACK"===e.tagName?o=e.querySelector(".wm-track_controls"):"WM-TRACK2"===e.tagName&&(n.push("sf-audio-2"),o=e.querySelector('slot[name="controls"]')),o){var i=D.a.create("a",{href:"#",data:{state:"idle",trackId:t.id},class:n,style:{display:"none",position:"relative",width:"16px",height:"16px",verticalAlign:"middle"},on:[["mouseenter",L.handlePreload],["click",L.handleClickNewButton],["mouseenter",function(){B.tooltip.textContent=L.getNewButtonTooltipLabel(this),B.show(this)}],["mouseleave",function(){B.hide()}],["sf-state-change",function(){B.tooltip.textContent=L.getNewButtonTooltipLabel(this),B.updatePos(this)}]]});o.appendChild(i)}else Y.warn("Container is not found")},getNewButtonTooltipLabel:function(e){switch(e.dataset.state){case"pending":return"...";case"done":var t=JSON.parse(e.dataset.data),n=t.duration,i=t.size,r="";if(i){var a=s.sizeHuman(i,2);r=n?"".concat(a," ~ ").concat(Math.floor(i/n/125)+" "+o.default.i18n.getMessage("kbps")):"".concat(a)}else r=o.default.i18n.getMessage("getFileSizeFailTitle");return r;case"error":return o.default.i18n.getMessage("noLinksFound");default:return""}},handlePreload:function(e){var t=this;if("idle"===this.dataset.state){this.dataset.state="pending",this.dispatchEvent(new CustomEvent("sf-state-change"));var n=this.dataset.trackId;return L.getTrackUrlById(n).then(function(e){if(!e.track)throw new Error("Track is not found");if(!e.play)throw new Error("Track url is not found");return L.getClientHash(e.play).then(function(t){return{result:e,clientHash:t}})}).then(function(n){var o=n.result,i=n.clientHash,r=o.track,a="".concat(r.ensemble," – ").concat(r.name),s=o.play+"&"+W.stringify({clientHash:i}),l=r.duration,u=r.size||-1;t.href=s,t.download="".concat(R.a.modify(a),".mp3"),t.dataset.data=g()({duration:l,size:u}),t.dataset.state="done",t.dispatchEvent(new CustomEvent("sf-state-change")),t.dataset.downloadOnReady>0&&L.handleClickNewButton.call(t,e)},function(e){Y.error("handlePreload error",e),t.dataset.state="error",t.dispatchEvent(new CustomEvent("sf-state-change"))})}},handleClickNewButton:function(e){e.stopPropagation(),"done"!==this.dataset.state?(e.preventDefault(),"1"!==this.dataset.downloadOnReady&&(this.dataset.downloadOnReady="1")):s.downloadOnClick(e)},getTrackUrlById:function(e){var t,n=this;return this.trackIdPromise[e]?this.trackIdPromise[e]:this.trackIdPromise[e]=(t=V()({url:"https://wmf.ok.ru/play;jsessionid=".concat(L.jsessionId,"?")+W.stringify({tid:e}),json:!0,localXHR:!0}).then(function(e){return e.body})).then.apply(t,c(G()(function(){delete n.trackIdPromise[e]})))},getNodeTack:function(e){return new A.a(function(t,n){s.bridge({args:[e],func:'function(a,b){try{var d=document.querySelector(a).model._data.get("track");b({result:d})}catch(a){b({error:{message:a.message,stack:a.stack}})}}',cb:function(e){e.error?n(i()(new Error,e.error)):t(e.result)}})})},getNodePath:function(e){for(var t=[];e.parentNode&&1===e.parentNode.nodeType;){var n="",o=[].slice.call(e.parentNode.childNodes);o.length>1&&(n=":nth-child(".concat(o.indexOf(e)+1,")")),t.unshift("".concat(e.tagName).concat(n)),e=e.parentNode}return t.join(">")},handleRow:function(e,t){if(!e||!t)return!1;var n=t;n.style.position="relative";var i=t.querySelector(".m_c_duration, .m_portal_duration"),r=document.createElement("div");r.className="savefrom_ok_download";var a=40,l=document.getElementById("mmpcw");l&&l.contains(t)&&(a=65),s.setStyle(r,{color:"#fff",background:"#46aa19",border:"1px solid #337d12",borderRadius:"3px",padding:"1px 5px",position:"absolute",right:a+"px",top:"50%",lineHeight:"15px",fontSize:"12px",opacity:0,zIndex:9999,cursor:"pointer"}),r.addEventListener("click",L.onBoxClick,!1),r.addEventListener("mousedown",function(e){e.stopPropagation()},!1);var u=L.getTitle(e,t),d=function(e,t,n){null==n&&(n=!0);var o=document.createElement("a");return o.href="#",o.className="savefrom_ok_download",o.textContent="...",n&&o.setAttribute("target","_blank"),o}();d.id=L.downloadIdPrefix+e,d.title=o.default.i18n.getMessage("downloadTitle"),i&&d.setAttribute("data-savefrom-helper-duration",L.secondsFromDurationNode(i)),u&&(u+=".mp3",d.setAttribute("download",R.a.modify(u))),s.setStyle(d,{color:"#fff",fontWeight:"normal"}),d.addEventListener("click",L.onDownloadLinkClick,!1),r.appendChild(d),n.appendChild(r),L.cache[e]?L.setLinkFromCache(e,d):L.getLink(e),r.style.marginTop="-"+r.offsetHeight/2+"px",r.style.opacity="1";var c=document.createElement("span");return c.textContent=String.fromCharCode(215),c.title=o.default.i18n.getMessage("close"),s.setStyle(c,{color:"#fff",fontFamily:"Tahoma,Helvetica,sans-serif",fontSize:"15px",marginLeft:"7px",opacity:".7",cursor:"pointer"}),c.addEventListener("click",L.onCloseBtnClick,!1),r.appendChild(c),!0},onBoxClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.querySelector("a.savefrom_ok_download");return t?(E.a.trigger(t,"click",{cancelable:!0}),!1):(this.style.display="none",!1)},onDownloadLinkClick:function(e){return 2!=e.button&&(e.stopPropagation(),"#"==this.href?(e.preventDefault(),!1):(s.downloadOnClick(e),!1))},onCloseBtnClick:function(e){if(2==e.button)return!0;e.preventDefault(),e.stopPropagation();var t=M()(this,".savefrom_ok_download");return t&&(t.style.display="none"),!1},deleteLink:function(e,t){if(!t&&e&&(t=document.getElementById(L.downloadIdPrefix+e)),t){var n=t.parentNode;n&&n.parentNode.removeChild(n)}},getHash:function(e,t){t||(t=[4,3,5,6,1,2,8,7,2,9,3,5,7,1,4,8,8,3,4,3,1,7,3,5,9,8,1,4,3,7,2,8]);for(var n=[],o=0;o<e.length;o++)n.push(k()("0x0"+e.charAt(o)));var i=[];(e=(e=n).slice(0))[32]=e[31];var r=0;for(o=32;o-- >0;)r+=e[o];for(var a=0;a<32;a++)i[a]=Math.abs(r-e[a+1]*e[a]*t[a]);return i.join("")},setLinkFromCache:function(e,t){if(!L.cache[e])return!1;if(t||(t=document.getElementById(L.downloadIdPrefix+e)),t){t.href=L.cache[e].url,t.textContent="",L.cache[e].downloadAttr&&t.setAttribute("download",L.cache[e].downloadAttr);var n=D.a.create(s.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",opacity:"0.9"}});t.appendChild(n);var o=document.createTextNode(L.cache[e].info);return t.nextSibling?t.parentNode.insertBefore(o,t.nextSibling):t.parentNode.appendChild(o),!0}},getClientHash:function(e){var t=function(){return(L.clientHashV?A.a.resolve(L.clientHashV):new A.a(function(e,t){s.bridge({func:'function(a){try{a([null,window.require.s.contexts._.config.config["OK/music/garbage"].v])}catch(b){a([b.message])}}',cb:function(n){if(n){var o=n[0],i=n[1];o?t(new Error("getClientHash error")):e(i)}else t(new Error("getClientHash timeout"))}})}).then(function(e){return L.clientHashV=e})).then(function(t){var o=n(44);return function(e,t,n){var o,i,r,a=t(/md5=(\w*)/g.exec(e)[1]+"secret"),s=a.length,l=0,u="";for(o=0;o<s;o+=1)l+=k()(a[o],16);for(o=0;o<s;o+=1)i=k()(a[o],16),r=o===s-1?i:k()(a[o+1],16),u+=Math.abs(l-i*r*n[o]);return u}(e,function(e){return o(e).toString()},t)})};return(L.getClientHash.getViaApiError?A.a.reject(L.getClientHash.getViaApiError):new A.a(function(t,n){s.bridge({args:[e],func:'function(a,b){window.require(["OK/music/garbage"],function(c){try{b([null,/clientHash=([^&]+)/.exec(c.calc(a))[1]])}catch(a){b([a.message])}})}',cb:function(e){if(e){var o=e[0],i=e[1];o?n(new Error("getClientHash error")):t(i)}else n(new Error("getClientHash timeout"))}})}).catch(function(e){throw L.getClientHash.getViaApiError=e,e})).catch(function(e){return Y.warn("getClientHash via api error",e),t()})},setLink:function(e,t,n){if(e){clearTimeout(L.ajaxTimer[e]);var i=document.getElementById(L.downloadIdPrefix+e);if(i&&!L.setLinkFromCache(e,i)){if(!t||!t.play)return L.deleteLink(e,i),void(i.textContent="?");if(void 0===n)return this.getClientHash(t.play).then(function(n){L.setLink(e,t,n)},function(t){L.deleteLink(e,i)});var r=t.track&&t.track.size||-1;L.cache[e]={},L.cache[e].url=t.play+(n?"&clientHash="+n:"");var a=" ("+s.sizeHuman(r,2),l=i.getAttribute("data-savefrom-helper-duration");if(t.track&&(t.track.duration&&(l=t.track.duration),t.track.ensemble&&t.track.name)){var u=t.track.ensemble+" - "+t.track.name;L.cache[e].title=u,L.cache[e].downloadAttr=R.a.modify(u+".mp3")}if(r&&r>0&&l){if(l=k()(l),isNaN(l))return void delete L.cache[e];a+=" ~ "+Math.floor(r/l/125)+" "+o.default.i18n.getMessage("kbps")}a+=")",L.cache[e].info=a,L.setLinkFromCache(e,i)}}},getTitle:function(e,t){if(!e||!t)return"";var n="",o=t.querySelector(".m_c_artist, .mus-tr_artist, .m_portal_c_artist"),i=t.querySelector(".m_track_source, .mus-tr_song, .m_portla_track_name");return o&&(o=o.textContent)&&(n+=o.trim()),i&&(i=i.textContent)&&(n&&(n+=" - "),n+=i.trim()),n?n.replace(/\<a\s+[^\>]+\>/gi,"").replace(/\<\/a\>/gi,""):""},secondsFromDurationNode:function(e){if(!e)return 0;var t=e.textContent;if(!t)return 0;var n=t.match(/^(?:\s*(\d+)\s*\:)?\s*(\d+)\s*\:\s*(\d+)/);return n&&n.length>3?(n[1]||(n[1]=0),3600*k()(n[1])+60*k()(n[2])+k()(n[3])):0},getPlaylistName:function(e){if(e!==document){var t=e.querySelector(".mus_h2_tx");return t&&R.a.modify(t.textContent)||void 0}},getNewPlaylistName:function(e){if(e!==document){var t=e.querySelector(".wm-list-description_header");return t&&R.a.modify(t.textContent)||void 0}},elIsHidden:function(e){return null===e.offsetParent},getLayer:function(){var e=document.querySelector("#mmpcw");if(e&&!e.classList.contains("__hidden")&&(e=e.querySelector('div.m_c_s[aria-hidden="false"]'))&&!L.elIsHidden(e))return e},getNewLayer:function(){var e=document.querySelector("#music_layer wm-collection-section");if(e||(e=document.querySelector("#music_layer")),!e||!L.elIsHidden(e))return e},getPopup:function(e,t,n){var i,r=s.playlist.getInfoPopupTemplate();D.a.create(r.textContainer,{append:[e?D.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}):void 0,i=D.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]});var a=s.popupDiv(r.body,"sf_progress_popup",void 0,void 0,n),l=function e(n){e.state!==n&&(e.state=n,r.buttonContainer.style.display="none",i.style.display="none",o.default.sendMessage({action:"getWarningIcon",type:t,color:"#77D1FA"},function(e){r.icon.style.backgroundImage="url("+e+")"}),"progress"===n&&(i.style.display="block"),"error"===n&&(o.default.sendMessage({action:"getWarningIcon",type:t,color:"#AAAAAA"},function(e){r.icon.style.backgroundImage="url("+e+")"}),i.style.display="block"))};return{onPrepare:function(e){l("progress"),i.textContent=e},onProgress:function(e,t){i.textContent=o.default.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+o.default.i18n.getMessage("vkFoundOf")+" "+t},onReady:function(){E.a.trigger(a,"kill")},onError:function(e){l("error"),i.textContent=e}}},getAudioLinksViaAPI:function(e,t,n){var i=!1,r=[],s=e.length;return function l(){if(!i){var u=e.splice(0,10);if(0===u.length)return n(r);o.default.sendMessage({action:"getOkAudioListLinks",trackIdArr:u,jsessionId:L.jsessionId},function(n){var o=A.a.resolve();a()(n)&&n.forEach(function(e){o=o.then(function(){if("string"==typeof e.play&&"object"==typeof e.track){var t,n=e.play;return e.track.name&&(t=e.track.name),e.track.ensemble&&(t=e.track.ensemble+(t?" - "+t:"")),t||(t="noname"),L.getClientHash(n).then(function(o){n+="&clientHash="+o,r.push({url:n,duration:e.track.duration||0,title:t,filename:R.a.modify(t)+".mp3"})})}}).catch(function(t){Y.debug("process item error",e,t)})}),o.then(function(){t(s-e.length,s),l()})})}}(),{abort:function(){i=!0}}},getAudioListLinksPopup:function(e,t,n){var i,r=this.getPopup(t,"audio",function(){i&&i.abort()});r.onPrepare(o.default.i18n.getMessage("download")+" ..."),i=this.getAudioLinksViaAPI(e,r.onProgress,function(e){0!==e.length?(r.onReady(),n(e)):r.onError(o.default.i18n.getMessage("vkMp3LinksNotFound"))})},getAudioLinksIds:function(e){return A.a.resolve().then(function(){for(var t,n=e.querySelectorAll([".m_portal_track",".m_c_tr",".mus-tr_i"]),o=[],i=0;t=n[i];i++){var r=L.getTrackId(t);for(var a in r)o.push(a)}return o})},getNewAudioLinksIds:function(e){return new A.a(function(t,n){var o=L.getNodePath(e);if(o&&document.querySelector(o)!==e)throw new Error("Node path is incorrect");s.bridge({args:[o],func:'function(a,b){try{var c=""===a?document:document.querySelector(a),d=[].slice.call(c.querySelectorAll(["wm-track","wm-track2"])).reduce(function(a,b){try{var c=b.model._data.get("track");c&&a.push(c.id)}catch(a){// console.error(\'getNewAudioLinksIds error\', err);\n}return a},[]);b({result:d})}catch(a){b({error:{message:a.message,stack:a.stack}})}}',cb:function(e){e.error?n(i()(new Error,e.error)):t(e.result)}})})},getAudioLinks:function(e,t,n){var o=this;return A.a.all([this.getAudioLinksIds(e),this.getNewAudioLinksIds(e)]).then(function(e){var t;return(t=[]).concat.apply(t,c(e)).filter(function(e,t,n){return n.indexOf(e)===t})}).then(function(e){o.getAudioListLinksPopup(e,t,n)})},downloadMP3Files:function(){var e=L.getLayer()||L.getNewLayer()||document,t=L.getPlaylistName(e)||L.getNewPlaylistName(e);L.getAudioLinks(e,t,function(e){s.downloadList.showBeforeDownloadPopup(e,{type:"audio",folderName:t})})},showListOfAudioFiles:function(e){var t=L.getLayer()||L.getNewLayer()||document,n=L.getPlaylistName(t)||L.getNewPlaylistName(t);L.getAudioLinks(t,n,function(t){t.length?e?s.playlist.popupPlaylist(t,n,!0):s.playlist.popupFilelist(t):alert(o.default.i18n.getMessage("vkMp3LinksNotFound"))})}},I={requestMobileToken:function(e,t){var n=null;e.links.some(function(e){var t=e.url.match(/\/\/([^\/]+)/);if(t=t&&t[1])return n=t,!0}),s.bridge({timeout:3e3,args:[n],func:'function(a,b){var c=document.cookie,d=c&&c.match(/vdsig=([^;]+);/);if(d=d&&d[1],d)return b({vtkn:d});a=a||"vd4.mycdn.me";var e=new XMLHttpRequest;e.open("POST",location.protocol+"//"+a+"/usr_login",!0),e.withCredentials=!0,e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.onreadystatechange=function(){if(4===e.readyState&&200===e.status){var a=null;try{a=JSON.parse(e.responseText)}catch(a){}return b(a)}},e.send()}',cb:function(n){if(!n||!n.vtkn)return t();n.ttl&&(n.expire=b()()+1e3*n.ttl,h.videoToken=n),e.vtkn=n.vtkn,t(e)}})},getMobileToken:function(e,t){if(e.vtkn)return t(e);var n=h.videoToken;return n&&n.expire>b()()?(e.vtkn=n.vtkn,t(e)):I.requestMobileToken(e,t)},wrapMobileLinks:function(e,t){I.getMobileToken(e,function(e){if(!e||!e.vtkn)return t();e.action="getOkViaMobileWrapped",e.links.forEach(function(t){var n=/\?/.test(t.url)?"&":"?";t.url+=n+"vdsig="+e.vtkn}),t(e)})},prepareResponse:function(e,t){var n=function(){t(o.default.i18n.getMessage("noLinksFound"))};if(!e||!e.links)return n();if(!l.showUmmyItem&&"getRutubeLinks"===e.action)return n();if("getOkViaMobile"===e.action)return I.wrapMobileLinks(e,function(e){if(!e)return n();I.prepareResponse(e,t)});var i=null;"getYoutubeLinks"===e.action?i="youtube":"getVimeoLinks"===e.action?i="vimeo":"getDailymotionLinks"===e.action?i="dailymotion":"getRutubeLinks"===e.action&&(i="rutube");var r;return r=i?s.popupMenu.prepareLinks[i](e.links,e.title):P.prepareLinks(e.links,e.title),t(r)},matchOpenGraph:function(e){if(e&&e.movie&&e.movie.contentId){var t=e.movie.contentId;if(-1!==t.indexOf("rutube.")&&l.showUmmyItem)return{action:"getRutubeLinks",links:[t]};if(-1!==t.indexOf("pladform")){var n=f()(t);return{action:"getPladformVideo",extVideoId:{playerId:n.pl,videoId:n.videoid}}}var o=s.embedDownloader.checkUrl(t);if(o)return o;var i=e.movie.poster;if("string"==typeof i){var r=(f()(i).url||i).match(/ytimg\.com\/vi\/([^\/]+)\//);if(r=r&&r[1])return{action:"getYoutubeLinks",extVideoId:r}}}},switchMetadataProvider:function(e){if(e&&e.provider&&e.movie)switch(e.provider){case"USER_YOUTUBE":if(e.movie.contentId)return{request:{action:"getYoutubeLinks",extVideoId:e.movie.contentId}};break;case"OPEN_GRAPH":var t=this.matchOpenGraph(e);if(t)return{request:t};break;case"LIVE_TV_APP":case"LIVE_TV_ODKL":case"UPLOADED_ODKL":case"UPLOADED":case"PARTNER":case"YKL":if(e.videos&&e.movie.title)return{request:{action:"wrapMobileLinks",title:e.movie.title,links:e.videos}}}},getPlayerMetadata:function(e,t,n,o){var i={cmd:"videoPlayerMetadata",mid:e,rnd:b()()};o&&(i.mtId=t),O()({method:"POST",url:location.protocol+"//"+location.host+"/dk?"+W.stringify(i),json:!0,localXHR:!0},function(i,r,a){return i?!o&&t?void I.getPlayerMetadata(e,t,n,1):n():n(a)})},getEmbed:function(e,t){var n=f()(e);if(!n.id||!n.sig)return t();var i="http://cdn-ok.com/video/get/?"+W.stringify({id:n.id,format:1,sig:n.sig,sig2:"oldRotator"});o.default.sendMessage({action:"getData",url:i},function(e){return e&&v()(e,[/"sourceType":/,/"sourceId":/]).some(function(e){if("youtube"===e.sourceType&&e.sourceId)return t({request:{action:"getYoutubeLinks",extVideoId:e.sourceId}}),!0})?void 0:t()})},readMetadata:function(e,t,n){if(e.movie&&/cdn-ok\.com\/embed/.test(e.movie.contentId))return this.getEmbed(e.movie.contentId,function(e){if(!e||!e.request)return t();o.default.sendMessage(e.request,function(e){I.prepareResponse(e,t)})});if(!n&&e.movie&&e.movie.movieId){var i=e.movie.link&&f()(e.movie.link,{sep:"&amp;"})["st.vpl.sid"];return this.getPlayerMetadata(e.movie.movieId,i,function(n){I.readMetadata(n||e,t,1)})}var r=this.switchMetadataProvider(e);return r?r.links?t(r.links):void(r.request?"getRutubeLinks"===r.request.action?I.prepareResponse(r.request,t):"wrapMobileLinks"===r.request.action?I.wrapMobileLinks(r.request,function(e){I.prepareResponse(e,function(e){t(e,1)})}):o.default.sendMessage(r.request,function(e){I.prepareResponse(e,t)}):t()):t()},loadLinks:function(e,t){var n=h.linkCache,i=g()(e),r=n[i];if(r)return t.update(r);var s=function(e,r){var s=function(){t.update(o.default.i18n.getMessage("noLinksFound"))};if(!e)return s();I.readMetadata(e,function(e,o){if(!e)return s();a()(e)&&!e.length&&(o=1),o||(n[i]=e),t.update(e)},r)};e.metadata?s(e.metadata):e.request?"getOkMetadata"===e.request.action?o.default.sendMessage(e.request,s):"getPlayerMetadata"===e.request.action?this.getPlayerMetadata(e.request.extVideoId,e.request.sid,function(e){s(e,1)}):"getRutubeLinks"===e.request.action?I.prepareResponse(e.request,function(e){t.update(e)}):o.default.sendMessage(e.request,function(e){I.prepareResponse(e,function(e){t.update(e)})}):t.update(o.default.i18n.getMessage("noLinksFound"))},appendLinkUnderVideo:function(e,t){var n=e.querySelector(".vp-layer-info_cnt");if(n){var i=n.querySelector(".savefrom_ok_download"),r=D.a.create("span",{className:"savefrom_ok_download",style:{marginLeft:"12px"},on:[["click",function(e){e.stopPropagation()}],["mousedown",function(e){e.stopPropagation()}],["keydown",function(e){e.stopPropagation()}]],append:[D.a.create("a",{href:"#",text:o.default.i18n.getMessage("download"),on:["click",function(n){if(n.preventDefault(),E.a.onRemoveEvent(r,h.hideMenu),h.contextMenu&&h.contextMenu.isShow){if(h.contextMenu.button===this)return void h.hideMenu();h.hideMenu()}var i=h.contextMenu=s.popupMenu.quickInsert(this,o.default.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:e});I.loadLinks(t,i)}]})]});i&&i.parentNode?(i.parentNode.replaceChild(r,i),i=null):n.appendChild(r)}},getPlayerOptions:function(e){var t=M()(e,"[data-player-element-id][data-options]"),n=t&&t.dataset.options;if(n){try{n=JSON.parse(n)}catch(e){}var o=n.flashvars;if(o){if(o.metadata){var i=null;try{i=JSON.parse(o.metadata)}catch(e){}if(i)return{metadata:i}}if(o.metadataUrl)return{request:{action:"getOkMetadata",url:decodeURIComponent(o.metadataUrl)}};var r=n.url;if(r){var a=s.embedDownloader.checkUrl(r);if(a)return{request:a};if(-1!==r.indexOf("rutube."))return{request:{action:"getRutubeLinks",links:[r]}}}}}},catchPopup:function(){var e=null;this.lastWaitEl&&this.lastWaitEl.abort(),this.lastWaitEl=this.waitEl(function(){if(e=document.querySelector(".vp_video .vid-card_cnt"))return e},function(){var t=M()(e,".vp_video");if(t){var n=I.getPlayerOptions(e);n&&I.appendLinkUnderVideo(t.parentNode,n)}})},rmBtn:function(){for(var e,t=document.querySelectorAll(".savefrom_ok_download"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},lastWaitEl:null,waitEl:function(e,t,n){var o,r=i()({abort:function(){clearInterval(r.timeout),r.isAborted=!0}},{delay:500,repeat:12,isAborted:!1,timeout:null},n);return(o=e())?(t(o),r):(function n(){r.repeat--,r.timeout=setTimeout(function(){if(!r.isAborted)return(o=e())?t(o):void(!r.isAborted&&r.repeat&&n())},r.delay)}(),r)}},P={btnClassName:"sf-feed-dl-btn",style:void 0,thumbClassName:"vid-card_img",prepareLinks:function(e,t){if(!e||!e.length)return o.default.i18n.getMessage("noLinksFound");if("string"==typeof e)return e;t=t||"";for(var n,i,r,a,l=[],u=0,d=e.length;u<d;u++){var c=e[u];if("object"==typeof c&&c.url){a=c.url;var f=c.ext;f||(f="MP4",-1!==c.url.indexOf(".mp4")&&(f="MP4"),-1!==a.indexOf(".flv")&&(f="FLV"),-1!==c.url.indexOf(".mov")&&(f="MOV"),-1!==c.url.indexOf(".mpg")&&(f="MPG")),r=(f=f.toLowerCase()).toUpperCase(),i=c.subname||c.quality||c.name||f}else{f="MP4",-1!==(a=c).indexOf(".mp4")&&(f="MP4"),-1!==a.indexOf(".flv")&&(f="FLV"),-1!==a.indexOf(".mov")&&(f="MOV"),-1!==a.indexOf(".mpg")&&(f="MPG"),r=(f=f.toLowerCase()).toUpperCase(),i=f;var p=s.getMatchFirst(e[u],/\.(\d+)\.mp4/i);p&&(i=p)}var m=["mobile","lowest","low","sd","hd","full","quad","ultra"].indexOf(i);-1!==m&&(i=[144,240,360,480,720,1080,1440,"4K"][m]),n={href:a,title:c.title?c.title:t,ext:f,format:r,quality:i,forceDownload:!0},l.push(n)}return l},getPosterData:function(e){var t=M()(e,"[hrefattrs]"),n=t&&t.getAttribute("hrefattrs");if(n){var o=f()(n,{params:!0}),i=o["st.vpl.sid"],r=o["st.vpl.id"];if(!r){var a=M()(e,"[data-id]");if((r=a&&a.dataset.id)&&"c"===r[0])return}if(r&&"OK_"===r.substr(0,3)&&(r=s.getMatchFirst(r,/OK_\d+_(\d+)/)),r)return{request:{sid:i,action:"getPlayerMetadata",extVideoId:r}}}},onBtnClick:function(e){e.preventDefault(),e.stopPropagation();var t=JSON.parse(this.dataset.sfContext);if(E.a.onRemoveEvent(this,h.hideMenu),h.contextMenu&&h.contextMenu.isShow){if(h.contextMenu.button===this)return void h.hideMenu();h.hideMenu()}var n=document.querySelector("#mtLayer.__active #mtLayerMain > div");n||(n=document.getElementById("vv_content")),n||C()(this,".js-messages-list "+this.tagName)&&(n=u()(this,"js-messages-list"))&&!n.offsetParent&&(n=null),!n&&C()(this,"#mainContent "+this.tagName)&&(n=M()(this,"#mainContent"));var i=h.contextMenu=s.popupMenu.quickInsert(this,o.default.i18n.getMessage("download")+" ...","sf-popupMenu",{parent:n||void 0});I.loadLinks(t,i)},onImgOver:function(e){var t=C()(this,".mdialog_chat_window .d_comment_text_w "+this.tagName),n=null;if(t?n=u()(this,"d_comment_text_w"):C()(this,".video-card > .video-card_img-w "+this.tagName)?n=u()(this,"video-card_img-w"):this.classList.contains("vid-card_cnt")?n=this:C()(this,".vid-card_cnt "+this.tagName)&&(n=u()(this,"vid-card_cnt")),n&&!n.getElementsByClassName(P.btnClassName).length&&!n.querySelector(".vid-card_live.__active")){var r=C()(this,".vid-card_img__link "+this.tagName),a=I.getPlayerOptions(this);if(a||(a=P.getPosterData(this)),a){a.isChat=t;var l={};t&&i()(l,{left:"15px",top:"15px"}),r&&i()(l,{backgroundColor:"#454648",borderColor:"rgb(53, 53, 53)"});var d=D.a.create("i",{class:[P.btnClassName,"sf-video-feed-bind-on-insert"],style:l,data:{sfContext:g()(a)},title:o.default.i18n.getMessage("download")});d.appendChild(D.a.create(s.svg.getSvg("download"),{style:{width:"12px",height:"12px",margin:"4px"}})),n.appendChild(d)}}},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=D.a.create("style",{text:w()({"div > .sf-feed-dl-btn":{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",top:0,left:0,zIndex:1,cursor:"pointer",backgroundColor:"#F8F8F8"},"div > .sf-feed-dl-btn svg path":{fill:"#eb722e"},"div > .sf-feed-dl-btn:hover svg path":{fill:"#00B75A"},"div > .sf-feed-dl-btn:active":{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"},"div:hover > .sf-feed-dl-btn":{display:"block"},".sf-audio.savefrom_ok_download":{display:"none",backgroundImage:"url("+s.svg.getSrc("download","#ee8208")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px",opacity:.5,marginLeft:"11px"},".sf-audio.sf-audio-2.savefrom_ok_download":{margin:"0 6px"},".sf-audio.savefrom_ok_download:hover":{opacity:1},"wm-track:hover .sf-audio":{display:"flex !important"},"wm-track2:hover .sf-audio":{display:"flex !important"}})}),document.head.appendChild(this.style))},disable:function(){this.style&&this.style.parentNode&&this.style.parentNode.removeChild(this.style)},rmBtn:function(){for(var e,t=document.querySelectorAll(".sf-feed-dl-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e);var o=m()("sfSkip2"),i=document.querySelectorAll("["+o+"]");for(n=0;e=i[n];n++)e.removeAttribute(o)}},N={style:null,rmCurrentPhotoBtn:function(e){for(var t,n=void 0,o=document.querySelectorAll(".sf-dl-current-photo-btn"),i=0;t=o[i];i++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},addDlCurrentPhotoBtn:function(e){if(!this.rmCurrentPhotoBtn(e)){var t=h;e.appendChild(D.a.create("a",{class:"sf-dl-current-photo-btn",href:"#",title:o.default.i18n.getMessage("download"),on:["click",function(n){if(n.stopPropagation(),n.preventDefault(),t.contextMenu&&t.contextMenu.isShow&&t.contextMenu.button===this){if(t.contextMenu.button===this)return void t.hideMenu();t.hideMenu()}var i=function e(t){18!==t.keyCode&&17!==t.keyCode&&(r.hide(),document.removeEventListener("keydown",e))},r=t.contextMenu=s.popupMenu.quickInsert(this,o.default.i18n.getMessage("download")+" ...","photoDlMenu",{parent:e,onShow:function(){document.addEventListener("keydown",i)},onHide:function(){document.removeEventListener("keydown",i)}}),a=[],l=e.querySelector("img.photo-layer_img");if(l){var u=l.dataset.fsSrc||l.dataset.nfsSrc||l.src;u&&a.push({href:u,title:"photo_"+k()(b()()/1e3),quality:o.default.i18n.getMessage("download"),format:" ",ext:"jpg",forceDownload:!0,isBlank:!0,func:function(){r.hide()}})}if(l||(l=e.querySelector("div.gif[data-gifsrc]")),l){var d={webmsrc:"webm",mp4src:"mp4",gifsrc:"gif"};x()(d).forEach(function(e){var t=l.dataset[e];if(t){var n=d[e];a.push({href:t,title:"gif_"+k()(b()()/1e3),quality:o.default.i18n.getMessage("download"),format:n.toUpperCase(),ext:n,forceDownload:!0,isBlank:!0,func:function(){r.hide()}})}})}0!==a.length?r.update(a):r.update(o.default.i18n.getMessage("noLinksFound"))}],append:[D.a.create(s.svg.getSvg("download"),{style:{width:"12px",height:"12px",margin:"4px"}})]}))}},injectStyle:function(){N.style?N.style.parentNode||document.head.appendChild(N.style):(N.style=D.a.create("style",{text:w()({"div > .sf-dl-current-photo-btn":{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",backgroundColor:"#F8F8F8",top:"73px",left:"90px",zIndex:100,cursor:"pointer"},"div > .sf-dl-current-photo-btn svg path":{fill:"#eb722e"},"div > .sf-dl-current-photo-btn:hover svg path":{fill:"#00B75A"},"div > .sf-dl-current-photo-btn:active":{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"},"div:hover > .sf-dl-current-photo-btn":{display:"block"}})}),document.head.appendChild(N.style))},addCurrentDlBtn:function(e){if("1"!==e.dataset.sfSkip2){e.dataset.sfSkip2="1";var t=e.querySelector("img.photo-layer_img");t&&(t.dataset.fsSrc||t.dataset.nfsSrc||t.src||(t=null)),t||(t=e.querySelector("div.gif[data-gifsrc]")),t&&this.addDlCurrentPhotoBtn(e)}}},B=new(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(T.a)(this,e),this.options=t,this.tooltip=null,this.init()}return Object(F.a)(e,[{key:"init",value:function(){var e=this;this.tooltip=D.a.create("div",{class:"sf-tooltip",style:i()({position:"absolute",display:"none",zIndex:9999,opacity:0,transition:"opacity 0.2s",whiteSpace:"nowrap",fontSize:"12px",color:"#111",fontFamily:"arial, verdana, sans-serif, Lucida Sans"},this.options.style),on:["mouseenter",function(t){e.hide()}]}),document.body.appendChild(this.tooltip)}},{key:"updatePos",value:function(e){var t=s.getPosition(e),n=s.getSize(this.tooltip);this.tooltip.style.top=t.top+this.options.top-n.height+"px";var o=t.left+k()(this.options.width/2,10)-k()(n.width/2,10),i=document.body.clientWidth+document.body.scrollLeft;i<o+n.width&&(o=i-n.width),this.tooltip.style.left=o+"px"}},{key:"show",value:function(e){var t=this;this.tooltip.style.display="block",setTimeout(function(){t.updatePos(e),t.tooltip.style.opacity=1})}},{key:"hide",value:function(){this.tooltip.style.opacity=0,this.tooltip.style.display="none"}},{key:"destroy",value:function(){this.tooltip.parentNode&&(this.tooltip.parentNode.removeChild(this.tooltip),this.tooltip=null)}}]),e}())({top:-12,width:16,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)",fontSize:"12px",padding:"3px"}})})},44:function(e,t){e.exports=n(191)}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={8:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([45,0]),n()}({45:function(e,t,n){n.r(t);var o=n(0),r=n(10),a=n(5),s=n(12),l=n.n(s),u=n(14),d=n.n(u),c=n(6),f=n.n(c),p=n(4),m=n.n(p),h=n(16),v=n.n(h),b=n(2),y=n.n(b),w=n(1),x=n.n(w),S=n(3),C=n.n(S),L=n(11);n.n(L).a.isSingle()&&Object(a.b)("mailru",function(e,t){var n=Object(r.a)(t),a=t.preferences,s=a.moduleMailru?1:0,u=o.default.isChrome||o.default.isFirefox||o.default.isGM&&o.default.isTM;o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return c.changeState(t.state)}"updatePreferences"!==t.action?s&&("downloadMP3Files"===t.action&&(u?b.downloadMP3Files():b.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&b.showListOfAudioFiles(!0)):i()(a,t.preferences)}),s&&setTimeout(function(){c.run()});var c={contextMenu:null,run:function(){s=1,b.injectStyle(),n.mutationWatcher.isAvailable()&&this.mutationMode.enable()},changeState:function(e){s=e,b.rmBtn(),w.rmBtn(),this.mutationMode.stop(),this.hideMenu(),e&&this.run()},hideMenu:function(){c.contextMenu&&(c.contextMenu.hide(),c.contextMenu=null)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach(function(e){for(var t,n=f()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)})},wrapAudioOnMouseOver:function(){if(s&&!(this.dataset.sfSkip>0)){this.dataset.sfSkip="1";var e=JSON.parse(this.dataset.sfContext);b.onTrackOver(this,e.type)}},enable:function(){if(this.observer)return this.observer.start();this.observer=n.mutationWatcher.run({callback:function(e){var t,n,o,i,r,a,s,u;for(t=e[0],n=0;i=t.added[n];n++)(r={}).type=0,i.dataset.sfContext=g()(r),y.a.one(i,"mouseenter",c.mutationMode.wrapAudioOnMouseOver);for(t=e[1],n=0;i=t.added[n];n++)(r={}).type=1,i.dataset.sfContext=g()(r),y.a.one(i,"mouseenter",c.mutationMode.wrapAudioOnMouseOver);for(o=2;o<4;o++)for(t=e[o],n=0;i=t.added[n];n++)i.dataset.sfSkip>0||(i.dataset.sfSkip="1",(a=w.getVideoId(i))&&(s=l()(i,"b-video__left"))&&(u=s.querySelector(".b-video__info-time"))&&w.insertBtnInPopup(a,u));for(o=4;o<6;o++)for(t=e[o],n=0;i=t.added[n];n++)i.dataset.sfSkip>0||(i.dataset.sfSkip="1",(a=w.getVideoId(i))&&(s=l()(i,"sp-video__item-page"))&&(u=s.querySelector(".sp-video__item-page__info__additional"))&&w.insertBtnInPage(a,u,1));for(o=6;o<8;o++)for(t=e[o],n=0;i=t.added[n];n++)i.dataset.sfSkip>0||(i.dataset.sfSkip="1",u=(s=l()(i,"sp-video__item-page-new__video-content"))&&s.querySelector(".sp-video__item-page-new__actions"),a=s&&w.getVideoContentVideoId(s),u&&a&&w.insertBtnInPage(a,u,2));for(t=e[0],n=0;i=t.removed[n];n++)y.a.onRemoveListener(i)},queries:[{css:".jp__track",is:"added"},{css:".song-item",is:"added"},{css:".b-video__left .b-video__container object",is:"added"},{css:".b-video__left .b-video__container video",is:"added"},{css:".sp-video__item-page .sp-video__item-page__video-wrapper object",is:"added"},{css:".sp-video__item-page .sp-video__item-page__video-wrapper video",is:"added"},{css:".sp-video__item-page-new .sp-video__item-page-new__video-content video",is:"added"},{css:".sp-video__item-page-new .sp-video__item-page-new__video-content object",is:"added"},{css:"."+y.a.onRemoveClassName,is:"removed"}]})}}},p={tooltip:void 0,updatePos:function(e,t){var o=n.getPosition(e),i=n.getSize(this.tooltip);this.tooltip.style.top=o.top+t.top-i.height+"px";var r=o.left+k()(t.width/2)-k()(i.width/2),a=document.body.clientWidth+document.body.scrollLeft;a<r+i.width&&(r=a-i.width),this.tooltip.style.left=r+"px"},show:function(e,t){var n=this;return void 0!==this.tooltip?this.hide():(this.tooltip=x.a.create("div",{class:"sf-tooltip",style:i()({position:"absolute",display:"none",zIndex:9999,opacity:0,transition:"opacity 0.2s",whiteSpace:"nowrap",fontSize:"12px",color:"#111",fontFamily:"arial, verdana, sans-serif, Lucida Sans"},t.style),on:["mouseenter",function(e){n.hide()}]}),document.body.appendChild(this.tooltip)),this.tooltip.style.display="block",setTimeout(function(){n.updatePos(e,t),n.tooltip.style.opacity=1}),this.tooltip},hide:function(){this.tooltip.style.opacity=0,this.tooltip.style.display="none"}},h=function(){var e=document.title,t=e.indexOf("-");return-1!==t&&(e=e.substr(0,t-1)),C.a.modify(e)},b={className:"sf-audio-panel",lastRow:null,style:void 0,secondsFromDuration:function(e){var t=e.split(":").map(function(e){return k()(e)});return 60*t[0]+t[1]},getTitle:function(e){var t=e.querySelector(".jp__track-fullname"),n=e.querySelector(".jp__track-performer");if(null===n&&null!==(n=e.querySelector(".jp__track-name-text"))&&null!==(n=n.querySelector("a:not(.jp__track-fullname)"))){var o=t;t=n,n=o}if(null!==n?(n=n.textContent.trim())||(n="noname"):n="",n?n+=" - ":n="",null!==t){var i=n+(t=t.textContent);return i.replace(/[\r\n\t\s]+/gim," ").replace(/\s+/g," ").trim()}},getTitle2:function(e){var t=e.querySelector(".title"),n=e.querySelector(".name")||e.querySelector(".b-music__songs__row__body__inner__title__name__link"),o=e.querySelector(".author")||e.querySelector(".b-music__songs__row__body__inner__title__author");return n&&((n=n.textContent).length||(n="noname")),o&&(o=o.textContent),(n&&o?o+" - "+n:t?t.textContent:"unknown").replace(/[\r\n\t\s]+/gim," ").replace(/\s+/g," ").trim()},getMp3UrlList:function(e){var t=1,n=document.querySelectorAll(".song-item");0===n.length&&(n=document.querySelectorAll(".jp__track"),t=0);for(var o,i=[],r={},a=function(e){s=s.then(function(){return new A.a(function(n){b.getUrl(e,t,n)})}).then(function(n){if(n&&!r[n]){r[n]=1;var o="",a="";if(0===t?(o=e.querySelector(".jp__track-duration-total"),a=b.getTitle(e)):(o=e.querySelector(".time"),a=b.getTitle2(e)),a){var s=C.a.modify(a)+".mp3",l=o&&b.secondsFromDuration(o.textContent);i.push({url:n,filename:s,title:a,duration:l})}}}).catch(function(e){})},s=A.a.resolve(),l=0;o=n[l];l++)a(o);s.then(function(){e(i)})},showListOfAudioFiles:function(e){b.getMp3UrlList(function(t){0!==t.length&&(e?n.playlist.popupPlaylist(t,h(),!0):n.playlist.popupFilelist(t))})},downloadMP3Files:function(){b.getMp3UrlList(function(e){0!==e.length&&n.downloadList.showBeforeDownloadPopup(e,{type:"audio",folderName:h()})})},onDlBtnOver:function(e){if(!o.default.isSafari){var t=this.dataset.duration;if("mouseenter"===e.type){var i,r=this,a=p.show(r,i={top:-14,width:16,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)"}});return r.dataset.bitrate?(a.style.padding="2px 5px 3px",void(a.textContent=" ("+r.dataset.size+" ~ "+r.dataset.bitrate+")")):r.dataset.size?(a.style.padding="2px 5px 3px",void(a.textContent=" ("+r.dataset.size+")")):(a.style.padding="2px 2px 0 2px",a.textContent="",a.appendChild(x.a.create("img",{src:"//my9.imgsmail.ru/r/my/preloader_circle_16.gif",height:16,width:16})),void o.default.sendMessage({action:"getFileSize",url:r.href},function(e){if(a.style.padding="2px 5px 3px",!e.fileSize)return a.textContent=o.default.i18n.getMessage("getFileSizeFailTitle"),void p.updatePos(r,i);var s=n.sizeHuman(e.fileSize,2);if(t){var l=Math.floor(e.fileSize/t/125)+" "+o.default.i18n.getMessage("kbps");r.dataset.bitrate=l,r.dataset.size=s,a.textContent=" ("+s+" ~ "+l+")"}else r.dataset.size=s,a.textContent=" ("+s+")";p.updatePos(r,i)}))}p.hide()}},getUrlViaBridge:function(e,t){void 0===b.getUrlViaBridge.index&&(b.getUrlViaBridge.index=0);var o="sf-bridge-item-"+b.getUrlViaBridge.index;b.getUrlViaBridge.index++,e.classList.add(o),n.bridge({args:[{className:o}],func:"function(a,b){var c=a.className,d=document.getElementsByClassName(c)[0];d.classList.remove(c);var e=jQuery(d).data();e&&e.item&&b(e.item.url)}",cb:function(e){t(e)},timeout:300})},getUrlById:function(e){return new A.a(function(t){n.bridge({args:[e],func:'function(a,b){var c="",d=function(a,b){var c="";return a.some(function(a){if(a._attr&&a._attr.file===b)return c=a._attr.url,!0}),c};try{c=d(APP.activePage.collection.items,a)}catch(a){}try{c||(c=d(APP.player.collection.items,a))}catch(a){}b(c)}',cb:t})}).then(function(e){if(!e)throw new Error("Url is not found");return/^\/\//.test(e)&&(e="http:"+e),e})},getUrl:function(e,t,n){var o=e.dataset.url;if(o)return n(o);if(0===t){var i=e.querySelector("a.jp__track-fullname-link");if(null===i)return n();i=i.href;var r=d()(i);return r.file&&r.uid?n("https://music.my.mail.ru/file/"+r.file+".mp3?u="+encodeURIComponent(r.uid)):b.getUrlViaBridge(e,function(t){t&&(e.dataset.url=t),n(t)})}if(1===t){var a=e.dataset.file;return b.getUrlById(a).then(function(e){n(e)},function(){n("https://music.my.mail.ru/file/"+a+".mp3")})}},onDlBtnClick:function(e){e.stopPropagation(),n.downloadOnClick(e)},getDlLink:function(e,t,n){return x.a.create("a",{data:{duration:t||""},href:e,style:{position:"relative",display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"},download:C.a.modify(n+".mp3"),on:[["mouseenter",b.onDlBtnOver],["mouseleave",b.onDlBtnOver],["click",this.onDlBtnClick]]})},addDownloadPanelNew:function(e,t){if(t){var n=b.getTitle2(e);if(n){var o=e.querySelector(".time"),i=o&&b.secondsFromDuration(o.textContent),r=this.getDlLink(t,i,n),a=x.a.create("div",{class:[b.className,"type-2"],append:[r]}),s=e.querySelector(".icons");if(s)s.appendChild(a);else{var l=e.querySelector(".b-music__songs__row__body__inner__controls");l&&(r.classList.add(this.className+"-btn"),x.a.create(a,{class:[this.className,"type-3"],style:{background:"none",verticalAlign:"top"},append:[r]}),l.appendChild(a))}}}},addDownloadPanel:function(e,t){var n=e.querySelector(".jp__track-duration-total");if(null!==n&&void 0!==t){var o=b.getTitle(e);if(o){n=b.secondsFromDuration(n.textContent);var i=x.a.create("div",{class:[b.className,"type-0"],append:[this.getDlLink(t,n,o)]}),r=e.querySelector(".jp__track-management");r&&(r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i))}}},onTrackOver:function(e,t){0===e.getElementsByClassName(b.className).length&&b.getUrl(e,t,function(n){1===t?b.addDownloadPanelNew(e,n):b.addDownloadPanel(e,n)})},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=x.a.create("style",{text:m()([{selector:"."+this.className,style:{display:"none",left:"22px",backgroundImage:"url("+n.svg.getSrc("download","#168DE2")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px"}},{selector:"."+this.className+"-btn",style:{backgroundImage:"url("+n.svg.getSrc("download","#168DE2")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px"}},{selector:".jp__track:hover ."+this.className,style:{display:"block",opacity:.5}},{selector:".jp__track:hover ."+this.className+".type-0",style:{display:"inline-block",marginLeft:"-16px",position:"relative",left:"-2px"}},{selector:".jp__track.jp__track-plays ."+this.className,style:{left:"-18px"}},{selector:"."+this.className+":hover",style:{opacity:"1 !important"}},{selector:"."+this.className+".type-2",style:{marginRight:"5px",marginLeft:"5px"}},{selector:".song-item:hover ."+this.className+".type-2",style:{display:"inline-block",opacity:.5}},{selector:".b-music__section__content--songs ."+this.className+".type-3",style:{marginTop:"18px"}},{selector:".b-music__section__content--songs .b-music__songs--inline ."+this.className+".type-3",style:{marginTop:"9px"}}])}),document.head.appendChild(this.style))},rmBtn:function(){b.style&&(b.style.parentNode.removeChild(b.style),b.style=void 0);for(var e,t=document.querySelectorAll("."+b.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}},w={btnIndex:0,domCache:{},className:"sf-video-btn",prepareLinks:function(e){for(var t,n=[],o=0;t=e[o];o++){var i=t.url,r="FLV";-1!==i.indexOf(".mp4")&&(r="MP4"),-1!==i.indexOf(".mov")&&(r="MOV"),-1!==i.indexOf(".mpg")&&(r="MPG"),t.quality||(t.quality="-?-");var a=t.quality.toUpperCase(),s=["1080P","720P","480P","360P","272P"].indexOf(a);-1!==s&&(a=["1080","720","480","360","272"][s]);var l=r.toLowerCase(),u={href:i,title:t.title,ext:l,format:r,quality:a,forceDownload:!0};n.push(u)}if(0!==n.length)return n},showLinkList:function(e,t,i){if(e||(e=o.default.i18n.getMessage("noLinksFound")),i){if(!c.contextMenu)return;c.contextMenu.update(e)}else c.contextMenu&&c.contextMenu.isShow?c.hideMenu():c.contextMenu=n.popupMenu.quickInsert(t,e,"video-links-popup",{parent:l()(t,"b-video__main")})},appendPageBtn:function(e,t,i){if(null===e.querySelector("."+w.className)){var r=null,a=x.a.create("span",{class:w.className,append:[r=x.a.create("a",{data:{index:t},href:"#",on:["click",function(e){e.preventDefault(),y.a.onRemoveEvent(this,c.hideMenu),w.readDomCache(this.dataset.index,this)}]})]});if(1===i?(r.style.marginLeft="15px",r.textContent=o.default.i18n.getMessage("download")):2===i&&(x.a.create(r,{style:{fontSize:0,lineHeight:0,padding:"6px",boxShadow:"inset 0 0 0 1px #ccc",borderRadius:"3px",display:"inline-block"}}),r.appendChild(n.svg.getSvg("download","#666",18,18))),2===i)e.appendChild(a);else if(1===i){var s=e.lastChild;e.insertBefore(a,s),s=null}}},appendBtn:function(e,t){if(null===e.querySelector("."+w.className)){var n=void 0,i={};e.childNodes.length>1?n=e.childNodes[1]:(n=e.lastChild,i.marginRight="5px");var r=x.a.create("span",{class:e.lastChild.getAttribute("class")+" "+w.className,append:[x.a.create("a",{data:{index:t},text:o.default.i18n.getMessage("download"),href:"#",on:["click",function(e){e.preventDefault(),y.a.onRemoveEvent(this,c.hideMenu),w.readDomCache(this.dataset.index,this)}],style:i})]});e.insertBefore(r,n),n=null}},readDomCache:function(e,t){w.showLinkList(o.default.i18n.getMessage("download"),t);var i=function(){w.showLinkList(void 0,t,1)},r=function(e){if("getRutubeLinks"===e.action){if(!a.showUmmyItem)return i();w.showLinkList(n.popupMenu.prepareLinks.rutube(e.links),t,1)}else"getMailruLinks"===e.action?w.showLinkList(n.popupMenu.prepareLinks.mailru(e.links,e.title),t,1):w.showLinkList(w.prepareLinks(e.links),t,1)},s=w.domCache[k()(e)];if(s.links)r(s);else if(s.metadataUrl){var l=s.metadataUrl;/^\/\//.test(l)&&(l="http:"+l),v()({url:l,withCredentials:!0,json:!0,localXHR:!0},function(e,t){var n;(n=e?null:t.body)&&"object"==typeof n?w.readMeta(n,function(e){e.links?(s.links=e.links,s.action=e.action,r(s)):i()}):i()})}else s.url?o.default.sendMessage({action:"getMailruLinks",extVideoId:s.url},function(e){e.links?(s.title=e.title,s.links=e.links,s.action=e.action,r(s)):i()}):i()},readMeta:function(e,t){var n,i=[];if("UPLOADED"===e.provider){if(n=e.movie?e.movie.title:void 0,!e.videos)return t();e.videos.forEach(function(e){i.push({quality:e.name,url:e.url,title:n})})}if("ugc"===e.provider){if(n=e.meta?e.meta.title:void 0,!e.videos)return t();e.videos.forEach(function(e){i.push({quality:e.key,url:e.url,title:n})})}return"pladform"===e.provider?(n=e.meta?e.meta.title:void 0,void o.default.sendMessage({action:"getPladformVideo",extVideoId:{playerId:e.meta.playerId,videoId:e.meta.videoId}},function(e){if(!e)return t();var o=e.links;if(!o)return t();o.forEach(function(e){"object"==typeof e&&void 0===e.title&&(e.title=n)}),t(e)})):0===i.length?t():t({links:i})},getFlashVars:function(e){if(e){var t=e.querySelector('param[name="flashvars"]');if(t){var n=t.value,o=d()(n,{params:!0});return o.metadataUrl?{metadataUrl:o.metadataUrl}:void 0}}},matchUrl:function(e){var t=e.match(/\/([^\/]+)\/([^\/]+)\/video\/(.+).html/);return t||(t=e.match(/embed\/([^\/]+)\/([^\/]+)\/(.+).html/)),t},getVideoId:function(e){"OBJECT"!==e.tagName&&(e=e.querySelector('object[name="b-video-player"]'));var t=this.getFlashVars(e);if(t)return t;var n=document.querySelector('[data-type="album-json"]');if(n)try{if((n=JSON.parse(n.textContent)).signVideoUrl)return{metadataUrl:n.signVideoUrl}}catch(e){}var o=this.matchUrl(location.pathname);return o?{metadataUrl:"http://api.video.mail.ru/videos/"+o[1]+"/"+o[2]+"/"+o[3]+".json"}:void 0},getVideoContentVideoId:function(e){var t=null,n=e.querySelector(".sp-video__item-page-new__share__item[data-share-type][data-location]");return n&&(t={url:n.dataset.location}),t},insertBtnInPage:function(e,t,n){e.metadataUrl?(e.metadataUrl=decodeURIComponent(e.metadataUrl),w.domCache[w.btnIndex]={metadataUrl:e.metadataUrl}):w.domCache[w.btnIndex]=i()({},e),w.appendPageBtn(t,w.btnIndex,n),w.btnIndex++},insertBtnInPopup:function(e,t){e.metadataUrl&&(e.metadataUrl=decodeURIComponent(e.metadataUrl),w.domCache[w.btnIndex]={metadataUrl:e.metadataUrl}),w.appendBtn(t,w.btnIndex),w.btnIndex++},rmBtn:function(){for(var e,t=document.querySelectorAll("."+w.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}}})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={4:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([46,0]),n()}({30:function(e,t){e.exports=n(193)},46:function(e,t,n){n.r(t);var o=n(0),r=n(10),s=n(5),u=n(12),d=n.n(u),c=n(14),f=n.n(c),p=n(6),m=n.n(p),h=n(4),v=n.n(h),b=n(9),y=n.n(b),k=n(7),w=n.n(k),S=n(16),C=n.n(S),L=n(2),M=n.n(L),I=n(1),O=n.n(I),P=n(3),T=n.n(P),F=n(13),E=n.n(F),N=n(11),D=n.n(N),B=n(30),R=n.n(B),_=n(20),q=E()("facebook_com");D.a.isSingle()&&Object(s.b)("facebook",function(e,t){var n=Object(r.a)(t),s=t.preferences,u=s.moduleFacebook?1:0;o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:u,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return c.changeState(t.state)}"updatePreferences"!==t.action?u&&"updateLinks"===t.action&&(c.changeState(0),c.changeState(1)):i()(s,t.preferences)}),u&&setTimeout(function(){c.run()});var c={contextMenu:null,className:"savefrom_fb_download",isMutation:!1,run:function(){if(u=1,k.addStyle(),b.injectStyle(),R.a.isAvailable())return this.isMutation=!0,this.initEmbedDownloader(),void this.mutationMode.enable()},changeState:function(e){c.hideMenu(),u=e,p.disable(),b.rmCurrentPhotoBtn(),b.rmDataAttrs(),k.rmBtn(),h.rmBtn(),c.mutationMode.stop(),e&&c.run()},initEmbedDownloader:function(){n.addStyleRules("."+n.embedDownloader.linkClass+" img",{opacity:".5"}),n.embedDownloader.init()},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach(function(e){for(var t,n=m()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)})},wrapVideoGetLinks:function(e){switch(e.tagName){case"EMBED":h.getLinksFromEmbed(e,function(e){h.appendLinks(e&&e.links)});break;case"VIDEO":h.getLinksFromVideo(e,function(e){h.appendLinks(e&&e.links)})}},wrapVideoFeedOnLinkHover:function(){u&&k.onLinkHover.apply(this)},wrapPhotoOnHover:function(e){u&&b.addCurrentDlBtn(this)},wrapExternalMediaMouseEnter:function(){u&&(this.dataset[p.linkDataAttr]?clearTimeout(p.timer):p.handle(this)?(p.lastLink&&p.lastLink!==this&&p.removeBtn(p.lastLink),n.embedDownloader.hidePanel(),p.lastLink=this):(M.a.off(this,"mouseenter",c.mutationMode.wrapExternalMediaMouseEnter),M.a.off(this,"mouseleave",c.mutationMode.wrapExternalMediaMouseLeave)))},wrapExternalMediaMouseLeave:function(){if(u){var e=this;e.dataset[p.linkDataAttr]&&(clearTimeout(p.timer),p.timer=setTimeout(function(){p.removeBtn(e)},1500))}},wrapExternalMedia:function(e){M.a.on(e,"mouseenter",c.mutationMode.wrapExternalMediaMouseEnter),M.a.on(e,"mouseleave",c.mutationMode.wrapExternalMediaMouseLeave)},enable:function(){var e=this;if(this.observer)return this.observer.start();var t=function(t){for(var n,o=0;n=t.added[o];o++){var i=!1;y()(n,"#fbxPhotoContentContainer .videoStage "+n.tagName)&&(i=!0),i?e.wrapVideoGetLinks(n):M.a.one(n,"mouseenter",e.wrapVideoFeedOnLinkHover)}};this.observer=new R.a({queries:[{css:"embed",is:"added",callback:t},{css:"video",is:"added",callback:t},{css:[".fbPhotoSnowliftContainer .stageWrapper .stage img.spotlight",".fbPhotoSnowliftContainer .stageWrapper .stage .videoStage video"],is:"added",callback:function(t){for(var o,i=0;o=t.added[i];i++)if(c.hideMenu(),!(o.dataset.sfSkip>0)){o.dataset.sfSkip="1";var r=n.getParentByClass(o,"stageWrapper");M.a.one(r,"mouseenter",e.wrapPhotoOnHover)}}},{css:"a",is:"added",callback:function(t){for(var n,o=0;n=t.added[o];o++)n.sfSkip>0||(n.sfSkip="1",e.wrapExternalMedia(n))}},{css:"."+M.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)M.a.onRemoveListener(t)}}]})}},hideMenu:function(){c.contextMenu&&(c.contextMenu.hide(),c.contextMenu=null)}},p={linkDataAttr:"savefromEd",timer:0,lastLink:null,re:[/https?:\/\/(?:[a-z]+\.)?youtube\.com\/(?:#!?\/)?watch\?[^\s\"\'\<\>]*v=([\w\-]+)/i,/https?:\/\/(?:[a-z0-9]+\.)?youtube\.com\/(?:embed|v)\/([\w\-]+)/i,/https?:\/\/(?:[a-z]+\.)?youtu\.be\/([\w\-]+)/i,/https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/(\d+)(?:\?|$)/i],thumbnail:{youtube:{re:[/ytimg\.com(?:\/|%2F)vi(?:\/|%2F)([\w\-]+)(?:\/|%2F)/i],url:"http://www.youtube.com/watch?v={vid}"}},disable:function(){var e=n.embedDownloader.panel;e&&(e.style.display="none")},removeBtn:function(e){if(e&&"object"==typeof e){var t=e.querySelector("."+c.className);t&&(t.parentNode.removeAttribute(m()(p.linkDataAttr)),t.parentNode.removeChild(t)),e.removeAttribute(m()(p.linkDataAttr)),e==this.lastLink&&(this.lastLink=null)}},checkUrl:function(e,t){if(!t&&e.search(/https?:\/\/([\w\-]+\.)?facebook\.com\/l\.php/i)>-1)return this.checkUrl(decodeURIComponent(e),!0);for(var n=0,o=this.re.length;n<o;n++){var i=e.match(this.re[n]);if(i&&i.length>0)return i[0]}},handle:function(e){var t=e.querySelector("img");if(t){var o=t.parentNode;if(t.src&&"relative"==n.getStyle(o,"position")){var i=e.getAttribute("ajaxify");if(i&&i.search(/\/flash\/expand_inline/i)>-1){var r=this.getThumbnailUrl(t.src);if(r)return this.createButton(r,o,e,{display:"block",position:"absolute",bottom:"3px",right:"3px",zIndex:9999,margin:0,width:"16px",height:"16px"},{display:"block"})}else if(this.checkUrl(e.href))return this.createButton(e.href,o,e,{display:"block",position:"absolute",bottom:"3px",right:"3px",zIndex:9999,margin:0,width:"16px",height:"16px"},{display:"block"})}return!1}return this.createButton(e.href,e,e)},getThumbnailUrl:function(e){for(var t in this.thumbnail)for(var o=0;o<this.thumbnail[t].re.length;o++){var i=n.getMatchFirst(e,this.thumbnail[t].re[o]);if(i)return this.thumbnail[t].url.replace(/\{vid\}/gi,i)}return""},createButton:function(e,t,i,r,a){if(!(e=this.checkUrl(e)))return!1;var s=document.createElement("a");s.className=c.className,s.href="http://savefrom.net/?url="+encodeURIComponent(e),s.setAttribute(n.embedDownloader.dataAttr,e),s.title=o.default.i18n.getMessage("download"),n.setStyle(s,{marginLeft:"7px",verticalAlign:"middle"}),r&&n.setStyle(s,r);var l=document.createElement("img");return l.className="icon",l.src=n.svg.getSrc("download","#a2db16"),n.setStyle(l,{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",cursor:"pointer"}),a&&n.setStyle(l,a),s.appendChild(l),i.dataset[this.linkDataAttr]=1,t.appendChild(s),!0}},h={getLinksFromEmbed:function(e,t){if(!e)return t(null);var n=e.getAttribute("flashvars");if(null===n)return t(null);var o=f()(n).params;if(!o)return t(null);var i=null;try{i=JSON.parse(o).video_data}catch(e){}if(!i)return t(null);i.progressive&&(i=i.progressive);var r={},s={sd_src:"SD",hd_src:"HD"};a()(i)||(i=[i]);for(var l,u=0;l=i[u];u++)["sd_src","hd_src"].forEach(function(e){l[e]&&(r[l[e]]=s[e])});return t({links:r})},requestLocalVideoLinks:function(e){return new A.a(function(e,t){n.bridge({func:'function(a){var b=null,c=null;try{c=window.require("DTSGInitialData").token}catch(a){b=a.message}a([b,c])}',cb:function(n){var o=null,i=null;!n||n[0]?o=new Error("Get token timeout"):i=n[1],o?t(o):e(i)}})}).then(function(t){return new A.a(function(n,o){C()({method:"POST",url:"https://www.facebook.com/video/tahoe/async/"+e+"/?"+_.stringify({payloadtype:"all"}),data:_.stringify({__a:1,fb_dtsg:t})},function(e,t,i){e||!i?o(new Error("Request data error")):n(i)})})}).then(function(t){return new A.a(function(n,i){o.default.sendMessage({action:"getFacebookLinksFromData",extVideoId:e,data:t},function(e){e&&e.links?n(e):i(new Error("Get links from data error"))})})}).catch(function(e){throw q.error("get local links error",e),e})},requestBgVideoLinks:function(e){return new A.a(function(t,n){o.default.sendMessage({action:"getFacebookLinks",extVideoId:e},function(e){e&&e.links?t(e):n(new Error("Get links error"))})}).catch(function(e){throw q.error("get links error",e),e})},requestVideoLinksById:function(e){return A.a.resolve().then(function(){return h.requestLocalVideoLinks(e)}).catch(function(){return h.requestBgVideoLinks(e)})},requestVideoLinks:function(e,t){return h.requestVideoLinksById(e).then(function(e){t(e.links,e.title)},function(e){t()})},getLinksFromVideo:function(e,t){if(!e)return t(null);var o={},i={},r=null;if(!r){var a=w()(e,"div[data-ft]");if(a&&y()(a,".userContentWrapper[data-ft] "+a.tagName)&&(a=w()(a,".userContentWrapper[data-ft]")),a&&(l()(a.querySelectorAll("a[href]")).some(function(e){var t=/\/videos\/(\d+)/.exec(e.href);if(t)return r=t[1],o.popup_1=!0,!0}),!r)){var s=null;try{s=JSON.parse(a.dataset.ft)}catch(e){}if(s){var u=s.mf_story_key,c=s.story_attachment_style;u&&"video_inline"===c&&(r=u,o.popup_1=!0)}}}if(r){if(!r){var f=w()(e,".uiStreamStory[data-story-id]"),p=/:(\d+)$/.exec(f&&f.dataset.storyId);(p=p&&p[1])&&(r=p)}var m;if(!r&&(m=d()(e,"fbUserContent"))){var g=m.querySelector("a[data-video-id]");g&&(S=g&&g.dataset.videoId)&&(r=S)}if(!r&&(m=w()(e,".userContentWrapper"))){var v=m.querySelector('div[id^="feed_subtitle_"] a[data-video-channel-id]');if(v){var b=/\/videos\/(\d+)/.exec(v.href);(S=b&&b[1])&&(r=S)}else{var k=m.querySelectorAll('a.profileLink, a[rel="theater"], #fbPhotoSnowliftTimestamp > a[href]'),S=null;[].slice.call(k).some(function(e){var t=/\/videos\/(\d+)/.exec(e.href);return S=t&&t[1]}),S&&(r=S)}}if(!r){var A=!1,C=!1,L=document.getElementById("stream_pagelet"),M=L&&L.previousElementSibling;if(M&&M.contains(e)&&(A=!0),!A){var I=document.querySelector(".uiStreamStory"),O=I&&I.parentNode;(O=O&&O.parentNode)&&O.contains(e)&&(C=!0)}(A||C)&&(S=h.getVideoIdFromUrl())&&(r=S)}if(r||w()(e,"#pagelet_group_permalink")&&(b=/video_id:"?([^,"]+)/.exec(document.body.innerHTML),(S=b&&b[1])&&(r=S)),r&&(i.id=r),e.src&&/^https?:/.test(e.src)){var P=n.getFileExtension(e.src,"mp4");i[e.src]=P.toUpperCase()}var T=e.querySelectorAll("source");if(T&&T.length>0)for(var F=0;F<T.length;F++)P=n.getFileExtension(T[F].src,"mp4"),i[T[F].src]=P.toUpperCase();return x()(i).length?(o.links=i,t(o)):t(null)}if(w()(e,"div._5-yb")){var E=/\/videos\/(\d+)/.exec(location.href);if(E)return t({links:{id:E[1]},popup_1:!0})}},getVideoIdFromUrl:function(){var e=null;return n.embedDownloader.hostings.facebook.re.some(function(t){var n=t.exec(location.href);if(n)return e=n[1],!0}),e},getFileName:function(e){var t=n.getFileName(e);if(t)return t;var o=n.dateToObj();return"facebook_"+o.year+"-"+o.month+"-"+o.day+"_"+o.hour+"-"+o.min+"."+n.getFileExtension(e,"mp4")},prepareLinks:function(e,t){var n=[];for(var i in e){var r=this.getFileName(i),a=r.lastIndexOf("."),s=r.substr(a+1),l={href:i,title:r=t||r.substr(0,a),format:s.toUpperCase(),quality:e[i],forceDownload:!0};n.push(l)}return 0===n.length&&(n=o.default.i18n.getMessage("noLinksFound")),n},appendLinks:function(e){if(e){var t=document.getElementById("fbPhotoPageMediaInfo");if(null!==t){var i=document.querySelector("h2.uiHeaderTitle");if(i&&(i=i.textContent),t&&!t.querySelector("."+c.className)){var r=document.createElement("div");r.className=c.className;var a=O.a.create("div",{title:o.default.i18n.getMessage("download"),style:{display:"inline-block",width:"16px",height:"16px",backgroundImage:"url("+n.svg.getSrc("download","#a2db16")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center center",verticalAlign:"middle",cursor:"pointer"}});r.appendChild(a);var s=null;a.addEventListener("click",function(){if(c.contextMenu&&c.contextMenu.isShow)c.hideMenu();else{var t=c.contextMenu=n.popupMenu.quickInsert(this,o.default.i18n.getMessage("download")+" ...",c.className+"_popup");if(s)t.update(s);else if(e.id){var r=e.id;delete e.id,h.requestVideoLinks(r,function(o,i){s=o?n.popupMenu.prepareLinks.facebook(o,i):h.prepareLinks(e),t.update(s)})}else s=h.prepareLinks(e,i),t.update(s)}}),t.appendChild(r),t=null,r=null,a=null}}}},rmBtn:function(){for(var e,t=document.querySelectorAll("."+c.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}},b={style:null,getFilenameFromUrl:function(e){return n.getMatchFirst(e,/\/([^\/]+\.[a-z0-9]{3,4})(?:\?|$)/i)},getPhotoIdFromUrl:function(){var e=null,t=f()(location.href);return t.fbid&&(e=t.fbid),e},prepPhotoUrl:function(e){return e&&(/[?&]dl=1/.test(e)||(e+=(/\?/.test(e)?"&":"?")+"dl=1")),e},rmCurrentPhotoBtn:function(e){for(var t,n=void 0,o=document.querySelectorAll(".sf-dl-current-photo-btn"),i=0;t=o[i];i++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=O.a.create("style",{text:v()({"div > .sf-dl-current-photo-btn":{display:"none",position:"absolute",top:"10px",left:"10px",width:"28px",height:"24px",border:0,zIndex:100,cursor:"pointer",backgroundColor:"#000",padding:0,borderRadius:"2px",opacity:.4,transition:"opacity 100ms linear",lineHeight:0},"div > .sf-dl-current-photo-btn svg":{margin:"4px"},"div > .sf-dl-current-photo-btn:hover":{opacity:.8},"div > .sf-dl-current-photo-btn:hover svg path":{fill:"#00B75A"},"body:not(.fullScreen) div:hover > .sf-dl-current-photo-btn":{display:"block"}})}),document.head.appendChild(this.style))},getPhotoUrlFromCtr:function(e){var t=[],n=e.querySelector("img.spotlight")||e.querySelector("img.fbPhotoImage");return n&&t.push(n.src),t},getVideoUrlFromPhotoCtr:function(e){var t=null,n=e.querySelector(".stage .videoStage video");if(n){var o=w()(n,".fbPhotoSnowliftPopup");if(o){var i=o.querySelector('div[id^="feed_subtitle_"] a[data-video-channel-id]');if(i){var r=/\/videos\/(\d+)/.exec(i.href);r&&(t=r[1])}}}return t},getLinksFromPhotoCtr:function(e){return y()(e,".stageWrapper.showVideo")?A.a.resolve().then(function(){var t=h.getVideoIdFromUrl();if(t||(t=b.getVideoUrlFromPhotoCtr(e)),t)return h.requestVideoLinksById(t)}).then(function(e){return n.popupMenu.prepareLinks.facebook(e.links,e.title)}):A.a.resolve().then(function(){var e=b.getPhotoIdFromUrl();if(e)return new A.a(function(t,n){o.default.sendMessage({action:"getFacebookPhotoUrl",fbid:e},function(e){e&&e.length?t(e):n(new Error("getFacebookPhotoUrl can't get url"))})});throw new Error("Can't get photo id from url")}).catch(function(t){return b.getPhotoUrlFromCtr(e)}).then(function(e){if(!e||!e.length)throw new Error("Photo url not found");return e.map(function(e){var t=b.prepPhotoUrl(e),n=T.a.modify(b.getFilenameFromUrl(t)),i=/(.+)\.([^.]+)$/.exec(n),r="jpg",a=n;return i&&(r=i[1],a=i[2]),{href:t,title:a,quality:o.default.i18n.getMessage("download"),format:" ",ext:r,isBlank:!0}})})},addDlCurrentPhotoBtn:function(e){if(!this.rmCurrentPhotoBtn(e)){var t=O.a.create("a",{class:"sf-dl-current-photo-btn",href:"#",title:o.default.i18n.getMessage("download"),append:[n.svg.getSvg("download","#FFF",16)],on:["click",function(t){if(t.stopPropagation(),t.preventDefault(),c.contextMenu&&c.contextMenu.isShow)c.hideMenu();else{var i=function e(t){18!==t.keyCode&&17!==t.keyCode&&(r.hide(),document.removeEventListener("keydown",e))},r=c.contextMenu=n.popupMenu.quickInsert(this,o.default.i18n.getMessage("download")+" ...","photoDlMenu",{parent:e,onShow:function(){c.isMutation||document.addEventListener("keydown",i)},onHide:function(){c.isMutation||document.removeEventListener("keydown",i)}});b.getLinksFromPhotoCtr(e).then(function(e){e.forEach(function(e){e.func=function(){r.hide()}}),r.update(e)}).catch(function(e){q.debug("Get photo links error",e),r.update(o.default.i18n.getMessage("noLinksFound"))})}}]});e.appendChild(t)}},addCurrentDlBtn:function(e){e.dataset.sfSkip>0||(e.dataset.sfSkip="1",this.addDlCurrentPhotoBtn(e))},rmDataAttrs:function(){for(var e,t=m()("sfSkip"),n=document.querySelectorAll("*["+t+"]"),o=0;e=n[o];o++)e.removeAttribute(t)}},k={style:null,addStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=O.a.create("style",{class:"sfFeedStyle",text:v()([{selector:"."+c.className+"-feed.sf-feed",style:{display:"none",width:"20px",height:"20px",padding:0,position:"absolute",background:"url("+n.svg.getSrc("download","#a2db16")+") center no-repeat transparent",backgroundSize:"16px",top:"5px",left:"5px",zIndex:1,cursor:"pointer"}},{selector:'div[role="dialog"] .'+c.className+"-feed.sf-feed",style:{top:"40px"}},{selector:"body:not(.fullScreen) div:hover > ."+c.className+"-feed.sf-feed",style:{display:"block"}},{selector:"."+c.className+"-feed.sf-feed:active",style:{outline:0}}])}),document.head.appendChild(this.style))},onDlBtnClick:function(e){if(e.preventDefault(),e.stopPropagation(),c.contextMenu&&c.contextMenu.isShow)c.hideMenu();else{try{var t=JSON.parse(this.dataset.sfDlLinks)}catch(e){return}var i=c.contextMenu=n.popupMenu.quickInsert(this,o.default.i18n.getMessage("download")+" ...",c.className+"_popup");if(t.id){var r=t.id;delete t.id,h.requestVideoLinks(r,function(e,o){var r;r=e?n.popupMenu.prepareLinks.facebook(e,o):h.prepareLinks(t),i.update(r)})}else{var a=h.prepareLinks(t);i.update(a)}}},addDownloadBtn:function(e,t){var n=e.querySelector("."+c.className+"-feed");n&&n.parentNode.removeChild(n),e.appendChild(O.a.create("a",{data:{sfDlLinks:g()(t)},title:o.default.i18n.getMessage("download"),class:[c.className+"-feed","sf-feed"],href:"#",on:["click",k.onDlBtnClick]}))},onLinkHover:function(){var e=this;if(!(this.dataset.hasSfFeedBtn>1)){this.dataset.hasSfFeedBtn="1";var t=this;return"VIDEO"===t.tagName&&(t=t.querySelector("embed")||this),new A.a(function(e){"EMBED"===t.tagName?h.getLinksFromEmbed(t,e):"VIDEO"===t.tagName&&h.getLinksFromVideo(t,e)}).catch(function(e){return q("getLinks error",e),null}).then(function(t){var n=t&&t.links;if(n)if(t&&t.popup_1)k.addDownloadBtn(e.parentNode,n);else if(y()(e,".uiStreamStory "+e.tagName)||y()(e,".fbPhotoSnowliftContainer "+e.tagName))w()(e,".fbPhotoSnowliftPopup .stageWrapper")||k.addDownloadBtn(e.parentNode,n);else{var o=document.getElementById("pagelet_timeline_main_column")||document.getElementById("stream_pagelet")||document.getElementById("mainContainer");if(o&&o.contains(e))k.addDownloadBtn(e.parentNode,n);else{var i=document.getElementById("stream_pagelet"),r=i&&i.previousElementSibling;if(r&&r.contains(e))k.addDownloadBtn(e.parentNode,n);else{var a=document.querySelector(".uiStreamStory"),s=a&&a.parentNode;(s=s&&s.parentNode)&&s.contains(e)&&k.addDownloadBtn(e.parentNode,n)}}}else e.dataset.hasSfFeedBtn=0})}},rmBtn:function(){for(var e=m()("hasSfFeedBtn"),t=document.querySelectorAll("*["+e+"]"),n=0;o=t[n];n++)o.removeAttribute(e);var o,i=document.querySelectorAll("."+c.className+"-feed");for(n=0;o=i[n];n++)o.parentNode.removeChild(o)}}})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={13:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([47,0]),n()}({47:function(e,t,n){n.r(t);var o=n(0),r=n(10),a=n(5),s=n(8),l=n.n(s),u=n(2),d=n.n(u),c=n(1),f=n.n(c),p=n(3),m=n.n(p),h=n(11);n.n(h).a.isSingle()&&Object(a.b)("savefrom",function(e,t){var n=Object(r.a)(t),a=t.preferences;o.default.onMessage.addListener(function(e,t,n){"updatePreferences"!==e.action||i()(a,e.preferences)}),setTimeout(function(){s.run()});var s={name:e,scriptId:"savefrom__ext_script",dataAttr:"data-extension-disabled",attrObservers:[],run:function(){if(s.setExtParams(),location.href.search(/\/(update-helper|userjs-setup)\.php/i)>-1){var e=document.getElementById("js-not-remind");e&&e.addEventListener("click",function(e){0===e.button&&o.default.sendMessage({action:"hideUserjsMigrationInfo"})})}else n.mutationWatcher.isAvailable()&&this.mutationMode.enable()},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop()},enable:function(){if(this.observer)return this.observer.start();this.observer=n.mutationWatcher.run({callback:function(e){var t,n,o;for(t=e[0],n=0;o=t.added[n];n++)s.waitFormId(o),s.mutationMode.stop()},queries:[{css:"form",is:"added"}]})}},waitFormId:function(e){var t=this,o=n.mutationAttrWatcher.run({attr:"id",target:e,callback:function(n){"sf_form"===n[0].value&&(s.bindForm(e),t.attrObservers.splice(0).forEach(function(e){return e.stop()}))}});this.attrObservers.push(o)},bindForm:function(e){e.addEventListener("submit",function(t){var i=e.sf_url.value;if(i&&"1"!=e.getAttribute(s.dataAttr)){var r={getVKLinks:[/^https?:\/\/(?:[a-z]+\.)?(?:vk\.com|vkontakte\.ru)\/(video-?\d+_-?\d+)/i,/^https?:\/\/(?:[a-z]+\.)?(?:vk\.com|vkontakte\.ru)\/video_ext.php\?(.*oid=-?\d+.*)$/i,/^https?:\/\/(?:[a-z]+\.)?(?:vk\.com|vkontakte\.ru)\/[\w\-\.]+\?.*z=(video-?\d+_-?\d+)/i],getYoutubeLinks:[/^https?:\/\/(?:[a-z]+\.)?youtube\.com\/(?:#!?\/)?watch\?.*v=([\w\-]+)/i,/^https?:\/\/(?:[a-z0-9]+\.)?youtube\.com\/(?:embed|v)\/([\w\-]+)/i,/^https?:\/\/(?:[a-z]+\.)?youtu\.be\/([\w\-]+)/i],getVimeoLinks:[/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/(?:\w+\#)?(\d+)/i,/^https?:\/\/player\.vimeo\.com\/video\/(\d+)/i,/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/channels\/(?:[^\/]+)\/(\d+)$/i,/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/[^\/]+\/review\/(\d+)\/(?:\d+)/i],getDailymotionLinks:[/^http:\/\/(?:www\.)?dai\.ly\/([a-z0-9]+)_?/i,/^https?:\/\/(?:[\w]+\.)?dailymotion\.com(?:\/embed|\/swf)?\/video\/([a-z0-9]+)_?/i],getFacebookLinks:[/^https?:\/\/(?:[\w]+\.)?facebook\.com(?:\/video)?\/video.php.*[?&]{1}v=([0-9]+).*/i,/^https?:\/\/(?:[\w]+\.)?facebook\.com\/.+\/videos(?:\/\w[^\/]+)?\/(\d+)/i],getMailruLinks:[/^https?:\/\/my\.mail\.ru\/([^\/]+\/[^\/]+\/[^\/]+\/[^\/]+\/[^\/]+\.html).*/i,/^https?:\/\/videoapi\.my\.mail\.ru\/videos\/(embed\/[^\/]+\/[^\/]+\/[^\/]+\/[^\/]+\.html).*/i]};for(var a in r)for(var l=0;l<r[a].length;l++){var u=i.match(r[a][l]);if(u&&u.length>1){u=u[1];var d=n.getMatchFirst(i,/list=([\w\-]+)/i);t.preventDefault(),t.stopPropagation();var c={extVideoId:u,action:a,checkSubtitles:!0,checkLinks:!0};return"getVimeoLinks"===a&&(c.url=i),o.default.sendMessage(c,function(e){s.setLinks(e.action,e.extVideoId,e.links,e.title,null,e.subtitles,d,e.duration,e.thumb,e.checkLinks)}),!1}}}},!1),document.body.addEventListener("click",function(e){var t=e.target;if("I"===t.tagName&&t.classList.contains("file-info-btn"))s.onInfoBtnClick.call(t,e);else{if("A"!=t.tagName){if("A"!=t.parentNode.tagName)return;t=t.parentNode}if((o.default.isChrome||o.default.isFirefox)&&t.classList.contains("link-download")&&!t.classList.contains("disabled")&&t.getAttribute("download"))return t.classList.contains("ga_track_events")&&t.getAttribute("data-ga-event")&&d.a.trigger(t,"sendstats",{bubbles:!0,cancelable:!1}),n.downloadOnClick(e,null);var i=t.getAttribute("data-video-id");if(i&&"1"!=t.getAttribute(s.dataAttr)){var r={vk:"getVKLinks",yt:"getYoutubeLinks"};if(2==(i=i.split(":",2)).length&&r[i[0]]){e.preventDefault(),e.stopPropagation(),t.style.display="none",t.id||(t.id=i[0]+"_"+i[1]+"_"+1e3*Math.random()+"_"+(new Date).getTime());var a={extVideoId:i[1],action:r[i[0]],checkSubtitles:!0,checkLinks:!0};return o.default.sendMessage(a,function(e){s.setLinks(e.action,e.extVideoId,e.links,e.title,t,e.subtitles,null,e.duration,e.thumb,e.checkLinks)}),!1}}}},!0)},onInfoBtnClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.classList.contains("sf-clicked")){this.classList.add("sf-clicked");var t="sf-btn"+function(){for(var e=b()(),t=e;e===t;)t=b()();return t}();this.classList.add(t);var i=function(){var e=document.getElementsByClassName("sf-script")[0];void 0!==e&&e.parentNode.removeChild(e)};i(),document.body.appendChild(f.a.create("script",{class:"sf-script",text:'(function(a){try{var b=document.getElementsByClassName(a),c=$(b);c.unbind("click").removeAttr("onclick").addClass("active"),b.onclick&&(b.onclick=null);var d=c.closest(".result-box").find(".meta")[0];if(!d)return;var e="file_info"+a,f=sf.append(d,"div",{id:e,class:"media-info"});sf.append(f,"span",{id:e+"_busy"}),sf.busy(e+"_busy",!0)}catch(a){}})('+g()(t)+")"}));var r=this.nextElementSibling.href,a=this.nextElementSibling.textContent;o.default.sendMessage({action:"getFileSize",url:r},function(e){var r=e.fileSize,s={size:{name:{trans:o.default.i18n.getMessage("size")},value:n.sizeHuman(r)}};i(),document.body.appendChild(f.a.create("script",{class:"sf-script",text:'(function(a,b,c){try{var d=document.getElementById("file_info"+a+"_busy");$(d).slideUp();var e=document.getElementsByClassName(a);sf.fileInfo.show(c,b,e,d.parentNode)}catch(a){}})('+[g()(t),g()(a),g()(s)].join(",")+")"}))})}},setExtParams:function(){var e=f.a.create("script",{id:"savefrom__ext_params",type:"text/javascript"}),t={id:a.sfHelperName,version:a.version,enable:1};e.textContent='(function(a){try{window.setBrowserExtension&&"function"==typeof setBrowserExtension&&setBrowserExtension(a)}catch(a){}})('+g()(t)+")",document.body.appendChild(e)},setLinks:function(e,t,n,o,i,r,a,l,u,d){if(!1!==d)switch(e){case"getYoutubeLinks":s.setYoutubeLinks(t,n,o,i,r,a,l,u);break;case"getVKLinks":s.setVKLinks(t,n,o,i,l,u);break;case"getVimeoLinks":s.setVimeoLinks(t,n,o,i,l,u);break;case"getDailymotionLinks":s.setDailymotionLinks(t,n,o,i,l,u);break;case"getFacebookLinks":s.setFacebookLinks(t,n,o,i,l,u);break;case"getMailruLinks":s.setMailruLinks(t,n,o,i,l,u)}else s.handleError(i)},handleError:function(e){if(e)e&&(e.style.display="",e.setAttribute(s.dataAttr,"1"),e.click());else{var t=document.getElementById("sf_form");t&&(t.setAttribute(s.dataAttr,"1"),t.submit(),t.removeAttribute(s.dataAttr))}},showVideoResult:function(e,t){if(e&&e.url&&e.url.length){var n,o=document.getElementById(s.scriptId);o&&o.parentNode.removeChild(o),o=f.a.create("script",{id:s.scriptId,type:"text/javascript"}),n=t?'(function(a,b){try{var c=document.getElementById(a);sf.result.replaceAjaxResult(b,!0,!0,c)}catch(a){}})("'+t.id+'",'+g()(e)+")":"(function(a){try{sf.finishRequest(!0),sf.videoResult.show(a)}catch(a){}})("+g()(e)+")",o.textContent=n,document.body.appendChild(o)}else s.handleError(t)},setVKLinks:function(e,t,o,i,r,a){if(e&&t){var l={id:e,url:t,hosting:"vk.com (h)",meta:{title:o?m.a.modify(o):"download",source:"http://vk.com/"+e,duration:n.secondsToDuration(r)}};a&&(l.thumb=a);for(var u=0;u<l.url.length;u++)l.url[u].info_url="#",!l.url[u].ext&&l.url[u].type&&(l.url[u].ext=l.url[u].type),l.sd||l.url[u].subname?!l.hd&&l.url[u].subname&&k()(l.url[u].subname)>=720&&(l.hd={url:l.url[u].url}):l.sd={url:l.url[u].url};s.showVideoResult(l,i)}else s.handleError(i)},setYoutubeLinks:function(e,t,i,r,l,u,d,c){if(e&&t){var f={id:e,url:[],hosting:"101 (h)",meta:{title:i?m.a.modify(i):"download",source:e?"http://youtube.com/watch?v="+e:"",duration:n.secondsToDuration(d)},thumb:e?"http://i.ytimg.com/vi/"+e+"/hqdefault.jpg":""},p=!1;n.video.yt.init();var h=t.meta||{};for(var g in n.video.yt.format){var v=n.video.yt.format[g];for(var b in v){var y=h[b]||{};if(t[b]){!p&&t[b].search(/(\?|&)sig(nature)?=/i)>-1&&(p=!0);var w=v[b].quality;y.quality&&(w=y.quality);var x={url:t[b],name:g,subname:w,info_url:"#",type:g,quality:w,attr:{}};v[b].sFps&&(x.subname+=" "+(y.fps||60)),v[b]["3d"]?(x.name="3D "+x.name,x.group="3d",x["3d"]=!0):v[b].noAudio?(x.group="MP4 ",x.attr.class="no-audio"):"Audio AAC"==g?(x.type="AAC",x.ext="aac",x.attr.style="white-space: nowrap;"):"Audio Vorbis"==g?(x.type="Vorbis",x.ext="webm",x.attr.style="white-space: nowrap;"):"Audio Opus"==g?(x.type="Opus",x.ext="opus",x.attr.style="white-space: nowrap;"):("flv"!=g.toLowerCase()||f.sd||(f.sd={url:t[b]}),k()(w)>=720&&f.sd&&!f.hd&&(f.hd={url:t[b]})),void 0===x.ext&&x.type&&(x.ext=x.type.toLowerCase()),void 0===v[b].noVideo&&void 0===v[b].noAudio&&(x.no_download=!0),f.url.push(x),delete t[b]}}}if(p){if(l&&l.length>0){var S=e.replace(/[^\w]/,"_"),A="yt_subs_btn_"+S;S="yt_subs_"+S;var C=f.meta.title?btoa(n.utf8Encode(f.meta.title)):"";f.action=[],f.action.push({name:o.default.i18n.getMessage("subtitles"),attr:{id:A,href:"#"},bind:{click:{fn:'sf.youtubeSubtitles("{vid}","{subsId}","{btnId}","{subtToken}","{subsTitle}")'.replace("{vid}",e).replace("{subsId}",S).replace("{btnId}","#"+A).replace("{subtToken}","extension").replace("{subsTitle}",C)}}})}a.showUmmyItem&&(f.action=f.action||[],f.action.push({name:"HD / MP3",group:"ummy","second-btn":!0,attr:{href:"ummy://www.youtube.com/watch?v="+e,class:"ummy-link ga_track_events",target:"_blank","data-ga-event":"send;event;vidacha-helper;youtube;ummy-helper-button-click"}}),f.fn=f.fn||[],f.fn.push("if(window.ga){ga('send','event','vidacha-helper','youtube','ummy-helper-button-show');}")),s.showVideoResult(f,r)}else s.handleError(r)}else s.handleError(r)},setVimeoLinks:function(e,t,o,i,r,a){if(e&&t){var l={id:e,url:t,hosting:"vimeo.com (h)",meta:{title:o?m.a.modify(o):"download",source:"http://vimeo.com/"+e,duration:n.secondsToDuration(r)}};a&&(l.thumb=a);for(var u=0;u<l.url.length;u++)l.url[u].info_url="#",!l.url[u].ext&&l.url[u].type&&(l.url[u].ext=l.url[u].type),l.sd||"SD"!=l.url[u].name?l.hd||"HD"!=l.url[u].name||(l.hd={url:l.url[u].url}):l.sd={url:l.url[u].url};s.showVideoResult(l,i)}else s.handleError(i)},setDailymotionLinks:function(e,t,o,i,r,a){if(e&&t){var l=t.filter(function(e){if(!e.extra)return!0}),u={id:e,url:l,hosting:"dailymotion.com (h)",meta:{title:o?m.a.modify(o):"download",source:"http://dai.ly/"+e,duration:n.secondsToDuration(r)}};a&&(u.thumb=a);for(var d,c=0,f=0,p=0;d=l[p];p++)d.info_url="#",d.height>=720?c<d.height&&(u.hd={url:d.url},c=d.height):f<d.height&&(u.sd={url:d.url},f=d.height),delete d.height;s.showVideoResult(u,i)}else s.handleError(i)},setFacebookLinks:function(e,t,o,i,r,a){if(e&&t){var l={id:e,url:t,hosting:"facebook.com (h)",meta:{title:o?m.a.modify(o):"download",source:"https://facebook.com/video.php?v="+e,duration:n.secondsToDuration(r)}};a&&(l.thumb=a);for(var u,d=0;u=t[d];d++)u.info_url="#","SD"===u.name?l.sd={url:u.url}:"HD"===u.name&&(l.hd={url:u.url}),u.subname=u.name,u.name=u.ext;s.showVideoResult(l,i)}else s.handleError(i)},setMailruLinks:function(e,t,o,i,r,a){if(e&&t){var l={id:e,url:t,hosting:"mail.ru (h)",meta:{title:o?m.a.modify(o):"download",source:"http://my.mail.ru/"+e,duration:n.secondsToDuration(r)}};a&&(l.thumb=a);for(var u,d=0,c=0;u=l.url[c];c++)u.info_url="#",isNaN(k()(u.subname))?"sd"===u.subname.toLowerCase()?l.sd={url:u.url}:"hd"===u.subname.toLowerCase()&&(l.hd={url:u.url}):(d<u.subname&&u.subname<720&&(l.sd={url:u.url},d=u.subname),!l.hd&&u.subname>="720"&&(l.hd={url:u.url}));s.showVideoResult(l,i)}else s.handleError(i)}}},function(){return l()()?!(!o.default.isGM||-1===location.href.indexOf("/tools/helper-check.html")):-1!==location.href.search(/savefrom\.net\/(index\d?\.php|user\.php|update-helper\.php|userjs-setup\.php|\d+-[^\/]+\/|articles\/.+)?(\?|#|$)/i)})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={6:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([48,0]),n()}({48:function(e,t,n){n.r(t);var o=n(0),r=n(10),a=n(5),s=n(8),l=n.n(s),u=n(6),d=n.n(u),c=n(4),f=n.n(c),p=n(23),m=n.n(p),h=n(2),g=n.n(h),v=n(1),b=n.n(v),y=n(11);n.n(y).a.isSingle()&&Object(a.b)("instagram",function(e,t){var n=Object(r.a)(t),a=t.preferences,s=a.moduleInstagram?1:0;o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return l.changeState(t.state)}if("updatePreferences"!==t.action){if(s)return"updateLinks"===t.action?l.updateLinks():void 0}else i()(a,t.preferences)}),s&&setTimeout(function(){l.run()});var l={urlR:/\/\/[^\/]+\.[^\/]+\/p\//,lastWaitEl:null,dlBtnClassName:"savefrom-helper--btn",styleEl:null,run:function(){s=1,this.insertStyle(),n.mutationWatcher.isAvailable()&&this.mutationMode.enable()},rmStyle:function(){this.styleEl&&this.styleEl.parentNode&&this.styleEl.parentNode.removeChild(this.styleEl)},insertStyle:function(){this.styleEl?this.styleEl.parentNode||document.head.appendChild(this.styleEl):(this.styleEl=b.a.create("style",{text:f()([{selector:"."+this.dlBtnClassName,style:{display:"none",border:"1px solid #F8F8F8",top:"8px",left:"8px",padding:0,position:"absolute",backgroundColor:"#F8F8F8",cursor:"pointer",lineHeight:0}},{selector:"."+this.dlBtnClassName+" svg",style:{margin:"2px"}},{selector:"."+this.dlBtnClassName+" svg path",style:{fill:"#777777"}},{selector:".Embed ."+this.dlBtnClassName,style:{border:"1px solid #B5B5B5",borderRadius:"4px",padding:"3px"}},{selector:"."+this.dlBtnClassName+":hover svg path",style:{fill:"#3f729b"}},{selector:"."+this.dlBtnClassName+":active",style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}},{selector:["*:hover > ."+this.dlBtnClassName,"*.sf-touch-show > ."+this.dlBtnClassName],style:{display:"block"}},{selector:"*.sf-touch-hide > ."+this.dlBtnClassName,style:{display:"none"}}])}),document.head.appendChild(this.styleEl))},updateLinks:function(){this.changeState(0),this.changeState(1)},changeState:function(e){s=e,this.rmDlBtn(),this.rmStyle(),this.mutationMode.stop(),e&&this.run()},rmDlBtn:function(){for(var e,t=document.querySelectorAll("."+this.dlBtnClassName),n=0;e=t[n];n++)e.parentNode.removeChild(e)},getVideoInfo:function(e){var t=e.getAttribute("src");if("string"==typeof t){var n="mp4";-1!==t.indexOf(".flv")&&(n="flv");var o=t.match(/\/([^\/?]+)(?:$|\?)/);return(o=o&&o[1])||(o="noname."+n),{filename:o,url:t}}},getImageInfo:function(e){var t=null,n=e.getAttribute("srcset");if("string"==typeof n){var o=[];n.split(",").map(function(e){var t=e.split(" ");o.push({url:t[0],size:t[1]})}),o.sort(function(e,t){return e.size>t.size?-1:1});var i=o.pop();i&&(t=i.url)}if(t||(t=e.getAttribute("src")),"string"==typeof t){var r="jpg";-1!==t.indexOf(".png")&&(r="png");var a=t.match(/\/([^\/?]+)(?:$|\?)/);return(a=a&&a[1])||(a="noname."+r),{filename:a,url:t}}},getDbBtnEl:function(e){return b.a.create("a",{class:[this.dlBtnClassName],href:e.url,download:e.filename,title:o.default.i18n.getMessage("download"),style:{position:"absolute",zIndex:100},on:["click",function(e){e.stopPropagation(),n.downloadOnClick(e,void 0,{el:this})}],append:[n.svg.getSvg("download",null,16,16)]})},showOnTouch:function(e,t){if(!(e.dataset.sfTouch>0)){var n=!1,o=null,i=function(){n&&(clearTimeout(o),o=setTimeout(function(){n&&(n=!1,e.classList.remove("sf-touch-show"),e.classList.add("sf-touch-hide"))},3e3))};b.a.create(e,{data:{sfTouch:"1"},on:[["touchstart",function(t){n||(n=!0,e.classList.remove("sf-touch-hide"),e.classList.add("sf-touch-show"))}],["touchend",function(e){i()}]]})}},addDlBtn:function(e,t,o){var i=this,r="embed"===t,a=!1;e.querySelector(".EmbedSidecar")&&(a=!0);var s=e.querySelector("."+this.dlBtnClassName);s&&(s.classList.remove(g.a.onRemoveClassName),s.parentNode.removeChild(s),s=null);var u,d=e,c=null,f=e.querySelector(["div > div > video[src]"]);if(f&&(c=this.getVideoInfo(f)),!c)if(r&&!a)(u=d.querySelector(".EmbedFrame img.EmbeddedMediaImage"))&&(c=this.getImageInfo(u));else if(u=d.querySelectorAll(["div > img[src]"])[0])c=this.getImageInfo(u);else if((u=d.querySelectorAll(["div > img"])[0])&&("hidden"===u.style.visibility||!u.src))var p=n.mutationAttrWatcher.run({target:u,attr:["src"],callback:function(n){n[0].value&&(i.addDlBtn(e,t,o),p.stop())}});if(c){var h=this.getDbBtnEl(c),v="",y=null;u?(v="image",y=u):(v="video",y=f);var k=n.mutationAttrWatcher.run({target:y,attr:["src"],callback:function(e){e[0].value!==c.url&&(c=null,(c="image"===v?i.getImageInfo(y):i.getVideoInfo(y))&&h.parentNode?(h.href=c.url,h.download=c.filename):k.stop())}});if(g.a.onRemoveEvent(y,function(){m()(document.body,o)&&(o.dataset.sfSkip=0,l.mutationMode.observer.trigger(o))}),a)b.a.create(h,{style:{top:"62px"}});else if(r){var w=document.querySelector(".Header");w&&(d=w,b.a.create(h,{style:{position:"relative",zIndex:100,display:"block",left:"auto",top:"auto",marginLeft:"10px"}}))}d.appendChild(h),this.showOnTouch(d,h)}},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach(function(e){for(var t,n=d()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)})},enable:function(){if(this.observer)return this.observer.start();this.observer=n.mutationWatcher.run({callback:function(e){var t,n,o;for(t=e[0],n=0;o=t.added[n];n++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",l.addDlBtn(o.parentNode,"",o));for(t=e[1],n=0;o=t.added[n];n++)o.querySelector("ul > li")||o.dataset.sfSkip>0||(o.dataset.sfSkip="1",l.addDlBtn(o.parentNode,"",o));for(t=e[2],n=0;o=t.added[n];n++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",l.addDlBtn(o,"embed",o));for(t=e[3],n=0;o=t.removed[n];n++)g.a.onRemoveListener(o)},queries:[{css:["div > div > article > header + div > div > div:nth-child(1) ul > li > div:nth-child(1) > div:nth-child(1)"],is:"added"},{css:["div > div > article > header + div > div > div:nth-child(1)"],is:"added"},{css:[".Embed"],is:"added"},{css:"."+g.a.onRemoveClassName,is:"removed"}]})}}}},function(){return!l()()||!!/\/\/[^\/]+\.[^\/]+\/p\//.test(location.href)})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={12:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([49,0]),n()}({49:function(e,t,n){n.r(t);var o=n(0),r=n(10),a=n(5),s=n(8),l=n.n(s),u=n(12),d=n.n(u),c=n(6),f=n.n(c),p=n(4),m=n.n(p),h=n(7),g=n.n(h),v=n(2),b=n.n(v),y=n(1),k=n.n(y),w=n(11);n.n(w).a.isSingle()&&Object(a.b)("rutube",function(e,t){var n=Object(r.a)(t),a=t.preferences,s=a.moduleRutube?1:0,u=l()();o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return c.changeState(t.state)}if("updatePreferences"!==t.action){if(s)return"updateLinks"===t.action?c.updateLinks():void 0}else i()(a,t.preferences)}),s&&setTimeout(function(){c.run()});var c={contextMenu:null,run:function(){if(s=1,u)return c.frame();n.mutationWatcher.isAvailable()&&c.mutationMode.enable()},changeState:function(e){s=e,this.hideMenu(),this.rmDlLinks(),this.mutationMode.stop(),e&&this.run()},hideMenu:function(){c.contextMenu&&(c.contextMenu.hide(),c.contextMenu=null)},updateLinks:function(){this.changeState(0),this.changeState(1)},rmDlLinks:function(){for(var e,t=document.querySelectorAll(".sf-dl-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},insertDlLink:function(e){for(var t,i=e.querySelectorAll(".sf-dl-btn"),r=0;t=i[r];r++)t.parentNode.removeChild(t);i=null;var a=function(){var e=location.href;return"ummy"+e.substr(e.indexOf("://"))},s=a(),l=k.a.create("a",{text:o.default.i18n.getMessage("download"),href:s,class:["sf-dl-btn","g-solid-link"],style:{marginLeft:"5px"},target:"_blank",on:[["click",function(t){var o;if(t.preventDefault(),t.stopPropagation(),o=a(),s!==o&&(s=o,l.href=o),c.contextMenu&&c.contextMenu.isShow)c.hideMenu();else{var i=n.popupMenu.prepareLinks.rutube(a());c.contextMenu=n.popupMenu.quickInsert(this,i,"sf-popupMenu",{parent:g()(e,".b-video__description")})}}]]});b.a.onRemoveEvent(l,c.hideMenu),e.appendChild(l)},frame:function(){var e=this,t=n.frameMenu.getBtn({singleBtn:!0,btnId:"sfDlBtn",containerStyle:{right:"50px",top:"6px"},quickBtnStyleObj:{display:"inline-block",border:0,borderRadius:".3em",cursor:"pointer",position:"relative",padding:"4px 6px"},quickBtnCssStyle:{backgroundColor:"transparent"},quickBtnIcon:k.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"}}),nodeCssStyle:{display:"none"},on:[["click",function(o){if(o.preventDefault(),o.stopPropagation(),e.contextMenu&&e.contextMenu.isShow)e.hideMenu();else{var i=n.popupMenu.prepareLinks.rutube(location.href);e.contextMenu=n.frameMenu.getMenu(this,i,"sf-frame-menu",{container:t.container,onShow:function(){t.node.classList.add("sf-over")},onHide:function(){e.contextMenu=null,t.node.classList.remove("sf-over")}})}}],["mousedown",function(n){n.stopPropagation(),2===n.button&&(b.a.off(document.body,"mousemove",s),e.hideMenu(),t.container.parentNode&&t.container.parentNode.removeChild(t.container))}]]});t.quickBtn.title=o.default.i18n.getMessage("download"),t.container=k.a.create("div",{class:"sf-btn-ctr",append:t.node}),b.a.on(t.container,"mouseenter",function(){t.lockHide=!0}),b.a.on(t.container,"mouseleave",function(){t.lockHide=!1});var i=null,r=!1,a=function(){t.lockHide||(t.container.classList.add("sf-hide-ui"),r=!0)},s=function(){r&&(t.container.classList.remove("sf-hide-ui"),r=!1),clearTimeout(i),i=setTimeout(a,3e3)};b.a.on(document.body,"mousemove",s),t.node.appendChild(k.a.create("style",{text:m()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #sfDlBtn","body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(t.container)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach(function(e){for(var t,n=f()(e),o=document.querySelectorAll("["+n+"]"),i=0;t=o[i];i++)t.removeAttribute(n)})},enable:function(){if(this.observer)return this.observer.start();this.observer=n.mutationWatcher.run({callback:function(e){var t,n,o;for(t=e[0],n=0;o=t.added[n];n++)o.dataset.sfSkip>0||(o.dataset.sfSkip="1",c.insertDlLink(o));for(t=e[1],n=0;o=t.added[n];n++)if(!(o.dataset.sfSkip>0)){o.dataset.sfSkip="1";var i=d()(o,"b-video").querySelector(".b-author .author-block");i&&c.insertDlLink(i)}for(t=e[2],n=0;o=t.removed[n];n++)b.a.onRemoveListener(o)},queries:[{css:".b-video .b-author .author-block",is:"added"},{css:".b-video div#metainfo-block div.b-author",is:"added"},{css:"."+b.a.onRemoveClassName,is:"removed"}]})}}}},function(){return A.a.resolve().then(function(){if(l()()){var e=!1;try{e=location.hostname===window.parent.location.hostname}catch(e){}return!e}return!0}).then(function(e){return!!e&&o.default.callFn("getPreferences").then(function(e){return!!e.showUmmyItem})})})}})},function(e){!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=51)}({0:function(t,n,o){o.r(n);var i=e;n.default=i},5:function(e,t,n){n.d(t,"b",function(){return a});var o=n(0),i=[],r=function(e,t,n){return A.a.resolve().then(function(){return!n||n()}).then(function(n){n&&(-1===i.indexOf(e)&&i.push(e),t())})},a=function(e,t,n){return r(e,function(){return o.default.callFn("getPreferences").then(function(n){t(e,{preferences:n})})},n)};t.a=r},51:function(e,t,n){n.r(t);var o=n(0),i=n(5);Object(i.a)("tab",function(){o.default.sendMessage({action:"openPage"})})}})},function(e){!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=57)}({57:function(e,t){!function(){function e(){return["hbH1Nkk","cTej9CrI","nP6MSJq","cgDwvgHw","bGa3MZZq","byG3Sbq0","ca2RfkxA","l9o1apa","coqxnlTK","lpAKLXi","50DWs56","0aJ9LvQ","o0i2IFA","cL8gU3bK","bIhplKZa","cEuNUSQU","bwsfzyBI","c0LTvdA","b2ig0zsy","bBqFV46y","EkU3hBS","QdRfSH6","cto8JdtI","ZAdrKZi","0L1abZe","xxI4r5m","caQm8QVi","IiZt5iY","5Jugp0y","7QNDIg0","VQuQCmk","cAYqZKK4","bG37mTo4","9hpVMrq","bcHlYdKo","POmDbLi","wFX4pnE","ZKEM7De","bnHBM4BQ","FOvemwy"].some(function(e){return new URL(location.href).searchParams.get("sk")===e})}e(),function(e){return[/aliexpress\.com\/store\/product\/.*?\/(\d+)_(\d+)\.html/i,/aliexpress\.com\/item\/.*?\/(\d+)\.html/i,/group\.aliexpress\.com\/(\d+)-(\d+)-detail\.html/i].some(function(t){return null!==new RegExp(t).exec(e)})}(location.href)&&function(){var e=document.createElement("script");e.setAttribute("src","https://sf-helper.com/static/aliradar.js"),document.body.appendChild(e)}();var t=function(){return localStorage.getItem("eInstallDate")},n=function(e){return!e||b()()>=Number(t())+864e5},o=function(){return localStorage.getItem("eLastLinkChange")},i=function(){return localStorage.setItem("eLastLinkChange",b()())},r=function(e){return!e||!!o()&&b()()>=Number(o())+36e5};t()||localStorage.setItem("eInstallDate",b()()),o()||i();var a,s=function(e){return[/aliexpress\.com\/af\/.*/i,/aliexpress\.com\/wholesale.*/i,/aliexpress\.com\/w.*/i,/aliexpress\.com\/category\//i].some(function(t){return null!==new RegExp(t).exec(e)})},l=function(){return c(document.querySelectorAll("a.product"))},u=function(){return c(document.querySelectorAll(".picRind"))},d=function(){return c(document.querySelectorAll(".has-sku-image a"))},f=function(){return c(document.querySelectorAll(".p4p-product-title a"))},p=function(){return c(document.querySelectorAll(".img-box a"))},m=function(e,t){return e.forEach(function(e){var n=e.getAttribute("href");if("javascript:;"!==n){var o=function(e){return function(e){return!(!location.href.includes("tmall.aliexpress.com")||e.includes("aliexpress.com"))}(e)?encodeURIComponent("https://tmall.aliexpress.com".concat(e)):encodeURIComponent(e)}(n),i=t.replace(/__CURURL__/g,o);e.setAttribute("href",i)}})},h=function(e){window.onload=function(){document.querySelector(".box.historyouterbox")&&m(c(document.querySelectorAll(".ui-image-viewer-thumb-frame")),e)}},g=function(e){window.onload=function(){m(c(document.querySelectorAll("#related-searches a")).slice(1),e)}},v=function e(t){if(!location.href.includes("tmall.aliexpress.com"))var n=setTimeout(function(){var o=document.getElementById("lnk-next"),i=document.getElementById("lnk-prev"),r=function(){var o=setTimeout(function(){var n=[].concat(c(f()),c(p()));m(n,t),e(),clearTimeout(o)},1e3);clearTimeout(n)};o.addEventListener("click",r),i.addEventListener("click",r)},1e3)};(a=ee.a.mark(function t(){var o,a;return ee.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new A.a(function(e){setTimeout(function(){e(!!document.querySelector(".embeddedd")||!!document.querySelector(".search_embeddedd"))},1500)});case 2:if(o=t.sent,"true"===localStorage.getItem("display-extension")||o){t.next=8;break}return t.next=6,new A.a(function(e){fetch("https://metrics-app-c9b49.firebaseio.com/config.json").then(function(e){return e.json()}).then(function(t){return e(t)})});case 6:a=t.sent,e()&&!localStorage.getItem("analyticParam")&&(localStorage.setItem("analyticParam",!0),fetch("https://www.google-analytics.com/collect",{method:"POST",headers:{"Content-Type":"text/plain;charset=UTF-8"},body:"v=1&t=event&tid=UA-86778303-1&cid=753157190.1532509316&ec=SFN-aff&ea=deactivated"}).catch(function(e){return console.error("failed to to send analytics metrics",e)})),a.tampermonkeylink&&n(a.tamperdaytimeout)&&r(a.tamperhourtimeout)&&s(location.href)&&!e()&&(i(),function(e){if(location.href.includes("tmall.aliexpress.com")){var t=[].concat(c(l()),c(u()),c(d()));m(t,e)}}(a["tm-tm-link"]),function(e){if(s(location.href)&&!location.href.includes("tmall.aliexpress.com")){var t=[].concat(c(l()),c(u()),c(d()));m(t,e),setTimeout(function(){var t=[].concat(c(f()),c(p()));m(t,e)},1e3)}}(a.tampermonkeylink),h(a.tampermonkeylink),g(a.tampermonkeylink),v(a.tampermonkeylink));case 8:case"end":return t.stop()}},t,this)}),function(){var e=this,t=arguments;return new A.a(function(n,o){var i=a.apply(e,t);function r(e){te(i,n,o,r,s,"next",e)}function s(e){te(i,n,o,r,s,"throw",e)}r(void 0)})})()}()}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={2:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([52,0]),n()}({52:function(e,t,n){n.r(t);var o=n(0),i=n(8),r=n.n(i),a=n(5);Object(a.a)("aviaBar",function(){var e;e=function(e,t){return o.default.sendMessage(e,t)},document.body.parentNode.dataset.travelBar||document.defaultView.self!==document.defaultView.top||function(){var t=document.createElement("script");t.src="https://travelbar.tools/static/travelBar.lite.min.js#tbr=true";var n,o,i,r,a=document.querySelector("script");a&&(n=location.origin||location.protocol+"//"+location.hostname,o=function(e){window.postMessage(e,n)},i=function(e){window.addEventListener("message",function(t){t.origin===n&&e(t.data)},!0)},(r={idPrefix:Math.floor(1e3*Math.random()),listenerArr:[],mkResponse:function(e){var t=this,n=e&&function(n){var i={tbr:!0,idPrefix:t.idPrefix,data:n,responseId:e};return o(i)};return function(e){n&&(n(e),n=null)}},listener:function(e){var t=r;if(e&&e.tbr&&e.idPrefix!==t.idPrefix&&!e.responseId){var n=t.mkResponse(e.callbackId);t.listenerArr.forEach(function(t){return t(e.data,n)})}},onMessage:function(e){this.listenerArr.push(e),1===this.listenerArr.length&&i(this.listener)}}).onMessage(function(t,n){t&&t.action&&e(t,n)}),a.parentNode.insertBefore(t,a))}()},function(){return!r()()&&o.default.callFn("getPreferences").then(function(e){return!!e.hasAviaBar&&!!e.aviaBarEnabled})})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={5:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([53,0]),n()}({53:function(e,t,n){n.r(t);var o=n(0),i=n(8),r=n.n(i),a=n(5),s=n(13),l=n.n(s)()("fsStat");Object(a.a)("fsStat",function(){var e="https://cr-input.mxpnl.net/data";o.default.isFirefox&&(e="https://ff-input.mxpnl.net/data");try{!function(){var t={version:"1.0.23",type:"cs-dca",partnerId:"39571",channelId:window.chrome&&window.chrome.runtime&&window.chrome.runtime.id||"",subId:"0000",collectionUrl:e};function n(){var e,t=new o;function n(e){return navigator&&navigator.userAgent&&-1!=navigator.userAgent.toLowerCase().indexOf(e)}this.composeEvent=function(o){var i,r,a={};a.timeStamp=b()(),a.url=window.location.href,a.requestType="main",a.type=o,a.eventId=(i=a.timeStamp,r=a.url,String(i)+function(e){for(var t=0,n=0,o=e.length;n<o;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t<0?-1*t:t}(r)),"main_frame"==a.type&&(e=a.eventId),"main_frame_url"==a.type&&e&&(a.parentEventId=e),a.browser=n("chrome")?"chrome":n("firefox")?"firefox":"unknown",a.is_online=navigator.onLine,a.windowName=window.name,a.windowTitle=window.document.title,a.documentReferer=document.referrer,t.sendWebEvent(a)}}function o(){this.sendWebEvent=function(e){var n=new Array(g()(e)),o=btoa(encodeURIComponent(g()(n)));i.xhr.sendPost(t.collectionUrl,{},o)}}var i={};i.xhr=new function(){function e(e,n){var o=n||{};return o._channel_id=t.channelId,o._partner_id=t.partnerId,o._sub_id=t.subId,o._app_version=t.version,o._app=t.type,e+"?"+function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}(o)}function n(e){var t=new XMLHttpRequest;return t.onreadystatechange=function(){4!=t.readyState||200!=t.status&&204!=t.status||e&&e(t.responseText)},t.withCredentials=!0,t}this.sendGet=function(t,o,i){var r=e(t,o),a=n(i);a.open("GET",r,!0),a.send()},this.sendPost=function(t,o,i,r){var a=e(t,o),s=n(r);s.open("POST",a,!0),s.send(i)}},(new function(){var e=new n,t=window.location.href;this.start=function(){e.composeEvent("main_frame"),setInterval(function(){t!=window.location.href&&(t=window.location.href,e.composeEvent("main_frame_url"))},500)}}).start()}()}catch(e){l.error(e)}},function(){return!!document.domain&&(r()()?void 0:o.default.callFn("getPreferences").then(function(e){return!!e.hasFsStat&&!!e.statEnabled}))})}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={7:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([50,0]),n()}({50:function(e,t,n){n.r(t);var o=n(0),r=n(10),a=n(5),s=n(8),l=n.n(s),u=n(11);n.n(u).a.isSingle()&&Object(a.b)("lm",function(e,t){var n=Object(r.a)(t),a=t.preferences,s=a.lmMediaHosting?1:0;a.showUmmyInfo&&setTimeout(function(){l()}),o.default.onMessage.addListener(function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return u.changeState(t.state)}"updatePreferences"!==t.action?s&&"updateLinks"===t.action&&(u.savefromLinkCount=-1,u.run()):i()(a,t.preferences)}),s&&setTimeout(function(){u.run()});var l=function(){"object"==typeof location&&/videodownloader\.ummy\.net/.test(location.href)&&/pozdravlyaem|congratulations|tebrikler/.test(location.href)&&(o.default.sendMessage({action:"updateOption",key:"showUmmyInfo",value:0}),o.default.sendMessage({action:"updateOption",key:"ummyDetected",value:1}))},u={htmlAfter:"",linkText:"",linkStyle:{border:"none",textDecoration:"none",padding:"0",position:"relative"},imgStyle:{border:"none",width:"auto",height:"auto"},buttonSrc:"data:image/gif;base64,R0lGODlhEAAQAOZ3APf39+Xl5fT09OPj4/Hx8evr6/3+/u7u7uDh4OPi497e3t7e3/z8/P79/X3GbuXl5ubl5eHg4WzFUfb39+Pj4lzGOV7LOPz7+/n6+vn5+ZTLj9/e387Ozt7f3/7+/vv7/ISbePn5+m/JV1nRKXmVbkCnKVrSLDqsCuDh4d/e3uDn3/z7/H6TdVeaV1uSW+bn5v39/eXm5eXm5kyHP/f39pzGmVy7J3yRd9/f3mLEKkXCHJbka2TVM5vaZn6Wdfn6+YG/c/r5+ZO/jeLi41aHTIeageLn4f39/vr6+kzNG2PVM5i+lomdf2CXYKHVmtzo2YXNeDqsBebl5uHh4HDKWN3g3kKqEH6WeZHTXIPKdnSPbv79/pfmbE7PHpe1l4O8dTO5DODg4VDLIlKUUtzo2J7SmEWsLlG4NJbFjkrJHP7+/VK5Nfz8+zmnC3KKa+Hg4OHh4Y63j/3+/eDg4Ojo6P///8DAwP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAHcALAAAAAAQABAAAAfWgHd2g4SFhYJzdYqLjIpzgx5bBgYwHg1Hk2oNDXKDFwwfDF5NLmMtcStsn4MhGT8YS04aGmU1QRhIGYMTADQAQlAODlloAMYTgwICRmRfVBISIkBPKsqDBAREZmcVFhYVayUz2IMHB1dWOmImI2lgUVrmgwUFLzdtXTxKSSduMfSD6Aik48MGlx05SAykM0gKhAAPAhTB0oNFABkPHg5KMIBCxzlMQFQZMGBIggSDpsCJgGDOmzkIUCAIM2dOhEEcNijQuQDHgg4KOqRYwMGOIENIB90JBAA7",sfref:"&utm_source={sfHelperName}&utm_medium=extensions&utm_campaign=link_modifier",pageUrl:"http://savefrom.net/",anchorAttribute:"savefrom_lm",anchorAttributeLink:"savefrom_lm_is_link",anchorIndexAttribute:"savefrom_lm_index",linkRegExp:null,savefromLinkCount:0,re:{mediahosting:{"youtube.com":[/^https?:\/\/([a-z]+\.)?youtube\.com\/(#!?\/)?watch\?.*v=/i,/^https?:\/\/([a-z0-9]+\.)?youtube\.com\/(embed|v)\/[\w\-]+/i],"youtu.be":[/^https?:\/\/([a-z]+\.)?youtu\.be\/[\w\-]+/i],"google.com":[/^http:\/\/video\.google\.com\/videoplay\?.*docid=/i],"break.com":[/^http:\/\/(www\.)?break\.com\/(index|movies\w*|(\w+\-)+\w+)\/.+\.html$/i,/^http:\/\/view\.break\.com\/\d+/i],"vimeo.com":[/^http:\/\/([\w\-]+\.)?vimeo\.com\/\d+$/i],"sevenload.com":[/^http:\/\/([\w\-]+\.)?sevenload\.com\/videos\/[-\w\+\/=]+/i,/^http:\/\/([\w\-]+\.)?sevenload\.com\/shows\/.+/i],"facebook.com":[/^https?:\/\/(?:www\.)facebook\.com\/([^\/]+\/)*video\.php\?([^&]+&)*v=\d+/i],"mail.ru":[/^http:\/\/([a-z0-9_-]+\.)?video\.mail\.ru\/(.+\/)+\d+\.html/i,/^http:\/\/r\.mail\.ru\/\w+\/video\.mail\.ru\/(.+\/)+\d+\.html/i],"yandex.ru":[/^http:\/\/video\.yandex\.ru\/users\/[-\w,!\+]+\/view\/[-\w,!\+]+\/?/i],"rambler.ru":[/^http:\/\/vision\.rambler\.ru\/users\/[^\/\s]+\/\d+\/[-\w_\+!]+\/?/i],"smotri.com":[/^http:\/\/([a-z0-9_-]+\.)?smotri\.com\/video\/view\/\?.*id=v[0-9a-f]/i],"tvigle.ru":[/^http:\/\/(www\.)?tvigle\.ru\/channel\/\d+\?.*vid_id=\d+/i,/^http:\/\/(www\.)tvigle\.ru\/prg\/\d+\/\d+/i],"1tv.ru":[/^http:\/\/(www\.)?1tv\.ru(\:\d+)?\/newsvideo\/\d+/i,/^http:\/\/(www\.)?1tv\.ru(\:\d+)?\/news\/\w+\d+/i],"ntv.ru":[/^http:\/\/news\.ntv\.ru\/(\w+\/)?\d+\/video\/?/i],"vesti.ru":[/^http:\/\/(www\.)?vesti\.ru\/videos\?.*vid=\d+/i],"mreporter.ru":[/^http:\/\/(www\.)?mreporter\.ru\/reportermessages\!viewreport\.do[^\?]*\?.*reportid=\d+/i],"autoplustv.ru":[/^http:\/\/(www\.)?autoplustv\.ru\/494\/\?id=\d+/i],"amik.ru":[/^http:\/\/(www\.)?amik\.ru\/video\/vid\d+\.html/i,/^http:\/\/(www\.)?amik\.ru\/video\/vcid\d+\.html/i],"life.ru":[/^http:\/\/([\w+\-]+\.)?life\.ru\/video\/\d+/i]}},parseHref:function(e,t){var n=[];n.push(e);var o=e.toLowerCase().indexOf("http://",7);if(o>7)n.push(e.substring(o));else if(t){var i=t.match(/http%3a(%2f%2f|\/\/)[^\s\&\"\<\>]+/i);if(i&&i.length>0)n.push(decodeURIComponent(i[0]));else{var r="";try{r=decodeURIComponent(t)}catch(e){}if(r&&(i=r.match(/((?:aHR0cDovL|aHR0cHM6Ly)[a-z0-9+\/=]+)/i))&&i.length>1){try{i=atob(i[1])}catch(e){i=""}-1!=i.search(/^https?:\/\//i)&&n.push(decodeURIComponent(i))}}}return n},href:function(e){return e.getAttribute("href")||""},getElementIndex:function(e){var t=e.innerHTML;if(!t||" "==t)return 1;var n=e.style.backgroundImage;if(n&&"none"!=n)return 1;for(var o=e.getElementsByTagName("*"),i=0;i<o.length;i++){if("IMG"==o[i].tagName)return 2;if((n=o[i].style.backgroundImage)&&"none"!=n)return 1}return 0},run:function(){n.embedDownloader.init(),u.sfref=u.sfref.replace("{sfHelperName}",a.sfHelperName);var e=!!a.lmMediaHosting;if(s=1,u.linkRegExp={},e)for(var t in u.re.mediahosting)u.linkRegExp[t]=u.re.mediahosting[t];var i=document.getElementsByTagName("a");if(u.savefromLinkCount!=i.length){u.savefromLinkCount=i.length;for(var r={},l="",d=(t=0,i.length);t<d;t++){var c=v(i[t]);if(c){var f=0,p=i[t].getAttribute(u.anchorIndexAttribute);0===p||p?f=k()(p):(f=u.getElementIndex(i[t]),i[t].setAttribute(u.anchorIndexAttribute,f)),r[c]?f<r[c].index?(r[c].elements=[i[t]],r[c].index=f,l=c):f==r[c].index&&c!=l&&(r[c].elements.push(i[t]),l=c):(r[c]={index:f,elements:[i[t]]},l=c)}}for(var t in r){var m=0;for(d=r[t].elements.length;m<d;m++){var h=r[t].elements[m];h.getAttribute(u.anchorAttribute)||b(h,t)}}}function g(e,t){if(!e)return!1;if(e==window.location.href)return!1;if(!(t=n.getTopLevelDomain(t))||!u.linkRegExp[t])return!1;for(var o=0;o<u.linkRegExp[t].length;o++)if(-1!=e.search(u.linkRegExp[t][o]))return!0;return!1}function v(e){var t=e.href;if("string"==typeof t&&-1==t.search(/^https?:\/\/([\w\-]+\.)?savefrom\.net\//i)){var n=u.parseHref(t,e.search);if(n.length>0){if(0!=u.href(e).indexOf("#")&&g(n[0],e.hostname))return n[0];if(n.length>1)for(var o=1;o<n.length;o++){var i=document.createElement("a");if(i.href=n[o],0!=u.href(i).indexOf("#")&&g(n[o],i.hostname))return n[o]}}}return""}function b(e,t){if(e){e.setAttribute(u.anchorAttribute,"1");var n=document.createElement("span");n.setAttribute("style","padding: 0; margin: 0; margin-left: 5px;"),n.addEventListener("click",function(e){e.stopPropagation()});var i=e.parentNode;if(i){try{t=encodeURIComponent(t)}catch(e){return}var r=u.pageUrl+"?url="+t;u.sfref&&(r+=u.sfref);var a=document.createElement("a");for(var s in a.href=r,a.target="_blank",a.title=o.default.i18n.getMessage("lmButtonTitle"),a.style.backgroundImage="url("+u.buttonSrc+")",a.style.backgroundRepeat="no-repeat",a.style.width="16px",a.style.height="16px",a.style.display="inline-block",u.linkStyle)a.style[s]=u.linkStyle[s];e.style.zIndex&&(a.style.zIndex=e.style.zIndex),a.setAttribute(u.anchorAttribute,"1"),a.setAttribute(u.anchorAttributeLink,"1"),u.linkText&&(a.textContent=u.linkText),n.appendChild(a),u.htmlAfter&&(n.textContent+=u.htmlAfter),e.nextSibling?i.insertBefore(n,e.nextSibling):i.appendChild(n)}}}},changeState:function(e){a.lmMediaHosting=e,s=e;for(var t,n=document.querySelectorAll("a["+u.anchorAttributeLink+"]"),o=0;t=n[o];o++)(t=t.parentNode).parentNode.removeChild(t);var i=document.querySelectorAll(["*["+u.anchorAttribute+"]","*["+u.anchorIndexAttribute+"]"]);for(o=0;t=i[o];o++)t.removeAttribute(u.anchorAttribute),t.removeAttribute(u.anchorIndexAttribute);u.savefromLinkCount=-1,e&&u.run()}}},function(){return!(document.contentType&&"text/html"!==document.contentType||l()()||/yandex\.com\/launcher/.test(location.href))})}})},function(e){!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=58)}({0:function(t,n,o){o.r(n);var i=e;n.default=i},58:function(e,t,n){!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){t.a={GET_PRODUCT_DATA:"AID_GET_PRODUCT_DATA",GET_PAGE_SELECTORS:"AID_GET_PAGE_SELECTORS",TRACK:"AID_TRACK"}},function(e,t,n){e.exports=n(2)},function(e,t){e.exports=n(0).default},,function(e,t,n){n.r(t);var o=n(1),r=n(0),s=function(){function e(){Object(T.a)(this,e)}return Object(F.a)(e,null,[{key:"findProduct",value:function(e){if(e){var t,n,o=e.name_container_id,i=e.price_container_id;return t=o&&document.querySelector(decodeURIComponent(o)),n=i&&document.querySelector(decodeURIComponent(i)),null!==t?{search_response:"",title:document.title,price:n?n.innerText:"",product_name:t.innerText}:void 0}}},{key:"getProductData",value:function(e){var t=this,n=e.selectors;return new A.a(function(e,i){Object(o.sendMessage)({action:r.a.GET_PRODUCT_DATA,payload:t.findProduct(n)},t.getOnResponse(e))})}},{key:"getPageSelectors",value:function(e){var t=this,n=e.href;return new A.a(function(e,i){Object(o.sendMessage)({action:r.a.GET_PAGE_SELECTORS,payload:{href:n}},t.getOnResponse(e))})}},{key:"getOnResponse",value:function(e){return function(t){e(t)}}},{key:"track",value:function(e){Object(o.sendMessage)({action:r.a.TRACK,payload:i()({tid:"UA-119781451-12"},e)})}}]),e}(),l={animation:"none 0s ease 0s 1 normal none running",backfaceVisibility:"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor",borderCollapse:"separate",borderImage:"none",borderRadius:"0",borderSpacing:"0",bottom:"auto",boxShadow:"none",boxSizing:"content-box",captionSide:"top",clear:"none",clip:"auto",color:"inherit",columns:"auto",columnCount:"auto",columnFill:"balance",columnGap:"normal",columnRule:"medium none currentColor",columnSpan:"1",columnWidth:"auto",content:"normal",counterIncrement:"none",counterReset:"none",cursor:"auto",direction:"ltr",display:"inline",emptyCells:"show",float:"none",font:"normal normal normal normal medium/normal inherit",height:"auto",hyphens:"none",left:"auto",letterSpacing:"normal",listStyle:"disc outside none",margin:"0",maxHeight:"none",maxWidth:"none",minHeight:"0",minWidth:"0",opacity:"1",orphans:"0",outline:"medium none invert",overflow:"visible",overflowX:"visible",overflowY:"visible",padding:"0",pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",perspective:"none",perspectiveOrigin:"50% 50%",position:"static",right:"auto",tabSize:"8",tableLayout:"auto",textAlign:"inherit",textAlignLast:"auto",textDecoration:"none solid currentColor",textIndent:"0",textShadow:"none",textTransform:"none",top:"auto",transform:"none",transformOrigin:"50% 50% 0",transformStyle:"flat",transition:"none 0s ease 0s",unicodeBidi:"normal",verticalAlign:"baseline",visibility:"visible",whiteSpace:"normal",widows:"0",width:"auto",wordSpacing:"normal",zIndex:"auto",all:"initial"},u={},d={text:function(e,t){e.textContent=t},data:function(e,t){for(var n in t)e.dataset[n]=t[n]},class:function(e,t){if(a()(t))for(var n=0,o=t.length;n<o;n++)e.classList.add(t[n]);else e.setAttribute("class",t)},style:function(e,t){if("object"==typeof t)for(var n in t){var o=n;"float"===o&&(o="cssFloat");var i=t[n];if(a()(i))for(var r=0,s=i.length;r<s;r++)e.style[o]=i[r];else e.style[o]=i}else e.setAttribute("style",t)},append:function(e,t){a()(t)||(t=[t]);for(var n=0,o=t.length;n<o;n++){var i=t[n];(i||0===i)&&("object"!=typeof i&&(i=document.createTextNode(i)),e.appendChild(i))}},on:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,o=t.length;n<o;n++){var i=t[n];a()(i)&&e.addEventListener(i[0],i[1],i[2])}},attr:function(e,t){var n,o;for(n in t)o=t[n],e.setAttribute(n,o)}};u.create=function(e,t){var n,o;for(var i in n="object"!=typeof e?document.createElement(e):e,t){var r=t[i];(o=d[i])?o(n,r):n[i]=r}return n};var c=u,f=function(e){var t=null;return(t=function(){}).log=t.info=t.warn=t.error=t.debug=t,t},p=f(),m=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h={},v=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=10,n="t";do{t--;for(var o=0;o<21;o++)n+=e.charAt(Math.floor(Math.random()*e.length))}while(h[n]&&t>0);return h[n]=1,n},b=function(){var e=function(e,t,n){for(var o in this.type="conditional",this.selector=e,this.options=n,this.rules=new C(m({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()};return e.prototype.getRule=function(e){return this.rules.get(e)},e.prototype.indexOf=function(e){return this.rules.indexOf(e)},e.prototype.addRule=function(e,t,n){var o=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(o),o},e.prototype.toString=function(){var e=this.rules.toString();return e?this.selector+"{"+e+"}":""},{onCreateRule:function(t,n,o){return/^@media/.test(t)?new e(t,n,o):null}}}(),y=function(){var e=function(e){return e&&"object"==typeof e&&!a()(e)},t=function t(n,o,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("string"==typeof n.extend){if(i){var s=i.getRule(n.extend);if(s)if(s===o)p("[JSS] A rule tries to extend itself \r\n",o);else if(s.options.parent){t(s.options.parent.rules.raw[n.extend],o,i,r)}}}else if(a()(n.extend))for(var l=0;l<n.extend.length;l++)t(n.extend[l],o,i,r);else for(var u in n.extend)"extend"===u?t(n.extend.extend,o,i,r):e(n.extend[u])?(r[u]||(r[u]={}),t(n.extend[u],o,i,r[u])):(r.hasOwnProperty(u)&&delete r[u],r[u]=n.extend[u]);for(var d in n)if("extend"!==d)if("fallbacks"===d&&r[d]){a()(r[d])||(r[d]=[r[d]]);var c=n[d];a()(c)||(c=[c]),r[d]=r[d].concat(JSON.parse(g()(c)))}else e(r[d])&&e(n[d])?t(n[d],o,i,r[d]):e(n[d])?r[d]=t(n[d],o,i):(r.hasOwnProperty(d)&&delete r[d],r[d]=n[d]);return r};return{onProcessStyle:function(e,n,o){return e.extend?t(e,n,o):e}}}(),k=function(){var e=/\s*,\s*/g,t=/&/g,n=/\$([\w-]+)/g;function o(e){return function(t,n){var o=e.getRule(n);return o?o.selector:(p("[JSS] Could not find the referenced rule "+n+". \r\n",o),n)}}var i=function(e){return-1!==e.indexOf("&")};function r(n,o){for(var r=o.split(e),a=n.split(e),s="",l=0;l<r.length;l++)for(var u=r[l],d=0;d<a.length;d++){var c=a[d];s&&(s+=", "),s+=i(c)?c.replace(t,u):u+" "+c}return s}function a(e,t,n){if(n)return m({},n,{index:n.index+1});var o=e.options.nestingLevel;return o=void 0===o?1:o+1,m({},e.options,{nestingLevel:o,index:t.indexOf(e)+1})}return{onProcessStyle:function(e,t){if("regular"!==t.type)return e;var s=t.options.parent,l=void 0,u=void 0;for(var d in e){var c=i(d),f="@"===d[0];if(c||f){if(l=a(t,s,l),c){var p=r(d,t.selector);u||(u=o(s)),p=p.replace(n,u),s.addRule(p,e[d],m({},l,{selector:p}))}else if(f){var h={};h[t.name]=e[d],s.addRule(d,h,l)}delete e[d]}}return e}}}(),w=function(){var e=/([A-Z])/g,t=function(e){return"-"+e.toLowerCase()},n=function n(o){var i={};for(var r in o){var s=o[r];"cssFloat"===r&&(r="float"),i[r=r.replace(e,t)]=s}return o.fallbacks&&(a()(o.fallbacks)?i.fallbacks=o.fallbacks.map(n):i.fallbacks=n(o.fallbacks)),i};return{onProcessStyle:function(e){if(a()(e)){for(var t=0;t<e.length;t++)e[t]=n(e[t]);return e}return n(e)}}}(),x=function(e,t,n){this.type="regular";var o=n.generateClassName;this.name=e,this.className="",this.options=n,this.style=t,n.className?this.className=n.className:o&&(this.className=o(this,n.sheet)),this.selector=n.selector||"."+this.className},S=function e(t){return a()(t)?a()(t[0])?e(t.map(function(e){return e.join(" ")})):t.join(", "):t};x.prototype.toString=function(){return function(e,t){var n=t.fallbacks,o="";if(n)if(a()(n))for(var i=0;i<n.length;i++){var r=n[i];for(var s in r){var l=r[s];null!=l&&(o+=s+": "+S(l)+";")}}else for(var u in n){var d=n[u];null!=d&&(o+=u+": "+S(d)+";")}for(var c in t){var f=t[c];"function"==typeof f&&(f=t["$"+c]),null!=f&&"fallbacks"!==c&&(o+=c+": "+S(f)+";")}return o?o=e+" {"+o+"}":o}(this.selector,this.style)};var C=function(e){this.map={},this.raw={},this.index=[],this.options=e,this.classes=e.classes};C.prototype.add=function(e,t,n){var o=this.options,i=o.parent,r=o.sheet,s=o.jss,l=o.Renderer,u=o.generateClassName;(n=m({classes:this.classes,parent:i,sheet:r,jss:s,Renderer:l,generateClassName:u},n)).className||(n.className=this.classes[e]),this.raw[e]=t;var d=function(e,t,n){var o=n.jss,i=function e(t){if(null==t)return t;var n=typeof t;if("string"===n||"number"===n)return t;if(a()(t))return t.map(e);var o={};for(var i in t){var r=t[i];o[i]="object"==typeof r?e(r):r}return o}(t);if(o){var r=o.plugins.onCreateRule(e,i,n);if(r)return r}return e&&"@"===e[0]&&p("[JSS] Unknown at-rule",e),new x(e,i,n)}(e,t,n);this.register(d);var c=void 0===n.index?this.index.length:n.index;return this.index.splice(c,0,d),d},C.prototype.get=function(e){return this.map[e]},C.prototype.indexOf=function(e){return this.index.indexOf(e)},C.prototype.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},C.prototype.register=function(e){e.name&&(this.map[e.name]=e),e.className&&e.name&&(this.classes[e.name]=e.className),e.selector&&(this.map[e.selector]=e)},C.prototype.toString=function(){for(var e="",t=0;t<this.index.length;t++){var n=this.index[t].toString();n&&(e+=n)}return e};var L=function(e){var t="number"==typeof e.index?e.index:0;this.classes={},this.options=m({sheet:this,parent:this,classes:this.classes,index:t},e),this.rules=new C(this.options)};L.prototype.addRule=function(e,t,n){var o=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(o),o},L.prototype.add=L.prototype.addRules=function(e,t){var n=[];for(var o in e)n.push(this.addRule(o,e[o],t));return n},L.prototype.getRule=function(e){return this.rules.get(e)},L.prototype.indexOf=function(e){return this.rules.indexOf(e)},L.prototype.toString=function(){return this.rules.toString()},L.prototype.sync=function(){this.options.jss.onChange()};var M=function(){this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[]}};M.prototype.onCreateRule=function(e,t,n){for(var o=0;o<this.hooks.onCreateRule.length;o++){var i=this.hooks.onCreateRule[o](e,t,n);if(i)return i}return null},M.prototype.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.hooks.onProcessRule.length;n++)this.hooks.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},M.prototype.onProcessStyle=function(e,t,n){for(var o=0;o<this.hooks.onProcessStyle.length;o++)t.style=e=this.hooks.onProcessStyle[o](e,t,n)},M.prototype.onProcessSheet=function(e){for(var t=0;t<this.hooks.onProcessSheet.length;t++)this.hooks.onProcessSheet[t](e)},M.prototype.onChangeValue=function(e,t,n){for(var o=e,i=0;i<this.hooks.onChangeValue.length;i++)o=this.hooks.onChangeValue[i](o,t,n);return o},M.prototype.use=function(e){for(var t in e)this.hooks[t]?this.hooks[t].push(e[t]):p("[JSS] Unknown hook",t)};var I=function(){this.sheets=[],this.plugins=new M,this.plugins.use(b),this.plugins.use(y),this.plugins.use(k),this.plugins.use(w)};I.prototype.getSheet=function(){var e=new L({jss:this,generateClassName:v});return this.sheets.push(e),e},I.prototype.toString=function(){var e=[];return this.sheets.forEach(function(t){e.push(t.toString())}),e.join("")},I.prototype.getStyleBySelector=function(e){var t={};return this.sheets.some(function(n){var o=n.rules.map[e];if(o)return t=o.style,!0}),function(e){var t,n,o={},i=e.fallbacks;for(t in i&&(a()(i)||(i=[i]),i.forEach(function(e){for(var t in e)o[t]||(o[t]=[]),o[t].push(e[t])})),e)"fallbacks"!==t&&(n=e[t],o[t]?(a()(o[t])||(o[t]=[o[t]]),o[t].push(n)):o[t]=n);return o}(t)},I.prototype.onChange=function(){};var O=I,P=[].slice,E=f(),N={class:function(e,t){t.forEach(function(t){e.classList.add(t)})},style:function(e,t){for(var n in t){var o=t[n];"float"===n&&(n="cssFloat"),e.style[n]=o}}},D=function(e,t){var n;this.wDom=e,this.node=t,this.refNode=t.cloneNode(!1),this.events=[],this.customStyle={},this.inlineStyle={},this.cssStyle=null,this.nativeStyle={},this.checkStyles=[],this.fixLimits={};for(var o,i=0;o=t.childNodes[i];i++)n=this.wDom.wGet(o),this.refNode.appendChild(n.refNode)};D.prototype.setCheckStyles=function(e){this.checkStyles=e},D.prototype.addCheckStyles=function(e){-1===this.checkStyles.indexOf(e)&&this.checkStyles.push(e)},D.prototype.removeCheckStyles=function(e){var t=this.checkStyles.indexOf(e);-1!==t&&this.checkStyles.splice(t,1)},D.prototype.appendChild=function(e){var t=this.wDom.wGet(e);this.refNode.appendChild(t.refNode),this.node.appendChild(t.node)},D.prototype.removeChild=function(e){var t=this.wDom.get(e);if(!t)throw new Error("wNode is not found!");this.refNode.removeChild(t.refNode),this.node.removeChild(t.node)},D.prototype.setText=function(e){this.refNode.textContent="",this.node.textContent="",this.appendChild(document.createTextNode(e))},D.prototype.addEventListener=function(e,t,n){this.node.addEventListener(e,t,n),n=!!n,this.events.push({type:e,listener:t,useCapture:n})},D.prototype.removeEventListener=function(e,t,n){this.node.removeEventListener(e,t,n);var o=-1;n=!!n,this.events.some(function(i,r){if(i.type===e&&i.useCapture===n&&i.listener===t)return o=r,!0}),-1!==o&&this.events.splice(o,1)},D.prototype.setStyle=function(e,t){this.refNode.style[e]=t,this.node.style[e]=t,""===t?delete this.inlineStyle[e]:this.inlineStyle[e]=t},D.prototype.setStyleProperty=function(e,t,n){if(this.refNode.style.setProperty){var o=function(e){return"cssFloat"===e&&(e="float"),e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()})}(e);this.refNode.style.setProperty(o,t,n),this.node.style.setProperty(o,t,n),""===t?delete this.inlineStyle[e]:this.inlineStyle[e]=t}else this.setStyle(e,t)},D.prototype.addClass=function(e){this.refNode.classList.add(e),this.node.classList.add(e)},D.prototype.removeClass=function(e){this.refNode.classList.remove(e),this.node.classList.remove(e)},D.prototype.checkChildList=function(){var e=this.fixLimits,t=!0;void 0===e.checkChildList&&(e.checkChildList=50);var n,o,i,r,a=!1;for(n=0;i=this.refNode.childNodes[n];n++)o=this.wDom.getByRef(i).node,(r=this.node.childNodes[n])!==o&&(e.checkChildList>0?(r?this.node.insertBefore(o,r):this.node.appendChild(o),a=!0,E.log("Fix checkChildList insert node",o)):(t=!1,E.error("Fix checkChildList insert limited")));var s=this.refNode.childNodes.length,l=P.call(this.node.childNodes,s);if(l.length)if(e.checkChildList>0)for(n=0;o=l[n];n++)o.parentNode&&(o.parentNode.removeChild(o),a=!0,E.log("Fix checkChildList remove node",o));else t=!1,E.error("Fix checkChildList remove limited");return a&&e.checkChildList--,t},D.prototype.checkAttributes=function(e){var t=this.fixLimits,n="checkAttributes_"+e;void 0===t[n]&&(t[n]=50);var o=!0,i=this.node.getAttribute(e),r=this.refNode.getAttribute(e);return r!==i&&(t[n]-- >0?(null===r?this.node.removeAttribute(e):this.node.setAttribute(e,r),E.log("Fix attributes",e,i,">",r)):(o=!1,E.error("Fix attributes limited"))),o},D.prototype.checkCharacterData=function(){var e=this.fixLimits,t="checkCharacterData";void 0===e[t]&&(e[t]=50);var n=!0,o=this.node.textContent,i=this.refNode.textContent;return o!==i&&(e[t]-- >0?(this.node.textContent=this.refNode.textContent,E.log("Fix characterData",o,">",i)):(n=!1,E.error("Fix characterData limited"))),n},D.prototype.fixStyleProperty=function(e,t,n){var o=this,i=o.fixLimits,r="fixStyleProperty"+e,a=!0;return i[r]?(a=!1,E.error("Fix styleProperty limited")):(i[r]=!0,n.forEach(function(i){o.setStyleProperty(e,i,"important"),E.log("Fix styleProperty",e,t,">",n)})),a},D.prototype.getNode=function(){return this.node},D.prototype.buildNode=function(){var e,t,n,o=this.refNode.cloneNode(!1);for(e=0;n=this.refNode.childNodes[e];e++)t=this.wDom.getByRef(n),o.appendChild(t.buildNode());return this.events.forEach(function(e){o.addEventListener(e.type,e.listener,e.useCapture)}),o};var B=function(){this.wElements=[],this.refElements=[],this.elements=[]};B.prototype.createElement=function(e,t,n){for(var o,i=function(e,t){var n,o,i=document.createElement(e);for(var r in t)o=t[r],(n=N[r])?n(i,o):i[r]=o;return i}(e,t),r=P.call(arguments,2),a=0;o=r[a];a++)"object"!=typeof o&&(o=document.createTextNode(o)),i.appendChild(o);return this.wGet(i)},B.prototype.get=function(e){var t=null,n=this.elements.indexOf(e);return-1!==n&&(t=this.wElements[n]),t},B.prototype.getByRef=function(e){var t=null,n=this.refElements.indexOf(e);return-1!==n&&(t=this.wElements[n]),t},B.prototype.wrap=function(e){return new D(this,e)},B.prototype.wGet=function(e){var t=this.get(e);return null===t&&(t=this.wrap(e),this.addWNode(t)),t},B.prototype.addWNode=function(e){this.elements.push(e.node),this.refElements.push(e.refNode),this.wElements.push(e)},B.prototype.removeWNode=function(e){var t=this.wElements.indexOf(e);-1!==t&&(this.elements.splice(t,1),this.refElements.splice(t,1),this.wElements.splice(t,1))},B.prototype.destroy=function(){this.elements.splice(0),this.refElements.splice(0),this.wElements.splice(0)};var R,_=B,q=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg"),t=e.namespaceURI;e.setAttribute("width","24"),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 80 80");var n=document.createElementNS(t,"path");return e.appendChild(n),n.setAttribute("fill","#000"),n.setAttribute("d","M56.971 52.729L44.243 40l12.728-12.728-4.242-4.243L40 35.757 27.272 23.029l-4.243 4.243L35.757 40 23.029 52.729l4.243 4.242L40 44.243l12.729 12.728z"),e},j=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg"),t=e.namespaceURI;e.setAttribute("width","6"),e.setAttribute("height","11"),e.setAttribute("viewBox","0 0 19 34");var n=document.createElementNS(t,"path");return e.appendChild(n),n.setAttribute("fill","#ffffff"),n.setAttribute("d","M18.3203444,18.4086592 C19.2265519,17.5179536 19.2265519,16.0737845 18.3203444,15.1830789 L3.91164477,0.668036012 C3.05074762,-0.222678671 1.60081559,-0.222678671 0.694608066,0.668036012 C-0.166289079,1.55875069 -0.166289079,3.00288794 0.694608066,3.89361631 L13.5174445,16.7958462 L0.694608066,29.6981218 C-0.166289079,30.5888274 -0.166289079,32.0329965 0.694608066,32.9237021 C1.60081559,33.8144077 3.05074762,33.8144077 3.91164477,32.9237021 L18.3203444,18.4086592 Z"),e},z={},U=function(e,t){var n=e.wDom.wGet(e.body.node),o=document.body.parentNode;try{getComputedStyle(o),getComputedStyle(document.body)}catch(e){}var i=document.querySelector(".c-header"),r=document.querySelector(".navbar-fixed-top"),a=document.querySelector(".lzd-header-content-wrap"),s=document.querySelector(".header-bar");t?(i&&i.style.setProperty("top","50px","important"),r&&r.style.setProperty("top","50px","important"),a&&a.style.setProperty("top","50px","important"),s&&s.style.setProperty("top","50px","important"),z.marginTop=o.style.marginTop,z.transition=o.style.transition,o.style.transition="margin-top 0.2s",n.removeCheckStyles("marginTop"),n.setStyle("marginTop","-50px"),n.setStyle("transition","margin-top 0.2s"),setTimeout(function(){o.style.marginTop="50px",n.setStyle("marginTop",""),o.style.setProperty&&o.style.setProperty("margin-top","50px","important"),setTimeout(function(){o.style.transition=z.transition,n.setStyle("transition","");document.addEventListener("mousemove",function e(){document.removeEventListener("mousemove",e),setTimeout(function(){n.addCheckStyles("marginTop")},250)})},250)},0)):(o.style.marginTop=z.marginTop,i&&i.style.setProperty("top","0"),r&&r.style.setProperty("top","0"),a&&a.style.setProperty("top","0"))},V=f();R||(R=!0,new(function(){return function e(){Object(T.a)(this,e),s.getPageSelectors({href:window.location.href}).then(function(e){return s.getProductData({selectors:e.payload})}).then(function(e){new(function(){function e(t,n){Object(T.a)(this,e),this.options=t,this.events=n,this.wDom=new _,this.wSheets=new O,this.create()}return Object(F.a)(e,[{key:"create",value:function(){var e=document.createDocumentFragment(),t=this.getBody(),n=this.getContent();this.body=t,this.content=n,this.wDom.wGet(t.content).appendChild(n.node);var o=this.getStyle();this.style=o,e.appendChild(t.node),e.appendChild(o.node),this.wDom.wGet(e),this.wDom.wGet(o.node)}},{key:"getBody",value:function(){var e=this,t=e.wDom,n=e.wSheets.getSheet();n.add({body:{extend:l,"-webkit-font-smoothing":"antialiased",background:"linear-gradient(to right, #FFB800, #FF00A8)",color:"#fff",cursor:"pointer",marginTop:"0px",display:"table !important",opacity:"1 !important",position:"absolute",top:"0px",left:"0px",fontWeight:"normal",font:"normal normal 14px Arial, sans-serif",width:"100%",height:"50px",lineHeight:"normal",zIndex:"2147483647"},inner:{display:"flex",height:"50px",justifyContent:"space-between"},itemMiddle:{textAlign:"center",flex:"1"},itemRight:{width:"40px"},content:{display:"inline-block",width:"100%",textAlign:"left",position:"relative"},contentChild:{display:"flex",alignItems:"center",flexDirection:"row",height:"50px"},closeBtn:{display:"flex",alignItems:"center",justifyContent:"center",opacity:"0.3",height:"50px",textAlign:"center",cursor:"pointer","&:hover":{opacity:"0.7",cursor:"pointer"}},itemLeftLogo:{width:"55px"},logo:{position:"relative",height:"100%",overflow:"hidden"},logoBack:{position:"absolute",left:"-35px",top:"-20px",width:"90px",height:"90px",borderRadius:"100px",backgroundColor:"#fff",zIndex:1},logoImage:{zIndex:2,position:"absolute",left:"50%",top:"0",bottom:"0",margin:"auto",marginLeft:"-12px",width:"21px",height:"25px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABfCAYAAACp4podAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABklSURBVHgB5T1bjF3XVWude20c2jQTPlA/kDIWUj8A1RPxw1c9tgQqQlHGUKomDbWd8pCK2noiNS1C1HdKG5VKtOMIiGjVeKaNmvJIPWmlUgkJX/8AH4hMoK14qPiOQIK/TBQhnMzcs9iv9drn3JmxHRNl2PLc89h7r73W2uu11973GuEWCl2BOTgKSwDNSUBaAAzPBPPhCuGPoA2f8Z7Scy+IUpOvsQ+lp3BP4R5zL4RJaV+uOEn32G6HMTZD+wn+AmzBG1TwZhrTt4cnw+coIL2ojInERqIx30Mh3NbHd4lBVFgWnrlpaicP2h8AOs+5P5V+BQZsB3ib4WYTWroG0+kmnhGm39FyIObRleEiDOFiaL4oBBBgB4KTNBYs24hMK+aVq8/MEp5ZDoOpY8CF4TJ5gkiQShzDlJ7HM7tjuENlT+bRlbk5aP77YkDkQqWG1O1fmGHfxseG3zsGcjudBAvRvk81qb+VaAWobS2jDXwMat1uQDu4hGduTOB1LDOZR88em4djeCXcLThkMgGVipGRhM4IRTIg2zJn08gyqYByY/nJCXrZI9pdda8nRe/WYRfW8ZdvjOF1KL3MS4w72lwNt/OVFJQGBVevvt123dFmtOlTvb4BSVU+w2ON7qq39EsNzWSlCRzDq3QeH7o9Sexgmxh3ZHA1oHCfN+IW8VoN2T71wjSetXYGAs8ArBxPB1RyGKjayWDIaEUfiT10IK3BznTlVpnYZd6fvO0FVVVr9F0vY2cs0VC1x1o1+2xVFyU3F6Uflk8Oa2xDhC7TZN55HMHFIhvvrsMUPoUPvbIGN1ncgPTs2y6GV6MOYc7W1RCwJlT79LbfQ9VlnEh0g71w+6lQtXcCBvubE7HBOMKHtlfgJooApctzwc7h9dnAbamcBcduDFHCCW4CaCIUzzz9rIVWnUE9vtouko5Ouur2oF66nqwszTx2iBdpCd+/vQUHKMq8Z37kcricdQM7ZWObUgwzIglTuqqBPmros5GWsLoemPlq2ziQ7ghjj7mszYXVHAQVTcdkGfc67LSn8fz2BPYpqXOSumZ4XQaSQdFKEXZUoa53NPXYPibAilmWWvDxmTF6Mx2AeXQ+C7v+y2kDqJZAFRPq5Eyg3Tm1HwML8340St05RUSIUbEuGuQGUwPenWGHlHnXMeQVPMHKSkvs0CAYLdV+hTO2r5dWi0VPf13OVBMVVPi1yMBtmFGG6bPFpaSGrSXGDCoDulnH6qr3gipF2OhaETOCG5TZ6iYTmCADt5iKmnlE2JmkDIchEjgGOhNQ4SeQQ8Ljhz4fro/CjIL0pbcvBs92FaCaJSN88uCkhd8h9IZ49YyiEVu7wqgTAnZsq37WVHA726EmHqv7XMnAzPrF2PLaLOeqZfy1/1yFntIADZegbQCmgzD7oce0gXRt+ToIQMI9DeJ9GLSh9C7WpXdRGgZ8n9smeA2mOoaT4Jc/bsN/sW5axoz2L95T6ZtghzEjvHgv7RodK17T+9gH/ftUZ3BKYxkaM16RFZRgTNHAS+N/kp56+3wf84ZBXU7wFIROxa40bHx1VrxjMGKP1vqXEFbaoxMjshImt8b7Zc+S5UzyVQo+j1eZlzgilrERrQIVjc0vkrpbpUFt1xLKO4bJfWKuEo5cDm9PdZk3HcyJYY1jNWn20JgKHTE2y4M6xVLmpObonouAF2YZ1WwUaaEola209pzCi6HbJEzoJFy3Q997Aox7gaYB35AaAzwBMa/oGcnjWhXP9rAVVIKEGQoSYlEbjKsmUjybdF2kP/qxk/ih/7jmmUfNgk5QFFtj07Lek9iDhAZlCeX4Qj+hSE9mDPB7Ns6odoQzLLFFm2AH5tB6IHADPzwZw/5lI4F/an4ecmL2YgA6L5NlA18viVE1i5TztVFvbjIeUtoCB5q18HHcIoH05I/TzFhNPQaPDg6w1PfEeHskhE1FYBqswm57CZcnM0OCgxR6cv5cIDAwMSY0rDdjPHnmwDPHIdhrVrRM4Qwu/2CDHxs1/NHAN8ZRYHYMyfA32ai2tTNJzgNLe30fja88N9ngszHXv02Ytvfjh/9t5XYZFwt+ZLIW4YXxLuVxe/BK7yoayLYtPIjOispV8Q7y3DzoxqQvvKMFm/VwaqgOPU9FYw0ZgzBN+Zl6qDNhDtIqLv/rMtyhQp9/x9lwieHFnK8AKOaHoJPQLbY7PnLMWRCX6thvtzmNH/uncXzTFMlit4wuhLCzpKEIqTQ14GfXtm9I23Dokq4rd5JxidzH/iVkjIengkRtO+mnCheWxIxnDqNSSOQ0BiTkmibBEOlD+txPULXdZ4x6eoFiK8TQG4HMUNipGM9LXdtCsIIf//4IDlhoND8Hb73rHtih42G78SW48doWjg6u4oG2uC36V2HcewU3dn7kEcumcEayQMx9qn8ZH//+vfnxsz9FewwPeUkUQ4pydVFKT3vFBKpE6Bp+4nvnYT+CI8PueutHQxizFPTihJnAMiZNwsc4ELGOv/Xd8b7wfu8nz4a2a8A8kPCkcoBCFvWnwFI35LDndBy7qYw4G0mQCD+69hThI5qonXr7sWpwfYrSk6O5DjeOLO/HNHrinV+Ao3e/FNqPgkU5IeN5JzUf/s6F8a7S5xYWYJ+CH//eeoBxSfBJeBrzlJ6RuqYH1aFMjSPJfFiMsIfppRuNZwDsAtzvesmGStHxHJCiy5bogj0i9BiONmeqG30mMoGuQNw3EeFGn7HJWBQJSPhcwMc3N+Eg5dUwGUeCrcqnGtDFoi1VUoY2RVuEtAGJC7NJehekt911IMrajqWv/mNXntaCsb2ZOTHGPHODNfydzY1ZdNGnf/psgPNCaHufcSo8FjrJi7Oe8Rvjb//DJThgSRM3xRUx/nYtLGtocSZW2tSJTAHk2uL9mXnTyltmZNVTsljHBTQzzbflpAK5embAbrsyk3GjIHG7YQeLmioGK39T4+nE08d3oc9NFvzk5lpa6tlxxBQhqUrb2K5RZvtI4h769P33WbVlZQVZOsnIRSVtUkArs5qlZVaplixccw1X/n7SRwxdWJgDOnKlpH0k5ZqQ9yaDe+i4zeBFuJUybdbD50WTRivjFrw1p2hGZxPVWNqCBNLiMM2mDx2VMXb1ZYnCyuOSyXpwu2Qb2vVZdMDdRy4m4587KrM6S7sSzMbdtIR6qD965CW4ldLsrsL06MWSOAC//1vGbAEcDxQP8MkOOJ6D5KmoodqcKdscCSRR7FDO+1EnQNa8WcxchPojV/tooE/8zHxQ9QtFdSjDSqqbA3W1eeSCWbZBL+/cC7dQku3bbcbGloEEv3223dvfjCurctvcN8yOgrz4ctrJ7zAWtRbuW2khSf/Ibg6+iE/89dYMOhazfeH+qrRFCQrs4nozfJSxjsSjbnAwT1sXaq4Fm7notQY1kiCTFve5ApK0Ws5L3jtMXMeyp0CiHuDUiHM61DloU0jHLI3IHdMCcWs2AcOzGoIUOyKhjtFZpcOGRjG7cSHcHNjbutIONjnHa8ZBoWPWhKUJbkBymoDvbIrbppINQRVPUUn1PqzCYDwvlDR2TC9MjTrTcLZktHiy8l5YvCl2AlQaaBiV1SXiME+Pv+si3EppAvM8feDX6VUk4UImY96CpDbywHZuWiLwZLcKslP0HafGDiWGAZW0ltrG3bSM6hS6sDifYUab2NBM++ImUewfit2Z4ogeuwUG3ognSWshqZiTcQPZq6mTHjkVN8c2L9El60jRljhISkWBxPZFpjU9Jdpn1Z2goxsMMwbDob6JsIHcepO9n5gK0j0RzmLnbUpWqREtn1qK11B3DVfH22FyYhoqLtvmwnMnOE9tHjulIYddRYGjAHuQNzc0l20eu2Def0gaLmlpMF4DhSiJYdC8L2PnkKVn8FB2w19TpNkFc2iRK3VNBdvECq24mciojcSHj5w2IQWtQEnXd8rUzLvbLkc/RiqN78u2MFyHedutakwcdxVgJislNIjXKYa0bYs0FIlrqV/yBrQVwhRiIBkcqtFmktDsxLmC8uG1odyzLNMMyU+4NRkGgYVVngxd4BxZcRapTRKqYXYUBiFwCGOFdFUsYQMUVchQ5qGvx+p4Qr/5c7WIYT98sAwF38dEAb59viL0rkLoQz+7kGmeORZAvZ/B26F6TdV5eWY1qI6u69SXWoTuEsr3nYdZpQ2BKsZYr9PHT5pIhjl9gLIa6mUpgNiyfm8fDH3ZTuybGjQQ0Owzq9nKaXookieQyDAejW4rWnYAtz6UoLZ8INui/kIxyg/MAwsa/STaGz3oyI1UKvIjufU30SZ+8S8mvWO3zcne4yF5KCNtJuaFMobu4cR2k0aOS7RYUjAcc5UjEDbjQSWmc8lEOb5gMjHpeYHOLc71EnDj6CW3N8L7I5Lh4XF5ScYwZR+lHOWQlBmHU7zrNTuAprBhzuMyDI4jqRwFYZqnJdtiYz3ZaYSXG2UEgm50NCDIJGYhuDb5TIduitS5vFwXwpEfXurDH9c2Yqy1mhlWgmsKwSs0G6HfxJ0vIbOmlEBZ4i+N+zQWu45f+vZaL9/OvXs+S94ATJCMBQc9qzKVidFYls/JCDMH29lhJLEf1LaEvE0uauGWMhYz4K9IGdU6cjbc9BICu4OVsL17LrQN0jk9j1/+prSjR5dG4fNigWtgR8CDYiUHZjknO/2B2Nn5w4DPYl4dAHivTShmi9fotU1MfYqJy2Ziu5GMxrSK6PMpJ78RPpUTUSYj4SQEdHM8SfQiPbK02EdGkr4Wz4Q2a/j0t9Zc3dMbowBrbCSb1Jw0RjoG4HGHVbz8zXWYVWh40WVSckbHrIwGs1c4VsPyibEXhznebdSbUCVVGtuUerGnxSehxnRYDKq2j9cofeMZDBzPqgtIriePnGNWTbSmfFuJ0zigz/iv4/pzMzeZ6AO/FJIRNA+86GdJ5WCc/YBIJUE5jUrqQEUio4RvNrIYl0V9Zx2nszC1Etjwrlq5t+f7ePcs3Z+lR96zCDddjFSRGV8lz+Qd4RJ+5blze4KbhiWcnMvjdTlQL62tkU4yDtRJ5pFJ44wx8eYP2KSf1rXiTVEW6pIoYAeDJrHJRr55mpaW5m6GdQHmSXUSDQlusqeQxpkEGTiNzzx3YS9Q9PB7Q/Z4MC+weGI1aijqOTBJ3uS1TfLCRwH4tT/bHCYgWFLnfIYNoXtel0MjH4i6dYn0zqKuqe54NOuuu6IDONAxC3rf+xZTHCgpfWO6EV+OcVy4X8Gvf318QFijgiNJ8Ksp+Crcxm5u0wFMfa/F22GObRgGEw/QDb8JTNCsL8k0lOYc1KKxIXCB3vvwNv7p11Zgn1KYcjxJ67FjNtie4LPPTuCAJTBuPkjLZSUEDV5WIjjiKHYdLA2gbfimpbT0Q3rP+wkkLCkGlP2FOAJEiT70fDp6wIxUax2O536e7RH++TP7MvB2Cy0Fxg2aqykF5jZ6LFqFngbRrTosrbGOE+i6BXEq0DBG+sVfMWCr2fAj3hTuwJ64N7mCI/zGV+4YA2npkcVA9JVwew8A4K3AcMtPb5y28BtfPR4fdN9WeFXYnmYLqzowddAHmFujRwLqgHNED55dCHXLuLE2gdex0NIHPhoGWe210UmWUmRjJVFp0H1nZV597MSEVt2zKtoI3PAKEZ3+exzqfra+wBFuLoVXJ+iBR5/Ebz3d+z2Hmyn0wPmTEI/otjEhIbxiG6RxLKRowuKoWLZss9zZZJ9BammdOyM98EGqxNNewWSXe4qxD4KFiqhJLALoTpTWtURFTrfC5wrstGP8zsElkRbPzcHdYTOJmgvxCdRxkV+2kcgd9HlCm/Asr5TfzJto92kSJvo4j58lj0SqoMtAq8azmGwlDitVLs6mdYxW2Jl98+Hv6bCzhfTzvzqGuCeLQT12cAsGg+3wPsRa06JaOwtB7YIXhQeDEC0EKZrrGddmocmfdDfjZ/PDmqD7sk7xTAIU2xG4mnf/eva2VjS9iSVZktg3vFQXeyF1lsH1fZ9P0ifcY1SCWnr6x+zHwy6tvBaJGHC40kN97jvB73zxuK0aSj4fKiLsU2W9OgxKkgVVA/RtOjawvLJhBBqEa+K4xuLTGpXKYkwCJLczEgddNBi2MAj7iCiaE8xKVXTr0SUDKhD1O5mq8tASysylwSRB4I9nVKzrHOfIRz48w+XkkmG02M2GmQZVP5B2fBqCB7PNWn4H1WaQ9bIJpQn+5VNr0GFeXNtGm4AVQXLcwBlPniGrHmX3jE0DGoZXaW0AdOFAmdgsPE0JRquMDlROKd2jFx90eBvy7Mkus+qRan5H1Km3E53OtnTLMH8VCr3HlC/fWaNbOEPQVUBd6lTxE4LTWqseykQqDEcRIsGePHwReOoqOBa8reql9bqNSxtw3G0BXfIT0PKgjNCOcPyHW9DLvCh5cg63zKgVcw2KrVNhqozNQsMnJwZU+I62Zyaqwc5mjDiFIo3CIjS2mIXZ2GcENRv5H8nGOBlywG5uQXUekcAF9cHj4/gPVmBGMYmBggyTYI+NsT2wZjzbE3C/UEQFnURo6Wv47MW1wNBELHjJM1Ijtgh86ZxkshNo3jOHiRnX9NEEbgyiSdicPwd7lHLcAjwD0mw0Zt/SqBx7N51le2JUGSGzjt3TpiKUtq4x0sFf2WTcrNm07qdBF8Qy/nYCwMIosMkxy+6Q5Gv8quounca//f0t2JN56ZiYs3nGcNovrRgJlDqxjYY4176YgWLRmcFZ4gxMo7otqMSrEpsZrlc8pa14+46TA2E2Odg8sJHC+Lrdgt1pYNzqBPYpvMKoEn+ivWpDOkXso5EeVDVhdRM6rM0z8EirdHA7mX2DY+5Zh1jCMCvRla0lB8/exxZhRQOL+DerW3CAMqwOvfRiWQ1Q3itXqr4eWZGcoqa2n21RS4OGPNTBI8sjSk+HnjGhIlmV7RRc7Jh0Dd7y6hkcrx74u232uIW/UjVHLjvBJNTRe1/ZMwtTbskqOXocZsG3Hp2vZQ1r7SpaO4cVMzn2hMfw7z5705kdc0rKT7x3CsAeq5ottB2gmgDSdwDQm9jjgqpOGsKpWVAxNPcNrzxQJbnWBqahqe00m49roX4ZN5+4pcPhdT6P/O9Ullm3SxVpB/rChgyOWVU7rbNw1DFI+ggLU2yTuFFlJMhJKdRwoVJVjQzy8yRmSHDzM+twG4XVljFGQbTfCCr1WBBMpansHpJmClA3jJ1HTBQq8Wi8vAgJgGEm6ArBOAEVcnKmxe4GplcpIL0Wruv4j7+7Bq9DGaZ9ScYUTZLASZrVHCjtkTzxYM1P3AQ3Ho9PGlSuFZtKG9HAlzaoMaNVV2lKSSKxYiivtePPilDM/jYb+N3RGF7HMpQfoqmZAY0yKSLXcjBc2sgaFTIB6eCfSRBku2LyftwYDXPqfvmlmcTMDCKs8gsVXF7p8Ji0FT6fhwFtwCuwiZPRbf8ARD/z8pdYwDFOpY4pIrE3VJjqLZou9oUg4DyY1usJedOmKXsHYpaQT16q4Dd5fHbwYjbg5fAZMs1N/IHpSai7Bq9Nx3eKWXWJB7oLQYRe9azOAqotKoRJKZIZS1vUkqWk5b4s2WAW8tYMJP1i6QzMgM20sdxEhjQvhWs+vDhIYCaBWdvQ7mzjP48m8AaWIbTWBlmiCeuVTu83AqmoDbBBz2/LBQHckQmrXlat48NWYMoq7NxY/7+SnNstZW1bmNUiq2eWBCy62IKRrsreyI92NZlhllFk1D5fUCIgdkw5KxO2DG+s4A/eHEzjUk6GgkkKimCZL+MhmtQTqgRiiUicc7Hw0X0fAtk7FlXOcM7j9cfX4E1YhulIlQbBxkaBqlUqqDaM7RaVaD1JK5+0MraR4zV0KSbjENpl3HpzMi6WoZ7RhWK/IhNYFYEZUVLlLYIVrQbQpZDYnrkMLjcuzBWn067gv3/stk8KvJElHquN/5+EPXhYJwsBJGc3yPVcpsVttkZCyb2zDgeL5MYygf+BNzXjYhnC7mASridKlA7QuwsVC2qULwwxsVtnL6LYSd6Jd8ExfAq3l99UzqGvBMmDF4OaLmiEj9VVSnlRnINfvunqIfMJzQRwHYgONztjOASlSV9l2usHCuQvnhcZUOfrBfm5nN3FvKcrR+/l6wYkZ38J1/C/lidwCEoDO69tBKK39VAzH6JGcN9+TnXgGSf1/JUiBKh/8SIfjEb9ehY+D4ek5AXs3B+vhduzANZVyFpXYzhdaoExfH414XedqXo/we3fOA6HpJT1VDtSFSx/+sU2+4OE5K+ituBU2v18EL8fUPo9p0NURErorV8eQfypIH7bcbYu8q3r7dIMqqRmqaMtfOWDh0bqYnEuld5y+QWI35NVHtUu2CQlQRMJykijtmVtnBkZ/5O3+/HG+QkcouIPJE/hTFCxSVLLqXzTB42DyD8Zwj8Dwl9h0m//dFU4/3T4ucPGuFg6wRwduzwP7fBKqFkAIt+C6oyKAUO9jiMEwnQOXzt7aDysLTirgo5+dRTozzZQF/k101RNSe659RiGO+cPo8Rxwb0qCYIUDuJPpqUwxvTi1YPdW+CMC14PDys4fXgdDnnBgzQKTAyJg2NLofnJpM4A86A/4DxJf5hS588jPDSG/yflfwG7NT9xuFScbAAAAABJRU5ErkJggg==')"},"@media only screen and (max-width: 1150px)":{content:{}},"@media only screen and (max-width: 1050px)":{content:{},closeBtn:{width:"24px"}},"@media only screen and (max-width: 850px)":{content:{},itemLeftLogo:{display:"none"}}});var o=c.create("div",{class:n.classes.contentChild}),i=c.create("div",{class:n.classes.body,style:{position:"fixed",top:"0px",left:"0px",width:"100%",height:"50px",lineHeight:"normal",opacity:"1",zIndex:"2147483647"},on:["click",function(t){t.stopPropagation(),t.preventDefault(),window.open(e.options.url),e.events.onClick()}],append:c.create("div",{class:n.classes.inner,append:[c.create("div",{class:n.classes.itemLeftLogo,append:c.create("div",{class:n.classes.logo,append:[c.create("div",{class:n.classes.logoBack}),c.create("div",{class:n.classes.logoImage})]})}),c.create("div",{class:n.classes.itemMiddle,append:o}),c.create("div",{class:n.classes.itemRight,append:c.create("a",{class:n.classes.closeBtn,href:"#close",on:["click",function(t){t.preventDefault(),t.stopPropagation(),t.isTrusted&&(e.close(!0),e.events.onClose())}],append:c.create(q(),{class:n.classes.itemRightCloseBtn})})})]})});t.wGet(i).setCheckStyles(["display","position","top","left","marginTop","marginLeft","marginRight","marginBottom","opacity","zIndex","transform","visibility"]);var r=function(e){e.stopPropagation()},a=[!1,!0];return["pointerdown","pointerenter","pointerleave","pointermove","pointerout","pointerover","pointerup"].concat(["mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseout","mouseout","mouseup"]).forEach(function(e){a.forEach(function(t){"mouseenter"===e&&t||i.addEventListener(e,r,t)})}),{node:i,content:o}}},{key:"getContent",value:function(){var e=this,t=e.wSheets.getSheet(),n=document.createDocumentFragment();t.add({cell:{fallbacks:{display:"inline-block"}}});var o="16px";e.options.name.length>90&&(o="14px"),t.add({title:{flex:"1 0 50%",fontSize:o,lineHeight:"19px",maxHeight:"38px",verticalAlign:"middle",fontFamily:"Arial, sans-serif",textOverflow:"ellipsis",overflow:"hidden",textShadow:"0 0 4px rgba(0,0,0,0.15)",paddingLeft:"10px"},titleBold:{fontWeight:"bold"},"@media only screen and (max-width: 1050px)":{title:{fontSize:"14px",marginLeft:"10px"}}}),n.appendChild(c.create("div",{class:t.classes.title,title:"Best price for ".concat(e.options.name," in ").concat(e.options.site),append:[c.create("span",{append:"Best price for"}),c.create("span",{class:t.classes.titleBold,append:" ".concat(e.options.name)}),c.create("span",{append:" in ".concat(e.options.site,"  – ")}),c.create("span",{class:t.classes.titleBold,append:" ".concat(e.options.price," ₹")})]})),t.add({line:{position:"relative",backgroundColor:"#fff",height:"1px",margin:"0 10px",flex:"1 0 10%"},lineBall:{position:"absolute",borderRadius:"50%",left:"-3px",top:"-3px",width:"7px",height:"7px",background:"#fff"},lineArrow:{position:"absolute",right:"-1px",top:"-7px"},openBtn:{extend:"cell",verticalAlign:"middle",fontSize:"12px",fontWeight:"bold",color:"#FF08A1 !important",margin:"auto 10px",padding:"10px 25px",backgroundColor:"#fff !important",borderRadius:"24px",boxShadow:"0 1px 3px rgba(70,10,10,0.15)",textDecoration:"none !important",transition:"all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94)",fontFamily:"Arial, sans-serif","&:hover":{background:"linear-gradient(to bottom, #fff, #f2f2f2)"},"&:active":{boxShadow:"inset 2px 2px 3px rgba(70,10,10,0.15)",color:"#FFB800 !important"}},"@media only screen and (max-width: 1050px)":{openBtn:{marginLeft:"5px",marginRight:"5px",paddingLeft:"10px",paddingRight:"10px"}}}),n.appendChild(c.create("div",{class:t.classes.line,append:[c.create("div",{class:t.classes.lineBall}),c.create("div",{class:t.classes.lineArrow,append:j()})]}));var i=e.options.discount,r=c.create("a",{class:t.classes.openBtn,href:e.options.url,target:"_blank",title:"Go to ".concat(e.options.site),append:"Get a price ".concat(i?i+"%":""," cheaper!")});return function(e,t){var n=e.href,o=function(e){e.preventDefault(),e.stopPropagation(),window.open(n),t&&t()};e.addEventListener("click",function(e){o(e)}),e.addEventListener("mouseup",function(e){(1===e.button||2===e.which)&&o(e)})}(r,function(t){e.events.onClick()}),n.appendChild(r),{node:n}}},{key:"getStyle",value:function(){var e=this,t=e.wDom.createElement("style",{},e.wSheets.toString());return e.wSheets.onChange=function(){t.setText(e.wSheets.toString())},{node:t.getNode()}}},{key:"insertBody",value:function(e){document.body.appendChild(e)}},{key:"insertStyle",value:function(e){document.head.appendChild(e)}},{key:"insert",value:function(){var e=this.body,t=this.style;U(this,!0),this.insertBody(e.node),this.insertStyle(t.node),this.events.onShow()}},{key:"close",value:function(){this.isClosed||(this.isClosed=!0,this.remove(),U(this,!1))}},{key:"remove",value:function(){if(!this.isRemoved){this.isRemoved=!0,this.destroy();var e=this.body.node.parentNode;e&&e.removeChild(this.body.node);var t=this.style.node.parentNode;t&&t.removeChild(this.style.node)}}},{key:"fadeIn",value:function(){this.insert()}},{key:"fadeOut",value:function(){this.close()}},{key:"destroy",value:function(){this.wDom.destroy()}}]),e}())(i()({},e.payload),{onClick:function(){s.track({t:"event",ec:"8",ea:"click",el:location.hostname})},onClose:function(){s.track({t:"event",ec:"8",ea:"close",el:location.hostname})},onShow:function(){s.track({t:"event",ec:"8",ea:"show",el:location.hostname})}}).fadeIn()}).catch(function(e){V.error("ApiExtension Error",e)})}}()))}])}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={11:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([54,0]),n()}({54:function(e,t,n){n.r(t);var o=n(0);!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){t.decode=t.parse=n(1),t.encode=t.stringify=n(2)},function(e,t,n){function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,r){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;r&&"number"==typeof r.maxKeys&&(l=r.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var d=0;d<u;++d){var c,f,p,m,h=e[d].replace(s,"%20"),g=h.indexOf(n);g>=0?(c=h.substr(0,g),f=h.substr(g+1)):(c=h,f=""),p=decodeURIComponent(c),m=decodeURIComponent(f),o(a,p)?i(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var i=a.a||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){var o=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,a){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?r(s(e),function(a){var s=encodeURIComponent(o(a))+n;return i(e[a])?r(e[a],function(e){return s+encodeURIComponent(o(e))}).join(t):s+encodeURIComponent(o(e[a]))}).join(t):a?encodeURIComponent(o(a))+n+encodeURIComponent(o(e)):""};var i=a.a||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],o=0;o<e.length;o++)n.push(t(e[o],o));return n}var s=x.a||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){n.r(t);var r=o.default,s=["log","info","warn","error","debug"],l=function(e){return s.reduce(function(e,t){return e[t]=function(){},e},function e(){return e.log.apply(e,arguments)})},u=n(0),d={animation:"none 0s ease 0s 1 normal none running",backfaceVisibility:"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor",borderCollapse:"separate",borderImage:"none",borderRadius:"0",borderSpacing:"0",bottom:"auto",boxShadow:"none",boxSizing:"content-box",captionSide:"top",clear:"none",clip:"auto",color:"inherit",columns:"auto",columnCount:"auto",columnFill:"balance",columnGap:"normal",columnRule:"medium none currentColor",columnSpan:"1",columnWidth:"auto",content:"normal",counterIncrement:"none",counterReset:"none",cursor:"auto",direction:"ltr",display:"inline",emptyCells:"show",float:"none",font:"normal normal normal normal medium/normal inherit",height:"auto",hyphens:"none",left:"auto",letterSpacing:"normal",listStyle:"disc outside none",margin:"0",maxHeight:"none",maxWidth:"none",minHeight:"0",minWidth:"0",opacity:"1",orphans:"0",outline:"medium none invert",overflow:"visible",overflowX:"visible",overflowY:"visible",padding:"0",pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",perspective:"none",perspectiveOrigin:"50% 50%",position:"static",right:"auto",tabSize:"8",tableLayout:"auto",textAlign:"inherit",textAlignLast:"auto",textDecoration:"none solid currentColor",textIndent:"0",textShadow:"none",textTransform:"none",top:"auto",transform:"none",transformOrigin:"50% 50% 0",transformStyle:"flat",transition:"none 0s ease 0s",unicodeBidi:"normal",verticalAlign:"baseline",visibility:"visible",whiteSpace:"normal",widows:"0",width:"auto",wordSpacing:"normal",zIndex:"auto",all:"initial"},c={},f={text:function(e,t){e.textContent=t},data:function(e,t){for(var n in t)e.dataset[n]=t[n]},class:function(e,t){if(a()(t))for(var n=0,o=t.length;n<o;n++)e.classList.add(t[n]);else e.setAttribute("class",t)},style:function(e,t){if("object"==typeof t)for(var n in t){var o=n;"float"===o&&(o="cssFloat");var i=t[n];if(a()(i))for(var r=0,s=i.length;r<s;r++)e.style[o]=i[r];else e.style[o]=i}else e.setAttribute("style",t)},append:function(e,t){a()(t)||(t=[t]);for(var n=0,o=t.length;n<o;n++){var i=t[n];(i||0===i)&&("object"!=typeof i&&(i=document.createTextNode(i)),e.appendChild(i))}},on:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,o=t.length;n<o;n++){var i=t[n];a()(i)&&e.addEventListener(i[0],i[1],i[2])}},attr:function(e,t){var n,o;for(n in t)o=t[n],e.setAttribute(n,o)}};c.create=function(e,t){var n,o;for(var i in n="object"!=typeof e?document.createElement(e):e,t){var r=t[i];(o=f[i])?o(n,r):n[i]=r}return n};var p=c,h=function(e,t){var n=e.href,o=function(e){e.preventDefault(),e.stopPropagation(),window.open(n),t&&t()};return e.addEventListener("click",function(e){o(e)}),e.addEventListener("mouseup",function(e){(1===e.button||2===e.which)&&o(e)}),e},v=l(),b=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},y={},k=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=10,n="t";do{t--;for(var o=0;o<21;o++)n+=e.charAt(Math.floor(Math.random()*e.length))}while(y[n]&&t>0);return y[n]=1,n},w=function(){var e=function(e,t,n){for(var o in this.type="conditional",this.selector=e,this.options=n,this.rules=new O(b({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()};return e.prototype.getRule=function(e){return this.rules.get(e)},e.prototype.indexOf=function(e){return this.rules.indexOf(e)},e.prototype.addRule=function(e,t,n){var o=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(o),o},e.prototype.toString=function(){var e=this.rules.toString();return e?this.selector+"{"+e+"}":""},{onCreateRule:function(t,n,o){return/^@media/.test(t)?new e(t,n,o):null}}}(),S=function(){var e=function(e){return e&&"object"==typeof e&&!a()(e)},t=function t(n,o,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("string"==typeof n.extend){if(i){var s=i.getRule(n.extend);if(s)if(s===o)v("[JSS] A rule tries to extend itself \r\n",o);else if(s.options.parent){t(s.options.parent.rules.raw[n.extend],o,i,r)}}}else if(a()(n.extend))for(var l=0;l<n.extend.length;l++)t(n.extend[l],o,i,r);else for(var u in n.extend)"extend"===u?t(n.extend.extend,o,i,r):e(n.extend[u])?(r[u]||(r[u]={}),t(n.extend[u],o,i,r[u])):(r.hasOwnProperty(u)&&delete r[u],r[u]=n.extend[u]);for(var d in n)if("extend"!==d)if("fallbacks"===d&&r[d]){a()(r[d])||(r[d]=[r[d]]);var c=n[d];a()(c)||(c=[c]),r[d]=r[d].concat(JSON.parse(g()(c)))}else e(r[d])&&e(n[d])?t(n[d],o,i,r[d]):e(n[d])?r[d]=t(n[d],o,i):(r.hasOwnProperty(d)&&delete r[d],r[d]=n[d]);return r};return{onProcessStyle:function(e,n,o){return e.extend?t(e,n,o):e}}}(),C=function(){var e=/\s*,\s*/g,t=/&/g,n=/\$([\w-]+)/g;function o(e){return function(t,n){var o=e.getRule(n);return o?o.selector:(v("[JSS] Could not find the referenced rule "+n+". \r\n",o),n)}}var i=function(e){return-1!==e.indexOf("&")};function r(n,o){for(var r=o.split(e),a=n.split(e),s="",l=0;l<r.length;l++)for(var u=r[l],d=0;d<a.length;d++){var c=a[d];s&&(s+=", "),s+=i(c)?c.replace(t,u):u+" "+c}return s}function a(e,t,n){if(n)return b({},n,{index:n.index+1});var o=e.options.nestingLevel;return o=void 0===o?1:o+1,b({},e.options,{nestingLevel:o,index:t.indexOf(e)+1})}return{onProcessStyle:function(e,t){if("regular"!==t.type)return e;var s=t.options.parent,l=void 0,u=void 0;for(var d in e){var c=i(d),f="@"===d[0];if(c||f){if(l=a(t,s,l),c){var p=r(d,t.selector);u||(u=o(s)),p=p.replace(n,u),s.addRule(p,e[d],b({},l,{selector:p}))}else if(f){var m={};m[t.name]=e[d],s.addRule(d,m,l)}delete e[d]}}return e}}}(),L=function(){var e=/([A-Z])/g,t=function(e){return"-"+e.toLowerCase()},n=function n(o){var i={};for(var r in o){var s=o[r];"cssFloat"===r&&(r="float"),i[r=r.replace(e,t)]=s}return o.fallbacks&&(a()(o.fallbacks)?i.fallbacks=o.fallbacks.map(n):i.fallbacks=n(o.fallbacks)),i};return{onProcessStyle:function(e){if(a()(e)){for(var t=0;t<e.length;t++)e[t]=n(e[t]);return e}return n(e)}}}(),M=function(e,t,n){this.type="regular";var o=n.generateClassName;this.name=e,this.className="",this.options=n,this.style=t,n.className?this.className=n.className:o&&(this.className=o(this,n.sheet)),this.selector=n.selector||"."+this.className},I=function e(t){return a()(t)?a()(t[0])?e(t.map(function(e){return e.join(" ")})):t.join(", "):t};M.prototype.toString=function(){return function(e,t){var n=t.fallbacks,o="";if(n)if(a()(n))for(var i=0;i<n.length;i++){var r=n[i];for(var s in r){var l=r[s];null!=l&&(o+=s+": "+I(l)+";")}}else for(var u in n){var d=n[u];null!=d&&(o+=u+": "+I(d)+";")}for(var c in t){var f=t[c];"function"==typeof f&&(f=t["$"+c]),null!=f&&"fallbacks"!==c&&(o+=c+": "+I(f)+";")}return o?o=e+" {"+o+"}":o}(this.selector,this.style)};var O=function(e){this.map={},this.raw={},this.index=[],this.options=e,this.classes=e.classes};O.prototype.add=function(e,t,n){var o=this.options,i=o.parent,r=o.sheet,s=o.jss,l=o.Renderer,u=o.generateClassName;(n=b({classes:this.classes,parent:i,sheet:r,jss:s,Renderer:l,generateClassName:u},n)).className||(n.className=this.classes[e]),this.raw[e]=t;var d=function(e,t,n){var o=n.jss,i=function e(t){if(null==t)return t;var n=typeof t;if("string"===n||"number"===n)return t;if(a()(t))return t.map(e);var o={};for(var i in t){var r=t[i];o[i]="object"==typeof r?e(r):r}return o}(t);if(o){var r=o.plugins.onCreateRule(e,i,n);if(r)return r}return e&&"@"===e[0]&&v("[JSS] Unknown at-rule",e),new M(e,i,n)}(e,t,n);this.register(d);var c=void 0===n.index?this.index.length:n.index;return this.index.splice(c,0,d),d},O.prototype.get=function(e){return this.map[e]},O.prototype.indexOf=function(e){return this.index.indexOf(e)},O.prototype.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},O.prototype.register=function(e){e.name&&(this.map[e.name]=e),e.className&&e.name&&(this.classes[e.name]=e.className),e.selector&&(this.map[e.selector]=e)},O.prototype.toString=function(){for(var e="",t=0;t<this.index.length;t++){var n=this.index[t].toString();n&&(e+=n)}return e};var P=function(e){var t="number"==typeof e.index?e.index:0;this.classes={},this.options=b({sheet:this,parent:this,classes:this.classes,index:t},e),this.rules=new O(this.options)};P.prototype.addRule=function(e,t,n){var o=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(o),o},P.prototype.add=P.prototype.addRules=function(e,t){var n=[];for(var o in e)n.push(this.addRule(o,e[o],t));return n},P.prototype.getRule=function(e){return this.rules.get(e)},P.prototype.indexOf=function(e){return this.rules.indexOf(e)},P.prototype.toString=function(){return this.rules.toString()},P.prototype.sync=function(){this.options.jss.onChange()};var E=function(){this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[]}};E.prototype.onCreateRule=function(e,t,n){for(var o=0;o<this.hooks.onCreateRule.length;o++){var i=this.hooks.onCreateRule[o](e,t,n);if(i)return i}return null},E.prototype.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.hooks.onProcessRule.length;n++)this.hooks.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},E.prototype.onProcessStyle=function(e,t,n){for(var o=0;o<this.hooks.onProcessStyle.length;o++)t.style=e=this.hooks.onProcessStyle[o](e,t,n)},E.prototype.onProcessSheet=function(e){for(var t=0;t<this.hooks.onProcessSheet.length;t++)this.hooks.onProcessSheet[t](e)},E.prototype.onChangeValue=function(e,t,n){for(var o=e,i=0;i<this.hooks.onChangeValue.length;i++)o=this.hooks.onChangeValue[i](o,t,n);return o},E.prototype.use=function(e){for(var t in e)this.hooks[t]?this.hooks[t].push(e[t]):v("[JSS] Unknown hook",t)};var N=function(){this.sheets=[],this.plugins=new E,this.plugins.use(w),this.plugins.use(S),this.plugins.use(C),this.plugins.use(L)};N.prototype.getSheet=function(){var e=new P({jss:this,generateClassName:k});return this.sheets.push(e),e},N.prototype.toString=function(){var e=[];return this.sheets.forEach(function(t){e.push(t.toString())}),e.join("")},N.prototype.getStyleBySelector=function(e){var t={};return this.sheets.some(function(n){var o=n.rules.map[e];if(o)return t=o.style,!0}),function(e){var t,n,o={},i=e.fallbacks;for(t in i&&(a()(i)||(i=[i]),i.forEach(function(e){for(var t in e)o[t]||(o[t]=[]),o[t].push(e[t])})),e)"fallbacks"!==t&&(n=e[t],o[t]?(a()(o[t])||(o[t]=[o[t]]),o[t].push(n)):o[t]=n);return o}(t)},N.prototype.onChange=function(){};var D=N,B=[].slice,R={class:function(e,t){t.forEach(function(t){e.classList.add(t)})},style:function(e,t){for(var n in t){var o=t[n];"float"===n&&(n="cssFloat"),e.style[n]=o}}},_=function(e,t){var n;this.wDom=e,this.node=t,this.refNode=t.cloneNode(!1),this.events=[],this.customStyle={},this.inlineStyle={},this.cssStyle=null,this.nativeStyle={},this.checkStyles=[],this.fixLimits={};for(var o,i=0;o=t.childNodes[i];i++)n=this.wDom.wGet(o),this.refNode.appendChild(n.refNode)};_.prototype.setCheckStyles=function(e){this.checkStyles=e},_.prototype.addCheckStyles=function(e){-1===this.checkStyles.indexOf(e)&&this.checkStyles.push(e)},_.prototype.removeCheckStyles=function(e){var t=this.checkStyles.indexOf(e);-1!==t&&this.checkStyles.splice(t,1)},_.prototype.appendChild=function(e){var t=this.wDom.wGet(e);this.refNode.appendChild(t.refNode),this.node.appendChild(t.node)},_.prototype.removeChild=function(e){var t=this.wDom.get(e);if(!t)throw new Error("wNode is not found!");this.refNode.removeChild(t.refNode),this.node.removeChild(t.node)},_.prototype.setText=function(e){this.refNode.textContent="",this.node.textContent="",this.appendChild(document.createTextNode(e))},_.prototype.addEventListener=function(e,t,n){this.node.addEventListener(e,t,n),n=!!n,this.events.push({type:e,listener:t,useCapture:n})},_.prototype.removeEventListener=function(e,t,n){this.node.removeEventListener(e,t,n);var o=-1;n=!!n,this.events.some(function(i,r){if(i.type===e&&i.useCapture===n&&i.listener===t)return o=r,!0}),-1!==o&&this.events.splice(o,1)},_.prototype.setStyle=function(e,t){this.refNode.style[e]=t,this.node.style[e]=t,""===t?delete this.inlineStyle[e]:this.inlineStyle[e]=t},_.prototype.setStyleProperty=function(e,t,n){if(this.refNode.style.setProperty){var o=function(e){return"cssFloat"===e&&(e="float"),e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()})}(e);this.refNode.style.setProperty(o,t,n),this.node.style.setProperty(o,t,n),""===t?delete this.inlineStyle[e]:this.inlineStyle[e]=t}else this.setStyle(e,t)},_.prototype.addClass=function(e){this.refNode.classList.add(e),this.node.classList.add(e)},_.prototype.removeClass=function(e){this.refNode.classList.remove(e),this.node.classList.remove(e)},_.prototype.checkChildList=function(){var e=this.fixLimits,t=!0;void 0===e.checkChildList&&(e.checkChildList=50);var n,o,i,r,a=!1;for(n=0;i=this.refNode.childNodes[n];n++)o=this.wDom.getByRef(i).node,(r=this.node.childNodes[n])!==o&&(e.checkChildList>0?(r?this.node.insertBefore(o,r):this.node.appendChild(o),a=!0,tbr.log("Fix checkChildList insert node",o)):(t=!1,tbr.error("Fix checkChildList insert limited")));var s=this.refNode.childNodes.length,l=B.call(this.node.childNodes,s);if(l.length)if(e.checkChildList>0)for(n=0;o=l[n];n++)o.parentNode&&(o.parentNode.removeChild(o),a=!0,tbr.log("Fix checkChildList remove node",o));else t=!1,tbr.error("Fix checkChildList remove limited");return a&&e.checkChildList--,t},_.prototype.checkAttributes=function(e){var t=this.fixLimits,n="checkAttributes_"+e;void 0===t[n]&&(t[n]=50);var o=!0,i=this.node.getAttribute(e),r=this.refNode.getAttribute(e);return r!==i&&(t[n]-- >0?(null===r?this.node.removeAttribute(e):this.node.setAttribute(e,r),tbr.log("Fix attributes",e,i,">",r)):(o=!1,tbr.error("Fix attributes limited"))),o},_.prototype.checkCharacterData=function(){var e=this.fixLimits,t="checkCharacterData";void 0===e[t]&&(e[t]=50);var n=!0,o=this.node.textContent,i=this.refNode.textContent;return o!==i&&(e[t]-- >0?(this.node.textContent=this.refNode.textContent,tbr.log("Fix characterData",o,">",i)):(n=!1,tbr.error("Fix characterData limited"))),n},_.prototype.fixStyleProperty=function(e,t,n){var o=this,i=o.fixLimits,r="fixStyleProperty"+e,a=!0;return i[r]?(a=!1,tbr.error("Fix styleProperty limited")):(i[r]=!0,n.forEach(function(i){o.setStyleProperty(e,i,"important"),tbr.log("Fix styleProperty",e,t,">",n)})),a},_.prototype.getNode=function(){return this.node},_.prototype.buildNode=function(){var e,t,n,o=this.refNode.cloneNode(!1);for(e=0;n=this.refNode.childNodes[e];e++)t=this.wDom.getByRef(n),o.appendChild(t.buildNode());return this.events.forEach(function(e){o.addEventListener(e.type,e.listener,e.useCapture)}),o};var q=function(){this.wElements=[],this.refElements=[],this.elements=[]};q.prototype.createElement=function(e,t,n){for(var o,i=function(e,t){var n,o,i=document.createElement(e);for(var r in t)o=t[r],(n=R[r])?n(i,o):i[r]=o;return i}(e,t),r=B.call(arguments,2),a=0;o=r[a];a++)"object"!=typeof o&&(o=document.createTextNode(o)),i.appendChild(o);return this.wGet(i)},q.prototype.get=function(e){var t=null,n=this.elements.indexOf(e);return-1!==n&&(t=this.wElements[n]),t},q.prototype.getByRef=function(e){var t=null,n=this.refElements.indexOf(e);return-1!==n&&(t=this.wElements[n]),t},q.prototype.wrap=function(e){return new _(this,e)},q.prototype.wGet=function(e){var t=this.get(e);return null===t&&(t=this.wrap(e),this.addWNode(t)),t},q.prototype.addWNode=function(e){this.elements.push(e.node),this.refElements.push(e.refNode),this.wElements.push(e)},q.prototype.removeWNode=function(e){var t=this.wElements.indexOf(e);-1!==t&&(this.elements.splice(t,1),this.refElements.splice(t,1),this.wElements.splice(t,1))},q.prototype.destroy=function(){this.elements.splice(0),this.refElements.splice(0),this.wElements.splice(0)};var j=q,z=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg"),t=e.namespaceURI;e.setAttribute("width","24"),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 80 80");var n=document.createElementNS(t,"path");return e.appendChild(n),n.setAttribute("fill","#000"),n.setAttribute("d","M56.971 52.729L44.243 40l12.728-12.728-4.242-4.243L40 35.757 27.272 23.029l-4.243 4.243L35.757 40 23.029 52.729l4.243 4.242L40 44.243l12.729 12.728z"),e},U={},V=function(e,t){var n=e.wDom.wGet(e.body.node),o=document.body.parentNode,i=null,r=null;try{i=getComputedStyle(o),r=getComputedStyle(document.body)}catch(e){}var a=[i,r].some(function(e){return e&&-1!==["absolute","relative","fixed","sticky"].indexOf(e.position)});t?(U.marginTop=o.style.marginTop,U.transition=o.style.transition,o.style.transition="margin-top 0.2s",n.removeCheckStyles("marginTop"),n.setStyle("marginTop","-55px"),n.setStyle("transition","margin-top 0.2s"),setTimeout(function(){o.style.marginTop="55px",n.setStyle("marginTop",""),o.style.setProperty&&o.style.setProperty("margin-top","55px","important"),a&&n.setStyle("top","-55px"),setTimeout(function(){o.style.transition=U.transition,n.setStyle("transition","");document.addEventListener("mousemove",function e(){document.removeEventListener("mousemove",e),setTimeout(function(){n.addCheckStyles("marginTop")},250)})},250)},0)):o.style.marginTop=U.marginTop},H="https://promobar.tools/upload/static/img",G={},W=function(e,t){var n=e.wDom.wGet(e.body.node),o=document.body.parentNode,i=null,r=null;try{i=getComputedStyle(o),r=getComputedStyle(document.body)}catch(e){}var a=[i,r].some(function(e){return e&&-1!==["absolute","relative","fixed","sticky"].indexOf(e.position)});t?(G.marginTop=o.style.marginTop,G.transition=o.style.transition,o.style.transition="margin-top 0.2s",n.removeCheckStyles("marginTop"),n.setStyle("marginTop","-55px"),n.setStyle("transition","margin-top 0.2s"),setTimeout(function(){o.style.marginTop="55px",n.setStyle("marginTop",""),o.style.setProperty&&o.style.setProperty("margin-top","55px","important"),a&&n.setStyle("top","-55px"),setTimeout(function(){o.style.transition=G.transition,n.setStyle("transition","");document.addEventListener("mousemove",function e(){document.removeEventListener("mousemove",e),setTimeout(function(){n.addCheckStyles("marginTop")},250)})},250)},0)):o.style.marginTop=G.marginTop},Y="https://promobar.tools/upload/static/img",K={},Q=function(e,t){var n=e.wDom.wGet(e.body.node),o=document.body.parentNode,i=null,r=null;try{i=getComputedStyle(o),r=getComputedStyle(document.body)}catch(e){}var a=[i,r].some(function(e){return e&&-1!==["absolute","relative","fixed","sticky"].indexOf(e.position)});t?(K.marginTop=o.style.marginTop,K.transition=o.style.transition,o.style.transition="margin-top 0.2s",n.removeCheckStyles("marginTop"),n.setStyle("marginTop","-55px"),n.setStyle("transition","margin-top 0.2s"),setTimeout(function(){o.style.marginTop="55px",n.setStyle("marginTop",""),o.style.setProperty&&o.style.setProperty("margin-top","55px","important"),a&&n.setStyle("top","-55px"),setTimeout(function(){o.style.transition=K.transition,n.setStyle("transition","");document.addEventListener("mousemove",function e(){document.removeEventListener("mousemove",e),setTimeout(function(){n.addCheckStyles("marginTop")},250)})},250)},0)):o.style.marginTop=K.marginTop},J=n(0),Z=l();t.default=new(function(){function e(){Object(T.a)(this,e),this.run()}return Object(F.a)(e,[{key:"run",value:function(){return!(window.top!==window.self)&&r.callFn("promoBarGetHash",[location.hostname]).then(function(e){if(e){var t=function(t){return r.callFn("promoBarAddInBlackList",[e,t])};return function(e){return new A.a(function(t,n){!function(e,t){var n=function(e,n){if(t){s.timeoutTimer&&clearTimeout(s.timeoutTimer);var o={statusCode:d.status,statusText:d.statusText,body:n};e&&i()(e,o),t(e,o),t=null}},o=e.url,r=e.method||"GET";r=r.toUpperCase();var a=e.body;"string"!=typeof a&&(a=u.stringify(a)),e.headers=e.headers||{},a&&(e.headers["Content-Type"]=e.contentType||e.headers["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8");var s={};s.url=o,s.method=r,a&&(s.body=a),e.json&&(s.json=!0),e.timeout&&(s.timeout=e.timeout),x()(e.headers).length&&(s.headers=e.headers),s.timeout>0&&(s.timeoutTimer=setTimeout(function(){n(new Error("ETIMEDOUT")),d.abort()},s.timeout));var l={0:200,1223:204},d=new XMLHttpRequest;d.open(s.method,s.url,!0),d.onload=function(){var e=l[d.status]||d.status;try{if(e>=200&&e<300||304===e){var t=d.responseText;return s.json&&(t=JSON.parse(t)),n(null,t)}n(new Error(d.status+" "+d.statusText))}catch(e){return n(e)}};var c=d.onerror=function(){n(new Error(d.status+" "+d.statusText))},f=null;void 0!==d.onabort?d.onabort=c:f=function(){4===d.readyState&&setTimeout(function(){return c()})},f&&(d.onreadystatechange=f);try{d.send(s.body||null)}catch(e){setTimeout(function(){return n(e)})}}(e,function(e,o){e?n(e):t(o)})})}({url:location.protocol+"//promobar.tools/api/v1/getOffer?"+J.stringify({url:location.href,v:2,test:1}),json:!0}).then(function(e){var t=e.body;if(!t.ok)throw new Error("Bad response");return t.result}).then(function(e){if(e){Z.debug("offer",e);var n,o=-1!==e.template.indexOf("epsy"),i=o&&Math.random()>.5?1:0,a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,i=e.simpleRate||{},a=i.id,s=i.rate;return A.a.resolve().then(function(){return null!==o?o:!(a&&s<1)||r.callFn("promoBarInRate",[a,s])}).then(function(i){if(o=i){var a=e.track&&e.track[n.index]&&e.track[n.index][e.template]||{},s=a.category,l=a.action,u=a.label,d=a.counter;r.sendMessage({action:"track",t:"event",ec:s||"7",ea:l||t,el:u||location.hostname,tid:d||"UA-119781451-12"})}})},s={onClick:function(){a("click",{index:i}),t(e.clickTime),n.fadeOut()},onClose:function(){a("hide",{index:i}),t(e.closeTime),n.fadeOut()},onShow:function(){a("show",{index:i})}};if("default"===e.template)n=new(function(){function e(t,n){Object(T.a)(this,e),this.options=t,this.events=n,this.wDom=new j,this.wSheets=new D,this.create()}return Object(F.a)(e,[{key:"create",value:function(){var e=document.createDocumentFragment(),t=this.getBody(),n=this.getContent();this.body=t,this.content=n,this.wDom.wGet(t.content).appendChild(n.node);var o=this.getStyle();this.style=o,e.appendChild(t.node),e.appendChild(o.node),this.wDom.wGet(e),this.wDom.wGet(o.node)}},{key:"getBody",value:function(){var e=this,t=e.wDom,n=e.wSheets.getSheet();n.add({body:{extend:d,backgroundColor:"#fcefb4",color:"#000",cursor:"pointer",marginTop:"0px",display:"table !important",opacity:"1 !important",position:"absolute",top:"0px",left:"0px",fontWeight:"normal",font:"normal normal 14px Arial, sans-serif",width:"100%",height:"55px",lineHeight:"normal",zIndex:"2147483647","&:hover":{backgroundColor:"#ffeb91"}},itemLeft:{display:"table-cell",verticalAlign:"middle"},itemLeftCloseBtn:{marginLeft:"4px",marginTop:"10px"},itemMiddle:{display:"table-cell",verticalAlign:"middle",textAlign:"center"},content:{maxWidth:"1100px",display:"inline-block",width:"100%",textAlign:"left",position:"relative"},contentChild:{fallbacks:[{display:"block"},{WebkitAlignItems:"center",WebkitFlexDirection:"row",display:"-webkit-flex"}],display:"flex",alignItems:"center",flexDirection:"row",whiteSpace:"pre"},closeBtn:{width:"45px",opacity:"0.3",display:"block",height:"45px",textAlign:"center",cursor:"pointer","&:hover":{opacity:"0.7"}},rightPadding:{width:"45px",display:"table-cell",verticalAlign:"middle"},"@media only screen and (max-width: 1150px)":{content:{maxWidth:"960px"}},"@media only screen and (max-width: 1050px)":{content:{maxWidth:"810px"},closeBtn:{width:"24px"},rightPadding:{width:"24px"}},"@media only screen and (max-width: 850px)":{content:{maxWidth:"700px"}}});var o=p.create("div",{class:n.classes.contentChild}),i=p.create("div",{class:n.classes.body,style:{position:"absolute",top:"0px",left:"0px",display:"table",width:"100%",height:"55px",lineHeight:"normal",opacity:"1",zIndex:"2147483647"},on:["click",function(t){t.stopPropagation(),t.preventDefault(),window.open(e.options.button.link),e.events.onClick()}],append:[p.create("div",{class:n.classes.itemLeft,append:p.create("a",{class:n.classes.closeBtn,href:"#close",on:["click",function(t){t.preventDefault(),t.stopPropagation(),t.isTrusted&&(e.close(!0),e.events.onClose())}],append:p.create(z(),{class:n.classes.itemLeftCloseBtn})})}),p.create("div",{class:n.classes.itemMiddle,append:p.create("div",{class:n.classes.content,append:o})}),p.create("div",{class:n.classes.rightPadding})]});t.wGet(i).setCheckStyles(["display","position","top","left","marginTop","marginLeft","marginRight","marginBottom","opacity","zIndex","transform","visibility"]);var r=function(e){e.stopPropagation()},a=[!1,!0];return["pointerdown","pointerenter","pointerleave","pointermove","pointerout","pointerover","pointerup"].concat(["mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseout","mouseout","mouseup"]).forEach(function(e){a.forEach(function(t){"mouseenter"===e&&t||i.addEventListener(e,r,t)})}),{node:i,content:o}}},{key:"getContent",value:function(){var e=this,t=e.wSheets.getSheet(),n=document.createDocumentFragment();t.add({cell:{fallbacks:{display:"inline-block"}}});var o="16px";e.options.text.length>90&&(o="14px"),t.add({title:{extend:"cell",fontSize:o,fontWeight:"bold",margin:"auto 10px",lineHeight:"23px",verticalAlign:"middle",fontFamily:"Arial, sans-serif",flexGrow:1,overflow:"hidden",textOverflow:"ellipsis"},"@media only screen and (max-width: 1050px)":{title:{fontSize:"14px",marginLeft:"5px",marginRight:"5px"}}}),n.appendChild(p.create("div",{class:t.classes.title,title:e.options.text,append:[e.options.text]})),t.add({openBtn:{extend:"cell",verticalAlign:"middle",fontSize:"16px",fontWeight:"bold",color:"#FFF !important",margin:"auto 10px",padding:"10px 25px",backgroundColor:"#4b9f00 !important",borderRadius:"19px",textDecoration:"none !important",fontFamily:"Arial, sans-serif","&:hover":{backgroundColor:"#66ad26 !important",color:"#FFF !important"}},"@media only screen and (max-width: 1050px)":{openBtn:{fontSize:"14px",marginLeft:"5px",marginRight:"5px",paddingLeft:"10px",paddingRight:"10px"}}});var i=p.create("a",{class:t.classes.openBtn,href:e.options.button.link,target:"_blank",append:[e.options.button.text]});return h(i,function(t){e.events.onClick()}),n.appendChild(i),{node:n,moreBtn:i}}},{key:"getStyle",value:function(){var e=this,t=e.wDom.createElement("style",{},e.wSheets.toString());return e.wSheets.onChange=function(){t.setText(e.wSheets.toString())},{node:t.getNode()}}},{key:"insertBody",value:function(e){document.body.appendChild(e)}},{key:"insertStyle",value:function(e){document.head.appendChild(e)}},{key:"insert",value:function(){var e=this.body,t=this.style;V(this,!0),this.insertBody(e.node),this.insertStyle(t.node),this.events.onShow()}},{key:"close",value:function(){this.isClosed||(this.isClosed=!0,this.remove(),V(this,!1))}},{key:"remove",value:function(){if(!this.isRemoved){this.isRemoved=!0,this.destroy();var e=this.body.node.parentNode;e&&e.removeChild(this.body.node);var t=this.style.node.parentNode;t&&t.removeChild(this.style.node)}}},{key:"fadeIn",value:function(){this.insert()}},{key:"fadeOut",value:function(){this.close()}},{key:"destroy",value:function(){this.wDom.destroy()}}]),e}())(e,s);else if(o)switch(i){case 0:n=new(function(){function e(t,n){Object(T.a)(this,e),this.options=t,this.events=n,this.wDom=new j,this.wSheets=new D,this.create()}return Object(F.a)(e,[{key:"create",value:function(){var e=document.createDocumentFragment(),t=this.getBody(),n=this.getContent();this.body=t,this.content=n,this.wDom.wGet(t.content).appendChild(n.node);var o=this.getStyle();this.style=o,e.appendChild(t.node),e.appendChild(o.node),this.wDom.wGet(e),this.wDom.wGet(o.node);var i=document.createElement("link");i.href="https://fonts.googleapis.com/css?family=Montserrat:400,700&amp;subset=cyrillic",i.rel="stylesheet",document.head.appendChild(i)}},{key:"getBody",value:function(){var e=this,t=e.wDom,n=e.wSheets.getSheet();n.add({body:{"-webkit-font-smoothing":"antialiased",backgroundImage:"url('".concat(H,"/bg-blue.png')"),backgroundColor:"#fff",backgroundPosition:"20% 50%",backgroundRepeat:"no-repeat",color:"#000",textAlign:"center",cursor:"pointer",marginTop:"0px",display:"table !important",opacity:"1 !important",position:"absolute",top:"0px",left:"0px",fontWeight:"normal",font:"normal normal 14px Montserrat, sans-serif",width:"100%",height:"55px",lineHeight:"normal",zIndex:"2147483647"},inner:{display:"flex",height:"55px",justifyContent:"space-around",maxWidth:"1860px",margin:"0 auto"},leftImg0fhd:{width:"60px",order:"1",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/glass.png')")},leftImg1:{width:"60px",order:"6",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/phones.png')")},leftImg2:{width:"60px",order:"2",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/clock.png')")},rightImg1:{width:"60px",order:"4",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/coke.png')")},rightImg2:{width:"60px",order:"5",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/ball.png')")},rightImg3:{width:"60px",order:"7",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/ducks.png')")},rightImg4:{width:"60px",order:"8",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/glasses.png')")},rightImg5fhd:{width:"60px",order:"9",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/cameras.png')")},rightImg6fhd:{width:"60px",order:"10",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/shackle.png')")},rightImg7fhd:{width:"60px",order:"11",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(H,"/cpu.png')")},centerInfo:{display:"flex",alignItems:"center",order:"3"},centerLastText:{whiteSpace:"nowrap",fontSize:"36px",fontWeight:"700",color:"#fff",textShadow:"0 0 6px rgba(0, 0, 0, 0.09)",letterSpacing:"0.9px",textTransform:"uppercase",padding:"0 12px 0 12px",minWidth:"628px",boxSizing:"border-box"},centerButton:{whiteSpace:"nowrap",boxShadow:"-5px 3px 5px 1px rgba(0, 0, 0, 0.4);",textShadow:"-5px 3px 5px rgba(0, 0, 0, 0.19)",border:"1px solid #000000",transition:"color 0.2s ease-out, background 0.2s ease-out",fontSize:"22px",lineHeight:"30px",fontWeight:"400",background:"transparent",textTransform:"uppercase",color:"#000 !important",padding:"5px 14px 3px",minWidth:"191px",letterSpacing:"0.45px",boxSizing:"border-box",cursor:"pointer","&:hover":{textDecoration:"none",color:"#fff !important",background:"#000"}},"@media only screen and (max-width: 1699px)":{rightImg7fhd:{display:"none"},body:{backgroundPosition:"22% 50%"}},"@media only screen and (max-width: 1639px)":{rightImg6fhd:{display:"none"},body:{backgroundPosition:"26% 50%"}},"@media only screen and (max-width: 1579px)":{rightImg5fhd:{display:"none"},body:{backgroundPosition:"32% 50%"}},"@media only screen and (max-width: 1479px)":{leftImg0fhd:{display:"none"},leftImg1:{order:"1"},body:{backgroundPosition:"32% 50%"}},"@media only screen and (max-width: 1399px)":{body:{backgroundPosition:"32% 50%"},centerLastText:{minWidth:"528px"}},"@media only screen and (max-width: 1199px)":{leftImg1:{marginRight:"-2%"},leftImg2:{marginRight:"-2%"},centerLastText:{fontSize:"24px",letterSpacing:"0.6px",padding:"0 12px 0 12px",minWidth:"298px"},centerButton:{fontSize:"14px",lineHeight:"16px",padding:"5px 14px 3px",minWidth:"119px"},body:{backgroundPosition:"22% 75%",backgroundSize:"439px 100px"}},"@media only screen and (max-width: 959px)":{rightImg4:{display:"none"}},"@media only screen and (max-width: 859px)":{rightImg3:{display:"none"},inner:{justifyContent:"space-between"}},"@media only screen and (max-width: 759px)":{leftImg1:{display:"none"},body:{backgroundPosition:"12% 75%"}},"@media only screen and (max-width: 659px)":{rightImg2:{display:"none"}},"@media only screen and (max-width: 579px)":{leftImg2:{display:"none"},body:{backgroundPosition:"-60px 75%"}},"@media only screen and (max-width: 519px)":{rightImg1:{display:"none"}},"@media only screen and (max-width: 479px)":m({rightImg1:{display:"none"},centerLastText:{fontSize:"20px"},centerButton:{marginRight:"6px"}},"centerLastText",{whiteSpace:"normal",minWidth:"auto"}),"@media only screen and (max-width: 399px)":{centerLastText:{fontSize:"16px"}},"@media only screen and (max-width: 339px)":{centerLastText:{fontSize:"15px"}}});var o=p.create("div",{class:n.classes.contentChild}),i=p.create("div",{class:n.classes.body,style:{position:"absolute",top:"0px",left:"0px",display:"table",width:"100%",height:"55px",lineHeight:"normal",opacity:"1",zIndex:"2147483647"},on:["click",function(t){t.stopPropagation(),t.preventDefault(),window.open(e.options.button.link),e.events.onClick()}],append:p.create("div",{class:n.classes.inner,append:[p.create("div",{class:n.classes.leftImg0fhd}),p.create("div",{class:n.classes.leftImg1}),p.create("div",{class:n.classes.leftImg2}),p.create("div",{class:n.classes.centerInfo,append:[p.create("div",{class:n.classes.centerLastText,append:e.options.text[0]}),p.create("a",{class:n.classes.centerButton,href:e.options.button.link,target:"_blank",title:e.options.title,append:e.options.button.text[0]})]}),p.create("div",{class:n.classes.rightImg1}),p.create("div",{class:n.classes.rightImg2}),p.create("div",{class:n.classes.rightImg3}),p.create("div",{class:n.classes.rightImg4}),p.create("div",{class:n.classes.rightImg5fhd}),p.create("div",{class:n.classes.rightImg6fhd}),p.create("div",{class:n.classes.rightImg7fhd})]})});t.wGet(i).setCheckStyles(["display","position","top","left","marginTop","marginLeft","marginRight","marginBottom","opacity","zIndex","transform","visibility"]);var r=function(e){e.stopPropagation()},a=[!1,!0];return["pointerdown","pointerenter","pointerleave","pointermove","pointerout","pointerover","pointerup"].concat(["mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseout","mouseout","mouseup"]).forEach(function(e){a.forEach(function(t){"mouseenter"===e&&t||i.addEventListener(e,r,t)})}),{node:i,content:o}}},{key:"getContent",value:function(){var e=this,t=e.wSheets.getSheet(),n=document.createDocumentFragment();t.add({cell:{fallbacks:{display:"inline-block"}}});var o="16px";e.options.text[0].length>90&&(o="14px"),t.add({title:{extend:"cell",fontSize:o,fontWeight:"bold",margin:"auto 10px",lineHeight:"23px",verticalAlign:"middle",fontFamily:"Arial, sans-serif",flexGrow:1,overflow:"hidden",textOverflow:"ellipsis"},"@media only screen and (max-width: 1050px)":{title:{fontSize:"14px",marginLeft:"5px",marginRight:"5px"}}}),n.appendChild(p.create("div",{class:t.classes.title,title:e.options.text[0],append:[e.options.text[0]]})),t.add({openBtn:{extend:"cell",verticalAlign:"middle",fontSize:"16px",fontWeight:"bold",color:"#FFF !important",margin:"auto 10px",padding:"10px 25px",backgroundColor:"#4b9f00 !important",borderRadius:"19px",textDecoration:"none !important",fontFamily:"Arial, sans-serif","&:hover":{backgroundColor:"#66ad26 !important",color:"#FFF !important"}},"@media only screen and (max-width: 1050px)":{openBtn:{fontSize:"14px",marginLeft:"5px",marginRight:"5px",paddingLeft:"10px",paddingRight:"10px"}}});var i=p.create("a",{class:t.classes.openBtn,href:e.options.button.link,target:"_blank",append:[e.options.button.text[0]]});return h(i,function(t){e.events.onClick()}),n.appendChild(i),{node:n,moreBtn:i}}},{key:"getStyle",value:function(){var e=this,t=e.wDom.createElement("style",{},e.wSheets.toString());return e.wSheets.onChange=function(){t.setText(e.wSheets.toString())},{node:t.getNode()}}},{key:"insertBody",value:function(e){document.body.appendChild(e)}},{key:"insertStyle",value:function(e){document.head.appendChild(e)}},{key:"insert",value:function(){var e=this.body,t=this.style;W(this,!0),this.insertBody(e.node),this.insertStyle(t.node),this.events.onShow()}},{key:"close",value:function(){this.isClosed||(this.isClosed=!0,this.remove(),W(this,!1))}},{key:"remove",value:function(){if(!this.isRemoved){this.isRemoved=!0,this.destroy();var e=this.body.node.parentNode;e&&e.removeChild(this.body.node);var t=this.style.node.parentNode;t&&t.removeChild(this.style.node)}}},{key:"fadeIn",value:function(){this.insert()}},{key:"fadeOut",value:function(){this.close()}},{key:"destroy",value:function(){this.wDom.destroy()}}]),e}())(e,s);break;case 1:n=new(function(){function e(t,n){Object(T.a)(this,e),this.options=t,this.events=n,this.wDom=new j,this.wSheets=new D,this.create()}return Object(F.a)(e,[{key:"create",value:function(){var e=document.createDocumentFragment(),t=this.getBody(),n=this.getContent();this.body=t,this.content=n,this.wDom.wGet(t.content).appendChild(n.node);var o=this.getStyle();this.style=o,e.appendChild(t.node),e.appendChild(o.node),this.wDom.wGet(e),this.wDom.wGet(o.node)}},{key:"getBody",value:function(){var e=this,t=e.wDom,n=e.wSheets.getSheet();n.add({body:{"-webkit-font-smoothing":"antialiased",background:"repeating-linear-gradient(rgba(153, 153, 153, 0.15), rgba(153, 153, 153, 0.15) 7px, transparent 7px, transparent 14px)",backgroundColor:"#fff",backgroundPosition:"0 6px",backgroundRepeat:"no-repeat",color:"#000",textAlign:"center",cursor:"pointer",marginTop:"0px",display:"table !important",opacity:"1 !important",position:"absolute",top:"0px",left:"0px",fontWeight:"normal",font:"normal normal 14px Arial, Helvetica, sans-serif\t",width:"100%",height:"55px",lineHeight:"normal",zIndex:"2147483647"},inner:{display:"flex",height:"55px",justifyContent:"space-around",maxWidth:"1860px",margin:"0 auto"},leftImg0fhd:{width:"60px",order:"1",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/glass.png')")},leftImg1:{width:"60px",order:"6",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/phones.png')")},leftImg2:{width:"60px",order:"2",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/clock.png')")},rightImg1:{width:"60px",order:"4",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/coke.png')")},rightImg2:{width:"60px",order:"5",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/ball.png')")},rightImg3:{width:"60px",order:"7",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/ducks.png')")},rightImg4:{width:"60px",order:"8",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/glasses.png')")},rightImg5fhd:{width:"60px",order:"9",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/cameras.png')")},rightImg6fhd:{width:"60px",order:"10",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/shackle.png')")},rightImg7fhd:{width:"60px",order:"11",height:"55px",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundImage:"url('".concat(Y,"/cpu.png')")},centerInfo:{display:"flex",alignItems:"center",order:"3"},centerFirtsText:{height:"55px",lineHeight:"60px",background:"#000",color:"#fff",textShadow:"0 0 13px rgba(0, 0, 0, 0.09)",fontSize:"30px",fontWeight:"500",letterSpacing:"0.75px",textTransform:"uppercase",padding:"0 4px",minWidth:"126px",boxSizing:"border-box"},centerLastText:{lineHeight:"60px",whiteSpace:"nowrap",fontSize:"30px",fontWeight:"500",color:"#000",letterSpacing:"0.75px",textTransform:"uppercase",padding:"0 52px 0 2px",minWidth:"466px",boxSizing:"border-box"},centerButton:{whiteSpace:"nowrap",boxShadow:"0 3px 19px 5px rgba(222, 73, 27, 0.54)",transition:"box-shadow 0.2s ease-out",fontSize:"18px",lineHeight:"30px",fontWeight:"700",background:"linear-gradient(to bottom, rgba(253,101,19,1) 0%,rgba(254,87,23,1) 100%)",textTransform:"uppercase",color:"#fff !important",padding:"5px 14px 3px",borderRadius:"24px",minWidth:"172px",letterSpacing:"0.45px",boxSizing:"border-box",cursor:"pointer","&:hover":{textDecoration:"none",color:"#fff !important",boxShadow:"0 3px 19px 5px rgba(222, 73, 27, 0.74)"}},"@media only screen and (max-width: 1699px)":{rightImg7fhd:{display:"none"}},"@media only screen and (max-width: 1639px)":{rightImg6fhd:{display:"none"}},"@media only screen and (max-width: 1579px)":{rightImg5fhd:{display:"none"}},"@media only screen and (max-width: 1479px)":{leftImg0fhd:{display:"none"},leftImg1:{order:"1"}},"@media only screen and (max-width: 1199px)":{leftImg1:{marginRight:"-2%"},leftImg2:{marginRight:"-2%"},centerFirtsText:{fontSize:"18px",letterSpacing:"0.45px",minWidth:"68px"},centerLastText:{fontSize:"18px",letterSpacing:"0.45px",padding:"5px 14px 0 2px",minWidth:"244px"},centerButton:{fontSize:"12px",lineHeight:"16px",padding:"5px 14px 3px",borderRadius:"12px",minWidth:"114px"}},"@media only screen and (max-width: 959px)":{rightImg4:{display:"none"}},"@media only screen and (max-width: 859px)":{rightImg3:{display:"none"},inner:{justifyContent:"space-between"}},"@media only screen and (max-width: 759px)":{leftImg1:{display:"none"}},"@media only screen and (max-width: 659px)":{rightImg2:{display:"none"}},"@media only screen and (max-width: 579px)":{leftImg2:{display:"none"}},"@media only screen and (max-width: 519px)":{rightImg1:{display:"none"}},"@media only screen and (max-width: 479px)":{rightImg1:{display:"none"},centerButton:{marginRight:"6px"},centerFirtsText:{minWidth:"auto"},centerLastText:{whiteSpace:"normal",minWidth:"auto"}},"@media only screen and (max-width: 399px)":{centerFirtsText:{fontSize:"16px"},centerLastText:{fontSize:"16px"}},"@media only screen and (max-width: 339px)":{centerFirtsText:{fontSize:"15px"},centerLastText:{fontSize:"15px"}}});var o=p.create("div",{class:n.classes.contentChild}),i=p.create("div",{class:n.classes.body,style:{position:"absolute",top:"0px",left:"0px",display:"table",width:"100%",height:"55px",lineHeight:"normal",opacity:"1",zIndex:"2147483647"},on:["click",function(t){t.stopPropagation(),t.preventDefault(),window.open(e.options.button.link),e.events.onClick()}],append:p.create("div",{class:n.classes.inner,append:[p.create("div",{class:n.classes.leftImg0fhd}),p.create("div",{class:n.classes.leftImg1}),p.create("div",{class:n.classes.leftImg2}),p.create("div",{class:n.classes.centerInfo,append:[p.create("div",{class:n.classes.centerFirtsText,append:e.options.text[1][0]}),p.create("div",{class:n.classes.centerLastText,append:e.options.text[1][1]}),p.create("a",{class:n.classes.centerButton,href:e.options.button.link,target:"_blank",title:e.options.title,append:e.options.button.text[1]})]}),p.create("div",{class:n.classes.rightImg1}),p.create("div",{class:n.classes.rightImg2}),p.create("div",{class:n.classes.rightImg3}),p.create("div",{class:n.classes.rightImg4}),p.create("div",{class:n.classes.rightImg5fhd}),p.create("div",{class:n.classes.rightImg6fhd}),p.create("div",{class:n.classes.rightImg7fhd})]})});t.wGet(i).setCheckStyles(["display","position","top","left","marginTop","marginLeft","marginRight","marginBottom","opacity","zIndex","transform","visibility"]);var r=function(e){e.stopPropagation()},a=[!1,!0];return["pointerdown","pointerenter","pointerleave","pointermove","pointerout","pointerover","pointerup"].concat(["mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseout","mouseout","mouseup"]).forEach(function(e){a.forEach(function(t){"mouseenter"===e&&t||i.addEventListener(e,r,t)})}),{node:i,content:o}}},{key:"getContent",value:function(){var e=this,t=e.wSheets.getSheet(),n=document.createDocumentFragment();t.add({cell:{fallbacks:{display:"inline-block"}}});var o="16px";(e.options.text[1][0]+e.options.text[1][1]).length>90&&(o="14px"),t.add({title:{extend:"cell",fontSize:o,fontWeight:"bold",margin:"auto 10px",lineHeight:"23px",verticalAlign:"middle",fontFamily:"Arial, sans-serif",flexGrow:1,overflow:"hidden",textOverflow:"ellipsis"},"@media only screen and (max-width: 1050px)":{title:{fontSize:"14px",marginLeft:"5px",marginRight:"5px"}}}),n.appendChild(p.create("div",{class:t.classes.title,title:e.options.text[1][0]+e.options.text[1][1],append:[e.options.text[1][0]+e.options.text[1][1]]})),t.add({openBtn:{extend:"cell",verticalAlign:"middle",fontSize:"16px",fontWeight:"bold",color:"#FFF !important",margin:"auto 10px",padding:"10px 25px",backgroundColor:"#4b9f00 !important",borderRadius:"19px",textDecoration:"none !important",fontFamily:"Arial, sans-serif","&:hover":{backgroundColor:"#66ad26 !important",color:"#FFF !important"}},"@media only screen and (max-width: 1050px)":{openBtn:{fontSize:"14px",marginLeft:"5px",marginRight:"5px",paddingLeft:"10px",paddingRight:"10px"}}});var i=p.create("a",{class:t.classes.openBtn,href:e.options.button.link,target:"_blank",append:[e.options.button.text[1]]});return h(i,function(t){e.events.onClick()}),n.appendChild(i),{node:n,moreBtn:i}}},{key:"getStyle",value:function(){var e=this,t=e.wDom.createElement("style",{},e.wSheets.toString());return e.wSheets.onChange=function(){t.setText(e.wSheets.toString())},{node:t.getNode()}}},{key:"insertBody",value:function(e){document.body.appendChild(e)}},{key:"insertStyle",value:function(e){document.head.appendChild(e)}},{key:"insert",value:function(){var e=this.body,t=this.style;Q(this,!0),this.insertBody(e.node),this.insertStyle(t.node),this.events.onShow()}},{key:"close",value:function(){this.isClosed||(this.isClosed=!0,this.remove(),Q(this,!1))}},{key:"remove",value:function(){if(!this.isRemoved){this.isRemoved=!0,this.destroy();var e=this.body.node.parentNode;e&&e.removeChild(this.body.node);var t=this.style.node.parentNode;t&&t.removeChild(this.style.node)}}},{key:"fadeIn",value:function(){this.insert()}},{key:"fadeOut",value:function(){this.close()}},{key:"destroy",value:function(){this.wDom.destroy()}}]),e}())(e,s)}n.fadeIn()}else Z.debug("Bar is empty")})}Z.debug("Not matched, skip")}).catch(function(e){Z.error("Init error",e)})}}]),e}())}])}})},function(e){!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=55)}({0:function(t,n,o){o.r(n);var i=e;n.default=i},36:function(e,t){e.exports=n(194)},37:function(e,t){e.exports=n(104)},5:function(e,t,n){n.d(t,"b",function(){return a});var o=n(0),i=[],r=function(e,t,n){return A.a.resolve().then(function(){return!n||n()}).then(function(n){n&&(-1===i.indexOf(e)&&i.push(e),t())})},a=function(e,t,n){return r(e,function(){return o.default.callFn("getPreferences").then(function(n){t(e,{preferences:n})})},n)};t.a=r},55:function(e,t,n){n.r(t);var o=n(0),i=n(8),r=n.n(i),a=n(36),s=n.n(a),l=n(5),u=n(37),d=n.n(u);Object(l.a)("sovetnik",function(){var e=document.domain;/^www./.test(e)&&(e=e.slice(4));var t="//dl.metabar.ru/static/js/sovetnik.min.js?mbr=true&settings="+encodeURIComponent(g()({affId:1020,clid:2210496,applicationName:"SaveFrom",aviaEnabled:!0,offerEnabled:!0})),n=function(e,t){return o.default.storage.get(e,t)},i=function(e,t){return!0===e.sovetnikRemoved&&o.default.sendMessage({action:"updateOption",key:"sovetnikEnabled",value:0}),o.default.storage.set(e,t)},a=function(e,t){return o.default.storage.remove(e,t)},s={inject:function(){if(!r()()){var e=document.createElement("script");e.async=1,e.src=t,e.setAttribute("charset","UTF-8"),document.body&&(document.body.appendChild(e),n=30,i=[].slice,a=setInterval(function(){var e=null,t=i.call(document.querySelectorAll("body style+div[id^=m]>div[class]:not([id])>img[src]")).some(function(t){if(/^data:image\/png;/.test(t.src)){var n=t.parentNode&&t.parentNode.parentNode;if(n&&/^m/.test(n.id))return n.querySelector("div>a[title][id^=m]~a[title][id^=m]~a[title][id^=m]")?(e="#"+n.id,!0):void 0}});(--n<0||t)&&clearInterval(a),t&&s(e)},1e3),s=function(e){var t=document.querySelector(e);t&&(o.default.sendMessage({action:"track",t:"event",ec:"sovetnik",ea:"show",el:"bar",tid:"UA-67738130-3"}),t.addEventListener("mousedown",function(e){if(0===e.button){for(var n=e.target;n&&"A"!==n.tagName&&("TR"!==n.tagName||!n.dataset.typeShop);)(n=n.parentNode)&&n===t&&(n=null);if(n){var i=null;if("TR"===n.tagName&&(i=n.dataset.typeShop),"A"===n.tagName){var r=n.previousElementSibling,a=n.nextElementSibling;a&&"A"===a.tagName&&a.querySelector("span")||(a=null),a&&a.nextElementSibling&&(a=null);var s=n.parentNode;s&&s.parentNode!==t&&(s=null),s&&2!==s.childElementCount&&(s=null),s&&!r&&a&&(i="Show button")}i&&o.default.sendMessage({action:"track",t:"event",ec:"sovetnik",ea:"click",el:i,tid:"UA-67738130-3",ev:2})}}}))})}var n,i,a,s},canInject:function(e,t){this.listenScriptMessages(),n(["sovetnikEnabled","sovetnikBlacklist","sovetnikRemoved","sovetnikUpdateTime","sovetnikDisabled"],function(n){0!==n.sovetnikEnabled&&n.sovetnikRemoved&&(n.sovetnikRemoved=!1,s.setSovetnikRemovedState(n.sovetnikRemoved)),n.sovetnikBlacklist&&n.sovetnikBlacklist[e]||n.sovetnikRemoved||n.sovetnikDisabled||t(),n.sovetnikUpdateTime=n.sovetnikUpdateTime||0,b()()-n.sovetnikUpdateTime>6048e5&&i({sovetnikUpdateTime:b()(),sovetnikRemoved:!1,sovetnikBlacklist:{}})})},addToBlacklist:function(e){n("sovetnikBlacklist",function(t){t.sovetnikBlacklist=t.sovetnikBlacklist||{},t.sovetnikBlacklist[e]=!0,i(t)})},setSovetnikRemovedState:function(e){void 0===e?a("sovetnikRemoved"):i({sovetnikRemoved:e})},setOfferState:function(e){void 0===e?a("sovetnikOfferAccepted"):i({sovetnikOfferAccepted:e})},onScriptMessage:function(e){switch(e.command){case"blacklist":this.addToBlacklist(e.value);break;case"removed":this.setSovetnikRemovedState(e.value);break;case"offerAccepted":this.setOfferState(e.value)}},listenScriptMessages:function(){window.addEventListener("message",function(e){e&&e.data&&"MBR_ENVIRONMENT"===e.data.type&&this.onScriptMessage(e.data)}.bind(this),!1)}};s.canInject(e,s.inject.bind(s))},function(){return!r()()&&(!s()(location.hostname,["vk.com","youtube.com","odnoklassniki.ru","ok.ru","privet.ru","facebook.com","news.sportbox.ru","play.google.com","roem.ru","linkedin.com","ex.ua","instagram.com","rutube.ru","e.mail.ru","fotki.yandex.ru","support.kaspersky.ru","vimeo.com","club.foto.ru","garant.ru","webmaster.yandex.ru","support.kaspersky.ru","fotki.yandex.ru","mk.ru","metrika.yandex.ru","images.yandex.ru","disk.yandex.ru","maps.yandex.ru","help.yandex.ru","www.yaplakal.com","www.facebook.com","my.mail.ru","aviasales.ru"])&&!d()(location.protocol+"//"+location.hostname+"/")&&o.default.callFn("getPreferences").then(function(e){return!!e.hasSovetnik&&!!e.sovetnikEnabled}))})},8:function(e,t){e.exports=n(73)}})},function(e){!function(e){function t(t){for(var o,a,s=t[0],l=t[1],u=t[2],c=0,f=[];c<s.length;c++)a=s[c],i[a]&&f.push(i[a][0]),i[a]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(e[o]=l[o]);for(d&&d(t);f.length;)f.shift()();return r.push.apply(r,u||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],o=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(o=!1)}o&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={16:0},r=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||p()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=L()(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=l;r.push([56,0]),n()}({56:function(e,t,n){n.r(t);var o=n(0),r=n(8),a=n.n(r),s=n(5),u=n(13),d=n.n(u)()("swStat");Object(s.a)("swStat",function(){function e(){return window.location.href}function t(e){return"a"===e.tagName.toLowerCase()?e.getAttribute("href"):e.parentNode&&e.parentNode!==document?t(e.parentNode):null}var n={pid:function(e){var t=new Uint8Array(16);return window.crypto.getRandomValues(t),l()(t).map(function(e){return e.toString(16)}).join("")}(),lastFocusedUrl:null,prev:null};document.addEventListener;var o=function(){function t(){Object(T.a)(this,t),this.handlers=[],this.lastH=e()}return Object(F.a)(t,[{key:"addListener",value:function(e){return this.handlers.push(e),this}},{key:"listen",value:function(){var e=this;return setInterval(function(){e._checkChange()},1e3),this}},{key:"_checkChange",value:function(){var e=this,t=500*Math.random();setTimeout(function(){e._singleCheck()},t)}},{key:"_singleCheck",value:function(){var t=e();this.lastH!==t&&(this.triggerChange(t,this.lastH),this.lastH=t)}},{key:"triggerChange",value:function(e,t){this.handlers.forEach(function(n){return n(e,t)})}}]),t}(),r=new(function(){function e(){Object(T.a)(this,e),this.global.uid&&(this.global.pid=this.global.uid)}return Object(F.a)(e,[{key:"shared",get:function(){return GM_getValue("dprm",null)},set:function(e){GM_setValue("dprm",this._valueOf(e))}},{key:"global",get:function(){return this._global?this._global:this._global=this._getGlobal()},set:function(e){GM_setValue("sdc_data",this._valueOf(e))}}]),Object(F.a)(e,[{key:"_getGlobalRaw",value:function(){return GM_getValue("sdc_data",null)}},{key:"_getGlobal",value:function(){var e=this._getGlobalRaw();return e?JSON.parse(e):n}},{key:"_valueOf",value:function(e){switch(typeof e){case"number":case"string":return e;case"object":return g()(e);default:return null}}},{key:"_commit",value:function(){this.global=this.global}},{key:"activate",value:function(e){this.global._active=e,this._commit()}},{key:"fixChange",value:function(e){this.global.prev=this.global._active,this.global.q=e,this.global.hreferer=document.referrer,this.global._active=e,delete this.global.meta;var t=function(){var e=window.location.href;if(e.match(/www\.google\..+\/search?/g)&&-1===e.indexOf("&tbm=")){var t=function(){var e=[],t=[],n=0;function o(e,t){return{title:e.querySelector("h3").innerText,href:e.querySelectorAll("cite")[0].href,index:t}}function i(e){return{url:e.href,label:e.title,position:e.index}}return document.querySelectorAll("#tads ol li.ads-ad").forEach(function(t){e.push(o(t,n++))}),document.querySelectorAll("#res [class='g']").forEach(function(e){t.push(function(e,t){var n;return{title:(n=e.querySelector("a")).innerText,href:n.href,index:t}}(e,n++))}),document.querySelectorAll("#bottomads ol li.ads-ad").forEach(function(t){e.push(o(t,n++))}),{org:t.map(i),ads:e.map(i)}}();return g()([{type:"serp",data:t}])}return null}();t&&this.addSerptember(t),this._commit()}},{key:"markAjax",value:function(){this.global.meta=["ajax"],this._commit()}},{key:"recordManualHard",value:function(e){this.global._manualHard=e,this._commit()}},{key:"recordManualSoft",value:function(e){this.global._manualSoft=e,this._commit()}},{key:"assignManual",value:function(){this.global.et=this.global._manualHard||this.global._manualSoft}},{key:"cleanUpOptionals",value:function(){delete this.global._manualSoft,delete this.global._manualHard,delete this.global.et,delete this.global.meta,delete this.global.ses,delete this.global.browserName,delete this.global.tgt,delete this.global.ht,delete this.global.uid}},{key:"addSerptember",value:function(e){this.global.ht=e,this._commit()}}]),e}()),a=new(function(){function n(e,t){Object(T.a)(this,n),this.source=e,this.sync=t}return Object(F.a)(n,[{key:"init",value:function(){this._initOnload(this._handleOnLoad.bind(this)),this._initOnFocus(this._handleOnFocus.bind(this)),this._initOnLinkHard(this._handleOnLinkHard.bind(this)),this._initOnUrlChange(this._handleOnUrlChange.bind(this)),this._initOnLinkSoft(this._handleOnLinkSoft.bind(this))}},{key:"push",value:function(){this._prePush(),this.sync.map=this.source.global,this.sync.resync(),this._afterPush()}},{key:"_prePush",value:function(){this.source.assignManual()}},{key:"_afterPush",value:function(){this.source.cleanUpOptionals()}},{key:"_initOnload",value:function(e){e.apply(this)}},{key:"_handleOnLoad",value:function(){this.source.fixChange(e()),this.push()}},{key:"_initOnFocus",value:function(e){window.addEventListener("focus",e)}},{key:"_handleOnFocus",value:function(){this.source.activate(e())}},{key:"_initOnLinkHard",value:function(e){document.addEventListener("click",e)}},{key:"_handleOnLinkHard",value:function(e){var n=t(e.target);n&&this.source.recordManualHard(n)}},{key:"_initOnLinkSoft",value:function(e){["contextmenu","auxclick"].forEach(function(t){return document.addEventListener(t,e)})}},{key:"_handleOnLinkSoft",value:function(e){var n=t(e.target);n&&this.source.recordManualSoft(n)}},{key:"_initOnUrlChange",value:function(e){(new o).addListener(e).listen()}},{key:"_handleOnUrlChange",value:function(e){this.source.fixChange(e),this.source.markAjax(),this.push()}}]),n}())(r,new(function(){function e(){Object(T.a)(this,e),this._settings={relatedUrl:"https://savefr.com/related",sourceId:"a0c58c182"},this._common={s:this._settings.sourceId,tmv:"3.0",sub:GM_info.script.version,md:21}}return Object(F.a)(e,[{key:"map",get:function(){return this._map},set:function(e){this._map=e}}]),Object(F.a)(e,[{key:"_pack",value:function(){return["e",[X()(i()(this._common,this.map)).filter(function(e){return 0!=e[0].indexOf("_")&&!!e[1]}).map(function(e){return"".concat(e[0],"=").concat(encodeURIComponent(e[1]))}).join("&")]].map(encodeURIComponent).join("=")+"&decode=0"}},{key:"resync",value:function(){GM_xmlhttpRequest({method:"POST",url:this._settings.relatedUrl,data:this._pack(),headers:{"Content-Type":"application/x-www-form-urlencoded"},onload:function(e){}})}}]),e}()));try{!function(){var e=r.shared;e?(new Date).getTime()-e>1836e5&&window==top&&a.init():r.shared=(new Date).getTime()}()}catch(e){d(e)}},function(){if("undefined"!=typeof GM_getValue&&document.domain&&!a()())return o.default.callFn("getPreferences").then(function(e){return!(!e.hasSwStat||!e.statEnabled)})})}})}],e.loadedContentScripts=[],e.contentScriptMono=null,e}return J(t,ae(function(){function e(){Object(T["a"])(this,e)}return e}())),Object(F.a)(t,[{key:"createMonoInstance",value:function(e){throw new Error("Instance type (".concat(e,") is not found"))}},{key:"addMonoInstance",value:function(e){var t=this;e.onDestroy.addListener(function(){var n=t.monoInstances.indexOf(e);-1!==n&&t.monoInstances.splice(n,1)}),this.monoInstances.push(e)}},{key:"getContentScriptMono",value:function(){return this.contentScriptMono||(this.contentScriptMono=this.createMonoInstance("contentScript")),this.contentScriptMono}},{key:"inject",value:function(){var e=this,t=[],n=[],o=[];this.contentScripts.forEach(function(e){de(e)&&e.js.forEach(function(i){"document_start"===e.run_at?-1===n.indexOf(i)&&n.push(i):"document_end"===e.run_at?-1===t.indexOf(i)&&t.push(i):-1===o.indexOf(i)&&o.push(i)})}),n.length&&this.runWhenDocumentStart(function(){e.executeContentScripts(n)}),t.length&&this.runWhenDocumentEnd(function(){e.executeContentScripts(t)}),o.length&&this.runWhenDocumentIdle(function(){e.executeContentScripts(o)})}},{key:"runWhenDocumentStart",value:function(e){e()}},{key:"runWhenDocumentEnd",value:function(e){this.runWhenDocumentStart(function(){if(-1!==["interactive","complete"].indexOf(document.readyState))e();else{var t=function t(){-1!==["interactive","complete"].indexOf(document.readyState)&&(document.removeEventListener("DOMContentLoaded",t),window.removeEventListener("load",t),e&&e(),e=null)};document.addEventListener("DOMContentLoaded",t),window.addEventListener("load",t)}})}},{key:"runWhenDocumentIdle",value:function(e){this.runWhenDocumentEnd(function(){try{if(!window.requestIdleCallback)throw new Error("requestIdleCallback in not supported");window.requestIdleCallback(e)}catch(t){setTimeout(e,1)}})}},{key:"executeScript",value:function(e){var t=this;"document_start"===e.runAt?this.runWhenDocumentStart(function(){t.executeContentScripts([t.contentScriptMap[e.file]])}):"document_end"===e.runAt?this.runWhenDocumentEnd(function(){t.executeContentScripts([t.contentScriptMap[e.file]])}):this.runWhenDocumentIdle(function(){t.executeContentScripts([t.contentScriptMap[e.file]])})}},{key:"isLoadedFile",value:function(e){return-1!==this.loadedContentScripts.indexOf(this.contentScriptMap[e])}},{key:"executeContentScripts",value:function(e){var t=this;return this.executeScripts(e.map(function(e){return-1===t.loadedContentScripts.indexOf(e)&&t.loadedContentScripts.push(e),t.contentScriptIndex[e]}),this.getContentScriptMono())}},{key:"executeScripts",value:function(e,t){e.forEach(function(e){try{e(t)}catch(e){le.error("executeScript error",e)}})}}]),t}(),de=function(e){if("boolean"==typeof e._isMatch)return e._isMatch;var t=window.top===window.self||!0===e.all_frames;return t&&(t=new RegExp(e.matches,"i").test(location.href)),t&&e.exclude_matches&&(t=!new RegExp(e.exclude_matches,"i").test(location.href)),t&&e.include_globs&&(t=new RegExp(e.include_globs,"i").test(location.href)),t&&e.exclude_globs&&(t=!new RegExp(e.exclude_globs,"i").test(location.href)),e._isMatch=t},ce=ue,fe=function(){function e(t){Object(T.a)(this,e),this.bundle=t,this.containerNode=null,this.mono=null}return Object(F.a)(e,[{key:"create",value:function(){this.createPageContainer(),this.createMono(),this.mono.container=this.containerNode,this.executePageScripts()}},{key:"createMono",value:function(){this.destroyMono(),this.mono=this.bundle.createMonoInstance("page")}},{key:"createPageContainer",value:function(){this.destroyContainer(),this.containerNode=document.createElement("div"),this.containerNode.innerHTML=this.getPageContent(),document.body.appendChild(this.containerNode)}},{key:"getPageContent",value:function(){return""}},{key:"getPageScripts",value:function(){return[]}},{key:"executePageScripts",value:function(){return this.bundle.executeScripts(this.getPageScripts(),this.mono)}},{key:"destroyMono",value:function(){this.mono&&this.mono.destroy(),this.mono=null}},{key:"destroyContainer",value:function(){if(this.containerNode){var e=this.containerNode.parentNode;e&&e.removeChild(this.containerNode)}this.containerNode=null}},{key:"destroy",value:function(){this.destroyMono(),this.destroyContainer()}}]),e}(),pe=function(e){function t(e){var o;return Object(T.a)(this,t),(o=_(this,V(t).call(this,e))).optionsPage='<div class="sf-options-container"><h1 data-i18n="optionsTitle">SaveFrom.net Helper - Preferences</h1><form><div class="sf-block sf-browser sf-userscript"><label><input type="checkbox" id="button" checked="1">&nbsp;<span data-i18n="showButton">Show extension button</span></label></div><div class="sf-block"><div data-i18n="optionsHandleLinks" class="sf-title">Handle links</div><label><input type="checkbox" id="lmMediaHosting" checked="1">&nbsp;<span data-i18n="optionsMediaHostings">To mediahostings</span></label></div><div class="sf-block"><div data-i18n="optionsModules" class="sf-title">Modules</div><div id="youtube_box" class="sf-module"><label><input type="checkbox" id="moduleYoutube" checked="1">&nbsp;<span data-i18n="optionsYoutube">YouTube</span></label><div class="sf-module_options"><div class="sf-inline"><span data-i18n="optionsYTHideLinks">Hide links</span>: <label><input type="checkbox" id="ytHideFLV" checked="0">&nbsp;FLV</label> <label><input type="checkbox" id="ytHideMP4" checked="0">&nbsp;MP4</label> <label><input type="checkbox" id="ytHideWebM" checked="1">&nbsp;WebM</label> <label><input type="checkbox" id="ytHide3GP" checked="1">&nbsp;3GP</label> <label><input type="checkbox" id="ytHide3D" checked="1">&nbsp;3D</label> <label><input type="checkbox" id="ytHideMP4NoAudio" checked="1">&nbsp;MP4&nbsp;(no&nbsp;audio)</label> <label><input type="checkbox" id="ytHideAudio_MP4" checked="1">&nbsp;Audio</label></div></div></div><div class="sf-module"><label><input type="checkbox" id="moduleDailymotion" checked="1">&nbsp;<span data-i18n="optionsDailymotion">Dailymotion</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleVimeo" checked="1">&nbsp;<span data-i18n="optionsVimeo">Vimeo</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleFacebook" checked="1">&nbsp;<span data-i18n="optionsFacebook">Facebook</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleSoundcloud" checked="1">&nbsp;<span data-i18n="optionsSoundcloud">SoundCloud</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleVkontakte" checked="1">&nbsp;<span data-i18n="optionsVkontakte">VK</span></label><div class="sf-module_options"><label><input type="checkbox" id="vkShowBitrate" checked="0">&nbsp;<span data-i18n="optionsBitrate">Show bitrate instantly</span></label></div></div><div class="sf-module"><label><input type="checkbox" id="moduleOdnoklassniki" checked="1">&nbsp;<span data-i18n="optionsOdnoklassniki">Odnoklassniki</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleMailru" checked="1">&nbsp;<span data-i18n="optionsMailru">Mail.ru</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleInstagram" checked="1">&nbsp;<span data-i18n="optionsInstagram">Instagram</span></label></div><div class="sf-module"><label><input type="checkbox" id="moduleRutube" checked="1">&nbsp;<span data-i18n="optionsRutube">Rutube</span></label></div></div><div class="sf-block" id="blockUmmyInfo"><label><input type="checkbox" id="showUmmyInfo" checked="1">&nbsp;<span data-i18n="optionsShowUmmyInfo">Show Ummy info popup</span></label> <label><input type="checkbox" id="showUmmyBtn" checked="1">&nbsp;<span data-i18n="optionsShowUmmyBtn">Show the Ummy button</span></label></div><div class="sf-block sf-browser sf-userscript" style="display: none;" id="blockGmNativeDownload"><label><input type="checkbox" id="gmNativeDownload" checked="0">&nbsp;<span data-i18n="optionsGmNativeDownload">Advanced download mode</span></label></div><div class="sf-block" id="blockSovetnikEnabled"><label><input type="checkbox" id="sovetnikEnabled" checked="1">&nbsp;<span data-i18n="optionsSovetnikEnabled">Enable sovetnik</span></label></div><div class="sf-block" id="blockAviaBar"><label><input type="checkbox" id="aviaBarEnabled" checked="1">&nbsp;<span data-i18n="optionsAviaBarEnabled">Enable aviaBar</span></label></div><div class="sf-clear"></div></form></div>',o.optionsScripts=[function(e){!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(t,n,o){var i=e;n.a=i},function(e,t){e.exports=n(21)},,function(e,t){e.exports=n(105)},function(e,t){e.exports=n(106)},,function(e,t,n){var o,i=0,r=n(12),a={hmr:!0,insertInto:void 0};"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(t.locals=r.locals),t.use=t.ref=function(){return i++||(o=n(4)(r,a)),t},t.unuse=t.unref=function(){i>0&&!--i&&(o(),o=null)}},,,,,function(e,t,n){n.r(t);var o=n(6),i=n.n(o),r=n(0),a=n(1),s=n.n(a);i.a.use(),r.a.onDestroy.addListener(function(){i.a.unuse()}),function(e){e=e||document.body;var t={},n=function(t,n){var o=e.querySelector("#".concat(t));o&&(o.style.display=n?"none":"")},o=function(e){var t=e.target;r.a.sendMessage({action:"updateOption",key:t.id,value:t.checked?1:0})},i=function(){var i,a,l,u;for(a=0,l=(u=e.querySelectorAll("*[data-i18n]")).length;a<l;a++)(i=u[a]).textContent=r.a.i18n.getMessage(i.dataset.i18n);if(t.hasSovetnik||n("blockSovetnikEnabled",!0),t.hasAviaBar||n("blockAviaBar",!0),t.showUmmyItem||n("blockUmmyInfo",!0),(t.hasSwStat||t.hasFsStat)&&function(){var t="blockStatEnabled";if(!e.querySelector("#".concat(t))){var n=s.a.create("div",{id:t,class:"sf-block",append:[s.a.create("label",{append:[s.a.create("input",{type:"checkbox",id:"statEnabled",checked:!0}),String.fromCharCode(160),s.a.create("span",{text:"Web Statistic Tracker"})]})]}),o=e.querySelector(".sf-options-container .sf-clear");o.parentNode.insertBefore(n,o)}}(),t.hasPromobar&&function(){var t="blockPromoBarEnabled";if(!e.querySelector("#".concat(t))){var n=s.a.create("div",{id:t,class:"sf-block",append:[s.a.create("label",{append:[s.a.create("input",{type:"checkbox",id:"promoBarEnabled",checked:!0}),String.fromCharCode(160),s.a.create("span",{text:"PromoBar"})]})]}),o=e.querySelector(".sf-options-container .sf-clear");o.parentNode.insertBefore(n,o)}}(),t.hasAliradar&&function(){var t="blockAliradarEnabled";if(!e.querySelector("#".concat(t))){var n=s.a.create("div",{id:t,class:"sf-block",append:[s.a.create("label",{append:[s.a.create("input",{type:"checkbox",id:"aliradarEnabled",checked:!0}),String.fromCharCode(160),s.a.create("span",{text:"AliExpress helper"})]})]}),o=e.querySelector(".sf-options-container .sf-clear");o.parentNode.insertBefore(n,o)}}(),t.hasPricevisor){var d=s.a.create("div",{id:"blockPricevisorEnabled",class:"sf-block",append:[s.a.create("label",{append:[s.a.create("input",{type:"checkbox",id:"pricevisorEnabled",checked:!0}),String.fromCharCode(160),s.a.create("span",{text:"Price adviser"})]})]}),c=e.querySelector(".sf-options-container .sf-clear");c.parentNode.insertBefore(d,c)}for(r.a.isFirefox&&function(){var t="blockSaveAsDialogEnabled";if(!e.querySelector("#".concat(t))){var n=s.a.create("div",{id:t,class:"sf-block",append:[s.a.create("label",{append:[s.a.create("input",{type:"checkbox",id:"saveAsDialog",checked:!1}),String.fromCharCode(160),s.a.create("span",{text:r.a.i18n.getMessage("optionsSaveAsDialog")})]})]}),o=e.querySelector(".sf-options-container .sf-block");o.parentNode.insertBefore(n,o)}}(),a=0,l=(u=e.querySelectorAll('form input[type="checkbox"]')).length;a<l;a++)(i=u[a]).id&&void 0!==t[i.id]&&(i.checked=!!t[i.id],i.addEventListener("change",o,!1));if(r.a.isGM){for(a=0,l=(u=e.querySelectorAll(".sf-browser.sf-userscript")).length;a<l;a++)(i=u[a]).style.display="block";if("undefined"!=typeof GM_download){var f=e.querySelector("#blockGmNativeDownload");f&&(f.style.display="block")}}};r.a.callFn("getPreferences").then(function(n){t=n,i(),e.classList.remove("loading")}),setTimeout(function(){e.classList.remove("loading")},1e3)}(r.a.container)},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,".sf-options-body{background-color:#e9eaf0;font-family:sans-serif;font-size:small}.sf-options-body.loading>*{visibility:hidden}.sf-options-body .sf-options-container{background-color:#f6f6f9;border:1px solid #cacdd9;border-radius:7px;width:700px;margin:12px auto;padding:15px}.sf-options-body .sf-options-container h1{font-family:sans-serif;font-size:1.3em;margin:0 0 1.3em 0}.sf-options-body .sf-options-container div{display:block}.sf-options-body .sf-options-container form{margin:0;padding:0}.sf-options-body .sf-options-container label{display:block;margin:.2em 0;padding:0}.sf-options-body .sf-options-container .sf-inline label{display:inline}.sf-options-body .sf-options-container .sf-clear{clear:both;height:0;font-size:0;line-height:0}.sf-options-body .sf-options-container .sf-block{border-top:1px solid #dfe1e8;padding:1.5em 0 0 0;margin:1.5em 0 0 0;min-width:160px}.sf-options-body .sf-options-container .sf-browser{display:none}.sf-options-body .sf-options-container .sf-title{font-weight:700;margin-bottom:.5em}.sf-options-body .sf-options-container .sf-module{font-weight:700;margin-top:1em}.sf-options-body .sf-options-container .sf-module:first-child{margin-top:0}.sf-options-body .sf-options-container .sf-module_options{font-weight:400;margin-left:2em}.sf-options-popup{z-index:9999;display:block;float:none;position:fixed;margin:0;padding:0;visibility:hidden;color:#000;background:#fff;border:3px solid #c0cad5;border-radius:7px;overflow:auto}.sf-options-popup .sf-options-body{display:block;float:none;position:relative;overflow:auto;margin:0;padding:10px 15px;background:#fff}.sf-options-popup .sf-options-body .sf-options-container{background-color:#fff;border:none;font:13px/1 Arial,Helvetica,sans-serif;width:580px;margin:0;padding:9px;text-align:left}.sf-options-popup img.sf-close{position:absolute;top:10px;right:15px;opacity:.5;cursor:pointer}.sf-options-popup img.sf-close:hover{opacity:.9}",""])}])}],o.isYoutube=/youtube\.com/.test(location.href),o}return J(t,fe),Object(F.a)(t,[{key:"getPageContent",value:function(){return this.optionsPage}},{key:"getPageScripts",value:function(){return this.optionsScripts}},{key:"createPageContainer",value:function(){var e=this;this.destroyContainer();var t=document.body.clientHeight||window.innerHeight;t>600&&(t=600);var n=document.createElement("div");n.classList.add("sf-options-popup"),n.style.maxWidth="".concat(640,"px"),n.style.maxHeight="".concat(t,"px"),this.containerNode=n;var o=document.createElement("div");o.classList.add("sf-options-body"),o.innerHTML=this.getPageContent(),n.appendChild(o);var r=document.createElement("img");r.classList.add("sf-close"),r.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAWUlEQVQ4y2NgGHHAH4j1sYjrQ+WIAvFA/B+I36MZpg8V+w9VQ9Al/5EwzDBkQ2AYr8uwaXiPQ0yfkKuwGUayIYQMI8kQqhlEFa9RLbCpFv1US5BUzSLDBAAARN9OlWGGF8kAAAAASUVORK5CYII=",r.alt="x",r.width=18,r.height=18,r.addEventListener("click",function(t){t.preventDefault(),e.bundle.closeOptions()}),o.appendChild(r),document.body.appendChild(n),setTimeout(function(){var t=Math.floor((window.innerWidth-n.offsetWidth)/2),o=Math.floor((window.innerHeight-n.offsetHeight)/2);o<0&&(o=0),t<0&&(t=0),e.isYoutube&&o<92&&(o=92,n.style.height=n.offsetHeight-o-10+"px"),i()(n.style,{top:o+"px",left:t+"px",visibility:"visible"})});document.addEventListener("click",function t(o){var i=o.target;i===n||n.contains(i)||(document.removeEventListener("click",t,!1),e.bundle.closeOptions())},!1)}}]),t}(),me=function(){function e(){Object(T.a)(this,e),this.listeners=[]}return Object(F.a)(e,[{key:"addListener",value:function(e){-1===this.listeners.indexOf(e)&&this.listeners.push(e)}},{key:"dispatch",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.listeners.forEach(function(e){e.apply(void 0,t)})}},{key:"hasListener",value:function(e){return-1!==this.listeners.indexOf(e)}},{key:"hasListeners",value:function(){return this.listeners.length>0}},{key:"removeListener",value:function(e){var t=this.listeners.indexOf(e);-1!==t&&this.listeners.splice(t,1)}}]),e}(),he=Object(se.default)("mono"),ge=function(){function e(){Object(T.a)(this,e),this.onDestroy=new me,this._lastErrorFired=!1,this._lastError=null}return Object(F.a)(e,[{key:"clearLastError",value:function(){this._lastError&&!this._lastErrorFired&&he.error("Unhandled mono.lastError error:",this.lastError),this._lastError=null}},{key:"unimplemented",value:function(){throw new Error("Unimplemented")}},{key:"destroy",value:function(){this.onDestroy.dispatch()}},{key:"lastError",get:function(){return this._lastErrorFired=!0,this._lastError},set:function(e){this._lastErrorFired=!e,this._lastError=e}}]),e}(),ve=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,e),Object(F.a)(n,[{key:"initMessages",value:function(){this.sendMessage=this.transport.sendMessage.bind(this.transport),this.sendMessageToActiveTab=this.transport.sendMessageToActiveTab.bind(this.transport),this.onMessage={addListener:this.transport.addListener.bind(this.transport),hasListener:this.transport.hasListener.bind(this.transport),hasListeners:this.transport.hasListeners.bind(this.transport),removeListener:this.transport.removeListener.bind(this.transport)}}}]),n}()},be=function(e,t){for(var n=t.split("."),o=n.pop();n.length;)e=e[n.shift()];return{scope:e,endPoint:o}},ye=n(196),ke=Object(se.default)("mono:callFnListener"),we=function(e){return function(t){function n(){var e;return Object(T.a)(this,n),(e=_(this,V(n).call(this))).remote={mono:R(R(e))},e.callFnListener=e.callFnListener.bind(R(R(e))),e}return J(n,e),Object(F.a)(n,[{key:"initMessages",value:function(){K(V(n.prototype),"initMessages",this).call(this),this.onMessage.addListener(this.callFnListener)}},{key:"responseFn",value:function(e,t){var n=this,o=A.a.resolve().then(function(){var t=be(n.remote,e.fn),o=t.scope,i=t.endPoint,r=e.args||[];return o[i].apply(o,r)});return this.responsePromise(o,t)}},{key:"responsePromise",value:function(e,t){return e.then(function(e){t({result:e})},function(e){t({err:ye(e)})}).catch(function(e){ke.error("responsePromise error",e)}),!0}},{key:"callFnListener",value:function(e,t,n){switch(e&&e.action){case"callFn":return this.responseFn(e,n),!0}}},{key:"destroy",value:function(){this.onMessage.removeListener(this.callFnListener),K(V(n.prototype),"destroy",this).call(this)}}]),n}()},xe=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,e),n}()},Se=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,xe(e)),Object(F.a)(n,[{key:"openTab",value:function(e,t){this.unimplemented()}}]),n}()},Ae=function(e){function t(){return Object(T.a)(this,t),_(this,V(t).apply(this,arguments))}return J(t,Se(we(ve(ge)))),t}(),Ce=Object(se.default)("mono:userscriptStorage"),Le=function(){function e(t){Object(T.a)(this,e),this.mono=t,this.onChanged=new me}return Object(F.a)(e,[{key:"handleChange",value:function(e,t){throw new Error("handleChange is not supported")}},{key:"wrapValue",value:function(e){return g()({w:e})}},{key:"unwrapValue",value:function(e){return JSON.parse(e).w}},{key:"get",value:function(e,t){var n=this,o={},i={},r=GM_listValues();e||(e=r),a()(e)||(i=e,e=x()(e)),e.forEach(function(e){var t=!1,a=null;try{-1!==r.indexOf(e)&&(a=n.unwrapValue(GM_getValue(e)),t=!0)}catch(t){Ce.error("Parse key (".concat(e,") error"))}!t&&i.hasOwnProperty(e)&&(a=i[e],t=!0),t&&(o[e]=a)}),t(o)}},{key:"set",value:function(e,t){var n=this,o=x()(e);this.get(o,function(i){o.forEach(function(t){GM_setValue(t,n.wrapValue(e[t]))}),n.handleChange(i,e),t&&t()})}},{key:"remove",value:function(e,t){var n=this;this.get(e,function(o){e.forEach(function(e){GM_deleteValue(e)}),n.handleChange(o,{}),t&&t()})}},{key:"clear",value:function(e){this.remove(GM_listValues(),e)}}]),e}(),Me=function(e){return e&&JSON.parse(g()(e))},Ie=Object(se.default)("mono:transportWithResponse"),Oe=function(){},Pe=function(e){function t(e){var n;return Object(T.a)(this,t),(n=_(this,V(t).call(this))).transportId=String(k()(1e3*Math.random(),10)),n.destroyError=null,n.isListen=!1,n.transport=e,n.listen=n.listen.bind(R(R(n))),n}return J(t,me),Object(F.a)(t,[{key:"callListeners",value:function(e,t,n){var o=null;return this.listeners.forEach(function(i){try{var r=i(e,t,n);!0===r&&(o=r)}catch(e){Ie.error("Error in event handler for mono.onMessage:",e)}}),o}},{key:"listen",value:function(e,t){var n,o,i,r=this;e.transportId!==this.transportId&&(t?(o=function(n,o){if(r.destroyError)Ie.warn("Send response is skip cause:",r.destroyError);else if(e._responseFired)Ie.warn("Send response is skip cause: Already fired");else{e._responseFired=!0,e._forceResponse=o;try{t(Me(n))}catch(e){Ie.warn("Send response error",e)}}},i=!1,n=function(){i||(i=!0,o.apply(void 0,arguments))}):n=Oe,!0===this.callListeners(e.message,e.sender||{},n)?e._asyncResponse=!0:e._responseFired||setTimeout(function(){e._responseFired||e._asyncResponse||n(void 0,!0)},1))}},{key:"startListen",value:function(){this.isListen||(this.isListen=!0,this.transport.addListener(this.listen))}},{key:"stopListen",value:function(){this.isListen&&(this.isListen=!1,this.transport.removeListener(this.listen))}},{key:"addListener",value:function(e){K(V(t.prototype),"addListener",this).call(this,e),this.listeners.length>0&&this.startListen()}},{key:"removeListener",value:function(e){K(V(t.prototype),"removeListener",this).call(this,e),0===this.listeners.length&&this.stopListen()}},{key:"getRawMessage",value:function(e){return{transportId:this.transportId,message:Me(e),sender:{url:location.href}}}},{key:"sendMessage",value:function(e,t){if(this.destroyError)throw this.destroyError;var n=this.getRawMessage(e,t);this.transport.sendMessage(n,t)}},{key:"destroy",value:function(){this.destroyError=new Error("Transport is destroyed"),this.listeners.splice(0),this.stopListen()}}]),t}(),Te=function(e){function t(){return Object(T.a)(this,t),_(this,V(t).apply(this,arguments))}return J(t,Pe),Object(F.a)(t,[{key:"sendMessageToActiveTab",value:function(e,t){if(this.destroyError)throw this.destroyError;var n=this.getRawMessage(e,t);this.transport.sendMessageToActiveTab(n,t)}}]),t}(),Fe=Pe,Ee=Object(se.default)("mono:gmStorage"),Ne=function(){function e(t){Object(T.a)(this,e),this.mono=t,this.onChanged=new me}return Object(F.a)(e,[{key:"handleChange",value:function(e,t){throw new Error("handleChange is not supported")}},{key:"wrapValue",value:function(e){return g()({w:e})}},{key:"unwrapValue",value:function(e){return JSON.parse(e).w}},{key:"get",value:function(e,t){var n=this;GM.listValues().catch(function(e){return Ee.error("Get values error",e),[]}).then(function(o){var i={},r={};return e||(e=o),a()(e)||(r=e,e=x()(e)),A.a.all(e.map(function(e){var t=!1,a=null;return A.a.resolve().then(function(){if(-1!==o.indexOf(e))return GM.getValue(e).then(function(e){a=n.unwrapValue(e),t=!0})}).catch(function(t){Ee.error("Parse key (".concat(e,") error"),t)}).then(function(){!t&&r.hasOwnProperty(e)&&(a=r[e],t=!0),t&&(i[e]=a)})})).then(function(){t(i)})})}},{key:"set",value:function(e,t){var n=this,o=x()(e);this.get(o,function(i){A.a.all(o.map(function(t){return GM.setValue(t,n.wrapValue(e[t])).catch(function(e){Ee.error("Set item (".concat(t,") error"),e)})})).then(function(){n.handleChange(i,e),t&&t()})})}},{key:"remove",value:function(e,t){var n=this;this.get(e,function(o){A.a.all(e.map(function(e){return GM.deleteValue(e).catch(function(t){Ee.error("Remove key (".concat(e,") error"),t)})})).then(function(){n.handleChange(o,{}),t&&t()})})}},{key:"clear",value:function(e){var t=this;GM.listValues().catch(function(e){return Ee.error("Get values error",e),[]}).then(function(n){return t.remove(n,e)})}}]),e}(),De=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,e),Object(F.a)(n,[{key:"get",value:function(e,t){if(void 0===e&&(e=null),"string"==typeof e&&(e=[e]),a()(e)&&e.forEach(function(e){if("string"!=typeof e)throw new Error("Incorrect key type")}),"object"!=typeof e)throw new Error("Incorrect keys type");K(V(n.prototype),"get",this).call(this,e,t)}},{key:"set",value:function(e,t){K(V(n.prototype),"set",this).call(this,e,t)}},{key:"remove",value:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(function(e){if("string"!=typeof e)throw new Error("Incorrect key type")}),K(V(n.prototype),"remove",this).call(this,e,t)}},{key:"clear",value:function(e){K(V(n.prototype),"clear",this).call(this,e)}}]),n}()},Be=function(e,t){var n={};return x()(e).forEach(function(t){var o=n[t];o||(o=n[t]={}),o.oldValue=e[t]}),x()(t).forEach(function(e){var o=n[e];o||(o=n[e]={}),o.newValue=t[e]}),x()(n).forEach(function(e){var t=n[e];t.oldValue===t.newValue&&delete n[e]}),x()(n).length?n:null},Re=function(e){return function(t){function n(e){var t;return Object(T.a)(this,n),(t=_(this,V(n).call(this,e))).mono=e,t.changesListener=t.changesListener.bind(R(R(t))),t.initChangesListener(),t}return J(n,e),Object(F.a)(n,[{key:"initChangesListener",value:function(){var e=this;this.mono.bundle.messaing.addListener("storage",this.changesListener),this.mono.onDestroy.addListener(function t(){e.mono.onDestroy.removeListener(t),e.mono.bundle.messaing.removeListener("storage",e.changesListener)})}},{key:"changesListener",value:function(e){this.onChanged.dispatch(e,"local")}},{key:"handleChange",value:function(e,t){var n=Be(e,t);n&&this.mono.bundle.messaing.emit("storage",n)}}]),n}()},_e=Object(se.default)("mono:pageMono"),qe=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,e),Object(F.a)(n,[{key:"initI18n",value:function(){var e=this;this.i18n={getMessage:function(t){e.locale||(e.locale=e.bundle.getLocale());var n=e.locale[t];return n&&n.message||""}}}},{key:"initMessages",value:function(){var e=this;this.transport=new Te({addListener:function(t){e.bundle.messaing.addListener("page",t),e.bundle.messaing.addListener("fromActiveTab",t)},removeListener:function(t){e.bundle.messaing.removeListener("page",t),e.bundle.messaing.removeListener("fromActiveTab",t)},sendMessage:function(t,n){e.bundle.messaing.emit("page",t,n)||(_e.info("No one received a message"),n())},sendMessageToActiveTab:function(t,n){e.bundle.messaing.emit("toActiveTab",t,n)||(_e.info("No one received a message"),n())}}),K(V(n.prototype),"initMessages",this).call(this)}},{key:"initStorage",value:function(){"function"==typeof GM_getValue?this.storage=new(De(Re(Le)))(this):this.storage=new(De(Re(Ne)))(this)}},{key:"destroy",value:function(){K(V(n.prototype),"destroy",this).call(this),this.transport.destroy()}}]),n}()},je=function(e){return function(t){function n(){var e;return Object(T.a)(this,n),(e=_(this,V(n).call(this))).isGM=!0,e}return J(n,e),Object(F.a)(n,[{key:"isTM",get:function(){return!!window.chrome}}]),n}()},ze=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,je(e)),Object(F.a)(n,[{key:"openTab",value:function(e,t){t=void 0===t||!!t,"function"==typeof GM_openInTab?GM_openInTab(e,{active:t,insert:!0}):GM.openInTab(e,t)}},{key:"executeScript",value:function(e,t){this.bundle.executeScript(t)}},{key:"getActiveTab",value:function(e){e({url:location.href})}}]),n}()},Ue=function(e){function t(e){var n;return Object(T.a)(this,t),(n=_(this,V(t).call(this))).bundle=e,n.initMessages(),n.initStorage(),n.initI18n(),n}return J(t,ze(qe(Ae))),t}(),Ve=n(197),He=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,e),Object(F.a)(n,[{key:"callFn",value:function(e,t){return this.waitPromise({action:"callFn",fn:e,args:t})}},{key:"waitPromise",value:function(e){var t=this;return new A.a(function(n,o){t.sendMessage(e,function(e){if(e){if(e.err){var i=Ve(e.err);return o(i)}return n(e.result)}var r=t.lastError||new Error("Unexpected response");return o(r)})})}}]),n}()},Ge=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,xe(e)),n}()},We=function(e){function t(){return Object(T.a)(this,t),_(this,V(t).apply(this,arguments))}return J(t,Ge(He(ve(ge)))),t}(),Ye=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,je(e)),n}()},Ke=function(e){function t(e){var n;return Object(T.a)(this,t),(n=_(this,V(t).call(this))).bundle=e,n.initMessages(),n.initStorage(),n.initI18n(),n}return J(t,Ye(qe(We))),t}(),Qe=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,xe(e)),n}()},Je=function(e){function t(){return Object(T.a)(this,t),_(this,V(t).apply(this,arguments))}return J(t,Qe(He(ge))),Object(F.a)(t,[{key:"initMessages",value:function(){this.sendMessage=this.transport.sendMessage.bind(this.transport),this.onMessage={addListener:this.transport.addListener.bind(this.transport),hasListener:this.transport.hasListener.bind(this.transport),hasListeners:this.transport.hasListeners.bind(this.transport),removeListener:this.transport.removeListener.bind(this.transport)}}}]),t}(),Ze=function(e){return function(t){function n(){return Object(T.a)(this,n),_(this,V(n).apply(this,arguments))}return J(n,je(e)),n}()},Xe=Object(se.default)("mono:contentScript"),$e=function(e){function t(e){var n;return Object(T.a)(this,t),(n=_(this,V(t).call(this))).bundle=e,n.initMessages(),n.initStorage(),n.initI18n(),n}return J(t,Ze(Je)),Object(F.a)(t,[{key:"initI18n",value:function(){var e=this;this.i18n={getMessage:function(t){e.locale||(e.locale=e.bundle.getLocale());var n=e.locale[t];return n&&n.message||""}}}},{key:"initMessages",value:function(){var e=this;this.transport=new Fe({addListener:function(t){e.bundle.messaing.addListener("toActiveTab",t)},removeListener:function(t){e.bundle.messaing.removeListener("toActiveTab",t)},sendMessage:function(t,n){e.bundle.wakeUpBackgroundPage(),t.sender.tab={url:location.href},e.bundle.messaing.emit("fromActiveTab",t,n)||(Xe.info("No one received a message"),n())}}),K(V(t.prototype),"initMessages",this).call(this)}},{key:"initStorage",value:function(){"function"==typeof GM_getValue?this.storage=new(De(Re(Le)))(this):this.storage=new(De(Re(Ne)))(this)}},{key:"destroy",value:function(){K(V(t.prototype),"destroy",this).call(this),this.transport.destroy()}}]),t}(),et=function(e){function t(e,o){var i;return Object(T.a)(this,t),(i=_(this,V(t).call(this,e))).parent=o,i.popupPage='<div class="sf-menu-desc"><div class="icon-body"><div class="icon"></div><div class="version"></div></div><div class="title"></div><div class="desc"></div><a href="#" class="more" target="_blank" data-i18n="readMore">Learn More</a><div class="social-block"><a href="#" class="social-btn vk" target="_blank"></a> <a href="#" class="social-btn fb" target="_blank"></a> <a href="#" class="social-btn ok" target="_blank"></a> <a href="#" class="social-btn tw" target="_blank"></a> <a href="#" class="social-btn mailru" target="_blank"></a> <a href="#" class="social-btn lj" target="_blank"></a> <a href="#" class="social-btn gp" target="_blank"></a></div></div><div class="sf-menu-list"><div class="item bookmarklet" data-action="downloadFromCurrentPage"><svg class="icon" data-type="downloadFromCurrentPage" width="24px" height="20px" viewBox="0 0 24 20" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M3,7.69681435 L3,15.3801087 C3,16.2322665 3.68349659,16.9230769 4.49309635,16.9230769 L16.5069036,16.9230769 C17.3300962,16.9230769 17.9976943,16.2517344 17.999994,15.3846154 L19.5,15.3846154 L19.5,13.8461538 L21,13.8461538 L21,16.9353584 C21,18.6151136 19.6529197,20 17.991212,20 L3.00878799,20 C1.34559019,20 0,18.6279132 0,16.9353584 L0,6.14156464 C0,4.46180949 1.34708027,3.07692308 3.00878799,3.07692308 L9,3.07692308 L9,4.61538462 L7.5,4.61538462 L7.5,6.15384615 L4.49309635,6.15384615 C3.66848201,6.15384615 3,6.82750977 3,7.69681435 Z M16.5,4.63388975 L16.5,0 L24,6.92307692 L16.5,13.8461538 L16.5,9.24590979 C11.3943853,9.45271984 7.21913082,11.7555356 6.22504073,14.7692308 C6.07746807,14.2224293 6,13.6564807 6,13.0769231 C6,8.59329616 10.6364812,4.92416479 16.5,4.63388975 Z" id="Share" fill="#000000"></path></svg> <span class="label" data-i18n="downloadFromCurrentPage">Go to SaveFrom.net</span></div><div class="bookmarklet separator"></div><div class="item module vk odnoklassniki facebook lm youtube dailymotion instagram rutube" data-action="updateLinks"><svg class="icon" data-type="updateLinks" width="22px" height="24px" viewBox="0 0 22 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M21.2307692,13.7142857 C21.2307692,19.3949291 16.4780999,24 10.6153846,24 C4.75266929,24 0,19.3949291 0,13.7142857 C0,8.03364229 4.75266929,3.42857143 10.6153846,3.42857143 L10.6153846,6.85714286 C6.70690773,6.85714286 3.53846154,9.9271901 3.53846154,13.7142857 C3.53846154,17.5013813 6.70690773,20.5714286 10.6153846,20.5714286 C14.5238615,20.5714286 17.6923077,17.5013813 17.6923077,13.7142857 L21.2307692,13.7142857 L21.2307692,13.7142857 Z M10.6153846,10.2857143 L10.6153846,0 L19.4615385,5.14285714 L10.6153846,10.2857143 Z" id="Refresh" fill="#000000"></path></svg> <span class="label" data-i18n="updateLinks">Refresh links</span></div><div class="item module vk odnoklassniki mailru" data-action="downloadMP3Files"><svg class="icon" data-type="downloadMP3Files" width="21px" height="24px" viewBox="0 0 21 24" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M21,2.76923077 L21,17.6487288 C21,17.6487288 21,17.6487288 21,17.6487288 L21,18.4615385 L20.9068729,18.4615385 C20.723595,19.2712249 20.2716013,20.0865791 19.5669296,20.7680198 C17.9203537,22.360313 15.5176896,22.6184747 14.2004289,21.3446402 C12.8831682,20.0708056 13.1501309,17.7473503 14.7967068,16.1550571 C16.0602516,14.9331676 17.7690324,14.4969051 19.0909091,14.9356816 L19.0909091,14.9356816 L19.0909091,4.15384615 L7.63636364,6.92307692 L7.63636364,19.4948826 C7.63636364,19.4948826 7.63636364,19.4948826 7.63636364,19.4948826 L7.63636364,20.3076923 L7.5432365,20.3076923 C7.35995859,21.1173788 6.90796493,21.9327329 6.20329323,22.6141737 C4.55671732,24.2064669 2.15405328,24.4646286 0.836792552,23.190794 C-0.480468173,21.9169595 -0.213505501,19.5935041 1.43307041,18.0012109 C2.69661523,16.7793214 4.40539601,16.343059 5.72727273,16.7818354 L5.72727273,16.7818354 L5.72727273,6.46153846 L5.72727273,3.69230769 L21,0 L21,2.76923077 Z" id="Music-2" fill="#000000"></path></svg> <span class="label" data-i18n="downloadMP3Files">Download audio files</span></div><div class="item module vk odnoklassniki plYoutube mailru" data-action="downloadPlaylist"><svg class="icon" data-type="downloadPlaylist" width="24px" height="18px" viewBox="0 0 24 18" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M0,0 L0,3.6 L3.42857143,3.6 L3.42857143,0 L0,0 Z M0,7.2 L0,10.8 L3.42857143,10.8 L3.42857143,7.2 L0,7.2 Z M5.14285714,0 L5.14285714,3.6 L24,3.6 L24,0 L5.14285714,0 Z M5.14285714,7.2 L5.14285714,10.8 L20.5714286,10.8 L20.5714286,7.2 L5.14285714,7.2 Z M0,14.4 L0,18 L3.42857143,18 L3.42857143,14.4 L0,14.4 Z M5.14285714,14.4 L5.14285714,18 L22.2857143,18 L22.2857143,14.4 L5.14285714,14.4 Z" id="Bullet-List" fill="#000000"></path></svg> <span class="label" data-i18n="downloadPlaylist">Download a playlist</span></div><div class="item module vk" data-action="downloadPhotos"><svg class="icon" data-type="downloadPhotos" width="24px" height="18px" viewBox="0 0 24 18" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M19.5,3 L21.0089096,3 C22.6582294,3 24,4.34288718 24,5.99942248 L24,15.0005775 C24,16.6556493 22.6608432,18 21.0089096,18 L2.99109042,18 C1.34177063,18 0,16.6571128 0,15.0005775 L0,5.99942248 C0,4.34435073 1.33915679,3 2.99109042,3 L7.5,3 C7.5,1.34651712 8.84187067,0 10.497152,0 L16.502848,0 C18.1583772,0 19.5,1.34314575 19.5,3 L19.5,3 Z M13.5,16.5 C16.8137087,16.5 19.5,13.8137087 19.5,10.5 C19.5,7.18629134 16.8137087,4.5 13.5,4.5 C10.1862913,4.5 7.5,7.18629134 7.5,10.5 C7.5,13.8137087 10.1862913,16.5 13.5,16.5 Z M13.5,15 C15.9852815,15 18,12.9852815 18,10.5 C18,8.0147185 15.9852815,6 13.5,6 C11.0147185,6 9,8.0147185 9,10.5 C9,12.9852815 11.0147185,15 13.5,15 Z" id="Camera-2" fill="#000000"></path></svg> <span class="label" data-i18n="downloadPhotos">Download pictures</span></div><div class="module vk odnoklassniki facebook lm separator"></div><div class="item" data-action="reportBug"><div class="icon"></div><span class="label" data-i18n="reportBug">Report a bug</span></div><div class="item" data-action="showOptions"><div class="icon"></div><span class="label" data-i18n="showOptions">Options</span></div><div class="item" data-action="openPoll"><div class="icon"></div><span class="label" data-i18n="openPoll">Become better</span></div><div class="item enableModule" data-action="enableModule"><i class="sf-checkbox"><i><i></i></i></i> <span id="disableModule" class="label" data-i18n="disableModule">Disable module</span></div><div style="display: none;" data-action="showAboutPage"><svg class="icon" data-type="showAboutPage" width="24px" height="24px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="m3.09,.719c0,.851 0,1.711 0,2.561-.67,0-1.34,0-2.01,0 1.07,1.07 2.15,2.15 3.22,3.22 0-1.93 0-3.85 0-5.781-.42,0-.83,0-1.25,0zm1.91,0c.04,2.091 .04,4.191 .04,6.281-1.67,0-3.33,0-5,0 2.67,2.77 5.33,5.5 8,8.3 2.7-2.8 5.3-5.53 8-8.3-1.7,0-3.3,0-5,0 0-2.09 0-4.19 0-6.281-2,0-4,0-6,0zm6.7,0c0,1.931 0,3.851 0,5.781 1.1-1.07 2.1-2.15 3.2-3.22-.7,0-1.3,0-2,0 0-.85 0-1.71 0-2.561-.4,0-.8,0-1.2,0z"></path></svg></div></div>',i.popupScripts=[function(e){!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(t,n,o){var i=e;n.a=i},function(e,t){e.exports=n(21)},,function(e,t){e.exports=n(105)},function(e,t){e.exports=n(106)},function(e,t,n){var o,i=0,r=n(10),a={hmr:!0,insertInto:void 0};"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(t.locals=r.locals),t.use=t.ref=function(){return i++||(o=n(4)(r,a)),t},t.unuse=t.unref=function(){i>0&&!--i&&(o(),o=null)}},,function(e,t){e.exports=n(102)},function(e,t,n){n.r(t);var o,i,r,a,s,l,u,d,c,f,p,m,h,g,v,b,y=n(5),k=n.n(y),w=n(0),x=n(7),S=n.n(x),A=n(1),C=n.n(A);k.a.use(),w.a.onDestroy.addListener(function(){k.a.unuse()}),o=w.a.container||document.body,i={},r={icons:{},activeTabInfo:{},helperName:""},a=function(e){if(e.preventDefault(),e.stopPropagation(),!this.classList.contains("inactive")){var t,n,o=this.dataset.action,a=this.classList.contains("module");if("enableModule"===o)return t=r.activeTabInfo,n=r.moduleTrigger.classList.contains("disabled")?1:0,t.state=n,v(n,1),i[t.prefKey]=n,w.a.sendMessage({action:"viaMenu_changeState",state:n?1:0,prefKey:t.prefKey,moduleName:t.moduleName,needInclude:t.isNotResponse}),t.isNotResponse=!1,void p(t);w.a.sendMessage({action:(a?"viaMenu_":"")+o}),w.a.isGM?w.a.bundle.buttonUi&&w.a.bundle.buttonUi.hideMenuItems():w.a.isSafari?safari.extension.popovers[0].hide():window.close()}},s=function(e,t){for(var n=o.querySelectorAll("div."+e),i=0;i<n.length;i++)t?n[i].classList.remove("inactive"):n[i].classList.add("inactive")},l=function(e){e.preventDefault(),w.a.openTab(this.href,!0)},u=function(){for(var e=o.querySelectorAll('a[href][target="_blank"]'),t=0,n=e.length;t<n;t++)e[t].removeEventListener("click",l),e[t].addEventListener("click",l)},d=function(e){if(-1!==["odnoklassniki"].indexOf(e.moduleName)?s("bookmarklet",!1):s("bookmarklet",!0),function(e,t){if(!t)return s("module",!1);for(var n=o.querySelectorAll("div.module"),i=0;i<n.length;i++)n[i].classList.contains(e)?n[i].classList.remove("inactive"):n[i].classList.add("inactive")}(e.moduleName,e.state),e.state&&"youtube"===e.moduleName){var t=e.url,n=/\/playlist\?|[?&]list=/.test(t);n||(n=/(user|channel|c|show)\/[^\/]+(\/feed|\/featured|\/videos|$)/i.test(t)),n||(n=/\/(feed)\/(trending|subscriptions|history)/i.test(t)),s("plYoutube",!!n)}},c=function(e){var t=!1,n=!1;-1!==["savefrom"].indexOf(e.moduleName)?n="force":e.moduleName&&(n=!!e.state,t=!0),s("enableModule",t),v(n)},f=function(e,t){if(r.activeTabInfo=e=e||{},c(e),d(e),!t){var n=function(t){for(var n in clearTimeout(o),e.isNotResponse=!t,t)e[n]=t[n];c(e),d(e)},o=setTimeout(n,250);w.a.sendMessage({action:"getActiveTabModuleInfo",url:e.url},n)}},p=function(e){r.activeTabInfo={},e?f(e,1):w.a.sendMessage({action:"getActiveTabInfo"},f)},m=function(e,t){var n=e.querySelector("path");if("hover"===t)n.setAttribute("fill","#ffffff");else if("active"===t)n.setAttribute("fill","#AAAAAA");else{var o=e.getAttribute("data-type");"downloadMP3Files"===o?n.setAttribute("fill","#00CCFF"):"downloadPlaylist"===o?n.setAttribute("fill","#77D1FA"):"downloadPhotos"===o?n.setAttribute("fill","#88cb66"):"showAboutPage"===o?n.setAttribute("fill","#ADE61B"):"updateLinks"===o?n.setAttribute("fill","#CB7FBD"):"downloadFromCurrentPage"===o&&n.setAttribute("fill","#CB7FBD")}},h=function(e,t){var n=r.desc,o=r.deskText,i=r.descTitel,a=r.descMore;n.dataset.page=e;var s=r.icons[e],l=n.querySelector(".icon");if(s){var d=s.cloneNode(!0);m(d,"active"),l&&l.parentNode.replaceChild(d,l),l.style.visibility="visible"}else l.style.visibility="hidden";"showAboutPage"===e?(i.textContent=w.a.i18n.getMessage("aboutTitle"),o.textContent="",o.appendChild(C.a.create(document.createDocumentFragment(),{append:[C.a.create("p",{text:w.a.i18n.getMessage("aboutDescription")}),C.a.create("a",{href:"http://savefrom.net/faq.php#supported_resourses",target:"_blank",text:w.a.i18n.getMessage("aboutSupported"),style:{display:"block"}}),C.a.create("a",{href:"http://savefrom.net/user.php?helper="+r.helperName,target:"_blank",text:w.a.i18n.getMessage("homePage"),style:{display:"block"}})]})),a.style.display="none"):(i.textContent=t,o.textContent=w.a.i18n.getMessage("menu"+S()(e))||"",a.style.display="block"),w.a.isSafari&&u()},g=function(){!function(){for(var e=o.querySelectorAll("*[data-i18n]"),t=0,n=e.length;t<n;t++){var i=e[t],r=i.dataset.i18n;i.textContent=w.a.i18n.getMessage(r),i.classList.contains("label")&&(i.title=w.a.i18n.getMessage(r))}}(),r.descMore.href="http://savefrom.net/user.php?helper="+r.helperName;for(var e=o.querySelectorAll("div[data-action]"),t=0;t<e.length;t++){var n=e[t].querySelector("svg");n&&(r.icons[e[t].dataset.action]=n,m(n)),"none"!==e[t].style.display&&C.a.create(e[t],{on:[["click",a],["mouseenter",function(){var e=this.dataset.action,t=r.icons[e];t&&m(t,"hover");var n=this.querySelector("span"),o=n&&n.textContent||"";h(e,o)}],["mouseleave",function(){var e=this.dataset.action,t=r.icons[e];t&&m(t)}]]})}!function(){var e="http://savefrom.net/user.php",t=encodeURIComponent(e),n=encodeURIComponent("http://savefrom.net/img/icon_100.png"),i=encodeURIComponent(w.a.i18n.getMessage("extName")),r=encodeURIComponent(w.a.i18n.getMessage("socialDesc")),a={vk:{network:"vkontakte",title:w.a.i18n.getMessage("shareIn").replace("%w","VK"),href:"http://vk.com/share.php?url="+t+"&image="+n+"&title="+i+"&description="+r},ok:{network:"odnoklassniki",title:w.a.i18n.getMessage("shareIn").replace("%w","OK.ru"),href:"http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl="+t+"&st.comments="+r},mailru:{network:"mail.ru",title:w.a.i18n.getMessage("shareIn").replace("%w","Mail.ru"),href:"http://connect.mail.ru/share?url="+t+"&title="+i+"&description="+r+"&imageurl="+n},tw:{network:"twitter",title:w.a.i18n.getMessage("shareIn").replace("%w","Twitter"),href:"https://twitter.com/intent/tweet?text="+i+"&url="+t},fb:{network:"facebook",title:w.a.i18n.getMessage("shareIn").replace("%w","Facebook"),href:"http://www.facebook.com/sharer.php?s=100&p[url]="+t+"&p[title]="+i+"&p[summary]="+r+"&p[images][0]="+n},gp:{network:"google+",title:w.a.i18n.getMessage("shareIn").replace("%w","Google+"),href:"https://plus.google.com/share?url="+t},lj:{network:"livejournal",title:w.a.i18n.getMessage("shareIn").replace("%w","Livejournal"),href:"http://www.livejournal.com/update.bml?subject="+i+"&event="+r+" "+t}};for(var s in a){var l=o.querySelector(".social-btn."+s);l&&(l.title=a[s].title,l.href=a[s].href,l.dataset.network=a[s].network)}l.parentNode.addEventListener("click",function(t){var n=t.target;if(n.classList.contains("social-btn")){var o=n.dataset.network;w.a.sendMessage({action:"track",t:"social",st:e,sa:"share",sn:o})}})}(),w.a.isSafari&&u(),h("showAboutPage"),p(),o.classList.remove("loading")},v=function(e,t){t&&r.moduleTrigger.classList.add("sf-transition"),"force"===e?r.moduleTrigger.classList.add("enableForce"):r.moduleTrigger.classList.remove("enableForce"),e?(r.moduleTrigger.classList.remove("disabled"),r.moduleTrigger.nextElementSibling.textContent=w.a.i18n.getMessage("disableModule")):(r.moduleTrigger.classList.add("disabled"),r.moduleTrigger.nextElementSibling.textContent=w.a.i18n.getMessage("enableModule")),"showAboutPage"!==r.desc.dataset.page&&h("enableModule",e?w.a.i18n.getMessage("disableModule"):w.a.i18n.getMessage("enableModule"))},b={tutorialSlides:null,show:function(){if(i.onceShowYtTutorial){var e=function(){w.a.sendMessage({action:"updateOption",key:"onceShowYtTutorial",value:i.onceShowYtTutorial=0}),w.a.sendMessage({action:"setIconBadge",text:""})};return b.tutorialSlides?b.tutorialSlides.show({container:o,width:482,height:404+(w.a.isGM?2:0),padding:4,slideList:b.tutorialSlides.getYtSlideList("black"),onClose:e,trackId:"Menu",boxStyle:{backgroundColor:"transparent"},containerStyle:{borderRadius:"3px",backgroundColor:"rgba(0, 104, 255, 0.9)",padding:0,margin:"4px",boxShadow:"none"},slideStyle:{backgroundColor:"transparent",borderRadius:0},leftBtnStyle:{top:"4px",left:"4px"},rightBtnStyle:{top:"4px",right:"4px"},closeBtnStyle:{backgroundColor:"#fff",color:"rgba(0, 104, 255, 0.9)"},cssStyle:{" .sf-dots":{paddingTop:"2px"}," .sf-dot i":{backgroundColor:"#fff"}," .sf-dot.active i":{backgroundColor:"transparent",borderRadius:"6px",margin:"-1px",width:"6px",height:"6px",border:"2px solid #fff"}," .sf-slider-conteiner span":{color:"#fff !important"}," .sf-slider-conteiner a":{color:"#fff !important"}},arrowColor:"#fff",arrowColorActive:"#fff",onResize:function(e){e.box.style.position="absolute"},withOpacity:!0,withDelay:250,onShow:function(){w.a.isSafari&&u(),w.a.sendMessage({action:"setIconBadge",text:"?"})}}):e()}}},setTimeout(function(){o.classList.remove("loading")},1e3),r.list=o.querySelector(".sf-menu-list"),r.desc=o.querySelector(".sf-menu-desc"),r.moduleTrigger=o.querySelector(".sf-checkbox"),r.descTitel=r.desc.querySelector(".title"),r.deskText=r.desc.querySelector(".desc"),r.descMore=r.desc.querySelector(".more"),r.list.style.height=r.list.offsetHeight+"px",w.a.sendMessage({action:"getMenuDetails"},function(e){var t,n,a;i=e.preferences,r.helperName=e.helperName,t=e.version,n=e.lastVersion,(a=r.desc.querySelector(".version")).textContent="",a.appendChild(C.a.create("span",{text:w.a.i18n.getMessage("aboutVersion")+" "+t})),n&&n!==t&&a.appendChild(C.a.create("a",{text:w.a.i18n.getMessage("updateTo").replace("%d",n),href:"http://savefrom.net/user.php?helper="+r.helperName+"&update="+t,target:"_blank"})),-1===["en","uk","ru"].indexOf(w.a.i18n.getMessage("lang"))&&o.classList.add("no-poll"),b.show(),g()})},,function(e,t,n){(e.exports=n(3)(!1)).push([e.i,".sf-menu-container{width:482px;font:12px/17px Tahoma,Helvetica,OpenSans,sans-serif;color:#000;background-color:#fff;margin:0;box-sizing:inherit;overflow:hidden;flex-direction:initial}.sf-menu-container.loading>*{visibility:hidden}.sf-menu-container>*{box-sizing:inherit;flex-direction:initial}.sf-menu-container p{font-size:12px}.sf-menu-container div.sf-menu-desc,.sf-menu-container div.sf-menu-list{display:inline-block;vertical-align:top;float:left}.sf-menu-container div.sf-menu-desc{width:166px;padding:20px 30px;padding-bottom:36px;color:#6a6a6a}.sf-menu-container div.sf-menu-desc a{text-decoration:none;color:#4a90e2}.sf-menu-container div.sf-menu-desc a:not(.social-btn):hover{text-decoration:underline}.sf-menu-container .sf-menu-desc .icon{width:74px;height:74px;display:inline-block;background-size:74px;background-repeat:no-repeat;background-position:center;padding:0;margin:0}.sf-menu-container .sf-menu-desc .version{vertical-align:top;display:inline-block;float:right;margin-right:-30px;width:110px}.sf-menu-container .sf-menu-desc .version>a,.sf-menu-container .sf-menu-desc .version>span{display:block}.sf-menu-container .sf-menu-desc .icon path{fill:#ccc!important}.sf-menu-container .sf-menu-desc .title{font-size:20px;line-height:1.2;font-weight:400;margin-top:14px;margin-bottom:16px}.sf-menu-container .sf-menu-desc .more{position:absolute;bottom:40px}.sf-menu-container .sf-menu-list{height:348px;width:243px;font-size:14px;padding:14px 6px;border-left:1px solid #d8d8d8}.sf-menu-container .sf-menu-list .separator{border-top:1px solid #d8d8d8;margin-top:10px;margin-bottom:9px;margin-left:59px}.sf-menu-container .sf-menu-list .item{height:40px;cursor:pointer;border-radius:5px;margin-top:-2px;margin-bottom:-2px;overflow:hidden;display:block}.sf-menu-container .sf-menu-list .item .icon{margin:0;margin-left:18px;width:24px;height:24px;margin-bottom:8px;margin-top:8px;float:left;display:block;padding:0}.sf-menu-container .sf-menu-list .item .label{padding-left:18px;padding-right:18px;line-height:40px;font-size:14px;white-space:nowrap;width:165px;display:inline-block;text-overflow:ellipsis;overflow:hidden}.sf-menu-container .sf-menu-list .item .label.dbl{line-height:normal;padding-top:2px;white-space:normal;height:40px}.sf-menu-container.no-poll .sf-menu-list div[data-action=openPoll]{display:none}.sf-menu-container.no-poll .sf-menu-list .item .icon{margin-bottom:10px;margin-top:10px}.sf-menu-container.no-poll .sf-menu-list .item{height:44px}.sf-menu-container.no-poll .sf-menu-list .item .label{line-height:44px}.sf-menu-container .sf-menu-list .item:hover{background-color:#597a9e;color:#fff}.sf-menu-container .sf-menu-list .item.inactive{opacity:.5;cursor:default}.sf-menu-container .sf-menu-list .item.inactive .icon path{fill:#c2c2c2!important}.sf-menu-container .sf-menu-list .item.inactive:hover{background-color:#fff;color:#000}.sf-menu-container .sf-menu-list .icon[data-type=showAboutPage]{visibility:hidden}.sf-menu-container .sf-menu-list .sBtn{text-decoration:none}.sf-menu-container .sf-menu-list .sBtn:hover{text-decoration:none}.sf-menu-container .social-block{position:absolute;bottom:20px;height:16px;cursor:default;flex-direction:initial}.sf-menu-container .social-block .social-btn{display:inline-block;width:16px;height:16px;background-position:center;background-repeat:no-repeat;float:initial;margin:initial;padding:initial;list-style:initial}.sf-menu-container .social-block .social-btn:hover{opacity:.8}.sf-menu-container .social-block .social-btn.vk{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAGWSURBVDhPnZDbK8NhGMfff0bGWpJSSi2HMkxCboTk1MghhwtiY2tNISJzaBeaaE65WEJIshvahSKTcm7MKUUOl1+/5+2nvW9ysX3rU8/z9PlevC8zuX36xmn/QbPbj0igDnVZ5YQvVDCwg2zHVkRQh7os176BLNt6VFCXZZq9ECkb3oZrM/CHusk9yfuFpXUsQ6TNtYv/0ju3L7kE07d5INLi3FR1YGzJh86JVbx/fvPdf3YnuQRLbXJDpHl0jcuUxmEvUkxTCFw98H1l91hyCZZicilSmIYhL5cpp9dPOL155nPw8RXp9U7JJVhy1ThE6vtXeIESuLzH/vEl3j6++L7tP5dcgiWVj0DE5FjkMqXGOgNdkRWtAwvqBSjt8Ug+SywZhEit3aOq4DPdbFPhf6m1z0s+Syjug0iNdVZVgZML5QlHV+oG3IZeoCu0ST7TFdqVY5hqi1vV5azvHSKzwiG5BNPmWyESZ+xGTEbTH2Kz2hGfZ5FcgmlyuoPxRguigbpMazQbNIbOkCanSzlEgNLRGs2GHzakmmoMvlqgAAAAAElFTkSuQmCC)}.sf-menu-container .social-block .social-btn.ok{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAILSURBVDhPldFPaNNQHAfwdxdaqxNBVKQO8aIgeBJl4GkMBNlwyI5eNxBByRhTh4iXHRRcxdlNJqNOUQZD3cSpPaTgxlA2UJzS2kMnbZOuabL8bZp8zYtV35un/eBDyI/v95FHiJXpbHMWzy86Sz3YkqBDu8QUzxSt98dhzR/+y/7QBU9Kw3eq8I0C3NworLdHuQzt0C6xXh+BNRcsmux3p+BZEuj4XiN80nHzKS4XCrrEnDkElv15OCxohQxWU2348fICvLoJv+HAenOay1LEfN4Klr46FR5QFoegPj2ISioOu5oLd/p8N5eliPk4DpacFsKwq+Rgi32oL9+md4FrKlCeBPfelCfGxH6wSvcPQMuL4SHsFF5dhvZwH5eliJHcC5Y5eQz5ByexNncVta+zqHyaQjbVA3niBIzxOJeliJ7YA5anFuAZMrSFEZRmLkKaFWB9ewEEf8RZustlKbJxZzdYysp086P5cfV1VKZ7uSxFNoZ3gZW91oLviQ7Ua8VmFVj/+AxfhlpRvNnCZSmi3dqJzYyFZLP6exqaBH2y678cRbQbO8CyM4mw5Nk6sve6UU6Phu++68AY6+CyFFGvbwerlhmHU/2J7Mg5lAZiyF2JQhIfwdVkKMmzXJYiyuC2NXUwij+ylyJY6YuiJPC75d4oyv3/dhTtElmItav9kaI6EMGWBB1ZiLX/Au4A8snC/izyAAAAAElFTkSuQmCC)}.sf-menu-container .social-block .social-btn.fb{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAFJSURBVDhPlYvBK4NxGMeff8VmCUnTettYvaWtJpmJmmJoOAlHB1syS3IQ0fYmjF5p28EOlKy0mVZ22GkXNxdZUQ7Kcb68P/1W9va+b/vU5/J8ni8Foo/iXKRcmo+W0YzKRtmSf7VYdS3k4Zy9a0plo2xJDGbRN32r6+BiDjfFVzw9f9b1LuehbMkxeQUjS5U3NOJbyrJGwvgl9LRPZFCrfbPR+8cXtg4LWD/IQZzJsE62sRT0FPxpNlZIXldgHT6B1ZeAbTTJOvWMyDCSc5Quqxp1Dx1DSz08wRT7oa4BCVrq4Q7I7Ic63fvQ0tIbYnIkuVC/dbj22A+19+/ASI50XkRjozZxG0Zy4vKDqpHFuQkjOfGze1WjVscGjOTETvOqRmYh/GK2r0FPTiyR+99+t2QSwp4WW6hqEkLQciVywfRO7dZvf5uw5wdeN3Dr307RWAAAAABJRU5ErkJggg==)}.sf-menu-container .social-block .social-btn.tw{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAHKSURBVDhPndDPSxRhHAbw9y+ZXTWXMImQhATJk2QGCR67COGlbp3s4tm7qWiJbmVJEkYeDDos+4NKwxQq/IHFbu1uqzIz6OzOvu/O7s7T+33d0cWWYP3CB96Z93nmHV52Z1N0DWw7qwM7DuoiO9Rl/d945vqGQPuXQl2oQ1127XMBV1fPh7qs7aMA6V4roGPleF2tT54UMctIchezqRIGvxdwV/L22ZUoB5lKONjMltH5Qahn0ib9zpdxdqbjpxl2OcRBhtYttXkgXIzIS+qKCdz+JNS76jFFCb0hU3UIa32fB+kLH+KAFysxwJEHZ/i/p2/oHJfeWapDWMtyHuTBWr4S+f+8jdsq72EXl2yQwGsdL7aPUHLdSrT23I8aKu9hgTc5eAZDRiVWe3ZMgcAr/SRPWPNCDp4LLw08jOzjT+70Lrwpll3cWkyfZD2saT4LcmPZxr0Yx/hXGzm6wapJZx30LybROGeqbDXWNCcX0s0lC8+3OH5ZRZi8hJTlIJywMSz/qOVxHI1BQ+XOYg3PLBD/rAHfZAra2E9oo7vQHv2ANpGA/8keGp4eqUwtTJs5TPmD8gPnQF2mBfUe37SV8c1YqIvsaEG95y/ECyN0UoUvcQAAAABJRU5ErkJggg==)}.sf-menu-container .social-block .social-btn.lj{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAF4SURBVDhPY/j//z8Dg0GYKItu+lIm/bQ/bAYZ/5n007czaSRKgOQIYQaQQqDG2x5exf/7kmv/T0ip/e/sVf6fSSfjBjGGMAA1b/QEagZpLE3v+2+Xu/5/UMOe/x7ZM4kyBGTAH5DNZem9/y1zN/0/euUlUPz//yt3X/xXCuwjaAgDk07azx6gAQ65a/9v2H/1//sPH//XLzr33712///8Rff++9VuxmsIA4tOxnw799L/7uWb/585c+Z/9sSD/10qd/2fceL3/5kn/4IxPkMYGDXDeIChfsw4rOX/jKWb/1sX7Phvkbv5f0j7IaIMARMwQxT9O/87lAFdUH0SbEhox2GChsBNghsSOBVsAF5D9DL2YhhAiiEOeUv/s+hlALWgGQDCYEN00g+jG+JYuvW/SfoaOMZpAAhjMwSk6f+FKXCM1wAQRjeEZANAGGQIi3bGHDm/iSgGTOxqAhsAig2sGtExSDE2DMq1WDUQwiCbmXQzdjFqxqoAAJTWdEqr5+cQAAAAAElFTkSuQmCC)}.sf-menu-container .social-block .social-btn.mailru{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAKISURBVDhPldJbSJNhHAbw9/vmYUTiRXQXhjhn3dhyblPxLLmZE6YoOzgdU5fTeZjZtCnZYUvSZZtUWOnIeSqjsiAIuigL6YBXXUTQTTeWeFN0wKibp/d9XZJ15cUPtv/7PP/3+9iIwr9YoDyz9Erpf45toR3WJXLvk9WEloeQNDzYFtZhXSJtuA+JbWELjXsEwWEjXo6n48W1AwgMmZHZGfwvx7pEYp3HHztt07gVKsGvmwTPxtIxeNqAEV8F3oT38tlMsBQ76mc38wyRmKbBxJsn8eiyGiuRRCjqjiHVegKmLidKXN2QGgLQNrfg04yIhdE8xJineIchYnUYTENPM79FZupFk8eB9RsEbyf28IWvx2VYCGbD3mHhmQp3N+8wRDSMgVm+IkPkbA4U9n4eKrY3QTzkQ5zuFK768vksrbYfdwMZuHM+i3cYIupDYNbnCGwuE4ZPHsbiaBrEsiE+F/VBJFV58G2WQG7pg7dHj7WpuOhZiC7Q0SD1lQbsbSYM9pVuLIjOmeSa4/hOL5AbPfB5tfg4Kd08I+wxmcehVNwezoC8shU/6eOWNTXyeUL5AObPqfgr7Kt2Y+miDHP+DH7GELF4AIyhvpqH8iyNKK+twlokBu8mdmM1Eo+noyn4cF2KewEFz+QbrbzDELHAC0bI7UZ44CC/vc5Rif1lVmhNVdAYjNhV6EBfZyHehxPR1VoEIc/DOwwRc+mXKEHdCv/RbPygP+HnafpnojcvX0rClxmCFK0dQuYRCFntm3mGCDld2ELlRHKREY7GEoR6VbjQo0KNRYv43PatuSgiqNtWhKwOuvkvmja+SFA6NrDP/2YY2iWxGqdOyHStCmoXHWwD7cRqnLrfWEQPCw6Z+WcAAAAASUVORK5CYII=)}.sf-menu-container .social-block .social-btn.gp{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuM4zml1AAAAIfSURBVDhPldL/SxNhHAfw54+RqY0ck2CU7OZM2bm+LKNiEShNyoaxogTJvoAWVAYJBUX9EBRREoqlY4qa1krdpWzOuVW2llvLU2urOXVm2bu7B7x2yQofeB3P5/3w+fDccWTySpUuctXGCbBOnNhLQg0H+YkaE97YDOsi9oi95O3p/Zh+2o53Tcfw8fEdLH+NQVyp6U+Ie1yItN6Ev7pEkprlpX3AVgryYyGJwI0z8BzSY9jCYMC2C4uxz5jno+CObseIkI1VFUnEPL0m35NzeFWhhaeykHILDeN3r9FbzLzolvJVyamIrCbL83MYEQakc1mNdEAi/B7+84fpPtMi4mP8ghWuA1sknGUrPZxyOfHSrEHbDrUkEQ7Jajog7nNj0LwZA/s0lL+xFj+XluCsKZeyVYlwUFaTwcY6pOJfEHMPYfSUBb76asxyz9FzogK9pnw4d2+S+fZhQlYTuzEP94uV6CxnEbheT68+1HAcXdtU6N+pXuNhiVJWk16jCqKu0jx4m87RATHhlfrLNDT/H9JjVMN79giCty9hsqMZv1ZW6JBk8DWe7WXQbdj4T2QxGsao8NFa2HzcYxS4VahEX50VKeFnWoiE0FdWgM7iDRkRR+UePNAq0KHPhaMoF3ZBszYbrWYDvY3v4kmaZ0IeFWRF7bps/K1FGDrjHYbncu2asz+yosTBqth2RsELkM6uy6H//RMTI8vT8G36HPY3WFKiAfgR588AAAAASUVORK5CYII=)}.sf-menu-container .sf-checkbox{float:left;display:block;padding-top:12px;padding-left:16px;padding-bottom:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sf-menu-container.no-poll .sf-checkbox{padding-top:14px}.sf-menu-container .sf-checkbox>i{width:24px;height:14px;display:block;padding:0;border-width:1px;border-style:solid;border-radius:8px;position:relative;border-color:#78c435;background-color:#78c435}.sf-menu-container .sf-checkbox>i>i{display:block;background-color:#fff;border-width:1px;border-style:solid;border-radius:8px;height:12px;width:12px;border-color:#78c435;margin-left:10px}.sf-menu-container .sf-checkbox.sf-transition>i>i{transition:margin-left .2s;-o-transition:none}.sf-menu-container .inactive .sf-checkbox:not(.enableForce)>i,.sf-menu-container .sf-checkbox.disabled>i{border-color:#be3f2e;background-color:#fff}.sf-menu-container .inactive .sf-checkbox:not(.enableForce)>i>i,.sf-menu-container .sf-checkbox.disabled>i>i{height:14px;width:14px;border-color:#be3f2e;margin:-1px}",""])}])}],i}return J(t,fe),Object(F.a)(t,[{key:"getPageContent",value:function(){return this.popupPage}},{key:"getPageScripts",value:function(){return this.popupScripts}},{key:"createPageContainer",value:function(){this.destroyContainer(),this.containerNode=document.createElement("div"),this.containerNode.classList.add("sf-menu-container"),this.containerNode.style.marginTop="-24px",this.containerNode.style.width="auto",this.containerNode.style.minWidth="482px",this.containerNode.innerHTML=this.getPageContent(),this.parent.appendChild(this.containerNode)}}]),t}(),tt={menu:{initial:{background:"#fff",borderStyle:"solid",borderWidth:"2px 0 2px 2px",borderRadius:"5px 0 0 5px",display:"none",boxSizing:"content-box",font:"13px/18px Arial,Helvetica,sans-serif",width:"auto",height:"auto",padding:0,margin:0,overflow:"visible",position:"fixed",top:"50px",right:"0",textAlign:"left",WebkitTransition:"all 0.2s",transition:"all 0.2s",zIndex:99999},enabled:{borderColor:"#8dc50b"},disabled:{borderColor:"#d0d0d0"},tag:{display:"block",width:"10px",height:"20px",overflow:"hidden",opacity:.5},tagHover:{width:"20px",opacity:.8},active:{width:"auto",height:"auto",overflow:"visible",opacity:.9}},icon:{initial:{display:"inline-block",boxSizing:"content-box",backgroundPosition:"50% 50%",backgroundRepeat:"no-repeat",width:"16px",height:"16px",margin:0,padding:"2px",overflow:"hidden",verticalAlign:"middle",cursor:"pointer"},enabled:{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABqUlEQVQ4jY2SzStEURiHf2bMl+w0SrHRZKPY+RtkYyeRspPFsEEZItLM3DCRjxofw0wyK0k+ClNGhBiEmIiwsrChZqvj/sZcznDJ4um8532f9+3ccy5isRg0Qre2V67hxyzxnfkHm5AdDcib6SvLC9e5e5v4TujuY4Dm6A4YPc684xq8sb6Fbq1CZkbNyU7aACVqdPhP8usGouZT7qcuLInpuFnITJ6bE6zRocuezwEdS/B2LuO+ewXJY44dmZ795yYhM6LmWKNDlz1pn+D0o6J5FjeMfbvGx9ETg5BhjjU6dHXvQMMdMcZ9BxAy7k1DXM/F0J6tYSxm9wbOHJ65y9Lh4FnJvLKZfa3sQKSh5lijQ5c97EX7GnJ61nHYF4Egni0klG3jk7bXYI41bc8e9iaP0RhArmsR+92rEP+BLnvSL3ESea1h7LoWVOEP6NDVvcTaQRQ4ZxBtCUPowRqdX/9EUtOFwoZxbDTNQsgwx9qPV9B7mqoOFNX3Y61xAoIwZk73GfWSySFtKK7uxSph/Jv3FQAZKgYVk0q2ir2sEuWEcSpnSjkZWt87G7sZgVx6JvgAAAAASUVORK5CYII=)"},disabled:{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAiNJREFUeNqMkj+oUlEcx7/nHu/V7lMTxaghqIgoWpIQisCmhjfloDS9QQgMHkpTODc2hS45OQRB6GCLb2hqiAIJpzB6UUhDkqi34/17rtfTonI1ifeDs/zO5/eB8/0dwhjDqjRN+xOLxU4bhiGwVUIIhMNhsmJW/YAfsm1bAIDnedgl8DM7BYZhjAHAdd0FpVTy383n84Wf2RD0er3L8Xj8tq7rDAAcx7EopXtbAgsAdF1ng8HgYDKZfEilUt8CADCbzR7quv5AkqQLAGBZlhUMBjcEjuOsBDcYY0+FEK8BVCQAyGQylel0eqhp2vHynSbnHP5j27a5DPp4Op0eZjKZCgAQ/xZW1e12++Fw+Kq/p+v6l3Q6fW2bDfT7/aKiKBdDoZBQFEX1PC9JCJE45xsgIUQaDoevKKUjzrlp2zbhnP8gnU4nIcvyEaU0vQQNSZJmnued9QsopcPFYhERQuwtV911XXefMMbQbDbPJJPJN7Is38IJynXdj6PR6H4+n/+9zqDdbp9TVbWpKMqd/w1zzt+bppnPZrO//gmx0WicTyQSL0Oh0N1dw7ZtvxuPxweFQuHnOpvtLdTr9UuxWOyFqqr3/H3TNN9qmvaoWCx+3wh31xprtdqVaDT6PBKJ7C8/2hFj7HGpVPq6ze4UAEC1Wr0uy/KzZWhPyuXy513cWhCNRgkAAoACCAI4lcvlbgJAq9X6BMAC4ADwAAjGmACAvwMAXX8khNE72VIAAAAASUVORK5CYII=)"},tag:{padding:"2px"},active:{padding:"5px"}},title:{display:"inline-block",font:"bold 13px/18px Arial,Helvetica,sans-serif",lineHeight:"26px",margin:0,padding:0,textAlign:"left",verticalAlign:"middle",cursor:"pointer"}},nt=function(){function e(t){Object(T.a)(this,e),this.bundle=t,this.popupPageUi=null,this.mono=null,this.activeDataAttr="data-sfh-active",this.id="sfh--ujs-menu",this.enabled=!0,this.active=!1,this.hover=!1,this.move=!1,this.icon=null,this.menu=null,this.isYoutube=/youtube\.com/.test(location.href),this.onDocumentClick=this.onDocumentClick.bind(this),this.onDocumentKeyDown=this.onDocumentKeyDown.bind(this)}return Object(F.a)(e,[{key:"createMono",value:function(){this.destroyMono(),this.mono=this.bundle.createMonoInstance("page")}},{key:"showPopup",value:function(){this.closePopup(),this.popupPageUi=new et(this.bundle,this.menu),this.popupPageUi.create(),this.popupPageUi.containerNode.setAttribute(this.activeDataAttr,"1")}},{key:"create",value:function(){this.createMono(),this.createIcon()}},{key:"createIcon",value:function(){var e=this,t=document.createElement("div");t.addEventListener("mouseover",function(){e.active||(e.hover=!0,e.setElementsStyle("tagHover"))}),t.addEventListener("mouseout",function(){e.active||(e.hover=!1,e.setElementsStyle("tag"))});var n=document.createElement("div");n.title="".concat(this.mono.i18n.getMessage("extName")," ").concat("8.8.2"),n.addEventListener("click",function(t){if(!e.move)return t.preventDefault(),t.stopPropagation(),0===t.button?e.toggleMenuItems():2===t.button&&e.remove(),!1},!1),n.addEventListener("contextmenu",function(t){if(!e.move)return t.preventDefault(),t.stopPropagation(),e.remove(),!1},!1),this.icon=t.appendChild(n),this.menu=document.body.appendChild(t);var o=k()(tt.menu.initial.top);o<0?o=0:this.isYoutube&&o<92?o=92:o+24>k()(window.innerHeight)&&(o=k()(window.innerHeight)-k()(tt.menu.tag.height)-4),tt.menu.initial.top=o+"px",this.setElementsStyle("initial"),this.setEnabled(1),this.setTopPosition(function(){e.menu&&(e.showTag(),e.enableMove())})}},{key:"setTopPosition",value:function(e){var t=this;this.mono.storage.get({gmIconTop:0},function(n){"number"==typeof n.gmIconTop&&(tt.menu.initial.top=n.gmIconTop+"px"),t.menu&&(t.menu.style.top=tt.menu.initial.top),e()})}},{key:"enableMove",value:function(){var e=this,t=!1,n=this.menu,o=void 0,i=k()(n.style.height)/2||0,r=document.createElement("style");r.textContent="body {-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;user-select: none;}";var a=function(){e.move=!1,n.style.position=tt.menu.initial.position,n.style.WebkitTransition=tt.menu.initial.WebkitTransition,n.style.transition=tt.menu.initial.transition,n.style.borderStyle=tt.menu.initial.borderStyle,r.parentNode&&r.parentNode.removeChild(r)},s=function(t){var o=(t.y||t.clientY)-i;"youtube"===e.isYoutube&&o<92?o=92:o<0&&(o=0),n.style.top=tt.menu.initial.top=o+"px"},l=function(o){t=!0,function(t){t.stopPropagation(),t.preventDefault(),e.hideMenuItems(),e.hover=!0,e.setElementsStyle("tagHover"),e.move=!0,n.style.position="fixed";var o=t.y||t.clientY;n.style.top=o-i+"px",n.style.WebkitTransition="initial",n.style.transition="initial",n.style.borderStyle="dotted",document.body.appendChild(r)}(o),document.body.addEventListener("mousemove",s)};n.addEventListener("dragstart",function(e){e.preventDefault()}),n.addEventListener("mousedown",function(i){if(i.target===e.icon){t=!1,o=setTimeout(l.bind(null,i),500);var r=function e(){clearTimeout(o),n.removeEventListener("mouseleave",e)};n.addEventListener("mouseleave",r);document.body.addEventListener("mouseup",function i(){clearTimeout(o),document.body.removeEventListener("mouseup",i),n.removeEventListener("mouseleave",r),t&&(setTimeout(a,100),document.body.removeEventListener("mousemove",s),e.mono.storage.set({gmIconTop:k()(tt.menu.initial.top)}))})}})}},{key:"setStyle",value:function(e,t){this[e]&&tt[e]&&tt[e][t]&&i()(this[e].style,tt[e][t])}},{key:"setElementsStyle",value:function(e){var t=this;e&&["menu","icon"].forEach(function(n){t.setStyle(n,e)})}},{key:"setEnabled",value:function(e){this.enabled=e,this.setElementsStyle(this.enabled?"enabled":"disabled")}},{key:"showTag",value:function(){this.setElementsStyle("tag")}},{key:"toggleMenuItems",value:function(){return this.active?this.hideMenuItems():this.showMenuItems()}},{key:"remove",value:function(){this.menu&&this.menu.parentNode.removeChild(this.menu)}},{key:"getMenuContainer",value:function(){var e=document.createElement("div");return e.classList.add("sf-menu-container"),e.setAttribute(this.activeDataAttr,"1"),e.style.marginTop="-24px",e.style.width="auto",e.style.minWidth="482px",e}},{key:"showMenuItems",value:function(){if(!this.active){this.menu.style.top=tt.menu.initial.top,this.removeActiveItems(),this.showPopup(),this.active=!0,this.setElementsStyle("active"),document.addEventListener("click",this.onDocumentClick,!1),document.addEventListener("keydown",this.onDocumentKeyDown,!1);var e=this.menu.clientHeight,t=k()(this.menu.style.top),n=window.innerHeight;t+e>n?this.menu.style.top=n-e-4+"px":t<0&&(this.menu.style.top="0px")}}},{key:"hideMenuItems",value:function(){this.menu.style.top=tt.menu.initial.top,this.closePopup(),this.removeActiveItems(),document.removeEventListener("click",this.onDocumentClick,!1),document.removeEventListener("keydown",this.onDocumentKeyDown,!1),this.active=!1,this.showTag()}},{key:"onDocumentClick",value:function(e){var t=e.target;t===this.menu||this.menu.contains(t)||this.hideMenuItems()}},{key:"onDocumentKeyDown",value:function(e){27===e.keyCode&&this.hideMenuItems()}},{key:"removeActiveItems",value:function(){for(var e;e=this.menu.querySelector("div["+this.activeDataAttr+"]");)e.parentNode.removeChild(e)}},{key:"closePopup",value:function(){this.popupPageUi&&this.popupPageUi.destroy(),this.popupPageUi=null}},{key:"destroyButton",value:function(){if(this.menu){var e=this.menu.parentNode;e&&e.removeChild(this.menu)}this.menu=null,this.icon=null}},{key:"destroyMono",value:function(){this.mono&&this.mono.destroy(),this.mono=null}},{key:"destroy",value:function(){this.closePopup(),this.destroyButton(),this.destroyMono()}}]),e}(),ot=n(76),it=n(199).EventEmitter,rt=function(e){function t(){var e;return Object(T.a)(this,t),(e=_(this,V(t).call(this))).messaing=new it,e.backgroundPageLoaded=!1,e.backgroundScripts=[function(e){!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=48)}([function(t,n,o){o.r(n);var i=e;n.default=i},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(14)},function(e,t){e.exports=n(19)},function(e,t){e.exports=n(103)},function(e,t){e.exports=n(36)},function(e,t){e.exports=n(28)},function(e,t){e.exports=n(77)},function(e,t){e.exports=n(35)},function(e,t){e.exports=n(73)},function(e,t){e.exports=n(200)},function(e,t){e.exports=n(34)},function(e,t,n){var o=n(0);t.a=function(e){return new A.a(function(t){return o.default.storage.get(e,t)})}},function(e,t){e.exports=n(42)},function(e,t){e.exports=n(78)},,,function(e,t){e.exports=n(201)},function(e,t){e.exports=n(202)},function(e,t,n){var o=n(0);t.a=function(e){return new A.a(function(t){return o.default.storage.set(e,t)})}},,,function(e,t){e.exports=n(203)},function(e,t){e.exports=n(216)},function(e,t){e.exports=n(206)},function(e,t){e.exports=n(215)},function(e,t){e.exports=n(207)},function(e,t){e.exports=n(208)},function(e,t){e.exports=n(209)},function(e,t){e.exports=n(210)},function(e,t){e.exports=n(101)},function(e,t){e.exports=n(212)},function(e,t){e.exports=n(213)},function(e,t){e.exports=n(21)},function(e,t){e.exports=n(104)},function(e,t){e.exports=n(74)},,function(e,t,n){n.r(t);var o=n(0),i=n(9),r=n.n(i),a=n(17),s=n.n(a);t.default=function(){function e(t){Object(T.a)(this,e),this.engine=t,this.showButtonModules={"includes/youtube_com.js":"youtube","includes/dailymotion_com.js":"dailymotion","includes/vimeo_com.js":"vimeo","includes/facebook_com.js":"facebook","includes/soundcloud_com.js":"soundcloud","includes/vkontakte_ru.js":"vk","includes/odnoklassniki_ru.js":"odnoklassniki","includes/mail_ru.js":"mailru","includes/instagram_com.js":"instagram","includes/rutube_ru.js":"rutube","includes/savefrom_net.js":"savefrom","includes/link_modifier.js":"lm"},this.commands=null,this.init()}return Object(F.a)(e,[{key:"getCommands",value:function(){var e=this;return[{id:"downloadFromCurrentPage",command:function(){e.engine.actionList.downloadFromCurrentPage()}},{id:"updateLinks",notify:"updateLinksNotification",modules:["vk","odnoklassniki","facebook","lm","youtube","dailymotion","instagram","rutube"]},{id:"downloadMP3Files",modules:["vk","odnoklassniki","mailru"]},{id:"downloadPlaylist",modules:["vk","odnoklassniki","mailru"]},{id:"downloadPhotos",modules:["vk"]},{id:"showOptions",command:function(){o.default.bundle.showOptions()}},{id:"reportBug",command:function(){e.engine.actionList.reportBug()}},{id:"enableDisableModule",command:function(){e.engine.actionList.getActiveTabInfo(null,function(t){var n=(t=t||{}).state?0:1;e.engine.actionList.viaMenu_changeState({state:n,prefKey:t.prefKey,moduleName:t.moduleName}),n&&1===e.engine.preferences.button?e.engine.gmShowButton(1):e.engine.gmShowButton(0)})}},{id:"showHideButton",command:function(){var t=!o.default.bundle.buttonUi;e.engine.actionList.updateOption({action:"updateOption",key:"button",value:t?1:0})}}]}},{key:"registerModule",value:function(e){var t=this;if("undefined"!=typeof GM_registerMenuCommand){var n=e.id,i=o.default.i18n.getMessage(n);return e.command?GM_registerMenuCommand(i,e.command):GM_registerMenuCommand(i,function(){t.engine.onMessage({action:(void 0!==e.modules?"viaMenu_":"")+e.id}),e.notify&&"undefined"!=typeof GM_notification&&GM_notification(o.default.i18n.getMessage(e.notify),null,null,null,3e3)})}}},{key:"register",value:function(e){for(var t,n="undefined"!=typeof GM_unregisterMenuCommand,o=0;t=this.commands[o];o++){if(n)t.gmId&&GM_unregisterMenuCommand(t.gmId);else if(t.hasOwnProperty("gmId"))continue;(!t.modules||t.modules.indexOf(e)>-1)&&(t.gmId=this.registerModule(t))}}},{key:"init",value:function(){var e=this;if(this.commands=this.getCommands(),!r()()){var t=[];x()(this.showButtonModules).forEach(function(n){var i=e.showButtonModules[n];o.default.bundle.isLoadedFile(n)&&t.push(i)});var n=t[0];this.register(n);var i=this.engine.preferences;(i.button&&i[s.a[n]]||"savefrom"===n)&&this.engine.gmShowButton(1)}}}]),e}()},function(e,t,n){n.r(t);var o=n(0),i=n(1),r=n.n(i);t.default=function(e){e.checkUpdate=function(){var t=e.varCache,n=e.checkUpdate.typeList,i=o.default.isChrome&&!e.isOperaNext?"chrome":o.default.isFirefox&&e.firefoxNoStore?"firefox":o.default.isGM?"gm":o.default.isSafari?"safari":void 0;if(n[i]){var a=e.liteStorage.isExpire("lastVersionExpire");t.isUpgrade&&(a=!0),a&&(e.liteStorage.set("lastVersion",""),e.liteStorage.setExpire("lastVersionExpire",86400),r()({type:"GET",url:n[i].url,cache:!1},function(t,o){if(!t){var r=n[i].getVersion(o.body);r&&(e.liteStorage.set("lastVersion",r),e.liteStorage.setExpire("lastVersionExpire",604800))}}))}},e.checkUpdate.typeList={chrome:{url:"http://download.sf-helper.com/chrome/updates-3.xml",getVersion:function(e){var t=/updatecheck.+version=['"](.+)['"]/.exec(e);return t&&t[1]}},firefox:{url:"https://download.sf-helper.com/mozilla/updates.json",getVersion:function(e){var t=null;try{var n=JSON.parse(e);t=n.addons[x()(n.addons)[0]].updates}catch(e){}if(t){var o=null;return t.some(function(e){return o=e.version}),o}}},safari:{url:"https://download.sf-helper.com/safari/update.plist",getVersion:function(e){if("string"==typeof e){var t=e.indexOf("<key>CFBundleVersion</key>");if(-1!==t){e=e.substr(t);var n=/<string>(.+)<\/string>/.exec(e);return n&&n[1]}}}},gm:{url:"https://download.sf-helper.com/chrome/helper.meta.js",getVersion:function(e){var t=/@version\s+(.+)\s*\r?\n/.exec(e);return t&&t[1]}}},e.loader.when("prepare",function(){e.checkUpdate()})}},function(e,t,n){n.r(t);var o=n(0),i=n(1),r=n.n(i),s=n(34),l=n.n(s),u=n(12),d=(n(2),n(19));t.default=function(e){e.loader.when("init",function(){var t=e.defaultPreferences,n=e.preferences;if(!n.lc&&!(o.default.isChrome&&o.default.isChromeMobile||o.default.isFirefox&&o.default.isFirefoxMobile)){t.aviaBarEnabled=1,n.hasAviaBar=1;var i=function(){return n.hasAviaBar&&n.aviaBarEnabled},s=function(){i()?(f&&f(),e.tabListener.extendJsList.aviaBar=c,e.tabListener.enable()):delete e.tabListener.extendJsList.aviaBar},c={getScriptList:function(e){var t=[];return i()?l()(e)&&(t.push("includes/commons.js"),t.push("includes/aviaBar.js")):s(),t}};(function(e){var t=null,n=function(){return null!==t?A.a.resolve(t):t=Object(u.a)({onceTrackAviaBar:null}).then(function(e){var t=e.onceTrackAviaBar;return"number"!=typeof t?(t=Math.random()<.1?1:0,Object(d.a)({onceTrackAviaBar:t}).then(function(){return t})):t}).then(function(e){return t=e})},o=function(){n().then(function(t){if(t){var n={t:"screenview",cd:"init",tid:"UA-70432435-1"};e.wrapBaseStatInfo(n),e.quickTrack(n)}})};n().then(function(t){t||e.events.off("sendScreenView",o)}),e.events.on("sendScreenView",o)})(e),o.default.storage.onChanged.addListener(function(e,t){"local"===t&&e.aviaBarEnabled&&s()}),e.loader.when("prepare",function(){s()});var f=function(){f=null;var t=function(e,t){return o.default.storage.get(e,t)},n=function(e,t){return o.default.storage.set(e,t)},i={appInfo:{id:"sf.sfHelper",track:!0,directTrack:!0,useTemplates:!0}};i.API={setRemovedState:function(e){t("aviaBar",function(t){return t.aviaBar=t.aviaBar||{},t.aviaBar.removed=!!e,n(t)})}};var s=function(e){var t=e.aviaBar;t&&"object"==typeof t||(t=e.aviaBar={}),a()(t.blackList)||(t.blackList=[]),t.templates&&"object"==typeof t.templates||(t.templates={})};!function(e){o.default.onMessage.addListener(e)}(function(a,l,u){if(a&&a.action)switch(a.action){case"tbrGetInfo":u(i.appInfo);break;case"tbrIsAllow":return t("aviaBar",function(e){if(s(e),e.aviaBar.removed)return u(!1);var t=!0,o=e.aviaBar.blackList,i=null;if(o.some(function(e){if(e.hostname===a.hostname)return i=e,!0}),i){var r=k()(b()()/1e3);if(i.expire>r)t=!1;else{var l=o.indexOf(i);o.splice(l,1),n(e)}}return u(t)}),!0;case"tbrCloseBar":t("aviaBar",function(e){s(e);var t=e.aviaBar.blackList,o=null;if(t.some(function(e){if(e.hostname===a.hostname)return o=e,!0}),!o){var i=k()(b()()/1e3);t.push({hostname:a.hostname,expire:i+18e3}),n(e)}});break;case"tbrGetTemplate":return t("aviaBar",function(e){s(e);var t=e.aviaBar.templates,o=t[a.id];o||(t[a.id]=o={});var i=k()(b()()/1e3);o.expire>i?u(o.data):(o.expire=i+21600,r()({url:"https://travelbar.tools/static/scheme/"+a.id+".json",timeout:6e4,json:!0},function(r,a){if(!r){var s=a.body;o.expire=i+43200,o.data=s,x()(t).sort(function(e,n){return t[e].expire>t[n].expire?-1:1}).slice(5).forEach(function(e){delete t[e]})}u(s),n(e)}))}),!0;case"tbrEvent":"track"===a.type?function(t){var n="UA-70432435-1",i=-1!==["cheapflightError","hotelError"].indexOf(t.ec);if(i&&(n="UA-7055055-10"),t.tid=n,e.wrapBaseStatInfo(t),i)o.default.isGM&&e.quickTrack(t);else{var r=JSON.parse(g()(t));r.tid="UA-70432435-6",e.quickTrack(t),e.quickTrack(r)}}(a.data[0]):"directTrack"===a.type&&(d=a.data[0]).tid&&(e.wrapBaseStatInfo(d),e.quickTrack(d))}var d})}}})}},function(e,t,n){n.r(t);var o=n(0),i=n(2),r=n.n(i)()("sw");t.default=function(e){e.loader.when("init",function(){var t=e.preferences;if(t.lc)r&&r.debug("Skip: lc");else if(!(o.default.isFirefox&&o.default.isFirefoxMobile||o.default.isChrome&&o.default.isChromeMobile||/^(yabrowser|chameleon)/.test(e.varCache.helperName))){var n=function(){return t.hasSwStat&&t.statEnabled},i=function(){n()?(e.tabListener.extendJsList.fs=a,e.tabListener.enable()):delete e.tabListener.extendJsList.fs},a={noBlackList:!0,getScriptList:function(){var e=[];return n()?(e.push("includes/commons.js"),e.push("includes/swStat.js")):i(),e}},s=["eu","at","be","bg","cy","cz","dk","ee","fi","fr","de","gr","hu","ie","it","lv","lt","lu","mt","nl","pl","pt","ro","sk","si","es","se","gb"],l=function(){t.country&&-1===s.indexOf(t.country)?t.hasSwStat=1:t.hasSwStat=0};o.default.storage.onChanged.addListener(function(e,t){"local"===t&&(e.country?(r.debug("country changed"),l(),i()):e.statEnabled&&(r.debug("statEnabled changed"),i()))}),e.loader.when("prepare",function(){l(),i()})}})}},function(e,t,n){n.r(t);var o=n(0),i=(n(2),n(35)),r=n.n(i),a=n(42).preferredLanguages;t.default=function(e){e.loader.when("init",function(){var t=e.defaultPreferences,n=e.preferences;if(!n.lc){t.sovetnikEnabled=1;var i=function(){return n.hasSovetnik&&n.sovetnikEnabled},s={getScriptList:function(e){var t=[];return i()?t.push("includes/sovetnik-sf.js"):l(),t}},l=function(){i()?(e.tabListener.extendJsList.sovetnik=s,e.tabListener.enable()):delete e.tabListener.extendJsList.sovetnik},u=["be","kk","ru","uk","hy","ro","az","ka","ky","uz","lv","lt","et","tg","fi","tk"],d=["by","kz","ru","ua","am","md","az","ge","kg","uz","lv","lt","ee","tj","fi","tm"],c=function(){var e=-1!==d.indexOf(n.country);if(e)   ;else{var t=r()(),o=a(t.join(","),u);o&&o.length&&(e=!0)}n.hasSovetnik=e?1:0};o.default.storage.onChanged.addListener(function(e,t){if("local"===t&&(e.country&&(c(),l()),e.sovetnikEnabled)){n.sovetnikEnabled;l()}}),e.loader.when("prepare",function(){c(),l()})}})}},function(e,t){e.exports=n(100)},function(e,t,n){n.r(t);var o=n(0);t.default=function(e){e.loader.when("init",function(){var t=e.preferences;if(!t.lc&&!(o.default.isFirefox&&o.default.isFirefoxMobile||o.default.isChrome&&o.default.isChromeMobile)){var n=function(){return!t.hasFsStat||!t.statEnabled},i=function(){n()?delete e.tabListener.extendJsList.stat:(e.tabListener.extendJsList.stat=r,e.tabListener.enable())},r={noBlackList:!0,getScriptList:function(){var e=[];return n()?i():(e.push("includes/commons.js"),e.push("includes/fsStat.js")),e}};o.default.storage.onChanged.addListener(function(e,t){"local"===t&&e.statEnabled&&i()}),e.loader.when("prepare",function(){t.hasFsStat=1,i()})}})}},function(e,t,n){n.r(t);var o=n(0),i=n(9),r=n.n(i),a=(n(2),n(5)),s=n.n(a);t.default=function(e){if(!r()())return e.loader.when("init",function(){return o.default.storage.get({userjsIsInstaller:0,userjsIsOpenVideo:0},function(t){if(t.userjsIsInstaller&&!t.userjsIsOpenVideo)return n="userjsDblTrack",void o.default.storage.get(m({},n,null),function(t){var i=b()();if(t[n]&&t[n].time>i)   ;else{var r=e.generateUuid();o.default.storage.set(m({},n,{uuid:r,time:i+6e4}),function(){setTimeout(function(){o.default.storage.get(m({},n,null),function(e){e[n]&&e[n].uuid===r&&o.default.storage.set({userjsIsOpenVideo:1},function(){return s()({url:"http://sf-helper.com/static/userjsFirstrun.json",json:!0}).then(function(e){var t=e.body,n=t.localeUrl,i=t.defaultLocale,r=n[o.default.i18n.getMessage("lang")]||n[i];r&&o.default.openTab(r)}).catch(function(e){})})})},5e3)})}});var n})})}},function(e,t,n){n.r(t);var o=n(0),i=(n(2),n(4)),r=n.n(i),a=n(5),s=n.n(a),l=function(e){return new A.a(function(t){return o.default.storage.set(e,t)})},u=function(e){return e<r()()},d=function(e){var t=e.length,n=0,o=0;if(t>0)for(;o<t;)n=(n<<5)-n+e.charCodeAt(o++)|0;return n};t.default=function(e){e.loader.when("init",function(){var t=e.preferences,n=e.defaultPreferences;if(!t.lc){t.hasPromobar=1,n.promoBarEnabled=1;var i=null;o.default.remote.promoBarGetHash=function(t){return e.readyPromise.then(function(){if(!i)return(e={promoBarDomains:[],promoBarExpireAt:0,promoBarBlacklist:{},promoBarRate:{}},new A.a(function(t){return o.default.storage.get(e,t)})).then(function(e){i=e});var e}).then(function(){if(i.promoBarExpireAt<r()())return i.promoBarExpireAt=r()()+300,l({promoBarExpireAt:i.promoBarExpireAt}).then(function(){return s()({url:"https://promobar.tools/api/v1/domains.json",json:!0}).then(function(e){var t=e.body;if(!t.ok)throw new Error("Bad response");return t.result}).then(function(e){return i.promoBarDomains=e,i.promoBarExpireAt=r()()+43200,l({promoBarDomains:i.promoBarDomains,promoBarExpireAt:i.promoBarExpireAt})})})}).then(function(){var e=function(e){for(var t=null,n=e.split(".");n.length>1;){var o=n.join("."),r=d(o);if(-1!==i.promoBarDomains.indexOf(r)){t=r;break}n.shift()}return t}(t);return function(e){var t=i.promoBarBlacklist[e];return t&&u(t)&&(t=null),!!t}(e)?null:e})},o.default.remote.promoBarAddInBlackList=function(e,t){var n=i.promoBarBlacklist;return n[e]=r()()+(t||3600),x()(n).forEach(function(e){u(n[e])&&delete n[e]}),l({promoBarBlacklist:i.promoBarBlacklist})},o.default.remote.promoBarInRate=function(e,t){return A.a.resolve().then(function(){var n=i.promoBarRate,o=n[e];return void 0===o?(o=n[e]=Math.random()<t,l({promoBarRate:i.promoBarRate}).then(function(){return o})):o})};var a=function(){return t.promoBarEnabled},c={getScriptList:function(){var e=[];return a()?(e.push("includes/commons.js"),e.push("includes/promoBar.js")):f(),e}},f=function(){a()?(e.tabListener.extendJsList.promoBar=c,e.tabListener.enable()):delete e.tabListener.extendJsList.promoBar};o.default.storage.onChanged.addListener(function(e,t){"local"===t&&e.promoBarEnabled&&f()}),e.loader.when("prepare",function(){f()})}})}},function(e,t,n){n.r(t);var o=n(0),i=(n(2),n(1)),r=n.n(i),a=n(7),s=n.n(a);t.default=function(e){e.loader.when("init",function(){var t=e.defaultPreferences,i=e.preferences;if(!(i.lc||o.default.isFirefox&&o.default.isFirefoxMobile)){i.hasPricevisor=1,t.pricevisorEnabled=1;var a=function(){a=null,n(47)(r.a),o.default.onMessage.addListener(function(t){t&&"AID_TRACK"===t.action&&function(t){e.wrapBaseStatInfo(t),e.quickTrack(t)}(t.payload)})},l=function(){return i.hasPricevisor&&i.pricevisorEnabled},u=function(){l()?(a&&a(),e.tabListener.extendJsList.pricevisor=c,e.tabListener.enable()):delete e.tabListener.extendJsList.pricevisor},d=s()([{matches:/^https:\/\/www\.bukalapak\.com\/.*$|^https:\/\/www\.lazada\.co\.id\/.*$|^https:\/\/www\.tokopedia\.com\/.*$|^https:\/\/www\.blibli\.com\/.*$/i}]),c={getScriptList:function(e){var t=[];return l()?d(e)&&t.push("includes/pricevisor.js"):u(),t}};o.default.storage.onChanged.addListener(function(e,t){"local"===t&&e.pricevisorEnabled&&u()}),e.loader.when("prepare",function(){u()})}})}},function(e,t,n){e.exports=function(e){!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||p()(e,t,{enumerable:!0,get:o})},n.r=function(e){void 0!==P.a&&I.a&&p()(e,I.a,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=L()(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){t.a={GET_PRODUCT_DATA:"AID_GET_PRODUCT_DATA",GET_PAGE_SELECTORS:"AID_GET_PAGE_SELECTORS",TRACK:"AID_TRACK"}},function(e,t,n){e.exports=n(2)},function(e,t){e.exports=n(0).default},function(t,n,o){o.r(n);var i=o(1),r=o(0),a=null;a="function"==typeof e?e:function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){4==n.readyState&&200==n.status&&t(null,n,n.responseText)},n.open("GET",e.url,!0),n.send(null)},i.onMessage.addListener(function(e,t,n){var o;switch(console.log("from content message",g()(e,null,4)),e.action){case r.a.GET_PRODUCT_DATA:o=function(e){if(e&&e.product_name){var t,n="";return x()(e).forEach(function(o){t=e[o],n+="&"+o+"="+encodeURI(t)}),"http://176.9.38.116:5001/?query="+n}}(e.payload);break;case r.a.GET_PAGE_SELECTORS:o=function(e){if(e&&e.href)return"http://176.9.38.116:5001/containers/?url="+e.href}(e.payload);break;case r.a.TRACK:}if(o)return function(e,t){a({url:o,localXHR:!1},function(e,n,o){try{var i=JSON.parse(o);!function(e){for(var t in e)return!1;return!0}(i)?t(null,i):t(new Error("empty response"))}catch(e){}})}(0,function(t,o){t||n({action:e.action,payload:o})}),!0})}])}},function(e,t,n){n.r(t);var o,r,s,l,u,d,f,p,h,v,y,w,S,C,L,M,I=n(0),O=n(1),P=n.n(O),T=n(2),F=n.n(T),E=F()("utils"),N=null,D={getFileSize:function(e,t){var n=e.url,o={fileSize:0,fileType:"",status:0,error:!1};return P()({url:n,type:"HEAD"},function(e,n){if(e)return o.error=!0,t(o);o.status=n.statusCode,o.fileSize=k()(n.headers["content-length"])||0;var i=n.headers["content-type"];i&&(o.fileType=i),t(o)}),!0},ChromeDl:function(){var e={},t=!1,n=function(n){e[n]&&delete e[n],0===x()(e).length&&(t=!1,chrome.downloads.onChanged.removeListener(o))},o=function(t){var o=e[t.id];if(o){var i=!1;o.fixNetworkFiled&&(i=function(e,t){var n=k()(b()()/1e3),o=!1;e.lastFix||(e.lastFix=0),e.lastFix+5<n&&(e.lastFix=n,o=!0);var i=t.state&&"interrupted"===t.state.current,r=t.error&&"NETWORK_FAILED"===t.error.current,a=t.canResume&&t.canResume.current;return i&&r&&a||(o=!1),o}(o,t)),i?chrome.downloads.resume(t.id):t.state&&-1!==["interrupted","complete"].indexOf(t.state.current)&&n(t.id)}};this.download=function(n){var i=n.url,r=n.filename;n.fixNetworkFiled=/(vk\.me|userapi\.com)\/.+\.mp4/i.test(i);var a={url:i,filename:r};I.default.isFirefox&&N.preferences.saveAsDialog&&(a.saveAs=!0),chrome.downloads.download(a,function(i){n.fixNetworkFiled&&(function(t,n){e[t]||(e[t]=n)}(i,n),t||(t=!0,chrome.downloads.onChanged.addListener(o)))})}},chromeDownload:null,downloadFile:function(e){var t=D;if(I.default.isChrome||I.default.isFirefox){t.chromeDownload||(t.chromeDownload=new t.ChromeDl);var n=function(){return t.chromeDownload.download(e.options)};if(chrome.downloads&&chrome.downloads.download)return n();chrome.permissions&&chrome.permissions.request?chrome.permissions.request({permissions:["downloads"]},function(e){if(e)return n();E.error("Permissions not granted!")}):E.error("Method in not supported!")}else I.default.isGM&&GM_download(e.options.url,e.options.filename)},chromeListDownload:function(e,t){var n=null;e=e.map(function(e){return{url:e.url,filename:t+e.filename}});var o=function(e){if(e.id===n&&e.state)return-1!==["interrupted","complete"].indexOf(e.state.current)?(n=null,r()):void 0};chrome.downloads.onChanged.addListener(o);var i=-1,r=function(){var t=e[++i];if(t)return chrome.downloads.download({url:t.url,filename:t.filename},function(e){n=e});chrome.downloads.onChanged.removeListener(o)};return r()},downloadList:function(e){var t=this,n=e.fileList,o=e.folder;(I.default.isChrome||I.default.isFirefox)&&chrome.downloads&&chrome.downloads.download?t.chromeListDownload(n,o):n.forEach(function(e){t.downloadFile({options:{url:e.url,filename:o+e.filename}})})},getUmmyIcon:function(e,t){t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB90lEQVQ4EcVSy2oUURCtqm7HcYgmYDTiYxEEERdZGP0B0UVwEcSv8LHIb4gbQcjGlVtB40YhfkAWuhs0uFOIgjJomiEzztzue4+n7rTgH6SaoqpPnao6fW+LHLapC9hdPHMbKT1UTcsQWxDBnAAdFkuvQ6QR1cD0QAUVoF+0kKdXBoO32j959maK8V1LVDaBDXkwm9q32atz/hmRpIZb5STqPaDIjP/oFAS5Xu1l/MPCBZhxt09uSRykCn1QhmQr1MiSQ3TPGYdIMtwfZPh3MjkhlvOWOcuTrJQB5VJeR0g5HlzjMSSVpp7mtQGFBJjXwJp69AlqtlTW0bpQ6nNLbTdjSCIxNhkOqUBwBconZYWZr1G6RgXcRoI782k0rO681vVq15o6SGyCrFefbHVnS6eNkmcSyMlOvr48ernimjlf5WcUuP1zr7C7W090/twiMcjw+y95dWcjXRr7Sn6Ba8mmB1RQ/MwqOK2mg356FPFi4xGm4z8I40nOT434OanElDdWM2aH/eAtHOlz98XZRBch0uPnHPu4J9uPn+dNzNGTLho/Kj+D1gza12fl1RuEtlmaaWPiGkOK8k0mecB5Nnes8DZvdiwPgRVrmbAp19aI8Fe2ZSDN86aOk9OpkfiHqfKoap9JfMTWfcavvNXN+/H9G596uPYX83AWUVC6/FsAAAAASUVORK5CYII=")},getWarningIcon:function(e,t){var n,o=e.color||"#c2c2c2";n="audio"===e.type?'<svg width="21px" height="24px" viewBox="0 0 21 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M21,2.76923077 L21,17.6487288 C21,17.6487288 21,17.6487288 21,17.6487288 L21,18.4615385 L20.9068729,18.4615385 C20.723595,19.2712249 20.2716013,20.0865791 19.5669296,20.7680198 C17.9203537,22.360313 15.5176896,22.6184747 14.2004289,21.3446402 C12.8831682,20.0708056 13.1501309,17.7473503 14.7967068,16.1550571 C16.0602516,14.9331676 17.7690324,14.4969051 19.0909091,14.9356816 L19.0909091,14.9356816 L19.0909091,4.15384615 L7.63636364,6.92307692 L7.63636364,19.4948826 C7.63636364,19.4948826 7.63636364,19.4948826 7.63636364,19.4948826 L7.63636364,20.3076923 L7.5432365,20.3076923 C7.35995859,21.1173788 6.90796493,21.9327329 6.20329323,22.6141737 C4.55671732,24.2064669 2.15405328,24.4646286 0.836792552,23.190794 C-0.480468173,21.9169595 -0.213505501,19.5935041 1.43307041,18.0012109 C2.69661523,16.7793214 4.40539601,16.343059 5.72727273,16.7818354 L5.72727273,16.7818354 L5.72727273,6.46153846 L5.72727273,3.69230769 L21,0 L21,2.76923077 Z" fill="'+o+'"></path></svg>':"playlist"===e.type?'<svg width="24px" height="18px" viewBox="0 0 24 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M0,0 L0,3.6 L3.42857143,3.6 L3.42857143,0 L0,0 Z M0,7.2 L0,10.8 L3.42857143,10.8 L3.42857143,7.2 L0,7.2 Z M5.14285714,0 L5.14285714,3.6 L24,3.6 L24,0 L5.14285714,0 Z M5.14285714,7.2 L5.14285714,10.8 L20.5714286,10.8 L20.5714286,7.2 L5.14285714,7.2 Z M0,14.4 L0,18 L3.42857143,18 L3.42857143,14.4 L0,14.4 Z M5.14285714,14.4 L5.14285714,18 L22.2857143,18 L22.2857143,14.4 L5.14285714,14.4 Z" fill="'+o+'"></path></svg>':'<svg width="24px" height="18px" viewBox="0 0 24 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M19.5,3 L21.0089096,3 C22.6582294,3 24,4.34288718 24,5.99942248 L24,15.0005775 C24,16.6556493 22.6608432,18 21.0089096,18 L2.99109042,18 C1.34177063,18 0,16.6571128 0,15.0005775 L0,5.99942248 C0,4.34435073 1.33915679,3 2.99109042,3 L7.5,3 C7.5,1.34651712 8.84187067,0 10.497152,0 L16.502848,0 C18.1583772,0 19.5,1.34314575 19.5,3 L19.5,3 Z M13.5,16.5 C16.8137087,16.5 19.5,13.8137087 19.5,10.5 C19.5,7.18629134 16.8137087,4.5 13.5,4.5 C10.1862913,4.5 7.5,7.18629134 7.5,10.5 C7.5,13.8137087 10.1862913,16.5 13.5,16.5 Z M13.5,15 C15.9852815,15 18,12.9852815 18,10.5 C18,8.0147185 15.9852815,6 13.5,6 C11.0147185,6 9,8.0147185 9,10.5 C9,12.9852815 11.0147185,15 13.5,15 Z" fill="'+o+'"></path></svg>',t("data:image/svg+xml;utf8,"+encodeURIComponent(n))},checkUrlsOfOpenTabs:function(e,t){(I.default.isGM?function(e){e([location.href])}:I.default.isChrome?function(e){var t=[];chrome.tabs.query({},function(n){n.forEach(function(e){t.push(e.url)}),e(t)})}:I.default.isFirefox?function(e){var t=[];if(I.default.isFirefoxMobile)return e(t);chrome.tabs.query({},function(n){n.forEach(function(e){t.push(e.url)}),e(t)})}:I.default.isSafari?function(e){var t=[];safari.application&&safari.application.activeBrowserWindow&&safari.application.activeBrowserWindow.tabs&&safari.application.activeBrowserWindow.tabs.forEach(function(e){if(!e.url)return 1;t.push(e.url)}),e(t)}:function(e){e([])})(function(n){var o=[];n.forEach(function(t){e.forEach(function(e){-1!==t.search(e)&&o.push(t)})}),t(o)})},getData:function(e,t){var n=e.url;return n?(P()({url:n},function(e,n,o){if(e)return t();t(o)}),!0):t()}},B=n(22),R=n.n(B),_=n(23),q=n.n(_),j=n(10),z=n.n(j),U=n(8),V=n.n(U),H=n(6),G=n.n(H),W=n(14),Y=n.n(W),K=n(3),Q=n.n(K),J=n(11),Z=n.n(J),X=F()("youtube_embed"),$=n(13),ee=null,te={lastSts:["17855",[["swap",49],["splice",3],["reverse",null],["swap",44],["swap",32],["splice",3]]],_stsIsLoaded:!1,_lastSignature:null,_dashMpdSigR:/(\/s\/([^\/]+))/,getYoutubeLinks:function(e,t){function n(n,o,i,r){te.addUmmyLinks(n,e.extVideoId);var a={action:e.action,extVideoId:e.extVideoId,links:n,title:o,subtitles:i,duration:r,checkLinks:null};return e.checkLinks&&n?te.checkYoutubeLinks(n,function(e,n){return a.checkLinks=n,t(a)}):t(a)}return te._prepareLastSts().then(function(){return te._getYoutubeLinks(e.url,e.extVideoId,e.checkSubtitles,e.noDash).then(function(e){n(e.links,e.title,e.subtitles,e.duration)},function(e){X.error("_getYoutubeLinks error",e),n(null,"",null,"")})}),!0},_getYoutubeLinks:function(e,t,n,o){var i=this;return e||(e="https://www.youtube.com/watch?v="+t),i._getVideoInfo(t,e).then(function(e){var r=e.config,a=e.signature;return i.onGetConfig(t,n,o,r,a)})},_getVideoInfo:function(e,t){var n=this,o=n._rp,i=function(e,t,i,r,a){var s={};return(I.default.isChromeMobile||I.default.isFirefoxMobile)&&(s["User-Agent"]=z()()),o({url:"https://"+e+"/get_video_info?"+$.stringify({video_id:i,eurl:t,el:r,sts:a.sts}),headers:s}).then(function(e){return n._dataStrToObj(e)}).then(function(e){var t;if(2===k()(e.errorcode,10))throw(t=new Error("Invalid parameters")).code="INVALID_REQUEST",t;if(150===k()(e.errorcode,10))throw(t=new Error("Video is unavailable")).code="UNAVAILABLE",t;if(!e.video_id)throw new Error("Config videoId is empty!");return{signature:a,config:e}})},r=function(e,t,o){var i=A.a.resolve(null);return n._getChipedItem(e)&&(i=i.then(function(){if(!t)throw new Error("Player url is not found!");return n._ytHtml5SigDecipher.dechip(t,o)})),i};return n._getSignature().then(function(n){return i("www.youtube-nocookie.com",t,e,"detailpage",n).then(function(e){var t=e.config;if("1"===t.requires_purchase||""===t.url_encoded_fmt_stream_map||""===t.fmt_url_map||""===t.adaptive_fmts||t.errorcode>0)throw new Error("Some config keys is bad");return e},function(e){throw X.debug("try 1",e),e}).catch(function(){return i("www.youtube.com",t,e,"detailpage",n).catch(function(e){throw X.debug("try 2",e),e})}).catch(function(){return i("www.youtube-nocookie.com",t,e,"embedded",n).then(function(e){var t=e.config;if("1"===t.requires_purchase||""===t.url_encoded_fmt_stream_map||""===t.fmt_url_map||""===t.adaptive_fmts||t.errorcode>0)throw new Error("Some config keys is bad");return e},function(e){throw X.debug("try 3",e),e})}).catch(function(){return i("www.youtube.com",t,e,"embedded",n).catch(function(e){throw X.debug("try 4",e),e})})}).catch(function(e){throw X.debug("_getSignature error",e),e}).catch(function(){return function(e){var t={};return(I.default.isChromeMobile||I.default.isFirefoxMobile)&&(t["User-Agent"]=z()()),o({url:"https://www.youtube.com/watch?"+$.stringify({v:e,spf:"navigate"}),headers:t}).then(function(e){var t=JSON.parse(e),o=null;if(t.some(function(e){if(e.data&&e.data.swfcfg)return o=e.data.swfcfg,!0}),!o)throw new Error("swfcfg is not found");if(!o.args||"object"!=typeof o.args)throw new Error("jsonList args is not found!");var i=n._decodeParams(o.args);if(!i.video_id)throw new Error("Config videoId is empty!");var a=k()(o.sts),s=o.assets&&o.assets.js;return r(i,s,a).then(function(e){return{config:i,signature:e}})})}(e).catch(function(e){throw X.debug("try 5",e),e})}).catch(function(){return function(e){var t={};return(I.default.isChromeMobile||I.default.isFirefoxMobile)&&(t["User-Agent"]=z()()),o({url:"https://www.youtube.com/watch?"+$.stringify({v:e}),headers:t}).then(function(e){var t=G()(e,/ytplayer\.config\s+=\s+/);if(!t.length)throw new Error("Video page script is not found!");t=t[0];var o=Q()(t,[/"video_id":/])[0];if(!o)throw new Error("Video page jsonList is not found!");if(!o.args||"object"!=typeof o.args)throw new Error("jsonList args is not found!");var i=n._decodeParams(o.args);if(!i.video_id)throw new Error("Config videoId is empty!");var a=k()(o.sts),s=o.assets&&o.assets.js;return r(i,s,a).then(function(e){return{config:i,signature:e}})})}(e).catch(function(e){throw X.debug("try 6",e),e})}).catch(function(){throw new Error("Get config error")}).then(function(e){var t=e.config,o=e.signature;return n._testSignature(t,o).then(function(){return{config:t,signature:o}})})},_getSignature:function(){var e=this,t=e._rp;if(e._lastSignature&&e._lastSignature.expire>k()(b()()/1e3))return A.a.resolve(e._lastSignature);var n="https://www.youtube.com/",o={};return(I.default.isChromeMobile||I.default.isFirefoxMobile)&&(o["User-Agent"]=z()(),n+="?app=desktop"),t({url:n,headers:o}).then(function(t){var n=null;try{n=e.getPlayerStsAndUrlFromHtml(t)}catch(o){n=e.getPlayerStsAndUrlFromAuthHtml(t)}return n}).then(function(t){return t.sts?t:e._ytHtml5SigDecipher.dechip(t.playerUrl)}).then(function(t){return t.expire=k()(b()()/1e3)+21600,e._lastSignature=t})},getPlayerStsAndUrlFromHtml:function(e){var t=G()(e,/window\.ytplayer\s*=\s*/);if(!t.length)throw new Error("Player config is not found");t=t[0];var n=Q()(t,[/"PLAYER_JS_URL":/]);if(!n.length)throw new Error("Player url is not found!");var o=(n=n[0]).PLAYER_JS_URL;if(!o)throw new Error("playerUrl is not found");return{sts:null,playerUrl:o}},getPlayerStsAndUrlFromAuthHtml:function(e){var t=G()(e,/ytplayer\.config\s+=\s+/);if(!t.length)throw new Error("Player config script is not found");t=t[0];var n=Q()(t,[/"assets":/,/"sts":\d+/]);if(!n.length)throw new Error("Player config json is not found!");var o=(n=n[0]).assets&&n.assets.js;if(!o)throw new Error("playerUrl is not found");return{sts:k()(n.sts),playerUrl:o}},_dataStrToObj:function(e){return this._decodeParams(V()(e,{params:!0}))},_decodeParams:function(e){var t=this;return["url_encoded_fmt_stream_map","adaptive_fmts","fmt_url_map"].forEach(function(n){e[n]&&(e[n]=e[n].split(",").map(function(e){return t._dataStrToObj(e)}))}),e},_testSignature:function(e,t){var n=this,o=n._rp,i=n._getChipedItem(e);return i?A.a.resolve().then(function(){return t.actionList?t:n._ytHtml5SigDecipher.dechip(t.playerUrl,t.sts).then(function(e){return t.sts=e.sts,t.actionList=e.actionList,t})}).then(function(e){var t,r=n._ytHtml5SigDecipher.applyActions(e.actionList,i.s);return t=i.getUrl?i.getUrl(r):i.url+"&signature="+r,o({method:"HEAD",url:t}).then(function(){return n._ytHtml5SigDecipher.saveSignature(e)},function(e){if(/403/.test(e.message))throw e})}):A.a.resolve()},_getChipedItem:function(e){var t=null;["url_encoded_fmt_stream_map","adaptive_fmts","fmt_url_map"].some(function(n){var o=e[n];return!!o&&o.some(function(e){if(e.s&&e.url)return t=e,!0})});var n=e.dashmpd;if(!t&&n){var o=this._dashMpdSigR.exec(n);o&&(t={s:o[2],url:n.replace(o[1],""),getUrl:function(e,t,n){return e.replace(t[1],"/signature/"+n)}.bind(null,n,o)})}return t},readFmt:function(e,t,n,o){var i=this,r=e.meta;t.forEach(function(t){if(t.stream)r.hasStream=1;else{var a=t.url;if(a){/([?&])s(ig(nature)?)?=/i.test(a)||(t.sig?a+="&signature="+t.sig:t.signature?a+="&signature="+t.signature:t.s&&(a+="&signature="+i._ytHtml5SigDecipher.applyActions(n.actionList,t.s))),a=a.replace(/([?&])sig=/i,"$1signature=").replace(/\\u0026/gi,"&");var s=t.itag;if(!s){var l=/(?:[?&])itag=(\d+)/i.exec(a);l&&(s=l[1])}if(s){/[?&]itag=/i.test(a)||(a+="&itag="+s),a=i._addRateByPass(a);var u=r[s];if(u||(u=r[s]={}),t.fps&&(u.fps=t.fps),t.size&&/^\d+x\d+$/.test(t.size)){var d=t.size.split("x");u.quality=te.getDashQuality(d[0],d[1])}if(t.bitrate&&(u.bitrate=k()(t.bitrate)),t.type){u.type=t.type;var c=t.type.match(/codecs="([^"]+)"/);c&&(u.codecs=c[1])}t.projection_type&&(u.projectionType=k()(t.projection_type)),e[s]||(e[s]=a+o)}}}})},onGetConfig:function(e,t,n,o,i){var r=this,a={meta:{}},s="",l=null,u="",d=null;return A.a.resolve().then(function(){u=o.length_seconds||"";var e="";(s=o.title||"")&&(s=s.replace(/\+/g," "),e="&title="+encodeURIComponent(Z.a.modify(s)));var t=o.fmt_url_map||o.url_encoded_fmt_stream_map||[],n=o.adaptive_fmts||[];(o.livestream||o.live_playback)&&(a.meta.hasStream=1),t&&r.readFmt(a,t,i,e),n&&r.readFmt(a,n,i,e),(d=o.dashmpd||"")&&-1!==d.indexOf("yt_live_broadcast")&&(d=null)}).then(function(){var o=A.a.resolve();return t&&(o=o.then(function(){return new A.a(function(t){r.getYoutubeSubtitles({extVideoId:e},function(e){l=e||null,t()})}).catch(function(e){X.error("Get subtitles error",e)})})),!n&&d&&(o=o.then(function(){var e=d,t=r._dashMpdSigR.exec(d);if(t){var n=r._ytHtml5SigDecipher.applyActions(i.actionList,t[2]);e=d.replace(t[1],"/signature/"+n)}return e=e.replace("/sig/","/signature/"),r.getYouTubeDashLinks(a,e).catch(function(e){X.error("Get dash error",e)})})),o}).then(function(){var e=x()(a).length;return a.meta&&!a.meta.hasStream&&e--,e||(a=null),{links:a,title:s,subtitles:l,duration:u}})},addUmmyLinks:function(e,t){if(!(!e||e.meta&&e.meta.hasStream)&&ee.preferences.showUmmyItem){var n=e.meta;n||(n=e.meta={}),n.videoId=t,e.ummy="ummy://www.youtube.com/watch?v="+t,e.ummyAudio="ummy://www.youtube.com/watch?v="+t+"&sf_type=audio"}},checkYoutubeLinks:function(e,t){for(var n=["18","34","35"],o="",i=0;i<n.length;i++)if(e[n[i]]){o=e[n[i]];break}o?P()({type:"HEAD",url:o},function(e,n){t(o,!e)}):t()},convertVtt2Srt:function(e,t){P()({url:e.url},function(n,o,i){if(n||!i)return console.error("Request error!",n),t();var r=/(\d{2}:\d{2}:\d{2})\.(\d{3})/g,a=/^\d{2}:\d{2}:\d{2}\.\d{3}/,s=i.split("\n\n");a.test(s[0])||s.shift(),a.test(s[s.length-1])||s.pop();var l=!1,u=s.filter(function(e){var t=a.test(e);return t||(l=!0),t}).map(function(e,t){return t+1+"\n"+e.replace(r,"$1,$2")});if(u=u.join("\n\n"),l)return t();e.srt=u,e.preprocess="srt2url",t()})},getYoutubeSubtitles:function(e,t){var n=this,o=e.extVideoId,i="http://video.google.com/timedtext";P()({url:i+"?hl="+I.default.i18n.getMessage("lang")+"&v="+o+"&type=list&tlangs=1",xml:!0},function(e,r,a){if(e||!a)return t();for(var s,l,u=a.querySelectorAll("track"),d=a.querySelectorAll("target"),c=[],f={},p={},m=void 0,h=0;g=u[h];h++)l={lang:s=g.getAttribute("lang_code"),v:o,fmt:"vtt",name:g.getAttribute("name")||void 0},f[s]={lang:g.getAttribute("lang_translated"),langCode:s,url:i+"?"+$.stringify(l),name:l.name},c.push(f[s]),!m&&g.getAttribute("cantran")&&(m=l);if(m)for(h=0;g=d[h];h++)s=g.getAttribute("lang_code"),l={lang:m.lang,v:o,tlang:s,fmt:"vtt",name:m.name},p[s]={lang:g.getAttribute("lang_translated"),langCode:s,url:i+"?"+$.stringify(l),isAuto:!0};0===(s=navigator.language.toLowerCase()).indexOf("zh-hant")?s="zh-Hant":0===s.indexOf("zh-hans")&&(s="zh-Hans");var g,v=[s];for("uk"===v[0]&&v.push("ru"),h=0;g=v[h];h++)!f[g]&&p[g]&&c.push(p[g]);var b=0,y=0,k=function(){if(b===++y)return t(c)};b++,c.forEach(function(e){b++,n.convertVtt2Srt(e,k)}),k()})},getYouTubeDashLinks:function(e,t){var n=this,o=n._rp,i={};return(I.default.isChromeMobile||I.default.isFirefoxMobile)&&(i["User-Agent"]=z()()),o({url:t,headers:i,xml:!0}).then(function(t){n.parseDash(t,e)})},getDashQuality:function(e,t){var n,o={144:144,240:240,360:360,480:480,720:720,1080:1080,1440:1440,"4K":2160,"5K":2880,"8K":4320},i=Math.max(e,t);for(var r in e=Math.min(e,t),o){var a=o[r];if(!(i>=Math.floor(16*a/9)||e>=a))return n;n=r}return n},parseDash:function(e,t){for(var n,o=e.querySelectorAll("Representation"),i=t.meta=t.meta||{},r=0;n=o[r];r++){var a=n.querySelector("BaseURL"),s=a.textContent;if(s){var l=a.parentNode.querySelector("SegmentURL"),u=l&&l.getAttribute("media");if(!u||0!==u.indexOf("sq/")){var d=n.getAttribute("id"),c=i[d];c||(c=i[d]={}),s=this._addRateByPass(s);var f=n.getAttribute("frameRate");f&&(c.fps=f);var p=n.getAttribute("width"),m=n.getAttribute("height");p&&m&&(c.quality=te.getDashQuality(p,m));var h=n.getAttribute("codecs");if(h){c.codecs=h;var g=s.match(/mime=([^&]+)/);(g=g&&g[1])&&(c.type=g)}t[d]||(t[d]=s)}}}},getYoutubeIdListFromPlaylist:function(e,t){return te.getIdListFromList(e.baseUrl||"https://www.youtube.com",e.listId,t),!0},getIdListFromList:(o=function(e,t,n,i){n||(n=[]),P()({url:e+t,json:!0},function(t,a,s){if(t||!s)return i(n);n.push(s.content_html);var l=r(s.load_more_widget_html);if(void 0===l)return i(n);o(e,l,n,i)})},r=function(e){if(e){var t=e.match(/data-uix-load-more-href="([^"]+)"/);return t&&(t=t[1]),t||void 0}},s=function(e,t,n){for(var o=function(e){var t=e.match(/<h1[^>]+>([^<]+)<\/h1>/);if(t)return t[1].replace(/\r?\n/g," ").trim()}(t[0]),i={},r=[],a=/href="\/watch\?([^"]+)"/g,s=0,l=0,u=t.length;l<u;l++)t[l].replace(a,function(t,n){var o=V()(n,{params:!0,sep:"&amp;"});o.list===e&&(o.index=k()(o.index),i[o.index]=o.v,o.index>s&&(s=o.index))});for(l=0;l<=s;l++)void 0!==i[l]&&-1===r.indexOf(i[l])&&r.push(i[l]);n({idList:r,title:o})},l=function(e){var t=null,n=e.match(/"nextContinuationData":({[^}]+})/);if(n)try{var o=JSON.parse(n[1]);t="/browse_ajax?"+$.stringify({ctoken:o.continuation,itct:o.clickTrackingParams})}catch(e){X.debug("getNewNextPageUrl error",e)}return t},u=function(e,t){var n=function(e){a()(e)&&e.forEach(function(e){var n=e.playlistVideoRenderer,o=n&&n.videoId;o&&t.push(o)})},o=e.indexOf('{"playlistVideoListRenderer":{');-1!==o?(e=e.substr(o),Q()(e).forEach(function(e){var t=e.playlistVideoListRenderer,o=t&&t.contents;n(o)})):-1!==(o=e.indexOf('{"playlistVideoListContinuation":{'))&&(e=e.substr(o),Q()(e).forEach(function(e){var t=e.playlistVideoListContinuation,o=t&&t.contents;n(o)}))},d=function(e,t,n,o,i){P()({url:e+t,headers:n,json:!0},function(t,r,a){if(t)return X.error("YT next page request error!",t),i();var s=g()(a),c=l(s);u(s,o),c?d(e,c,n,o,i):i()})},function(e,t,n){P()({url:e+"/playlist?list="+t},function(i,a,c){if(i)return n();var f=null;if(/"playlistVideoListRenderer"/.test(c)){var p=function(e){var t={},n=null,o=/ytcfg\.set\(({.+)/.exec(c);return o&&Y()(o[1]).some(function(e){if(e.INNERTUBE_CONTEXT_CLIENT_NAME)return n=e,!0}),n&&(t["x-youtube-client-name"]=n.INNERTUBE_CONTEXT_CLIENT_NAME,t["x-youtube-client-version"]=n.INNERTUBE_CONTEXT_CLIENT_VERSION,n.ID_TOKEN&&(t["x-youtube-identity-token"]=n.ID_TOKEN)),t}(),m=function(e){var t="unknown",n=null,o=c.match(/"playlistSidebarPrimaryInfoRenderer":({.+)/);if(o&&Y()(o[1]).some(function(e){if(e.title&&e.title.runs)return n=e,!0}),n)try{n.title.runs.some(function(e){if(e.text)return t=e.text})}catch(e){X.debug("getNewTitle error",e)}return t}(0),h=[];u(c,h),(f=l(c))?d(e,f,p,h,function(){n({idList:h,title:m})}):n({idList:h,title:m})}else(f=r(c))?o(e,f,[c],function(e){s(t,e,n)}):s(t,[c],n)})}),getYoutubeLinksFromConfig:function(e,t){var n=this;return this._prepareLastSts().then(function(){var o=e.config;if(!(o&&o.args&&o.args.video_id===e.extVideoId&&o.assets&&o.assets.js&&(o.args.url_encoded_fmt_stream_map||o.args.adaptive_fmts||o.args.fmt_url_map)))throw new Error("jsonList args is not found!");var i=n._decodeParams(o.args,1),r=k()(o.sts),a=o.assets&&o.assets.js;return A.a.resolve().then(function(){if(n._getChipedItem(i)){if(!a)throw new Error("Player url is not found!");return n._ytHtml5SigDecipher.dechip(a,r)}return null}).then(function(e){return n._testSignature(i,e).then(function(){return{config:i,signature:e}})}).then(function(o){var i=o.config,r=o.signature;return n.onGetConfig(e.extVideoId,e.checkSubtitles,e.noDash,i,r).then(function(n){var o=n.links,i=n.title;if(o){if(o[136]&&!o[22])throw new Error("22 itag is not found");te.addUmmyLinks(o,e.extVideoId)}t({links:o,title:i,isQuick:1})})})}).catch(function(n){X.debug("Skip getYoutubeLinksFromConfig",n),te.getYoutubeLinks(e,t)}),!0},_addRateByPass:function(e){return/ratebypass/.test(e)||(/\?/.test(e)?e+="&ratebypass=yes":(/\/$/.test(e)||(e+="/"),e+="ratebypass/yes/")),e},_ytHtml5SigDecipher:{applyActions:function(e,t){for(var n,o={slice:function(e,t){e.slice(t)},splice:function(e,t){e.splice(0,t)},reverse:function(e){e.reverse()},swap:function(e,t){var n=e[0];e[0]=e[t%e.length],e[t]=n}},i=t.split(""),r=0;n=e[r];r++)o[n[0]](i,n[1]);return i.join("")},readObfFunc:function(e,t){var n=e.match(/\[(\w+)\]/g);if(n){for(var o,i=0;o=n[i];i++){var r=t.match(new RegExp("[, ]{1}"+o.slice(1,-1)+'="(\\w+)"'));r&&(e=e.replace(o,"."+r[1]))}var a,s=e.split(";"),l=[];for(i=0;a=s[i];i++)if(-1===a.indexOf(".split(")&&-1===a.indexOf(".join("))if(-1===a.indexOf("reverse"))if(u=a.match(/splice\((\d+)\)/)){if(u=k()(u[1]),isNaN(u))return;l.push(["splice",u])}else if(u=a.match(/slice\((\d+)\)/)){if(u=k()(u[1]),isNaN(u))return;l.push(["slice",u])}else{var u;if(u=a.match(/\[(\d+)%\w+\.length/)){if(u=k()(u[1]),isNaN(u))return;l.push(["swap",u])}}else l.push(["reverse",null]);return l}},getNewChip:function(e){var t=function(t){var n=/([\w$]+)(?:\.([\w$]+)|\[("[\w$]+")\])\([\w$]+,?([\w$]+)?\)/.exec(t);if(!n)throw new Error("readAction");var o=n[1],i=n[2]||n[3],r=n[4],a=function(t,n){t=t.replace(/\$/g,"\\$");var o=new RegExp("(?:var |,)?"+t+"={"),i=e.search(o);if(-1===i)throw new Error("Place is not found");var r=e.substr(i,300);n=n.replace(/\$/g,"\\$");var a=new RegExp(n+":function\\(([$\\w,]+)\\){([^}]+)}"),s=r.match(a);if(!s)throw new Error("Place function is not found!");return{args:s[1],statement:s[2]}}(o,i);if(/\.reverse/.test(a.statement))return["reverse",null];if(!/^[\d]+$/.test(r))throw new Error("Arg is not number");return/\.splice/.test(a.statement)?["splice",k()(r)]:/\.slice/.test(a.statement)?["slice",k()(r)]:["swap",k()(r)]},n=/,sts:(\d+)/.exec(e);if(!n)throw new Error("Sts is not found");var o=k()(n[1]),i=/[$_a-zA-Z0-9]+\.set\((?:[$_a-zA-Z0-9]+\.[$_a-zA-Z0-9]+\|\|)?"signature",([$_a-zA-Z0-9]+)\(/.exec(e);if(i?X.debug("new chip"):(i=/(?:function ([$_a-zA-Z0-9]+)|(?:var |,|;\n)([$_a-zA-Z0-9]+)=function)\(([\w$]+)\){\3=\3\.split\([^}]+;return \3\.join\([^}]+}[;,]/.exec(e))&&(X.debug("alt chip"),i=[i[0],i[1]||i[2]]),!i)throw new Error("Decode function name is not found!");var r=function(n){n=n.replace(/\$/g,"\\$");var o=new RegExp("(?:function "+n+"|(?:var |,|;\n)"+n+"=function)\\(([\\w$]+)\\){([^}]*)}[;,]").exec(e);if(!o)throw new Error("findConvertFn");return function(e,n){e=e.replace(/\$/g,"\\$");var o=new RegExp('[\\w$]+(?:\\.[\\w$]+|\\["[\\w$]+"\\])\\('+e+"[^)]*\\)","g"),i=n.match(o);if(!i)throw new Error("readScope");return i.map(function(e){return t(e)})}(o[1],o[2])}(i[1]);if(!r.length)throw new Error("actionList is empty");return{actionList:r,sts:o}},getChip:function(e){var t=e.match(/,sts:(\d+)/);t=t&&t[1];var n=[],o=e.match(/\.sig\|\|([$_a-zA-Z0-9]+)\(/);if(!o)return this.getNewChip(e);X.debug("old chip"),o=(o=o[1]).replace(/\$/g,"\\$");var i=e.match(new RegExp("((?:function "+o+"|(?:var |,|;\n)"+o+"=function)\\(([\\w$]+)\\){[^}]*})[;,]"));if(!i)throw new Error("Func is not found!");var r=i[2];i=i[1];var a=new RegExp("[\\w$]+\\.[\\w$]+\\("+r+"[^)]*\\)","g"),s=i.match(a);if(!s){if((n=this.readObfFunc(i,e))&&n.length>0)return{actionList:n,sts:t};throw new Error("readObfFunc actions is not found")}for(var l,u="",d=[],c=0;l=s[c];c++){var f=l.match(/([\w$]+)\.([\w$]+)\([\w$]+,?([\w$]+)?\)/);f&&(u=f[1],d.push({name:f[2],arg:k()(f[3])}))}var p=e.indexOf("var "+u+"={");-1===p&&(p=e.indexOf(","+u+"={")),-1===p&&(p=e.indexOf(u+"={"));var m=e.substr(p,300);for(c=0;l=d[c];c++){r=l.name,a=new RegExp(r+":(function\\([$\\w,]+\\){[^}]+})");var h=m.match(a);if(!h)throw new Error("Match fn error");if(-1!==(h=h[1]).indexOf("splice")){if(isNaN(l.arg))throw new Error("Match splice error");n.push(["splice",l.arg])}else if(-1!==h.indexOf("slice")){if(isNaN(l.arg))throw new Error("Match slice error");n.push(["slice",l.arg])}else if(-1!==h.indexOf("reverse"))l.arg=null,n.push(["reverse",l.arg]);else{if(isNaN(l.arg))throw new Error("Match reverse error");n.push(["swap",l.arg])}}return{actionList:n,sts:t}},getPlayer:function(e){"//"===e.substr(0,2)?e="https:"+e:"/"===e[0]&&(e="https://www.youtube.com"+e);var t={};return(I.default.isChromeMobile||I.default.isFirefoxMobile)&&(t["User-Agent"]=z()()),(0,te._rp)({url:e,headers:t})},playerUrlSts:{},storage:{},saveSignature:function(e){var t=this;t.playerUrlSts[e.playerUrl]||(t.playerUrlSts[e.playerUrl]=e.sts);var n=t.storage[e.sts];if(!n||g()(n)!==g()(e.actionList))return x()(t.storage).sort(function(e,t){return e<t?1:-1}).slice(3).forEach(function(e){delete t.storage[e]}),e.sts&&e.actionList&&(t.storage[e.sts]=e.actionList),new A.a(function(e){I.default.storage.set({ytDechipList:t.storage},e)})},isTrackError:{},dechip:function(e,t){var n=this;t||(t=n.playerUrlSts[e]);var o=n.storage[t];return o?A.a.resolve({sts:t,actionList:o,playerUrl:e}):n.getPlayer(e).then(function(e){return n.getChip(e)}).then(function(t){return{sts:t.sts,actionList:t.actionList,playerUrl:e}}).catch(function(o){var i,r=/\/(?:[^\/]+)?player-([^\/]+)\//.exec(e);throw i=r?r[1]:"unknownPlayerName",n.isTrackError[i]||(n.isTrackError[i]=1,i&&t&&ee.track({t:"event",ec:"youtube",ea:"pError",el:t+" "+i})),o})}},_prepareLastSts:function(){var e=this;return e._stsIsLoaded?A.a.resolve():(e._stsIsLoaded=!0,new A.a(function(e){I.default.storage.get({ytDechipList:{}},e)}).then(function(t){var n=t.ytDechipList||{};e._ytHtml5SigDecipher.storage=n;var o=e.lastSts,i=o[0],r=o[1];n[i]=r;var a=x()(n).sort(function(e,t){return e<t?1:-1}).shift(),s=n[a];i<a&&(e.lastSts[0]=a,e.lastSts[1]=s)}))},_rp:function(e){return new A.a(function(t,n){P()(e,function(e,o,i){e&&"string"==typeof e&&(e=new Error(e)),e?n(e):t(i)})})}},ne=n(24),oe=n.n(ne),ie=n(25),re=n.n(ie),ae=n(26),se=n.n(ae),le=n(27),ue=n.n(le),de=n(28),ce=n.n(de),fe=n(29),pe=n.n(fe),me=n(9),he=n.n(me),ge=n(30),ve=n.n(ge),be=n(31),ye=n.n(be),ke=n(5),we=n.n(ke),xe=n(4),Se=n.n(xe),Ae=n(32),Ce=n.n(Ae),Le=n(33),Me=n.n(Le),Ie=n(17),Oe=n.n(Ie),Pe=n(7),Te=n.n(Pe),Fe=n(18),Ee=n.n(Fe),Ne=n(12),De=n(13),Be=F()("background"),Re={};Re.isReady=!1,Re.readyHandler=null,Re.readyPromise=new A.a(function(e){return Re.readyHandler=e}).then(function(){return Re.isReady=!0}),Re.utils=function(e){return N=e,D}(Re),Re.modules={},Re.modules.vimeo=R()(Re),Re.modules.dailymotion=new q.a(Re),Re.modules.youtube=function(e){return ee=e,te}(Re),Re.modules.soundcloud=oe()(Re),Re.modules.vkontakte=re()(Re),Re.modules.odnoklassniki=se()(Re),Re.modules.facebook=ue()(Re),Re.modules.mail_ru=ce()(Re),I.default.remote.getPreferences=function(){return Re.readyPromise.then(function(){return setTimeout(function(){Re.userTrack(),Re.sendInGa.pull()},1),Re.preferences})},Re.varCache={helperName:"",currentVersion:"8.8.2",isFirstrun:!1,isUpgrade:!1,uuid:"",aiid:""},Re.extra={},Re.defaultPreferences={version:"0",button:1,lmMediaHosting:1,moduleYoutube:1,moduleDailymotion:1,moduleVimeo:1,moduleFacebook:1,moduleSoundcloud:1,moduleVkontakte:1,moduleOdnoklassniki:1,moduleMailru:1,moduleInstagram:1,moduleRutube:1,moduleShowDownloadInfo:1,ytHideFLV:0,ytHideMP4:0,ytHideWebM:1,ytHide3GP:1,ytHide3D:1,ytHideMP4NoAudio:1,ytHideAudio_MP4:1,vkShowBitrate:0,showUmmyInfo:1,showUmmyBtn:1,gmNativeDownload:0,advPreShow:0,aviaBarEnabled:1,statEnabled:1,showUmmyLanding:0,onceShowYtTutorial:0,onceShowYtTooltip:0,saveAsDialog:0},Re.preferences={sfHelperName:"",country:"",hasAviaBar:void 0,downloads:void 0,ummyDetected:void 0,showUmmyItem:void 0},Re.preferenceMap=Oe.a,Re.loader=(h=function(){f.slice(0).forEach(function(e){if(e.nameList.every(function(e){return-1!==p.indexOf(e)})){var t=f.indexOf(e);if(-1!==t){f.splice(t,1);try{e.fn()}catch(e){Be.error("Run error!",e)}}}})},{waitList:f=[],readyList:p=[],ready:function(e){p.push(e),h()},when:function(e,t){a()(e)||(e=[e]),f.push({nameList:e,fn:t}),h()}}),Re.events=(y=[].slice,w=function(e,t){var n=v[e];v[e]||(n=v[e]=[]),-1===n.indexOf(t)&&n.push(t)},{listeners:v={},emit:function(e,t){var n=y.call(arguments).slice(1);(v[e]||[]).slice(0).forEach(function(e){try{e.apply(null,n)}catch(e){Be.error("Emit error!",e)}})},on:w,off:S=function(e,t){var n=v[e]||[],o=n.indexOf(t);-1!==o&&n.splice(o,1)},once:function(e,t){w(e,function(){S(e,t),t.apply(null,arguments)})}}),Re.getHelperName=function(){var e=function(){var e="",t=navigator.userAgent;return-1!==t.indexOf("YaBrowser/")?e="yabrowser":-1!==t.indexOf("Maxthon/")?e="maxthon":-1!==t.indexOf("OPR/")?e="opera-chromium":-1!==t.indexOf("Opera/")?e="opera":-1!==t.indexOf("Firefox/")?e="firefox":-1!==t.indexOf("Chrome/")?e="chrome":-1!==t.indexOf("Safari/")&&(e="safari"),e},t="unknown";return I.default.isChrome?(t=e()||"chrome",/sandbox.html#bg/.test(location.href)&&(t="chameleon"),Re.chromeNoStore&&(t+="-sf")):I.default.isFirefox?(t="firefox",I.default.isFirefoxMobile&&(t+="-mobile"),Re.firefoxNoStore&&(t+="-sf")):I.default.isSafari?t="safari":I.default.isGM?t="userjs-"+(t=e()||t):I.default.isEdge&&(t="edge"),t},Re.getSfHelperName=function(){var e=Re.varCache.helperName;return/^firefox/.test(e)&&(e=e.replace("firefox","ff")),e},Re.dblTrackCheck=function(e){if(!I.default.isGM)return e();he()()||I.default.storage.get({dblTrack:null},function(t){var n=b()();if(t.dblTrack&&t.dblTrack.time>n)   ;else{var o=Re.generateUuid();I.default.storage.set({dblTrack:{uuid:o,time:n+6e4}},function(){setTimeout(function(){I.default.storage.get({dblTrack:null},function(t){t.dblTrack&&t.dblTrack.uuid===o&&e()})},5e3)})}})},Re.getUuid=function(){var e=Re.varCache;if(e.uuid)return e.uuid;var t=Re.generateUuid();return e.uuid=t,I.default.storage.set({uuid:t}),t},Re.generateUuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},Re.getNavLanguage=function(){var e="",t=navigator.language;return/^\w{2}-|^\w{2}$/.test(t)&&(e=t),e},Re.gmShowButton=function(e){e?I.default.bundle.showButton():I.default.bundle.hideButton()},Re.tabListener=function(){var e=!1,t=Re.preferences,n=Te()([{matches:/^(?:https?|file|ftp):\/\/[^\\\/]*\.vimeo\.com\/.*$|^(?:https?|file|ftp):\/\/vimeo\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.youtube\.com\/.*$|^(?:https?|file|ftp):\/\/youtube\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.soundcloud\.com\/.*$|^(?:https?|file|ftp):\/\/soundcloud\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.vk\.com\/.*$|^(?:https?|file|ftp):\/\/vk\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.vkontakte\.ru\/.*$|^(?:https?|file|ftp):\/\/vkontakte\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.ok\.ru\/.*$|^(?:https?|file|ftp):\/\/ok\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.odnoklassniki\.ru\/.*$|^(?:https?|file|ftp):\/\/odnoklassniki\.ru\/.*$|^(?:https?|file|ftp):\/\/my\.mail\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.facebook\.com\/.*$|^(?:https?|file|ftp):\/\/facebook\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.savefrom\.net\/.*$|^(?:https?|file|ftp):\/\/savefrom\.net\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.instagram\.com\/.*$|^(?:https?|file|ftp):\/\/instagram\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\\/]*\.rutube\.ru\/.*$|^(?:https?|file|ftp):\/\/rutube\.ru\/.*$/i},{matches:/^(?:https?|file|ftp):\/\/[^\\\/]*\/.*$/i,include_globs:/^[^:]*:\/\/google\.[^\\\/]*\/.*$|^[^:]*:\/\/[^\\\/]*\.google\.[^\\\/]*\/.*$|^[^:]*:\/\/dailymotion\.[^\\\/]*\/.*$|^[^:]*:\/\/[^\\\/]*\.dailymotion\.[^\\\/]*\/.*$/i}]),o={},i=function(){e=!1,Be.debug("tabListener",e)};return{extendJsList:o,enable:function(){I.default.isFirefoxMobile||e||(e=!0,Be.debug("tabListener",e))},disable:function(){I.default.isFirefoxMobile||i()},injectLmInActiveTab:function(){var e=["includes/commons.js","includes/link_modifier.js"];I.default.getActiveTab(function(t){t&&/^http/.test(t.url)&&!n(t.url)&&e.forEach(function(e){I.default.executeScript(t,{file:e})})})},openPage:function(r){e&&function(e,r){var a=n(r),s=[],l=t.lmMediaHosting;a||l&&(s.push("includes/commons.js"),s.push("includes/link_modifier.js"));var u=!0;for(var d in o){u=!1;var f=o[d];if(!a||f.noBlackList){var p=f.getScriptList(r)||[];s.push.apply(s,c(p))}}if(!l&&u)i();else if(s.length){var m=s.filter(function(e,t,n){return n.indexOf(e)===t});Be.debug("Inject",r,m),m.forEach(function(t){I.default.executeScript(e,{file:t})})}}(r.tab,r.url)}}}(),Re.getCountry=function(){var e=Re.preferences,t=function(e){return new A.a(function(t){return I.default.storage.set(e,t)})};return function(e){return new A.a(function(t){return I.default.storage.get(e,t)})}({countryExpiresAt:0}).then(function(n){if(Se()()>n.countryExpiresAt)return t({countryExpiresAt:Se()()+300}).then(function(){var t=e.sfHelperName+" "+Re.varCache.currentVersion;return we()({type:"POST",url:"http://sf-helper.com/geoip/country.php",data:{sig:t.length},headers:{"X-Helper":t}})}).then(function(n){var o=n.body.toLowerCase().trim();return Be.debug("set country",o),e.country=o,t({country:o,countryExpiresAt:Se()()+259200})})}).catch(function(e){Be("getCountry error",e)})},Re.loader.when("prepare",function(){var e=A.a.resolve();return Re.liteStorage.get("fromId",0)?e:I.default.isGM&&he()()?e:e.then(function(){return Re.liteStorage.isTimeout("fromIdTimeout")?Be.debug("Request fromId timeout"):(Re.liteStorage.setTimeout("fromIdTimeout",21600),we()({url:"http://savefrom.net/tools/get_vid.php"}).then(function(e){var t=e.body,n=-1;/^\d+$/.test(t)&&(n=k()(t)),Be.debug("fromId",n),Re.liteStorage.set("fromId",n)}).catch(function(e){return Be.error("Request fromId error!",e)}))}).catch(function(e){Be.error("Request fromId error",e)})}),Re.onOptionChange={button:function(e){I.default.isGM&&Re.gmShowButton(e)},lmMediaHosting:function(e){e&&Re.tabListener.enable()},gmNativeDownload:function(e){I.default.isGM&&(Re.preferences.downloads=!!e,I.default.sendMessageToActiveTab({action:"updatePreferences",preferences:Re.preferences}))}},Re.sendInGa=(L=!1,M=function(){if(!L&&C.length){L=!0;var e=b()(),t=C.slice(0,20),n=t.map(function(t){var n=t.time,o=JSON.parse(g()(t.params)),i=e-n;return i>=144e5&&(i=144e5-1e3*(C.length+1)),o.qt=i,De.stringify(o)});return P()({url:"https://www.google-analytics.com/batch?z="+e,type:"POST",contentType:"text/html",data:n.join("\n"),timeout:6e4},function(e){L=!1,e||(t.forEach(function(e){var t=e.details,n=C.indexOf(e);-1!==n&&C.splice(n,1);try{t.onSuccess&&t.onSuccess()}catch(e){Be.error("sendInGa","onSuccess",e)}}),M())})}},{stack:C=[],push:function(e,t){var n=!1;(t=t||{}).id&&(n=C.some(function(e){if(e.details.id===t.id)return!0})),n||(C.unshift({time:b()(),params:e,details:t}),C.splice(100),setTimeout(function(){M()},50))},pull:function(){C.length&&(Re.liteStorage.isTimeout("sendInGaTimeout")||(Re.liteStorage.setTimeout("sendInGaTimeout",3600),M()))}}),Re.actionList={getMenuDetails:function(e,t){return t({preferences:Re.preferences,version:Re.varCache.currentVersion,lastVersion:function(){var e="",t=Re.varCache.currentVersion,n=Re.liteStorage.get("lastVersion","");if(!t||!n)return e;try{Ce()(t,n)&&(e=n)}catch(e){Be.debug("isNewVersion",e)}return e}(),helperName:Re.varCache.helperName})},updateOption:function(e){var t=e.key,n=e.value,o=Re.preferences[t];Re.preferences[t]=n;var i={};i[t]=n,I.default.storage.set(i),Re.onOptionChange[t]&&Re.onOptionChange[t](n,o)},downloadFromCurrentPage:function(){I.default.getActiveTab(function(e){var t=e&&e.url||"",n=De.stringify({url:t,utm_source:Re.preferences.sfHelperName,utm_medium:"extensions",utm_campaign:"bookmarklet"});I.default.openTab("http://savefrom.net/?"+n,!0)})},openPoll:function(){if(-1!==["en","uk","ru"].indexOf(I.default.i18n.getMessage("lang"))){var e="http://"+I.default.i18n.getMessage("lang")+".savefrom.net/helper-form.php";I.default.getActiveTab(function(t){var n=t&&t.url||"",o=ye()(n)||"",i="?"+De.stringify({version:Re.varCache.currentVersion,helper:Re.preferences.sfHelperName,url:o});I.default.openTab(e+i,!0)})}},reportBug:function(){var e="http://savefrom.userecho.com/forum/20869-/";"ru"===I.default.i18n.getMessage("lang")&&(e="http://savefrom.userecho.com/forum/19523-/"),I.default.openTab(e)},viaMenu_updateLinks:function(){I.default.sendMessageToActiveTab({action:"updateLinks"})},viaMenu_downloadMP3Files:function(){I.default.sendMessageToActiveTab({action:"downloadMP3Files"})},viaMenu_downloadPlaylist:function(){I.default.sendMessageToActiveTab({action:"downloadPlaylist"})},viaMenu_downloadPhotos:function(){I.default.sendMessageToActiveTab({action:"downloadPhotos"})},viaMenu_changeState:function(e){if(Re.actionList.updateOption({key:e.prefKey,value:e.state}),e.state&&"lm"===e.moduleName&&e.needInclude)return Re.tabListener.injectLmInActiveTab();I.default.sendMessageToActiveTab({action:"changeState",moduleName:e.moduleName,state:e.state})},showOptions:function(){if(I.default.isGM)I.default.bundle.showOptions();else{var e="options.html";I.default.isSafari&&(e=safari.extension.baseURI+e),I.default.openTab(e,!0)}},getActiveTabModuleInfo:function(e,t){return I.default.sendMessageToActiveTab({action:"getModuleInfo",url:e.url},function(e){t(e)}),!0},getActiveTabUrl:function(e,t){return I.default.getActiveTab(function(e){var n=e&&e.url||"";return t(n)}),!0},getActiveTabInfo:function(e,t){var n=Re.preferences;return I.default.getActiveTab(function(e){var o=e&&e.url||"";if(0!==o.indexOf("http"))return t();var i={dailymotion:["*://*.dailymotion.*/*"],facebook:["*://*.facebook.com/*"],mailru:["*://my.mail.ru/*"],odnoklassniki:["*://*.ok.ru/*","*://*.odnoklassniki.ru/*"],savefrom:["*://*.savefrom.net/*"],soundcloud:["*://*.soundcloud.com/*"],vimeo:["*://*.vimeo.com/*"],vk:["*://*.vk.com/*","*://*.vkontakte.ru/*"],youtube:["*://*.youtube.com/*"],instagram:["*://*.instagram.com/*"],rutube:["*://*.rutube.ru/*"]},r="lm",a="lmMediaHosting",s=n.lmMediaHosting;for(var l in i){var u=i[l].map(function(e){return pe()(e)}).join("|");if((u=new RegExp(u)).test(o)){r=l,a=Re.preferenceMap[r],s=n[a];break}}return t({moduleName:r,prefKey:a,url:o,state:s})}),!0},userjsDetected:function(){if(!Re.liteStorage.get("userjsDetected",!1)){Re.liteStorage.set("userjsDetected",!0);var e=Re.getUuid();return P()({url:"https://www.google-analytics.com/collect",type:"POST",data:"v=1&tid=UA-7055055-1&cid="+e+"&t=pageview&dh=savefrom.net&dp=%2Fextension%2Fuserjs_installed.ext"})}},hideDownloadWarning:function(e,t){return void 0!==e.set?I.default.storage.set({hideDownloadWarning:e.set}):(I.default.storage.get({hideDownloadWarning:!1},function(e){t(e.hideDownloadWarning)}),!0)},track:function(e){Re.readyPromise.then(function(){delete e.action,Re.track(e)})},addToClipboard:function(e){if(I.default.isChrome||I.default.isFirefox){var t,n=e.text;document.body.appendChild(t=Me.a.create("textarea",{text:n})),t.select(),setTimeout(function(){document.execCommand("copy",!1,null),t.parentNode.removeChild(t)})}},setIconBadge:function(e){var t=String(e.text);(I.default.isChrome||I.default.isFirefox)&&chrome.browserAction&&chrome.browserAction.setBadgeText({text:t})},trackError:function(e){try{var t=Re.actionList.trackError;t.dDbl||(t.dDbl={});var n=e.desc;if(e.error){var o=e.error;n=n?n+" ":"",o instanceof Error?(n+=String(o.message||o)||"ERROR",o.stack&&(n+=" "+e.error.stack)):n+=o}var i=n.substr(0,150);if(t.dDbl[i])return;t.dDbl[i]=!0;var r={t:"exception",exd:i,tid:"UA-7055055-9"};Re.sendStatsInfo(r)}catch(e){}},openTab:function(e){I.default.openTab(e.url)}},Re.onMessage=function(e,t,n){if(e&&"object"==typeof e){if("openPage"!==e.action){var o=e.action,i=Re.actionList[o];if(i)return i.call(Re.actionList,e,n);for(var r in Re.modules){var a=Re.modules[r];if(i=a[o])return i.call(a,e,n)}return(i=Re.utils[o])?i.call(Re.utils,e,n):void 0}Re.isReady?Re.tabListener.openPage(t):this.readyPromise.then(function(){Re.tabListener.openPage(t)})}else Be.debug("Skip message",e)},Re.loadSettings=function(e){var t=Re.varCache,n=Re.preferences,o=Re.defaultPreferences;I.default.isGM&&(o.button=0,o.showUmmyBtn=0);var i={ummyDetected:function(e){e||0===e||(e=n.showUmmyInfo?0:1,I.default.storage.set({ummyDetected:e})),n.ummyDetected=e}},r=x()(o),a=x()(i);return I.default.storage.get(r.concat(a),function(s){if(r.forEach(function(e){var t=o[e],i=s[e];void 0===i&&(i=t),n[e]=i}),a.forEach(function(e){i[e](s[e])}),t.isFirstrun){var l={showUmmyLanding:n.showUmmyLanding=1,onceShowYtTooltip:n.onceShowYtTooltip=1,onceShowYtTutorial:n.onceShowYtTutorial=1};I.default.storage.set(l)}if(n.onceShowYtTutorial&&!Re.hasMenuTutorial&&(n.onceShowYtTutorial=0),I.default.isChrome&&(chrome.downloads&&chrome.downloads.download||chrome.permissions&&chrome.permissions.request)&&(n.downloads=!0),I.default.isGM){n.downloads=!1;var u="undefined"!=typeof GM_download,d=!1;u&&(d="undefined"!=typeof GM_info&&"browser"===GM_info.downloadMode),u&&(n.gmNativeDownload||d)&&(n.gmNativeDownload=1,n.downloads=!0)}return I.default.isFirefox&&(n.downloads=!0),n.downloads&&(n.moduleShowDownloadInfo=0),e()})},Re.prepare=function(e){var t=Re.varCache;Re.loader.when("loadSettings",function(){t.isUpgrade=!t.isFirstrun&&Re.preferences.version!==t.currentVersion,e()}),Re.getCountry(),Re.loadSettings(function(){Re.loader.ready("loadSettings")})},Re.initMessageListener=function(){Re.initMessageListener.fired||(Re.initMessageListener.fired=!0,I.default.onMessage.addListener(function(e,t,n){return Re.onMessage(e,t,n)}))},Re.init=function(){Re.initMessageListener();var e=Re.varCache,t=Re.preferences;return He().then(function(){return I.default.storage.get(m({uuid:"",version:"",country:"",aiid:"",lc:null},Re.liteStorage.getStorageKey(),{}),function(n){return Re.liteStorage.setStorage(n),null===n.lc&&(n.lc=Math.random()<.05,I.default.storage.set({lc:n.lc})),t.lc=n.lc,"string"==typeof n.uuid&&36===n.uuid.length&&(e.uuid=n.uuid),"string"==typeof n.aiid&&(e.aiid=n.aiid.replace(/aiid/,"").replace(/#/g,"")),n.version||(e.isFirstrun=!0),n.country&&(t.country=n.country),e.helperName=Re.getHelperName(),t.showUmmyItem=/^Win|^Mac/.test(navigator.platform)?1:0,t.sfHelperName=Re.getSfHelperName(),Re.loader.ready("init"),Re.loader.when("prepare",function(){Re.checkVersion()}),Re.events.on("sendScreenView",function(){if(t.lc){var e={t:"screenview",cd:"init",cd4:"true",tid:"UA-67738130-7"};Re.wrapBaseStatInfo(e),Re.quickTrack(e),Ee()([{user_id:Re.varCache.uuid,event_type:"init",user_properties:{Cohort:"Clear"}}])}}),void Re.prepare(function(){Re.loader.ready("prepare"),Re.readyHandler()})})})};var _e,qe,je,ze,Ue,Ve,He=function(){return A.a.resolve().then(function(){if(I.default.isChrome)return new A.a(function(e){return I.default.storage.get({migrated3:!1},function(t){return e(t.migrated3)})}).then(function(e){if(!e){var t={migrated3:!0};return x()(localStorage).forEach(function(e){var n=localStorage.getItem(e);try{/^{(?:"w":.+|)}$/.test(n)&&(t[e]=JSON.parse(n).w)}catch(t){Be.error("Parse value error",e,t)}}),new A.a(function(e){return I.default.storage.set(t,e)})}}).catch(function(e){Be.error("migrate error",e),I.default.storage.set({migrated3:!0})})})};Re.userTrack=function(){if(!Re.liteStorage.isTimeout("trackTimeout")){Re.liteStorage.setTimeout("trackTimeout",300);var e={t:"screenview",cd:"init",tid:"UA-7055055-5"};return Re.dblTrackCheck(function(){Re.track(e,{id:"init",onSuccess:function(){Re.liteStorage.setTimeout("trackTimeout",43200),Re.events.emit("sendScreenView"),Object(Ne.a)({country:null}).then(function(e){if(null===e.country)return new A.a(function(e){I.default.storage.onChanged.addListener(function t(n,o){"local"===o&&n.country&&(I.default.storage.onChanged.removeListener(t),e())})})}).then(function(){if("de"===Re.preferences.country){var t=i()({},e,{tid:"UA-119781451-36"});Re.quickTrack(t)}})}})})}},Re.trackValidate=function(e){var t=function(e){return!(!e&&0!==e&&!1!==e)&&-1===["object","function"].indexOf(typeof e)};if(!e.tid)return!1;if(!e.cid)return!1;if(1!==k()(e.v))return!1;if(!t(e.an))return!1;if(!e.t)return!1;if("event"===e.t){if(!t(e.ec)||!t(e.ea)||!t(e.el))return!1}else if("screenview"===e.t){if(!t(e.cd))return!1}else if(!("social"!==e.t||t(e.st)&&t(e.sa)&&t(e.sn)))return!1;return!0},Re.track=function(e,t){return Re.sendStatsInfo(e,t)},Re.quickTrack=function(e,t){Re.trackValidate(e)?(Be.debug("Track",e),Re.sendInGa.push(e,t)):Be.error("Invalid track params!",e)},Re.wrapBaseStatInfo=function(e){var t=Re.varCache,n={v:1,ul:navigator.language,tid:"UA-67738130-2",cid:Re.getUuid(),an:"helper",aid:t.helperName,av:t.currentVersion};for(var o in n)e.hasOwnProperty(o)||(e[o]=n[o]);return e},Re.sendStatsInfo=function(e,t){var n=Re.preferences;Re.wrapBaseStatInfo(e),Re.varCache.aiid&&(e.aiid=Re.varCache.aiid),e.hasOwnProperty("cd3")||(e.cd3=I.default.i18n.getMessage("lang"));var o=Re.liteStorage.get("fromId",0);o>0&&(e.cd2=o),n.hasSovetnik&&(e.cd4=n.sovetnikEnabled?"true":"false"),e.cd6=n.ummyDetected?"true":n.showUmmyItem?"false":"none",n.hasAviaBar&&(e.cd7=n.aviaBarEnabled?"true":"false"),Re.quickTrack(e,t)},Re.checkVersion=function(){var e=Re.varCache,t=!1;e.isFirstrun?(Re.loader.ready("firstrun"),t=!0):e.isUpgrade&&(Re.loader.ready("upgrade"),t=!0),t&&Re.actionList.updateOption({key:"version",value:e.currentVersion})},Re.loader.when("firstrun",function(){if(!I.default.isGM){var e="http://savefrom.net/user.php?helper="+Re.preferences.sfHelperName+";firstrun";Re.utils.checkUrlsOfOpenTabs([/https?:\/\/([\w\-]+\.)?savefrom\.net\/(update-helper|userjs-setup)\.php/i],function(t){t.length>0||Re.utils.checkUrlsOfOpenTabs([/https?:\/\/legal\.yandex\.(ru|com\.tr)\//i],function(t){var n=0===t.length;return I.default.openTab(e,n)})})}}),Re.loader.when("prepare",function(){var e=Re.preferences;e.onceShowYtTutorial&&Re.actionList.setIconBadge({text:"?"}),e.showUmmyLanding&&I.default.storage.get({onceUmmyLandingHide:0},function(t){t.onceUmmyLandingHide>2&&I.default.storage.set({showUmmyLanding:e.showUmmyLanding=0})})}),Re.loader.when("prepare",function(){Re.tabListener.enable()}),Re.loader.when("init",function(){if((I.default.isChrome||I.default.isFirefox)&&chrome.runtime.setUninstallURL){var e=Re.varCache,t=Re.preferences,n=function(){var n={version:e.currentVersion,language:I.default.i18n.getMessage("lang"),appid:e.helperName,country:t.country},o=("http://savefrom.net/goodbye.php?"+De.stringify(n)).substr(0,255);chrome.runtime.setUninstallURL(o)};n(),Re.loader.when("prepare",function(){n()}),I.default.storage.onChanged.addListener(function(e,t){"local"===t&&e.country&&n()})}}),Re.liteStorage=(_e={},qe=function(e){var t={};return t.liteStorage=_e,I.default.storage.set(t,e)},je=function(){Be.error("liteStorage is not set!")},Ve=function(e,t){return ze(e,Se()()+t)},{getStorageKey:function(){return"liteStorage"},setStorage:function(e){_e=e.liteStorage||{},je=ve()(qe,100)},set:ze=function(e,t){_e[e]!==t&&(_e[e]=t,je())},get:Ue=function(e,t){var n=_e[e];return void 0===n&&(n=t),function(e){return JSON.parse(g()({w:e})).w}(n)},isTimeout:function(e){return Ue(e,0)>Se()()},setTimeout:Ve,isExpire:function(e){return Ue(e,0)<Se()()},setExpire:Ve}),Re.loader.when("prepare",function(){var e=n(37).default;Re.userscriptMenu=new e(Re)}),(0,n(38).default)(Re),(0,n(39).default)(Re),(0,n(40).default)(Re),(0,n(41).default)(Re),(0,n(43).default)(Re),(0,n(44).default)(Re),(0,n(45).default)(Re),(0,n(49).default)(Re),(0,n(46).default)(Re),Re.init()},function(e,t,n){n.r(t);var o=n(0),i=n(7),r=n.n(i),a=(n(2),n(12)),s=n(19),l=n(18),u=n.n(l),d=function(e){var t=e.preferences,n=null,o=function(){return null!==n?A.a.resolve(n):n=Object(a.a)({onceTrackAliradar:null}).then(function(e){var t=e.onceTrackAliradar;return"number"!=typeof t?(t=Math.random()<.05?1:0,Object(s.a)({onceTrackAliradar:t}).then(function(){return t})):t}).then(function(e){return n=e})},i=function(){o().then(function(n){if(n){var o={t:"screenview",cd:"init",cd3:t.aliradarEnabled?"true":"false",tid:"UA-67738130-7"};e.wrapBaseStatInfo(o),e.quickTrack(o),u()([{user_id:e.varCache.uuid,event_type:"init",user_properties:{Cohort:"Aliradar"}}])}})};o().then(function(t){t||e.events.off("sendScreenView",i)}),e.events.on("sendScreenView",i)};t.default=function(e){e.loader.when("init",function(){var t=e.defaultPreferences,n=e.preferences;if(!n.lc){t.aliradarEnabled=1,n.hasAliradar=1;var i=function(){return n.hasAliradar&&n.aliradarEnabled},a=r()([{matches:/^(?:https?|file|ftp):\/\/[^\\\/]*\.aliexpress\.com\/.*$|^(?:https?|file|ftp):\/\/aliexpress\.com\/.*$/i}]),s={getScriptList:function(e){var t=[];return i()?a(e)&&t.push("includes/aliradar.js"):l(),t}},l=function(){i()?(e.tabListener.extendJsList.aliradar=s,e.tabListener.enable()):delete e.tabListener.extendJsList.aliradar};o.default.storage.onChanged.addListener(function(e,t){"local"===t&&e.aliradarEnabled&&l()}),e.loader.when("prepare",function(){l()}),d(e)}})}}])}],e.backgroundPageMono=null,e.buttonUi=null,e.optionsPageUi=null,e.init(),e}return J(t,ce),Object(F.a)(t,[{key:"createMonoInstance",value:function(e){var n=null;switch(e){case"backgroundPage":n=new Ue(this);break;case"page":n=new Ke(this);break;case"contentScript":n=new $e(this);break;default:K(V(t.prototype),"createMonoInstance",this).call(this,e)}return this.addMonoInstance(n),n}},{key:"init",value:function(){var e=this;return this.runWhenDocumentIdle(function(){ot.default.isSingle()&&e.inject()})}},{key:"wakeUpBackgroundPage",value:function(){this.backgroundPageLoaded||(this.backgroundPageLoaded=!0,this.executeBackgroundScripts())}},{key:"showButton",value:function(){this.hideButton(),this.buttonUi=new nt(this),this.buttonUi.create()}},{key:"hideButton",value:function(){this.buttonUi&&this.buttonUi.destroy(),this.buttonUi=null}},{key:"showOptions",value:function(){this.closeOptions(),this.optionsPageUi=new pe(this),this.optionsPageUi.create()}},{key:"closeOptions",value:function(){this.optionsPageUi&&this.optionsPageUi.destroy(),this.optionsPageUi=null}},{key:"getBackgroundPageMono",value:function(){return this.backgroundPageMono||(this.backgroundPageMono=this.createMonoInstance("backgroundPage")),this.backgroundPageMono}},{key:"executeBackgroundScripts",value:function(){this.executeScripts(this.backgroundScripts,this.getBackgroundPageMono())}}]),t}();t.default=new rt},function(e,t,n){"use strict";n.r(t);var o=n(9),i=n.n(o),r=n(2),a=n.n(r),s=n(1),l=n.n(s),u=n(35),d=n(43),c=n(19),f=function(e,t){t&&!a()(t)&&(t=[t]);var n=[],o=-1,i=-1;do{if(-1!==(i=e.indexOf('"',i+1))){if("\\"===e[i-1])continue;-1!==o?(n.push(e.substr(o,i+1-o)),o=-1):o=i}else o=i}while(-1!==i);for(var r,s=[],l=function(e,n){if('""'===n)return"continue";try{t?t.every(function(e){return e.test(n)})&&s.push(JSON.parse(n)):s.push(JSON.parse(n))}catch(e){}},u=0;r=n[u];u++)l(0,r);return s},p=function(e,t,n){n=n||[],a()(n)||(n=[n]);for(var o=[],i=new RegExp("(<"+e+"[^>]*>)","i"),r=new RegExp("(</"+e+">)","i"),s=null,l="",u="",d="",c=-1;(s=i.exec(t))&&(l=s[1],-1!==(c=t.indexOf(l)));)t=t.substr(c+l.length),(s=r.exec(t))&&(u=s[1],d=t.substr(0,t.indexOf(u)),o.push(l+d+u));return o.filter(function(e){return n.every(function(t){return t.test(e)})})},m=function(e,t){var n=(new DOMParser).parseFromString("<html><body>"+e+"</body></html>","text/html");if(t){var o=n.head.querySelector("base");o||((o=n.createElement("base")).href=t,n.head.appendChild(o))}return n},h=n(13),g=n(34),v=null,b={getVKLinks:function(e,t){return b._getVKLinks(e.extVideoId,function(n,o,i,r,a,s,l){if(l)return l.origRequest=e,void v.onMessage(l,{},t);var u={action:e.action,extVideoId:n||e.extVideoId,links:o,title:i,duration:r,thumb:a,data:s,checkLinks:null};e.checkLinks&&o&&o.length>0?b.checkVkLinks(o,function(e,n){u.checkLinks=n,t(u)}):t(u)}),!0},preparePladformLinks:function(e){var t,n={links:t=[]};return e.forEach(function(e){n.title=e.title,n.duration=e.duration,n.thumb=e.cover;var o=e.url.match(/[\w]+\.(mp4|flv)(?:\?|$)/i);o=o?o[1]:"flv",t.push({url:e.url,name:o.toUpperCase(),subname:e.quality.toUpperCase(),type:o.toLowerCase()})}),n},_getVKLinks:function(e,t){var n=[],o=e,i=null,r="",s="",y=e,k=null,w=null,x=null,S=/^video(-?\d+)_(\d+)/i;if(S.test(y))k=y.match(S),w=l()(k[1]),x=l()(k[2]);else{k=y.match(/(?:^|&)oid=(-?\d+)/i),w=k&&l()(k[1]),k=y.match(/(?:^|&)id=(-?\d+)/i),x=k&&l()(k[1]),y="",w&&x&&(y="video"+w+"_"+x)}return y?(o=y,Object(h.default)({url:"https://vk.com/"+y},function(e,l,h){if(e||!h)return t(y,n,o,s,r,null,i);var k=null;if(Object(c.default)(h,[/"vid":/,/"oid":/,/"md_title":/]).some(function(e){var t=e&&e[4]&&e[4].player&&e[4].player.params&&e[4].player.params[0];if(t&&t.vid===x&&t.oid===w)return k=t,!0}),k){var S=b.getVkLinksFromJson(k);return n=S.links,o=S.title,r=S.thumb,s=S.duration,t(y,n,o,s,r,k,i)}var A=null;Object(c.default)(h,[/"player"/]).some(function(e){var t=e&&e[4]&&e[4].player&&e[4].player.params&&e[4].player.params[0];if("string"==typeof t)return A=t,!0});var C,L=!1;A&&((C=/dailymotion.com\/(?:swf\/)?video\/([\w\d]+)/i.exec(A))&&(i={action:"getDailymotionLinks",extVideoId:C[1]},L=!0));if(L)return t(y,n,o,s,r,null,i);var M=!1;return f(h,/video_box_wrap/).some(function(e){var l=null,c=/<iframe([^>]+)>/i.exec(e);if(c){var k=c[1];if(l=/youtube.com\\?\/embed\\?\/([\w\-]+)/i.exec(k))return i={action:"getYoutubeLinks",extVideoId:l[1]},!0;if(l=/vimeo.com\\?\/video\\?\/(\d+)/i.exec(k))return i={action:"getVimeoLinks",extVideoId:l[1]},!0;if(l=/src="([^"]*pladform\.ru[^"]+)"/i.exec(k)){M=!0;var w=Object(u.default)(l[1]);return v.modules.odnoklassniki.getPladformVideo({extVideoId:{playerId:w.pl,videoId:w.videoid}},function(e){e&&"getRutubeLinks"===e.action&&(e.links=null);var l=e&&e.links;if(!a()(l))return t(y,n,o,s,r,null,i);var u=b.preparePladformLinks(l);return t(y,u.links,u.title,u.duration,u.thumb,null,i)}),!0}}return!!p("video",e).some(function(e){var t=m(e,"https://vk.com/"),i=!1;return[].slice.call(t.querySelectorAll("source")).forEach(function(e){var t=!1,r=e.src;t||/^(.*cdninstagram\.com.+mp4)/i.exec(r)&&(t=!0,i=!0,n.push({url:r,subname:"SD",name:"MP4",type:"mp4"}));if(!t){var a=/\.(\d+)\.mp4(?:$|\?)/.exec(r);if(a){t=!0,i=!0;var s=r,l=a[1],u=s.indexOf("?");-1!==u&&(s=s.substr(0,u)),f(h,/mv_title/).some(function(e){var t=/id="mv_title"[^>]*>([^<]+)/.exec(e);if(t)return o=g.default.decodeSpecialChars(Object(d.default)(t[1])),!0}),n.push({url:s,subname:l,name:"MP4",type:"mp4"})}}}),i})||(/var\sopts\s*=\s*/.test(e)&&(l=/url:\s*'(?:[^']+)dailymotion.com\/(?:swf\/)?video\/([\w\d]+)/.exec(e))?(i={action:"getDailymotionLinks",extVideoId:l[1]},!0):void 0)}),!M&&t(y,n,o,s,r,null,i)})):t(y,n,o)},checkVkLinks:function(e,t){var n="";e&&e.length>0&&(n="mp4"==e[0].type?e[0].url:e.length>1?e[1].url:e[0].url),n?Object(h.default)({url:n,type:"HEAD"},function(e,o){t(n,!e)}):t()},getVkLinksFromJsonMsg:function(e,t){return t(this.getVkLinksFromJson(e.json))},getVkLinksFromJson:function(e){var t=[],n=e.vid,o=e.md_title||e.vid,r="";e.thumb?r=e.thumb:e.jpg&&(r=e.jpg);var a=/\.flv(\?|$)]/,s=/url([0-9]+)/;i()(e).forEach(function(n){var o="",i="mp4",r=null;"extra_data"===n&&"99"===e.extra?(o="",e.live_mp4?o=e.live_mp4:e.postlive_mp4&&(o=e.postlive_mp4),o&&(r=e.hd?"HD":"SD",t.push({url:o,subname:r,name:i.toUpperCase(),type:i}))):"extra_data"===n&&"52"===e.extra?(r=e.hd?"HD":"SD",o=e.extra_data,a.test(o)&&(i="flv"),t.push({url:o,subname:r,name:i.toUpperCase(),type:i})):null!==(r=(r=n.match(s))&&r[1])&&(o=e[n],a.test(o)&&(i="flv"),t.push({url:o,subname:r,name:i.toUpperCase(),type:i}))});var l=e.duration;return{action:"getVKLinks",extVideoId:n,links:t,title:o,duration:l,thumb:r,data:e,checkLinks:null}},getVkLinksFromData:function(e,t){var n=e.data,o=null;return Object(c.default)(n,[/"vid":/,/"oid":/,/"md_title":/]).some(function(e){if(e=e.player&&e.player.params&&e.player.params[0])return o=e,!0}),o?t(b.getVkLinksFromJson(o)):t()}};t.default=function(e){return v=e,b}},function(e,t,n){"use strict";n.r(t);var o=n(0),i=n.n(o),r=n(1),a=n.n(r),s=n(9),l=n.n(s),u=n(3),d=n(4),c=n(36),f=n(14),p=n(111),m=n.n(p),h=function(e){if("string"!=typeof e){var t=new Error("Value is not String");throw t.value=e,t}return e},g=function(e){if(!m()(e)){var t=new Error("Value is not Finite Number");throw t.value=e,t}return e},v=Object(f.default)("DailymotionComEmbed"),b=function(){function e(t){Object(u.a)(this,e),this.engine=t}return Object(d.a)(e,[{key:"getDailymotionLinks",value:function(e,t){var n=this;return this.getEmbedVideoInfo(e.extVideoId,e.metadata,function(o){o||(o={}),n.addUmmyLinks(o.links,e.extVideoId);var i={action:e.action,extVideoId:e.extVideoId,links:o.links,title:o.title,duration:o.duration,thumb:o.thumb};t(i)}),!0}},{key:"addUmmyLinks",value:function(e,t){this.engine.preferences.showUmmyItem&&e&&e.length&&e.push({url:"ummy://www.dailymotion.com/video/"+t+"?sf_type=audio",type:"ummyAudio",extra:"ummy",videoId:"dm-"+t})}},{key:"getMetadata",value:function(e){return Object(c.default)({url:"https://www.dailymotion.com/player/metadata/video/".concat(encodeURIComponent(e)),json:!0}).then(function(e){return e.body})}},{key:"getInfoFromMetadata",value:function(e){var t={title:h(e.title),duration:g(e.duration),thumb:h(e.poster_url),links:[]};return l()(e.qualities).forEach(function(n){var o=e.qualities[n];"auto"!==n&&(n=a()(n,10),o.forEach(function(e){var o=/^video\/(.+)$/.exec(e.type);if(o)try{var i=o[1].toUpperCase();t.links.push({name:"".concat(i," ").concat(n),ext:i,height:g(n),url:h(e.url),info_url:""})}catch(t){v.error("getInfoFromMetadata: Parse link error",n,e,t)}else v.debug("Link type skip",e.type)}))}),t.links.sort(function(e,t){return e.height>t.height?-1:1}),t.links.length||(t.links=null),t}},{key:"getEmbedVideoInfo",value:function(e,t,n){var o=this;return i.a.resolve().then(function(){return t||o.getMetadata(e)}).then(function(e){return o.getInfoFromMetadata(e)}).then(function(e){n(e)},function(t){v.error("getEmbedVideoInfo error",e,t),n()})}}]),e}();t.default=b},function(e,t,n){"use strict";n.r(t);var o=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t+=String.fromCharCode(o):o>127&&o<2048?(t+=String.fromCharCode(o>>6|192),t+=String.fromCharCode(63&o|128)):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128),t+=String.fromCharCode(63&o|128))}return t};t.default=function(e,t,n){var i="";if(n||"undefined"==typeof URL||"undefined"==typeof Blob){var r=o(e);i="data:"+t+";charset=utf8;base64,"+encodeURIComponent(btoa(r))}else{var a=new Blob([e],{encoding:"UTF-8",type:t});i=URL.createObjectURL(a)}return i}}]);
