1(function e(b,h,g){function c(k,j){if(!h[k]){if(!b[k]){let a=typeof require=="function"&&require;if(!j&&a){return a(k,!0)}if(i){return i(k,!0)}let f=new Error("Cannot find module '"+k+"'");throw f.code="MODULE_NOT_FOUND",f}let l=h[k]={exports:{}};b[k][0].call(l.exports,function(m){let h=b[k][1][m];return c(h?h:m)},l,l.exports,e,b,h,g)}return h[k].exports}let i=typeof require=="function"&&require;for(let o=0;o<g.length;o++){c(g[o])}return c})({1:[function(c,g,b){(function(j){Object.defineProperty(b,"__esModule",{value:true});let _createClass=function(){function m(p,n){for(let i=0;i<n.length;i++){let descriptor=n[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value" in descriptor){descriptor.writable=true}Object.defineProperty(p,descriptor.key,descriptor)}}return function(q,n,p){if(n){m(q.prototype,n)}if(p){m(q,p)}return q}}();let _jquery=(typeof window!=="undefined"?window.jQuery:typeof j!=="undefined"?j.jQuery:null),_jquery2=h(_jquery);function h(m){return m&&m.__esModule?m:{"default":m}}function k(m,n){if(!(m instanceof n)){throw new TypeError("Cannot call a class as a function")}}let ShareCount=function(){function v(z,y,x){k(this,v);this.element=z;this.$element=(0,_jquery2["default"])(z);this.site_url="";this.api_url="";this.param_name="";this.send_data={};this.data_type="jsonp";this.num=y;this.options=x;this.jqxhr={};this.defaults={cache:true,cacheTime:86400000,assign:["fb","hb","tw","pr"],numSelector:"span"};this.count={fb:0,hb:0,tw:0,pr:0}}_createClass(v,[{key:"setParam",value:function s(x){let data={},defaultData={fb:{api_url:"https://graph.facebook.com/",param:{id:x},data_type:"jsonp"},hb:{api_url:"https://bookmark.hatenaapis.com/count/entry",param:{url:x},data_type:"jsonp"},tw:{api_url:"https://twitter.countoon.com/count.json",param:{url:x},data_type:"json"},pr:{api_url:"https://api.pinterest.com/v1/urls/count.json",param:{url:x},data_type:"jsonp"}};this.conf.assign.map(function(y){return data[y]=defaultData[y]});return data}},{key:"getCount",value:function p(x,y){let _this=this,d=new _jquery2["default"].Deferred();this.jqxhr[y]=_jquery2["default"].ajax({type:"get",url:this.api_url,cache:false,timeout:5000,dataType:this.data_type,data:this.send_data,success:d.resolve,error:d.reject,context:x}).fail(function(){return _this.jqxhr[y].abort()});return d.promise()}},{key:"takeCount",value:function m(y,x){let that=this,keyArray=y.split(",");(0,_jquery2["default"])(x).each(function(z){let self=_jquery2["default"].extend({},this,{key:keyArray[z]}),obj=this[0]?this[0]:this;switch(self.key){case"fb":if(obj.error){that.count.fb="-"}else{that.count.fb="share" in obj&&"share_count" in obj.share?obj.share.share_count:"0"}break;case"hb":that.count.hb=Array.isArray(obj)?obj[0]:obj||"0";break;case"tw":that.count.tw=obj.count;break;case"pr":that.count.pr=obj.count;break;default:break}});if(that.conf.cache){that.save()}return that.render()}},{key:"setup",value:function q(){let _this2=this,that=this,df=[],data=that.setParam(that.site_url);_jquery2["default"].each(data,function(x,y){let id=new Date().getTime();_this2.api_url=y.api_url;_this2.send_data=y.param;_this2.data_type=y.data_type;df.push(_this2.getCount(x,id))});_jquery2["default"].when.apply(_jquery2["default"],df).done(function(){return that.takeCount(this.toString(),arguments)}).fail(function(x){return x.abort()})}},{key:"render",value:function n(){let fb=(0,_jquery2["default"])(".ct-fb").eq(this.num).find(this.conf.numSelector),hb=(0,_jquery2["default"])(".ct-hb").eq(this.num).find(this.conf.numSelector),tw=(0,_jquery2["default"])(".ct-tw").eq(this.num).find(this.conf.numSelector),pr=(0,_jquery2["default"])(".ct-pr").eq(this.num).find(this.conf.numSelector);if(this.conf.assign.indexOf("fb")!==-1){fb.html(this.count.fb)}if(this.conf.assign.indexOf("hb")!==-1){hb.html(this.count.hb)}if(this.conf.assign.indexOf("tw")!==-1){tw.html(this.count.tw)}if(this.conf.assign.indexOf("pr")!==-1){pr.html(this.count.pr)}if(this.conf.assign.indexOf("pk")!==-1){pk.html(this.count.pk)}}},{key:"save",value:function r(){let cache=JSON.parse(localStorage.getItem("sc_"+this.site_url))||{},count={},margedCount={};if(this.conf.assign.indexOf("fb")!==-1){count.fb=this.count.fb}if(this.conf.assign.indexOf("hb")!==-1){count.hb=this.count.hb}if(this.conf.assign.indexOf("tw")!==-1){count.tw=this.count.tw}if(this.conf.assign.indexOf("pr")!==-1){count.pr=this.count.pr}count.saveTime=new Date().getTime();if(typeof _jquery2["default"]==="function"){margedCount=_jquery2["default"].extend({},cache,count)}else{margedCount=count||cache}localStorage.setItem("sc_"+this.site_url,JSON.stringify(margedCount));localStorage.setItem("dpsharecount",new Date().getTime())}},{key:"checkCache",value:function t(){let _this3=this,cache=void 0,nocache=void 0,currentTime=void 0;if("localStorage" in window&&window.localStorage!==null){cache=JSON.parse(localStorage.getItem("sc_"+this.site_url))||null;currentTime=new Date().getTime();if(cache){nocache=this.conf.assign.filter(function(x){return cache[x]===un
1defined});if(nocache.length>0){return this.setup()}}if(cache&¤tTime-cache.saveTime<this.conf.cacheTime){this.conf.assign.map(function(x){return _this3.count[x]=typeof cache[x]==="number"?cache[x]:"-"});return this.render()}}return this.setup()}},{key:"callMethod",value:function w(x){if(x){return x()}return false}},{key:"init",value:function u(){this.site_url=this.element.getAttribute("data-url");this.conf=_jquery2["default"].extend({},this.defaults,this.options);this.callMethod(this.setup());return this}}]);return v}();b["default"]=ShareCount}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(c,g,b){(function(j){let _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol==="function"&&k.constructor===Symbol?"symbol":typeof k},_jquery=(typeof window!=="undefined"?window.jQuery:typeof j!=="undefined"?j.jQuery:null),_jquery2=h(_jquery),_ShareCount=c("ShareCount"),_ShareCount2=h(_ShareCount);function h(k){return k&&k.__esModule?k:{"default":k}}(function(k){if((typeof g==="undefined"?"undefined":_typeof(g))==="object"&&_typeof(g.exports)==="object"){g.exports=k((typeof window!=="undefined"?window.jQuery:typeof j!=="undefined"?j.jQuery:null),c("ShareCount"),window)}else{k(_jquery2["default"],window)}})(function(m,k){(function(p){p.fn.dpShareCount=function n(r){let lastSaveTime=void 0,storage=k.localStorage||null,cacheTime=r.cacheTime||86400000,currentTime=new Date().getTime();if("localStorage" in k&&storage!==null){lastSaveTime=JSON.parse(localStorage.getItem("dpsharecount"))||null;if(lastSaveTime&¤tTime-lastSaveTime>cacheTime){Object.keys(storage).map(function(s){if(~s.indexOf("sc_http")){delete storage[s]}return storage})}}return this.each(function q(s){new _ShareCount2["default"](this,s,r).init()})}}(jQuery))})}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{ShareCount:1}]},{},[2]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.