@10yun/open-sdk 0.3.125 → 0.3.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{404-Bg-K1kuR.cjs → 404-B2Hgfen4.cjs} +1 -1
- package/dist/{404-D-CSYsEp.js → 404-CUh1_NLd.js} +1 -1
- package/dist/{alone_run-CRpgzb60.js → alone_run-Cde4b5CU.js} +1 -1
- package/dist/{alone_run-BlefRFb8.cjs → alone_run-Cwmt_Gox.cjs} +1 -1
- package/dist/index-CMKwUtXD.cjs +30 -0
- package/dist/{index-DmigSfXx.js → index-CNiERy2H.js} +2744 -2613
- package/dist/login-D-s_ZSAt.js +1472 -0
- package/dist/login-c5wFU4WU.cjs +1 -0
- package/dist/{none-D3JIq_1z.js → none-DndusozN.js} +1 -1
- package/dist/{none-B_DVlv7i.cjs → none-ckiFUIWN.cjs} +1 -1
- package/dist/open-sdk.cjs.js +1 -0
- package/dist/{index.es.js → open-sdk.es.js} +1 -1
- package/package.json +3 -16
- package/vite-plugin-shiyun.js +0 -1
- package/dist/index-cXIUdiY2.cjs +0 -30
- package/dist/index.cjs.js +0 -1
- package/dist/login-eTcOceMG.js +0 -1424
- package/dist/login-z6R7WXOz.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),T=require("./index-CMKwUtXD.cjs");require("pinia");const G={},K={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function J(l,s){return o.openBlock(),o.createElementBlock("svg",K,[...s[0]||(s[0]=[o.createElementVNode("path",{d:"M384 554.666667a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H149.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V640a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667z m226.133333 277.333333c4.693333 0 8.533333 3.84 8.533334 8.533333V896h183.466666c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H563.2a8.533333 8.533333 0 0 1-8.533333-8.533333v-110.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933333z m341.333334 0c4.693333 0 8.533333 3.84 8.533333 8.533333v110.933334a8.533333 8.533333 0 0 1-8.533333 8.533333h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533333v-110.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933334zM384 618.666667H149.333333a21.333333 21.333333 0 0 0-21.184 18.837333L128 640v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L149.333333 896h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L405.333333 874.666667V640a21.333333 21.333333 0 0 0-18.837333-21.184L384 618.666667z m418.133333 149.333333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333h-46.933333a8.533333 8.533333 0 0 1-8.533333-8.533333v-46.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933333zM298.666667 704a21.333333 21.333333 0 0 1 21.333333 21.333333v64a21.333333 21.333333 0 0 1-21.333333 21.333334h-64a21.333333 21.333333 0 0 1-21.333334-21.333334v-64a21.333333 21.333333 0 0 1 21.333334-21.333333h64z m503.466666-149.333333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533334 8.533334H618.666667v64h119.466666c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533334 8.533334h-174.933333a8.533333 8.533333 0 0 1-8.533333-8.533334v-174.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h238.933333z m149.333334 128c4.693333 0 8.533333 3.84 8.533333 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334h-132.266667a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h132.266667z m0-128c4.693333 0 8.533333 3.84 8.533333 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933334zM384 64a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H149.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V149.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667z m490.666667 0a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H640a85.333333 85.333333 0 0 1-85.333333-85.333333V149.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667zM384 128H149.333333a21.333333 21.333333 0 0 0-21.184 18.837333L128 149.333333v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L149.333333 405.333333h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L405.333333 384V149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L384 128z m490.666667 0H640a21.333333 21.333333 0 0 0-21.184 18.837333L618.666667 149.333333v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L640 405.333333h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L896 384V149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L874.666667 128z m-576 85.333333a21.333333 21.333333 0 0 1 21.333333 21.333334v64a21.333333 21.333333 0 0 1-21.333333 21.333333h-64a21.333333 21.333333 0 0 1-21.333334-21.333333v-64a21.333333 21.333333 0 0 1 21.333334-21.333334h64z m490.666666 0a21.333333 21.333333 0 0 1 21.333334 21.333334v64a21.333333 21.333333 0 0 1-21.333334 21.333333h-64a21.333333 21.333333 0 0 1-21.333333-21.333333v-64a21.333333 21.333333 0 0 1 21.333333-21.333334h64z",fill:"currentColor","p-id":"27545"},null,-1)])])}const X=T._export_sfc(G,[["render",J]]),Y={},W={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"};function j(l,s){return o.openBlock(),o.createElementBlock("svg",W,[...s[0]||(s[0]=[o.createElementVNode("path",{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"},null,-1)])])}const Z=T._export_sfc(Y,[["render",j]]),e3={},t3={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"};function o3(l,s){return o.openBlock(),o.createElementBlock("svg",t3,[...s[0]||(s[0]=[o.createElementVNode("path",{d:"M128 669.866667v154.133333a72 72 0 0 0 67.776 71.893333l4.224 0.106667H354.133333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H205.482667A141.482667 141.482667 0 0 1 64 818.517333V669.866667c0-4.693333 3.84-8.533333 8.533333-8.533334h46.933334c4.693333 0 8.533333 3.84 8.533333 8.533334z m832 0v148.650666A141.482667 141.482667 0 0 1 818.517333 960H669.866667a8.533333 8.533333 0 0 1-8.533334-8.533333v-46.933334c0-4.693333 3.84-8.533333 8.533334-8.533333h154.133333a72 72 0 0 0 71.893333-67.776l0.106667-4.224V669.866667c0-4.693333 3.84-8.533333 8.533333-8.533334h46.933334c4.693333 0 8.533333 3.84 8.533333 8.533334z m0-170.666667v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334H72.533333a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h878.933334c4.693333 0 8.533333 3.84 8.533333 8.533333z m-597.333333-426.666667v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H200a72 72 0 0 0-71.893333 67.776L128 200V354.133333a8.533333 8.533333 0 0 1-8.533333 8.533334H72.533333a8.533333 8.533333 0 0 1-8.533333-8.533334V205.482667A141.482667 141.482667 0 0 1 205.482667 64H354.133333c4.693333 0 8.533333 3.84 8.533334 8.533333zM818.517333 64A141.482667 141.482667 0 0 1 960 205.482667V354.133333a8.533333 8.533333 0 0 1-8.533333 8.533334h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533334V200a72 72 0 0 0-67.776-71.893333L824 128H669.866667a8.533333 8.533333 0 0 1-8.533334-8.533333V72.533333c0-4.693333 3.84-8.533333 8.533334-8.533333h148.650666z",fill:"currentColor"},null,-1)])])}const a3=T._export_sfc(e3,[["render",o3]]);function i3(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var M={exports:{}},n3=M.exports,R;function s3(){return R||(R=1,function(l,s){var h;(function(m,v){l.exports=v()})(n3,function(){function m(e){this.mode=w.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,a=this.data.length;t<a;t++){var i=[],n=this.data.charCodeAt(t);n>65536?(i[0]=240|(n&1835008)>>>18,i[1]=128|(n&258048)>>>12,i[2]=128|(n&4032)>>>6,i[3]=128|n&63):n>2048?(i[0]=224|(n&61440)>>>12,i[1]=128|(n&4032)>>>6,i[2]=128|n&63):n>128?(i[0]=192|(n&1984)>>>6,i[1]=128|n&63):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))}m.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,a=this.parsedData.length;t<a;t++)e.put(this.parsedData[t],8)}};function v(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}v.prototype={addData:function(e){var t=new m(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var a=0;a<this.moduleCount;a++){this.modules[a]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[a][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=v.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var a=-1;a<=7;a++)if(!(e+a<=-1||this.moduleCount<=e+a))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=a&&a<=6&&(i==0||i==6)||0<=i&&i<=6&&(a==0||a==6)||2<=a&&a<=4&&2<=i&&i<=4?this.modules[e+a][t+i]=!0:this.modules[e+a][t+i]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,a=0;a<8;a++){this.makeImpl(!0,a);var i=_.getLostPoint(this);(a==0||e>i)&&(e=i,t=a)}return t},createMovieClip:function(e,t,a){var i=e.createEmptyMovieClip(t,a),n=1;this.make();for(var c=0;c<this.modules.length;c++)for(var d=c*n,r=0;r<this.modules[c].length;r++){var u=r*n,p=this.modules[c][r];p&&(i.beginFill(0,100),i.moveTo(u,d),i.lineTo(u+n,d),i.lineTo(u+n,d+n),i.lineTo(u,d+n),i.endFill())}return i},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=_.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var a=0;a<e.length;a++){var i=e[t],n=e[a];if(this.modules[i][n]==null)for(var c=-2;c<=2;c++)for(var d=-2;d<=2;d++)c==-2||c==2||d==-2||d==2||c==0&&d==0?this.modules[i+c][n+d]=!0:this.modules[i+c][n+d]=!1}},setupTypeNumber:function(e){for(var t=_.getBCHTypeNumber(this.typeNumber),a=0;a<18;a++){var i=!e&&(t>>a&1)==1;this.modules[Math.floor(a/3)][a%3+this.moduleCount-8-3]=i}for(var a=0;a<18;a++){var i=!e&&(t>>a&1)==1;this.modules[a%3+this.moduleCount-8-3][Math.floor(a/3)]=i}},setupTypeInfo:function(e,t){for(var a=this.errorCorrectLevel<<3|t,i=_.getBCHTypeInfo(a),n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<6?this.modules[n][8]=c:n<8?this.modules[n+1][8]=c:this.modules[this.moduleCount-15+n][8]=c}for(var n=0;n<15;n++){var c=!e&&(i>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=c:n<9?this.modules[8][15-n-1+1]=c:this.modules[8][15-n-1]=c}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var a=-1,i=this.moduleCount-1,n=7,c=0,d=this.moduleCount-1;d>0;d-=2)for(d==6&&d--;;){for(var r=0;r<2;r++)if(this.modules[i][d-r]==null){var u=!1;c<e.length&&(u=(e[c]>>>n&1)==1);var p=_.getMask(t,i,d-r);p&&(u=!u),this.modules[i][d-r]=u,n--,n==-1&&(c++,n=7)}if(i+=a,i<0||this.moduleCount<=i){i-=a,a=-a;break}}}},v.PAD0=236,v.PAD1=17,v.createData=function(e,t,a){for(var i=A.getRSBlocks(e,t),n=new O,c=0;c<a.length;c++){var d=a[c];n.put(d.mode,4),n.put(d.getLength(),_.getLengthInBits(d.mode,e)),d.write(n)}for(var r=0,c=0;c<i.length;c++)r+=i[c].dataCount;if(n.getLengthInBits()>r*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+r*8+")");for(n.getLengthInBits()+4<=r*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=r*8||(n.put(v.PAD0,8),n.getLengthInBits()>=r*8));)n.put(v.PAD1,8);return v.createBytes(n,i)},v.createBytes=function(e,t){for(var a=0,i=0,n=0,c=new Array(t.length),d=new Array(t.length),r=0;r<t.length;r++){var u=t[r].dataCount,p=t[r].totalCount-u;i=Math.max(i,u),n=Math.max(n,p),c[r]=new Array(u);for(var f=0;f<c[r].length;f++)c[r][f]=255&e.buffer[f+a];a+=u;var C=_.getErrorCorrectPolynomial(p),S=new D(c[r],C.getLength()-1),N=S.mod(C);d[r]=new Array(C.getLength()-1);for(var f=0;f<d[r].length;f++){var k=f+N.getLength()-d[r].length;d[r][f]=k>=0?N.get(k):0}}for(var b=0,f=0;f<t.length;f++)b+=t[f].totalCount;for(var V=new Array(b),I=0,f=0;f<i;f++)for(var r=0;r<t.length;r++)f<c[r].length&&(V[I++]=c[r][f]);for(var f=0;f<n;f++)for(var r=0;r<t.length;r++)f<d[r].length&&(V[I++]=d[r][f]);return V};for(var w={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},L={L:1,M:0,Q:3,H:2},y={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},_={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(e){for(var t=e<<10;_.getBCHDigit(t)-_.getBCHDigit(_.G15)>=0;)t^=_.G15<<_.getBCHDigit(t)-_.getBCHDigit(_.G15);return(e<<10|t)^_.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;_.getBCHDigit(t)-_.getBCHDigit(_.G18)>=0;)t^=_.G18<<_.getBCHDigit(t)-_.getBCHDigit(_.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return _.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,a){switch(e){case y.PATTERN000:return(t+a)%2==0;case y.PATTERN001:return t%2==0;case y.PATTERN010:return a%3==0;case y.PATTERN011:return(t+a)%3==0;case y.PATTERN100:return(Math.floor(t/2)+Math.floor(a/3))%2==0;case y.PATTERN101:return t*a%2+t*a%3==0;case y.PATTERN110:return(t*a%2+t*a%3)%2==0;case y.PATTERN111:return(t*a%3+(t+a)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new D([1],0),a=0;a<e;a++)t=t.multiply(new D([1,E.gexp(a)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case w.MODE_NUMBER:return 10;case w.MODE_ALPHA_NUM:return 9;case w.MODE_8BIT_BYTE:return 8;case w.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case w.MODE_NUMBER:return 12;case w.MODE_ALPHA_NUM:return 11;case w.MODE_8BIT_BYTE:return 16;case w.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case w.MODE_NUMBER:return 14;case w.MODE_ALPHA_NUM:return 13;case w.MODE_8BIT_BYTE:return 16;case w.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),a=0,i=0;i<t;i++)for(var n=0;n<t;n++){for(var c=0,d=e.isDark(i,n),r=-1;r<=1;r++)if(!(i+r<0||t<=i+r))for(var u=-1;u<=1;u++)n+u<0||t<=n+u||r==0&&u==0||d==e.isDark(i+r,n+u)&&c++;c>5&&(a+=3+c-5)}for(var i=0;i<t-1;i++)for(var n=0;n<t-1;n++){var p=0;e.isDark(i,n)&&p++,e.isDark(i+1,n)&&p++,e.isDark(i,n+1)&&p++,e.isDark(i+1,n+1)&&p++,(p==0||p==4)&&(a+=3)}for(var i=0;i<t;i++)for(var n=0;n<t-6;n++)e.isDark(i,n)&&!e.isDark(i,n+1)&&e.isDark(i,n+2)&&e.isDark(i,n+3)&&e.isDark(i,n+4)&&!e.isDark(i,n+5)&&e.isDark(i,n+6)&&(a+=40);for(var n=0;n<t;n++)for(var i=0;i<t-6;i++)e.isDark(i,n)&&!e.isDark(i+1,n)&&e.isDark(i+2,n)&&e.isDark(i+3,n)&&e.isDark(i+4,n)&&!e.isDark(i+5,n)&&e.isDark(i+6,n)&&(a+=40);for(var f=0,n=0;n<t;n++)for(var i=0;i<t;i++)e.isDark(i,n)&&f++;var C=Math.abs(100*f/t/t-50)/5;return a+=C*10,a}},E={glog:function(e){if(e<1)throw new Error("glog("+e+")");return E.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return E.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)E.EXP_TABLE[g]=1<<g;for(var g=8;g<256;g++)E.EXP_TABLE[g]=E.EXP_TABLE[g-4]^E.EXP_TABLE[g-5]^E.EXP_TABLE[g-6]^E.EXP_TABLE[g-8];for(var g=0;g<255;g++)E.LOG_TABLE[E.EXP_TABLE[g]]=g;function D(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var a=0;a<e.length&&e[a]==0;)a++;this.num=new Array(e.length-a+t);for(var i=0;i<e.length-a;i++)this.num[i]=e[i+a]}D.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),a=0;a<this.getLength();a++)for(var i=0;i<e.getLength();i++)t[a+i]^=E.gexp(E.glog(this.get(a))+E.glog(e.get(i)));return new D(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=E.glog(this.get(0))-E.glog(e.get(0)),a=new Array(this.getLength()),i=0;i<this.getLength();i++)a[i]=this.get(i);for(var i=0;i<e.getLength();i++)a[i]^=E.gexp(E.glog(e.get(i))+t);return new D(a,0).mod(e)}};function A(e,t){this.totalCount=e,this.dataCount=t}A.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]],A.getRSBlocks=function(e,t){var a=A.getRsBlockTable(e,t);if(a==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=a.length/3,n=[],c=0;c<i;c++)for(var d=a[c*3+0],r=a[c*3+1],u=a[c*3+2],p=0;p<d;p++)n.push(new A(r,u));return n},A.getRsBlockTable=function(e,t){switch(t){case L.L:return A.RS_BLOCK_TABLE[(e-1)*4+0];case L.M:return A.RS_BLOCK_TABLE[(e-1)*4+1];case L.Q:return A.RS_BLOCK_TABLE[(e-1)*4+2];case L.H:return A.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function O(){this.buffer=[],this.length=0}O.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var a=0;a<t;a++)this.putBit((e>>>t-a-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var B=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function F(){return typeof CanvasRenderingContext2D<"u"}function $(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var a=t.toString().match(/android ([0-9]\.[0-9])/i);a&&a[1]&&(e=parseFloat(a[1]))}return e}var U=function(){var e=function(t,a){this._el=t,this._htOption=a};return e.prototype.draw=function(t){var a=this._htOption,i=this._el,n=t.getModuleCount();Math.floor(a.width/n),Math.floor(a.height/n),this.clear();function c(f,C){var S=document.createElementNS("http://www.w3.org/2000/svg",f);for(var N in C)C.hasOwnProperty(N)&&S.setAttribute(N,C[N]);return S}var d=c("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:a.colorLight});d.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(d),d.appendChild(c("rect",{fill:a.colorLight,width:"100%",height:"100%"})),d.appendChild(c("rect",{fill:a.colorDark,width:"1",height:"1",id:"template"}));for(var r=0;r<n;r++)for(var u=0;u<n;u++)if(t.isDark(r,u)){var p=c("use",{x:String(u),y:String(r)});p.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),d.appendChild(p)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e}(),q=document.documentElement.tagName.toLowerCase()==="svg",H=q?U:F()?function(){function e(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}if(this&&this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,a=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(c,d,r,u,p,f,C,S,N){if("nodeName"in c&&/img/i.test(c.nodeName))for(var k=arguments.length-1;k>=1;k--)arguments[k]=arguments[k]*t;else typeof S>"u"&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);a.apply(this,arguments)}}function i(c,d){var r=this;if(r._fFail=d,r._fSuccess=c,r._bSupportDataURI===null){var u=document.createElement("img"),p=function(){r._bSupportDataURI=!1,r._fFail&&r._fFail.call(r)},f=function(){r._bSupportDataURI=!0,r._fSuccess&&r._fSuccess.call(r)};u.onabort=p,u.onerror=p,u.onload=f,u.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";return}else r._bSupportDataURI===!0&&r._fSuccess?r._fSuccess.call(r):r._bSupportDataURI===!1&&r._fFail&&r._fFail.call(r)}var n=function(c,d){this._bIsPainted=!1,this._android=$(),this._htOption=d,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=d.width,this._elCanvas.height=d.height,c.appendChild(this._elCanvas),this._el=c,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._el.appendChild(this._elImage),this._bSupportDataURI=null};return n.prototype.draw=function(c){var d=this._elImage,r=this._oContext,u=this._htOption,p=c.getModuleCount(),f=u.width/p,C=u.height/p,S=Math.round(f),N=Math.round(C);d.style.display="none",this.clear();for(var k=0;k<p;k++)for(var b=0;b<p;b++){var V=c.isDark(k,b),I=b*f,P=k*C;r.strokeStyle=V?u.colorDark:u.colorLight,r.lineWidth=1,r.fillStyle=V?u.colorDark:u.colorLight,r.fillRect(I,P,f,C),r.strokeRect(Math.floor(I)+.5,Math.floor(P)+.5,S,N),r.strokeRect(Math.ceil(I)-.5,Math.ceil(P)-.5,S,N)}this._bIsPainted=!0},n.prototype.makeImage=function(){this._bIsPainted&&i.call(this,e)},n.prototype.isPainted=function(){return this._bIsPainted},n.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},n.prototype.round=function(c){return c&&Math.floor(c*1e3)/1e3},n}():function(){var e=function(t,a){this._el=t,this._htOption=a};return e.prototype.draw=function(t){for(var a=this._htOption,i=this._el,n=t.getModuleCount(),c=Math.floor(a.width/n),d=Math.floor(a.height/n),r=['<table style="border:0;border-collapse:collapse;">'],u=0;u<n;u++){r.push("<tr>");for(var p=0;p<n;p++)r.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+c+"px;height:"+d+"px;background-color:"+(t.isDark(u,p)?a.colorDark:a.colorLight)+';"></td>');r.push("</tr>")}r.push("</table>"),i.innerHTML=r.join("");var f=i.childNodes[0],C=(a.width-f.offsetWidth)/2,S=(a.height-f.offsetHeight)/2;C>0&&S>0&&(f.style.margin=S+"px "+C+"px")},e.prototype.clear=function(){this._el.innerHTML=""},e}();function Q(e,t){for(var a=1,i=z(e),n=0,c=B.length;n<=c;n++){var d=0;switch(t){case L.L:d=B[n][0];break;case L.M:d=B[n][1];break;case L.Q:d=B[n][2];break;case L.H:d=B[n][3];break}if(i<=d)break;a++}if(a>B.length)throw new Error("Too long data");return a}function z(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}return h=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:L.H},typeof t=="string"&&(t={text:t}),t)for(var a in t)this._htOption[a]=t[a];typeof e=="string"&&(e=document.getElementById(e)),this._htOption.useSVG&&(H=U),this._android=$(),this._el=e,this._oQRCode=null,this._oDrawing=new H(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},h.prototype.makeCode=function(e){this._oQRCode=new v(Q(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},h.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},h.prototype.clear=function(){this._oDrawing.clear()},h.CorrectLevel=L,h})}(M)),M.exports}var r3=s3();const x=i3(r3),l3={class:"cloud-login-wrap"},c3={key:0,class:"cloud-login-main"},h3={class:"cloud-login-logo no-dark-content can-click"},d3=["src"],u3={key:0,class:"cloud-login-box"},g3={class:"login-title"},f3={class:"login-subtitle"},m3={class:"cloud-login-mode-access"},p3={class:"login-switch"},v3={key:1,class:"cloud-login-box"},_3={class:"login-mode-switch"},w3={class:"login-mode-switch-box"},E3={class:"login-title"},C3={class:"login-subtitle"},L3={class:"cloud-login-mode-access"},S3={key:0,class:"code-load"},k3={key:1,class:"code-error"},T3=["src"],y3={class:"cloud-login-other"},A3={class:"cloud-login-other"},N3={key:0,class:"login-switch"},b3={key:1,class:"page-login-oauth"},D3={key:2,class:"cloud-login-box"},B3={class:"login-mode-switch"},V3={class:"login-mode-switch-box"},I3={class:"login-title"},M3={class:"login-subtitle"},P3={id:"qrcode",ref:"qrCodeUrl"},O3={key:3,class:"cloud-login-box"},$3={class:"login-title"},U3={class:"login-subtitle"},H3={class:"cloud-login-mode-access"},R3={class:"page-login-oauth"},x3={data(){return{loadOngoing:!1,loginMode:"access",loginJump:!1,cache_remember:"off",cache_privacy:"off",account_mobile:"",account_password:"",account_password2:"",captcha_code:"",sms_code:"",account_business_id:0,reg_invite:"",regInviteNeed:!1,codeNeed:!1,codeLoad:0,codeKey:"",codeUrl:"",chainShowFlag:!1,chainAccountList:[],chainTempToken:"",qrcodeExpiredShow:!1,qrcodeTimer:null,qrcodeLoad:!1,qrcodeScanVernum:15,qrcodeScanVererr:0,copyright_info:""}},watch:{$route({query:l}){l.type=="reg"&&this.$nextTick(()=>{this.loginMode="reg"})},account_mobile(l){this.$nextTick(()=>{var h,m;let s=(m=(h=this.$refs.account_mobile)==null?void 0:h.$el)==null?void 0:m.querySelector("input");if(s){const w=getComputedStyle(s).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);w&&w[0]==="rgb(232, 240, 254)"&&this.onBlur()}})},loginMode(l){l=="reg"&&(this.regInviteNeed=!!this.cacheInstConfig.reg_invite_need)}},computed:{currentLanguage(){return this.languageList[this.languageName]||"Language"}},created(){this.cache_remember=localStorage.getItem("cacheLoginRemember")||"off",this.cache_privacy=localStorage.getItem("cacheLoginPrivacy")||"off",this.account_mobile=localStorage.getItem("cacheLoginMobile")||""},async mounted(){this.loginMode=this.$route.query.type==="reg"?"reg":"access",this.$Electron&&(this.$Electron.sendMessage("webTabDestroyAll"),this.$Electron.sendMessage("childWindowDestroyAll")),T.useSdkSystemStore().$subscribe((l,s)=>{l.events.key=="useSSOLogin"&&s.useSSOLogin==!0&&this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.loginJump=!1,this.account_password="",this.account_password2="",this.captcha_code="",this.reg_invite=""},methods:{handleRemember(l){l=="on"?localStorage.setItem("cacheLoginRemember",l):localStorage.removeItem("cacheLoginRemember")},handleRrivacy(l){l=="on"?(localStorage.setItem("cacheLoginPrivacy",l),this.chackServerUrl().catch(s=>{})):localStorage.removeItem("cacheLoginPrivacy"),this.cache_privacy=l},handleForgot(){this.$message.warning("请联系管理员!")},chackServerUrl(l){return new Promise((s,h)=>{s()})},switchLoginMode(l){this.chackServerUrl(!0).then(()=>{clearInterval(this.qrcodeTimer),l==="qrcode"?(this.loginMode="qrcode",this.scanQrcodeRefresh()):l==="access"?this.loginMode="access":l==="smsLogin"?(this.loginMode="smsLogin",this.refreshCode()):this.loginMode=l})},refreshCode(){this.captcha_code="",!(this.codeLoad>0)&&(setTimeout(l=>{this.codeLoad++},600),this.$request.flagGet("BASE_PASSPORT_CODE_DATA",{account_mobile:this.account_mobile}).then(({data:l})=>{var s;this.codeKey=l.key,this.codeUrl=l.img,(s=this.$refs.captcha_code)==null||s.focus()}).catch(l=>{this.codeUrl="error"}).finally(l=>{this.codeLoad--}))},onBlur(){if(!this.account_mobile){this.codeNeed=!1;return}this.loadOngoing=!0,this.$request.flagGet("BASE_PASSPORT_CODE_NEED",{account_mobile:this.account_mobile}).then(l=>{this.loadOngoing=!1,l.data=="need"?(this.refreshCode(),this.codeNeed=!0):this.codeNeed=!1}).catch(l=>{this.loadOngoing=!1}).finally(l=>{this.loadOngoing=!1})},accessLoginFunc(){if(this.loadOngoing)return this.$message({type:"warning",message:"正在登录中,请勿重新确认~"}),!1;this.chackServerUrl(!0).then(()=>{if(this.account_mobile=cvUtils.strTrimAll(this.account_mobile),this.account_password=cvUtils.strTrimAll(this.account_password),this.account_password2=cvUtils.strTrimAll(this.account_password2),this.captcha_code=cvUtils.strTrimAll(this.captcha_code),this.reg_invite=cvUtils.strTrimAll(this.reg_invite),this.cache_privacy!="on"){this.$message.warning("请同意协议");return}if(!cvUtils.isMobile(this.account_mobile)){this.$message.warning("请输入正确的手机号码"),this.$refs.account_mobile.focus();return}if(!this.account_password){this.$message.warning("请输入密码"),this.$refs.account_password.focus();return}if(this.loginMode=="reg"&&this.account_password!=this.account_password2){this.$message.warning("确认密码输入不一致"),this.$refs.account_password2.focus();return}if(this.codeNeed&&!this.captcha_code){this.$message.warning("请输入验证码"),this.$refs.captcha_code.focus();return}this.passportHandle2(null,"MobilePwdLogin")})},loginBusinessCheck(l){this.account_mobile=l.account_mobile_show,this.account_business_id=l.business_id,l.acc_rules_type=="sy-org-admin"?this.passportHandle2(null,"OrgAdminPwdLogin"):l.acc_rules_type=="sy-org-staff"&&this.passportHandle2(null,"OrgStaffPwdLogin")},passportHandle2(l,s){let h=this.$message({iconClass:"ElIconLoading",message:"正在登录...",duration:0});this.loadOngoing=!0,localStorage.setItem("cacheLoginMobile",this.account_mobile);try{let m={};this.loginMode=="access"?(m={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey},(s=="OrgAdminPwdLogin"||s=="OrgStaffPwdLogin")&&(m.temp_token=this.chainTempToken)):this.loginMode=="reg"&&(m={account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey,reg_invite:this.reg_invite}),this.$request.setOptions({timeout:1e4}).flagPost("BASE_PASSPORT_PASSPORT",{handleType:s,...m}).then(v=>{h.close(),this.loadOngoing=!1,v.status==200?this.adminLoginSucc(v):v.status==400130?(this.$message.error("验证码有误!"),this.refreshCode(),this.codeNeed=!0):(this.$message.error(v.msg),this.refreshCode())}).catch(v=>{this.loadOngoing=!1,this.chainShowFlag=!1,h.close(),this.refreshCode(),this.codeNeed=!0})}catch{this.$message.error("登录异常"),h.close(),this.loadOngoing=!1,this.refreshCode()}},async adminLoginSucc(l){let s=l.data||{};if(s.result_type=="chain")this.chainAccountList=s.result_data||[],this.chainShowFlag=!0,this.chainTempToken=s.result_token||"";else{const h=s.result_data||{};await T.useSdkAccountStore().SA_ACCOUNT_SIGNIN(h),this.codeNeed=!1,this.$message({type:"success",message:"登录成功...",duration:800,onClose:()=>{this.goNext()}})}},chainReselection(){this.refreshCode(),this.chainShowFlag=!1},scanCreate(l){new x(this.$refs.qrCodeUrl,{text:l,width:180,height:180,margin:2,colorDark:"#000000",colorLight:"#ffffff",correctLevel:x.CorrectLevel.L})},scanQrcodeRefresh(){if(this.loginMode!="qrcode"||this.qrcodeLoad)return!1;this.qrcodeExpiredShow=!1,this.qrcodeScanVererr=0,this.$nextTick(()=>{document.getElementById("qrcode").innerHTML="",clearInterval(this.qrcodeTimer),this.qrcodeLoad=!0,this.$request.flagGet("BASE_PASSPORT_SCAN_QRCODE",{name:"app",fun:"scanQrcode"}).then(l=>{var s;l.status==200?(this.scanCreate((s=l==null?void 0:l.data)==null?void 0:s.checkLogin),this.qrcodeTimer=window.setInterval(()=>{var h;this.scanCheckFunc((h=l==null?void 0:l.data)==null?void 0:h.scanCode)},3e3)):result.status==404}).catch(l=>{}).finally(l=>{this.qrcodeLoad=!1})})},scanCheckFunc(l){if(this.qrcodeScanVererr++,this.qrcodeScanVererr>this.qrcodeScanVernum)return clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0,!1;this.$request.flagPost("BASE_PASSPORT_SCAN_CHECK",{name:"app",fun:"scanCheck",scanCode:l||""}).then(s=>{var m,v;if(s.status==200){var h=s.msg&&((m=s==null?void 0:s.data)==null?void 0:m.scanCVal)||"";h!=""&&(clearInterval(this.qrcodeTimer),this.scanLoginFunc(l,(v=s==null?void 0:s.data)==null?void 0:v.scanCVal))}else s.status==405&&(clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0)}).catch(()=>{})},scanLoginFunc(l,s){this.$message({type:"success",message:"扫码成功,请稍后...",duration:1500}),this.$request.flagPost("BASE_PASSPORT_SCAN_LOGIN",{name:"app",fun:"scanLogin",scanCode:l,scanCVal:s}).then(h=>{if(h.status==200){let m=this.$message({iconClass:"ElIconLoading",message:"正在安全登录中,请稍后...",duration:0});setTimeout(()=>{m.close(),this.$message({message:h.msg,type:h.status==200?"success":"error"})},2e3)}}).catch(()=>{})},goNext(){this.loginJump=!0;let l=cvUtils.urlQueryToObj(this.$route.query);const s=decodeURIComponent(l.from||"");s?T.StorageObj.idbSetItem("clearCache","login").then(h=>{window.location.replace(s)}):this.$router.push({path:"/"})},setTheme(l){T.useSdkThemesStore().SA_THEMES_SET(l)},setLanguage(l){T.useSdkLanguageStore().SA_LANGUAGE_SET(l)},inputServerUrl(){},inputServerChack(l){return new Promise((s,h)=>{let m=l;/\/api\/$/.test(m)||(m=m+(cvUtils.strRightExists(m,"/")?"api/":"/api/")),/^https*:\/\//i.test(m)||(m=`https://${m}`),T.HttpObj.setOptions({checkNetwork:!1}).flagGet("SYS_SETT_ALL",{}).then(async({data:v})=>{typeof v.server_version>"u"&&typeof v.all_group_mute>"u"?h(`服务器(${cvUtils.urlGetDomain(l)})版本过低`):(m!=this.sysServerUrl&&(await T.StorageObj.idbSetItem("sysServerUrl",m),window.location.reload()),s())}).catch(({ret:v,msg:w})=>{if(v===-1001){if(!/^https*:\/\//i.test(l)){this.inputServerChack(`http://${l}`).then(s).catch(h);return}w="服务器地址无效"}h(w)})})}}},F3=Object.assign(x3,{__name:"login",setup(l){return(s,h)=>{const m=o.resolveComponent("el-input"),v=o.resolveComponent("el-button"),w=o.resolveComponent("el-icon"),L=o.resolveComponent("el-tooltip"),y=o.resolveComponent("cv-icons"),_=o.resolveComponent("ElIconLoading"),E=o.resolveComponent("el-checkbox");return o.openBlock(),o.createElementBlock("div",l3,[s.chainShowFlag?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",c3,[o.createElementVNode("div",h3,[o.createElementVNode("img",{src:s.cacheInstInfo.LAST_IP_LOGO,alt:""},null,8,d3)]),s.loginMode=="reg"?(o.openBlock(),o.createElementBlock("div",u3,[o.createElementVNode("div",g3,o.toDisplayString(s.cacheInstInfo.LAST_IP_TITLE),1),o.createElementVNode("div",f3,o.toDisplayString(s.$t("输入您的信息以创建帐户。")),1),o.createElementVNode("div",m3,[o.createElementVNode("form",null,[o.createVNode(m,{modelValue:s.account_password2,"onUpdate:modelValue":h[0]||(h[0]=g=>s.account_password2=g),ref:"account_password2","prefix-icon":"ElIconLock",placeholder:s.$t("输入确认密码"),type:"password",size:"large",clearable:""},null,8,["modelValue","placeholder"]),s.regInviteNeed?(o.openBlock(),o.createBlock(m,{key:0,modelValue:s.reg_invite,"onUpdate:modelValue":h[1]||(h[1]=g=>s.reg_invite=g),ref:"reg_invite",class:"login-code",placeholder:s.$t("请输入注册邀请码"),type:"text",size:"large",clearable:""},{prepend:o.withCtx(()=>[o.createTextVNode(" "+o.toDisplayString(s.$t("邀请码"))+" ",1)]),_:1},8,["modelValue","placeholder"])):o.createCommentVNode("",!0)]),o.createVNode(v,null,{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.loginJump?"注册成功":"注册"),1)]),_:1}),o.createElementVNode("div",p3,[o.createTextVNode(o.toDisplayString(s.$t("已经有帐号?"))+" ",1),o.createElementVNode("a",{href:"javascript:void(0)",onClick:h[2]||(h[2]=g=>s.switchLoginMode("access"))},o.toDisplayString(s.$t("登录帐号")),1)])])])):o.createCommentVNode("",!0),s.loginMode=="access"?(o.openBlock(),o.createElementBlock("div",v3,[o.createElementVNode("div",_3,[o.createElementVNode("div",w3,[o.createVNode(L,{content:"扫码登录",placement:"left"},{default:o.withCtx(()=>[o.createElementVNode("span",{class:"login-mode-switch-icon",onClick:h[3]||(h[3]=g=>s.switchLoginMode("qrcode"))},[o.createVNode(w,{size:"45"},{default:o.withCtx(()=>[o.createVNode(X)]),_:1})])]),_:1})])]),o.createElementVNode("div",E3,o.toDisplayString(s.cacheInstInfo.LAST_IP_TITLE),1),o.createElementVNode("div",C3,o.toDisplayString(s.$t("输入您的凭证以访问您的帐户。")),1),o.createElementVNode("div",L3,[o.createElementVNode("form",null,[o.createVNode(m,{modelValue:s.account_mobile,"onUpdate:modelValue":h[4]||(h[4]=g=>s.account_mobile=g),ref:"account_mobile","prefix-icon":"ElIconUser",placeholder:s.$t("输入您的手机账号"),type:"text",size:"large",maxlength:"11",onBlur:s.onBlur,clearable:""},null,8,["modelValue","placeholder","onBlur"]),o.createVNode(m,{modelValue:s.account_password,"onUpdate:modelValue":h[5]||(h[5]=g=>s.account_password=g),ref:"account_password","prefix-icon":"ElIconLock",placeholder:s.$t("输入您的密码"),type:"password",size:"large",clearable:"",onKeydown:o.withKeys(s.accessLoginFunc,["enter"])},null,8,["modelValue","placeholder","onKeydown"]),s.codeNeed?(o.openBlock(),o.createBlock(m,{key:0,modelValue:s.captcha_code,"onUpdate:modelValue":h[7]||(h[7]=g=>s.captcha_code=g),ref:"captcha_code",class:"login-code",placeholder:s.$t("输入图形验证码"),type:"text",size:"large",clearable:""},{prefix:o.withCtx(()=>[o.createVNode(y,{type:"ElIconCircleCheck"})]),append:o.withCtx(()=>[o.createElementVNode("div",{class:"login-code-end",onClick:h[6]||(h[6]=(...g)=>s.refreshCode&&s.refreshCode(...g))},[s.codeLoad>0?(o.openBlock(),o.createElementBlock("div",S3,[o.createVNode(_)])):s.codeUrl==="error"?(o.openBlock(),o.createElementBlock("span",k3,o.toDisplayString(s.$t("加载失败")),1)):(o.openBlock(),o.createElementBlock("img",{key:2,src:s.codeUrl},null,8,T3))])]),_:1},8,["modelValue","placeholder"])):o.createCommentVNode("",!0)]),o.createVNode(v,{type:"primary",loading:s.loadOngoing||s.loginJump,size:"large",style:{width:"100%","margin-bottom":"15px"},onClick:s.accessLoginFunc},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(s.loginJump?"登录成功":"登录"),1)]),_:1},8,["loading","onClick"]),o.createElementVNode("div",y3,[o.createVNode(E,{modelValue:s.cache_privacy,"onUpdate:modelValue":h[9]||(h[9]=g=>s.cache_privacy=g),"true-value":"on","false-value":"off",onChange:s.handleRrivacy},{default:o.withCtx(()=>[h[17]||(h[17]=o.createTextVNode(" 同意 ",-1)),o.createElementVNode("a",{onClick:h[8]||(h[8]=g=>s.jumpsXieyi("privacy")),target:"_blank"},"《隐私条款》")]),_:1},8,["modelValue","onChange"]),o.createElementVNode("a",{href:"javascript:void(0)",onClick:h[10]||(h[10]=(...g)=>s.handleForgot&&s.handleForgot(...g))},o.toDisplayString(s.$t("忘记密码了?")),1)]),o.createElementVNode("div",A3,[s.cacheInstConfig.open_business_reg=="on"?(o.openBlock(),o.createElementBlock("div",N3,[o.createTextVNode(o.toDisplayString(s.$t("还没有帐号?"))+" ",1),o.createElementVNode("a",{href:"javascript:void(0)",onClick:h[11]||(h[11]=g=>s.switchLoginMode("reg"))},o.toDisplayString(s.$t("注册帐号")),1)])):o.createCommentVNode("",!0),s.cacheInstConfig.open_business_oauth2=="on"?(o.openBlock(),o.createElementBlock("div",b3,[o.createElementVNode("a",{href:"javascript:void(0)",onClick:h[12]||(h[12]=g=>s.switchLoginMode("oauth2"))},o.toDisplayString(s.$t("OAuth2授权登陆")),1)])):o.createCommentVNode("",!0)])])])):o.createCommentVNode("",!0),s.loginMode=="qrcode"?(o.openBlock(),o.createElementBlock("div",D3,[o.createElementVNode("div",B3,[o.createElementVNode("div",V3,[o.createVNode(L,{content:"帐号登录",placement:"left"},{default:o.withCtx(()=>[o.createElementVNode("span",{class:"login-mode-switch-icon",onClick:h[13]||(h[13]=g=>s.switchLoginMode("access"))},[o.createVNode(w,{size:"45"},{default:o.withCtx(()=>[o.createVNode(Z)]),_:1})])]),_:1})])]),o.createElementVNode("div",I3,o.toDisplayString(s.$t("扫码登录")),1),o.createElementVNode("div",M3,[o.createVNode(w,{size:"20",style:{"margin-right":"10px"}},{default:o.withCtx(()=>[o.createVNode(a3)]),_:1}),o.createTextVNode(" "+o.toDisplayString(s.$t(`请使用【${s.cacheInstInfo.LAST_IP_BRAND}】移动端扫描二维码`)),1)]),o.createElementVNode("div",{class:"login-qrcode",onClick:h[14]||(h[14]=(...g)=>s.scanQrcodeRefresh&&s.scanQrcodeRefresh(...g))},[o.createElementVNode("div",P3,null,512)])])):o.createCommentVNode("",!0),s.loginMode=="oauth2"?(o.openBlock(),o.createElementBlock("div",O3,[o.createElementVNode("div",$3,o.toDisplayString(s.cacheInstInfo.LAST_IP_TITLE),1),o.createElementVNode("div",U3,o.toDisplayString(s.$t("输入您的信息以创建帐户。")),1),o.createElementVNode("div",H3,[o.createElementVNode("div",R3,[o.createElementVNode("a",{href:"javascript:void(0)",onClick:h[15]||(h[15]=g=>s.switchLoginMode("access"))},o.toDisplayString(s.$t("帐号登录")),1)])])])):o.createCommentVNode("",!0)])),s.chainShowFlag?(o.openBlock(),o.createBlock(T.SwitchBusiness,{key:1,modelValue:s.chainAccountList,"onUpdate:modelValue":h[16]||(h[16]=g=>s.chainAccountList=g),reselectTitle:"重新登录",onReselectFunc:s.chainReselection,onSelectFunc:s.loginBusinessCheck},null,8,["modelValue","onReselectFunc","onSelectFunc"])):o.createCommentVNode("",!0)])}}});exports.default=F3;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as n, openBlock as s, createElementVNode as o } from "vue";
|
|
2
|
-
import { _ as c } from "./index-
|
|
2
|
+
import { _ as c } from "./index-CNiERy2H.js";
|
|
3
3
|
const r = {}, t = {
|
|
4
4
|
class: "cloud-none-wrap",
|
|
5
5
|
style: { "background-color": "none" }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-CMKwUtXD.cjs"),c={},t={class:"cloud-none-wrap",style:{"background-color":"none"}};function s(d,o){return e.openBlock(),e.createElementBlock("div",t,[...o[0]||(o[0]=[e.createElementVNode("div",{class:"cloud-none-box"},[e.createElementVNode("div",{class:"cloud-none-code"},"没有权限"),e.createElementVNode("div",{class:"cloud-none-message"},"Not Permission")],-1)])])}const r=n._export_sfc(c,[["render",s]]);exports.default=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CMKwUtXD.cjs");exports.HttpObj=e.HttpObj;exports.SameFrame=e._sfc_main;exports.SameRouteView=e.SameRouteView;exports.SameWatermark=e.SameWatermark;exports.StorageObj=e.StorageObj;exports.SwitchBusiness=e.SwitchBusiness;exports.createHttp=e.createHttp;exports.dialogChoiceGoods=e.dialogGoods;exports.dialogChoiceImage=e.dialogImage;exports.dialogChoiceStaff=e.dialogStaff;exports.qiankunWindow=e.qiankunWindow;exports.sdkBootstrap=e.sdkBootstrap;exports.sdkConfigGet=e.sdkConfigGet;exports.sdkConfigSet=e.sdkConfigSet;exports.sdkStartBefore=e.sdkStartBefore;exports.sdkStarup=e.sdkStarup;exports.sdkStoreClearCache=e.sdkStoreClearCache;exports.useSdkAccountStore=e.useSdkAccountStore;exports.useSdkLanguageStore=e.useSdkLanguageStore;exports.useSdkPermissionStore=e.useSdkPermissionStore;exports.useSdkProductStore=e.useSdkProductStore;exports.useSdkQiankunStore=e.useSdkQiankunStore;exports.useSdkSysWinStore=e.useSdkSysWinStore;exports.useSdkSystemStore=e.useSdkSystemStore;exports.useSdkThemesStore=e.useSdkThemesStore;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { H as e, f as o, g as t, h as S, a as r, S as d, r as i, i as k, k as u, j as n, q as m, w as c, e as g, s as f, t as h, v as C, p, c as l, u as w, o as b, n as j, l as B, m as H, d as W, b as q } from "./index-
|
|
1
|
+
import { H as e, f as o, g as t, h as S, a as r, S as d, r as i, i as k, k as u, j as n, q as m, w as c, e as g, s as f, t as h, v as C, p, c as l, u as w, o as b, n as j, l as B, m as H, d as W, b as q } from "./index-CNiERy2H.js";
|
|
2
2
|
export {
|
|
3
3
|
e as HttpObj,
|
|
4
4
|
o as SameFrame,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@10yun/open-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.127",
|
|
4
4
|
"description": "开放平台接入sdk",
|
|
5
5
|
"author": "10yun.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,22 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://gitee.com/open10/open-sdk",
|
|
28
28
|
"type": "module",
|
|
29
|
-
"main": "./dist/
|
|
30
|
-
"module": "./dist/
|
|
29
|
+
"main": "./dist/open-sdk.cjs.js",
|
|
30
|
+
"module": "./dist/open-sdk.es.js",
|
|
31
31
|
"types": "./dist/index.d.ts",
|
|
32
|
-
"exports": {
|
|
33
|
-
".": {
|
|
34
|
-
"import": "./dist/index.es.js",
|
|
35
|
-
"require": "./dist/index.cjs.js"
|
|
36
|
-
},
|
|
37
|
-
"./vite-plugin": {
|
|
38
|
-
"import": "./dist/vite-plugin.es.js",
|
|
39
|
-
"require": "./dist/vite-plugin.cjs.js"
|
|
40
|
-
},
|
|
41
|
-
"./uncompiled": {
|
|
42
|
-
"import": "./uncompiled/index.js"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
32
|
"files": [
|
|
46
33
|
"build",
|
|
47
34
|
"common",
|
package/vite-plugin-shiyun.js
CHANGED