(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9271],{59879:function(j,D,v){"use strict";v.d(D,{Z:function(){return N}});var w=v(28991),b=v(67294),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},F=y,B=v(27029),O=function(p,_){return b.createElement(B.Z,(0,w.Z)((0,w.Z)({},p),{},{ref:_,icon:F}))};O.displayName="ReloadOutlined";var N=b.forwardRef(O)},84059:function(j,D,v){"use strict";v.d(D,{ZP:function(){return te}});var w=v(67294),b=Object.defineProperty,y=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,O=(u,s,c)=>s in u?b(u,s,{enumerable:!0,configurable:!0,writable:!0,value:c}):u[s]=c,N=(u,s)=>{for(var c in s||(s={}))F.call(s,c)&&O(u,c,s[c]);if(y)for(var c of y(s))B.call(s,c)&&O(u,c,s[c]);return u},T=(u,s)=>{var c={};for(var i in u)F.call(u,i)&&s.indexOf(i)<0&&(c[i]=u[i]);if(u!=null&&y)for(var i of y(u))s.indexOf(i)<0&&B.call(u,i)&&(c[i]=u[i]);return c};/** * @license QR Code generator library (TypeScript) * Copyright (c) Project Nayuki. * SPDX-License-Identifier: MIT */var p;(u=>{const s=class{constructor(e,t,n,r){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],es.MAX_VERSION)throw new RangeError("Version value out of range");if(r<-1||r>7)throw new RangeError("Mask value out of range");this.size=e*4+17;let o=[];for(let l=0;l7)throw new RangeError("Invalid value");let l,g;for(l=n;;l++){const m=s.getNumDataCodewords(l,t)*8,M=C.getTotalBits(e,l);if(M<=m){g=M;break}if(l>=r)throw new RangeError("Data too long")}for(const m of[s.Ecc.MEDIUM,s.Ecc.QUARTILE,s.Ecc.HIGH])a&&g<=s.getNumDataCodewords(l,m)*8&&(t=m);let d=[];for(const m of e){i(m.mode.modeBits,4,d),i(m.numChars,m.mode.numCharCountBits(l),d);for(const M of m.getData())d.push(M)}h(d.length==g);const P=s.getNumDataCodewords(l,t)*8;h(d.length<=P),i(0,Math.min(4,P-d.length),d),i(0,(8-d.length%8)%8,d),h(d.length%8==0);for(let m=236;d.lengthA[M>>>3]|=m<<7-(M&7)),new s(l,t,A,o)}getModule(e,t){return 0<=e&&e>>9)*1335;const r=(t<<10|n)^21522;h(r>>>15==0);for(let o=0;o<=5;o++)this.setFunctionModule(8,o,E(r,o));this.setFunctionModule(8,7,E(r,6)),this.setFunctionModule(8,8,E(r,7)),this.setFunctionModule(7,8,E(r,8));for(let o=9;o<15;o++)this.setFunctionModule(14-o,8,E(r,o));for(let o=0;o<8;o++)this.setFunctionModule(this.size-1-o,8,E(r,o));for(let o=8;o<15;o++)this.setFunctionModule(8,this.size-15+o,E(r,o));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let n=0;n<12;n++)e=e<<1^(e>>>11)*7973;const t=this.version<<12|e;h(t>>>18==0);for(let n=0;n<18;n++){const r=E(t,n),o=this.size-11+n%3,a=Math.floor(n/3);this.setFunctionModule(o,a,r),this.setFunctionModule(a,o,r)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){const o=Math.max(Math.abs(r),Math.abs(n)),a=e+r,l=t+n;0<=a&&a{(m!=g-o||R>=l)&&A.push(M[m])});return h(A.length==a),A}drawCodewords(e){if(e.length!=Math.floor(s.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let t=0;for(let n=this.size-1;n>=1;n-=2){n==6&&(n=5);for(let r=0;r>>3],7-(t&7)),t++)}}h(t==e.length*8)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(l,g),a||(e+=this.finderPenaltyCountPatterns(g)*s.PENALTY_N3),a=this.modules[o][d],l=1);e+=this.finderPenaltyTerminateAndCount(a,l,g)*s.PENALTY_N3}for(let o=0;o5&&e++):(this.finderPenaltyAddHistory(l,g),a||(e+=this.finderPenaltyCountPatterns(g)*s.PENALTY_N3),a=this.modules[d][o],l=1);e+=this.finderPenaltyTerminateAndCount(a,l,g)*s.PENALTY_N3}for(let o=0;oa+(l?1:0),t);const n=this.size*this.size,r=Math.ceil(Math.abs(t*20-n*10)/n)-1;return h(0<=r&&r<=9),e+=r*s.PENALTY_N4,h(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{const e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2;let n=[6];for(let r=this.size-7;n.lengths.MAX_VERSION)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){const n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return h(208<=t&&t<=29648),t}static getNumDataCodewords(e,t){return Math.floor(s.getNumRawDataModules(e)/8)-s.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*s.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let t=[];for(let r=0;r0);for(const r of e){const o=r^n.shift();n.push(0),t.forEach((a,l)=>n[l]^=s.reedSolomonMultiply(a,o))}return n}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return h(n>>>8==0),n}finderPenaltyCountPatterns(e){const t=e[1];h(t<=this.size*3);const n=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};let c=s;c.MIN_VERSION=1,c.MAX_VERSION=40,c.PENALTY_N1=3,c.PENALTY_N2=3,c.PENALTY_N3=40,c.PENALTY_N4=10,c.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]],c.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]],u.QrCode=c;function i(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function E(e,t){return(e>>>t&1)!=0}function h(e){if(!e)throw new Error("Assertion error")}const f=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw new RangeError("Invalid argument");this.bitData=n.slice()}static makeBytes(e){let t=[];for(const n of e)i(n,8,t);return new f(f.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!f.isNumeric(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let n=0;n=1<{let s;(c=>{const i=class{constructor(h,f){this.ordinal=h,this.formatBits=f}};let E=i;E.LOW=new i(0,1),E.MEDIUM=new i(1,0),E.QUARTILE=new i(2,3),E.HIGH=new i(3,2),c.Ecc=E})(s=u.QrCode||(u.QrCode={}))})(p||(p={})),(u=>{let s;(c=>{const i=class{constructor(h,f){this.modeBits=h,this.numBitsCharCount=f}numCharCountBits(h){return this.numBitsCharCount[Math.floor((h+7)/17)]}};let E=i;E.NUMERIC=new i(1,[10,12,14]),E.ALPHANUMERIC=new i(2,[9,11,13]),E.BYTE=new i(4,[8,16,16]),E.KANJI=new i(8,[8,10,12]),E.ECI=new i(7,[0,0,0]),c.Mode=E})(s=u.QrSegment||(u.QrSegment={}))})(p||(p={}));var _=p;/** * @license qrcode.react * Copyright (c) Paul O'Shannessy * SPDX-License-Identifier: ISC */var U={L:_.QrCode.Ecc.LOW,M:_.QrCode.Ecc.MEDIUM,Q:_.QrCode.Ecc.QUARTILE,H:_.QrCode.Ecc.HIGH},Q=128,k="L",H="#FFFFFF",$="#000000",Y=!1,z=4,V=.1;function G(u,s=0){const c=[];return u.forEach(function(i,E){let h=null;i.forEach(function(f,C){if(!f&&h!==null){c.push(`M${h+s} ${E+s}h${C-h}v1H${h+s}z`),h=null;return}if(C===i.length-1){if(!f)return;h===null?c.push(`M${C+s},${E+s} h1v1H${C+s}z`):c.push(`M${h+s},${E+s} h${C+1-h}v1H${h+s}z`);return}f&&h===null&&(h=C)})}),c.join("")}function x(u,s){return u.slice().map((c,i)=>i=s.y+s.h?c:c.map((E,h)=>h=s.x+s.w?E:!1))}function X(u,s,c,i){if(i==null)return null;const E=c?z:0,h=u.length+E*2,f=Math.floor(s*V),C=h/s,e=(i.width||f)*C,t=(i.height||f)*C,n=i.x==null?u.length/2-e/2:i.x*C,r=i.y==null?u.length/2-t/2:i.y*C;let o=null;if(i.excavate){let a=Math.floor(n),l=Math.floor(r),g=Math.ceil(e+n-a),d=Math.ceil(t+r-l);o={x:a,y:l,w:g,h:d}}return{x:n,y:r,h:t,w:e,excavation:o}}var J=function(){try{new Path2D().addPath(new Path2D)}catch(u){return!1}return!0}();function q(u){const s=u,{value:c,size:i=Q,level:E=k,bgColor:h=H,fgColor:f=$,includeMargin:C=Y,style:e,imageSettings:t}=s,n=T(s,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),r=t==null?void 0:t.src,o=(0,w.useRef)(null),a=(0,w.useRef)(null),[l,g]=(0,w.useState)(!1);(0,w.useEffect)(()=>{if(o.current!=null){const A=o.current,m=A.getContext("2d");if(!m)return;let M=_.QrCode.encodeText(c,U[E]).getModules();const R=C?z:0,S=M.length+R*2,I=X(M,i,C,t),L=a.current,K=I!=null&&L!==null&&L.complete&&L.naturalHeight!==0&&L.naturalWidth!==0;K&&I.excavation!=null&&(M=x(M,I.excavation));const W=window.devicePixelRatio||1;A.height=A.width=i*W;const Z=i/S*W;m.scale(Z,Z),m.fillStyle=h,m.fillRect(0,0,S,S),m.fillStyle=f,J?m.fill(new Path2D(G(M,R))):M.forEach(function(ne,re){ne.forEach(function(oe,se){oe&&m.fillRect(se+R,re+R,1,1)})}),K&&m.drawImage(L,I.x+R,I.y+R,I.w,I.h)}}),(0,w.useEffect)(()=>{g(!1)},[r]);const d=N({height:i,width:i},e);let P=null;return r!=null&&(P=w.createElement("img",{src:r,key:r,style:{display:"none"},onLoad:()=>{g(!0)},ref:a})),w.createElement(w.Fragment,null,w.createElement("canvas",N({style:d,height:i,width:i,ref:o},n)),P)}function ee(u){const s=u,{value:c,size:i=Q,level:E=k,bgColor:h=H,fgColor:f=$,includeMargin:C=Y,imageSettings:e}=s,t=T(s,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let n=_.QrCode.encodeText(c,U[E]).getModules();const r=C?z:0,o=n.length+r*2,a=X(n,i,C,e);let l=null;e!=null&&a!=null&&(a.excavation!=null&&(n=x(n,a.excavation)),l=w.createElement("image",{xlinkHref:e.src,height:a.h,width:a.w,x:a.x+r,y:a.y+r,preserveAspectRatio:"none"}));const g=G(n,r);return w.createElement("svg",N({height:i,width:i,viewBox:`0 0 ${o} ${o}`},t),w.createElement("path",{fill:h,d:`M0,0 h${o}v${o}H0z`,shapeRendering:"crispEdges"}),w.createElement("path",{fill:f,d:g,shapeRendering:"crispEdges"}),l)}var te=u=>{const s=u,{renderAs:c}=s,i=T(s,["renderAs"]);return c==="svg"?w.createElement(ee,N({},i)):w.createElement(q,N({},i))}}}]);