vendor: 12,922 bytes, line 1
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,5061,e=>{"use strict";let t,r;var i,l,s,o,n,a=e.i(2285),c=e.i(559);e.i(8678),e.i(6019),e.i(1158);var h=e.i(3828),d=e.i(1788),u=e.i(5980),f=e.i(2111),m=e.i(9811),g=e.i(6208),p=e.i(7261),x=e.i(3825),b=Object.defineProperty,w=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,_=(e,t,r)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))v.call(t,r)&&_(e,r,t[r]);if(w)for(var r of w(t))N.call(t,r)&&_(e,r,t[r]);return e},y=(e,t)=>{var r={};for(var i in e)v.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&w)for(var i of w(e))0>t.indexOf(i)&&N.call(e,i)&&(r[i]=e[i]);return r};(e=>{let t=class t{constructor(e,r,i,s){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(s<-1||s>7)throw RangeError("Mask value out of range");this.size=4*e+17;let o=[];for(let e=0;e<this.size;e++)o.push(!1);for(let e=0;e<this.size;e++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();const n=this.addEccAndInterleave(i);if(this.drawCodewords(n),-1==s){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const r=this.getPenaltyScore();r<e&&(s=t,e=r),this.applyMask(t)}}l(0<=s&&s<=7),this.mask=s,this.applyMask(s),this.drawFormatBits(s),this.isFunction=[]}static encodeText(r,i){let l=e.QrSegment.makeSegments(r);return t.encodeSegments(l,i)}static encodeBinary(r,i){let l=e.QrSegment.makeBytes(r);return t.encodeSegments([l],i)}static encodeSegments(e,i,s=1,n=40,a=-1,c=!0){let h,d;if(!(t.MIN_VERSION<=s&&s<=n&&n<=t.MAX_VERSION)||a<-1||a>7)throw RangeError("Invalid value");for(h=s;;h++){let r=8*t.getNumDataCodewords(h,i),l=o.getTotalBits(e,h);if(l<=r){d=l;break}if(h>=n)throw RangeError("Data too long")}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&d<=8*t.getNumDataCodewords(h,e)&&(i=e);let u=[];for(let t of e)for(let e of(r(t.mode.modeBits,4,u),r(t.numChars,t.mode.numCharCountBits(h),u),t.getData()))u.push(e);l(u.length==d);let f=8*t.getNumDataCodewords(h,i);l(u.length<=f),r(0,Math.min(4,f-u.length),u),r(0,(8-u.length%8)%8,u),l(u.length%8==0);for(let e=236;u.length<f;e^=253)r(e,8,u);let m=[];for(;8*m.length<u.length;)m.push(0);return u.forEach((e,t)=>m[t>>>3]|=e<<7-(7&t)),new t(h,i,m,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 i=0;i<t;i++)(0!=r||0!=i)&&(0!=r||i!=t-1)&&(r!=t-1||0!=i)&&this.drawAlignmentPattern(e[r],e[i]);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 s=(t<<10|r)^21522;l(s>>>15==0);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,i(s,e));this.setFunctionModule(8,7,i(s,6)),this.setFunctionModule(8,8,i(s,7)),this.setFunctionModule(7,8,i(s,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,i(s,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,i(s,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,i(s,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;l(t>>>18==0);for(let e=0;e<18;e++){let r=i(t,e),l=this.size-11+e%3,s=Math.floor(e/3);this.setFunctionModule(l,s,r),this.setFunctionModule(s,l,r)}}drawFinderPattern(e,t){for(let r=-4;r<=4;r++)for(let i=-4;i<=4;i++){let l=Math.max(Math.abs(i),Math.abs(r)),s=e+i,o=t+r;0<=s&&s<this.size&&0<=o&&o<this.size&&this.setFunctionModule(s,o,2!=l&&4!=l)}}drawAlignmentPattern(e,t){for(let r=-2;r<=2;r++)for(let i=-2;i<=2;i++)this.setFunctionModule(e+i,t+r,1!=Math.max(Math.abs(i),Math.abs(r)))}setFunctionModule(e,t,r){this.modules[t][e]=r,this.isFunction[t][e]=!0}addEccAndInterleave(e){let r=this.version,i=this.errorCorrectionLevel;if(e.length!=t.getNumDataCodewords(r,i))throw RangeError("Invalid argument");let s=t.NUM_ERROR_CORRECTION_BLOCKS[i.ordinal][r],o=t.ECC_CODEWORDS_PER_BLOCK[i.ordinal][r],n=Math.floor(t.getNumRawDataModules(r)/8),a=s-n%s,c=Math.floor(n/s),h=[],d=t.reedSolomonComputeDivisor(o);for(let r=0,i=0;r<s;r++){let l=e.slice(i,i+c-o+(r<a?0:1));i+=l.length;let s=t.reedSolomonComputeRemainder(l,d);r<a&&l.push(0),h.push(l.concat(s))}let u=[];for(let e=0;e<h[0].length;e++)h.forEach((t,r)=>{(e!=c-o||r>=a)&&u.push(t[e])});return l(u.length==n),u}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 l=0;l<this.size;l++)for(let s=0;s<2;s++){let o=t-s,n=(t+1&2)==0?this.size-1-l:l;!this.isFunction[n][o]&&r<8*e.length&&(this.modules[n][o]=i(e[r>>>3],7-(7&r)),r++)}}l(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 i;switch(e){case 0:i=(r+t)%2==0;break;case 1:i=t%2==0;break;case 2:i=r%3==0;break;case 3:i=(r+t)%3==0;break;case 4:i=(Math.floor(r/3)+Math.floor(t/2))%2==0;break;case 5:i=r*t%2+r*t%3==0;break;case 6:i=(r*t%2+r*t%3)%2==0;break;case 7:i=((r+t)%2+r*t%3)%2==0;break;default:throw Error("Unreachable")}!this.isFunction[t][r]&&i&&(this.modules[t][r]=!this.modules[t][r])}}getPenaltyScore(){let e=0;for(let r=0;r<this.size;r++){let i=!1,l=0,s=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[r][o]==i?5==++l?e+=t.PENALTY_N1:l>5&&e++:(this.finderPenaltyAddHistory(l,s),i||(e+=this.finderPenaltyCountPatterns(s)*t.PENALTY_N3),i=this.modules[r][o],l=1);e+=this.finderPenaltyTerminateAndCount(i,l,s)*t.PENALTY_N3}for(let r=0;r<this.size;r++){let i=!1,l=0,s=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][r]==i?5==++l?e+=t.PENALTY_N1:l>5&&e++:(this.finderPenaltyAddHistory(l,s),i||(e+=this.finderPenaltyCountPatterns(s)*t.PENALTY_N3),i=this.modules[o][r],l=1);e+=this.finderPenaltyTerminateAndCount(i,l,s)*t.PENALTY_N3}for(let r=0;r<this.size-1;r++)for(let i=0;i<this.size-1;i++){let l=this.modules[r][i];l==this.modules[r][i+1]&&l==this.modules[r+1][i]&&l==this.modules[r+1][i+1]&&(e+=t.PENALTY_N2)}let r=0;for(let e of this.modules)r=e.reduce((e,t)=>e+ +!!t,r);let i=this.size*this.size,s=Math.ceil(Math.abs(20*r-10*i)/i)-1;return l(0<=s&&s<=9),l(0<=(e+=s*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 i=this.size-7;r.length<e;i-=t)r.splice(1,0,i);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 l(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 i=1;for(let l=0;l<e;l++){for(let e=0;e<r.length;e++)r[e]=t.reedSolomonMultiply(r[e],i),e+1<r.length&&(r[e]^=r[e+1]);i=t.reedSolomonMultiply(i,2)}return r}static reedSolomonComputeRemainder(e,r){let i=r.map(e=>0);for(let l of e){let e=l^i.shift();i.push(0),r.forEach((r,l)=>i[l]^=t.reedSolomonMultiply(r,e))}return i}static reedSolomonMultiply(e,t){if(e>>>8!=0||t>>>8!=0)throw RangeError("Byte out of range");let r=0;for(let i=7;i>=0;i--)r=r<<1^(r>>>7)*285^(t>>>i&1)*e;return l(r>>>8==0),r}finderPenaltyCountPatterns(e){let t=e[1];l(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 i=t-1;i>=0;i--)r.push(e>>>i&1)}function i(e,t){return(e>>>t&1)!=0}function l(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 s=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 i=[];for(let e of t)r(e,8,i);return new e(e.Mode.BYTE,t.length,i)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError("String contains non-numeric characters");let i=[];for(let e=0;e<t.length;){let l=Math.min(t.length-e,3);r(parseInt(t.substring(e,e+l),10),3*l+1,i),e+=l}return new e(e.Mode.NUMERIC,t.length,i)}static makeAlphanumeric(t){let i;if(!e.isAlphanumeric(t))throw RangeError("String contains unencodable characters in alphanumeric mode");let l=[];for(i=0;i+2<=t.length;i+=2){let s=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i));r(s+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i+1)),11,l)}return i<t.length&&r(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(i)),6,l),new e(e.Mode.ALPHANUMERIC,t.length,l)}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 i=[];if(t<0)throw RangeError("ECI assignment value out of range");if(t<128)r(t,8,i);else if(t<16384)r(2,2,i),r(t,14,i);else if(t<1e6)r(6,3,i),r(t,21,i);else throw RangeError("ECI assignment value out of range");return new e(e.Mode.ECI,0,i)}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 i of e){let e=i.mode.numCharCountBits(t);if(i.numChars>=1<<e)return 1/0;r+=4+e+i.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}};s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let o=s;e.QrSegment=s})(n||(n={})),l=(i=n||(n={})).QrCode||(i.QrCode={}),(t=class{constructor(e,t){this.ordinal=e,this.formatBits=t}}).LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),l.Ecc=t,o=(s=n||(n={})).QrSegment||(s.QrSegment={}),(r=class{constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}).NUMERIC=new r(1,[10,12,14]),r.ALPHANUMERIC=new r(2,[9,11,13]),r.BYTE=new r(4,[8,16,16]),r.KANJI=new r(8,[8,10,12]),r.ECI=new r(7,[0,0,0]),o.Mode=r;var E=n,j={L:E.QrCode.Ecc.LOW,M:E.QrCode.Ecc.MEDIUM,Q:E.QrCode.Ecc.QUARTILE,H:E.QrCode.Ecc.HIGH},M="#FFFFFF",R="#000000";function A(e,t=0){let r=[];return e.forEach(function(e,i){let l=null;e.forEach(function(s,o){if(!s&&null!==l){r.push(`M${l+t} ${i+t}h${o-l}v1H${l+t}z`),l=null;return}if(o===e.length-1){if(!s)return;null===l?r.push(`M${o+t},${i+t} h1v1H${o+t}z`):r.push(`M${l+t},${i+t} h${o+1-l}v1H${l+t}z`);return}s&&null===l&&(l=o)})}),r.join("")}function S(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 P({value:e,level:t,minVersion:r,includeMargin:i,marginSize:l,imageSettings:s,size:o,boostLevel:n}){let a=d.default.useMemo(()=>{let i=(Array.isArray(e)?e:[e]).reduce((e,t)=>
1(e.push(...E.QrSegment.makeSegments(t)),e),[]);return E.QrCode.encodeSegments(i,j[t],r,void 0,void 0,n)},[e,t,r,n]),{cells:c,margin:h,numCells:u,calculatedImageSettings:f}=d.default.useMemo(()=>{let e=a.getModules(),t=null!=l?Math.max(Math.floor(l),0):4*!!i,r=e.length+2*t,n=function(e,t,r,i){if(null==i)return null;let l=e.length+2*r,s=Math.floor(.1*t),o=l/t,n=(i.width||s)*o,a=(i.height||s)*o,c=null==i.x?e.length/2-n/2:i.x*o,h=null==i.y?e.length/2-a/2:i.y*o,d=null==i.opacity?1:i.opacity,u=null;if(i.excavate){let e=Math.floor(c),t=Math.floor(h),r=Math.ceil(n+c-e),i=Math.ceil(a+h-t);u={x:e,y:t,w:r,h:i}}return{x:c,y:h,h:a,w:n,excavation:u,opacity:d,crossOrigin:i.crossOrigin}}(e,o,t,s);return{cells:e,margin:t,numCells:r,calculatedImageSettings:n}},[a,o,s,i,l]);return{qrcode:a,margin:h,cells:c,numCells:u,calculatedImageSettings:f}}var k=function(){try{new Path2D().addPath(new Path2D)}catch(e){return!1}return!0}();d.default.forwardRef(function(e,t){let{value:r,size:i=128,level:l="L",bgColor:s=M,fgColor:o=R,includeMargin:n=!1,minVersion:a=1,boostLevel:c,marginSize:h,imageSettings:u}=e,f=y(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:m}=f,g=y(f,["style"]),p=null==u?void 0:u.src,x=d.default.useRef(null),b=d.default.useRef(null),w=d.default.useCallback(e=>{x.current=e,"function"==typeof t?t(e):t&&(t.current=e)},[t]),[v,N]=d.default.useState(!1),{margin:_,cells:E,numCells:j,calculatedImageSettings:I}=P({value:r,level:l,minVersion:a,boostLevel:c,includeMargin:n,marginSize:h,imageSettings:u,size:i});d.default.useEffect(()=>{if(null!=x.current){let e=x.current,t=e.getContext("2d");if(!t)return;let r=E,l=b.current,n=null!=I&&null!==l&&l.complete&&0!==l.naturalHeight&&0!==l.naturalWidth;n&&null!=I.excavation&&(r=S(E,I.excavation));let a=window.devicePixelRatio||1;e.height=e.width=i*a;let c=i/j*a;t.scale(c,c),t.fillStyle=s,t.fillRect(0,0,j,j),t.fillStyle=o,k?t.fill(new Path2D(A(r,_))):E.forEach(function(e,r){e.forEach(function(e,i){e&&t.fillRect(i+_,r+_,1,1)})}),I&&(t.globalAlpha=I.opacity),n&&t.drawImage(l,I.x+_,I.y+_,I.w,I.h)}}),d.default.useEffect(()=>{N(!1)},[p]);let F=C({height:i,width:i},m),O=null;return null!=p&&(O=d.default.createElement("img",{src:p,key:p,style:{display:"none"},onLoad:()=>{N(!0)},ref:b,crossOrigin:null==I?void 0:I.crossOrigin})),d.default.createElement(d.default.Fragment,null,d.default.createElement("canvas",C({style:F,height:i,width:i,ref:w,role:"img"},g)),O)}).displayName="QRCodeCanvas";var I=d.default.forwardRef(function(e,t){let{value:r,size:i=128,level:l="L",bgColor:s=M,fgColor:o=R,includeMargin:n=!1,minVersion:a=1,boostLevel:c,title:h,marginSize:u,imageSettings:f}=e,m=y(e,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:g,cells:p,numCells:x,calculatedImageSettings:b}=P({value:r,level:l,minVersion:a,boostLevel:c,includeMargin:n,marginSize:u,imageSettings:f,size:i}),w=p,v=null;null!=f&&null!=b&&(null!=b.excavation&&(w=S(p,b.excavation)),v=d.default.createElement("image",{href:f.src,height:b.h,width:b.w,x:b.x+g,y:b.y+g,preserveAspectRatio:"none",opacity:b.opacity,crossOrigin:b.crossOrigin}));let N=A(w,g);return d.default.createElement("svg",C({height:i,width:i,viewBox:`0 0 ${x} ${x}`,ref:t,role:"img"},m),!!h&&d.default.createElement("title",null,h),d.default.createElement("path",{fill:s,d:`M0,0 h${x}v${x}H0z`,shapeRendering:"crispEdges"}),d.default.createElement("path",{fill:o,d:N,shapeRendering:"crispEdges"}),v)});function F({title:e,propVal:t}){return(0,a.jsx)(O,{withCircle:!0,title:e,propVal:"nothing"===t?"-":t})}function O({withCircle:e,title:t,propVal:r}){return r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 ",children:[(0,a.jsx)("div",{className:"w-40",children:t}),(0,a.jsx)("div",{className:"text-white",children:r})]}),(0,a.jsx)("hr",{})]})}function L(e,t,r){return e&&(r+=(""===r?"":", ")+t),r}function T({name:e,onSelect:t,selected:r}){return(0,a.jsxs)("div",{className:"relative",onClick:()=>{t(e)},children:[(0,a.jsx)("img",{style:{filter:r!==e?"grayscale(1)":"none"},src:"/"+e.toLowerCase()+"-logo.png",className:"w-12 md:w-20 h-auto cursor-pointer",alt:"Choose "+e+" messenger"}),r===e&&(0,a.jsx)("div",{className:"absolute -bottom-9 left-1/4",children:(0,a.jsx)("div",{className:"arrow-up"})})]})}I.displayName="QRCodeSVG";let z={WhatsApp:"+41782386731",Telegram:"@REAL_CHATMATE_AI_BOT"};function B({}){var e;let{botId:t}=(0,h.useRouter)().query,[r,i]=(0,d.useState)(void 0),[l,s]=(0,d.useState)(),[o,n]=(0,d.useState)("WhatsApp"),[b,w]=(0,d.useState)([]),[v,N]=(0,d.useState)(!1),[_,C]=(0,d.useState)(!1);(0,d.useEffect)(()=>{N(!0)},[]),(0,d.useEffect)(()=>{v&&t&&t&&e();async function e(){let e=await c.default.get("https://api.holomate.io/api/bot/"+t);console.log("loaded bot",e.data),i(e.data.result),w(function(e){for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1));[e[t],e[r]]=[e[r],e[t]]}return e}(await (await fetch("/api/matephotos?mate="+t)).json()))}},[v,t]);let y=r?r.properties:void 0,E=y&&"male"===y.bot_gender,j="";y&&(j=L(y.bot_likessciencefiction,"Science Fiction",j),j=L(y.bot_likesrecycling,"Recycling",j),j=L(y.bot_likesnature,"Nature",j),j=L(y.bot_likescars,"Cars",j),j=L(y.bot_likesporn,"Porn",j));let M=r&&r.properties.bot_name+" "+r.properties.bot_lastname+", "+r.properties.bot_age,R=r&&"https://d1vc7bbgzsrk4.cloudfront.net/chatmates/profiles/generated_image_"+r.botId+"_w400.png",A=r?({Telegram:()=>"https://t.me/real_chatmate_ai_bot?text=/mate%20"+e,WhatsApp:()=>"https://wa.me/41782386731?text=/mate%20"+e})[o](e=r.botId):"https://wa.me/41782386731";function S(e){console.log("setting seervice",e),n(e)}return(0,a.jsxs)("div",{className:"w-full items-center",children:[(0,a.jsx)("div",{className:"gradientBG w-full",style:{minHeight:"50vh"},children:v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.default,{withButton:!0,backLink:"",title:(M?M+" - ":"")+"Chatmate AI"}),_&&(0,a.jsx)("div",{className:"fixed top-0 left-0 bg-black w-screen h-screen z-20",onClick:()=>{C(void 0)},children:(0,a.jsx)("div",{className:"flex flex-row place-items-center place-content-center w-full h-full",children:(0,a.jsx)("img",{src:"https://d1vc7bbgzsrk4.cloudfront.net/"+_,className:"max-w-full max-h-screen"})})}),r?(0,a.jsxs)(g.Section,{placeItems:"start",className:"text-left px-0 ",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between mt-2",children:[(0,a.jsxs)("div",{className:"text-5xl font-bold text-white",children:[r.properties.bot_name," ",r.properties.bot_lastname]}),(0,a.jsxs)("div",{className:"font-bold",children:["ID#",t]})]}),(0,a.jsxs)("div",{className:"flex flex-col md:grid grid-cols-2 gap-4 pb-12",children:[(0,a.jsxs)("div",{className:"order-2 md:order-1 relative",children:[(0,a.jsx)("div",{className:"hidden absolute md:flex flex-col gap-4 top-4 -left-16 xl:-left-20",children:v&&b&&b.slice(0,3).map(e=>(0,a.jsx)("div",{onClick:()=>{C(e)},children:(0,a.jsx)("img",{src:"https://d1vc7bbgzsrk4.cloudfront.net/"+e.replace(".jpg","_w240.jpg"),className:"w-12 xl:w-16 rounded-xl cursor-pointer"})},e))}),(0,a.jsx)("img",{src:R,className:"hidden md:block mt-4 rounded-3xl bg-white",style:{paddingBottom:"2em",width:"calc(100% - 1em)"}}),(0,a.jsxs)("div",{className:"flex flex-col space-y-2 my-8 mb-16",children:[(0,a.jsx)("div",{className:"text-lg font-bold mb-2",children:"Clothing"}),(0,a.jsx)(F,{withCircle:!0,title:"Fullbody",propVal:y.bot_clothesfullbody}),!y.bot_clothesfullbody&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(F,{withCircle:!0,title:"Top",propVal:y.bot_clothestop}),(0,a.jsx)(F,{withCircle:!0,title:"Bottom",propVal:y.bot_clothesbottom})]}),(0,a.jsx)(F,{withCircle:!0,title:"Bra",propVal:y.bot_clothesbra}),(0,a.jsx)(F,{withCircle:!0,title:"Panties",propVal:y.bot_clothespanties}),(0,a.jsx)(F,{withCircle:!0,title:"Socks",propVal:y.bot_clothessocks}),(0,a.jsx)(F,{withCircle:!0,title:"Shoes",propVal:y.bot_clothesshoes}),(0,a.jsx)(F,{withCircle:!0,title:"Head",propVal:y.bot_clothesglasses})]})]}),(0,a.jsxs)("div",{className:"order-1 md:order-2",children:[(0,a.jsxs)("div",{className:"font-bold text-2xl text-center mb-8 mt-4 relative",children:[(0,a.jsx)("img",{src:R,className:"md:hidden mx-auto mt-4 mb-2 rounded-3xl bg-white",style:{paddingBottom:"2em"}}),(0,a.jsx)("div",{className:"md:hidden absolute flex flex-col gap-2 top-3 left-3",children:v&&b&&b.slice(0,3).map((e,r)=>(0,a.jsx)("div",{onClick:()=>{C(e),x.default.event({category:"website",action:"ws_mate_photo_click",label:"m8_"+t,value:r})},children:(0,a.jsx)("img",{src:"https://d1vc7bbgzsrk4.cloudfront.net/"+e.replace(".jpg","_w240.jpg"),className:"w-8 rounded-xl"})},e))}),!l&&(0,a.jsx)(u.default,{onClick:()=>{s(!0),x.default.event({category:"website",action:"ws_mate_wanna_connect_btn",label:"m8_"+t})},children:"Start chat"}),l&&(0,a.jsxs)("div",{className:"bg-white font-normal text-base p-4 flex flex-row gap-2 relative justify-center",children:[(0,a.jsx)("div",{onClick:()=>{s(!1)},className:"cursor-pointer absolute top-1 right-4",children:"â"}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex flex-row my-4 gap-10 justify-center",children:[(0,a.jsx)(T,{name:"WhatsApp",onSelect:S,selected:o}),(0,a.jsx)(T,{name:"Telegram",onSelect:S,selected:o})]}),(0,a.jsxs)("div",{className:"font-bold text-xl py-4",children:[(0,a.jsx)("span",{className:"hidden md:inline-block",children:"Scan"}),(0,a.jsx)("span",{className:"inline-block md:hidden",children:"Touch code"})," to chat with ",y.bot_name," on ",o,"."]}),(0,a.jsx)("a",{href:A,children:(0,a.jsx)(I,{size:256,style:{height:"auto",maxWidth:"100%",width:"100%"},value:A})}),(0,a.jsxs)("div",{className:"text-sm py-4 font-bold",children:['or send a message with "/mate ',t,'" to ',z[o]]})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,a.jsxs)("div",{className:"text-white",children:[(0,p.capitalFirst)(y.bot_gender),", age ",y.bot_age]}),(0,a.jsx)("hr",{}),(0,a.jsxs)("div",{className:"text-white",children:[(0,p.capitalFirst)(y.bot_orientation)," ",y.bot_monogamous&&" & monogamous"]}),(0,a.jsx)("hr",{}),(0,a.jsx)("div",{className:"text-white",children:"none"==y.bot_partnertype?" Single":("wife"===y.bot_partnertype||"husband"===y.bot_partnertype?" Married":" In relationship")+", "+y.bot_partnertype+" "+y.bot_partner+" ("+y.bot_partnerage+")"}),(0,a.jsx)("hr",{}
1),(0,a.jsx)("div",{className:"text-white",children:"alone"===y.bot_livewith?"Lives alone":(0,a.jsxs)("div",{children:["Lives in same flat with ",(0,a.jsxs)("a",{href:"/mate/"+y.bot_livewithBotId,children:[y.bot_livewith," >"]})]})}),(0,a.jsx)("hr",{}),(0,a.jsxs)("div",{className:"text-white",children:["Works as ",y.bot_jobtitle]}),(0,a.jsx)("hr",{})]}),(0,a.jsxs)("div",{className:"flex flex-col space-y-2 mt-8",children:[(0,a.jsx)("div",{className:"text-lg font-bold mb-2",children:"Body Details"}),(0,a.jsx)(O,{withCircle:!0,title:"Height",propVal:y.bot_bodyheight+" cm"}),(0,a.jsx)(O,{withCircle:!0,title:"Weight",propVal:y.bot_bodyweight.toFixed(0)+" kg"}),(0,a.jsx)(O,{withCircle:!0,title:"Shape",propVal:function(e){if(e<17)return"thin";if(e<18)return"very skinny";if(e<19)return"skinny";if(e<21)return"skinny";if(e<26)return"regular ";else if(e<28)return"heavy";else if(e<30)return"very heavy";else return"extreme overweight"}(y.bot_bodybmi)}),(0,a.jsx)(O,{withCircle:!0,title:"Fitness",propVal:parseFloat(y.bot_fitnesslevel/30*100).toFixed(0)+"% "+(y.bot_ismuscular?", muscular":"")}),(0,a.jsx)(O,{withCircle:!0,title:"Ethnicity",propVal:y.bot_ethnicity}),(0,a.jsx)(O,{withCircle:!0,title:"Skin tone",propVal:y.bot_skincolor}),(0,a.jsx)(O,{withCircle:!0,title:"Eye Color",propVal:y.bot_eyecolor}),(0,a.jsx)(O,{withCircle:!0,title:"Hair Color/Style",propVal:y.bot_haircolor+", "+y.bot_hairstyle}),!E&&(0,a.jsx)(O,{withCircle:!0,title:"Breast size",propVal:["very tiny","tiny","small","small regular","regular","big","very big","very big","huge","very huge","very huge","monster","monster"][y.bot_boobsize]}),E?(0,a.jsx)(O,{withCircle:!0,title:"Facial hair",propVal:"none"===y.bot_facialhairstyle?"None":["barely","short","regular","long"][parseInt(y.bot_facialhair)]+" "+y.bot_facialhairstyle}):(0,a.jsx)(O,{withCircle:!0,title:(y.bot_lipstickcolor?y.bot_lipstickcolor:"No")+" lipstick",propVal:y.bot_fingernailscolor+" "+["Short","Normal","Long"][parseInt(y.bot_fingernails/33)]+" fingernails"}),(0,a.jsx)(O,{title:(y.bot_tatooed?"":"Not ")+" tatooed",propVal:(y.bot_tatooed?"":"Not ")+" pierced"})]}),(0,a.jsxs)("div",{className:"flex flex-col space-y-2 mt-8",children:[(0,a.jsx)("div",{className:"text-lg font-bold mb-2",children:"Personality preferences"}),(0,a.jsx)(O,{title:"Smokes tabacco",propVal:y.bot_doessmoke?"Yes":"No"}),(0,a.jsx)(O,{title:"Takes drugs",propVal:y.bot_doesdrugs?"Yes":"No"}),(0,a.jsx)(O,{title:"Things I like",propVal:j||"Nothing"})]})]})]}),(0,a.jsx)("div",{className:"m-auto w-full",children:(0,a.jsx)("div",{className:"flex flex-wrap m-auto place-content-center gap-4 pb-10 justify-center",children:!1})})]}):(0,a.jsx)("div",{className:"font-bold text-3xl text-center py-20 min-h-screen",children:"Loading..."})]})}),(0,a.jsx)(f.Footer,{})]})}e.s(["default",()=>B],5061)},9231,(e,t,r)=>{let i="/mate/[botId]";(window.__NEXT_P=window.__NEXT_P||[]).push([i,()=>e.r(5061)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([i])})}]); 2 3//# sourceMappingURL=f4d4cc866f0ea5db.js.map
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.