PageSourceSearch

https://teachingcouncil.nz/_next/static/chunks/4780-ebc44e6267bf21e9.js

js teachingcouncil.nz collected 2026-10-02 07:34:27 UTC 21,552 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d05841c2-0538-446c-98a4-ad159ab1d61f",e._sentryDebugIdIdentifier="sentry-dbid-d05841c2-0538-446c-98a4-ad159ab1d61f")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4780],{67297:(e,t,r)=>{r.d(t,{UC:()=>z,VY:()=>Q,ZL:()=>S,bL:()=>D,bm:()=>$,hE:()=>j,hJ:()=>x,l9:()=>I});var n=r(13407),o=r(1304),i=r(27915),l=r(61637),s=r(94204),a=r(40040),u=r(17183),h=r(93928),c=r(52420),d=r(77378),f=r(77734),g=r(87090),m=r(13226),p=r(14418),E=r(69184),C=r(96683),M=r(76439),R=Object.defineProperty,w=(e,t)=>R(e,"name",{value:t,configurable:!0}),y="Dialog",[v,A]=(0,l.A)(y),[P,N]=v(y),D=w(e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,h=n.useRef(null),c=n.useRef(null),[d,f]=(0,a.i)({prop:o,defaultProp:null!=i&&i,onChange:l,caller:y}),[g,m]=n.useState(0),[p,E]=n.useState(0);return(0,M.jsx)(P,{scope:t,triggerRef:h,contentRef:c,contentId:(0,s.B)(),titleId:(0,s.B)(),descriptionId:(0,s.B)(),titlePresent:g>0,descriptionPresent:p>0,setTitleCount:m,setDescriptionCount:E,open:d,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:u,children:r})},"Dialog"),I=n.forwardRef(w(function(e,t){let{__scopeDialog:r,...n}=e,l=N("DialogTrigger",r),s=(0,i.s)(t,l.triggerRef);return(0,M.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":V(l.open),...n,ref:s,onClick:(0,o.mK)(e.onClick,l.onOpenToggle)})},"DialogTrigger")),O="DialogPortal",[b,_]=v(O,{forceMount:void 0}),S=w(e=>{let{__scopeDialog:t,forceMount:r,children:o,container:i}=e,l=N(O,t);return(0,M.jsx)(b,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,M.jsx)(d.C,{present:r||l.open,children:(0,M.jsx)(c.Z,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),F="DialogOverlay",x=n.forwardRef(w(function(e,t){let r=_(F,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=N(F,e.__scopeDialog);return i.modal?(0,M.jsx)(d.C,{present:n||i.open,children:(0,M.jsx)(T,{...o,ref:t})}):null},"DialogOverlay")),L=(0,C.TL)("DialogOverlay.RemoveScroll"),T=n.forwardRef(w(function(e,t){let{__scopeDialog:r,...n}=e,o=N(F,r),l=(0,u.e0)(),s=(0,i.s)(t,l);return(0,M.jsx)(p.A,{as:L,allowPinchZoom:!0,shards:[o.contentRef],children:(0,M.jsx)(f.sG.div,{"data-state":V(o.open),...n,ref:s,style:{pointerEvents:"auto",...n.style}})})},"DialogOverlayImpl")),k="DialogContent",z=n.forwardRef(w(function(e,t){let r=_(k,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=N(k,e.__scopeDialog);return(0,M.jsx)(d.C,{present:n||i.open,children:i.modal?(0,M.jsx)(B,{...o,ref:t}):(0,M.jsx)(H,{...o,ref:t})})},"DialogContent")),B=n.forwardRef(w(function(e,t){let r=N(k,e.__scopeDialog),l=n.useRef(null),s=(0,i.s)(t,r.contentRef,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,E.Eq)(e)},[]),(0,M.jsx)(U,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),H=n.forwardRef(w(function(e,t){let r=N(k,e.__scopeDialog),o=n.useRef(!1),i=n.useRef(!1);return(0,M.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,l;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(o.current||null==(l=r.triggerRef.current)||l.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var n,l;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let s=t.target;(null==(l=r.triggerRef.current)?void 0:l.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),U=n.forwardRef(w(function(e,t){let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,s=N(k,r);return(0,g.Oh)(),(0,M.jsx)(M.Fragment,{children:(0,M.jsx)(h.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,M.jsx)(u.qW,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":V(s.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},"DialogContentImpl")),j=n.forwardRef(w(function(e,t){let{__scopeDialog:r,...n}=e,o=N("DialogTitle",r),{setTitleCount:i}=o;return(0,m.N)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,M.jsx)(f.sG.h2,{id:o.titleId,...n,ref:t})},"DialogTitle")),Q=n.forwardRef(w(function(e,t){let{__scopeDialog:r,...n}=e,o=N("DialogDescription",r),{setDescriptionCount:i}=o;return(0,m.N)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,M.jsx)(f.sG.p,{id:o.descriptionId,...n,ref:t})},"DialogDescription")),$=n.forwardRef(w(function(e,t){let{__scopeDialog:r,...n}=e,i=N("DialogClose",r);return(0,M.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function V(e){return e?"open":"closed"}w(V,"getState")},79516:(e,t,r)=>{r.d(t,{X:()=>R});var n,o=r(13407),i=Object.defineProperty,l=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))s.call(t,r)&&u(e,r,t[r]);if(l)for(var r of l(t))a.call(t,r)&&u(e,r,t[r]);return e},c=(e,t)=>{var r={};for(var n in e)s.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&l)for(var n of l(e))0>t.indexOf(n)&&a.call(e,n)&&(r[n]=e[n]);return r};(e=>{let t=class t{constructor(e,r,n,i){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version value out of range");if(i<-1||i>7)throw RangeError("Mask value out of range");this.size=4*e+17;let l=[];for(let e=0;e<this.size;e++)l.push(!1);for(let e=0;e<this.size;e++)this.modules.push(l.slice()),this.isFunction.push(l.slice());this.drawFunctionPatterns();let s=this.addEccAndInterleave(n);if(this.drawCodewords(s),-1==i){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let r=this.getPenaltyScore();r<e&&(i=t,e=r),this.applyMask(t)}}o(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}static encodeText(r,n){let o=e.QrSegment.makeSegments(r);return t.encodeSegments(o,n)}static encodeBinary(r,n){let o=e.QrSegment.makeBytes(r);return t.encodeSegments([o],n)}static encodeSegments(e,n,i=1,s=40,a=-1,u=!0){let h,c;if(!(t.MIN_VERSION<=i&&i<=s&&s<=t.MAX_VERSION)||a<-1||a>7)throw RangeError("Invalid value");for(h=i;;h++){let r=8*t.getNumDataCodewords(h,n),o=l.getTotalBits(e,h);if(o<=r){c=o;break}if(h>=s)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])u&&c<=8*t.getNumDataCodewords(h,e)&&(n=e);let d=[];for(let t of e)for(let e of(r(t.mode.modeBits,4,d),r(t.numChars,t.mode.numCharCountBits(h),d),t.getData()))d.push(e);o(d.length==c);let f=8*t.getNumDataCodewords(h,n);o(d.length<=f),r(0,Math.min(4,f-d.length),d),r(0,(8-d.length%8)%8,d),o(d.length%8==0);for(let e=236;d.length<f;e^=253)r(e,8,d);let g=[];for(;8*g.length<d.length;)g.push(0);return d.forEach((e,t)=>g[t>>>3]|=e<<7-(7&t)),new t(h,n,g,a)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let r=0;r<t;r++)for(let n=0;n<t;n++)(0!=r||0!=n)&&(0!=r||n!=t-1)&&(r!=t-1||0!=n)&&this.drawAlignmentPattern(e[r],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,r=t;for(let e=0;e<10;e++)r=r<<1^(r>>>9)*1335;let i=(t<<10|r)^21522;o(i>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,n(i,e));this.setFunctionModule(8,7,n(i,6)),this.setFunctionModule(8,8,n(i,7)),this.setFunctionModule(7,8,n(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,n(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,n(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,n(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;o(t>>>18==0);for(let e=0;e<18;e++){let r=n(t,e),o=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(o,i,r),this.setFunctionModule(i,o,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){let o=Math.max(Math.abs(n),Math.abs(r)),i=e+n,l=t+r;0<=i&&i<this.size&&0<=l&&l<this.size&&this.setFunctionModule(i,l,2!=o&&4!=o)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+r,1!=Math.max(Math.abs(n),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){let r=this.version,n=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,n))throw RangeError("Invalid argument");let i=t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][r],l=t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][r],s=Math.floor(t.getNumRawDataModules(r)/8),a=i-s%i,u=Math.floor(s/i),h=[],c=t.reedSolomonComputeDivisor(l);for(let r=0,n=0;r<i;r++){let o=e.slice(n,n+u-l+(r<a?0:1));n+=o.length;let i=t.reedSolomonComputeRemainder(o,c);r<a&&o.push(0),h.push(o.concat(i))}let d=[];for(let e=0;e<h[0].length;
vendor: 11,596 bytes, line 1
1e++)h.forEach((t,r)=>{(e!=u-l||r>=a)&&d.push(t[e])});return o(d.length==s),d}drawCodewords(e){if(e.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError("Invalid argument");let r=0;for(let t=this.size-1;t>=1;t-=2){6==t&&(t=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){let l=t-i,s=(t+1&2)==0?this.size-1-o:o;!this.isFunction[s][l]&&r<8*e.length&&(this.modules[s][l]=n(e[r>>>3],7-(7&r)),r++)}}o(r==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let r=0;r<this.size;r++){let n;switch(e){case 0:n=(r+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=r%3==0;break;case 3:n=(r+t)%3==0;break;case 4:n=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:n=r*t%2+r*t%3==0;break;case 6:n=(r*t%2+r*t%3)%2==0;break;case 7:n=((r+t)%2+r*t%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[t][r]&&n&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let n=!1,o=0,i=[0,0,0,0,0,0,0];for(let l=0;l<this.size;l++)this.modules[r][l]==n?5==++o?e+=t.PENALTY_N1:o>5&&e++:(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[r][l],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let n=!1,o=0,i=[0,0,0,0,0,0,0];for(let l=0;l<this.size;l++)this.modules[l][r]==n?5==++o?e+=t.PENALTY_N1:o>5&&e++:(this.finderPenaltyAddHistory(o,i),n||(e+=this.finderPenaltyCountPatterns(i)*t.PENALTY_N3),n=this.modules[l][r],o=1);e+=this.finderPenaltyTerminateAndCount(n,o,i)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let n=0;n<this.size-1;n++){let o=this.modules[r][n];o==this.modules[r][n+1]&&o==this.modules[r+1][n]&&o==this.modules[r+1][n+1]&&(e+=t.PENALTY_N2)}let r=0;for(let e of this.modules)r=e.reduce((e,t)=>e+ +!!t,r);let n=this.size*this.size,i=Math.ceil(Math.abs(20*r-10*n)/n)-1;return o(0<=i&&i<=9),o(0<=(e+=i*t.PENALTY_N4)&&e<=2568888),e}getAlignmentPatternPositions(){if(1==this.version)return[];{let e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),r=[6];for(let n=this.size-7;r.length<e;n-=t)r.splice(1,0,n);return r}}static getNumRawDataModules(e){if(e<t.MIN_VERSION||e>t.MAX_VERSION)throw RangeError("Version number out of range");let r=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;r-=(25*t-10)*t-55,e>=7&&(r-=36)}return o(208<=r&&r<=29648),r}static getNumDataCodewords(e,r){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[r.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError("Degree out of range");let r=[];for(let t=0;t<e-1;t++)r.push(0);r.push(1);let n=1;for(let o=0;o<e;o++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],n),e+1<r.length&&(r[e]^=r[e+1]);n=t.reedSolomonMultiply(n,2)}return r}static reedSolomonComputeRemainder(e,r){let n=r.map(e=>0);for(let o of e){let e=o^n.shift();n.push(0),r.forEach((r,o)=>n[o]^=t.reedSolomonMultiply(r,e))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let r=0;for(let n=7;n>=0;n--)r=r<<1^(r>>>7)*285^(t>>>n&1)*e;return o(r>>>8==0),r}finderPenaltyCountPatterns(e){let t=e[1];o(t<=3*this.size);let r=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(r&&e[0]>=4*t&&e[6]>=t?1:0)+(r&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,r){return e&&(this.finderPenaltyAddHistory(t,r),t=0),t+=this.size,this.finderPenaltyAddHistory(t,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(e,t){0==t[0]&&(e+=this.size),t.pop(),t.unshift(e)}};function r(e,t,r){if(t<0||t>31||e>>>t!=0)throw RangeError("Value out of range");for(let n=t-1;n>=0;n--)r.push(e>>>n&1)}function n(e,t){return(e>>>t&1)!=0}function o(e){if(!e)throw Error("Assertion error")}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;let i=class e{constructor(e,t,r){if(this.mode=e,this.numChars=t,this.bitData=r,t<0)throw RangeError("Invalid argument");this.bitData=r.slice()}static makeBytes(t){let n=[];for(let e of t)r(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError("String contains non-numeric characters");let n=[];for(let e=0;e<t.length;){let o=Math.min(t.length-e,3);r(parseInt(t.substring(e,e+o),10),3*o+1,n),e+=o}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){let n;if(!e.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let o=[];for(n=0;n+2<=t.length;n+=2){let i=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));r(i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),11,o)}return n<t.length&&r(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,o),new e(e.Mode.ALPHANUMERIC,t.length,o)}static makeSegments(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)r(t,8,n);else if(t<16384)r(2,2,n),r(t,14,n);else if(t<1e6)r(6,3,n),r(t,21,n);else throw RangeError("ECI assignment value out of range");return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let r=0;for(let n of e){let e=n.mode.numCharCountBits(t);if(n.numChars>=1<<e)return 1/0;r+=4+e+n.bitData.length}return r}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let r=0;r<e.length;r++)"%"!=e.charAt(r)?t.push(e.charCodeAt(r)):(t.push(parseInt(e.substring(r+1,r+3),16)),r+=2);return t}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let l=i;e.QrSegment=i})(n||(n={})),(e=>{(e=>{let t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(e.QrCode||(e.QrCode={}))})(n||(n={})),(e=>{(e=>{let t=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(e.QrSegment||(e.QrSegment={}))})(n||(n={}));var d=n,f={L:d.QrCode.Ecc.LOW,M:d.QrCode.Ecc.MEDIUM,Q:d.QrCode.Ecc.QUARTILE,H:d.QrCode.Ecc.HIGH},g="#FFFFFF",m="#000000";function p(e,t=0){let r=[];return e.forEach(function(e,n){let o=null;e.forEach(function(i,l){if(!i&&null!==o){r.push(`M${o+t} ${n+t}h${l-o}v1H${o+t}z`),o=null;return}if(l===e.length-1){if(!i)return;null===o?r.push(`M${l+t},${n+t} h1v1H${l+t}z`):r.push(`M${o+t},${n+t} h${l+1-o}v1H${o+t}z`);return}i&&null===o&&(o=l)})}),r.join("")}function E(e,t){return e.slice().map((e,r)=>r<t.y||r>=t.y+t.h?e:e.map((e,r)=>(r<t.x||r>=t.x+t.w)&&e))}function C({value:e,level:t,minVersion:r,includeMargin:n,marginSize:i,imageSettings:l,size:s,boostLevel:a}){let u=o.useMemo(()=>{let n=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...d.QrSegment.makeSegments(t)),e),[]);return d.QrCode.encodeSegments(n,f[t],r,void 0,void 0,a)},[e,t,r,a]),{cells:h,margin:c,numCells:g,calculatedImageSettings:m}=o.useMemo(()=>{let e=u.getModules(),t=null!=i?Math.max(Math.floor(i),0):4*!!n,r=e.length+2*t,o=function(e,t,r,n){if(null==n)return null;let o=e.length+2*r,i=Math.floor(.1*t),l=o/t,s=(n.width||i)*l,a=(n.height||i)*l,u=null==n.x?e.length/2-s/2:n.x*l,h=null==n.y?e.length/2-a/2:n.y*l,c=null==n.opacity?1:n.opacity,d=null;if(n.excavate){let e=Math.floor(u),t=Math.floor(h),r=Math.ceil(s+u-e),n=Math.ceil(a+h-t);d={x:e,y:t,w:r,h:n}}return{x:u,y:h,h:a,w:s,excavation:d,opacity:c,crossOrigin:n.crossOrigin}}(e,s,t,l);return{cells:e,margin:t,numCells:r,calculatedImageSettings:o}},[u,s,l,n,i]);return{qrcode:u,margin:c,cells:h,numCells:g,calculatedImageSettings:m}}var M=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}(),R=o.forwardRef(function(e,t){let{value:r,size:n=128,level:i="L",bgColor:l=g,fgColor:s=m,includeMargin:a=!1,minVersion:u=1,boostLevel:d,marginSize:f,imageSettings:R}=e,w=c(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:y}=w,v=c(w,["style"]),A=null==R?void 0:R.src,P=o.useRef(null),N=o.useRef(null),D=o.useCallback(e=>{P.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[I,O]=o.useState(!1),{margin:b,cells:_,numCells:S,calculatedImageSettings:F}=C({value:r,level:i,minVersion:u,boostLevel:d,includeMargin:a,marginSize:f,imageSettings:R,size:n});o.useEffect(()=>{if(null!=P.current){let e=P.current,t=e.getContext("2d");if(!t)return;let r=_,o=N.current,i=null!=F&&null!==o&&o.complete&&0!==o.naturalHeight&&0!==o.naturalWidth;i&&null!=F.excavation&&(r=E(_,F.excavation));let a=window.devicePixelRatio||1;e.height=e.width=n*a;let u=n/S*a;t.scale(u,u),t.fillStyle=l,t.fillRect(0,0,S,S),t.fillStyle=s,M?t.fill(new Path2D(p(r,b))):_.forEach(function(e,r){e.forEach(function(e,n){e&&t.fillRect(n+b,r+b,1,1)})}),F&&(t.globalAlpha=F.opacity),i&&t.drawImage(o,F.x+b,F.y+b,F.w,F.h)}}),o.useEffect(()=>{O(!1)},[A]);let x=h({height:n,width:n},y),L=null;return null!=A&&(L=o.createElement("img",{src:A,key:A,style:{display:"none"},onLoad:()=>{O(!0)},ref:N,crossOrigin:null==F?void 0:F.crossOrigin})),o.createElement(o.Fragment,null,o.createElement("canvas",h({style:x,height:n,width:n,ref:D,role:"img"},v)),L)});R.displayName="QRCodeCanvas",o.forwardRef(function(e,t){let{value:r,size:n=128,level:i="L",bgColor:l=g,fgColor:s=m,includeMargin:a=!1,minVersion:u=1,boostLevel:d,title:f,marginSize:M,imageSettings:R}=e,w=c(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:y,cells:v,numCells:A,calculatedImageSettings:P}=C({value:r,level:i,minVersion:u,boostLevel:d,includeMargin:a,marginSize:M,imageSettings:R,size:n}),N=v,D=null;null!=R&&null!=P&&(null!=P.excavation&&(N=E(v,P.excavation)),D=o.createElement("image",{href:R.src,height:P.h,width:P.w,x:P.x+y,y:P.y+y,preserveAspectRatio:"none",opacity:P.opacity,crossOrigin:P.crossOrigin}));let I=p(N,y);return o.createElement("svg",h({height:n,width:n,viewBox:`0 0 ${A} ${A}`,ref:t,role:"img"},w),!!f&&o.createElement("title",null,f),o.createElement("path",{fill:l,d:`M0,0 h${A}v${A}H0z`,shapeRendering:"crispEdges"}),o.createElement("path",{fill:s,d:I,shapeRendering:"crispEdges"}),D)}).displayName="QRCodeSVG"}}]);

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.