import{masme,akaswe,_asye}from"./index.47cc52b7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{dasbe,rasCe,oas_e,btasEe,bZasSe,bVasBe,aWasAe,bPasTe,bIasIe,Cas$,Dasq,aIasC,aHasE,aMasD,aNasL,G,uasPe,bgasjt,bhasqt,aKasnt,aJasot,aEasrt,nasGt,b3asNe,bcasMe,bYasFe,a$asDe,baasRe,b_asUe,bGasLe,bJasve,bLaske,beasVe,bfas$e}from"./arco.7f845a67.js";import{easht,gasQt,hasP,basM,sasxe}from"./serial.c741fbda.js";import{uasOe}from"./loading.1a4e75f4.js";import{BasHe}from"./index.eef8177f.js";import"./chart.95d38b48.js";import"./vue.0bef8fc5.js";import"./useConfig.f13885be.js";import"./index.3d356d43.js";import"./helper.75ef320f.js";import"./useDisabled.9eec8784.js";varW={},ze=function(){returntypeofPromise=="function"&&Promise.prototype&&Promise.prototype.then},te={},v={};letBt;constJe=[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];v.getSymbolSize=function(n){if(!n)thrownewError('"version" cannot be null or undefined');if(n<1||n>40)thrownewError('"version" should be in range from 1 to 40');returnn*4+17};v.getSymbolTotalCodewords=function(n){returnJe[n]};v.getBCHDigit=function(o){letn=0;for(;o!==0;)n++,o>>>=1;returnn};v.setToSJISFunction=function(n){if(typeofn!="function")thrownewError('"toSJISFunc" is not a valid function.');Bt=n};v.isKanjiModeEnabled=function(){returntypeofBt<"u"};v.toSJIS=function(n){returnBt(n)};varut={};(function(o){o.L={bit:1},o.M={bit:0},o.Q={bit:3},o.H={bit:2};functionn(i){if(typeofi!="string")thrownewError("Param is not a string");switch(i.toLowerCase()){case"l":case"low":returno.L;case"m":case"medium":returno.M;case"q":case"quartile":returno.Q;case"h":case"high":returno.H;default:thrownewError("Unknown EC Level: "+i)}}o.isValid=function(e){returne&&typeofe.bit<"u"&&e.bit>=0&&e.bit<4},o.from=function(e,t){if(o.isValid(e))returne;try{returnn(e)}catch{returnt}}})(ut);functionee(){this.buffer=[],this.length=0}ee.prototype={get:function(o){constn=Math.floor(o/8);return(this.buffer[n]>>>7-o%8&1)===1},put:function(o,n){for(leti=0;i<n;i++)this.putBit((o>>>n-i-1&1)===1)},getLengthInBits:function(){returnthis.length},putBit:function(o){constn=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),o&&(this.buffer[n]|=128>>>this.length%8),this.length++}};varYe=ee;functionX(o){if(!o||o<1)thrownewError("BitMatrix size must be defined and greater than 0");this.size=o,this.data=newUint8Array(o*o),this.reservedBit=newUint8Array(o*o)}X.prototype.set=function(o,n,i,e){constt=o*this.size+n;this.data[t]=i,e&&(this.reservedBit[t]=!0)};X.prototype.get=function(o,n){returnthis.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){returnthis.reservedBit[o*this.size+n]};varKe=X,ne={};(function(o){constn=v.getSymbolSize;o.getRowColCoords=function(e){if(e===1)return[];constt=Math.floor(e/7)+2,r=n(e),a=r===145?26:Math.ceil((r-13)/(2*t-2))*2,l=[r-7];for(lets=1;s<t-1;s++)l[s]=l[s-1]-a;returnl.push(6),l.reverse()},o.getPositions=function(e){constt=[],r=o.getRowColCoords(e),a=r.length;for(letl=0;l<a;l++)for(lets=0;s<a;s++)l===0&&s===0||l===0&&s===a-1||l===a-1&&s===0||t.push([r[l],r[s]]);returnt}})(ne);varoe={};constje=v.getSymbolSize,Zt=7;oe.getPositions=function(n){consti=je(n);return[[0,0],[i-Zt,0],[0,i-Zt]]};varre={};(function(o){o.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};constn={N1:3,N2:3,N3:40,N4:10};o.isValid=function(t){returnt!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},o.from=function(t){returno.isValid(t)?parseInt(t,10):void0},o.getPenaltyN1=function(t){const
]))+`;k.KANJI=new RegExp(Z,"g");k.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");k.BYTE=new RegExp(Qe,"g");k.NUMERIC=new RegExp(le,"g");k.ALPHANUMERIC=new RegExp(Ge,"g");const Ze=new RegExp("^"+Z+"$"),We=new RegExp("^"+le+"$"),Xe=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");k.testKanji=function(n){return Ze.test(n)};k.testNumeric=function(n){return We.test(n)};k.testAlphanumeric=function(n){return Xe.test(n)};(function(o){const n=Tt,i=k;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(r,a){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!n.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?r.ccBits[0]:a<27?r.ccBits[1]:r.ccBits[2]},o.getBestModeForData=function(r){return i.testNumeric(r)?o.NUMERIC:i.testAlphanumeric(r)?o.ALPHANUMERIC:i.testKanji(r)?o.KANJI:o.BYTE},o.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},o.isValid=function(r){return r&&r.bit&&r.ccBits};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.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: "+t)}}o.from=function(r,a){if(o.isValid(r))return r;try{return e(r)}catch{return a}}})(O);(function(o){const n=v,i=ct,e=ut,t=O,r=Tt,a=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,l=n.getBCHDigit(a);function s(b,w,_){for(let u=1;u<=40;u++)if(w<=o.getCapacity(u,_,b))return u}function h(b,w){return t.getCharCountIndicator(b,w)+4}function p(b,w){let _=0;return b.forEach(function(u){const f=h(u.mode,w);_+=f+u.getBitsLength()}),_}function A(b,w){for(let _=1;_<=40;_++)if(p(b,_)<=o.getCapacity(_,w,t.MIXED))return _}o.from=function(w,_){return r.isValid(w)?parseInt(w,10):_},o.getCapacity=function(w,_,u){if(!r.isValid(w))throw new Error("Invalid QR Code version");typeof u>"u"&&(u=t.BYTE);const f=n.getSymbolTotalCodewords(w),c=i.getTotalCodewordsCount(w,_),g=(f-c)*8;if(u===t.MIXED)return g;const d=g-h(u,w);switch(u){case t.NUMERIC:return Math.floor(d/10*3);case t.ALPHANUMERIC:return Math.floor(d/11*2);case t.KANJI:return Math.floor(d/13);case t.BYTE:default:return Math.floor(d/8)}},o.getBestVersionForData=function(w,_){let u;const f=e.from(_,e.M);if(Array.isArray(w)){if(w.length>1)return A(w,f);if(w.length===0)return 1;u=w[0]}else u=w;return s(u.mode,u.getLength(),f)},o.getEncodedBits=function(w){if(!r.isValid(w)||w<7)throw new Error("Invalid QR Code version");let _=w<<12;for(;n.getBCHDigit(_)-l>=0;)_^=a<<n.getBCHDigit(_)-l;return w<<12|_}})(se);var ue={};const Ct=v,ce=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,tn=1<<14|1<<12|1<<10|1<<4|1<<1,Wt=Ct.getBCHDigit(ce);ue.getEncodedBits=function(n,i){const e=n.bit<<3|i;let t=e<<10;for(;Ct.getBCHDigit(t)-Wt>=0;)t^=ce<<Ct.getBCHDigit(t)-Wt;return(e<<10|t)^tn};var de={};const en=O;function J(o){this.mode=en.NUMERIC,this.data=o.toString()}J.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};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,e,t;for(i=0;i+3<=this.data.length;i+=3)e=this.data.substr(i,3),t=parseInt(e,10),n.put(t,10);const r=this.data.length-i;r>0&&(e=this.data.substr(i),t=parseInt(e,10),n.put(t,r*3+1))};var nn=J;const on=O,pt=["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 Y(o){this.mode=on.ALPHANUMERIC,this.data=o}Y.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};Y.prototype.getLength=function(){return this.data.length};Y.prototype.getBitsLength=function(){return Y.getBitsLength(this.data.length)};Y.prototype.write=function(n){let i;for(i=0;i+2<=this.data.length;i+=2){let e=pt.indexOf(this.data[i])*45;e+=pt.indexOf(this.data[i+1]),
MakesureyourcharsetisUTF-8`);i=(i>>>8&255)*192+(i&255),o.put(i,13)}};var fn=j,fe={exports:{}};(function(o){var n={single_source_shortest_paths:function(i,e,t){var r={},a={};a[e]=0;var l=n.PriorityQueue.make();l.push(e,0);for(var s,h,p,A,b,w,_,u,f;!l.empty();){s=l.pop(),h=s.value,A=s.cost,b=i[h]||{};for(p in b)b.hasOwnProperty(p)&&(w=b[p],_=A+w,u=a[p],f=typeof a[p]>"u",(f||u>_)&&(a[p]=_,l.push(p,_),r[p]=h))}if(typeof t<"u"&&typeof a[t]>"u"){var c=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(c)}return r},extract_shortest_path_from_predecessor_list:function(i,e){for(var t=[],r=e;r;)t.push(r),i[r],r=i[r];return t.reverse(),t},find_path:function(i,e,t){var r=n.single_source_shortest_paths(i,e,t);return n.extract_shortest_path_from_predecessor_list(r,t)},PriorityQueue:{make:function(i){var e=n.PriorityQueue,t={},r;i=i||{};for(r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t.queue=[],t.sorter=i.sorter||e.default_sorter,t},default_sorter:function(i,e){return i.cost-e.cost},push:function(i,e){var t={value:i,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};o.exports=n})(fe);(function(o){const n=O,i=nn,e=rn,t=un,r=fn,a=k,l=v,s=fe.exports;function h(c){return unescape(encodeURIComponent(c)).length}function p(c,g,d){const m=[];let B;for(;(B=c.exec(d))!==null;)m.push({data:B[0],index:B.index,mode:g,length:B[0].length});return m}function A(c){const g=p(a.NUMERIC,n.NUMERIC,c),d=p(a.ALPHANUMERIC,n.ALPHANUMERIC,c);let m,B;return l.isKanjiModeEnabled()?(m=p(a.BYTE,n.BYTE,c),B=p(a.KANJI,n.KANJI,c)):(m=p(a.BYTE_KANJI,n.BYTE,c),B=[]),g.concat(d,m,B).sort(function(T,I){return T.index-I.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function b(c,g){switch(g){case n.NUMERIC:return i.getBitsLength(c);case n.ALPHANUMERIC:return e.getBitsLength(c);case n.KANJI:return r.getBitsLength(c);case n.BYTE:return t.getBitsLength(c)}}function w(c){return c.reduce(function(g,d){const m=g.length-1>=0?g[g.length-1]:null;return m&&m.mode===d.mode?(g[g.length-1].data+=d.data,g):(g.push(d),g)},[])}function _(c){const g=[];for(let d=0;d<c.length;d++){const m=c[d];switch(m.mode){case n.NUMERIC:g.push([m,{data:m.data,mode:n.ALPHANUMERIC,length:m.length},{data:m.data,mode:n.BYTE,length:m.length}]);break;case n.ALPHANUMERIC:g.push([m,{data:m.data,mode:n.BYTE,length:m.length}]);break;case n.KANJI:g.push([m,{data:m.data,mode:n.BYTE,length:h(m.data)}]);break;case n.BYTE:g.push([{data:m.data,mode:n.BYTE,length:h(m.data)}])}}return g}function u(c,g){const d={},m={start:{}};let B=["start"];for(let S=0;S<c.length;S++){const T=c[S],I=[];for(let F=0;F<T.length;F++){const R=T[F],V=""+S+F;I.push(V),d[V]={node:R,lastCount:0},m[V]={};for(let H=0;H<B.length;H++){const U=B[H];d[U]&&d[U].node.mode===R.mode?(m[U][V]=b(d[U].lastCount+R.length,R.mode)-b(d[U].lastCount,R.mode),d[U].lastCount+=R.length):(d[U]&&(d[U].lastCount=R.length),m[U][V]=b(R.length,R.mode)+4+n.getCharCountIndicator(R.mode,g))}}B=I}for(let S=0;S<B.length;S++)m[B[S]].end=0;return{map:m,table:d}}function f(c,g){let d;const m=n.getBestModeForData(c);if(d=n.from(g,m),d!==n.BYTE&&d.bit<m.bit)throw new Error('"'+c+'" cannot be encoded with mode '+n.toString(d)+`.
Suggestedmodeis:`+n.toString(m));switch(d===n.KANJI&&!l.isKanjiModeEnabled()&&(d=n.BYTE),d){case n.NUMERIC:return new i(c);case n.ALPHANUMERIC:return new e(c);case n.KANJI:return new r(c);case n.BYTE:return new t(c)}}o.fromArray=function(g){return g.reduce(function(d,m){return typeof m=="string"?d.push(f(m,null)):m.data&&d.push(f(m.data,m.mode)),d},[])},o.fromString=function(g,d){const m=A(g,l.isKanjiModeEnabled()),B=_(m),S=u(B,d),T=s.find_path(S.map,"start","end"),I=[];for(let F=1;F<T.length-1;F++)I.push(S.table[T[F]].node);return o.fromArray(w(I))},o.rawSplit=function(g){return o.fromArray(A(g,l.isKanjiModeEnabled()))}})(de);const ft=v,mt=ut,gn=Ye,hn=Ke,pn=ne,mn=oe,_t=re,Et=ct,wn=qe,lt=se,yn=ue,bn=O,wt=de;function Cn(o,n){const i=o.size,e=mn.getPositions(n);for(let t=0;t<e.length;t++){const r=e[t][0],a=e[t][1];for(let l=-1;l<=7;l++)if(!(r+l<=-1||i<=r+l))for(let s=-1;s<=7;s++)a+s<=-1||i<=a+s||(l>=0&&l<=6&&(s===0||s===6)||s>=0&&s<=6&&(l===0||l===6)||l>=2&&l<=4&&s>=2&&s<=4?o.set(r+l,a+s,!0,!0):o.set(r+l,a+s,!1,!0))}}function _n(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 En(o,n){const i=pn.getPositions(n);for(let e=0;e<i.length;e++){const t=i[e][0],r=i[e][1];for(let a=-2;a<=2;a++)for(let l=-2;l<=2;l++)a===-2||a===2||l===-2||l===2||a===0&&l===0?o.set(t+a,r+l,!0,!0):o.set(t+a,r+l,!1,!0)}}function Sn(o,n){const i=o.size,e=lt.getEncodedBits(n);let t,r,a;for(let l=0;l<18;l++)t=Math.floor(l/3),r=l%3+i-8-3,a=(e>>l&1)===1,o.set(t,r,a,!0),o.set(r,t,a,!0)}function yt(o,n,i){const e=o.size,t=yn.getEncodedBits(n,i);let r,a;for(r=0;r<15;r++)a=(t>>r&1)===1,r<6?o.set(r,8,a,!0):r<8?o.set(r+1,8,a,!0):o.set(e-15+r,8,a,!0),r<8?o.set(8,e-r-1,a,!0):r<9?o.set(8,15-r-1+1,a,!0):o.set(8,15-r-1,a,!0);o.set(e-8,8,1,!0)}function Bn(o,n){const i=o.size;let e=-1,t=i-1,r=7,a=0;for(let l=i-1;l>0;l-=2)for(l===6&&l--;;){for(let s=0;s<2;s++)if(!o.isReserved(t,l-s)){let h=!1;a<n.length&&(h=(n[a]>>>r&1)===1),o.set(t,l-s,h),r--,r===-1&&(a++,r=7)}if(t+=e,t<0||i<=t){t-=e,e=-e;break}}}function An(o,n,i){const e=new gn;i.forEach(function(s){e.put(s.mode.bit,4),e.put(s.getLength(),bn.getCharCountIndicator(s.mode,o)),s.write(e)});const t=ft.getSymbolTotalCodewords(o),r=Et.getTotalCodewordsCount(o,n),a=(t-r)*8;for(e.getLengthInBits()+4<=a&&e.put(0,4);e.getLengthInBits()%8!==0;)e.putBit(0);const l=(a-e.getLengthInBits())/8;for(let s=0;s<l;s++)e.put(s%2?17:236,8);return Tn(e,o,n)}function Tn(o,n,i){const e=ft.getSymbolTotalCodewords(n),t=Et.getTotalCodewordsCount(n,i),r=e-t,a=Et.getBlocksCount(n,i),l=e%a,s=a-l,h=Math.floor(e/a),p=Math.floor(r/a),A=p+1,b=h-p,w=new wn(b);let _=0;const u=new Array(a),f=new Array(a);let c=0;const g=new Uint8Array(o.buffer);for(let T=0;T<a;T++){const I=T<s?p:A;u[T]=g.slice(_,_+I),f[T]=w.encode(u[T]),_+=I,c=Math.max(c,I)}const d=new Uint8Array(e);let m=0,B,S;for(B=0;B<c;B++)for(S=0;S<a;S++)B<u[S].length&&(d[m++]=u[S][B]);for(B=0;B<b;B++)for(S=0;S<a;S++)d[m++]=f[S][B];return d}function In(o,n,i,e){let t;if(Array.isArray(o))t=wt.fromArray(o);else if(typeof o=="string"){let h=n;if(!h){const p=wt.rawSplit(o);h=lt.getBestVersionForData(p,i)}t=wt.fromString(o,h||40)}else throw new Error("Invalid data");const r=lt.getBestVersionForData(t,i);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(!n)n=r;else if(n<r)throw new Error(`