EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-56fc7d4c.55dd964c.js

2 lines
77 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56fc7d4c"],{"21bd":function(t,e,r){},"61f7":function(t,e,r){"use strict";r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return a}));r("ac1f"),r("00b4"),r("d9e2"),r("a9e3"),r("5319");function i(t,e,r){""===e?r(new Error("请输入手机号码")):/^[0-9-]+$/.test(e)?r():r(new Error("手机号码格式不对"))}function n(t){if(t||0===t){if(t.length>0){var e=t.replace(/(^\s*)|(\s*$)/g,"");return e||"--"}return t}return"--"}function a(t){if(!t)return"";var e=new Date(t),r=e.getFullYear(),i=e.getMonth()+1,n=e.getDate(),a=e.getHours(),s=e.getMinutes(),l=e.getSeconds();return r+"-"+o(i)+"-"+o(n)+"\n"+o(a)+":"+o(s)+":"+o(l)}function o(t){return t<10?"0"+t:t}},"658f5":function(t,e,r){!function(e,r){t.exports=r()}(0,(function(){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var n=e[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(i,n,function(e){return t[e]}.bind(null,n));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=5)}([function(t,e,r){t.exports=r(6)},function(t,e){function r(t,e,r,i,n,a,o){try{var s=t[a](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(i,n)}t.exports=function(t){return function(){var e=this,i=arguments;return new Promise((function(n,a){var o=t.apply(e,i);function s(t){r(o,n,a,s,l,"next",t)}function l(t){r(o,n,a,s,l,"throw",t)}s(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return a}));var i=r(4),n=r.n(i);function a(){return n()('!function(t){var e={};function i(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=e,i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(r,o,function(e){return t[e]}.bind(null,o));return r},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i(i.s=0)}([function(t,e){!function(){var t,e,i,r=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function o(o,s,n,a){var h,l,u,p,f,c,y=Math.max(2,a),d=new Uint8Array(256),w=new Int32Array(5003),g=new Int32Array(5003),b=0,x=0,v=!1;function P(t,e){d[l++]=t,l>=254&&S(e)}function m(t){B(5003),x=f+2,v=!0,F(f,t)}function B(t){for(var e=0;e<t;++e)w[e]=-1}function S(t){l>0&&(t.writeByte(l),t.writeBytes(d,0,l),l=0)}function T(t){return(1<<t)-1}function M(){return 0===t?-1:(--t,255&n[e++])}function F(t,e){for(h&=r[b],b>0?h|=t<<b:h=t,b+=i;b>=8;)P(255&h,e),h>>=8,b-=8;if((x>u||v)&&(v?(u=T(i=p),v=!1):(++i,u=12==i?4096:T(i))),t==c){for(;b>0;)P(255&h,e),h>>=8,b-=8;S(e)}}this.encode=function(r){r.writeByte(y),t=o*s,e=0,function(t,e){var r,o,s,n,a,h;for(v=!1,u=T(i=p=t),c=(f=1<<t-1)+1,x=f+2,l=0,n=M(),h=0,r=5003;r<65536;r*=2)++h;h=8-h,B(5003),F(f,e);t:for(;-1!=(o=M());)if(r=(o<<12)+n,w[s=o<<h^n]!==r){if(w[s]>=0){a=5003-s,0===s&&(a=1);do{if((s-=a)<0&&(s+=5003),w[s]===r){n=g[s];continue t}}while(w[s]>=0)}F(n,e),n=o,x<4096?(g[s]=x++,w[s]=r):m(e)}else n=g[s];F(n,e),F(c,e)}(y+1,r),r.writeByte(0)}}var s;function n(t,e){var i,r,o,s,n;function a(t,e,r,o,s){i[e][0]-=t*(i[e][0]-r)/1024,i[e][1]-=t*(i[e][1]-o)/1024,i[e][2]-=t*(i[e][2]-s)/1024}function h(t,e,r,o,s){for(var a,h,l=Math.abs(e-t),u=Math.min(e+t,256),p=e+1,f=e-1,c=1;p<u||f>l;)h=n[c++],p<u&&((a=i[p++])[0]-=h*(a[0]-r)/(1<<18),a[1]-=h*(a[1]-o)/(1<<18),a[2]-=h*(a[2]-s)/(1<<18)),f>l&&((a=i[f--])[0]-=h*(a[0]-r)/(1<<18),a[1]-=h*(a[1]-o)/(1<<18),a[2]-=h*(a[2]-s)/(1<<18))}function l(t,e,r){var n,a,h,l,u,p=~(1<<31),f=p,c=-1,y=c;for(n=0;n<256;n++)a=i[n],(h=Math.abs(a[0]-t)+Math.abs(a[1]-e)+Math.abs(a[2]-r))<p&&(p=h,c=n),(l=h-(o[n]>>12))<f&&(f=l,y=n),u=s[n]>>10,s[n]-=u,o[n]+=u<<10;return s[c]+=64,o[c]-=65536,y}this.buildColormap=function(){!function(){var t,e;for(i=[],r=new Int32Array(256),o=new Int32Array(256),s=new Int32Array(256),n=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,i[t]=new Float64Array([e,e,e,0]),s[t]=256,o[t]=0}(),function(){var i,r,o,s,u,p,f=t.length,c=30+(e-1)/3,y=f/(3*e),d=~~(y/100),w=1024,g=2048,b=g>>6;for(b<=1&&(b=0),i=0;i<b;i++)n[i]=w*(256*(b*b-i*i)/(b*b));f<1509?(e=1,r=3):r=f%499!=0?1497:f%491!=0?1473:f%487!=0?1461:1509;var x=0;for(i=0;i<y;)if(a(w,p=l(o=(255&t[x])<<4,s=(255&t[x+1])<<4,u=(255&t[x+2])<<4),o,s,u),0!==b&&h(b,p,o,s,u),(x+=r)>=f&&(x-=f),0===d&&(d=1),++i%d==0)for(w-=w/c,(b=(g-=g/30)>>6)<=1&&(b=0),p=0;p<b;p++)n[p]=w*(256*(b*b-p*p)/(b*b))}(),function(){for(var t=0;t<256;t++)i[t][0]>>=4,i[t][1]>>=4,i[t][2]>>=4,i[t][3]=t}(),function(){var t,e,o,s,n,a,h=0,l=0;for(t=0;t<256;t++){for(n=t,a=(o=i[t])[1],e=t+1;e<256;e++)(s=i[e])[1]<a&&(n=e,a=s[1]);if(s=i[n],t!=n&&(e=s[0],s[0]=o[0],o[0]=e,e=s[1],s[1]=o[1],o[1]=e,e=s[2],s[2]=o[2],o[2]=e,e=s[3],s[3]=o[3],o[3]=e),a!=h){for(r[h]=l+t>>1,e=h+1;e<a;e++)r[e]=t;h=a,l=t}}for(r[h]=l+255>>1,e=h+1;e<256;e++)r[e]=255}()},this.getColormap=function(){for(var t=[],e=[],r=0;r<256;r++)e[i[r][3]]=r;for(var o=0,s=0;s<256;s++){var n=e[s];t[o++]=i[n][0],t[o++]=i[n][1],t[o++]=i[n][2]}return t},this.lookupRGB=function(t,e,o){for(var s,n,a,h=1e3,l=-1,u=r[e],p=u-1;u<256||p>=0;)u<256&&((a=(n=i[u])[1]-e)>=h?u=256:(u++,a<0&&(a=-a),(s=n[0]-t)<0&&(s=-s),(a+=s)<h&&((s=n[2]-o)<0&&(s=-s),(a+=s)<h&&(h=a,l=n[3])))),p>=0&&((a=e-(n=i[p])[1])>=h?p=-1:(p--,a<0&&(a=-a),(s=n[0]-t)<0&&(s=-s),(a+=s)<h&&((s=n[2]-o)<0&&(s=-s),(a+=s)<h&&(h=a,l=n[3]))));return l}}function a(){this.page=-1,this.pages=[],this.newPage()}s=function(t){var e,i,r,o;return e=new l(t.width,t.height),0===t.index?e.writeHeader():e.firstFrame=!1,e.setTransparent(t.transparent),e.setRepeat(t.repeat),e.setDelay(t.delay),e.setQuality(t.quality),e.setDither(t.dither),e.setGlobalPalette(t.globalPalette),e.addFrame(t.data),t.last&&e.finish(),!0===t.globalPalette&&(t.globalPalette=e.getGlobalPalette()),r=e.stream(),t.data=r.pages,t.cursor=r.cursor,t.pageSize=r.constructor.pageSize,t.canTransfer?(o=function(){var e,r,o,s;for(s=[],e=0,r=(o=t.data).length;e<r;e++)i=o[e],s.push(i.buffer);return s}(),self.postMessage(t,o)):self.postMessage(t)},self.onmessage=function(t){return s(t.data)},a.pageSize=4096,a.charMap={};for(var h=0;h<256;h++)a.charMap[h]=String.fromCharCode(h);function l(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new a}a.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(a.pageSize),this.cursor=0},a.prototype.getData=function(){for(var t="",e=0;e<this.pages.length;e++)for(var i=0;i<a.pageSize;i++)t+=a.charMap[this.pages[e][i]];return t},a.prototype.writeByte=function(t){this.cursor>=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,i=0;i<e;i++)this.writeByte(t.charCodeAt(i))},a.prototype.writeBytes=function(t,e,i){for(var r=i||t.length,o=e||0;o<r;o++)this.writeByte(t[o])},l.prototype.setDelay=function(t){this.delay=Math.round(t/10)},l.prototype.setFrameRate=function(t){this.delay=Math.round(100/t)},l.prototype.setDispose=function(t){t>=0&&(this.dispose=t)},l.prototype.setRepeat=function(t){this.repeat=t},l.prototype.setTransparent=function(t){this.transparent=t},l.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},l.prototype.finish=function(){this.out.writeByte(59)},l.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},l.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},l.prototype.setGlobalPalette=function(t){this.globalPalette=t},l.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},l.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},l.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},l.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var i=0,r=0;r<e;r++){var o=this.findClosestRGB(255&this.pixels[i++],255&this.pixels[i++],255&this.pixels[i++]);this.usedEntry[o]=!0,this.indexedPixels[r]=o}},l.prototype.ditherPixels=function(t,e){var i={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!t||!i[t])throw"Unknown dithering kernel: "+t;var r=i[t],o=0,s=this.height,n=this.width,a=this.pixels,h=e?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var l=0;l<s;l++){e&&(h*=-1);for(var u=1==h?0:n-1,p=1==h?n:0;u!==p;u+=h){var f=3*(o=l*n+u),c=a[f],y=a[f+1],d=a[f+2];f=this.findClosestRGB(c,y,d),this.usedEntry[f]=!0,this.indexedPixels[o]=f,f*=3;for(var w=c-this.colorTab[f],g=y-this.colorTab[f+1],b=d-this.colorTab[f+2],x=1==h?0:r.length-1,v=1==h?r.length:0;x!==v;x+=h){var P=r[x][1],m=r[x][2];if(P+u>=0&&P+u<n&&m+l>=0&&m+l<s){var B=r[x][0];f=o+P+m*n,a[f*=3]=Math.max(0,Math.min(255,a[f]+w*B)),a[f+1]=Math.max(0,Math.min(255,a[f+1]+g*B)),a[f+2]=Math.max(0,Math.min(255,a[f+2]+b*B))}}}}},l.prototype.findClosest=function(t,e){return this.findClosestRGB((16711680&t)>>16,(65280&t)>>8,255&t,e)},l.prototype.findClosestRGB=function(t,e,i,r){if(null===this.colorTab)return-1;if(this.neuQuant&&!r)return this.neuQuant.lookupRGB(t,e,i);for(var o=0,s=16777216,n=this.colorTab.length,a=0,h=0;a<n;h++){var l=t-(255&this.colorTab[a++]),u=e-(255&this.colorTab[a++]),p=i-(255&this.colorTab[a++]),f=l*l+u*u+p*p;(!r||this.usedEntry[h])&&f<s&&(s=f,o=h)}return o},l.prototype.getImagePixels=function(){var t=this.width,e=this.height;this.pixels=new Uint8Array(t*e*3);for(var i=this.image,r=0,o=0,s=0;s<e;s++)for(var n=0;n<t;n++)this.pixels[o++]=i[r++],this.pixels[o++]=i[r++],this.pixels[o++]=i[r++],r++},l.prototype.writeGraphicCtrlExt=function(){var t,e;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),null===this.transparent?(t=0,e=0):(t=1,e=2),this.dispose>=0&&(e=7&dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},l.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},l.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},l.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},l.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e<t;e++)this.out.writeByte(0)},l.prototype.writeShort=function(t){this.out.writeByte(255&t),this.out.writeByte(t>>8&255)},l.prototype.writePixels=function(){new o(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},l.prototype.stream=function(){return this.out}}()}]);\n',"Worker",void 0,void 0)}},function(t,e){function r(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=r=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),r(e)}t.exports=r,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,r){"use strict";t.exports=function(t,e,r,i){var n=self||window;try{try{var a;try{a=new n.Blob([t])}catch(e){(a=new(n.BlobBuilder||n.WebKitBlobBuilder||n.MozBlobBuilder||n.MSBlobBuilder)).append(t),a=a.getBlob()}var o=n.URL||n.webkitURL,s=o.createObjectURL(a),l=new n[e](s,r);return o.revokeObjectURL(s),l}catch(i){return new n[e]("data:application/javascript,".concat(encodeURIComponent(t)),r)}}catch(t){if(!i)throw Error("Inline worker is not supported");return new n[e](i,r)}}},function(t,e,r){t.exports=r(7)},function(t,e,r){var i=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},n=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,i){var n=e&&e.prototype instanceof c?e:c,a=Object.create(n.prototype),o=new C(i||[]);return a._invoke=function(t,e,r){var i="suspendedStart";return function(n,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===n)throw a;return B()}for(r.method=n,r.arg=a;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var l=u(t,e,r);if("normal"===l.type){if(i=r.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i="completed",r.method="throw",r.arg=l.arg)}}}(t,r,o),a}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function c(){}function f(){}function d(){}var p={};p[n]=function(){return this};var g=Object.getPrototypeOf,m=g&&g(g(k([])));m&&m!==e&&r.call(m,n)&&(p=m);var v=d.prototype=c.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var i;this._invoke=function(n,a){function o(){return new e((function(i,o){!function i(n,a,o,s){var l=u(t[n],t,a);if("throw"!==l.type){var h=l.arg,c=h.value;return c&&"object"==typeof c&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,o,s)}),(function(t){i("throw",t,o,s)})):e.resolve(c).then((function(t){h.value=t,o(h)}),(function(t){return i("throw",t,o,s)}))}s(l.arg)}(n,a,i,o)}))}return i=i?i.then(o,o):o()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=u(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var n=i.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function k(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function e(){for(;++i<t.length;)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:B}}function B(){return{value:void 0,done:!0}}return f.prototype=v.constructor=d,d.constructor=f,f.displayName=s(d,o,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,o,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},y(b.prototype),b.prototype[a]=function(){return this},t.AsyncIterator=b,t.async=function(e,r,i,n,a){void 0===a&&(a=Promise);var o=new b(l(e,r,i,n),a);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},y(v),s(v,o,"Generator"),v[n]=function(){return this},v.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var i=e.pop();if(i in t)return r.value=i,r.done=!1,r}return r.done=!0,r}},t.values=k,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(r,i){return o.type="throw",o.arg=t,e.next=r,i&&(e.method="next",e.arg=void 0),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var n=i.arg;x(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=i}catch(t){Function("r","regeneratorRuntime = r")(i)}},function(t,e,r){"use strict";r.r(e);var i,n=r(1),a=r.n(n),o=r(0),s=r.n(o),l=new Uint8Array(16);function u(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(l)}for(var h=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,c=function(t){return"string"==typeof t&&h.test(t)},f=[],d=0;d<256;++d)f.push((d+256).toString(16).substr(1));var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(f[t[e+0]]+f[t[e+1]]+f[t[e+2]]+f[t[e+3]]+"-"+f[t[e+4]]+f[t[e+5]]+"-"+f[t[e+6]]+f[t[e+7]]+"-"+f[t[e+8]]+f[t[e+9]]+"-"+f[t[e+10]]+f[t[e+11]]+f[t[e+12]]+f[t[e+13]]+f[t[e+14]]+f[t[e+15]]).toLowerCase();if(!c(r))throw TypeError("Stringified UUID is invalid");return r},g=function(t,e,r){var i=(t=t||{}).random||(t.rng||u)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){r=r||0;for(var n=0;n<16;++n)e[r+n]=i[n];return e}return p(i)};function m(t){return""===t?t:"true"===t||"1"==t}var v=function(t){if(t)return new Promise((function(e,r){if("data"==t.slice(0,4)){var i=new Image;return i.onload=function(){e(i)},i.onerror=function(){r("Image load error")},void(i.src=t)}var n=new Image;n.setAttribute("crossOrigin","Anonymous"),n.onload=function(){e(n)},n.onerror=function(){r("Image load error")},n.src=t}))},y=function(t,e){return new Promise((function(e,r){var i=new XMLHttpRequest;i.responseType="blob",i.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsArrayBuffer(i.response)},i.open("GET",t),i.send()}))},b=function(t,e,r,i,n,a,o,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):n&&(l=s?function(){n.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(u.functional){u._injectStyles=l;var h=u.render;u.render=function(t,e){return l.call(e),h(t,e)}}else{var c=u.beforeCreate;u.beforeCreate=c?[].concat(c,l):[l]}return{exports:t,options:u}}({props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"}},name:"vue-qr",data:function(){return{uuid:"",AwesomeQRCode:null}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.uuid=g(),this.main()},methods:{main:function(){var t=this;return a()(s.a.mark((function e(){var r,i,n,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.gifBgSrc){e.next=10;break}return e.next=4,y(t.gifBgSrc);case 4:return r=e.sent,e.next=7,v(t.logoSrc);case 7:return i=e.sent,t.render(void 0,i,r),e.abrupt("return");case 10:return e.next=12,v(t.bgSrc);case 12:return n=e.sent,e.next=15,v(t.logoSrc);case 15:a=e.sent,t.render(n,a);case 17:case"end":return e.stop()}}),e)})))()},render:function(t,e,i){var n=this;return a()(s.a.mark((function a(){var o;return s.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(o=n,!n.$isServer){a.next=3;break}return a.abrupt("return");case 3:n.AwesomeQRCode||(n.AwesomeQRCode=r(8).default),(new n.AwesomeQRCode).create({gifBackground:i,text:o.text,size:o.size,margin:o.margin,colorDark:o.colorDark,colorLight:o.colorLight,backgroundColor:o.backgroundColor,backgroundImage:t,backgroundDimming:o.backgroundDimming,logoImage:e,logoScale:o.logoScale,logoBackgroundColor:o.logoBackgroundColor,correctLevel:o.correctLevel,logoMargin:o.logoMargin,logoCornerRadius:o.logoCornerRadius,whiteMargin:m(o.whiteMargin),dotScale:o.dotScale,autoColor:m(o.autoColor),binarize:m(o.binarize),binarizeThreshold:o.binarizeThreshold,callback:function(t){o.callback&&o.callback(t,o.qid)},bindElement:o.bindElement?o.uuid:void 0});case 5:case"end":return a.stop()}}),a)})))()}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.bindElement?e("img",this._b({staticStyle:{display:"inline-block"}},"img",{id:this.uuid},!1)):this._e()}),[],!1,null,null,null).exports;b.install=function(t){return t.component(b.name,b)};var w=b,_=[w];"undefined"!=typeof window&&window.Vue&&function(t){_.map((function(e){t.component(e.name,e)}))}(window.Vue),e.default=w},function(t,e,r){"use strict";function i(t){this.data=t,this.pos=0}r.r(e),i.prototype.readByte=function(){return this.data[this.pos++]},i.prototype.peekByte=function(){return this.data[this.pos]},i.prototype.readBytes=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=this.readByte();return e},i.prototype.peekBytes=function(t){for(var e=new Array(t),r=0;r<t;r++)e[r]=this.data[this.pos+r];return e},i.prototype.readString=function(t){for(var e="",r=0;r<t;r++)e+=String.fromCharCode(this.readByte());return e},i.prototype.readBitArray=function(){for(var t=[],e=this.readByte(),r=7;r>=0;r--)t.push(!!(e&1<<r));return t},i.prototype.readUnsigned=function(t){var e=this.readBytes(2);return t?(e[1]<<8)+e[0]:(e[0]<<8)+e[1]};var n=i;function a(t){this.stream=new n(t),this.output={}}a.prototype.parse=function(t){return this.parseParts(this.output,t),this.output},a.prototype.parseParts=function(t,e){for(var r=0;r<e.length;r++){var i=e[r];this.parsePart(t,i)}},a.prototype.parsePart=function(t,e){var r,i=e.label;if(!e.requires||e.requires(this.stream,this.output,t))if(e.loop){for(var n=[];e.loop(this.stream);){var a={};this.parseParts(a,e.parts),n.push(a)}t[i]=n}else e.parts?(r={},this.parseParts(r,e.parts),t[i]=r):e.parser?(r=e.parser(this.stream,this.output,t),e.skip||(t[i]=r)):e.bits&&(t[i]=this.parseBits(e.bits))},a.prototype.parseBits=function(t){var e={},r=this.stream.readBitArray();for(var i in t){var n=t[i];n.length?e[i]=r.slice(n.index,n.index+n.length).reduce((function(t,e){return 2*t+e}),0):e[i]=r[n.index]}return e};var o=a,s={readByte:function(){return function(t){return t.readByte()}},readBytes:function(t){return function(e){return e.readBytes(t)}},readString:function(t){return function(e){return e.readString(t)}},readUnsigned:function(t){return function(e){return e.readUnsigned(t)}},readArray:function(t,e){return function(r,i,n){for(var a=e(r,i,n),o=new Array(a),s=0;s<a;s++)o[s]=r.readBytes(t);return o}}},l={label:"blocks",parser:function(t){for(var e=[],r=t.readByte();0!==r;r=t.readByte())e=e.concat(t.readBytes(r));return e}},u={label:"gce",requires:function(t){var e=t.peekBytes(2);return 33===e[0]&&249===e[1]},parts:[{label:"codes",parser:s.readBytes(2),skip:!0},{label:"byteSize",parser:s.readByte()},{label:"extras",bits:{future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}}},{label:"delay",parser:s.readUnsigned(!0)},{label:"transparentColorIndex",parser:s.readByte()},{label:"terminator",parser:s.readByte(),skip:!0}]},h={label:"image",requires:function(t){return 44===t.peekByte()},parts:[{label:"code",parser:s.readByte(),skip:!0},{label:"descriptor",parts:[{label:"left",parser:s.readUnsigned(!0)},{label:"top",parser:s.readUnsigned(!0)},{label:"width",parser:s.readUnsigned(!0)},{label:"height",parser:s.readUnsigned(!0)},{label:"lct",bits:{exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}}}]},{label:"lct",requires:function(t,e,r){return r.descriptor.lct.exists},parser:s.readArray(3,(function(t,e,r){return Math.pow(2,r.descriptor.lct.size+1)}))},{label:"data",parts:[{label:"minCodeSize",parser:s.readByte()},l]}]},c={label:"text",requires:function(t){var e=t.peekBytes(2);return 33===e[0]&&1===e[1]},parts:[{label:"codes",parser:s.readBytes(2),skip:!0},{label:"blockSize",parser:s.readByte()},{label:"preData",parser:function(t,e,r){return t.readBytes(r.text.blockSize)}},l]},f={label:"frames",parts:[u,{label:"application",requires:function(t,e,r){var i=t.peekBytes(2);return 33===i[0]&&255===i[1]},parts:[{label:"codes",parser:s.readBytes(2),skip:!0},{label:"blockSize",parser:s.readByte()},{label:"id",parser:function(t,e,r){return t.readString(r.blockSize)}},l]},{label:"comment",requires:function(t,e,r){var i=t.peekBytes(2);return 33===i[0]&&254===i[1]},parts:[{label:"codes",parser:s.readBytes(2),skip:!0},l]},h,c],loop:function(t){var e=t.peekByte();return 33===e||44===e}},d=[{label:"header",parts:[{label:"signature",parser:s.readString(3)},{label:"version",parser:s.readString(3)}]},{label:"lsd",parts:[{label:"width",parser:s.readUnsigned(!0)},{label:"height",parser:s.readUnsigned(!0)},{label:"gct",bits:{exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}}},{label:"backgroundColorIndex",parser:s.readByte()},{label:"pixelAspectRatio",parser:s.readByte()}]},{label:"gct",requires:function(t,e){return e.lsd.gct.exists},parser:s.readArray(3,(function(t,e){return Math.pow(2,e.lsd.gct.size+1)}))},f];function p(t){var e=new Uint8Array(t),r=new o(e);this.raw=r.parse(d),this.raw.hasImages=!1;for(var i=0;i<this.raw.frames.length;i++)if(this.raw.frames[i].image){this.raw.hasImages=!0;break}}p.prototype.decompressFrame=function(t,e){if(t>=this.raw.frames.length)return null;var r=this.raw.frames[t];if(r.image){var i=r.image.descriptor.width*r.image.descriptor.height,n=function(t,e,r){var i,n,a,o,s,l,u,h,c,f,d,p,g,m,v,y,b=r,w=new Array(r),_=new Array(4096),x=new Array(4096),C=new Array(4097);for(s=1+(n=1<<(p=t)),i=n+2,u=-1,a=(1<<(o=p+1))-1,c=0;c<n;c++)_[c]=0,x[c]=c;for(d=h=g=m=y=v=0,f=0;f<b;){if(0===m){if(h<o){d+=e[v]<<h,h+=8,v++;continue}if(c=d&a,d>>=o,h-=o,c>i||c==s)break;if(c==n){a=(1<<(o=p+1))-1,i=n+2,u=-1;continue}if(-1==u){C[m++]=x[c],u=c,g=c;continue}for(l=c,c==i&&(C[m++]=g,c=u);c>n;)C[m++]=x[c],c=_[c];g=255&x[c],C[m++]=g,i<4096&&(_[i]=u,x[i]=g,0==(++i&a)&&i<4096&&(o++,a+=i)),u=l}m--,w[y++]=C[m],f++}for(f=y;f<b;f++)w[f]=0;return w}(r.image.data.minCodeSize,r.image.data.blocks,i);r.image.descriptor.lct.interlaced&&(n=function(t,e){for(var r=new Array(t.length),i=t.length/e,n=function(i,n){var a=t.slice(n*e,(n+1)*e);r.splice.apply(r,[i*e,e].concat(a))},a=[0,4,2,1],o=[8,8,4,2],s=0,l=0;l<4;l++)for(var u=a[l];u<i;u+=o[l])n(u,s),s++;return r}(n,r.image.descriptor.width));var a={pixels:n,dims:{top:r.image.descriptor.top,left:r.image.descriptor.left,width:r.image.descriptor.width,height:r.image.descriptor.height}};return r.image.descriptor.lct&&r.image.descriptor.lct.exists?a.colorTable=r.image.lct:a.colorTable=this.raw.gct,r.gce&&(a.delay=10*(r.gce.delay||10),a.disposalType=r.gce.extras.disposal,r.gce.extras.transparentColorGiven&&(a.transparentIndex=r.gce.transparentColorIndex)),e&&(a.patch=function(t){for(var e=t.pixels.length,r=new Uint8ClampedArray(4*e),i=0;i<e;i++){var n=4*i,a=t.pixels[i],o=t.colorTable[a];r[n]=o[0],r[n+1]=o[1],r[n+2]=o[2],r[n+3]=a!==t.transparentIndex?255:0}return r}(a)),a}return null},p.prototype.decompressFrames=function(t){for(var e=[],r=0;r<this.raw.frames.length;r++)this.raw.frames[r].image&&e.push(this.decompressFrame(r,t));return e};var g,m,v,y,b,w=p,_=r(3),x=r.n(_);function C(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function k(t){return"function"==typeof t}function B(t){return"object"===x()(t)&&null!==t}function L(t){return void 0===t}C.EventEmitter=C,C.prototype._events=void 0,C.prototype._maxListeners=void 0,C.defaultMaxListeners=10,C.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},C.prototype.emit=function(t){var e,r,i,n,a,o;if(this._events||(this._events={}),"error"===t&&(!this._events.error||B(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var s=new Error('Uncaught, unspecified "error" event. ('+e+")");throw s.context=e,s}if(L(r=this._events[t]))return!1;if(k(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),r.apply(this,n)}else if(B(r))for(n=Array.prototype.slice.call(arguments,1),i=(o=r.slice()).length,a=0;a<i;a++)o[a].apply(this,n);return!0},C.prototype.addListener=function(t,e){var r;if(!k(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,k(e.listener)?e.listener:e),this._events[t]?B(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,B(this._events[t])&&!this._events[t].warned&&(r=L(this._maxListeners)?C.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},C.prototype.on=C.prototype.addListener,C.prototype.once=function(t,e){if(!k(e))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(t,i),r||(r=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},C.prototype.removeListener=function(t,e){var r,i,n,a;if(!k(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=(r=this._events[t]).length,i=-1,r===e||k(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(B(r)){for(a=n;a-- >0;)if(r[a]===e||r[a].listener&&r[a].listener===e){i=a;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},C.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(k(r=this._events[t]))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},C.prototype.listeners=function(t){return this._events&&this._events[t]?k(this._events[t])?[this._events[t]]:this._events[t].slice():[]},C.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(k(e))return 1;if(e)return e.length}return 0},C.listenerCount=function(t,e){return t.listenerCount(e)},b=navigator.userAgent.toLowerCase(),y=navigator.platform.toLowerCase(),v="ie"===(g=b.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0])[1]&&document.documentMode,(m={name:"version"===g[1]?g[3]:g[1],version:v||parseFloat("opera"===g[1]&&g[4]?g[4]:g[2]),platform:{name:b.match(/ip(?:ad|od|hone)/)?"ios":(b.match(/(?:webos|android)/)||y.match(/mac|win|linux/)||["other"])[0]}})[m.name]=!0,m[m.name+parseInt(m.version,10)]=!0,m.platform[m.platform.name]=!0;var D,S={}.hasOwnProperty,E=[].indexOf||function(t){for(var e=0,r=this.length;e<r;e++)if(e in this&&this[e]===t)return e;return-1},P=[].slice,I=function(t){var e,i;!function(t,e){for(var r in e)S.call(e,r)&&(t[r]=e[r]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(a,t);var n=r(2);function a(t){var r,i,n;for(i in this.running=!1,this.options={},this.frames=[],this.freeWorkers=[],this.activeWorkers=[],this.setOptions(t),e)n=e[i],null==(r=this.options)[i]&&(r[i]=n)}return e={workerScript:n,workers:2,repeat:0,background:"#fff",quality:10,width:null,height:null,transparent:null,debug:!1,dither:!1},i={delay:500,copy:!1},a.prototype.setOption=function(t,e){if(this.options[t]=e,null!=this._canvas&&("width"===t||"height"===t))return this._canvas[t]=e},a.prototype.setOptions=function(t){var e,r,i;for(e in r=[],t)S.call(t,e)&&(i=t[e],r.push(this.setOption(e,i)));return r},a.prototype.addFrame=function(t,e){var r,n;for(n in null==e&&(e={}),(r={}).transparent=this.options.transparent,i)r[n]=e[n]||i[n];if(null==this.options.width&&this.setOption("width",t.width),null==this.options.height&&this.setOption("height",t.height),"undefined"!=typeof ImageData&&null!==ImageData&&t instanceof ImageData)r.data=t.data;else if("undefined"!=typeof CanvasRenderingContext2D&&null!==CanvasRenderingContext2D&&t instanceof CanvasRenderingContext2D||"undefined"!=typeof WebGLRenderingContext&&null!==WebGLRenderingContext&&t instanceof WebGLRenderingContext)e.copy?r.data=this.getContextData(t):r.context=t;else{if(null==t.childNodes)throw new Error("Invalid image");e.copy?r.data=this.getImageData(t):r.image=t}return this.frames.push(r)},a.prototype.render=function(){var t,e,r;if(this.running)throw new Error("Already running");if(null==this.options.width||null==this.options.height)throw new Error("Width and height must be set prior to rendering");if(this.running=!0,this.nextFrame=0,this.finishedFrames=0,this.imageParts=function(){var t,e,r;for(r=[],t=0,e=this.frames.length;0<=e?t<e:t>e;0<=e?++t:--t)r.push(null);return r}.call(this),e=this.spawnWorkers(),!0===this.options.globalPalette)this.renderNextFrame();else for(t=0,r=e;0<=r?t<r:t>r;0<=r?++t:--t)this.renderNextFrame();return this.emit("start"),this.emit("progress",0)},a.prototype.abort=function(){for(var t;null!=(t=this.activeWorkers.shift());)this.log("killing active worker"),t.terminate();return this.running=!1,this.emit("abort")},a.prototype.spawnWorkers=function(){var t,e,i,n;return t=Math.min(this.options.workers,this.frames.length),function(){i=[];for(var r=e=this.freeWorkers.length;e<=t?r<t:r>t;e<=t?r++:r--)i.push(r);return i}.apply(this).forEach((n=this,function(t){var e;n.log("spawning worker "+t);var i=r(2);return(e=new i.default).onmessage=function(t){return n.activeWorkers.splice(n.activeWorkers.indexOf(e),1),n.freeWorkers.push(e),n.frameFinished(t.data)},n.freeWorkers.push(e)})),t},a.prototype.frameFinished=function(t){var e,r;if(this.log("frame "+t.index+" finished - "+this.activeWorkers.length+" active"),this.finishedFrames++,this.emit("progress",this.finishedFrames/this.frames.length),this.imageParts[t.index]=t,!0===this.options.globalPalette&&(this.options.globalPalette=t.globalPalette,this.log("global palette analyzed"),this.frames.length>2))for(e=1,r=this.freeWorkers.length;1<=r?e<r:e>r;1<=r?++e:--e)this.renderNextFrame();return E.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},a.prototype.finishRendering=function(){var t,e,r,i,n,a,o,s,l,u,h,c,f,d,p,g;for(s=0,n=0,l=(d=this.imageParts).length;n<l;n++)s+=((e=d[n]).data.length-1)*e.pageSize+e.cursor;for(s+=e.pageSize-e.cursor,this.log("rendering finished - filesize "+Math.round(s/1e3)+"kb"),t=new Uint8Array(s),c=0,a=0,u=(p=this.imageParts).length;a<u;a++)for(r=o=0,h=(g=(e=p[a]).data).length;o<h;r=++o)f=g[r],t.set(f,c),r===e.data.length-1?c+=e.cursor:c+=e.pageSize;return i=new Blob([t],{type:"image/gif"}),this.emit("finished",i,t)},a.prototype.renderNextFrame=function(){var t,e,r;if(0===this.freeWorkers.length)throw new Error("No free workers");if(!(this.nextFrame>=this.frames.length))return t=this.frames[this.nextFrame++],r=this.freeWorkers.shift(),e=this.getTask(t),this.log("starting frame "+(e.index+1)+" of "+this.frames.length),this.activeWorkers.push(r),r.postMessage(e)},a.prototype.getContextData=function(t){return t.getImageData(0,0,this.options.width,this.options.height).data},a.prototype.getImageData=function(t){var e;return null==this._canvas&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),(e=this._canvas.getContext("2d")).setFill=this.options.background,e.fillRect(0,0,this.options.width,this.options.height),e.drawImage(t,0,0),this.getContextData(e)},a.prototype.getTask=function(t){var e,r;if(r={index:e=this.frames.indexOf(t),last:e===this.frames.length-1,delay:t.delay,transparent:t.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:"chrome"===m.name},null!=t.data)r.data=t.data;else if(null!=t.context)r.data=this.getContextData(t.context);else{if(null==t.image)throw new Error("Invalid frame");r.data=this.getImageData(t.image)}return r},a.prototype.log=function(){var t;if(t=1<=arguments.length?P.call(arguments,0):[],this.options.debug)return console.log.apply(console,t)},a}(C);function T(t){this.mode=R.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e<r;e++){var i=[],n=this.data.charCodeAt(e);n>65536?(i[0]=240|(1835008&n)>>>18,i[1]=128|(258048&n)>>>12,i[2]=128|(4032&n)>>>6,i[3]=128|63&n):n>2048?(i[0]=224|(61440&n)>>>12,i[1]=128|(4032&n)>>>6,i[2]=128|63&n):n>128?(i[0]=192|(1984&n)>>>6,i[1]=128|63&n):i[0]=n,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function A(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}T.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}},A.prototype={addData:function(t){var e=new T(t);this.dataList.push(e),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){if(this.typeNumber<1){var t=1;for(t=1;t<40;t++){for(var e=K.getRSBlocks(t,this.errorCorrectLevel),r=new X,i=0,n=0;n<e.length;n++)i+=e[n].dataCount;for(n=0;n<this.dataList.length;n++){var a=this.dataList[n];r.put(a.mode,4),r.put(a.getLength(),H.getLengthInBits(a.mode,t)),a.write(r)}if(r.getLengthInBits()<=8*i)break}this.typeNumber=t}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[r][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=A.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var i=-1;i<=7;i++)e+i<=-1||this.moduleCount<=e+i||(this.modules[t+r][e+i]=0<=r&&r<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var i=H.getLostPoint(this);(0==r||t>i)&&(t=i,e=r)}return e},createMovieClip:function(t,e,r){var i=t.createEmptyMovieClip(e,r);this.make();for(var n=0;n<this.modules.length;n++)for(var a=1*n,o=0;o<this.modules[n].length;o++){var s=1*o;this.modules[n][o]&&(i.beginFill(0,100),i.moveTo(s,a),i.lineTo(s+1,a),i.lineTo(s+1,a+1),i.lineTo(s,a+1),i.endFill())}return i},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=H.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var i=t[e],n=t[r];if(null==this.modules[i][n])for(var a=-2;a<=2;a++)for(var o=-2;o<=2;o++)this.modules[i+a][n+o]=-2==a||2==a||-2==o||2==o||0==a&&0==o}},setupTypeNumber:function(t){for(var e=H.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var i=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=i}for(r=0;r<18;r++)i=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=i},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,i=H.getBCHTypeInfo(r),n=0;n<15;n++){var a=!t&&1==(i>>n&1);n<6?this.modules[n][8]=a:n<8?this.modules[n+1][8]=a:this.modules[this.moduleCount-15+n][8]=a}for(n=0;n<15;n++)a=!t&&1==(i>>n&1),n<8?this.modules[8][this.moduleCount-n-1]=a:n<9?this.modules[8][15-n-1+1]=a:this.modules[8][15-n-1]=a;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,i=this.moduleCount-1,n=7,a=0,o=this.moduleCount-1;o>0;o-=2)for(6==o&&o--;;){for(var s=0;s<2;s++)if(null==this.modules[i][o-s]){var l=!1;a<t.length&&(l=1==(t[a]>>>n&1)),H.getMask(e,i,o-s)&&(l=!l),this.modules[i][o-s]=l,-1==--n&&(a++,n=7)}if((i+=r)<0||this.moduleCount<=i){i-=r,r=-r;break}}}},A.PAD0=236,A.PAD1=17,A.createData=function(t,e,r){for(var i=K.getRSBlocks(t,e),n=new X,a=0;a<r.length;a++){var o=r[a];n.put(o.mode,4),n.put(o.getLength(),H.getLengthInBits(o.mode,t)),o.write(n)}var s=0;for(a=0;a<i.length;a++)s+=i[a].dataCount;if(n.getLengthInBits()>8*s)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+8*s+")");for(n.getLengthInBits()+4<=8*s&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*s||(n.put(A.PAD0,8),n.getLengthInBits()>=8*s));)n.put(A.PAD1,8);return A.createBytes(n,i)},A.createBytes=function(t,e){for(var r=0,i=0,n=0,a=new Array(e.length),o=new Array(e.length),s=0;s<e.length;s++){var l=e[s].dataCount,u=e[s].totalCount-l;i=Math.max(i,l),n=Math.max(n,u),a[s]=new Array(l);for(var h=0;h<a[s].length;h++)a[s][h]=255&t.buffer[h+r];r+=l;var c=H.getErrorCorrectPolynomial(u),f=new W(a[s],c.getLength()-1).mod(c);for(o[s]=new Array(c.getLength()-1),h=0;h<o[s].length;h++){var d=h+f.getLength()-o[s].length;o[s][h]=d>=0?f.get(d):0}}var p=0;for(h=0;h<e.length;h++)p+=e[h].totalCount;var g=new Array(p),m=0;for(h=0;h<i;h++)for(s=0;s<e.length;s++)h<a[s].length&&(g[m++]=a[s][h]);for(h=0;h<n;h++)for(s=0;s<e.length;s++)h<o[s].length&&(g[m++]=o[s][h]);return g};for(var R={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},M={L:1,M:0,Q:3,H:2},N=0,F=1,O=2,U=3,$=4,z=5,j=6,G=7,H={PATTERN_POSITION_TABLE:[[],[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]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;H.getBCHDigit(e)-H.getBCHDigit(H.G15)>=0;)e^=H.G15<<H.getBCHDigit(e)-H.getBCHDigit(H.G15);return(t<<10|e)^H.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;H.getBCHDigit(e)-H.getBCHDigit(H.G18)>=0;)e^=H.G18<<H.getBCHDigit(e)-H.getBCHDigit(H.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return H.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case N:return(e+r)%2==0;case F:return e%2==0;case O:return r%3==0;case U:return(e+r)%3==0;case $:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case z:return e*r%2+e*r%3==0;case j:return(e*r%2+e*r%3)%2==0;case G:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new W([1],0),r=0;r<t;r++)e=e.multiply(new W([1,q.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case R.MODE_NUMBER:return 10;case R.MODE_ALPHA_NUM:return 9;case R.MODE_8BIT_BYTE:case R.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case R.MODE_NUMBER:return 12;case R.MODE_ALPHA_NUM:return 11;case R.MODE_8BIT_BYTE:return 16;case R.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case R.MODE_NUMBER:return 14;case R.MODE_ALPHA_NUM:return 13;case R.MODE_8BIT_BYTE:return 16;case R.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,i=0;i<e;i++)for(var n=0;n<e;n++){for(var a=0,o=t.isDark(i,n),s=-1;s<=1;s++)if(!(i+s<0||e<=i+s))for(var l=-1;l<=1;l++)n+l<0||e<=n+l||0==s&&0==l||o==t.isDark(i+s,n+l)&&a++;a>5&&(r+=3+a-5)}for(i=0;i<e-1;i++)for(n=0;n<e-1;n++){var u=0;t.isDark(i,n)&&u++,t.isDark(i+1,n)&&u++,t.isDark(i,n+1)&&u++,t.isDark(i+1,n+1)&&u++,0!=u&&4!=u||(r+=3)}for(i=0;i<e;i++)for(n=0;n<e-6;n++)t.isDark(i,n)&&!t.isDark(i,n+1)&&t.isDark(i,n+2)&&t.isDark(i,n+3)&&t.isDark(i,n+4)&&!t.isDark(i,n+5)&&t.isDark(i,n+6)&&(r+=40);for(n=0;n<e;n++)for(i=0;i<e-6;i++)t.isDark(i,n)&&!t.isDark(i+1,n)&&t.isDark(i+2,n)&&t.isDark(i+3,n)&&t.isDark(i+4,n)&&!t.isDark(i+5,n)&&t.isDark(i+6,n)&&(r+=40);var h=0;for(n=0;n<e;n++)for(i=0;i<e;i++)t.isDark(i,n)&&h++;return r+Math.abs(100*h/e/e-50)/5*10}},q={glog:function(t){if(t<1)throw new Error("glog("+t+")");return q.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return q.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},Q=0;Q<8;Q++)q.EXP_TABLE[Q]=1<<Q;for(Q=8;Q<256;Q++)q.EXP_TABLE[Q]=q.EXP_TABLE[Q-4]^q.EXP_TABLE[Q-5]^q.EXP_TABLE[Q-6]^q.EXP_TABLE[Q-8];for(Q=0;Q<255;Q++)q.LOG_TABLE[q.EXP_TABLE[Q]]=Q;function W(t,e){if(null==t.length)throw new Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var i=0;i<t.length-r;i++)this.num[i]=t[i+r]}function K(t,e){this.totalCount=t,this.dataCount=e}function X(){this.buffer=[],this.length=0}W.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var i=0;i<t.getLength();i++)e[r+i]^=q.gexp(q.glog(this.get(r))+q.glog(t.get(i)));return new W(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=q.glog(this.get(0))-q.glog(t.get(0)),r=new Array(this.getLength()),i=0;i<this.getLength();i++)r[i]=this.get(i);for(i=0;i<t.getLength();i++)r[i]^=q.gexp(q.glog(t.get(i))+e);return new W(r,0).mod(t)}},K.RS_BLOCK_TABLE=[[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],[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]],K.getRSBlocks=function(t,e){var r=K.getRsBlockTable(t,e);if(null==r)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var i=r.length/3,n=[],a=0;a<i;a++)for(var o=r[3*a+0],s=r[3*a+1],l=r[3*a+2],u=0;u<o;u++)n.push(new K(s,l));return n},K.getRsBlockTable=function(t,e){switch(e){case M.L:return K.RS_BLOCK_TABLE[4*(t-1)+0];case M.M:return K.RS_BLOCK_TABLE[4*(t-1)+1];case M.Q:return K.RS_BLOCK_TABLE[4*(t-1)+2];case M.H:return K.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},X.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var J=function(){function t(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}function e(t,e){var r=this;if(r._fFail=e,r._fSuccess=t,null===r._bSupportDataURI){var i=document.createElement("img"),n=function(){r._bSupportDataURI=!1,r._fFail&&r._fFail.call(r)};return i.onabort=n,i.onerror=n,i.onload=function(){r._bSupportDataURI=!0,r._fSuccess&&r._fSuccess.call(r)},void(i.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==")}!0===r._bSupportDataURI&&r._fSuccess?r._fSuccess.call(r):!1===r._bSupportDataURI&&r._fFail&&r._fFail.call(r)}var r=function(t){this._bIsPainted=!1,this._htOption=t,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=t.size,this._elCanvas.height=t.size,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.alt="Scan me!",this._elImage.style.display="none",this._bSupportDataURI=null,this._callback=t.callback,this._bindElement=t.bindElement};return r.prototype.draw=function(t){var e=this._elImage,r=document.createElement("canvas"),i=r.getContext("2d"),n=this._htOption,a=t.getModuleCount(),o=n.size,s=n.margin;(s<0||2*s>=o)&&(s=0);var l=Math.ceil(s),u=o-2*s,h=n.whiteMargin,c=n.backgroundDimming,f=Math.ceil(u/a),d=f*a,p=d+2*l,g=void 0,m=void 0;r.width=p,r.height=p;var v=n.dotScale;if(e.style.display="none",this.clear(),v<=0||v>1)throw new Error("Scale should be in range (0, 1).");i.save(),i.translate(l,l);var y=document.createElement("canvas");y.width=p,y.height=p;var b=y.getContext("2d"),_=void 0;if(void 0!==n.gifBackground){var x=new w(n.gifBackground);if(!x.raw.hasImages)throw new Error("An invalid gif has been selected as the background.");if(g=x,m=x.decompressFrames(!0),n.autoColor){for(var C=0,k=0,B=0,L=0,D=0;D<m[0].colorTable.length;D++){var S=m[0].colorTable[D];S[0]>200||S[1]>200||S[2]>200||0===S[0]&&0===S[1]&&0===S[2]||(L++,C+=S[0],k+=S[1],B+=S[2])}C=~~(C/L),k=~~(k/L),B=~~(B/L),n.colorDark="rgb("+C+", "+k+", "+B+")"}}else if(void 0!==n.backgroundImage){if(n.autoColor){var E=function(t){var e,r,i,n,a={r:0,g:0,b:0},o=document.createElement("canvas"),s=o.getContext&&o.getContext("2d"),l=-4,u={r:0,g:0,b:0},h=0;if(!s)return a;i=o.height=t.naturalHeight||t.offsetHeight||t.height,r=o.width=t.naturalWidth||t.offsetWidth||t.width,s.drawImage(t,0,0);try{e=s.getImageData(0,0,r,i)}catch(t){return a}for(n=e.data.length;(l+=20)<n;)e.data[l]>200||e.data[l+1]>200||e.data[l+2]>200||(++h,u.r+=e.data[l],u.g+=e.data[l+1],u.b+=e.data[l+2]);return u.r=~~(u.r/h),u.g=~~(u.g/h),u.b=~~(u.b/h),u}(n.backgroundImage);n.colorDark="rgb("+E.r+", "+E.g+", "+E.b+")"}n.maskedDots?((_=document.createElement("canvas")).width=p,_.height=p,_.getContext("2d").drawImage(n.backgroundImage,0,0,n.backgroundImage.width,n.backgroundImage.height,0,0,p,p),b.rect(0,0,p,p),b.fillStyle="#ffffff",b.fill()):(b.drawImage(n.backgroundImage,0,0,n.backgroundImage.width,n.backgroundImage.height,0,0,p,p),b.rect(0,0,p,p),b.fillStyle=c,b.fill())}else b.rect(0,0,p,p),b.fillStyle=n.backgroundColor,b.fill();n.binarize&&(n.colorDark="#000000",n.colorLight="#FFFFFF");for(var P=H.getPatternPosition(t.typeNumber),T=.5*(1-v),A=0;A<a;A++)for(var R=0;R<a;R++){var M=t.isDark(A,R),N=R<8&&(A<8||A>=a-8)||R>=a-8&&A<8,F=6===A||6===R||N;for(D=0;D<P.length-1;D++)F=F||A>=P[D]-2&&A<=P[D]+2&&R>=P[D]-2&&R<=P[D]+2;var O=R*f+(F?0:T*f),U=A*f+(F?0:T*f);i.strokeStyle=M?n.colorDark:n.colorLight,i.lineWidth=.5,i.fillStyle=M?n.colorDark:n.colorLight||"rgba(255, 255, 255, 0.6)",0===P.length?F||Z(i,O,U,(F?1:v)*f,(F?1:v)*f,_,M):F||R<a-4&&R>=a-4-5&&A<a-4&&A>=a-4-5||Z(i,O,U,(F?1:v)*f,(F?1:v)*f,_,M)}var $=n.colorLight;i.fillStyle=$,i.fillRect(0,0,8*f,8*f),i.fillRect(0,(a-8)*f,8*f,8*f),i.fillRect((a-8)*f,0,8*f,8*f),i.fillRect(8*f,6*f,(a-8-8)*f,f),i.fillRect(6*f,8*f,f,(a-8-8)*f);var z=P[P.length-1];for(D=0;D<P.length;D++)for(var j=0;j<P.length;j++){var G=P[j],q=P[D];(6!==G||6!==q&&q!==z)&&(6!==q||6!==G&&G!==z)&&tt(i,G,q,f,f)}for(i.fillStyle=n.colorDark,i.fillRect(0,0,7*f,f),i.fillRect((a-7)*f,0,7*f,f),i.fillRect(0,6*f,7*f,f),i.fillRect((a-7)*f,6*f,7*f,f),i.fillRect(0,(a-7)*f,7*f,f),i.fillRect(0,(a-7+6)*f,7*f,f),i.fillRect(0,0,f,7*f),i.fillRect(6*f,0,f,7*f),i.fillRect((a-7)*f,0,f,7*f),i.fillRect((a-7+6)*f,0,f,7*f),i.fillRect(0,(a-7)*f,f,7*f),i.fillRect(6*f,(a-7)*f,f,7*f),i.fillRect(2*f,2*f,3*f,3*f),i.fillRect((a-7+2)*f,2*f,3*f,3*f),i.fillRect(2*f,(a-7+2)*f,3*f,3*f),D=0;D<a-8;D+=2)i.fillRect((8+D)*f,6*f,f,f),i.fillRect(6*f,(8+D)*f,f,f);for(D=0;D<P.length;D++)for(j=0;j<P.length;j++)G=P[j],q=P[D],(6!==G||6!==q&&q!==z)&&(6!==q||6!==G&&G!==z)&&(6!==G&&G!==z&&6!==q&&q!==z?(i.fillStyle=n.colorLight,et(i,G,q,f,f)):(i.fillStyle=n.colorDark,et(i,G,q,f,f)));if(h&&(i.fillStyle=n.backgroundColor,i.fillRect(-l,-l,p,l),i.fillRect(-l,d,p,l),i.fillRect(d,-l,l,p),i.fillRect(-l,-l,l,p)),void 0!==n.logoImage){var Q=n.logoScale,W=n.logoMargin,K=n.logoCornerRadius;(Q<=0||Q>=1)&&(Q=.2),W<0&&(W=0),K<0&&(K=0),i.restore(),i.translate(l,l);var X=d*Q,J=.5*(d-X),rt=J;i.fillStyle=n.logoBackgroundColor,i.save(),V(i,J-W,rt-W,X+2*W,X+2*W,K),i.clip(),i.fill(),i.restore(),i.save(),V(i,J,rt,X,X,K),i.clip(),i.drawImage(n.logoImage,J,rt,X,X),i.restore()}if(void 0===g){if(b.drawImage(r,0,0,p,p),i.drawImage(y,-l,-l,p,p),n.binarize){var it=i.getImageData(0,0,p,p),nt=128;for(parseInt(n.binarizeThreshold)>0&&parseInt(n.binarizeThreshold)<255&&(nt=parseInt(n.binarizeThreshold)),D=0;D<it.data.length;D+=4)Y(it.data[D],it.data[D+1],it.data[D+2])>nt?(it.data[D]=255,it.data[D+1]=255,it.data[D+2]=255):(it.data[D]=0,it.data[D+1]=0,it.data[D+2]=0);i.putImageData(it,0,0)}var at=document.createElement("canvas"),ot=at.getContext("2d");if(at.width=o,at.height=o,ot.drawImage(r,0,0,o,o),this._elCanvas=at,this._bIsPainted=!0,void 0!==this._callback&&this._callback(this._elCanvas.toDataURL()),void 0!==this._bindElement)try{var st=document.getElementById(this._bindElement);if("IMG"===st.nodeName)st.src=this._elCanvas.toDataURL();else{var lt=st.style;lt["background-image"]="url("+this._elCanvas.toDataURL()+")",lt["background-size"]="contain",lt["background-repeat"]="no-repeat"}}catch(t){console.error(t)}}else{var ut,ht,ct,ft,dt=document.createElement("canvas"),pt=dt.getContext("2d");if(m.forEach((function(t){void 0===ut&&(ut=new I({workers:4,quality:10,width:o,height:o})),void 0===ht&&(ht=document.createElement("canvas"),ct=ht.getContext("2d"),ht.width=t.dims.width,ht.height=t.dims.height,ct.rect(0,0,ht.width,ht.height),ct.fillStyle="#ffffff",ct.fill()),ft&&t.dims.width===dt.width&&t.dims.height===dt.height||(dt.width=t.dims.width,dt.height=t.dims.height,ft=pt.createImageData(t.dims.width,t.dims.height)),ft.data.set(t.patch),pt.putImageData(ft,0,0),ct.drawImage(dt,t.dims.left,t.dims.top);var e=document.createElement("canvas");e.width=p,e.height=p;var i=e.getContext("2d");i.drawImage(ht,0,0,p,p),i.drawImage(r,0,0,p,p);var n=document.createElement("canvas"),a=n.getContext("2d");n.width=o,n.height=o,a.drawImage(e,0,0,o,o),ut.addFrame(a,{copy:!0,delay:t.delay})})),void 0===ut)throw new Error("No frames.");var gt=this;ut.on("finished",(function(t){var e=new FileReader;e.onload=function(t){var e=t.target.result;if(gt._bIsPainted=!0,void 0!==gt._callback&&gt._callback(e),void 0!==gt._bindElement)try{var r=document.getElementById(gt._bindElement);if("IMG"===r.nodeName)r.src=e;else{var i=r.style;i["background-image"]="url("+e+")",i["background-size"]="contain",i["background-repeat"]="no-repeat"}}catch(t){console.error(t)}},e.readAsDataURL(t)})),ut.render()}},r.prototype.makeImage=function(){this._bIsPainted&&e.call(this,t)},r.prototype.isPainted=function(){return this._bIsPainted},r.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},r.prototype.round=function(t){return t?Math.floor(1e3*t)/1e3:t},r}();function V(t,e,r,i,n,a){t.beginPath(),t.moveTo(e,r),t.arcTo(e+i,r,e+i,r+n,a),t.arcTo(e+i,r+n,e,r+n,a),t.arcTo(e,r+n,e,r,a),t.arcTo(e,r,e+i,r,a),t.closePath()}function Y(t,e,r){return.3*t+.59*r+.11*r}function Z(t,e,r,i,n,a,o){if(void 0===a)t.fillRect(e,r,i,n);else{t.drawImage(a,e,r,i,n,e,r,i,n);var s=t.fillStyle;t.fillStyle=o?"rgba(0, 0, 0, .5)":"rgba(255, 255, 255, .7)",t.fillRect(e,r,i,n),t.fillStyle=s}}function tt(t,e,r,i,n){t.clearRect((e-2)*i,(r-2)*n,5*i,5*n),t.fillRect((e-2)*i,(r-2)*n,5*i,5*n)}function et(t,e,r,i,n){t.fillRect((e-2)*i,(r-2)*n,i,4*n),t.fillRect((e+2)*i,(r-2+1)*n,i,4*n),t.fillRect((e-2+1)*i,(r-2)*n,4*i,n),t.fillRect((e-2)*i,(r+2)*n,4*i,n),t.fillRect(e*i,r*n,i,n)}(D=function(){}).prototype.create=function(t){if(this._htOption={size:800,margin:20,typeNumber:4,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",logoBackgroundColor:"#ffffff",correctLevel:M.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:6,logoCornerRadius:8,whiteMargin:!0,dotScale:.35,maskedDots:!1,autoColor:!0,binarize:!1,binarizeThreshold:128,gifBackground:void 0,callback:void 0,bindElement:void 0,backgroundColor:"#ffffff"},"string"==typeof t&&(t={text:t}),t)for(var e in t)this._htOption[e]=t[e];this._oQRCode=null,this._oDrawing=new J(this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},D.prototype.makeCode=function(t){this._oQRCode=new A(-1,this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._oDrawing.draw(this._oQRCode),this.makeImage()},D.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&this._oDrawing.makeImage()},D.prototype.clear=function(){this._oDrawing.clear()},D.CorrectLevel=M,e.default=D}])}))},7851:function(t,e,r){},8916:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var i=r("b775");function n(t){return Object(i["a"])({url:"user-service/log/getLogList",method:"get",params:t})}},c24f:function(t,e,r){"use strict";r.d(e,"e",(function(){return n})),r.d(e,"d",(function(){return a})),r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return s})),r.d(e,"b",(function(){return l}));var i=r("b775");function n(t){return Object(i["a"])({url:"user-service/user/getUserList",method:"get",params:t})}function a(t){return Object(i["a"])({url:"user-service/user/getUserByUserName",method:"get",params:t})}function o(t){return Object(i["a"])({headers:{"Content-Type":"application/json"},url:"user-service/user/saveSysuser",method:"post",data:t})}function s(t){return Object(i["a"])({headers:{"Content-Type":"application/json"},url:"user-service/user/updateSysuser",method:"post",data:t})}function l(t){var e={userIds:t};return Object(i["a"])({url:"user-service/user/removeSysuser",method:"get",params:e})}},d34c:function(t,e,r){},dbdb:function(t,e,r){"use strict";r("7851")},dbec:function(t,e,r){"use strict";r.r(e);var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("div",{staticClass:"decorate"}),r("el-container",{staticClass:"logBox"},[r("el-header",{attrs:{height:"160px"}},[r("svg-icon",{attrs:{"icon-class":"touxiang"}}),r("span",{staticClass:"user"},[t._v(t._s(t.listData.userName))]),r("span",[t._v("|")]),r("span",[t._v(t._s(t.listData.nickName))])],1),r("el-container",[r("el-aside",{attrs:{width:"488px"}},[r("div",{staticClass:"title"},[r("i",{staticClass:"iconfont icon-biaoti"}),r("span",[t._v(t._s(t.$t("cabinet.basicInfo")))])]),r("div",{staticClass:"info"},[r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.userName")))]),r("div",{staticClass:"value"},[t._v(t._s(t.listData.userName))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.nickName")))]),r("div",{staticClass:"value"},[t._v(t._s(t.listData.nickName))]),r("i",{staticClass:"iconfont icon-bianji",on:{click:function(e){return t.handleUpdate("nickName")}}})]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.phone")))]),r("div",{staticClass:"value"},[t._v(t._s(t.listData.phone))]),r("i",{staticClass:"iconfont icon-bianji",on:{click:function(e){return t.handleUpdate("phone")}}})]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("login.password")))]),r("div",{staticClass:"value"},[t._v("******")]),r("i",{staticClass:"iconfont icon-bianji",on:{click:function(e){return t.handleUpdate("pwd")}}})]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.permissionLevel")))]),t._l(t.permissionList,(function(e,i){return r("div",{key:i,attrs:{label:e.label,value:e.value}},[e.value==t.listData.permissionLevel?r("div",{staticClass:"value"},[t._v(" "+t._s(e.label)+" ")]):t._e()])}))],2),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("user.userType")))]),r("div",{staticClass:"value"},[t._v(" "+t._s(0==t.listData.userType?t.$t("user.admin"):t.$t("user.superAdmin"))+" ")])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.APP")))]),r("div",{staticClass:"value"}),r("el-popover",{attrs:{placement:"right",width:"175"}},[r("div",{staticClass:"qrname"},[t._v("Android")]),r("VueQr",{ref:"Qrcode",attrs:{text:"http://"+t.hostname+":8701/trajectory-service/uploadFile/HJ-IEMS.apk",size:150,margin:5,logoScale:.22,qid:"testQrId"}}),r("i",{staticClass:"iconfont icon-chakan",staticStyle:{float:"none"},attrs:{slot:"reference"},slot:"reference"})],1)],1)]),r("div",{staticClass:"title",staticStyle:{"margin-top":"20px"}},[r("i",{staticClass:"iconfont icon-biaoti"}),r("span",[t._v(t._s(t.$t("personal.tasks")))])]),r("div",{staticClass:"info"},[r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.completedOrder")))]),r("div",{staticClass:"value"},[t._v(t._s(t.TaskList.orderFinish))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.unfinishedOrders")))]),r("div",{staticClass:"value"},[t._v(t._s(t.TaskList.orderUnFinish))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.completedPatrol")))]),r("div",{staticClass:"value"},[t._v(t._s(t.TaskList.inspectionFinish))])]),r("div",{staticClass:"item"},[r("div",{staticClass:"label"},[t._v(t._s(t.$t("personal.unfinishedPatrol")))]),r("div",{staticClass:"value"},[t._v(t._s(t.TaskList.inspectionUnFinish))])]),r("div",{staticClass:"cir"},[r("PerCircular",{attrs:{width:"5",color:t.color,fontSize:t.fontSize,percentNum:t.percentNum,text:t.$t("personal.rate")}})],1)])]),r("el-main",[r("div",{staticClass:"title"},[r("i",{staticClass:"iconfont icon-biaoti"}),r("span",[t._v(t._s(t.$t("personal.log")))])]),r("div",{staticClass:"table-container"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.list,fit:"","max-height":"460","highlight-current-row":"","header-row-class-name":"table-header","row-class-name":"table-row"}},[r("el-table-column",{attrs:{property:"operation",align:"left",label:t.$t("table.operate")}}),r("el-table-column",{attrs:{label:t.$t("personal.time"),align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(t._f("switchTimeFormat")(e.row.createDate)))])]}}])})],1)],1)]),r("div",{staticClass:"Technology",on:{click:t.goHJnet}},[t._v(" Technology Provider: "),r("i",{staticClass:"iconfont icon-group"}),t._v(" HJ-Group & "),r("i",{staticClass:"iconfont icon-huijuewangluologo"}),t._v(" HJ-Network ")])],1)],1),r("el-dialog",{staticClass:"logDialog",attrs:{"close-on-click-modal":!1,title:t.$t("table.update"),visible:t.addDialog},on:{"update:visible":function(e){t.addDialog=e}}},[r("el-form",{ref:"form",staticStyle:{"margin-top":"20px"},attrs:{rules:t.rules,"status-icon":"",model:t.form,inline:"","label-width":"200px"}},["phone"==t.dialogType?r("el-form-item",{attrs:{label:t.$t("user.phone"),prop:"phone"}},[r("el-input",{attrs:{placeholder:t.$t("pEnter")+t.$t("user.phone"),maxlength:"20"},model:{value:t.form.phone,callback:function(e){t.$set(t.form,"phone",e)},expression:"form.phone"}})],1):t._e(),"nickName"==t.dialogType?r("el-form-item",{attrs:{label:t.$t("user.nickName"),prop:"nickName"}},[r("el-input",{attrs:{placeholder:t.$t("pEnter")+t.$t("user.nickName"),maxlength:"20"},model:{value:t.form.nickName,callback:function(e){t.$set(t.form,"nickName",e)},expression:"form.nickName"}})],1):t._e(),"pwd"==t.dialogType?r("el-form-item",{attrs:{label:t.$t("user.password"),prop:"password"}},[r("el-input",{attrs:{type:"password",minlength:"6",maxlength:"8",placeholder:t.$t("validate.pswLimit")},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1):t._e(),"pwd"==t.dialogType?r("el-form-item",{attrs:{label:t.$t("user.pswAgain"),prop:"pswAgain"}},[r("el-input",{attrs:{type:"password",minlength:"6",maxlength:"8",placeholder:t.$t("validate.pswConfirm")},model:{value:t.pswAgain,callback:function(e){t.pswAgain=e},expression:"pswAgain"}})],1):t._e()],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("span",{staticClass:"btn-item long",on:{click:function(e){t.addDialog=!1}}},[t._v(t._s(t.$t("btn.cancel")))]),r("span",{staticClass:"btn-item long",on:{click:function(e){return t.updateData()}}},[t._v(t._s(t.$t("btn.define")))])])],1)],1)},n=[],a=(r("d9e2"),r("c24f")),o=r("b775");function s(t){return Object(o["a"])({url:"trajectory-service/taskStatistics/getPersonTaskInfo",method:"get",params:t})}var l=r("8916"),u=r("658f5"),h=r.n(u),c=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"percentloop"},[r("div",{staticClass:"circle-left",style:{backgroundColor:t.color}},[r("div",{ref:"leftcontent"})]),r("div",{staticClass:"circle-right",style:{backgroundColor:t.color}},[r("div",{ref:"rightcontent"})]),r("div",{staticClass:"number",style:{top:t.width+"px",bottom:t.width+"px",left:t.width+"px",right:t.width+"px"}},[r("div",{style:{color:t.color,fontSize:t.fontSize}},[t._v(" "+t._s(t.percent)+"% ")]),r("div",[t._v(t._s(t.text))])])])},f=[],d=(r("a9e3"),{props:{percentNum:{type:[String,Number],default:0},fontSize:{type:String,default:"18px"},speed:{type:[String,Number],default:1},width:{type:[String,Number],default:5},color:{type:String,default:""},text:{type:String,default:"同比"}},data:function(){return{percent:0,initDeg:0,timeId:null,animationing:!1}},beforeDestroy:function(){this.timeId&&clearInterval(this.timeId)},methods:{transformToDeg:function(t){var e=0;return e=isNaN(t)?0:t>=100?360:t<=-100?-360:parseInt(360*t/100),e},transformToPercent:function(t){var e=0;return e=t>=360?100:t<=-360?-100:parseInt(100*t/360),e},rotateLeft:function(t){t<0&&(t=-t),this.$refs.leftcontent.style.transform="rotate("+(t-180)+"deg)"},rotateRight:function(t){t<0&&(t=-t),this.$refs.rightcontent.style.transform="rotate("+t+"deg)"},goRotate:function(t){var e=this;this.animationing=!0,this.timeId=setInterval((function(){t>e.initDeg?(e.initDeg+=Number(e.speed),Math.abs(e.initDeg)>=180?(e.rotateLeft(e.initDeg),e.rotateRight(180)):e.rotateRight(e.initDeg)):(e.initDeg-=Number(e.speed),Math.abs(e.initDeg)>=180?e.rotateLeft(e.initDeg):(e.rotateLeft(180),e.rotateRight(e.initDeg))),e.percent=e.transformToPercent(e.initDeg);var r=Number(t)-e.initDeg;Math.abs(r)<e.speed&&(e.initDeg+=r,Math.abs(e.initDeg)>180?e.rotateLeft(t):e.rotateRight(t),e.animationFinished())}),10)},animationFinished:function(){this.percent=isNaN(this.percentNum)?0:this.percentNum,this.animationing=!1,clearInterval(this.timeId)}},created:function(){this.goRotate(this.transformToDeg(this.percentNum))},watch:{percentNum:function(t){this.animationing||this.goRotate(this.transformToDeg(t))}}}),p=d,g=(r("f8b8"),r("2877")),m=Object(g["a"])(p,c,f,!1,null,"0972685a",null),v=m.exports,y=r("61f7"),b={components:{PerCircular:v,VueQr:h.a},filters:{switchTimeFormat:function(t){var e=Object(y["b"])(t);return e}},data:function(){var t=this,e=function(e,r,i){""===r?i(new Error(t.$t("pEnter")+t.$t("user.nickName"))):i()},r=function(e,r,i){""===r||t.form.password.length<6||t.form.password.length>8?i(new Error(t.$t("validate.pswLimit"))):i()},i=function(e,r,i){null===t.pswAgain?i(new Error(t.$t("validate.pswConfirm"))):t.pswAgain!==t.form.password?i(new Error(t.$t("validate.pswError"))):i()},n=function(e,r,i){""===r?i(new Error(t.$t("validate.phone"))):i()};return{hostname:window.location.hostname,type:"",color:"#01FFE9",fontSize:"16px",list:[],TaskList:{inspectionFinish:null,inspectionUnFinish:null,orderFinish:null,orderUnFinish:null,totalTask:null},percentNum:null,listData:{userName:null,userType:null,nickName:null,phone:null,permissionLevel:null},form:{userId:null,userName:null,nickName:null,phone:null,password:null},dialogType:"",password:null,pswAgain:null,listLoading:!1,addDialog:!1,permissionList:[{value:1,label:this.$t("type.read")},{value:2,label:this.$t("type.write")},{value:3,label:this.$t("type.dispose")}],rules:{nickName:[{required:!0,validator:e,trigger:"blur"}],password:[{required:!0,validator:r,trigger:"blur"}],pswAgain:[{required:!0,validator:i,trigger:"blur"}],phone:[{required:!0,validator:n,trigger:"blur"}]}}},created:function(){this.getList(),this.getUser(),this.getPersonTaskInfo()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(l["a"])().then((function(e){t.listLoading=!1,t.list=e.data.list}))},goHJnet:function(){window.open("https://www.hj-net.com/","hj-net")},getUser:function(){var t=this;Object(a["d"])({userName:this.$store.state.user.userName}).then((function(e){t.listData=e.data,t.form.userId=e.data.userId,t.form.userName=e.data.userName}))},getPersonTaskInfo:function(){var t=this;s().then((function(e){t.TaskList=e.data,t.percentNum=(e.data.inspectionFinish+e.data.orderFinish)/e.data.totalTask}))},handleUpdate:function(t){this.dialogType=t,this.form.nickName=this.listData.nickName,this.form.phone=this.listData.phone,"pwd"==t&&(this.form.password=null,this.pswAgain=""),this.type="pwd",this.addDialog=!0},updateData:function(){var t=this;this.$refs.form.validate((function(e){e&&Object(a["c"])(t.form).then((function(e){200==e.status&&(t.addDialog=!1,t.$notify({title:t.$t("title.success"),message:t.$t("title.updateSuccess"),type:"success",duration:3e3}),t.getUser())}))}))}}},w=b,_=(r("dbdb"),r("dccf"),Object(g["a"])(w,i,n,!1,null,"1aef4aa1",null));e["default"]=_.exports},dccf:function(t,e,r){"use strict";r("d34c")},f8b8:function(t,e,r){"use strict";r("21bd")}}]);
//# sourceMappingURL=chunk-56fc7d4c.55dd964c.js.map