@everymatrix/player-profile-info 1.99.57 → 1.99.59

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.
Files changed (19) hide show
  1. package/components/{PlayerAccountBiometricsAction-6C8-N-Rb.js → PlayerAccountBiometricsAction-Aev2NLKw.js} +3 -5
  2. package/components/{PlayerAccountBiometricsAction-D8SW_CvC.js → PlayerAccountBiometricsAction-DqRncDST.js} +3 -5
  3. package/components/{PlayerAccountBiometricsAction-DG2p2NxA.cjs → PlayerAccountBiometricsAction-JTTvkEaX.cjs} +1 -1
  4. package/components/{PlayerProfileInfo-BX4Crs2a.js → PlayerProfileInfo-8oKh5i5d.js} +42 -68
  5. package/components/{PlayerProfileInfo-Diy46A-k.js → PlayerProfileInfo-BSKAQ7gm.js} +43 -69
  6. package/components/{PlayerProfileInfo-D_PnWTXT.cjs → PlayerProfileInfo-CTvgJvby.cjs} +2 -2
  7. package/components/{QrSessionGenerator-D8ScvypJ.js → QrSessionGenerator-CV2auF8Y.js} +13 -25
  8. package/components/{QrSessionGenerator-CbBAkgJp.cjs → QrSessionGenerator-Dt_3JB2e.cjs} +1 -1
  9. package/components/{QrSessionGenerator--mW_LkVF.js → QrSessionGenerator-OL4q9mYr.js} +13 -25
  10. package/es2015/player-profile-info.cjs +1 -1
  11. package/es2015/player-profile-info.js +1 -1
  12. package/esnext/player-profile-info.js +1 -1
  13. package/package.json +1 -1
  14. package/stencil/{index-b2193545-R7ZoV-kY.js → index-b2193545-D9zpmD3Q.js} +2 -3
  15. package/stencil/{index-b2193545-DsMHU6jb.js → index-b2193545-OkT1QrQq.js} +2 -3
  16. package/stencil/{ui-skeleton-xXZA3rYO.js → ui-skeleton-BjsoPeRQ.js} +2 -2
  17. package/stencil/{ui-skeleton-W50o8tfg.js → ui-skeleton-COR_76lv.js} +2 -2
  18. package/stencil/{ui-skeleton-ed169f8f-CVY4B-CP.js → ui-skeleton-ed169f8f-BJHdC-wv.js} +1 -1
  19. package/stencil/{ui-skeleton-ed169f8f-D3TjbVKy.js → ui-skeleton-ed169f8f-Df2MlRR-.js} +1 -1
@@ -1,4 +1,4 @@
1
- import { a as Yt, $ as qt, S as Wt, i as Xt, s as Zt, f as z, b as xt, n as dt, d as tt, l as gt, e as et, m as P, p as $t, j as D, t as ht, y as At, q as _, h as te, z as ee, k as ne, A as Tt, v as re, w as oe, x as ie, c as se, u as ae } from "./PlayerProfileInfo-BX4Crs2a.js";
1
+ import { a as Yt, $ as qt, S as Wt, i as Xt, s as Zt, f as z, b as xt, n as dt, d as tt, l as gt, e as et, m as P, p as $t, j as D, t as ht, y as At, q as _, h as te, z as ee, k as ne, A as Tt, v as re, w as oe, x as ie, c as se, u as ae } from "./PlayerProfileInfo-8oKh5i5d.js";
2
2
  function It(e, t) {
3
3
  Yt(e, t);
4
4
  }
@@ -72,10 +72,8 @@ const ce = [
72
72
  3706
73
73
  ];
74
74
  I.getSymbolSize = function(t) {
75
- if (!t)
76
- throw new Error('"version" cannot be null or undefined');
77
- if (t < 1 || t > 40)
78
- throw new Error('"version" should be in range from 1 to 40');
75
+ if (!t) throw new Error('"version" cannot be null or undefined');
76
+ if (t < 1 || t > 40) throw new Error('"version" should be in range from 1 to 40');
79
77
  return t * 4 + 17;
80
78
  };
81
79
  I.getSymbolTotalCodewords = function(t) {
@@ -176,8 +174,7 @@ var de = Y, Ut = {};
176
174
  (function(e) {
177
175
  const t = I.getSymbolSize;
178
176
  e.getRowColCoords = function(o) {
179
- if (o === 1)
180
- return [];
177
+ if (o === 1) return [];
181
178
  const r = Math.floor(o / 7) + 2, i = t(o), s = i === 145 ? 26 : Math.ceil((i - 13) / (2 * r - 2)) * 2, a = [i - 7];
182
179
  for (let l = 1; l < r - 1; l++)
183
180
  a[l] = a[l - 1] - s;
@@ -260,8 +257,7 @@ var kt = {};
260
257
  }, e.getPenaltyN4 = function(r) {
261
258
  let i = 0;
262
259
  const s = r.data.length;
263
- for (let l = 0; l < s; l++)
264
- i += r.data[l];
260
+ for (let l = 0; l < s; l++) i += r.data[l];
265
261
  return Math.abs(Math.ceil(i * 100 / s / 5) - 10) * t.N4;
266
262
  };
267
263
  function n(o, r, i) {
@@ -666,8 +662,7 @@ const J = new Uint8Array(512), x = new Uint8Array(256);
666
662
  J[n] = J[n - 255];
667
663
  })();
668
664
  ot.log = function(t) {
669
- if (t < 1)
670
- throw new Error("log(" + t + ")");
665
+ if (t < 1) throw new Error("log(" + t + ")");
671
666
  return x[t];
672
667
  };
673
668
  ot.exp = function(t) {
@@ -691,8 +686,7 @@ ot.mul = function(t, n) {
691
686
  for (let l = 0; l < r.length; l++)
692
687
  i[l] ^= t.mul(r[l], s);
693
688
  let a = 0;
694
- for (; a < i.length && i[a] === 0; )
695
- a++;
689
+ for (; a < i.length && i[a] === 0; ) a++;
696
690
  i = i.slice(a);
697
691
  }
698
692
  return i;
@@ -768,16 +762,14 @@ M.testAlphanumeric = function(t) {
768
762
  }, e.MIXED = {
769
763
  bit: -1
770
764
  }, e.getCharCountIndicator = function(i, s) {
771
- if (!i.ccBits)
772
- throw new Error("Invalid mode: " + i);
765
+ if (!i.ccBits) throw new Error("Invalid mode: " + i);
773
766
  if (!t.isValid(s))
774
767
  throw new Error("Invalid version: " + s);
775
768
  return s >= 1 && s < 10 ? i.ccBits[0] : s < 27 ? i.ccBits[1] : i.ccBits[2];
776
769
  }, e.getBestModeForData = function(i) {
777
770
  return n.testNumeric(i) ? e.NUMERIC : n.testAlphanumeric(i) ? e.ALPHANUMERIC : n.testKanji(i) ? e.KANJI : e.BYTE;
778
771
  }, e.toString = function(i) {
779
- if (i && i.id)
780
- return i.id;
772
+ if (i && i.id) return i.id;
781
773
  throw new Error("Invalid mode");
782
774
  }, e.isValid = function(i) {
783
775
  return i && i.bit && i.ccBits;
@@ -837,8 +829,7 @@ M.testAlphanumeric = function(t) {
837
829
  throw new Error("Invalid QR Code version");
838
830
  typeof m > "u" && (m = r.BYTE);
839
831
  const C = t.getSymbolTotalCodewords(g), u = n.getTotalCodewordsCount(g, h), w = (C - u) * 8;
840
- if (m === r.MIXED)
841
- return w;
832
+ if (m === r.MIXED) return w;
842
833
  const E = w - f(m, g);
843
834
  switch (m) {
844
835
  case r.NUMERIC:
@@ -1565,18 +1556,15 @@ function tn(e) {
1565
1556
  if (
1566
1557
  /*errorCode*/
1567
1558
  u[4]
1568
- )
1569
- return $e;
1559
+ ) return $e;
1570
1560
  if (
1571
1561
  /*isGenerating*/
1572
1562
  u[2]
1573
- )
1574
- return xe;
1563
+ ) return xe;
1575
1564
  if (
1576
1565
  /*qrImageUrl*/
1577
1566
  u[3]
1578
- )
1579
- return Ze;
1567
+ ) return Ze;
1580
1568
  }
1581
1569
  let m = h(e), C = m && m(e);
1582
1570
  return {
@@ -1,4 +1,4 @@
1
- "use strict";var Q=(e,t,n)=>new Promise((o,r)=>{var i=a=>{try{l(n.next(a))}catch(c){r(c)}},s=a=>{try{l(n.throw(a))}catch(c){r(c)}},l=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,s);l((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./PlayerProfileInfo-D_PnWTXT.cjs");function pt(e,t){u.addMessages(e,t)}function Ot(e){u.$locale.set(e)}const Et={en:{titleQRSessionGenerator:"Scan the QR Code to access your account on retail devices.",generateQRButton:"Generate QR",unauthorized:"Authentication failed.",failedToFetch:"Cannot generate QR, Please try again.",unexpectedError:"Unexpected error occurred. Please try again later.",second:"s"},fr:{titleQRSessionGenerator:"Scannez le code QR pour accéder à votre compte sur les appareils en magasin.",generateQRButton:"Générer des QR",unauthorized:"L'authentification a échoué.",failedToFetch:"Impossible de générer le code QR, veuillez réessayer.",unexpectedError:"Une erreur inattendue s'est produite. Veuillez réessayer plus tard.",second:"s"}};var j={},Ht=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},St={},N={};let gt;const Qt=[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];N.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};N.getSymbolTotalCodewords=function(t){return Qt[t]};N.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};N.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');gt=t};N.isKanjiModeEnabled=function(){return typeof gt!="undefined"};N.toSJIS=function(t){return gt(t)};var $={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(o){return o&&typeof o.bit!="undefined"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch(i){return r}}})($);function Tt(){this.buffer=[],this.length=0}Tt.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const 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 Kt=Tt;function G(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)}G.prototype.set=function(e,t,n,o){const r=e*this.size+t;this.data[r]=n,o&&(this.reservedBit[r]=!0)};G.prototype.get=function(e,t){return this.data[e*this.size+t]};G.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};G.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Jt=G,At={};(function(e){const t=N.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,i=t(o),s=i===145?26:Math.ceil((i-13)/(2*r-2))*2,l=[i-7];for(let a=1;a<r-1;a++)l[a]=l[a-1]-s;return l.push(6),l.reverse()},e.getPositions=function(o){const r=[],i=e.getRowColCoords(o),s=i.length;for(let l=0;l<s;l++)for(let a=0;a<s;a++)l===0&&a===0||l===0&&a===s-1||l===s-1&&a===0||r.push([i[l],i[a]]);return r}})(At);var It={};const jt=N.getSymbolSize,Ct=7;It.getPositions=function(t){const n=jt(t);return[[0,0],[n-Ct,0],[0,n-Ct]]};var Nt={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const i=r.size;let s=0,l=0,a=0,c=null,d=null;for(let B=0;B<i;B++){l=a=0,c=d=null;for(let g=0;g<i;g++){let h=r.get(B,g);h===c?l++:(l>=5&&(s+=t.N1+(l-5)),c=h,l=1),h=r.get(g,B),h===d?a++:(a>=5&&(s+=t.N1+(a-5)),d=h,a=1)}l>=5&&(s+=t.N1+(l-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(r){const i=r.size;let s=0;for(let l=0;l<i-1;l++)for(let a=0;a<i-1;a++){const c=r.get(l,a)+r.get(l,a+1)+r.get(l+1,a)+r.get(l+1,a+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(r){const i=r.size;let s=0,l=0,a=0;for(let c=0;c<i;c++){l=a=0;for(let d=0;d<i;d++)l=l<<1&2047|r.get(c,d),d>=10&&(l===1488||l===93)&&s++,a=a<<1&2047|r.get(d,c),d>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let i=0;const s=r.data.length;for(let a=0;a<s;a++)i+=r.data[a];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function n(o,r,i){switch(o){case e.Patterns.PATTERN000:return(r+i)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(r+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return r*i%2+r*i%3===0;case e.Patterns.PATTERN110:return(r*i%2+r*i%3)%2===0;case e.Patterns.PATTERN111:return(r*i%3+(r+i)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(r,i){const s=i.size;for(let l=0;l<s;l++)for(let a=0;a<s;a++)i.isReserved(a,l)||i.xor(a,l,n(r,a,l))},e.getBestMask=function(r,i){const s=Object.keys(e.Patterns).length;let l=0,a=1/0;for(let c=0;c<s;c++){i(c),e.applyMask(c,r);const d=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(c,r),d<a&&(a=d,l=c)}return l}})(Nt);var tt={};const L=$,Y=[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],W=[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];tt.getBlocksCount=function(t,n){switch(n){case L.L:return Y[(t-1)*4+0];case L.M:return Y[(t-1)*4+1];case L.Q:return Y[(t-1)*4+2];case L.H:return Y[(t-1)*4+3];default:return}};tt.getTotalCodewordsCount=function(t,n){switch(n){case L.L:return W[(t-1)*4+0];case L.M:return W[(t-1)*4+1];case L.Q:return W[(t-1)*4+2];case L.H:return W[(t-1)*4+3];default:return}};var Rt={},et={};const K=new Uint8Array(512),Z=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)K[n]=t,Z[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)K[n]=K[n-255]})();et.log=function(t){if(t<1)throw new Error("log("+t+")");return Z[t]};et.exp=function(t){return K[t]};et.mul=function(t,n){return t===0||n===0?0:K[Z[t]+Z[n]]};(function(e){const t=et;e.mul=function(o,r){const i=new Uint8Array(o.length+r.length-1);for(let s=0;s<o.length;s++)for(let l=0;l<r.length;l++)i[s+l]^=t.mul(o[s],r[l]);return i},e.mod=function(o,r){let i=new Uint8Array(o);for(;i.length-r.length>=0;){const s=i[0];for(let a=0;a<r.length;a++)i[a]^=t.mul(r[a],s);let l=0;for(;l<i.length&&i[l]===0;)l++;i=i.slice(l)}return i},e.generateECPolynomial=function(o){let r=new Uint8Array([1]);for(let i=0;i<o;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})(Rt);const Mt=Rt;function ht(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ht.prototype.initialize=function(t){this.degree=t,this.genPoly=Mt.generateECPolynomial(this.degree)};ht.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const o=Mt.mod(n,this.genPoly),r=this.degree-o.length;if(r>0){const i=new Uint8Array(this.degree);return i.set(o,r),i}return o};var Gt=ht,_t={},U={},mt={};mt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _={};const Pt="[0-9]+",qt="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const Yt="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+`)(?:.|[\r
1
+ "use strict";var Q=(e,t,n)=>new Promise((o,r)=>{var i=a=>{try{l(n.next(a))}catch(c){r(c)}},s=a=>{try{l(n.throw(a))}catch(c){r(c)}},l=a=>a.done?o(a.value):Promise.resolve(a.value).then(i,s);l((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./PlayerProfileInfo-CTvgJvby.cjs");function pt(e,t){u.addMessages(e,t)}function Ot(e){u.$locale.set(e)}const Et={en:{titleQRSessionGenerator:"Scan the QR Code to access your account on retail devices.",generateQRButton:"Generate QR",unauthorized:"Authentication failed.",failedToFetch:"Cannot generate QR, Please try again.",unexpectedError:"Unexpected error occurred. Please try again later.",second:"s"},fr:{titleQRSessionGenerator:"Scannez le code QR pour accéder à votre compte sur les appareils en magasin.",generateQRButton:"Générer des QR",unauthorized:"L'authentification a échoué.",failedToFetch:"Impossible de générer le code QR, veuillez réessayer.",unexpectedError:"Une erreur inattendue s'est produite. Veuillez réessayer plus tard.",second:"s"}};var j={},Ht=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},St={},N={};let gt;const Qt=[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];N.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};N.getSymbolTotalCodewords=function(t){return Qt[t]};N.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};N.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');gt=t};N.isKanjiModeEnabled=function(){return typeof gt!="undefined"};N.toSJIS=function(t){return gt(t)};var $={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(o){return o&&typeof o.bit!="undefined"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch(i){return r}}})($);function Tt(){this.buffer=[],this.length=0}Tt.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const 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 Kt=Tt;function G(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)}G.prototype.set=function(e,t,n,o){const r=e*this.size+t;this.data[r]=n,o&&(this.reservedBit[r]=!0)};G.prototype.get=function(e,t){return this.data[e*this.size+t]};G.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};G.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Jt=G,At={};(function(e){const t=N.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,i=t(o),s=i===145?26:Math.ceil((i-13)/(2*r-2))*2,l=[i-7];for(let a=1;a<r-1;a++)l[a]=l[a-1]-s;return l.push(6),l.reverse()},e.getPositions=function(o){const r=[],i=e.getRowColCoords(o),s=i.length;for(let l=0;l<s;l++)for(let a=0;a<s;a++)l===0&&a===0||l===0&&a===s-1||l===s-1&&a===0||r.push([i[l],i[a]]);return r}})(At);var It={};const jt=N.getSymbolSize,Ct=7;It.getPositions=function(t){const n=jt(t);return[[0,0],[n-Ct,0],[0,n-Ct]]};var Nt={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const i=r.size;let s=0,l=0,a=0,c=null,d=null;for(let B=0;B<i;B++){l=a=0,c=d=null;for(let g=0;g<i;g++){let h=r.get(B,g);h===c?l++:(l>=5&&(s+=t.N1+(l-5)),c=h,l=1),h=r.get(g,B),h===d?a++:(a>=5&&(s+=t.N1+(a-5)),d=h,a=1)}l>=5&&(s+=t.N1+(l-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(r){const i=r.size;let s=0;for(let l=0;l<i-1;l++)for(let a=0;a<i-1;a++){const c=r.get(l,a)+r.get(l,a+1)+r.get(l+1,a)+r.get(l+1,a+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(r){const i=r.size;let s=0,l=0,a=0;for(let c=0;c<i;c++){l=a=0;for(let d=0;d<i;d++)l=l<<1&2047|r.get(c,d),d>=10&&(l===1488||l===93)&&s++,a=a<<1&2047|r.get(d,c),d>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(r){let i=0;const s=r.data.length;for(let a=0;a<s;a++)i+=r.data[a];return Math.abs(Math.ceil(i*100/s/5)-10)*t.N4};function n(o,r,i){switch(o){case e.Patterns.PATTERN000:return(r+i)%2===0;case e.Patterns.PATTERN001:return r%2===0;case e.Patterns.PATTERN010:return i%3===0;case e.Patterns.PATTERN011:return(r+i)%3===0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(i/3))%2===0;case e.Patterns.PATTERN101:return r*i%2+r*i%3===0;case e.Patterns.PATTERN110:return(r*i%2+r*i%3)%2===0;case e.Patterns.PATTERN111:return(r*i%3+(r+i)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}e.applyMask=function(r,i){const s=i.size;for(let l=0;l<s;l++)for(let a=0;a<s;a++)i.isReserved(a,l)||i.xor(a,l,n(r,a,l))},e.getBestMask=function(r,i){const s=Object.keys(e.Patterns).length;let l=0,a=1/0;for(let c=0;c<s;c++){i(c),e.applyMask(c,r);const d=e.getPenaltyN1(r)+e.getPenaltyN2(r)+e.getPenaltyN3(r)+e.getPenaltyN4(r);e.applyMask(c,r),d<a&&(a=d,l=c)}return l}})(Nt);var tt={};const L=$,Y=[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],W=[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];tt.getBlocksCount=function(t,n){switch(n){case L.L:return Y[(t-1)*4+0];case L.M:return Y[(t-1)*4+1];case L.Q:return Y[(t-1)*4+2];case L.H:return Y[(t-1)*4+3];default:return}};tt.getTotalCodewordsCount=function(t,n){switch(n){case L.L:return W[(t-1)*4+0];case L.M:return W[(t-1)*4+1];case L.Q:return W[(t-1)*4+2];case L.H:return W[(t-1)*4+3];default:return}};var Rt={},et={};const K=new Uint8Array(512),Z=new Uint8Array(256);(function(){let t=1;for(let n=0;n<255;n++)K[n]=t,Z[t]=n,t<<=1,t&256&&(t^=285);for(let n=255;n<512;n++)K[n]=K[n-255]})();et.log=function(t){if(t<1)throw new Error("log("+t+")");return Z[t]};et.exp=function(t){return K[t]};et.mul=function(t,n){return t===0||n===0?0:K[Z[t]+Z[n]]};(function(e){const t=et;e.mul=function(o,r){const i=new Uint8Array(o.length+r.length-1);for(let s=0;s<o.length;s++)for(let l=0;l<r.length;l++)i[s+l]^=t.mul(o[s],r[l]);return i},e.mod=function(o,r){let i=new Uint8Array(o);for(;i.length-r.length>=0;){const s=i[0];for(let a=0;a<r.length;a++)i[a]^=t.mul(r[a],s);let l=0;for(;l<i.length&&i[l]===0;)l++;i=i.slice(l)}return i},e.generateECPolynomial=function(o){let r=new Uint8Array([1]);for(let i=0;i<o;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})(Rt);const Mt=Rt;function ht(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ht.prototype.initialize=function(t){this.degree=t,this.genPoly=Mt.generateECPolynomial(this.degree)};ht.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(t.length+this.degree);n.set(t);const o=Mt.mod(n,this.genPoly),r=this.degree-o.length;if(r>0){const i=new Uint8Array(this.degree);return i.set(o,r),i}return o};var Gt=ht,_t={},U={},mt={};mt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var _={};const Pt="[0-9]+",qt="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const Yt="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+`)(?:.|[\r
2
2
  ]))+`;_.KANJI=new RegExp(J,"g");_.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");_.BYTE=new RegExp(Yt,"g");_.NUMERIC=new RegExp(Pt,"g");_.ALPHANUMERIC=new RegExp(qt,"g");const Wt=new RegExp("^"+J+"$"),Xt=new RegExp("^"+Pt+"$"),Zt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");_.testKanji=function(t){return Wt.test(t)};_.testNumeric=function(t){return Xt.test(t)};_.testAlphanumeric=function(t){return Zt.test(t)};(function(e){const t=mt,n=_;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(i,s){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?i.ccBits[0]:s<27?i.ccBits[1]:i.ccBits[2]},e.getBestModeForData=function(i){return n.testNumeric(i)?e.NUMERIC:n.testAlphanumeric(i)?e.ALPHANUMERIC:n.testKanji(i)?e.KANJI:e.BYTE},e.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},e.isValid=function(i){return i&&i.bit&&i.ccBits};function o(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(i,s){if(e.isValid(i))return i;try{return o(i)}catch(l){return s}}})(U);(function(e){const t=N,n=tt,o=$,r=U,i=mt,s=7973,l=t.getBCHDigit(s);function a(g,h,m){for(let w=1;w<=40;w++)if(h<=e.getCapacity(w,m,g))return w}function c(g,h){return r.getCharCountIndicator(g,h)+4}function d(g,h){let m=0;return g.forEach(function(w){const b=c(w.mode,h);m+=b+w.getBitsLength()}),m}function B(g,h){for(let m=1;m<=40;m++)if(d(g,m)<=e.getCapacity(m,h,r.MIXED))return m}e.from=function(h,m){return i.isValid(h)?parseInt(h,10):m},e.getCapacity=function(h,m,w){if(!i.isValid(h))throw new Error("Invalid QR Code version");typeof w=="undefined"&&(w=r.BYTE);const b=t.getSymbolTotalCodewords(h),f=n.getTotalCodewordsCount(h,m),y=(b-f)*8;if(w===r.MIXED)return y;const E=y-c(w,h);switch(w){case r.NUMERIC:return Math.floor(E/10*3);case r.ALPHANUMERIC:return Math.floor(E/11*2);case r.KANJI:return Math.floor(E/13);case r.BYTE:default:return Math.floor(E/8)}},e.getBestVersionForData=function(h,m){let w;const b=o.from(m,o.M);if(Array.isArray(h)){if(h.length>1)return B(h,b);if(h.length===0)return 1;w=h[0]}else w=h;return a(w.mode,w.getLength(),b)},e.getEncodedBits=function(h){if(!i.isValid(h)||h<7)throw new Error("Invalid QR Code version");let m=h<<12;for(;t.getBCHDigit(m)-l>=0;)m^=s<<t.getBCHDigit(m)-l;return h<<12|m}})(_t);var Lt={};const ut=N,Ut=1335,xt=21522,bt=ut.getBCHDigit(Ut);Lt.getEncodedBits=function(t,n){const o=t.bit<<3|n;let r=o<<10;for(;ut.getBCHDigit(r)-bt>=0;)r^=Ut<<ut.getBCHDigit(r)-bt;return(o<<10|r)^xt};var Dt={};const $t=U;function D(e){this.mode=$t.NUMERIC,this.data=e.toString()}D.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(t){let n,o,r;for(n=0;n+3<=this.data.length;n+=3)o=this.data.substr(n,3),r=parseInt(o,10),t.put(r,10);const i=this.data.length-n;i>0&&(o=this.data.substr(n),r=parseInt(o,10),t.put(r,i*3+1))};var te=D;const ee=U,ot=["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 k(e){this.mode=ee.ALPHANUMERIC,this.data=e}k.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};k.prototype.getLength=function(){return this.data.length};k.prototype.getBitsLength=function(){return k.getBitsLength(this.data.length)};k.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let o=ot.indexOf(this.data[n])*45;o+=ot.indexOf(this.data[n+1]),t.put(o,11)}this.data.length%2&&t.put(ot.indexOf(this.data[n]),6)};var ne=k;const re=U;function F(e){this.mode=re.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}F.getBitsLength=function(t){return t*8};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)};var oe=F;const ie=U,se=N;function z(e){this.mode=ie.KANJI,this.data=e}z.getBitsLength=function(t){return t*13};z.prototype.getLength=function(){return this.data.length};z.prototype.getBitsLength=function(){return z.getBitsLength(this.data.length)};z.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=se.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
3
  Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var ae=z,kt={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,o,r){var i={},s={};s[o]=0;var l=t.PriorityQueue.make();l.push(o,0);for(var a,c,d,B,g,h,m,w,b;!l.empty();){a=l.pop(),c=a.value,B=a.cost,g=n[c]||{};for(d in g)g.hasOwnProperty(d)&&(h=g[d],m=B+h,w=s[d],b=typeof s[d]=="undefined",(b||w>m)&&(s[d]=m,l.push(d,m),i[d]=c))}if(typeof r!="undefined"&&typeof s[r]=="undefined"){var f=["Could not find a path from ",o," to ",r,"."].join("");throw new Error(f)}return i},extract_shortest_path_from_predecessor_list:function(n,o){for(var r=[],i=o;i;)r.push(i),n[i],i=n[i];return r.reverse(),r},find_path:function(n,o,r){var i=t.single_source_shortest_paths(n,o,r);return t.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(n){var o=t.PriorityQueue,r={},i;n=n||{};for(i in o)o.hasOwnProperty(i)&&(r[i]=o[i]);return r.queue=[],r.sorter=n.sorter||o.default_sorter,r},default_sorter:function(n,o){return n.cost-o.cost},push:function(n,o){var r={value:n,cost:o};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(kt);var le=kt.exports;(function(e){const t=U,n=te,o=ne,r=oe,i=ae,s=_,l=N,a=le;function c(f){return unescape(encodeURIComponent(f)).length}function d(f,y,E){const p=[];let S;for(;(S=f.exec(E))!==null;)p.push({data:S[0],index:S.index,mode:y,length:S[0].length});return p}function B(f){const y=d(s.NUMERIC,t.NUMERIC,f),E=d(s.ALPHANUMERIC,t.ALPHANUMERIC,f);let p,S;return l.isKanjiModeEnabled()?(p=d(s.BYTE,t.BYTE,f),S=d(s.KANJI,t.KANJI,f)):(p=d(s.BYTE_KANJI,t.BYTE,f),S=[]),y.concat(E,p,S).sort(function(A,I){return A.index-I.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function g(f,y){switch(y){case t.NUMERIC:return n.getBitsLength(f);case t.ALPHANUMERIC:return o.getBitsLength(f);case t.KANJI:return i.getBitsLength(f);case t.BYTE:return r.getBitsLength(f)}}function h(f){return f.reduce(function(y,E){const p=y.length-1>=0?y[y.length-1]:null;return p&&p.mode===E.mode?(y[y.length-1].data+=E.data,y):(y.push(E),y)},[])}function m(f){const y=[];for(let E=0;E<f.length;E++){const p=f[E];switch(p.mode){case t.NUMERIC:y.push([p,{data:p.data,mode:t.ALPHANUMERIC,length:p.length},{data:p.data,mode:t.BYTE,length:p.length}]);break;case t.ALPHANUMERIC:y.push([p,{data:p.data,mode:t.BYTE,length:p.length}]);break;case t.KANJI:y.push([p,{data:p.data,mode:t.BYTE,length:c(p.data)}]);break;case t.BYTE:y.push([{data:p.data,mode:t.BYTE,length:c(p.data)}])}}return y}function w(f,y){const E={},p={start:{}};let S=["start"];for(let T=0;T<f.length;T++){const A=f[T],I=[];for(let R=0;R<A.length;R++){const M=A[R],P=""+T+R;I.push(P),E[P]={node:M,lastCount:0},p[P]={};for(let v=0;v<S.length;v++){const C=S[v];E[C]&&E[C].node.mode===M.mode?(p[C][P]=g(E[C].lastCount+M.length,M.mode)-g(E[C].lastCount,M.mode),E[C].lastCount+=M.length):(E[C]&&(E[C].lastCount=M.length),p[C][P]=g(M.length,M.mode)+4+t.getCharCountIndicator(M.mode,y))}}S=I}for(let T=0;T<S.length;T++)p[S[T]].end=0;return{map:p,table:E}}function b(f,y){let E;const p=t.getBestModeForData(f);if(E=t.from(y,p),E!==t.BYTE&&E.bit<p.bit)throw new Error('"'+f+'" cannot be encoded with mode '+t.toString(E)+`.
4
4
  Suggested mode is: `+t.toString(p));switch(E===t.KANJI&&!l.isKanjiModeEnabled()&&(E=t.BYTE),E){case t.NUMERIC:return new n(f);case t.ALPHANUMERIC:return new o(f);case t.KANJI:return new i(f);case t.BYTE:return new r(f)}}e.fromArray=function(y){return y.reduce(function(E,p){return typeof p=="string"?E.push(b(p,null)):p.data&&E.push(b(p.data,p.mode)),E},[])},e.fromString=function(y,E){const p=B(y,l.isKanjiModeEnabled()),S=m(p),T=w(S,E),A=a.find_path(T.map,"start","end"),I=[];for(let R=1;R<A.length-1;R++)I.push(T.table[A[R]].node);return e.fromArray(h(I))},e.rawSplit=function(y){return e.fromArray(B(y,l.isKanjiModeEnabled()))}})(Dt);const nt=N,it=$,ue=Kt,ce=Jt,fe=At,de=It,ct=Nt,ft=tt,ge=Gt,x=_t,he=Lt,me=U,st=Dt;function we(e,t){const n=e.size,o=de.getPositions(t);for(let r=0;r<o.length;r++){const i=o[r][0],s=o[r][1];for(let l=-1;l<=7;l++)if(!(i+l<=-1||n<=i+l))for(let a=-1;a<=7;a++)s+a<=-1||n<=s+a||(l>=0&&l<=6&&(a===0||a===6)||a>=0&&a<=6&&(l===0||l===6)||l>=2&&l<=4&&a>=2&&a<=4?e.set(i+l,s+a,!0,!0):e.set(i+l,s+a,!1,!0))}}function ye(e){const t=e.size;for(let n=8;n<t-8;n++){const o=n%2===0;e.set(n,6,o,!0),e.set(6,n,o,!0)}}function pe(e,t){const n=fe.getPositions(t);for(let o=0;o<n.length;o++){const r=n[o][0],i=n[o][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?e.set(r+s,i+l,!0,!0):e.set(r+s,i+l,!1,!0)}}function Ee(e,t){const n=e.size,o=x.getEncodedBits(t);let r,i,s;for(let l=0;l<18;l++)r=Math.floor(l/3),i=l%3+n-8-3,s=(o>>l&1)===1,e.set(r,i,s,!0),e.set(i,r,s,!0)}function at(e,t,n){const o=e.size,r=he.getEncodedBits(t,n);let i,s;for(i=0;i<15;i++)s=(r>>i&1)===1,i<6?e.set(i,8,s,!0):i<8?e.set(i+1,8,s,!0):e.set(o-15+i,8,s,!0),i<8?e.set(8,o-i-1,s,!0):i<9?e.set(8,15-i-1+1,s,!0):e.set(8,15-i-1,s,!0);e.set(o-8,8,1,!0)}function Ce(e,t){const n=e.size;let o=-1,r=n-1,i=7,s=0;for(let l=n-1;l>0;l-=2)for(l===6&&l--;;){for(let a=0;a<2;a++)if(!e.isReserved(r,l-a)){let c=!1;s<t.length&&(c=(t[s]>>>i&1)===1),e.set(r,l-a,c),i--,i===-1&&(s++,i=7)}if(r+=o,r<0||n<=r){r-=o,o=-o;break}}}function be(e,t,n){const o=new ue;n.forEach(function(a){o.put(a.mode.bit,4),o.put(a.getLength(),me.getCharCountIndicator(a.mode,e)),a.write(o)});const r=nt.getSymbolTotalCodewords(e),i=ft.getTotalCodewordsCount(e,t),s=(r-i)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const l=(s-o.getLengthInBits())/8;for(let a=0;a<l;a++)o.put(a%2?17:236,8);return Be(o,e,t)}function Be(e,t,n){const o=nt.getSymbolTotalCodewords(t),r=ft.getTotalCodewordsCount(t,n),i=o-r,s=ft.getBlocksCount(t,n),l=o%s,a=s-l,c=Math.floor(o/s),d=Math.floor(i/s),B=d+1,g=c-d,h=new ge(g);let m=0;const w=new Array(s),b=new Array(s);let f=0;const y=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const I=A<a?d:B;w[A]=y.slice(m,m+I),b[A]=h.encode(w[A]),m+=I,f=Math.max(f,I)}const E=new Uint8Array(o);let p=0,S,T;for(S=0;S<f;S++)for(T=0;T<s;T++)S<w[T].length&&(E[p++]=w[T][S]);for(S=0;S<g;S++)for(T=0;T<s;T++)E[p++]=b[T][S];return E}function Se(e,t,n,o){let r;if(Array.isArray(e))r=st.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const d=st.rawSplit(e);c=x.getBestVersionForData(d,n)}r=st.fromString(e,c||40)}else throw new Error("Invalid data");const i=x.getBestVersionForData(r,n);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=i;else if(t<i)throw new Error(`
@@ -14,7 +14,7 @@ var j = (e, t, n) => new Promise((o, r) => {
14
14
  }, l = (a) => a.done ? o(a.value) : Promise.resolve(a.value).then(i, s);
15
15
  l((n = n.apply(e, t)).next());
16
16
  });
17
- import { a as Wt, $ as Xt, S as Zt, i as xt, s as $t, f as F, b as te, n as ht, d as nt, k as mt, c as rt, l as P, m as ee, h as U, t as wt, y as It, p as _, g as ne, z as re, j as oe, A as Nt, r as ie, u as se, v as ae, w as le, x as ue } from "./PlayerProfileInfo-Diy46A-k.js";
17
+ import { a as Wt, $ as Xt, S as Zt, i as xt, s as $t, f as F, b as te, n as ht, d as nt, k as mt, c as rt, l as P, m as ee, h as U, t as wt, y as It, p as _, g as ne, z as re, j as oe, A as Nt, r as ie, u as se, v as ae, w as le, x as ue } from "./PlayerProfileInfo-BSKAQ7gm.js";
18
18
  function Rt(e, t) {
19
19
  Wt(e, t);
20
20
  }
@@ -88,10 +88,8 @@ const de = [
88
88
  3706
89
89
  ];
90
90
  I.getSymbolSize = function(t) {
91
- if (!t)
92
- throw new Error('"version" cannot be null or undefined');
93
- if (t < 1 || t > 40)
94
- throw new Error('"version" should be in range from 1 to 40');
91
+ if (!t) throw new Error('"version" cannot be null or undefined');
92
+ if (t < 1 || t > 40) throw new Error('"version" should be in range from 1 to 40');
95
93
  return t * 4 + 17;
96
94
  };
97
95
  I.getSymbolTotalCodewords = function(t) {
@@ -192,8 +190,7 @@ var he = W, kt = {};
192
190
  (function(e) {
193
191
  const t = I.getSymbolSize;
194
192
  e.getRowColCoords = function(o) {
195
- if (o === 1)
196
- return [];
193
+ if (o === 1) return [];
197
194
  const r = Math.floor(o / 7) + 2, i = t(o), s = i === 145 ? 26 : Math.ceil((i - 13) / (2 * r - 2)) * 2, l = [i - 7];
198
195
  for (let a = 1; a < r - 1; a++)
199
196
  l[a] = l[a - 1] - s;
@@ -276,8 +273,7 @@ var zt = {};
276
273
  }, e.getPenaltyN4 = function(r) {
277
274
  let i = 0;
278
275
  const s = r.data.length;
279
- for (let a = 0; a < s; a++)
280
- i += r.data[a];
276
+ for (let a = 0; a < s; a++) i += r.data[a];
281
277
  return Math.abs(Math.ceil(i * 100 / s / 5) - 10) * t.N4;
282
278
  };
283
279
  function n(o, r, i) {
@@ -682,8 +678,7 @@ const G = new Uint8Array(512), tt = new Uint8Array(256);
682
678
  G[n] = G[n - 255];
683
679
  })();
684
680
  st.log = function(t) {
685
- if (t < 1)
686
- throw new Error("log(" + t + ")");
681
+ if (t < 1) throw new Error("log(" + t + ")");
687
682
  return tt[t];
688
683
  };
689
684
  st.exp = function(t) {
@@ -707,8 +702,7 @@ st.mul = function(t, n) {
707
702
  for (let a = 0; a < r.length; a++)
708
703
  i[a] ^= t.mul(r[a], s);
709
704
  let l = 0;
710
- for (; l < i.length && i[l] === 0; )
711
- l++;
705
+ for (; l < i.length && i[l] === 0; ) l++;
712
706
  i = i.slice(l);
713
707
  }
714
708
  return i;
@@ -784,16 +778,14 @@ M.testAlphanumeric = function(t) {
784
778
  }, e.MIXED = {
785
779
  bit: -1
786
780
  }, e.getCharCountIndicator = function(i, s) {
787
- if (!i.ccBits)
788
- throw new Error("Invalid mode: " + i);
781
+ if (!i.ccBits) throw new Error("Invalid mode: " + i);
789
782
  if (!t.isValid(s))
790
783
  throw new Error("Invalid version: " + s);
791
784
  return s >= 1 && s < 10 ? i.ccBits[0] : s < 27 ? i.ccBits[1] : i.ccBits[2];
792
785
  }, e.getBestModeForData = function(i) {
793
786
  return n.testNumeric(i) ? e.NUMERIC : n.testAlphanumeric(i) ? e.ALPHANUMERIC : n.testKanji(i) ? e.KANJI : e.BYTE;
794
787
  }, e.toString = function(i) {
795
- if (i && i.id)
796
- return i.id;
788
+ if (i && i.id) return i.id;
797
789
  throw new Error("Invalid mode");
798
790
  }, e.isValid = function(i) {
799
791
  return i && i.bit && i.ccBits;
@@ -853,8 +845,7 @@ M.testAlphanumeric = function(t) {
853
845
  throw new Error("Invalid QR Code version");
854
846
  typeof m == "undefined" && (m = r.BYTE);
855
847
  const C = t.getSymbolTotalCodewords(g), c = n.getTotalCodewordsCount(g, h), w = (C - c) * 8;
856
- if (m === r.MIXED)
857
- return w;
848
+ if (m === r.MIXED) return w;
858
849
  const E = w - u(m, g);
859
850
  switch (m) {
860
851
  case r.NUMERIC:
@@ -1581,18 +1572,15 @@ function nn(e) {
1581
1572
  if (
1582
1573
  /*errorCode*/
1583
1574
  c[4]
1584
- )
1585
- return en;
1575
+ ) return en;
1586
1576
  if (
1587
1577
  /*isGenerating*/
1588
1578
  c[2]
1589
- )
1590
- return tn;
1579
+ ) return tn;
1591
1580
  if (
1592
1581
  /*qrImageUrl*/
1593
1582
  c[3]
1594
- )
1595
- return $e;
1583
+ ) return $e;
1596
1584
  }
1597
1585
  let m = h(e), C = m && m(e);
1598
1586
  return {
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerProfileInfo-D_PnWTXT.cjs")).then(e=>e.PlayerProfileInfo_ce).then(({default:e})=>{!customElements.get("player-profile-info")&&customElements.define("player-profile-info",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerProfileInfo-CTvgJvby.cjs")).then(e=>e.PlayerProfileInfo_ce).then(({default:e})=>{!customElements.get("player-profile-info")&&customElements.define("player-profile-info",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerProfileInfo-Diy46A-k.js").then((e) => e.P).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerProfileInfo-BSKAQ7gm.js").then((e) => e.P).then(({ default: e }) => {
14
14
  !customElements.get("player-profile-info") && customElements.define("player-profile-info", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as s } from "../components/PlayerProfileInfo-BX4Crs2a.js";
1
+ import { P as s } from "../components/PlayerProfileInfo-8oKh5i5d.js";
2
2
  function r(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-profile-info",
3
- "version": "1.99.57",
3
+ "version": "1.99.59",
4
4
  "type": "module",
5
5
  "main": "es2015/player-profile-info.cjs",
6
6
  "module": "esnext/player-profile-info.js",
@@ -26,7 +26,7 @@ var $e = Object.defineProperty, ce = (e, t) => {
26
26
  case "ui-skeleton":
27
27
  return import(
28
28
  /* webpackMode: "lazy" */
29
- "./ui-skeleton-W50o8tfg.js"
29
+ "./ui-skeleton-COR_76lv.js"
30
30
  ).then(l, E);
31
31
  }
32
32
  }
@@ -151,8 +151,7 @@ var Se = (e) => {
151
151
  }
152
152
  t.$flags$ & 4 && (i.innerHTML += G), l && l.add(n);
153
153
  }
154
- } else
155
- e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
154
+ } else e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
156
155
  return n;
157
156
  }, Le = (e) => {
158
157
  const t = e.$cmpMeta$, r = e.$hostElement$, s = S("attachStyles", t.$tagName$);
@@ -42,7 +42,7 @@ var ce = Object.defineProperty, ue = (e, t) => {
42
42
  case "ui-skeleton":
43
43
  return import(
44
44
  /* webpackMode: "lazy" */
45
- "./ui-skeleton-xXZA3rYO.js"
45
+ "./ui-skeleton-BjsoPeRQ.js"
46
46
  ).then(l, E);
47
47
  }
48
48
  }
@@ -167,8 +167,7 @@ var be = (e) => {
167
167
  }
168
168
  t.$flags$ & 4 && (o.innerHTML += J), l && l.add(n);
169
169
  }
170
- } else
171
- e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
170
+ } else e.adoptedStyleSheets.includes(a) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, a]);
172
171
  return n;
173
172
  }, Oe = (e) => {
174
173
  const t = e.$cmpMeta$, s = e.$hostElement$, r = S("attachStyles", t.$tagName$);
@@ -14,9 +14,9 @@ var n = (t, e, o) => new Promise((m, s) => {
14
14
  }, a = (r) => r.done ? m(r.value) : Promise.resolve(r.value).then(u, g);
15
15
  a((o = o.apply(t, e)).next());
16
16
  });
17
- import { b as p, p as l } from "./index-b2193545-DsMHU6jb.js";
17
+ import { b as p, p as l } from "./index-b2193545-OkT1QrQq.js";
18
18
  import { g as h } from "./app-globals-0f993ce5-D-kw1sls.js";
19
- import { U as k } from "./ui-skeleton-ed169f8f-D3TjbVKy.js";
19
+ import { U as k } from "./ui-skeleton-ed169f8f-BJHdC-wv.js";
20
20
  var c = () => {
21
21
  const t = import.meta.url, e = {};
22
22
  return t !== "" && (e.resourcesUrl = new URL(".", t).href), l(e);
@@ -1,6 +1,6 @@
1
- import { b as e, p as o } from "./index-b2193545-R7ZoV-kY.js";
1
+ import { b as e, p as o } from "./index-b2193545-D9zpmD3Q.js";
2
2
  import { g as a } from "./app-globals-0f993ce5-D-kw1sls.js";
3
- import { U as g } from "./ui-skeleton-ed169f8f-CVY4B-CP.js";
3
+ import { U as g } from "./ui-skeleton-ed169f8f-Df2MlRR-.js";
4
4
  var i = () => {
5
5
  const r = import.meta.url, t = {};
6
6
  return r !== "" && (t.resourcesUrl = new URL(".", r).href), o(t);
@@ -1,4 +1,4 @@
1
- import { r as n, h as t, H as r } from "./index-b2193545-R7ZoV-kY.js";
1
+ import { r as n, h as t, H as r } from "./index-b2193545-OkT1QrQq.js";
2
2
  const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", l = s, a = class {
3
3
  constructor(e) {
4
4
  n(this, e), this.stylingValue = {
@@ -1,4 +1,4 @@
1
- import { r as n, h as t, H as r } from "./index-b2193545-DsMHU6jb.js";
1
+ import { r as n, h as t, H as r } from "./index-b2193545-D9zpmD3Q.js";
2
2
  const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", l = s, a = class {
3
3
  constructor(e) {
4
4
  n(this, e), this.stylingValue = {