diff --git a/dist/assets/index.2d623832.js b/dist/assets/index.26e8f481.js similarity index 99% rename from dist/assets/index.2d623832.js rename to dist/assets/index.26e8f481.js index 8cc2503..a15ba08 100644 --- a/dist/assets/index.2d623832.js +++ b/dist/assets/index.26e8f481.js @@ -1,4 +1,4 @@ -var k3=Object.defineProperty,x3=Object.defineProperties;var M3=Object.getOwnPropertyDescriptors;var Uu=Object.getOwnPropertySymbols;var N1=Object.prototype.hasOwnProperty,k1=Object.prototype.propertyIsEnumerable;var _1=(e,t,n)=>t in e?k3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,be=(e,t)=>{for(var n in t||(t={}))N1.call(t,n)&&_1(e,n,t[n]);if(Uu)for(var n of Uu(t))k1.call(t,n)&&_1(e,n,t[n]);return e},Qe=(e,t)=>x3(e,M3(t));var x1=(e,t)=>{var n={};for(var o in e)N1.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Uu)for(var o of Uu(e))t.indexOf(o)<0&&k1.call(e,o)&&(n[o]=e[o]);return n};var O3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nne=O3((Wo,jo)=>{function D3(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(o){if(o!=="default"&&!(o in e)){var s=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:function(){return n[o]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const $3=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&o(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}};$3();var Co="top",Yo="bottom",Go="right",Eo="left",vd="auto",Qa=[Co,Yo,Go,Eo],Bi="start",Da="end",Fy="clippingParents",_p="viewport",va="popper",Vy="reference",hh=Qa.reduce(function(e,t){return e.concat([t+"-"+Bi,t+"-"+Da])},[]),yd=[].concat(Qa,[vd]).reduce(function(e,t){return e.concat([t,t+"-"+Bi,t+"-"+Da])},[]),Hy="beforeRead",zy="read",Uy="afterRead",Wy="beforeMain",jy="main",Ky="afterMain",Yy="beforeWrite",Gy="write",Xy="afterWrite",qy=[Hy,zy,Uy,Wy,jy,Ky,Yy,Gy,Xy];function Qr(e){return e?(e.nodeName||"").toLowerCase():null}function Rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $a(e){var t=Rr(e).Element;return e instanceof t||e instanceof Element}function ur(e){var t=Rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Np(e){if(typeof ShadowRoot=="undefined")return!1;var t=Rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function R3(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!ur(i)||!Qr(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(l){var c=s[l];c===!1?i.removeAttribute(l):i.setAttribute(l,c===!0?"":c)}))})}function L3(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],i=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),c=l.reduce(function(f,p){return f[p]="",f},{});!ur(s)||!Qr(s)||(Object.assign(s.style,c),Object.keys(i).forEach(function(f){s.removeAttribute(f)}))})}}var kp={name:"applyStyles",enabled:!0,phase:"write",fn:R3,effect:L3,requires:["computeStyles"]};function Zr(e){return e.split("-")[0]}var ki=Math.max,jc=Math.min,Ra=Math.round;function La(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,s=1;if(ur(e)&&t){var i=e.offsetHeight,l=e.offsetWidth;l>0&&(o=Ra(n.width)/l||1),i>0&&(s=Ra(n.height)/i||1)}return{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function xp(e){var t=La(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Zy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Np(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function fs(e){return Rr(e).getComputedStyle(e)}function P3(e){return["table","td","th"].indexOf(Qr(e))>=0}function Qs(e){return(($a(e)?e.ownerDocument:e.document)||window.document).documentElement}function bd(e){return Qr(e)==="html"?e:e.assignedSlot||e.parentNode||(Np(e)?e.host:null)||Qs(e)}function M1(e){return!ur(e)||fs(e).position==="fixed"?null:e.offsetParent}function B3(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ur(e)){var o=fs(e);if(o.position==="fixed")return null}var s=bd(e);for(Np(s)&&(s=s.host);ur(s)&&["html","body"].indexOf(Qr(s))<0;){var i=fs(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function vu(e){for(var t=Rr(e),n=M1(e);n&&P3(n)&&fs(n).position==="static";)n=M1(n);return n&&(Qr(n)==="html"||Qr(n)==="body"&&fs(n).position==="static")?t:n||B3(e)||t}function Mp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rl(e,t,n){return ki(e,jc(t,n))}function F3(e,t,n){var o=Rl(e,t,n);return o>n?n:o}function Qy(){return{top:0,right:0,bottom:0,left:0}}function Jy(e){return Object.assign({},Qy(),e)}function eb(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var V3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jy(typeof t!="number"?t:eb(t,Qa))};function H3(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,c=Zr(n.placement),f=Mp(c),p=[Eo,Go].indexOf(c)>=0,m=p?"height":"width";if(!(!i||!l)){var y=V3(s.padding,n),v=xp(i),w=f==="y"?Co:Eo,E=f==="y"?Yo:Go,I=n.rects.reference[m]+n.rects.reference[f]-l[f]-n.rects.popper[m],S=l[f]-n.rects.reference[f],T=vu(i),_=T?f==="y"?T.clientHeight||0:T.clientWidth||0:0,N=I/2-S/2,O=y[w],D=_-v[m]-y[E],x=_/2-v[m]/2+N,R=Rl(O,x,D),B=f;n.modifiersData[o]=(t={},t[B]=R,t.centerOffset=R-x,t)}}function z3(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!Zy(t.elements.popper,s)||(t.elements.arrow=s))}var tb={name:"arrow",enabled:!0,phase:"main",fn:H3,effect:z3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pa(e){return e.split("-")[1]}var U3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W3(e){var t=e.x,n=e.y,o=window,s=o.devicePixelRatio||1;return{x:Ra(t*s)/s||0,y:Ra(n*s)/s||0}}function O1(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,l=e.offsets,c=e.position,f=e.gpuAcceleration,p=e.adaptive,m=e.roundOffsets,y=e.isFixed,v=l.x,w=v===void 0?0:v,E=l.y,I=E===void 0?0:E,S=typeof m=="function"?m({x:w,y:I}):{x:w,y:I};w=S.x,I=S.y;var T=l.hasOwnProperty("x"),_=l.hasOwnProperty("y"),N=Eo,O=Co,D=window;if(p){var x=vu(n),R="clientHeight",B="clientWidth";if(x===Rr(n)&&(x=Qs(n),fs(x).position!=="static"&&c==="absolute"&&(R="scrollHeight",B="scrollWidth")),x=x,s===Co||(s===Eo||s===Go)&&i===Da){O=Yo;var Y=y&&x===D&&D.visualViewport?D.visualViewport.height:x[R];I-=Y-o.height,I*=f?1:-1}if(s===Eo||(s===Co||s===Yo)&&i===Da){N=Go;var X=y&&x===D&&D.visualViewport?D.visualViewport.width:x[B];w-=X-o.width,w*=f?1:-1}}var K=Object.assign({position:c},p&&U3),J=m===!0?W3({x:w,y:I}):{x:w,y:I};if(w=J.x,I=J.y,f){var G;return Object.assign({},K,(G={},G[O]=_?"0":"",G[N]=T?"0":"",G.transform=(D.devicePixelRatio||1)<=1?"translate("+w+"px, "+I+"px)":"translate3d("+w+"px, "+I+"px, 0)",G))}return Object.assign({},K,(t={},t[O]=_?I+"px":"",t[N]=T?w+"px":"",t.transform="",t))}function j3(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,l=i===void 0?!0:i,c=n.roundOffsets,f=c===void 0?!0:c,p={placement:Zr(t.placement),variation:Pa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,O1(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,O1(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Op={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:j3,data:{}},Wu={passive:!0};function K3(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,l=o.resize,c=l===void 0?!0:l,f=Rr(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach(function(m){m.addEventListener("scroll",n.update,Wu)}),c&&f.addEventListener("resize",n.update,Wu),function(){i&&p.forEach(function(m){m.removeEventListener("scroll",n.update,Wu)}),c&&f.removeEventListener("resize",n.update,Wu)}}var Dp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:K3,data:{}},Y3={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(e){return e.replace(/left|right|bottom|top/g,function(t){return Y3[t]})}var G3={start:"end",end:"start"};function D1(e){return e.replace(/start|end/g,function(t){return G3[t]})}function $p(e){var t=Rr(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Rp(e){return La(Qs(e)).left+$p(e).scrollLeft}function X3(e){var t=Rr(e),n=Qs(e),o=t.visualViewport,s=n.clientWidth,i=n.clientHeight,l=0,c=0;return o&&(s=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=o.offsetLeft,c=o.offsetTop)),{width:s,height:i,x:l+Rp(e),y:c}}function q3(e){var t,n=Qs(e),o=$p(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=ki(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=ki(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-o.scrollLeft+Rp(e),f=-o.scrollTop;return fs(s||n).direction==="rtl"&&(c+=ki(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:l,x:c,y:f}}function Lp(e){var t=fs(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function nb(e){return["html","body","#document"].indexOf(Qr(e))>=0?e.ownerDocument.body:ur(e)&&Lp(e)?e:nb(bd(e))}function Ll(e,t){var n;t===void 0&&(t=[]);var o=nb(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=Rr(o),l=s?[i].concat(i.visualViewport||[],Lp(o)?o:[]):o,c=t.concat(l);return s?c:c.concat(Ll(bd(l)))}function ph(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Z3(e){var t=La(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function $1(e,t){return t===_p?ph(X3(e)):$a(t)?Z3(t):ph(q3(Qs(e)))}function Q3(e){var t=Ll(bd(e)),n=["absolute","fixed"].indexOf(fs(e).position)>=0,o=n&&ur(e)?vu(e):e;return $a(o)?t.filter(function(s){return $a(s)&&Zy(s,o)&&Qr(s)!=="body"}):[]}function J3(e,t,n){var o=t==="clippingParents"?Q3(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(c,f){var p=$1(e,f);return c.top=ki(p.top,c.top),c.right=jc(p.right,c.right),c.bottom=jc(p.bottom,c.bottom),c.left=ki(p.left,c.left),c},$1(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ob(e){var t=e.reference,n=e.element,o=e.placement,s=o?Zr(o):null,i=o?Pa(o):null,l=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,f;switch(s){case Co:f={x:l,y:t.y-n.height};break;case Yo:f={x:l,y:t.y+t.height};break;case Go:f={x:t.x+t.width,y:c};break;case Eo:f={x:t.x-n.width,y:c};break;default:f={x:t.x,y:t.y}}var p=s?Mp(s):null;if(p!=null){var m=p==="y"?"height":"width";switch(i){case Bi:f[p]=f[p]-(t[m]/2-n[m]/2);break;case Da:f[p]=f[p]+(t[m]/2-n[m]/2);break}}return f}function Ba(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.boundary,l=i===void 0?Fy:i,c=n.rootBoundary,f=c===void 0?_p:c,p=n.elementContext,m=p===void 0?va:p,y=n.altBoundary,v=y===void 0?!1:y,w=n.padding,E=w===void 0?0:w,I=Jy(typeof E!="number"?E:eb(E,Qa)),S=m===va?Vy:va,T=e.rects.popper,_=e.elements[v?S:m],N=J3($a(_)?_:_.contextElement||Qs(e.elements.popper),l,f),O=La(e.elements.reference),D=ob({reference:O,element:T,strategy:"absolute",placement:s}),x=ph(Object.assign({},T,D)),R=m===va?x:O,B={top:N.top-R.top+I.top,bottom:R.bottom-N.bottom+I.bottom,left:N.left-R.left+I.left,right:R.right-N.right+I.right},Y=e.modifiersData.offset;if(m===va&&Y){var X=Y[s];Object.keys(B).forEach(function(K){var J=[Go,Yo].indexOf(K)>=0?1:-1,G=[Co,Yo].indexOf(K)>=0?"y":"x";B[K]+=X[G]*J})}return B}function eA(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,l=n.padding,c=n.flipVariations,f=n.allowedAutoPlacements,p=f===void 0?yd:f,m=Pa(o),y=m?c?hh:hh.filter(function(E){return Pa(E)===m}):Qa,v=y.filter(function(E){return p.indexOf(E)>=0});v.length===0&&(v=y);var w=v.reduce(function(E,I){return E[I]=Ba(e,{placement:I,boundary:s,rootBoundary:i,padding:l})[Zr(I)],E},{});return Object.keys(w).sort(function(E,I){return w[E]-w[I]})}function tA(e){if(Zr(e)===vd)return[];var t=dc(e);return[D1(e),t,D1(t)]}function nA(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,l=n.altAxis,c=l===void 0?!0:l,f=n.fallbackPlacements,p=n.padding,m=n.boundary,y=n.rootBoundary,v=n.altBoundary,w=n.flipVariations,E=w===void 0?!0:w,I=n.allowedAutoPlacements,S=t.options.placement,T=Zr(S),_=T===S,N=f||(_||!E?[dc(S)]:tA(S)),O=[S].concat(N).reduce(function(qe,xe){return qe.concat(Zr(xe)===vd?eA(t,{placement:xe,boundary:m,rootBoundary:y,padding:p,flipVariations:E,allowedAutoPlacements:I}):xe)},[]),D=t.rects.reference,x=t.rects.popper,R=new Map,B=!0,Y=O[0],X=0;X=0,ee=z?"width":"height",j=Ba(t,{placement:K,boundary:m,rootBoundary:y,altBoundary:v,padding:p}),V=z?G?Go:Eo:G?Yo:Co;D[ee]>x[ee]&&(V=dc(V));var q=dc(V),ce=[];if(i&&ce.push(j[J]<=0),c&&ce.push(j[V]<=0,j[q]<=0),ce.every(function(qe){return qe})){Y=K,B=!1;break}R.set(K,ce)}if(B)for(var ue=E?3:1,ne=function(xe){var pe=O.find(function(Me){var We=R.get(Me);if(We)return We.slice(0,xe).every(function(ze){return ze})});if(pe)return Y=pe,"break"},Se=ue;Se>0;Se--){var Ee=ne(Se);if(Ee==="break")break}t.placement!==Y&&(t.modifiersData[o]._skip=!0,t.placement=Y,t.reset=!0)}}var rb={name:"flip",enabled:!0,phase:"main",fn:nA,requiresIfExists:["offset"],data:{_skip:!1}};function R1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function L1(e){return[Co,Go,Yo,Eo].some(function(t){return e[t]>=0})}function oA(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,l=Ba(t,{elementContext:"reference"}),c=Ba(t,{altBoundary:!0}),f=R1(l,o),p=R1(c,s,i),m=L1(f),y=L1(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:m,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":y})}var sb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oA};function rA(e,t,n){var o=Zr(e),s=[Eo,Co].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],c=i[1];return l=l||0,c=(c||0)*s,[Eo,Go].indexOf(o)>=0?{x:c,y:l}:{x:l,y:c}}function sA(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,l=yd.reduce(function(m,y){return m[y]=rA(y,t.rects,i),m},{}),c=l[t.placement],f=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[o]=l}var ib={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sA};function iA(e){var t=e.state,n=e.name;t.modifiersData[n]=ob({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Pp={name:"popperOffsets",enabled:!0,phase:"read",fn:iA,data:{}};function aA(e){return e==="x"?"y":"x"}function lA(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,l=n.altAxis,c=l===void 0?!1:l,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,y=n.padding,v=n.tether,w=v===void 0?!0:v,E=n.tetherOffset,I=E===void 0?0:E,S=Ba(t,{boundary:f,rootBoundary:p,padding:y,altBoundary:m}),T=Zr(t.placement),_=Pa(t.placement),N=!_,O=Mp(T),D=aA(O),x=t.modifiersData.popperOffsets,R=t.rects.reference,B=t.rects.popper,Y=typeof I=="function"?I(Object.assign({},t.rects,{placement:t.placement})):I,X=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,J={x:0,y:0};if(!!x){if(i){var G,z=O==="y"?Co:Eo,ee=O==="y"?Yo:Go,j=O==="y"?"height":"width",V=x[O],q=V+S[z],ce=V-S[ee],ue=w?-B[j]/2:0,ne=_===Bi?R[j]:B[j],Se=_===Bi?-B[j]:-R[j],Ee=t.elements.arrow,qe=w&&Ee?xp(Ee):{width:0,height:0},xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qy(),pe=xe[z],Me=xe[ee],We=Rl(0,R[j],qe[j]),ze=N?R[j]/2-ue-We-pe-X.mainAxis:ne-We-pe-X.mainAxis,Ze=N?-R[j]/2+ue+We+Me+X.mainAxis:Se+We+Me+X.mainAxis,mt=t.elements.arrow&&vu(t.elements.arrow),ot=mt?O==="y"?mt.clientTop||0:mt.clientLeft||0:0,te=(G=K==null?void 0:K[O])!=null?G:0,de=V+ze-te-ot,Ne=V+Ze-te,De=Rl(w?jc(q,de):q,V,w?ki(ce,Ne):ce);x[O]=De,J[O]=De-V}if(c){var ke,Ve=O==="x"?Co:Eo,ie=O==="x"?Yo:Go,re=x[D],ge=D==="y"?"height":"width",Te=re+S[Ve],Je=re-S[ie],he=[Co,Eo].indexOf(T)!==-1,He=(ke=K==null?void 0:K[D])!=null?ke:0,pt=he?Te:re-R[ge]-B[ge]-He+X.altAxis,At=he?re+R[ge]+B[ge]-He-X.altAxis:Je,tt=w&&he?F3(pt,re,At):Rl(w?pt:Te,re,w?At:Je);x[D]=tt,J[D]=tt-re}t.modifiersData[o]=J}}var ab={name:"preventOverflow",enabled:!0,phase:"main",fn:lA,requiresIfExists:["offset"]};function uA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cA(e){return e===Rr(e)||!ur(e)?$p(e):uA(e)}function dA(e){var t=e.getBoundingClientRect(),n=Ra(t.width)/e.offsetWidth||1,o=Ra(t.height)/e.offsetHeight||1;return n!==1||o!==1}function fA(e,t,n){n===void 0&&(n=!1);var o=ur(t),s=ur(t)&&dA(t),i=Qs(t),l=La(e,s),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(o||!o&&!n)&&((Qr(t)!=="body"||Lp(i))&&(c=cA(t)),ur(t)?(f=La(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):i&&(f.x=Rp(i))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function hA(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(c){if(!n.has(c)){var f=t.get(c);f&&s(f)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function pA(e){var t=hA(e);return qy.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function gA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mA(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var P1={placement:"bottom",modifiers:[],strategy:"absolute"};function B1(){for(var e=arguments.length,t=new Array(e),n=0;nt in e?k3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,be=(e,t)=>{for(var n in t||(t={}))N1.call(t,n)&&_1(e,n,t[n]);if(Uu)for(var n of Uu(t))k1.call(t,n)&&_1(e,n,t[n]);return e},Qe=(e,t)=>x3(e,M3(t));var x1=(e,t)=>{var n={};for(var o in e)N1.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Uu)for(var o of Uu(e))t.indexOf(o)<0&&k1.call(e,o)&&(n[o]=e[o]);return n};var O3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var kne=O3((Wo,jo)=>{function D3(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(o){if(o!=="default"&&!(o in e)){var s=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:function(){return n[o]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const $3=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&o(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerpolicy&&(i.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?i.credentials="include":s.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}};$3();var Co="top",Yo="bottom",Go="right",Eo="left",vd="auto",Qa=[Co,Yo,Go,Eo],Bi="start",Da="end",Fy="clippingParents",_p="viewport",va="popper",Vy="reference",hh=Qa.reduce(function(e,t){return e.concat([t+"-"+Bi,t+"-"+Da])},[]),yd=[].concat(Qa,[vd]).reduce(function(e,t){return e.concat([t,t+"-"+Bi,t+"-"+Da])},[]),Hy="beforeRead",zy="read",Uy="afterRead",Wy="beforeMain",jy="main",Ky="afterMain",Yy="beforeWrite",Gy="write",Xy="afterWrite",qy=[Hy,zy,Uy,Wy,jy,Ky,Yy,Gy,Xy];function Qr(e){return e?(e.nodeName||"").toLowerCase():null}function Rr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $a(e){var t=Rr(e).Element;return e instanceof t||e instanceof Element}function ur(e){var t=Rr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Np(e){if(typeof ShadowRoot=="undefined")return!1;var t=Rr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function R3(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!ur(i)||!Qr(i)||(Object.assign(i.style,o),Object.keys(s).forEach(function(l){var c=s[l];c===!1?i.removeAttribute(l):i.setAttribute(l,c===!0?"":c)}))})}function L3(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var s=t.elements[o],i=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),c=l.reduce(function(f,p){return f[p]="",f},{});!ur(s)||!Qr(s)||(Object.assign(s.style,c),Object.keys(i).forEach(function(f){s.removeAttribute(f)}))})}}var kp={name:"applyStyles",enabled:!0,phase:"write",fn:R3,effect:L3,requires:["computeStyles"]};function Zr(e){return e.split("-")[0]}var ki=Math.max,jc=Math.min,Ra=Math.round;function La(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,s=1;if(ur(e)&&t){var i=e.offsetHeight,l=e.offsetWidth;l>0&&(o=Ra(n.width)/l||1),i>0&&(s=Ra(n.height)/i||1)}return{width:n.width/o,height:n.height/s,top:n.top/s,right:n.right/o,bottom:n.bottom/s,left:n.left/o,x:n.left/o,y:n.top/s}}function xp(e){var t=La(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Zy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Np(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function fs(e){return Rr(e).getComputedStyle(e)}function P3(e){return["table","td","th"].indexOf(Qr(e))>=0}function Qs(e){return(($a(e)?e.ownerDocument:e.document)||window.document).documentElement}function bd(e){return Qr(e)==="html"?e:e.assignedSlot||e.parentNode||(Np(e)?e.host:null)||Qs(e)}function M1(e){return!ur(e)||fs(e).position==="fixed"?null:e.offsetParent}function B3(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ur(e)){var o=fs(e);if(o.position==="fixed")return null}var s=bd(e);for(Np(s)&&(s=s.host);ur(s)&&["html","body"].indexOf(Qr(s))<0;){var i=fs(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function vu(e){for(var t=Rr(e),n=M1(e);n&&P3(n)&&fs(n).position==="static";)n=M1(n);return n&&(Qr(n)==="html"||Qr(n)==="body"&&fs(n).position==="static")?t:n||B3(e)||t}function Mp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rl(e,t,n){return ki(e,jc(t,n))}function F3(e,t,n){var o=Rl(e,t,n);return o>n?n:o}function Qy(){return{top:0,right:0,bottom:0,left:0}}function Jy(e){return Object.assign({},Qy(),e)}function eb(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var V3=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Jy(typeof t!="number"?t:eb(t,Qa))};function H3(e){var t,n=e.state,o=e.name,s=e.options,i=n.elements.arrow,l=n.modifiersData.popperOffsets,c=Zr(n.placement),f=Mp(c),p=[Eo,Go].indexOf(c)>=0,m=p?"height":"width";if(!(!i||!l)){var y=V3(s.padding,n),v=xp(i),w=f==="y"?Co:Eo,E=f==="y"?Yo:Go,I=n.rects.reference[m]+n.rects.reference[f]-l[f]-n.rects.popper[m],S=l[f]-n.rects.reference[f],T=vu(i),_=T?f==="y"?T.clientHeight||0:T.clientWidth||0:0,N=I/2-S/2,O=y[w],D=_-v[m]-y[E],x=_/2-v[m]/2+N,R=Rl(O,x,D),B=f;n.modifiersData[o]=(t={},t[B]=R,t.centerOffset=R-x,t)}}function z3(e){var t=e.state,n=e.options,o=n.element,s=o===void 0?"[data-popper-arrow]":o;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!Zy(t.elements.popper,s)||(t.elements.arrow=s))}var tb={name:"arrow",enabled:!0,phase:"main",fn:H3,effect:z3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Pa(e){return e.split("-")[1]}var U3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W3(e){var t=e.x,n=e.y,o=window,s=o.devicePixelRatio||1;return{x:Ra(t*s)/s||0,y:Ra(n*s)/s||0}}function O1(e){var t,n=e.popper,o=e.popperRect,s=e.placement,i=e.variation,l=e.offsets,c=e.position,f=e.gpuAcceleration,p=e.adaptive,m=e.roundOffsets,y=e.isFixed,v=l.x,w=v===void 0?0:v,E=l.y,I=E===void 0?0:E,S=typeof m=="function"?m({x:w,y:I}):{x:w,y:I};w=S.x,I=S.y;var T=l.hasOwnProperty("x"),_=l.hasOwnProperty("y"),N=Eo,O=Co,D=window;if(p){var x=vu(n),R="clientHeight",B="clientWidth";if(x===Rr(n)&&(x=Qs(n),fs(x).position!=="static"&&c==="absolute"&&(R="scrollHeight",B="scrollWidth")),x=x,s===Co||(s===Eo||s===Go)&&i===Da){O=Yo;var Y=y&&x===D&&D.visualViewport?D.visualViewport.height:x[R];I-=Y-o.height,I*=f?1:-1}if(s===Eo||(s===Co||s===Yo)&&i===Da){N=Go;var X=y&&x===D&&D.visualViewport?D.visualViewport.width:x[B];w-=X-o.width,w*=f?1:-1}}var K=Object.assign({position:c},p&&U3),J=m===!0?W3({x:w,y:I}):{x:w,y:I};if(w=J.x,I=J.y,f){var G;return Object.assign({},K,(G={},G[O]=_?"0":"",G[N]=T?"0":"",G.transform=(D.devicePixelRatio||1)<=1?"translate("+w+"px, "+I+"px)":"translate3d("+w+"px, "+I+"px, 0)",G))}return Object.assign({},K,(t={},t[O]=_?I+"px":"",t[N]=T?w+"px":"",t.transform="",t))}function j3(e){var t=e.state,n=e.options,o=n.gpuAcceleration,s=o===void 0?!0:o,i=n.adaptive,l=i===void 0?!0:i,c=n.roundOffsets,f=c===void 0?!0:c,p={placement:Zr(t.placement),variation:Pa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,O1(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,O1(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Op={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:j3,data:{}},Wu={passive:!0};function K3(e){var t=e.state,n=e.instance,o=e.options,s=o.scroll,i=s===void 0?!0:s,l=o.resize,c=l===void 0?!0:l,f=Rr(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach(function(m){m.addEventListener("scroll",n.update,Wu)}),c&&f.addEventListener("resize",n.update,Wu),function(){i&&p.forEach(function(m){m.removeEventListener("scroll",n.update,Wu)}),c&&f.removeEventListener("resize",n.update,Wu)}}var Dp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:K3,data:{}},Y3={left:"right",right:"left",bottom:"top",top:"bottom"};function dc(e){return e.replace(/left|right|bottom|top/g,function(t){return Y3[t]})}var G3={start:"end",end:"start"};function D1(e){return e.replace(/start|end/g,function(t){return G3[t]})}function $p(e){var t=Rr(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Rp(e){return La(Qs(e)).left+$p(e).scrollLeft}function X3(e){var t=Rr(e),n=Qs(e),o=t.visualViewport,s=n.clientWidth,i=n.clientHeight,l=0,c=0;return o&&(s=o.width,i=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(l=o.offsetLeft,c=o.offsetTop)),{width:s,height:i,x:l+Rp(e),y:c}}function q3(e){var t,n=Qs(e),o=$p(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=ki(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=ki(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-o.scrollLeft+Rp(e),f=-o.scrollTop;return fs(s||n).direction==="rtl"&&(c+=ki(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:l,x:c,y:f}}function Lp(e){var t=fs(e),n=t.overflow,o=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+o)}function nb(e){return["html","body","#document"].indexOf(Qr(e))>=0?e.ownerDocument.body:ur(e)&&Lp(e)?e:nb(bd(e))}function Ll(e,t){var n;t===void 0&&(t=[]);var o=nb(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=Rr(o),l=s?[i].concat(i.visualViewport||[],Lp(o)?o:[]):o,c=t.concat(l);return s?c:c.concat(Ll(bd(l)))}function ph(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Z3(e){var t=La(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function $1(e,t){return t===_p?ph(X3(e)):$a(t)?Z3(t):ph(q3(Qs(e)))}function Q3(e){var t=Ll(bd(e)),n=["absolute","fixed"].indexOf(fs(e).position)>=0,o=n&&ur(e)?vu(e):e;return $a(o)?t.filter(function(s){return $a(s)&&Zy(s,o)&&Qr(s)!=="body"}):[]}function J3(e,t,n){var o=t==="clippingParents"?Q3(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(c,f){var p=$1(e,f);return c.top=ki(p.top,c.top),c.right=jc(p.right,c.right),c.bottom=jc(p.bottom,c.bottom),c.left=ki(p.left,c.left),c},$1(e,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ob(e){var t=e.reference,n=e.element,o=e.placement,s=o?Zr(o):null,i=o?Pa(o):null,l=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,f;switch(s){case Co:f={x:l,y:t.y-n.height};break;case Yo:f={x:l,y:t.y+t.height};break;case Go:f={x:t.x+t.width,y:c};break;case Eo:f={x:t.x-n.width,y:c};break;default:f={x:t.x,y:t.y}}var p=s?Mp(s):null;if(p!=null){var m=p==="y"?"height":"width";switch(i){case Bi:f[p]=f[p]-(t[m]/2-n[m]/2);break;case Da:f[p]=f[p]+(t[m]/2-n[m]/2);break}}return f}function Ba(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=o===void 0?e.placement:o,i=n.boundary,l=i===void 0?Fy:i,c=n.rootBoundary,f=c===void 0?_p:c,p=n.elementContext,m=p===void 0?va:p,y=n.altBoundary,v=y===void 0?!1:y,w=n.padding,E=w===void 0?0:w,I=Jy(typeof E!="number"?E:eb(E,Qa)),S=m===va?Vy:va,T=e.rects.popper,_=e.elements[v?S:m],N=J3($a(_)?_:_.contextElement||Qs(e.elements.popper),l,f),O=La(e.elements.reference),D=ob({reference:O,element:T,strategy:"absolute",placement:s}),x=ph(Object.assign({},T,D)),R=m===va?x:O,B={top:N.top-R.top+I.top,bottom:R.bottom-N.bottom+I.bottom,left:N.left-R.left+I.left,right:R.right-N.right+I.right},Y=e.modifiersData.offset;if(m===va&&Y){var X=Y[s];Object.keys(B).forEach(function(K){var J=[Go,Yo].indexOf(K)>=0?1:-1,G=[Co,Yo].indexOf(K)>=0?"y":"x";B[K]+=X[G]*J})}return B}function eA(e,t){t===void 0&&(t={});var n=t,o=n.placement,s=n.boundary,i=n.rootBoundary,l=n.padding,c=n.flipVariations,f=n.allowedAutoPlacements,p=f===void 0?yd:f,m=Pa(o),y=m?c?hh:hh.filter(function(E){return Pa(E)===m}):Qa,v=y.filter(function(E){return p.indexOf(E)>=0});v.length===0&&(v=y);var w=v.reduce(function(E,I){return E[I]=Ba(e,{placement:I,boundary:s,rootBoundary:i,padding:l})[Zr(I)],E},{});return Object.keys(w).sort(function(E,I){return w[E]-w[I]})}function tA(e){if(Zr(e)===vd)return[];var t=dc(e);return[D1(e),t,D1(t)]}function nA(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,l=n.altAxis,c=l===void 0?!0:l,f=n.fallbackPlacements,p=n.padding,m=n.boundary,y=n.rootBoundary,v=n.altBoundary,w=n.flipVariations,E=w===void 0?!0:w,I=n.allowedAutoPlacements,S=t.options.placement,T=Zr(S),_=T===S,N=f||(_||!E?[dc(S)]:tA(S)),O=[S].concat(N).reduce(function(qe,xe){return qe.concat(Zr(xe)===vd?eA(t,{placement:xe,boundary:m,rootBoundary:y,padding:p,flipVariations:E,allowedAutoPlacements:I}):xe)},[]),D=t.rects.reference,x=t.rects.popper,R=new Map,B=!0,Y=O[0],X=0;X=0,ee=z?"width":"height",j=Ba(t,{placement:K,boundary:m,rootBoundary:y,altBoundary:v,padding:p}),V=z?G?Go:Eo:G?Yo:Co;D[ee]>x[ee]&&(V=dc(V));var q=dc(V),ce=[];if(i&&ce.push(j[J]<=0),c&&ce.push(j[V]<=0,j[q]<=0),ce.every(function(qe){return qe})){Y=K,B=!1;break}R.set(K,ce)}if(B)for(var ue=E?3:1,ne=function(xe){var pe=O.find(function(Me){var We=R.get(Me);if(We)return We.slice(0,xe).every(function(ze){return ze})});if(pe)return Y=pe,"break"},Se=ue;Se>0;Se--){var Ee=ne(Se);if(Ee==="break")break}t.placement!==Y&&(t.modifiersData[o]._skip=!0,t.placement=Y,t.reset=!0)}}var rb={name:"flip",enabled:!0,phase:"main",fn:nA,requiresIfExists:["offset"],data:{_skip:!1}};function R1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function L1(e){return[Co,Go,Yo,Eo].some(function(t){return e[t]>=0})}function oA(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,l=Ba(t,{elementContext:"reference"}),c=Ba(t,{altBoundary:!0}),f=R1(l,o),p=R1(c,s,i),m=L1(f),y=L1(p);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:p,isReferenceHidden:m,hasPopperEscaped:y},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":y})}var sb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oA};function rA(e,t,n){var o=Zr(e),s=[Eo,Co].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=i[0],c=i[1];return l=l||0,c=(c||0)*s,[Eo,Go].indexOf(o)>=0?{x:c,y:l}:{x:l,y:c}}function sA(e){var t=e.state,n=e.options,o=e.name,s=n.offset,i=s===void 0?[0,0]:s,l=yd.reduce(function(m,y){return m[y]=rA(y,t.rects,i),m},{}),c=l[t.placement],f=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=p),t.modifiersData[o]=l}var ib={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sA};function iA(e){var t=e.state,n=e.name;t.modifiersData[n]=ob({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Pp={name:"popperOffsets",enabled:!0,phase:"read",fn:iA,data:{}};function aA(e){return e==="x"?"y":"x"}function lA(e){var t=e.state,n=e.options,o=e.name,s=n.mainAxis,i=s===void 0?!0:s,l=n.altAxis,c=l===void 0?!1:l,f=n.boundary,p=n.rootBoundary,m=n.altBoundary,y=n.padding,v=n.tether,w=v===void 0?!0:v,E=n.tetherOffset,I=E===void 0?0:E,S=Ba(t,{boundary:f,rootBoundary:p,padding:y,altBoundary:m}),T=Zr(t.placement),_=Pa(t.placement),N=!_,O=Mp(T),D=aA(O),x=t.modifiersData.popperOffsets,R=t.rects.reference,B=t.rects.popper,Y=typeof I=="function"?I(Object.assign({},t.rects,{placement:t.placement})):I,X=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,J={x:0,y:0};if(!!x){if(i){var G,z=O==="y"?Co:Eo,ee=O==="y"?Yo:Go,j=O==="y"?"height":"width",V=x[O],q=V+S[z],ce=V-S[ee],ue=w?-B[j]/2:0,ne=_===Bi?R[j]:B[j],Se=_===Bi?-B[j]:-R[j],Ee=t.elements.arrow,qe=w&&Ee?xp(Ee):{width:0,height:0},xe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qy(),pe=xe[z],Me=xe[ee],We=Rl(0,R[j],qe[j]),ze=N?R[j]/2-ue-We-pe-X.mainAxis:ne-We-pe-X.mainAxis,Ze=N?-R[j]/2+ue+We+Me+X.mainAxis:Se+We+Me+X.mainAxis,mt=t.elements.arrow&&vu(t.elements.arrow),ot=mt?O==="y"?mt.clientTop||0:mt.clientLeft||0:0,te=(G=K==null?void 0:K[O])!=null?G:0,de=V+ze-te-ot,Ne=V+Ze-te,De=Rl(w?jc(q,de):q,V,w?ki(ce,Ne):ce);x[O]=De,J[O]=De-V}if(c){var ke,Ve=O==="x"?Co:Eo,ie=O==="x"?Yo:Go,re=x[D],ge=D==="y"?"height":"width",Te=re+S[Ve],Je=re-S[ie],he=[Co,Eo].indexOf(T)!==-1,He=(ke=K==null?void 0:K[D])!=null?ke:0,pt=he?Te:re-R[ge]-B[ge]-He+X.altAxis,At=he?re+R[ge]+B[ge]-He-X.altAxis:Je,tt=w&&he?F3(pt,re,At):Rl(w?pt:Te,re,w?At:Je);x[D]=tt,J[D]=tt-re}t.modifiersData[o]=J}}var ab={name:"preventOverflow",enabled:!0,phase:"main",fn:lA,requiresIfExists:["offset"]};function uA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function cA(e){return e===Rr(e)||!ur(e)?$p(e):uA(e)}function dA(e){var t=e.getBoundingClientRect(),n=Ra(t.width)/e.offsetWidth||1,o=Ra(t.height)/e.offsetHeight||1;return n!==1||o!==1}function fA(e,t,n){n===void 0&&(n=!1);var o=ur(t),s=ur(t)&&dA(t),i=Qs(t),l=La(e,s),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(o||!o&&!n)&&((Qr(t)!=="body"||Lp(i))&&(c=cA(t)),ur(t)?(f=La(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):i&&(f.x=Rp(i))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function hA(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var l=[].concat(i.requires||[],i.requiresIfExists||[]);l.forEach(function(c){if(!n.has(c)){var f=t.get(c);f&&s(f)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),o}function pA(e){var t=hA(e);return qy.reduce(function(n,o){return n.concat(t.filter(function(s){return s.phase===o}))},[])}function gA(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mA(e){var t=e.reduce(function(n,o){var s=n[o.name];return n[o.name]=s?Object.assign({},s,o,{options:Object.assign({},s.options,o.options),data:Object.assign({},s.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var P1={placement:"bottom",modifiers:[],strategy:"absolute"};function B1(){for(var e=arguments.length,t=new Array(e),n=0;n> `),r.toString()}setMode(r){this.mode=r}setECLevel(r){this.ecLevel=r}setVersion(r){this.version=r}setMaskPattern(r){this.maskPattern=r}setMatrix(r){this.matrix=r}static isValidMaskPattern(r){return r>=0&&r0;){for(g===6&&(g-=1);b>=0&&b=u;)r^=a<=0)for(let C=0;C!==g;C++){const A=d[C];A>=0&&Lt.isEmpty(a.get(A,b))&&Lt.embedPositionAdjustmentPattern(A-2,b-2,a)}}}}Lt.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),Lt.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),Lt.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),Lt.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),Lt.VERSION_INFO_POLY=7973,Lt.TYPE_INFO_POLY=1335,Lt.TYPE_INFO_MASK_PATTERN=21522;class b3{constructor(r,a){this.dataBytes=r,this.errorCorrectionBytes=a}getDataBytes(){return this.dataBytes}getErrorCorrectionBytes(){return this.errorCorrectionBytes}}class Nn{constructor(){}static calculateMaskPenalty(r){return Ln.applyMaskPenaltyRule1(r)+Ln.applyMaskPenaltyRule2(r)+Ln.applyMaskPenaltyRule3(r)+Ln.applyMaskPenaltyRule4(r)}static encode(r,a,u=null){let d=Nn.DEFAULT_BYTE_MODE_ENCODING;const h=u!==null&&u.get(jn.CHARACTER_SET)!==void 0;h&&(d=u.get(jn.CHARACTER_SET).toString());const g=this.chooseMode(r,d),b=new N;if(g===Rt.BYTE&&(h||Nn.DEFAULT_BYTE_MODE_ENCODING!==d)){const ht=B.getCharacterSetECIByName(d);ht!==void 0&&this.appendECI(ht,b)}this.appendModeInfo(g,b);const C=new N;this.appendBytes(r,g,C,d);let A;if(u!==null&&u.get(jn.QR_VERSION)!==void 0){const ht=Number.parseInt(u.get(jn.QR_VERSION).toString(),10);A=xt.getVersionForNumber(ht);const lt=this.calculateBitsNeeded(g,b,C,A);if(!this.willFit(lt,A,a))throw new vn("Data too big for requested version")}else A=this.recommendVersion(a,g,b,C);const L=new N;L.appendBitArray(b);const U=g===Rt.BYTE?C.getSizeInBytes():r.length;this.appendLengthInfo(U,A,g,L),L.appendBitArray(C);const Z=A.getECBlocksForLevel(a),se=A.getTotalCodewords()-Z.getTotalECCodewords();this.terminateBits(se,L);const ye=this.interleaveWithECBytes(L,A.getTotalCodewords(),se,Z.getNumBlocks()),Ce=new si;Ce.setECLevel(a),Ce.setMode(g),Ce.setVersion(A);const Oe=A.getDimensionForVersion(),Ke=new Vu(Oe,Oe),ft=this.chooseMaskPattern(ye,a,A,Ke);return Ce.setMaskPattern(ft),Lt.buildMatrix(ye,a,A,ft,Ke),Ce.setMatrix(Ke),Ce}static recommendVersion(r,a,u,d){const h=this.calculateBitsNeeded(a,u,d,xt.getVersionForNumber(1)),g=this.chooseVersion(h,r),b=this.calculateBitsNeeded(a,u,d,g);return this.chooseVersion(b,r)}static calculateBitsNeeded(r,a,u,d){return a.getSize()+r.getCharacterCountBits(d)+u.getSize()}static getAlphanumericCode(r){return r159)&&(h<224||h>235))return!1}return!0}static chooseMaskPattern(r,a,u,d){let h=Number.MAX_SAFE_INTEGER,g=-1;for(let b=0;b=C}static terminateBits(r,a){const u=r*8;if(a.getSize()>u)throw new vn("data bits cannot fit in the QR Code"+a.getSize()+" > "+u);for(let g=0;g<4&&a.getSize()0)for(let g=d;g<8;g++)a.appendBit(!1);const h=r-a.getSizeInBytes();for(let g=0;g=u)throw new vn("Block ID too large");const b=r%u,C=u-b,A=Math.floor(r/u),L=A+1,U=Math.floor(a/u),Z=U+1,se=A-U,ye=L-Z;if(se!==ye)throw new vn("EC bytes mismatch");if(u!==C+b)throw new vn("RS blocks mismatch");if(r!==(U+se)*C+(Z+ye)*b)throw new vn("Total bytes mismatch");d=1<=0&&a<=9}static appendNumericBytes(r,a){const u=r.length;let d=0;for(;d=33088&&C<=40956?A=C-33088:C>=57408&&C<=60351&&(A=C-49472),A===-1)throw new vn("Invalid byte sequence");const L=(A>>8)*192+(A&255);a.appendBits(L,13)}}static appendECI(r,a){a.appendBits(Rt.ECI.getBits(),4),a.appendBits(r.getValue(),8)}}Nn.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),Nn.DEFAULT_BYTE_MODE_ENCODING=B.UTF8.getName();class ii{write(r,a,u,d=null){if(r.length===0)throw new m("Found empty contents");if(a<0||u<0)throw new m("Requested dimensions are too small: "+a+"x"+u);let h=Cn.L,g=ii.QUIET_ZONE_SIZE;d!==null&&(d.get(jn.ERROR_CORRECTION)!==void 0&&(h=Cn.fromString(d.get(jn.ERROR_CORRECTION).toString())),d.get(jn.MARGIN)!==void 0&&(g=Number.parseInt(d.get(jn.MARGIN).toString(),10)));const b=Nn.encode(r,h,d);return this.renderResult(b,a,u,g)}writeToDom(r,a,u,d,h=null){typeof r=="string"&&(r=document.querySelector(r));const g=this.write(a,u,d,h);r&&r.appendChild(g)}renderResult(r,a,u,d){const h=r.getMatrix();if(h===null)throw new de;const g=h.getWidth(),b=h.getHeight(),C=g+d*2,A=b+d*2,L=Math.max(a,C),U=Math.max(u,A),Z=Math.min(Math.floor(L/C),Math.floor(U/A)),se=Math.floor((L-g*Z)/2),ye=Math.floor((U-b*Z)/2),Ce=this.createSVGElement(L,U);for(let Oe=0,Ke=ye;Oea||h+b>u)throw new m("Crop rectangle does not fit within image data.");C&&this.reverseHorizontal(g,b)}getRow(r,a){if(r<0||r>=this.getHeight())throw new m("Requested row is outside the image: "+r);const u=this.getWidth();(a==null||a.length>16&255,se=U>>7&510,ye=U&255;A[L]=(Z+se+ye)/4&255}this.luminances=A}else this.luminances=r;if(d===void 0&&(this.dataWidth=a),h===void 0&&(this.dataHeight=u),g===void 0&&(this.left=0),b===void 0&&(this.top=0),this.left+a>this.dataWidth||this.top+u>this.dataHeight)throw new m("Crop rectangle does not fit within image data.")}getRow(r,a){if(r<0||r>=this.getHeight())throw new m("Requested row is outside the image: "+r);const u=this.getWidth();(a==null||a.length"}}class bf extends aa{constructor(r,a,u){super(r,0,0),this.binaryShiftStart=a,this.binaryShiftByteCount=u}appendTo(r,a){for(let u=0;u62?r.appendBits(this.binaryShiftByteCount-31,16):u===0?r.appendBits(Math.min(this.binaryShiftByteCount,31),5):r.appendBits(this.binaryShiftByteCount-31,5)),r.appendBits(a[this.binaryShiftStart+u],8)}addBinaryShift(r,a){return new bf(this,r,a)}toString(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"}}function E3(H,r,a){return new bf(H,r,a)}function ml(H,r,a){return new aa(H,r,a)}const S3=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],ks=0,Hu=1,or=2,T1=3,zr=4,A3=new aa(null,0,0),wf=[Int32Array.from([0,(5<<16)+28,(5<<16)+30,(5<<16)+29,(10<<16)+(29<<5)+30]),Int32Array.from([(9<<16)+(30<<4)+14,0,(5<<16)+30,(5<<16)+29,(10<<16)+(29<<5)+30]),Int32Array.from([(4<<16)+14,(9<<16)+(14<<5)+28,0,(9<<16)+(14<<5)+29,(14<<16)+(14<<10)+(29<<5)+30]),Int32Array.from([(5<<16)+29,(5<<16)+28,(10<<16)+(29<<5)+30,0,(5<<16)+30]),Int32Array.from([(5<<16)+31,(10<<16)+(31<<5)+28,(10<<16)+(31<<5)+30,(10<<16)+(31<<5)+29,0])];function T3(H){for(let r of H)T.fill(r,-1);return H[ks][zr]=0,H[Hu][zr]=0,H[Hu][ks]=28,H[T1][zr]=0,H[or][zr]=0,H[or][ks]=15,H}const I1=T3(T.createInt32Array(6,6));class Ur{constructor(r,a,u,d){this.token=r,this.mode=a,this.binaryShiftByteCount=u,this.bitCount=d}getMode(){return this.mode}getToken(){return this.token}getBinaryShiftByteCount(){return this.binaryShiftByteCount}getBitCount(){return this.bitCount}latchAndAppend(r,a){let u=this.bitCount,d=this.token;if(r!==this.mode){let g=wf[this.mode][r];d=ml(d,g&65535,g>>16),u+=g>>16}let h=r===or?4:5;return d=ml(d,a,h),new Ur(d,r,0,u+h)}shiftAndAppend(r,a){let u=this.token,d=this.mode===or?4:5;return u=ml(u,I1[this.mode][r],d),u=ml(u,a,5),new Ur(u,this.mode,0,this.bitCount+d+5)}addBinaryShiftChar(r){let a=this.token,u=this.mode,d=this.bitCount;if(this.mode===zr||this.mode===or){let b=wf[u][ks];a=ml(a,b&65535,b>>16),d+=b>>16,u=ks}let h=this.binaryShiftByteCount===0||this.binaryShiftByteCount===31?18:this.binaryShiftByteCount===62?9:8,g=new Ur(a,u,this.binaryShiftByteCount+1,d+h);return g.binaryShiftByteCount===2047+31&&(g=g.endBinaryShift(r+1)),g}endBinaryShift(r){if(this.binaryShiftByteCount===0)return this;let a=this.token;return a=E3(a,r-this.binaryShiftByteCount,this.binaryShiftByteCount),new Ur(a,this.mode,0,this.bitCount)}isBetterThanOrEqualTo(r){let a=this.bitCount+(wf[this.mode][r.mode]>>16);return this.binaryShiftByteCountr.binaryShiftByteCount&&r.binaryShiftByteCount>0&&(a+=10),a<=r.bitCount}toBitArray(r){let a=[];for(let d=this.endBinaryShift(r.length).token;d!==null;d=d.getPrevious())a.unshift(d);let u=new N;for(const d of a)d.appendTo(u,r);return u}toString(){return K.format("%s bits=%d bytes=%d",S3[this.mode],this.bitCount,this.binaryShiftByteCount)}static calculateBinaryShiftCost(r){return r.binaryShiftByteCount>62?21:r.binaryShiftByteCount>31?20:r.binaryShiftByteCount>0?10:0}}Ur.INITIAL_STATE=new Ur(A3,ks,0,0);function I3(H){const r=K.getCharCode(" "),a=K.getCharCode("."),u=K.getCharCode(",");H[ks][r]=1;const d=K.getCharCode("Z"),h=K.getCharCode("A");for(let Z=h;Z<=d;Z++)H[ks][Z]=Z-h+2;H[Hu][r]=1;const g=K.getCharCode("z"),b=K.getCharCode("a");for(let Z=b;Z<=g;Z++)H[Hu][Z]=Z-b+2;H[or][r]=1;const C=K.getCharCode("9"),A=K.getCharCode("0");for(let Z=A;Z<=C;Z++)H[or][Z]=Z-A+2;H[or][u]=12,H[or][a]=13;const L=["\0"," ","","","","","","","\x07","\b"," ",` `,"\v","\f","\r","\x1B","","","","","@","\\","^","_","`","|","~","\x7F"];for(let Z=0;Z","?","[","]","{","}"];for(let Z=0;Z0&&(H[zr][K.getCharCode(U[Z])]=Z);return H}const Cf=I3(T.createInt32Array(5,256));class vl{constructor(r){this.text=r}encode(){const r=K.getCharCode(" "),a=K.getCharCode(` -`);let u=A1.singletonList(Ur.INITIAL_STATE);for(let h=0;h0?(u=vl.updateStateListForPair(u,h,g),h++):u=this.updateStateListForChar(u,h)}return A1.min(u,(h,g)=>h.getBitCount()-g.getBitCount()).toBitArray(this.text)}updateStateListForChar(r,a){const u=[];for(let d of r)this.updateStateForChar(d,a,u);return vl.simplifyStates(u)}updateStateForChar(r,a,u){let d=this.text[a]&255,h=Cf[r.getMode()][d]>0,g=null;for(let b=0;b<=zr;b++){let C=Cf[b][d];if(C>0){if(g==null&&(g=r.endBinaryShift(a)),!h||b===r.getMode()||b===or){const A=g.latchAndAppend(b,C);u.push(A)}if(!h&&I1[r.getMode()][b]>=0){const A=g.shiftAndAppend(b,C);u.push(A)}}}if(r.getBinaryShiftByteCount()>0||Cf[r.getMode()][d]===0){let b=r.addBinaryShiftChar(a);u.push(b)}}static updateStateListForPair(r,a,u){const d=[];for(let h of r)this.updateStateForPair(h,a,u,d);return this.simplifyStates(d)}static updateStateForPair(r,a,u,d){let h=r.endBinaryShift(a);if(d.push(h.latchAndAppend(zr,u)),r.getMode()!==zr&&d.push(h.shiftAndAppend(zr,u)),u===3||u===4){let g=h.latchAndAppend(or,16-u).latchAndAppend(or,1);d.push(g)}if(r.getBinaryShiftByteCount()>0){let g=r.addBinaryShiftChar(a).addBinaryShiftChar(a+1);d.push(g)}}static simplifyStates(r){let a=[];for(const u of r){let d=!0;for(const h of a){if(h.isBetterThanOrEqualTo(u)){d=!1;break}u.isBetterThanOrEqualTo(h)&&(a=a.filter(g=>g!==h))}d&&a.push(u)}return a}}class dn{constructor(){}static encodeBytes(r){return dn.encode(r,dn.DEFAULT_EC_PERCENT,dn.DEFAULT_AZTEC_LAYERS)}static encode(r,a,u){let d=new vl(r).encode(),h=_.truncDivision(d.getSize()*a,100)+11,g=d.getSize()+h,b,C,A,L,U;if(u!==dn.DEFAULT_AZTEC_LAYERS){if(b=u<0,C=Math.abs(u),C>(b?dn.MAX_NB_BITS_COMPACT:dn.MAX_NB_BITS))throw new m(K.format("Illegal value %s for layers",u));A=dn.totalBitsInLayer(C,b),L=dn.WORD_SIZE[C];let lt=A-A%L;if(U=dn.stuffBits(d,L),U.getSize()+h>lt)throw new m("Data to large for user specified layer");if(b&&U.getSize()>L*64)throw new m("Data to large for user specified layer")}else{L=0,U=null;for(let lt=0;;lt++){if(lt>dn.MAX_NB_BITS)throw new m("Data too large for an Aztec code");if(b=lt<=3,C=b?lt+1:lt,A=dn.totalBitsInLayer(C,b),g>A)continue;(U==null||L!==dn.WORD_SIZE[C])&&(L=dn.WORD_SIZE[C],U=dn.stuffBits(d,L));let rn=A-A%L;if(!(b&&U.getSize()>L*64)&&U.getSize()+h<=rn)break}}let Z=dn.generateCheckWords(U,A,L),se=U.getSize()/L,ye=dn.generateModeMessage(b,C,se),Ce=(b?11:14)+C*4,Oe=new Int32Array(Ce),Ke;if(b){Ke=Ce;for(let lt=0;lt=d||r.get(g+C))&&(b|=1<0&&i[i.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]o&&(o=c,n=l)}if(!n)throw"No largest barcode found";return n},e.prototype.createBarcodeDetectorFormats=function(t){for(var n=[],o=0,s=t;o=c&&l()})})},e.prototype.scanFile=function(t,n){return this.scanFileV2(t,n).then(function(o){return o.decodedText})},e.prototype.scanFileV2=function(t,n){var o=this;if(!t||!(t instanceof File))throw"imageFile argument is mandatory and should be instance of File. Use 'event.target.files[0]'.";if(Aa(n)&&(n=!0),!this.stateManagerProxy.canScanFile())throw"Cannot start file scan - ongoing camera scan";return new Promise(function(s,i){o.possiblyCloseLastScanImageFile(),o.clearElement(),o.lastScanImageFile=URL.createObjectURL(t);var l=new Image;l.onload=function(){var c=l.width,f=l.height,p=document.getElementById(o.elementId),m=p.clientWidth?p.clientWidth:sr.DEFAULT_WIDTH,y=Math.max(p.clientHeight?p.clientHeight:f,sr.FILE_SCAN_MIN_HEIGHT),v=o.computeCanvasDrawConfig(c,f,m,y);if(n){var w=o.createCanvasElement(m,y,"qr-canvas-visible");w.style.display="inline-block",p.appendChild(w);var E=w.getContext("2d");if(!E)throw"Unable to get 2d context from canvas";E.canvas.width=m,E.canvas.height=y,E.drawImage(l,0,0,c,f,v.x,v.y,v.width,v.height)}var I=o.createCanvasElement(v.width,v.height);p.appendChild(I);var S=I.getContext("2d");if(!S)throw"Unable to get 2d context from canvas";S.canvas.width=v.width,S.canvas.height=v.height,S.drawImage(l,0,0,c,f,0,0,v.width,v.height);try{o.qrcode.decodeAsync(I).then(function(T){s(Oy.createFromQrcodeResult(T))}).catch(i)}catch(T){i("QR code parse error, error = "+T)}},l.onerror=i,l.onabort=i,l.onstalled=i,l.onsuspend=i,l.src=URL.createObjectURL(t)})},e.prototype.clear=function(){this.clearElement()},e.getCameras=function(){if(navigator.mediaDevices)return e.getCamerasFromMediaDevices();var t=MediaStreamTrack;if(MediaStreamTrack&&t.getSources)return e.getCamerasFromMediaStreamTrack();var n=function(){if(location.protocol==="https:")return!0;var s=location.host.split(":")[0];return s==="127.0.0.1"||s==="localhost"},o=Nl.unableToQuerySupportedDevices();return n()||(o=Nl.insecureContextCameraQueryError()),Promise.reject(o)},e.prototype.getRunningTrackCapabilities=function(){if(this.localMediaStream==null)throw"Scanning is not in running state, call this API only when QR code scanning using camera is in running state.";if(this.localMediaStream.getVideoTracks().length===0)throw"No video tracks found";var t=this.localMediaStream.getVideoTracks()[0];return t.getCapabilities()},e.prototype.applyVideoConstraints=function(t){var n=this;if(t){if(!ZS.isMediaStreamConstraintsValid(t,this.logger))throw"invalid videoConstaints passed, check logs for more details"}else throw"videoConstaints is required argument.";if(this.localMediaStream===null)throw"Scanning is not in running state, call this API only when QR code scanning using camera is in running state.";if(this.localMediaStream.getVideoTracks().length===0)throw"No video tracks found";return new Promise(function(o,s){if("aspectRatio"in t){s("Chaning 'aspectRatio' in run-time is not yet supported.");return}var i=n.localMediaStream.getVideoTracks()[0];i.applyConstraints(t).then(function(l){o(l)}).catch(function(l){s(l)})})},e.getCamerasFromMediaDevices=function(){return new Promise(function(t,n){navigator.mediaDevices.getUserMedia({audio:!1,video:!0}).then(function(o){var s=function(i){for(var l=i.getVideoTracks(),c=0,f=l;ct&&(s.logger.warn("`qrbox.width` or `qrbox` is larger than the width of the root element. The width will be truncated to the width of root element."),p=t),p};c(l.width),c(l.height),l.width=f(l.width)},e.prototype.validateQrboxConfig=function(t){if(typeof t!="number"&&typeof t!="function"&&(t.width===void 0||t.height===void 0))throw"Invalid instance of QrDimensions passed for 'config.qrbox'. Both 'width' and 'height' should be set."},e.prototype.toQrdimensions=function(t,n,o){if(typeof o=="number")return{width:o,height:o};if(typeof o=="function")try{return o(t,n)}catch(s){throw new Error("qrbox config was passed as a function but it failed with unknown error"+s)}return o},e.prototype.setupUi=function(t,n,o){o.isShadedBoxEnabled()&&this.validateQrboxSize(t,n,o);var s=Aa(o.qrbox)?{width:t,height:n}:o.qrbox;this.validateQrboxConfig(s);var i=this.toQrdimensions(t,n,s);i.height>n&&this.logger.warn("[Html5Qrcode] config.qrbox has height that isgreater than the height of the video stream. Shading will be ignored");var l=o.isShadedBoxEnabled()&&i.height<=n,c={x:0,y:0,width:t,height:n},f=l?this.getShadedRegionBounds(t,n,i):c,p=this.createCanvasElement(f.width,f.height),m=p.getContext("2d");m.canvas.width=f.width,m.canvas.height=f.height,this.element.append(p),l&&this.possiblyInsertShadingElement(this.element,t,n,i),this.createScannerPausedUiElement(this.element),this.qrRegion=f,this.context=m,this.canvasElement=p},e.prototype.createScannerPausedUiElement=function(t){var n=document.createElement("div");n.innerText="Scanner paused",n.style.display="none",n.style.position="absolute",n.style.top="0px",n.style.zIndex="1",n.style.background="yellow",n.style.textAlign="center",n.style.width="100%",t.appendChild(n),this.scannerPausedUiElement=n},e.prototype.scanContext=function(t,n){var o=this;return this.stateManagerProxy.isPaused()?Promise.resolve(!1):this.qrcode.decodeAsync(this.canvasElement).then(function(s){return t(s.text,Oy.createFromQrcodeResult(s)),o.possiblyUpdateShaders(!0),!0}).catch(function(s){o.possiblyUpdateShaders(!1);var i=Nl.codeParseError(s);return n(i,XS.createFrom(i)),!1})},e.prototype.foreverScan=function(t,n,o){var s=this;if(!!this.shouldScan&&!!this.localMediaStream){var i=this.videoElement,l=i.videoWidth/i.clientWidth,c=i.videoHeight/i.clientHeight;if(!this.qrRegion)throw"qrRegion undefined when localMediaStream is ready.";var f=this.qrRegion.width*l,p=this.qrRegion.height*c,m=this.qrRegion.x*l,y=this.qrRegion.y*c;this.context.drawImage(i,m,y,f,p,0,0,this.qrRegion.width,this.qrRegion.height);var v=function(){s.foreverScanTimeout=setTimeout(function(){s.foreverScan(t,n,o)},s.getTimeoutFps(t.fps))};this.scanContext(n,o).then(function(w){!w&&t.disableFlip!==!0?(s.context.translate(s.context.canvas.width,0),s.context.scale(-1,1),s.scanContext(n,o).finally(function(){v()})):v()}).catch(function(w){s.logger.logError("Error happend while scanning context",w),v()})}},e.prototype.onMediaStreamReceived=function(t,n,o,s,i,l){var c=this,f=this;return new Promise(function(p,m){var y=function(){var E=c.createVideoElement(s);f.element.append(E),E.onabort=m,E.onerror=m;var I=function(){var S=E.clientWidth,T=E.clientHeight;f.setupUi(S,T,n),f.foreverScan(n,i,l),E.removeEventListener("playing",I),p(null)};E.addEventListener("playing",I),E.srcObject=t,E.play(),f.videoElement=E};if(f.localMediaStream=t,o||!n.aspectRatio)y();else{var v={aspectRatio:n.aspectRatio},w=t.getVideoTracks()[0];w.applyConstraints(v).then(function(E){return y()}).catch(function(E){f.logger.logErrors(["[Html5Qrcode] Constriants could not be satisfied, ignoring constraints",E]),y()})}})},e.prototype.createVideoConstraints=function(t){if(typeof t=="string")return{deviceId:{exact:t}};if(typeof t=="object"){var n="facingMode",o="deviceId",s={user:!0,environment:!0},i="exact",l=function(E){if(E in s)return!0;throw"config has invalid 'facingMode' value = "+("'"+E+"'")},c=Object.keys(t);if(c.length!==1)throw"'cameraIdOrConfig' object should have exactly 1 key,"+(" if passed as an object, found "+c.length+" keys");var f=Object.keys(t)[0];if(f!==n&&f!==o)throw"Only '"+n+"' and '"+o+"' are supported for 'cameraIdOrConfig'";if(f===n){var p=t.facingMode;if(typeof p=="string"){if(l(p))return{facingMode:p}}else if(typeof p=="object")if(i in p){if(l(p[""+i]))return{facingMode:{exact:p[""+i]}}}else throw"'facingMode' should be string or object with"+(" "+i+" as key.");else{var m=typeof p;throw"Invalid type of 'facingMode' = "+m}}else{var y=t.deviceId;if(typeof y=="string")return{deviceId:y};if(typeof y=="object"){if(i in y)return{deviceId:{exact:y[""+i]}};throw"'deviceId' should be string or object with"+(" "+i+" as key.")}else{var v=typeof y;throw"Invalid type of 'deviceId' = "+v}}}var w=typeof t;throw"Invalid type of 'cameraIdOrConfig' = "+w},e.prototype.computeCanvasDrawConfig=function(t,n,o,s){if(t<=o&&n<=s){var i=(o-t)/2,l=(s-n)/2;return{x:i,y:l,width:t,height:n}}else{var c=t,f=n;return t>o&&(n=o/t*n,t=o),n>s&&(t=s/n*t,n=s),this.logger.log("Image downsampled from "+(c+"X"+f)+(" to "+t+"X"+n+".")),this.computeCanvasDrawConfig(t,n,o,s)}},e.prototype.clearElement=function(){if(this.stateManagerProxy.isScanning())throw"Cannot clear while scan is ongoing, close it first.";var t=document.getElementById(this.elementId);t&&(t.innerHTML="")},e.prototype.createVideoElement=function(t){var n=document.createElement("video");return n.style.width=t+"px",n.muted=!0,n.setAttribute("muted","true"),n.playsInline=!0,n},e.prototype.possiblyUpdateShaders=function(t){this.qrMatch!==t&&(this.hasBorderShaders&&this.borderShaders&&this.borderShaders.length&&this.borderShaders.forEach(function(n){n.style.backgroundColor=t?sr.BORDER_SHADER_MATCH_COLOR:sr.BORDER_SHADER_DEFAULT_COLOR}),this.qrMatch=t)},e.prototype.possiblyCloseLastScanImageFile=function(){this.lastScanImageFile&&(URL.revokeObjectURL(this.lastScanImageFile),this.lastScanImageFile=null)},e.prototype.createCanvasElement=function(t,n,o){var s=t,i=n,l=document.createElement("canvas");return l.style.width=s+"px",l.style.height=i+"px",l.style.display="none",l.id=Aa(o)?"qr-canvas":o,l},e.prototype.getShadedRegionBounds=function(t,n,o){if(o.width>t||o.height>n)throw"'config.qrbox' dimensions should not be greater than the dimensions of the root HTML element.";return{x:(t-o.width)/2,y:(n-o.height)/2,width:o.width,height:o.height}},e.prototype.possiblyInsertShadingElement=function(t,n,o,s){if(!(n-s.width<1||o-s.height<1)){var i=document.createElement("div");i.style.position="absolute";var l=(n-s.width)/2,c=(o-s.height)/2;if(i.style.borderLeft=l+"px solid #0000007a",i.style.borderRight=l+"px solid #0000007a",i.style.borderTop=c+"px solid #0000007a",i.style.borderBottom=c+"px solid #0000007a",i.style.boxSizing="border-box",i.style.top="0px",i.style.bottom="0px",i.style.left="0px",i.style.right="0px",i.id=""+sr.SHADED_REGION_ELEMENT_ID,n-s.width<11||o-s.height<11)this.hasBorderShaders=!1;else{var f=5,p=40;this.insertShaderBorders(i,p,f,-f,0,!0),this.insertShaderBorders(i,p,f,-f,0,!1),this.insertShaderBorders(i,p,f,s.height+f,0,!0),this.insertShaderBorders(i,p,f,s.height+f,0,!1),this.insertShaderBorders(i,f,p+f,-f,-f,!0),this.insertShaderBorders(i,f,p+f,s.height+f-p,-f,!0),this.insertShaderBorders(i,f,p+f,-f,-f,!1),this.insertShaderBorders(i,f,p+f,s.height+f-p,-f,!1),this.hasBorderShaders=!0}t.append(i)}},e.prototype.insertShaderBorders=function(t,n,o,s,i,l){var c=document.createElement("div");c.style.position="absolute",c.style.backgroundColor=sr.BORDER_SHADER_DEFAULT_COLOR,c.style.width=n+"px",c.style.height=o+"px",c.style.top=s+"px",l?c.style.left=i+"px":c.style.right=i+"px",this.borderShaders||(this.borderShaders=[]),this.borderShaders.push(c),t.appendChild(c)},e.prototype.showPausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="block"},e.prototype.hidePausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="none"},e.prototype.getTimeoutFps=function(t){return 1e3/t},e}(),f1="data:image/svg+xml;base64,",fne=f1+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNzEuNjQzIDM3MS42NDMiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDM3MS42NDMgMzcxLjY0MyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTEwNS4wODQgMzguMjcxaDE2My43Njh2MjBIMTA1LjA4NHoiLz48cGF0aCBkPSJNMzExLjU5NiAxOTAuMTg5Yy03LjQ0MS05LjM0Ny0xOC40MDMtMTYuMjA2LTMyLjc0My0yMC41MjJWMzBjMC0xNi41NDItMTMuNDU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UgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAQgAAAEIBarqQRAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE1SURBVDiNfdI7S0NBEAXgLya1otFgpbYSbISAgpXYi6CmiH9KCAiChaVga6OiWPgfRDQ+0itaGVNosXtluWwcuMzePfM4M3sq8lbHBubwg1dc4m1E/J/N4ghDPOIsfk/4xiEao5KX0McFljN4C9d4QTPXuY99jP3DsIoDPGM6BY5i5yI5R7O4q+ImFkJY2DCh3cAH2klyB+9J1xUMMAG7eCh1a+Mr+k48b5diXrFVwwLuS+BJ9MfR7+G0FHOHhTHhnXNWS87VDF4pcnfQK4Ep7XScNLmPTZgURNKKYENYWDpzW1BhscS1WHS8CDgURFJQrWcoF3c13KKbgg1BYQfy8xZWEzTTw1QZbAoKu8FqJnktdu5hcVSHmchiILzzuaDQvjBzV2m8yohCE1jHfPx/xhU+y4G/D75ELlRJsSYAAAAASUVORK5CYII=",Py=function(){function e(){}return e.createDefault=function(){return{hasPermission:!1,lastUsedCameraId:null}},e}(),gne=function(){function e(){this.data=Py.createDefault();var t=localStorage.getItem(e.LOCAL_STORAGE_KEY);t?this.data=JSON.parse(t):this.reset()}return e.prototype.hasCameraPermissions=function(){return this.data.hasPermission},e.prototype.getLastUsedCameraId=function(){return this.data.lastUsedCameraId},e.prototype.setHasPermission=function(t){this.data.hasPermission=t,this.flush()},e.prototype.setLastUsedCameraId=function(t){this.data.lastUsedCameraId=t,this.flush()},e.prototype.resetLastUsedCameraId=function(){this.data.lastUsedCameraId=null,this.flush()},e.prototype.reset=function(){this.data=Py.createDefault(),this.flush()},e.prototype.flush=function(){localStorage.setItem(e.LOCAL_STORAGE_KEY,JSON.stringify(this.data))},e.LOCAL_STORAGE_KEY="HTML5_QRCODE_DATA",e}(),mne=function(){function e(){this.infoDiv=document.createElement("div")}return e.prototype.renderInto=function(t){this.infoDiv.style.position="absolute",this.infoDiv.style.top="10px",this.infoDiv.style.right="10px",this.infoDiv.style.zIndex="2",this.infoDiv.style.display="none",this.infoDiv.style.padding="5pt",this.infoDiv.style.border="1px solid silver",this.infoDiv.style.fontSize="10pt",this.infoDiv.style.background="rgb(248 248 248)",this.infoDiv.innerText=Dy.builtUsing();var n=document.createElement("a");n.innerText="html5-qrcode",n.href="https://github.com/mebjas/html5-qrcode",n.target="new",this.infoDiv.appendChild(n);var o=document.createElement("br"),s=document.createElement("br");this.infoDiv.appendChild(o),this.infoDiv.appendChild(s);var i=document.createElement("a");i.innerText=Dy.reportIssues(),i.href="https://github.com/mebjas/html5-qrcode/issues",i.target="new",this.infoDiv.appendChild(i),t.appendChild(this.infoDiv)},e.prototype.show=function(){this.infoDiv.style.display="block"},e.prototype.hide=function(){this.infoDiv.style.display="none"},e}(),vne=function(){function e(t,n){this.isShowingInfoIcon=!0,this.onTapIn=t,this.onTapOut=n,this.infoIcon=document.createElement("img")}return e.prototype.renderInto=function(t){var n=this;this.infoIcon.alt="Info icon",this.infoIcon.src=Ly,this.infoIcon.style.position="absolute",this.infoIcon.style.top="4px",this.infoIcon.style.right="4px",this.infoIcon.style.opacity="0.6",this.infoIcon.style.cursor="pointer",this.infoIcon.style.zIndex="2",this.infoIcon.style.width="16px",this.infoIcon.style.height="16px",this.infoIcon.onmouseover=function(o){return n.onHoverIn()},this.infoIcon.onmouseout=function(o){return n.onHoverOut()},this.infoIcon.onclick=function(o){return n.onClick()},t.appendChild(this.infoIcon)},e.prototype.onHoverIn=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="1")},e.prototype.onHoverOut=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="0.6")},e.prototype.onClick=function(){this.isShowingInfoIcon?(this.isShowingInfoIcon=!1,this.onTapIn(),this.infoIcon.src=pne,this.infoIcon.style.opacity="1"):(this.isShowingInfoIcon=!0,this.onTapOut(),this.infoIcon.src=Ly,this.infoIcon.style.opacity="0.6")},e}(),yne=function(){function e(){var t=this;this.infoDiv=new mne,this.infoIcon=new vne(function(){t.infoDiv.show()},function(){t.infoDiv.hide()})}return e.prototype.renderInto=function(t){this.infoDiv.renderInto(t),this.infoIcon.renderInto(t)},e}(),By=function(){function e(){}return e.hasCameraPermissions=function(){return new Promise(function(t,n){navigator.mediaDevices.enumerateDevices().then(function(o){o.forEach(function(s){s.kind==="videoinput"&&s.label&&t(!0)}),t(!1)})})},e}(),rs=function(){function e(t){this.supportedScanTypes=this.validateAndReturnScanTypes(t)}return e.prototype.getDefaultScanType=function(){return this.supportedScanTypes[0]},e.prototype.hasMoreThanOneScanType=function(){return this.supportedScanTypes.length>1},e.prototype.isCameraScanRequired=function(){for(var t=0,n=this.supportedScanTypes;tn)throw"Max "+n+" values expected for supportedScanTypes";for(var o=0,s=t;o0?(t.removeChild(n),s.renderCameraSelection(l)):(s.setHeaderMessage(Ar.noCameraFound(),ir.STATUS_WARNING),i())}).catch(function(l){s.persistedDataManager.setHasPermission(!1),o?o.disabled=!1:i(),s.setHeaderMessage(l,ir.STATUS_WARNING)})},e.prototype.createPermissionButton=function(t,n){var o=this,s=document.createElement("button");s.id=this.getCameraPermissionButtonId(),s.innerText=Ar.cameraPermissionTitle(),s.addEventListener("click",function(){s.disabled=!0,o.createCameraListUi(t,n,s)}),n.appendChild(s)},e.prototype.createPermissionsUi=function(t,n){var o=this;if(rs.isCameraScanType(this.currentScanType)&&this.persistedDataManager.hasCameraPermissions()){By.hasCameraPermissions().then(function(s){s?o.createCameraListUi(t,n):(o.persistedDataManager.setHasPermission(!1),o.createPermissionButton(t,n))}).catch(function(s){o.persistedDataManager.setHasPermission(!1),o.createPermissionButton(t,n)});return}this.createPermissionButton(t,n)},e.prototype.createSectionControlPanel=function(){var t=document.getElementById(this.getDashboardSectionId()),n=document.createElement("div");t.appendChild(n);var o=document.createElement("div");o.id=this.getDashboardSectionCameraScanRegionId(),o.style.display=rs.isCameraScanType(this.currentScanType)?"block":"none",n.appendChild(o);var s=document.createElement("div");s.style.textAlign="center",o.appendChild(s),this.scanTypeSelector.isCameraScanRequired()&&this.createPermissionsUi(o,s),this.renderFileScanUi(n)},e.prototype.renderFileScanUi=function(t){var n=this,o=document.createElement("div");o.id=this.getDashboardSectionFileScanRegionId(),o.style.textAlign="center",o.style.display=rs.isCameraScanType(this.currentScanType)?"none":"block",t.appendChild(o);var s=document.createElement("input");s.id=this.getFileScanInputId(),s.accept="image/*",s.type="file",s.style.width="200px",s.disabled=rs.isCameraScanType(this.currentScanType);var i=document.createElement("span");i.innerText=" Select Image",o.appendChild(s),o.appendChild(i),s.addEventListener("change",function(l){if(!n.html5Qrcode)throw"html5Qrcode not defined";if(!(l==null||l.target==null)&&!!rs.isFileScanType(n.currentScanType)&&l.target.files.length!==0){var c=l.target.files[0];n.html5Qrcode.scanFileV2(c,!0).then(function(f){n.resetHeaderMessage(),n.qrCodeSuccessCallback(f.decodedText,f)}).catch(function(f){n.setHeaderMessage(f,ir.STATUS_WARNING),n.qrCodeErrorCallback(f,XS.createFrom(f))})}})},e.prototype.renderCameraSelection=function(t){var n=this,o=this,s=document.getElementById(this.getDashboardSectionCameraScanRegionId());s.style.textAlign="center";var i=document.createElement("span");i.style.marginRight="10px";var l=t.length,c=document.createElement("select");if(l===1)c.style.display="none";else{var f=Ar.selectCamera();i.innerText=f+" ("+t.length+") "}c.id=this.getCameraSelectionId();for(var p=[],m=0,y=t;m",n.appendChild(this.cameraScanImage);return}this.cameraScanImage=new Image,this.cameraScanImage.onload=function(o){n.innerHTML="
",n.appendChild(t.cameraScanImage)},this.cameraScanImage.width=64,this.cameraScanImage.style.opacity="0.8",this.cameraScanImage.src=fne},e.prototype.insertFileScanImageToScanRegion=function(){var t=this,n=document.getElementById(this.getScanRegionId());if(this.fileScanImage){n.innerHTML="
",n.appendChild(this.fileScanImage);return}this.fileScanImage=new Image,this.fileScanImage.onload=function(o){n.innerHTML="
",n.appendChild(t.fileScanImage)},this.fileScanImage.width=64,this.fileScanImage.style.opacity="0.8",this.fileScanImage.src=hne},e.prototype.clearScanRegion=function(){var t=document.getElementById(this.getScanRegionId());t.innerHTML=""},e.prototype.getDashboardSectionId=function(){return this.elementId+"__dashboard_section"},e.prototype.getDashboardSectionCameraScanRegionId=function(){return this.elementId+"__dashboard_section_csr"},e.prototype.getDashboardSectionFileScanRegionId=function(){return this.elementId+"__dashboard_section_fsr"},e.prototype.getDashboardSectionSwapLinkId=function(){return this.elementId+"__dashboard_section_swaplink"},e.prototype.getScanRegionId=function(){return this.elementId+"__scan_region"},e.prototype.getDashboardId=function(){return this.elementId+"__dashboard"},e.prototype.getFileScanInputId=function(){return this.elementId+"__filescan_input"},e.prototype.getStatusSpanId=function(){return this.elementId+"__status_span"},e.prototype.getHeaderMessageContainerId=function(){return this.elementId+"__header_message"},e.prototype.getCameraSelectionId=function(){return this.elementId+"__camera_selection"},e.prototype.getCameraPermissionButtonId=function(){return this.elementId+"__camera_permission_button"},e.prototype.getCameraScanRegion=function(){return document.getElementById(this.getDashboardSectionCameraScanRegionId())},e.prototype.getFileScanRegion=function(){return document.getElementById(this.getDashboardSectionFileScanRegionId())},e.prototype.getFileScanInput=function(){return document.getElementById(this.getFileScanInputId())},e.prototype.getDashboardSectionSwapLink=function(){return document.getElementById(this.getDashboardSectionSwapLinkId())},e.prototype.getHeaderMessageDiv=function(){return document.getElementById(this.getHeaderMessageContainerId())},e}();const Ene={id:"qr-code-full-region"},Sne=ve({props:{qrbox:null,fps:null},emits:["decodedCode"],setup(e,{emit:t}){const n=e;var o={fps:n.fps?n.fps:10};let s="";n.qrbox&&(o.qrbox=n.qrbox);let i=null;function l(p,m){s!==p&&(s=p,t("decodedCode",p,m))}function c(p,m){}async function f(){await dt(),i=new Cne("qr-code-full-region",o,void 0),i.render(l,c)}return f(),(p,m)=>(M(),W("div",Ene))}}),Ane={id:"section",class:"section",style:{width:"70%",margin:"auto"}},Tne=Ht("\u6309\u6211\u50B3\u9001\u7C21\u8A0A "),Ine=ve({setup(e){let t=F(""),n=F(1),o=F("");var s=navigator.userAgent,i=s.indexOf("Android")>-1||s.indexOf("Adr")>-1,l=!!s.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);const c=function(y,v){y.includes("1922:")?f(y):t.value=`\u5167\u5BB9:${y}`};function f(y){let w=y.split("1922:")[1];t.value=`\u5167\u5BB9:${w}`,o.value=w;let E=document.getElementById("Btn_Open");E.style.display="inline"}function p(){let y="";n.value>1&&(y=`+${n.value-1}`),i?window.open(`sms:1922?&body=${o.value}${y}`,"_self"):l?window.open(`sms:1922&body=${o.value}${y}`,"_self"):alert(`sms:1922&body=${o.value}${y}`)}async function m(){await dt();let y=document.getElementById("Btn_Open");if(y.style.display="none",!i&&!l){let v=document.getElementById("section");v.style.width="500px"}}return m(),(y,v)=>{const w=Ae("el-input-number"),E=Ae("el-button");return M(),W(at,null,[Q("div",Ane,[le(Sne,{qrbox:200,fps:10,onDecodedCode:c})]),Q("div",null,Pe(k(t)),1),Q("div",null,[le(w,{modelValue:k(n),"onUpdate:modelValue":v[0]||(v[0]=I=>wn(n)?n.value=I:n=I),min:1,size:"large"},null,8,["modelValue"])]),le(E,{id:"Btn_Open",type:"success",onClick:v[1]||(v[1]=()=>{p()}),size:"large",round:""},{default:ae(()=>[Tne]),_:1})],64)}}}),_ne=ve({setup(e){return(t,n)=>(M(),me(Ine))}});X2(_ne).use(Zte,{locale:Qte}).mount("#app")});export default Nne(); +`);let u=A1.singletonList(Ur.INITIAL_STATE);for(let h=0;h0?(u=vl.updateStateListForPair(u,h,g),h++):u=this.updateStateListForChar(u,h)}return A1.min(u,(h,g)=>h.getBitCount()-g.getBitCount()).toBitArray(this.text)}updateStateListForChar(r,a){const u=[];for(let d of r)this.updateStateForChar(d,a,u);return vl.simplifyStates(u)}updateStateForChar(r,a,u){let d=this.text[a]&255,h=Cf[r.getMode()][d]>0,g=null;for(let b=0;b<=zr;b++){let C=Cf[b][d];if(C>0){if(g==null&&(g=r.endBinaryShift(a)),!h||b===r.getMode()||b===or){const A=g.latchAndAppend(b,C);u.push(A)}if(!h&&I1[r.getMode()][b]>=0){const A=g.shiftAndAppend(b,C);u.push(A)}}}if(r.getBinaryShiftByteCount()>0||Cf[r.getMode()][d]===0){let b=r.addBinaryShiftChar(a);u.push(b)}}static updateStateListForPair(r,a,u){const d=[];for(let h of r)this.updateStateForPair(h,a,u,d);return this.simplifyStates(d)}static updateStateForPair(r,a,u,d){let h=r.endBinaryShift(a);if(d.push(h.latchAndAppend(zr,u)),r.getMode()!==zr&&d.push(h.shiftAndAppend(zr,u)),u===3||u===4){let g=h.latchAndAppend(or,16-u).latchAndAppend(or,1);d.push(g)}if(r.getBinaryShiftByteCount()>0){let g=r.addBinaryShiftChar(a).addBinaryShiftChar(a+1);d.push(g)}}static simplifyStates(r){let a=[];for(const u of r){let d=!0;for(const h of a){if(h.isBetterThanOrEqualTo(u)){d=!1;break}u.isBetterThanOrEqualTo(h)&&(a=a.filter(g=>g!==h))}d&&a.push(u)}return a}}class dn{constructor(){}static encodeBytes(r){return dn.encode(r,dn.DEFAULT_EC_PERCENT,dn.DEFAULT_AZTEC_LAYERS)}static encode(r,a,u){let d=new vl(r).encode(),h=_.truncDivision(d.getSize()*a,100)+11,g=d.getSize()+h,b,C,A,L,U;if(u!==dn.DEFAULT_AZTEC_LAYERS){if(b=u<0,C=Math.abs(u),C>(b?dn.MAX_NB_BITS_COMPACT:dn.MAX_NB_BITS))throw new m(K.format("Illegal value %s for layers",u));A=dn.totalBitsInLayer(C,b),L=dn.WORD_SIZE[C];let lt=A-A%L;if(U=dn.stuffBits(d,L),U.getSize()+h>lt)throw new m("Data to large for user specified layer");if(b&&U.getSize()>L*64)throw new m("Data to large for user specified layer")}else{L=0,U=null;for(let lt=0;;lt++){if(lt>dn.MAX_NB_BITS)throw new m("Data too large for an Aztec code");if(b=lt<=3,C=b?lt+1:lt,A=dn.totalBitsInLayer(C,b),g>A)continue;(U==null||L!==dn.WORD_SIZE[C])&&(L=dn.WORD_SIZE[C],U=dn.stuffBits(d,L));let rn=A-A%L;if(!(b&&U.getSize()>L*64)&&U.getSize()+h<=rn)break}}let Z=dn.generateCheckWords(U,A,L),se=U.getSize()/L,ye=dn.generateModeMessage(b,C,se),Ce=(b?11:14)+C*4,Oe=new Int32Array(Ce),Ke;if(b){Ke=Ce;for(let lt=0;lt=d||r.get(g+C))&&(b|=1<0&&i[i.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]o&&(o=c,n=l)}if(!n)throw"No largest barcode found";return n},e.prototype.createBarcodeDetectorFormats=function(t){for(var n=[],o=0,s=t;o=c&&l()})})},e.prototype.scanFile=function(t,n){return this.scanFileV2(t,n).then(function(o){return o.decodedText})},e.prototype.scanFileV2=function(t,n){var o=this;if(!t||!(t instanceof File))throw"imageFile argument is mandatory and should be instance of File. Use 'event.target.files[0]'.";if(Aa(n)&&(n=!0),!this.stateManagerProxy.canScanFile())throw"Cannot start file scan - ongoing camera scan";return new Promise(function(s,i){o.possiblyCloseLastScanImageFile(),o.clearElement(),o.lastScanImageFile=URL.createObjectURL(t);var l=new Image;l.onload=function(){var c=l.width,f=l.height,p=document.getElementById(o.elementId),m=p.clientWidth?p.clientWidth:sr.DEFAULT_WIDTH,y=Math.max(p.clientHeight?p.clientHeight:f,sr.FILE_SCAN_MIN_HEIGHT),v=o.computeCanvasDrawConfig(c,f,m,y);if(n){var w=o.createCanvasElement(m,y,"qr-canvas-visible");w.style.display="inline-block",p.appendChild(w);var E=w.getContext("2d");if(!E)throw"Unable to get 2d context from canvas";E.canvas.width=m,E.canvas.height=y,E.drawImage(l,0,0,c,f,v.x,v.y,v.width,v.height)}var I=o.createCanvasElement(v.width,v.height);p.appendChild(I);var S=I.getContext("2d");if(!S)throw"Unable to get 2d context from canvas";S.canvas.width=v.width,S.canvas.height=v.height,S.drawImage(l,0,0,c,f,0,0,v.width,v.height);try{o.qrcode.decodeAsync(I).then(function(T){s(Oy.createFromQrcodeResult(T))}).catch(i)}catch(T){i("QR code parse error, error = "+T)}},l.onerror=i,l.onabort=i,l.onstalled=i,l.onsuspend=i,l.src=URL.createObjectURL(t)})},e.prototype.clear=function(){this.clearElement()},e.getCameras=function(){if(navigator.mediaDevices)return e.getCamerasFromMediaDevices();var t=MediaStreamTrack;if(MediaStreamTrack&&t.getSources)return e.getCamerasFromMediaStreamTrack();var n=function(){if(location.protocol==="https:")return!0;var s=location.host.split(":")[0];return s==="127.0.0.1"||s==="localhost"},o=Nl.unableToQuerySupportedDevices();return n()||(o=Nl.insecureContextCameraQueryError()),Promise.reject(o)},e.prototype.getRunningTrackCapabilities=function(){if(this.localMediaStream==null)throw"Scanning is not in running state, call this API only when QR code scanning using camera is in running state.";if(this.localMediaStream.getVideoTracks().length===0)throw"No video tracks found";var t=this.localMediaStream.getVideoTracks()[0];return t.getCapabilities()},e.prototype.applyVideoConstraints=function(t){var n=this;if(t){if(!ZS.isMediaStreamConstraintsValid(t,this.logger))throw"invalid videoConstaints passed, check logs for more details"}else throw"videoConstaints is required argument.";if(this.localMediaStream===null)throw"Scanning is not in running state, call this API only when QR code scanning using camera is in running state.";if(this.localMediaStream.getVideoTracks().length===0)throw"No video tracks found";return new Promise(function(o,s){if("aspectRatio"in t){s("Chaning 'aspectRatio' in run-time is not yet supported.");return}var i=n.localMediaStream.getVideoTracks()[0];i.applyConstraints(t).then(function(l){o(l)}).catch(function(l){s(l)})})},e.getCamerasFromMediaDevices=function(){return new Promise(function(t,n){navigator.mediaDevices.getUserMedia({audio:!1,video:!0}).then(function(o){var s=function(i){for(var l=i.getVideoTracks(),c=0,f=l;ct&&(s.logger.warn("`qrbox.width` or `qrbox` is larger than the width of the root element. The width will be truncated to the width of root element."),p=t),p};c(l.width),c(l.height),l.width=f(l.width)},e.prototype.validateQrboxConfig=function(t){if(typeof t!="number"&&typeof t!="function"&&(t.width===void 0||t.height===void 0))throw"Invalid instance of QrDimensions passed for 'config.qrbox'. Both 'width' and 'height' should be set."},e.prototype.toQrdimensions=function(t,n,o){if(typeof o=="number")return{width:o,height:o};if(typeof o=="function")try{return o(t,n)}catch(s){throw new Error("qrbox config was passed as a function but it failed with unknown error"+s)}return o},e.prototype.setupUi=function(t,n,o){o.isShadedBoxEnabled()&&this.validateQrboxSize(t,n,o);var s=Aa(o.qrbox)?{width:t,height:n}:o.qrbox;this.validateQrboxConfig(s);var i=this.toQrdimensions(t,n,s);i.height>n&&this.logger.warn("[Html5Qrcode] config.qrbox has height that isgreater than the height of the video stream. Shading will be ignored");var l=o.isShadedBoxEnabled()&&i.height<=n,c={x:0,y:0,width:t,height:n},f=l?this.getShadedRegionBounds(t,n,i):c,p=this.createCanvasElement(f.width,f.height),m=p.getContext("2d");m.canvas.width=f.width,m.canvas.height=f.height,this.element.append(p),l&&this.possiblyInsertShadingElement(this.element,t,n,i),this.createScannerPausedUiElement(this.element),this.qrRegion=f,this.context=m,this.canvasElement=p},e.prototype.createScannerPausedUiElement=function(t){var n=document.createElement("div");n.innerText="Scanner paused",n.style.display="none",n.style.position="absolute",n.style.top="0px",n.style.zIndex="1",n.style.background="yellow",n.style.textAlign="center",n.style.width="100%",t.appendChild(n),this.scannerPausedUiElement=n},e.prototype.scanContext=function(t,n){var o=this;return this.stateManagerProxy.isPaused()?Promise.resolve(!1):this.qrcode.decodeAsync(this.canvasElement).then(function(s){return t(s.text,Oy.createFromQrcodeResult(s)),o.possiblyUpdateShaders(!0),!0}).catch(function(s){o.possiblyUpdateShaders(!1);var i=Nl.codeParseError(s);return n(i,XS.createFrom(i)),!1})},e.prototype.foreverScan=function(t,n,o){var s=this;if(!!this.shouldScan&&!!this.localMediaStream){var i=this.videoElement,l=i.videoWidth/i.clientWidth,c=i.videoHeight/i.clientHeight;if(!this.qrRegion)throw"qrRegion undefined when localMediaStream is ready.";var f=this.qrRegion.width*l,p=this.qrRegion.height*c,m=this.qrRegion.x*l,y=this.qrRegion.y*c;this.context.drawImage(i,m,y,f,p,0,0,this.qrRegion.width,this.qrRegion.height);var v=function(){s.foreverScanTimeout=setTimeout(function(){s.foreverScan(t,n,o)},s.getTimeoutFps(t.fps))};this.scanContext(n,o).then(function(w){!w&&t.disableFlip!==!0?(s.context.translate(s.context.canvas.width,0),s.context.scale(-1,1),s.scanContext(n,o).finally(function(){v()})):v()}).catch(function(w){s.logger.logError("Error happend while scanning context",w),v()})}},e.prototype.onMediaStreamReceived=function(t,n,o,s,i,l){var c=this,f=this;return new Promise(function(p,m){var y=function(){var E=c.createVideoElement(s);f.element.append(E),E.onabort=m,E.onerror=m;var I=function(){var S=E.clientWidth,T=E.clientHeight;f.setupUi(S,T,n),f.foreverScan(n,i,l),E.removeEventListener("playing",I),p(null)};E.addEventListener("playing",I),E.srcObject=t,E.play(),f.videoElement=E};if(f.localMediaStream=t,o||!n.aspectRatio)y();else{var v={aspectRatio:n.aspectRatio},w=t.getVideoTracks()[0];w.applyConstraints(v).then(function(E){return y()}).catch(function(E){f.logger.logErrors(["[Html5Qrcode] Constriants could not be satisfied, ignoring constraints",E]),y()})}})},e.prototype.createVideoConstraints=function(t){if(typeof t=="string")return{deviceId:{exact:t}};if(typeof t=="object"){var n="facingMode",o="deviceId",s={user:!0,environment:!0},i="exact",l=function(E){if(E in s)return!0;throw"config has invalid 'facingMode' value = "+("'"+E+"'")},c=Object.keys(t);if(c.length!==1)throw"'cameraIdOrConfig' object should have exactly 1 key,"+(" if passed as an object, found "+c.length+" keys");var f=Object.keys(t)[0];if(f!==n&&f!==o)throw"Only '"+n+"' and '"+o+"' are supported for 'cameraIdOrConfig'";if(f===n){var p=t.facingMode;if(typeof p=="string"){if(l(p))return{facingMode:p}}else if(typeof p=="object")if(i in p){if(l(p[""+i]))return{facingMode:{exact:p[""+i]}}}else throw"'facingMode' should be string or object with"+(" "+i+" as key.");else{var m=typeof p;throw"Invalid type of 'facingMode' = "+m}}else{var y=t.deviceId;if(typeof y=="string")return{deviceId:y};if(typeof y=="object"){if(i in y)return{deviceId:{exact:y[""+i]}};throw"'deviceId' should be string or object with"+(" "+i+" as key.")}else{var v=typeof y;throw"Invalid type of 'deviceId' = "+v}}}var w=typeof t;throw"Invalid type of 'cameraIdOrConfig' = "+w},e.prototype.computeCanvasDrawConfig=function(t,n,o,s){if(t<=o&&n<=s){var i=(o-t)/2,l=(s-n)/2;return{x:i,y:l,width:t,height:n}}else{var c=t,f=n;return t>o&&(n=o/t*n,t=o),n>s&&(t=s/n*t,n=s),this.logger.log("Image downsampled from "+(c+"X"+f)+(" to "+t+"X"+n+".")),this.computeCanvasDrawConfig(t,n,o,s)}},e.prototype.clearElement=function(){if(this.stateManagerProxy.isScanning())throw"Cannot clear while scan is ongoing, close it first.";var t=document.getElementById(this.elementId);t&&(t.innerHTML="")},e.prototype.createVideoElement=function(t){var n=document.createElement("video");return n.style.width=t+"px",n.muted=!0,n.setAttribute("muted","true"),n.playsInline=!0,n},e.prototype.possiblyUpdateShaders=function(t){this.qrMatch!==t&&(this.hasBorderShaders&&this.borderShaders&&this.borderShaders.length&&this.borderShaders.forEach(function(n){n.style.backgroundColor=t?sr.BORDER_SHADER_MATCH_COLOR:sr.BORDER_SHADER_DEFAULT_COLOR}),this.qrMatch=t)},e.prototype.possiblyCloseLastScanImageFile=function(){this.lastScanImageFile&&(URL.revokeObjectURL(this.lastScanImageFile),this.lastScanImageFile=null)},e.prototype.createCanvasElement=function(t,n,o){var s=t,i=n,l=document.createElement("canvas");return l.style.width=s+"px",l.style.height=i+"px",l.style.display="none",l.id=Aa(o)?"qr-canvas":o,l},e.prototype.getShadedRegionBounds=function(t,n,o){if(o.width>t||o.height>n)throw"'config.qrbox' dimensions should not be greater than the dimensions of the root HTML element.";return{x:(t-o.width)/2,y:(n-o.height)/2,width:o.width,height:o.height}},e.prototype.possiblyInsertShadingElement=function(t,n,o,s){if(!(n-s.width<1||o-s.height<1)){var i=document.createElement("div");i.style.position="absolute";var l=(n-s.width)/2,c=(o-s.height)/2;if(i.style.borderLeft=l+"px solid #0000007a",i.style.borderRight=l+"px solid #0000007a",i.style.borderTop=c+"px solid #0000007a",i.style.borderBottom=c+"px solid #0000007a",i.style.boxSizing="border-box",i.style.top="0px",i.style.bottom="0px",i.style.left="0px",i.style.right="0px",i.id=""+sr.SHADED_REGION_ELEMENT_ID,n-s.width<11||o-s.height<11)this.hasBorderShaders=!1;else{var f=5,p=40;this.insertShaderBorders(i,p,f,-f,0,!0),this.insertShaderBorders(i,p,f,-f,0,!1),this.insertShaderBorders(i,p,f,s.height+f,0,!0),this.insertShaderBorders(i,p,f,s.height+f,0,!1),this.insertShaderBorders(i,f,p+f,-f,-f,!0),this.insertShaderBorders(i,f,p+f,s.height+f-p,-f,!0),this.insertShaderBorders(i,f,p+f,-f,-f,!1),this.insertShaderBorders(i,f,p+f,s.height+f-p,-f,!1),this.hasBorderShaders=!0}t.append(i)}},e.prototype.insertShaderBorders=function(t,n,o,s,i,l){var c=document.createElement("div");c.style.position="absolute",c.style.backgroundColor=sr.BORDER_SHADER_DEFAULT_COLOR,c.style.width=n+"px",c.style.height=o+"px",c.style.top=s+"px",l?c.style.left=i+"px":c.style.right=i+"px",this.borderShaders||(this.borderShaders=[]),this.borderShaders.push(c),t.appendChild(c)},e.prototype.showPausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="block"},e.prototype.hidePausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="none"},e.prototype.getTimeoutFps=function(t){return 1e3/t},e}(),f1="data:image/svg+xml;base64,",fne=f1+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNzEuNjQzIDM3MS42NDMiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDM3MS42NDMgMzcxLjY0MyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTEwNS4wODQgMzguMjcxaDE2My43Njh2MjBIMTA1LjA4NHoiLz48cGF0aCBk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TM5IDM5LTM5IDM5IDE3LjQ2MSAzOSAzOS0xNy40NjEgMzktMzkgMzl6Ii8+PC9zdmc+",pne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAQgAAAEIBarqQRAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE1SURBVDiNfdI7S0NBEAXgLya1otFgpbYSbISAgpXYi6CmiH9KCAiChaVga6OiWPgfRDQ+0itaGVNosXtluWwcuMzePfM4M3sq8lbHBubwg1dc4m1E/J/N4ghDPOIsfk/4xiEao5KX0McFljN4C9d4QTPXuY99jP3DsIoDPGM6BY5i5yI5R7O4q+ImFkJY2DCh3cAH2klyB+9J1xUMMAG7eCh1a+Mr+k48b5diXrFVwwLuS+BJ9MfR7+G0FHOHhTHhnXNWS87VDF4pcnfQK4Ep7XScNLmPTZgURNKKYENYWDpzW1BhscS1WHS8CDgURFJQrWcoF3c13KKbgg1BYQfy8xZWEzTTw1QZbAoKu8FqJnktdu5hcVSHmchiILzzuaDQvjBzV2m8yohCE1jHfPx/xhU+y4G/D75ELlRJsSYAAAAASUVORK5CYII=",Py=function(){function e(){}return e.createDefault=function(){return{hasPermission:!1,lastUsedCameraId:null}},e}(),gne=function(){function e(){this.data=Py.createDefault();var t=localStorage.getItem(e.LOCAL_STORAGE_KEY);t?this.data=JSON.parse(t):this.reset()}return e.prototype.hasCameraPermissions=function(){return this.data.hasPermission},e.prototype.getLastUsedCameraId=function(){return this.data.lastUsedCameraId},e.prototype.setHasPermission=function(t){this.data.hasPermission=t,this.flush()},e.prototype.setLastUsedCameraId=function(t){this.data.lastUsedCameraId=t,this.flush()},e.prototype.resetLastUsedCameraId=function(){this.data.lastUsedCameraId=null,this.flush()},e.prototype.reset=function(){this.data=Py.createDefault(),this.flush()},e.prototype.flush=function(){localStorage.setItem(e.LOCAL_STORAGE_KEY,JSON.stringify(this.data))},e.LOCAL_STORAGE_KEY="HTML5_QRCODE_DATA",e}(),mne=function(){function e(){this.infoDiv=document.createElement("div")}return e.prototype.renderInto=function(t){this.infoDiv.style.position="absolute",this.infoDiv.style.top="10px",this.infoDiv.style.right="10px",this.infoDiv.style.zIndex="2",this.infoDiv.style.display="none",this.infoDiv.style.padding="5pt",this.infoDiv.style.border="1px solid silver",this.infoDiv.style.fontSize="10pt",this.infoDiv.style.background="rgb(248 248 248)",this.infoDiv.innerText=Dy.builtUsing();var n=document.createElement("a");n.innerText="html5-qrcode",n.href="https://github.com/mebjas/html5-qrcode",n.target="new",this.infoDiv.appendChild(n);var o=document.createElement("br"),s=document.createElement("br");this.infoDiv.appendChild(o),this.infoDiv.appendChild(s);var i=document.createElement("a");i.innerText=Dy.reportIssues(),i.href="https://github.com/mebjas/html5-qrcode/issues",i.target="new",this.infoDiv.appendChild(i),t.appendChild(this.infoDiv)},e.prototype.show=function(){this.infoDiv.style.display="block"},e.prototype.hide=function(){this.infoDiv.style.display="none"},e}(),vne=function(){function e(t,n){this.isShowingInfoIcon=!0,this.onTapIn=t,this.onTapOut=n,this.infoIcon=document.createElement("img")}return e.prototype.renderInto=function(t){var n=this;this.infoIcon.alt="Info icon",this.infoIcon.src=Ly,this.infoIcon.style.position="absolute",this.infoIcon.style.top="4px",this.infoIcon.style.right="4px",this.infoIcon.style.opacity="0.6",this.infoIcon.style.cursor="pointer",this.infoIcon.style.zIndex="2",this.infoIcon.style.width="16px",this.infoIcon.style.height="16px",this.infoIcon.onmouseover=function(o){return n.onHoverIn()},this.infoIcon.onmouseout=function(o){return n.onHoverOut()},this.infoIcon.onclick=function(o){return n.onClick()},t.appendChild(this.infoIcon)},e.prototype.onHoverIn=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="1")},e.prototype.onHoverOut=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="0.6")},e.prototype.onClick=function(){this.isShowingInfoIcon?(this.isShowingInfoIcon=!1,this.onTapIn(),this.infoIcon.src=pne,this.infoIcon.style.opacity="1"):(this.isShowingInfoIcon=!0,this.onTapOut(),this.infoIcon.src=Ly,this.infoIcon.style.opacity="0.6")},e}(),yne=function(){function e(){var t=this;this.infoDiv=new mne,this.infoIcon=new vne(function(){t.infoDiv.show()},function(){t.infoDiv.hide()})}return e.prototype.renderInto=function(t){this.infoDiv.renderInto(t),this.infoIcon.renderInto(t)},e}(),By=function(){function e(){}return e.hasCameraPermissions=function(){return new Promise(function(t,n){navigator.mediaDevices.enumerateDevices().then(function(o){o.forEach(function(s){s.kind==="videoinput"&&s.label&&t(!0)}),t(!1)})})},e}(),rs=function(){function e(t){this.supportedScanTypes=this.validateAndReturnScanTypes(t)}return e.prototype.getDefaultScanType=function(){return this.supportedScanTypes[0]},e.prototype.hasMoreThanOneScanType=function(){return this.supportedScanTypes.length>1},e.prototype.isCameraScanRequired=function(){for(var t=0,n=this.supportedScanTypes;tn)throw"Max "+n+" values expected for supportedScanTypes";for(var o=0,s=t;o0?(t.removeChild(n),s.renderCameraSelection(l)):(s.setHeaderMessage(Ar.noCameraFound(),ir.STATUS_WARNING),i())}).catch(function(l){s.persistedDataManager.setHasPermission(!1),o?o.disabled=!1:i(),s.setHeaderMessage(l,ir.STATUS_WARNING)})},e.prototype.createPermissionButton=function(t,n){var o=this,s=document.createElement("button");s.id=this.getCameraPermissionButtonId(),s.innerText=Ar.cameraPermissionTitle(),s.addEventListener("click",function(){s.disabled=!0,o.createCameraListUi(t,n,s)}),n.appendChild(s)},e.prototype.createPermissionsUi=function(t,n){var o=this;if(rs.isCameraScanType(this.currentScanType)&&this.persistedDataManager.hasCameraPermissions()){By.hasCameraPermissions().then(function(s){s?o.createCameraListUi(t,n):(o.persistedDataManager.setHasPermission(!1),o.createPermissionButton(t,n))}).catch(function(s){o.persistedDataManager.setHasPermission(!1),o.createPermissionButton(t,n)});return}this.createPermissionButton(t,n)},e.prototype.createSectionControlPanel=function(){var t=document.getElementById(this.getDashboardSectionId()),n=document.createElement("div");t.appendChild(n);var o=document.createElement("div");o.id=this.getDashboardSectionCameraScanRegionId(),o.style.display=rs.isCameraScanType(this.currentScanType)?"block":"none",n.appendChild(o);var s=document.createElement("div");s.style.textAlign="center",o.appendChild(s),this.scanTypeSelector.isCameraScanRequired()&&this.createPermissionsUi(o,s),this.renderFileScanUi(n)},e.prototype.renderFileScanUi=function(t){var n=this,o=document.createElement("div");o.id=this.getDashboardSectionFileScanRegionId(),o.style.textAlign="center",o.style.display=rs.isCameraScanType(this.currentScanType)?"none":"block",t.appendChild(o);var s=document.createElement("input");s.id=this.getFileScanInputId(),s.accept="image/*",s.type="file",s.style.width="200px",s.disabled=rs.isCameraScanType(this.currentScanType);var i=document.createElement("span");i.innerText=" Select Image",o.appendChild(s),o.appendChild(i),s.addEventListener("change",function(l){if(!n.html5Qrcode)throw"html5Qrcode not defined";if(!(l==null||l.target==null)&&!!rs.isFileScanType(n.currentScanType)&&l.target.files.length!==0){var c=l.target.files[0];n.html5Qrcode.scanFileV2(c,!0).then(function(f){n.resetHeaderMessage(),n.qrCodeSuccessCallback(f.decodedText,f)}).catch(function(f){n.setHeaderMessage(f,ir.STATUS_WARNING),n.qrCodeErrorCallback(f,XS.createFrom(f))})}})},e.prototype.renderCameraSelection=function(t){var n=this,o=this,s=document.getElementById(this.getDashboardSectionCameraScanRegionId());s.style.textAlign="center";var i=document.createElement("span");i.style.marginRight="10px";var l=t.length,c=document.createElement("select");if(l===1)c.style.display="none";else{var f=Ar.selectCamera();i.innerText=f+" ("+t.length+") "}c.id=this.getCameraSelectionId();for(var p=[],m=0,y=t;m",n.appendChild(this.cameraScanImage);return}this.cameraScanImage=new Image,this.cameraScanImage.onload=function(o){n.innerHTML="
",n.appendChild(t.cameraScanImage)},this.cameraScanImage.width=64,this.cameraScanImage.style.opacity="0.8",this.cameraScanImage.src=fne},e.prototype.insertFileScanImageToScanRegion=function(){var t=this,n=document.getElementById(this.getScanRegionId());if(this.fileScanImage){n.innerHTML="
",n.appendChild(this.fileScanImage);return}this.fileScanImage=new Image,this.fileScanImage.onload=function(o){n.innerHTML="
",n.appendChild(t.fileScanImage)},this.fileScanImage.width=64,this.fileScanImage.style.opacity="0.8",this.fileScanImage.src=hne},e.prototype.clearScanRegion=function(){var t=document.getElementById(this.getScanRegionId());t.innerHTML=""},e.prototype.getDashboardSectionId=function(){return this.elementId+"__dashboard_section"},e.prototype.getDashboardSectionCameraScanRegionId=function(){return this.elementId+"__dashboard_section_csr"},e.prototype.getDashboardSectionFileScanRegionId=function(){return this.elementId+"__dashboard_section_fsr"},e.prototype.getDashboardSectionSwapLinkId=function(){return this.elementId+"__dashboard_section_swaplink"},e.prototype.getScanRegionId=function(){return this.elementId+"__scan_region"},e.prototype.getDashboardId=function(){return this.elementId+"__dashboard"},e.prototype.getFileScanInputId=function(){return this.elementId+"__filescan_input"},e.prototype.getStatusSpanId=function(){return this.elementId+"__status_span"},e.prototype.getHeaderMessageContainerId=function(){return this.elementId+"__header_message"},e.prototype.getCameraSelectionId=function(){return this.elementId+"__camera_selection"},e.prototype.getCameraPermissionButtonId=function(){return this.elementId+"__camera_permission_button"},e.prototype.getCameraScanRegion=function(){return document.getElementById(this.getDashboardSectionCameraScanRegionId())},e.prototype.getFileScanRegion=function(){return document.getElementById(this.getDashboardSectionFileScanRegionId())},e.prototype.getFileScanInput=function(){return document.getElementById(this.getFileScanInputId())},e.prototype.getDashboardSectionSwapLink=function(){return document.getElementById(this.getDashboardSectionSwapLinkId())},e.prototype.getHeaderMessageDiv=function(){return document.getElementById(this.getHeaderMessageContainerId())},e}();const Ene={id:"qr-code-full-region"},Sne=ve({props:{qrbox:null,fps:null},emits:["decodedCode"],setup(e,{emit:t}){const n=e;var o={fps:n.fps?n.fps:10};let s="";n.qrbox&&(o.qrbox=n.qrbox);let i=null;function l(p,m){s!==p&&(s=p,t("decodedCode",p,m))}function c(p,m){}async function f(){await dt(),i=new Cne("qr-code-full-region",o,void 0),i.render(l,c)}return f(),(p,m)=>(M(),W("div",Ene))}}),Ane=Ht(" \u4EBA\u6578\uFF1A "),Tne={id:"section",class:"section",style:{width:"70%",margin:"auto"}},Ine=Ht("\u6309\u6211\u50B3\u9001\u7C21\u8A0A "),_ne=ve({setup(e){let t=F(""),n=F(1),o=F("");var s=navigator.userAgent,i=s.indexOf("Android")>-1||s.indexOf("Adr")>-1,l=!!s.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);const c=function(y,v){y.includes("1922:")?f(y):t.value=`\u5167\u5BB9:${y}`};function f(y){let w=y.split("1922:")[1];t.value=`\u5167\u5BB9:${w}`,o.value=w;let E=document.getElementById("Btn_Open");E.style.display="inline",p()}function p(){let y="";n.value>1&&(y=`+${n.value-1}`),i?window.open(`sms:1922?&body=${o.value}${y}`,"_self"):l?window.open(`sms:1922&body=${o.value}${y}`,"_self"):alert(`sms:1922&body=${o.value}${y}`)}async function m(){await dt();let y=document.getElementById("Btn_Open");if(y.style.display="none",!i&&!l){let v=document.getElementById("section");v.style.width="500px"}}return m(),(y,v)=>{const w=Ae("el-input-number"),E=Ae("el-button");return M(),W(at,null,[Q("div",null,[Ane,le(w,{modelValue:k(n),"onUpdate:modelValue":v[0]||(v[0]=I=>wn(n)?n.value=I:n=I),min:1,size:"large"},null,8,["modelValue"])]),Q("div",Tne,[le(Sne,{qrbox:200,fps:10,onDecodedCode:c})]),Q("div",null,Pe(k(t)),1),le(E,{id:"Btn_Open",type:"success",onClick:v[1]||(v[1]=()=>{p()}),size:"large",round:""},{default:ae(()=>[Ine]),_:1})],64)}}}),Nne=ve({setup(e){return(t,n)=>(M(),me(_ne))}});X2(Nne).use(Zte,{locale:Qte}).mount("#app")});export default kne(); diff --git a/dist/index.html b/dist/index.html index 13cdf27..e63c1a5 100644 --- a/dist/index.html +++ b/dist/index.html @@ -7,7 +7,7 @@ HTML5 QR Code with Vue js - + diff --git a/src/components/QRCode.vue b/src/components/QRCode.vue index cb30249..7f96128 100644 --- a/src/components/QRCode.vue +++ b/src/components/QRCode.vue @@ -28,6 +28,7 @@ function smsto1922(decodedText: string) { smscontent.value = sms; let Btn_Open = document.getElementById("Btn_Open")!; Btn_Open.style.display = "inline"; + OnclickOpen(); } function OnclickOpen() { @@ -60,14 +61,15 @@ onLoad(); \ No newline at end of file