"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[659],{9205:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(2265);let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:s,className:h="",children:u,iconNode:c,...d}=e;return(0,n.createElement)("svg",{ref:t,...l,width:i,height:i,stroke:r,strokeWidth:s?24*Number(a)/Number(i):a,className:o("lucide",h),...d},[...c.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),s=(e,t)=>{let r=(0,n.forwardRef)((r,l)=>{let{className:s,...h}=r;return(0,n.createElement)(a,{ref:l,iconNode:t,className:o("lucide-".concat(i(e)),s),...h})});return r.displayName="".concat(e),r}},401:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},8867:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7692:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},7226:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]])},9397:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},7404:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]])},5868:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},5929:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},8930:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(9205).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},5922:function(e,t,r){r.d(t,{F:function(){return u},f:function(){return c}});var n=r(2265),i=(e,t,r,n,i,o,l,a)=>{let s=document.documentElement,h=["light","dark"];function u(t){(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&o?i.map(e=>o[e]||e):i;r?(s.classList.remove(...n),s.classList.add(o&&o[t]?o[t]:t)):s.setAttribute(e,t)}),a&&h.includes(t)&&(s.style.colorScheme=t)}if(n)u(n);else try{let e=localStorage.getItem(t)||r,n=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(n)}catch(e){}},o=["light","dark"],l="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=n.createContext(void 0),h={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=n.useContext(s))?e:h},c=e=>n.useContext(s)?n.createElement(n.Fragment,null,e.children):n.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:i=!0,enableColorScheme:a=!0,storageKey:h="theme",themes:u=d,defaultTheme:c=i?"system":"light",attribute:f="data-theme",value:E,children:M,nonce:w,scriptProps:C}=e,[v,k]=n.useState(()=>g(h,c)),[R,A]=n.useState(()=>"system"===v?p():v),N=E?Object.values(E):u,S=n.useCallback(e=>{let t=e;if(!t)return;"system"===e&&i&&(t=p());let n=E?E[t]:t,l=r?y(w):null,s=document.documentElement,h=e=>{"class"===e?(s.classList.remove(...N),n&&s.classList.add(n)):e.startsWith("data-")&&(n?s.setAttribute(e,n):s.removeAttribute(e))};if(Array.isArray(f)?f.forEach(h):h(f),a){let e=o.includes(c)?c:null,r=o.includes(t)?t:e;s.style.colorScheme=r}null==l||l()},[w]),P=n.useCallback(e=>{let t="function"==typeof e?e(v):e;k(t);try{localStorage.setItem(h,t)}catch(e){}},[v]),b=n.useCallback(e=>{A(p(e)),"system"===v&&i&&!t&&S("system")},[v,t]);n.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(b),b(e),()=>e.removeListener(b)},[b]),n.useEffect(()=>{let e=e=>{e.key===h&&(e.newValue?k(e.newValue):P(c))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[P]),n.useEffect(()=>{S(null!=t?t:v)},[t,v]);let I=n.useMemo(()=>({theme:v,setTheme:P,forcedTheme:t,resolvedTheme:"system"===v?R:v,themes:i?[...u,"system"]:u,systemTheme:i?R:void 0}),[v,P,t,R,i,u]);return n.createElement(s.Provider,{value:I},n.createElement(m,{forcedTheme:t,storageKey:h,attribute:f,enableSystem:i,enableColorScheme:a,defaultTheme:c,value:E,themes:u,nonce:w,scriptProps:C}),M)},m=n.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:o,enableSystem:l,enableColorScheme:a,defaultTheme:s,value:h,themes:u,nonce:c,scriptProps:d}=e,f=JSON.stringify([o,r,s,t,u,h,l,a]).slice(1,-1);return n.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?c:"",dangerouslySetInnerHTML:{__html:"(".concat(i.toString(),")(").concat(f,")")}})}),g=(e,t)=>{let r;if(!a){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},y=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},p=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},5398:function(e,t,r){r.d(t,{t:function(){return v}});var n,i,o,l=r(2265),a=Object.defineProperty,s=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,d=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&c(e,r,t[r]);if(s)for(var r of s(t))u.call(t,r)&&c(e,r,t[r]);return e},f=(e,t)=>{var r={};for(var n in e)h.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&s)for(var n of s(e))0>t.indexOf(n)&&u.call(e,n)&&(r[n]=e[n]);return r};(e=>{let t=class t{constructor(e,r,n,o){if(this.version=e,this.errorCorrectionLevel=r,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError("Version value out of range");if(o<-1||o>7)throw RangeError("Mask value out of range");this.size=4*e+17;let l=[];for(let e=0;e7)throw RangeError("Invalid value");for(u=o;;u++){let r=8*t.getNumDataCodewords(u,n),i=l.getTotalBits(e,u);if(i<=r){c=i;break}if(u>=a)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])h&&c<=8*t.getNumDataCodewords(u,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(u),d),t.getData()))d.push(e);i(d.length==c);let f=8*t.getNumDataCodewords(u,n);i(d.length<=f),r(0,Math.min(4,f-d.length),d),r(0,(8-d.length%8)%8,d),i(d.length%8==0);for(let e=236;d.lengthm[t>>>3]|=e<<7-(7&t)),new t(u,n,m,s)}getModule(e,t){return 0<=e&&e>>9)*1335;let o=(t<<10|r)^21522;i(o>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,n(o,e));this.setFunctionModule(8,7,n(o,6)),this.setFunctionModule(8,8,n(o,7)),this.setFunctionModule(7,8,n(o,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,n(o,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,n(o,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,n(o,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;i(t>>>18==0);for(let e=0;e<18;e++){let r=n(t,e),i=this.size-11+e%3,o=Math.floor(e/3);this.setFunctionModule(i,o,r),this.setFunctionModule(o,i,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let n=-4;n<=4;n++){let i=Math.max(Math.abs(n),Math.abs(r)),o=e+n,l=t+r;0<=o&&o{(e!=h-l||r>=s)&&d.push(t[e])});return i(d.length==a),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 i=0;i>>3],7-(7&r)),r++)}}i(r==8*e.length)}applyMask(e){if(e<0||e>7)throw RangeError("Mask value out of range");for(let t=0;t5&&e++:(this.finderPenaltyAddHistory(i,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[r][l],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,o)*t.PENALTY_N3}for(let r=0;r5&&e++:(this.finderPenaltyAddHistory(i,o),n||(e+=this.finderPenaltyCountPatterns(o)*t.PENALTY_N3),n=this.modules[l][r],i=1);e+=this.finderPenaltyTerminateAndCount(n,i,o)*t.PENALTY_N3}for(let r=0;re+(t?1:0),r);let n=this.size*this.size,o=Math.ceil(Math.abs(20*r-10*n)/n)-1;return i(0<=o&&o<=9),i(0<=(e+=o*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.lengtht.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 i(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;t0);for(let i of e){let e=i^n.shift();n.push(0),r.forEach((r,i)=>n[i]^=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 i(r>>>8==0),r}finderPenaltyCountPatterns(e){let t=e[1];i(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 i(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 o=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=1<{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})((n=o||(o={})).QrCode||(n.QrCode={})),(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})((i=o||(o={})).QrSegment||(i.QrSegment={}));var m=o,g={L:m.QrCode.Ecc.LOW,M:m.QrCode.Ecc.MEDIUM,Q:m.QrCode.Ecc.QUARTILE,H:m.QrCode.Ecc.HIGH},y="#FFFFFF",p="#000000";function E(e,t=0){let r=[];return e.forEach(function(e,n){let i=null;e.forEach(function(o,l){if(!o&&null!==i){r.push(`M${i+t} ${n+t}h${l-i}v1H${i+t}z`),i=null;return}if(l===e.length-1){if(!o)return;null===i?r.push(`M${l+t},${n+t} h1v1H${l+t}z`):r.push(`M${i+t},${n+t} h${l+1-i}v1H${i+t}z`);return}o&&null===i&&(i=l)})}),r.join("")}function M(e,t){return e.slice().map((e,r)=>r=t.y+t.h?e:e.map((e,r)=>(r=t.x+t.w)&&e))}function w({value:e,level:t,minVersion:r,includeMargin:n,marginSize:i,imageSettings:o,size:a,boostLevel:s}){let h=l.useMemo(()=>{let n=(Array.isArray(e)?e:[e]).reduce((e,t)=>(e.push(...m.QrSegment.makeSegments(t)),e),[]);return m.QrCode.encodeSegments(n,g[t],r,void 0,void 0,s)},[e,t,r,s]),{cells:u,margin:c,numCells:d,calculatedImageSettings:f}=l.useMemo(()=>{let e=h.getModules(),t=null!=i?Math.max(Math.floor(i),0):n?4:0,r=e.length+2*t,l=function(e,t,r,n){if(null==n)return null;let i=e.length+2*r,o=Math.floor(.1*t),l=i/t,a=(n.width||o)*l,s=(n.height||o)*l,h=null==n.x?e.length/2-a/2:n.x*l,u=null==n.y?e.length/2-s/2:n.y*l,c=null==n.opacity?1:n.opacity,d=null;if(n.excavate){let e=Math.floor(h),t=Math.floor(u);d={x:e,y:t,w:Math.ceil(a+h-e),h:Math.ceil(s+u-t)}}return{x:h,y:u,h:s,w:a,excavation:d,opacity:c,crossOrigin:n.crossOrigin}}(e,a,t,o);return{cells:e,margin:t,numCells:r,calculatedImageSettings:l}},[h,a,o,n,i]);return{qrcode:h,margin:c,cells:u,numCells:d,calculatedImageSettings:f}}var C=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();l.forwardRef(function(e,t){let{value:r,size:n=128,level:i="L",bgColor:o=y,fgColor:a=p,includeMargin:s=!1,minVersion:h=1,boostLevel:u,marginSize:c,imageSettings:m}=e,g=f(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:v}=g,k=f(g,["style"]),R=null==m?void 0:m.src,A=l.useRef(null),N=l.useRef(null),S=l.useCallback(e=>{A.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[P,b]=l.useState(!1),{margin:I,cells:L,numCells:O,calculatedImageSettings:x}=w({value:r,level:i,minVersion:h,boostLevel:u,includeMargin:s,marginSize:c,imageSettings:m,size:n});l.useEffect(()=>{if(null!=A.current){let e=A.current,t=e.getContext("2d");if(!t)return;let r=L,i=N.current,l=null!=x&&null!==i&&i.complete&&0!==i.naturalHeight&&0!==i.naturalWidth;l&&null!=x.excavation&&(r=M(L,x.excavation));let s=window.devicePixelRatio||1;e.height=e.width=n*s;let h=n/O*s;t.scale(h,h),t.fillStyle=o,t.fillRect(0,0,O,O),t.fillStyle=a,C?t.fill(new Path2D(E(r,I))):L.forEach(function(e,r){e.forEach(function(e,n){e&&t.fillRect(n+I,r+I,1,1)})}),x&&(t.globalAlpha=x.opacity),l&&t.drawImage(i,x.x+I,x.y+I,x.w,x.h)}}),l.useEffect(()=>{b(!1)},[R]);let _=d({height:n,width:n},v),z=null;return null!=R&&(z=l.createElement("img",{src:R,key:R,style:{display:"none"},onLoad:()=>{b(!0)},ref:N,crossOrigin:null==x?void 0:x.crossOrigin})),l.createElement(l.Fragment,null,l.createElement("canvas",d({style:_,height:n,width:n,ref:S,role:"img"},k)),z)}).displayName="QRCodeCanvas";var v=l.forwardRef(function(e,t){let{value:r,size:n=128,level:i="L",bgColor:o=y,fgColor:a=p,includeMargin:s=!1,minVersion:h=1,boostLevel:u,title:c,marginSize:m,imageSettings:g}=e,C=f(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:v,cells:k,numCells:R,calculatedImageSettings:A}=w({value:r,level:i,minVersion:h,boostLevel:u,includeMargin:s,marginSize:m,imageSettings:g,size:n}),N=k,S=null;null!=g&&null!=A&&(null!=A.excavation&&(N=M(k,A.excavation)),S=l.createElement("image",{href:g.src,height:A.h,width:A.w,x:A.x+v,y:A.y+v,preserveAspectRatio:"none",opacity:A.opacity,crossOrigin:A.crossOrigin}));let P=E(N,v);return l.createElement("svg",d({height:n,width:n,viewBox:`0 0 ${R} ${R}`,ref:t,role:"img"},C),!!c&&l.createElement("title",null,c),l.createElement("path",{fill:o,d:`M0,0 h${R}v${R}H0z`,shapeRendering:"crispEdges"}),l.createElement("path",{fill:a,d:P,shapeRendering:"crispEdges"}),S)});v.displayName="QRCodeSVG"}}]);