import{d as wr,l as yr,a as Ar,m as xr,q as Cr,n as _r}from"./app.b25a7691.js";/*! * vue-qrcode v1.0.2 * https://fengyuanchen.github.io/vue-qrcode * * Copyright 2018-present Chen Fengyuan * Released under the MIT license * * Date: 2020-01-18T06:04:33.222Z */function hr(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Tr(u,V){return V={exports:{}},u(V,V.exports),V.exports}var pr=Tr(function(u,V){(function(c){u.exports=c()})(function(){return function(){function c(C,g,p){function d(a,f){if(!g[a]){if(!C[a]){var n=typeof hr=="function"&&hr;if(!f&&n)return n(a,!0);if(s)return s(a,!0);var m=new Error("Cannot find module '"+a+"'");throw m.code="MODULE_NOT_FOUND",m}var E=g[a]={exports:{}};C[a][0].call(E.exports,function(T){var L=C[a][1][T];return d(L||T)},E,E.exports,c,C,g,p)}return g[a].exports}for(var s=typeof hr=="function"&&hr,i=0;i>>7-d%8&1)===1},put:function(d,s){for(var i=0;i>>s-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(d){var s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),d&&(this.buffer[s]|=128>>>this.length%8),this.length++}},C.exports=p},{}],5:[function(c,C,g){var p=c("../utils/buffer");function d(s){if(!s||s<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=s,this.data=p.alloc(s*s),this.reservedBit=p.alloc(s*s)}d.prototype.set=function(s,i,a,f){var n=s*this.size+i;this.data[n]=a,f&&(this.reservedBit[n]=!0)},d.prototype.get=function(s,i){return this.data[s*this.size+i]},d.prototype.xor=function(s,i,a){this.data[s*this.size+i]^=a},d.prototype.isReserved=function(s,i){return this.reservedBit[s*this.size+i]},C.exports=d},{"../utils/buffer":28}],6:[function(c,C,g){var p=c("../utils/buffer"),d=c("./mode");function s(i){this.mode=d.BYTE,this.data=p.from(i)}s.getBitsLength=function(a){return a*8},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(i){for(var a=0,f=this.data.length;a=0&&s.bit<4},g.from=function(s,i){if(g.isValid(s))return s;try{return p(s)}catch{return i}}},{}],9:[function(c,C,g){var p=c("./utils").getSymbolSize,d=7;g.getPositions=function(i){var a=p(i);return[[0,0],[a-d,0],[0,a-d]]}},{"./utils":21}],10:[function(c,C,g){var p=c("./utils"),d=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,s=1<<14|1<<12|1<<10|1<<4|1<<1,i=p.getBCHDigit(d);g.getEncodedBits=function(f,n){for(var m=f.bit<<3|n,E=m<<10;p.getBCHDigit(E)-i>=0;)E^=d<=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[a]+` Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),i.put(f,13)}},C.exports=s},{"./mode":14,"./utils":21}],13:[function(c,C,g){g.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var p={N1:3,N2:3,N3:40,N4:10};g.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},g.from=function(i){return g.isValid(i)?parseInt(i,10):void 0},g.getPenaltyN1=function(i){for(var a=i.size,f=0,n=0,m=0,E=null,T=null,L=0;L=5&&(f+=p.N1+(n-5)),E=U,n=1),U=i.get(b,L),U===T?m++:(m>=5&&(f+=p.N1+(m-5)),T=U,m=1)}n>=5&&(f+=p.N1+(n-5)),m>=5&&(f+=p.N1+(m-5))}return f},g.getPenaltyN2=function(i){for(var a=i.size,f=0,n=0;n=10&&(n===1488||n===93)&&f++,m=m<<1&2047|i.get(T,E),T>=10&&(m===1488||m===93)&&f++}return f*p.N3},g.getPenaltyN4=function(i){for(var a=0,f=i.data.length,n=0;n=1&&f<10?a.ccBits[0]:f<27?a.ccBits[1]:a.ccBits[2]},g.getBestModeForData=function(a){return d.testNumeric(a)?g.NUMERIC:d.testAlphanumeric(a)?g.ALPHANUMERIC:d.testKanji(a)?g.KANJI:g.BYTE},g.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},g.isValid=function(a){return a&&a.bit&&a.ccBits};function s(i){if(typeof i!="string")throw new Error("Param is not a string");var a=i.toLowerCase();switch(a){case"numeric":return g.NUMERIC;case"alphanumeric":return g.ALPHANUMERIC;case"kanji":return g.KANJI;case"byte":return g.BYTE;default:throw new Error("Unknown mode: "+i)}}g.from=function(a,f){if(g.isValid(a))return a;try{return s(a)}catch{return f}}},{"./regex":19,"./version-check":22}],15:[function(c,C,g){var p=c("./mode");function d(s){this.mode=p.NUMERIC,this.data=s.toString()}d.getBitsLength=function(i){return 10*Math.floor(i/3)+(i%3?i%3*3+1:0)},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(i){var a,f,n;for(a=0;a+3<=this.data.length;a+=3)f=this.data.substr(a,3),n=parseInt(f,10),i.put(n,10);var m=this.data.length-a;m>0&&(f=this.data.substr(a),n=parseInt(f,10),i.put(n,m*3+1))},C.exports=d},{"./mode":14}],16:[function(c,C,g){var p=c("../utils/buffer"),d=c("./galois-field");g.mul=function(i,a){for(var f=p.alloc(i.length+a.length-1),n=0;n=0;){for(var n=f[0],m=0;m=0&&Y<=6&&(J===0||J===6)||J>=0&&J<=6&&(Y===0||Y===6)||Y>=2&&Y<=4&&J>=2&&J<=4?R.set(H+Y,D+J,!0,!0):R.set(H+Y,D+J,!1,!0))}function S(R){for(var N=R.size,k=8;k>Y&1)===1,R.set($,H,D,!0),R.set(H,$,D,!0)}function l(R,N,k){var M=R.size,$=b.getEncodedBits(N,k),H,D;for(H=0;H<15;H++)D=($>>H&1)===1,H<6?R.set(H,8,D,!0):H<8?R.set(H+1,8,D,!0):R.set(M-15+H,8,D,!0),H<8?R.set(8,M-H-1,D,!0):H<9?R.set(8,15-H-1+1,D,!0):R.set(8,15-H-1,D,!0);R.set(M-8,8,1,!0)}function y(R,N){for(var k=R.size,M=-1,$=k-1,H=7,D=0,Y=k-1;Y>0;Y-=2)for(Y===6&&Y--;;){for(var J=0;J<2;J++)if(!R.isReserved($,Y-J)){var er=!1;D>>H&1)===1),R.set($,Y-J,er),H--,H===-1&&(D++,H=7)}if($+=M,$<0||k<=$){$-=M,M=-M;break}}}function _(R,N,k){var M=new i;k.forEach(function(er){M.put(er.mode.bit,4),M.put(er.getLength(),U.getCharCountIndicator(er.mode,R)),er.write(M)});var $=d.getSymbolTotalCodewords(R),H=E.getTotalCodewordsCount(R,N),D=($-H)*8;for(M.getLengthInBits()+4<=D&&M.put(0,4);M.getLengthInBits()%8!==0;)M.putBit(0);for(var Y=(D-M.getLengthInBits())/8,J=0;J=7&&h(G,N),y(G,J),isNaN(M)&&(M=m.getBestMask(G,l.bind(null,G,k))),m.applyMask(M,G),l(G,k,M),{modules:G,version:N,errorCorrectionLevel:k,maskPattern:M,segments:$}}g.create=function(N,k){if(typeof N=="undefined"||N==="")throw new Error("No input text");var M=s.M,$,H;return typeof k!="undefined"&&(M=s.from(k.errorCorrectionLevel,s.M),$=L.from(k.version),H=m.from(k.maskPattern),k.toSJISFunc&&d.setToSJISFunction(k.toSJISFunc)),O(N,$,M,H)}},{"../utils/buffer":28,"./alignment-pattern":2,"./bit-buffer":4,"./bit-matrix":5,"./error-correction-code":7,"./error-correction-level":8,"./finder-pattern":9,"./format-info":10,"./mask-pattern":13,"./mode":14,"./reed-solomon-encoder":18,"./segments":20,"./utils":21,"./version":23,isarray:33}],18:[function(c,C,g){var p=c("../utils/buffer"),d=c("./polynomial"),s=c("buffer").Buffer;function i(a){this.genPoly=void 0,this.degree=a,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(f){this.degree=f,this.genPoly=d.generateECPolynomial(this.degree)},i.prototype.encode=function(f){if(!this.genPoly)throw new Error("Encoder not initialized");var n=p.alloc(this.degree),m=s.concat([f,n],f.length+this.degree),E=d.mod(m,this.genPoly),T=this.degree-E.length;if(T>0){var L=p.alloc(this.degree);return E.copy(L,T),L}return E},C.exports=i},{"../utils/buffer":28,"./polynomial":16,buffer:30}],19:[function(c,C,g){var p="[0-9]+",d="[A-Z $%*+\\-./:]+",s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";s=s.replace(/u/g,"\\u");var i="(?:(?![A-Z0-9 $%*+\\-./:]|"+s+`)(?:.|[\r ]))+`;g.KANJI=new RegExp(s,"g"),g.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),g.BYTE=new RegExp(i,"g"),g.NUMERIC=new RegExp(p,"g"),g.ALPHANUMERIC=new RegExp(d,"g");var a=new RegExp("^"+s+"$"),f=new RegExp("^"+p+"$"),n=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");g.testKanji=function(E){return a.test(E)},g.testNumeric=function(E){return f.test(E)},g.testAlphanumeric=function(E){return n.test(E)}},{}],20:[function(c,C,g){var p=c("./mode"),d=c("./numeric-data"),s=c("./alphanumeric-data"),i=c("./byte-data"),a=c("./kanji-data"),f=c("./regex"),n=c("./utils"),m=c("dijkstrajs");function E(S){return unescape(encodeURIComponent(S)).length}function T(S,w,h){for(var l=[],y;(y=S.exec(h))!==null;)l.push({data:y[0],index:y.index,mode:w,length:y[0].length});return l}function L(S){var w=T(f.NUMERIC,p.NUMERIC,S),h=T(f.ALPHANUMERIC,p.ALPHANUMERIC,S),l,y;n.isKanjiModeEnabled()?(l=T(f.BYTE,p.BYTE,S),y=T(f.KANJI,p.KANJI,S)):(l=T(f.BYTE_KANJI,p.BYTE,S),y=[]);var _=w.concat(h,l,y);return _.sort(function(P,O){return P.index-O.index}).map(function(P){return{data:P.data,mode:P.mode,length:P.length}})}function b(S,w){switch(w){case p.NUMERIC:return d.getBitsLength(S);case p.ALPHANUMERIC:return s.getBitsLength(S);case p.KANJI:return a.getBitsLength(S);case p.BYTE:return i.getBitsLength(S)}}function U(S){return S.reduce(function(w,h){var l=w.length-1>=0?w[w.length-1]:null;return l&&l.mode===h.mode?(w[w.length-1].data+=h.data,w):(w.push(h),w)},[])}function B(S){for(var w=[],h=0;h40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},g.getSymbolTotalCodewords=function(i){return d[i]},g.getBCHDigit=function(s){for(var i=0;s!==0;)i++,s>>>=1;return i},g.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');p=i},g.isKanjiModeEnabled=function(){return typeof p!="undefined"},g.toSJIS=function(i){return p(i)}},{}],22:[function(c,C,g){g.isValid=function(d){return!isNaN(d)&&d>=1&&d<=40}},{}],23:[function(c,C,g){var p=c("./utils"),d=c("./error-correction-code"),s=c("./error-correction-level"),i=c("./mode"),a=c("./version-check"),f=c("isarray"),n=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,m=p.getBCHDigit(n);function E(U,B,I){for(var F=1;F<=40;F++)if(B<=g.getCapacity(F,I,U))return F}function T(U,B){return i.getCharCountIndicator(U,B)+4}function L(U,B){var I=0;return U.forEach(function(F){var S=T(F.mode,B);I+=S+F.getBitsLength()}),I}function b(U,B){for(var I=1;I<=40;I++){var F=L(U,I);if(F<=g.getCapacity(I,B,i.MIXED))return I}}g.from=function(B,I){return a.isValid(B)?parseInt(B,10):I},g.getCapacity=function(B,I,F){if(!a.isValid(B))throw new Error("Invalid QR Code version");typeof F=="undefined"&&(F=i.BYTE);var S=p.getSymbolTotalCodewords(B),w=d.getTotalCodewordsCount(B,I),h=(S-w)*8;if(F===i.MIXED)return h;var l=h-T(F,B);switch(F){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},g.getBestVersionForData=function(B,I){var F,S=s.from(I,s.M);if(f(B)){if(B.length>1)return b(B,S);if(B.length===0)return 1;F=B[0]}else F=B;return E(F.mode,F.getLength(),S)},g.getEncodedBits=function(B){if(!a.isValid(B)||B<7)throw new Error("Invalid QR Code version");for(var I=B<<12;p.getBCHDigit(I)-m>=0;)I^=n<0&&U>0&&a[b-1]||(m+=T?s("M",U+n,.5+B+n):s("m",E,0),E=0,T=!1),U+1':"",B="',I='viewBox="0 0 '+b+" "+b+'"',F=E.width?'width="'+E.width+'" height="'+E.width+'" ':"",S=''+U+B+` `;return typeof m=="function"&&m(null,S),S}},{"./utils":27}],27:[function(c,C,g){function p(d){if(typeof d=="number"&&(d=d.toString()),typeof d!="string")throw new Error("Color should be defined as hex string");var s=d.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+d);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(a){return[a,a]}))),s.length===6&&s.push("F","F");var i=parseInt(s.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+s.slice(0,6).join("")}}g.getOptions=function(s){s||(s={}),s.color||(s.color={});var i=typeof s.margin=="undefined"||s.margin===null||s.margin<0?4:s.margin,a=s.width&&s.width>=21?s.width:void 0,f=s.scale||4;return{width:a,scale:a?4:f,margin:i,color:{dark:p(s.color.dark||"#000000ff"),light:p(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},g.getScale=function(s,i){return i.width&&i.width>=s+i.margin*2?i.width/(s+i.margin*2):i.scale},g.getImageWidth=function(s,i){var a=g.getScale(s,i);return Math.floor((s+i.margin*2)*a)},g.qrToImageData=function(s,i,a){for(var f=i.modules.size,n=i.modules.data,m=g.getScale(f,a),E=Math.floor((f+a.margin*2)*m),T=a.margin*m,L=[a.color.light,a.color.dark],b=0;b=T&&U>=T&&b=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return w|0}function f(w){return w!==w}function n(w,h){var l;return i.TYPED_ARRAY_SUPPORT?(l=new Uint8Array(h),l.__proto__=i.prototype):(l=w,l===null&&(l=new i(h)),l.length=h),l}function m(w,h){var l=n(w,h<0?0:a(h)|0);if(!i.TYPED_ARRAY_SUPPORT)for(var y=0;y55295&&l<57344){if(!_){if(l>56319){(h-=3)>-1&&P.push(239,191,189);continue}else if(O+1===y){(h-=3)>-1&&P.push(239,191,189);continue}_=l;continue}if(l<56320){(h-=3)>-1&&P.push(239,191,189),_=l;continue}l=(_-55296<<10|l-56320)+65536}else _&&(h-=3)>-1&&P.push(239,191,189);if(_=null,l<128){if((h-=1)<0)break;P.push(l)}else if(l<2048){if((h-=2)<0)break;P.push(l>>6|192,l&63|128)}else if(l<65536){if((h-=3)<0)break;P.push(l>>12|224,l>>6&63|128,l&63|128)}else if(l<1114112){if((h-=4)<0)break;P.push(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}else throw new Error("Invalid code point")}return P}function B(w){if(i.isBuffer(w))return w.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(w)||w instanceof ArrayBuffer))return w.byteLength;typeof w!="string"&&(w=""+w);var h=w.length;return h===0?0:U(w).length}function I(w,h,l,y){for(var _=0;_=h.length||_>=w.length);++_)h[_+l]=w[_];return _}function F(w,h,l,y){return I(U(h,w.length-l),w,l,y)}function S(w,h,l,y){if(typeof h=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&h instanceof ArrayBuffer?L(w,h,l,y):typeof h=="string"?E(w,h):b(w,h)}i.prototype.write=function(h,l,y){l===void 0?(y=this.length,l=0):y===void 0&&typeof l=="string"?(y=this.length,l=0):isFinite(l)&&(l=l|0,isFinite(y)?y=y|0:y=void 0);var _=this.length-l;if((y===void 0||y>_)&&(y=_),h.length>0&&(y<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");return F(this,h,l,y)},i.prototype.slice=function(h,l){var y=this.length;h=~~h,l=l===void 0?y:~~l,h<0?(h+=y,h<0&&(h=0)):h>y&&(h=y),l<0?(l+=y,l<0&&(l=0)):l>y&&(l=y),l=h.length&&(l=h.length),l||(l=0),_>0&&_=this.length)throw new RangeError("sourceStart out of bounds");if(_<0)throw new RangeError("sourceEnd out of bounds");_>this.length&&(_=this.length),h.length-l<_-y&&(_=h.length-l+y);var P=_-y,O;if(this===h&&y=0;--O)h[O+l]=this[O+y];else if(P<1e3||!i.TYPED_ARRAY_SUPPORT)for(O=0;O>>0,y=y===void 0?this.length:y>>>0,h||(h=0);var P;if(typeof h=="number")for(P=l;P0)throw new Error("Invalid string. Length must be a multiple of 4");var F=B.indexOf("=");F===-1&&(F=I);var S=F===I?0:4-F%4;return[F,S]}function m(B){var I=n(B),F=I[0],S=I[1];return(F+S)*3/4-S}function E(B,I,F){return(I+F)*3/4-F}function T(B){var I,F=n(B),S=F[0],w=F[1],h=new s(E(B,S,w)),l=0,y=w>0?S-4:S,_;for(_=0;_>16&255,h[l++]=I>>8&255,h[l++]=I&255;return w===2&&(I=d[B.charCodeAt(_)]<<2|d[B.charCodeAt(_+1)]>>4,h[l++]=I&255),w===1&&(I=d[B.charCodeAt(_)]<<10|d[B.charCodeAt(_+1)]<<4|d[B.charCodeAt(_+2)]>>2,h[l++]=I>>8&255,h[l++]=I&255),h}function L(B){return p[B>>18&63]+p[B>>12&63]+p[B>>6&63]+p[B&63]}function b(B,I,F){for(var S,w=[],h=I;hy?y:l+h));return S===1?(I=B[F-1],w.push(p[I>>2]+p[I<<4&63]+"==")):S===2&&(I=(B[F-2]<<8)+B[F-1],w.push(p[I>>10]+p[I>>4&63]+p[I<<2&63]+"=")),w.join("")}},{}],30:[function(c,C,g){var p=c("base64-js"),d=c("ieee754"),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;g.Buffer=n,g.SlowBuffer=S,g.INSPECT_MAX_BYTES=50;var i=2147483647;g.kMaxLength=i,n.TYPED_ARRAY_SUPPORT=a(),!n.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),t.foo()===42}catch{return!1}}Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(!!n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(!!n.isBuffer(this))return this.byteOffset}});function f(t){if(t>i)throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,n.prototype),r}function n(t,r,e){if(typeof t=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return L(t)}return m(t,r,e)}typeof Symbol!="undefined"&&Symbol.species!=null&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.poolSize=8192;function m(t,r,e){if(typeof t=="string")return b(t,r);if(ArrayBuffer.isView(t))return U(t);if(t==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Q(t,ArrayBuffer)||t&&Q(t.buffer,ArrayBuffer))return B(t,r,e);if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var o=t.valueOf&&t.valueOf();if(o!=null&&o!==t)return n.from(o,r,e);var v=I(t);if(v)return v;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof t[Symbol.toPrimitive]=="function")return n.from(t[Symbol.toPrimitive]("string"),r,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}n.from=function(t,r,e){return m(t,r,e)},Object.setPrototypeOf(n.prototype,Uint8Array.prototype),Object.setPrototypeOf(n,Uint8Array);function E(t){if(typeof t!="number")throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function T(t,r,e){return E(t),t<=0?f(t):r!==void 0?typeof e=="string"?f(t).fill(r,e):f(t).fill(r):f(t)}n.alloc=function(t,r,e){return T(t,r,e)};function L(t){return E(t),f(t<0?0:F(t)|0)}n.allocUnsafe=function(t){return L(t)},n.allocUnsafeSlow=function(t){return L(t)};function b(t,r){if((typeof r!="string"||r==="")&&(r="utf8"),!n.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var e=w(t,r)|0,o=f(e),v=o.write(t,r);return v!==e&&(o=o.slice(0,v)),o}function U(t){for(var r=t.length<0?0:F(t.length)|0,e=f(r),o=0;o=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return t|0}function S(t){return+t!=t&&(t=0),n.alloc(+t)}n.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==n.prototype},n.compare=function(r,e){if(Q(r,Uint8Array)&&(r=n.from(r,r.offset,r.byteLength)),Q(e,Uint8Array)&&(e=n.from(e,e.offset,e.byteLength)),!n.isBuffer(r)||!n.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===e)return 0;for(var o=r.length,v=e.length,A=0,x=Math.min(o,v);A2&&arguments[2]===!0;if(!o&&e===0)return 0;for(var v=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return tr(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return fr(t).length;default:if(v)return o?-1:tr(t).length;r=(""+r).toLowerCase(),v=!0}}n.byteLength=w;function h(t,r,e){var o=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return G(this,r,e);case"utf8":case"utf-8":return H(this,r,e);case"ascii":return J(this,r,e);case"latin1":case"binary":return er(this,r,e);case"base64":return $(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return cr(this,r,e);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}n.prototype._isBuffer=!0;function l(t,r,e){var o=t[r];t[r]=t[e],t[e]=o}n.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;ee&&(r+=" ... "),""},s&&(n.prototype[s]=n.prototype.inspect),n.prototype.compare=function(r,e,o,v,A){if(Q(r,Uint8Array)&&(r=n.from(r,r.offset,r.byteLength)),!n.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(e===void 0&&(e=0),o===void 0&&(o=r?r.length:0),v===void 0&&(v=0),A===void 0&&(A=this.length),e<0||o>r.length||v<0||A>this.length)throw new RangeError("out of range index");if(v>=A&&e>=o)return 0;if(v>=A)return-1;if(e>=o)return 1;if(e>>>=0,o>>>=0,v>>>=0,A>>>=0,this===r)return 0;for(var x=A-v,z=o-e,K=Math.min(x,z),q=this.slice(v,A),j=r.slice(e,o),Z=0;Z2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,gr(e)&&(e=v?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(v)return-1;e=t.length-1}else if(e<0)if(v)e=0;else return-1;if(typeof r=="string"&&(r=n.from(r,o)),n.isBuffer(r))return r.length===0?-1:_(t,r,e,o,v);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?v?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):_(t,[r],e,o,v);throw new TypeError("val must be string, number or Buffer")}function _(t,r,e,o,v){var A=1,x=t.length,z=r.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||r.length<2)return-1;A=2,x/=2,z/=2,e/=2}function K(vr,mr){return A===1?vr[mr]:vr.readUInt16BE(mr*A)}var q;if(v){var j=-1;for(q=e;qx&&(e=x-z),q=e;q>=0;q--){for(var Z=!0,lr=0;lrv&&(o=v)):o=v;var A=r.length;o>A/2&&(o=A/2);for(var x=0;x>>0,isFinite(o)?(o=o>>>0,v===void 0&&(v="utf8")):(v=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var A=this.length-e;if((o===void 0||o>A)&&(o=A),r.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var x=!1;;)switch(v){case"hex":return P(this,r,e,o);case"utf8":case"utf-8":return O(this,r,e,o);case"ascii":return R(this,r,e,o);case"latin1":case"binary":return N(this,r,e,o);case"base64":return k(this,r,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,r,e,o);default:if(x)throw new TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),x=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function $(t,r,e){return r===0&&e===t.length?p.fromByteArray(t):p.fromByteArray(t.slice(r,e))}function H(t,r,e){e=Math.min(t.length,e);for(var o=[],v=r;v239?4:A>223?3:A>191?2:1;if(v+z<=e){var K,q,j,Z;switch(z){case 1:A<128&&(x=A);break;case 2:K=t[v+1],(K&192)===128&&(Z=(A&31)<<6|K&63,Z>127&&(x=Z));break;case 3:K=t[v+1],q=t[v+2],(K&192)===128&&(q&192)===128&&(Z=(A&15)<<12|(K&63)<<6|q&63,Z>2047&&(Z<55296||Z>57343)&&(x=Z));break;case 4:K=t[v+1],q=t[v+2],j=t[v+3],(K&192)===128&&(q&192)===128&&(j&192)===128&&(Z=(A&15)<<18|(K&63)<<12|(q&63)<<6|j&63,Z>65535&&Z<1114112&&(x=Z))}}x===null?(x=65533,z=1):x>65535&&(x-=65536,o.push(x>>>10&1023|55296),x=56320|x&1023),o.push(x),v+=z}return Y(o)}var D=4096;function Y(t){var r=t.length;if(r<=D)return String.fromCharCode.apply(String,t);for(var e="",o=0;oo)&&(e=o);for(var v="",A=r;Ao&&(r=o),e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),ee)throw new RangeError("Trying to access beyond buffer length")}n.prototype.readUIntLE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=this[r],A=1,x=0;++x>>0,e=e>>>0,o||W(r,e,this.length);for(var v=this[r+--e],A=1;e>0&&(A*=256);)v+=this[r+--e]*A;return v},n.prototype.readUInt8=function(r,e){return r=r>>>0,e||W(r,1,this.length),this[r]},n.prototype.readUInt16LE=function(r,e){return r=r>>>0,e||W(r,2,this.length),this[r]|this[r+1]<<8},n.prototype.readUInt16BE=function(r,e){return r=r>>>0,e||W(r,2,this.length),this[r]<<8|this[r+1]},n.prototype.readUInt32LE=function(r,e){return r=r>>>0,e||W(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},n.prototype.readUInt32BE=function(r,e){return r=r>>>0,e||W(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},n.prototype.readIntLE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=this[r],A=1,x=0;++x=A&&(v-=Math.pow(2,8*e)),v},n.prototype.readIntBE=function(r,e,o){r=r>>>0,e=e>>>0,o||W(r,e,this.length);for(var v=e,A=1,x=this[r+--v];v>0&&(A*=256);)x+=this[r+--v]*A;return A*=128,x>=A&&(x-=Math.pow(2,8*e)),x},n.prototype.readInt8=function(r,e){return r=r>>>0,e||W(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},n.prototype.readInt16LE=function(r,e){r=r>>>0,e||W(r,2,this.length);var o=this[r]|this[r+1]<<8;return o&32768?o|4294901760:o},n.prototype.readInt16BE=function(r,e){r=r>>>0,e||W(r,2,this.length);var o=this[r+1]|this[r]<<8;return o&32768?o|4294901760:o},n.prototype.readInt32LE=function(r,e){return r=r>>>0,e||W(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},n.prototype.readInt32BE=function(r,e){return r=r>>>0,e||W(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},n.prototype.readFloatLE=function(r,e){return r=r>>>0,e||W(r,4,this.length),d.read(this,r,!0,23,4)},n.prototype.readFloatBE=function(r,e){return r=r>>>0,e||W(r,4,this.length),d.read(this,r,!1,23,4)},n.prototype.readDoubleLE=function(r,e){return r=r>>>0,e||W(r,8,this.length),d.read(this,r,!0,52,8)},n.prototype.readDoubleBE=function(r,e){return r=r>>>0,e||W(r,8,this.length),d.read(this,r,!1,52,8)};function X(t,r,e,o,v,A){if(!n.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>v||rt.length)throw new RangeError("Index out of range")}n.prototype.writeUIntLE=function(r,e,o,v){if(r=+r,e=e>>>0,o=o>>>0,!v){var A=Math.pow(2,8*o)-1;X(this,r,e,o,A,0)}var x=1,z=0;for(this[e]=r&255;++z>>0,o=o>>>0,!v){var A=Math.pow(2,8*o)-1;X(this,r,e,o,A,0)}var x=o-1,z=1;for(this[e+x]=r&255;--x>=0&&(z*=256);)this[e+x]=r/z&255;return e+o},n.prototype.writeUInt8=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,1,255,0),this[e]=r&255,e+1},n.prototype.writeUInt16LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,65535,0),this[e]=r&255,this[e+1]=r>>>8,e+2},n.prototype.writeUInt16BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,65535,0),this[e]=r>>>8,this[e+1]=r&255,e+2},n.prototype.writeUInt32LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,4294967295,0),this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255,e+4},n.prototype.writeUInt32BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,4294967295,0),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4},n.prototype.writeIntLE=function(r,e,o,v){if(r=+r,e=e>>>0,!v){var A=Math.pow(2,8*o-1);X(this,r,e,o,A-1,-A)}var x=0,z=1,K=0;for(this[e]=r&255;++x>0)-K&255;return e+o},n.prototype.writeIntBE=function(r,e,o,v){if(r=+r,e=e>>>0,!v){var A=Math.pow(2,8*o-1);X(this,r,e,o,A-1,-A)}var x=o-1,z=1,K=0;for(this[e+x]=r&255;--x>=0&&(z*=256);)r<0&&K===0&&this[e+x+1]!==0&&(K=1),this[e+x]=(r/z>>0)-K&255;return e+o},n.prototype.writeInt8=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,1,127,-128),r<0&&(r=255+r+1),this[e]=r&255,e+1},n.prototype.writeInt16LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,32767,-32768),this[e]=r&255,this[e+1]=r>>>8,e+2},n.prototype.writeInt16BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,2,32767,-32768),this[e]=r>>>8,this[e+1]=r&255,e+2},n.prototype.writeInt32LE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,2147483647,-2147483648),this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24,e+4},n.prototype.writeInt32BE=function(r,e,o){return r=+r,e=e>>>0,o||X(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255,e+4};function ir(t,r,e,o,v,A){if(e+o>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function nr(t,r,e,o,v){return r=+r,e=e>>>0,v||ir(t,r,e,4),d.write(t,r,e,o,23,4),e+4}n.prototype.writeFloatLE=function(r,e,o){return nr(this,r,e,!0,o)},n.prototype.writeFloatBE=function(r,e,o){return nr(this,r,e,!1,o)};function or(t,r,e,o,v){return r=+r,e=e>>>0,v||ir(t,r,e,8),d.write(t,r,e,o,52,8),e+8}n.prototype.writeDoubleLE=function(r,e,o){return or(this,r,e,!0,o)},n.prototype.writeDoubleBE=function(r,e,o){return or(this,r,e,!1,o)},n.prototype.copy=function(r,e,o,v){if(!n.isBuffer(r))throw new TypeError("argument should be a Buffer");if(o||(o=0),!v&&v!==0&&(v=this.length),e>=r.length&&(e=r.length),e||(e=0),v>0&&v=this.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),r.length-e=0;--x)r[x+e]=this[x+o];else Uint8Array.prototype.set.call(r,this.subarray(o,v),e);return A},n.prototype.fill=function(r,e,o,v){if(typeof r=="string"){if(typeof e=="string"?(v=e,e=0,o=this.length):typeof o=="string"&&(v=o,o=this.length),v!==void 0&&typeof v!="string")throw new TypeError("encoding must be a string");if(typeof v=="string"&&!n.isEncoding(v))throw new TypeError("Unknown encoding: "+v);if(r.length===1){var A=r.charCodeAt(0);(v==="utf8"&&A<128||v==="latin1")&&(r=A)}}else typeof r=="number"?r=r&255:typeof r=="boolean"&&(r=Number(r));if(e<0||this.length>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var x;if(typeof r=="number")for(x=e;x55295&&e<57344){if(!v){if(e>56319){(r-=3)>-1&&A.push(239,191,189);continue}else if(x+1===o){(r-=3)>-1&&A.push(239,191,189);continue}v=e;continue}if(e<56320){(r-=3)>-1&&A.push(239,191,189),v=e;continue}e=(v-55296<<10|e-56320)+65536}else v&&(r-=3)>-1&&A.push(239,191,189);if(v=null,e<128){if((r-=1)<0)break;A.push(e)}else if(e<2048){if((r-=2)<0)break;A.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;A.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;A.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return A}function ur(t){for(var r=[],e=0;e>8,v=e%256,A.push(v),A.push(o);return A}function fr(t){return p.toByteArray(dr(t))}function rr(t,r,e,o){for(var v=0;v=r.length||v>=t.length);++v)r[v+e]=t[v];return v}function Q(t,r){return t instanceof r||t!=null&&t.constructor!=null&&t.constructor.name!=null&&t.constructor.name===r.name}function gr(t){return t!==t}var Br=function(){for(var t="0123456789abcdef",r=new Array(256),e=0;e<16;++e)for(var o=e*16,v=0;v<16;++v)r[o+v]=t[e]+t[v];return r}()},{"base64-js":29,ieee754:32}],31:[function(c,C,g){var p={single_source_shortest_paths:function(d,s,i){var a={},f={};f[s]=0;var n=p.PriorityQueue.make();n.push(s,0);for(var m,E,T,L,b,U,B,I,F;!n.empty();){m=n.pop(),E=m.value,L=m.cost,b=d[E]||{};for(T in b)b.hasOwnProperty(T)&&(U=b[T],B=L+U,I=f[T],F=typeof f[T]=="undefined",(F||I>B)&&(f[T]=B,n.push(T,B),a[T]=E))}if(typeof i!="undefined"&&typeof f[i]=="undefined"){var S=["Could not find a path from ",s," to ",i,"."].join("");throw new Error(S)}return a},extract_shortest_path_from_predecessor_list:function(d,s){for(var i=[],a=s;a;)i.push(a),d[a],a=d[a];return i.reverse(),i},find_path:function(d,s,i){var a=p.single_source_shortest_paths(d,s,i);return p.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(d){var s=p.PriorityQueue,i={},a;d=d||{};for(a in s)s.hasOwnProperty(a)&&(i[a]=s[a]);return i.queue=[],i.sorter=d.sorter||s.default_sorter,i},default_sorter:function(d,s){return d.cost-s.cost},push:function(d,s){var i={value:d,cost:s};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof C!="undefined"&&(C.exports=p)},{}],32:[function(c,C,g){g.read=function(p,d,s,i,a){var f,n,m=a*8-i-1,E=(1<>1,L=-7,b=s?a-1:0,U=s?-1:1,B=p[d+b];for(b+=U,f=B&(1<<-L)-1,B>>=-L,L+=m;L>0;f=f*256+p[d+b],b+=U,L-=8);for(n=f&(1<<-L)-1,f>>=-L,L+=i;L>0;n=n*256+p[d+b],b+=U,L-=8);if(f===0)f=1-T;else{if(f===E)return n?NaN:(B?-1:1)*(1/0);n=n+Math.pow(2,i),f=f-T}return(B?-1:1)*n*Math.pow(2,f-i)},g.write=function(p,d,s,i,a,f){var n,m,E,T=f*8-a-1,L=(1<>1,U=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,B=i?0:f-1,I=i?1:-1,F=d<0||d===0&&1/d<0?1:0;for(d=Math.abs(d),isNaN(d)||d===1/0?(m=isNaN(d)?1:0,n=L):(n=Math.floor(Math.log(d)/Math.LN2),d*(E=Math.pow(2,-n))<1&&(n--,E*=2),n+b>=1?d+=U/E:d+=U*Math.pow(2,1-b),d*E>=2&&(n++,E/=2),n+b>=L?(m=0,n=L):n+b>=1?(m=(d*E-1)*Math.pow(2,a),n=n+b):(m=d*Math.pow(2,b-1)*Math.pow(2,a),n=0));a>=8;p[s+B]=m&255,B+=I,m/=256,a-=8);for(n=n<0;p[s+B]=n&255,B+=I,n/=256,T-=8);p[s+B-I]|=F*128}},{}],33:[function(c,C,g){var p={}.toString;C.exports=Array.isArray||function(d){return p.call(d)=="[object Array]"}},{}]},{},[24])(24)})}),Ir={name:"qrcode",props:{value:null,options:Object,tag:{type:String,default:"canvas"}},render:function(V){return V(this.tag,this.$slots.default)},watch:{$props:{deep:!0,immediate:!0,handler:function(){this.$el&&this.generate()}}},methods:{generate:function(){var V=this,c=this.options,C=this.tag,g=String(this.value);C==="canvas"?pr.toCanvas(this.$el,g,c,function(p){if(p)throw p}):C==="img"?pr.toDataURL(g,c,function(p,d){if(p)throw p;V.$el.src=d}):pr.toString(g,c,function(p,d){if(p)throw p;V.$el.innerHTML=d})}},mounted:function(){this.generate()}},Sr=function(){var u=this,V=u.$createElement,c=u._self._c||V;return c("div",{staticClass:"page-login"},[c("PageTitle",{attrs:{title:u.$L("\u767B\u5F55")}}),c("div",{staticClass:"login-body"},[c("div",{staticClass:"login-logo no-dark-content",class:{"can-click":u.needStartHome},on:{click:u.goHome}}),c("div",{staticClass:"login-box"},[c("div",{staticClass:"login-mode-switch"},[c("div",{staticClass:"login-mode-switch-box"},[c("ETooltip",{attrs:{disabled:u.$isEEUiApp||u.windowTouch,content:u.$L(u.loginMode=="qrcode"?"\u5E10\u53F7\u767B\u5F55":"\u626B\u7801\u767B\u5F55"),placement:"left"}},[c("span",{staticClass:"login-mode-switch-icon",on:{click:u.switchLoginMode}},[u.loginMode=="qrcode"?c("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"PcOutlined"}},[c("path",{attrs:{d:"M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z",fill:"currentColor"}})]):c("svg",{attrs:{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","data-icon":"QrOutlined"}},[c("path",{attrs:{d:"M6.5 7.5a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1Z",fill:"currentColor"}}),c("path",{attrs:{d:"M4.5 2.5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2h-7Zm0 2h7v7h-7v-7ZM11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm0 3.5a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1Zm4-7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm3.5 0a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2h-1a1 1 0 0 1-1-1ZM15 17c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2v2.5c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V17Zm4.5 0H17v2.5h2.5V17Zm-15-2c-1.1 0-2 .9-2 2v2.5c0 1.1.9 2 2 2H7c1.1 0 2-.9 2-2V17c0-1.1-.9-2-2-2H4.5Zm0 2H7v2.5H4.5V17ZM15 4.5c0-1.1.9-2 2-2h2.5c1.1 0 2 .9 2 2V7c0 1.1-.9 2-2 2H17c-1.1 0-2-.9-2-2V4.5Zm4.5 0H17V7h2.5V4.5Z",fill:"currentColor"}})])])])],1)]),c("div",{staticClass:"login-title"},[u._v(u._s(u.welcomeTitle))]),c("div",{staticClass:"login-subtitle"},[u._v(u._s(u.$L(u.subTitle)))]),c("transition",{attrs:{name:"login-mode"}},[u.loginMode=="qrcode"?c("div",{staticClass:"login-qrcode",on:{click:u.qrcodeRefresh}},[c("VueQrcode",{attrs:{value:u.qrcodeUrl,options:{width:200,margin:2}}})],1):u._e()]),c("transition",{attrs:{name:"login-mode"}},[u.loginMode=="access"?c("div",{staticClass:"login-access"},[u.isSoftware&&u.cacheServerUrl?c("Input",{attrs:{value:u.$A.getDomain(u.cacheServerUrl),prefix:"ios-globe-outline",size:"large",readonly:"",clearable:""},on:{"on-clear":function(C){return u.setServerUrl("")}}}):u._e(),c("Input",{ref:"email",attrs:{prefix:"ios-mail-outline",placeholder:u.$L("\u8F93\u5165\u60A8\u7684\u7535\u5B50\u90AE\u4EF6"),type:"email",size:"large",clearable:""},on:{"on-enter":u.onLogin,"on-blur":u.onBlur},model:{value:u.email,callback:function(C){u.email=C},expression:"email"}}),c("Input",{ref:"password",attrs:{prefix:"ios-lock-outline",placeholder:u.$L("\u8F93\u5165\u60A8\u7684\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":u.onLogin},model:{value:u.password,callback:function(C){u.password=C},expression:"password"}}),u.loginType=="reg"?c("Input",{ref:"password2",attrs:{prefix:"ios-lock-outline",placeholder:u.$L("\u8F93\u5165\u786E\u8BA4\u5BC6\u7801"),type:"password",size:"large",clearable:""},on:{"on-enter":u.onLogin},model:{value:u.password2,callback:function(C){u.password2=C},expression:"password2"}}):u._e(),u.loginType=="reg"&&u.needInvite?c("Input",{ref:"invite",staticClass:"login-code",attrs:{placeholder:u.$L("\u8BF7\u8F93\u5165\u6CE8\u518C\u9080\u8BF7\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":u.onLogin},model:{value:u.invite,callback:function(C){u.invite=C},expression:"invite"}},[c("span",{attrs:{slot:"prepend"},slot:"prepend"},[u._v("\xA0"+u._s(u.$L("\u9080\u8BF7\u7801"))+"\xA0")])]):u._e(),u.loginType=="login"&&u.codeNeed?c("Input",{ref:"code",staticClass:"login-code",attrs:{placeholder:u.$L("\u8F93\u5165\u56FE\u5F62\u9A8C\u8BC1\u7801"),type:"text",size:"large",clearable:""},on:{"on-enter":u.onLogin},model:{value:u.code,callback:function(C){u.code=C},expression:"code"}},[c("Icon",{staticClass:"login-icon",attrs:{slot:"prepend",type:"ios-checkmark-circle-outline"},slot:"prepend"}),c("div",{staticClass:"login-code-end",attrs:{slot:"append"},on:{click:u.refreshCode},slot:"append"},[u.codeLoad>0?c("div",{staticClass:"code-load"},[c("Loading")],1):u.codeUrl==="error"?c("span",{staticClass:"code-error"},[u._v(u._s(u.$L("\u52A0\u8F7D\u5931\u8D25")))]):c("img",{attrs:{src:u.codeUrl}})])],1):u._e(),c("Button",{attrs:{type:"primary",loading:u.loadIng>0||u.loginJump,size:"large",long:""},on:{click:u.onLogin}},[u._v(u._s(u.$L(u.loginText)))]),u.loginType=="reg"?c("div",{staticClass:"login-switch"},[u._v(u._s(u.$L("\u5DF2\u7ECF\u6709\u5E10\u53F7\uFF1F"))),c("a",{attrs:{href:"javascript:void(0)"},on:{click:function(C){u.loginType="login"}}},[u._v(u._s(u.$L("\u767B\u5F55\u5E10\u53F7")))])]):c("div",{staticClass:"login-switch"},[u._v(u._s(u.$L("\u8FD8\u6CA1\u6709\u5E10\u53F7\uFF1F"))),c("a",{attrs:{href:"javascript:void(0)"},on:{click:function(C){u.loginType="reg"}}},[u._v(u._s(u.$L("\u6CE8\u518C\u5E10\u53F7")))])])],1):u._e()])],1),c("div",{staticClass:"login-bottom"},[c("Dropdown",{attrs:{trigger:"click",placement:"bottom-start"}},[c("div",{staticClass:"login-setting"},[u._v(" "+u._s(u.$L("\u8BBE\u7F6E"))+" "),c("i",{staticClass:"taskfont"},[u._v("\uE689")])]),c("DropdownMenu",{staticClass:"login-setting-menu",attrs:{slot:"list"},slot:"list"},[c("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":u.setTheme}},[c("DropdownItem",[c("div",{staticClass:"login-setting-item"},[u._v(" "+u._s(u.$L("\u4E3B\u9898\u76AE\u80A4"))+" "),c("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),c("DropdownMenu",{attrs:{slot:"list"},slot:"list"},u._l(u.themeList,function(C,g){return c("DropdownItem",{key:g,attrs:{name:C.value,selected:u.themeMode===C.value}},[u._v(u._s(u.$L(C.name)))])}),1)],1),c("Dropdown",{attrs:{placement:"right-start",transfer:""},on:{"on-click":u.onLanguage}},[c("DropdownItem",{attrs:{divided:""}},[c("div",{staticClass:"login-setting-item"},[u._v(" "+u._s(u.currentLanguage)+" "),c("Icon",{attrs:{type:"ios-arrow-forward"}})],1)]),c("DropdownMenu",{attrs:{slot:"list"},slot:"list"},u._l(u.languageList,function(C,g){return c("DropdownItem",{key:g,attrs:{name:g,selected:u.languageType===g}},[u._v(u._s(C))])}),1)],1)],1)],1),c("div",{staticClass:"login-forgot"},[u._v(u._s(u.$L("\u5FD8\u8BB0\u5BC6\u7801\u4E86\uFF1F"))),c("a",{attrs:{href:"javascript:void(0)"},on:{click:u.forgotPassword}},[u._v(u._s(u.$L("\u91CD\u7F6E\u5BC6\u7801")))])])],1)]),c("Modal",{attrs:{title:u.$L("\u9690\u79C1\u534F\u8BAE"),"mask-closable":!1},model:{value:u.privacyShow,callback:function(C){u.privacyShow=C},expression:"privacyShow"}},[c("div",{staticClass:"privacy-content"},[c("div",[u._v("\u6B22\u8FCE\u4F7F\u7528\u672C\u8F6F\u4EF6\uFF01")]),c("p",[u._v("\u5728\u60A8\u4F7F\u7528\u672C\u8F6F\u4EF6\u524D\uFF0C\u8BF7\u60A8\u8BA4\u771F\u9605\u8BFB\u5E76\u4E86\u89E3\u76F8\u5E94\u7684"),c("a",{attrs:{target:"_blank",href:u.$A.apiUrl("privacy")}},[u._v("\u300A"+u._s(u.$L("\u9690\u79C1\u653F\u7B56"))+"\u300B")]),u._v("\uFF0C\u4EE5\u4E86\u89E3\u6211\u4EEC\u7684\u670D\u52A1\u5185\u5BB9\u548C\u60A8\u76F8\u5173\u4E2A\u4EBA\u4FE1\u606F\u7684\u5904\u7406\u89C4\u5219\u3002\u6211\u4EEC\u5C06\u4E25\u683C\u7684\u6309\u7167\u9690\u79C1\u670D\u52A1\u534F\u8BAE\u4E3A\u60A8\u63D0\u4F9B\u670D\u52A1\uFF0C\u4FDD\u62A4\u60A8\u7684\u4E2A\u4EBA\u4FE1\u606F\u3002")])]),c("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[c("Button",{attrs:{type:"default"},on:{click:function(C){return u.onPrivacy(!1)}}},[u._v(u._s(u.$L("\u4E0D\u540C\u610F")))]),c("Button",{attrs:{type:"primary"},on:{click:function(C){return u.onPrivacy(!0)}}},[u._v(u._s(u.$L("\u540C\u610F")))])],1)])],1)},br=[];const Fr={components:{VueQrcode:Ir},data(){return{loadIng:0,languageList:wr,languageType:yr,qrcodeVal:"",qrcodeTimer:null,qrcodeLoad:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",loginMode:"access",loginType:"login",loginJump:!1,email:"",password:"",password2:"",code:"",invite:"",needStartHome:!1,needInvite:!1,subscribe:null,privacyShow:!1}},async mounted(){this.privacyShow=!!this.$isEEUiApp&&await $A.IDBString("cachePrivacyShow")!=="no",this.email=await $A.IDBString("cacheLoginEmail")||"",this.isSoftware?this.chackServerUrl().catch(u=>{}):this.setServerUrl("").catch(u=>{}),this.qrcodeTimer=setInterval(this.qrcodeStatus,2e3),this.subscribe=Ar.Store.subscribe("useSSOLogin",()=>{this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},activated(){this.loginType=this.$route.query.type==="reg"?"reg":"login",this.getDemoAccount(),this.getNeedStartHome(),this.$Electron&&this.$Electron.sendMessage("subWindowDestroyAll")},deactivated(){this.loginJump=!1,this.password="",this.password2="",this.code="",this.invite=""},computed:{...xr(["cacheServerUrl","themeMode","themeList"]),isSoftware(){return this.$Electron||this.$isEEUiApp},currentLanguage(){return wr[yr]||"Language"},welcomeTitle(){if(this.loginMode=="qrcode")return this.$L("\u626B\u7801\u767B\u5F55");const u=window.systemInfo.title||"DooTask";return"Welcome "+u},subTitle(){const u=window.systemInfo.title||"DooTask";return this.loginMode=="qrcode"?this.$L(`\u8BF7\u4F7F\u7528${u}\u79FB\u52A8\u7AEF\u626B\u63CF\u4E8C\u7EF4\u7801\u3002`):this.loginType=="reg"?this.$L("\u8F93\u5165\u60A8\u7684\u4FE1\u606F\u4EE5\u521B\u5EFA\u5E10\u6237\u3002"):this.$L("\u8F93\u5165\u60A8\u7684\u51ED\u8BC1\u4EE5\u8BBF\u95EE\u60A8\u7684\u5E10\u6237\u3002")},loginText(){let u=this.loginType=="login"?"\u767B\u5F55":"\u6CE8\u518C";return this.loginJump&&(u+="\u6210\u529F..."),u},qrcodeUrl(){return $A.apiUrl("../login?qrcode="+this.qrcodeVal)}},watch:{$route({query:u}){u.type=="reg"&&this.$nextTick(()=>{this.loginType="reg"})},loginMode(){this.qrcodeRefresh()},loginType(u){u=="reg"&&this.getNeedInvite()}},methods:{goHome(){this.needStartHome&&this.goForward("index")},setTheme(u){this.$store.dispatch("setTheme",u)},getDemoAccount(){this.isNotServer()||this.$store.dispatch("call",{url:"system/demo"}).then(({data:u})=>{u.account&&(this.email=u.account,this.password=u.password)}).catch(u=>{})},getNeedStartHome(){this.isNotServer()||this.$store.dispatch("needHome").then(u=>{this.needStartHome=!0}).catch(u=>{this.needStartHome=!1})},getNeedInvite(){this.$store.dispatch("call",{url:"users/reg/needinvite"}).then(({data:u})=>{this.needInvite=!!u.need}).catch(u=>{this.needInvite=!1})},switchLoginMode(){this.chackServerUrl(!0).then(()=>{this.loginMode==="qrcode"?this.loginMode="access":this.loginMode="qrcode"})},qrcodeRefresh(){this.loginMode=="qrcode"&&(this.qrcodeVal=$A.randomString(32))},qrcodeStatus(){this.$route.name!=="login"||this.loginMode!="qrcode"||this.qrcodeLoad||(this.qrcodeLoad=!0,this.$store.dispatch("call",{url:"users/login/qrcode?code="+this.qrcodeVal}).then(({data:u})=>{this.$store.dispatch("handleClearCache",u).then(this.goNext)}).catch(u=>{}).finally(u=>{this.qrcodeLoad=!1}))},forgotPassword(){$A.modalWarning("\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")},refreshCode(){this.codeLoad>0||(setTimeout(u=>{this.codeLoad++},600),this.$store.dispatch("call",{url:"users/login/codejson"}).then(({data:u})=>{this.codeKey=u.key,this.codeUrl=u.img}).catch(u=>{this.codeUrl="error"}).finally(u=>{this.codeLoad--}))},inputServerUrl(){if(this.privacyShow)return;let u=$A.rightDelete(this.cacheServerUrl,"/api/");u=$A.leftDelete(u,"http://"),$A.modalInput({title:"\u4F7F\u7528 SSO \u767B\u5F55",value:u,placeholder:"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740",onOk:V=>V?this.inputServerChack($A.trim(V)):"\u8BF7\u8F93\u5165\u670D\u52A1\u5668\u5730\u5740"})},inputServerChack(u){return new Promise((V,c)=>{let C=u;/\/api\/$/.test(C)||(C=C+($A.rightExists(C,"/")?"api/":"/api/")),/^https*:\/\//i.test(C)||(C=`https://${C}`),this.$store.dispatch("call",{url:`${C}system/setting`,checkNetwork:!1}).then(async()=>{await this.setServerUrl(C),V()}).catch(({ret:g,msg:p})=>{if(g===-1001){if(!/^https*:\/\//i.test(u)){this.inputServerChack(`http://${u}`).then(V).catch(c);return}p="\u670D\u52A1\u5668\u5730\u5740\u65E0\u6548"}c(p)})})},chackServerUrl(u){return new Promise((V,c)=>{this.isNotServer()?(this.inputServerUrl(),u===!0&&this.$nextTick(C=>$A.messageWarning("\u8BF7\u8BBE\u7F6E\u670D\u52A1\u5668")),c()):V()})},async setServerUrl(u){await $A.IDBSet("cachePrivacyShow",u?"no":"yes"),u!=this.cacheServerUrl&&(await $A.IDBSet("cacheServerUrl",u),$A.reloadUrl())},isNotServer(){let u=$A.getDomain(window.systemInfo.apiUrl);return this.isSoftware&&(u==""||u=="public")},onBlur(){if(this.loginType!="login"||!this.email){this.codeNeed=!1;return}this.loadIng++,this.$store.dispatch("call",{url:"users/login/needcode",data:{email:this.email}}).then(()=>{this.refreshCode(),this.codeNeed=!0}).catch(u=>{this.codeNeed=!1}).finally(u=>{this.loadIng--})},onPrivacy(u){u?(this.privacyShow=!1,this.chackServerUrl().catch(V=>{})):$A.eeuiAppGoDesktop()},onLogin(){this.chackServerUrl(!0).then(()=>{if(this.email=$A.trim(this.email),this.password=$A.trim(this.password),this.password2=$A.trim(this.password2),this.code=$A.trim(this.code),this.invite=$A.trim(this.invite),!$A.isEmail(this.email)){$A.messageWarning("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),this.$refs.email.focus();return}if(!this.password){$A.messageWarning("\u8BF7\u8F93\u5165\u5BC6\u7801"),this.$refs.password.focus();return}if(this.loginType=="reg"&&this.password!=this.password2){$A.messageWarning("\u786E\u8BA4\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4"),this.$refs.password2.focus();return}this.loadIng++,this.$store.dispatch("call",{url:"users/login",data:{type:this.loginType,email:this.email,password:this.password,code:this.code,code_key:this.codeKey,invite:this.invite}}).then(({data:u})=>{$A.IDBSave("cacheLoginEmail",this.email),this.codeNeed=!1,this.loadIng++,this.$store.dispatch("handleClearCache",u).then(this.goNext).finally(V=>{this.loadIng--})}).catch(({data:u,msg:V})=>{u.code==="email"?(this.loginType="login",$A.modalWarning(V)):$A.modalError({content:V,onOk:c=>{var C;(C=this.$refs.code)==null||C.focus()}}),u.code==="need"&&(this.refreshCode(),this.codeNeed=!0)}).finally(u=>{this.loadIng--})})},goNext(){this.loginJump=!0;const u=decodeURIComponent($A.getObject(this.$route.query,"from"));u?$A.IDBSet("clearCache","login").then(V=>{window.location.replace(u)}):this.goForward({name:"manage-dashboard"},!0)},onLanguage(u){Cr(u)}}},Er={};var Lr=_r(Fr,Sr,br,!1,Ur,null,null,null);function Ur(u){for(let V in Er)this[V]=Er[V]}var Rr=function(){return Lr.exports}();export{Rr as default};