homebridge-config-ui-x 4.63.0 → 5.0.0-beta.1
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/CHANGELOG.md +46 -5
- package/config.schema.json +1 -0
- package/dist/bin/hb-service.js +1 -7
- package/dist/bin/hb-service.js.map +1 -1
- package/dist/bin/platforms/darwin.js +23 -35
- package/dist/bin/platforms/darwin.js.map +1 -1
- package/dist/bin/platforms/linux.js +20 -34
- package/dist/bin/platforms/linux.js.map +1 -1
- package/dist/core/auth/auth.controller.d.ts +0 -1
- package/dist/core/config/config.service.d.ts +0 -2
- package/dist/core/config/config.service.js +0 -2
- package/dist/core/config/config.service.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +9 -10
- package/dist/modules/plugins/plugins.service.js +71 -46
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/status/status.gateway.d.ts +2 -5
- package/dist/modules/status/status.gateway.js +2 -28
- package/dist/modules/status/status.gateway.js.map +1 -1
- package/dist/modules/status/status.service.d.ts +1 -0
- package/dist/modules/status/status.service.js +5 -7
- package/dist/modules/status/status.service.js.map +1 -1
- package/dist/self-check.js +4 -12
- package/dist/self-check.js.map +1 -1
- package/package.json +4 -9
- package/public/chunk-3KSUXL3K.js +20 -0
- package/public/{chunk-SXAWP4QF.js → chunk-422JXES4.js} +1 -1
- package/public/{chunk-VDTNNTX2.js → chunk-4R6MSI5I.js} +1 -1
- package/public/{chunk-4VTTWHHL.js → chunk-5UYN5OWH.js} +1 -1
- package/public/{chunk-AU5G3BVJ.js → chunk-6QEO3BTW.js} +1 -1
- package/public/{chunk-FHXSXVSD.js → chunk-7564WJJL.js} +1 -1
- package/public/{chunk-MD2LKTX2.js → chunk-7R6JSPNH.js} +1 -1
- package/public/{chunk-GCBIN3BZ.js → chunk-B6C32ZRK.js} +1 -1
- package/public/{chunk-MYOOAGZ7.js → chunk-B6G7GTDI.js} +1 -1
- package/public/{chunk-A7KY6MAW.js → chunk-BQLALGZ5.js} +1 -1
- package/public/{chunk-TLJQR7GW.js → chunk-BROUJ7PT.js} +1 -1
- package/public/{chunk-4OEIPK6B.js → chunk-C4OONTE3.js} +1 -1
- package/public/{chunk-HWMIXXWR.js → chunk-DOLYKWZH.js} +1 -1
- package/public/{chunk-H3ASY46R.js → chunk-DRWF7R4E.js} +1 -1
- package/public/{chunk-YCUV4ZTO.js → chunk-F22FMU37.js} +1 -1
- package/public/{chunk-753ABYT7.js → chunk-FBP5C7VG.js} +1 -1
- package/public/{chunk-W75IQVVC.js → chunk-FPOZAQLC.js} +1 -1
- package/public/{chunk-7QKEKEAJ.js → chunk-GNQUXZMN.js} +1 -1
- package/public/chunk-IGUSDGD6.js +8 -0
- package/public/{chunk-K343FEZX.js → chunk-JM7QCDMZ.js} +1 -1
- package/public/{chunk-7T2EEIVD.js → chunk-K3YXRBTH.js} +1 -1
- package/public/{chunk-NG7QY7UH.js → chunk-K6TZNXIW.js} +1 -1
- package/public/{chunk-BQVZQ5VX.js → chunk-LS7T2AVU.js} +1 -1
- package/public/{chunk-7MWYYMRO.js → chunk-NZPTOWFC.js} +1 -1
- package/public/{chunk-5ATXV5LK.js → chunk-RID7V4NP.js} +1 -1
- package/public/{chunk-4S2ZV5SB.js → chunk-RIWBPQF3.js} +1 -1
- package/public/chunk-S4SOWUAW.js +1 -0
- package/public/{chunk-H4GRUHC6.js → chunk-SJTXTMYT.js} +1 -1
- package/public/{chunk-GAKIVDIC.js → chunk-T5QVI4H2.js} +1 -1
- package/public/{chunk-6TKWYL3O.js → chunk-TBJQ2Y3M.js} +1 -1
- package/public/{chunk-46QIUWKL.js → chunk-THFLPY67.js} +1 -1
- package/public/{chunk-FQZPJTDM.js → chunk-TS27NWVA.js} +1 -1
- package/public/{chunk-AZLQQM4X.js → chunk-VROGSJLF.js} +1 -1
- package/public/chunk-VVILZWTF.js +1 -0
- package/public/{chunk-L27ILYMM.js → chunk-WCDFKYP6.js} +1 -1
- package/public/{chunk-SXBKAANV.js → chunk-WCQIGCXO.js} +1 -1
- package/public/chunk-Z47RP4BH.js +1 -0
- package/public/{chunk-UFBNFHDQ.js → chunk-ZEONO5N6.js} +1 -1
- package/public/index.html +2 -2
- package/public/main-VTRWQ63R.js +6 -0
- package/public/{styles-KB74XXJT.css → styles-7ETWN6DQ.css} +1 -1
- package/public/chunk-3NQEXKA4.js +0 -8
- package/public/chunk-643PTHKL.js +0 -17
- package/public/chunk-7COUXZR3.js +0 -1
- package/public/chunk-DOXG4MVV.js +0 -1
- package/public/chunk-NVLTF77N.js +0 -1
- package/public/main-OQXSK5YY.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as Bo,a as po,b as Co,c as jD,e as Of,f as mo,h as Eo,i as ho,k as go,m as bo,o as Tf,r as yo,s as T1,t as P1,x as _o,y as k1,z as N1}from"./chunk-
|
|
1
|
+
import{M as Bo,a as po,b as Co,c as jD,e as Of,f as mo,h as Eo,i as ho,k as go,m as bo,o as Tf,r as yo,s as T1,t as P1,x as _o,y as k1,z as N1}from"./chunk-WCDFKYP6.js";import{c as lo,k as co,m as Fo}from"./chunk-S4SOWUAW.js";import{a as ao,b as so}from"./chunk-F22FMU37.js";import{$ as ue,$b as qD,Ca as ND,Fb as io,Ga as V,Ka as Y,La as g,Ma as uu,Na as Af,Oa as T,Qb as gu,R as At,Rb as ve,Ua as O,V as uo,Va as $,W as ff,Wa as j,X as $D,Xa as Do,Ya as ro,Z as OD,Za as Ae,a as k,aa as TD,ab as pe,b as Ee,ba as xf,bb as A,e as c,fb as If,g as du,ga as tf,gb as Sf,h as G,ha as _e,hb as $f,hc as oo,i as cu,ia as Be,jb as fu,k as J0,ka as fo,kb as Df,l as wf,lb as O1,na as ke,o as Q0,oa as to,pa as PD,rb as no,s as Z0,t as Y0,ta as ae,tb as tu,u as X0,wa as x,xa as M,y as eo,yb as rf,za as kD,zb as nf}from"./chunk-IGUSDGD6.js";var wo=c((EN,vo)=>{vo.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var Pu=c(of=>{var q1,cC=[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];of.getSymbolSize=function(u){if(!u)throw new Error('"version" cannot be null or undefined');if(u<1||u>40)throw new Error('"version" should be in range from 1 to 40');return u*4+17};of.getSymbolTotalCodewords=function(u){return cC[u]};of.getBCHDigit=function(e){let u=0;for(;e!==0;)u++,e>>>=1;return u};of.setToSJISFunction=function(u){if(typeof u!="function")throw new Error('"toSJISFunc" is not a valid function.');q1=u};of.isKanjiModeEnabled=function(){return typeof q1<"u"};of.toSJIS=function(u){return q1(u)}});var MD=c(Ge=>{Ge.L={bit:1};Ge.M={bit:0};Ge.Q={bit:3};Ge.H={bit:2};function FC(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return Ge.L;case"m":case"medium":return Ge.M;case"q":case"quartile":return Ge.Q;case"h":case"high":return Ge.H;default:throw new Error("Unknown EC Level: "+e)}}Ge.isValid=function(u){return u&&typeof u.bit<"u"&&u.bit>=0&&u.bit<4};Ge.from=function(u,f){if(Ge.isValid(u))return u;try{return FC(u)}catch{return f}}});var Io=c((bN,Ao)=>{function xo(){this.buffer=[],this.length=0}xo.prototype={get:function(e){let u=Math.floor(e/8);return(this.buffer[u]>>>7-e%8&1)===1},put:function(e,u){for(let f=0;f<u;f++)this.putBit((e>>>u-f-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let u=Math.floor(this.length/8);this.buffer.length<=u&&this.buffer.push(0),e&&(this.buffer[u]|=128>>>this.length%8),this.length++}};Ao.exports=xo});var $o=c((yN,So)=>{function It(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}It.prototype.set=function(e,u,f,t){let D=e*this.size+u;this.data[D]=f,t&&(this.reservedBit[D]=!0)};It.prototype.get=function(e,u){return this.data[e*this.size+u]};It.prototype.xor=function(e,u,f){this.data[e*this.size+u]^=f};It.prototype.isReserved=function(e,u){return this.reservedBit[e*this.size+u]};So.exports=It});var Oo=c(RD=>{var pC=Pu().getSymbolSize;RD.getRowColCoords=function(u){if(u===1)return[];let f=Math.floor(u/7)+2,t=pC(u),D=t===145?26:Math.ceil((t-13)/(2*f-2))*2,r=[t-7];for(let n=1;n<f-1;n++)r[n]=r[n-1]-D;return r.push(6),r.reverse()};RD.getPositions=function(u){let f=[],t=RD.getRowColCoords(u),D=t.length;for(let r=0;r<D;r++)for(let n=0;n<D;n++)r===0&&n===0||r===0&&n===D-1||r===D-1&&n===0||f.push([t[r],t[n]]);return f}});var ko=c(Po=>{var CC=Pu().getSymbolSize,To=7;Po.getPositions=function(u){let f=CC(u);return[[0,0],[f-To,0],[0,f-To]]}});var No=c(ne=>{ne.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var af={N1:3,N2:3,N3:40,N4:10};ne.isValid=function(u){return u!=null&&u!==""&&!isNaN(u)&&u>=0&&u<=7};ne.from=function(u){return ne.isValid(u)?parseInt(u,10):void 0};ne.getPenaltyN1=function(u){let f=u.size,t=0,D=0,r=0,n=null,i=null;for(let o=0;o<f;o++){D=r=0,n=i=null;for(let a=0;a<f;a++){let s=u.get(o,a);s===n?D++:(D>=5&&(t+=af.N1+(D-5)),n=s,D=1),s=u.get(a,o),s===i?r++:(r>=5&&(t+=af.N1+(r-5)),i=s,r=1)}D>=5&&(t+=af.N1+(D-5)),r>=5&&(t+=af.N1+(r-5))}return t};ne.getPenaltyN2=function(u){let f=u.size,t=0;for(let D=0;D<f-1;D++)for(let r=0;r<f-1;r++){let n=u.get(D,r)+u.get(D,r+1)+u.get(D+1,r)+u.get(D+1,r+1);(n===4||n===0)&&t++}return t*af.N2};ne.getPenaltyN3=function(u){let f=u.size,t=0,D=0,r=0;for(let n=0;n<f;n++){D=r=0;for(let i=0;i<f;i++)D=D<<1&2047|u.get(n,i),i>=10&&(D===1488||D===93)&&t++,r=r<<1&2047|u.get(i,n),i>=10&&(r===1488||r===93)&&t++}return t*af.N3};ne.getPenaltyN4=function(u){let f=0,t=u.data.length;for(let r=0;r<t;r++)f+=u.data[r];return Math.abs(Math.ceil(f*100/t/5)-10)*af.N4};function mC(e,u,f){switch(e){case ne.Patterns.PATTERN000:return(u+f)%2===0;case ne.Patterns.PATTERN001:return u%2===0;case ne.Patterns.PATTERN010:return f%3===0;case ne.Patterns.PATTERN011:return(u+f)%3===0;case ne.Patterns.PATTERN100:return(Math.floor(u/2)+Math.floor(f/3))%2===0;case ne.Patterns.PATTERN101:return u*f%2+u*f%3===0;case ne.Patterns.PATTERN110:return(u*f%2+u*f%3)%2===0;case ne.Patterns.PATTERN111:return(u*f%3+(u+f)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}ne.applyMask=function(u,f){let t=f.size;for(let D=0;D<t;D++)for(let r=0;r<t;r++)f.isReserved(r,D)||f.xor(r,D,mC(u,r,D))};ne.getBestMask=function(u,f){let t=Object.keys(ne.Patterns).length,D=0,r=1/0;for(let n=0;n<t;n++){f(n),ne.applyMask(n,u);let i=ne.getPenaltyN1(u)+ne.getPenaltyN2(u)+ne.getPenaltyN3(u)+ne.getPenaltyN4(u);ne.applyMask(n,u),i<r&&(r=i,D=n)}return D}});var M1=c(j1=>{var ku=MD(),LD=[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],VD=[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];j1.getBlocksCount=function(u,f){switch(f){case ku.L:return LD[(u-1)*4+0];case ku.M:return LD[(u-1)*4+1];case ku.Q:return LD[(u-1)*4+2];case ku.H:return LD[(u-1)*4+3];default:return}};j1.getTotalCodewordsCount=function(u,f){switch(f){case ku.L:return VD[(u-1)*4+0];case ku.M:return VD[(u-1)*4+1];case ku.Q:return VD[(u-1)*4+2];case ku.H:return VD[(u-1)*4+3];default:return}}});var qo=c(UD=>{var St=new Uint8Array(512),zD=new Uint8Array(256);(function(){let u=1;for(let f=0;f<255;f++)St[f]=u,zD[u]=f,u<<=1,u&256&&(u^=285);for(let f=255;f<512;f++)St[f]=St[f-255]})();UD.log=function(u){if(u<1)throw new Error("log("+u+")");return zD[u]};UD.exp=function(u){return St[u]};UD.mul=function(u,f){return u===0||f===0?0:St[zD[u]+zD[f]]}});var jo=c($t=>{var R1=qo();$t.mul=function(u,f){let t=new Uint8Array(u.length+f.length-1);for(let D=0;D<u.length;D++)for(let r=0;r<f.length;r++)t[D+r]^=R1.mul(u[D],f[r]);return t};$t.mod=function(u,f){let t=new Uint8Array(u);for(;t.length-f.length>=0;){let D=t[0];for(let n=0;n<f.length;n++)t[n]^=R1.mul(f[n],D);let r=0;for(;r<t.length&&t[r]===0;)r++;t=t.slice(r)}return t};$t.generateECPolynomial=function(u){let f=new Uint8Array([1]);for(let t=0;t<u;t++)f=$t.mul(f,new Uint8Array([1,R1.exp(t)]));return f}});var Lo=c((IN,Ro)=>{var Mo=jo();function L1(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}L1.prototype.initialize=function(u){this.degree=u,this.genPoly=Mo.generateECPolynomial(this.degree)};L1.prototype.encode=function(u){if(!this.genPoly)throw new Error("Encoder not initialized");let f=new Uint8Array(u.length+this.degree);f.set(u);let t=Mo.mod(f,this.genPoly),D=this.degree-t.length;if(D>0){let r=new Uint8Array(this.degree);return r.set(t,D),r}return t};Ro.exports=L1});var V1=c(Vo=>{Vo.isValid=function(u){return!isNaN(u)&&u>=1&&u<=40}});var z1=c(bu=>{var zo="[0-9]+",EC="[A-Z $%*+\\-./:]+",Ot="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ot=Ot.replace(/u/g,"\\u");var hC="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ot+`)(?:.|[\r
|
|
2
2
|
]))+`;bu.KANJI=new RegExp(Ot,"g");bu.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");bu.BYTE=new RegExp(hC,"g");bu.NUMERIC=new RegExp(zo,"g");bu.ALPHANUMERIC=new RegExp(EC,"g");var gC=new RegExp("^"+Ot+"$"),bC=new RegExp("^"+zo+"$"),yC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");bu.testKanji=function(u){return gC.test(u)};bu.testNumeric=function(u){return bC.test(u)};bu.testAlphanumeric=function(u){return yC.test(u)}});var Nu=c(ge=>{var _C=V1(),U1=z1();ge.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};ge.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};ge.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};ge.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};ge.MIXED={bit:-1};ge.getCharCountIndicator=function(u,f){if(!u.ccBits)throw new Error("Invalid mode: "+u);if(!_C.isValid(f))throw new Error("Invalid version: "+f);return f>=1&&f<10?u.ccBits[0]:f<27?u.ccBits[1]:u.ccBits[2]};ge.getBestModeForData=function(u){return U1.testNumeric(u)?ge.NUMERIC:U1.testAlphanumeric(u)?ge.ALPHANUMERIC:U1.testKanji(u)?ge.KANJI:ge.BYTE};ge.toString=function(u){if(u&&u.id)return u.id;throw new Error("Invalid mode")};ge.isValid=function(u){return u&&u.bit&&u.ccBits};function BC(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return ge.NUMERIC;case"alphanumeric":return ge.ALPHANUMERIC;case"kanji":return ge.KANJI;case"byte":return ge.BYTE;default:throw new Error("Unknown mode: "+e)}}ge.from=function(u,f){if(ge.isValid(u))return u;try{return BC(u)}catch{return f}}});var Wo=c(sf=>{var HD=Pu(),vC=M1(),Uo=MD(),qu=Nu(),H1=V1(),Ko=7973,Ho=HD.getBCHDigit(Ko);function wC(e,u,f){for(let t=1;t<=40;t++)if(u<=sf.getCapacity(t,f,e))return t}function Go(e,u){return qu.getCharCountIndicator(e,u)+4}function xC(e,u){let f=0;return e.forEach(function(t){let D=Go(t.mode,u);f+=D+t.getBitsLength()}),f}function AC(e,u){for(let f=1;f<=40;f++)if(xC(e,f)<=sf.getCapacity(f,u,qu.MIXED))return f}sf.from=function(u,f){return H1.isValid(u)?parseInt(u,10):f};sf.getCapacity=function(u,f,t){if(!H1.isValid(u))throw new Error("Invalid QR Code version");typeof t>"u"&&(t=qu.BYTE);let D=HD.getSymbolTotalCodewords(u),r=vC.getTotalCodewordsCount(u,f),n=(D-r)*8;if(t===qu.MIXED)return n;let i=n-Go(t,u);switch(t){case qu.NUMERIC:return Math.floor(i/10*3);case qu.ALPHANUMERIC:return Math.floor(i/11*2);case qu.KANJI:return Math.floor(i/13);case qu.BYTE:default:return Math.floor(i/8)}};sf.getBestVersionForData=function(u,f){let t,D=Uo.from(f,Uo.M);if(Array.isArray(u)){if(u.length>1)return AC(u,D);if(u.length===0)return 1;t=u[0]}else t=u;return wC(t.mode,t.getLength(),D)};sf.getEncodedBits=function(u){if(!H1.isValid(u)||u<7)throw new Error("Invalid QR Code version");let f=u<<12;for(;HD.getBCHDigit(f)-Ho>=0;)f^=Ko<<HD.getBCHDigit(f)-Ho;return u<<12|f}});var Yo=c(Zo=>{var K1=Pu(),Qo=1335,IC=21522,Jo=K1.getBCHDigit(Qo);Zo.getEncodedBits=function(u,f){let t=u.bit<<3|f,D=t<<10;for(;K1.getBCHDigit(D)-Jo>=0;)D^=Qo<<K1.getBCHDigit(D)-Jo;return(t<<10|D)^IC}});var ea=c((kN,Xo)=>{var SC=Nu();function Pf(e){this.mode=SC.NUMERIC,this.data=e.toString()}Pf.getBitsLength=function(u){return 10*Math.floor(u/3)+(u%3?u%3*3+1:0)};Pf.prototype.getLength=function(){return this.data.length};Pf.prototype.getBitsLength=function(){return Pf.getBitsLength(this.data.length)};Pf.prototype.write=function(u){let f,t,D;for(f=0;f+3<=this.data.length;f+=3)t=this.data.substr(f,3),D=parseInt(t,10),u.put(D,10);let r=this.data.length-f;r>0&&(t=this.data.substr(f),D=parseInt(t,10),u.put(D,r*3+1))};Xo.exports=Pf});var fa=c((NN,ua)=>{var $C=Nu(),G1=["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 kf(e){this.mode=$C.ALPHANUMERIC,this.data=e}kf.getBitsLength=function(u){return 11*Math.floor(u/2)+6*(u%2)};kf.prototype.getLength=function(){return this.data.length};kf.prototype.getBitsLength=function(){return kf.getBitsLength(this.data.length)};kf.prototype.write=function(u){let f;for(f=0;f+2<=this.data.length;f+=2){let t=G1.indexOf(this.data[f])*45;t+=G1.indexOf(this.data[f+1]),u.put(t,11)}this.data.length%2&&u.put(G1.indexOf(this.data[f]),6)};ua.exports=kf});var Da=c((qN,ta)=>{var OC=Nu();function Nf(e){this.mode=OC.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Nf.getBitsLength=function(u){return u*8};Nf.prototype.getLength=function(){return this.data.length};Nf.prototype.getBitsLength=function(){return Nf.getBitsLength(this.data.length)};Nf.prototype.write=function(e){for(let u=0,f=this.data.length;u<f;u++)e.put(this.data[u],8)};ta.exports=Nf});var na=c((jN,ra)=>{var TC=Nu(),PC=Pu();function qf(e){this.mode=TC.KANJI,this.data=e}qf.getBitsLength=function(u){return u*13};qf.prototype.getLength=function(){return this.data.length};qf.prototype.getBitsLength=function(){return qf.getBitsLength(this.data.length)};qf.prototype.write=function(e){let u;for(u=0;u<this.data.length;u++){let f=PC.toSJIS(this.data[u]);if(f>=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[u]+`
|
|
3
3
|
Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),e.put(f,13)}};ra.exports=qf});var ia=c((MN,W1)=>{"use strict";var Tt={single_source_shortest_paths:function(e,u,f){var t={},D={};D[u]=0;var r=Tt.PriorityQueue.make();r.push(u,0);for(var n,i,o,a,s,d,l,F,p;!r.empty();){n=r.pop(),i=n.value,a=n.cost,s=e[i]||{};for(o in s)s.hasOwnProperty(o)&&(d=s[o],l=a+d,F=D[o],p=typeof D[o]>"u",(p||F>l)&&(D[o]=l,r.push(o,l),t[o]=i))}if(typeof f<"u"&&typeof D[f]>"u"){var C=["Could not find a path from ",u," to ",f,"."].join("");throw new Error(C)}return t},extract_shortest_path_from_predecessor_list:function(e,u){for(var f=[],t=u,D;t;)f.push(t),D=e[t],t=e[t];return f.reverse(),f},find_path:function(e,u,f){var t=Tt.single_source_shortest_paths(e,u,f);return Tt.extract_shortest_path_from_predecessor_list(t,f)},PriorityQueue:{make:function(e){var u=Tt.PriorityQueue,f={},t;e=e||{};for(t in u)u.hasOwnProperty(t)&&(f[t]=u[t]);return f.queue=[],f.sorter=e.sorter||u.default_sorter,f},default_sorter:function(e,u){return e.cost-u.cost},push:function(e,u){var f={value:e,cost:u};this.queue.push(f),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof W1<"u"&&(W1.exports=Tt)});var pa=c(jf=>{var X=Nu(),sa=ea(),la=fa(),da=Da(),ca=na(),Pt=z1(),KD=Pu(),kC=ia();function oa(e){return unescape(encodeURIComponent(e)).length}function kt(e,u,f){let t=[],D;for(;(D=e.exec(f))!==null;)t.push({data:D[0],index:D.index,mode:u,length:D[0].length});return t}function Fa(e){let u=kt(Pt.NUMERIC,X.NUMERIC,e),f=kt(Pt.ALPHANUMERIC,X.ALPHANUMERIC,e),t,D;return KD.isKanjiModeEnabled()?(t=kt(Pt.BYTE,X.BYTE,e),D=kt(Pt.KANJI,X.KANJI,e)):(t=kt(Pt.BYTE_KANJI,X.BYTE,e),D=[]),u.concat(f,t,D).sort(function(n,i){return n.index-i.index}).map(function(n){return{data:n.data,mode:n.mode,length:n.length}})}function J1(e,u){switch(u){case X.NUMERIC:return sa.getBitsLength(e);case X.ALPHANUMERIC:return la.getBitsLength(e);case X.KANJI:return ca.getBitsLength(e);case X.BYTE:return da.getBitsLength(e)}}function NC(e){return e.reduce(function(u,f){let t=u.length-1>=0?u[u.length-1]:null;return t&&t.mode===f.mode?(u[u.length-1].data+=f.data,u):(u.push(f),u)},[])}function qC(e){let u=[];for(let f=0;f<e.length;f++){let t=e[f];switch(t.mode){case X.NUMERIC:u.push([t,{data:t.data,mode:X.ALPHANUMERIC,length:t.length},{data:t.data,mode:X.BYTE,length:t.length}]);break;case X.ALPHANUMERIC:u.push([t,{data:t.data,mode:X.BYTE,length:t.length}]);break;case X.KANJI:u.push([t,{data:t.data,mode:X.BYTE,length:oa(t.data)}]);break;case X.BYTE:u.push([{data:t.data,mode:X.BYTE,length:oa(t.data)}])}}return u}function jC(e,u){let f={},t={start:{}},D=["start"];for(let r=0;r<e.length;r++){let n=e[r],i=[];for(let o=0;o<n.length;o++){let a=n[o],s=""+r+o;i.push(s),f[s]={node:a,lastCount:0},t[s]={};for(let d=0;d<D.length;d++){let l=D[d];f[l]&&f[l].node.mode===a.mode?(t[l][s]=J1(f[l].lastCount+a.length,a.mode)-J1(f[l].lastCount,a.mode),f[l].lastCount+=a.length):(f[l]&&(f[l].lastCount=a.length),t[l][s]=J1(a.length,a.mode)+4+X.getCharCountIndicator(a.mode,u))}}D=i}for(let r=0;r<D.length;r++)t[D[r]].end=0;return{map:t,table:f}}function aa(e,u){let f,t=X.getBestModeForData(e);if(f=X.from(u,t),f!==X.BYTE&&f.bit<t.bit)throw new Error('"'+e+'" cannot be encoded with mode '+X.toString(f)+`.
|
|
4
4
|
Suggested mode is: `+X.toString(t));switch(f===X.KANJI&&!KD.isKanjiModeEnabled()&&(f=X.BYTE),f){case X.NUMERIC:return new sa(e);case X.ALPHANUMERIC:return new la(e);case X.KANJI:return new ca(e);case X.BYTE:return new da(e)}}jf.fromArray=function(u){return u.reduce(function(f,t){return typeof t=="string"?f.push(aa(t,null)):t.data&&f.push(aa(t.data,t.mode)),f},[])};jf.fromString=function(u,f){let t=Fa(u,KD.isKanjiModeEnabled()),D=qC(t),r=jC(D,f),n=kC.find_path(r.map,"start","end"),i=[];for(let o=1;o<n.length-1;o++)i.push(r.table[n[o]].node);return jf.fromArray(NC(i))};jf.rawSplit=function(u){return jf.fromArray(Fa(u,KD.isKanjiModeEnabled()))}});var ma=c(Ca=>{var WD=Pu(),Q1=MD(),MC=Io(),RC=$o(),LC=Oo(),VC=ko(),X1=No(),en=M1(),zC=Lo(),GD=Wo(),UC=Yo(),HC=Nu(),Z1=pa();function KC(e,u){let f=e.size,t=VC.getPositions(u);for(let D=0;D<t.length;D++){let r=t[D][0],n=t[D][1];for(let i=-1;i<=7;i++)if(!(r+i<=-1||f<=r+i))for(let o=-1;o<=7;o++)n+o<=-1||f<=n+o||(i>=0&&i<=6&&(o===0||o===6)||o>=0&&o<=6&&(i===0||i===6)||i>=2&&i<=4&&o>=2&&o<=4?e.set(r+i,n+o,!0,!0):e.set(r+i,n+o,!1,!0))}}function GC(e){let u=e.size;for(let f=8;f<u-8;f++){let t=f%2===0;e.set(f,6,t,!0),e.set(6,f,t,!0)}}function WC(e,u){let f=LC.getPositions(u);for(let t=0;t<f.length;t++){let D=f[t][0],r=f[t][1];for(let n=-2;n<=2;n++)for(let i=-2;i<=2;i++)n===-2||n===2||i===-2||i===2||n===0&&i===0?e.set(D+n,r+i,!0,!0):e.set(D+n,r+i,!1,!0)}}function JC(e,u){let f=e.size,t=GD.getEncodedBits(u),D,r,n;for(let i=0;i<18;i++)D=Math.floor(i/3),r=i%3+f-8-3,n=(t>>i&1)===1,e.set(D,r,n,!0),e.set(r,D,n,!0)}function Y1(e,u,f){let t=e.size,D=UC.getEncodedBits(u,f),r,n;for(r=0;r<15;r++)n=(D>>r&1)===1,r<6?e.set(r,8,n,!0):r<8?e.set(r+1,8,n,!0):e.set(t-15+r,8,n,!0),r<8?e.set(8,t-r-1,n,!0):r<9?e.set(8,15-r-1+1,n,!0):e.set(8,15-r-1,n,!0);e.set(t-8,8,1,!0)}function QC(e,u){let f=e.size,t=-1,D=f-1,r=7,n=0;for(let i=f-1;i>0;i-=2)for(i===6&&i--;;){for(let o=0;o<2;o++)if(!e.isReserved(D,i-o)){let a=!1;n<u.length&&(a=(u[n]>>>r&1)===1),e.set(D,i-o,a),r--,r===-1&&(n++,r=7)}if(D+=t,D<0||f<=D){D-=t,t=-t;break}}}function ZC(e,u,f){let t=new MC;f.forEach(function(o){t.put(o.mode.bit,4),t.put(o.getLength(),HC.getCharCountIndicator(o.mode,e)),o.write(t)});let D=WD.getSymbolTotalCodewords(e),r=en.getTotalCodewordsCount(e,u),n=(D-r)*8;for(t.getLengthInBits()+4<=n&&t.put(0,4);t.getLengthInBits()%8!==0;)t.putBit(0);let i=(n-t.getLengthInBits())/8;for(let o=0;o<i;o++)t.put(o%2?17:236,8);return YC(t,e,u)}function YC(e,u,f){let t=WD.getSymbolTotalCodewords(u),D=en.getTotalCodewordsCount(u,f),r=t-D,n=en.getBlocksCount(u,f),i=t%n,o=n-i,a=Math.floor(t/n),s=Math.floor(r/n),d=s+1,l=a-s,F=new zC(l),p=0,C=new Array(n),m=new Array(n),h=0,B=new Uint8Array(e.buffer);for(let re=0;re<n;re++){let eu=re<o?s:d;C[re]=B.slice(p,p+eu),m[re]=F.encode(C[re]),p+=eu,h=Math.max(h,eu)}let w=new Uint8Array(t),I=0,_,L;for(_=0;_<h;_++)for(L=0;L<n;L++)_<C[L].length&&(w[I++]=C[L][_]);for(_=0;_<l;_++)for(L=0;L<n;L++)w[I++]=m[L][_];return w}function XC(e,u,f,t){let D;if(Array.isArray(e))D=Z1.fromArray(e);else if(typeof e=="string"){let a=u;if(!a){let s=Z1.rawSplit(e);a=GD.getBestVersionForData(s,f)}D=Z1.fromString(e,a||40)}else throw new Error("Invalid data");let r=GD.getBestVersionForData(D,f);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(!u)u=r;else if(u<r)throw new Error(`
|