1. 程式人生 > >移動端分享外掛js

移動端分享外掛js

轉:http://www.calledt.com/soshm/

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("soshm",[],t):"object"==typeof exports?exports.soshm=t():e.soshm=t()}(this,function(){return function(e){function t(o){if(i[o])return i[o].exports;var s=i[o]={exports:{},id:o,loaded:!1};return e[o].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}([function(e,t,i){function o(e,t){for(var i=u.querySelectorAll(e),o=0,r=i.length;o<r;o++){var a=i[o],c=a.getAttribute("sosh-status");if("initialized"!==c){var d=m(a.dataset);d.sites&&(d.sites=d.sites.split(",")),t=m({},E,d,t);var p=n(t.sites);a.insertAdjacentHTML("beforeend",p),a.setAttribute("sosh-status","initialized"),a.classList.add("soshm"),function(e){h(a,".soshm-item","click",function(t){var i=t.delegateTarget.dataset.site;s(i,e)})}(t)}}var l=A("__soshmbridge");if(l&&"function"==typeof history.replaceState){var f=location.href.replace(new RegExp("[&?]__soshmbridge="+l,"gi"),"");history.replaceState(null,u.title,f),s(l,m(E,opts))}}function s(e,t){var i,n,r=l[e].api;if(b){if(f.isUCBrowser&&(w[e]&&(i=f.isIOS?w[e][0]:w[e][1]),void 0!==i))return n=[t.title,t.digest,t.url,i,"","@"+t.from,""],window.ucweb&&ucweb.startRequest&&ucweb.startRequest("shell.page_share",n),void(window.ucbrowser&&ucbrowser.web_share&&ucbrowser.web_share.apply(null,n));if(f.isQQBrowser&&(w[e]&&(i=w[e][2]),void 0!==i))return void(window.browser?(n={url:t.url,title:t.title,description:t.digest,img_url:t.pic,img_title:t.title,to_app:i,cus_txt:""},browser.app&&browser.app.share(n)):c("//jsapi.qq.com/get?api=app.share",function(){s(e,t)}))}if("qzone"===e||"qq"===e){var A=a(l[e].scheme,{share_id:"1101685683",url:p.encode(t.url),title:p.encode(t.title),description:p.encode(t.digest),previewimageUrl:p.encode(t.pic),image_url:p.encode(t.pic)});return void d(A)}if(e.indexOf("weixin")!==-1){var h=a(location.href,{__soshmbridge:e});d("mttbrowser://url="+h)}if(f.isWeixin&&e.indexOf("weixin")!==-1)return void o.weixinSharetip();if(r){for(k in t)r=r.replace(new RegExp("{{"+k+"}}","g"),encodeURIComponent(t[k]));window.open(r,"_blank")}}function n(e,t){for(var i="",t="number"===r(t)&&0!==t?t:0,o=0,s=e.length;o<s;o++){t&&o%t===0&&(i+='<div class="soshm-group group'+(o/t+1)+'">');var n=e[o],a=l[n];a?i+=C.replace(/\{\{site\}\}/g,n).replace(/\{\{icon\}\}/g,a.icon).replace(/\{\{name\}\}/g,a.name):console.warn("site ["+n+"] not exist."),!t||o%t!==t-1&&o!==s-1||(i+="</div>")}return i}function r(e){return null===e?"null":void 0===typeof e?"undefined":Object.prototype.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function a(e,t){var i=[];for(var o in t)i.push(o+"="+t[o]);return e+(e.indexOf("?")!==-1?"&":"?")+i.join("&")}function A(e){for(var t=location.search.substring(1),i=t.split("&"),o=i.length,s=0;s<o;s++){var n=i[s].split("=");if(decodeURIComponent(n[0])===e)return decodeURIComponent(n[1])}}function c(e,t){var i=u.createElement("script");i.src=e,i.onload=onreadystatechange=function(){this.readyState&&"load"!==this.readyState&&"complete"!==this.readyState||(t&&t(),i.onload=onreadystatechange,i.parentNode.removeChild(i))},g.appendChild(i)}function d(e){if(f.isIOS)window.location.href=e;else{var t=u.createElement("iframe");t.style.display="none",t.src=e,g.appendChild(t),setTimeout(function(){t&&t.parentNode&&t.parentNode.removeChild(t)},2e3)}}i(7);var h=i(5),m=i(19),p=i(20),l=i(21),f=i(1),u=document,g=u.body,b=!1;(f.isIOS&&f.ucBrowserVersion>=10.2||f.isAndroid&&f.ucBrowserVersion>=9.7||f.qqBrowserVersion>=5.4)&&(b=!0);var w={weibo:["kSinaWeibo","SinaWeibo",11],weixin:["kWeixin","WechatFriends",1],weixintimeline:["kWeixinFriend","WechatTimeline",8],qq:["kQQ","QQ",4],qzone:["kQZone","Qzone",3]},C='<div class="soshm-item {{site}}" data-site="{{site}}"><span class="soshm-item-icon"><img src="{{icon}}" alt="{{site}}"></span><span class="soshm-item-text">{{name}}</span></div>',v=u.getElementsByName("description")[0],y=u.getElementsByTagName("img")[0],E={title:u.title,url:location.href,digest:v&&v.content||"",pic:y&&y.src||"",from:location.host,sites:["weixin","weixintimeline","yixin","weibo","qq","qzone"]};o.popIn=function(e){var t,i=u.querySelector(".soshm-pop");i||(i=u.createElement("div"),i.className="soshm-pop",g.appendChild(i)),e=m({},E,e),i.innerHTML='<div class="soshm-pop-sites">'+n(e.sites,3)+"</div>";var t=h(i,".soshm-item","click",function(t){var i=t.delegateTarget.dataset.site;s(i,e)});i.classList.remove("soshm-pop-hide"),i.style.display="block",setTimeout(function(){i.classList.add("soshm-pop-show")}.bind(this),0),i.addEventListener("click",function(){i.classList.remove("soshm-pop-show"),i.classList.add("soshm-pop-hide"),setTimeout(function(){i.style.display="none",t.destroy()},1100)},!1)},o.weixinSharetip=function(e){if("number"!==r(e)&&(e=2e3),f.isWeixin){var t=u.querySelector(".soshm-weixin-sharetip");if(!t){var t=u.createElement("div");t.className="soshm-weixin-sharetip",g.appendChild(t)}t.classList.add("weixin-sharetip-show"),setTimeout(function(){t.classList.remove("weixin-sharetip-show")},e)}},e.exports=o},function(e,t){function i(e){return e=e.toLowerCase(),s.indexOf(e)!==-1}function o(e){var t=e.split(".");return parseFloat(t[0]+"."+t[1])}var s=navigator.userAgent.toLowerCase(),n={isIOS:i("iPhone")||i("iPad")||i("iPod"),isAndroid:i("Android"),isUCBrowser:i("UCBrowser"),isQQBrowser:i("MQQBrowser"),isWeixin:i("MicroMessenger")};n.qqBrowserVersion=n.isQQBrowser?o(s.split("mqqbrowser/")[1]):0,n.ucBrowserVersion=n.isUCBrowser?o(s.split("ucbrowser/")[1]):0,e.exports=n},function(e,t,i){t=e.exports=i(3)(),t.push([e.id,'.soshm{text-align:center;-webkit-tap-highlight-color:transparent}.soshm:after,.soshm:before{content:" ";display:table}.soshm:after{clear:both}.soshm-item{float:left;margin:5px;cursor:pointer}.soshm-item-icon{box-sizing:content-box;display:inline-block;width:26px;height:26px;padding:5px;margin:0;vertical-align:middle;border-radius:50%}.soshm-item-icon img{vertical-align:top;padding:0;margin:0;width:100%;height:100%}.soshm-item-text{display:none;font-size:14px;color:#666}.soshm-item.weixin .soshm-item-icon{background:#49b233}.soshm-item.weixin:hover .soshm-item-icon{background:#398a28}.soshm-item.yixin .soshm-item-icon{background:#23cfaf}.soshm-item.yixin:hover .soshm-item-icon{background:#1ca38a}.soshm-item.weibo .soshm-item-icon{background:#f04e59}.soshm-item.weibo:hover .soshm-item-icon{background:#ec1f2d}.soshm-item.qzone .soshm-item-icon{background:#fdbe3d}.soshm-item.qzone:hover .soshm-item-icon{background:#fcad0b}.soshm-item.renren .soshm-item-icon{background:#1f7fc9}.soshm-item.renren:hover .soshm-item-icon{background:#18639d}.soshm-item.tieba .soshm-item-icon{background:#5b95f0}.soshm-item.tieba:hover .soshm-item-icon{background:#2c77ec}.soshm-item.douban .soshm-item-icon{background:#228a31}.soshm-item.douban:hover .soshm-item-icon{background:#186122}.soshm-item.tqq .soshm-item-icon{background:#97cbe1}.soshm-item.tqq:hover .soshm-item-icon{background:#6fb7d6}.soshm-item.qq .soshm-item-icon{background:#4081e1}.soshm-item.qq:hover .soshm-item-icon{background:#2066ce}.soshm-item.weixintimeline .soshm-item-icon{background:#1cb526}.soshm-item.weixintimeline:hover .soshm-item-icon{background:#15891d}.soshm-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:15px 20px}.soshm-group .soshm-item{display:block;float:none;margin:0}.soshm-pop{display:none;position:fixed;top:0;left:0;right:0;bottom:0;height:100%;width:100%;opacity:0;z-index:9999;background:rgba(0,0,0,.65);-webkit-transition-property:opacity;transition-property:opacity;-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}.soshm-pop-show{opacity:1;-webkit-transition-duration:.6s;transition-duration:.6s}.soshm-pop-show .group1{-webkit-animation:soshtrans 1.2s 1 ease;animation:soshtrans 1.2s 1 ease}.soshm-pop-show .group2{-webkit-animation:soshtrans 1.7s 1 ease;animation:soshtrans 1.7s 1 ease}.soshm-pop-show .group3{-webkit-animation:soshtrans 2.2s 1 ease;animation:soshtrans 2.2s 1 ease}.soshm-pop-show .group4{-webkit-animation:soshtrans 2.7s 1 ease;animation:soshtrans 2.7s 1 ease}.soshm-pop-hide{opacity:0;-webkit-transition-duration:1s;transition-duration:1s}.soshm-pop-hide .group1{-webkit-animation:soshtrans2 .5s 1 cubic-bezier(.68,-.55,.265,1.55) 0ms forwards;animation:soshtrans2 .5s 1 cubic-bezier(.68,-.55,.265,1.55) 0ms forwards}.soshm-pop-hide .group2{-webkit-animation:soshtrans2 .5s 1 cubic-bezier(.68,-.55,.265,1.55) .2s forwards;animation:soshtrans2 .5s 1 cubic-bezier(.68,-.55,.265,1.55) .2s forwards}.soshm-pop-hide .group3{-webkit-animation:soshtrans2 .5s 1 cubic-bezier(.68,-.55,.265,1.55) .4s forwards;animation:soshtrans2 .5s 1 cubic-bezier(.68,-.55,.265,1.55) .4s forwards}.soshm-pop-hide .group4{-webkit-animation:soshtrans2 .5s 1 cubic-bezier(.68,-.55,.265,1.55) .6s forwards;animation:soshtrans2 .5s 1 cubic-bezier(.68,-.55,.265,1.55) .6s forwards}.soshm-pop-sites{position:absolute;top:50%;left:0;width:100%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.soshm-pop .soshm-item-icon{width:42px;height:42px;padding:10px}.soshm-weixin-sharetip{position:fixed;overflow:hidden;width:100%;height:100%;top:0;left:0;background:rgba(0,0,0,.6) url('+i(16)+") no-repeat right 0;background-size:50% auto;z-index:-1;opacity:0;visibility:hidden;-webkit-transition:all .6s ease-out;transition:all .6s ease-out}.soshm-weixin-sharetip.weixin-sharetip-show{z-index:9999;opacity:1;visibility:visible}@-webkit-keyframes soshtrans{0%{-webkit-transform:translate3d(0,1136px,0);transform:translate3d(0,1136px,0)}50%{-webkit-transform:translateZ(0);transform:translateZ(0)}60%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes soshtrans{0%{-webkit-transform:translate3d(0,1136px,0);transform:translate3d(0,1136px,0)}50%{-webkit-transform:translateZ(0);transform:translateZ(0)}60%{-webkit-transform:translateZ(0);transform:translateZ(0)}to{-webkit-transform:translateZ(0);transform:translateZ(0)}}@-webkit-keyframes soshtrans2{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,500%,0);transform:translate3d(0,500%,0)}}@keyframes soshtrans2{0%{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}to{opacity:0;-webkit-transform:translate3d(0,500%,0);transform:translate3d(0,500%,0)}}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var i=this[t];i[2]?e.push("@media "+i[2]+"{"+i[1]+"}"):e.push(i[1])}return e.join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},s=0;s<this.length;s++){var n=this[s][0];"number"==typeof n&&(o[n]=!0)}for(s=0;s<t.length;s++){var r=t[s];"number"==typeof r[0]&&o[r[0]]||(i&&!r[2]?r[2]=i:i&&(r[2]="("+r[2]+") and ("+i+")"),e.push(r))}},e}},function(e,t){function i(e,t){for(;e&&e.nodeType!==o;){if(e.matches(t))return e;e=e.parentNode}}var o=9;if(Element&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}e.exports=i},function(e,t,i){function o(e,t,i,o,n){var r=s.apply(this,arguments);return e.addEventListener(i,r,n),{destroy:function(){e.removeEventListener(i,r,n)}}}function s(e,t,i,o){return function(i){i.delegateTarget=n(i.target,t),i.delegateTarget&&o.call(e,i)}}var n=i(4);e.exports=o},function(e,t,i){function o(e,t){for(var i=0;i<e.length;i++){var o=e[i],s=p[o.id];if(s){s.refs++;for(var n=0;n<s.parts.length;n++)s.parts[n](o.parts[n]);for(;n<o.parts.length;n++)s.parts.push(c(o.parts[n],t))}else{for(var r=[],n=0;n<o.parts.length;n++)r.push(c(o.parts[n],t));p[o.id]={id:o.id,refs:1,parts:r}}}}function s(e){for(var t=[],i={},o=0;o<e.length;o++){var s=e[o],n=s[0],r=s[1],a=s[2],A=s[3],c={css:r,media:a,sourceMap:A};i[n]?i[n].parts.push(c):t.push(i[n]={id:n,parts:[c]})}return t}function n(e,t){var i=u(),o=w[w.length-1];if("top"===e.insertAt)o?o.nextSibling?i.insertBefore(t,o.nextSibling):i.appendChild(t):i.insertBefore(t,i.firstChild),w.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");i.appendChild(t)}}function r(e){e.parentNode.removeChild(e);var t=w.indexOf(e);t>=0&&w.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",n(e,t),t}function A(e){var t=document.createElement("link");return t.rel="stylesheet",n(e,t),t}function c(e,t){var i,o,s;if(t.singleton){var n=b++;i=g||(g=a(t)),o=d.bind(null,i,n,!1),s=d.bind(null,i,n,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=A(t),o=m.bind(null,i),s=function(){r(i),i.href&&URL.revokeObjectURL(i.href)}):(i=a(t),o=h.bind(null,i),s=function(){r(i)});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 s()}}function d(e,t,i,o){var s=i?"":o.css;if(e.styleSheet)e.styleSheet.cssText=C(t,s);else{var n=document.createTextNode(s),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(n,r[t]):e.appendChild(n)}}function h(e,t){var i=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}function m(e,t){var i=t.css,o=t.sourceMap;o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([i],{type:"text/css"}),n=e.href;e.href=URL.createObjectURL(s),n&&URL.revokeObjectURL(n)}var p={},l=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},f=l(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),u=l(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,b=0,w=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=f()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var i=s(e);return o(i,t),function(e){for(var n=[],r=0;r<i.length;r++){var a=i[r],A=p[a.id];A.refs--,n.push(A)}if(e){var c=s(e);o(c,t)}for(var r=0;r<n.length;r++){var A=n[r];if(0===A.refs){for(var d=0;d<A.parts.length;d++)A.parts[d]();delete p[A.id]}}}};var C=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},function(e,t,i){var o=i(2);"string"==typeof o&&(o=[[e.id,o,""]]);i(6)(o,{});o.locals&&(e.exports=o.locals)},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAANlBMVEVHcEz///////////////////////////////////////////////////////////////////+GUsxbAAAAEXRSTlMAIPDgv0BegH/AoDCPzxBvsNFNiOYAAAC3SURBVHhe7dbNCoQwDATgabttV+tf3v9lF+rJRJr2sojkO0oYBg1BPIhx3zEJTKQxE04WIJnBLZSoz/T6AD81KAH6kv4twAIswH8a1AC7B7lPwvulzwJp80tBh7J4IooQdiIKu4PmPLwrhND5X1CoSmASVRGqXAcDmKOzALCFuwqOFWiJdxVm/lB/j0kpoFZYZYEDDXK8iAIOTXx+5om5ub0Xnh1HqtbLTGEff1h8W0DMwxwew/wAniVLWfHYFrQAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAP1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////9KjZoYAAAAFHRSTlMAIGAwgKDwQBDA0FDfsHDgkD+PT2O/b44AAAGsSURBVHhe1dfddqsgEAXgzf8AYmw67/+sPUe7zHLhONjctN9dFHaMCVuCX859/GPwM+5Z+Ft+fuIuO/FB9IQb6sSd6DHsyaeKwxAqLIhpcL7MQdf4QtQTZr5UoDCRr3lcC6yIhCuGVV65ANWEK5F1CbLKAxbIPA/IkGUeARkPMe8GJEjS3w+o7wY0HrJAYGzmEQECT/Rgna9OCgBcGXl/j1M095Xa8xADqtMXVF7HzIQzCzamidMTVqniRHpVtguRO2U2+DZPhA5NzPb1yi6Fd4+8VDq0xiJ0STskm7RyOKB8uqRpu+hYobDbwCaWWU64kLLUKtNI4dgs/p6dXnmfz4lfOIp1nLFJ8769+rA+x+tFfXJt4dYjbupP5FuLmu8HZCnA/ihgLZLHSMA+MPRtaLYTakBO/U206xHL/02WtvsqqWjdho0iFwCFNzkEeX5eh2cc2UAA3Oiz1bUkbfJU9s1dWoAiaPNV5Y2N6l6nshiM8kdBN0PkeYiFgHhMu7NRLlH5DMpXGGD7TIJojn1t1QcfNMIFsm3PKDNhVcOe8VgMVJRW3bGaEuEX+gJWbpMHBa1eygAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAP1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////9KjZoYAAAAFHRSTlMAYECgEPAwwH8/4NAgUJCwcM+fr0RbN4IAAAGVSURBVHhe7ZbdkoMgDIUVE2ARf7o97/+s22k7pZmAUJnZq36XmBwPJgGHf+CLQ+zKN8DUJbABXRYi0GdhArosRNy5dhoAzMl8whN3UsADXRaI0WfBA30WGOiyMOKd8XOBIATCGQNdFoghCXSiBAJ/YgoEXJgp+5PjCs1Vh9H9yOjA3gRoVcuzK5KtjHVqu27db/Y0vyLKvtZ35AjOjz+itE74tEPCMBJa5hFKF5EvHdoAiX5XFPkTDRKaUWK7x1oW+YOCJuRZB5lfHoysAo9tsy2idKlGtZZnST7Fpxa9Fgr5aafqU/0qzTI0q62SyHc0HJOajU2mfeCHVoE55vKx1QSC7DTLkFxqAtJp1DPSdJ/yksZs34I6Qw4waXgStHjHjZecKVbKjuvcUIYdYF/GVf+YPGq42k9NDa71URX6SIB3MaH1MkAykb44xnaB8HyZnZvHySLBb5E7N5bBvMVF0Yxb2zgtL/eL0g540tJHng4e2qqAK4TER5GXShvwQZ2WUCmDA9bDTqP1eJz8ZoYKVoX08uUPi2Bapj4cFIsAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAANlBMVEVHcEz///////////////////////////////////////////////////////////////////+GUsxbAAAAEXRSTlMAMNCgYIDAEPBAULAgkHDf4FyRdXUAAAG8SURBVHhezZbdcoQgDEbDn4ki6vf+L9tOZ2dSuoSsXvXcaeAYCHGgfwvn1PRpSXmnO+QKAPoMAPHgj6efwLsAkPRRGtsJjAUAkpvFXoGJAJKd7AUDAUPBwmTCCRgJVvwmBjP9iE8EkI2GBMFcoKzOfFcgg1VwhCNwDAvuCBCZeg7cE6BRR8BdATZnAa7gZFJW3BegkHI+EQj3A3yBnUJ9JjjpxY5HAi3E8VSQtIZzAcHACfuCVRN8JjimWxB9Qf2JFoxZrJOuxGm0+gJMo0UFxRfYx8TfZ4wRUkhmdYzmMVOSswRDrmz3BRd1yERQ7Rp4dbjsmDB1sNhnbZskoBR71G4l4KeQ6YfLjBBxoBcZ77w+0yZ9VM9JQ0SryLLr7xK7vYiDXlxmFzQgmRcAdRfrELN0+5mtfmerCQ6t1cCwjosc/5ZOeGxYxkWu/OZtpGSj2/KoicNoaNYd6IhaGH03vApsYjfLFUihBgy/FuLwprcCrZNms7e4QV8oW+gf35tD2Q/yCIKZ4cb8Z4YswFOD7t9zQ4NBYpqhZTY5A/lwERhIYfqIvGDApdN99qOiI7ZAdwm5tOWbUnKgf8wXi3+FNpeg8ZMAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAOVBMVEVHcEz///////////////////////////////////////////////////////////////////////99PJZNAAAAEnRSTlMAMPCggL8QwD9/4NCQsHDPYFAr85NjAAABBklEQVR4Xu3V3Y6DIBCG4QFxoP5u5/4vdrM4+2kTaoD+eMJ7QtvUJxHHQF+sFbboabdkhGTrOSDJyoEGWI9sFeAJ+csAjzUJhD2uAY6FK4AG1M9BAxrQawr02nQOdDsg6fw54K4E1lcBeRHgNDA4NJwD97guByBxYJwBXVxXpsn/lQsgthKbSSsFFtFcHcCD/PdTBThB1lQARg4NXArgBnQj+2JgltjIKnSFQIcT546NLAE62Udg0s8Go3xDQxrgVbYsH3eDc18msz4emQH/ywTswwTiJkaTCyyCjdfG+DwoF6BZr0dGv+UCbPV65BYqASjg/UGFk+gMVQLoM0CIGUIGP7yr1i+rL2X5ejXICAAAAABJRU5ErkJggg=="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAOVBMVEVHcEz///////////////////////////////////////////////////////////////////////99PJZNAAAAEnRSTlMAoLAwwECAEPAg0HDgYFCQv48OkrAuAAAB90lEQVR4Xu2UXZOjIBBFG+RTQJPz/3/sbqKxnZCpcczD1lblPNGl3Kb70sj/xochXG2Y5CzTBUiQgpyiUEu86TjGKL8nYB/b2k8KUXoGrAaN+butzVaAZFuWL9i0lzVotCMbFMxeIi85r3CN97BIT0gA1RnjRgCusuHx9z7ColRtf3oL1LKmzaUCl6gtvC0dQL3FznX7R0ghilIS2u3AvREA42sBC2l4avwIoyxM9xKGBEy3OD2XMEONr041r8tlMczYxdT21H/NvycnGNRGNdA+22igyAsaXL5epIwR8YTuAHUXeV277QgNE5dcXvLczYnWNFXAxEcE83aadDM5phSlt4C8+XUnPWI1QrwDavT0o6R/eVYuWoNs5BLml8MIVru5krcTdfZ0CgMETbjiNwHfm5PStI/9cQG9pDbvQi0h8CA+CfSje9EP4PTyLgQ1SF6S56SXb2T1dttvZCVR5RtiizpKtMdI5eBG27Q6jPzMsPg+9SNlYJIDjCASUzdSHqocYXDlns31D8IkR/HLBCgqeYwLT1MeDaQoB+nLHUbt6REMNFEGw4H9/aMUjQlTC9cK4KIcpywWFjZqk98wQl7fYYBkJvkVGey68n/J8lsKNDmNPqvnqVR5hwxGTqOv4nkKeHmH8K6AA/kIfAQKSd6jePl3fPgDOtEg/yPlfh8AAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAPFBMVEVHcEz///////////////////////////////////////////////////////////////////////////+PybD1AAAAE3RSTlMAoGAw0PCAEEDAIHDfsJBQ4I+vnt3bXwAAAkdJREFUeF7tVtuCqyAMLAghAfHG///rqW0xwWjd9nHPzgsWyGQgF3r7v/CHzrhSiieau+8I+rKhn8MXBEXCp88JqDRwn4tIkBAtZM8MXwKJGb7E+FBBb3YEa4jI4GlMHwzpVKMpL5ggrdzqdo4bgz8+RFwKYzjIhEcWwKkEKA2EEy9DGKY1o3hRyGyBvDaUCnP/ZdcPldXWlx1Aslu0ptLGdbQ7+7kooPJRJbjnKPFkP7wDvEPs8vcxcypoexkFhOV1/8vjyOP6eR9hT7AUDZ/a2ZUBFQH7v0Sul/AyoM/sW899k2e2/JgAn+GLTSp2P7R3j4iArXcZa/H1aicNAIbIq6BIn3QcgGxFhsbRNFFggHf1J0rXNujmMNV2jFcdm3jHSY24FN8U8HmzjlylHnYaQ2V3Hc+NAKlVY05belLTtrqTTTHUSVVDr4Wp2qOM6SxOcVLknZzTOUmHzS7rE9QUGVVBH0nwgiA3jSN6kYzPkcM2iZpgUKNpkCphJ4EOm7VreicLgHqcngneKBjFjU4WMZe+q8mjCNo4ZhkD3OKZxYXplE8qCpYJUv1ibypA8dbkBzf4sImJ+mkx8mXan6HnY0KbNT5w0YsplYqw7fLYyE26a41szLH3kXU6ckpt0FMMJ4vRtIl8ac+rLqoX2mE9Zq/tNYPfCjKvHG7AugzquVcMz7yh7mgNWNKEF//cymJDaz0aL9zz4htHNFvE+86IaabC8EO8vUdIU9GQ78U1OqCiMRnLzq+BFjIR+TIRkYGE4fbb8Yd/KxZhLtPWraEAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAOVBMVEVHcEz///////////////////////////////////////////////////////////////////////99PJZNAAAAEnRSTlMAMOCwQGDQ8IAQkFAgn79wwKDPjjl1AAABuUlEQVR4Xu3VwXKFIAwF0IsASVBR8/8f27IBnSeitatOz455w30kSsTf9G8amW1KMy9O8JifSXdCNHhgiqQfBi+4R6KeowV3jKRNwaAr6qXeIcRqx4xLSfVVwqw3RDR5rQbNTtcjGoT2vZJNi+AAUyJIcK7uYGT1Tw0AjGW54dSkhUO2lgMgEy0mnGEtPLJQ1gIArtfHQQtyABYtrACStKBWBVWag+5QmgfdMfg0ah/ZxaGFtSd4gYyc0qCUEo/yLGDwEB90z/oHAVHAdJJ6N8DDDZ0Rwdf7uTsi3OX++cYF1ybO+/sJVhsCvF7zyLw2uIm0w5TLcGKt95w8xlAKE1MOna5e5nGqR92NnfVw4127C4R4nBOhXun6k0UmZ0XYXWl21yqSwxAUZIb0A09aJa6npDiTFg6tBOf0DkYrwS2PAiBBjxw/CShdrpx/GkA/6oFvzkYWvWM6fp+IR15JM4ugfeFQAbEgE/fNYHlWQdleCGnPgCKy/GDiO1zqdiGiw5BeWYFXCUHwKmEV3GFafdhwF3ceYN+0UeMdvk28rRlhi3mx4CHj+NviBPlMqitemVYVvOMMfsu/L0Ath0CgH1P9AAAAAElFTkSuQmCC"},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARIAAAE8CAMAAAA7T85XAAAAh1BMVEVHcEz9/f3+/v7////9/f3+/v739/f////////39/f39/f39/f////39/f////7+/v39/f8/Pz39/f39/f39/f////////39/f39/f39/f39/f39/f39/f39/f39/f39/f////39/f39/f39/f////39/f39/f39/f39/f39/f39/f////39/dxTaSTAAAAK3RSTlMAIWDwEDDxgMBA9wTg55BRsXP8CrvQoJaHy97UqaAWHLB/OY9AXMMqS29oMLbyrQAACYJJREFUeF7s3VuL4zgQBeCTxjFEwsSxDb5eyN3dnP//+5ZmGCMVM50ZFpalfb7nfmnhlEpSqYQtExERERERERER2eUTIvLBfkJIcrJCQHxK8h0rwYF0TCespCHvZIOV9GxRMS3xg2AmGxzIE1aagpkVRcHUY6Up+IcbVpqCyTQjR3wSLGTbscLwM8DKyOKcsaAjawgA77jKIAAOJJmSw5gxhQCoyeb5JJtzSzoIfMbKH678IYXgRrYpP2V5xh6CkZ9cwTRvKjpNwyhTRg4akneSTNu8Y9GRWvoBvnPDxxPAmUySZShyBdd7ua6GnwB2a/4qRxtG5EIeEZKZ/EBIPHlGRFLWiEjHERHpmSMiD1aISM4WERnYIyI1O0SkZoaI1EwRkeblkGhIpCERkfN/MiT6ShRLNCTKS5TQy2iHRIaXQ6L9EmlZ4Wvae5WMIyJSsEFISltaIjvyDSE52EsFciefCMmJLPF3tBBWPi89B4TEFzwjJE/yjpAcyT1CcmZR4q+oukRbAzLbXh1yJC8ISUPnEZIHHwhJaXNXWez+kdR/3bpEZzjaipYTOSMkLVuE5GmzeTmzmBCSjhVCstg9RsmZeQRktusbubKYsRFJidcwOQ7YgmfTOjKt7h4vNNs4rbhU/Klb8KUp3cJHkowk2V5PpzEjeX4VSZ747i4Z6eodPvmP9Osx2RUb+EgWR+YzfnpmX7ZqyelmfHMXR/eGwDNl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BkhKUMEbCMkhYjTlfPU9YZ1s90r58XPkwSciv3zk3kWITNHMt9M225ABQBEAS9RQSWmSFgBMNMcLEjOywLh2Vxw8gb/nDfocW5+ROLbgZlbBGAvV8tkHRUS7QFA5t/eZuB9B79fgoQByIqwBFT5H+prJB6gZidNXyOJALj5manOM20VyhaPhq2pdhe9YNQqG6lNX9GA6JHFSnnxNHui963mc7GNDJUKEjFc0swmM6M28xnAy14MAVCycdMw8MS0vM5KbC7NzZKbcNPYBKwTJJ4O/GOwKSWqG2UyNFBlmmRq53NWj/4PDOvyV5LWtlliTvi7kV34lfXg1ykjnSQv/2/dunXr1q1bt27duvUPJgzeOU+zv/oAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAOVBMVEVHcEz///////////////////////////////////////////////////////////////////////99PJZNAAAAEnRSTlMA8DB/z6DQPxCAwGAgcLBQ4JAZyUNJAAAB60lEQVR4Xs3X246rMAyF4QRI43Bmvf/DbomhLNUmznRfjS+r/p8gCqfwh0dyn8ZzUp/l27o7dnzMnrpv+hV2Ssjzr2I5JMjrCShIvyCWiIGCAhD7Rj6PACgYABjcg5gioAQNIE71vgegBAsAqdYnwBEIILm9FQhQ8HsKFQCL7SfAETSATfdzhCNYIIoCBsARLID1sy+AIxConYRENIXCZTInQdsRSsj4mMkcgC8QsHthzs7M4RQI2L498roB9t1tzP3DbFq4APYR72U8YOclQQkXwJ7LODg9he0HYM/N5PecrHrs/N3rCdy9XAf987+l0RPQPTK3od8TYM/bwtroCege5fx91L3Mz8Cme6QLUP2Qn4Gie4wXoHrUAN1jvQDV14COvVoD1deAqzdAUT0BtycwqZ6A2/OPWfUE3J5bObAn3O55MYUX+zewSbvn5by8ewJlbfd8Qs53T0DfNJfyMPeWT3dPQAv+sCdwCl12RmxPgLeu6uyBs8AAbSGrh6sFfGH8XGQD+ILdbaMFfOFwXnEIUGjfuScN+ELHkoICPGFyXhQNgFEosHcEDWBQwhIqUwjAEZzX9S0SqAmxC87IqAAjrNL85CFghbiF5kiJBJRQxCtJCIH/fbHr0q627jJ//+lbynjOMeXwh+cfhtCFZYWp8dQAAAAASUVORK5CYII="},function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAP1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////9KjZoYAAAAFHRSTlMAMMAgQGCgEPCAcNBQsOCQ37+Pr/HIP5wAAAI0SURBVHhetVfdeuwgCFyNfxhNTJb3f9Zz03aqYvS0X+du10AGGIS8/hjeGLP9zHSz7gr8gcvZ7f+s484tyr3sw7xZxpVWzNXFYxQzzdrNz3g/B6IKzxCe4rC8gnto73gNb79mv2eiSET64PbEz+2z9ThScZ97IAbYdbk2uvLgOvvEgBZLZapIqBVvwFkcaaQKspEU5BfUWpmDl05gP/dwvgAfevu5h02qwLTfTqkSPoDWFHtPAbyORh8qEbVXmuopwKmtqkblQ3Z2oNjwqYEvAlW6oAwuSC0exwujRKC+WML3o4yGaf7weChyA9WpHjHAH3TPQC+82i3SGntly92jkYSKkRFKBQRJd1T9FOUGJCEJeeBAswASMqQhjIpjYQFOdoDX7XDAErTgoMBBE8KcAVjnRQdxFAKhOzsdylq0AwfQgeceh1RlXVX1fBxyUYqQqogKHvHHQy/41qt0S6oHArbNiwYhQIV6GMozBL0BmmIigxJbPYMuKIgNZSQCuMK+MhY2eYrZwRT20E0b6i3zxwxBBPgTWrA7A9kP5gobabmI8b4CAzoN1xg92A6ihnxdM2uHGwLVkjGRCENtsGHk6uxY2OIU4kfFROkWO5ns0MBoFBUrsUjgyW62ZgYn7Ro2PyyKOzcIwneKj7Bv4eEBKG9Kn+VShq7HTcpnXsPuf7eua8kea8kU9HrCpifmhxnaothjBHotwB5Dc/9aQ3JCLjLEuwJzagb0mfwPP70p4fP7T/APapCRU7q26PsAAAAASUVORK5CYII="},function(e,t){function i(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var s in i)o.call(i,s)&&(e[s]=i[s])}return e}e.exports=i;var o=Object.prototype.hasOwnProperty},function(e,t){var i={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,o,s,n,r,a,A,c="",d=0;for(e=i._utf8_encode(e);d<e.length;)t=e.charCodeAt(d++),o=e.charCodeAt(d++),s=e.charCodeAt(d++),n=t>>2,r=(3&t)<<4|o>>4,a=(15&o)<<2|s>>6,A=63&s,isNaN(o)?a=A=64:isNaN(s)&&(A=64),c=c+this._keyStr.charAt(n)+this._keyStr.charAt(r)+this._keyStr.charAt(a)+this._keyStr.charAt(A);return c},decode:function(e){var t,o,s,n,r,a,A,c="",d=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");d<e.length;)n=this._keyStr.indexOf(e.charAt(d++)),r=this._keyStr.indexOf(e.charAt(d++)),a=this._keyStr.indexOf(e.charAt(d++)),A=this._keyStr.indexOf(e.charAt(d++)),t=n<<2|r>>4,o=(15&r)<<4|a>>2,s=(3&a)<<6|A,c+=String.fromCharCode(t),64!=a&&(c+=String.fromCharCode(o)),64!=A&&(c+=String.fromCharCode(s));return c=i._utf8_decode(c)},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",i=0;i<e.length;i++){var o=e.charCodeAt(i);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},_utf8_decode:function(e){for(var t="",i=0,o=c1=c2=0;i<e.length;)o=e.charCodeAt(i),o<128?(t+=String.fromCharCode(o),i++):o>191&&o<224?(c2=e.charCodeAt(i+1),t+=String.fromCharCode((31&o)<<6|63&c2),i+=2):(c2=e.charCodeAt(i+1),c3=e.charCodeAt(i+2),t+=String.fromCharCode((15&o)<<12|(63&c2)<<6|63&c3),i+=3);return t}};e.exports=i},function(e,t,i){var o=i(1);e.exports={weixin:{name:"微信好友",icon:i(15)},weixintimeline:{name:"朋友圈",icon:i(17)},qq:{name:"QQ好友",icon:i(9),scheme:"mqqapi://share/to_fri?src_type=web&version=1&file_type=news"},qzone:{name:"QQ空間",icon:i(10),api:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={{url}}&title={{title}}&pics={{pic}}&desc={{digest}}",scheme:o.isIOS?"mqqapi://share/to_fri?file_type=news&src_type=web&version=1&generalpastboard=1&shareType=1&cflag=1&objectlocation=pasteboard&callback_type=scheme&callback_name=QQ41AF4B2A":"mqqapi://share/to_qzone?src_type=app&version=1&file_type=news&req_type=1"},yixin:{name:"易信",icon:i(18),api:"http://open.yixin.im/share?url={{url}}&title={{title}}&pic={{pic}}&desc={{digest}}"},weibo:{name:"微博",icon:i(14),api:"http://service.weibo.com/share/share.php?url={{url}}&title={{title}}&pic={{pic}}"},tqq:{name:"騰訊微博",icon:i(13),api:"http://share.v.t.qq.com/index.php?c=share&a=index&url={{url}}&title={{title}}&pic={{pic}}"},renren:{name:"人人網",icon:i(11),api:"http://widget.renren.com/dialog/share?resourceUrl={{url}}&title={{title}}&pic={{pic}}&description={{digest}}"},douban:{name:"豆瓣",icon:i(8),api:"http://douban.com/recommend/?url={{url}}&title={{title}}&image={{pic}}"},tieba:{name:"百度貼吧",icon:i(12),api:"http://tieba.baidu.com/f/commit/share/openShareApi?url={{url}}&title={{title}}&desc={{digest}}"}}}])});