PageSourceSearch

https://www.unsw.edu.au/etc.clientlibs/unsw-common/clientlibs/clie…/qrcode.min.2026.918.140008.0009116387.js

js unsw.edu.au collected 2026-10-01 07:16:48 UTC 23,554 bytes, 8 lines download raw bytes

1var QRCode=(function(x){"use strict";var Z,Bt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Ct=[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],W=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 4*n+17},G=function(n){return Ct[n]},S=function(n){for(var t=0;n!==0;)t++,n>>>=1;return t},Mt=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');Z=n},ht=function(){return Z!==void 0},Pt=function(n){return Z(n)};function M(n,t){return n(t={exports:{}},t.exports),t.exports}var A=M((function(n,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(r){return r&&r.bit!==void 0&&r.bit>=0&&r.bit<4},t.from=function(r,e){if(t.isValid(r))return r;try{return(function(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+o)}})(r)}catch(o){return e}}}));function ct(){this.buffer=[],this.length=0}A.L,A.M,A.Q,A.H,A.isValid,ct.prototype={get:function(n){var t=Math.floor(n/8);return(this.buffer[t]>>>7-n%8&1)==1},put:function(n,t){for(var r=0;r<t;r++)this.putBit((n>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(n){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),n&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Rt=ct;function J(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}J.prototype.set=function(n,t,r,e){var o=n*this.size+t;this.data[o]=r,e&&(this.reservedBit[o]=!0)},J.prototype.get=function(n,t){return this.data[n*this.size+t]},J.prototype.xor=function(n,t,r){this.data[n*this.size+t]^=r},J.prototype.isReserved=function(n,t){return this.reservedBit[n*this.size+t]};var Tt=J,tt=M((function(n,t){var r=W;t.getRowColCoords=function(e){if(e===1)return[];for(var o=Math.floor(e/7)+2,a=r(e),c=a===145?26:2*Math.ceil((a-13)/(2*o-2)),i=[a-7],s=1;s<o-1;s++)i[s]=i[s-1]-c;return i.push(6),i.reverse()},t.getPositions=function(e){for(var o=[],a=t.getRowColCoords(e),c=a.length,i=0;i<c;i++)for(var s=0;s<c;s++)i===0&&s===0||i===0&&s===c-1||i===c-1&&s===0||o.push([a[i],a[s]]);return o}}));tt.getRowColCoords,tt.getPositions;var Lt=W,bt=function(n){var t=Lt(n);return[[0,0],[t-7,0],[0,t-7]]},B=M((function(n,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r=3,e=3,o=40,a=10;function c(i,s,u){switch(i){case t.Patterns.PATTERN000:return(s+u)%2==0;case t.Patterns.PATTERN001:return s%2==0;case t.Patterns.PATTERN010:return u%3==0;case t.Patterns.PATTERN011:return(s+u)%3==0;case t.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(u/3))%2==0;case t.Patterns.PATTERN101:return s*u%2+s*u%3==0;case t.Patterns.PATTERN110:return(s*u%2+s*u%3)%2==0;case t.Patterns.PATTERN111:return(s*u%3+(s+u)%2)%2==0;default:throw new Error("bad maskPattern:"+i)}}t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){for(var s=i.size,u=0,h=0,f=0,g=null,l=null,d=0;d<s;d++){h=f=0,g=l=null;for(var v=0;v<s;v++){var w=i.get(d,v);w===g?h++:(h>=5&&(u+=r+(h-5)),g=w,h=1),(w=i.get(v,d))===l?f++:(f>=5&&(u+=r+(f-5)),l=w,f=1)}h>=5&&(u+=r+(h-5)),f>=5&&(u+=r+(f-5))}return u},t.getPenaltyN2=function(i){for(var s=i.size,u=0,h=0;h<s-1;h++)for(var f=0;f<s-1;f++){var g=i.get(h,f)+i.get(h,f+1)+i.get(h+1,f)+i.get(h+1,f+1);g!==4&&g!==0||u++}return u*e},t.getPenaltyN3=function(i){for(var s=i.size,u=0,h=0,f=0,g=0;g<s;g++){h=f=0;for(var l=0;l<s;l++)h=h<<1&2047|i.get(g,l),l>=10&&(h===1488||h===93)&&u++,f=f<<1&2047|i.get(l,g),l>=10&&(f===1488||f===93)&&u++}return u*o},t.getPenaltyN4=function(i){for(var s=0,u=i.data.length,h=0;h<u;h++)s+=i.data[h];return Math.abs(Math.ceil(100*s/u/5)-10)*a}
1,t.applyMask=function(i,s){for(var u=s.size,h=0;h<u;h++)for(var f=0;f<u;f++)s.isReserved(f,h)||s.xor(f,h,c(i,f,h))},t.getBestMask=function(i,s){for(var u=Object.keys(t.Patterns).length,h=0,f=1/0,g=0;g<u;g++){s(g),t.applyMask(g,i);var l=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(g,i),l<f&&(f=l,h=g)}return h}}));B.Patterns,B.isValid,B.getPenaltyN1,B.getPenaltyN2,B.getPenaltyN3,B.getPenaltyN4,B.applyMask,B.getBestMask;var V=[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],q=[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],Ut=function(n,t){switch(t){case A.L:return V[4*(n-1)+0];case A.M:return V[4*(n-1)+1];case A.Q:return V[4*(n-1)+2];case A.H:return V[4*(n-1)+3];default:return}},et=function(n,t){switch(t){case A.L:return q[4*(n-1)+0];case A.M:return q[4*(n-1)+1];case A.Q:return q[4*(n-1)+2];case A.H:return q[4*(n-1)+3];default:return}},K=new Uint8Array(512),rt=new Uint8Array(256);(function(){for(var n=1,t=0;t<255;t++)K[t]=n,rt[n]=t,256&(n<<=1)&&(n^=285);for(var r=255;r<512;r++)K[r]=K[r-255]})();var xt=function(n){return K[n]},gt=function(n,t){return n===0||t===0?0:K[rt[n]+rt[t]]},O=M((function(n,t){t.mul=function(r,e){for(var o=new Uint8Array(r.length+e.length-1),a=0;a<r.length;a++)for(var c=0;c<e.length;c++)o[a+c]^=gt(r[a],e[c]);return o},t.mod=function(r,e){for(var o=new Uint8Array(r);o.length-e.length>=0;){for(var a=o[0],c=0;c<e.length;c++)o[c]^=gt(e[c],a);for(var i=0;i<o.length&&o[i]===0;)i++;o=o.slice(i)}return o},t.generateECPolynomial=function(r){for(var e=new Uint8Array([1]),o=0;o<r;o++)e=t.mul(e,new Uint8Array([1,xt(o)]));return e}}));function nt(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}O.mul,O.mod,O.generateECPolynomial,nt.prototype.initialize=function(n){this.degree=n,this.genPoly=O.generateECPolynomial(this.degree)},nt.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");var t=new Uint8Array(n.length+this.degree);t.set(n);var r=O.mod(t,this.genPoly),e=this.degree-r.length;if(e>0){var o=new Uint8Array(this.degree);return o.set(r,e),o}return r};var kt=nt,j=function(n){return!isNaN(n)&&n>=1&&n<=40},$="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",Ft="(?:(?![A-Z0-9 $%*+\\-./:]|"+($=$.replace(/u/g,"\\u"))+`)(?:.|[\r
2]))+`,St=new RegExp($,"g"),Dt=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Yt=new RegExp(Ft,"g"),_t=new RegExp("[0-9]+","g"),zt=new RegExp("[A-Z $%*+\\-./:]+","g"),Ht=new RegExp("^"+$+"$"),Jt=new RegExp("^[0-9]+$"),Kt=new RegExp("^[A-Z0-9 $%*+\\-./:]+$"),b={KANJI:St,BYTE_KANJI:Dt,BYTE:Yt,NUMERIC:_t,ALPHANUMERIC:zt,testKanji:function(n){return Ht.test(n)},testNumeric:function(n){return Jt.test(n)},testAlphanumeric:function(n){return Kt.test(n)}},p=M((function(n,t){t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(r,e){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!j(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?r.ccBits[0]:e<27?r.ccBits[1]:r.ccBits[2]},t.getBestModeForData=function(r){return b.testNumeric(r)?t.NUMERIC:b.testAlphanumeric(r)?t.ALPHANUMERIC:b.testKanji(r)?t.KANJI:t.BYTE},t.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},t.isValid=function(r){return r&&r.bit&&r.ccBits},t.from=function(r,e){if(t.isValid(r))return r;
2try{return(function(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+o)}})(r)}catch(o){return e}}}));p.NUMERIC,p.ALPHANUMERIC,p.BYTE,p.KANJI,p.MIXED,p.getCharCountIndicator,p.getBestModeForData,p.isValid;var k=M((function(n,t){var r=S(7973);function e(a,c){return p.getCharCountIndicator(a,c)+4}function o(a,c){var i=0;return a.forEach((function(s){var u=e(s.mode,c);i+=u+s.getBitsLength()})),i}t.from=function(a,c){return j(a)?parseInt(a,10):c},t.getCapacity=function(a,c,i){if(!j(a))throw new Error("Invalid QR Code version");i===void 0&&(i=p.BYTE);var s=8*(G(a)-et(a,c));if(i===p.MIXED)return s;var u=s-e(i,a);switch(i){case p.NUMERIC:return Math.floor(u/10*3);case p.ALPHANUMERIC:return Math.floor(u/11*2);case p.KANJI:return Math.floor(u/13);case p.BYTE:default:return Math.floor(u/8)}},t.getBestVersionForData=function(a,c){var i,s=A.from(c,A.M);if(Array.isArray(a)){if(a.length>1)return(function(u,h){for(var f=1;f<=40;f++)if(o(u,f)<=t.getCapacity(f,h,p.MIXED))return f})(a,s);if(a.length===0)return 1;i=a[0]}else i=a;return(function(u,h,f){for(var g=1;g<=40;g++)if(h<=t.getCapacity(g,f,u))return g})(i.mode,i.getLength(),s)},t.getEncodedBits=function(a){if(!j(a)||a<7)throw new Error("Invalid QR Code version");for(var c=a<<12;S(c)-r>=0;)c^=7973<<S(c)-r;return a<<12|c}}));k.getCapacity,k.getBestVersionForData,k.getEncodedBits;var lt=S(1335),Ot=function(n,t){for(var r=n.bit<<3|t,e=r<<10;S(e)-lt>=0;)e^=1335<<S(e)-lt;return 21522^(r<<10|e)};function D(n){this.mode=p.NUMERIC,this.data=n.toString()}D.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%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(n){var t,r,e;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),e=parseInt(r,10),n.put(e,10);var o=this.data.length-t;o>0&&(r=this.data.substr(t),e=parseInt(r,10),n.put(e,3*o+1))};var dt=D,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 Y(n){this.mode=p.ALPHANUMERIC,this.data=n}Y.getBitsLength=function(n){return 11*Math.floor(n/2)+n%2*6},Y.prototype.getLength=function(){return this.data.length},Y.prototype.getBitsLength=function(){return Y.getBitsLength(this.data.length)},Y.prototype.write=function(n){var t;for(t=0;t+2<=this.data.length;t+=2){var r=45*ot.indexOf(this.data[t]);r+=ot.indexOf(this.data[t+1]),n.put(r,11)}this.data.length%2&&n.put(ot.indexOf(this.data[t]),6)};var vt=Y;function _(n){this.mode=p.BYTE,typeof n=="string"&&(n=(function(t){for(var r=[],e=t.length,o=0;o<e;o++){var a=t.charCodeAt(o);if(a>=55296&&a<=56319&&e>o+1){var c=t.charCodeAt(o+1);c>=56320&&c<=57343&&(a=1024*(a-55296)+c-56320+65536,o+=1)}a<128?r.push(a):a<2048?(r.push(a>>6|192),r.push(63&a|128)):a<55296||a>=57344&&a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a>=65536&&a<=1114111?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):r.push(239,191,189)}return new Uint8Array(r).buffer})(n)),this.data=new Uint8Array(n)}_.getBitsLength=function(n){return 8*n},_.prototype.getLength=function(){return this.data.length},_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)},_.prototype.write=function(n){for(var t=0,r=this.data.length;t<r;t++)n.put(this.data[t],8)};var pt=_;function z(n){this.mode=p.KANJI,this.data=n}z.getBitsLength=function(n){return 13*n},z.prototype.getLength=function(){return this.data.length},z.prototype.getBitsLength=function(){return z.getBitsLength(this.data.length)},z.prototype.write=function(n){var t;for(t=0;t<this.data.length;t++){var r=Pt(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+`
3Make sure your charset is UTF-8`);r-=49472}r=192*(r>>>8&255)+(255&r),n.put(r,13)}};var wt=z,Qt=M((function(n){var t={single_source_shortest_paths:function(r,e,o){var a={},c={};c[e]=0;var i,s,u,h,f,g,l,d=t.PriorityQueue.make();for(d.push(e,0);!d.empty();)for(u in s=(i=d.pop()).value,h=i.cost,f=r[s]||{})f.hasOwnProperty(u)&&(g=h+f[u],l=c[u],(c[u]===void 0||l>g)&&(c[u]=g,d.push(u,g),a[u]=s));if(o!==void 0&&c[o]===void 0){var v=["Could not find a path from ",e," to ",o,"."].join("");throw new Error(v)}return a},extract_shortest_path_from_predecessor_list:function(r,e){for(var o=[],a=e;a;)o.push(a),a=r[a];return o.reverse(),o},find_path:function(r,e,o){var a=t.single_source_shortest_paths(r,e,o);return t.extract_shortest_path_from_predecessor_list(a,o)},PriorityQueue:{make:function(r){var e,o=t.PriorityQueue,a={};for(e in r=r||{},o)o.hasOwnProperty(e)&&(a[e]=o[e]);return a.queue=[],a.sorter=r.sorter||o.default_sorter,a},default_sorter:function(r,e){return r.cost-e.cost},push:function(r,e){var o={value:r,cost:e};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};n.exports=t})),H=M((function(n,t){function r(i){return unescape(encodeURIComponent(i)).length}function e(i,s,u){for(var h,f=[];(h=i.exec(u))!==null;)f.push({data:h[0],index:h.index,mode:s,length:h[0].length});return f}function o(i){var s,u,h=e(b.NUMERIC,p.NUMERIC,i),f=e(b.ALPHANUMERIC,p.ALPHANUMERIC,i);return ht()?(s=e(b.BYTE,p.BYTE,i),u=e(b.KANJI,p.KANJI,i)):(s=e(b.BYTE_KANJI,p.BYTE,i),u=[]),h.concat(f,s,u).sort((function(g,l){return g.index-l.index})).map((function(g){return{data:g.data,mode:g.mode,length:g.length}}))}function a(i,s){switch(s){case p.NUMERIC:return dt.getBitsLength(i);case p.ALPHANUMERIC:return vt.getBitsLength(i);case p.KANJI:return wt.getBitsLength(i);case p.BYTE:return pt.getBitsLength(i)}}function c(i,s){var u,h=p.getBestModeForData(i);
3if((u=p.from(s,h))!==p.BYTE&&u.bit<h.bit)throw new Error('"'+i+'" cannot be encoded with mode '+p.toString(u)+`.
4 Suggested mode is: `+p.toString(h));switch(u!==p.KANJI||ht()||(u=p.BYTE),u){case p.NUMERIC:return new dt(i);case p.ALPHANUMERIC:return new vt(i);case p.KANJI:return new wt(i);case p.BYTE:return new pt(i)}}t.fromArray=function(i){return i.reduce((function(s,u){return typeof u=="string"?s.push(c(u,null)):u.data&&s.push(c(u.data,u.mode)),s}),[])},t.fromString=function(i,s){for(var u=(function(l,d){for(var v={},w={start:{}},y=["start"],m=0;m<l.length;m++){for(var E=l[m],C=[],P=0;P<E.length;P++){var N=E[P],R=""+m+P;C.push(R),v[R]={node:N,lastCount:0},w[R]={};for(var Q=0;Q<y.length;Q++){var I=y[Q];v[I]&&v[I].node.mode===N.mode?(w[I][R]=a(v[I].lastCount+N.length,N.mode)-a(v[I].lastCount,N.mode),v[I].lastCount+=N.length):(v[I]&&(v[I].lastCount=N.length),w[I][R]=a(N.length,N.mode)+4+p.getCharCountIndicator(N.mode,d))}}y=C}for(var F=0;F<y.length;F++)w[y[F]].end=0;return{map:w,table:v}})((function(l){for(var d=[],v=0;v<l.length;v++){var w=l[v];switch(w.mode){case p.NUMERIC:d.push([w,{data:w.data,mode:p.ALPHANUMERIC,length:w.length},{data:w.data,mode:p.BYTE,length:w.length}]);break;case p.ALPHANUMERIC:d.push([w,{data:w.data,mode:p.BYTE,length:w.length}]);break;case p.KANJI:d.push([w,{data:w.data,mode:p.BYTE,length:r(w.data)}]);break;case p.BYTE:d.push([{data:w.data,mode:p.BYTE,length:r(w.data)}])}}return d})(o(i)),s),h=Qt.find_path(u.map,"start","end"),f=[],g=1;g<h.length-1;g++)f.push(u.table[h[g]].node);return t.fromArray((function(l){return l.reduce((function(d,v){var w=d.length-1>=0?d[d.length-1]:null;return w&&w.mode===v.mode?(d[d.length-1].data+=v.data,d):(d.push(v),d)}),[])})(f))},t.rawSplit=function(i){return t.fromArray(o(i))}}));function at(n,t,r){var e,o,a=n.size,c=Ot(t,r);for(e=0;e<15;e++)o=(c>>e&1)==1,e<6?n.set(e,8,o,!0):e<8?n.set(e+1,8,o,!0):n.set(a-15+e,8,o,!0),e<8?n.set(8,a-e-1,o,!0):e<9?n.set(8,15-e-1+1,o,!0):n.set(8,15-e-1,o,!0);n.set(a-8,8,1,!0)}function Vt(n,t,r){var e=new Rt;r.forEach((function(i){e.put(i.mode.bit,4),e.put(i.getLength(),p.getCharCountIndicator(i.mode,n)),i.write(e)}));var o=8*(G(n)-et(n,t));for(e.getLengthInBits()+4<=o&&e.put(0,4);e.getLengthInBits()%8!=0;)e.putBit(0);for(var a=(o-e.getLengthInBits())/8,c=0;c<a;c++)e.put(c%2?17:236,8);return(function(i,s,u){for(var h=G(s),f=et(s,u),g=h-f,l=Ut(s,u),d=l-h%l,v=Math.floor(h/l),w=Math.floor(g/l),y=w+1,m=v-w,E=new kt(m),C=0,P=new Array(l),N=new Array(l),R=0,Q=new Uint8Array(i.buffer),I=0;I<l;I++){var F=I<d?w:y;P[I]=Q.slice(C,C+F),N[I]=E.encode(P[I]),C+=F,R=Math.max(R,F)}var T,L,ft=new Uint8Array(h),Nt=0;for(T=0;T<R;T++)for(L=0;L<l;L++)T<P[L].length&&(ft[Nt++]=P[L][T]);for(T=0;T<m;T++)for(L=0;L<l;L++)ft[Nt++]=N[L][T];return ft})(e,n,t)}function qt(n,t,r,e){var o;if(Array.isArray(n))o=H.fromArray(n);else{if(typeof n!="string")throw new Error("Invalid data");var a=t;if(!a){var c=H.rawSplit(n);a=k.getBestVersionForData(c,r)}o=H.fromString(n,a||40)}var i=k.getBestVersionForData(o,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<i)throw new Error(`
5The chosen QR Code version cannot contain this amount of data.
6Minimum version required to store current data is: `+i+`.
7`)}else t=i;var s=Vt(t,r,o),u=W(t),h=new Tt(u);return(function(f,g){for(var l=f.size,d=bt(g),v=0;v<d.length;v++)for(var w=d[v][0],y=d[v][1],m=-1;m<=7;m++)if(!(w+m<=-1||l<=w+m))for(var E=-1;E<=7;E++)y+E<=-1||l<=y+E||(m>=0&&m<=6&&(E===0||E===6)||E>=0&&E<=6&&(m===0||m===6)||m>=2&&m<=4&&E>=2&&E<=4?f.set(w+m,y+E,!0,!0):f.set(w+m,y+E,!1,!0))})(h,t),(function(f){for(var g=f.size,l=8;l<g-8;l++){var d=l%2==0;f.set(l,6,d,!0),f.set(6,l,d,!0)}})(h),(function(f,g){for(var l=tt.getPositions(g),d=0;d<l.length;d++)for(var v=l[d][0],w=l[d][1],y=-2;y<=2;y++)for(var m=-2;m<=2;m++)y===-2||y===2||m===-2||m===2||y===0&&m===0?f.set(v+y,w+m,!0,!0):f.set(v+y,w+m,!1,!0)})(h,t),at(h,r,0),t>=7&&(function(f,g){for(var l,d,v,w=f.size,y=k.getEncodedBits(g),m=0;m<18;m++)l=Math.floor(m/3),d=m%3+w-8-3,v=(y>>m&1)==1,f.set(l,d,v,!0),f.set(d,l,v,!0)})(h,t),(function(f,g){for(var l=f.size,d=-1,v=l-1,w=7,y=0,m=l-1;m>0;m-=2)for(m===6&&m--;;){for(var E=0;E<2;E++)if(!f.isReserved(v,m-E)){var C=!1;y<g.length&&(C=(g[y]>>>w&1)==1),f.set(v,m-E,C),--w===-1&&(y++,w=7)}if((v+=d)<0||l<=v){v-=d,d=-d;break}}})(h,s),isNaN(e)&&(e=B.getBestMask(h,at.bind(null,h,r))),B.applyMask(e,h),at(h,r,e),{modules:h,version:t,errorCorrectionLevel:r,maskPattern:e,segments:o}}H.fromArray,H.fromString,H.rawSplit;var it=function(n,t){if(n===void 0||n==="")throw new Error("No input text");var r,e,o=A.M;return t!==void 0&&(o=A.from(t.errorCorrectionLevel,A.M),r=k.from(t.version),e=B.from(t.maskPattern),t.toSJISFunc&&Mt(t.toSJISFunc)),qt(n,r,o,e)},U=M((function(n,t){function r(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");var o=e.slice().replace("#","").split("");
7if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+e);o.length!==3&&o.length!==4||(o=Array.prototype.concat.apply([],o.map((function(c){return[c,c]})))),o.length===6&&o.push("F","F");var a=parseInt(o.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+o.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var o=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,a=e.width&&e.width>=21?e.width:void 0,c=e.scale||4;return{width:a,scale:a?4:c,margin:o,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,o){return o.width&&o.width>=e+2*o.margin?o.width/(e+2*o.margin):o.scale},t.getImageWidth=function(e,o){var a=t.getScale(e,o);return Math.floor((e+2*o.margin)*a)},t.qrToImageData=function(e,o,a){for(var c=o.modules.size,i=o.modules.data,s=t.getScale(c,a),u=Math.floor((c+2*a.margin)*s),h=a.margin*s,f=[a.color.light,a.color.dark],g=0;g<u;g++)for(var l=0;l<u;l++){var d=4*(g*u+l),v=a.color.light;g>=h&&l>=h&&g<u-h&&l<u-h&&(v=f[i[Math.floor((g-h)/s)*c+Math.floor((l-h)/s)]?1:0]),e[d++]=v.r,e[d++]=v.g,e[d++]=v.b,e[d]=v.a}}}));U.getOptions,U.getScale,U.getImageWidth,U.qrToImageData;var X=M((function(n,t){t.render=function(r,e,o){var a=o,c=e;a!==void 0||e&&e.getContext||(a=e,e=void 0),e||(c=(function(){try{return document.createElement("canvas")}catch(h){throw new Error("You need to specify a canvas element")}})()),a=U.getOptions(a);var i=U.getImageWidth(r.modules.size,a),s=c.getContext("2d"),u=s.createImageData(i,i);return U.qrToImageData(u.data,r,a),(function(h,f,g){h.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=g,f.width=g,f.style.height=g+"px",f.style.width=g+"px"})(s,c,i),s.putImageData(u,0,0),c},t.renderToDataURL=function(r,e,o){var a=o;a!==void 0||e&&e.getContext||(a=e,e=void 0),a||(a={});var c=t.render(r,e,a),i=a.type||"image/png",s=a.rendererOpts||{};return c.toDataURL(i,s.quality)}}));function mt(n,t){var r=n.a/255,e=t+'="'+n.hex+'"';return r<1?e+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':e}function ut(n,t,r){var e=n+t;return r!==void 0&&(e+=" "+r),e}X.render,X.renderToDataURL;var jt=function(n,t,r){var e=U.getOptions(t),o=n.modules.size,a=n.modules.data,c=o+2*e.margin,i=e.color.light.a?"<path "+mt(e.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",s="<path "+mt(e.color.dark,"stroke")+' d="'+(function(f,g,l){for(var d="",v=0,w=!1,y=0,m=0;m<f.length;m++){var E=Math.floor(m%g),C=Math.floor(m/g);E||w||(w=!0),f[m]?(y++,m>0&&E>0&&f[m-1]||(d+=w?ut("M",E+l,.5+C+l):ut("m",v,0),v=0,w=!1),E+1<g&&f[m+1]||(d+=ut("h",y),y=0)):v++}return d})(a,o,e.margin)+'"/>',u='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(e.width?'width="'+e.width+'" height="'+e.width+'" ':"")+u+' shape-rendering="crispEdges">'+i+s+`</svg>
8`;return typeof r=="function"&&r(null,h),h};function st(n,t,r,e,o){var a=[].slice.call(arguments,1),c=a.length,i=typeof a[c-1]=="function";if(!i&&!Bt())throw new Error("Callback required as last argument");if(!i){if(c<1)throw new Error("Too few arguments provided");return c===1?(r=t,t=e=void 0):c!==2||t.getContext||(e=r,r=t,t=void 0),new Promise((function(u,h){try{var f=it(r,e);u(n(f,t,e))}catch(g){h(g)}}))}if(c<2)throw new Error("Too few arguments provided");c===2?(o=r,r=t,t=e=void 0):c===3&&(t.getContext&&o===void 0?(o=e,e=void 0):(o=e,e=r,r=t,t=void 0));try{var s=it(r,e);o(null,n(s,t,e))}catch(u){o(u)}}var yt=it,Et=st.bind(null,X.render),At=st.bind(null,X.renderToDataURL),It=st.bind(null,(function(n,t,r){return jt(n,r)})),$t={create:yt,toCanvas:Et,toDataURL:At,toString:It};return x.create=yt,x.default=$t,x.toCanvas=Et,x.toDataURL=At,x.toString=It,Object.defineProperty(x,"__esModule",{value:!0}),x})({});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.