/* share_ver20200821 */ !function(r){"use strict";function t(t,e,n,o){function i(r,t){return r-=o,t-=o,!(0>r||r>=u||0>t||t>=u)&&a.isDark(r,t)}var a=r(n,e);a.addData(t),a.make(),o=o||0;var u=a.getModuleCount(),f=a.getModuleCount()+2*o,c=function(r,t,e,n){var o=this.isDark,i=1/f;this.isDark=function(a,u){var f=u*i,c=a*i,s=f+i,l=c+i;return o(a,u)&&(r>s||f>e||t>l||c>n)}};this.text=t,this.level=e,this.version=n,this.moduleCount=f,this.isDark=i,this.addBlank=c}function e(r,e,n,o,i){n=Math.max(1,n||1),o=Math.min(40,o||40);for(var a=n;o>=a;a+=1)try{return new t(r,e,a,i)}catch(r){}}function n(r,t,e){var n=e.size,o="bold "+e.mSize*n+"px "+e.fontname,i=p("")[0].getContext("2d");i.font=o;var a=i.measureText(e.label).width,u=e.mSize,f=a/n,c=(1-f)*e.mPosX,s=(1-u)*e.mPosY,l=c+f,h=s+u,d=.01;1===e.mode?r.addBlank(0,s-d,n,h+d):r.addBlank(c-d,s-d,l+d,h+d),t.fillStyle=e.fontcolor,t.font=o,t.fillText(e.label,c*n,s*n+.75*e.mSize*n)}function o(r,t,e){var n=e.size,o=e.image.naturalWidth||1,i=e.image.naturalHeight||1,a=e.mSize,u=a*o/i,f=(1-u)*e.mPosX,c=(1-a)*e.mPosY,s=f+u,l=c+a,h=.01;3===e.mode?r.addBlank(0,c-h,n,l+h):r.addBlank(f-h,c-h,s+h,l+h),t.drawImage(e.image,f*n,c*n,u*n,a*n)}function i(r,t,e){p(e.background).is("img")?t.drawImage(e.background,0,0,e.size,e.size):e.background&&(t.fillStyle=e.background,t.fillRect(e.left,e.top,e.size,e.size));var i=e.mode;1===i||2===i?n(r,t,e):(3===i||4===i)&&o(r,t,e)}function a(r,t,e,n,o,i,a,u){r.isDark(a,u)&&t.rect(n,o,i,i)}function u(r,t,e,n,o,i,a,u,f,c){a?r.moveTo(t+i,e):r.moveTo(t,e),u?(r.lineTo(n-i,e),r.arcTo(n,e,n,o,i)):r.lineTo(n,e),f?(r.lineTo(n,o-i),r.arcTo(n,o,t,o,i)):r.lineTo(n,o),c?(r.lineTo(t+i,o),r.arcTo(t,o,t,e,i)):r.lineTo(t,o),a?(r.lineTo(t,e+i),r.arcTo(t,e,n,e,i)):r.lineTo(t,e)}function f(r,t,e,n,o,i,a,u,f,c){a&&(r.moveTo(t+i,e),r.lineTo(t,e),r.lineTo(t,e+i),r.arcTo(t,e,t+i,e,i)),u&&(r.moveTo(n-i,e),r.lineTo(n,e),r.lineTo(n,e+i),r.arcTo(n,e,n-i,e,i)),f&&(r.moveTo(n-i,o),r.lineTo(n,o),r.lineTo(n,o-i),r.arcTo(n,o,n-i,o,i)),c&&(r.moveTo(t+i,o),r.lineTo(t,o),r.lineTo(t,o-i),r.arcTo(t,o,t+i,o,i))}function c(r,t,e,n,o,i,a,c){var s=r.isDark,l=n+i,h=o+i,d=e.radius*i,g=a-1,v=a+1,p=c-1,w=c+1,m=s(a,c),T=s(g,p),y=s(g,c),E=s(g,w),A=s(a,w),B=s(v,w),k=s(v,c),b=s(v,p),C=s(a,p);m?u(t,n,o,l,h,d,!y&&!C,!y&&!A,!k&&!A,!k&&!C):f(t,n,o,l,h,d,y&&C&&T,y&&A&&E,k&&A&&B,k&&C&&b)}function s(r,t,e){var n,o,i=r.moduleCount,u=e.size/i,f=a;for(m&&e.radius>0&&e.radius<=.5&&(f=c),t.beginPath(),n=0;i>n;n+=1)for(o=0;i>o;o+=1){var s=e.left+o*u,l=e.top+n*u,h=u;f(r,t,e,s,l,h,n,o)}if(p(e.fill).is("img")){t.strokeStyle="rgba(0,0,0,0.5)",t.lineWidth=2,t.stroke();var d=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",t.fill(),t.globalCompositeOperation=d,t.clip(),t.drawImage(e.fill,0,0,e.size,e.size),t.restore()}else t.fillStyle=e.fill,t.fill()}function l(r,t){var n=e(t.text,t.ecLevel,t.minVersion,t.maxVersion,t.quiet);if(!n)return null;var o=p(r).data("qrcode",n),a=o[0].getContext("2d");return i(n,a,t),s(n,a,t),o}function h(r){var t=p("").attr("width",r.size).attr("height",r.size);return l(t,r)}function d(r){return p("").attr("src",h(r)[0].toDataURL("image/png"))}function g(r){var t=e(r.text,r.ecLevel,r.minVersion,r.maxVersion,r.quiet);if(!t)return null;var n,o,i=r.size,a=r.background,u=Math.floor,f=t.moduleCount,c=u(i/f),s=u(.5*(i-c*f)),l={position:"relative",left:0,top:0,padding:0,margin:0,width:i,height:i},h={position:"absolute",padding:0,margin:0,width:c,height:c,"background-color":r.fill},d=p("
").data("qrcode",t).css(l);for(a&&d.css("background-color",a),n=0;f>n;n+=1)for(o=0;f>o;o+=1)t.isDark(n,o)&&p("
").css(h).css({left:s+o*c,top:s+n*c}).appendTo(d);return d}function v(r){return w&&"canvas"===r.render?h(r):w&&"image"===r.render?d(r):g(r)}var p=jQuery,w=function(){var r=document.createElement("canvas");return Boolean(r.getContext&&r.getContext("2d"))}(),m="[object Opera]"!==Object.prototype.toString.call(window.opera),T={render:"canvas",minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:0,quiet:0,mode:0,mSize:.1,mPosX:.5,mPosY:.5,label:"no label",fontname:"sans",fontcolor:"#000",image:null};p.fn.qrcode=function(r){var t=p.extend({},T,r);return this.each(function(){"canvas"===this.nodeName.toLowerCase()?l(this,t):p(this).append(v(t))})}}(function(){var r=function(){function r(t,e){if("undefined"==typeof t.length)throw new Error(t.length+"/"+e);var n=function(){for(var r=0;re;e+=1){t[e]=new Array(r);for(var n=0;r>n;n+=1)t[e][n]=null}return t}(d),T(0,0),T(d-7,0),T(0,d-7),A(),E(),k(r,t),s>=7&&B(r),null==v&&(v=M(s,l,p)),b(v,t)},T=function(r,t){for(var e=-1;7>=e;e+=1)if(!(-1>=r+e||r+e>=d))for(var n=-1;7>=n;n+=1)-1>=t+n||t+n>=d||(e>=0&&6>=e&&(0==n||6==n)||n>=0&&6>=n&&(0==e||6==e)||e>=2&&4>=e&&n>=2&&4>=n?h[r+e][t+n]=!0:h[r+e][t+n]=!1)},y=function(){for(var r=0,t=0,e=0;8>e;e+=1){m(!0,e);var n=i.getLostPoint(w);(0==e||r>n)&&(r=n,t=e)}return t},E=function(){for(var r=8;d-8>r;r+=1)null==h[r][6]&&(h[r][6]=r%2==0);for(var t=8;d-8>t;t+=1)null==h[6][t]&&(h[6][t]=t%2==0)},A=function(){for(var r=i.getPatternPosition(s),t=0;t=a;a+=1)for(var u=-2;2>=u;u+=1)-2==a||2==a||-2==u||2==u||0==a&&0==u?h[n+a][o+u]=!0:h[n+a][o+u]=!1}},B=function(r){for(var t=i.getBCHTypeNumber(s),e=0;18>e;e+=1){var n=!r&&1==(t>>e&1);h[Math.floor(e/3)][e%3+d-8-3]=n}for(var e=0;18>e;e+=1){var n=!r&&1==(t>>e&1);h[e%3+d-8-3][Math.floor(e/3)]=n}},k=function(r,t){for(var e=l<<3|t,n=i.getBCHTypeInfo(e),o=0;15>o;o+=1){var a=!r&&1==(n>>o&1);6>o?h[o][8]=a:8>o?h[o+1][8]=a:h[d-15+o][8]=a}for(var o=0;15>o;o+=1){var a=!r&&1==(n>>o&1);8>o?h[8][d-o-1]=a:9>o?h[8][15-o-1+1]=a:h[8][15-o-1]=a}h[d-8][8]=!r},b=function(r,t){for(var e=-1,n=d-1,o=7,a=0,u=i.getMaskFunction(t),f=d-1;f>0;f-=2)for(6==f&&(f-=1);;){for(var c=0;2>c;c+=1)if(null==h[n][f-c]){var s=!1;a>>o&1));var l=u(n,f-c);l&&(s=!s),h[n][f-c]=s,o-=1,-1==o&&(a+=1,o=7)}if(n+=e,0>n||n>=d){n-=e,e=-e;break}}},C=function(t,e){for(var n=0,o=0,a=0,u=new Array(e.length),f=new Array(e.length),c=0;c=0?v.getAt(p):0}}for(var w=0,h=0;hh;h+=1)for(var c=0;ch;h+=1)for(var c=0;c8*h)throw new Error("code length overflow. ("+c.getLengthInBits()+">"+8*h+")");for(c.getLengthInBits()+4<=8*h&&c.put(0,4);c.getLengthInBits()%8!=0;)c.putBit(!1);for(;!(c.getLengthInBits()>=8*h)&&(c.put(o,8),!(c.getLengthInBits()>=8*h));)c.put(a,8);return C(c,n)};return w.addData=function(r){var t=c(r);p.push(t),v=null},w.isDark=function(r,t){if(0>r||r>=d||0>t||t>=d)throw new Error(r+","+t);return h[r][t]},w.getModuleCount=function(){return d},w.make=function(){m(!1,y())},w.createTableTag=function(r,t){r=r||2,t="undefined"==typeof t?4*r:t;var e="";e+='";for(var o=0;o';e+=""}return e+="",e+="
"},w.createImgTag=function(r,t){r=r||2,t="undefined"==typeof t?4*r:t;var e=w.getModuleCount()*r+2*t,n=t,o=e-t;return g(e,e,function(t,e){if(t>=n&&o>t&&e>=n&&o>e){var i=Math.floor((t-n)/r),a=Math.floor((e-n)/r);return w.isDark(a,i)?0:1}return 1})},w};t.stringToBytes=function(r){for(var t=new Array,e=0;ei)t.push(i);else{var a=e[r.charAt(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(n)}}return t}};var e={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},i=function(){var t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,i=7973,u=21522,f={},c=function(r){for(var t=0;0!=r;)t+=1,r>>>=1;return t};return f.getBCHTypeInfo=function(r){for(var t=r<<10;c(t)-c(n)>=0;)t^=n<=0;)t^=i<n;n+=1)e=e.multiply(r([1,a.gexp(n)],0));return e},f.getLengthInBits=function(r,t){if(t>=1&&10>t)switch(r){case e.MODE_NUMBER:return 10;case e.MODE_ALPHA_NUM:return 9;case e.MODE_8BIT_BYTE:return 8;case e.MODE_KANJI:return 8;default:throw new Error("mode:"+r)}else if(27>t)switch(r){case e.MODE_NUMBER:return 12;case e.MODE_ALPHA_NUM:return 11;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 10;default:throw new Error("mode:"+r)}else{if(!(41>t))throw new Error("type:"+t);switch(r){case e.MODE_NUMBER:return 14;case e.MODE_ALPHA_NUM:return 13;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 12;default:throw new Error("mode:"+r)}}},f.getLostPoint=function(r){for(var t=r.getModuleCount(),e=0,n=0;t>n;n+=1)for(var o=0;t>o;o+=1){for(var i=0,a=r.isDark(n,o),u=-1;1>=u;u+=1)if(!(0>n+u||n+u>=t))for(var f=-1;1>=f;f+=1)0>o+f||o+f>=t||(0!=u||0!=f)&&a==r.isDark(n+u,o+f)&&(i+=1);i>5&&(e+=3+i-5)}for(var n=0;t-1>n;n+=1)for(var o=0;t-1>o;o+=1){var c=0;r.isDark(n,o)&&(c+=1),r.isDark(n+1,o)&&(c+=1),r.isDark(n,o+1)&&(c+=1),r.isDark(n+1,o+1)&&(c+=1),(0==c||4==c)&&(e+=3)}for(var n=0;t>n;n+=1)for(var o=0;t-6>o;o+=1)r.isDark(n,o)&&!r.isDark(n,o+1)&&r.isDark(n,o+2)&&r.isDark(n,o+3)&&r.isDark(n,o+4)&&!r.isDark(n,o+5)&&r.isDark(n,o+6)&&(e+=40);for(var o=0;t>o;o+=1)for(var n=0;t-6>n;n+=1)r.isDark(n,o)&&!r.isDark(n+1,o)&&r.isDark(n+2,o)&&r.isDark(n+3,o)&&r.isDark(n+4,o)&&!r.isDark(n+5,o)&&r.isDark(n+6,o)&&(e+=40);for(var s=0,o=0;t>o;o+=1)for(var n=0;t>n;n+=1)r.isDark(n,o)&&(s+=1);var l=Math.abs(100*s/t/t-50)/5;return e+=10*l},f}(),a=function(){for(var r=new Array(256),t=new Array(256),e=0;8>e;e+=1)r[e]=1<e;e+=1)r[e]=r[e-4]^r[e-5]^r[e-6]^r[e-8];for(var e=0;255>e;e+=1)t[r[e]]=e;var n={};return n.glog=function(r){if(1>r)throw new Error("glog("+r+")");return t[r]},n.gexp=function(t){for(;0>t;)t+=255;for(;t>=256;)t-=255;return r[t]},n}(),u=function(){var r=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(r,t){var e={};return e.totalCount=r,e.dataCount=t,e},e={},o=function(t,e){switch(e){case n.L:return r[4*(t-1)+0];case n.M:return r[4*(t-1)+1];case n.Q:return r[4*(t-1)+2];case n.H:return r[4*(t-1)+3];default:return}};return e.getRSBlocks=function(r,e){var n=o(r,e);if("undefined"==typeof n)throw new Error("bad rs block @ typeNumber:"+r+"/errorCorrectLevel:"+e);for(var i=n.length/3,a=new Array,u=0;i>u;u+=1)for(var f=n[3*u+0],c=n[3*u+1],s=n[3*u+2],l=0;f>l;l+=1)a.push(t(c,s));return a},e}(),f=function(){var r=new Array,t=0,e={};return e.getBuffer=function(){return r},e.getAt=function(t){var e=Math.floor(t/8);return 1==(r[e]>>>7-t%8&1)},e.put=function(r,t){for(var n=0;t>n;n+=1)e.putBit(1==(r>>>t-n-1&1))},e.getLengthInBits=function(){return t},e.putBit=function(e){var n=Math.floor(t/8);r.length<=n&&r.push(0),e&&(r[n]|=128>>>t%8),t+=1},e},c=function(r){var n=e.MODE_8BIT_BYTE,o=t.stringToBytes(r),i={};return i.getMode=function(){return n},i.getLength=function(r){return o.length},i.write=function(r){for(var t=0;t>>8)},t.writeBytes=function(r,e,n){e=e||0,n=n||r.length;for(var o=0;n>o;o+=1)t.writeByte(r[o+e])},t.writeString=function(r){for(var e=0;e0&&(t+=","),t+=r[e];return t+="]"},t},l=function(){var r=0,t=0,e=0,n="",o={},i=function(r){n+=String.fromCharCode(a(63&r))},a=function(r){if(0>r);else{if(26>r)return 65+r;if(52>r)return 97+(r-26);if(62>r)return 48+(r-52);if(62==r)return 43;if(63==r)return 47}throw new Error("n:"+r)};return o.writeByte=function(n){for(r=r<<8|255&n,t+=8,e+=1;t>=6;)i(r>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(r<<6-t),r=0,t=0),e%3!=0)for(var o=3-e%3,a=0;o>a;a+=1)n+="="},o.toString=function(){return n},o},h=function(r){var t=r,e=0,n=0,o=0,i={};i.read=function(){for(;8>o;){if(e>=t.length){if(0==o)return-1;throw new Error("unexpected end of file./"+o)}var r=t.charAt(e);if(e+=1,"="==r)return o=0,-1;r.match(/^\s$/)||(n=n<<6|a(r.charCodeAt(0)),o+=6)}var i=n>>>o-8&255;return o-=8,i};var a=function(r){if(r>=65&&90>=r)return r-65;if(r>=97&&122>=r)return r-97+26;if(r>=48&&57>=r)return r-48+52;if(43==r)return 62;if(47==r)return 63;throw new Error("c:"+r)};return i},d=function(r,t){var e=r,n=t,o=new Array(r*t),i={};i.setPixel=function(r,t,n){o[t*e+r]=n},i.write=function(r){r.writeString("GIF87a"),r.writeShort(e),r.writeShort(n),r.writeByte(128),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(255),r.writeByte(255),r.writeByte(255),r.writeString(","),r.writeShort(0),r.writeShort(0),r.writeShort(e),r.writeShort(n),r.writeByte(0);var t=2,o=u(t);r.writeByte(t);for(var i=0;o.length-i>255;)r.writeByte(255),r.writeBytes(o,i,255),i+=255;r.writeByte(o.length-i),r.writeBytes(o,i,o.length-i),r.writeByte(0),r.writeString(";")};var a=function(r){var t=r,e=0,n=0,o={};return o.write=function(r,o){if(r>>>o!=0)throw new Error("length over");for(;e+o>=8;)t.writeByte(255&(r<>>=8-e,n=0,e=0;n|=r<0&&t.writeByte(n)},o},u=function(r){for(var t=1<u;u+=1)i.add(String.fromCharCode(u));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(e));var c=s(),l=a(c);l.write(t,n);var h=0,d=String.fromCharCode(o[h]);for(h+=1;hi;i+=1)for(var a=0;r>a;a+=1)o.setPixel(a,i,e(a,i));var u=s();o.write(u);for(var f=l(),c=u.toByteArray(),h=0;hn?t.push(n):2048>n?t.push(192|n>>6,128|63&n):55296>n||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(e++,n=65536+((1023&n)<<10|1023&r.charCodeAt(e)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}return t(r)}}(r),r}()),function(r){r.fn.share=function(t){function e(t,e){var n=o(e);"prepend"==e.mode?n.reverse():n,n.length&&r.each(n,function(n,o){var a=i(o,e),u=e.initialized?t.find(".icon-"+o):r('');return!u.length||(u.prop("aria-label","分享到 "+h[o]),u.prop("href",a),"wechat"===o?u.prop("tabindex",-1):u.prop("target","_blank"),void(e.initialized||("prepend"==e.mode?t.prepend(u):t.append(u))))})}function n(r,t){var e=r.find("a.icon-wechat");e.length&&(e.append('

'+t.wechatQrcodeTitle+'

'+t.wechatQrcodeHelper+"
"),e.find(".qrcode").qrcode({render:"image",size:t.wechatQrcodeSize,text:t.url}),e.offset().top<100&&e.find(".wechat-qrcode").addClass("bottom"))}function o(t){0===t.mobileSites.length&&t.sites.length&&(t.mobileSites=t.sites);var e=(u()?t.mobileSites:t.sites.length?t.sites:[]).slice(0),n=t.disabled;return"string"==typeof e&&(e=e.split(/\s*,\s*/)),"string"==typeof n&&(n=n.split(/\s*,\s*/)),a()&&n.push("wechat"),n.length&&r.each(n,function(t,n){var o=r.inArray(n,e);o!==-1&&e.splice(o,1)}),e}function i(r,t){var e=l[r];t.summary=t.description;for(var n in t)if(t.hasOwnProperty(n)){var o=r+n.replace(/^[a-z]/,function(r){return r.toUpperCase()}),i=encodeURIComponent(void 0===t[o]?t[n]:t[o]);e=e.replace(new RegExp("{{"+n.toUpperCase()+"}}","g"),i)}return e}function a(){return/MicroMessenger/i.test(navigator.userAgent)}function u(){return r(window).width()<=768}var f=r(document.head),c={url:location.href,site_url:location.origin,source:r("meta[name=site], meta[name=Site]").attr("content")||document.title,title:f.find("[name=title], [name=Title]").attr("content")||document.title,description:r("meta[name=description], meta[name=Description]").attr("content")||"",image:r("img:first").prop("src")||"",imageSelector:void 0,weiboKey:"",wechatQrcodeTitle:"微信扫一扫:分享",wechatQrcodeHelper:"

微信里点“发现”,扫一下

二维码便可将本文分享至朋友圈。

",wechatQrcodeSize:100,mobileSites:[],sites:["weibo","qq","wechat","douban","qzone","linkedin","facebook","twitter","google"],disabled:[],initialized:!1},s=r.extend({},c,t),l={qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={{URL}}&title={{TITLE}}&desc=&summary={{SUMMARY}}&site={{SOURCE}}",qq:"http://connect.qq.com/widget/shareqq/index.html?url={{URL}}&title={{TITLE}}&desc=&summary={{DESCRIPTION}}&pics={{IMAGE}}",weibo:"http://service.weibo.com/share/share.php?url={{URL}}&title={{TITLE}}&pic={{IMAGE}}&appkey={{WEIBOKEY}}",wechat:"javascript:;",douban:"http://shuo.douban.com/!service/share?href={{URL}}&name={{TITLE}}&text={{DESCRIPTION}}&image={{IMAGE}}&starid=0&aid=0&style=11",linkedin:"http://www.linkedin.com/shareArticle?mini=true&ro=true&title={{TITLE}}&url={{URL}}&summary={{SUMMARY}}&source={{SOURCE}}&armin=armin",facebook:"https://www.facebook.com/sharer/sharer.php?u={{URL}}&title={{TITLE}}&description={{DESCRIPTION}}&caption={{SUBHEAD}}&link={{URL}}&picture={{IMAGE}}",twitter:"https://twitter.com/intent/tweet?text={{TITLE}}&url={{URL}}&via={{SITE_URL}}",google:"https://plus.google.com/share?url={{URL}}"},h={qzone:"QQ空间",qq:"QQ",weibo:"微博",wechat:"微信",douban:"豆瓣",linkedin:"LinkedIn",facebook:"Facebook",twitter:"Twitter",google:"Google"};this.each(function(){if(r(this).data("initialized"))return!0;var t=r.extend({},s,r(this).data());t.imageSelector&&(t.image=r(t.imageSelector).map(function(){return r(this).prop("src")}).get().join("||"));var o=r(this).addClass("share-component social-share");e(o,t),n(o,t),r(this).data("initialized",!0)})},r(function(){r(".share-component,.social-share").share()})}(jQuery); /*! * clipboard.js v2.0.6 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return o={},r.m=n=[function(t,e){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=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();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},function(t,e){function n(){}n.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o#i_share{font-size:.875rem;position:fixed;width:100%;text-align:center;bottom:0;z-index:1000;left:0;height:100%;background-color:rgba(0,0,0,.5)}#i_share *{box-sizing:border-box}#i_share .hide,#i_share.hide{display:none}#i_share:after{display:inline-block;height:100%;margin-left:-.05em;content:'';vertical-align:middle}#i_share>div{position:absolute;bottom:0;width:100%;background-color:#fff}#i_share .sharetip{position:fixed;top:10px;right:10px;color:#fff}#i_share .share-error-tip{position:absolute;height:calc(100% - 2rem);width:100%;top:0;left:0;z-index:1001;background-color:#fff;padding-top:4rem}#i_share .label{padding:1.12rem 0;color:#333}#i_share .list{padding:1.5rem 0 1rem}#i_share .list div{width:33.33%;display:inline-block;text-align:center;margin-bottom:.875rem}#i_share .list div i{width:3rem;height:3rem;display:block;margin:0 auto;margin-bottom:.5rem}#i_share .cancel{line-height:1.95833rem;text-align:center;border-top:1px solid #e1e1e1}#i_share .cancel a{display:block}#i_share .clipboard i{background-image: url(\"data:image/svg+xml,%3Csvg t='1598001517886' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='7665' width='48' height='48'%3E%3Cpath d='M513.020937 515.57328m-508.42672 0a508.42672 508.42672 0 1 0 1016.85344 0 508.42672 508.42672 0 1 0-1016.85344 0Z' fill='%23aaa' p-id='7666'%3E%3C/path%3E%3Cpath d='M684.027916 337.419741H398.675972c-33.690927 0-61.256231 27.565304-61.256231 61.256231V684.027916c0 33.690927 27.565304 61.256231 61.256231 61.256232H684.027916c33.690927 0 61.256231-27.565304 61.256232-61.256232V398.675972c0-33.690927-27.565304-61.256231-61.256232-61.256231m0 40.837487c11.230309 0 20.418744 9.188435 20.418744 20.418744V684.027916c0 11.230309-9.188435 20.418744-20.418744 20.418744H398.675972c-11.230309 0-20.418744-9.188435-20.418744-20.418744V398.675972c0-11.230309 9.188435-20.418744 20.418744-20.418744H684.027916' fill='%23FFFFFF' p-id='7667'%3E%3C/path%3E%3Cpath d='M337.419741 622.771685h-20.418744c-11.230309 0-20.418744-9.188435-20.418744-20.418744V317.000997c0-11.230309 9.188435-20.418744 20.418744-20.418744H602.352941c11.230309 0 20.418744 9.188435 20.418744 20.418744v20.418744h40.837487v-20.418744c0-33.690927-27.565304-61.256231-61.256231-61.256231H317.000997c-33.690927 0-61.256231 27.565304-61.256231 61.256231V602.352941c0 33.690927 27.565304 61.256231 61.256231 61.256231h20.418744v-40.837487z' fill='%23FFFFFF' p-id='7668'%3E%3C/path%3E%3Cpath d='M520.677966 622.771685V459.421735c0-11.230309 9.188435-20.418744 20.418744-20.418744s20.418744 9.188435 20.418744 20.418744v163.34995c0 11.230309-9.188435 20.418744-20.418744 20.418744s-19.908275-9.188435-20.418744-20.418744' fill='%23FFFFFF' p-id='7669'%3E%3C/path%3E%3Cpath d='M622.771685 561.515454H459.421735c-11.230309 0-20.418744-9.188435-20.418744-20.418744s9.188435-20.418744 20.418744-20.418744h163.34995c11.230309 0 20.418744 9.188435 20.418744 20.418744s-8.677966 20.418744-20.418744 20.418744c0.510469 0 0 0 0 0' fill='%23FFFFFF' p-id='7670'%3E%3C/path%3E%3C/svg%3E\");background-size:cover}#i_share .weibo i{background-image: url(\"data:image/svg+xml,%3Csvg t='1598001021483' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='5848' width='48' height='48'%3E%3Cpath d='M512 1024C229.248 1024 0 794.752 0 512S229.248 0 512 0s512 229.248 512 512-229.248 512-512 512z m176.299-495.36c-27.222-5.248-13.995-19.627-13.995-19.627s26.581-43.093-5.29-74.538c-39.51-38.784-135.467 4.992-135.467 4.992-36.608 11.178-26.88-5.12-21.76-32.854 0-32.64-11.307-88.021-108.928-55.296-97.622 32.854-181.334 147.968-181.334 147.968-58.282 76.416-50.517 135.552-50.517 135.552C185.515 765.312 326.4 801.195 436.053 809.6c115.286 8.917 270.848-39.125 318.038-137.728 47.146-98.816-38.614-137.899-65.792-143.232z m59.093-59.307a19.328 19.328 0 0 0 19.115-16.384 7.253 7.253 0 0 0 0.298-2.048C781.355 320.341 659.5 342.784 659.5 342.784A19.499 19.499 0 0 0 640 362.411c0 10.752 8.661 19.456 19.499 19.456 87.552-19.286 68.266 68.01 68.266 68.01 0 10.838 8.747 19.456 19.627 19.456z m-32.768-208.938c-40.619-9.259-82.347-1.323-94.037 0.853-0.896 0.085-1.835 0.896-2.56 1.067-0.427 0.128-0.683 0.512-0.683 0.512a26.88 26.88 0 0 0-20.01 25.728c0 14.506 12.245 26.538 27.434 26.538 0 0 14.763-1.92 24.747-5.76s94.08-2.858 135.808 65.152c22.869 49.579 10.069 82.731 8.49 88.107 0 0-5.461 12.8-5.461 25.557 0 14.678 12.245 23.851 27.392 23.851 12.544 0 23.168-1.664 26.197-22.357h0.171c44.928-144.768-54.827-212.822-127.488-229.248z' fill='%23E5162D' p-id='5849'%3E%3C/path%3E%3Cpath d='M447.872 767.659C341.76 772.736 256 718.763 256 646.912c0-71.936 85.76-129.579 191.872-134.528C554.069 507.434 640 551.808 640 623.488c0 71.893-85.973 139.307-192.128 144.213zM299.093 664.32s1.366 26.453 29.568 44.672c47.83 30.933 124.886 15.659 164.566-26.795 39.68-42.453 20.266-150.784-96.598-123.05-110.378 26.197-97.536 105.173-97.536 105.173z m80.214 23.765c-21.888 7.168-39.638 0.982-45.312-11.221-5.675-12.16 0.725-32 21.29-40.79 20.566-8.831 36.523-4.906 46.934 7.98 10.41 12.842-0.939 36.863-22.87 44.031z m54.4-48.682c-8.107 5.12-15.915 4.352-19.414 0-3.541-4.31-2.986-12.928 4.48-18.56 7.382-5.632 14.208-5.675 19.712-1.536s3.328 14.976-4.778 20.053z' fill='%23E5162D' p-id='5850'%3E%3C/path%3E%3C/svg%3E\");background-size:cover}#i_share .weixin_timeline i{background-image: url(\"data:image/svg+xml,%3Csvg t='1597998970629' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='4137' width='48' height='48'%3E%3Cpath d='M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z' fill='%2308D106' p-id='4138'%3E%3C/path%3E%3Cpath d='M512.47104 184.58624c-12.4928 0-24.7808 0.73728-36.92544 2.12992-29.16352 3.2768-57.71264 10.52672-84.93056 21.504 0 0 220.9792 217.86624 226.816 225.85344V201.8304a235.97056 235.97056 0 0 0-20.19328-6.02112 327.35232 327.35232 0 0 0-84.76672-11.22304zM743.15776 279.18336c-8.92928-8.86784-18.2272-16.85504-27.648-24.576a330.3424 330.3424 0 0 0-75.32544-44.6464s1.59744 309.63712 0 319.3856l164.92544-164.352a237.64992 237.64992 0 0 0-10.01472-18.47296 334.2336 334.2336 0 0 0-51.93728-67.33824zM815.63648 391.10656S597.03296 611.26656 589.0048 617.12384h233.10336c2.33472-6.59456 4.3008-13.33248 6.06208-20.09088a321.7408 321.7408 0 0 0 9.15456-121.07776 327.96672 327.96672 0 0 0-21.66784-84.84864zM491.4176 641.47456l164.92544 164.352c6.32832-3.072 12.53376-6.38976 18.57536-9.97376a320.7168 320.7168 0 0 0 67.7888-51.77344 349.5936 349.5936 0 0 0 24.65792-27.58656 320.88064 320.88064 0 0 0 44.76928-75.01824c-0.06144 0-310.784 1.61792-320.7168 0zM406.79424 589.9264v232.2432c6.57408 2.3552 13.37344 4.25984 20.19328 6.02112a324.5056 324.5056 0 0 0 121.5488 9.09312 324.42368 324.42368 0 0 0 84.91008-21.504S412.71296 597.93408 406.79424 589.94688zM383.5904 492.9536l-164.92544 164.352c3.01056 6.2464 6.4512 12.4928 10.0352 18.49344a322.94912 322.94912 0 0 0 51.9168 67.62496c8.78592 8.86784 18.2272 16.85504 27.648 24.55552a325.55008 325.55008 0 0 0 75.34592 44.6464c0-0.2048-1.61792-309.82144 0-319.65184zM195.85024 427.33568a320.36864 320.36864 0 0 0-9.13408 121.07776c3.35872 29.696 10.6496 57.99936 21.56544 84.62336 0 0 218.39872-220.16 226.67264-225.87392H201.91232c-2.31424 6.63552-4.34176 13.35296-6.06208 20.1728zM347.5456 229.376a320.96256 320.96256 0 0 0-67.7888 51.8144c-8.92928 8.84736-16.9984 18.10432-24.65792 27.56608a320.77824 320.77824 0 0 0-44.76928 75.24352s310.70208-1.6384 320.7168 0l-164.92544-164.352c-6.28736 3.01056-12.4928 6.36928-18.57536 9.74848z' fill='%23FFFFFF' p-id='4139'%3E%3C/path%3E%3C/svg%3E\");background-size:cover}#i_share .weixin i{background-image: url(\"data:image/svg+xml,%3Csvg t='1598000919516' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='4971' width='48' height='48'%3E%3Cpath d='M538.122449 354.742857c-2.089796 17.240816-12.016327 28.734694-31.869388 27.689796-18.808163-1.044898-31.346939-10.44898-33.959183-29.257143-2.089796-16.718367 17.240816-31.346939 37.616326-30.302041 17.240816 0.522449 28.734694 13.061224 28.212245 31.869388zM340.636735 382.432653c-20.37551-1.044898-36.04898-9.926531-36.04898-30.302041s15.673469-29.257143 35.526531-29.257143 29.257143 9.926531 29.779592 28.212245-9.926531 30.302041-29.257143 31.346939z' fill='%2308D106' p-id='4972'%3E%3C/path%3E%3Cpath d='M610.220408 509.387755c5.746939 7.836735 6.269388 18.808163 0.522449 27.167347-6.269388 9.404082-16.195918 12.538776-28.734694 10.44898-12.016327-2.089796-18.808163-11.493878-18.808163-24.555102 0-11.493878 5.746939-20.37551 17.240816-22.465307 13.061224-2.612245 22.987755 0.522449 29.779592 9.404082z' fill='%230BD109' p-id='4973'%3E%3C/path%3E%3Cpath d='M743.967347 512c3.134694 6.269388 3.657143 13.061224 1.567347 19.330612-4.179592 10.971429-13.583673 16.195918-25.6 16.195919-12.538776 1.044898-24.032653-8.359184-24.555102-20.89796v-3.657142c-1.044898-12.016327 7.836735-22.465306 19.853061-23.510205h2.612245c12.016327-0.522449 20.897959 3.134694 26.122449 12.538776z' fill='%2309D107' p-id='4974'%3E%3C/path%3E%3Cpath d='M512 0C229.355102 0 0 229.355102 0 512s229.355102 512 512 512 512-229.355102 512-512S794.644898 0 512 0zM360.489796 626.416327c-22.465306-6.791837-47.020408-3.134694-66.873469 9.92653-14.628571 9.404082-30.82449 15.673469-50.155103 25.077551l21.942858-72.097959C229.877551 562.677551 200.097959 532.897959 183.379592 492.146939c-28.734694-70.530612-10.44898-146.808163 48.587755-204.8 112.326531-110.759184 323.918367-83.591837 401.240816 51.722449 8.881633 15.15102 15.15102 31.346939 17.763266 48.587755-165.616327-3.657143-248.685714 124.342857-219.428572 242.416326-23.510204 4.702041-48.065306 3.657143-71.053061-3.657142z m429.97551 70.530612c-7.836735 7.314286-15.673469 13.583673-24.555102 21.420408l17.240816 59.559184-65.828571-35.004082c-55.902041 17.240816-111.804082 17.240816-165.093878-7.314286-65.306122-30.302041-109.191837-78.889796-110.759183-153.6-1.567347-74.187755 38.661224-124.865306 102.922449-155.689796 77.844898-37.093878 155.689796-32.914286 227.265306 15.67347 96.130612 64.783673 103.444898 176.587755 18.808163 254.955102z' fill='%2304D002' p-id='4975'%3E%3C/path%3E%3C/svg%3E\");background-size:cover}#i_share .qq i{background-image: url(\"data:image/svg+xml,%3Csvg t='1598001131624' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='6751' width='48' height='48'%3E%3Cpath d='M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z' fill='%2337B9FF' p-id='6752'%3E%3C/path%3E%3Cpath d='M689.493333 419.84c0 95.573333-78.506667 174.08-175.786666 174.08-97.28 0-175.786667-78.506667-175.786667-174.08s78.506667-174.08 175.786667-174.08c97.28 0 175.786667 78.506667 175.786666 174.08' fill='%23FFFFFF' p-id='6753'%3E%3C/path%3E%3Cpath d='M373.76 481.28c0 20.48-10.24 37.546667-23.893333 37.546667-13.653333 0-23.893333-17.066667-23.893334-37.546667 0-20.48 10.24-37.546667 23.893334-37.546667 11.946667 0 23.893333 17.066667 23.893333 37.546667M325.973333 752.64c3.413333 25.6 47.786667 42.666667 97.28 37.546667 49.493333-5.12 87.04-30.72 83.626667-56.32-3.413333-25.6-47.786667-42.666667-97.28-37.546667-49.493333 5.12-87.04 30.72-83.626667 56.32M711.68 481.28c0 20.48-10.24 37.546667-23.893333 37.546667-13.653333 0-23.893333-17.066667-23.893334-37.546667 0-20.48 10.24-37.546667 23.893334-37.546667 11.946667 0 23.893333 17.066667 23.893333 37.546667M696.32 752.64c-3.413333 25.6-46.08 40.96-93.866667 35.84-47.786667-6.826667-85.333333-32.426667-81.92-58.026667 3.413333-25.6 46.08-40.96 93.866667-35.84 47.786667 6.826667 83.626667 32.426667 81.92 58.026667' fill='%23FFFFFF' p-id='6754'%3E%3C/path%3E%3Cpath d='M680.96 612.693333c0 78.506667-75.093333 141.653333-168.96 141.653334s-170.666667-63.146667-170.666667-141.653334c0-78.506667 75.093333-141.653333 168.96-141.653333s170.666667 63.146667 170.666667 141.653333' fill='%23FFFFFF' p-id='6755'%3E%3C/path%3E%3Cpath d='M368.64 585.386667c-25.6 49.493333-63.146667 81.92-75.093333 75.093333-15.36-8.533333-18.773333-58.026667 5.12-107.52 25.6-49.493333 64.853333-81.92 83.626666-71.68 20.48 8.533333 11.946667 54.613333-13.653333 104.106667M655.36 590.506667c22.186667 44.373333 56.32 80.213333 69.973333 76.8 11.946667-1.706667 18.773333-54.613333-1.706666-105.813334-20.48-51.2-59.733333-88.746667-78.506667-78.506666-18.773333 10.24-15.36 58.026667 10.24 107.52' fill='%23FFFFFF' p-id='6756'%3E%3C/path%3E%3C/svg%3E\");background-size:cover}#i_share .qzone i{background-image: url(\"data:image/svg+xml,%3Csvg t='1598001200203' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='7566' width='48' height='48'%3E%3Cpath d='M512 512m-512 0a512 512 0 1 0 1024 0 512 512 0 1 0-1024 0Z' fill='%23FDAB13' p-id='7567'%3E%3C/path%3E%3Cpath d='M512.03072 694.90688s-167.15776 101.28384-177.54112 93.10208c-10.38336-8.192 34.26304-196.43392 34.26304-196.43392s-149.504-123.8016-143.28832-139.15136c6.23616-15.33952 198.30784-28.64128 198.30784-28.64128S495.4112 245.76 512.03072 245.76c17.64352 0 88.24832 178.0224 88.24832 178.0224s193.1264 13.30176 198.30784 28.64128c5.19168 15.36-143.27808 139.15136-143.27808 139.15136s2.07872 12.27776 4.1472 20.45952c0 1.024-69.56032 2.048-126.6688 0-30.1056-1.024-66.44736-7.168-66.44736-7.168l165.08928-116.6336s-59.1872-10.24-120.44288-13.30176c-66.44736-2.048-133.9392 4.096-143.27808 6.144-6.22592 1.024 42.56768 1.024 98.63168 6.144 39.45472 3.072 90.32704 13.29152 90.32704 13.29152l-165.07904 121.7536s33.2288 6.144 150.54848 3.072 156.7744-11.264 156.7744-11.264-8.30464 4.096-16.60928 6.144c-9.34912 2.048-18.688 5.12-18.688 5.12 12.45184 54.2208 34.26304 152.44288 25.94816 160.62464-12.45184 13.30176-177.54112-91.05408-177.54112-91.05408z' fill='%23FFFFFF' p-id='7568'%3E%3C/path%3E%3C/svg%3E\");background-size:cover}#i_share .txwb i{background-image:url(icon/txwb.png);background-size:cover}#i_share .more i{background-image:url(icon/more.png);background-size:cover}#i_share.show{background-color:#fff;position:static}#i_share.show>div{position:static}#i_share.show .list{padding:0 1.2916rem}#i_share.show .cancel,#i_share.show .list span{display:none}#i_share.show .list div{width:12%;margin-left:2.3333%;margin-right:2.3333%;margin-bottom:0}#i_share.show .list div i{width:100%;height:auto;padding-top:100%}
") var i_share = { init: function (option) { var hrefs = location.search.split(/[?=&]/g); var index = hrefs.indexOf('fromsharefriend'); var self = this; $.extend(self.shareConfig, option); self.setHtml(); self.setEvent(); if (self.browser.isFromQQBrower) { self.setQQBrower(); if (index > -1) { var it = setInterval(function () { if (window.browser) { clearInterval(it); self.qbWxShare(hrefs[index + 1] * 1); } }, 100); } } }, QQBrower: false, setQQBrower: function () { var d = document.createElement("script"); var a = document.getElementsByTagName("body")[0]; d.setAttribute("src", 'http://jsapi.qq.com/get?api=app.share'); a.appendChild(d); this.QQBrower = true; }, $: $('#i_share'), setEvent: function () { var self = this; self.$.on('click', '.i_share', function (event) { var shareType = $(this).attr('data-app').split(':'); if(shareType[0]!=="clipboard") { self[shareType[0] + 'Share'](shareType[1]); } }); self.$.on('click', '.cancel', function (event) { self.$.addClass('hide'); }); }, browser: (function () { var t = window.navigator.userAgent; return { isFromAndroid: /android/gi.test(t), isFromIos: /iphone|ipod|ios/gi.test(t), isFromWx: /MicroMessenger/gi.test(t), isFromQQ: /mobile.*qq/gi.test(t), isFromUC: /ucbrowser/gi.test(t), isFromQQBrower: /mqqbrowser[^LightApp]/gi.test(t), isFromQQBrowerLight: /MQQBrowserLightApp/gi.test(t) }; })(), setHtml: function () { var html = '
' + '
点击这里进行分享↑
' + '
' + '
' + '
' + '微信好友' + '
' + '
' + '微信朋友圈' + '
' + '
' + '' + '新浪微博' + '
' + '
' + '' + 'QQ好友' + '
' + '
' + '' + 'QQ空间' + '
' + '
' + '' + '复制链接' + '
' + '
' + '' + '
' + '取消' + '
' + '
'; this.$.html(html); }, shareConfig: { title: '分享', description: '分享', url: location.href, from: '', imgUrl: '', fail: function () { var $et = this.$.find('.share-error-tip').removeClass('hide'); clearTimeout(this.to); this.to = setTimeout(function () { $et.addClass('hide'); }, 3000); } }, appList: { sinaWeibo: ['kSinaWeibo', 'SinaWeibo', 11, '新浪微博'], weixin: ['kWeixin', 'WechatFriends', 1, '微信好友'], weixinCircle: ['kWeixinFriend', 'WechatTimeline', '8', '微信朋友圈'], QQ: ['kQQ', 'QQ', '4', 'QQ好友'], Qzone: ['kQzone', 'Qzone', '3', 'QQ空间'] }, url: { QQBDownload: 'http://mdc.html5.qq.com/d/directdown.jsp?channel_id=10349', sinaWeiboUrl: 'http://service.weibo.com/share/share.php?title={{title}}&url={{url}}&pic={{pic}}', TxWbShareUrl: 'http://share.v.t.qq.com/index.php?c=share&a=index&title={{title}}&url={{url}}&pic={{pic}}' }, shareTip: function () { var it, $tip; clearTimeout(it); $tip = this.$.find('.sharetip').removeClass('hide'); it = setTimeout(function () { $tip.addClass('hide'); }, 3000); }, isQbInstalled: function (t) { t = t || {}; var e = t.testUrl || location.href, i = t.onSucc, n = t.onFail, a = Date.now(), o = 0, r = navigator.userAgent, s = 0, c = r.match(/iphone\s*os\s*\d/gi); c && (s = parseInt(c[0].split(" ")[2])), e = "mttbrowser://url=" + e.replace(/http:\/\//gi, ""); var l = function () { a += 1e3, o += 1, 3 > o ? setTimeout(l, 1e3) : Math.abs(a - Date.now()) > 1e3 ? i && i() : n && n() }; if (s > 8) { location.href = e; } else { var d = document.createElement("iframe"); d.src = e, d.id = "qbInstallValidator_" + Date.now(), d.style.display = "none", document.body.appendChild(d), setTimeout(l, 1e3), setTimeout(function () { d && d.parentNode && d.parentNode.removeChild(d) }, 5e3) } return !1 }, qbWxShare: function (t) { console.log(1); var e = this.shareConfig; var ah = { title: e.title, description: e.description, url: e.url, img_url: e.imgUrl, to_app: t //微信好友1,腾讯微博2,QQ空间3,QQ好友4,生成二维码7,微信朋友圈8,啾啾分享9,复制网址10,分享到微博11,创意分享13 }; window.browser && browser.app && browser.app.share && browser.app.share(ah); }, ucWxShare: function (t) { var A = this.browser; var e = this.shareConfig; var p = this.appList; var l; var i = A.isFromIos ? 0 : 1; if (t == 1) { l = p.weixin; } else if (t == 8) { l = p.weixinCircle; } else if (t == 4) { l = p.QQ; } else if (t == 3) { l = p.Qzone; } if (A.isFromIos) { ucbrowser && ucbrowser.web_share(e.title, e.description, e.url, l[i], '', '@' + e.from, ''); } else { A.isFromAndroid && ucweb && ucweb.startRequest("shell.page_share", [e.title, e.description, e.url, l[i], '', '@' + e.from, '']); } }, txShare: function (t) { var A = this.browser; var self = this; var i = self.shareConfig.url.split("#"); var n = i[0].indexOf("?") > 0 ? "&" : "?"; var a = i[1] ? "#" + i[1] : ""; var o = 'fromsharefriend=' + t; var e = i[0] + n + o + a; if (A.isFromWx || A.isFromQQ) { self.shareTip(); } else if (A.isFromUC) { self.ucWxShare(t); } else if (A.isFromQQBrower) { self.qbWxShare(t); } else if (A.isFromQQBrowerLight) { self.shareConfig.fail.call(self, t); } else { self.isQbInstalled({ testUrl: e, onSucc: function () {}, onFail: function () { self.shareConfig.fail.call(self, t); //location.href = self.url.QQBDownload; } }); } }, sinaWeiboShare: function () { var e = this.shareConfig; var str = this.url.sinaWeiboUrl.replace('{{title}}', e.title).replace('{{url}}', e.url).replace('{{pic}}', e.imgUrl); window.location.href = str; }, TxWbShare: function (t) { var e = this.shareConfig; var str = this.url.TxWbShareUrl.replace('{{title}}', e.title).replace('{{url}}', e.url).replace('{{pic}}', e.imgUrl); window.location.href = str; this.txShare(t); } }; var source = $('title').text().split('_') i_share.init({ title: $('title').text() ,description: $('meta[name=description]').attr('content') ,url: window.location.href ,from: source[source.length-1] ,imgUrl: $(".news-detail-content img:first").prop("src") || $("img:first").prop("src") ,fail: function () { $('.clipboard-auto').click(); var $et = this.$.find('.share-error-tip').removeClass('hide'); clearTimeout(this.to); this.to = setTimeout(function () { $et.addClass('hide'); }, 3000); } }); var clipboardItem = $('.i_share.clipboard'); clipboardItem.attr('data-clipboard-text', window.location.href); var clipboardItem2 = $('.clipboard-auto'); clipboardItem2.attr('data-clipboard-text', window.location.href); var clipboard = new ClipboardJS('.i_share.clipboard'); var clipboard2 = new ClipboardJS('.clipboard-auto'); clipboard.on('success', function(e) { alert('链接已被复制') }); $(document).on('click','.popup_more', function(e){ e.preventDefault() console.log('test') $('#i_share').removeClass('hide') })