!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e(require("video.js")):"function"==typeofdefine&&define.amd?define(["video.js"],e):t.videojsShare=e(t.videojs)}(this,function(t){"use strict";functione(t,e){returne={exports:{}},t(e,e.exports),e.exports}functionn(t){vare;if("SELECT"===t.nodeName)t.focus(),e=t.value;elseif("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){varn=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();vari=window.getSelection(),o=document.createRange();o.selectNodeContents(t),i.removeAllRanges(),i.addRange(o),e=i.toString()}returne}functioni(){}functiono(t,e){for(;t&&t.nodeType!==G;){if("function"==typeoft.matches&&t.matches(e))returnt;t=t.parentNode}}functionr(t,e,n,i,o){varr=l.apply(this,arguments);returnt.addEventListener(n,r,o),{destroy:function(){t.removeEventListener(n,r,o)}}}functiona(t,e,n,i,o){return"function"==typeoft.addEventListener?r.apply(null,arguments):"function"==typeofn?r.bind(null,document).apply(null,arguments):("string"==typeoft&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){returnr(t,e,n,i,o)}))}functionl(t,e,n,i){returnfunction(n){n.delegateTarget=K(n.target,e),n.delegateTarget&&i.call(t,n)}}functions(t,e,n){if(!t&&!e&&!n)thrownewError("Missing required arguments");if(!X.string(e))thrownewTypeError("Second argument must be a String");if(!X.fn(n))thrownewTypeError("Third argument must be a Function");if(X.node(t))returnc(t,e,n);if(X.nodeList(t))returnu(t,e,n);if(X.string(t))returnh(t,e,n);thrownewTypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}functionc(t,e,n){returnt.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}functionu(t,e,n){returnArray.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}functionh(t,e,n){returnQ(document.body,t,e,n)}functiond(t){returnObject.keys(t).filter(function(e){returnvoid0!==t[e]&&""!==t[e]}).map(function(e){returnencodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")}functionf(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},e=t.fbAppId,n=t.url,i=t.redirectUri;if(!e)thrownewError("fbAppId is not defined");varo=d({app_id:e,display:"popup",redirect_uri:i,link:n});returnwindow.open("https://www.facebook.com/dialog/feed?"+o,"_blank",tt)}functionp(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},e=t.fbAppId,n=t.url,i=t.hashtag,o=t.redirectUri;if(!e)thrownewError("fbAppId is not defined");varr=d({app_id:e,display:"popup",redirect_uri:o,href:n,hashtag:i});returnwindow.open("https://www.facebook.com/dialog/share?"+r,"_blank",tt)}functionv(){vart=(arguments.length>0&&void0!==arguments[0]?arguments[0]:{}).url;if(!t)thrownewError("url is not defined");vare=d({kid_directed_site:"0",sdk:"joey",u:t,display:"popup",ref:"plugin",src:"share_button"});returnwindow.open("https://www.facebook.com/sharer/sharer.php?"+e,"_blank",tt)}functiong(){vart=d({url:(arguments.length>0&&void0!==arguments[0]?arguments[0]:{}).url});returnwindow.open("https://plus.google.com/share?"+t,"_blank",tt)}functionw(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},e=d({share_url:t.url,title:t.title,description:t.description,imageurl:t.image});returnwindow.open("http://connect.mail.ru/share?"+e,"_blank",tt)}functionm(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},e=t.url,n=t.title,i=t.description,o=(n||"")+"\r\n"+(i||"")+"\r\n"+(e||""),r="mailto:?body="+encodeURIComponent(o);returnwindow.location.assign(r)}functiony(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},e=d({"st.cmd":"addShare","st._surl":t.url,title:t.title});returnwindow.open("https://ok.ru/dk?"+e,"_blank",tt)}functionb(){vart=arguments.length>0&&void0!==arguments[0]?arguments[0]:{},e=d({ur