k5web/assets/index.fbf73454.js
2024-10-06 14:43:35 +08:00

8 lines
39 KiB
JavaScript

import{t as Ce,ad as _e,O as Se,_ as Ee}from"./index.375cf361.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Be,j as wt,r as Ie,o as Te,aY as Ae,c0 as Pe,bY as Ne,b3 as Me,bS as Fe,bI as Re,C as O,D as q,aI as C,aH as E,aM as L,aN as v,G,u as De,a$ as Zt,b0 as Wt,aK as nt,aJ as ot,aE as rt,n as Xt,bc as Le,bk as Ue,b$ as ve,b8 as ke,bi as Ve,c1 as $e,bG as Oe,bK as He,bO as ze,bm as Ye,bn as xe}from"./arco.b087a425.js";import{e as yt,g as te,h as T,b as M,s as Je}from"./serial.c6b76da8.js";import{u as Ke}from"./loading.9d534c38.js";import"./chart.836a9fe2.js";import"./vue.23fb8a9a.js";var W={},je=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},re={},k={};let Pt;const qe=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];k.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17};k.getSymbolTotalCodewords=function(n){return qe[n]};k.getBCHDigit=function(o){let n=0;for(;o!==0;)n++,o>>>=1;return n};k.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');Pt=n};k.isKanjiModeEnabled=function(){return typeof Pt<"u"};k.toSJIS=function(n){return Pt(n)};var ut={};(function(o){o.L={bit:1},o.M={bit:0},o.Q={bit:3},o.H={bit:2};function n(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return o.L;case"m":case"medium":return o.M;case"q":case"quartile":return o.Q;case"h":case"high":return o.H;default:throw new Error("Unknown EC Level: "+i)}}o.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},o.from=function(e,r){if(o.isValid(e))return e;try{return n(e)}catch{return r}}})(ut);function ae(){this.buffer=[],this.length=0}ae.prototype={get:function(o){const n=Math.floor(o/8);return(this.buffer[n]>>>7-o%8&1)===1},put:function(o,n){for(let i=0;i<n;i++)this.putBit((o>>>n-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),o&&(this.buffer[n]|=128>>>this.length%8),this.length++}};var Ge=ae;function X(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}X.prototype.set=function(o,n,i,e){const r=o*this.size+n;this.data[r]=i,e&&(this.reservedBit[r]=!0)};X.prototype.get=function(o,n){return this.data[o*this.size+n]};X.prototype.xor=function(o,n,i){this.data[o*this.size+n]^=i};X.prototype.isReserved=function(o,n){return this.reservedBit[o*this.size+n]};var Qe=X,ie={};(function(o){const n=k.getSymbolSize;o.getRowColCoords=function(e){if(e===1)return[];const r=Math.floor(e/7)+2,a=n(e),s=a===145?26:Math.ceil((a-13)/(2*r-2))*2,t=[a-7];for(let l=1;l<r-1;l++)t[l]=t[l-1]-s;return t.push(6),t.reverse()},o.getPositions=function(e){const r=[],a=o.getRowColCoords(e),s=a.length;for(let t=0;t<s;t++)for(let l=0;l<s;l++)t===0&&l===0||t===0&&l===s-1||t===s-1&&l===0||r.push([a[t],a[l]]);return r}})(ie);var se={};const Ze=k.getSymbolSize,ee=7;se.getPositions=function(n){const i=Ze(n);return[[0,0],[i-ee,0],[0,i-ee]]};var le={};(function(o){o.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};o.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},o.from=function(r){return o.isValid(r)?parseInt(r,10):void 0},o.getPenaltyN1=function(r){const a=r.size;let s=0,t=0,l=0,g=null,h=null;for(let I=0;I<a;I++){t=l=0,g=h=null;for(let y=0;y<a;y++){let m=r.get(I,y);m===g?t++:(t>=5&&(s+=n.N1+(t-5)),g=m,t=1),m=r.get(y,I),m===h?l++:(l>=5&&(s+=n.N1+(l-5)),h=m,l=1)}t>=5&&(s+=n.N1+(t-5)),l>=5&&(s+=n.N1+(l-5))}return s},o.getPenaltyN2=function(r){const a=r.size;let s=0;for(let t=0;t<a-1;t++)for(let l=0;l<a-1;l++){const g=r.get(t,l)+r.get(t,l+1)+r.get(t+1,l)+r.get(t+1,l+1);(g===4||g===0)&&s++}return s*n.N2},o.getPenaltyN3=function(r){const a=r.size;let s=0,t=0,l=0;for(let g=0;g<a;g++){t=l=0;for(let h=0;h<a;h++)t=t<<1&2047|r.get(g,h),h>=10&&(t===1488||t===93)&&s++,l=l<<1&2047|r.get(h,g),h>=10&&(l===1488||l===93)&&s++}return s*n.N3},o.getPenaltyN4=function(r){let a=0;const s=r.data.length;for(let l=0;l<s;l++)a+=r.data[l];return Math.abs(Math.ceil(a*100/s/5)-10)*n.N4};function i(e,r,a){switch(e){case o.Patterns.PATTERN000:return(r+a)%2===0;case o.Patterns.PATTERN001:return r%2===0;case o.Patterns.PATTERN010:return a%3===0;case o.Patterns.PATTERN011:return(r+a)%3===0;case o.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(a/3))%2===0;case o.Patterns.PATTERN101:return r*a%2+r*a%3===0;case o.Patterns.PATTERN110:return(r*a%2+r*a%3)%2===0;case o.Patterns.PATTERN111:return(r*a%3+(r+a)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}o.applyMask=function(r,a){const s=a.size;for(let t=0;t<s;t++)for(let l=0;l<s;l++)a.isReserved(l,t)||a.xor(l,t,i(r,l,t))},o.getBestMask=function(r,a){const s=Object.keys(o.Patterns).length;let t=0,l=1/0;for(let g=0;g<s;g++){a(g),o.applyMask(g,r);const h=o.getPenaltyN1(r)+o.getPenaltyN2(r)+o.getPenaltyN3(r)+o.getPenaltyN4(r);o.applyMask(g,r),h<l&&(l=h,t=g)}return t}})(le);var ct={};const H=ut,at=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],it=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ct.getBlocksCount=function(n,i){switch(i){case H.L:return at[(n-1)*4+0];case H.M:return at[(n-1)*4+1];case H.Q:return at[(n-1)*4+2];case H.H:return at[(n-1)*4+3];default:return}};ct.getTotalCodewordsCount=function(n,i){switch(i){case H.L:return it[(n-1)*4+0];case H.M:return it[(n-1)*4+1];case H.Q:return it[(n-1)*4+2];case H.H:return it[(n-1)*4+3];default:return}};var ue={},dt={};const Q=new Uint8Array(512),st=new Uint8Array(256);(function(){let n=1;for(let i=0;i<255;i++)Q[i]=n,st[n]=i,n<<=1,n&256&&(n^=285);for(let i=255;i<512;i++)Q[i]=Q[i-255]})();dt.log=function(n){if(n<1)throw new Error("log("+n+")");return st[n]};dt.exp=function(n){return Q[n]};dt.mul=function(n,i){return n===0||i===0?0:Q[st[n]+st[i]]};(function(o){const n=dt;o.mul=function(e,r){const a=new Uint8Array(e.length+r.length-1);for(let s=0;s<e.length;s++)for(let t=0;t<r.length;t++)a[s+t]^=n.mul(e[s],r[t]);return a},o.mod=function(e,r){let a=new Uint8Array(e);for(;a.length-r.length>=0;){const s=a[0];for(let l=0;l<r.length;l++)a[l]^=n.mul(r[l],s);let t=0;for(;t<a.length&&a[t]===0;)t++;a=a.slice(t)}return a},o.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let a=0;a<e;a++)r=o.mul(r,new Uint8Array([1,n.exp(a)]));return r}})(ue);const ce=ue;function Nt(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}Nt.prototype.initialize=function(n){this.degree=n,this.genPoly=ce.generateECPolynomial(this.degree)};Nt.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(n.length+this.degree);i.set(n);const e=ce.mod(i,this.genPoly),r=this.degree-e.length;if(r>0){const a=new Uint8Array(this.degree);return a.set(e,r),a}return e};var We=Nt,de={},z={},Mt={};Mt.isValid=function(n){return!isNaN(n)&&n>=1&&n<=40};var $={};const fe="[0-9]+",Xe="[A-Z $%*+\\-./:]+";let Z="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Z=Z.replace(/u/g,"\\u");const tn="(?:(?![A-Z0-9 $%*+\\-./:]|"+Z+`)(?:.|[\r
]))+`;$.KANJI=new RegExp(Z,"g");$.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");$.BYTE=new RegExp(tn,"g");$.NUMERIC=new RegExp(fe,"g");$.ALPHANUMERIC=new RegExp(Xe,"g");const en=new RegExp("^"+Z+"$"),nn=new RegExp("^"+fe+"$"),on=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$.testKanji=function(n){return en.test(n)};$.testNumeric=function(n){return nn.test(n)};$.testAlphanumeric=function(n){return on.test(n)};(function(o){const n=Mt,i=$;o.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!n.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},o.getBestModeForData=function(a){return i.testNumeric(a)?o.NUMERIC:i.testAlphanumeric(a)?o.ALPHANUMERIC:i.testKanji(a)?o.KANJI:o.BYTE},o.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},o.isValid=function(a){return a&&a.bit&&a.ccBits};function e(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+r)}}o.from=function(a,s){if(o.isValid(a))return a;try{return e(a)}catch{return s}}})(z);(function(o){const n=k,i=ct,e=ut,r=z,a=Mt,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,t=n.getBCHDigit(s);function l(y,m,_){for(let S=1;S<=40;S++)if(m<=o.getCapacity(S,_,y))return S}function g(y,m){return r.getCharCountIndicator(y,m)+4}function h(y,m){let _=0;return y.forEach(function(S){const A=g(S.mode,m);_+=A+S.getBitsLength()}),_}function I(y,m){for(let _=1;_<=40;_++)if(h(y,_)<=o.getCapacity(_,m,r.MIXED))return _}o.from=function(m,_){return a.isValid(m)?parseInt(m,10):_},o.getCapacity=function(m,_,S){if(!a.isValid(m))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=r.BYTE);const A=n.getSymbolTotalCodewords(m),b=i.getTotalCodewordsCount(m,_),c=(A-b)*8;if(S===r.MIXED)return c;const u=c-g(S,m);switch(S){case r.NUMERIC:return Math.floor(u/10*3);case r.ALPHANUMERIC:return Math.floor(u/11*2);case r.KANJI:return Math.floor(u/13);case r.BYTE:default:return Math.floor(u/8)}},o.getBestVersionForData=function(m,_){let S;const A=e.from(_,e.M);if(Array.isArray(m)){if(m.length>1)return I(m,A);if(m.length===0)return 1;S=m[0]}else S=m;return l(S.mode,S.getLength(),A)},o.getEncodedBits=function(m){if(!a.isValid(m)||m<7)throw new Error("Invalid QR Code version");let _=m<<12;for(;n.getBCHDigit(_)-t>=0;)_^=s<<n.getBCHDigit(_)-t;return m<<12|_}})(de);var ge={};const Bt=k,he=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,rn=1<<14|1<<12|1<<10|1<<4|1<<1,ne=Bt.getBCHDigit(he);ge.getEncodedBits=function(n,i){const e=n.bit<<3|i;let r=e<<10;for(;Bt.getBCHDigit(r)-ne>=0;)r^=he<<Bt.getBCHDigit(r)-ne;return(e<<10|r)^rn};var pe={};const an=z;function x(o){this.mode=an.NUMERIC,this.data=o.toString()}x.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(n){let i,e,r;for(i=0;i+3<=this.data.length;i+=3)e=this.data.substr(i,3),r=parseInt(e,10),n.put(r,10);const a=this.data.length-i;a>0&&(e=this.data.substr(i),r=parseInt(e,10),n.put(r,a*3+1))};var sn=x;const ln=z,bt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function J(o){this.mode=ln.ALPHANUMERIC,this.data=o}J.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};J.prototype.getLength=function(){return this.data.length};J.prototype.getBitsLength=function(){return J.getBitsLength(this.data.length)};J.prototype.write=function(n){let i;for(i=0;i+2<=this.data.length;i+=2){let e=bt.indexOf(this.data[i])*45;e+=bt.indexOf(this.data[i+1]),n.put(e,11)}this.data.length%2&&n.put(bt.indexOf(this.data[i]),6)};var un=J;const cn=z;function K(o){this.mode=cn.BYTE,typeof o=="string"?this.data=new TextEncoder().encode(o):this.data=new Uint8Array(o)}K.getBitsLength=function(n){return n*8};K.prototype.getLength=function(){return this.data.length};K.prototype.getBitsLength=function(){return K.getBitsLength(this.data.length)};K.prototype.write=function(o){for(let n=0,i=this.data.length;n<i;n++)o.put(this.data[n],8)};var dn=K;const fn=z,gn=k;function j(o){this.mode=fn.KANJI,this.data=o}j.getBitsLength=function(n){return n*13};j.prototype.getLength=function(){return this.data.length};j.prototype.getBitsLength=function(){return j.getBitsLength(this.data.length)};j.prototype.write=function(o){let n;for(n=0;n<this.data.length;n++){let i=gn.toSJIS(this.data[n]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[n]+`
Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),o.put(i,13)}};var hn=j,me={exports:{}};(function(o){var n={single_source_shortest_paths:function(i,e,r){var a={},s={};s[e]=0;var t=n.PriorityQueue.make();t.push(e,0);for(var l,g,h,I,y,m,_,S,A;!t.empty();){l=t.pop(),g=l.value,I=l.cost,y=i[g]||{};for(h in y)y.hasOwnProperty(h)&&(m=y[h],_=I+m,S=s[h],A=typeof s[h]>"u",(A||S>_)&&(s[h]=_,t.push(h,_),a[h]=g))}if(typeof r<"u"&&typeof s[r]>"u"){var b=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(b)}return a},extract_shortest_path_from_predecessor_list:function(i,e){for(var r=[],a=e;a;)r.push(a),i[a],a=i[a];return r.reverse(),r},find_path:function(i,e,r){var a=n.single_source_shortest_paths(i,e,r);return n.extract_shortest_path_from_predecessor_list(a,r)},PriorityQueue:{make:function(i){var e=n.PriorityQueue,r={},a;i=i||{};for(a in e)e.hasOwnProperty(a)&&(r[a]=e[a]);return r.queue=[],r.sorter=i.sorter||e.default_sorter,r},default_sorter:function(i,e){return i.cost-e.cost},push:function(i,e){var r={value:i,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};o.exports=n})(me);(function(o){const n=z,i=sn,e=un,r=dn,a=hn,s=$,t=k,l=me.exports;function g(b){return unescape(encodeURIComponent(b)).length}function h(b,c,u){const d=[];let f;for(;(f=b.exec(u))!==null;)d.push({data:f[0],index:f.index,mode:c,length:f[0].length});return d}function I(b){const c=h(s.NUMERIC,n.NUMERIC,b),u=h(s.ALPHANUMERIC,n.ALPHANUMERIC,b);let d,f;return t.isKanjiModeEnabled()?(d=h(s.BYTE,n.BYTE,b),f=h(s.KANJI,n.KANJI,b)):(d=h(s.BYTE_KANJI,n.BYTE,b),f=[]),c.concat(u,d,f).sort(function(B,D){return B.index-D.index}).map(function(B){return{data:B.data,mode:B.mode,length:B.length}})}function y(b,c){switch(c){case n.NUMERIC:return i.getBitsLength(b);case n.ALPHANUMERIC:return e.getBitsLength(b);case n.KANJI:return a.getBitsLength(b);case n.BYTE:return r.getBitsLength(b)}}function m(b){return b.reduce(function(c,u){const d=c.length-1>=0?c[c.length-1]:null;return d&&d.mode===u.mode?(c[c.length-1].data+=u.data,c):(c.push(u),c)},[])}function _(b){const c=[];for(let u=0;u<b.length;u++){const d=b[u];switch(d.mode){case n.NUMERIC:c.push([d,{data:d.data,mode:n.ALPHANUMERIC,length:d.length},{data:d.data,mode:n.BYTE,length:d.length}]);break;case n.ALPHANUMERIC:c.push([d,{data:d.data,mode:n.BYTE,length:d.length}]);break;case n.KANJI:c.push([d,{data:d.data,mode:n.BYTE,length:g(d.data)}]);break;case n.BYTE:c.push([{data:d.data,mode:n.BYTE,length:g(d.data)}])}}return c}function S(b,c){const u={},d={start:{}};let f=["start"];for(let p=0;p<b.length;p++){const B=b[p],D=[];for(let F=0;F<B.length;F++){const R=B[F],P=""+p+F;D.push(P),u[P]={node:R,lastCount:0},d[P]={};for(let V=0;V<f.length;V++){const U=f[V];u[U]&&u[U].node.mode===R.mode?(d[U][P]=y(u[U].lastCount+R.length,R.mode)-y(u[U].lastCount,R.mode),u[U].lastCount+=R.length):(u[U]&&(u[U].lastCount=R.length),d[U][P]=y(R.length,R.mode)+4+n.getCharCountIndicator(R.mode,c))}}f=D}for(let p=0;p<f.length;p++)d[f[p]].end=0;return{map:d,table:u}}function A(b,c){let u;const d=n.getBestModeForData(b);if(u=n.from(c,d),u!==n.BYTE&&u.bit<d.bit)throw new Error('"'+b+'" cannot be encoded with mode '+n.toString(u)+`.
Suggested mode is: `+n.toString(d));switch(u===n.KANJI&&!t.isKanjiModeEnabled()&&(u=n.BYTE),u){case n.NUMERIC:return new i(b);case n.ALPHANUMERIC:return new e(b);case n.KANJI:return new a(b);case n.BYTE:return new r(b)}}o.fromArray=function(c){return c.reduce(function(u,d){return typeof d=="string"?u.push(A(d,null)):d.data&&u.push(A(d.data,d.mode)),u},[])},o.fromString=function(c,u){const d=I(c,t.isKanjiModeEnabled()),f=_(d),p=S(f,u),B=l.find_path(p.map,"start","end"),D=[];for(let F=1;F<B.length-1;F++)D.push(p.table[B[F]].node);return o.fromArray(m(D))},o.rawSplit=function(c){return o.fromArray(I(c,t.isKanjiModeEnabled()))}})(pe);const ft=k,Ct=ut,pn=Ge,mn=Qe,wn=ie,yn=se,It=le,Tt=ct,bn=We,lt=de,Cn=ge,_n=z,_t=pe;function Sn(o,n){const i=o.size,e=yn.getPositions(n);for(let r=0;r<e.length;r++){const a=e[r][0],s=e[r][1];for(let t=-1;t<=7;t++)if(!(a+t<=-1||i<=a+t))for(let l=-1;l<=7;l++)s+l<=-1||i<=s+l||(t>=0&&t<=6&&(l===0||l===6)||l>=0&&l<=6&&(t===0||t===6)||t>=2&&t<=4&&l>=2&&l<=4?o.set(a+t,s+l,!0,!0):o.set(a+t,s+l,!1,!0))}}function En(o){const n=o.size;for(let i=8;i<n-8;i++){const e=i%2===0;o.set(i,6,e,!0),o.set(6,i,e,!0)}}function Bn(o,n){const i=wn.getPositions(n);for(let e=0;e<i.length;e++){const r=i[e][0],a=i[e][1];for(let s=-2;s<=2;s++)for(let t=-2;t<=2;t++)s===-2||s===2||t===-2||t===2||s===0&&t===0?o.set(r+s,a+t,!0,!0):o.set(r+s,a+t,!1,!0)}}function In(o,n){const i=o.size,e=lt.getEncodedBits(n);let r,a,s;for(let t=0;t<18;t++)r=Math.floor(t/3),a=t%3+i-8-3,s=(e>>t&1)===1,o.set(r,a,s,!0),o.set(a,r,s,!0)}function St(o,n,i){const e=o.size,r=Cn.getEncodedBits(n,i);let a,s;for(a=0;a<15;a++)s=(r>>a&1)===1,a<6?o.set(a,8,s,!0):a<8?o.set(a+1,8,s,!0):o.set(e-15+a,8,s,!0),a<8?o.set(8,e-a-1,s,!0):a<9?o.set(8,15-a-1+1,s,!0):o.set(8,15-a-1,s,!0);o.set(e-8,8,1,!0)}function Tn(o,n){const i=o.size;let e=-1,r=i-1,a=7,s=0;for(let t=i-1;t>0;t-=2)for(t===6&&t--;;){for(let l=0;l<2;l++)if(!o.isReserved(r,t-l)){let g=!1;s<n.length&&(g=(n[s]>>>a&1)===1),o.set(r,t-l,g),a--,a===-1&&(s++,a=7)}if(r+=e,r<0||i<=r){r-=e,e=-e;break}}}function An(o,n,i){const e=new pn;i.forEach(function(l){e.put(l.mode.bit,4),e.put(l.getLength(),_n.getCharCountIndicator(l.mode,o)),l.write(e)});const r=ft.getSymbolTotalCodewords(o),a=Tt.getTotalCodewordsCount(o,n),s=(r-a)*8;for(e.getLengthInBits()+4<=s&&e.put(0,4);e.getLengthInBits()%8!==0;)e.putBit(0);const t=(s-e.getLengthInBits())/8;for(let l=0;l<t;l++)e.put(l%2?17:236,8);return Pn(e,o,n)}function Pn(o,n,i){const e=ft.getSymbolTotalCodewords(n),r=Tt.getTotalCodewordsCount(n,i),a=e-r,s=Tt.getBlocksCount(n,i),t=e%s,l=s-t,g=Math.floor(e/s),h=Math.floor(a/s),I=h+1,y=g-h,m=new bn(y);let _=0;const S=new Array(s),A=new Array(s);let b=0;const c=new Uint8Array(o.buffer);for(let B=0;B<s;B++){const D=B<l?h:I;S[B]=c.slice(_,_+D),A[B]=m.encode(S[B]),_+=D,b=Math.max(b,D)}const u=new Uint8Array(e);let d=0,f,p;for(f=0;f<b;f++)for(p=0;p<s;p++)f<S[p].length&&(u[d++]=S[p][f]);for(f=0;f<y;f++)for(p=0;p<s;p++)u[d++]=A[p][f];return u}function Nn(o,n,i,e){let r;if(Array.isArray(o))r=_t.fromArray(o);else if(typeof o=="string"){let g=n;if(!g){const h=_t.rawSplit(o);g=lt.getBestVersionForData(h,i)}r=_t.fromString(o,g||40)}else throw new Error("Invalid data");const a=lt.getBestVersionForData(r,i);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(!n)n=a;else if(n<a)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+a+`.
`);const s=An(n,i,r),t=ft.getSymbolSize(n),l=new mn(t);return Sn(l,n),En(l),Bn(l,n),St(l,i,0),n>=7&&In(l,n),Tn(l,s),isNaN(e)&&(e=It.getBestMask(l,St.bind(null,l,i))),It.applyMask(e,l),St(l,i,e),{modules:l,version:n,errorCorrectionLevel:i,maskPattern:e,segments:r}}re.create=function(n,i){if(typeof n>"u"||n==="")throw new Error("No input text");let e=Ct.M,r,a;return typeof i<"u"&&(e=Ct.from(i.errorCorrectionLevel,Ct.M),r=lt.from(i.version),a=It.from(i.maskPattern),i.toSJISFunc&&ft.setToSJISFunction(i.toSJISFunc)),Nn(n,r,e,a)};var we={},Ft={};(function(o){function n(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let e=i.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+i);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(a){return[a,a]}))),e.length===6&&e.push("F","F");const r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}o.getOptions=function(e){e||(e={}),e.color||(e.color={});const r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,a=e.width&&e.width>=21?e.width:void 0,s=e.scale||4;return{width:a,scale:a?4:s,margin:r,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},o.getScale=function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale},o.getImageWidth=function(e,r){const a=o.getScale(e,r);return Math.floor((e+r.margin*2)*a)},o.qrToImageData=function(e,r,a){const s=r.modules.size,t=r.modules.data,l=o.getScale(s,a),g=Math.floor((s+a.margin*2)*l),h=a.margin*l,I=[a.color.light,a.color.dark];for(let y=0;y<g;y++)for(let m=0;m<g;m++){let _=(y*g+m)*4,S=a.color.light;if(y>=h&&m>=h&&y<g-h&&m<g-h){const A=Math.floor((y-h)/l),b=Math.floor((m-h)/l);S=I[t[A*s+b]?1:0]}e[_++]=S.r,e[_++]=S.g,e[_++]=S.b,e[_]=S.a}}})(Ft);(function(o){const n=Ft;function i(r,a,s){r.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px"}function e(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}o.render=function(a,s,t){let l=t,g=s;typeof l>"u"&&(!s||!s.getContext)&&(l=s,s=void 0),s||(g=e()),l=n.getOptions(l);const h=n.getImageWidth(a.modules.size,l),I=g.getContext("2d"),y=I.createImageData(h,h);return n.qrToImageData(y.data,a,l),i(I,g,h),I.putImageData(y,0,0),g},o.renderToDataURL=function(a,s,t){let l=t;typeof l>"u"&&(!s||!s.getContext)&&(l=s,s=void 0),l||(l={});const g=o.render(a,s,l),h=l.type||"image/png",I=l.rendererOpts||{};return g.toDataURL(h,I.quality)}})(we);var ye={};const Mn=Ft;function oe(o,n){const i=o.a/255,e=n+'="'+o.hex+'"';return i<1?e+" "+n+'-opacity="'+i.toFixed(2).slice(1)+'"':e}function Et(o,n,i){let e=o+n;return typeof i<"u"&&(e+=" "+i),e}function Fn(o,n,i){let e="",r=0,a=!1,s=0;for(let t=0;t<o.length;t++){const l=Math.floor(t%n),g=Math.floor(t/n);!l&&!a&&(a=!0),o[t]?(s++,t>0&&l>0&&o[t-1]||(e+=a?Et("M",l+i,.5+g+i):Et("m",r,0),r=0,a=!1),l+1<n&&o[t+1]||(e+=Et("h",s),s=0)):r++}return e}ye.render=function(n,i,e){const r=Mn.getOptions(i),a=n.modules.size,s=n.modules.data,t=a+r.margin*2,l=r.color.light.a?"<path "+oe(r.color.light,"fill")+' d="M0 0h'+t+"v"+t+'H0z"/>':"",g="<path "+oe(r.color.dark,"stroke")+' d="'+Fn(s,a,r.margin)+'"/>',h='viewBox="0 0 '+t+" "+t+'"',y='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+h+' shape-rendering="crispEdges">'+l+g+`</svg>
`;return typeof e=="function"&&e(null,y),y};const Rn=je,At=re,be=we,Dn=ye;function Rt(o,n,i,e,r){const a=[].slice.call(arguments,1),s=a.length,t=typeof a[s-1]=="function";if(!t&&!Rn())throw new Error("Callback required as last argument");if(t){if(s<2)throw new Error("Too few arguments provided");s===2?(r=i,i=n,n=e=void 0):s===3&&(n.getContext&&typeof r>"u"?(r=e,e=void 0):(r=e,e=i,i=n,n=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=n,n=e=void 0):s===2&&!n.getContext&&(e=i,i=n,n=void 0),new Promise(function(l,g){try{const h=At.create(i,e);l(o(h,n,e))}catch(h){g(h)}})}try{const l=At.create(i,e);r(null,o(l,n,e))}catch(l){r(l)}}W.create=At.create;W.toCanvas=Rt.bind(null,be.render);W.toDataURL=Rt.bind(null,be.renderToDataURL);W.toString=Rt.bind(null,function(o,n,i){return Dn.render(o,i)});const Ln=o=>(Ye("data-v-1c6a89f2"),o=o(),xe(),o),Un={class:"container"},vn={style:{"text-align":"center"}},kn=["src"],Vn=Ln(()=>G("br",null,null,-1)),$n=["innerHTML"],On={name:"Sat"},Hn=Be({...On,setup(o){const{loading:n,setLoading:i}=Ke(!0),e=Ce(),r=wt(null),a=wt(null),s=wt(null),t=Ie({uuid:"",qrcode:"",visible:!1,showHide:0,status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u536B\u661F\u6570\u636E\u5230\u8BBE\u5907<br/><br/>",sat:"",satData:[],lng:0,lat:0,alt:0,tx:0,rx:0,txTone:0,rxTone:0,CTCSSOption:[67,69.3,71.9,74.4,77,79.7,82.5,85.4,88.5,91.5,94.8,97.4,100,103.5,107.2,110.9,114.8,118.8,123,127.3,131.8,136.5,141.3,146.2,151.4,156.7,159.8,162.2,165.5,167.9,171.3,173.8,177.3,179.9,183.5,186.2,189.9,192.8,196.6,199.5,203.5,206.5,210.7,218.1,225.7,229.1,233.6,241.8,250.3,254.1],pass:void 0,passOption:[],dt:"",timer:void 0,passCustom:void 0,dtCustom:void 0,freqDb:[]});Te(async()=>{try{const c=await(await fetch("https://github.jobcher.com/gh/https://raw.githubusercontent.com/palewire/ham-satellite-database/main/data/amsat-active-frequencies.json")).text();t.freqDb=JSON.parse(c)}catch{}t.lng=parseFloat(localStorage.getItem("myLng")||"0"),t.lat=parseFloat(localStorage.getItem("myLat")||"0"),t.alt=parseFloat(localStorage.getItem("myAlt")||"0"),await r.value.$forceUpdate(),await a.value.$forceUpdate(),await s.value.$forceUpdate(),t.lng=parseFloat(r.value.inputRef.modelValue||"0"),t.lat=parseFloat(a.value.inputRef.modelValue||"0"),t.alt=parseFloat(s.value.inputRef.modelValue||"0"),t.timer=setInterval(()=>{t.dt=new Date().toLocaleString("zh-CN",{timeZone:"Asia/Shanghai"}),localStorage.setItem("myLng",t.lng.toString()),localStorage.setItem("myLat",t.lat.toString()),localStorage.setItem("myAlt",t.alt.toString())},1e3)}),Ae(()=>{try{clearInterval(t.timer)}catch{}});const l=async()=>{if(e.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}i(!0),await yt(e.connectPort),await g(),await te(e.connectPort),i(!1)},g=async()=>{var d;const c=t.dtCustom?new Date(t.dtCustom):new Date,u=[...T(parseInt(c.getFullYear().toString().substring(2,4)).toString(16)),...T((c.getMonth()+1).toString(16)),...T(c.getDate().toString(16)),...T(c.getHours().toString(16)),...T(c.getMinutes().toString(16)),...T(c.getSeconds().toString(16))];await M(e.connectPort,11200,new Uint8Array(u),6,(d=e.configuration)==null?void 0:d.uart)},h=async c=>{const u=t.satData.find(d=>d.name==c);if(u&&u.path){t.status+="<br/>\u536B\u661F\u53C2\u6570\uFF1A<br/>",u.path.map(f=>{t.status+=f+"<br/>"});let d=!1;t.freqDb.map(f=>{u.path[1].split(" ")[1]==f.norad_id&&f.mode.indexOf("FM")!=-1&&(console.log(f),d=!0,t.tx=f.uplink?parseFloat(f.uplink.split("/")[0]):0,t.rx=f.downlink?parseFloat(f.downlink.split("/")[0]):0,t.txTone=parseFloat([0,...t.CTCSSOption].reduce((p,B)=>f.mode.indexOf(B)!=-1?B:p)))}),d||(t.tx=0,t.rx=0,t.txTone=0,t.rxTone=0)}Xt(()=>{const d=document==null?void 0:document.getElementById("statusArea");d&&(d.scrollTop=d==null?void 0:d.scrollHeight)})};(async()=>{i(!0);const u=(await(await fetch("https://celestrak.org/NORAD/elements/amateur.txt")).text()).split(/\r?\n/),d=[];let f={};for(let p=0;p<u.length;p++)Number.isNaN(parseInt(u[p].substring(0,1)))?(f.name&&f.name!=""&&(d.push(f),f={}),f.name=u[p]):(f.path||(f.path=[]),f.path.push(u[p]));t.satData=d,i(!1)})();const y=async()=>{i(!0),navigator.geolocation.getCurrentPosition(c=>{c.coords&&(t.lat=c.coords.latitude,t.lng=c.coords.longitude,c.coords.altitude&&(t.alt=c.coords.altitude))}),i(!1)};y();const m=async()=>{t.visible=!0,t.uuid=crypto.randomUUID(),t.qrcode=await W.toDataURL(location.origin+"/#/satloc?uuid="+t.uuid,{width:250}),console.log(t.uuid)},_=async()=>{const c=await(await fetch("https://k5.vicicode.cn/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:1,uuid:t.uuid})})).json(),u=JSON.parse(c.cache);u.length>=3&&(t.lng=u[0],t.lat=u[1],t.alt=u[2])},S=async(c=0,u)=>{var d;await yt(e.connectPort);for(let f=c;f<u.length+c;f+=128)await M(e.connectPort,f,u.slice(f-c,f-c+128),128,(d=e.configuration)==null?void 0:d.uart),t.status=t.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((f-c)/u.length*100).toFixed(1)+"%<br/>",Xt(()=>{const p=document==null?void 0:document.getElementById("statusArea");p&&(p.scrollTop=p==null?void 0:p.scrollHeight)});t.status=t.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>"},A=async()=>{if(!t.sat){alert("\u8BF7\u9009\u62E9\u536B\u661F\uFF01");return}i(!0);const c=await(await fetch("https://k5.vicicode.cn/api/pass",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({sat:t.sat,sat_line_1:t.satData.find(d=>d.name==t.sat).path[0],sat_line_2:t.satData.find(d=>d.name==t.sat).path[1],lat:t.lat,lng:t.lng,alt:t.alt})})).json(),u=[];for(let d=0;d<c.pass_times.length;d++)try{let f;Date.parse(c.departure_times[d])-Date.parse(c.pass_times[d])>0?f=[c.pass_times[d],c.departure_times[d]]:f=[c.pass_times[d],c.departure_times[d+1]],u.push(f)}catch{}u.length>0?t.pass=u[0][0]+"|"+u[0][1]:t.pass=void 0,t.passOption=u,i(!1)},b=async()=>{var w,Dt,Lt,Ut,vt,kt,Vt,$t,Ot,Ht,zt,Yt,xt,Jt,Kt,jt,qt,Gt;if(e.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((w=e.configuration)==null?void 0:w.sat)!=!0){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(!t.sat){alert("\u8BF7\u9009\u62E9\u536B\u661F\uFF01");return}if(t.passCustom&&(t.pass=t.passCustom[0]+"|"+t.passCustom[1]),!t.pass){alert("\u8BF7\u9009\u62E9\u8FC7\u5883\u65F6\u95F4\uFF01");return}i(!0);const c=await(await fetch("https://k5.vicicode.cn/api/doppler",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({sat:t.sat,sat_line_1:t.satData.find(Y=>Y.name==t.sat).path[0],sat_line_2:t.satData.find(Y=>Y.name==t.sat).path[1],lat:t.lat,lng:t.lng,alt:t.alt,tx:t.tx,rx:t.rx,pass_time:t.pass.split("|")[0],departure_time:t.pass.split("|")[1]})})).json(),u=t.sat,d=t.pass.split("|")[0],f=d.split("-")[0].substring(2,4),p=d.split("-")[1],B=d.split("-")[2].split(" ")[0],D=d.split(" ")[1].split(":")[0],F=d.split(" ")[1].split(":")[1],R=d.split(" ")[1].split(":")[2],P=t.pass.split("|")[1],V=P.split("-")[0].substring(2,4),U=P.split("-")[1],gt=P.split("-")[2].split(" ")[0],ht=P.split(" ")[1].split(":")[0],pt=P.split(" ")[1].split(":")[1],mt=P.split(" ")[1].split(":")[2];await yt(e.connectPort);let N=new Uint8Array(10);N.set(Je(u.trim()).subarray(0,9)),await M(e.connectPort,11168,N,10,(Dt=e.configuration)==null?void 0:Dt.uart),await M(e.connectPort,11178,T(parseInt(f).toString(16)).subarray(0,1),1,(Lt=e.configuration)==null?void 0:Lt.uart),await M(e.connectPort,11179,T(parseInt(p).toString(16)).subarray(0,1),1,(Ut=e.configuration)==null?void 0:Ut.uart),await M(e.connectPort,11180,T(parseInt(B).toString(16)).subarray(0,1),1,(vt=e.configuration)==null?void 0:vt.uart),await M(e.connectPort,11181,T(parseInt(D).toString(16)).subarray(0,1),1,(kt=e.configuration)==null?void 0:kt.uart),await M(e.connectPort,11182,T(parseInt(F).toString(16)).subarray(0,1),1,(Vt=e.configuration)==null?void 0:Vt.uart),await M(e.connectPort,11183,T(parseInt(R).toString(16)).subarray(0,1),1,($t=e.configuration)==null?void 0:$t.uart),await M(e.connectPort,11184,T(parseInt(V).toString(16)).subarray(0,1),1,(Ot=e.configuration)==null?void 0:Ot.uart),await M(e.connectPort,11185,T(parseInt(U).toString(16)).subarray(0,1),1,(Ht=e.configuration)==null?void 0:Ht.uart),await M(e.connectPort,11186,T(parseInt(gt).toString(16)).subarray(0,1),1,(zt=e.configuration)==null?void 0:zt.uart),await M(e.connectPort,11187,T(parseInt(ht).toString(16)).subarray(0,1),1,(Yt=e.configuration)==null?void 0:Yt.uart),await M(e.connectPort,11188,T(parseInt(pt).toString(16)).subarray(0,1),1,(xt=e.configuration)==null?void 0:xt.uart),await M(e.connectPort,11189,T(parseInt(mt).toString(16)).subarray(0,1),1,(Jt=e.configuration)==null?void 0:Jt.uart),N=new Uint8Array(2),N.set(T(((Date.parse(P)-Date.parse(d))/1e3).toString(16)).subarray(0,2)),await M(e.connectPort,11190,N,2,(Kt=e.configuration)==null?void 0:Kt.uart),N=new Uint8Array(2),t.txTone&&t.txTone>0&&N.set(T(parseInt((t.txTone*10).toFixed(0)).toString(16)).subarray(0,2)),await M(e.connectPort,11192,N,2,(jt=e.configuration)==null?void 0:jt.uart),N=new Uint8Array(2),t.rxTone&&t.rxTone>0&&N.set(T(parseInt((t.rxTone*10).toFixed(0)).toString(16)).subarray(0,2)),await M(e.connectPort,11194,N,2,(qt=e.configuration)==null?void 0:qt.uart),N=new Uint8Array(4),N.set(T(((Date.parse(d)-Date.parse("2000-01-01 00:00:00"))/1e3).toString(16)).subarray(0,4)),await M(e.connectPort,11196,N,4,(Gt=e.configuration)==null?void 0:Gt.uart);const tt=[];c.shift_array.filter((Y,et)=>et%2===0).map(Y=>{const et=new Uint8Array(4),Qt=new Uint8Array(4);et.set(T(parseInt(((t.tx*1e6+Y[0])/10).toFixed(0)).toString(16))),Qt.set(T(parseInt(((t.rx*1e6+Y[1])/10).toFixed(0)).toString(16))),tt.push(...et,...Qt)}),N=new Uint8Array(7680),N.set(new Uint8Array(tt).subarray(0,7680)),await S(123392,N),await g(),await te(e.connectPort),i(!1)};return(c,u)=>{const d=Le,f=_e,p=Ue,B=Pe,D=Se,F=ve,R=Ne,P=Me,V=ke,U=Ve,gt=$e,ht=Oe,pt=Fe,mt=Re,N=He,tt=ze;return O(),q("div",Un,[C(d,{visible:t.visible,"onUpdate:visible":u[0]||(u[0]=w=>t.visible=w),onOk:_,"ok-text":c.$t("tool.scaned")},{title:E(()=>[L(v(c.$t("tool.scanqr")),1)]),default:E(()=>[G("div",vn,[G("img",{src:t.qrcode},null,8,kn),Vn,L(" "+v(c.$t("tool.scannotice")),1)])]),_:1},8,["visible","ok-text"]),C(f,{items:[c.$t("menu.list"),c.$t("menu.satellite")]},null,8,["items"]),C(tt,{gutter:20,align:"stretch"},{default:E(()=>[C(N,{span:24},{default:E(()=>[C(mt,{class:"general-card",title:c.$t("menu.satellite")+c.$t("global.onStart")},{default:E(()=>[C(pt,{loading:De(n),style:{width:"100%"},tip:"\u6B63\u5728\u5904\u7406 ..."},{default:E(()=>[C(p,{"label-col-style":{width:"25%"},field:"dt",label:c.$t("tool.brtime"),onClick:u[1]||(u[1]=()=>{t.showHide+=1})},{default:E(()=>[L(v(t.dt),1)]),_:1},8,["label"]),Zt(C(p,{"label-col-style":{width:"25%"},field:"dtCustom",label:"\u81EA\u5B9A\u4E49\u65F6\u95F4"},{default:E(()=>[G("div",null,[C(B,{style:{width:"220px",margin:"0 24px 24px 0"},"show-time":"","time-picker-props":{defaultValue:"00:00:00"},format:"YYYY-MM-DD HH:mm:ss",modelValue:t.dtCustom,"onUpdate:modelValue":u[2]||(u[2]=w=>t.dtCustom=w)},null,8,["modelValue"]),L(" \xA0\xA0"),C(D,{size:"small",theme:"success",onClick:l},{default:E(()=>[L("\u5199\u5165\u65F6\u95F4\u5230\u53F0\u7AD9")]),_:1})])]),_:1},512),[[Wt,t.showHide>=5]]),C(p,{"label-col-style":{width:"25%"},field:"sat",label:c.$t("tool.selectSatellite")},{default:E(()=>[C(R,{modelValue:t.sat,"onUpdate:modelValue":u[3]||(u[3]=w=>t.sat=w),onChange:h,placeholder:c.$t("tool.selectSatellite")+"...","allow-search":"","allow-clear":""},{default:E(()=>[(O(!0),q(nt,null,ot(t.satData,w=>(O(),rt(F,{key:w.name,value:w.name},{default:E(()=>[L(v(w.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),C(p,{"label-col-style":{width:"25%"},field:"lng",label:c.$t("tool.longitude")},{default:E(()=>[C(P,{ref_key:"lngRef",ref:r,precision:6,modelValue:t.lng,"onUpdate:modelValue":u[4]||(u[4]=w=>t.lng=w)},null,8,["modelValue"])]),_:1},8,["label"]),C(p,{"label-col-style":{width:"25%"},field:"lat",label:c.$t("tool.latitude")},{default:E(()=>[C(P,{ref_key:"latRef",ref:a,precision:6,modelValue:t.lat,"onUpdate:modelValue":u[5]||(u[5]=w=>t.lat=w)},null,8,["modelValue"])]),_:1},8,["label"]),C(p,{"label-col-style":{width:"25%"},field:"alt",label:c.$t("tool.altitude")},{default:E(()=>[C(P,{ref_key:"altRef",ref:s,precision:0,modelValue:t.alt,"onUpdate:modelValue":u[6]||(u[6]=w=>t.alt=w)},null,8,["modelValue"])]),_:1},8,["label"]),C(p,{"label-col-style":{width:"25%"},label:""},{default:E(()=>[C(U,null,{default:E(()=>[C(V,{onClick:y},{default:E(()=>[L(v(c.$t("tool.brlonlat")),1)]),_:1}),C(V,{onClick:m},{default:E(()=>[L(v(c.$t("tool.phonelonlat")),1)]),_:1}),C(V,{type:"primary",onClick:A},{default:E(()=>[L(v(c.$t("tool.satpasstime")),1)]),_:1})]),_:1})]),_:1}),C(p,{"label-col-style":{width:"25%"},field:"pass",label:c.$t("tool.selectPassTime")},{default:E(()=>[C(R,{modelValue:t.pass,"onUpdate:modelValue":u[7]||(u[7]=w=>t.pass=w),"allow-search":"","allow-clear":""},{default:E(()=>[(O(!0),q(nt,null,ot(t.passOption,w=>(O(),rt(F,{key:w[0]+"|"+w[1],value:w[0]+"|"+w[1]},{default:E(()=>[L(v(w[0]+" - "+w[1]),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),Zt(C(p,{"label-col-style":{width:"25%"},field:"passCustom",label:"\u81EA\u5B9A\u4E49\u8FC7\u5883\u65F6\u95F4"},{default:E(()=>[C(gt,{style:{width:"360px",margin:"0 24px 24px 0"},"show-time":"","time-picker-props":{defaultValue:["00:00:00","00:00:00"]},format:"YYYY-MM-DD HH:mm:ss",modelValue:t.passCustom,"onUpdate:modelValue":u[8]||(u[8]=w=>t.passCustom=w)},null,8,["modelValue"])]),_:1},512),[[Wt,t.showHide>=5]]),C(p,{"label-col-style":{width:"25%"},field:"tx",label:c.$t("tool.txFreq")},{default:E(()=>[C(P,{precision:5,modelValue:t.tx,"onUpdate:modelValue":u[9]||(u[9]=w=>t.tx=w)},null,8,["modelValue"])]),_:1},8,["label"]),C(p,{"label-col-style":{width:"25%"},field:"txTone",label:c.$t("tool.txTone")},{default:E(()=>[C(R,{modelValue:t.txTone,"onUpdate:modelValue":u[10]||(u[10]=w=>t.txTone=w),"allow-search":"","allow-clear":""},{default:E(()=>[C(F,{value:0},{default:E(()=>[L(v(c.$t("tool.off")),1)]),_:1}),(O(!0),q(nt,null,ot(t.CTCSSOption,w=>(O(),rt(F,{key:w,value:w},{default:E(()=>[L(v(w.toFixed(1)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),C(p,{"label-col-style":{width:"25%"},field:"rx",label:c.$t("tool.rxFreq")},{default:E(()=>[C(P,{precision:5,modelValue:t.rx,"onUpdate:modelValue":u[11]||(u[11]=w=>t.rx=w)},null,8,["modelValue"])]),_:1},8,["label"]),C(p,{"label-col-style":{width:"25%"},field:"rxTone",label:c.$t("tool.rxTone")},{default:E(()=>[C(R,{modelValue:t.rxTone,"onUpdate:modelValue":u[12]||(u[12]=w=>t.rxTone=w),"allow-search":"","allow-clear":""},{default:E(()=>[C(F,{value:0},{default:E(()=>[L(v(c.$t("tool.off")),1)]),_:1}),(O(!0),q(nt,null,ot(t.CTCSSOption,w=>(O(),rt(F,{key:w,value:w},{default:E(()=>[L(v(w.toFixed(1)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),C(p,{"label-col-style":{width:"25%"},label:""},{default:E(()=>[C(V,{type:"primary",onClick:b},{default:E(()=>[L(v(c.$t("tool.writeData")),1)]),_:1})]),_:1}),C(ht),G("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:t.status},null,8,$n)]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const ro=Ee(Hn,[["__scopeId","data-v-1c6a89f2"]]);export{ro as default};