import{a as n}from"./vendor-qrcode.73bec8e6.js";import{c}from"./vendor-lodash-es.ed8922d2.js";import"./vendor-dijkstrajs.19894c03.js";const v=({canvas:r,content:e,width:o=0,options:i={}})=>{const t=c(i);return t.errorCorrectionLevel=t.errorCorrectionLevel||l(e),a(e,t).then(s=>(t.scale=o===0?void 0:o/s*4,n(r,e,t)))};function a(r,e){const o=document.createElement("canvas");return n(o,r,e).then(()=>o.width)}function l(r){return r.length>36?"M":r.length>16?"Q":"H"}export{v as renderQrCode};
