1(self.webpackChunkeSusoft=self.webpackChunkeSusoft||[]).push([[4242],{47973:(B,l,e)=>{"use strict";e.d(l,{T:()=>d});var t=e(18370),n=e(50297),i=e(214),o=e(17705),r=e(21626);let d=(()=>{var c;class a extends t.Y{constructor(h,y){super(h),this.userStorage=h,this.httpClient=y}updateCustomerGroup(h){return this.httpClient.put("admin/customer/group",void 0,{params:(0,i.$I)({id:h.id,active:h.active,termsOfPayDays:h.termsOfPayDays,name:h.name})})}createCustomerGroup(h){return this.httpClient.post("admin/customer/group",void 0,{params:(0,i.$I)({id:h.id,active:h.active,termsOfPayDays:h.termsOfPayDays,name:h.name})})}getCustomerGroups(){return this.httpClient.get("admin/customer/group/list")}}return(c=a).\u0275fac=function(h){return new(h||c)(o.KVO(n.q),o.KVO(r.Qq))},c.\u0275prov=o.jDH({token:c,factory:c.\u0275fac}),a})()},76456:(B,l,e)=>{"use strict";e.d(l,{B:()=>N});var t=e(97268),n=e(33425),i=e(61747),o=e(50042),r=e(7673),d=e(84572),c=e(61129),a=e(12587),u=e(17705),h=e(41780),y=e(42353),p=e(70521),P=e(78584),S=e(4581);let N=(()=>{var b;class C extends o.p{constructor(m,s,O,x,g){super(),this.translateService=m,this.shopInfoService=s,this.snackbarService=O,this.getProductByIdInteractor=x,this.getShopInfoInteractor=g,this.decimalPlacesFormat=new n.PM,this.grayColor="#e3e2de",this.blackColor="#000000",this.shopInfoService.getShopInfo().subscribe(v=>this.shopInfo=v),this.shopInfoService.getGeneralInfo().subscribe(v=>this.generalInfo=v)}export(m,s){this.createJSPDF("portrait"),(s.shopId==this.shopInfo.shopId?(0,r.of)(null):this.getShopInfoInteractor.execute(!0,s.shopId)).subscribe(O=>{var x,g,v,E,_,M,I,T,A,f,F,D,L,z,K,j,tt,V;O&&(this.shopInfo=O);const k=(this.docWidth-2*this.horizontalMargin)/3,q=this.horizontalMargin+k,w=this.horizontalMargin+2*k,W=this.docWidth-this.horizontalMargin;this.shopInfo.logo&&this.doc.addImage(`data:${this.shopInfo.logo.mime};base64,${this.shopInfo.logo.image}`,"PNG",this.horizontalMargin,this.verticalMargin,k/2,30);const G=this.translateService.instant("admin.orders.packing_slip.title"),ht=this.docWidth-this.horizontalMargin-5-this.getTextWidth(G,{fontSize:18}),et=this.verticalMargin+10;this.addText(G,{xPosition:ht,yPosition:et,fontSize:18,fontStyle:"bold"});const ut=et+3;this.doc.line(w,ut,this.docWidth-this.horizontalMargin,ut);const rt=this.verticalMargin+76,Mt=this.verticalMargin+113;this.doc.line(this.horizontalMargin,rt,W,rt),this.doc.line(q,rt,q,Mt),this.doc.line(w,rt,w,Mt),this.doc.line(W,rt,W,Mt);const Bt=(null===(x=this.shopInfo.shopAddress)||void 0===x?void 0:x.addressLine1)||"",Ot=(null===(g=this.shopInfo.shopAddress)||void 0===g?void 0:g.addressLine2)||"",Nt=(null===(v=this.shopInfo.shopAddress)||void 0===v?void 0:v.addressLine3)||"",bt=(null===(E=this.shopInfo.shopAddress)||void 0===E?void 0:E.landLinePhone)||"",xt=(null===(_=this.shopInfo.shopAddress)||void 0===_?void 0:_.email)||"",wt=(null===(M=this.shopInfo.shopAddress)||void 0===M?void 0:M.mobilePhone)||"",zt=(null===(I=this.shopInfo.shopAddress)||void 0===I?void 0:I.fax)||"",Ft=(null===(T=this.shopInfo.shopAddress)||void 0===T?void 0:T.zipCode)||"",Ut=(null===(A=this.shopInfo.shopAddress)||void 0===A?void 0:A.city)||"",Zt=w+1,it=120,qt=et+8;let Y=this.doc.splitTextToSize(this.shopInfo.shopName,it);Bt&&(Y=Y.concat(this.doc.splitTextToSize(Bt,it))),Ot&&(Y=Y.concat(this.doc.splitTextToSize(Ot,it))),Nt&&(Y=Y.concat(this.doc.splitTextToSize(Nt,it))),(Ft||Ut)&&(Y=Y.concat(this.doc.splitTextToSize(Ft+" "+Ut,it))),bt&&(Y=Y.concat(this.doc.splitTextToSize(this.translateService.instant("admin.orders.packing_slip.telephone")+": "+bt,it))),wt&&(Y=Y.concat(this.doc.splitTextToSize(this.translateService.instant("admin.orders.packing_slip.mobile")+": "+wt,it))),xt&&(Y=Y.concat(this.doc.splitTextToSize(this.translateService.instant("admin.orders.packing_slip.email")+": "+xt,it))),zt&&(Y=Y.concat(this.doc.splitTextToSize(this.translateService.instant("admin.orders.packing_slip.fax")+": "+zt,it))),this.addText(Y,{fontSize:11,fontStyle:"normal",xPosition:Zt,yPosition:qt}),this.doc.setDrawColor(0),this.doc.setFillColor(this.grayColor);const kt=this.verticalMargin+30+3;this.setCurrentY(kt-1),this.setLineHeight(6),this.doc.rect(this.horizontalMargin,kt,k,7,"FD"),this.addLine();const te=this.horizontalMargin+1,at=k;this.addText(this.translateService.instant("admin.orders.packing_slip.invoice_address"),{fontStyle:"bold",xPosition:this.horizontalMargin+1,fontSize:11}),this.addLine();let gt="",mt="",_t="",pt="",Et="",lt="";null!==(f=s.customer)&&void 0!==f&&f.invoiceAddress&&s.customer.invoiceAddress.zipCode&&s.customer.invoiceAddress.addressLine1?(gt=s.customer.invoiceAddress.zipCode,mt=s.customer.invoiceAddress.city,_t=s.customer.invoiceAddress.addressLine1,pt=s.customer.invoiceAddress.addressLine2,Et=s.customer.invoiceAddress.addressLine3,lt=s.customer.invoiceAddress.email):null!==(F=s.customer)&&void 0!==F&&F.address&&s.customer.address.zipCode&&s.customer.address.addressLine1?(gt=s.customer.address.zipCode,mt=s.customer.address.city,_t=s.customer.address.addressLine1,pt=s.customer.address.addressLine2,Et=s.customer.address.addressLine3,lt=s.customer.address.email):s.deliveryAddress&&s.deliveryAddress.zipCode&&s.deliveryAddress.addressLine1&&(gt=s.deliveryAddress.zipCode,mt=s.deliveryAddress.city,_t=s.deliveryAddress.addressLine1,pt=s.deliveryAddress.addressLine2,Et=s.deliveryAddress.addressLine3,lt=s.deliveryAddress.email),lt||(lt=s.customerEmail);let J=this.doc.splitTextToSize(s.customerName,at);_t&&(J=J.concat(this.doc.splitTextToSize(_t,at))),pt&&(J=J.concat(this.doc.splitTextToSize(pt,at))),Et&&(J=J.concat(this.doc.splitTextToSize(Et,at))),(gt||mt)&&(J=J.concat(this.doc.splitTextToSize(gt+" "+mt,at))),lt&&(J=J.concat(this.doc.splitTextToSize(lt,at))),s.customerMobile&&(J=J.concat(this.doc.splitTextToSize(s.customerMobile,at))),this.addText(J,{fontStyle:"normal",fontSize:11,xPosition:te}),this.doc.setDrawColor(0),this.doc.setFillColor(this.grayColor),this.doc.rect(this.horizontalMargin,rt,k-.3,7,"FD");const Wt=this.horizontalMargin+1,Rt=rt+5,ee=Rt+8,Tt=k-2;this.addText(this.translateService.instant("admin.orders.packing_slip.delivery_address"),{fontSize:10,fontStyle:"bold",xPosition:Wt,
1yPosition:Rt});const ie=(null===(D=s.deliveryAddress)||void 0===D?void 0:D.name)||s.customerName||(null===(L=s.customer)||void 0===L?void 0:L.name)||s.shippingName||"";let vt="",Pt="",It="",Ct="",dt="";s.deliveryAddress&&s.deliveryAddress.zipCode&&s.deliveryAddress.addressLine1?(vt=s.deliveryAddress.addressLine1,Pt=s.deliveryAddress.zipCode,It=s.deliveryAddress.city,Ct=s.deliveryAddress.mobilePhone||s.deliveryAddress.landLinePhone,dt=s.deliveryAddress.email):null!==(z=s.customer)&&void 0!==z&&z.deliveryAddress&&s.customer.deliveryAddress.zipCode&&s.customer.deliveryAddress.addressLine1?(vt=s.customer.deliveryAddress.addressLine1,Pt=s.customer.deliveryAddress.zipCode,It=s.customer.deliveryAddress.city,Ct=s.customer.deliveryAddress.mobilePhone||s.customer.deliveryAddress.landLinePhone,dt=s.customer.deliveryAddress.email):null!==(K=s.customer)&&void 0!==K&&K.address&&s.customer.address.zipCode&&s.customer.address.addressLine1&&(vt=s.customer.address.addressLine1,Pt=s.customer.address.zipCode,It=s.customer.address.city,Ct=s.customer.address.mobilePhone||s.customer.address.landLinePhone,dt=s.customer.address.email),dt||(dt=s.customerEmail);let nt=this.doc.splitTextToSize(ie,Tt);vt&&(nt=nt.concat(this.doc.splitTextToSize(vt,Tt))),(Pt||It)&&(nt=nt.concat(this.doc.splitTextToSize(Pt+" "+It,Tt))),dt&&(nt=nt.concat(this.doc.splitTextToSize(dt,Tt))),Ct&&(nt=nt.concat(this.doc.splitTextToSize(Ct,Tt))),this.addLine(),this.addText(nt,{fontStyle:"normal",fontSize:10,xPosition:Wt,yPosition:ee});const ot={fontStyle:"bold",fontSize:10},Q={fontStyle:"normal",fontSize:9},yt=this.horizontalMargin+k+1,Kt=Rt;this.setCurrentY(Kt),this.addText(this.translateService.instant("admin.orders.packing_slip.info"),{...ot,xPosition:yt}),this.addLine(),this.addText(this.translateService.instant("admin.orders.packing_slip.organization_number"),{...ot,xPosition:yt});const Vt=(null===(j=this.shopInfo)||void 0===j||null===(j=j.orgNo)||void 0===j?void 0:j.toString())+"MVA"||0;this.addText(Vt,{...Q,xPosition:w-2-this.getTextWidth(Vt,{fontSize:Q.fontSize}),maxWidth:29}),this.addLine(),this.addText(this.translateService.instant("admin.orders.packing_slip.business_register"),{...ot,xPosition:yt}),this.addLine(),this.addText(this.translateService.instant("admin.orders.packing_slip.bank_account"),{...ot,xPosition:yt});const $t=(null===(tt=this.shopInfo)||void 0===tt?void 0:tt.invoiceBankAccount)||"";this.addText($t,{...Q,xPosition:w-2-this.getTextWidth($t,{fontSize:Q.fontSize})}),this.setCurrentY(Kt);const Dt=yt+k;this.addText(this.translateService.instant("admin.orders.packing_slip.customer_number"),{...ot,xPosition:Dt});const Yt=(null===(V=s.customer)||void 0===V||null===(V=V.id)||void 0===V?void 0:V.toString())||"";this.addText(Yt,{...Q,xPosition:W-2-this.getTextWidth(Yt,{fontSize:Q.fontSize})}),this.addLine(),this.addText(this.translateService.instant("admin.orders.packing_slip.packing_slip_number"),{...ot,xPosition:Dt});const Gt=s.orderNo;this.addText(Gt,{...Q,xPosition:W-2-this.getTextWidth(Gt,{fontSize:Q.fontSize})}),this.addLine(),this.addText(this.translateService.instant("admin.orders.packing_slip.order_date"),{...ot,xPosition:Dt});const jt=this.getDateFormatted(t.pH.getOrderDate(s),this.generalInfo,!1);if(this.addText(jt,{...Q,xPosition:W-2-this.getTextWidth(jt,{fontSize:Q.fontSize})}),this.addLine(),this.generalInfo.showDeliveryDate&&s.deliveryDate){this.addText(this.translateService.instant("admin.orders.packing_slip.delivery_date"),{...ot,xPosition:Dt});const Z=this.getDateFormatted(t.pH.getOrderDeliveryDate(s),this.generalInfo,this.generalInfo.showDeliveryTime);this.addText(Z,{...Q,xPosition:W-2-this.getTextWidth(Z,{fontSize:Q.fontSize})})}const Ht=[];s.lines.map(Z=>Z.productId).forEach(Z=>{Ht.push(this.getProductByIdInteractor.execute(Z,!1))}),(0,d.z)(Ht).subscribe(Z=>{var Lt;Z.forEach(X=>{s.lines.find(st=>st.productId===X.id).product=X});const At=[];if(s.lines.forEach(X=>{var st;At.push(this.generateLineRow(X)),this.handleGroupedProducts(At,X),null==X||null===(st=X.innerLines)||void 0===st||st.forEach(ct=>{const St=this.generateLineRow(ct),ne=[{cellPadding:{left:5},valign:"middle",fontSize:8.5},{cellPadding:{left:5},valign:"middle",fontSize:8.5},{fontSize:8.5}],Qt=[];null==St||St.forEach((oe,se)=>{Qt.push({content:oe,styles:ne[se]})}),At.push(Qt)})}),(0,i.Ay)(this.doc,{head:[[this.translateService.instant("admin.orders.packing_slip.product_id"),this.translateService.instant("admin.orders.packing_slip.name"),{content:this.translateService.instant("admin.orders.packing_slip.quantity"),styles:{halign:"right"}}]],headStyles:{lineWidth:.3,lineColor:this.blackColor,fillColor:this.grayColor,fontStyle:"bold",textColor:this.blackColor},theme:"grid",body:At,startY:Mt,styles:{textColor:this.blackColor,lineColor:this.blackColor},columnStyles:{0:{cellWidth:k},1:{cellWidth:k,overflow:"linebreak"},2:{halign:"right",cellWidth:k}},margin:{top:0,horizontal:this.horizontalMargin,bottom:this.verticalMargin},didDrawPage:X=>{X.settings.margin.top=this.verticalMargin}}),s.customerComment&&(this.doc.setPage(this.doc.getNumberOfPages()),this.addText(this.translateService.instant("admin.orders.order_confirmation.reference")+":",{fontStyle:"bold",xPosition:this.verticalMargin,yPosition:this.doc.lastAutoTable.finalY+this.lineHeight,fontSize:12}),this.doc.setFontSize(this.fontSize),this.doc.setFont(this.font,"normal"),(0,i.Ay)(this.doc,{theme:"plain",startY:this.doc.lastAutoTable.finalY+7,styles:{textColor:this.blackColor},margin:{vertical:this.verticalMargin,horizontal:this.verticalMargin},body:[[this.doc.splitTextToSize(s.customerComment,this.docWidth-2*this.horizontalMargin)]]})),s.note&&(this.doc.setPage(this.doc.getNumberOfPages()),this.addText(this.translateService.instant("admin.orders.packing_slip.notes")+":",{fontStyle:"bold",xPosition:this.verticalMargin,yPosition:this.doc.lastAutoTable.finalY+this.lineHeight,fontSize:12}),this.doc.setFontSize(this.fontSize),this.doc.setFont(this.font,"normal"),(0,i.Ay)(this.doc,{theme:"plain",startY:this.doc.lastAutoTable.finalY+7,styles:{textColor:this.blackColor},margin:{vertical:this.verticalMargin,horizontal:this.verticalMargin},body:[[this.doc.splitTextToSize(s.note,this.docWidth-2*this.horizontalMargin)]]})),null!=s&&null!==(Lt=s.customValues)&&void 0!==Lt&&Lt.length){this.doc.setPage(this.doc.getNumberOfPages()),this.setCurrentY(this.doc.lastAutoTable.finalY);for(const X of s.customValues){this.addLine(),this.doc.setPage(this.doc.getNumberOfPages());const st=`${X.fieldName}:`;this.addText(st,{fontStyle:"bold",xPosition:this.verticalMargin,yPosition:this.currentY,fontSize:12}),this.doc.setFontSize(this.fontSize),this.doc.setFont(this.font,"normal");let ct=X.value;"true"===ct?ct="[V]":"false"===ct&&(ct="[X]");const St=this.getTextWidth(st,{fontSize:12})+this.verticalMargin+3;this.addText(ct,{xPosition:St,yPosition:this.currentY,fontSize:11})}this.addLine()}this.doc.setPage(1);const Jt=this.translateService.instant("admin.orders.packing_slip.page")+" 1 "+this.translateService.instant("admin.orders.packing_slip.of")+" "+this.doc.getNumberOfPages();return this.addText(Jt,{fontSize:11,fontStyle:"bold",xPosition:W-1-this.getTextWidth(Jt,{fontSize:11}),yPosition:this.verticalMargin+71}),this.openGeneratedDocumentInNewTab(),this.createJSPDF("portrait"),""},Z=>(console.log(Z),this.createJSPDF("portrait"),this.snackbarService.error("error_loading_data"),""))}
1,O=>(console.log(O),this.snackbarService.error("error_loading_data"),""))}generateLineRow(m){var s;const O=c.$.formatLineNote(m);return[m.productId,m.text+O,null===(s=m.qtyOrdered)||void 0===s?void 0:s.toLocaleString(this.generalInfo.numberFormat,this.decimalPlacesFormat)]}handleGroupedProducts(m,s){var O,x;(null===(O=s.product)||void 0===O?void 0:O.productType)===a.c.GROUPED&&(null===(x=s.product.innerProducts)||void 0===x||x.forEach(g=>{m.push([" "+g.product.id," "+g.product.name,(s.qtyOrdered*g.qty).toLocaleString(this.generalInfo.numberFormat,this.decimalPlacesFormat)])}))}}return(b=C).\u0275fac=function(m){return new(m||b)(u.KVO(h.c$),u.KVO(y.W),u.KVO(p.z),u.KVO(P.T),u.KVO(S.o))},b.\u0275prov=u.jDH({token:b,factory:b.\u0275fac}),C})()},94510:(B,l,e)=>{"use strict";e.d(l,{D:()=>N});var t=e(97268),n=e(33425),i=e(61747),o=e(84572),r=e(50042),d=e(17238),c=e(61129),a=e(12587),u=e(68314),h=e(17705),y=e(41780),p=e(42353),P=e(78584),S=e(70521);let N=(()=>{var b;class C extends r.p{constructor(m,s,O,x){super(),this.translateService=m,this.shopInfoService=s,this.getProductByIdInteractor=O,this.snackbarService=x,this.decimalPlacesFormat=new n.PM,this.blackColor="#000000",this.grayColor="#e3e2de",this.shopInfoService.getShopInfo().subscribe(g=>this.shopInfo=g),this.shopInfoService.getGeneralInfo().subscribe(g=>this.generalInfo=g)}export(m,s,O){var x,g,v,E,_,M,I;this.createJSPDF("landscape"),null==O||!O.showPosOrderQRCode||s.type!==t.ZN.CART||null!==(x=s.payments)&&void 0!==x&&x.length||null===(g=s.posQrCode)||void 0===g||!g.length||u.toDataURL(s.posQrCode,{width:200},(k,q)=>{if(k)return void console.error(k);const U=this.verticalMargin/2;this.doc.addImage(q,"PNG",this.docWidth/2-10,U,20,20),this.doc.setFontSize(10),this.doc.text(s.posQrCode,this.docWidth/2,U+20+5,{align:"center"})}),this.addText(this.translateService.instant("admin.orders.picking_list.order_number")+":",{xPosition:this.horizontalMargin,yPosition:this.verticalMargin,fontStyle:"bold"}),this.addText(s.orderNo,{fontStyle:"normal",xPosition:this.horizontalMargin+35}),this.addLine(),null!=s&&s.salespersonName&&(this.addText(this.translateService.instant("admin.orders.picking_list.salesperson")+":",{fontStyle:"bold",xPosition:this.horizontalMargin}),this.addText(s.salespersonName,{fontStyle:"normal",xPosition:this.horizontalMargin+35}),this.addLine()),s.ourRef&&d.$.isNotBlank(s.ourRef)&&(this.addText(this.translateService.instant("admin.orders.create_new.our_reference")+":",{fontStyle:"bold",xPosition:this.horizontalMargin}),this.addText(s.ourRef,{fontStyle:"normal",xPosition:this.horizontalMargin+35}),this.addLine()),s.theirRef&&d.$.isNotBlank(s.theirRef)&&(this.addText(this.translateService.instant("admin.orders.create_new.their_reference")+":",{fontStyle:"bold",xPosition:this.horizontalMargin}),this.addText(s.theirRef,{fontStyle:"normal",xPosition:this.horizontalMargin+35}),this.addLine()),s.customerComment&&(this.addText(this.translateService.instant("admin.orders.create_new.customer_comment")+":",{fontStyle:"bold",xPosition:this.horizontalMargin}),this.addText(s.customerComment,{fontStyle:"normal",xPosition:this.horizontalMargin+35}),this.addLine()),s.note&&(this.addText(this.translateService.instant("admin.orders.create_new.note")+":",{fontStyle:"bold",xPosition:this.horizontalMargin}),this.addText(s.note,{fontStyle:"normal",xPosition:this.horizontalMargin+35}),this.addLine());const T=this.getDateFormatted(new Date,this.generalInfo,!0,!1),A=s.customerName||"",f=s.customerMobile||(null===(v=s.customer)||void 0===v||null===(v=v.address)||void 0===v?void 0:v.mobilePhone)||(null===(E=s.customer)||void 0===E||null===(E=E.address)||void 0===E?void 0:E.landLinePhone)||"",F=s.customerEmail,D=(null===(_=s.customer)||void 0===_||null===(_=_.invoiceAddress)||void 0===_?void 0:_.email)||(null===(M=s.customer)||void 0===M||null===(M=M.address)||void 0===M?void 0:M.email)||(null===(I=s.deliveryAddress)||void 0===I?void 0:I.email)||"",L=this.docWidth-215-this.horizontalMargin;let z=this.doc.splitTextToSize(this.translateService.instant("admin.orders.picking_list.date")+":",25),K=this.doc.splitTextToSize(T,L);A&&(z=z.concat(this.doc.splitTextToSize(this.translateService.instant("admin.orders.picking_list.customer")+":",25)),K=K.concat(this.doc.splitTextToSize(A,L))),f&&(z=z.concat(this.doc.splitTextToSize(this.translateService.instant("admin.orders.picking_list.mobile")+":",25)),K=K.concat(this.doc.splitTextToSize(f,L))),F&&(z=z.concat(this.doc.splitTextToSize(this.translateService.instant("admin.orders.picking_list.email")+":",25)),K=K.concat(this.doc.splitTextToSize(F,L))),D&&D!==F&&(z=z.concat(this.doc.splitTextToSize(this.translateService.instant("admin.orders.picking_list.email")+":",25)),K=K.concat(this.doc.splitTextToSize(D,L))),this.addText(z,{fontStyle:"bold",xPosition:190,yPosition:this.verticalMargin}),this.addText(K,{fontStyle:"normal",xPosition:215,yPosition:this.verticalMargin});const j=[];
1s.lines.map(V=>V.productId).forEach(V=>{j.push(this.getProductByIdInteractor.execute(V,!1))}),(0,o.z)(j).subscribe(V=>{var k;V.forEach(w=>{s.lines.find(W=>W.productId===w.id).product=w});const q=[];if(s.lines.forEach(w=>{var W,U,$;q.push(this.generateLineRow(w)),(null===(W=w.product)||void 0===W?void 0:W.productType)===a.c.GROUPED&&(null===($=w.product.innerProducts)||void 0===$||$.forEach(G=>{const H=[G.product.vendorProductId||"",G.product.id,G.product.name,(w.qtyOrdered*G.qty).toLocaleString(this.generalInfo.numberFormat,this.decimalPlacesFormat),"",""],ht=[{cellPadding:{left:5},valign:"middle",fontSize:8.5},{cellPadding:{left:5},valign:"middle",fontSize:8.5},{cellPadding:{left:5},valign:"middle",fontSize:8.5},{fontSize:8.5},{fontSize:8.5},{fontSize:8.5}],et=[];null==H||H.forEach((ft,ut)=>{et.push({content:ft,styles:ht[ut]})}),q.push(et)})),null==w||null===(U=w.innerLines)||void 0===U||U.forEach(G=>{const H=this.generateLineRow(G),ht=[{cellPadding:{left:5},valign:"middle",fontSize:8.5},{cellPadding:{left:5},valign:"middle",fontSize:8.5},{cellPadding:{left:5},valign:"middle",fontSize:8.5},{fontSize:8.5},{fontSize:8.5},{fontSize:8.5}],et=[];null==H||H.forEach((ft,ut)=>
1{et.push({content:ft,styles:ht[ut]})}),q.push(et)})}),(0,i.Ay)(this.doc,{head:[[this.translateService.instant("admin.orders.picking_list.vendor_product_id"),this.translateService.instant("admin.orders.picking_list.product_id"),this.translateService.instant("admin.orders.picking_list.name"),this.translateService.instant("admin.orders.picking_list.quantity"),this.translateService.instant("admin.orders.picking_list.picked"),this.translateService.instant("admin.orders.picking_list.remaining")]],headStyles:{lineWidth:.3,lineColor:this.blackColor,fontStyle:"bold",textColor:this.blackColor,halign:"center",fillColor:this.grayColor},theme:"grid",body:q,startY:this.verticalMargin+35,styles:{textColor:this.blackColor,lineColor:this.blackColor},columnStyles:{2:{minCellWidth:50,overflow:"linebreak"},3:{halign:"right"},4:{halign:"right"},5:{halign:"right"}},margin:{top:0,horizontal:this.horizontalMargin,bottom:this.verticalMargin},didDrawPage:w=>{w.settings.margin.top=this.verticalMargin}}),this.doc.setPage(this.doc.getNumberOfPages()),(0,i.Ay)(this.doc,{startY:this.doc.lastAutoTable.finalY+this.lineHeight,head:[[this.translateService.instant("admin.orders.picking_list.received"),this.translateService.instant("admin.orders.picking_list.date"),this.translateService.instant("admin.orders.picking_list.number_of_items_picked"),this.translateService.instant("admin.orders.picking_list.picked_of_name"),this.translateService.instant("admin.orders.picking_list.picked_of_name"),this.translateService.instant("admin.orders.picking_list.date_of_delivery")]],headStyles:{lineWidth:.3,lineColor:this.blackColor,fontStyle:"bold",textColor:this.blackColor,halign:"center",fillColor:this.grayColor},theme:"grid",body:[["","","","","",""]],styles:{textColor:this.blackColor,lineColor:this.blackColor},margin:{top:0,horizontal:this.horizontalMargin,bottom:this.verticalMargin},didDrawPage:w=>{w.settings.margin.top=this.verticalMargin}}),null!=s&&null!==(k=s.customValues)&&void 0!==k&&k.length){this.doc.setPage(this.doc.getNumberOfPages()),this.setCurrentY(this.doc.lastAutoTable.finalY);for(const w of s.customValues){this.addLine();const W=`${w.fieldName}:`;this.addText(W,{fontStyle:"bold",xPosition:this.horizontalMargin});let U=w.value;"true"===U?U="[V]":"false"===U&&(U="[X]");const $=this.getTextWidth(W,{fontSize:12})+this.horizontalMargin+2;this.addText(U,{fontStyle:"normal",xPosition:$})}this.addLine()}return this.openGeneratedDocumentInNewTab(),this.createJSPDF("portrait"),""},V=>(console.log(V),this.createJSPDF("portrait"),this.snackbarService.error("error_loading_data"),""))}generateLineRow(m){var s;
1const O=c.$.formatLineNote(m);return m.qtyDelivered||(m.qtyDelivered=0),[(null===(s=m.product)||void 0===s?void 0:s.vendorProductId)||"",m.productId,m.text+O,m.qtyOrdered.toLocaleString(this.generalInfo.numberFormat,this.decimalPlacesFormat),"",""]}}return(b=C).\u0275fac=function(m){return new(m||b)(h.KVO(y.c$),h.KVO(p.W),h.KVO(P.T),h.KVO(S.z))},b.\u0275prov=h.jDH({token:b,factory:b.\u0275fac}),C})()},46972:(B,l,e)=>{"use strict";e.d(l,{k:()=>i});var t=e(17705),n=e(51548);let i=(()=>{var o;class r{constructor(c){this.networkRepository=c}execute(c){return this.networkRepository.getMailTemplates(c)}}return(o=r).\u0275fac=function(c){return new(c||o)(t.KVO(n.m))},o.\u0275prov=t.jDH({token:o,factory:o.\u0275fac}),r})()},36376:(B,l,e)=>{"use strict";e.d(l,{o:()=>t});var t=function(n){return n.ORDERCONFIRMATION="ORDERCONFIRMATION",n.FORGOTTENPASSWORD="FORGOTTENPASSWORD",n.CUSTOMERGREETING="CUSTOMERGREETING",n.ORDERDELIVERY="ORDERDELIVERY",n.ORDERING_PAYMENT_LINK="ORDERING_PAYMENT_LINK",n.ORDERSENT="ORDERSENT",n.OFFERSENT="OFFERSENT",n.OFFER_TEMPLATE="OFFER_TEMPLATE",n.EPROCORDER="EPROCORDER",n.RECEIPTCOPY="RECEIPTCOPY",n.GIFTCARDISSUED="GIFTCARDISSUED",n.SUBSCRIPTION_INSUFFICIENT_FUNDS="SUBSCRIPTION_INSUFFICIENT_FUNDS",n.SUBSCRIPTION_RENEWAL_ERROR="SUBSCRIPTION_RENEWAL_ERROR",n.SUBSCRIPTION_PAYMENT_METHOD_EXPIRED="SUBSCRIPTION_PAYMENT_METHOD_EXPIRED",n.SUBSCRIPTION_PAYMENT_REQUEST="SUBSCRIPTION_PAYMENT_REQUEST",n.ONLINE_TABLE_RESERVATION_CREATED="ONLINE_TABLE_RESERVATION_CREATED",n}(t||{})},50042:(B,l,e)=>{"use strict";e.d(l,{p:()=>r});var t=e(20246),n=e(33425),i=e(67374),o=e.n(i);class r{constructor(){this.decimalPlacesFormat=new n.PM}static getNumberFormatted(a,u,h){var y;return a||(a=0),(a<0?"-":"")+(null===(y=Math.abs(a))||void 0===y?void 0:y.toLocaleString(u,h).toString())}createJSPDF(a,u,h){this.doc=new t.Ay(a||"portrait","mm","a4",!0),this.font=this.doc.getFont().fontName,this.docWidth=this.doc.internal.pageSize.getWidth(),this.docHeight=this.doc.internal.pageSize.getHeight(),this.fontSize=12,this.verticalMargin=u||15,this.horizontalMargin=h||8,this.lineHeight=8,this.currentY=this.verticalMargin}setLineHeight(a){this.lineHeight=a}setCurrentY(a){this.currentY=a}addLine(){this.setCurrentY(this.currentY+this.lineHeight),this.currentY>this.docHeight&&(this.doc.addPage(),this.setCurrentY(this.verticalMargin))}addText(a,u){this.doc.setFontSize(u.fontSize||this.fontSize),this.doc.setFont(u.font||this.font,u.fontStyle||"normal"),this.doc.setTextColor(u.color||"black");let h={};u.maxWidth&&(h={...h,maxWidth:u.maxWidth}),this.doc.text(a,u.xPosition,u.yPosition||this.currentY,h)}openGeneratedDocumentInNewTab(a){a&&this.doc.setProperties({title:a,subject:a}),window.open(this.doc.output("bloburl").toString())}saveDocument(a){this.doc.save(a)}getXPositionAlignRight(a,u){return this.docWidth-this.doc.getTextDimensions(a,u).w-this.horizontalMargin}getTextDimensions(a,u){return this.doc.getTextDimensions(a,u)}getTextWidth(a,u){var h;return null===(h=this.getTextDimensions(a,u))||void 0===h?void 0:h.w}getTextHeight(a,u){var h;return null===(h=this.getTextDimensions(a,u))||void 0===h?void 0:h.h}getDateFormatted(a,u,h=!0,y=!0){const p=h&&y?u.timeFormat+" "+u.dateFormat:h&&!y?u.dateFormat+" "+u.timeFormat:u.dateFormat;return o()(a).format(p)}getNumberFormatted(a){var u;return a||(a=0),(a<0?"-":"")+(null===(u=Math.abs(a))||void 0===u?void 0:u.toLocaleString(this.numberFormat,this.decimalPlacesFormat).toString())}}},96786:(B,l,e)=>{"use strict";e.d(l,{i:()=>A});var t=e(17705),n=e(89417),i=e(84135),o=e(17238),r=e(70521),d=e(34006),c=e(46972),a=e(60177),u=e(44613),h=e(99213),y=e(71997),p=e(88588),P=e(83269),S=e(85956),N=e(224),b=e(9183),C=e(15332),R=e(41780);function m(f,F){if(1&f&&(t.j41(0,"div",16),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&f){const D=t.XpG(2);t.R7$(1),t.SpI(" ",t.bMT(2,1,D.descriptionText)," ")}}function s(f,F){if(1&f){const D=t.RV6();t.j41(0,"mat-option",20),t.bIt("click",function(){t.eBV(D);const z=t.XpG(3);return t.Njj(z.emailTemplateChanged())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&f){const D=F.$implicit,L=t.XpG(3);t.Y8G("value",D),t.R7$(1),t.Lme(" (",t.bMT(2,3,"admin.settings.templates.mail."+D.type),") - ",L.getTextTruncated(D.name)," ")}}function O(f,F){if(1&f&&(t.j41(0,"mat-form-field",17)(1,"mat-label"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"mat-select",18),t.DNE(5,s,3,5,"mat-option",19),t.k0s()()),2&f){const D=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,3,"send_sms_dialog.sms_template")),t.R7$(2),t.Y8G("formControl",D.emailTemplateFormControl),t.R7$(1),t.Y8G("ngForOf",D.mailTemplates)}}function x(f,F){1&f&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&f&&(t.R7$(1),t.JRh(t.bMT(2,1,"email_dialog.email_error")))}const g=function(){return{standalone:!0}};function v(f,F){if(1&f){const D=t.RV6();t.qex(0),t.j41(1,"div",21)(2,"text-editor",22),t.bIt("ngModelChange",function(z){t.eBV(D);const K=t.XpG(2);return t.Njj(K.emailBody=z)}),t.k0s()(),t.bVm()}if(2&f){const D=t.XpG(2);t.R7$(2),t.Y8G("ngModel",D.emailBody)("ngModelOptions",t.lJ4(2,g))}}const E=function(f){return{template:f}};function _(f,F){if(1&f&&(t.j41(0,"div",10)(1,"mat-error"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s()()),2&f){const D=t.XpG(2);t.R7$(2),t.SpI(" ",t.i5U(3,1,"email_dialog.mail_template_missing",t.eq3(6,E,t.bMT(4,4,"admin.settings.templates.mail."+D.mailTemplateType.toString())))," ")}}function M(f,F){if(1&f&&(t.j41(0,"div",8),t.DNE(1,m,3,3,"div",9),t.j41(2,"div",10)(3,"form",8),t.DNE(4,O,6,5,"mat-form-field",11),t.j41(5,"mat-form-field",12)(6,"mat-label"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.nrm(9,"input",13),t.DNE(10,x,3,3,"mat-error",14),t.k0s(),t.DNE(11,v,3,3,"ng-container",14),t.k0s()(),t.DNE(12,_,5,8,"div",15),t.k0s()),2&f){const D=t.XpG();t.R7$(1),t.Y8G("ngIf",!(null==D.descriptionText||!D.descriptionText.length)),t.R7$(3),t.Y8G("ngIf",D.requireEmailTemplate&&!(null==D.mailTemplates||!D.mailTemplates.length)),t.R7$(3),t.JRh(t.bMT(8,7,"email_dialog.recipient")),t.R7$(2),t.Y8G("formControl",D.emailFormControl),t.R7$(1),t.Y8G("ngIf",null==D.emailFormControl?null:D.emailFormControl.errors),t.R7$(1),t.Y8G("ngIf",D.showEmailBody),t.R7$(1),t.Y8G("ngIf",D.isMailTemplateMissing)}}function I(f,F){1&f&&(t.j41(0,"div",23),t.nrm(1,"mat-spinner",24),t.k0s())}function T(f,F){if(1&f){const D=t.RV6();t.j41(0,"mat-dialog-actions",25),t.nrm(1,"mat-divider",26),t.j41(2,"button",27),t.bIt("click",function(){t.eBV(D);
1const z=t.XpG();return t.Njj(z.closeDialog())}),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"button",28),t.bIt("click",function(){t.eBV(D);const z=t.XpG();return t.Njj(z.sendClicked())}),t.EFF(6),t.nI1(7,"translate"),t.k0s()()}if(2&f){const D=t.XpG();t.R7$(3),t.SpI(" ",t.bMT(4,3,D.cancelButtonLabel)," "),t.R7$(2),t.Y8G("disabled",D.isMailTemplateMissing),t.R7$(1),t.SpI(" ",t.bMT(7,5,D.sendButtonLabel)," ")}}let A=(()=>{var f;class F extends i.${constructor(L,z,K,j){super(L),this.cdk=L,this.snackbarService=z,this.matDialogRef=K,this.getMailTemplatesInteractor=j,this.emailTemplateFormControl=new n.hs(void 0),this.emailFormControl=new n.hs("",[n.k0.required,n.k0.email]),this.emailBodyFormControl=new n.hs(""),this.mailTemplates=[],this.title="email_dialog.send_email",this.sendButtonLabel="email_dialog.send",this.cancelButtonLabel="cancel_button_label",this.showEmailBody=!1,this.requireEmailTemplate=!0,this.onSendClicked=new t.bkB}ngOnInit(){this.isLoading=!0,this.markForCheck(),this.addSubscription(this.getMailTemplatesInteractor.execute().subscribe(L=>{this.mailTemplates=L,this.initForms()}))}initForms(){this.isMailTemplateMissing=this.requireEmailTemplate&&!!this.mailTemplateType&&!this.mailTemplates.find(L=>L.type===this.mailTemplateType),o.$.isNotBlank(this.email)&&this.emailFormControl.setValue(this.email),this.isLoading=!1,this.markForCheck()}emailTemplateChanged(){var L;this.emailTemplateFormControl.setValue(null===(L=this.emailTemplateFormControl)||void 0===L||null===(L=L.value)||void 0===L?void 0:L.text),this.markForCheck()}getTextTruncated(L){return(null==L?void 0:L.length)>25?L.substr(0,25)+"...":L}sendClicked(){this.emailFormControl.markAsTouched(),this.emailFormControl.markAsDirty(),this.emailFormControl.updateValueAndValidity(),this.emailFormControl.valid?(this.onSendClicked.emit({mailTemplateType:this.mailTemplateType,email:this.emailFormControl.value.toString(),emailBody:this.emailBody}),this.closeDialog({email:this.emailFormControl.value.toString(),emailBody:this.emailBody})):this.snackbarService.error("email_dialog.email_error")}closeDialog(L){this.matDialogRef.close(L)}editorContentChange(L){this.emailBodyFormControl.setValue(L)}}return(f=F).\u0275fac=function(L){return new(L||f)(t.rXU(t.gRc),t.rXU(r.z),t.rXU(d.CP),t.rXU(c.k))},f.\u0275cmp=t.VBU({type:f,selectors:[["webshop-email-input-dialog"]],inputs:{email:"email",title:"title",sendButtonLabel:"sendButtonLabel",cancelButtonLabel:"cancelButtonLabel",descriptionText:"descriptionText",mailTemplateType:"mailTemplateType",showEmailBody:"showEmailBody",requireEmailTemplate:"requireEmailTemplate"},features:[t.Vt3],decls:13,vars:6,consts:[[1,"d-flex","flex-column"],[1,"dialog-header","border-0"],[1,"m-0","title"],["color","accent","mat-icon-button","",1,"close-btn",3,"click"],[1,"d-flex","flex-column","position-relative","flex-grow-1"],["class","row mx-0",4,"ngIf"],["class","loading-overlay",4,"ngIf"],["align","end",4,"ngIf"],[1,"row","mx-0"],["class","col-12 mt-2 font-medium-1",4,"ngIf"],[1,"col-12"],["name","mailTemplateType","appearance","outline","color","accent","class","col-12",4,"ngIf"],["appearance","outline","color","accent",1,"col-12","mt-3","primary-input"],["type","email","matInput","","required","",3,"formControl"],[4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12","mt-2","font-medium-1"],["name","mailTemplateType","appearance","outline","color","accent",1,"col-12"],[3,"formControl"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"col-12","mb-3"],[1,"mt-2",3,"ngModel","ngModelOptions","ngModelChange"],[1,"loading-overlay"],["color","accent"],["align","end"],[1,"mt-2"],["type","button","mat-stroked-button","",1,"mx-2",3,"click"],["type","submit","color","primary","mat-flat-button","",1,"mx-2","button",2,"min-width","125px",3,"disabled","click"]],template:function(L,z){1&L&&(t.j41(0,"mat-dialog-content",0)(1,"div",1)(2,"span",2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"button",3),t.bIt("click",function(){return z.closeDialog()}),t.j41(6,"mat-icon"),t.EFF(7,"close"),t.k0s()()(),t.nrm(8,"mat-divider"),t.j41(9,"div",4),t.DNE(10,M,13,9,"div",5),t.DNE(11,I,2,0,"div",6),t.k0s()(),t.DNE(12,T,8,7,"mat-dialog-actions",7)),2&L&&(t.R7$(3),t.SpI(" ",t.bMT(4,4,z.title)," "),t.R7$(7),t.Y8G("ngIf",!z.isLoading),t.R7$(1),t.Y8G("ngIf",z.isLoading),t.R7$(1),t.Y8G("ngIf",!z.isLoading))},dependencies:[a.Sq,a.bT,u.k5,u.Ky,u.aw,d.Yi,d.E7,h.An,y.q,p.cu,P.d1,S.iV,n.qT,n.me,n.BC,n.cb,n.YS,n.l_,N.aL,b.LG,C.k,n.vS,n.cV,R.D9],styles:["[_nghost-%COMP%] .title{font-size:1.2rem!important}"],changeDetection:0}),F})()},53557:(B,l,e)=>{"use strict";e.d(l,{N:()=>b});var t=e(60177),n=e(41780),i=e(52168),o=e(44613),r=e(34006),d=e(99213),c=e(3902),a=e(85956),u=e(89417),h=e(224),y=e(46972),p=e(9183),P=e(12291),S=e(88588),N=e(17705);let b=(()=>{var C;class R{}return(C=R).\u0275fac=function(s){return new(s||C)},C.\u0275mod=N.$C({type:C}),C.\u0275inj=N.G2t({providers:[y.k],imports:[t.MD,n.h,i.iI,o.C,r.hM,d.m_,c.Fg,S.kg,a.wG,u.X1,h.mz,p.D6,P.$,u.YN]}),R})()},28752:(B,l,e)=>{"use strict";e.d(l,{M:()=>d});var r,t=e(89417),n=e(7673),i=e(96354),o=function(c){return c.AVAILABLE="AVAILABLE",c.INVALID="INVALID",c.UNAVAILABLE="UNAVAILABLE",c}(o||{});class d{static eitherIsRequiredOnChange(a,u){a.value||u.value?(a.errors&&(delete a.errors.required,a.updateV
1alueAndValidity()),u.errors&&(delete u.errors.required,u.updateValueAndValidity())):(a.setErrors({required:!0}),u.setErrors({required:!0}))}static asyncValidatorWrapper(a,u){return a.invalid||!a.value?(0,n.of)(null):u.pipe((0,i.T)(h=>h?null:{reserved:!0}))}static availabilityValidatorWrapper(a){return a.pipe((0,i.T)(u=>{switch(u){case o.AVAILABLE:return null;case o.INVALID:return{invalid:!0};case o.UNAVAILABLE:return{reserved:!0};default:return null}}))}static divisibleNumberValidator(a){return u=>isNaN(u.value)||u.value%a!=0?{notDivisible:!0}:null}static positiveNumberValidator(a){return null==a.value||""===a.value||!isNaN(a.value)&&Number(a.value)>0?null:{positiveNumber:!0}}}(r=d).discountPercentPattern="^(?:100(\\.00)?|[1-9]?[0-9]|[0-9]{1,2}\\.[0-9]{1,})$",r.naturalNumberPattern="^(?:1000000(\\.00)?|[1-9]?[0-9]{1,5}|[0-9]{0,6}\\.[0-9]{1,})$",r.quantityPattern="^-?(?:1000000(\\.00)?|[1-9]?[0-9]{1,5}|[0-9]{0,6}\\.[0-9]{1,})$",r.ID_VALIDATOR=t.k0.pattern("[A-Z0-9]{0,30}")},80243:B=>{"use strict";var l={single_source_shortest_paths:function(e,t,n){var i={},o={};o[t]=0;var d,c,a,u,h,p,r=l.PriorityQueue.make();for(r.push(t,0);!r.empty();)for(a in u=(d=r.pop()).cost,h=e[c=d.value]||{})h.hasOwnProperty(a)&&(p=u+h[a],(typeof o[a]>"u"||o[a]>p)&&(o[a]=p,r.push(a,p),i[a]=c));if(typeof n<"u"&&typeof o[n]>"u"){var N=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(N)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],i=t;i;)n.push(i),i=e[i];return n.reverse(),n},find_path:function(e,t,n){var i=l.single_source_shortest_paths(e,t,n);return l.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var i,t=l.PriorityQueue,n={};for(i in e=e||{},t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n.queue=[],n.sorter=e.sorter||t.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};B.exports=l},68314:(B,l,e)=>{const t=e(72836),n=e(89460),i=e(7030),o=e(56511);function r(d,c,a,u,h){const y=[].slice.call(arguments,1),p=y.length,P="function"==typeof y[p-1];if(!P&&!t())throw new Error("Callback required as last argument");if(!P){if(p<1)throw new Error("Too few arguments provided");return 1===p?(a=c,c=u=void 0):2===p&&!c.getContext&&(u=a,a=c,c=void 0),new Promise(function(S,N){try{const b=n.create(a,u);S(d(b,c,u))}catch(b){N(b)}})}if(p<2)throw new Error("Too few arguments provided");2===p?(h=a,a=c,c=u=void 0):3===p&&(c.getContext&&typeof h>"u"?(h=u,u=void 0):(h=u,u=a,a=c,c=void 0));try{const S=n.create(a,u);h(null,d(S,c,u))}catch(S){h(S)}}l.create=n.create,l.toCanvas=r.bind(null,i.render),l.toDataURL=r.bind(null,i.renderToDataURL),l.toString=r.bind(null,function(d,c,a){return o.render(d,a)})},72836:B=>{B.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},96214:(B,l,e)=>{const t=e(19089).getSymbolSize;l.getRowColCoords=function(i){if(1===i)return[];const o=Math.floor(i/7)+2,r=t(i),d=145===r?26:2*Math.ceil((r-13)/(2*o-2)),c=[r-7];for(let a=1;a<o-1;a++)c[a]=c[a-1]-d;return c.push(6),c.reverse()},l.getPositions=function(i){const o=[],r=l.getRowColCoords(i),d=r.length;for(let c=0;c<d;c++)for(let a=0;a<d;a++)0===c&&0===a||0===c&&a===d-1||c===d-1&&0===a||o.push([r[c],r[a]]);return o}},1018:(B,l,e)=>{const t=e(91677),n=["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 i(o){this.mode=t.ALPHANUMERIC,this.data=o}i.getBitsLength=function(r){return 11*Math.floor(r/2)+r%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(r){let d;for(d=0;d+2<=this.data.length;d+=2){let c=45*n.indexOf(this.data[d]);c+=n.indexOf(this.data[d+1]),r.put(c,11)}this.data.length%2&&r.put(n.indexOf(this.data[d]),6)},B.exports=i},84662:B=>{function l(){this.buffer=[],this.length=0}l.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},B.exports=l},35941:B=>{function l(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}l.prototype.set=function(e,t,n,i){const o=e*this.size+t;this.data[o]=n,i&&(this.reservedBit[o]=!0)},l.prototype.get=function(e,t){return this.data[e*this.size+t]},l.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},l.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},B.exports=l},54969:(B,l,e)=>{const t=e(91677);function n(i){this.mode=t.BYTE,this.data="string"==typeof i?(new TextEncoder).encode(i):new Uint8Array(i)}n.getBitsLength=function(o){return 8*o},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){for(let o=0,r=this.data.length;o<r;o++)i.put(this.data[o],8)},B.exports=n},23677:(B,l,e)=>{const t=e(47424),n=[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],i=[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,
vendor: 3,713 bytes, line 1
1192,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];l.getBlocksCount=function(r,d){switch(d){case t.L:return n[4*(r-1)+0];case t.M:return n[4*(r-1)+1];case t.Q:return n[4*(r-1)+2];case t.H:return n[4*(r-1)+3];default:return}},l.getTotalCodewordsCount=function(r,d){switch(d){case t.L:return i[4*(r-1)+0];case t.M:return i[4*(r-1)+1];case t.Q:return i[4*(r-1)+2];case t.H:return i[4*(r-1)+3];default:return}}},47424:(B,l)=>{l.L={bit:1},l.M={bit:0},l.Q={bit:3},l.H={bit:2},l.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},l.from=function(n,i){if(l.isValid(n))return n;try{return function e(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return l.L;case"m":case"medium":return l.M;case"q":case"quartile":return l.Q;case"h":case"high":return l.H;default:throw new Error("Unknown EC Level: "+t)}}(n)}catch{return i}}},76269:(B,l,e)=>{const t=e(19089).getSymbolSize;l.getPositions=function(o){const r=t(o);return[[0,0],[r-7,0],[0,r-7]]}},26254:(B,l,e)=>{const t=e(19089),o=t.getBCHDigit(1335);l.getEncodedBits=function(d,c){const a=d.bit<<3|c;let u=a<<10;for(;t.getBCHDigit(u)-o>=0;)u^=1335<<t.getBCHDigit(u)-o;return 21522^(a<<10|u)}},66686:(B,l)=>{const e=new Uint8Array(512),t=new Uint8Array(256);(function(){let i=1;for(let o=0;o<255;o++)e[o]=i,t[i]=o,i<<=1,256&i&&(i^=285);for(let o=255;o<512;o++)e[o]=e[o-255]})(),l.log=function(i){if(i<1)throw new Error("log("+i+")");return t[i]},l.exp=function(i){return e[i]},l.mul=function(i,o){return 0===i||0===o?0:e[t[i]+t[o]]}},83264:(B,l,e)=>{const t=e(91677),n=e(19089);function i(o){this.mode=t.KANJI,this.data=o}i.getBitsLength=function(r){return 13*r},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(o){let r;for(r=0;r<this.data.length;r++){let d=n.toSJIS(this.data[r]);if(d>=33088&&d<=40956)d-=33088;else{if(!(d>=57408&&d<=60351))throw new Error("Invalid SJIS character: "+this.data[r]+"\nMake sure your charset is UTF-8");d-=49472}d=192*(d>>>8&255)+(255&d),o.put(d,13)}},B.exports=i},3361:(B,l)=>{l.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(n,i,o){switch(n){case l.Patterns.PATTERN000:return(i+o)%2==0;case l.Patterns.PATTERN001:return i%2==0;case l.Patterns.PATTERN010:return o%3==0;case l.Patterns.PATTERN011:return(i+o)%3==0;case l.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2==0;case l.Patterns.PATTERN101:return i*o%2+i*o%3==0;case l.Patterns.PATTERN110:return(i*o%2+i*o%3)%2==0;case l.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2==0;default:throw new Error("bad maskPattern:"+n)}}l.isValid=function(i){return null!=i&&""!==i&&!isNaN(i)&&i>=0&&i<=7},l.from=function(i){return l.isValid(i)?parseInt(i,10):void 0},l.getPenaltyN1=function(i){const o=i.size;let r=0,d=0,c=0,a=null,u=null;for(let h=0;h<o;h++){d=c=0,a=u=null;for(let y=0;y<o;y++){let p=i.get(h,y);p===a?d++:(d>=5&&(r+=d-5+3),a=p,d=1),p=i.get(y,h),p===u?c++:(c>=5&&(r+=c-5+3),u=p,c=1)}d>=5&&(r+=d-5+3),c>=5&&(r+=c-5+3)}return r},l.getPenaltyN2=function(i){const o=i.size;let r=0;for(let d=0;d<o-1;d++)for(let c=0;c<o-1;
vendor: 5,076 bytes, line 1
1c++){const a=i.get(d,c)+i.get(d,c+1)+i.get(d+1,c)+i.get(d+1,c+1);(4===a||0===a)&&r++}return 3*r},l.getPenaltyN3=function(i){const o=i.size;let r=0,d=0,c=0;for(let a=0;a<o;a++){d=c=0;for(let u=0;u<o;u++)d=d<<1&2047|i.get(a,u),u>=10&&(1488===d||93===d)&&r++,c=c<<1&2047|i.get(u,a),u>=10&&(1488===c||93===c)&&r++}return 40*r},l.getPenaltyN4=function(i){let o=0;const r=i.data.length;for(let c=0;c<r;c++)o+=i.data[c];return 10*Math.abs(Math.ceil(100*o/r/5)-10)},l.applyMask=function(i,o){const r=o.size;for(let d=0;d<r;d++)for(let c=0;c<r;c++)o.isReserved(c,d)||o.xor(c,d,t(i,c,d))},l.getBestMask=function(i,o){const r=Object.keys(l.Patterns).length;let d=0,c=1/0;for(let a=0;a<r;a++){o(a),l.applyMask(a,i);const u=l.getPenaltyN1(i)+l.getPenaltyN2(i)+l.getPenaltyN3(i)+l.getPenaltyN4(i);l.applyMask(a,i),u<c&&(c=u,d=a)}return d}},91677:(B,l,e)=>{const t=e(80377),n=e(99359);l.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},l.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},l.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},l.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},l.MIXED={bit:-1},l.getCharCountIndicator=function(r,d){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?r.ccBits[0]:d<27?r.ccBits[1]:r.ccBits[2]},l.getBestModeForData=function(r){return n.testNumeric(r)?l.NUMERIC:n.testAlphanumeric(r)?l.ALPHANUMERIC:n.testKanji(r)?l.KANJI:l.BYTE},l.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},l.isValid=function(r){return r&&r.bit&&r.ccBits},l.from=function(r,d){if(l.isValid(r))return r;try{return function i(o){if("string"!=typeof o)throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return l.NUMERIC;case"alphanumeric":return l.ALPHANUMERIC;case"kanji":return l.KANJI;case"byte":return l.BYTE;default:throw new Error("Unknown mode: "+o)}}(r)}catch{return d}}},96628:(B,l,e)=>{const t=e(91677);function n(i){this.mode=t.NUMERIC,this.data=i.toString()}n.getBitsLength=function(o){return 10*Math.floor(o/3)+(o%3?o%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(o){let r,d,c;for(r=0;r+3<=this.data.length;r+=3)d=this.data.substr(r,3),c=parseInt(d,10),o.put(c,10);const a=this.data.length-r;a>0&&(d=this.data.substr(r),c=parseInt(d,10),o.put(c,3*a+1))},B.exports=n},81744:(B,l,e)=>{const t=e(66686);l.mul=function(i,o){const r=new Uint8Array(i.length+o.length-1);for(let d=0;d<i.length;d++)for(let c=0;c<o.length;c++)r[d+c]^=t.mul(i[d],o[c]);return r},l.mod=function(i,o){let r=new Uint8Array(i);for(;r.length-o.length>=0;){const d=r[0];for(let a=0;a<o.length;a++)r[a]^=t.mul(o[a],d);let c=0;for(;c<r.length&&0===r[c];)c++;r=r.slice(c)}return r},l.generateECPolynomial=function(i){let o=new Uint8Array([1]);for(let r=0;r<i;r++)o=l.mul(o,new Uint8Array([1,t.exp(r)]));return o}},89460:(B,l,e)=>{const t=e(19089),n=e(47424),i=e(84662),o=e(35941),r=e(96214),d=e(76269),c=e(3361),a=e(23677),u=e(86289),h=e(91252),y=e(26254),p=e(91677),P=e(22868);function R(g,v,E){const _=g.size,M=y.getEncodedBits(v,E);let I,T;for(I=0;I<15;I++)T=1==(M>>I&1),g.set(I<6?I:I<8?I+1:_-15+I,8,T,!0),g.set(8,I<8?_-I-1:I<9?15-I-1+1:15-I-1,T,!0);g.set(_-8,8,1,!0)}function x(g,v,E,_){let M;if(Array.isArray(g))M=P.fromArray(g);else{if("string"!=typeof g)throw new Error("Invalid data");{let F=v;if(!F){const D=P.rawSplit(g);F=h.getBestVersionForData(D,E)}M=P.fromString(g,F||40)}}const I=h.getBestVersionForData(M,E);if(!I)throw new Error("The amount of data is too big to be stored in a QR Code");if(v){if(v<I)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+I+".\n")}else v=I;const T=function s(g,v,E){const _=new i;E.forEach(function(f){_.put(f.mode.bit,4),_.put(f.getLength(),p.getCharCountIndicator(f.mode,g)),f.write(_)});const T=8*(t.getSymbolTotalCodewords(g)-a.getTotalCodewordsCount(g,v));for(_.getLengthInBits()+4<=T&&_.put(0,4);_.getLengthInBits()%8!=0;)_.putBit(0);const A=(T-_.getLengthInBits())/8;for(let f=0;f<A;f++)_.put(f%2?17:236,8);return function O(g,v,E){const _=t.getSymbolTotalCodewords(v),I=_-a.getTotalCodewordsCount(v,E),T=a.getBlocksCount(v,E),f=T-_%T,F=Math.floor(_/T),D=Math.floor(I/T),L=D+1,z=F-D,K=new u(z);let j=0;const tt=new Array(T),V=new Array(T);let k=0;const q=new Uint8Array(g.buffer);for(let G=0;G<T;G++){const H=G<f?D:L;tt[G]=q.slice(j,j+H),V[G]=K.encode(tt[G]),j+=H,k=Math.max(k,H)}const w=new Uint8Array(_);let U,$,W=0;for(U=0;U<k;U++)for($=0;$<T;$++)U<tt[$].length&&(w[W++]=tt[$][U]);for(U=0;U<z;U++)for($=0;$<T;$++)w[W++]=V[$][U];return w}(_,g,v)}(v,E,M),A=t.getSymbolSize(v),f=new o(A);return function S(g,v){const E=g.size,_=d.getPositions(v);for(let M=0;M<_.length;M++){const I=_[M][0],T=_[M][1];for(let A=-1;A<=7;A++)if(!(I+A<=-1||E<=I+A))for(let f=-1;f<=7;f++)T+f<=-1||E<=T+f||g.set(I+A,T+f,A>=0&&A<=6&&(0===f||6===f)||f>=0&&f<=6&&(0===A||6===A)||A>=2&&A<=4&&f>=2&&f<=4,!0)}}(f,v),function N(g){const v=g.size;
1for(let E=8;E<v-8;E++){const _=E%2==0;g.set(E,6,_,!0),g.set(6,E,_,!0)}}(f),function b(g,v){const E=r.getPositions(v);for(let _=0;_<E.length;_++){const M=E[_][0],I=E[_][1];for(let T=-2;T<=2;T++)for(let A=-2;A<=2;A++)g.set(M+T,I+A,-2===T||2===T||-2===A||2===A||0===T&&0===A,!0)}}(f,v),R(f,E,0),v>=7&&function C(g,v){const E=g.size,_=h.getEncodedBits(v);let M,I,T;for(let A=0;A<18;A++)M=Math.floor(A/3),I=A%3+E-8-3,T=1==(_>>A&1),g.set(M,I,T,!0),g.set(I,M,T,!0)}(f,v),function m(g,v){const E=g.size;let _=-1,M=E-1,I=7,T=0;for(let A=E-1;A>0;A-=2)for(6===A&&A--;;){for(let f=0;f<2;f++)if(!g.isReserved(M,A-f)){let F=!1;T<v.length&&(F=1==(v[T]>>>I&1)),g.set(M,A-f,F),I--,-1===I&&(T++,I=7)}if(M+=_,M<0||E<=M){M-=_,_=-_;break}}}(f,T),isNaN(_)&&(_=c.getBestMask(f,R.bind(null,f,E))),c.applyMask(_,f),R(f,E,_),{modules:f,version:v,errorCorrectionLevel:E,maskPattern:_,segments:M}}l.create=function(v,E){if(typeof v>"u"||""===v)throw new Error("No input text");let M,I,_=n.M;return typeof E<"u"&&(_=n.from(E.errorCorrectionLevel,n.M),M=h.from(E.version),I=c.from(E.maskPattern),E.toSJISFunc&&t.setToSJISFunction(E.toSJISFunc)),x(v,M,_,I)}},86289:(B,l,e)=>{const t=e(81744);function n(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(o){this.degree=o,this.genPoly=t.generateECPolynomial(this.degree)},n.prototype.encode=function(o){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(o.length+this.degree);r.set(o);const d=t.mod(r,this.genPoly),c=this.degree-d.length;if(c>0){const a=new Uint8Array(this.degree);return a.set(d,c),a}return d},B.exports=n},99359:(B,l)=>{const e="[0-9]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const i="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+")(?:.|[\r\n]))+";l.KANJI=new RegExp(n,"g"),l.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),l.BYTE=new RegExp(i,"g"),l.NUMERIC=new RegExp(e,"g"),l.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const o=new RegExp("^"+n+"$"),r=new RegExp("^"+e+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");l.testKanji=function(a){return o.test(a)},l.testNumeric=function(a){return r.test(a)},l.testAlphanumeric=function(a){return d.test(a)}},22868:(B,l,e)=>{const t=e(91677),n=e(96628),i=e(1018),o=e(54969),r=e(83264),d=e(99359),c=e(19089),a=e(80243);function u(C){return unescape(encodeURIComponent(C)).length}function h(C,R,m){const s=[];let O;for(;null!==(O=C.exec(m));)s.push({data:O[0],index:O.index,mode:R,length:O[0].length});return s}function y(C){const R=h(d.NUMERIC,t.NUMERIC,C),m=h(d.ALPHANUMERIC,t.ALPHANUMERIC,C);let s,O;return c.isKanjiModeEnabled()?(s=h(d.BYTE,t.BYTE,C),O=h(d.KANJI,t.KANJI,C)):(s=h(d.BYTE_KANJI,t.BYTE,C),O=[]),R.concat(m,s,O).sort(function(g,v){return g.index-v.index}).map(function(g){return{data:g.data,mode:g.mode,length:g.length}})}function p(C,R){switch(R){case t.NUMERIC:return n.getBitsLength(C);case t.ALPHANUMERIC:return i.getBitsLength(C);case t.KANJI:return r.getBitsLength(C);case t.BYTE:return o.getBitsLength(C)}}function b(C,R){let m;const s=t.getBestModeForData(C);if(m=t.from(R,s),m!==t.BYTE&&m.bit<s.bit)throw new Error('"'+C+'" cannot be encoded with mode '+t.toString(m)+".\n Suggested mode is: "+t.toString(s));switch(m===t.KANJI&&!c.isKanjiModeEnabled()&&(m=t.BYTE),m){case t.NUMERIC:return new n(C);case t.ALPHANUMERIC:return new i(C);case t.KANJI:return new r(C);case t.BYTE:return new o(C)}}l.fromArray=function(R){return R.reduce(function(m,s){return"string"==typeof s?m.push(b(s,null)):s.data&&m.push(b(s.data,s.mode)),m},[])},l.fromString=function(R,m){const O=function S(C){const R=[];for(let m=0;m<C.length;m++){const s=C[m];switch(s.mode){case t.NUMERIC:R.push([s,{data:s.data,mode:t.ALPHANUMERIC,length:s.length},{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.ALPHANUMERIC:R.push([s,{data:s.data,mode:t.BYTE,length:s.length}]);break;case t.KANJI:R.push([s,{data:s.data,mode:t.BYTE,length:u(s.data)}]);break;case t.BYTE:R.push([{data:s.data,mode:t.BYTE,length:u(s.data)}])}}return R}(y(R,c.isKanjiModeEnabled())),x=function N(C,R){const m={},s={start:{}};let O=["start"];for(let x=0;x<C.length;x++){const g=C[x],v=[];for(let E=0;E<g.length;
1E++){const _=g[E],M=""+x+E;v.push(M),m[M]={node:_,lastCount:0},s[M]={};for(let I=0;I<O.length;I++){const T=O[I];m[T]&&m[T].node.mode===_.mode?(s[T][M]=p(m[T].lastCount+_.length,_.mode)-p(m[T].lastCount,_.mode),m[T].lastCount+=_.length):(m[T]&&(m[T].lastCount=_.length),s[T][M]=p(_.length,_.mode)+4+t.getCharCountIndicator(_.mode,R))}}O=v}for(let x=0;x<O.length;x++)s[O[x]].end=0;return{map:s,table:m}}(O,m),g=a.find_path(x.map,"start","end"),v=[];for(let E=1;E<g.length-1;E++)v.push(x.table[g[E]].node);return l.fromArray(function P(C){return C.reduce(function(R,m){const s=R.length-1>=0?R[R.length-1]:null;return s&&s.mode===m.mode?(R[R.length-1].data+=m.data,R):(R.push(m),R)},[])}(v))},l.rawSplit=function(R){return l.fromArray(y(R,c.isKanjiModeEnabled()))}},19089:(B,l)=>{let e;const t=[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];l.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return 4*i+17},l.getSymbolTotalCodewords=function(i){return t[i]},l.getBCHDigit=function(n){let i=0;for(;0!==n;)i++,n>>>=1;return i},l.setToSJISFunction=function(i){if("function"!=typeof i)throw new Error('"toSJISFunc" is not a valid function.');e=i},l.isKanjiModeEnabled=function(){return typeof e<"u"},l.toSJIS=function(i){return e(i)}},80377:(B,l)=>{l.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},91252:(B,l,e)=>{const t=e(19089),n=e(23677),i=e(47424),o=e(91677),r=e(80377),c=t.getBCHDigit(7973);function u(p,P){return o.getCharCountIndicator(p,P)+4}function h(p,P){let S=0;return p.forEach(function(N){const b=u(N.mode,P);S+=b+N.getBitsLength()}),S}l.from=function(P,S){return r.isValid(P)?parseInt(P,10):S},l.getCapacity=function(P,S,N){if(!r.isValid(P))throw new Error("Invalid QR Code version");typeof N>"u"&&(N=o.BYTE);const R=8*(t.getSymbolTotalCodewords(P)-n.getTotalCodewordsCount(P,S));if(N===o.MIXED)return R;const m=R-u(N,P);switch(N){case o.NUMERIC:return Math.floor(m/10*3);case o.ALPHANUMERIC:return Math.floor(m/11*2);case o.KANJI:return Math.floor(m/13);default:return Math.floor(m/8)}},l.getBestVersionForData=function(P,S){let N;const b=i.from(S,i.M);if(Array.isArray(P)){if(P.length>1)return function y(p,P){for(let S=1;S<=40;S++)if(h(p,S)<=l.getCapacity(S,P,o.MIXED))return S}(P,b);if(0===P.length)return 1;N=P[0]}else N=P;return function a(p,P,S){for(let N=1;N<=40;N++)if(P<=l.getCapacity(N,S,p))return N}(N.mode,N.getLength(),b)},l.getEncodedBits=function(P){if(!r.isValid(P)||P<7)throw new Error("Invalid QR Code version");let S=P<<12;for(;t.getBCHDigit(S)-c>=0;)S^=7973<<t.getBCHDigit(S)-c;return P<<12|S}},7030:(B,l,e)=>{const t=e(47077);l.render=function(r,d,c){let a=c,u=d;typeof a>"u"&&(!d||!d.getContext)&&(a=d,d=void 0),d||(u=function i(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),a=t.getOptions(a);const h=t.getImageWidth(r.modules.size,a),y=u.getContext("2d"),p=y.createImageData(h,h);return t.qrToImageData(p.data,r,a),function n(o,r,d){o.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=d,r.width=d,r.style.height=d+"px",r.style.width=d+"px"}(y,u,h),y.putImageData(p,0,0),u},l.renderToDataURL=function(r,d,c){let a=c;return typeof a>"u"&&(!d||!d.getContext)&&(a=d,d=void 0),a||(a={}),l.render(r,d,a).toDataURL(a.type||"image/png",(a.rendererOpts||{}).quality)}},56511:(B,l,e)=>{const t=e(47077);function n(r,d){const c=r.a/255,a=d+'="'+r.hex+'"';return c<1?a+" "+d+'-opacity="'+c.toFixed(2).slice(1)+'"':a}function i(r,d,c){let a=r+d;return typeof c<"u"&&(a+=" "+c),a}l.render=function(d,c,a){const u=t.getOptions(c),h=d.modules.size,y=d.modules.data,p=h+2*u.margin,P=u.color.light.a?"<path "+n(u.color.light,"fill")+' d="M0 0h'+p+"v"+p+'H0z"/>':"",S="<path "+n(u.color.dark,"stroke")+' d="'+function o(r,d,c){let a="",u=0,h=!1,y=0;for(let p=0;p<r.length;p++){const P=Math.floor(p%d),S=Math.floor(p/d);!P&&!h&&(h=!0),r[p]?(y++,p>0&&P>0&&r[p-1]||(a+=h?i("M",P+c,.5+S+c):i("m",u,0),u=0,h=!1),P+1<d&&r[p+1]||
1(a+=i("h",y),y=0)):u++}return a}(y,h,u.margin)+'"/>',C='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+'viewBox="0 0 '+p+" "+p+'" shape-rendering="crispEdges">'+P+S+"</svg>\n";return"function"==typeof a&&a(null,C),C}},47077:(B,l)=>{function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||5===n.length||n.length>8)throw new Error("Invalid hex color: "+t);(3===n.length||4===n.length)&&(n=Array.prototype.concat.apply([],n.map(function(o){return[o,o]}))),6===n.length&&n.push("F","F");const i=parseInt(n.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+n.slice(0,6).join("")}}l.getOptions=function(n){n||(n={}),n.color||(n.color={});const o=n.width&&n.width>=21?n.width:void 0;return{width:o,scale:o?4:n.scale||4,margin:typeof n.margin>"u"||null===n.margin||n.margin<0?4:n.margin,color:{dark:e(n.color.dark||"#000000ff"),light:e(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},l.getScale=function(n,i){return i.width&&i.width>=n+2*i.margin?i.width/(n+2*i.margin):i.scale},l.getImageWidth=function(n,i){const o=l.getScale(n,i);return Math.floor((n+2*i.margin)*o)},l.qrToImageData=function(n,i,o){const r=i.modules.size,d=i.modules.data,c=l.getScale(r,o),a=Math.floor((r+2*o.margin)*c),u=o.margin*c,h=[o.color.light,o.color.dark];for(let y=0;y<a;y++)for(let p=0;p<a;p++){let P=4*(y*a+p),S=o.color.light;y>=u&&p>=u&&y<a-u&&p<a-u&&(S=h[d[Math.floor((y-u)/c)*r+Math.floor((p-u)/c)]?1:0]),n[P++]=S.r,n[P++]=S.g,n[P++]=S.b,n[P]=S.a}}}}]);
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.