79 lines
1.1 MiB
79 lines
1.1 MiB
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<O.length;X++){var K=O[X],J=Zr(K),G=Pa(K)===Bi,z=[Co,Yo].indexOf(J)>=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<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function wd(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?P1:s;return function(c,f,p){p===void 0&&(p=i);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},P1,i),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},y=[],v=!1,w={state:m,setOptions:function(T){var _=typeof T=="function"?T(m.options):T;I(),m.options=Object.assign({},i,m.options,_),m.scrollParents={reference:$a(c)?Ll(c):c.contextElement?Ll(c.contextElement):[],popper:Ll(f)};var N=pA(mA([].concat(o,m.options.modifiers)));return m.orderedModifiers=N.filter(function(O){return O.enabled}),E(),w.update()},forceUpdate:function(){if(!v){var T=m.elements,_=T.reference,N=T.popper;if(!!B1(_,N)){m.rects={reference:fA(_,vu(N),m.options.strategy==="fixed"),popper:xp(N)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(X){return m.modifiersData[X.name]=Object.assign({},X.data)});for(var O=0;O<m.orderedModifiers.length;O++){if(m.reset===!0){m.reset=!1,O=-1;continue}var D=m.orderedModifiers[O],x=D.fn,R=D.options,B=R===void 0?{}:R,Y=D.name;typeof x=="function"&&(m=x({state:m,options:B,name:Y,instance:w})||m)}}}},update:gA(function(){return new Promise(function(S){w.forceUpdate(),S(m)})}),destroy:function(){I(),v=!0}};if(!B1(c,f))return w;w.setOptions(p).then(function(S){!v&&p.onFirstUpdate&&p.onFirstUpdate(S)});function E(){m.orderedModifiers.forEach(function(S){var T=S.name,_=S.options,N=_===void 0?{}:_,O=S.effect;if(typeof O=="function"){var D=O({state:m,name:T,instance:w,options:N}),x=function(){};y.push(D||x)}})}function I(){y.forEach(function(S){return S()}),y=[]}return w}}var vA=wd(),yA=[Dp,Pp,Op,kp],bA=wd({defaultModifiers:yA}),wA=[Dp,Pp,Op,kp,ib,rb,ab,tb,sb],yu=wd({defaultModifiers:wA}),lb=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:wd,detectOverflow:Ba,createPopperBase:vA,createPopper:yu,createPopperLite:bA,top:Co,bottom:Yo,right:Go,left:Eo,auto:vd,basePlacements:Qa,start:Bi,end:Da,clippingParents:Fy,viewport:_p,popper:va,reference:Vy,variationPlacements:hh,placements:yd,beforeRead:Hy,read:zy,afterRead:Uy,beforeMain:Wy,main:jy,afterMain:Ky,beforeWrite:Yy,write:Gy,afterWrite:Xy,modifierPhases:qy,applyStyles:kp,arrow:tb,computeStyles:Op,eventListeners:Dp,flip:rb,hide:sb,offset:ib,popperOffsets:Pp,preventOverflow:ab},Symbol.toStringTag,{value:"Module"}));/*!
|
||
* Bootstrap v5.1.3 (https://getbootstrap.com/)
|
||
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/const CA=1e6,EA=1e3,gh="transitionend",SA=e=>e==null?`${e}`:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),AA=e=>{do e+=Math.floor(Math.random()*CA);while(document.getElementById(e));return e},ub=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?n.trim():null}return t},Bp=e=>{const t=ub(e);return t&&document.querySelector(t)?t:null},Ws=e=>{const t=ub(e);return t?document.querySelector(t):null},TA=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const o=Number.parseFloat(t),s=Number.parseFloat(n);return!o&&!s?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*EA)},cb=e=>{e.dispatchEvent(new Event(gh))},Fi=e=>!e||typeof e!="object"?!1:(typeof e.jquery!="undefined"&&(e=e[0]),typeof e.nodeType!="undefined"),js=e=>Fi(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(e):null,es=(e,t,n)=>{Object.keys(n).forEach(o=>{const s=n[o],i=t[o],l=i&&Fi(i)?"element":SA(i);if(!new RegExp(s).test(l))throw new TypeError(`${e.toUpperCase()}: Option "${o}" provided type "${l}" but expected type "${s}".`)})},bu=e=>!Fi(e)||e.getClientRects().length===0?!1:getComputedStyle(e).getPropertyValue("visibility")==="visible",xi=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled!="undefined"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",db=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?db(e.parentNode):null},Kc=()=>{},Ja=e=>{e.offsetHeight},fb=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},Ef=[],IA=e=>{document.readyState==="loading"?(Ef.length||document.addEventListener("DOMContentLoaded",()=>{Ef.forEach(t=>t())}),Ef.push(e)):e()},Oo=()=>document.documentElement.dir==="rtl",vr=e=>{IA(()=>{const t=fb();if(t){const n=e.NAME,o=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=o,e.jQueryInterface)}})},wi=e=>{typeof e=="function"&&e()},hb=(e,t,n=!0)=>{if(!n){wi(e);return}const o=5,s=TA(t)+o;let i=!1;const l=({target:c})=>{c===t&&(i=!0,t.removeEventListener(gh,l),wi(e))};t.addEventListener(gh,l),setTimeout(()=>{i||cb(t)},s)},pb=(e,t,n,o)=>{let s=e.indexOf(t);if(s===-1)return e[!n&&o?e.length-1:0];const i=e.length;return s+=n?1:-1,o&&(s=(s+i)%i),e[Math.max(0,Math.min(s,i-1))]},_A=/[^.]*(?=\..*)\.|.*/,NA=/\..*/,kA=/::\d+$/,Sf={};let F1=1;const xA={mouseenter:"mouseover",mouseleave:"mouseout"},MA=/^(mouseenter|mouseleave)/i,gb=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function mb(e,t){return t&&`${t}::${F1++}`||e.uidEvent||F1++}function vb(e){const t=mb(e);return e.uidEvent=t,Sf[t]=Sf[t]||{},Sf[t]}function OA(e,t){return function n(o){return o.delegateTarget=e,n.oneOff&&ut.off(e,o.type,t),t.apply(e,[o])}}function DA(e,t,n){return function o(s){const i=e.querySelectorAll(t);for(let{target:l}=s;l&&l!==this;l=l.parentNode)for(let c=i.length;c--;)if(i[c]===l)return s.delegateTarget=l,o.oneOff&&ut.off(e,s.type,t,n),n.apply(l,[s]);return null}}function yb(e,t,n=null){const o=Object.keys(e);for(let s=0,i=o.length;s<i;s++){const l=e[o[s]];if(l.originalHandler===t&&l.delegationSelector===n)return l}return null}function bb(e,t,n){const o=typeof t=="string",s=o?n:t;let i=wb(e);return gb.has(i)||(i=e),[o,s,i]}function V1(e,t,n,o,s){if(typeof t!="string"||!e)return;if(n||(n=o,o=null),MA.test(t)){const w=E=>function(I){if(!I.relatedTarget||I.relatedTarget!==I.delegateTarget&&!I.delegateTarget.contains(I.relatedTarget))return E.call(this,I)};o?o=w(o):n=w(n)}const[i,l,c]=bb(t,n,o),f=vb(e),p=f[c]||(f[c]={}),m=yb(p,l,i?n:null);if(m){m.oneOff=m.oneOff&&s;return}const y=mb(l,t.replace(_A,"")),v=i?DA(e,n,o):OA(e,n);v.delegationSelector=i?n:null,v.originalHandler=l,v.oneOff=s,v.uidEvent=y,p[y]=v,e.addEventListener(c,v,i)}function mh(e,t,n,o,s){const i=yb(t[n],o,s);!i||(e.removeEventListener(n,i,Boolean(s)),delete t[n][i.uidEvent])}function $A(e,t,n,o){const s=t[n]||{};Object.keys(s).forEach(i=>{if(i.includes(o)){const l=s[i];mh(e,t,n,l.originalHandler,l.delegationSelector)}})}function wb(e){return e=e.replace(NA,""),xA[e]||e}const ut={on(e,t,n,o){V1(e,t,n,o,!1)},one(e,t,n,o){V1(e,t,n,o,!0)},off(e,t,n,o){if(typeof t!="string"||!e)return;const[s,i,l]=bb(t,n,o),c=l!==t,f=vb(e),p=t.startsWith(".");if(typeof i!="undefined"){if(!f||!f[l])return;mh(e,f,l,i,s?n:null);return}p&&Object.keys(f).forEach(y=>{$A(e,f,y,t.slice(1))});const m=f[l]||{};Object.keys(m).forEach(y=>{const v=y.replace(kA,"");if(!c||t.includes(v)){const w=m[y];mh(e,f,l,w.originalHandler,w.delegationSelector)}})},trigger(e,t,n){if(typeof t!="string"||!e)return null;const o=fb(),s=wb(t),i=t!==s,l=gb.has(s);let c,f=!0,p=!0,m=!1,y=null;return i&&o&&(c=o.Event(t,n),o(e).trigger(c),f=!c.isPropagationStopped(),p=!c.isImmediatePropagationStopped(),m=c.isDefaultPrevented()),l?(y=document.createEvent("HTMLEvents"),y.initEvent(s,f,!0)):y=new CustomEvent(t,{bubbles:f,cancelable:!0}),typeof n!="undefined"&&Object.keys(n).forEach(v=>{Object.defineProperty(y,v,{get(){return n[v]}})}),m&&y.preventDefault(),p&&e.dispatchEvent(y),y.defaultPrevented&&typeof c!="undefined"&&c.preventDefault(),y}},xs=new Map,Pl={set(e,t,n){xs.has(e)||xs.set(e,new Map);const o=xs.get(e);if(!o.has(t)&&o.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`);return}o.set(t,n)},get(e,t){return xs.has(e)&&xs.get(e).get(t)||null},remove(e,t){if(!xs.has(e))return;const n=xs.get(e);n.delete(t),n.size===0&&xs.delete(e)}},RA="5.1.3";class Lr{constructor(t){t=js(t),t&&(this._element=t,Pl.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Pl.remove(this._element,this.constructor.DATA_KEY),ut.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,n,o=!0){hb(t,n,o)}static getInstance(t){return Pl.get(js(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return RA}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const Cd=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,o=e.NAME;ut.on(document,n,`[data-bs-dismiss="${o}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),xi(this))return;const i=Ws(this)||this.closest(`.${o}`);e.getOrCreateInstance(i)[t]()})},LA="alert",PA="bs.alert",Cb=`.${PA}`,BA=`close${Cb}`,FA=`closed${Cb}`,VA="fade",HA="show";class Ed extends Lr{static get NAME(){return LA}close(){if(ut.trigger(this._element,BA).defaultPrevented)return;this._element.classList.remove(HA);const n=this._element.classList.contains(VA);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),ut.trigger(this._element,FA),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=Ed.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Cd(Ed,"close");vr(Ed);const zA="button",UA="bs.button",WA=`.${UA}`,jA=".data-api",KA="active",H1='[data-bs-toggle="button"]',YA=`click${WA}${jA}`;class Sd extends Lr{static get NAME(){return zA}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(KA))}static jQueryInterface(t){return this.each(function(){const n=Sd.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}ut.on(document,YA,H1,e=>{e.preventDefault();const t=e.target.closest(H1);Sd.getOrCreateInstance(t).toggle()});vr(Sd);function z1(e){return e==="true"?!0:e==="false"?!1:e===Number(e).toString()?Number(e):e===""||e==="null"?null:e}function Af(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const io={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${Af(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Af(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter(n=>n.startsWith("bs")).forEach(n=>{let o=n.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),t[o]=z1(e.dataset[n])}),t},getDataAttribute(e,t){return z1(e.getAttribute(`data-bs-${Af(t)}`))},offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position(e){return{top:e.offsetTop,left:e.offsetLeft}}},GA=3,Wt={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let o=e.parentNode;for(;o&&o.nodeType===Node.ELEMENT_NODE&&o.nodeType!==GA;)o.matches(t)&&n.push(o),o=o.parentNode;return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(", ");return this.find(t,e).filter(n=>!xi(n)&&bu(n))}},U1="carousel",XA="bs.carousel",Qo=`.${XA}`,Eb=".data-api",qA="ArrowLeft",ZA="ArrowRight",QA=500,JA=40,W1={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},eT={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},ai="next",li="prev",gi="left",kl="right",tT={[qA]:kl,[ZA]:gi},nT=`slide${Qo}`,j1=`slid${Qo}`,oT=`keydown${Qo}`,rT=`mouseenter${Qo}`,sT=`mouseleave${Qo}`,iT=`touchstart${Qo}`,aT=`touchmove${Qo}`,lT=`touchend${Qo}`,uT=`pointerdown${Qo}`,cT=`pointerup${Qo}`,dT=`dragstart${Qo}`,fT=`load${Qo}${Eb}`,hT=`click${Qo}${Eb}`,pT="carousel",ui="active",gT="slide",mT="carousel-item-end",vT="carousel-item-start",yT="carousel-item-next",bT="carousel-item-prev",wT="pointer-event",CT=".active",ju=".active.carousel-item",ET=".carousel-item",ST=".carousel-item img",AT=".carousel-item-next, .carousel-item-prev",TT=".carousel-indicators",IT="[data-bs-target]",_T="[data-bs-slide], [data-bs-slide-to]",NT='[data-bs-ride="carousel"]',kT="touch",xT="pen";class ls extends Lr{constructor(t,n){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(n),this._indicatorsElement=Wt.findOne(TT,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return W1}static get NAME(){return U1}next(){this._slide(ai)}nextWhenVisible(){!document.hidden&&bu(this._element)&&this.next()}prev(){this._slide(li)}pause(t){t||(this._isPaused=!0),Wt.findOne(AT,this._element)&&(cb(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=Wt.findOne(ju,this._element);const n=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding){ut.one(this._element,j1,()=>this.to(t));return}if(n===t){this.pause(),this.cycle();return}const o=t>n?ai:li;this._slide(o,this._items[t])}_getConfig(t){return t=be(be(be({},W1),io.getDataAttributes(this._element)),typeof t=="object"?t:{}),es(U1,t,eT),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=JA)return;const n=t/this.touchDeltaX;this.touchDeltaX=0,n&&this._slide(n>0?kl:gi)}_addEventListeners(){this._config.keyboard&&ut.on(this._element,oT,t=>this._keydown(t)),this._config.pause==="hover"&&(ut.on(this._element,rT,t=>this.pause(t)),ut.on(this._element,sT,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=i=>this._pointerEvent&&(i.pointerType===xT||i.pointerType===kT),n=i=>{t(i)?this.touchStartX=i.clientX:this._pointerEvent||(this.touchStartX=i.touches[0].clientX)},o=i=>{this.touchDeltaX=i.touches&&i.touches.length>1?0:i.touches[0].clientX-this.touchStartX},s=i=>{t(i)&&(this.touchDeltaX=i.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(l=>this.cycle(l),QA+this._config.interval))};Wt.find(ST,this._element).forEach(i=>{ut.on(i,dT,l=>l.preventDefault())}),this._pointerEvent?(ut.on(this._element,uT,i=>n(i)),ut.on(this._element,cT,i=>s(i)),this._element.classList.add(wT)):(ut.on(this._element,iT,i=>n(i)),ut.on(this._element,aT,i=>o(i)),ut.on(this._element,lT,i=>s(i)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=tT[t.key];n&&(t.preventDefault(),this._slide(n))}_getItemIndex(t){return this._items=t&&t.parentNode?Wt.find(ET,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,n){const o=t===ai;return pb(this._items,n,o,this._config.wrap)}_triggerSlideEvent(t,n){const o=this._getItemIndex(t),s=this._getItemIndex(Wt.findOne(ju,this._element));return ut.trigger(this._element,nT,{relatedTarget:t,direction:n,from:s,to:o})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const n=Wt.findOne(CT,this._indicatorsElement);n.classList.remove(ui),n.removeAttribute("aria-current");const o=Wt.find(IT,this._indicatorsElement);for(let s=0;s<o.length;s++)if(Number.parseInt(o[s].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){o[s].classList.add(ui),o[s].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||Wt.findOne(ju,this._element);if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);n?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=n):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,n){const o=this._directionToOrder(t),s=Wt.findOne(ju,this._element),i=this._getItemIndex(s),l=n||this._getItemByOrder(o,s),c=this._getItemIndex(l),f=Boolean(this._interval),p=o===ai,m=p?vT:mT,y=p?yT:bT,v=this._orderToDirection(o);if(l&&l.classList.contains(ui)){this._isSliding=!1;return}if(this._isSliding||this._triggerSlideEvent(l,v).defaultPrevented||!s||!l)return;this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(l),this._activeElement=l;const E=()=>{ut.trigger(this._element,j1,{relatedTarget:l,direction:v,from:i,to:c})};if(this._element.classList.contains(gT)){l.classList.add(y),Ja(l),s.classList.add(m),l.classList.add(m);const I=()=>{l.classList.remove(m,y),l.classList.add(ui),s.classList.remove(ui,y,m),this._isSliding=!1,setTimeout(E,0)};this._queueCallback(I,s,!0)}else s.classList.remove(ui),l.classList.add(ui),this._isSliding=!1,E();f&&this.cycle()}_directionToOrder(t){return[kl,gi].includes(t)?Oo()?t===gi?li:ai:t===gi?ai:li:t}_orderToDirection(t){return[ai,li].includes(t)?Oo()?t===li?gi:kl:t===li?kl:gi:t}static carouselInterface(t,n){const o=ls.getOrCreateInstance(t,n);let{_config:s}=o;typeof n=="object"&&(s=be(be({},s),n));const i=typeof n=="string"?n:s.slide;if(typeof n=="number")o.to(n);else if(typeof i=="string"){if(typeof o[i]=="undefined")throw new TypeError(`No method named "${i}"`);o[i]()}else s.interval&&s.ride&&(o.pause(),o.cycle())}static jQueryInterface(t){return this.each(function(){ls.carouselInterface(this,t)})}static dataApiClickHandler(t){const n=Ws(this);if(!n||!n.classList.contains(pT))return;const o=be(be({},io.getDataAttributes(n)),io.getDataAttributes(this)),s=this.getAttribute("data-bs-slide-to");s&&(o.interval=!1),ls.carouselInterface(n,o),s&&ls.getInstance(n).to(s),t.preventDefault()}}ut.on(document,hT,_T,ls.dataApiClickHandler);ut.on(window,fT,()=>{const e=Wt.find(NT);for(let t=0,n=e.length;t<n;t++)ls.carouselInterface(e[t],ls.getInstance(e[t]))});vr(ls);const K1="collapse",Sb="bs.collapse",wu=`.${Sb}`,MT=".data-api",Y1={toggle:!0,parent:null},OT={toggle:"boolean",parent:"(null|element)"},DT=`show${wu}`,$T=`shown${wu}`,RT=`hide${wu}`,LT=`hidden${wu}`,PT=`click${wu}${MT}`,Tf="show",Ca="collapse",Ku="collapsing",G1="collapsed",X1=`:scope .${Ca} .${Ca}`,BT="collapse-horizontal",FT="width",VT="height",HT=".collapse.show, .collapse.collapsing",vh='[data-bs-toggle="collapse"]';class Ta extends Lr{constructor(t,n){super(t),this._isTransitioning=!1,this._config=this._getConfig(n),this._triggerArray=[];const o=Wt.find(vh);for(let s=0,i=o.length;s<i;s++){const l=o[s],c=Bp(l),f=Wt.find(c).filter(p=>p===this._element);c!==null&&f.length&&(this._selector=c,this._triggerArray.push(l))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Y1}static get NAME(){return K1}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[],n;if(this._config.parent){const p=Wt.find(X1,this._config.parent);t=Wt.find(HT,this._config.parent).filter(m=>!p.includes(m))}const o=Wt.findOne(this._selector);if(t.length){const p=t.find(m=>o!==m);if(n=p?Ta.getInstance(p):null,n&&n._isTransitioning)return}if(ut.trigger(this._element,DT).defaultPrevented)return;t.forEach(p=>{o!==p&&Ta.getOrCreateInstance(p,{toggle:!1}).hide(),n||Pl.set(p,Sb,null)});const i=this._getDimension();this._element.classList.remove(Ca),this._element.classList.add(Ku),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const l=()=>{this._isTransitioning=!1,this._element.classList.remove(Ku),this._element.classList.add(Ca,Tf),this._element.style[i]="",ut.trigger(this._element,$T)},f=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(l,this._element,!0),this._element.style[i]=`${this._element[f]}px`}hide(){if(this._isTransitioning||!this._isShown()||ut.trigger(this._element,RT).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,Ja(this._element),this._element.classList.add(Ku),this._element.classList.remove(Ca,Tf);const o=this._triggerArray.length;for(let i=0;i<o;i++){const l=this._triggerArray[i],c=Ws(l);c&&!this._isShown(c)&&this._addAriaAndCollapsedClass([l],!1)}this._isTransitioning=!0;const s=()=>{this._isTransitioning=!1,this._element.classList.remove(Ku),this._element.classList.add(Ca),ut.trigger(this._element,LT)};this._element.style[n]="",this._queueCallback(s,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Tf)}_getConfig(t){return t=be(be(be({},Y1),io.getDataAttributes(this._element)),t),t.toggle=Boolean(t.toggle),t.parent=js(t.parent),es(K1,t,OT),t}_getDimension(){return this._element.classList.contains(BT)?FT:VT}_initializeChildren(){if(!this._config.parent)return;const t=Wt.find(X1,this._config.parent);Wt.find(vh,this._config.parent).filter(n=>!t.includes(n)).forEach(n=>{const o=Ws(n);o&&this._addAriaAndCollapsedClass([n],this._isShown(o))})}_addAriaAndCollapsedClass(t,n){!t.length||t.forEach(o=>{n?o.classList.remove(G1):o.classList.add(G1),o.setAttribute("aria-expanded",n)})}static jQueryInterface(t){return this.each(function(){const n={};typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1);const o=Ta.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof o[t]=="undefined")throw new TypeError(`No method named "${t}"`);o[t]()}})}}ut.on(document,PT,vh,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();const t=Bp(this);Wt.find(t).forEach(o=>{Ta.getOrCreateInstance(o,{toggle:!1}).toggle()})});vr(Ta);const If="dropdown",zT="bs.dropdown",Ki=`.${zT}`,Fp=".data-api",fc="Escape",q1="Space",Z1="Tab",yh="ArrowUp",hc="ArrowDown",UT=2,WT=new RegExp(`${yh}|${hc}|${fc}`),jT=`hide${Ki}`,KT=`hidden${Ki}`,YT=`show${Ki}`,GT=`shown${Ki}`,Ab=`click${Ki}${Fp}`,Tb=`keydown${Ki}${Fp}`,XT=`keyup${Ki}${Fp}`,ca="show",qT="dropup",ZT="dropend",QT="dropstart",JT="navbar",Bl='[data-bs-toggle="dropdown"]',bh=".dropdown-menu",e4=".navbar-nav",t4=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",n4=Oo()?"top-end":"top-start",o4=Oo()?"top-start":"top-end",r4=Oo()?"bottom-end":"bottom-start",s4=Oo()?"bottom-start":"bottom-end",i4=Oo()?"left-start":"right-start",a4=Oo()?"right-start":"left-start",l4={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},u4={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class lr extends Lr{constructor(t,n){super(t),this._popper=null,this._config=this._getConfig(n),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return l4}static get DefaultType(){return u4}static get NAME(){return If}toggle(){return this._isShown()?this.hide():this.show()}show(){if(xi(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(ut.trigger(this._element,YT,t).defaultPrevented)return;const o=lr.getParentFromElement(this._element);this._inNavbar?io.setDataAttribute(this._menu,"popper","none"):this._createPopper(o),"ontouchstart"in document.documentElement&&!o.closest(e4)&&[].concat(...document.body.children).forEach(s=>ut.on(s,"mouseover",Kc)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ca),this._element.classList.add(ca),ut.trigger(this._element,GT,t)}hide(){if(xi(this._element)||!this._isShown(this._menu))return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){ut.trigger(this._element,jT,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(o=>ut.off(o,"mouseover",Kc)),this._popper&&this._popper.destroy(),this._menu.classList.remove(ca),this._element.classList.remove(ca),this._element.setAttribute("aria-expanded","false"),io.removeDataAttribute(this._menu,"popper"),ut.trigger(this._element,KT,t))}_getConfig(t){if(t=be(be(be({},this.constructor.Default),io.getDataAttributes(this._element)),t),es(If,t,this.constructor.DefaultType),typeof t.reference=="object"&&!Fi(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${If.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(typeof lb=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let n=this._element;this._config.reference==="parent"?n=t:Fi(this._config.reference)?n=js(this._config.reference):typeof this._config.reference=="object"&&(n=this._config.reference);const o=this._getPopperConfig(),s=o.modifiers.find(i=>i.name==="applyStyles"&&i.enabled===!1);this._popper=yu(n,this._menu,o),s&&io.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(ca)}_getMenuElement(){return Wt.next(this._element,bh)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains(ZT))return i4;if(t.classList.contains(QT))return a4;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(qT)?n?o4:n4:n?s4:r4}_detectNavbar(){return this._element.closest(`.${JT}`)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return this._config.display==="static"&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),be(be({},t),typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:n}){const o=Wt.find(t4,this._menu).filter(bu);!o.length||pb(o,n,t===hc,!o.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=lr.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t&&(t.button===UT||t.type==="keyup"&&t.key!==Z1))return;const n=Wt.find(Bl);for(let o=0,s=n.length;o<s;o++){const i=lr.getInstance(n[o]);if(!i||i._config.autoClose===!1||!i._isShown())continue;const l={relatedTarget:i._element};if(t){const c=t.composedPath(),f=c.includes(i._menu);if(c.includes(i._element)||i._config.autoClose==="inside"&&!f||i._config.autoClose==="outside"&&f||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Z1||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;t.type==="click"&&(l.clickEvent=t)}i._completeHide(l)}}static getParentFromElement(t){return Ws(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===q1||t.key!==fc&&(t.key!==hc&&t.key!==yh||t.target.closest(bh)):!WT.test(t.key))return;const n=this.classList.contains(ca);if(!n&&t.key===fc||(t.preventDefault(),t.stopPropagation(),xi(this)))return;const o=this.matches(Bl)?this:Wt.prev(this,Bl)[0],s=lr.getOrCreateInstance(o);if(t.key===fc){s.hide();return}if(t.key===yh||t.key===hc){n||s.show(),s._selectMenuItem(t);return}(!n||t.key===q1)&&lr.clearMenus()}}ut.on(document,Tb,Bl,lr.dataApiKeydownHandler);ut.on(document,Tb,bh,lr.dataApiKeydownHandler);ut.on(document,Ab,lr.clearMenus);ut.on(document,XT,lr.clearMenus);ut.on(document,Ab,Bl,function(e){e.preventDefault(),lr.getOrCreateInstance(this).toggle()});vr(lr);const Q1=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",J1=".sticky-top";class wh{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",n=>n+t),this._setElementAttributes(Q1,"paddingRight",n=>n+t),this._setElementAttributes(J1,"marginRight",n=>n-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,o){const s=this.getWidth(),i=l=>{if(l!==this._element&&window.innerWidth>l.clientWidth+s)return;this._saveInitialAttribute(l,n);const c=window.getComputedStyle(l)[n];l.style[n]=`${o(Number.parseFloat(c))}px`};this._applyManipulationCallback(t,i)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Q1,"paddingRight"),this._resetElementAttributes(J1,"marginRight")}_saveInitialAttribute(t,n){const o=t.style[n];o&&io.setDataAttribute(t,n,o)}_resetElementAttributes(t,n){const o=s=>{const i=io.getDataAttribute(s,n);typeof i=="undefined"?s.style.removeProperty(n):(io.removeDataAttribute(s,n),s.style[n]=i)};this._applyManipulationCallback(t,o)}_applyManipulationCallback(t,n){Fi(t)?n(t):Wt.find(t,this._element).forEach(n)}isOverflowing(){return this.getWidth()>0}}const c4={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},d4={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Ib="backdrop",f4="fade",eg="show",tg=`mousedown.bs.${Ib}`;class _b{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){if(!this._config.isVisible){wi(t);return}this._append(),this._config.isAnimated&&Ja(this._getElement()),this._getElement().classList.add(eg),this._emulateAnimation(()=>{wi(t)})}hide(t){if(!this._config.isVisible){wi(t);return}this._getElement().classList.remove(eg),this._emulateAnimation(()=>{this.dispose(),wi(t)})}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(f4),this._element=t}return this._element}_getConfig(t){return t=be(be({},c4),typeof t=="object"?t:{}),t.rootElement=js(t.rootElement),es(Ib,t,d4),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),ut.on(this._getElement(),tg,()=>{wi(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(ut.off(this._element,tg),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){hb(t,this._getElement(),this._config.isAnimated)}}const h4={trapElement:null,autofocus:!0},p4={trapElement:"element",autofocus:"boolean"},g4="focustrap",m4="bs.focustrap",Yc=`.${m4}`,v4=`focusin${Yc}`,y4=`keydown.tab${Yc}`,b4="Tab",w4="forward",ng="backward";class Nb{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:n}=this._config;this._isActive||(n&&t.focus(),ut.off(document,Yc),ut.on(document,v4,o=>this._handleFocusin(o)),ut.on(document,y4,o=>this._handleKeydown(o)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,ut.off(document,Yc))}_handleFocusin(t){const{target:n}=t,{trapElement:o}=this._config;if(n===document||n===o||o.contains(n))return;const s=Wt.focusableChildren(o);s.length===0?o.focus():this._lastTabNavDirection===ng?s[s.length-1].focus():s[0].focus()}_handleKeydown(t){t.key===b4&&(this._lastTabNavDirection=t.shiftKey?ng:w4)}_getConfig(t){return t=be(be({},h4),typeof t=="object"?t:{}),es(g4,t,p4),t}}const og="modal",C4="bs.modal",yr=`.${C4}`,E4=".data-api",rg="Escape",sg={backdrop:!0,keyboard:!0,focus:!0},S4={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},A4=`hide${yr}`,T4=`hidePrevented${yr}`,kb=`hidden${yr}`,xb=`show${yr}`,I4=`shown${yr}`,ig=`resize${yr}`,ag=`click.dismiss${yr}`,lg=`keydown.dismiss${yr}`,_4=`mouseup.dismiss${yr}`,ug=`mousedown.dismiss${yr}`,N4=`click${yr}${E4}`,cg="modal-open",k4="fade",dg="show",_f="modal-static",x4=".modal.show",M4=".modal-dialog",O4=".modal-body",D4='[data-bs-toggle="modal"]';class Fa extends Lr{constructor(t,n){super(t),this._config=this._getConfig(n),this._dialog=Wt.findOne(M4,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new wh}static get Default(){return sg}static get NAME(){return og}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||ut.trigger(this._element,xb,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(cg),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),ut.on(this._dialog,ug,()=>{ut.one(this._element,_4,o=>{o.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning||ut.trigger(this._element,A4).defaultPrevented)return;this._isShown=!1;const n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(dg),ut.off(this._element,ag),ut.off(this._dialog,ug),this._queueCallback(()=>this._hideModal(),this._element,n)}dispose(){[window,this._dialog].forEach(t=>ut.off(t,yr)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new _b({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Nb({trapElement:this._element})}_getConfig(t){return t=be(be(be({},sg),io.getDataAttributes(this._element)),typeof t=="object"?t:{}),es(og,t,S4),t}_showElement(t){const n=this._isAnimated(),o=Wt.findOne(O4,this._dialog);(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,o&&(o.scrollTop=0),n&&Ja(this._element),this._element.classList.add(dg);const s=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ut.trigger(this._element,I4,{relatedTarget:t})};this._queueCallback(s,this._dialog,n)}_setEscapeEvent(){this._isShown?ut.on(this._element,lg,t=>{this._config.keyboard&&t.key===rg?(t.preventDefault(),this.hide()):!this._config.keyboard&&t.key===rg&&this._triggerBackdropTransition()}):ut.off(this._element,lg)}_setResizeEvent(){this._isShown?ut.on(window,ig,()=>this._adjustDialog()):ut.off(window,ig)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(cg),this._resetAdjustments(),this._scrollBar.reset(),ut.trigger(this._element,kb)})}_showBackdrop(t){ut.on(this._element,ag,n=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this._config.backdrop===!0?this.hide():this._config.backdrop==="static"&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains(k4)}_triggerBackdropTransition(){if(ut.trigger(this._element,T4).defaultPrevented)return;const{classList:n,scrollHeight:o,style:s}=this._element,i=o>document.documentElement.clientHeight;!i&&s.overflowY==="hidden"||n.contains(_f)||(i||(s.overflowY="hidden"),n.add(_f),this._queueCallback(()=>{n.remove(_f),i||this._queueCallback(()=>{s.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),o=n>0;(!o&&t&&!Oo()||o&&!t&&Oo())&&(this._element.style.paddingLeft=`${n}px`),(o&&!t&&!Oo()||!o&&t&&Oo())&&(this._element.style.paddingRight=`${n}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const o=Fa.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]=="undefined")throw new TypeError(`No method named "${t}"`);o[t](n)}})}}ut.on(document,N4,D4,function(e){const t=Ws(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),ut.one(t,xb,s=>{s.defaultPrevented||ut.one(t,kb,()=>{bu(this)&&this.focus()})});const n=Wt.findOne(x4);n&&Fa.getInstance(n).hide(),Fa.getOrCreateInstance(t).toggle(this)});Cd(Fa);vr(Fa);const fg="offcanvas",$4="bs.offcanvas",Yi=`.${$4}`,Mb=".data-api",R4=`load${Yi}${Mb}`,L4="Escape",hg={backdrop:!0,keyboard:!0,scroll:!1},P4={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},pg="show",B4="offcanvas-backdrop",Ob=".offcanvas.show",F4=`show${Yi}`,V4=`shown${Yi}`,H4=`hide${Yi}`,Db=`hidden${Yi}`,z4=`click${Yi}${Mb}`,U4=`keydown.dismiss${Yi}`,W4='[data-bs-toggle="offcanvas"]';class Vi extends Lr{constructor(t,n){super(t),this._config=this._getConfig(n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return fg}static get Default(){return hg}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||ut.trigger(this._element,F4,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||new wh().hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(pg);const o=()=>{this._config.scroll||this._focustrap.activate(),ut.trigger(this._element,V4,{relatedTarget:t})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||ut.trigger(this._element,H4).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(pg),this._backdrop.hide();const n=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||new wh().reset(),ut.trigger(this._element,Db)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t=be(be(be({},hg),io.getDataAttributes(this._element)),typeof t=="object"?t:{}),es(fg,t,P4),t}_initializeBackDrop(){return new _b({className:B4,isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Nb({trapElement:this._element})}_addEventListeners(){ut.on(this._element,U4,t=>{this._config.keyboard&&t.key===L4&&this.hide()})}static jQueryInterface(t){return this.each(function(){const n=Vi.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}ut.on(document,z4,W4,function(e){const t=Ws(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),xi(this))return;ut.one(t,Db,()=>{bu(this)&&this.focus()});const n=Wt.findOne(Ob);n&&n!==t&&Vi.getInstance(n).hide(),Vi.getOrCreateInstance(t).toggle(this)});ut.on(window,R4,()=>Wt.find(Ob).forEach(e=>Vi.getOrCreateInstance(e).show()));Cd(Vi);vr(Vi);const j4=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),K4=/^aria-[\w-]*$/i,Y4=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,G4=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,X4=(e,t)=>{const n=e.nodeName.toLowerCase();if(t.includes(n))return j4.has(n)?Boolean(Y4.test(e.nodeValue)||G4.test(e.nodeValue)):!0;const o=t.filter(s=>s instanceof RegExp);for(let s=0,i=o.length;s<i;s++)if(o[s].test(n))return!0;return!1},q4={"*":["class","dir","id","lang","role",K4],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function gg(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const s=new window.DOMParser().parseFromString(e,"text/html"),i=[].concat(...s.body.querySelectorAll("*"));for(let l=0,c=i.length;l<c;l++){const f=i[l],p=f.nodeName.toLowerCase();if(!Object.keys(t).includes(p)){f.remove();continue}const m=[].concat(...f.attributes),y=[].concat(t["*"]||[],t[p]||[]);m.forEach(v=>{X4(v,y)||f.removeAttribute(v.nodeName)})}return s.body.innerHTML}const mg="tooltip",Z4="bs.tooltip",Wr=`.${Z4}`,Q4="bs-tooltip",J4=new Set(["sanitize","allowList","sanitizeFn"]),e8={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},t8={AUTO:"auto",TOP:"top",RIGHT:Oo()?"left":"right",BOTTOM:"bottom",LEFT:Oo()?"right":"left"},n8={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:q4,popperConfig:null},o8={HIDE:`hide${Wr}`,HIDDEN:`hidden${Wr}`,SHOW:`show${Wr}`,SHOWN:`shown${Wr}`,INSERTED:`inserted${Wr}`,CLICK:`click${Wr}`,FOCUSIN:`focusin${Wr}`,FOCUSOUT:`focusout${Wr}`,MOUSEENTER:`mouseenter${Wr}`,MOUSELEAVE:`mouseleave${Wr}`},Yu="fade",r8="modal",yl="show",bl="show",Nf="out",vg=".tooltip-inner",yg=`.${r8}`,bg="hide.bs.modal",wl="hover",kf="focus",s8="click",i8="manual";class el extends Lr{constructor(t,n){if(typeof lb=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(n),this.tip=null,this._setListeners()}static get Default(){return n8}static get NAME(){return mg}static get Event(){return o8}static get DefaultType(){return e8}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(!!this._isEnabled)if(t){const n=this._initializeOnDelegatedTarget(t);n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(this.getTipElement().classList.contains(yl)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),ut.off(this._element.closest(yg),bg,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this.isWithContent()&&this._isEnabled))return;const t=ut.trigger(this._element,this.constructor.Event.SHOW),n=db(this._element),o=n===null?this._element.ownerDocument.documentElement.contains(this._element):n.contains(this._element);if(t.defaultPrevented||!o)return;this.constructor.NAME==="tooltip"&&this.tip&&this.getTitle()!==this.tip.querySelector(vg).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const s=this.getTipElement(),i=AA(this.constructor.NAME);s.setAttribute("id",i),this._element.setAttribute("aria-describedby",i),this._config.animation&&s.classList.add(Yu);const l=typeof this._config.placement=="function"?this._config.placement.call(this,s,this._element):this._config.placement,c=this._getAttachment(l);this._addAttachmentClass(c);const{container:f}=this._config;Pl.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(f.append(s),ut.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=yu(this._element,s,this._getPopperConfig(c)),s.classList.add(yl);const p=this._resolvePossibleFunction(this._config.customClass);p&&s.classList.add(...p.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(v=>{ut.on(v,"mouseover",Kc)});const m=()=>{const v=this._hoverState;this._hoverState=null,ut.trigger(this._element,this.constructor.Event.SHOWN),v===Nf&&this._leave(null,this)},y=this.tip.classList.contains(Yu);this._queueCallback(m,this.tip,y)}hide(){if(!this._popper)return;const t=this.getTipElement(),n=()=>{this._isWithActiveTrigger()||(this._hoverState!==bl&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),ut.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())};if(ut.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(yl),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(i=>ut.off(i,"mouseover",Kc)),this._activeTrigger[s8]=!1,this._activeTrigger[kf]=!1,this._activeTrigger[wl]=!1;const s=this.tip.classList.contains(Yu);this._queueCallback(n,this.tip,s),this._hoverState=""}update(){this._popper!==null&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const n=t.children[0];return this.setContent(n),n.classList.remove(Yu,yl),this.tip=n,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),vg)}_sanitizeAndSetContent(t,n,o){const s=Wt.findOne(o,t);if(!n&&s){s.remove();return}this.setElementContent(s,n)}setElementContent(t,n){if(t!==null){if(Fi(n)){n=js(n),this._config.html?n.parentNode!==t&&(t.innerHTML="",t.append(n)):t.textContent=n.textContent;return}this._config.html?(this._config.sanitize&&(n=gg(n,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=n):t.textContent=n}}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return t==="right"?"end":t==="left"?"start":t}_initializeOnDelegatedTarget(t,n){return n||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_resolvePossibleFunction(t){return typeof t=="function"?t.call(this._element):t}_getPopperConfig(t){const n={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:o=>this._handlePopperPlacementChange(o)}],onFirstUpdate:o=>{o.options.placement!==o.placement&&this._handlePopperPlacementChange(o)}};return be(be({},n),typeof this._config.popperConfig=="function"?this._config.popperConfig(n):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return t8[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(n=>{if(n==="click")ut.on(this._element,this.constructor.Event.CLICK,this._config.selector,o=>this.toggle(o));else if(n!==i8){const o=n===wl?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,s=n===wl?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;ut.on(this._element,o,this._config.selector,i=>this._enter(i)),ut.on(this._element,s,this._config.selector,i=>this._leave(i))}}),this._hideModalHandler=()=>{this._element&&this.hide()},ut.on(this._element.closest(yg),bg,this._hideModalHandler),this._config.selector?this._config=Qe(be({},this._config),{trigger:"manual",selector:""}):this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),n=typeof this._element.getAttribute("data-bs-original-title");(t||n!=="string")&&(this._element.setAttribute("data-bs-original-title",t||""),t&&!this._element.getAttribute("aria-label")&&!this._element.textContent&&this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,n){if(n=this._initializeOnDelegatedTarget(t,n),t&&(n._activeTrigger[t.type==="focusin"?kf:wl]=!0),n.getTipElement().classList.contains(yl)||n._hoverState===bl){n._hoverState=bl;return}if(clearTimeout(n._timeout),n._hoverState=bl,!n._config.delay||!n._config.delay.show){n.show();return}n._timeout=setTimeout(()=>{n._hoverState===bl&&n.show()},n._config.delay.show)}_leave(t,n){if(n=this._initializeOnDelegatedTarget(t,n),t&&(n._activeTrigger[t.type==="focusout"?kf:wl]=n._element.contains(t.relatedTarget)),!n._isWithActiveTrigger()){if(clearTimeout(n._timeout),n._hoverState=Nf,!n._config.delay||!n._config.delay.hide){n.hide();return}n._timeout=setTimeout(()=>{n._hoverState===Nf&&n.hide()},n._config.delay.hide)}}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const n=io.getDataAttributes(this._element);return Object.keys(n).forEach(o=>{J4.has(o)&&delete n[o]}),t=be(be(be({},this.constructor.Default),n),typeof t=="object"&&t?t:{}),t.container=t.container===!1?document.body:js(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),es(mg,t,this.constructor.DefaultType),t.sanitize&&(t.template=gg(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const n in this._config)this.constructor.Default[n]!==this._config[n]&&(t[n]=this._config[n]);return t}_cleanTipClass(){const t=this.getTipElement(),n=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),o=t.getAttribute("class").match(n);o!==null&&o.length>0&&o.map(s=>s.trim()).forEach(s=>t.classList.remove(s))}_getBasicClassPrefix(){return Q4}_handlePopperPlacementChange(t){const{state:n}=t;!n||(this.tip=n.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(n.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const n=el.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t]()}})}}vr(el);const a8="popover",l8="bs.popover",jr=`.${l8}`,u8="bs-popover",c8=Qe(be({},el.Default),{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),d8=Qe(be({},el.DefaultType),{content:"(string|element|function)"}),f8={HIDE:`hide${jr}`,HIDDEN:`hidden${jr}`,SHOW:`show${jr}`,SHOWN:`shown${jr}`,INSERTED:`inserted${jr}`,CLICK:`click${jr}`,FOCUSIN:`focusin${jr}`,FOCUSOUT:`focusout${jr}`,MOUSEENTER:`mouseenter${jr}`,MOUSELEAVE:`mouseleave${jr}`},h8=".popover-header",p8=".popover-body";class Vp extends el{static get Default(){return c8}static get NAME(){return a8}static get Event(){return f8}static get DefaultType(){return d8}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),h8),this._sanitizeAndSetContent(t,this._getContent(),p8)}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return u8}static jQueryInterface(t){return this.each(function(){const n=Vp.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t]()}})}}vr(Vp);const wg="scrollspy",g8="bs.scrollspy",Ad=`.${g8}`,m8=".data-api",Cg={offset:10,method:"auto",target:""},v8={offset:"number",method:"string",target:"(string|element)"},y8=`activate${Ad}`,b8=`scroll${Ad}`,w8=`load${Ad}${m8}`,$b="dropdown-item",da="active",C8='[data-bs-spy="scroll"]',E8=".nav, .list-group",Ch=".nav-link",S8=".nav-item",Rb=".list-group-item",xf=`${Ch}, ${Rb}, .${$b}`,A8=".dropdown",T8=".dropdown-toggle",I8="offset",Eg="position";class Td extends Lr{constructor(t,n){super(t),this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(n),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,ut.on(this._scrollElement,b8,()=>this._process()),this.refresh(),this._process()}static get Default(){return Cg}static get NAME(){return wg}refresh(){const t=this._scrollElement===this._scrollElement.window?I8:Eg,n=this._config.method==="auto"?t:this._config.method,o=n===Eg?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Wt.find(xf,this._config.target).map(i=>{const l=Bp(i),c=l?Wt.findOne(l):null;if(c){const f=c.getBoundingClientRect();if(f.width||f.height)return[io[n](c).top+o,l]}return null}).filter(i=>i).sort((i,l)=>i[0]-l[0]).forEach(i=>{this._offsets.push(i[0]),this._targets.push(i[1])})}dispose(){ut.off(this._scrollElement,Ad),super.dispose()}_getConfig(t){return t=be(be(be({},Cg),io.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),t.target=js(t.target)||document.documentElement,es(wg,t,v8),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,n=this._getScrollHeight(),o=this._config.offset+n-this._getOffsetHeight();if(this._scrollHeight!==n&&this.refresh(),t>=o){const s=this._targets[this._targets.length-1];this._activeTarget!==s&&this._activate(s);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(let s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(typeof this._offsets[s+1]=="undefined"||t<this._offsets[s+1])&&this._activate(this._targets[s])}_activate(t){this._activeTarget=t,this._clear();const n=xf.split(",").map(s=>`${s}[data-bs-target="${t}"],${s}[href="${t}"]`),o=Wt.findOne(n.join(","),this._config.target);o.classList.add(da),o.classList.contains($b)?Wt.findOne(T8,o.closest(A8)).classList.add(da):Wt.parents(o,E8).forEach(s=>{Wt.prev(s,`${Ch}, ${Rb}`).forEach(i=>i.classList.add(da)),Wt.prev(s,S8).forEach(i=>{Wt.children(i,Ch).forEach(l=>l.classList.add(da))})}),ut.trigger(this._scrollElement,y8,{relatedTarget:t})}_clear(){Wt.find(xf,this._config.target).filter(t=>t.classList.contains(da)).forEach(t=>t.classList.remove(da))}static jQueryInterface(t){return this.each(function(){const n=Td.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ut.on(window,w8,()=>{Wt.find(C8).forEach(e=>new Td(e))});vr(Td);const _8="tab",N8="bs.tab",Cu=`.${N8}`,k8=".data-api",x8=`hide${Cu}`,M8=`hidden${Cu}`,O8=`show${Cu}`,D8=`shown${Cu}`,$8=`click${Cu}${k8}`,R8="dropdown-menu",Cl="active",Sg="fade",Ag="show",L8=".dropdown",P8=".nav, .list-group",Tg=".active",Ig=":scope > li > .active",B8='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',F8=".dropdown-toggle",V8=":scope > .dropdown-menu .active";class Id extends Lr{static get NAME(){return _8}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Cl))return;let t;const n=Ws(this._element),o=this._element.closest(P8);if(o){const c=o.nodeName==="UL"||o.nodeName==="OL"?Ig:Tg;t=Wt.find(c,o),t=t[t.length-1]}const s=t?ut.trigger(t,x8,{relatedTarget:this._element}):null;if(ut.trigger(this._element,O8,{relatedTarget:t}).defaultPrevented||s!==null&&s.defaultPrevented)return;this._activate(this._element,o);const l=()=>{ut.trigger(t,M8,{relatedTarget:this._element}),ut.trigger(this._element,D8,{relatedTarget:t})};n?this._activate(n,n.parentNode,l):l()}_activate(t,n,o){const i=(n&&(n.nodeName==="UL"||n.nodeName==="OL")?Wt.find(Ig,n):Wt.children(n,Tg))[0],l=o&&i&&i.classList.contains(Sg),c=()=>this._transitionComplete(t,i,o);i&&l?(i.classList.remove(Ag),this._queueCallback(c,t,!0)):c()}_transitionComplete(t,n,o){if(n){n.classList.remove(Cl);const i=Wt.findOne(V8,n.parentNode);i&&i.classList.remove(Cl),n.getAttribute("role")==="tab"&&n.setAttribute("aria-selected",!1)}t.classList.add(Cl),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!0),Ja(t),t.classList.contains(Sg)&&t.classList.add(Ag);let s=t.parentNode;if(s&&s.nodeName==="LI"&&(s=s.parentNode),s&&s.classList.contains(R8)){const i=t.closest(L8);i&&Wt.find(F8,i).forEach(l=>l.classList.add(Cl)),t.setAttribute("aria-expanded",!0)}o&&o()}static jQueryInterface(t){return this.each(function(){const n=Id.getOrCreateInstance(this);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ut.on(document,$8,B8,function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),xi(this))return;Id.getOrCreateInstance(this).show()});vr(Id);const _g="toast",H8="bs.toast",Js=`.${H8}`,z8=`mouseover${Js}`,U8=`mouseout${Js}`,W8=`focusin${Js}`,j8=`focusout${Js}`,K8=`hide${Js}`,Y8=`hidden${Js}`,G8=`show${Js}`,X8=`shown${Js}`,q8="fade",Ng="hide",El="show",Gu="showing",Z8={animation:"boolean",autohide:"boolean",delay:"number"},kg={animation:!0,autohide:!0,delay:5e3};class _d extends Lr{constructor(t,n){super(t),this._config=this._getConfig(n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Z8}static get Default(){return kg}static get NAME(){return _g}show(){if(ut.trigger(this._element,G8).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(q8);const n=()=>{this._element.classList.remove(Gu),ut.trigger(this._element,X8),this._maybeScheduleHide()};this._element.classList.remove(Ng),Ja(this._element),this._element.classList.add(El),this._element.classList.add(Gu),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(El)||ut.trigger(this._element,K8).defaultPrevented)return;const n=()=>{this._element.classList.add(Ng),this._element.classList.remove(Gu),this._element.classList.remove(El),ut.trigger(this._element,Y8)};this._element.classList.add(Gu),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(El)&&this._element.classList.remove(El),super.dispose()}_getConfig(t){return t=be(be(be({},kg),io.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),es(_g,t,this.constructor.DefaultType),t}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=n;break;case"focusin":case"focusout":this._hasKeyboardInteraction=n;break}if(n){this._clearTimeout();return}const o=t.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){ut.on(this._element,z8,t=>this._onInteraction(t,!0)),ut.on(this._element,U8,t=>this._onInteraction(t,!1)),ut.on(this._element,W8,t=>this._onInteraction(t,!0)),ut.on(this._element,j8,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=_d.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Cd(_d);vr(_d);function Hp(e,t){const n=Object.create(null),o=e.split(",");for(let s=0;s<o.length;s++)n[o[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Q8="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",J8=Hp(Q8);function Lb(e){return!!e||e===""}function st(e){if(wt(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=_t(o)?nI(o):st(o);if(s)for(const i in s)t[i]=s[i]}return t}else{if(_t(e))return e;if(Kt(e))return e}}const eI=/;(?![^(]*\))/g,tI=/:(.+)/;function nI(e){const t={};return e.split(eI).forEach(n=>{if(n){const o=n.split(tI);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function P(e){let t="";if(_t(e))t=e;else if(wt(e))for(let n=0;n<e.length;n++){const o=P(e[n]);o&&(t+=o+" ")}else if(Kt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Nr(e){if(!e)return null;let{class:t,style:n}=e;return t&&!_t(t)&&(e.class=P(t)),n&&(e.style=st(n)),e}function oI(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Va(e[o],t[o]);return n}function Va(e,t){if(e===t)return!0;let n=xg(e),o=xg(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=wt(e),o=wt(t),n||o)return n&&o?oI(e,t):!1;if(n=Kt(e),o=Kt(t),n||o){if(!n||!o)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const l in e){const c=e.hasOwnProperty(l),f=t.hasOwnProperty(l);if(c&&!f||!c&&f||!Va(e[l],t[l]))return!1}}return String(e)===String(t)}function Pb(e,t){return e.findIndex(n=>Va(n,t))}const Pe=e=>_t(e)?e:e==null?"":wt(e)||Kt(e)&&(e.toString===Fb||!It(e.toString))?JSON.stringify(e,Bb,2):String(e),Bb=(e,t)=>t&&t.__v_isRef?Bb(e,t.value):_a(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s])=>(n[`${o} =>`]=s,n),{})}:kd(t)?{[`Set(${t.size})`]:[...t.values()]}:Kt(t)&&!wt(t)&&!Vb(t)?String(t):t,bn={},Ia=[],on=()=>{},rI=()=>!1,sI=/^on[^a-z]/,Nd=e=>sI.test(e),zp=e=>e.startsWith("onUpdate:"),Jn=Object.assign,Up=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},iI=Object.prototype.hasOwnProperty,Bt=(e,t)=>iI.call(e,t),wt=Array.isArray,_a=e=>Eu(e)==="[object Map]",kd=e=>Eu(e)==="[object Set]",xg=e=>e instanceof Date,It=e=>typeof e=="function",_t=e=>typeof e=="string",Wp=e=>typeof e=="symbol",Kt=e=>e!==null&&typeof e=="object",Hi=e=>Kt(e)&&It(e.then)&&It(e.catch),Fb=Object.prototype.toString,Eu=e=>Fb.call(e),pc=e=>Eu(e).slice(8,-1),Vb=e=>Eu(e)==="[object Object]",jp=e=>_t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gc=Hp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},aI=/-(\w)/g,hr=xd(e=>e.replace(aI,(t,n)=>n?n.toUpperCase():"")),lI=/\B([A-Z])/g,ei=xd(e=>e.replace(lI,"-$1").toLowerCase()),Vo=xd(e=>e.charAt(0).toUpperCase()+e.slice(1)),mc=xd(e=>e?`on${Vo(e)}`:""),ql=(e,t)=>!Object.is(e,t),vc=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Gc=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Xc=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Mg;const uI=()=>Mg||(Mg=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Bo;class Hb{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Bo&&(this.parent=Bo,this.index=(Bo.scopes||(Bo.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Bo;try{return Bo=this,t()}finally{Bo=n}}}on(){Bo=this}off(){Bo=this.parent}stop(t){if(this.active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.active=!1}}}function cI(e){return new Hb(e)}function dI(e,t=Bo){t&&t.active&&t.effects.push(e)}function fI(){return Bo}function zb(e){Bo&&Bo.cleanups.push(e)}const Kp=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ub=e=>(e.w&Ks)>0,Wb=e=>(e.n&Ks)>0,hI=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ks},pI=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const s=t[o];Ub(s)&&!Wb(s)?s.delete(e):t[n++]=s,s.w&=~Ks,s.n&=~Ks}t.length=n}},Eh=new WeakMap;let xl=0,Ks=1;const Sh=30;let _r;const Mi=Symbol(""),Ah=Symbol("");class Yp{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,dI(this,o)}run(){if(!this.active)return this.fn();let t=_r,n=Hs;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=_r,_r=this,Hs=!0,Ks=1<<++xl,xl<=Sh?hI(this):Og(this),this.fn()}finally{xl<=Sh&&pI(this),Ks=1<<--xl,_r=this.parent,Hs=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){_r===this?this.deferStop=!0:this.active&&(Og(this),this.onStop&&this.onStop(),this.active=!1)}}function Og(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Hs=!0;const jb=[];function Gi(){jb.push(Hs),Hs=!1}function Xi(){const e=jb.pop();Hs=e===void 0?!0:e}function Xo(e,t,n){if(Hs&&_r){let o=Eh.get(e);o||Eh.set(e,o=new Map);let s=o.get(n);s||o.set(n,s=Kp()),Kb(s)}}function Kb(e,t){let n=!1;xl<=Sh?Wb(e)||(e.n|=Ks,n=!Ub(e)):n=!e.has(_r),n&&(e.add(_r),_r.deps.push(e))}function hs(e,t,n,o,s,i){const l=Eh.get(e);if(!l)return;let c=[];if(t==="clear")c=[...l.values()];else if(n==="length"&&wt(e))l.forEach((f,p)=>{(p==="length"||p>=o)&&c.push(f)});else switch(n!==void 0&&c.push(l.get(n)),t){case"add":wt(e)?jp(n)&&c.push(l.get("length")):(c.push(l.get(Mi)),_a(e)&&c.push(l.get(Ah)));break;case"delete":wt(e)||(c.push(l.get(Mi)),_a(e)&&c.push(l.get(Ah)));break;case"set":_a(e)&&c.push(l.get(Mi));break}if(c.length===1)c[0]&&Th(c[0]);else{const f=[];for(const p of c)p&&f.push(...p);Th(Kp(f))}}function Th(e,t){for(const n of wt(e)?e:[...e])(n!==_r||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const gI=Hp("__proto__,__v_isRef,__isVue"),Yb=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Wp)),mI=Gp(),vI=Gp(!1,!0),yI=Gp(!0),Dg=bI();function bI(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=an(this);for(let i=0,l=this.length;i<l;i++)Xo(o,"get",i+"");const s=o[t](...n);return s===-1||s===!1?o[t](...n.map(an)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Gi();const o=an(this)[t].apply(this,n);return Xi(),o}}),e}function Gp(e=!1,t=!1){return function(o,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?RI:Qb:t?Zb:qb).get(o))return o;const l=wt(o);if(!e&&l&&Bt(Dg,s))return Reflect.get(Dg,s,i);const c=Reflect.get(o,s,i);return(Wp(s)?Yb.has(s):gI(s))||(e||Xo(o,"get",s),t)?c:wn(c)?!l||!jp(s)?c.value:c:Kt(c)?e?Su(c):nn(c):c}}const wI=Gb(),CI=Gb(!0);function Gb(e=!1){return function(n,o,s,i){let l=n[o];if(Zl(l)&&wn(l)&&!wn(s))return!1;if(!e&&!Zl(s)&&(Jb(s)||(s=an(s),l=an(l)),!wt(n)&&wn(l)&&!wn(s)))return l.value=s,!0;const c=wt(n)&&jp(o)?Number(o)<n.length:Bt(n,o),f=Reflect.set(n,o,s,i);return n===an(i)&&(c?ql(s,l)&&hs(n,"set",o,s):hs(n,"add",o,s)),f}}function EI(e,t){const n=Bt(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&hs(e,"delete",t,void 0),o}function SI(e,t){const n=Reflect.has(e,t);return(!Wp(t)||!Yb.has(t))&&Xo(e,"has",t),n}function AI(e){return Xo(e,"iterate",wt(e)?"length":Mi),Reflect.ownKeys(e)}const Xb={get:mI,set:wI,deleteProperty:EI,has:SI,ownKeys:AI},TI={get:yI,set(e,t){return!0},deleteProperty(e,t){return!0}},II=Jn({},Xb,{get:vI,set:CI}),Xp=e=>e,Md=e=>Reflect.getPrototypeOf(e);function Xu(e,t,n=!1,o=!1){e=e.__v_raw;const s=an(e),i=an(t);t!==i&&!n&&Xo(s,"get",t),!n&&Xo(s,"get",i);const{has:l}=Md(s),c=o?Xp:n?Qp:Jl;if(l.call(s,t))return c(e.get(t));if(l.call(s,i))return c(e.get(i));e!==s&&e.get(t)}function qu(e,t=!1){const n=this.__v_raw,o=an(n),s=an(e);return e!==s&&!t&&Xo(o,"has",e),!t&&Xo(o,"has",s),e===s?n.has(e):n.has(e)||n.has(s)}function Zu(e,t=!1){return e=e.__v_raw,!t&&Xo(an(e),"iterate",Mi),Reflect.get(e,"size",e)}function $g(e){e=an(e);const t=an(this);return Md(t).has.call(t,e)||(t.add(e),hs(t,"add",e,e)),this}function Rg(e,t){t=an(t);const n=an(this),{has:o,get:s}=Md(n);let i=o.call(n,e);i||(e=an(e),i=o.call(n,e));const l=s.call(n,e);return n.set(e,t),i?ql(t,l)&&hs(n,"set",e,t):hs(n,"add",e,t),this}function Lg(e){const t=an(this),{has:n,get:o}=Md(t);let s=n.call(t,e);s||(e=an(e),s=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return s&&hs(t,"delete",e,void 0),i}function Pg(){const e=an(this),t=e.size!==0,n=e.clear();return t&&hs(e,"clear",void 0,void 0),n}function Qu(e,t){return function(o,s){const i=this,l=i.__v_raw,c=an(l),f=t?Xp:e?Qp:Jl;return!e&&Xo(c,"iterate",Mi),l.forEach((p,m)=>o.call(s,f(p),f(m),i))}}function Ju(e,t,n){return function(...o){const s=this.__v_raw,i=an(s),l=_a(i),c=e==="entries"||e===Symbol.iterator&&l,f=e==="keys"&&l,p=s[e](...o),m=n?Xp:t?Qp:Jl;return!t&&Xo(i,"iterate",f?Ah:Mi),{next(){const{value:y,done:v}=p.next();return v?{value:y,done:v}:{value:c?[m(y[0]),m(y[1])]:m(y),done:v}},[Symbol.iterator](){return this}}}}function Ms(e){return function(...t){return e==="delete"?!1:this}}function _I(){const e={get(i){return Xu(this,i)},get size(){return Zu(this)},has:qu,add:$g,set:Rg,delete:Lg,clear:Pg,forEach:Qu(!1,!1)},t={get(i){return Xu(this,i,!1,!0)},get size(){return Zu(this)},has:qu,add:$g,set:Rg,delete:Lg,clear:Pg,forEach:Qu(!1,!0)},n={get(i){return Xu(this,i,!0)},get size(){return Zu(this,!0)},has(i){return qu.call(this,i,!0)},add:Ms("add"),set:Ms("set"),delete:Ms("delete"),clear:Ms("clear"),forEach:Qu(!0,!1)},o={get(i){return Xu(this,i,!0,!0)},get size(){return Zu(this,!0)},has(i){return qu.call(this,i,!0)},add:Ms("add"),set:Ms("set"),delete:Ms("delete"),clear:Ms("clear"),forEach:Qu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Ju(i,!1,!1),n[i]=Ju(i,!0,!1),t[i]=Ju(i,!1,!0),o[i]=Ju(i,!0,!0)}),[e,n,t,o]}const[NI,kI,xI,MI]=_I();function qp(e,t){const n=t?e?MI:xI:e?kI:NI;return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(Bt(n,s)&&s in o?n:o,s,i)}const OI={get:qp(!1,!1)},DI={get:qp(!1,!0)},$I={get:qp(!0,!1)},qb=new WeakMap,Zb=new WeakMap,Qb=new WeakMap,RI=new WeakMap;function LI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function PI(e){return e.__v_skip||!Object.isExtensible(e)?0:LI(pc(e))}function nn(e){return Zl(e)?e:Zp(e,!1,Xb,OI,qb)}function BI(e){return Zp(e,!1,II,DI,Zb)}function Su(e){return Zp(e,!0,TI,$I,Qb)}function Zp(e,t,n,o,s){if(!Kt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const l=PI(e);if(l===0)return e;const c=new Proxy(e,l===2?o:n);return s.set(e,c),c}function Na(e){return Zl(e)?Na(e.__v_raw):!!(e&&e.__v_isReactive)}function Zl(e){return!!(e&&e.__v_isReadonly)}function Jb(e){return!!(e&&e.__v_isShallow)}function e2(e){return Na(e)||Zl(e)}function an(e){const t=e&&e.__v_raw;return t?an(t):e}function Ql(e){return Gc(e,"__v_skip",!0),e}const Jl=e=>Kt(e)?nn(e):e,Qp=e=>Kt(e)?Su(e):e;function t2(e){Hs&&_r&&(e=an(e),Kb(e.dep||(e.dep=Kp())))}function Jp(e,t){e=an(e),e.dep&&Th(e.dep)}function wn(e){return!!(e&&e.__v_isRef===!0)}function F(e){return n2(e,!1)}function Hn(e){return n2(e,!0)}function n2(e,t){return wn(e)?e:new FI(e,t)}class FI{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:an(t),this._value=n?t:Jl(t)}get value(){return t2(this),this._value}set value(t){t=this.__v_isShallow?t:an(t),ql(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Jl(t),Jp(this))}}function Sl(e){Jp(e)}function k(e){return wn(e)?e.value:e}const VI={get:(e,t,n)=>k(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return wn(s)&&!wn(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function o2(e){return Na(e)?e:new Proxy(e,VI)}function Yn(e){const t=wt(e)?new Array(e.length):{};for(const n in e)t[n]=Un(e,n);return t}class HI{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Un(e,t,n){const o=e[t];return wn(o)?o:new HI(e,t,n)}class zI{constructor(t,n,o,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Yp(t,()=>{this._dirty||(this._dirty=!0,Jp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=an(this);return t2(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function UI(e,t,n=!1){let o,s;const i=It(e);return i?(o=e,s=on):(o=e.get,s=e.set),new zI(o,s,i||!s,n)}const Fl=[];function WI(e,...t){Gi();const n=Fl.length?Fl[Fl.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=jI();if(o)us(o,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${R2(n,i.type)}>`).join(`
|
||
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
|
||
`,...KI(s)),console.warn(...i)}Xi()}function jI(){let e=Fl[Fl.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function KI(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
|
||
`],...YI(n))}),t}function YI({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,s=` at <${R2(e.component,e.type,o)}`,i=">"+n;return e.props?[s,...GI(e.props),i]:[s+i]}function GI(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...r2(o,e[o]))}),n.length>3&&t.push(" ..."),t}function r2(e,t,n){return _t(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:wn(t)?(t=r2(e,an(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):It(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=an(t),n?t:[`${e}=`,t])}function us(e,t,n,o){let s;try{s=o?e(...o):e()}catch(i){Od(i,t,n)}return s}function cr(e,t,n,o){if(It(e)){const i=us(e,t,n,o);return i&&Hi(i)&&i.catch(l=>{Od(l,t,n)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(cr(e[i],t,n,o));return s}function Od(e,t,n,o=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const l=t.proxy,c=n;for(;i;){const p=i.ec;if(p){for(let m=0;m<p.length;m++)if(p[m](e,l,c)===!1)return}i=i.parent}const f=t.appContext.config.errorHandler;if(f){us(f,null,10,[e,l,c]);return}}XI(e,n,s,o)}function XI(e,t,n,o=!0){console.error(e)}let qc=!1,Ih=!1;const Ho=[];let is=0;const Vl=[];let Ml=null,ya=0;const Hl=[];let $s=null,ba=0;const s2=Promise.resolve();let e0=null,_h=null;function dt(e){const t=e0||s2;return e?t.then(this?e.bind(this):e):t}function qI(e){let t=is+1,n=Ho.length;for(;t<n;){const o=t+n>>>1;eu(Ho[o])<e?t=o+1:n=o}return t}function i2(e){(!Ho.length||!Ho.includes(e,qc&&e.allowRecurse?is+1:is))&&e!==_h&&(e.id==null?Ho.push(e):Ho.splice(qI(e.id),0,e),a2())}function a2(){!qc&&!Ih&&(Ih=!0,e0=s2.then(c2))}function ZI(e){const t=Ho.indexOf(e);t>is&&Ho.splice(t,1)}function l2(e,t,n,o){wt(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?o+1:o))&&n.push(e),a2()}function QI(e){l2(e,Ml,Vl,ya)}function JI(e){l2(e,$s,Hl,ba)}function t0(e,t=null){if(Vl.length){for(_h=t,Ml=[...new Set(Vl)],Vl.length=0,ya=0;ya<Ml.length;ya++)Ml[ya]();Ml=null,ya=0,_h=null,t0(e,t)}}function u2(e){if(Hl.length){const t=[...new Set(Hl)];if(Hl.length=0,$s){$s.push(...t);return}for($s=t,$s.sort((n,o)=>eu(n)-eu(o)),ba=0;ba<$s.length;ba++)$s[ba]();$s=null,ba=0}}const eu=e=>e.id==null?1/0:e.id;function c2(e){Ih=!1,qc=!0,t0(e),Ho.sort((n,o)=>eu(n)-eu(o));const t=on;try{for(is=0;is<Ho.length;is++){const n=Ho[is];n&&n.active!==!1&&us(n,null,14)}}finally{is=0,Ho.length=0,u2(),qc=!1,e0=null,(Ho.length||Vl.length||Hl.length)&&c2(e)}}function e_(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||bn;let s=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in o){const m=`${l==="modelValue"?"model":l}Modifiers`,{number:y,trim:v}=o[m]||bn;v?s=n.map(w=>w.trim()):y&&(s=n.map(Xc))}let c,f=o[c=mc(t)]||o[c=mc(hr(t))];!f&&i&&(f=o[c=mc(ei(t))]),f&&cr(f,e,6,s);const p=o[c+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,cr(p,e,6,s)}}function d2(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let l={},c=!1;if(!It(e)){const f=p=>{const m=d2(p,t,!0);m&&(c=!0,Jn(l,m))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!c?(o.set(e,null),null):(wt(i)?i.forEach(f=>l[f]=null):Jn(l,i),o.set(e,l),l)}function Dd(e,t){return!e||!Nd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Bt(e,t[0].toLowerCase()+t.slice(1))||Bt(e,ei(t))||Bt(e,t))}let po=null,f2=null;function Zc(e){const t=po;return po=e,f2=e&&e.type.__scopeId||null,t}function ae(e,t=po,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&Xg(-1);const i=Zc(t),l=e(...s);return Zc(i),o._d&&Xg(1),l};return o._n=!0,o._c=!0,o._d=!0,o}function Mf(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:i,propsOptions:[l],slots:c,attrs:f,emit:p,render:m,renderCache:y,data:v,setupState:w,ctx:E,inheritAttrs:I}=e;let S,T;const _=Zc(e);try{if(n.shapeFlag&4){const O=s||o;S=Yr(m.call(O,O,y,i,w,v,E)),T=f}else{const O=t;S=Yr(O.length>1?O(i,{attrs:f,slots:c,emit:p}):O(i,null)),T=t.props?f:t_(f)}}catch(O){Ul.length=0,Od(O,e,1),S=le(So)}let N=S;if(T&&I!==!1){const O=Object.keys(T),{shapeFlag:D}=N;O.length&&D&7&&(l&&O.some(zp)&&(T=n_(T,l)),N=Gs(N,T))}return n.dirs&&(N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&(N.transition=n.transition),S=N,Zc(_),S}const t_=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nd(n))&&((t||(t={}))[n]=e[n]);return t},n_=(e,t)=>{const n={};for(const o in e)(!zp(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function o_(e,t,n){const{props:o,children:s,component:i}=e,{props:l,children:c,patchFlag:f}=t,p=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return o?Bg(o,l,p):!!l;if(f&8){const m=t.dynamicProps;for(let y=0;y<m.length;y++){const v=m[y];if(l[v]!==o[v]&&!Dd(p,v))return!0}}}else return(s||c)&&(!c||!c.$stable)?!0:o===l?!1:o?l?Bg(o,l,p):!0:!!l;return!1}function Bg(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const i=o[s];if(t[i]!==e[i]&&!Dd(n,i))return!0}return!1}function r_({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const s_=e=>e.__isSuspense;function i_(e,t){t&&t.pendingBranch?wt(e)?t.effects.push(...e):t.effects.push(e):JI(e)}function Pt(e,t){if(Qn){let n=Qn.provides;const o=Qn.parent&&Qn.parent.provides;o===n&&(n=Qn.provides=Object.create(o)),n[e]=t}}function et(e,t,n=!1){const o=Qn||po;if(o){const s=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&It(t)?t.call(o.proxy):t}}function dr(e,t){return n0(e,null,t)}const Fg={};function Re(e,t,n){return n0(e,t,n)}function n0(e,t,{immediate:n,deep:o,flush:s,onTrack:i,onTrigger:l}=bn){const c=Qn;let f,p=!1,m=!1;if(wn(e)?(f=()=>e.value,p=Jb(e)):Na(e)?(f=()=>e,o=!0):wt(e)?(m=!0,p=e.some(Na),f=()=>e.map(T=>{if(wn(T))return T.value;if(Na(T))return Ai(T);if(It(T))return us(T,c,2)})):It(e)?t?f=()=>us(e,c,2):f=()=>{if(!(c&&c.isUnmounted))return y&&y(),cr(e,c,3,[v])}:f=on,t&&o){const T=f;f=()=>Ai(T())}let y,v=T=>{y=S.onStop=()=>{us(T,c,4)}};if(ou)return v=on,t?n&&cr(t,c,3,[f(),m?[]:void 0,v]):f(),on;let w=m?[]:Fg;const E=()=>{if(!!S.active)if(t){const T=S.run();(o||p||(m?T.some((_,N)=>ql(_,w[N])):ql(T,w)))&&(y&&y(),cr(t,c,3,[T,w===Fg?void 0:w,v]),w=T)}else S.run()};E.allowRecurse=!!t;let I;s==="sync"?I=E:s==="post"?I=()=>xo(E,c&&c.suspense):I=()=>{!c||c.isMounted?QI(E):E()};const S=new Yp(f,I);return t?n?E():w=S.run():s==="post"?xo(S.run.bind(S),c&&c.suspense):S.run(),()=>{S.stop(),c&&c.scope&&Up(c.scope.effects,S)}}function a_(e,t,n){const o=this.proxy,s=_t(e)?e.includes(".")?h2(o,e):()=>o[e]:e.bind(o,o);let i;It(t)?i=t:(i=t.handler,n=t);const l=Qn;Ha(this);const c=n0(s,i.bind(o),n);return l?Ha(l):Di(),c}function h2(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}function Ai(e,t){if(!Kt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),wn(e))Ai(e.value,t);else if(wt(e))for(let n=0;n<e.length;n++)Ai(e[n],t);else if(kd(e)||_a(e))e.forEach(n=>{Ai(n,t)});else if(Vb(e))for(const n in e)Ai(e[n],t);return e}function p2(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return kt(()=>{e.isMounted=!0}),gn(()=>{e.isUnmounting=!0}),e}const rr=[Function,Array],l_={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rr,onEnter:rr,onAfterEnter:rr,onEnterCancelled:rr,onBeforeLeave:rr,onLeave:rr,onAfterLeave:rr,onLeaveCancelled:rr,onBeforeAppear:rr,onAppear:rr,onAfterAppear:rr,onAppearCancelled:rr},setup(e,{slots:t}){const n=Dt(),o=p2();let s;return()=>{const i=t.default&&o0(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(const I of i)if(I.type!==So){l=I;break}}const c=an(e),{mode:f}=c;if(o.isLeaving)return Of(l);const p=Vg(l);if(!p)return Of(l);const m=tu(p,c,o,n);nu(p,m);const y=n.subTree,v=y&&Vg(y);let w=!1;const{getTransitionKey:E}=p.type;if(E){const I=E();s===void 0?s=I:I!==s&&(s=I,w=!0)}if(v&&v.type!==So&&(!Ci(p,v)||w)){const I=tu(v,c,o,n);if(nu(v,I),f==="out-in")return o.isLeaving=!0,I.afterLeave=()=>{o.isLeaving=!1,n.update()},Of(l);f==="in-out"&&p.type!==So&&(I.delayLeave=(S,T,_)=>{const N=m2(o,v);N[String(v.key)]=v,S._leaveCb=()=>{T(),S._leaveCb=void 0,delete m.delayedLeave},m.delayedLeave=_})}return l}}},g2=l_;function m2(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function tu(e,t,n,o){const{appear:s,mode:i,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:p,onEnterCancelled:m,onBeforeLeave:y,onLeave:v,onAfterLeave:w,onLeaveCancelled:E,onBeforeAppear:I,onAppear:S,onAfterAppear:T,onAppearCancelled:_}=t,N=String(e.key),O=m2(n,e),D=(R,B)=>{R&&cr(R,o,9,B)},x={mode:i,persisted:l,beforeEnter(R){let B=c;if(!n.isMounted)if(s)B=I||c;else return;R._leaveCb&&R._leaveCb(!0);const Y=O[N];Y&&Ci(e,Y)&&Y.el._leaveCb&&Y.el._leaveCb(),D(B,[R])},enter(R){let B=f,Y=p,X=m;if(!n.isMounted)if(s)B=S||f,Y=T||p,X=_||m;else return;let K=!1;const J=R._enterCb=G=>{K||(K=!0,G?D(X,[R]):D(Y,[R]),x.delayedLeave&&x.delayedLeave(),R._enterCb=void 0)};B?(B(R,J),B.length<=1&&J()):J()},leave(R,B){const Y=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return B();D(y,[R]);let X=!1;const K=R._leaveCb=J=>{X||(X=!0,B(),J?D(E,[R]):D(w,[R]),R._leaveCb=void 0,O[Y]===e&&delete O[Y])};O[Y]=e,v?(v(R,K),v.length<=1&&K()):K()},clone(R){return tu(R,t,n,o)}};return x}function Of(e){if($d(e))return e=Gs(e),e.children=null,e}function Vg(e){return $d(e)?e.children?e.children[0]:void 0:e}function nu(e,t){e.shapeFlag&6&&e.component?nu(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function o0(e,t=!1,n){let o=[],s=0;for(let i=0;i<e.length;i++){let l=e[i];const c=n==null?l.key:String(n)+String(l.key!=null?l.key:i);l.type===at?(l.patchFlag&128&&s++,o=o.concat(o0(l.children,t,c))):(t||l.type!==So)&&o.push(c!=null?Gs(l,{key:c}):l)}if(s>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function ve(e){return It(e)?{setup:e,name:e.name}:e}const Qc=e=>!!e.type.__asyncLoader,$d=e=>e.type.__isKeepAlive;function u_(e,t){v2(e,"a",t)}function c_(e,t){v2(e,"da",t)}function v2(e,t,n=Qn){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Rd(t,o,n),n){let s=n.parent;for(;s&&s.parent;)$d(s.parent.vnode)&&d_(o,t,n,s),s=s.parent}}function d_(e,t,n,o){const s=Rd(t,e,o,!0);Tu(()=>{Up(o[t],s)},n)}function Rd(e,t,n=Qn,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;Gi(),Ha(n);const c=cr(t,n,e,l);return Di(),Xi(),c});return o?s.unshift(i):s.push(i),i}}const vs=e=>(t,n=Qn)=>(!ou||e==="sp")&&Rd(e,t,n),Au=vs("bm"),kt=vs("m"),y2=vs("bu"),br=vs("u"),gn=vs("bum"),Tu=vs("um"),f_=vs("sp"),h_=vs("rtg"),p_=vs("rtc");function g_(e,t=Qn){Rd("ec",e,t)}let Nh=!0;function m_(e){const t=w2(e),n=e.proxy,o=e.ctx;Nh=!1,t.beforeCreate&&Hg(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:l,watch:c,provide:f,inject:p,created:m,beforeMount:y,mounted:v,beforeUpdate:w,updated:E,activated:I,deactivated:S,beforeDestroy:T,beforeUnmount:_,destroyed:N,unmounted:O,render:D,renderTracked:x,renderTriggered:R,errorCaptured:B,serverPrefetch:Y,expose:X,inheritAttrs:K,components:J,directives:G,filters:z}=t;if(p&&v_(p,o,null,e.appContext.config.unwrapInjectedRef),l)for(const V in l){const q=l[V];It(q)&&(o[V]=q.bind(n))}if(s){const V=s.call(n,n);Kt(V)&&(e.data=nn(V))}if(Nh=!0,i)for(const V in i){const q=i[V],ce=It(q)?q.bind(n,n):It(q.get)?q.get.bind(n,n):on,ue=!It(q)&&It(q.set)?q.set.bind(n):on,ne=$({get:ce,set:ue});Object.defineProperty(o,V,{enumerable:!0,configurable:!0,get:()=>ne.value,set:Se=>ne.value=Se})}if(c)for(const V in c)b2(c[V],o,n,V);if(f){const V=It(f)?f.call(n):f;Reflect.ownKeys(V).forEach(q=>{Pt(q,V[q])})}m&&Hg(m,e,"c");function j(V,q){wt(q)?q.forEach(ce=>V(ce.bind(n))):q&&V(q.bind(n))}if(j(Au,y),j(kt,v),j(y2,w),j(br,E),j(u_,I),j(c_,S),j(g_,B),j(p_,x),j(h_,R),j(gn,_),j(Tu,O),j(f_,Y),wt(X))if(X.length){const V=e.exposed||(e.exposed={});X.forEach(q=>{Object.defineProperty(V,q,{get:()=>n[q],set:ce=>n[q]=ce})})}else e.exposed||(e.exposed={});D&&e.render===on&&(e.render=D),K!=null&&(e.inheritAttrs=K),J&&(e.components=J),G&&(e.directives=G)}function v_(e,t,n=on,o=!1){wt(e)&&(e=kh(e));for(const s in e){const i=e[s];let l;Kt(i)?"default"in i?l=et(i.from||s,i.default,!0):l=et(i.from||s):l=et(i),wn(l)&&o?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:c=>l.value=c}):t[s]=l}}function Hg(e,t,n){cr(wt(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function b2(e,t,n,o){const s=o.includes(".")?h2(n,o):()=>n[o];if(_t(e)){const i=t[e];It(i)&&Re(s,i)}else if(It(e))Re(s,e.bind(n));else if(Kt(e))if(wt(e))e.forEach(i=>b2(i,t,n,o));else{const i=It(e.handler)?e.handler.bind(n):t[e.handler];It(i)&&Re(s,i,e)}}function w2(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,c=i.get(t);let f;return c?f=c:!s.length&&!n&&!o?f=t:(f={},s.length&&s.forEach(p=>Jc(f,p,l,!0)),Jc(f,t,l)),i.set(t,f),f}function Jc(e,t,n,o=!1){const{mixins:s,extends:i}=t;i&&Jc(e,i,n,!0),s&&s.forEach(l=>Jc(e,l,n,!0));for(const l in t)if(!(o&&l==="expose")){const c=y_[l]||n&&n[l];e[l]=c?c(e[l],t[l]):t[l]}return e}const y_={data:zg,props:mi,emits:mi,methods:mi,computed:mi,beforeCreate:wo,created:wo,beforeMount:wo,mounted:wo,beforeUpdate:wo,updated:wo,beforeDestroy:wo,beforeUnmount:wo,destroyed:wo,unmounted:wo,activated:wo,deactivated:wo,errorCaptured:wo,serverPrefetch:wo,components:mi,directives:mi,watch:w_,provide:zg,inject:b_};function zg(e,t){return t?e?function(){return Jn(It(e)?e.call(this,this):e,It(t)?t.call(this,this):t)}:t:e}function b_(e,t){return mi(kh(e),kh(t))}function kh(e){if(wt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function wo(e,t){return e?[...new Set([].concat(e,t))]:t}function mi(e,t){return e?Jn(Jn(Object.create(null),e),t):t}function w_(e,t){if(!e)return t;if(!t)return e;const n=Jn(Object.create(null),e);for(const o in t)n[o]=wo(e[o],t[o]);return n}function C_(e,t,n,o=!1){const s={},i={};Gc(i,Ld,1),e.propsDefaults=Object.create(null),C2(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=o?s:BI(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function E_(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,c=an(s),[f]=e.propsOptions;let p=!1;if((o||l>0)&&!(l&16)){if(l&8){const m=e.vnode.dynamicProps;for(let y=0;y<m.length;y++){let v=m[y];if(Dd(e.emitsOptions,v))continue;const w=t[v];if(f)if(Bt(i,v))w!==i[v]&&(i[v]=w,p=!0);else{const E=hr(v);s[E]=xh(f,c,E,w,e,!1)}else w!==i[v]&&(i[v]=w,p=!0)}}}else{C2(e,t,s,i)&&(p=!0);let m;for(const y in c)(!t||!Bt(t,y)&&((m=ei(y))===y||!Bt(t,m)))&&(f?n&&(n[y]!==void 0||n[m]!==void 0)&&(s[y]=xh(f,c,y,void 0,e,!0)):delete s[y]);if(i!==c)for(const y in i)(!t||!Bt(t,y)&&!0)&&(delete i[y],p=!0)}p&&hs(e,"set","$attrs")}function C2(e,t,n,o){const[s,i]=e.propsOptions;let l=!1,c;if(t)for(let f in t){if(gc(f))continue;const p=t[f];let m;s&&Bt(s,m=hr(f))?!i||!i.includes(m)?n[m]=p:(c||(c={}))[m]=p:Dd(e.emitsOptions,f)||(!(f in o)||p!==o[f])&&(o[f]=p,l=!0)}if(i){const f=an(n),p=c||bn;for(let m=0;m<i.length;m++){const y=i[m];n[y]=xh(s,f,y,p[y],e,!Bt(p,y))}}return l}function xh(e,t,n,o,s,i){const l=e[n];if(l!=null){const c=Bt(l,"default");if(c&&o===void 0){const f=l.default;if(l.type!==Function&&It(f)){const{propsDefaults:p}=s;n in p?o=p[n]:(Ha(s),o=p[n]=f.call(null,t),Di())}else o=f}l[0]&&(i&&!c?o=!1:l[1]&&(o===""||o===ei(n))&&(o=!0))}return o}function E2(e,t,n=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const i=e.props,l={},c=[];let f=!1;if(!It(e)){const m=y=>{f=!0;const[v,w]=E2(y,t,!0);Jn(l,v),w&&c.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!i&&!f)return o.set(e,Ia),Ia;if(wt(i))for(let m=0;m<i.length;m++){const y=hr(i[m]);Ug(y)&&(l[y]=bn)}else if(i)for(const m in i){const y=hr(m);if(Ug(y)){const v=i[m],w=l[y]=wt(v)||It(v)?{type:v}:v;if(w){const E=Kg(Boolean,w.type),I=Kg(String,w.type);w[0]=E>-1,w[1]=I<0||E<I,(E>-1||Bt(w,"default"))&&c.push(y)}}}const p=[l,c];return o.set(e,p),p}function Ug(e){return e[0]!=="$"}function Wg(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function jg(e,t){return Wg(e)===Wg(t)}function Kg(e,t){return wt(t)?t.findIndex(n=>jg(n,e)):It(t)&&jg(t,e)?0:-1}const S2=e=>e[0]==="_"||e==="$stable",r0=e=>wt(e)?e.map(Yr):[Yr(e)],S_=(e,t,n)=>{const o=ae((...s)=>r0(t(...s)),n);return o._c=!1,o},A2=(e,t,n)=>{const o=e._ctx;for(const s in e){if(S2(s))continue;const i=e[s];if(It(i))t[s]=S_(s,i,o);else if(i!=null){const l=r0(i);t[s]=()=>l}}},T2=(e,t)=>{const n=r0(t);e.slots.default=()=>n},A_=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=an(t),Gc(t,"_",n)):A2(t,e.slots={})}else e.slots={},t&&T2(e,t);Gc(e.slots,Ld,1)},T_=(e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,l=bn;if(o.shapeFlag&32){const c=t._;c?n&&c===1?i=!1:(Jn(s,t),!n&&c===1&&delete s._):(i=!t.$stable,A2(t,s)),l=t}else t&&(T2(e,t),l={default:1});if(i)for(const c in s)!S2(c)&&!(c in l)&&delete s[c]};function bt(e,t){const n=po;if(n===null)return e;const o=Pd(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[l,c,f,p=bn]=t[i];It(l)&&(l={mounted:l,updated:l}),l.deep&&Ai(c),s.push({dir:l,instance:o,value:c,oldValue:void 0,arg:f,modifiers:p})}return e}function ci(e,t,n,o){const s=e.dirs,i=t&&t.dirs;for(let l=0;l<s.length;l++){const c=s[l];i&&(c.oldValue=i[l].value);let f=c.dir[o];f&&(Gi(),cr(f,n,8,[e.el,c,e,t]),Xi())}}function I2(){return{app:null,config:{isNativeTag:rI,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let I_=0;function __(e,t){return function(o,s=null){It(o)||(o=Object.assign({},o)),s!=null&&!Kt(s)&&(s=null);const i=I2(),l=new Set;let c=!1;const f=i.app={_uid:I_++,_component:o,_props:s,_container:null,_context:i,_instance:null,version:G_,get config(){return i.config},set config(p){},use(p,...m){return l.has(p)||(p&&It(p.install)?(l.add(p),p.install(f,...m)):It(p)&&(l.add(p),p(f,...m))),f},mixin(p){return i.mixins.includes(p)||i.mixins.push(p),f},component(p,m){return m?(i.components[p]=m,f):i.components[p]},directive(p,m){return m?(i.directives[p]=m,f):i.directives[p]},mount(p,m,y){if(!c){const v=le(o,s);return v.appContext=i,m&&t?t(v,p):e(v,p,y),c=!0,f._container=p,p.__vue_app__=f,Pd(v.component)||v.component.proxy}},unmount(){c&&(e(null,f._container),delete f._container.__vue_app__)},provide(p,m){return i.provides[p]=m,f}};return f}}function Mh(e,t,n,o,s=!1){if(wt(e)){e.forEach((v,w)=>Mh(v,t&&(wt(t)?t[w]:t),n,o,s));return}if(Qc(o)&&!s)return;const i=o.shapeFlag&4?Pd(o.component)||o.component.proxy:o.el,l=s?null:i,{i:c,r:f}=e,p=t&&t.r,m=c.refs===bn?c.refs={}:c.refs,y=c.setupState;if(p!=null&&p!==f&&(_t(p)?(m[p]=null,Bt(y,p)&&(y[p]=null)):wn(p)&&(p.value=null)),It(f))us(f,c,12,[l,m]);else{const v=_t(f),w=wn(f);if(v||w){const E=()=>{if(e.f){const I=v?m[f]:f.value;s?wt(I)&&Up(I,i):wt(I)?I.includes(i)||I.push(i):v?(m[f]=[i],Bt(y,f)&&(y[f]=m[f])):(f.value=[i],e.k&&(m[e.k]=f.value))}else v?(m[f]=l,Bt(y,f)&&(y[f]=l)):wn(f)&&(f.value=l,e.k&&(m[e.k]=l))};l?(E.id=-1,xo(E,n)):E()}}}const xo=i_;function N_(e){return k_(e)}function k_(e,t){const n=uI();n.__VUE__=!0;const{insert:o,remove:s,patchProp:i,createElement:l,createText:c,createComment:f,setText:p,setElementText:m,parentNode:y,nextSibling:v,setScopeId:w=on,cloneNode:E,insertStaticContent:I}=e,S=(te,de,Ne,De=null,ke=null,Ve=null,ie=!1,re=null,ge=!!de.dynamicChildren)=>{if(te===de)return;te&&!Ci(te,de)&&(De=We(te),Ee(te,ke,Ve,!0),te=null),de.patchFlag===-2&&(ge=!1,de.dynamicChildren=null);const{type:Te,ref:Je,shapeFlag:he}=de;switch(Te){case _u:T(te,de,Ne,De);break;case So:_(te,de,Ne,De);break;case Df:te==null&&N(de,Ne,De,ie);break;case at:G(te,de,Ne,De,ke,Ve,ie,re,ge);break;default:he&1?x(te,de,Ne,De,ke,Ve,ie,re,ge):he&6?z(te,de,Ne,De,ke,Ve,ie,re,ge):(he&64||he&128)&&Te.process(te,de,Ne,De,ke,Ve,ie,re,ge,Ze)}Je!=null&&ke&&Mh(Je,te&&te.ref,Ve,de||te,!de)},T=(te,de,Ne,De)=>{if(te==null)o(de.el=c(de.children),Ne,De);else{const ke=de.el=te.el;de.children!==te.children&&p(ke,de.children)}},_=(te,de,Ne,De)=>{te==null?o(de.el=f(de.children||""),Ne,De):de.el=te.el},N=(te,de,Ne,De)=>{[te.el,te.anchor]=I(te.children,de,Ne,De,te.el,te.anchor)},O=({el:te,anchor:de},Ne,De)=>{let ke;for(;te&&te!==de;)ke=v(te),o(te,Ne,De),te=ke;o(de,Ne,De)},D=({el:te,anchor:de})=>{let Ne;for(;te&&te!==de;)Ne=v(te),s(te),te=Ne;s(de)},x=(te,de,Ne,De,ke,Ve,ie,re,ge)=>{ie=ie||de.type==="svg",te==null?R(de,Ne,De,ke,Ve,ie,re,ge):X(te,de,ke,Ve,ie,re,ge)},R=(te,de,Ne,De,ke,Ve,ie,re)=>{let ge,Te;const{type:Je,props:he,shapeFlag:He,transition:pt,patchFlag:At,dirs:tt}=te;if(te.el&&E!==void 0&&At===-1)ge=te.el=E(te.el);else{if(ge=te.el=l(te.type,Ve,he&&he.is,he),He&8?m(ge,te.children):He&16&&Y(te.children,ge,null,De,ke,Ve&&Je!=="foreignObject",ie,re),tt&&ci(te,null,De,"created"),he){for(const Fe in he)Fe!=="value"&&!gc(Fe)&&i(ge,Fe,null,he[Fe],Ve,te.children,De,ke,Me);"value"in he&&i(ge,"value",null,he.value),(Te=he.onVnodeBeforeMount)&&Kr(Te,De,te)}B(ge,te,te.scopeId,ie,De)}tt&&ci(te,null,De,"beforeMount");const we=(!ke||ke&&!ke.pendingBranch)&&pt&&!pt.persisted;we&&pt.beforeEnter(ge),o(ge,de,Ne),((Te=he&&he.onVnodeMounted)||we||tt)&&xo(()=>{Te&&Kr(Te,De,te),we&&pt.enter(ge),tt&&ci(te,null,De,"mounted")},ke)},B=(te,de,Ne,De,ke)=>{if(Ne&&w(te,Ne),De)for(let Ve=0;Ve<De.length;Ve++)w(te,De[Ve]);if(ke){let Ve=ke.subTree;if(de===Ve){const ie=ke.vnode;B(te,ie,ie.scopeId,ie.slotScopeIds,ke.parent)}}},Y=(te,de,Ne,De,ke,Ve,ie,re,ge=0)=>{for(let Te=ge;Te<te.length;Te++){const Je=te[Te]=re?Ps(te[Te]):Yr(te[Te]);S(null,Je,de,Ne,De,ke,Ve,ie,re)}},X=(te,de,Ne,De,ke,Ve,ie)=>{const re=de.el=te.el;let{patchFlag:ge,dynamicChildren:Te,dirs:Je}=de;ge|=te.patchFlag&16;const he=te.props||bn,He=de.props||bn;let pt;Ne&&di(Ne,!1),(pt=He.onVnodeBeforeUpdate)&&Kr(pt,Ne,de,te),Je&&ci(de,te,Ne,"beforeUpdate"),Ne&&di(Ne,!0);const At=ke&&de.type!=="foreignObject";if(Te?K(te.dynamicChildren,Te,re,Ne,De,At,Ve):ie||ce(te,de,re,null,Ne,De,At,Ve,!1),ge>0){if(ge&16)J(re,de,he,He,Ne,De,ke);else if(ge&2&&he.class!==He.class&&i(re,"class",null,He.class,ke),ge&4&&i(re,"style",he.style,He.style,ke),ge&8){const tt=de.dynamicProps;for(let we=0;we<tt.length;we++){const Fe=tt[we],_e=he[Fe],Ye=He[Fe];(Ye!==_e||Fe==="value")&&i(re,Fe,_e,Ye,ke,te.children,Ne,De,Me)}}ge&1&&te.children!==de.children&&m(re,de.children)}else!ie&&Te==null&&J(re,de,he,He,Ne,De,ke);((pt=He.onVnodeUpdated)||Je)&&xo(()=>{pt&&Kr(pt,Ne,de,te),Je&&ci(de,te,Ne,"updated")},De)},K=(te,de,Ne,De,ke,Ve,ie)=>{for(let re=0;re<de.length;re++){const ge=te[re],Te=de[re],Je=ge.el&&(ge.type===at||!Ci(ge,Te)||ge.shapeFlag&70)?y(ge.el):Ne;S(ge,Te,Je,null,De,ke,Ve,ie,!0)}},J=(te,de,Ne,De,ke,Ve,ie)=>{if(Ne!==De){for(const re in De){if(gc(re))continue;const ge=De[re],Te=Ne[re];ge!==Te&&re!=="value"&&i(te,re,Te,ge,ie,de.children,ke,Ve,Me)}if(Ne!==bn)for(const re in Ne)!gc(re)&&!(re in De)&&i(te,re,Ne[re],null,ie,de.children,ke,Ve,Me);"value"in De&&i(te,"value",Ne.value,De.value)}},G=(te,de,Ne,De,ke,Ve,ie,re,ge)=>{const Te=de.el=te?te.el:c(""),Je=de.anchor=te?te.anchor:c("");let{patchFlag:he,dynamicChildren:He,slotScopeIds:pt}=de;pt&&(re=re?re.concat(pt):pt),te==null?(o(Te,Ne,De),o(Je,Ne,De),Y(de.children,Ne,Je,ke,Ve,ie,re,ge)):he>0&&he&64&&He&&te.dynamicChildren?(K(te.dynamicChildren,He,Ne,ke,Ve,ie,re),(de.key!=null||ke&&de===ke.subTree)&&s0(te,de,!0)):ce(te,de,Ne,Je,ke,Ve,ie,re,ge)},z=(te,de,Ne,De,ke,Ve,ie,re,ge)=>{de.slotScopeIds=re,te==null?de.shapeFlag&512?ke.ctx.activate(de,Ne,De,ie,ge):ee(de,Ne,De,ke,Ve,ie,ge):j(te,de,ge)},ee=(te,de,Ne,De,ke,Ve,ie)=>{const re=te.component=H_(te,De,ke);if($d(te)&&(re.ctx.renderer=Ze),z_(re),re.asyncDep){if(ke&&ke.registerDep(re,V),!te.el){const ge=re.subTree=le(So);_(null,ge,de,Ne)}return}V(re,te,de,Ne,ke,Ve,ie)},j=(te,de,Ne)=>{const De=de.component=te.component;if(o_(te,de,Ne))if(De.asyncDep&&!De.asyncResolved){q(De,de,Ne);return}else De.next=de,ZI(De.update),De.update();else de.component=te.component,de.el=te.el,De.vnode=de},V=(te,de,Ne,De,ke,Ve,ie)=>{const re=()=>{if(te.isMounted){let{next:Je,bu:he,u:He,parent:pt,vnode:At}=te,tt=Je,we;di(te,!1),Je?(Je.el=At.el,q(te,Je,ie)):Je=At,he&&vc(he),(we=Je.props&&Je.props.onVnodeBeforeUpdate)&&Kr(we,pt,Je,At),di(te,!0);const Fe=Mf(te),_e=te.subTree;te.subTree=Fe,S(_e,Fe,y(_e.el),We(_e),te,ke,Ve),Je.el=Fe.el,tt===null&&r_(te,Fe.el),He&&xo(He,ke),(we=Je.props&&Je.props.onVnodeUpdated)&&xo(()=>Kr(we,pt,Je,At),ke)}else{let Je;const{el:he,props:He}=de,{bm:pt,m:At,parent:tt}=te,we=Qc(de);if(di(te,!1),pt&&vc(pt),!we&&(Je=He&&He.onVnodeBeforeMount)&&Kr(Je,tt,de),di(te,!0),he&&ot){const Fe=()=>{te.subTree=Mf(te),ot(he,te.subTree,te,ke,null)};we?de.type.__asyncLoader().then(()=>!te.isUnmounted&&Fe()):Fe()}else{const Fe=te.subTree=Mf(te);S(null,Fe,Ne,De,te,ke,Ve),de.el=Fe.el}if(At&&xo(At,ke),!we&&(Je=He&&He.onVnodeMounted)){const Fe=de;xo(()=>Kr(Je,tt,Fe),ke)}de.shapeFlag&256&&te.a&&xo(te.a,ke),te.isMounted=!0,de=Ne=De=null}},ge=te.effect=new Yp(re,()=>i2(te.update),te.scope),Te=te.update=ge.run.bind(ge);Te.id=te.uid,di(te,!0),Te()},q=(te,de,Ne)=>{de.component=te;const De=te.vnode.props;te.vnode=de,te.next=null,E_(te,de.props,De,Ne),T_(te,de.children,Ne),Gi(),t0(void 0,te.update),Xi()},ce=(te,de,Ne,De,ke,Ve,ie,re,ge=!1)=>{const Te=te&&te.children,Je=te?te.shapeFlag:0,he=de.children,{patchFlag:He,shapeFlag:pt}=de;if(He>0){if(He&128){ne(Te,he,Ne,De,ke,Ve,ie,re,ge);return}else if(He&256){ue(Te,he,Ne,De,ke,Ve,ie,re,ge);return}}pt&8?(Je&16&&Me(Te,ke,Ve),he!==Te&&m(Ne,he)):Je&16?pt&16?ne(Te,he,Ne,De,ke,Ve,ie,re,ge):Me(Te,ke,Ve,!0):(Je&8&&m(Ne,""),pt&16&&Y(he,Ne,De,ke,Ve,ie,re,ge))},ue=(te,de,Ne,De,ke,Ve,ie,re,ge)=>{te=te||Ia,de=de||Ia;const Te=te.length,Je=de.length,he=Math.min(Te,Je);let He;for(He=0;He<he;He++){const pt=de[He]=ge?Ps(de[He]):Yr(de[He]);S(te[He],pt,Ne,null,ke,Ve,ie,re,ge)}Te>Je?Me(te,ke,Ve,!0,!1,he):Y(de,Ne,De,ke,Ve,ie,re,ge,he)},ne=(te,de,Ne,De,ke,Ve,ie,re,ge)=>{let Te=0;const Je=de.length;let he=te.length-1,He=Je-1;for(;Te<=he&&Te<=He;){const pt=te[Te],At=de[Te]=ge?Ps(de[Te]):Yr(de[Te]);if(Ci(pt,At))S(pt,At,Ne,null,ke,Ve,ie,re,ge);else break;Te++}for(;Te<=he&&Te<=He;){const pt=te[he],At=de[He]=ge?Ps(de[He]):Yr(de[He]);if(Ci(pt,At))S(pt,At,Ne,null,ke,Ve,ie,re,ge);else break;he--,He--}if(Te>he){if(Te<=He){const pt=He+1,At=pt<Je?de[pt].el:De;for(;Te<=He;)S(null,de[Te]=ge?Ps(de[Te]):Yr(de[Te]),Ne,At,ke,Ve,ie,re,ge),Te++}}else if(Te>He)for(;Te<=he;)Ee(te[Te],ke,Ve,!0),Te++;else{const pt=Te,At=Te,tt=new Map;for(Te=At;Te<=He;Te++){const Tt=de[Te]=ge?Ps(de[Te]):Yr(de[Te]);Tt.key!=null&&tt.set(Tt.key,Te)}let we,Fe=0;const _e=He-At+1;let Ye=!1,Le=0;const Mt=new Array(_e);for(Te=0;Te<_e;Te++)Mt[Te]=0;for(Te=pt;Te<=he;Te++){const Tt=te[Te];if(Fe>=_e){Ee(Tt,ke,Ve,!0);continue}let cn;if(Tt.key!=null)cn=tt.get(Tt.key);else for(we=At;we<=He;we++)if(Mt[we-At]===0&&Ci(Tt,de[we])){cn=we;break}cn===void 0?Ee(Tt,ke,Ve,!0):(Mt[cn-At]=Te+1,cn>=Le?Le=cn:Ye=!0,S(Tt,de[cn],Ne,null,ke,Ve,ie,re,ge),Fe++)}const Nt=Ye?x_(Mt):Ia;for(we=Nt.length-1,Te=_e-1;Te>=0;Te--){const Tt=At+Te,cn=de[Tt],co=Tt+1<Je?de[Tt+1].el:De;Mt[Te]===0?S(null,cn,Ne,co,ke,Ve,ie,re,ge):Ye&&(we<0||Te!==Nt[we]?Se(cn,Ne,co,2):we--)}}},Se=(te,de,Ne,De,ke=null)=>{const{el:Ve,type:ie,transition:re,children:ge,shapeFlag:Te}=te;if(Te&6){Se(te.component.subTree,de,Ne,De);return}if(Te&128){te.suspense.move(de,Ne,De);return}if(Te&64){ie.move(te,de,Ne,Ze);return}if(ie===at){o(Ve,de,Ne);for(let he=0;he<ge.length;he++)Se(ge[he],de,Ne,De);o(te.anchor,de,Ne);return}if(ie===Df){O(te,de,Ne);return}if(De!==2&&Te&1&&re)if(De===0)re.beforeEnter(Ve),o(Ve,de,Ne),xo(()=>re.enter(Ve),ke);else{const{leave:he,delayLeave:He,afterLeave:pt}=re,At=()=>o(Ve,de,Ne),tt=()=>{he(Ve,()=>{At(),pt&&pt()})};He?He(Ve,At,tt):tt()}else o(Ve,de,Ne)},Ee=(te,de,Ne,De=!1,ke=!1)=>{const{type:Ve,props:ie,ref:re,children:ge,dynamicChildren:Te,shapeFlag:Je,patchFlag:he,dirs:He}=te;if(re!=null&&Mh(re,null,Ne,te,!0),Je&256){de.ctx.deactivate(te);return}const pt=Je&1&&He,At=!Qc(te);let tt;if(At&&(tt=ie&&ie.onVnodeBeforeUnmount)&&Kr(tt,de,te),Je&6)pe(te.component,Ne,De);else{if(Je&128){te.suspense.unmount(Ne,De);return}pt&&ci(te,null,de,"beforeUnmount"),Je&64?te.type.remove(te,de,Ne,ke,Ze,De):Te&&(Ve!==at||he>0&&he&64)?Me(Te,de,Ne,!1,!0):(Ve===at&&he&384||!ke&&Je&16)&&Me(ge,de,Ne),De&&qe(te)}(At&&(tt=ie&&ie.onVnodeUnmounted)||pt)&&xo(()=>{tt&&Kr(tt,de,te),pt&&ci(te,null,de,"unmounted")},Ne)},qe=te=>{const{type:de,el:Ne,anchor:De,transition:ke}=te;if(de===at){xe(Ne,De);return}if(de===Df){D(te);return}const Ve=()=>{s(Ne),ke&&!ke.persisted&&ke.afterLeave&&ke.afterLeave()};if(te.shapeFlag&1&&ke&&!ke.persisted){const{leave:ie,delayLeave:re}=ke,ge=()=>ie(Ne,Ve);re?re(te.el,Ve,ge):ge()}else Ve()},xe=(te,de)=>{let Ne;for(;te!==de;)Ne=v(te),s(te),te=Ne;s(de)},pe=(te,de,Ne)=>{const{bum:De,scope:ke,update:Ve,subTree:ie,um:re}=te;De&&vc(De),ke.stop(),Ve&&(Ve.active=!1,Ee(ie,te,de,Ne)),re&&xo(re,de),xo(()=>{te.isUnmounted=!0},de),de&&de.pendingBranch&&!de.isUnmounted&&te.asyncDep&&!te.asyncResolved&&te.suspenseId===de.pendingId&&(de.deps--,de.deps===0&&de.resolve())},Me=(te,de,Ne,De=!1,ke=!1,Ve=0)=>{for(let ie=Ve;ie<te.length;ie++)Ee(te[ie],de,Ne,De,ke)},We=te=>te.shapeFlag&6?We(te.component.subTree):te.shapeFlag&128?te.suspense.next():v(te.anchor||te.el),ze=(te,de,Ne)=>{te==null?de._vnode&&Ee(de._vnode,null,null,!0):S(de._vnode||null,te,de,null,null,null,Ne),u2(),de._vnode=te},Ze={p:S,um:Ee,m:Se,r:qe,mt:ee,mc:Y,pc:ce,pbc:K,n:We,o:e};let mt,ot;return t&&([mt,ot]=t(Ze)),{render:ze,hydrate:mt,createApp:__(ze,mt)}}function di({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function s0(e,t,n=!1){const o=e.children,s=t.children;if(wt(o)&&wt(s))for(let i=0;i<o.length;i++){const l=o[i];let c=s[i];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=s[i]=Ps(s[i]),c.el=l.el),n||s0(l,c))}}function x_(e){const t=e.slice(),n=[0];let o,s,i,l,c;const f=e.length;for(o=0;o<f;o++){const p=e[o];if(p!==0){if(s=n[n.length-1],e[s]<p){t[o]=s,n.push(o);continue}for(i=0,l=n.length-1;i<l;)c=i+l>>1,e[n[c]]<p?i=c+1:l=c;p<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}const M_=e=>e.__isTeleport,zl=e=>e&&(e.disabled||e.disabled===""),Yg=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Oh=(e,t)=>{const n=e&&e.to;return _t(n)?t?t(n):null:n},O_={__isTeleport:!0,process(e,t,n,o,s,i,l,c,f,p){const{mc:m,pc:y,pbc:v,o:{insert:w,querySelector:E,createText:I,createComment:S}}=p,T=zl(t.props);let{shapeFlag:_,children:N,dynamicChildren:O}=t;if(e==null){const D=t.el=I(""),x=t.anchor=I("");w(D,n,o),w(x,n,o);const R=t.target=Oh(t.props,E),B=t.targetAnchor=I("");R&&(w(B,R),l=l||Yg(R));const Y=(X,K)=>{_&16&&m(N,X,K,s,i,l,c,f)};T?Y(n,x):R&&Y(R,B)}else{t.el=e.el;const D=t.anchor=e.anchor,x=t.target=e.target,R=t.targetAnchor=e.targetAnchor,B=zl(e.props),Y=B?n:x,X=B?D:R;if(l=l||Yg(x),O?(v(e.dynamicChildren,O,Y,s,i,l,c),s0(e,t,!0)):f||y(e,t,Y,X,s,i,l,c,!1),T)B||ec(t,n,D,p,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=t.target=Oh(t.props,E);K&&ec(t,K,null,p,0)}else B&&ec(t,x,R,p,1)}},remove(e,t,n,o,{um:s,o:{remove:i}},l){const{shapeFlag:c,children:f,anchor:p,targetAnchor:m,target:y,props:v}=e;if(y&&i(m),(l||!zl(v))&&(i(p),c&16))for(let w=0;w<f.length;w++){const E=f[w];s(E,t,n,!0,!!E.dynamicChildren)}},move:ec,hydrate:D_};function ec(e,t,n,{o:{insert:o},m:s},i=2){i===0&&o(e.targetAnchor,t,n);const{el:l,anchor:c,shapeFlag:f,children:p,props:m}=e,y=i===2;if(y&&o(l,t,n),(!y||zl(m))&&f&16)for(let v=0;v<p.length;v++)s(p[v],t,n,2);y&&o(c,t,n)}function D_(e,t,n,o,s,i,{o:{nextSibling:l,parentNode:c,querySelector:f}},p){const m=t.target=Oh(t.props,f);if(m){const y=m._lpa||m.firstChild;t.shapeFlag&16&&(zl(t.props)?(t.anchor=p(l(e),t,c(e),n,o,s,i),t.targetAnchor=y):(t.anchor=l(e),t.targetAnchor=p(y,t,m,n,o,s,i)),m._lpa=t.targetAnchor&&l(t.targetAnchor))}return t.anchor&&l(t.anchor)}const Iu=O_,i0="components",$_="directives";function Ae(e,t){return a0(i0,e,!0,t)||e}const _2=Symbol();function Xt(e){return _t(e)?a0(i0,e,!1)||e:e||_2}function qo(e){return a0($_,e)}function a0(e,t,n=!0,o=!1){const s=po||Qn;if(s){const i=s.type;if(e===i0){const c=$2(i);if(c&&(c===t||c===hr(t)||c===Vo(hr(t))))return i}const l=Gg(s[e]||i[e],t)||Gg(s.appContext[e],t);return!l&&o?i:l}}function Gg(e,t){return e&&(e[t]||e[hr(t)]||e[Vo(hr(t))])}const at=Symbol(void 0),_u=Symbol(void 0),So=Symbol(void 0),Df=Symbol(void 0),Ul=[];let Oi=null;function M(e=!1){Ul.push(Oi=e?null:[])}function R_(){Ul.pop(),Oi=Ul[Ul.length-1]||null}let ed=1;function Xg(e){ed+=e}function N2(e){return e.dynamicChildren=ed>0?Oi||Ia:null,R_(),ed>0&&Oi&&Oi.push(e),e}function W(e,t,n,o,s,i){return N2(Q(e,t,n,o,s,i,!0))}function me(e,t,n,o,s){return N2(le(e,t,n,o,s,!0))}function On(e){return e?e.__v_isVNode===!0:!1}function Ci(e,t){return e.type===t.type&&e.key===t.key}const Ld="__vInternal",k2=({key:e})=>e!=null?e:null,yc=({ref:e,ref_key:t,ref_for:n})=>e!=null?_t(e)||wn(e)||It(e)?{i:po,r:e,k:t,f:!!n}:e:null;function Q(e,t=null,n=null,o=0,s=null,i=e===at?0:1,l=!1,c=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&k2(t),ref:t&&yc(t),scopeId:f2,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null};return c?(l0(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=_t(n)?8:16),ed>0&&!l&&Oi&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&Oi.push(f),f}const le=L_;function L_(e,t=null,n=null,o=0,s=null,i=!1){if((!e||e===_2)&&(e=So),On(e)){const c=Gs(e,t,!0);return n&&l0(c,n),c}if(Y_(e)&&(e=e.__vccOpts),t){t=Ys(t);let{class:c,style:f}=t;c&&!_t(c)&&(t.class=P(c)),Kt(f)&&(e2(f)&&!wt(f)&&(f=Jn({},f)),t.style=st(f))}const l=_t(e)?1:s_(e)?128:M_(e)?64:Kt(e)?4:It(e)?2:0;return Q(e,t,n,o,s,l,i,!0)}function Ys(e){return e?e2(e)||Ld in e?Jn({},e):e:null}function Gs(e,t,n=!1){const{props:o,ref:s,patchFlag:i,children:l}=e,c=t?pn(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&k2(c),ref:t&&t.ref?n&&s?wt(s)?s.concat(yc(t)):[s,yc(t)]:yc(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==at?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gs(e.ssContent),ssFallback:e.ssFallback&&Gs(e.ssFallback),el:e.el,anchor:e.anchor}}function Ht(e=" ",t=0){return le(_u,null,e,t)}function fe(e="",t=!1){return t?(M(),me(So,null,e)):le(So,null,e)}function Yr(e){return e==null||typeof e=="boolean"?le(So):wt(e)?le(at,null,e.slice()):typeof e=="object"?Ps(e):le(_u,null,String(e))}function Ps(e){return e.el===null||e.memo?e:Gs(e)}function l0(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(wt(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),l0(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Ld in t)?t._ctx=po:s===3&&po&&(po.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else It(t)?(t={default:t,_ctx:po},n=32):(t=String(t),o&64?(n=16,t=[Ht(t)]):n=8);e.children=t,e.shapeFlag|=n}function pn(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=P([t.class,o.class]));else if(s==="style")t.style=st([t.style,o.style]);else if(Nd(s)){const i=t[s],l=o[s];l&&i!==l&&!(wt(i)&&i.includes(l))&&(t[s]=i?[].concat(i,l):l)}else s!==""&&(t[s]=o[s])}return t}function Kr(e,t,n,o=null){cr(e,t,7,[n,o])}function zt(e,t,n,o){let s;const i=n&&n[o];if(wt(e)||_t(e)){s=new Array(e.length);for(let l=0,c=e.length;l<c;l++)s[l]=t(e[l],l,void 0,i&&i[l])}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,i&&i[l])}else if(Kt(e))if(e[Symbol.iterator])s=Array.from(e,(l,c)=>t(l,c,void 0,i&&i[c]));else{const l=Object.keys(e);s=new Array(l.length);for(let c=0,f=l.length;c<f;c++){const p=l[c];s[c]=t(e[p],p,c,i&&i[c])}}else s=[];return n&&(n[o]=s),s}function Xs(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(wt(o))for(let s=0;s<o.length;s++)e[o[s].name]=o[s].fn;else o&&(e[o.name]=o.fn)}return e}function Ie(e,t,n={},o,s){if(po.isCE||po.parent&&Qc(po.parent)&&po.parent.isCE)return le("slot",t==="default"?null:{name:t},o&&o());let i=e[t];i&&i._c&&(i._d=!1),M();const l=i&&x2(i(n)),c=me(at,{key:n.key||`_${t}`},l||(o?o():[]),l&&e._===1?64:-2);return!s&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function x2(e){return e.some(t=>On(t)?!(t.type===So||t.type===at&&!x2(t.children)):!0)?e:null}function P_(e){const t={};for(const n in e)t[mc(n)]=e[n];return t}const Dh=e=>e?M2(e)?Pd(e)||e.proxy:Dh(e.parent):null,td=Jn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Dh(e.parent),$root:e=>Dh(e.root),$emit:e=>e.emit,$options:e=>w2(e),$forceUpdate:e=>()=>i2(e.update),$nextTick:e=>dt.bind(e.proxy),$watch:e=>a_.bind(e)}),B_={get({_:e},t){const{ctx:n,setupState:o,data:s,props:i,accessCache:l,type:c,appContext:f}=e;let p;if(t[0]!=="$"){const w=l[t];if(w!==void 0)switch(w){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(o!==bn&&Bt(o,t))return l[t]=1,o[t];if(s!==bn&&Bt(s,t))return l[t]=2,s[t];if((p=e.propsOptions[0])&&Bt(p,t))return l[t]=3,i[t];if(n!==bn&&Bt(n,t))return l[t]=4,n[t];Nh&&(l[t]=0)}}const m=td[t];let y,v;if(m)return t==="$attrs"&&Xo(e,"get",t),m(e);if((y=c.__cssModules)&&(y=y[t]))return y;if(n!==bn&&Bt(n,t))return l[t]=4,n[t];if(v=f.config.globalProperties,Bt(v,t))return v[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return s!==bn&&Bt(s,t)?(s[t]=n,!0):o!==bn&&Bt(o,t)?(o[t]=n,!0):Bt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,propsOptions:i}},l){let c;return!!n[l]||e!==bn&&Bt(e,l)||t!==bn&&Bt(t,l)||(c=i[0])&&Bt(c,l)||Bt(o,l)||Bt(td,l)||Bt(s.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Bt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},F_=I2();let V_=0;function H_(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||F_,i={uid:V_++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Hb(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:E2(o,s),emitsOptions:d2(o,s),emit:null,emitted:null,propsDefaults:bn,inheritAttrs:o.inheritAttrs,ctx:bn,data:bn,props:bn,attrs:bn,slots:bn,refs:bn,setupState:bn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=e_.bind(null,i),e.ce&&e.ce(i),i}let Qn=null;const Dt=()=>Qn||po,Ha=e=>{Qn=e,e.scope.on()},Di=()=>{Qn&&Qn.scope.off(),Qn=null};function M2(e){return e.vnode.shapeFlag&4}let ou=!1;function z_(e,t=!1){ou=t;const{props:n,children:o}=e.vnode,s=M2(e);C_(e,n,s,t),A_(e,o);const i=s?U_(e,t):void 0;return ou=!1,i}function U_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ql(new Proxy(e.ctx,B_));const{setup:o}=n;if(o){const s=e.setupContext=o.length>1?D2(e):null;Ha(e),Gi();const i=us(o,e,0,[e.props,s]);if(Xi(),Di(),Hi(i)){if(i.then(Di,Di),t)return i.then(l=>{qg(e,l,t)}).catch(l=>{Od(l,e,0)});e.asyncDep=i}else qg(e,i,t)}else O2(e,t)}function qg(e,t,n){It(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Kt(t)&&(e.setupState=o2(t)),O2(e,n)}let Zg;function O2(e,t,n){const o=e.type;if(!e.render){if(!t&&Zg&&!o.render){const s=o.template;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:c,compilerOptions:f}=o,p=Jn(Jn({isCustomElement:i,delimiters:c},l),f);o.render=Zg(s,p)}}e.render=o.render||on}Ha(e),Gi(),m_(e),Xi(),Di()}function W_(e){return new Proxy(e.attrs,{get(t,n){return Xo(e,"get","$attrs"),t[n]}})}function D2(e){const t=o=>{e.exposed=o||{}};let n;return{get attrs(){return n||(n=W_(e))},slots:e.slots,emit:e.emit,expose:t}}function Pd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(o2(Ql(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in td)return td[n](e)}}))}const j_=/(?:^|[-_])(\w)/g,K_=e=>e.replace(j_,t=>t.toUpperCase()).replace(/[-_]/g,"");function $2(e){return It(e)&&e.displayName||e.name}function R2(e,t,n=!1){let o=$2(t);if(!o&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(o=s[1])}if(!o&&e&&e.parent){const s=i=>{for(const l in i)if(i[l]===t)return l};o=s(e.components||e.parent.type.components)||s(e.appContext.components)}return o?K_(o):n?"App":"Anonymous"}function Y_(e){return It(e)&&"__vccOpts"in e}const $=(e,t)=>UI(e,t,ou);function Nu(){return P2().slots}function L2(){return P2().attrs}function P2(){const e=Dt();return e.setupContext||(e.setupContext=D2(e))}function it(e,t,n){const o=arguments.length;return o===2?Kt(t)&&!wt(t)?On(t)?le(e,null,[t]):le(e,t):le(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&On(n)&&(n=[n]),le(e,t,n))}const G_="3.2.33",X_="http://www.w3.org/2000/svg",Ei=typeof document!="undefined"?document:null,Qg=Ei&&Ei.createElement("template"),q_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t?Ei.createElementNS(X_,e):Ei.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>Ei.createTextNode(e),createComment:e=>Ei.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ei.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o,s,i){const l=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Qg.innerHTML=o?`<svg>${e}</svg>`:e;const c=Qg.content;if(o){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Z_(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Q_(e,t,n){const o=e.style,s=_t(n);if(n&&!s){for(const i in n)$h(o,i,n[i]);if(t&&!_t(t))for(const i in t)n[i]==null&&$h(o,i,"")}else{const i=o.display;s?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}const Jg=/\s*!important$/;function $h(e,t,n){if(wt(n))n.forEach(o=>$h(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=J_(e,t);Jg.test(n)?e.setProperty(ei(o),n.replace(Jg,""),"important"):e[o]=n}}const em=["Webkit","Moz","ms"],$f={};function J_(e,t){const n=$f[t];if(n)return n;let o=hr(t);if(o!=="filter"&&o in e)return $f[t]=o;o=Vo(o);for(let s=0;s<em.length;s++){const i=em[s]+o;if(i in e)return $f[t]=i}return t}const tm="http://www.w3.org/1999/xlink";function eN(e,t,n,o,s){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(tm,t.slice(6,t.length)):e.setAttributeNS(tm,t,n);else{const i=J8(t);n==null||i&&!Lb(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function tN(e,t,n,o,s,i,l){if(t==="innerHTML"||t==="textContent"){o&&l(o,s,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const f=n==null?"":n;(e.value!==f||e.tagName==="OPTION")&&(e.value=f),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Lb(n):n==null&&f==="string"?(n="",c=!0):f==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}const[B2,nN]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Rh=0;const oN=Promise.resolve(),rN=()=>{Rh=0},sN=()=>Rh||(oN.then(rN),Rh=B2());function Bs(e,t,n,o){e.addEventListener(t,n,o)}function iN(e,t,n,o){e.removeEventListener(t,n,o)}function aN(e,t,n,o,s=null){const i=e._vei||(e._vei={}),l=i[t];if(o&&l)l.value=o;else{const[c,f]=lN(t);if(o){const p=i[t]=uN(o,s);Bs(e,c,p,f)}else l&&(iN(e,c,l,f),i[t]=void 0)}}const nm=/(?:Once|Passive|Capture)$/;function lN(e){let t;if(nm.test(e)){t={};let n;for(;n=e.match(nm);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[ei(e.slice(2)),t]}function uN(e,t){const n=o=>{const s=o.timeStamp||B2();(nN||s>=n.attached-1)&&cr(cN(o,n.value),t,5,[o])};return n.value=e,n.attached=sN(),n}function cN(e,t){if(wt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const om=/^on[a-z]/,dN=(e,t,n,o,s=!1,i,l,c,f)=>{t==="class"?Z_(e,o,s):t==="style"?Q_(e,n,o):Nd(t)?zp(t)||aN(e,t,n,o,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):fN(e,t,o,s))?tN(e,t,o,i,l,c,f):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),eN(e,t,o,s))};function fN(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&om.test(t)&&It(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||om.test(t)&&_t(n)?!1:t in e}const Os="transition",Al="animation",$n=(e,{slots:t})=>it(g2,V2(e),t);$n.displayName="Transition";const F2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},hN=$n.props=Jn({},g2.props,F2),fi=(e,t=[])=>{wt(e)?e.forEach(n=>n(...t)):e&&e(...t)},rm=e=>e?wt(e)?e.some(t=>t.length>1):e.length>1:!1;function V2(e){const t={};for(const J in e)J in F2||(t[J]=e[J]);if(e.css===!1)return t;const{name:n="v",type:o,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:f=i,appearActiveClass:p=l,appearToClass:m=c,leaveFromClass:y=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,E=pN(s),I=E&&E[0],S=E&&E[1],{onBeforeEnter:T,onEnter:_,onEnterCancelled:N,onLeave:O,onLeaveCancelled:D,onBeforeAppear:x=T,onAppear:R=_,onAppearCancelled:B=N}=t,Y=(J,G,z)=>{vi(J,G?m:c),vi(J,G?p:l),z&&z()},X=(J,G)=>{vi(J,w),vi(J,v),G&&G()},K=J=>(G,z)=>{const ee=J?R:_,j=()=>Y(G,J,z);fi(ee,[G,j]),sm(()=>{vi(G,J?f:i),ss(G,J?m:c),rm(ee)||im(G,o,I,j)})};return Jn(t,{onBeforeEnter(J){fi(T,[J]),ss(J,i),ss(J,l)},onBeforeAppear(J){fi(x,[J]),ss(J,f),ss(J,p)},onEnter:K(!1),onAppear:K(!0),onLeave(J,G){const z=()=>X(J,G);ss(J,y),z2(),ss(J,v),sm(()=>{vi(J,y),ss(J,w),rm(O)||im(J,o,S,z)}),fi(O,[J,z])},onEnterCancelled(J){Y(J,!1),fi(N,[J])},onAppearCancelled(J){Y(J,!0),fi(B,[J])},onLeaveCancelled(J){X(J),fi(D,[J])}})}function pN(e){if(e==null)return null;if(Kt(e))return[Rf(e.enter),Rf(e.leave)];{const t=Rf(e);return[t,t]}}function Rf(e){return Xc(e)}function ss(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function vi(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function sm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gN=0;function im(e,t,n,o){const s=e._endId=++gN,i=()=>{s===e._endId&&o()};if(n)return setTimeout(i,n);const{type:l,timeout:c,propCount:f}=H2(e,t);if(!l)return o();const p=l+"end";let m=0;const y=()=>{e.removeEventListener(p,v),i()},v=w=>{w.target===e&&++m>=f&&y()};setTimeout(()=>{m<f&&y()},c+1),e.addEventListener(p,v)}function H2(e,t){const n=window.getComputedStyle(e),o=E=>(n[E]||"").split(", "),s=o(Os+"Delay"),i=o(Os+"Duration"),l=am(s,i),c=o(Al+"Delay"),f=o(Al+"Duration"),p=am(c,f);let m=null,y=0,v=0;t===Os?l>0&&(m=Os,y=l,v=i.length):t===Al?p>0&&(m=Al,y=p,v=f.length):(y=Math.max(l,p),m=y>0?l>p?Os:Al:null,v=m?m===Os?i.length:f.length:0);const w=m===Os&&/\b(transform|all)(,|$)/.test(n[Os+"Property"]);return{type:m,timeout:y,propCount:v,hasTransform:w}}function am(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>lm(n)+lm(e[o])))}function lm(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function z2(){return document.body.offsetHeight}const U2=new WeakMap,W2=new WeakMap,mN={name:"TransitionGroup",props:Jn({},hN,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dt(),o=p2();let s,i;return br(()=>{if(!s.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!CN(s[0].el,n.vnode.el,l))return;s.forEach(yN),s.forEach(bN);const c=s.filter(wN);z2(),c.forEach(f=>{const p=f.el,m=p.style;ss(p,l),m.transform=m.webkitTransform=m.transitionDuration="";const y=p._moveCb=v=>{v&&v.target!==p||(!v||/transform$/.test(v.propertyName))&&(p.removeEventListener("transitionend",y),p._moveCb=null,vi(p,l))};p.addEventListener("transitionend",y)})}),()=>{const l=an(e),c=V2(l);let f=l.tag||at;s=i,i=t.default?o0(t.default()):[];for(let p=0;p<i.length;p++){const m=i[p];m.key!=null&&nu(m,tu(m,c,o,n))}if(s)for(let p=0;p<s.length;p++){const m=s[p];nu(m,tu(m,c,o,n)),U2.set(m,m.el.getBoundingClientRect())}return le(f,null,i)}}},vN=mN;function yN(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function bN(e){W2.set(e,e.el.getBoundingClientRect())}function wN(e){const t=U2.get(e),n=W2.get(e),o=t.left-n.left,s=t.top-n.top;if(o||s){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${o}px,${s}px)`,i.transitionDuration="0s",e}}function CN(e,t,n){const o=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(c=>c&&o.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&o.classList.add(l)),o.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(o);const{hasTransform:i}=H2(o);return s.removeChild(o),i}const za=e=>{const t=e.props["onUpdate:modelValue"];return wt(t)?n=>vc(t,n):t};function EN(e){e.target.composing=!0}function um(e){const t=e.target;t.composing&&(t.composing=!1,SN(t,"input"))}function SN(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const u0={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e._assign=za(s);const i=o||s.props&&s.props.type==="number";Bs(e,t?"change":"input",l=>{if(l.target.composing)return;let c=e.value;n?c=c.trim():i&&(c=Xc(c)),e._assign(c)}),n&&Bs(e,"change",()=>{e.value=e.value.trim()}),t||(Bs(e,"compositionstart",EN),Bs(e,"compositionend",um),Bs(e,"change",um))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:s}},i){if(e._assign=za(i),e.composing||document.activeElement===e&&(n||o&&e.value.trim()===t||(s||e.type==="number")&&Xc(e.value)===t))return;const l=t==null?"":t;e.value!==l&&(e.value=l)}},nd={deep:!0,created(e,t,n){e._assign=za(n),Bs(e,"change",()=>{const o=e._modelValue,s=K2(e),i=e.checked,l=e._assign;if(wt(o)){const c=Pb(o,s),f=c!==-1;if(i&&!f)l(o.concat(s));else if(!i&&f){const p=[...o];p.splice(c,1),l(p)}}else if(kd(o)){const c=new Set(o);i?c.add(s):c.delete(s),l(c)}else l(Y2(e,i))})},mounted:cm,beforeUpdate(e,t,n){e._assign=za(n),cm(e,t,n)}};function cm(e,{value:t,oldValue:n},o){e._modelValue=t,wt(t)?e.checked=Pb(t,o.props.value)>-1:kd(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=Va(t,Y2(e,!0)))}const j2={created(e,{value:t},n){e.checked=Va(t,n.props.value),e._assign=za(n),Bs(e,"change",()=>{e._assign(K2(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=za(o),t!==n&&(e.checked=Va(t,o.props.value))}};function K2(e){return"_value"in e?e._value:e.value}function Y2(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const AN=["ctrl","shift","alt","meta"],TN={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>AN.some(n=>e[`${n}Key`]&&!t.includes(n))},vt=(e,t)=>(n,...o)=>{for(let s=0;s<t.length;s++){const i=TN[t[s]];if(i&&i(n,t))return}return e(n,...o)},IN={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ft=(e,t)=>n=>{if(!("key"in n))return;const o=ei(n.key);if(t.some(s=>s===o||IN[s]===o))return e(n)},Zt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Tl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Tl(e,!0),o.enter(e)):o.leave(e,()=>{Tl(e,!1)}):Tl(e,t))},beforeUnmount(e,{value:t}){Tl(e,t)}};function Tl(e,t){e.style.display=t?e._vod:"none"}const _N=Jn({patchProp:dN},q_);let dm;function G2(){return dm||(dm=N_(_N))}const Ua=(...e)=>{G2().render(...e)},X2=(...e)=>{const t=G2().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=NN(o);if(!s)return;const i=t._component;!It(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const l=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t};function NN(e){return _t(e)?document.querySelector(e):e}var kN=typeof global=="object"&&global&&global.Object===Object&&global,q2=kN,xN=typeof self=="object"&&self&&self.Object===Object&&self,MN=q2||xN||Function("return this")(),Pr=MN,ON=Pr.Symbol,pr=ON,Z2=Object.prototype,DN=Z2.hasOwnProperty,$N=Z2.toString,Il=pr?pr.toStringTag:void 0;function RN(e){var t=DN.call(e,Il),n=e[Il];try{e[Il]=void 0;var o=!0}catch{}var s=$N.call(e);return o&&(t?e[Il]=n:delete e[Il]),s}var LN=Object.prototype,PN=LN.toString;function BN(e){return PN.call(e)}var FN="[object Null]",VN="[object Undefined]",fm=pr?pr.toStringTag:void 0;function tl(e){return e==null?e===void 0?VN:FN:fm&&fm in Object(e)?RN(e):BN(e)}function ps(e){return e!=null&&typeof e=="object"}var HN="[object Symbol]";function Bd(e){return typeof e=="symbol"||ps(e)&&tl(e)==HN}function zN(e,t){for(var n=-1,o=e==null?0:e.length,s=Array(o);++n<o;)s[n]=t(e[n],n,e);return s}var UN=Array.isArray,Mr=UN,WN=1/0,hm=pr?pr.prototype:void 0,pm=hm?hm.toString:void 0;function Q2(e){if(typeof e=="string")return e;if(Mr(e))return zN(e,Q2)+"";if(Bd(e))return pm?pm.call(e):"";var t=e+"";return t=="0"&&1/e==-WN?"-0":t}var jN=/\s/;function KN(e){for(var t=e.length;t--&&jN.test(e.charAt(t)););return t}var YN=/^\s+/;function GN(e){return e&&e.slice(0,KN(e)+1).replace(YN,"")}function Or(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gm=0/0,XN=/^[-+]0x[0-9a-f]+$/i,qN=/^0b[01]+$/i,ZN=/^0o[0-7]+$/i,QN=parseInt;function mm(e){if(typeof e=="number")return e;if(Bd(e))return gm;if(Or(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Or(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=GN(e);var n=qN.test(e);return n||ZN.test(e)?QN(e.slice(2),n?2:8):XN.test(e)?gm:+e}function J2(e){return e}var JN="[object AsyncFunction]",ek="[object Function]",tk="[object GeneratorFunction]",nk="[object Proxy]";function ew(e){if(!Or(e))return!1;var t=tl(e);return t==ek||t==tk||t==JN||t==nk}var ok=Pr["__core-js_shared__"],Lf=ok,vm=function(){var e=/[^.]+$/.exec(Lf&&Lf.keys&&Lf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function rk(e){return!!vm&&vm in e}var sk=Function.prototype,ik=sk.toString;function qi(e){if(e!=null){try{return ik.call(e)}catch{}try{return e+""}catch{}}return""}var ak=/[\\^$.*+?()[\]{}|]/g,lk=/^\[object .+?Constructor\]$/,uk=Function.prototype,ck=Object.prototype,dk=uk.toString,fk=ck.hasOwnProperty,hk=RegExp("^"+dk.call(fk).replace(ak,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pk(e){if(!Or(e)||rk(e))return!1;var t=ew(e)?hk:lk;return t.test(qi(e))}function gk(e,t){return e==null?void 0:e[t]}function Zi(e,t){var n=gk(e,t);return pk(n)?n:void 0}var mk=Zi(Pr,"WeakMap"),Lh=mk,ym=Object.create,vk=function(){function e(){}return function(t){if(!Or(t))return{};if(ym)return ym(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),yk=vk;function bk(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wk(){}function Ck(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}var Ek=800,Sk=16,Ak=Date.now;function Tk(e){var t=0,n=0;return function(){var o=Ak(),s=Sk-(o-n);if(n=o,s>0){if(++t>=Ek)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ik(e){return function(){return e}}var _k=function(){try{var e=Zi(Object,"defineProperty");return e({},"",{}),e}catch{}}(),od=_k,Nk=od?function(e,t){return od(e,"toString",{configurable:!0,enumerable:!1,value:Ik(t),writable:!0})}:J2,kk=Nk,xk=Tk(kk),tw=xk;function Mk(e,t){for(var n=-1,o=e==null?0:e.length;++n<o&&t(e[n],n,e)!==!1;);return e}function Ok(e,t,n,o){for(var s=e.length,i=n+(o?1:-1);o?i--:++i<s;)if(t(e[i],i,e))return i;return-1}function Dk(e){return e!==e}function $k(e,t,n){for(var o=n-1,s=e.length;++o<s;)if(e[o]===t)return o;return-1}function Rk(e,t,n){return t===t?$k(e,t,n):Ok(e,Dk,n)}function Lk(e,t){var n=e==null?0:e.length;return!!n&&Rk(e,t,0)>-1}var Pk=9007199254740991,Bk=/^(?:0|[1-9]\d*)$/;function c0(e,t){var n=typeof e;return t=t==null?Pk:t,!!t&&(n=="number"||n!="symbol"&&Bk.test(e))&&e>-1&&e%1==0&&e<t}function nw(e,t,n){t=="__proto__"&&od?od(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function d0(e,t){return e===t||e!==e&&t!==t}var Fk=Object.prototype,Vk=Fk.hasOwnProperty;function f0(e,t,n){var o=e[t];(!(Vk.call(e,t)&&d0(o,n))||n===void 0&&!(t in e))&&nw(e,t,n)}function Fd(e,t,n,o){var s=!n;n||(n={});for(var i=-1,l=t.length;++i<l;){var c=t[i],f=o?o(n[c],e[c],c,n,e):void 0;f===void 0&&(f=e[c]),s?nw(n,c,f):f0(n,c,f)}return n}var bm=Math.max;function ow(e,t,n){return t=bm(t===void 0?e.length-1:t,0),function(){for(var o=arguments,s=-1,i=bm(o.length-t,0),l=Array(i);++s<i;)l[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=n(l),bk(e,this,c)}}function Hk(e,t){return tw(ow(e,t,J2),e+"")}var zk=9007199254740991;function h0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zk}function p0(e){return e!=null&&h0(e.length)&&!ew(e)}var Uk=Object.prototype;function g0(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Uk;return e===n}function Wk(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}var jk="[object Arguments]";function wm(e){return ps(e)&&tl(e)==jk}var rw=Object.prototype,Kk=rw.hasOwnProperty,Yk=rw.propertyIsEnumerable,Gk=wm(function(){return arguments}())?wm:function(e){return ps(e)&&Kk.call(e,"callee")&&!Yk.call(e,"callee")},m0=Gk;function Xk(){return!1}var sw=typeof Wo=="object"&&Wo&&!Wo.nodeType&&Wo,Cm=sw&&typeof jo=="object"&&jo&&!jo.nodeType&&jo,qk=Cm&&Cm.exports===sw,Em=qk?Pr.Buffer:void 0,Zk=Em?Em.isBuffer:void 0,Qk=Zk||Xk,rd=Qk,Jk="[object Arguments]",ex="[object Array]",tx="[object Boolean]",nx="[object Date]",ox="[object Error]",rx="[object Function]",sx="[object Map]",ix="[object Number]",ax="[object Object]",lx="[object RegExp]",ux="[object Set]",cx="[object String]",dx="[object WeakMap]",fx="[object ArrayBuffer]",hx="[object DataView]",px="[object Float32Array]",gx="[object Float64Array]",mx="[object Int8Array]",vx="[object Int16Array]",yx="[object Int32Array]",bx="[object Uint8Array]",wx="[object Uint8ClampedArray]",Cx="[object Uint16Array]",Ex="[object Uint32Array]",kn={};kn[px]=kn[gx]=kn[mx]=kn[vx]=kn[yx]=kn[bx]=kn[wx]=kn[Cx]=kn[Ex]=!0;kn[Jk]=kn[ex]=kn[fx]=kn[tx]=kn[hx]=kn[nx]=kn[ox]=kn[rx]=kn[sx]=kn[ix]=kn[ax]=kn[lx]=kn[ux]=kn[cx]=kn[dx]=!1;function Sx(e){return ps(e)&&h0(e.length)&&!!kn[tl(e)]}function v0(e){return function(t){return e(t)}}var iw=typeof Wo=="object"&&Wo&&!Wo.nodeType&&Wo,Wl=iw&&typeof jo=="object"&&jo&&!jo.nodeType&&jo,Ax=Wl&&Wl.exports===iw,Pf=Ax&&q2.process,Tx=function(){try{var e=Wl&&Wl.require&&Wl.require("util").types;return e||Pf&&Pf.binding&&Pf.binding("util")}catch{}}(),Wa=Tx,Sm=Wa&&Wa.isTypedArray,Ix=Sm?v0(Sm):Sx,aw=Ix,_x=Object.prototype,Nx=_x.hasOwnProperty;function lw(e,t){var n=Mr(e),o=!n&&m0(e),s=!n&&!o&&rd(e),i=!n&&!o&&!s&&aw(e),l=n||o||s||i,c=l?Wk(e.length,String):[],f=c.length;for(var p in e)(t||Nx.call(e,p))&&!(l&&(p=="length"||s&&(p=="offset"||p=="parent")||i&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||c0(p,f)))&&c.push(p);return c}function uw(e,t){return function(n){return e(t(n))}}var kx=uw(Object.keys,Object),xx=kx,Mx=Object.prototype,Ox=Mx.hasOwnProperty;function Dx(e){if(!g0(e))return xx(e);var t=[];for(var n in Object(e))Ox.call(e,n)&&n!="constructor"&&t.push(n);return t}function y0(e){return p0(e)?lw(e):Dx(e)}function $x(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Rx=Object.prototype,Lx=Rx.hasOwnProperty;function Px(e){if(!Or(e))return $x(e);var t=g0(e),n=[];for(var o in e)o=="constructor"&&(t||!Lx.call(e,o))||n.push(o);return n}function b0(e){return p0(e)?lw(e,!0):Px(e)}var Bx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fx=/^\w*$/;function Vx(e,t){if(Mr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Bd(e)?!0:Fx.test(e)||!Bx.test(e)||t!=null&&e in Object(t)}var Hx=Zi(Object,"create"),ru=Hx;function zx(){this.__data__=ru?ru(null):{},this.size=0}function Ux(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Wx="__lodash_hash_undefined__",jx=Object.prototype,Kx=jx.hasOwnProperty;function Yx(e){var t=this.__data__;if(ru){var n=t[e];return n===Wx?void 0:n}return Kx.call(t,e)?t[e]:void 0}var Gx=Object.prototype,Xx=Gx.hasOwnProperty;function qx(e){var t=this.__data__;return ru?t[e]!==void 0:Xx.call(t,e)}var Zx="__lodash_hash_undefined__";function Qx(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ru&&t===void 0?Zx:t,this}function zi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}zi.prototype.clear=zx;zi.prototype.delete=Ux;zi.prototype.get=Yx;zi.prototype.has=qx;zi.prototype.set=Qx;function Jx(){this.__data__=[],this.size=0}function Vd(e,t){for(var n=e.length;n--;)if(d0(e[n][0],t))return n;return-1}var e6=Array.prototype,t6=e6.splice;function n6(e){var t=this.__data__,n=Vd(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():t6.call(t,n,1),--this.size,!0}function o6(e){var t=this.__data__,n=Vd(t,e);return n<0?void 0:t[n][1]}function r6(e){return Vd(this.__data__,e)>-1}function s6(e,t){var n=this.__data__,o=Vd(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function ys(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}ys.prototype.clear=Jx;ys.prototype.delete=n6;ys.prototype.get=o6;ys.prototype.has=r6;ys.prototype.set=s6;var i6=Zi(Pr,"Map"),su=i6;function a6(){this.size=0,this.__data__={hash:new zi,map:new(su||ys),string:new zi}}function l6(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Hd(e,t){var n=e.__data__;return l6(t)?n[typeof t=="string"?"string":"hash"]:n.map}function u6(e){var t=Hd(this,e).delete(e);return this.size-=t?1:0,t}function c6(e){return Hd(this,e).get(e)}function d6(e){return Hd(this,e).has(e)}function f6(e,t){var n=Hd(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}function bs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}bs.prototype.clear=a6;bs.prototype.delete=u6;bs.prototype.get=c6;bs.prototype.has=d6;bs.prototype.set=f6;var h6="Expected a function";function zd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(h6);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],i=n.cache;if(i.has(s))return i.get(s);var l=e.apply(this,o);return n.cache=i.set(s,l)||i,l};return n.cache=new(zd.Cache||bs),n}zd.Cache=bs;var p6=500;function g6(e){var t=zd(e,function(o){return n.size===p6&&n.clear(),o}),n=t.cache;return t}var m6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v6=/\\(\\)?/g,y6=g6(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(m6,function(n,o,s,i){t.push(s?i.replace(v6,"$1"):o||n)}),t}),b6=y6;function w6(e){return e==null?"":Q2(e)}function Ud(e,t){return Mr(e)?e:Vx(e,t)?[e]:b6(w6(e))}var C6=1/0;function w0(e){if(typeof e=="string"||Bd(e))return e;var t=e+"";return t=="0"&&1/e==-C6?"-0":t}function cw(e,t){t=Ud(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[w0(t[n++])];return n&&n==o?e:void 0}function An(e,t,n){var o=e==null?void 0:cw(e,t);return o===void 0?n:o}function C0(e,t){for(var n=-1,o=t.length,s=e.length;++n<o;)e[s+n]=t[n];return e}var Am=pr?pr.isConcatSpreadable:void 0;function E6(e){return Mr(e)||m0(e)||!!(Am&&e&&e[Am])}function Wd(e,t,n,o,s){var i=-1,l=e.length;for(n||(n=E6),s||(s=[]);++i<l;){var c=e[i];t>0&&n(c)?t>1?Wd(c,t-1,n,o,s):C0(s,c):o||(s[s.length]=c)}return s}function S6(e){var t=e==null?0:e.length;return t?Wd(e,1):[]}function A6(e){return tw(ow(e,void 0,S6),e+"")}var T6=uw(Object.getPrototypeOf,Object),dw=T6;function iu(){if(!arguments.length)return[];var e=arguments[0];return Mr(e)?e:[e]}function I6(){this.__data__=new ys,this.size=0}function _6(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function N6(e){return this.__data__.get(e)}function k6(e){return this.__data__.has(e)}var x6=200;function M6(e,t){var n=this.__data__;if(n instanceof ys){var o=n.__data__;if(!su||o.length<x6-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new bs(o)}return n.set(e,t),this.size=n.size,this}function cs(e){var t=this.__data__=new ys(e);this.size=t.size}cs.prototype.clear=I6;cs.prototype.delete=_6;cs.prototype.get=N6;cs.prototype.has=k6;cs.prototype.set=M6;function O6(e,t){return e&&Fd(t,y0(t),e)}function D6(e,t){return e&&Fd(t,b0(t),e)}var fw=typeof Wo=="object"&&Wo&&!Wo.nodeType&&Wo,Tm=fw&&typeof jo=="object"&&jo&&!jo.nodeType&&jo,$6=Tm&&Tm.exports===fw,Im=$6?Pr.Buffer:void 0,_m=Im?Im.allocUnsafe:void 0;function R6(e,t){if(t)return e.slice();var n=e.length,o=_m?_m(n):new e.constructor(n);return e.copy(o),o}function L6(e,t){for(var n=-1,o=e==null?0:e.length,s=0,i=[];++n<o;){var l=e[n];t(l,n,e)&&(i[s++]=l)}return i}function hw(){return[]}var P6=Object.prototype,B6=P6.propertyIsEnumerable,Nm=Object.getOwnPropertySymbols,F6=Nm?function(e){return e==null?[]:(e=Object(e),L6(Nm(e),function(t){return B6.call(e,t)}))}:hw,E0=F6;function V6(e,t){return Fd(e,E0(e),t)}var H6=Object.getOwnPropertySymbols,z6=H6?function(e){for(var t=[];e;)C0(t,E0(e)),e=dw(e);return t}:hw,pw=z6;function U6(e,t){return Fd(e,pw(e),t)}function gw(e,t,n){var o=t(e);return Mr(e)?o:C0(o,n(e))}function Ph(e){return gw(e,y0,E0)}function W6(e){return gw(e,b0,pw)}var j6=Zi(Pr,"DataView"),Bh=j6,K6=Zi(Pr,"Promise"),Fh=K6,Y6=Zi(Pr,"Set"),ka=Y6,km="[object Map]",G6="[object Object]",xm="[object Promise]",Mm="[object Set]",Om="[object WeakMap]",Dm="[object DataView]",X6=qi(Bh),q6=qi(su),Z6=qi(Fh),Q6=qi(ka),J6=qi(Lh),yi=tl;(Bh&&yi(new Bh(new ArrayBuffer(1)))!=Dm||su&&yi(new su)!=km||Fh&&yi(Fh.resolve())!=xm||ka&&yi(new ka)!=Mm||Lh&&yi(new Lh)!=Om)&&(yi=function(e){var t=tl(e),n=t==G6?e.constructor:void 0,o=n?qi(n):"";if(o)switch(o){case X6:return Dm;case q6:return km;case Z6:return xm;case Q6:return Mm;case J6:return Om}return t});var au=yi,eM=Object.prototype,tM=eM.hasOwnProperty;function nM(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&tM.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var oM=Pr.Uint8Array,sd=oM;function S0(e){var t=new e.constructor(e.byteLength);return new sd(t).set(new sd(e)),t}function rM(e,t){var n=t?S0(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var sM=/\w*$/;function iM(e){var t=new e.constructor(e.source,sM.exec(e));return t.lastIndex=e.lastIndex,t}var $m=pr?pr.prototype:void 0,Rm=$m?$m.valueOf:void 0;function aM(e){return Rm?Object(Rm.call(e)):{}}function lM(e,t){var n=t?S0(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var uM="[object Boolean]",cM="[object Date]",dM="[object Map]",fM="[object Number]",hM="[object RegExp]",pM="[object Set]",gM="[object String]",mM="[object Symbol]",vM="[object ArrayBuffer]",yM="[object DataView]",bM="[object Float32Array]",wM="[object Float64Array]",CM="[object Int8Array]",EM="[object Int16Array]",SM="[object Int32Array]",AM="[object Uint8Array]",TM="[object Uint8ClampedArray]",IM="[object Uint16Array]",_M="[object Uint32Array]";function NM(e,t,n){var o=e.constructor;switch(t){case vM:return S0(e);case uM:case cM:return new o(+e);case yM:return rM(e,n);case bM:case wM:case CM:case EM:case SM:case AM:case TM:case IM:case _M:return lM(e,n);case dM:return new o;case fM:case gM:return new o(e);case hM:return iM(e);case pM:return new o;case mM:return aM(e)}}function kM(e){return typeof e.constructor=="function"&&!g0(e)?yk(dw(e)):{}}var xM="[object Map]";function MM(e){return ps(e)&&au(e)==xM}var Lm=Wa&&Wa.isMap,OM=Lm?v0(Lm):MM,DM=OM,$M="[object Set]";function RM(e){return ps(e)&&au(e)==$M}var Pm=Wa&&Wa.isSet,LM=Pm?v0(Pm):RM,PM=LM,BM=1,FM=2,VM=4,mw="[object Arguments]",HM="[object Array]",zM="[object Boolean]",UM="[object Date]",WM="[object Error]",vw="[object Function]",jM="[object GeneratorFunction]",KM="[object Map]",YM="[object Number]",yw="[object Object]",GM="[object RegExp]",XM="[object Set]",qM="[object String]",ZM="[object Symbol]",QM="[object WeakMap]",JM="[object ArrayBuffer]",eO="[object DataView]",tO="[object Float32Array]",nO="[object Float64Array]",oO="[object Int8Array]",rO="[object Int16Array]",sO="[object Int32Array]",iO="[object Uint8Array]",aO="[object Uint8ClampedArray]",lO="[object Uint16Array]",uO="[object Uint32Array]",En={};En[mw]=En[HM]=En[JM]=En[eO]=En[zM]=En[UM]=En[tO]=En[nO]=En[oO]=En[rO]=En[sO]=En[KM]=En[YM]=En[yw]=En[GM]=En[XM]=En[qM]=En[ZM]=En[iO]=En[aO]=En[lO]=En[uO]=!0;En[WM]=En[vw]=En[QM]=!1;function bc(e,t,n,o,s,i){var l,c=t&BM,f=t&FM,p=t&VM;if(n&&(l=s?n(e,o,s,i):n(e)),l!==void 0)return l;if(!Or(e))return e;var m=Mr(e);if(m){if(l=nM(e),!c)return Ck(e,l)}else{var y=au(e),v=y==vw||y==jM;if(rd(e))return R6(e,c);if(y==yw||y==mw||v&&!s){if(l=f||v?{}:kM(e),!c)return f?U6(e,D6(l,e)):V6(e,O6(l,e))}else{if(!En[y])return s?e:{};l=NM(e,y,c)}}i||(i=new cs);var w=i.get(e);if(w)return w;i.set(e,l),PM(e)?e.forEach(function(S){l.add(bc(S,t,n,S,e,i))}):DM(e)&&e.forEach(function(S,T){l.set(T,bc(S,t,n,T,e,i))});var E=p?f?W6:Ph:f?b0:y0,I=m?void 0:E(e);return Mk(I||e,function(S,T){I&&(T=S,S=e[T]),f0(l,T,bc(S,t,n,T,e,i))}),l}var cO=4;function dO(e){return bc(e,cO)}var fO="__lodash_hash_undefined__";function hO(e){return this.__data__.set(e,fO),this}function pO(e){return this.__data__.has(e)}function lu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bs;++t<n;)this.add(e[t])}lu.prototype.add=lu.prototype.push=hO;lu.prototype.has=pO;function gO(e,t){for(var n=-1,o=e==null?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function bw(e,t){return e.has(t)}var mO=1,vO=2;function ww(e,t,n,o,s,i){var l=n&mO,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var y=-1,v=!0,w=n&vO?new lu:void 0;for(i.set(e,t),i.set(t,e);++y<c;){var E=e[y],I=t[y];if(o)var S=l?o(I,E,y,t,e,i):o(E,I,y,e,t,i);if(S!==void 0){if(S)continue;v=!1;break}if(w){if(!gO(t,function(T,_){if(!bw(w,_)&&(E===T||s(E,T,n,o,i)))return w.push(_)})){v=!1;break}}else if(!(E===I||s(E,I,n,o,i))){v=!1;break}}return i.delete(e),i.delete(t),v}function yO(e){var t=-1,n=Array(e.size);return e.forEach(function(o,s){n[++t]=[s,o]}),n}function A0(e){var t=-1,n=Array(e.size);return e.forEach(function(o){n[++t]=o}),n}var bO=1,wO=2,CO="[object Boolean]",EO="[object Date]",SO="[object Error]",AO="[object Map]",TO="[object Number]",IO="[object RegExp]",_O="[object Set]",NO="[object String]",kO="[object Symbol]",xO="[object ArrayBuffer]",MO="[object DataView]",Bm=pr?pr.prototype:void 0,Bf=Bm?Bm.valueOf:void 0;function OO(e,t,n,o,s,i,l){switch(n){case MO:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case xO:return!(e.byteLength!=t.byteLength||!i(new sd(e),new sd(t)));case CO:case EO:case TO:return d0(+e,+t);case SO:return e.name==t.name&&e.message==t.message;case IO:case NO:return e==t+"";case AO:var c=yO;case _O:var f=o&bO;if(c||(c=A0),e.size!=t.size&&!f)return!1;var p=l.get(e);if(p)return p==t;o|=wO,l.set(e,t);var m=ww(c(e),c(t),o,s,i,l);return l.delete(e),m;case kO:if(Bf)return Bf.call(e)==Bf.call(t)}return!1}var DO=1,$O=Object.prototype,RO=$O.hasOwnProperty;function LO(e,t,n,o,s,i){var l=n&DO,c=Ph(e),f=c.length,p=Ph(t),m=p.length;if(f!=m&&!l)return!1;for(var y=f;y--;){var v=c[y];if(!(l?v in t:RO.call(t,v)))return!1}var w=i.get(e),E=i.get(t);if(w&&E)return w==t&&E==e;var I=!0;i.set(e,t),i.set(t,e);for(var S=l;++y<f;){v=c[y];var T=e[v],_=t[v];if(o)var N=l?o(_,T,v,t,e,i):o(T,_,v,e,t,i);if(!(N===void 0?T===_||s(T,_,n,o,i):N)){I=!1;break}S||(S=v=="constructor")}if(I&&!S){var O=e.constructor,D=t.constructor;O!=D&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof D=="function"&&D instanceof D)&&(I=!1)}return i.delete(e),i.delete(t),I}var PO=1,Fm="[object Arguments]",Vm="[object Array]",tc="[object Object]",BO=Object.prototype,Hm=BO.hasOwnProperty;function FO(e,t,n,o,s,i){var l=Mr(e),c=Mr(t),f=l?Vm:au(e),p=c?Vm:au(t);f=f==Fm?tc:f,p=p==Fm?tc:p;var m=f==tc,y=p==tc,v=f==p;if(v&&rd(e)){if(!rd(t))return!1;l=!0,m=!1}if(v&&!m)return i||(i=new cs),l||aw(e)?ww(e,t,n,o,s,i):OO(e,t,f,n,o,s,i);if(!(n&PO)){var w=m&&Hm.call(e,"__wrapped__"),E=y&&Hm.call(t,"__wrapped__");if(w||E){var I=w?e.value():e,S=E?t.value():t;return i||(i=new cs),s(I,S,n,o,i)}}return v?(i||(i=new cs),LO(e,t,n,o,s,i)):!1}function Cw(e,t,n,o,s){return e===t?!0:e==null||t==null||!ps(e)&&!ps(t)?e!==e&&t!==t:FO(e,t,n,o,Cw,s)}function VO(e,t){return e!=null&&t in Object(e)}function HO(e,t,n){t=Ud(t,e);for(var o=-1,s=t.length,i=!1;++o<s;){var l=w0(t[o]);if(!(i=e!=null&&n(e,l)))break;e=e[l]}return i||++o!=s?i:(s=e==null?0:e.length,!!s&&h0(s)&&c0(l,s)&&(Mr(e)||m0(e)))}function zO(e,t){return e!=null&&HO(e,t,VO)}var UO=function(){return Pr.Date.now()},Ff=UO,WO="Expected a function",jO=Math.max,KO=Math.min;function $o(e,t,n){var o,s,i,l,c,f,p=0,m=!1,y=!1,v=!0;if(typeof e!="function")throw new TypeError(WO);t=mm(t)||0,Or(n)&&(m=!!n.leading,y="maxWait"in n,i=y?jO(mm(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v);function w(x){var R=o,B=s;return o=s=void 0,p=x,l=e.apply(B,R),l}function E(x){return p=x,c=setTimeout(T,t),m?w(x):l}function I(x){var R=x-f,B=x-p,Y=t-R;return y?KO(Y,i-B):Y}function S(x){var R=x-f,B=x-p;return f===void 0||R>=t||R<0||y&&B>=i}function T(){var x=Ff();if(S(x))return _(x);c=setTimeout(T,I(x))}function _(x){return c=void 0,v&&o?w(x):(o=s=void 0,l)}function N(){c!==void 0&&clearTimeout(c),p=0,o=f=s=c=void 0}function O(){return c===void 0?l:_(Ff())}function D(){var x=Ff(),R=S(x);if(o=arguments,s=this,f=x,R){if(c===void 0)return E(f);if(y)return clearTimeout(c),c=setTimeout(T,t),w(f)}return c===void 0&&(c=setTimeout(T,t)),l}return D.cancel=N,D.flush=O,D}function YO(e){return ps(e)&&p0(e)}function GO(e,t,n){for(var o=-1,s=e==null?0:e.length;++o<s;)if(n(t,e[o]))return!0;return!1}var XO=1/0;function qO(e){var t=e==null?0:e.length;return t?Wd(e,XO):[]}function Ew(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var s=e[t];o[s[0]]=s[1]}return o}function Ko(e,t){return Cw(e,t)}function T0(e){return e==null}function Sw(e,t,n,o){if(!Or(e))return e;t=Ud(t,e);for(var s=-1,i=t.length,l=i-1,c=e;c!=null&&++s<i;){var f=w0(t[s]),p=n;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(s!=l){var m=c[f];p=o?o(m,f,c):void 0,p===void 0&&(p=Or(m)?m:c0(t[s+1])?[]:{})}f0(c,f,p),c=c[f]}return e}function ZO(e,t,n){for(var o=-1,s=t.length,i={};++o<s;){var l=t[o],c=cw(e,l);n(c,l)&&Sw(i,Ud(l,e),c)}return i}function QO(e,t){return ZO(e,t,function(n,o){return zO(e,o)})}var JO=A6(function(e,t){return e==null?{}:QO(e,t)}),Fs=JO;function eD(e,t,n){return e==null?e:Sw(e,t,n)}var tD="Expected a function";function $i(e,t,n){var o=!0,s=!0;if(typeof e!="function")throw new TypeError(tD);return Or(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),$o(e,t,{leading:o,maxWait:t,trailing:s})}var nD=1/0,oD=ka&&1/A0(new ka([,-0]))[1]==nD?function(e){return new ka(e)}:wk,rD=oD,sD=200;function iD(e,t,n){var o=-1,s=Lk,i=e.length,l=!0,c=[],f=c;if(n)l=!1,s=GO;else if(i>=sD){var p=t?null:rD(e);if(p)return A0(p);l=!1,s=bw,f=new lu}else f=t?[]:c;e:for(;++o<i;){var m=e[o],y=t?t(m):m;if(m=n||m!==0?m:0,l&&y===y){for(var v=f.length;v--;)if(f[v]===y)continue e;t&&f.push(y),c.push(m)}else s(f,y,n)||(f!==c&&f.push(y),c.push(m))}return c}var aD=Hk(function(e){return iD(Wd(e,1,YO,!0))}),Vf=aD;const lD='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',uD=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,zm=e=>Array.from(e.querySelectorAll(lD)).filter(t=>cD(t)&&uD(t)),cD=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},wc=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const s=document.createEvent(o);return s.initEvent(t,...n),e.dispatchEvent(s),e},Aw=e=>!e.getAttribute("aria-owns"),Tw=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const s=o.querySelectorAll(n),i=Array.prototype.indexOf.call(s,e);return s[i+t]||null},Cc=e=>{!e||(e.focus(),!Aw(e)&&e.click())},Bn=(e,t,n,o=!1)=>{e&&t&&n&&(e==null||e.addEventListener(t,n,o))},Kn=(e,t,n,o=!1)=>{e&&t&&n&&(e==null||e.removeEventListener(t,n,o))},dD=(e,t,n)=>{const o=function(...s){n&&n.apply(this,s),Kn(e,t,o)};Bn(e,t,o)},Tn=(e,t,{checkForDefaultPrevented:n=!0}={})=>s=>{const i=e==null?void 0:e(s);if(n===!1||!i)return t==null?void 0:t(s)},Um=e=>t=>t.pointerType==="mouse"?e(t):void 0;var fD=Object.defineProperty,hD=Object.defineProperties,pD=Object.getOwnPropertyDescriptors,Wm=Object.getOwnPropertySymbols,gD=Object.prototype.hasOwnProperty,mD=Object.prototype.propertyIsEnumerable,jm=(e,t,n)=>t in e?fD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vD=(e,t)=>{for(var n in t||(t={}))gD.call(t,n)&&jm(e,n,t[n]);if(Wm)for(var n of Wm(t))mD.call(t,n)&&jm(e,n,t[n]);return e},yD=(e,t)=>hD(e,pD(t));function Km(e,t){var n;const o=Hn();return dr(()=>{o.value=e()},yD(vD({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Su(o)}function jd(e){return fI()?(zb(e),!0):!1}const jt=typeof window!="undefined",ao=e=>typeof e=="boolean",Qt=e=>typeof e=="number",bD=e=>typeof e=="string",Hf=()=>{};function Iw(e,t){function n(...o){e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})}return n}function wD(e,t={}){let n,o;return i=>{const l=k(e),c=k(t.maxWait);if(n&&clearTimeout(n),l<=0||c!==void 0&&c<=0)return o&&(clearTimeout(o),o=null),i();c&&!o&&(o=setTimeout(()=>{n&&clearTimeout(n),o=null,i()},c)),n=setTimeout(()=>{o&&clearTimeout(o),o=null,i()},l)}}function CD(e,t=!0,n=!0){let o=0,s,i=!n;const l=()=>{s&&(clearTimeout(s),s=void 0)};return f=>{const p=k(e),m=Date.now()-o;if(l(),p<=0)return o=Date.now(),f();m>p&&(o=Date.now(),i?i=!1:f()),t&&(s=setTimeout(()=>{o=Date.now(),n||(i=!0),l(),f()},p)),!n&&!s&&(s=setTimeout(()=>i=!0,p))}}function ED(e,t=200,n={}){return Iw(wD(t,n),e)}function SD(e,t=200,n={}){if(t<=0)return e;const o=F(e.value),s=ED(()=>{o.value=e.value},t,n);return Re(e,()=>s()),o}function _w(e,t=200,n=!0,o=!0){return Iw(CD(t,n,o),e)}function AD(e,t=!0){Dt()?kt(e):t?e():dt(e)}function Ui(e,t,n={}){const{immediate:o=!0}=n,s=F(!1);let i=null;function l(){i&&(clearTimeout(i),i=null)}function c(){s.value=!1,l()}function f(...p){l(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=null,e(...p)},k(t))}return o&&(s.value=!0,jt&&f()),jd(c),{isPending:s,start:f,stop:c}}function kr(e){var t;const n=k(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ku=jt?window:void 0,TD=jt?window.document:void 0;function Dn(...e){let t,n,o,s;if(bD(e[0])?([n,o,s]=e,t=ku):[t,n,o,s]=e,!t)return Hf;let i=Hf;const l=Re(()=>kr(t),f=>{i(),f&&(f.addEventListener(n,o,s),i=()=>{f.removeEventListener(n,o,s),i=Hf})},{immediate:!0,flush:"post"}),c=()=>{l(),i()};return jd(c),c}function id(e,t,n={}){const{window:o=ku,ignore:s,capture:i=!0}=n;if(!o)return;const l=F(!0),f=[Dn(o,"click",m=>{const y=kr(e),v=m.composedPath();!y||y===m.target||v.includes(y)||!l.value||s&&s.length>0&&s.some(w=>{const E=kr(w);return E&&(m.target===E||v.includes(E))})||t(m)},{passive:!0,capture:i}),Dn(o,"pointerdown",m=>{const y=kr(e);l.value=!!y&&!m.composedPath().includes(y)},{passive:!0})];return()=>f.forEach(m=>m())}const Vh=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Hh="__vueuse_ssr_handlers__";Vh[Hh]=Vh[Hh]||{};Vh[Hh];function ID({document:e=TD}={}){if(!e)return F("visible");const t=F(e.visibilityState);return Dn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Ym=Object.getOwnPropertySymbols,_D=Object.prototype.hasOwnProperty,ND=Object.prototype.propertyIsEnumerable,kD=(e,t)=>{var n={};for(var o in e)_D.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ym)for(var o of Ym(e))t.indexOf(o)<0&&ND.call(e,o)&&(n[o]=e[o]);return n};function nl(e,t,n={}){const o=n,{window:s=ku}=o,i=kD(o,["window"]);let l;const c=s&&"ResizeObserver"in s,f=()=>{l&&(l.disconnect(),l=void 0)},p=Re(()=>kr(e),y=>{f(),c&&s&&y&&(l=new ResizeObserver(t),l.observe(y,i))},{immediate:!0,flush:"post"}),m=()=>{f(),p()};return jd(m),{isSupported:c,stop:m}}function Gm(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:s=!0}=t,i=F(0),l=F(0),c=F(0),f=F(0),p=F(0),m=F(0),y=F(0),v=F(0);function w(){const E=kr(e);if(!E){n&&(i.value=0,l.value=0,c.value=0,f.value=0,p.value=0,m.value=0,y.value=0,v.value=0);return}const I=E.getBoundingClientRect();i.value=I.height,l.value=I.bottom,c.value=I.left,f.value=I.right,p.value=I.top,m.value=I.width,y.value=I.x,v.value=I.y}return nl(e,w),Re(()=>kr(e),E=>!E&&w()),s&&Dn("scroll",w,{passive:!0}),o&&Dn("resize",w,{passive:!0}),{height:i,bottom:l,left:c,right:f,top:p,width:m,x:y,y:v,update:w}}var Xm,qm;jt&&(window==null?void 0:window.navigator)&&((Xm=window==null?void 0:window.navigator)==null?void 0:Xm.platform)&&/iP(ad|hone|od)/.test((qm=window==null?void 0:window.navigator)==null?void 0:qm.platform);function xD({window:e=ku}={}){if(!e)return F(!1);const t=F(e.document.hasFocus());return Dn(e,"blur",()=>{t.value=!1}),Dn(e,"focus",()=>{t.value=!0}),t}function MD({window:e=ku,initialWidth:t=1/0,initialHeight:n=1/0}={}){const o=F(t),s=F(n),i=()=>{e&&(o.value=e.innerWidth,s.value=e.innerHeight)};return i(),AD(i),Dn("resize",i,{passive:!0}),{width:o,height:s}}const OD=(e,t)=>{if(!jt||!e||!t)return!1;const n=e.getBoundingClientRect();let o;return t instanceof Element?o=t.getBoundingClientRect():o={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<o.bottom&&n.bottom>o.top&&n.right>o.left&&n.left<o.right},Zm=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},DD=(e,t)=>Math.abs(Zm(e)-Zm(t)),I0=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},$D=function(e){for(const t of e){const n=t.target.__resizeListeners__||[];n.length&&n.forEach(o=>{o()})}},ol=function(e,t){!jt||!e||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new ResizeObserver($D),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},rl=function(e,t){var n;!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(n=e.__ro__)==null||n.disconnect())},zo=e=>e===void 0,uu=e=>!e&&e!==0||wt(e)&&e.length===0||Kt(e)&&!Object.keys(e).length,Wi=e=>typeof Element=="undefined"?!1:e instanceof Element,RD=e=>T0(e),LD=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),zh=e=>Object.keys(e),PD=e=>Object.entries(e),Ec=(e,t,n)=>({get value(){return An(e,t,n)},set value(o){eD(e,t,o)}}),Nw=(e="")=>e.split(" ").filter(t=>!!t.trim()),xr=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},qr=(e,t)=>{!e||!t.trim()||e.classList.add(...Nw(t))},Do=(e,t)=>{!e||!t.trim()||e.classList.remove(...Nw(t))},Xr=(e,t)=>{var n;if(!jt||!e||!t)return"";hr(t);try{const o=e.style[t];if(o)return o;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[t]:""}catch{return e.style[t]}},BD=(e,t)=>{if(!jt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=Xr(e,n);return["scroll","auto","overlay"].some(s=>o.includes(s))},_0=(e,t)=>{if(!jt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(BD(n,t))return n;n=n.parentNode}return n};let nc;const FD=()=>{var e;if(!jt)return 0;if(nc!==void 0)return nc;const t=document.createElement("div");t.className="el-scrollbar__wrap",t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",t.appendChild(o);const s=o.offsetWidth;return(e=t.parentNode)==null||e.removeChild(t),nc=n-s,nc};function kw(e,t){if(!jt)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const s=t.offsetTop+n.reduce((f,p)=>f+p.offsetTop,0),i=s+t.offsetHeight,l=e.scrollTop,c=l+e.clientHeight;s<l?e.scrollTop=s:i>c&&(e.scrollTop=i-e.clientHeight)}var en=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};const VD=ve({name:"ArrowDown"}),HD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zD=Q("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),UD=[zD];function WD(e,t,n,o,s,i){return M(),W("svg",HD,UD)}var Qi=en(VD,[["render",WD]]);const jD=ve({name:"ArrowLeft"}),KD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YD=Q("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),GD=[YD];function XD(e,t,n,o,s,i){return M(),W("svg",KD,GD)}var Ji=en(jD,[["render",XD]]);const qD=ve({name:"ArrowRight"}),ZD={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},QD=Q("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),JD=[QD];function e5(e,t,n,o,s,i){return M(),W("svg",ZD,JD)}var wr=en(qD,[["render",e5]]);const t5=ve({name:"ArrowUp"}),n5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},o5=Q("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),r5=[o5];function s5(e,t,n,o,s,i){return M(),W("svg",n5,r5)}var xu=en(t5,[["render",s5]]);const i5=ve({name:"Back"}),a5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l5=Q("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),u5=Q("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),c5=[l5,u5];function d5(e,t,n,o,s,i){return M(),W("svg",a5,c5)}var f5=en(i5,[["render",d5]]);const h5=ve({name:"Calendar"}),p5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},g5=Q("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),m5=[g5];function v5(e,t,n,o,s,i){return M(),W("svg",p5,m5)}var y5=en(h5,[["render",v5]]);const b5=ve({name:"CaretRight"}),w5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},C5=Q("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),E5=[C5];function S5(e,t,n,o,s,i){return M(),W("svg",w5,E5)}var xw=en(b5,[["render",S5]]);const A5=ve({name:"CaretTop"}),T5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},I5=Q("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),_5=[I5];function N5(e,t,n,o,s,i){return M(),W("svg",T5,_5)}var k5=en(A5,[["render",N5]]);const x5=ve({name:"Check"}),M5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},O5=Q("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),D5=[O5];function $5(e,t,n,o,s,i){return M(),W("svg",M5,D5)}var ja=en(x5,[["render",$5]]);const R5=ve({name:"CircleCheckFilled"}),L5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P5=Q("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),B5=[P5];function F5(e,t,n,o,s,i){return M(),W("svg",L5,B5)}var V5=en(R5,[["render",F5]]);const H5=ve({name:"CircleCheck"}),z5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},U5=Q("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),W5=Q("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),j5=[U5,W5];function K5(e,t,n,o,s,i){return M(),W("svg",z5,j5)}var ad=en(H5,[["render",K5]]);const Y5=ve({name:"CircleCloseFilled"}),G5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},X5=Q("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),q5=[X5];function Z5(e,t,n,o,s,i){return M(),W("svg",G5,q5)}var N0=en(Y5,[["render",Z5]]);const Q5=ve({name:"CircleClose"}),J5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},e$=Q("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),t$=Q("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),n$=[e$,t$];function o$(e,t,n,o,s,i){return M(),W("svg",J5,n$)}var gs=en(Q5,[["render",o$]]);const r$=ve({name:"Clock"}),s$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},i$=Q("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),a$=Q("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),l$=Q("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),u$=[i$,a$,l$];function c$(e,t,n,o,s,i){return M(),W("svg",s$,u$)}var Mw=en(r$,[["render",c$]]);const d$=ve({name:"Close"}),f$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},h$=Q("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),p$=[h$];function g$(e,t,n,o,s,i){return M(),W("svg",f$,p$)}var gr=en(d$,[["render",g$]]);const m$=ve({name:"DArrowLeft"}),v$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},y$=Q("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),b$=[y$];function w$(e,t,n,o,s,i){return M(),W("svg",v$,b$)}var Kd=en(m$,[["render",w$]]);const C$=ve({name:"DArrowRight"}),E$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},S$=Q("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),A$=[S$];function T$(e,t,n,o,s,i){return M(),W("svg",E$,A$)}var Yd=en(C$,[["render",T$]]);const I$=ve({name:"Delete"}),_$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},N$=Q("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),k$=[N$];function x$(e,t,n,o,s,i){return M(),W("svg",_$,k$)}var M$=en(I$,[["render",x$]]);const O$=ve({name:"Document"}),D$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$$=Q("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),R$=[$$];function L$(e,t,n,o,s,i){return M(),W("svg",D$,R$)}var P$=en(O$,[["render",L$]]);const B$=ve({name:"FullScreen"}),F$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},V$=Q("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),H$=[V$];function z$(e,t,n,o,s,i){return M(),W("svg",F$,H$)}var U$=en(B$,[["render",z$]]);const W$=ve({name:"Hide"}),j$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K$=Q("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),Y$=Q("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),G$=[K$,Y$];function X$(e,t,n,o,s,i){return M(),W("svg",j$,G$)}var q$=en(W$,[["render",X$]]);const Z$=ve({name:"InfoFilled"}),Q$={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},J$=Q("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),eR=[J$];function tR(e,t,n,o,s,i){return M(),W("svg",Q$,eR)}var k0=en(Z$,[["render",tR]]);const nR=ve({name:"Loading"}),oR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rR=Q("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),sR=[rR];function iR(e,t,n,o,s,i){return M(),W("svg",oR,sR)}var ti=en(nR,[["render",iR]]);const aR=ve({name:"Minus"}),lR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uR=Q("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),cR=[uR];function dR(e,t,n,o,s,i){return M(),W("svg",lR,cR)}var fR=en(aR,[["render",dR]]);const hR=ve({name:"MoreFilled"}),pR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gR=Q("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),mR=[gR];function vR(e,t,n,o,s,i){return M(),W("svg",pR,mR)}var yR=en(hR,[["render",vR]]);const bR=ve({name:"More"}),wR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},CR=Q("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),ER=[CR];function SR(e,t,n,o,s,i){return M(),W("svg",wR,ER)}var AR=en(bR,[["render",SR]]);const TR=ve({name:"PictureFilled"}),IR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_R=Q("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),NR=[_R];function kR(e,t,n,o,s,i){return M(),W("svg",IR,NR)}var xR=en(TR,[["render",kR]]);const MR=ve({name:"Plus"}),OR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},DR=Q("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),$R=[DR];function RR(e,t,n,o,s,i){return M(),W("svg",OR,$R)}var Ow=en(MR,[["render",RR]]);const LR=ve({name:"QuestionFilled"}),PR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},BR=Q("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),FR=[BR];function VR(e,t,n,o,s,i){return M(),W("svg",PR,FR)}var HR=en(LR,[["render",VR]]);const zR=ve({name:"RefreshLeft"}),UR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},WR=Q("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),jR=[WR];function KR(e,t,n,o,s,i){return M(),W("svg",UR,jR)}var YR=en(zR,[["render",KR]]);const GR=ve({name:"RefreshRight"}),XR={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qR=Q("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),ZR=[qR];function QR(e,t,n,o,s,i){return M(),W("svg",XR,ZR)}var JR=en(GR,[["render",QR]]);const eL=ve({name:"ScaleToOriginal"}),tL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nL=Q("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),oL=[nL];function rL(e,t,n,o,s,i){return M(),W("svg",tL,oL)}var sL=en(eL,[["render",rL]]);const iL=ve({name:"Search"}),aL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},lL=Q("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),uL=[lL];function cL(e,t,n,o,s,i){return M(),W("svg",aL,uL)}var dL=en(iL,[["render",cL]]);const fL=ve({name:"StarFilled"}),hL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pL=Q("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),gL=[pL];function mL(e,t,n,o,s,i){return M(),W("svg",hL,gL)}var oc=en(fL,[["render",mL]]);const vL=ve({name:"Star"}),yL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bL=Q("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),wL=[bL];function CL(e,t,n,o,s,i){return M(),W("svg",yL,wL)}var EL=en(vL,[["render",CL]]);const SL=ve({name:"SuccessFilled"}),AL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},TL=Q("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),IL=[TL];function _L(e,t,n,o,s,i){return M(),W("svg",AL,IL)}var Dw=en(SL,[["render",_L]]);const NL=ve({name:"View"}),kL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},xL=Q("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),ML=[xL];function OL(e,t,n,o,s,i){return M(),W("svg",kL,ML)}var DL=en(NL,[["render",OL]]);const $L=ve({name:"WarningFilled"}),RL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LL=Q("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),PL=[LL];function BL(e,t,n,o,s,i){return M(),W("svg",RL,PL)}var cu=en($L,[["render",BL]]);const FL=ve({name:"ZoomIn"}),VL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},HL=Q("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),zL=[HL];function UL(e,t,n,o,s,i){return M(),W("svg",VL,zL)}var $w=en(FL,[["render",UL]]);const WL=ve({name:"ZoomOut"}),jL={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},KL=Q("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),YL=[KL];function GL(e,t,n,o,s,i){return M(),W("svg",jL,YL)}var XL=en(WL,[["render",GL]]);const Uh=Symbol(),Qm="__elPropsReservedKey";function Br(e,t){if(!Kt(e)||!!e[Qm])return e;const{values:n,required:o,default:s,type:i,validator:l}=e,c=n||l?p=>{let m=!1,y=[];if(n&&(y=Array.from(n),Bt(e,"default")&&y.push(s),m||(m=y.includes(p))),l&&(m||(m=l(p))),!m&&y.length>0){const v=[...new Set(y)].map(w=>JSON.stringify(w)).join(", ");WI(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(p)}.`)}return m}:void 0,f={type:Kt(i)&&Object.getOwnPropertySymbols(i).includes(Uh)?i[Uh]:i,required:!!o,validator:c,[Qm]:!0};return Bt(e,"default")&&(f.default=s),f}const ct=e=>Ew(Object.entries(e).map(([t,n])=>[t,Br(n,t)])),Xe=e=>({[Uh]:e}),uo=Xe([String,Object,Function]),qL={Close:gr},Gd={Close:gr,SuccessFilled:Dw,InfoFilled:k0,WarningFilled:cu,CircleCloseFilled:N0},ms={success:Dw,warning:cu,error:N0,info:k0},Rw={validating:ti,success:ad,error:gs},$t=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t!=null?t:{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},Lw=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),_n=e=>(e.install=on,e),x0=(...e)=>t=>{e.forEach(n=>{It(n)?n(t):n.value=t})};class ZL extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function zn(e,t){throw new ZL(`[${e}] ${t}`)}function Dr(e,t="px"){if(!e)return"";if(_t(e))return e;if(Qt(e))return`${e}${t}`}const rt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},QL=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],zf=["sun","mon","tue","wed","thu","fri","sat"],Ot="update:modelValue",Gn="change",qs="input",ts=["","default","small","large"],JL={large:40,default:32,small:24},Pw=(e="default")=>JL[e||"default"],Zo=e=>["",...ts].includes(e),Bw=e=>[...QL].includes(e);var ar=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(ar||{});function Fw(e){return On(e)&&e.type===at}function eP(e){return On(e)&&e.type===So}function tP(e){return On(e)&&!Fw(e)&&!eP(e)}const nP=e=>{if(!On(e))return{};const t=e.props||{},n=(On(e.type)?e.type.props:void 0)||{},o={};return Object.keys(n).forEach(s=>{Bt(n[s],"default")&&(o[s]=n[s].default)}),Object.keys(t).forEach(s=>{o[hr(s)]=t[s]}),o},oP=e=>{if(!wt(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Jm=e=>e**3,rP=e=>e<.5?Jm(e*2)/2:1-Jm((1-e)*2)/2,ev=e=>[...new Set(e)],Ri=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],M0=()=>jt&&/firefox/i.test(window.navigator.userAgent),Xd=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Vw=e=>jt?window.requestAnimationFrame(e):setTimeout(e,16),Hw=e=>jt?window.cancelAnimationFrame(e):clearTimeout(e),Mu=()=>Math.floor(Math.random()*1e4),In=e=>e,sP=["class","style"],iP=/^on[A-Z]/,O0=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=n.concat(sP),s=Dt();return $(s?()=>{var i;return Ew(Object.entries((i=s.proxy)==null?void 0:i.$attrs).filter(([l])=>!o.includes(l)&&!(t&&iP.test(l))))}:()=>({}))},zw=Symbol("breadcrumbKey"),Uw=Symbol("buttonGroupContextKey"),Ww=Symbol("carouselContextKey"),jw=Symbol("collapseContextKey"),Kw=Symbol(),Yw=Symbol("dialogInjectionKey"),Jo=Symbol("formContextKey"),mr=Symbol("formItemContextKey"),Gw=Symbol("elPaginationKey"),Xw=Symbol("radioGroupKey"),qw=Symbol("rowContextKey"),Zw=Symbol("scrollbarContextKey"),qd=Symbol("tabsRootContextKey"),Qw=Symbol("uploadContextKey"),D0=Symbol("popper"),Jw=Symbol("popperContent"),Zd=Symbol("tooltipV2"),eC=Symbol("tooltipV2Content"),Uf="tooltip_v2.open",tC=e=>{const t=Dt();return $(()=>{var n,o;return(o=(n=t.proxy)==null?void 0:n.$props[e])!=null?o:void 0})},ld=F();function sl(e,t=void 0){const n=Dt()?et(Kw,ld):ld;return e?$(()=>{var o,s;return(s=(o=n.value)==null?void 0:o[e])!=null?s:t}):n}const nC=(e,t,n=!1)=>{var o;const s=!!Dt(),i=s?sl():void 0,l=(o=t==null?void 0:t.provide)!=null?o:s?Pt:void 0;if(!l)return;const c=$(()=>{const f=k(e);return i!=null&&i.value?aP(i.value,f):f});return l(Kw,c),(n||!ld.value)&&(ld.value=c.value),c},aP=(e,t)=>{var n;const o=[...new Set([...zh(e),...zh(t)])],s={};for(const i of o)s[i]=(n=t[i])!=null?n:e[i];return s},Qd=Br({type:String,values:ts,required:!1}),Fn=(e,t={})=>{const n=F(void 0),o=t.prop?n:tC("size"),s=t.global?n:sl("size"),i=t.form?{size:void 0}:et(Jo,void 0),l=t.formItem?{size:void 0}:et(mr,void 0);return $(()=>o.value||k(e)||(l==null?void 0:l.size)||(i==null?void 0:i.size)||s.value||"")},ea=e=>{const t=tC("disabled"),n=et(Jo,void 0);return $(()=>t.value||k(e)||(n==null?void 0:n.disabled)||!1)},Ou=({from:e,replacement:t,scope:n,version:o,ref:s,type:i="API"},l)=>{Re(()=>k(l),c=>{},{immediate:!0})},oC=(e,t,n)=>{let o={offsetX:0,offsetY:0};const s=c=>{const f=c.clientX,p=c.clientY,{offsetX:m,offsetY:y}=o,v=e.value.getBoundingClientRect(),w=v.left,E=v.top,I=v.width,S=v.height,T=document.documentElement.clientWidth,_=document.documentElement.clientHeight,N=-w+m,O=-E+y,D=T-w-I+m,x=_-E-S+y,R=Y=>{const X=Math.min(Math.max(m+Y.clientX-f,N),D),K=Math.min(Math.max(y+Y.clientY-p,O),x);o={offsetX:X,offsetY:K},e.value.style.transform=`translate(${Dr(X)}, ${Dr(K)})`},B=()=>{document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",B)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",B)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",s)},l=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",s)};kt(()=>{dr(()=>{n.value?i():l()})}),gn(()=>{l()})},lP=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}}),il=()=>{const e=et(Jo,void 0),t=et(mr,void 0);return{form:e,formItem:t}};var uP={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const cP=e=>(t,n)=>dP(t,n,k(e)),dP=(e,t,n)=>An(n,e,e).replace(/\{(\w+)\}/g,(o,s)=>{var i;return`${(i=t==null?void 0:t[s])!=null?i:`{${s}}`}`}),fP=e=>{const t=$(()=>k(e).name),n=wn(e)?e:F(e);return{lang:t,locale:n,t:cP(e)}},un=()=>{const e=sl("locale");return fP($(()=>e.value||uP))},rC=e=>{if(wn(e)||zn("[useLockscreen]","You need to pass a ref param to this function"),!jt||xr(document.body,"el-popup-parent--hidden"))return;let t=0,n=!1,o="0",s=0;const i=()=>{Do(document.body,"el-popup-parent--hidden"),n&&(document.body.style.paddingRight=o)};Re(e,l=>{if(!l){i();return}n=!xr(document.body,"el-popup-parent--hidden"),n&&(o=document.body.style.paddingRight,s=Number.parseInt(Xr(document.body,"paddingRight"),10)),t=FD();const c=document.documentElement.clientHeight<document.body.scrollHeight,f=Xr(document.body,"overflowY");t>0&&(c||f==="scroll")&&n&&(document.body.style.paddingRight=`${s+t}px`),qr(document.body,"el-popup-parent--hidden")}),zb(()=>i())},xa=[],hP=e=>{xa.length!==0&&e.code===rt.esc&&(e.stopPropagation(),xa[xa.length-1].handleClose())},sC=(e,t)=>{Re(t,n=>{n?xa.push(e):xa.splice(xa.indexOf(e),1)})};jt&&Dn(document,"keydown",hP);const pP=Br({type:Xe(Boolean),default:null}),gP=Br({type:Xe(Function)}),mP=e=>{const t={[e]:pP,[`onUpdate:${e}`]:gP},n=[`update:${e}`];return{useModelToggle:({indicator:s,shouldHideWhenRouteChanges:i,shouldProceed:l,onShow:c,onHide:f})=>{const p=Dt(),m=p.props,{emit:y}=p,v=`update:${e}`,w=$(()=>It(m[`onUpdate:${e}`])),E=$(()=>m[e]===null),I=()=>{s.value!==!0&&(s.value=!0,It(c)&&c())},S=()=>{s.value!==!1&&(s.value=!1,It(f)&&f())},T=()=>{if(m.disabled===!0||It(l)&&!l())return;const D=w.value&&jt;D&&y(v,!0),(E.value||!D)&&I()},_=()=>{if(m.disabled===!0||!jt)return;const D=w.value&&jt;D&&y(v,!1),(E.value||!D)&&S()},N=D=>{!ao(D)||(m.disabled&&D?w.value&&y(v,!1):s.value!==D&&(D?I():S()))},O=()=>{s.value?_():T()};return Re(()=>m[e],N),i&&p.appContext.config.globalProperties.$route!==void 0&&Re(()=>be({},p.proxy.$route),()=>{i.value&&s.value&&_()}),kt(()=>{N(m[e])}),{hide:_,show:T,toggle:O}},useModelToggleProps:t,useModelToggleEmits:n}},vP=(e,t,n)=>{const o=i=>{n(i)&&i.stopImmediatePropagation()};let s;Re(()=>e.value,i=>{i?s=Dn(document,t,o,!0):s==null||s()},{immediate:!0})},iC=(e,t)=>{let n;Re(()=>e.value,o=>{var s,i;o?(n=document.activeElement,wn(t)&&((i=(s=t.value).focus)==null||i.call(s))):n.focus()})},$0=e=>{if(!e)return{onClick:on,onMousedown:on,onMouseup:on};let t=!1,n=!1;return{onClick:l=>{t&&n&&e(l),t=n=!1},onMousedown:l=>{t=l.target===l.currentTarget},onMouseup:l=>{n=l.target===l.currentTarget}}},yP=(e,t=0)=>{if(t===0)return e;const n=F(!1);let o=0;const s=()=>{o&&clearTimeout(o),o=window.setTimeout(()=>{n.value=e.value},t)};return kt(s),Re(()=>e.value,i=>{i?s():n.value=i}),n};function bP(){let e;const t=(o,s)=>{n(),e=window.setTimeout(o,s)},n=()=>window.clearTimeout(e);return jd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const wP={prefix:Math.floor(Math.random()*1e4),current:0},CP=Symbol("elIdInjection"),R0=e=>{const t=et(CP,wP);return $(()=>k(e)||`el-id-${t.prefix}-${t.current++}`)},EP=e=>{const t=n=>{const o=n;o.key===rt.esc&&(e==null||e(o))};kt(()=>{Bn(document,"keydown",t)}),gn(()=>{Kn(document,"keydown",t)})};let tv;const aC=`el-popper-container-${Mu()}`,lC=`#${aC}`,SP=()=>{const e=document.createElement("div");return e.id=aC,document.body.appendChild(e),e},AP=()=>{Au(()=>{!jt||(!tv||!document.body.querySelector(lC))&&(tv=SP())})},TP=ct({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),IP=({showAfter:e,hideAfter:t,open:n,close:o})=>{const{registerTimeout:s}=bP();return{onOpen:()=>{s(()=>{n()},k(e))},onClose:()=>{s(()=>{o()},k(t))}}},uC=Symbol("elForwardRef"),_P=e=>{Pt(uC,{setForwardRef:n=>{e.value=n}})},NP=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),kP="el",xP="is-",hi=(e,t,n,o,s)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),o&&(i+=`__${o}`),s&&(i+=`--${s}`),i},Be=e=>{const t=sl("namespace"),n=$(()=>t.value||kP);return{namespace:n,b:(y="")=>hi(k(n),e,y,"",""),e:y=>y?hi(k(n),e,"",y,""):"",m:y=>y?hi(k(n),e,"","",y):"",be:(y,v)=>y&&v?hi(k(n),e,y,v,""):"",em:(y,v)=>y&&v?hi(k(n),e,"",y,v):"",bm:(y,v)=>y&&v?hi(k(n),e,y,"",v):"",bem:(y,v,w)=>y&&v&&w?hi(k(n),e,y,v,w):"",is:(y,...v)=>{const w=v.length>=1?v[0]:!0;return y&&w?`${xP}${y}`:""}}},nv=F(0),ws=()=>{const e=sl("zIndex",2e3),t=$(()=>e.value+nv.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(nv.value++,t.value)}};function L0(e){return e.split("-")[0]}function cC(e){return e.split("-")[1]}function P0(e){return["top","bottom"].includes(L0(e))?"x":"y"}function dC(e){return e==="y"?"height":"width"}function ov(e,t,n){let{reference:o,floating:s}=e;const i=o.x+o.width/2-s.width/2,l=o.y+o.height/2-s.height/2,c=P0(t),f=dC(c),p=o[f]/2-s[f]/2,m=c==="x";let y;switch(L0(t)){case"top":y={x:i,y:o.y-s.height};break;case"bottom":y={x:i,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:l};break;case"left":y={x:o.x-s.width,y:l};break;default:y={x:o.x,y:o.y}}switch(cC(t)){case"start":y[c]-=p*(n&&m?-1:1);break;case"end":y[c]+=p*(n&&m?-1:1)}return y}const MP=async(e,t,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:i=[],platform:l}=n,c=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:p,y:m}=ov(f,o,c),y=o,v={};for(let w=0;w<i.length;w++){const{name:E,fn:I}=i[w],{x:S,y:T,data:_,reset:N}=await I({x:p,y:m,initialPlacement:o,placement:y,strategy:s,middlewareData:v,rects:f,platform:l,elements:{reference:e,floating:t}});p=S!=null?S:p,m=T!=null?T:m,v=Qe(be({},v),{[E]:be(be({},v[E]),_)}),N&&(typeof N=="object"&&(N.placement&&(y=N.placement),N.rects&&(f=N.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:s}):N.rects),{x:p,y:m}=ov(f,y,c)),w=-1)}return{x:p,y:m,placement:y,strategy:s,middlewareData:v}};function OP(e){return typeof e!="number"?function(t){return be({top:0,right:0,bottom:0,left:0},t)}(e):{top:e,right:e,bottom:e,left:e}}function rv(e){return Qe(be({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}const DP=Math.min,$P=Math.max;function RP(e,t,n){return $P(e,DP(t,n))}const LP=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=e!=null?e:{},{x:s,y:i,placement:l,rects:c,platform:f}=t;if(n==null)return{};const p=OP(o),m={x:s,y:i},y=P0(l),v=dC(y),w=await f.getDimensions(n),E=y==="y"?"top":"left",I=y==="y"?"bottom":"right",S=c.reference[v]+c.reference[y]-m[y]-c.floating[v],T=m[y]-c.reference[y],_=await(f.getOffsetParent==null?void 0:f.getOffsetParent(n)),N=_?y==="y"?_.clientHeight||0:_.clientWidth||0:0,O=S/2-T/2,D=p[E],x=N-w[v]-p[I],R=N/2-w[v]/2+O,B=RP(D,R,x);return{data:{[y]:B,centerOffset:R-B}}}}),PP=["top","right","bottom","left"];PP.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const BP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o,placement:s,rects:i,platform:l,elements:c}=t,f=function(p,m,y,v){v===void 0&&(v=!1);const w=L0(p),E=cC(p),I=P0(p)==="x",S=["left","top"].includes(w)?-1:1,T=v&&I?-1:1,_=typeof y=="function"?y(Qe(be({},m),{placement:p})):y;let{mainAxis:N,crossAxis:O,alignmentAxis:D}=typeof _=="number"?{mainAxis:_,crossAxis:0,alignmentAxis:null}:be({mainAxis:0,crossAxis:0,alignmentAxis:null},_);return E&&typeof D=="number"&&(O=E==="end"?-1*D:D),I?{x:O*T,y:N*S}:{x:N*S,y:O*T}}(s,i,e,await(l.isRTL==null?void 0:l.isRTL(c.floating)));return{x:n+f.x,y:o+f.y,data:f}}}};function fC(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Cs(e){if(e==null)return window;if(!fC(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Du(e){return Cs(e).getComputedStyle(e)}function ds(e){return fC(e)?"":e?(e.nodeName||"").toLowerCase():""}function Jr(e){return e instanceof Cs(e).HTMLElement}function Ka(e){return e instanceof Cs(e).Element}function B0(e){return typeof ShadowRoot=="undefined"?!1:e instanceof Cs(e).ShadowRoot||e instanceof ShadowRoot}function Jd(e){const{overflow:t,overflowX:n,overflowY:o}=Du(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function FP(e){return["table","td","th"].includes(ds(e))}function sv(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=Du(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"}function hC(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const iv=Math.min,jl=Math.max,ud=Math.round;function Li(e,t,n){var o,s,i,l;t===void 0&&(t=!1),n===void 0&&(n=!1);const c=e.getBoundingClientRect();let f=1,p=1;t&&Jr(e)&&(f=e.offsetWidth>0&&ud(c.width)/e.offsetWidth||1,p=e.offsetHeight>0&&ud(c.height)/e.offsetHeight||1);const m=Ka(e)?Cs(e):window,y=!hC()&&n,v=(c.left+(y&&(o=(s=m.visualViewport)==null?void 0:s.offsetLeft)!=null?o:0))/f,w=(c.top+(y&&(i=(l=m.visualViewport)==null?void 0:l.offsetTop)!=null?i:0))/p,E=c.width/f,I=c.height/p;return{width:E,height:I,top:w,right:v+E,bottom:w+I,left:v,x:v,y:w}}function zs(e){return(t=e,(t instanceof Cs(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function ef(e){return Ka(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pC(e){return Li(zs(e)).left+ef(e).scrollLeft}function VP(e,t,n){const o=Jr(t),s=zs(t),i=Li(e,o&&function(f){const p=Li(f);return ud(p.width)!==f.offsetWidth||ud(p.height)!==f.offsetHeight}(t),n==="fixed");let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(o||!o&&n!=="fixed")if((ds(t)!=="body"||Jd(s))&&(l=ef(t)),Jr(t)){const f=Li(t,!0);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else s&&(c.x=pC(s));return{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function gC(e){return ds(e)==="html"?e:e.assignedSlot||e.parentNode||(B0(e)?e.host:null)||zs(e)}function av(e){return Jr(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function Wh(e){const t=Cs(e);let n=av(e);for(;n&&FP(n)&&getComputedStyle(n).position==="static";)n=av(n);return n&&(ds(n)==="html"||ds(n)==="body"&&getComputedStyle(n).position==="static"&&!sv(n))?t:n||function(o){let s=gC(o);for(B0(s)&&(s=s.host);Jr(s)&&!["html","body"].includes(ds(s));){if(sv(s))return s;s=s.parentNode}return null}(e)||t}function lv(e){if(Jr(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Li(e);return{width:t.width,height:t.height}}function mC(e){const t=gC(e);return["html","body","#document"].includes(ds(t))?e.ownerDocument.body:Jr(t)&&Jd(t)?t:mC(t)}function vC(e,t){var n;t===void 0&&(t=[]);const o=mC(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=Cs(o),l=s?[i].concat(i.visualViewport||[],Jd(o)?o:[]):o,c=t.concat(l);return s?c:c.concat(vC(l))}function uv(e,t,n){return t==="viewport"?rv(function(o,s){const i=Cs(o),l=zs(o),c=i.visualViewport;let f=l.clientWidth,p=l.clientHeight,m=0,y=0;if(c){f=c.width,p=c.height;const v=hC();(v||!v&&s==="fixed")&&(m=c.offsetLeft,y=c.offsetTop)}return{width:f,height:p,x:m,y}}(e,n)):Ka(t)?function(o,s){const i=Li(o,!1,s==="fixed"),l=i.top+o.clientTop,c=i.left+o.clientLeft;return{top:l,left:c,x:c,y:l,right:c+o.clientWidth,bottom:l+o.clientHeight,width:o.clientWidth,height:o.clientHeight}}(t,n):rv(function(o){var s;const i=zs(o),l=ef(o),c=(s=o.ownerDocument)==null?void 0:s.body,f=jl(i.scrollWidth,i.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),p=jl(i.scrollHeight,i.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0);let m=-l.scrollLeft+pC(o);const y=-l.scrollTop;return Du(c||i).direction==="rtl"&&(m+=jl(i.clientWidth,c?c.clientWidth:0)-f),{width:f,height:p,x:m,y}}(zs(e)))}function HP(e){const t=vC(e),n=["absolute","fixed"].includes(Du(e).position)&&Jr(e)?Wh(e):e;return Ka(n)?t.filter(o=>Ka(o)&&function(s,i){const l=i==null||i.getRootNode==null?void 0:i.getRootNode();if(s!=null&&s.contains(i))return!0;if(l&&B0(l)){let c=i;do{if(c&&s===c)return!0;c=c.parentNode||c.host}while(c)}return!1}(o,n)&&ds(o)!=="body"):[]}const zP={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:s}=e;const i=[...n==="clippingAncestors"?HP(t):[].concat(n),o],l=i[0],c=i.reduce((f,p)=>{const m=uv(t,p,s);return f.top=jl(m.top,f.top),f.right=iv(m.right,f.right),f.bottom=iv(m.bottom,f.bottom),f.left=jl(m.left,f.left),f},uv(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const s=Jr(n),i=zs(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if((s||!s&&o!=="fixed")&&((ds(n)!=="body"||Jd(i))&&(l=ef(n)),Jr(n))){const f=Li(n,!0);c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}return Qe(be({},t),{x:t.x-l.scrollLeft+c.x,y:t.y-l.scrollTop+c.y})},isElement:Ka,getDimensions:lv,getOffsetParent:Wh,getDocumentElement:zs,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:VP(t,Wh(n),o),floating:Qe(be({},lv(n)),{x:0,y:0})}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Du(e).direction==="rtl"},UP=(e,t,n)=>MP(e,t,be({platform:zP},n));ct({});const WP=e=>{if(!jt)return;if(!e)return e;const t=kr(e);return t||(wn(e)?t:e)},jP=({middleware:e,placement:t,strategy:n})=>{const o=F(),s=F(),i=F(),l=F(),c=F({}),f={x:i,y:l,placement:t,strategy:n,middlewareData:c},p=async()=>{if(!jt)return;const m=WP(o),y=kr(s);if(!m||!y)return;const v=await UP(m,y,{placement:k(t),strategy:k(n),middleware:k(e)});Object.keys(f).forEach(w=>{f[w].value=v[w]})};return kt(()=>{dr(()=>{p()})}),Qe(be({},f),{update:p,referenceRef:o,contentRef:s})},KP=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const o=k(e);return o?LP({element:o,padding:t}).fn(n):{}}}),YP="2.1.10",cv=Symbol("INSTALLED_KEY"),GP=(e=[])=>({version:YP,install:(n,o)=>{n[cv]||(n[cv]=!0,e.forEach(s=>n.use(s)),o&&nC(o,n,!0))}}),XP=ct({zIndex:{type:Xe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),qP={scroll:({scrollTop:e,fixed:t})=>typeof e=="number"&&typeof t=="boolean",change:e=>typeof e=="boolean"};var Ue=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n};const ZP={name:"ElAffix"},QP=ve(Qe(be({},ZP),{props:XP,emits:qP,setup(e,{expose:t,emit:n}){const o=e,s="ElAffix",i=Be("affix"),l=Hn(),c=Hn(),f=Hn(),{height:p}=MD(),{height:m,width:y,top:v,bottom:w,update:E}=Gm(c),I=Gm(l),S=F(!1),T=F(0),_=F(0),N=$(()=>({height:S.value?`${m.value}px`:"",width:S.value?`${y.value}px`:""})),O=$(()=>{if(!S.value)return{};const R=o.offset?`${o.offset}px`:0;return{height:`${m.value}px`,width:`${y.value}px`,top:o.position==="top"?R:"",bottom:o.position==="bottom"?R:"",transform:_.value?`translateY(${_.value}px)`:"",zIndex:o.zIndex}}),D=()=>{if(!!f.value)if(T.value=f.value instanceof Window?document.documentElement.scrollTop:f.value.scrollTop||0,o.position==="top")if(o.target){const R=I.bottom.value-o.offset-m.value;S.value=o.offset>v.value&&I.bottom.value>0,_.value=R<0?R:0}else S.value=o.offset>v.value;else if(o.target){const R=p.value-I.top.value-o.offset-m.value;S.value=p.value-o.offset<w.value&&p.value>I.top.value,_.value=R<0?-R:0}else S.value=p.value-o.offset<w.value},x=()=>{n("scroll",{scrollTop:T.value,fixed:S.value})};return Re(S,R=>n("change",R)),kt(()=>{var R;o.target?(l.value=(R=document.querySelector(o.target))!=null?R:void 0,l.value||zn(s,`Target is not existed: ${o.target}`)):l.value=document.documentElement,f.value=_0(c.value,!0),E()}),Dn(f,"scroll",x),dr(D),t({update:D}),(R,B)=>(M(),W("div",{ref_key:"root",ref:c,class:P(k(i).b()),style:st(k(N))},[Q("div",{class:P({[k(i).m("fixed")]:S.value}),style:st(k(O))},[Ie(R.$slots,"default")],6)],6))}}));var JP=Ue(QP,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const e7=$t(JP),t7=ct({size:{type:Xe([Number,String])},color:{type:String}}),n7={name:"ElIcon",inheritAttrs:!1},o7=ve(Qe(be({},n7),{props:t7,setup(e){const t=e,n=Be("icon"),o=$(()=>!t.size&&!t.color?{}:{fontSize:zo(t.size)?void 0:Dr(t.size),"--color":t.color});return(s,i)=>(M(),W("i",pn({class:k(n).b(),style:k(o)},s.$attrs),[Ie(s.$slots,"default")],16))}}));var r7=Ue(o7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const yt=$t(r7),s7=["light","dark"],i7=ct({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:zh(ms),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:s7,default:"light"}}),a7={close:e=>e instanceof MouseEvent},l7={name:"ElAlert"},u7=ve(Qe(be({},l7),{props:i7,emits:a7,setup(e,{emit:t}){const n=e,{Close:o}=Gd,s=Nu(),i=Be("alert"),l=F(!0),c=$(()=>ms[n.type]||ms.info),f=$(()=>n.description||{[i.is("big")]:s.default}),p=$(()=>n.description||{[i.is("bold")]:s.default}),m=y=>{l.value=!1,t("close",y)};return(y,v)=>(M(),me($n,{name:k(i).b("fade")},{default:ae(()=>[bt(Q("div",{class:P([k(i).b(),k(i).m(y.type),k(i).is("center",y.center),k(i).is(y.effect)]),role:"alert"},[y.showIcon&&k(c)?(M(),me(k(yt),{key:0,class:P([k(i).e("icon"),k(f)])},{default:ae(()=>[(M(),me(Xt(k(c))))]),_:1},8,["class"])):fe("v-if",!0),Q("div",{class:P(k(i).e("content"))},[y.title||y.$slots.title?(M(),W("span",{key:0,class:P([k(i).e("title"),k(p)])},[Ie(y.$slots,"title",{},()=>[Ht(Pe(y.title),1)])],2)):fe("v-if",!0),y.$slots.default||y.description?(M(),W("p",{key:1,class:P(k(i).e("description"))},[Ie(y.$slots,"default",{},()=>[Ht(Pe(y.description),1)])],2)):fe("v-if",!0),y.closable?(M(),W(at,{key:2},[y.closeText?(M(),W("div",{key:0,class:P([k(i).e("close-btn"),k(i).is("customed")]),onClick:m},Pe(y.closeText),3)):(M(),me(k(yt),{key:1,class:P(k(i).e("close-btn")),onClick:m},{default:ae(()=>[le(k(o))]),_:1},8,["class"]))],2112)):fe("v-if",!0)],2)],2),[[Zt,l.value]])]),_:3},8,["name"]))}}));var c7=Ue(u7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const d7=$t(c7);let Sr;const f7=`
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
overflow:hidden !important;
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
`,h7=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function p7(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),s=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:h7.map(l=>`${l}:${t.getPropertyValue(l)}`).join(";"),paddingSize:o,borderSize:s,boxSizing:n}}function dv(e,t=1,n){var o;Sr||(Sr=document.createElement("textarea"),document.body.appendChild(Sr));const{paddingSize:s,borderSize:i,boxSizing:l,contextStyle:c}=p7(e);Sr.setAttribute("style",`${c};${f7}`),Sr.value=e.value||e.placeholder||"";let f=Sr.scrollHeight;const p={};l==="border-box"?f=f+i:l==="content-box"&&(f=f-s),Sr.value="";const m=Sr.scrollHeight-s;if(Qt(t)){let y=m*t;l==="border-box"&&(y=y+s+i),f=Math.max(y,f),p.minHeight=`${y}px`}if(Qt(n)){let y=m*n;l==="border-box"&&(y=y+s+i),f=Math.min(y,f)}return p.height=`${f}px`,(o=Sr.parentNode)==null||o.removeChild(Sr),Sr=void 0,p}const g7=ct({size:Qd,disabled:Boolean,modelValue:{type:Xe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Xe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:uo,default:""},prefixIcon:{type:uo,default:""},label:{type:String},tabindex:{type:[Number,String]},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Xe([Object,Array,String]),default:()=>In({})}}),m7={[Ot]:e=>_t(e),input:e=>_t(e),change:e=>_t(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},v7=["type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder"],y7=["tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],b7={name:"ElInput",inheritAttrs:!1},w7=ve(Qe(be({},b7),{props:g7,emits:m7,setup(e,{expose:t,emit:n}){const o=e,s={suffix:"append",prefix:"prepend"},i=Dt(),l=L2(),c=Nu(),f=O0(),{form:p,formItem:m}=il(),y=Fn(),v=ea(),w=Be("input"),E=Be("textarea"),I=Hn(),S=Hn(),T=F(!1),_=F(!1),N=F(!1),O=F(!1),D=Hn(o.inputStyle),x=$(()=>I.value||S.value),R=$(()=>{var ie;return(ie=p==null?void 0:p.statusIcon)!=null?ie:!1}),B=$(()=>(m==null?void 0:m.validateState)||""),Y=$(()=>Rw[B.value]),X=$(()=>O.value?DL:q$),K=$(()=>[l.style,o.inputStyle]),J=$(()=>[o.inputStyle,D.value,{resize:o.resize}]),G=$(()=>T0(o.modelValue)?"":String(o.modelValue)),z=$(()=>o.clearable&&!v.value&&!o.readonly&&!!G.value&&(T.value||_.value)),ee=$(()=>o.showPassword&&!v.value&&!o.readonly&&(!!G.value||T.value)),j=$(()=>o.showWordLimit&&!!f.value.maxlength&&(o.type==="text"||o.type==="textarea")&&!v.value&&!o.readonly&&!o.showPassword),V=$(()=>Array.from(G.value).length),q=$(()=>!!j.value&&V.value>Number(f.value.maxlength)),ce=$(()=>!!c.suffix||!!o.suffixIcon||z.value||o.showPassword||j.value||!!B.value&&R.value),ue=()=>{const{type:ie,autosize:re}=o;if(!(!jt||ie!=="textarea"))if(re){const ge=Kt(re)?re.minRows:void 0,Te=Kt(re)?re.maxRows:void 0;D.value=be({},dv(S.value,ge,Te))}else D.value={minHeight:dv(S.value).minHeight}},ne=()=>{const ie=x.value;!ie||ie.value===G.value||(ie.value=G.value)},Se=ie=>{const{el:re}=i.vnode;if(!re)return;const Te=Array.from(re.querySelectorAll(`.${w.e(ie)}`)).find(he=>he.parentNode===re);if(!Te)return;const Je=s[ie];c[Je]?Te.style.transform=`translateX(${ie==="suffix"?"-":""}${re.querySelector(`.${w.be("group",Je)}`).offsetWidth}px)`:Te.removeAttribute("style")},Ee=()=>{Se("prefix"),Se("suffix")},qe=async ie=>{const{value:re}=ie.target;N.value||re!==G.value&&(n(Ot,re),n("input",re),await dt(),ne())},xe=ie=>{n("change",ie.target.value)},pe=ie=>{n("compositionstart",ie),N.value=!0},Me=ie=>{var re;n("compositionupdate",ie);const ge=(re=ie.target)==null?void 0:re.value,Te=ge[ge.length-1]||"";N.value=!Xd(Te)},We=ie=>{n("compositionend",ie),N.value&&(N.value=!1,qe(ie))},ze=()=>{O.value=!O.value,Ze()},Ze=async()=>{var ie;await dt(),(ie=x.value)==null||ie.focus()},mt=()=>{var ie;return(ie=x.value)==null?void 0:ie.blur()},ot=ie=>{T.value=!0,n("focus",ie)},te=ie=>{var re;T.value=!1,n("blur",ie),o.validateEvent&&((re=m==null?void 0:m.validate)==null||re.call(m,"blur").catch(ge=>void 0))},de=ie=>{_.value=!1,n("mouseleave",ie)},Ne=ie=>{_.value=!0,n("mouseenter",ie)},De=ie=>{n("keydown",ie)},ke=()=>{var ie;(ie=x.value)==null||ie.select()},Ve=()=>{n(Ot,""),n("change",""),n("clear"),n("input","")};return Re(()=>o.modelValue,()=>{var ie;dt(()=>ue()),o.validateEvent&&((ie=m==null?void 0:m.validate)==null||ie.call(m,"change").catch(re=>void 0))}),Re(G,()=>ne()),Re(()=>o.type,async()=>{await dt(),ne(),ue(),Ee()}),kt(async()=>{ne(),Ee(),await dt(),ue()}),br(async()=>{await dt(),Ee()}),t({input:I,textarea:S,ref:x,textareaStyle:J,autosize:Un(o,"autosize"),focus:Ze,blur:mt,select:ke,clear:Ve,resizeTextarea:ue}),(ie,re)=>bt((M(),W("div",{class:P([ie.type==="textarea"?k(E).b():k(w).b(),k(w).m(k(y)),k(w).is("disabled",k(v)),k(w).is("exceed",k(q)),{[k(w).b("group")]:ie.$slots.prepend||ie.$slots.append,[k(w).bm("group","append")]:ie.$slots.append,[k(w).bm("group","prepend")]:ie.$slots.prepend,[k(w).m("prefix")]:ie.$slots.prefix||ie.prefixIcon,[k(w).m("suffix")]:ie.$slots.suffix||ie.suffixIcon||ie.clearable||ie.showPassword,[k(w).bm("suffix","password-clear")]:k(z)&&k(ee)},ie.$attrs.class]),style:st(k(K)),onMouseenter:Ne,onMouseleave:de},[fe(" input "),ie.type!=="textarea"?(M(),W(at,{key:0},[fe(" prepend slot "),ie.$slots.prepend?(M(),W("div",{key:0,class:P(k(w).be("group","prepend"))},[Ie(ie.$slots,"prepend")],2)):fe("v-if",!0),Q("div",{class:P([k(w).e("wrapper"),k(w).is("focus",T.value)])},[fe(" prefix slot "),ie.$slots.prefix||ie.prefixIcon?(M(),W("span",{key:0,class:P(k(w).e("prefix"))},[Q("span",{class:P(k(w).e("prefix-inner"))},[Ie(ie.$slots,"prefix"),ie.prefixIcon?(M(),me(k(yt),{key:0,class:P(k(w).e("icon"))},{default:ae(()=>[(M(),me(Xt(ie.prefixIcon)))]),_:1},8,["class"])):fe("v-if",!0)],2)],2)):fe("v-if",!0),Q("input",pn({ref_key:"input",ref:I,class:k(w).e("inner")},k(f),{type:ie.showPassword?O.value?"text":"password":ie.type,disabled:k(v),readonly:ie.readonly,autocomplete:ie.autocomplete,tabindex:ie.tabindex,"aria-label":ie.label,placeholder:ie.placeholder,style:ie.inputStyle,onCompositionstart:pe,onCompositionupdate:Me,onCompositionend:We,onInput:qe,onFocus:ot,onBlur:te,onChange:xe,onKeydown:De}),null,16,v7),fe(" suffix slot "),k(ce)?(M(),W("span",{key:1,class:P(k(w).e("suffix"))},[Q("span",{class:P(k(w).e("suffix-inner"))},[!k(z)||!k(ee)||!k(j)?(M(),W(at,{key:0},[Ie(ie.$slots,"suffix"),ie.suffixIcon?(M(),me(k(yt),{key:0,class:P(k(w).e("icon"))},{default:ae(()=>[(M(),me(Xt(ie.suffixIcon)))]),_:1},8,["class"])):fe("v-if",!0)],64)):fe("v-if",!0),k(z)?(M(),me(k(yt),{key:1,class:P([k(w).e("icon"),k(w).e("clear")]),onMousedown:re[0]||(re[0]=vt(()=>{},["prevent"])),onClick:Ve},{default:ae(()=>[le(k(gs))]),_:1},8,["class"])):fe("v-if",!0),k(ee)?(M(),me(k(yt),{key:2,class:P([k(w).e("icon"),k(w).e("password")]),onClick:ze},{default:ae(()=>[(M(),me(Xt(k(X))))]),_:1},8,["class"])):fe("v-if",!0),k(j)?(M(),W("span",{key:3,class:P(k(w).e("count"))},[Q("span",{class:P(k(w).e("count-inner"))},Pe(k(V))+" / "+Pe(k(f).maxlength),3)],2)):fe("v-if",!0)],2),k(B)&&k(Y)&&k(R)?(M(),me(k(yt),{key:0,class:P([k(w).e("icon"),k(w).e("validateIcon"),k(w).is("loading",k(B)==="validating")])},{default:ae(()=>[(M(),me(Xt(k(Y))))]),_:1},8,["class"])):fe("v-if",!0)],2)):fe("v-if",!0)],2),fe(" append slot "),ie.$slots.append?(M(),W("div",{key:1,class:P(k(w).be("group","append"))},[Ie(ie.$slots,"append")],2)):fe("v-if",!0)],64)):(M(),W(at,{key:1},[fe(" textarea "),Q("textarea",pn({ref_key:"textarea",ref:S,class:k(E).e("inner")},k(f),{tabindex:ie.tabindex,disabled:k(v),readonly:ie.readonly,autocomplete:ie.autocomplete,style:k(J),"aria-label":ie.label,placeholder:ie.placeholder,onCompositionstart:pe,onCompositionupdate:Me,onCompositionend:We,onInput:qe,onFocus:ot,onBlur:te,onChange:xe,onKeydown:De}),null,16,y7),k(j)?(M(),W("span",{key:0,class:P(k(w).e("count"))},Pe(k(V))+" / "+Pe(k(f).maxlength),3)):fe("v-if",!0)],64))],38)),[[Zt,ie.type!=="hidden"]])}}));var C7=Ue(w7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Cr=$t(C7),yC={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},E7=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),S7=ct({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),fv="Thumb",A7=ve({name:fv,props:S7,setup(e){const t=et(Zw),n=Be("scrollbar");t||zn(fv,"can not inject scrollbar context");const o=F(),s=F(),i=F({}),l=F(!1);let c=!1,f=!1,p=jt?document.onselectstart:null;const m=$(()=>yC[e.vertical?"vertical":"horizontal"]),y=$(()=>E7({size:e.size,move:e.move,bar:m.value})),v=$(()=>o.value[m.value.offset]**2/t.wrapElement[m.value.scrollSize]/e.ratio/s.value[m.value.offset]),w=D=>{var x;if(D.stopPropagation(),D.ctrlKey||[1,2].includes(D.button))return;(x=window.getSelection())==null||x.removeAllRanges(),I(D);const R=D.currentTarget;!R||(i.value[m.value.axis]=R[m.value.offset]-(D[m.value.client]-R.getBoundingClientRect()[m.value.direction]))},E=D=>{if(!s.value||!o.value||!t.wrapElement)return;const x=Math.abs(D.target.getBoundingClientRect()[m.value.direction]-D[m.value.client]),R=s.value[m.value.offset]/2,B=(x-R)*100*v.value/o.value[m.value.offset];t.wrapElement[m.value.scroll]=B*t.wrapElement[m.value.scrollSize]/100},I=D=>{D.stopImmediatePropagation(),c=!0,document.addEventListener("mousemove",S),document.addEventListener("mouseup",T),p=document.onselectstart,document.onselectstart=()=>!1},S=D=>{if(!o.value||!s.value||c===!1)return;const x=i.value[m.value.axis];if(!x)return;const R=(o.value.getBoundingClientRect()[m.value.direction]-D[m.value.client])*-1,B=s.value[m.value.offset]-x,Y=(R-B)*100*v.value/o.value[m.value.offset];t.wrapElement[m.value.scroll]=Y*t.wrapElement[m.value.scrollSize]/100},T=()=>{c=!1,i.value[m.value.axis]=0,document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",T),O(),f&&(l.value=!1)},_=()=>{f=!1,l.value=!!e.size},N=()=>{f=!0,l.value=c};gn(()=>{O(),document.removeEventListener("mouseup",T)});const O=()=>{document.onselectstart!==p&&(document.onselectstart=p)};return Dn(Un(t,"scrollbarElement"),"mousemove",_),Dn(Un(t,"scrollbarElement"),"mouseleave",N),{ns:n,instance:o,thumb:s,bar:m,thumbStyle:y,visible:l,clickTrackHandler:E,clickThumbHandler:w}}});function T7(e,t,n,o,s,i){return M(),me($n,{name:e.ns.b("fade")},{default:ae(()=>[bt(Q("div",{ref:"instance",class:P([e.ns.e("bar"),e.ns.is(e.bar.key)]),onMousedown:t[1]||(t[1]=(...l)=>e.clickTrackHandler&&e.clickTrackHandler(...l))},[Q("div",{ref:"thumb",class:P(e.ns.e("thumb")),style:st(e.thumbStyle),onMousedown:t[0]||(t[0]=(...l)=>e.clickThumbHandler&&e.clickThumbHandler(...l))},null,38)],34),[[Zt,e.always||e.visible]])]),_:1},8,["name"])}var I7=Ue(A7,[["render",T7],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const _7=ct({always:{type:Boolean,default:!0},width:{type:String,default:""},height:{type:String,default:""},ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),N7=ve({components:{Thumb:I7},props:_7,setup(e){const t=F(0),n=F(0),o=4;return{handleScroll:i=>{if(i){const l=i.offsetHeight-o,c=i.offsetWidth-o;n.value=i.scrollTop*100/l*e.ratioY,t.value=i.scrollLeft*100/c*e.ratioX}},moveX:t,moveY:n}}});function k7(e,t,n,o,s,i){const l=Ae("thumb");return M(),W(at,null,[le(l,{move:e.moveX,ratio:e.ratioX,size:e.width,always:e.always},null,8,["move","ratio","size","always"]),le(l,{move:e.moveY,ratio:e.ratioY,size:e.height,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64)}var x7=Ue(N7,[["render",k7],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const M7=ct({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Xe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:{type:Boolean,default:!1},minSize:{type:Number,default:20}}),O7={scroll:({scrollTop:e,scrollLeft:t})=>Qt(e)&&Qt(t)},D7=ve({name:"ElScrollbar",components:{Bar:x7},props:M7,emits:O7,setup(e,{emit:t}){const n=Be("scrollbar");let o,s;const i=F(),l=F(),c=F(),f=F("0"),p=F("0"),m=F(),y=F(0),v=F(0),w=F(1),E=F(1),I=4,S=$(()=>{const x={};return e.height&&(x.height=Dr(e.height)),e.maxHeight&&(x.maxHeight=Dr(e.maxHeight)),[e.wrapStyle,x]}),T=()=>{var x;l.value&&((x=m.value)==null||x.handleScroll(l.value),t("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(x,R){Kt(x)?l.value.scrollTo(x):Qt(x)&&Qt(R)&&l.value.scrollTo(x,R)}const N=x=>{!Qt(x)||(l.value.scrollTop=x)},O=x=>{!Qt(x)||(l.value.scrollLeft=x)},D=()=>{if(!l.value)return;const x=l.value.offsetHeight-I,R=l.value.offsetWidth-I,B=x**2/l.value.scrollHeight,Y=R**2/l.value.scrollWidth,X=Math.max(B,e.minSize),K=Math.max(Y,e.minSize);w.value=B/(x-B)/(X/(x-X)),E.value=Y/(R-Y)/(K/(R-K)),p.value=X+I<x?`${X}px`:"",f.value=K+I<R?`${K}px`:""};return Re(()=>e.noresize,x=>{x?(o==null||o(),s==null||s()):({stop:o}=nl(c,D),s=Dn("resize",D))},{immediate:!0}),Re(()=>[e.maxHeight,e.height],()=>{e.native||dt(()=>{var x;D(),l.value&&((x=m.value)==null||x.handleScroll(l.value))})}),Pt(Zw,nn({scrollbarElement:i,wrapElement:l})),kt(()=>{e.native||dt(()=>D())}),br(()=>D()),{ns:n,scrollbar$:i,wrap$:l,resize$:c,barRef:m,moveX:y,moveY:v,ratioX:E,ratioY:w,sizeWidth:f,sizeHeight:p,style:S,update:D,handleScroll:T,scrollTo:_,setScrollTop:N,setScrollLeft:O}}});function $7(e,t,n,o,s,i){const l=Ae("bar");return M(),W("div",{ref:"scrollbar$",class:P(e.ns.b())},[Q("div",{ref:"wrap$",class:P([e.wrapClass,e.ns.e("wrap"),{[e.ns.em("wrap","hidden-default")]:!e.native}]),style:st(e.style),onScroll:t[0]||(t[0]=(...c)=>e.handleScroll&&e.handleScroll(...c))},[(M(),me(Xt(e.tag),{ref:"resize$",class:P([e.ns.e("view"),e.viewClass]),style:st(e.viewStyle)},{default:ae(()=>[Ie(e.$slots,"default")]),_:3},8,["class","style"]))],38),e.native?fe("v-if",!0):(M(),me(l,{key:0,ref:"barRef",height:e.sizeHeight,width:e.sizeWidth,always:e.always,"ratio-x":e.ratioX,"ratio-y":e.ratioY},null,8,["height","width","always","ratio-x","ratio-y"]))],2)}var R7=Ue(D7,[["render",$7],["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Es=$t(R7),L7={name:"ElPopperRoot",inheritAttrs:!1},P7=ve(Qe(be({},L7),{setup(e,{expose:t}){const n=F(),o=F(),s=F(),i=F(),l={triggerRef:n,popperInstanceRef:o,contentRef:s,referenceRef:i};return t(l),Pt(D0,l),(c,f)=>Ie(c.$slots,"default")}}));var B7=Ue(P7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const bC=ct({arrowOffset:{type:Number,default:5}}),F7={name:"ElPopperArrow",inheritAttrs:!1},V7=ve(Qe(be({},F7),{props:bC,setup(e,{expose:t}){const n=e,o=Be("popper"),{arrowOffset:s,arrowRef:i}=et(Jw,void 0);return Re(()=>n.arrowOffset,l=>{s.value=l}),gn(()=>{i.value=void 0}),t({arrowRef:i}),(l,c)=>(M(),W("span",{ref_key:"arrowRef",ref:i,class:P(k(o).e("arrow")),"data-popper-arrow":""},null,2))}}));var H7=Ue(V7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const z7="ElOnlyChild",U7=ve({name:z7,setup(e,{slots:t,attrs:n}){var o;const s=et(uC),i=NP((o=s==null?void 0:s.setForwardRef)!=null?o:on);return()=>{var l;const c=(l=t.default)==null?void 0:l.call(t,n);if(!c||c.length>1)return null;const f=wC(c);return f?bt(Gs(f,n),[[i]]):null}}});function wC(e){if(!e)return null;const t=e;for(const n of t){if(Kt(n))switch(n.type){case So:continue;case _u:return Wf(n);case"svg":return Wf(n);case at:return wC(n.children);default:return n}return Wf(n)}return null}function Wf(e){return le("span",{class:"el-only-child__content"},[e])}const CC=ct({virtualRef:{type:Xe(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),W7={name:"ElPopperTrigger",inheritAttrs:!1},j7=ve(Qe(be({},W7),{props:CC,setup(e,{expose:t}){const n=e,{triggerRef:o}=et(D0,void 0);return _P(o),kt(()=>{Re(()=>n.virtualRef,s=>{s&&(o.value=kr(s))},{immediate:!0}),Re(()=>o.value,(s,i)=>{Wi(s)&&["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(l=>{var c;const f=n[l];f&&(s.addEventListener(l.slice(2).toLowerCase(),f),(c=i==null?void 0:i.removeEventListener)==null||c.call(i,l.slice(2).toLowerCase(),f))})},{immediate:!0})}),t({triggerRef:o}),(s,i)=>s.virtualTriggering?fe("v-if",!0):(M(),me(k(U7),pn({key:0},s.$attrs,{"aria-describedby":s.open?s.id:void 0}),{default:ae(()=>[Ie(s.$slots,"default")]),_:3},16,["aria-describedby"]))}}));var K7=Ue(j7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Y7=["fixed","absolute"],G7=ct({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Xe(Array),default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:yd,default:"bottom"},popperOptions:{type:Xe(Object),default:()=>({})},strategy:{type:String,values:Y7,default:"absolute"}}),EC=ct(Qe(be({},G7),{style:{type:Xe([String,Array,Object])},className:{type:Xe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,popperClass:{type:Xe([String,Array,Object])},popperStyle:{type:Xe([String,Array,Object])},referenceEl:{type:Xe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},zIndex:Number})),hv=(e,t)=>{const{placement:n,strategy:o,popperOptions:s}=e,i=Qe(be({placement:n,strategy:o},s),{modifiers:q7(e)});return Z7(i,t),Q7(i,s==null?void 0:s.modifiers),i},X7=e=>{if(!!jt)return kr(e)};function q7(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:o!=null?o:[]}},{name:"computeStyles",options:{gpuAcceleration:n,adaptive:n}}]}function Z7(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n!=null?n:5}})}function Q7(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const J7={name:"ElPopperContent"},e9=ve(Qe(be({},J7),{props:EC,emits:["mouseenter","mouseleave"],setup(e,{expose:t}){const n=e,{popperInstanceRef:o,contentRef:s,triggerRef:i}=et(D0,void 0),{nextZIndex:l}=ws(),c=Be("popper"),f=F(),p=F(),m=F();Pt(Jw,{arrowRef:p,arrowOffset:m});const y=F(n.zIndex||l()),v=$(()=>X7(n.referenceEl)||k(i)),w=$(()=>[{zIndex:k(y)},n.popperStyle]),E=$(()=>[c.b(),c.is("pure",n.pure),c.is(n.effect),n.popperClass]),I=({referenceEl:_,popperContentEl:N,arrowEl:O})=>{const D=hv(n,{arrowEl:O,arrowOffset:k(m)});return yu(_,N,D)},S=(_=!0)=>{var N;(N=k(o))==null||N.update(),_&&(y.value=n.zIndex||l())},T=()=>{var _,N;const O={name:"eventListeners",enabled:n.visible};(N=(_=k(o))==null?void 0:_.setOptions)==null||N.call(_,D=>Qe(be({},D),{modifiers:[...D.modifiers||[],O]})),S(!1)};return kt(()=>{let _;Re(v,N=>{var O;_==null||_();const D=k(o);if((O=D==null?void 0:D.destroy)==null||O.call(D),N){const x=k(f);s.value=x,o.value=I({referenceEl:N,popperContentEl:x,arrowEl:k(p)}),_=Re(()=>N.getBoundingClientRect(),()=>S(),{immediate:!0})}else o.value=void 0},{immediate:!0}),Re(()=>n.visible,T,{immediate:!0}),Re(()=>hv(n,{arrowEl:k(p),arrowOffset:k(m)}),N=>{var O;return(O=o.value)==null?void 0:O.setOptions(N)})}),t({popperContentRef:f,popperInstanceRef:o,updatePopper:S,contentStyle:w}),(_,N)=>(M(),W("div",{ref_key:"popperContentRef",ref:f,style:st(k(w)),class:P(k(E)),role:"tooltip",onMouseenter:N[0]||(N[0]=O=>_.$emit("mouseenter",O)),onMouseleave:N[1]||(N[1]=O=>_.$emit("mouseleave",O))},[Ie(_.$slots,"default")],38))}}));var t9=Ue(e9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const n9={LIGHT:"light",DARK:"dark"};ct({autoClose:{type:Number,default:0},cutoff:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}});function al(e,t){const n=Dt(),o=$(()=>ao(n.props[t])?n.props[t]:n.props.teleported);return Ou({scope:e,from:t,replacement:"teleported",version:"2.1.0",ref:"https://element-plus.org/en-US/component/tooltip.html#attributes"},$(()=>ao(n.props[t]))),{compatTeleported:o}}const SC=$t(B7),o9=ve({name:"ElVisuallyHidden",props:{style:{type:[String,Object,Array]}},setup(e){return{computedStyle:$(()=>[e.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}])}}});function r9(e,t,n,o,s,i){return M(),W("span",pn(e.$attrs,{style:e.computedStyle}),[Ie(e.$slots,"default")],16)}var AC=Ue(o9,[["render",r9],["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const ro=ct(Qe(be(be({},TP),EC),{appendTo:{type:Xe([String,Object]),default:lC},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Xe(Boolean),default:null},transition:{type:String,default:"el-fade-in-linear"},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),du=ct(Qe(be({},CC),{disabled:Boolean,trigger:{type:Xe([String,Array]),default:"hover"}})),s9=ct({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),tf=Symbol("elTooltip"),i9=ve({name:"ElTooltipContent",components:{ElPopperContent:t9,ElVisuallyHidden:AC},inheritAttrs:!1,props:ro,setup(e){const t=F(null),n=F(!1),o=F(!1),s=F(!1),i=F(!1),{controlled:l,id:c,open:f,trigger:p,onClose:m,onOpen:y,onShow:v,onHide:w,onBeforeShow:E,onBeforeHide:I}=et(tf,void 0),S=$(()=>e.persistent);gn(()=>{i.value=!0});const T=$(()=>k(S)?!0:k(f)),_=$(()=>e.disabled?!1:k(f)),N=$(()=>{var G;return(G=e.style)!=null?G:{}}),O=$(()=>!k(f));EP(m);const D=()=>{w()},x=()=>{if(k(l))return!0},R=Tn(x,()=>{e.enterable&&k(p)==="hover"&&y()}),B=Tn(x,()=>{k(p)==="hover"&&m()}),Y=()=>{var G,z;(z=(G=t.value)==null?void 0:G.updatePopper)==null||z.call(G),E==null||E()},X=()=>{I==null||I()},K=()=>{v()};let J;return Re(()=>k(f),G=>{G?J=id($(()=>{var z;return(z=t.value)==null?void 0:z.popperContentRef}),()=>{if(k(l))return;k(p)!=="hover"&&m()}):J==null||J()},{flush:"post"}),{ariaHidden:O,entering:o,leaving:s,id:c,intermediateOpen:n,contentStyle:N,contentRef:t,destroyed:i,shouldRender:T,shouldShow:_,open:f,onAfterShow:K,onBeforeEnter:Y,onBeforeLeave:X,onContentEnter:R,onContentLeave:B,onTransitionLeave:D}}});function a9(e,t,n,o,s,i){const l=Ae("el-visually-hidden"),c=Ae("el-popper-content");return M(),me(Iu,{disabled:!e.teleported,to:e.appendTo},[le($n,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:ae(()=>[e.shouldRender?bt((M(),me(c,pn({key:0,ref:"contentRef"},e.$attrs,{"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave}),{default:ae(()=>[fe(" Workaround bug #6378 "),e.destroyed?fe("v-if",!0):(M(),W(at,{key:0},[Ie(e.$slots,"default"),le(l,{id:e.id,role:"tooltip"},{default:ae(()=>[Ht(Pe(e.ariaLabel),1)]),_:1},8,["id"])],64))]),_:3},16,["aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","visible","z-index","onMouseenter","onMouseleave"])),[[Zt,e.shouldShow]]):fe("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var l9=Ue(i9,[["render",a9],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const u9=(e,t)=>wt(e)?e.includes(t):e===t,fa=(e,t,n)=>o=>{u9(k(e),t)&&n(o)},c9=ve({name:"ElTooltipTrigger",components:{ElPopperTrigger:K7},props:du,setup(e){const t=Be("tooltip"),{controlled:n,id:o,open:s,onOpen:i,onClose:l,onToggle:c}=et(tf,void 0),f=F(null),p=()=>{if(k(n)||e.disabled)return!0},m=Un(e,"trigger"),y=Tn(p,fa(m,"hover",i)),v=Tn(p,fa(m,"hover",l)),w=Tn(p,fa(m,"click",_=>{_.button===0&&c(_)})),E=Tn(p,fa(m,"focus",i)),I=Tn(p,fa(m,"focus",l)),S=Tn(p,fa(m,"contextmenu",_=>{_.preventDefault(),c(_)})),T=Tn(p,_=>{const{code:N}=_;(N===rt.enter||N===rt.space)&&c(_)});return{onBlur:I,onContextMenu:S,onFocus:E,onMouseenter:y,onMouseleave:v,onClick:w,onKeydown:T,open:s,id:o,triggerRef:f,ns:t}}});function d9(e,t,n,o,s,i){const l=Ae("el-popper-trigger");return M(),me(l,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:P(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:ae(()=>[Ie(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var f9=Ue(c9,[["render",d9],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:h9,useModelToggle:p9,useModelToggleEmits:g9}=mP("visible"),m9=ve({name:"ElTooltip",components:{ElPopper:SC,ElPopperArrow:H7,ElTooltipContent:l9,ElTooltipTrigger:f9},props:be(be(be(be(be({},h9),ro),du),bC),s9),emits:[...g9,"before-show","before-hide","show","hide"],setup(e,{emit:t}){AP();const n=$(()=>(zo(e.openDelay),e.openDelay||e.showAfter)),o=$(()=>(zo(e.visibleArrow),ao(e.visibleArrow)?e.visibleArrow:e.showArrow)),s=R0(),i=F(null),l=()=>{var w;const E=k(i);E&&((w=E.popperInstanceRef)==null||w.update())},c=F(!1),{show:f,hide:p}=p9({indicator:c}),{onOpen:m,onClose:y}=IP({showAfter:n,hideAfter:Un(e,"hideAfter"),open:f,close:p}),v=$(()=>ao(e.visible));return Pt(tf,{controlled:v,id:s,open:Su(c),trigger:Un(e,"trigger"),onOpen:m,onClose:y,onToggle:()=>{k(c)?y():m()},onShow:()=>{t("show")},onHide:()=>{t("hide")},onBeforeShow:()=>{t("before-show")},onBeforeHide:()=>{t("before-hide")},updatePopper:l}),Re(()=>e.disabled,w=>{w&&c.value&&(c.value=!1)}),{compatShowAfter:n,compatShowArrow:o,popperRef:i,open:c,hide:p,updatePopper:l,onOpen:m,onClose:y}}}),v9=["innerHTML"],y9={key:1};function b9(e,t,n,o,s,i){const l=Ae("el-tooltip-trigger"),c=Ae("el-popper-arrow"),f=Ae("el-tooltip-content"),p=Ae("el-popper");return M(),me(p,{ref:"popperRef"},{default:ae(()=>[le(l,{disabled:e.disabled,trigger:e.trigger,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:ae(()=>[e.$slots.default?Ie(e.$slots,"default",{key:0}):fe("v-if",!0)]),_:3},8,["disabled","trigger","virtual-ref","virtual-triggering"]),le(f,{"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"z-index":e.zIndex,"append-to":e.appendTo},{default:ae(()=>[Ie(e.$slots,"content",{},()=>[e.rawContent?(M(),W("span",{key:0,innerHTML:e.content},null,8,v9)):(M(),W("span",y9,Pe(e.content),1))]),e.compatShowArrow?(M(),me(c,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):fe("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","show-after","strategy","teleported","transition","z-index","append-to"])]),_:3},512)}var w9=Ue(m9,[["render",b9],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Ro=$t(w9),C9=ct({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:Xe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:Xe([Function,Array]),default:on},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:void 0},teleported:ro.teleported,highlightFirstItem:{type:Boolean,default:!1}}),E9={[Ot]:e=>_t(e),input:e=>_t(e),change:e=>_t(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Kt(e)},S9=["aria-expanded","aria-owns"],A9={key:0},T9=["id","aria-selected","onClick"],I9={name:"ElAutocomplete",inheritAttrs:!1},_9=ve(Qe(be({},I9),{props:C9,emits:E9,setup(e,{expose:t,emit:n}){const o=e,s="ElAutocomplete",i=Be("autocomplete"),{compatTeleported:l}=al(s,"popperAppendToBody");let c=!1;const f=O0(),p=L2(),m=F([]),y=F(-1),v=F(""),w=F(!1),E=F(!1),I=F(!1),S=F(),T=F(),_=F(),N=F(),O=$(()=>i.b(String(Mu()))),D=$(()=>p.style),x=$(()=>(wt(m.value)&&m.value.length>0||I.value)&&w.value),R=$(()=>!o.hideLoading&&I.value),B=()=>{dt(()=>{x.value&&(v.value=`${S.value.$el.offsetWidth}px`)})},X=$o(ne=>{if(E.value)return;I.value=!0;const Se=Ee=>{I.value=!1,!E.value&&(wt(Ee)?(m.value=Ee,y.value=o.highlightFirstItem?0:-1):zn(s,"autocomplete suggestions must be an array"))};if(wt(o.fetchSuggestions))Se(o.fetchSuggestions);else{const Ee=o.fetchSuggestions(ne,Se);wt(Ee)?Se(Ee):Hi(Ee)&&Ee.then(Se)}},o.debounce),K=ne=>{const Se=Boolean(ne);if(n("input",ne),n(Ot,ne),E.value=!1,w.value||(w.value=c&&Se),!o.triggerOnFocus&&!ne){E.value=!0,m.value=[];return}c&&Se&&(c=!1),X(ne)},J=ne=>{n("change",ne)},G=ne=>{w.value=!0,n("focus",ne),o.triggerOnFocus&&X(String(o.modelValue))},z=ne=>{n("blur",ne)},ee=()=>{w.value=!1,c=!0,n(Ot,""),n("clear")},j=()=>{x.value&&y.value>=0&&y.value<m.value.length?ce(m.value[y.value]):o.selectWhenUnmatched&&(n("select",{value:o.modelValue}),dt(()=>{m.value=[],y.value=-1}))},V=()=>{w.value=!1},q=()=>{var ne;(ne=S.value)==null||ne.focus()},ce=ne=>{n("input",ne[o.valueKey]),n(Ot,ne[o.valueKey]),n("select",ne),dt(()=>{m.value=[],y.value=-1})},ue=ne=>{if(!x.value||I.value)return;if(ne<0){y.value=-1;return}ne>=m.value.length&&(ne=m.value.length-1);const Se=T.value.querySelector(`.${i.be("suggestion","wrap")}`),qe=Se.querySelectorAll(`.${i.be("suggestion","list")} li`)[ne],xe=Se.scrollTop,{offsetTop:pe,scrollHeight:Me}=qe;pe+Me>xe+Se.clientHeight&&(Se.scrollTop+=Me),pe<xe&&(Se.scrollTop-=Me),y.value=ne,S.value.ref.setAttribute("aria-activedescendant",`${O.value}-item-${y.value}`)};return id(N,V),kt(()=>{S.value.ref.setAttribute("role","textbox"),S.value.ref.setAttribute("aria-autocomplete","list"),S.value.ref.setAttribute("aria-controls","id"),S.value.ref.setAttribute("aria-activedescendant",`${O.value}-item-${y.value}`)}),t({highlightedIndex:y,activated:w,loading:I,inputRef:S,popperRef:_,suggestions:m,handleSelect:ce,handleKeyEnter:j,focus:q,close:V,highlight:ue}),(ne,Se)=>(M(),me(k(Ro),{ref_key:"popperRef",ref:_,visible:k(x),"onUpdate:visible":Se[2]||(Se[2]=Ee=>wn(x)?x.value=Ee:null),placement:ne.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[k(i).e("popper"),ne.popperClass],teleported:k(l),"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${k(i).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:B},{content:ae(()=>[Q("div",{ref_key:"regionRef",ref:T,class:P([k(i).b("suggestion"),k(i).is("loading",k(R))]),style:st({minWidth:v.value,outline:"none"}),role:"region"},[le(k(Es),{id:k(O),tag:"ul","wrap-class":k(i).be("suggestion","wrap"),"view-class":k(i).be("suggestion","list"),role:"listbox"},{default:ae(()=>[k(R)?(M(),W("li",A9,[le(k(yt),{class:P(k(i).is("loading"))},{default:ae(()=>[le(k(ti))]),_:1},8,["class"])])):(M(!0),W(at,{key:1},zt(m.value,(Ee,qe)=>(M(),W("li",{id:`${k(O)}-item-${qe}`,key:qe,class:P({highlighted:y.value===qe}),role:"option","aria-selected":y.value===qe,onClick:xe=>ce(Ee)},[Ie(ne.$slots,"default",{item:Ee},()=>[Ht(Pe(Ee[ne.valueKey]),1)])],10,T9))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:ae(()=>[Q("div",{ref_key:"listboxRef",ref:N,class:P([k(i).b(),ne.$attrs.class]),style:st(k(D)),role:"combobox","aria-haspopup":"listbox","aria-expanded":k(x),"aria-owns":k(O)},[le(k(Cr),pn({ref_key:"inputRef",ref:S},k(f),{"model-value":ne.modelValue,onInput:K,onChange:J,onFocus:G,onBlur:z,onClear:ee,onKeydown:[Se[0]||(Se[0]=Ft(vt(Ee=>ue(y.value-1),["prevent"]),["up"])),Se[1]||(Se[1]=Ft(vt(Ee=>ue(y.value+1),["prevent"]),["down"])),Ft(j,["enter"]),Ft(V,["tab"])]}),Xs({_:2},[ne.$slots.prepend?{name:"prepend",fn:ae(()=>[Ie(ne.$slots,"prepend")])}:void 0,ne.$slots.append?{name:"append",fn:ae(()=>[Ie(ne.$slots,"append")])}:void 0,ne.$slots.prefix?{name:"prefix",fn:ae(()=>[Ie(ne.$slots,"prefix")])}:void 0,ne.$slots.suffix?{name:"suffix",fn:ae(()=>[Ie(ne.$slots,"suffix")])}:void 0]),1040,["model-value","onKeydown"])],14,S9)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}}));var N9=Ue(_9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const k9=$t(N9),x9=ct({size:{type:[Number,String],values:ts,default:"",validator:e=>typeof e=="number"},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:uo},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:Xe(String),default:"cover"}}),M9={error:e=>e instanceof Event},O9=["src","alt","srcset"],D9={name:"ElAvatar"},$9=ve(Qe(be({},D9),{props:x9,emits:M9,setup(e,{emit:t}){const n=e,o=Be("avatar"),s=F(!1),i=$(()=>{const{size:p,icon:m,shape:y}=n,v=[o.b()];return _t(p)&&v.push(o.m(p)),m&&v.push(o.m("icon")),y&&v.push(o.m(y)),v}),l=$(()=>{const{size:p}=n;return Qt(p)?{"--el-avatar-size":Dr(p)}:void 0}),c=$(()=>({objectFit:n.fit}));Re(()=>n.src,()=>s.value=!1);function f(p){s.value=!0,t("error",p)}return(p,m)=>(M(),W("span",{class:P(k(i)),style:st(k(l))},[(p.src||p.srcSet)&&!s.value?(M(),W("img",{key:0,src:p.src,alt:p.alt,srcset:p.srcSet,style:st(k(c)),onError:f},null,44,O9)):p.icon?(M(),me(k(yt),{key:1},{default:ae(()=>[(M(),me(Xt(p.icon)))]),_:1})):Ie(p.$slots,"default",{key:2})],6))}}));var R9=Ue($9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const L9=$t(R9),P9={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},B9={click:e=>e instanceof MouseEvent},F9=["onClick"],V9={name:"ElBacktop"},H9=ve(Qe(be({},V9),{props:P9,emits:B9,setup(e,{emit:t}){const n=e,o="ElBacktop",s=Be("backtop"),i=Hn(),l=Hn(),c=F(!1),f=$(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`})),p=()=>{if(!i.value)return;const w=Date.now(),E=i.value.scrollTop,I=()=>{if(!i.value)return;const S=(Date.now()-w)/500;S<1?(i.value.scrollTop=E*(1-rP(S)),requestAnimationFrame(I)):i.value.scrollTop=0};requestAnimationFrame(I)},m=()=>{i.value&&(c.value=i.value.scrollTop>=n.visibilityHeight)},y=w=>{p(),t("click",w)},v=_w(m,300);return kt(()=>{var w;l.value=document,i.value=document.documentElement,n.target&&(i.value=(w=document.querySelector(n.target))!=null?w:void 0,i.value||zn(o,`target is not existed: ${n.target}`),l.value=i.value),Dn(l,"scroll",v)}),(w,E)=>(M(),me($n,{name:`${k(s).namespace.value}-fade-in`},{default:ae(()=>[c.value?(M(),W("div",{key:0,style:st(k(f)),class:P(k(s).b()),onClick:vt(y,["stop"])},[Ie(w.$slots,"default",{},()=>[le(k(yt),{class:P(k(s).e("icon"))},{default:ae(()=>[le(k(k5))]),_:1},8,["class"])])],14,F9)):fe("v-if",!0)]),_:3},8,["name"]))}}));var z9=Ue(H9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const U9=$t(z9),W9=ct({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),j9=["textContent"],K9={name:"ElBadge"},Y9=ve(Qe(be({},K9),{props:W9,setup(e,{expose:t}){const n=e,o=Be("badge"),s=$(()=>n.isDot?"":Qt(n.value)&&Qt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:s}),(i,l)=>(M(),W("div",{class:P(k(o).b())},[Ie(i.$slots,"default"),le($n,{name:`${k(o).namespace.value}-zoom-in-center`},{default:ae(()=>[bt(Q("sup",{class:P([k(o).e("content"),k(o).em("content",i.type),k(o).is("fixed",!!i.$slots.default),k(o).is("dot",i.isDot)]),textContent:Pe(k(s))},null,10,j9),[[Zt,!i.hidden&&(k(s)||k(s)==="0"||i.isDot)]])]),_:1},8,["name"])],2))}}));var G9=Ue(Y9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const TC=$t(G9),X9=ct({separator:{type:String,default:"/"},separatorIcon:{type:uo,default:""}}),q9={name:"ElBreadcrumb"},Z9=ve(Qe(be({},q9),{props:X9,setup(e){const t=e,n=Be("breadcrumb"),o=F();return Pt(zw,t),kt(()=>{const s=o.value.querySelectorAll(`.${n.e("item")}`);s.length&&s[s.length-1].setAttribute("aria-current","page")}),(s,i)=>(M(),W("div",{ref_key:"breadcrumb",ref:o,class:P(k(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Ie(s.$slots,"default")],2))}}));var Q9=Ue(Z9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const J9=ct({to:{type:Xe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),eB={name:"ElBreadcrumbItem"},tB=ve(Qe(be({},eB),{props:J9,setup(e){const t=e,o=Dt().appContext.config.globalProperties.$router,s=et(zw,{}),i=Be("breadcrumb"),{separator:l,separatorIcon:c}=s,f=F(),p=()=>{!t.to||!o||(t.replace?o.replace(t.to):o.push(t.to))};return(m,y)=>(M(),W("span",{class:P(k(i).e("item"))},[Q("span",{ref_key:"link",ref:f,class:P([k(i).e("inner"),k(i).is("link",!!m.to)]),role:"link",onClick:p},[Ie(m.$slots,"default")],2),k(c)?(M(),me(k(yt),{key:0,class:P(k(i).e("separator"))},{default:ae(()=>[(M(),me(Xt(k(c))))]),_:1},8,["class"])):(M(),W("span",{key:1,class:P(k(i).e("separator")),role:"presentation"},Pe(k(l)),3))],2))}}));var IC=Ue(tB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const nB=$t(Q9,{BreadcrumbItem:IC}),oB=_n(IC),jh=["default","primary","success","warning","info","danger","text",""],rB=["button","submit","reset"],Kh=ct({size:Qd,disabled:Boolean,type:{type:String,values:jh,default:""},icon:{type:uo,default:""},nativeType:{type:String,values:rB,default:"button"},loading:Boolean,loadingIcon:{type:uo,default:()=>ti},plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),sB={click:e=>e instanceof MouseEvent};function lo(e,t){iB(e)&&(e="100%");var n=aB(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function rc(e){return Math.min(1,Math.max(0,e))}function iB(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function aB(e){return typeof e=="string"&&e.indexOf("%")!==-1}function _C(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function sc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ti(e){return e.length===1?"0"+e:String(e)}function lB(e,t,n){return{r:lo(e,255)*255,g:lo(t,255)*255,b:lo(n,255)*255}}function pv(e,t,n){e=lo(e,255),t=lo(t,255),n=lo(n,255);var o=Math.max(e,t,n),s=Math.min(e,t,n),i=0,l=0,c=(o+s)/2;if(o===s)l=0,i=0;else{var f=o-s;switch(l=c>.5?f/(2-o-s):f/(o+s),o){case e:i=(t-n)/f+(t<n?6:0);break;case t:i=(n-e)/f+2;break;case n:i=(e-t)/f+4;break}i/=6}return{h:i,s:l,l:c}}function jf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function uB(e,t,n){var o,s,i;if(e=lo(e,360),t=lo(t,100),n=lo(n,100),t===0)s=n,i=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=jf(c,l,e+1/3),s=jf(c,l,e),i=jf(c,l,e-1/3)}return{r:o*255,g:s*255,b:i*255}}function gv(e,t,n){e=lo(e,255),t=lo(t,255),n=lo(n,255);var o=Math.max(e,t,n),s=Math.min(e,t,n),i=0,l=o,c=o-s,f=o===0?0:c/o;if(o===s)i=0;else{switch(o){case e:i=(t-n)/c+(t<n?6:0);break;case t:i=(n-e)/c+2;break;case n:i=(e-t)/c+4;break}i/=6}return{h:i,s:f,v:l}}function cB(e,t,n){e=lo(e,360)*6,t=lo(t,100),n=lo(n,100);var o=Math.floor(e),s=e-o,i=n*(1-t),l=n*(1-s*t),c=n*(1-(1-s)*t),f=o%6,p=[n,l,i,i,c,n][f],m=[c,n,n,l,i,i][f],y=[i,i,c,n,n,l][f];return{r:p*255,g:m*255,b:y*255}}function mv(e,t,n,o){var s=[Ti(Math.round(e).toString(16)),Ti(Math.round(t).toString(16)),Ti(Math.round(n).toString(16))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function dB(e,t,n,o,s){var i=[Ti(Math.round(e).toString(16)),Ti(Math.round(t).toString(16)),Ti(Math.round(n).toString(16)),Ti(fB(o))];return s&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function fB(e){return Math.round(parseFloat(e)*255).toString(16)}function vv(e){return Po(e)/255}function Po(e){return parseInt(e,16)}function hB(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Yh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function pB(e){var t={r:0,g:0,b:0},n=1,o=null,s=null,i=null,l=!1,c=!1;return typeof e=="string"&&(e=vB(e)),typeof e=="object"&&(os(e.r)&&os(e.g)&&os(e.b)?(t=lB(e.r,e.g,e.b),l=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):os(e.h)&&os(e.s)&&os(e.v)?(o=sc(e.s),s=sc(e.v),t=cB(e.h,o,s),l=!0,c="hsv"):os(e.h)&&os(e.s)&&os(e.l)&&(o=sc(e.s),i=sc(e.l),t=uB(e.h,o,i),l=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=_C(n),{ok:l,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var gB="[-\\+]?\\d+%?",mB="[-\\+]?\\d*\\.\\d+%?",Vs="(?:".concat(mB,")|(?:").concat(gB,")"),Kf="[\\s|\\(]+(".concat(Vs,")[,|\\s]+(").concat(Vs,")[,|\\s]+(").concat(Vs,")\\s*\\)?"),Yf="[\\s|\\(]+(".concat(Vs,")[,|\\s]+(").concat(Vs,")[,|\\s]+(").concat(Vs,")[,|\\s]+(").concat(Vs,")\\s*\\)?"),Tr={CSS_UNIT:new RegExp(Vs),rgb:new RegExp("rgb"+Kf),rgba:new RegExp("rgba"+Yf),hsl:new RegExp("hsl"+Kf),hsla:new RegExp("hsla"+Yf),hsv:new RegExp("hsv"+Kf),hsva:new RegExp("hsva"+Yf),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function vB(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Yh[e])e=Yh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Tr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Tr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Tr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Tr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Tr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Tr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Tr.hex8.exec(e),n?{r:Po(n[1]),g:Po(n[2]),b:Po(n[3]),a:vv(n[4]),format:t?"name":"hex8"}:(n=Tr.hex6.exec(e),n?{r:Po(n[1]),g:Po(n[2]),b:Po(n[3]),format:t?"name":"hex"}:(n=Tr.hex4.exec(e),n?{r:Po(n[1]+n[1]),g:Po(n[2]+n[2]),b:Po(n[3]+n[3]),a:vv(n[4]+n[4]),format:t?"name":"hex8"}:(n=Tr.hex3.exec(e),n?{r:Po(n[1]+n[1]),g:Po(n[2]+n[2]),b:Po(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function os(e){return Boolean(Tr.CSS_UNIT.exec(String(e)))}var NC=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=hB(t)),this.originalInput=t;var s=pB(t);this.originalInput=t,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:s.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,s,i=t.r/255,l=t.g/255,c=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),c<=.03928?s=c/12.92:s=Math.pow((c+.055)/1.055,2.4),.2126*n+.7152*o+.0722*s},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=_C(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=gv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=gv(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=pv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=pv(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(s,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(s,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),mv(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),dB(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(lo(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(lo(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+mv(this.r,this.g,this.b,!1),n=0,o=Object.entries(Yh);n<o.length;n++){var s=o[n],i=s[0],l=s[1];if(t===l)return i}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t!=null?t:this.format;var o=!1,s=this.a<1&&this.a>=0,i=!n&&s&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=rc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=rc(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=rc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=rc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),s=new e(t).toRgb(),i=n/100,l={r:(s.r-o.r)*i+o.r,g:(s.g-o.g)*i+o.g,b:(s.b-o.b)*i+o.b,a:(s.a-o.a)*i+o.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),s=360/n,i=[this];for(o.h=(o.h-(s*t>>1)+720)%360;--t;)o.h=(o.h+s)%360,i.push(new e(o));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,s=n.s,i=n.v,l=[],c=1/t;t--;)l.push(new e({h:o,s,v:i})),i=(i+c)%1;return l},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb();return new e({r:o.r+(n.r-o.r)*n.a,g:o.g+(n.g-o.g)*n.a,b:o.b+(n.b-o.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,s=[this],i=360/t,l=1;l<t;l++)s.push(new e({h:(o+l*i)%360,s:n.s,l:n.l}));return s},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ds(e,t=20){return e.mix("#141414",t).toString()}function yB(e){const t=ea();return $(()=>{let n={};const o=e.color;if(o){const s=new NC(o),i=e.dark?s.tint(20).toString():Ds(s,20);if(e.plain)n={"--el-button-bg-color":e.dark?Ds(s,90):s.tint(90).toString(),"--el-button-text-color":o,"--el-button-border-color":e.dark?Ds(s,50):s.tint(50).toString(),"--el-button-hover-text-color":"var(--el-color-white)","--el-button-hover-bg-color":o,"--el-button-hover-border-color":o,"--el-button-active-bg-color":i,"--el-button-active-text-color":"var(--el-color-white)","--el-button-active-border-color":i},t.value&&(n["--el-button-disabled-bg-color"]=e.dark?Ds(s,90):s.tint(90).toString(),n["--el-button-disabled-text-color"]=e.dark?Ds(s,50):s.tint(50).toString(),n["--el-button-disabled-border-color"]=e.dark?Ds(s,80):s.tint(80).toString());else{const l=e.dark?Ds(s,30):s.tint(30).toString(),c=s.isDark()?"var(--el-color-white)":"var(--el-color-black)";if(n={"--el-button-bg-color":o,"--el-button-text-color":c,"--el-button-border-color":o,"--el-button-hover-bg-color":l,"--el-button-hover-text-color":c,"--el-button-hover-border-color":l,"--el-button-active-bg-color":i,"--el-button-active-border-color":i},t.value){const f=e.dark?Ds(s,50):s.tint(50).toString();n["--el-button-disabled-bg-color"]=f,n["--el-button-disabled-text-color"]=e.dark?"rgba(255, 255, 255, 0.5)":"var(--el-color-white)",n["--el-button-disabled-border-color"]=f}}}return n})}const bB=["disabled","autofocus","type"],wB={name:"ElButton"},CB=ve(Qe(be({},wB),{props:Kh,emits:sB,setup(e,{expose:t,emit:n}){const o=e,s=Nu(),i=et(Uw,void 0),l=sl("button"),c=Be("button"),{form:f}=il(),p=Fn($(()=>i==null?void 0:i.size)),m=ea(),y=F(),v=$(()=>o.type||(i==null?void 0:i.type)||""),w=$(()=>{var T,_,N;return(N=(_=o.autoInsertSpace)!=null?_:(T=l.value)==null?void 0:T.autoInsertSpace)!=null?N:!1}),E=$(()=>{var T;const _=(T=s.default)==null?void 0:T.call(s);if(w.value&&(_==null?void 0:_.length)===1){const N=_[0];if((N==null?void 0:N.type)===_u){const O=N.children;return/^\p{Unified_Ideograph}{2}$/u.test(O.trim())}}return!1}),I=yB(o),S=T=>{o.nativeType==="reset"&&(f==null||f.resetFields()),n("click",T)};return t({ref:y,size:p,type:v,disabled:m,shouldAddSpace:E}),(T,_)=>(M(),W("button",{ref_key:"_ref",ref:y,class:P([k(c).b(),k(c).m(k(v)),k(c).m(k(p)),k(c).is("disabled",k(m)),k(c).is("loading",T.loading),k(c).is("plain",T.plain),k(c).is("round",T.round),k(c).is("circle",T.circle)]),disabled:k(m)||T.loading,autofocus:T.autofocus,type:T.nativeType,style:st(k(I)),onClick:S},[T.loading?(M(),W(at,{key:0},[T.$slots.loading?Ie(T.$slots,"loading",{key:0}):(M(),me(k(yt),{key:1,class:P(k(c).is("loading"))},{default:ae(()=>[(M(),me(Xt(T.loadingIcon)))]),_:1},8,["class"]))],2112)):T.icon||T.$slots.icon?(M(),me(k(yt),{key:1},{default:ae(()=>[T.icon?(M(),me(Xt(T.icon),{key:0})):Ie(T.$slots,"icon",{key:1})]),_:3})):fe("v-if",!0),T.$slots.default?(M(),W("span",{key:2,class:P({[k(c).em("text","expand")]:k(E)})},[Ie(T.$slots,"default")],2)):fe("v-if",!0)],14,bB))}}));var EB=Ue(CB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const SB={size:Kh.size,type:Kh.type},AB={name:"ElButtonGroup"},TB=ve(Qe(be({},AB),{props:SB,setup(e){const t=e;Pt(Uw,nn({size:Un(t,"size"),type:Un(t,"type")}));const n=Be("button");return(o,s)=>(M(),W("div",{class:P(`${k(n).b("group")}`)},[Ie(o.$slots,"default")],2))}}));var kC=Ue(TB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const fr=$t(EB,{ButtonGroup:kC}),xC=_n(kC);var Mo=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function MC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var OC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Mo,function(){var n=1e3,o=6e4,s=36e5,i="millisecond",l="second",c="minute",f="hour",p="day",m="week",y="month",v="quarter",w="year",E="date",I="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},N=function(G,z,ee){var j=String(G);return!j||j.length>=z?G:""+Array(z+1-j.length).join(ee)+G},O={s:N,z:function(G){var z=-G.utcOffset(),ee=Math.abs(z),j=Math.floor(ee/60),V=ee%60;return(z<=0?"+":"-")+N(j,2,"0")+":"+N(V,2,"0")},m:function G(z,ee){if(z.date()<ee.date())return-G(ee,z);var j=12*(ee.year()-z.year())+(ee.month()-z.month()),V=z.clone().add(j,y),q=ee-V<0,ce=z.clone().add(j+(q?-1:1),y);return+(-(j+(ee-V)/(q?V-ce:ce-V))||0)},a:function(G){return G<0?Math.ceil(G)||0:Math.floor(G)},p:function(G){return{M:y,y:w,w:m,d:p,D:E,h:f,m:c,s:l,ms:i,Q:v}[G]||String(G||"").toLowerCase().replace(/s$/,"")},u:function(G){return G===void 0}},D="en",x={};x[D]=_;var R=function(G){return G instanceof K},B=function G(z,ee,j){var V;if(!z)return D;if(typeof z=="string"){var q=z.toLowerCase();x[q]&&(V=q),ee&&(x[q]=ee,V=q);var ce=z.split("-");if(!V&&ce.length>1)return G(ce[0])}else{var ue=z.name;x[ue]=z,V=ue}return!j&&V&&(D=V),V||!j&&D},Y=function(G,z){if(R(G))return G.clone();var ee=typeof z=="object"?z:{};return ee.date=G,ee.args=arguments,new K(ee)},X=O;X.l=B,X.i=R,X.w=function(G,z){return Y(G,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var K=function(){function G(ee){this.$L=B(ee.locale,null,!0),this.parse(ee)}var z=G.prototype;return z.parse=function(ee){this.$d=function(j){var V=j.date,q=j.utc;if(V===null)return new Date(NaN);if(X.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var ce=V.match(S);if(ce){var ue=ce[2]-1||0,ne=(ce[7]||"0").substring(0,3);return q?new Date(Date.UTC(ce[1],ue,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,ne)):new Date(ce[1],ue,ce[3]||1,ce[4]||0,ce[5]||0,ce[6]||0,ne)}}return new Date(V)}(ee),this.$x=ee.x||{},this.init()},z.init=function(){var ee=this.$d;this.$y=ee.getFullYear(),this.$M=ee.getMonth(),this.$D=ee.getDate(),this.$W=ee.getDay(),this.$H=ee.getHours(),this.$m=ee.getMinutes(),this.$s=ee.getSeconds(),this.$ms=ee.getMilliseconds()},z.$utils=function(){return X},z.isValid=function(){return this.$d.toString()!==I},z.isSame=function(ee,j){var V=Y(ee);return this.startOf(j)<=V&&V<=this.endOf(j)},z.isAfter=function(ee,j){return Y(ee)<this.startOf(j)},z.isBefore=function(ee,j){return this.endOf(j)<Y(ee)},z.$g=function(ee,j,V){return X.u(ee)?this[j]:this.set(V,ee)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(ee,j){var V=this,q=!!X.u(j)||j,ce=X.p(ee),ue=function(We,ze){var Ze=X.w(V.$u?Date.UTC(V.$y,ze,We):new Date(V.$y,ze,We),V);return q?Ze:Ze.endOf(p)},ne=function(We,ze){return X.w(V.toDate()[We].apply(V.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(ze)),V)},Se=this.$W,Ee=this.$M,qe=this.$D,xe="set"+(this.$u?"UTC":"");switch(ce){case w:return q?ue(1,0):ue(31,11);case y:return q?ue(1,Ee):ue(0,Ee+1);case m:var pe=this.$locale().weekStart||0,Me=(Se<pe?Se+7:Se)-pe;return ue(q?qe-Me:qe+(6-Me),Ee);case p:case E:return ne(xe+"Hours",0);case f:return ne(xe+"Minutes",1);case c:return ne(xe+"Seconds",2);case l:return ne(xe+"Milliseconds",3);default:return this.clone()}},z.endOf=function(ee){return this.startOf(ee,!1)},z.$set=function(ee,j){var V,q=X.p(ee),ce="set"+(this.$u?"UTC":""),ue=(V={},V[p]=ce+"Date",V[E]=ce+"Date",V[y]=ce+"Month",V[w]=ce+"FullYear",V[f]=ce+"Hours",V[c]=ce+"Minutes",V[l]=ce+"Seconds",V[i]=ce+"Milliseconds",V)[q],ne=q===p?this.$D+(j-this.$W):j;if(q===y||q===w){var Se=this.clone().set(E,1);Se.$d[ue](ne),Se.init(),this.$d=Se.set(E,Math.min(this.$D,Se.daysInMonth())).$d}else ue&&this.$d[ue](ne);return this.init(),this},z.set=function(ee,j){return this.clone().$set(ee,j)},z.get=function(ee){return this[X.p(ee)]()},z.add=function(ee,j){var V,q=this;ee=Number(ee);var ce=X.p(j),ue=function(Ee){var qe=Y(q);return X.w(qe.date(qe.date()+Math.round(Ee*ee)),q)};if(ce===y)return this.set(y,this.$M+ee);if(ce===w)return this.set(w,this.$y+ee);if(ce===p)return ue(1);if(ce===m)return ue(7);var ne=(V={},V[c]=o,V[f]=s,V[l]=n,V)[ce]||1,Se=this.$d.getTime()+ee*ne;return X.w(Se,this)},z.subtract=function(ee,j){return this.add(-1*ee,j)},z.format=function(ee){var j=this,V=this.$locale();if(!this.isValid())return V.invalidDate||I;var q=ee||"YYYY-MM-DDTHH:mm:ssZ",ce=X.z(this),ue=this.$H,ne=this.$m,Se=this.$M,Ee=V.weekdays,qe=V.months,xe=function(ze,Ze,mt,ot){return ze&&(ze[Ze]||ze(j,q))||mt[Ze].slice(0,ot)},pe=function(ze){return X.s(ue%12||12,ze,"0")},Me=V.meridiem||function(ze,Ze,mt){var ot=ze<12?"AM":"PM";return mt?ot.toLowerCase():ot},We={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Se+1,MM:X.s(Se+1,2,"0"),MMM:xe(V.monthsShort,Se,qe,3),MMMM:xe(qe,Se),D:this.$D,DD:X.s(this.$D,2,"0"),d:String(this.$W),dd:xe(V.weekdaysMin,this.$W,Ee,2),ddd:xe(V.weekdaysShort,this.$W,Ee,3),dddd:Ee[this.$W],H:String(ue),HH:X.s(ue,2,"0"),h:pe(1),hh:pe(2),a:Me(ue,ne,!0),A:Me(ue,ne,!1),m:String(ne),mm:X.s(ne,2,"0"),s:String(this.$s),ss:X.s(this.$s,2,"0"),SSS:X.s(this.$ms,3,"0"),Z:ce};return q.replace(T,function(ze,Ze){return Ze||We[ze]||ce.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(ee,j,V){var q,ce=X.p(j),ue=Y(ee),ne=(ue.utcOffset()-this.utcOffset())*o,Se=this-ue,Ee=X.m(this,ue);return Ee=(q={},q[w]=Ee/12,q[y]=Ee,q[v]=Ee/3,q[m]=(Se-ne)/6048e5,q[p]=(Se-ne)/864e5,q[f]=Se/s,q[c]=Se/o,q[l]=Se/n,q)[ce]||Se,V?Ee:X.a(Ee)},z.daysInMonth=function(){return this.endOf(y).$D},z.$locale=function(){return x[this.$L]},z.locale=function(ee,j){if(!ee)return this.$L;var V=this.clone(),q=B(ee,j,!0);return q&&(V.$L=q),V},z.clone=function(){return X.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},G}(),J=K.prototype;return Y.prototype=J,[["$ms",i],["$s",l],["$m",c],["$H",f],["$W",p],["$M",y],["$y",w],["$D",E]].forEach(function(G){J[G[1]]=function(z){return this.$g(z,G[0],G[1])}}),Y.extend=function(G,z){return G.$i||(G(z,K,Y),G.$i=!0),Y},Y.locale=B,Y.isDayjs=R,Y.unix=function(G){return Y(1e3*G)},Y.en=x[D],Y.Ls=x,Y.p={},Y})})(OC);var St=OC.exports,DC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Mo,function(){return function(n,o,s){var i=o.prototype,l=function(y){return y&&(y.indexOf?y:y.s)},c=function(y,v,w,E,I){var S=y.name?y:y.$locale(),T=l(S[v]),_=l(S[w]),N=T||_.map(function(D){return D.slice(0,E)});if(!I)return N;var O=S.weekStart;return N.map(function(D,x){return N[(x+(O||0))%7]})},f=function(){return s.Ls[s.locale()]},p=function(y,v){return y.formats[v]||function(w){return w.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,I,S){return I||S.slice(1)})}(y.formats[v.toUpperCase()])},m=function(){var y=this;return{months:function(v){return v?v.format("MMMM"):c(y,"months")},monthsShort:function(v){return v?v.format("MMM"):c(y,"monthsShort","months",3)},firstDayOfWeek:function(){return y.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):c(y,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):c(y,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):c(y,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return p(y.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return m.bind(this)()},s.localeData=function(){var y=f();return{firstDayOfWeek:function(){return y.weekStart||0},weekdays:function(){return s.weekdays()},weekdaysShort:function(){return s.weekdaysShort()},weekdaysMin:function(){return s.weekdaysMin()},months:function(){return s.months()},monthsShort:function(){return s.monthsShort()},longDateFormat:function(v){return p(y,v)},meridiem:y.meridiem,ordinal:y.ordinal}},s.months=function(){return c(f(),"months")},s.monthsShort=function(){return c(f(),"monthsShort","months",3)},s.weekdays=function(y){return c(f(),"weekdays",null,null,y)},s.weekdaysShort=function(y){return c(f(),"weekdaysShort","weekdays",3,y)},s.weekdaysMin=function(y){return c(f(),"weekdaysMin","weekdays",2,y)}}})})(DC);var $C=DC.exports,RC={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Mo,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,i=/\d\d?/,l=/\d*[^\s\d-_:/()]+/,c={},f=function(I){return(I=+I)+(I>68?1900:2e3)},p=function(I){return function(S){this[I]=+S}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(I){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var T=S.match(/([+-]|\d\d)/g),_=60*T[1]+(+T[2]||0);return _===0?0:T[0]==="+"?-_:_}(I)}],y=function(I){var S=c[I];return S&&(S.indexOf?S:S.s.concat(S.f))},v=function(I,S){var T,_=c.meridiem;if(_){for(var N=1;N<=24;N+=1)if(I.indexOf(_(N,0,S))>-1){T=N>12;break}}else T=I===(S?"pm":"PM");return T},w={A:[l,function(I){this.afternoon=v(I,!1)}],a:[l,function(I){this.afternoon=v(I,!0)}],S:[/\d/,function(I){this.milliseconds=100*+I}],SS:[s,function(I){this.milliseconds=10*+I}],SSS:[/\d{3}/,function(I){this.milliseconds=+I}],s:[i,p("seconds")],ss:[i,p("seconds")],m:[i,p("minutes")],mm:[i,p("minutes")],H:[i,p("hours")],h:[i,p("hours")],HH:[i,p("hours")],hh:[i,p("hours")],D:[i,p("day")],DD:[s,p("day")],Do:[l,function(I){var S=c.ordinal,T=I.match(/\d+/);if(this.day=T[0],S)for(var _=1;_<=31;_+=1)S(_).replace(/\[|\]/g,"")===I&&(this.day=_)}],M:[i,p("month")],MM:[s,p("month")],MMM:[l,function(I){var S=y("months"),T=(y("monthsShort")||S.map(function(_){return _.slice(0,3)})).indexOf(I)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[l,function(I){var S=y("months").indexOf(I)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,p("year")],YY:[s,function(I){this.year=f(I)}],YYYY:[/\d{4}/,p("year")],Z:m,ZZ:m};function E(I){var S,T;S=I,T=c&&c.formats;for(var _=(I=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Y,X,K){var J=K&&K.toUpperCase();return X||T[K]||n[K]||T[J].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(G,z,ee){return z||ee.slice(1)})})).match(o),N=_.length,O=0;O<N;O+=1){var D=_[O],x=w[D],R=x&&x[0],B=x&&x[1];_[O]=B?{regex:R,parser:B}:D.replace(/^\[|\]$/g,"")}return function(Y){for(var X={},K=0,J=0;K<N;K+=1){var G=_[K];if(typeof G=="string")J+=G.length;else{var z=G.regex,ee=G.parser,j=Y.slice(J),V=z.exec(j)[0];ee.call(X,V),Y=Y.replace(V,"")}}return function(q){var ce=q.afternoon;if(ce!==void 0){var ue=q.hours;ce?ue<12&&(q.hours+=12):ue===12&&(q.hours=0),delete q.afternoon}}(X),X}}return function(I,S,T){T.p.customParseFormat=!0,I&&I.parseTwoDigitYear&&(f=I.parseTwoDigitYear);var _=S.prototype,N=_.parse;_.parse=function(O){var D=O.date,x=O.utc,R=O.args;this.$u=x;var B=R[1];if(typeof B=="string"){var Y=R[2]===!0,X=R[3]===!0,K=Y||X,J=R[2];X&&(J=R[2]),c=this.$locale(),!Y&&J&&(c=T.Ls[J]),this.$d=function(j,V,q){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*j);var ce=E(V)(j),ue=ce.year,ne=ce.month,Se=ce.day,Ee=ce.hours,qe=ce.minutes,xe=ce.seconds,pe=ce.milliseconds,Me=ce.zone,We=new Date,ze=Se||(ue||ne?1:We.getDate()),Ze=ue||We.getFullYear(),mt=0;ue&&!ne||(mt=ne>0?ne-1:We.getMonth());var ot=Ee||0,te=qe||0,de=xe||0,Ne=pe||0;return Me?new Date(Date.UTC(Ze,mt,ze,ot,te,de,Ne+60*Me.offset*1e3)):q?new Date(Date.UTC(Ze,mt,ze,ot,te,de,Ne)):new Date(Ze,mt,ze,ot,te,de,Ne)}catch{return new Date("")}}(D,B,x),this.init(),J&&J!==!0&&(this.$L=this.locale(J).$L),K&&D!=this.format(B)&&(this.$d=new Date("")),c={}}else if(B instanceof Array)for(var G=B.length,z=1;z<=G;z+=1){R[1]=B[z-1];var ee=T.apply(this,R);if(ee.isValid()){this.$d=ee.$d,this.$L=ee.$L,this.init();break}z===G&&(this.$d=new Date(""))}else N.call(this,O)}}})})(RC);var F0=RC.exports;const Gh="HH:mm:ss",Ol="YYYY-MM-DD",IB={date:Ol,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Ol} ${Gh}`,monthrange:"YYYY-MM",daterange:Ol,datetimerange:`${Ol} ${Gh}`},V0={id:{type:[Array,String]},name:{type:[Array,String],default:""},popperClass:{type:String,default:""},format:{type:String},valueFormat:{type:String},type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:gs},editable:{type:Boolean,default:!0},prefixIcon:{type:[String,Object],default:""},size:{type:String,validator:Zo},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},modelValue:{type:[Date,Array,String,Number],default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:[Date,Array]},defaultTime:{type:[Date,Array]},isRange:{type:Boolean,default:!1},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean},yv=function(e,t){const n=e instanceof Date,o=t instanceof Date;return n&&o?e.getTime()===t.getTime():!n&&!o?e===t:!1},bv=function(e,t){const n=Array.isArray(e),o=Array.isArray(t);return n&&o?e.length!==t.length?!1:e.every((s,i)=>yv(s,t[i])):!n&&!o?yv(e,t):!1},wv=function(e,t,n){const o=uu(t)||t==="x"?St(e).locale(n):St(e,t).locale(n);return o.isValid()?o:void 0},Cv=function(e,t,n){return uu(t)?e:t==="x"?+e:St(e).locale(n).format(t)},_B=ve({name:"Picker",components:{ElInput:Cr,ElTooltip:Ro,ElIcon:yt},props:V0,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change"],setup(e,t){const{lang:n}=un(),o=Be("date"),s=Be("input"),i=Be("range"),l=et(Jo,{}),c=et(mr,{}),f=et("ElPopperOptions",{}),p=F(),m=F(),y=F(!1),v=F(!1),w=F(null);Re(y,he=>{var He;he?w.value=e.modelValue:(We.value=null,dt(()=>{E(e.modelValue)}),t.emit("blur"),Ze(),e.validateEvent&&((He=c.validate)==null||He.call(c,"blur").catch(pt=>void 0)))});const E=(he,He)=>{var pt;(He||!bv(he,w.value))&&(t.emit("change",he),e.validateEvent&&((pt=c.validate)==null||pt.call(c,"change").catch(At=>void 0)))},I=he=>{if(!bv(e.modelValue,he)){let He;Array.isArray(he)?He=he.map(pt=>Cv(pt,e.valueFormat,n.value)):he&&(He=Cv(he,e.valueFormat,n.value)),t.emit("update:modelValue",he&&He,n.value)}},S=$(()=>{if(m.value){const he=Ee.value?m.value:m.value.$el;return Array.from(he.querySelectorAll("input"))}return[]}),T=$(()=>S==null?void 0:S.value[0]),_=$(()=>S==null?void 0:S.value[1]),N=(he,He,pt)=>{const At=S.value;!At.length||(!pt||pt==="min"?(At[0].setSelectionRange(he,He),At[0].focus()):pt==="max"&&(At[1].setSelectionRange(he,He),At[1].focus()))},O=(he="",He=!1)=>{y.value=He;let pt;Array.isArray(he)?pt=he.map(At=>At.toDate()):pt=he&&he.toDate(),We.value=null,I(pt)},D=()=>{v.value=!0},x=()=>{t.emit("visible-change",!0)},R=()=>{v.value=!1,t.emit("visible-change",!1)},B=(he=!0)=>{let He=T.value;!he&&Ee.value&&(He=_.value),He&&He.focus()},Y=he=>{e.readonly||K.value||y.value||(y.value=!0,t.emit("focus",he))},X=()=>{var he;(he=p.value)==null||he.onClose(),Ze()},K=$(()=>e.disabled||l.disabled),J=$(()=>{let he;if(ue.value?re.value.getDefaultValue&&(he=re.value.getDefaultValue()):Array.isArray(e.modelValue)?he=e.modelValue.map(He=>wv(He,e.valueFormat,n.value)):he=wv(e.modelValue,e.valueFormat,n.value),re.value.getRangeAvailableTime){const He=re.value.getRangeAvailableTime(he);Ko(He,he)||(he=He,I(Array.isArray(he)?he.map(pt=>pt.toDate()):he.toDate()))}return Array.isArray(he)&&he.some(He=>!He)&&(he=[]),he}),G=$(()=>{if(!re.value.panelReady)return;const he=ot(J.value);if(Array.isArray(We.value))return[We.value[0]||he&&he[0]||"",We.value[1]||he&&he[1]||""];if(We.value!==null)return We.value;if(!(!ee.value&&ue.value)&&!(!y.value&&ue.value))return he?j.value?he.join(", "):he:""}),z=$(()=>e.type.includes("time")),ee=$(()=>e.type.startsWith("time")),j=$(()=>e.type==="dates"),V=$(()=>e.prefixIcon||(z.value?Mw:y5)),q=F(!1),ce=he=>{e.readonly||K.value||q.value&&(he.stopPropagation(),I(null),E(null,!0),q.value=!1,y.value=!1,re.value.handleClear&&re.value.handleClear())},ue=$(()=>!e.modelValue||Array.isArray(e.modelValue)&&!e.modelValue.length),ne=()=>{e.readonly||K.value||!ue.value&&e.clearable&&(q.value=!0)},Se=()=>{q.value=!1},Ee=$(()=>e.type.includes("range")),qe=Fn(),xe=$(()=>{var he,He;return(He=(he=p.value)==null?void 0:he.popperRef)==null?void 0:He.contentRef}),pe=$(()=>{var he,He;return(He=(he=k(p))==null?void 0:he.popperRef)==null?void 0:He.contentRef}),Me=$(()=>{var he;return k(Ee)?k(m):(he=k(m))==null?void 0:he.$el});id(Me,he=>{const He=k(pe),pt=k(Me);He&&(he.target===He||he.composedPath().includes(He))||he.target===pt||he.composedPath().includes(pt)||(y.value=!1)});const We=F(null),ze=()=>{if(We.value){const he=mt(G.value);he&&te(he)&&(I(Array.isArray(he)?he.map(He=>He.toDate()):he.toDate()),We.value=null)}We.value===""&&(I(null),E(null),We.value=null)},Ze=()=>{S.value.forEach(he=>he.blur())},mt=he=>he?re.value.parseUserInput(he):null,ot=he=>he?re.value.formatToString(he):null,te=he=>re.value.isValidValue(he),de=he=>{const He=he.code;if(He===rt.esc){y.value=!1,he.stopPropagation();return}if(He===rt.tab){Ee.value?setTimeout(()=>{S.value.includes(document.activeElement)||(y.value=!1,Ze())},0):(ze(),y.value=!1,he.stopPropagation());return}if(He===rt.enter||He===rt.numpadEnter){(We.value===null||We.value===""||te(mt(G.value)))&&(ze(),y.value=!1),he.stopPropagation();return}if(We.value){he.stopPropagation();return}re.value.handleKeydown&&re.value.handleKeydown(he)},Ne=he=>{We.value=he},De=he=>{We.value?We.value=[he.target.value,We.value[1]]:We.value=[he.target.value,null]},ke=he=>{We.value?We.value=[We.value[0],he.target.value]:We.value=[null,he.target.value]},Ve=()=>{const he=mt(We.value&&We.value[0]);if(he&&he.isValid()){We.value=[ot(he),G.value[1]];const He=[he,J.value&&J.value[1]];te(He)&&(I(He),We.value=null)}},ie=()=>{const he=mt(We.value&&We.value[1]);if(he&&he.isValid()){We.value=[G.value[0],ot(he)];const He=[J.value&&J.value[0],he];te(He)&&(I(He),We.value=null)}},re=F({}),ge=he=>{re.value[he[0]]=he[1],re.value.panelReady=!0},Te=he=>{t.emit("calendar-change",he)},Je=(he,He,pt)=>{t.emit("panel-change",he,He,pt)};return Pt("EP_PICKER_BASE",{props:e}),{nsDate:o,nsInput:s,nsRange:i,elPopperOptions:f,isDatesPicker:j,handleEndChange:ie,handleStartChange:Ve,handleStartInput:De,handleEndInput:ke,onUserInput:Ne,handleChange:ze,handleKeydown:de,popperPaneRef:xe,onClickOutside:id,pickerSize:qe,isRangeInput:Ee,onMouseLeave:Se,onMouseEnter:ne,onClearIconClick:ce,showClose:q,triggerIcon:V,onPick:O,handleFocus:Y,handleBlur:X,pickerVisible:y,pickerActualVisible:v,displayValue:G,parsedValue:J,setSelectionRange:N,refPopper:p,inputRef:m,pickerDisabled:K,onSetPickerOption:ge,onCalendarChange:Te,onPanelChange:Je,focus:B,onShow:x,onBeforeShow:D,onHide:R}}}),NB=["id","name","placeholder","value","disabled","readonly"],kB=["id","name","placeholder","value","disabled","readonly"];function xB(e,t,n,o,s,i){const l=Ae("el-icon"),c=Ae("el-input"),f=Ae("el-tooltip");return M(),me(f,pn({ref:"refPopper",visible:e.pickerVisible,"onUpdate:visible":t[17]||(t[17]=p=>e.pickerVisible=p),effect:"light",pure:"",trigger:"click"},e.$attrs,{"append-to-body":"",transition:`${e.nsDate.namespace.value}-zoom-in-top`,"popper-class":[`${e.nsDate.namespace.value}-picker__popper`,e.popperClass],"popper-options":e.elPopperOptions,"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:e.onBeforeShow,onShow:e.onShow,onHide:e.onHide}),{default:ae(()=>[e.isRangeInput?(M(),W("div",{key:1,ref:"inputRef",class:P([e.nsDate.b("editor"),e.nsDate.bm("editor",e.type),e.nsInput.e("inner"),e.nsDate.is("disabled",e.pickerDisabled),e.nsDate.is("active",e.pickerVisible),e.nsRange.b("editor"),e.pickerSize?e.nsRange.bm("editor",e.pickerSize):"",e.$attrs.class]),style:st(e.$attrs.style),onClick:t[7]||(t[7]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onMouseenter:t[8]||(t[8]=(...p)=>e.onMouseEnter&&e.onMouseEnter(...p)),onMouseleave:t[9]||(t[9]=(...p)=>e.onMouseLeave&&e.onMouseLeave(...p)),onKeydown:t[10]||(t[10]=(...p)=>e.handleKeydown&&e.handleKeydown(...p))},[e.triggerIcon?(M(),me(l,{key:0,class:P([e.nsInput.e("icon"),e.nsRange.e("icon")]),onClick:e.handleFocus},{default:ae(()=>[(M(),me(Xt(e.triggerIcon)))]),_:1},8,["class","onClick"])):fe("v-if",!0),Q("input",{id:e.id&&e.id[0],autocomplete:"off",name:e.name&&e.name[0],placeholder:e.startPlaceholder,value:e.displayValue&&e.displayValue[0],disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,class:P(e.nsRange.b("input")),onInput:t[1]||(t[1]=(...p)=>e.handleStartInput&&e.handleStartInput(...p)),onChange:t[2]||(t[2]=(...p)=>e.handleStartChange&&e.handleStartChange(...p)),onFocus:t[3]||(t[3]=(...p)=>e.handleFocus&&e.handleFocus(...p))},null,42,NB),Ie(e.$slots,"range-separator",{},()=>[Q("span",{class:P(e.nsRange.b("separator"))},Pe(e.rangeSeparator),3)]),Q("input",{id:e.id&&e.id[1],autocomplete:"off",name:e.name&&e.name[1],placeholder:e.endPlaceholder,value:e.displayValue&&e.displayValue[1],disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,class:P(e.nsRange.b("input")),onFocus:t[4]||(t[4]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onInput:t[5]||(t[5]=(...p)=>e.handleEndInput&&e.handleEndInput(...p)),onChange:t[6]||(t[6]=(...p)=>e.handleEndChange&&e.handleEndChange(...p))},null,42,kB),e.clearIcon?(M(),me(l,{key:1,class:P([e.nsInput.e("icon"),e.nsRange.e("close-icon"),{[e.nsRange.e("close-icon--hidden")]:!e.showClose}]),onClick:e.onClearIconClick},{default:ae(()=>[(M(),me(Xt(e.clearIcon)))]),_:1},8,["class","onClick"])):fe("v-if",!0)],38)):(M(),me(c,{key:0,id:e.id,ref:"inputRef","model-value":e.displayValue,name:e.name,size:e.pickerSize,disabled:e.pickerDisabled,placeholder:e.placeholder,class:P([e.nsDate.b("editor"),e.nsDate.bm("editor",e.type),e.$attrs.class]),style:st(e.$attrs.style),readonly:!e.editable||e.readonly||e.isDatesPicker||e.type==="week",onInput:e.onUserInput,onFocus:e.handleFocus,onKeydown:e.handleKeydown,onChange:e.handleChange,onMouseenter:e.onMouseEnter,onMouseleave:e.onMouseLeave,onClick:t[0]||(t[0]=vt(()=>{},["stop"]))},{prefix:ae(()=>[e.triggerIcon?(M(),me(l,{key:0,class:P(e.nsInput.e("icon")),onClick:e.handleFocus},{default:ae(()=>[(M(),me(Xt(e.triggerIcon)))]),_:1},8,["class","onClick"])):fe("v-if",!0)]),suffix:ae(()=>[e.showClose&&e.clearIcon?(M(),me(l,{key:0,class:P(`${e.nsInput.e("icon")} clear-icon`),onClick:e.onClearIconClick},{default:ae(()=>[(M(),me(Xt(e.clearIcon)))]),_:1},8,["class","onClick"])):fe("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","onInput","onFocus","onKeydown","onChange","onMouseenter","onMouseleave"]))]),content:ae(()=>[Ie(e.$slots,"default",{visible:e.pickerVisible,actualVisible:e.pickerActualVisible,parsedValue:e.parsedValue,format:e.format,unlinkPanels:e.unlinkPanels,type:e.type,defaultValue:e.defaultValue,onPick:t[11]||(t[11]=(...p)=>e.onPick&&e.onPick(...p)),onSelectRange:t[12]||(t[12]=(...p)=>e.setSelectionRange&&e.setSelectionRange(...p)),onSetPickerOption:t[13]||(t[13]=(...p)=>e.onSetPickerOption&&e.onSetPickerOption(...p)),onCalendarChange:t[14]||(t[14]=(...p)=>e.onCalendarChange&&e.onCalendarChange(...p)),onPanelChange:t[15]||(t[15]=(...p)=>e.onPanelChange&&e.onPanelChange(...p)),onMousedown:t[16]||(t[16]=vt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options","onBeforeShow","onShow","onHide"])}var LC=Ue(_B,[["render",xB],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const Rs=new Map;let Ev;jt&&(document.addEventListener("mousedown",e=>Ev=e),document.addEventListener("mouseup",e=>{for(const t of Rs.values())for(const{documentHandler:n}of t)n(e,Ev)}));function Sv(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Wi(t.arg)&&n.push(t.arg),function(o,s){const i=t.instance.popperRef,l=o.target,c=s==null?void 0:s.target,f=!t||!t.instance,p=!l||!c,m=e.contains(l)||e.contains(c),y=e===l,v=n.length&&n.some(E=>E==null?void 0:E.contains(l))||n.length&&n.includes(c),w=i&&(i.contains(l)||i.contains(c));f||p||m||y||v||w||t.value(o,s)}}const ta={beforeMount(e,t){Rs.has(e)||Rs.set(e,[]),Rs.get(e).push({documentHandler:Sv(e,t),bindingFn:t.value})},updated(e,t){Rs.has(e)||Rs.set(e,[]);const n=Rs.get(e),o=n.findIndex(i=>i.bindingFn===t.oldValue),s={documentHandler:Sv(e,t),bindingFn:t.value};o>=0?n.splice(o,1,s):n.push(s)},unmounted(e){Rs.delete(e)}};var PC={beforeMount(e,t){let n=null,o;const s=()=>t.value&&t.value(),i=()=>{Date.now()-o<100&&s(),clearInterval(n),n=null};Bn(e,"mousedown",l=>{l.button===0&&(o=Date.now(),dD(document,"mouseup",i),clearInterval(n),n=setInterval(s,100))})}};const Xh="_trap-focus-children",Ii=[],Av=e=>{if(Ii.length===0)return;const t=Ii[Ii.length-1][Xh];if(t.length>0&&e.code===rt.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],s=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),s&&!n&&(e.preventDefault(),t[0].focus())}},BC={beforeMount(e){e[Xh]=zm(e),Ii.push(e),Ii.length<=1&&Bn(document,"keydown",Av)},updated(e){dt(()=>{e[Xh]=zm(e)})},unmounted(){Ii.shift(),Ii.length===0&&Kn(document,"keydown",Av)}};var Tv=!1,Si,qh,Zh,Sc,Ac,FC,Tc,Qh,Jh,ep,VC,tp,np,HC,zC;function ko(){if(!Tv){Tv=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(tp=/\b(iPhone|iP[ao]d)/.exec(e),np=/\b(iP[ao]d)/.exec(e),ep=/Android/i.exec(e),HC=/FBAN\/\w+;/i.exec(e),zC=/Mobile/i.exec(e),VC=!!/Win64/.exec(e),t){Si=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Si&&document&&document.documentMode&&(Si=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);FC=o?parseFloat(o[1])+4:Si,qh=t[2]?parseFloat(t[2]):NaN,Zh=t[3]?parseFloat(t[3]):NaN,Sc=t[4]?parseFloat(t[4]):NaN,Sc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ac=t&&t[1]?parseFloat(t[1]):NaN):Ac=NaN}else Si=qh=Zh=Ac=Sc=NaN;if(n){if(n[1]){var s=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Tc=s?parseFloat(s[1].replace("_",".")):!0}else Tc=!1;Qh=!!n[2],Jh=!!n[3]}else Tc=Qh=Jh=!1}}var op={ie:function(){return ko()||Si},ieCompatibilityMode:function(){return ko()||FC>Si},ie64:function(){return op.ie()&&VC},firefox:function(){return ko()||qh},opera:function(){return ko()||Zh},webkit:function(){return ko()||Sc},safari:function(){return op.webkit()},chrome:function(){return ko()||Ac},windows:function(){return ko()||Qh},osx:function(){return ko()||Tc},linux:function(){return ko()||Jh},iphone:function(){return ko()||tp},mobile:function(){return ko()||tp||np||ep||zC},nativeApp:function(){return ko()||HC},android:function(){return ko()||ep},ipad:function(){return ko()||np}},MB=op,ic=!!(typeof window<"u"&&window.document&&window.document.createElement),OB={canUseDOM:ic,canUseWorkers:typeof Worker<"u",canUseEventListeners:ic&&!!(window.addEventListener||window.attachEvent),canUseViewport:ic&&!!window.screen,isInWorker:!ic},UC=OB,WC;UC.canUseDOM&&(WC=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function DB(e,t){if(!UC.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var s=document.createElement("div");s.setAttribute(n,"return;"),o=typeof s[n]=="function"}return!o&&WC&&e==="wheel"&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var $B=DB,Iv=10,_v=40,Nv=800;function jC(e){var t=0,n=0,o=0,s=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=t*Iv,s=n*Iv,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||s)&&e.deltaMode&&(e.deltaMode==1?(o*=_v,s*=_v):(o*=Nv,s*=Nv)),o&&!t&&(t=o<1?-1:1),s&&!n&&(n=s<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:s}}jC.getEventType=function(){return MB.firefox()?"DOMMouseScroll":$B("wheel")?"wheel":"mousewheel"};var RB=jC;/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @param {?boolean} capture Check if the capture phase is supported.
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/const LB=function(e,t){if(e&&e.addEventListener){const n=function(o){const s=RB(o);t&&Reflect.apply(t,this,[o,s])};M0()?e.addEventListener("DOMMouseScroll",n):e.onmousewheel=n}},PB={beforeMount(e,t){LB(e,t.value)}},BB={beforeMount(e,t){e._handleResize=()=>{var n;e&&((n=t.value)==null||n.call(t,e))},ol(e,e._handleResize)},beforeUnmount(e){rl(e,e._handleResize)}},Gf=(e,t,n)=>{const o=[],s=t&&n();for(let i=0;i<e;i++)o[i]=s?s.includes(i):!1;return o},Xf=e=>e.map((t,n)=>t||n).filter(t=>t!==!0),KC=(e,t,n)=>({getHoursList:(l,c)=>Gf(24,e,()=>e(l,c)),getMinutesList:(l,c,f)=>Gf(60,t,()=>t(l,c,f)),getSecondsList:(l,c,f,p)=>Gf(60,n,()=>n(l,c,f,p))}),YC=(e,t,n)=>{const{getHoursList:o,getMinutesList:s,getSecondsList:i}=KC(e,t,n);return{getAvailableHours:(p,m)=>Xf(o(p,m)),getAvailableMinutes:(p,m,y)=>Xf(s(p,m,y)),getAvailableSeconds:(p,m,y,v)=>Xf(i(p,m,y,v))}},GC=e=>{const t=F(e.parsedValue);return Re(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},FB=ve({directives:{repeatClick:PC},components:{ElScrollbar:Es,ElIcon:yt,ArrowUp:xu,ArrowDown:Qi},props:{role:{type:String,required:!0},spinnerDate:{type:Object,required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function}},emits:["change","select-range","set-option"],setup(e,t){const n=Be("time");let o=!1;const s=$o(pe=>{o=!1,Y(pe)},200),i=F(null),l=F(null),c=F(null),f=F(null),p={hours:l,minutes:c,seconds:f},m=$(()=>{const pe=["hours","minutes","seconds"];return e.showSeconds?pe:pe.slice(0,2)}),y=$(()=>e.spinnerDate.hour()),v=$(()=>e.spinnerDate.minute()),w=$(()=>e.spinnerDate.second()),E=$(()=>({hours:y,minutes:v,seconds:w})),I=$(()=>Ee(e.role)),S=$(()=>qe(y.value,e.role)),T=$(()=>xe(y.value,v.value,e.role)),_=$(()=>({hours:I,minutes:S,seconds:T})),N=$(()=>{const pe=y.value;return[pe>0?pe-1:void 0,pe,pe<23?pe+1:void 0]}),O=$(()=>{const pe=v.value;return[pe>0?pe-1:void 0,pe,pe<59?pe+1:void 0]}),D=$(()=>{const pe=w.value;return[pe>0?pe-1:void 0,pe,pe<59?pe+1:void 0]}),x=$(()=>({hours:N,minutes:O,seconds:D})),R=pe=>{if(!!!e.amPmMode)return"";const We=e.amPmMode==="A";let ze=pe<12?" am":" pm";return We&&(ze=ze.toUpperCase()),ze},B=pe=>{pe==="hours"?t.emit("select-range",0,2):pe==="minutes"?t.emit("select-range",3,5):pe==="seconds"&&t.emit("select-range",6,8),i.value=pe},Y=pe=>{J(pe,E.value[pe].value)},X=()=>{Y("hours"),Y("minutes"),Y("seconds")},K=pe=>pe.querySelector(`.${n.namespace.value}-scrollbar__wrap`),J=(pe,Me)=>{if(e.arrowControl)return;const We=p[pe];We&&We.$el&&(K(We.$el).scrollTop=Math.max(0,Me*G(pe)))},G=pe=>p[pe].$el.querySelector("li").offsetHeight,z=()=>{j(1)},ee=()=>{j(-1)},j=pe=>{i.value||B("hours");const Me=i.value;let We=E.value[Me].value;const ze=i.value==="hours"?24:60;We=(We+pe+ze)%ze,V(Me,We),J(Me,We),dt(()=>B(i.value))},V=(pe,Me)=>{if(!_.value[pe].value[Me])switch(pe){case"hours":t.emit("change",e.spinnerDate.hour(Me).minute(v.value).second(w.value));break;case"minutes":t.emit("change",e.spinnerDate.hour(y.value).minute(Me).second(w.value));break;case"seconds":t.emit("change",e.spinnerDate.hour(y.value).minute(v.value).second(Me));break}},q=(pe,{value:Me,disabled:We})=>{We||(V(pe,Me),B(pe),J(pe,Me))},ce=pe=>{o=!0,s(pe);const Me=Math.min(Math.round((K(p[pe].$el).scrollTop-(ue(pe)*.5-10)/G(pe)+3)/G(pe)),pe==="hours"?23:59);V(pe,Me)},ue=pe=>p[pe].$el.offsetHeight,ne=()=>{const pe=Me=>{p[Me]&&p[Me].$el&&(K(p[Me].$el).onscroll=()=>{ce(Me)})};pe("hours"),pe("minutes"),pe("seconds")};kt(()=>{dt(()=>{!e.arrowControl&&ne(),X(),e.role==="start"&&B("hours")})});const Se=(pe,Me)=>{p[Me]=pe};t.emit("set-option",[`${e.role}_scrollDown`,j]),t.emit("set-option",[`${e.role}_emitSelectRange`,B]);const{getHoursList:Ee,getMinutesList:qe,getSecondsList:xe}=KC(e.disabledHours,e.disabledMinutes,e.disabledSeconds);return Re(()=>e.spinnerDate,()=>{o||X()}),{ns:n,setRef:Se,spinnerItems:m,currentScrollbar:i,hours:y,minutes:v,seconds:w,hoursList:I,minutesList:S,arrowHourList:N,arrowMinuteList:O,arrowSecondList:D,getAmPmFlag:R,emitSelectRange:B,adjustCurrentSpinner:Y,typeItemHeight:G,listHoursRef:l,listMinutesRef:c,listSecondsRef:f,onIncreaseClick:z,onDecreaseClick:ee,handleClick:q,secondsList:T,timePartsMap:E,arrowListMap:x,listMap:_}}}),VB=["onClick"],HB=["onMouseenter"];function zB(e,t,n,o,s,i){const l=Ae("el-scrollbar"),c=Ae("arrow-up"),f=Ae("el-icon"),p=Ae("arrow-down"),m=qo("repeat-click");return M(),W("div",{class:P([e.ns.b("spinner"),{"has-seconds":e.showSeconds}])},[e.arrowControl?fe("v-if",!0):(M(!0),W(at,{key:0},zt(e.spinnerItems,y=>(M(),me(l,{key:y,ref_for:!0,ref:v=>e.setRef(v,y),class:P(e.ns.be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":e.ns.be("spinner","list"),noresize:"",tag:"ul",onMouseenter:v=>e.emitSelectRange(y),onMousemove:v=>e.adjustCurrentSpinner(y)},{default:ae(()=>[(M(!0),W(at,null,zt(e.listMap[y].value,(v,w)=>(M(),W("li",{key:w,class:P([e.ns.be("spinner","item"),e.ns.is("active",w===e.timePartsMap[y].value),e.ns.is("disabled",v)]),onClick:E=>e.handleClick(y,{value:w,disabled:v})},[y==="hours"?(M(),W(at,{key:0},[Ht(Pe(("0"+(e.amPmMode?w%12||12:w)).slice(-2))+Pe(e.getAmPmFlag(w)),1)],2112)):(M(),W(at,{key:1},[Ht(Pe(("0"+w).slice(-2)),1)],2112))],10,VB))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),e.arrowControl?(M(!0),W(at,{key:1},zt(e.spinnerItems,y=>(M(),W("div",{key:y,class:P([e.ns.be("spinner","wrapper"),e.ns.is("arrow")]),onMouseenter:v=>e.emitSelectRange(y)},[bt((M(),me(f,{class:P(["arrow-up",e.ns.be("spinner","arrow")])},{default:ae(()=>[le(c)]),_:1},8,["class"])),[[m,e.onDecreaseClick]]),bt((M(),me(f,{class:P(["arrow-down",e.ns.be("spinner","arrow")])},{default:ae(()=>[le(p)]),_:1},8,["class"])),[[m,e.onIncreaseClick]]),Q("ul",{class:P(e.ns.be("spinner","list"))},[(M(!0),W(at,null,zt(e.arrowListMap[y].value,(v,w)=>(M(),W("li",{key:w,class:P([e.ns.be("spinner","item"),e.ns.is("active",v===e.timePartsMap[y].value),e.ns.is("disabled",e.listMap[y].value[v])])},[typeof v=="number"?(M(),W(at,{key:0},[y==="hours"?(M(),W(at,{key:0},[Ht(Pe(("0"+(e.amPmMode?v%12||12:v)).slice(-2))+Pe(e.getAmPmFlag(v)),1)],2112)):(M(),W(at,{key:1},[Ht(Pe(("0"+v).slice(-2)),1)],2112))],2112)):fe("v-if",!0)],2))),128))],2)],42,HB))),128)):fe("v-if",!0)],2)}var XC=Ue(FB,[["render",zB],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const UB=ve({components:{TimeSpinner:XC},props:{visible:Boolean,actualVisible:{type:Boolean,default:void 0},datetimeRole:{type:String},parsedValue:{type:[Object,String]},format:{type:String,default:""}},emits:["pick","select-range","set-picker-option"],setup(e,t){const n=Be("time"),{t:o,lang:s}=un(),i=F([0,2]),l=GC(e),c=$(()=>zo(e.actualVisible)?`${n.namespace.value}-zoom-in-top`:""),f=$(()=>e.format.includes("ss")),p=$(()=>e.format.includes("A")?"A":e.format.includes("a")?"a":""),m=j=>{const V=St(j).locale(s.value),q=T(V);return V.isSame(q)},y=()=>{t.emit("pick",l.value,!1)},v=(j=!1,V=!1)=>{V||t.emit("pick",e.parsedValue,j)},w=j=>{if(!e.visible)return;const V=T(j).millisecond(0);t.emit("pick",V,!0)},E=(j,V)=>{t.emit("select-range",j,V),i.value=[j,V]},I=j=>{const V=[0,3].concat(f.value?[6]:[]),q=["hours","minutes"].concat(f.value?["seconds"]:[]),ue=(V.indexOf(i.value[0])+j+V.length)%V.length;D.start_emitSelectRange(q[ue])},S=j=>{const V=j.code;if(V===rt.left||V===rt.right){const q=V===rt.left?-1:1;I(q),j.preventDefault();return}if(V===rt.up||V===rt.down){const q=V===rt.up?-1:1;D.start_scrollDown(q),j.preventDefault();return}},T=j=>{const V={hour:G,minute:z,second:ee};let q=j;return["hour","minute","second"].forEach(ce=>{if(V[ce]){let ue;const ne=V[ce];ce==="minute"?ue=ne(q.hour(),e.datetimeRole):ce==="second"?ue=ne(q.hour(),q.minute(),e.datetimeRole):ue=ne(e.datetimeRole),ue&&ue.length&&!ue.includes(q[ce]())&&(q=q[ce](ue[0]))}}),q},_=j=>j?St(j,e.format).locale(s.value):null,N=j=>j?j.format(e.format):null,O=()=>St(J).locale(s.value);t.emit("set-picker-option",["isValidValue",m]),t.emit("set-picker-option",["formatToString",N]),t.emit("set-picker-option",["parseUserInput",_]),t.emit("set-picker-option",["handleKeydown",S]),t.emit("set-picker-option",["getRangeAvailableTime",T]),t.emit("set-picker-option",["getDefaultValue",O]);const D={},x=j=>{D[j[0]]=j[1]},R=et("EP_PICKER_BASE"),{arrowControl:B,disabledHours:Y,disabledMinutes:X,disabledSeconds:K,defaultValue:J}=R.props,{getAvailableHours:G,getAvailableMinutes:z,getAvailableSeconds:ee}=YC(Y,X,K);return{ns:n,transitionName:c,arrowControl:B,onSetOption:x,t:o,handleConfirm:v,handleChange:w,setSelectionRange:E,amPmMode:p,showSeconds:f,handleCancel:y,disabledHours:Y,disabledMinutes:X,disabledSeconds:K}}});function WB(e,t,n,o,s,i){const l=Ae("time-spinner");return M(),me($n,{name:e.transitionName},{default:ae(()=>[e.actualVisible||e.visible?(M(),W("div",{key:0,class:P(e.ns.b("panel"))},[Q("div",{class:P([e.ns.be("panel","content"),{"has-seconds":e.showSeconds}])},[le(l,{ref:"spinner",role:e.datetimeRole||"start","arrow-control":e.arrowControl,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"spinner-date":e.parsedValue,"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,onChange:e.handleChange,onSetOption:e.onSetOption,onSelectRange:e.setSelectionRange},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onChange","onSetOption","onSelectRange"])],2),Q("div",{class:P(e.ns.be("panel","footer"))},[Q("button",{type:"button",class:P([e.ns.be("panel","btn"),"cancel"]),onClick:t[0]||(t[0]=(...c)=>e.handleCancel&&e.handleCancel(...c))},Pe(e.t("el.datepicker.cancel")),3),Q("button",{type:"button",class:P([e.ns.be("panel","btn"),"confirm"]),onClick:t[1]||(t[1]=c=>e.handleConfirm())},Pe(e.t("el.datepicker.confirm")),3)],2)],2)):fe("v-if",!0)]),_:1},8,["name"])}var H0=Ue(UB,[["render",WB],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const ha=(e,t)=>{const n=[];for(let o=e;o<=t;o++)n.push(o);return n},jB=ve({components:{TimeSpinner:XC},props:{visible:Boolean,actualVisible:Boolean,parsedValue:{type:[Array]},format:{type:String,default:""}},emits:["pick","select-range","set-picker-option"],setup(e,t){const{t:n,lang:o}=un(),s=Be("time"),i=Be("picker"),l=$(()=>e.parsedValue[0]),c=$(()=>e.parsedValue[1]),f=GC(e),p=()=>{t.emit("pick",f.value,!1)},m=$(()=>e.format.includes("ss")),y=$(()=>e.format.includes("A")?"A":e.format.includes("a")?"a":""),v=F([]),w=F([]),E=(ze=!1)=>{t.emit("pick",[l.value,c.value],ze)},I=ze=>{_(ze.millisecond(0),c.value)},S=ze=>{_(l.value,ze.millisecond(0))},T=ze=>{const Ze=ze.map(ot=>St(ot).locale(o.value)),mt=G(Ze);return Ze[0].isSame(mt[0])&&Ze[1].isSame(mt[1])},_=(ze,Ze)=>{t.emit("pick",[ze,Ze],!0)},N=$(()=>l.value>c.value),O=F([0,2]),D=(ze,Ze)=>{t.emit("select-range",ze,Ze,"min"),O.value=[ze,Ze]},x=$(()=>m.value?11:8),R=(ze,Ze)=>{t.emit("select-range",ze,Ze,"max"),O.value=[ze+x.value,Ze+x.value]},B=ze=>{const Ze=m.value?[0,3,6,11,14,17]:[0,3,8,11],mt=["hours","minutes"].concat(m.value?["seconds"]:[]),te=(Ze.indexOf(O.value[0])+ze+Ze.length)%Ze.length,de=Ze.length/2;te<de?ne.start_emitSelectRange(mt[te]):ne.end_emitSelectRange(mt[te-de])},Y=ze=>{const Ze=ze.code;if(Ze===rt.left||Ze===rt.right){const mt=Ze===rt.left?-1:1;B(mt),ze.preventDefault();return}if(Ze===rt.up||Ze===rt.down){const mt=Ze===rt.up?-1:1,ot=O.value[0]<x.value?"start":"end";ne[`${ot}_scrollDown`](mt),ze.preventDefault();return}},X=(ze,Ze)=>{const mt=xe?xe(ze):[],ot=ze==="start",de=(Ze||(ot?c.value:l.value)).hour(),Ne=ot?ha(de+1,23):ha(0,de-1);return Vf(mt,Ne)},K=(ze,Ze,mt)=>{const ot=pe?pe(ze,Ze):[],te=Ze==="start",de=mt||(te?c.value:l.value),Ne=de.hour();if(ze!==Ne)return ot;const De=de.minute(),ke=te?ha(De+1,59):ha(0,De-1);return Vf(ot,ke)},J=(ze,Ze,mt,ot)=>{const te=Me?Me(ze,Ze,mt):[],de=mt==="start",Ne=ot||(de?c.value:l.value),De=Ne.hour(),ke=Ne.minute();if(ze!==De||Ze!==ke)return te;const Ve=Ne.second(),ie=de?ha(Ve+1,59):ha(0,Ve-1);return Vf(te,ie)},G=ze=>ze.map((Ze,mt)=>V(ze[0],ze[1],mt===0?"start":"end")),{getAvailableHours:z,getAvailableMinutes:ee,getAvailableSeconds:j}=YC(X,K,J),V=(ze,Ze,mt)=>{const ot={hour:z,minute:ee,second:j},te=mt==="start";let de=te?ze:Ze;const Ne=te?Ze:ze;return["hour","minute","second"].forEach(De=>{if(ot[De]){let ke;const Ve=ot[De];if(De==="minute"?ke=Ve(de.hour(),mt,Ne):De==="second"?ke=Ve(de.hour(),de.minute(),mt,Ne):ke=Ve(mt,Ne),ke&&ke.length&&!ke.includes(de[De]())){const ie=te?0:ke.length-1;de=de[De](ke[ie])}}}),de},q=ze=>ze?Array.isArray(ze)?ze.map(Ze=>St(Ze,e.format).locale(o.value)):St(ze,e.format).locale(o.value):null,ce=ze=>ze?Array.isArray(ze)?ze.map(Ze=>Ze.format(e.format)):ze.format(e.format):null,ue=()=>{if(Array.isArray(We))return We.map(Ze=>St(Ze).locale(o.value));const ze=St(We).locale(o.value);return[ze,ze.add(60,"m")]};t.emit("set-picker-option",["formatToString",ce]),t.emit("set-picker-option",["parseUserInput",q]),t.emit("set-picker-option",["isValidValue",T]),t.emit("set-picker-option",["handleKeydown",Y]),t.emit("set-picker-option",["getDefaultValue",ue]),t.emit("set-picker-option",["getRangeAvailableTime",G]);const ne={},Se=ze=>{ne[ze[0]]=ze[1]},Ee=et("EP_PICKER_BASE"),{arrowControl:qe,disabledHours:xe,disabledMinutes:pe,disabledSeconds:Me,defaultValue:We}=Ee.props;return{nsTime:s,nsPicker:i,arrowControl:qe,onSetOption:Se,setMaxSelectionRange:R,setMinSelectionRange:D,btnConfirmDisabled:N,handleCancel:p,handleConfirm:E,t:n,showSeconds:m,minDate:l,maxDate:c,amPmMode:y,handleMinChange:I,handleMaxChange:S,minSelectableRange:v,maxSelectableRange:w,disabledHours_:X,disabledMinutes_:K,disabledSeconds_:J}}}),KB=["disabled"];function YB(e,t,n,o,s,i){const l=Ae("time-spinner");return e.actualVisible?(M(),W("div",{key:0,class:P([e.nsTime.b("range-picker"),e.nsPicker.b("panel")])},[Q("div",{class:P(e.nsTime.be("range-picker","content"))},[Q("div",{class:P(e.nsTime.be("range-picker","cell"))},[Q("div",{class:P(e.nsTime.be("range-picker","header"))},Pe(e.t("el.datepicker.startTime")),3),Q("div",{class:P([e.nsTime.be("range-picker","body"),e.nsTime.be("panel","content"),e.nsTime.is("arrow",e.arrowControl),{"has-seconds":e.showSeconds}])},[le(l,{ref:"minSpinner",role:"start","show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,"spinner-date":e.minDate,"disabled-hours":e.disabledHours_,"disabled-minutes":e.disabledMinutes_,"disabled-seconds":e.disabledSeconds_,onChange:e.handleMinChange,onSetOption:e.onSetOption,onSelectRange:e.setMinSelectionRange},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onChange","onSetOption","onSelectRange"])],2)],2),Q("div",{class:P(e.nsTime.be("range-picker","cell"))},[Q("div",{class:P(e.nsTime.be("range-picker","header"))},Pe(e.t("el.datepicker.endTime")),3),Q("div",{class:P([e.nsTime.be("range-picker","body"),e.nsTime.be("panel","content"),e.nsTime.is("arrow",e.arrowControl),{"has-seconds":e.showSeconds}])},[le(l,{ref:"maxSpinner",role:"end","show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,"spinner-date":e.maxDate,"disabled-hours":e.disabledHours_,"disabled-minutes":e.disabledMinutes_,"disabled-seconds":e.disabledSeconds_,onChange:e.handleMaxChange,onSetOption:e.onSetOption,onSelectRange:e.setMaxSelectionRange},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onChange","onSetOption","onSelectRange"])],2)],2)],2),Q("div",{class:P(e.nsTime.be("panel","footer"))},[Q("button",{type:"button",class:P([e.nsTime.be("panel","btn"),"cancel"]),onClick:t[0]||(t[0]=c=>e.handleCancel())},Pe(e.t("el.datepicker.cancel")),3),Q("button",{type:"button",class:P([e.nsTime.be("panel","btn"),"confirm"]),disabled:e.btnConfirmDisabled,onClick:t[1]||(t[1]=c=>e.handleConfirm())},Pe(e.t("el.datepicker.confirm")),11,KB)],2)],2)):fe("v-if",!0)}var GB=Ue(jB,[["render",YB],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);St.extend(F0);var XB=ve({name:"ElTimePicker",install:null,props:Qe(be({},V0),{isRange:{type:Boolean,default:!1}}),emits:["update:modelValue"],setup(e,t){const n=F(null),o=e.isRange?"timerange":"time",s=e.isRange?GB:H0,i=Qe(be({},e),{focus:()=>{var l;(l=n.value)==null||l.handleFocus()},blur:()=>{var l;(l=n.value)==null||l.handleBlur()}});return Pt("ElPopperOptions",e.popperOptions),t.expose(i),()=>{var l;const c=(l=e.format)!=null?l:Gh;return it(LC,Qe(be({},e),{format:c,type:o,ref:n,"onUpdate:modelValue":f=>t.emit("update:modelValue",f)}),{default:f=>it(s,f)})}}});const Us=e=>Array.from(Array.from({length:e}).keys()),qC=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),ZC=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Ic=XB;Ic.install=e=>{e.component(Ic.name,Ic)};const qB=Ic,ZB=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Us(t).map((o,s)=>n-(t-s-1))},QB=e=>{const t=e.daysInMonth();return Us(t).map((n,o)=>o+1)},JB=e=>Us(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),eF=ct({selectedDay:{type:Xe(Object)},range:{type:Xe(Array)},date:{type:Xe(Object),required:!0},hideHeader:{type:Boolean}}),tF={pick:e=>Kt(e)},nF={key:0},oF=["onClick"],rF={name:"DateTable"},sF=ve(Qe(be({},rF),{props:eF,emits:tF,setup(e,{expose:t,emit:n}){const o=e;St.extend($C);const{t:s,lang:i}=un(),l=Be("calendar-table"),c=Be("calendar-day"),f=St().locale(i.value),p=f.$locale().weekStart||0,m=$(()=>!!o.range&&!!o.range.length),y=$(()=>{let T=[];if(m.value){const[_,N]=o.range,O=Us(N.date()-_.date()+1).map(R=>({text:_.date()+R,type:"current"}));let D=O.length%7;D=D===0?0:7-D;const x=Us(D).map((R,B)=>({text:B+1,type:"next"}));T=O.concat(x)}else{const _=o.date.startOf("month").day()||7,N=ZB(o.date,_-p).map(x=>({text:x,type:"prev"})),O=QB(o.date).map(x=>({text:x,type:"current"}));T=[...N,...O];const D=Us(42-T.length).map((x,R)=>({text:R+1,type:"next"}));T=T.concat(D)}return JB(T)}),v=$(()=>{const T=p;return T===0?zf.map(_=>s(`el.datepicker.weeks.${_}`)):zf.slice(T).concat(zf.slice(0,T)).map(_=>s(`el.datepicker.weeks.${_}`))}),w=(T,_)=>{switch(_){case"prev":return o.date.startOf("month").subtract(1,"month").date(T);case"next":return o.date.startOf("month").add(1,"month").date(T);case"current":return o.date.date(T)}},E=({text:T,type:_})=>{const N=[_];if(_==="current"){const O=w(T,_);O.isSame(o.selectedDay,"day")&&N.push(c.is("selected")),O.isSame(f,"day")&&N.push(c.is("today"))}return N},I=({text:T,type:_})=>{const N=w(T,_);n("pick",N)},S=({text:T,type:_})=>{const N=w(T,_);return{isSelected:N.isSame(o.selectedDay),type:`${_}-month`,day:N.format("YYYY-MM-DD"),date:N.toDate()}};return t({getFormattedDate:w}),(T,_)=>(M(),W("table",{class:P([k(l).b(),k(l).is("range",k(m))]),cellspacing:"0",cellpadding:"0"},[T.hideHeader?fe("v-if",!0):(M(),W("thead",nF,[(M(!0),W(at,null,zt(k(v),N=>(M(),W("th",{key:N},Pe(N),1))),128))])),Q("tbody",null,[(M(!0),W(at,null,zt(k(y),(N,O)=>(M(),W("tr",{key:O,class:P({[k(l).e("row")]:!0,[k(l).em("row","hide-border")]:O===0&&T.hideHeader})},[(M(!0),W(at,null,zt(N,(D,x)=>(M(),W("td",{key:x,class:P(E(D)),onClick:R=>I(D)},[Q("div",{class:P(k(c).b())},[Ie(T.$slots,"dateCell",{data:S(D)},()=>[Q("span",null,Pe(D.text),1)])],2)],10,oF))),128))],2))),128))])],2))}}));var kv=Ue(sF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const iF=ct({modelValue:{type:Date},range:{type:Xe(Array),validator:e=>Array.isArray(e)&&e.length===2&&e.every(t=>t instanceof Date)}}),aF={[Ot]:e=>e instanceof Date,input:e=>e instanceof Date},lF={name:"ElCalendar"},uF=ve(Qe(be({},lF),{props:iF,emits:aF,setup(e,{expose:t,emit:n}){const o=e,s=Be("calendar"),{t:i,lang:l}=un(),c=F(),f=St().locale(l.value),p=$(()=>I.value.subtract(1,"month").date(1)),m=$(()=>I.value.add(1,"month").date(1)),y=$(()=>I.value.subtract(1,"year").date(1)),v=$(()=>I.value.add(1,"year").date(1)),w=$(()=>{const O=`el.datepicker.month${I.value.format("M")}`;return`${I.value.year()} ${i("el.datepicker.year")} ${i(O)}`}),E=$({get(){return o.modelValue?I.value:c.value},set(O){if(!O)return;c.value=O;const D=O.toDate();n("input",D),n("update:modelValue",D)}}),I=$(()=>o.modelValue?St(o.modelValue).locale(l.value):E.value?E.value:T.value.length?T.value[0][0]:f),S=(O,D)=>{const x=O.startOf("week"),R=D.endOf("week"),B=x.get("month"),Y=R.get("month");if(B===Y)return[[x,R]];if(B+1===Y){const X=x.endOf("month"),K=R.startOf("month"),G=X.isSame(K,"week")?K.add(1,"week"):K;return[[x,X],[G.startOf("week"),R]]}else if(B+2===Y){const X=x.endOf("month"),K=x.add(1,"month").startOf("month"),J=X.isSame(K,"week")?K.add(1,"week"):K,G=J.endOf("month"),z=R.startOf("month"),ee=G.isSame(z,"week")?z.add(1,"week"):z;return[[x,X],[J.startOf("week"),G],[ee.startOf("week"),R]]}else return[]},T=$(()=>{if(!o.range)return[];const O=o.range.map(R=>St(R).locale(l.value)),[D,x]=O;return D.isAfter(x)?[]:D.isSame(x,"month")?S(D,x):D.add(1,"month").month()!==x.month()?[]:S(D,x)}),_=O=>{E.value=O},N=O=>{let D;O==="prev-month"?D=p.value:O==="next-month"?D=m.value:O==="prev-year"?D=y.value:O==="next-year"?D=v.value:D=f,!D.isSame(I.value,"day")&&_(D)};return t({selectedDay:E,pickDay:_,selectDate:N,calculateValidatedDateRange:S}),(O,D)=>(M(),W("div",{class:P(k(s).b())},[Q("div",{class:P(k(s).e("header"))},[Ie(O.$slots,"header",{date:k(w)},()=>[Q("div",{class:P(k(s).e("title"))},Pe(k(w)),3),k(T).length===0?(M(),W("div",{key:0,class:P(k(s).e("button-group"))},[le(k(xC),null,{default:ae(()=>[le(k(fr),{size:"small",onClick:D[0]||(D[0]=x=>N("prev-month"))},{default:ae(()=>[Ht(Pe(k(i)("el.datepicker.prevMonth")),1)]),_:1}),le(k(fr),{size:"small",onClick:D[1]||(D[1]=x=>N("today"))},{default:ae(()=>[Ht(Pe(k(i)("el.datepicker.today")),1)]),_:1}),le(k(fr),{size:"small",onClick:D[2]||(D[2]=x=>N("next-month"))},{default:ae(()=>[Ht(Pe(k(i)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):fe("v-if",!0)])],2),k(T).length===0?(M(),W("div",{key:0,class:P(k(s).e("body"))},[le(kv,{date:k(I),"selected-day":k(E),onPick:_},Xs({_:2},[O.$slots.dateCell?{name:"dateCell",fn:ae(x=>[Ie(O.$slots,"dateCell",Nr(Ys(x)))])}:void 0]),1032,["date","selected-day"])],2)):(M(),W("div",{key:1,class:P(k(s).e("body"))},[(M(!0),W(at,null,zt(k(T),(x,R)=>(M(),me(kv,{key:R,date:x[0],"selected-day":k(E),range:x,"hide-header":R!==0,onPick:_},Xs({_:2},[O.$slots.dateCell?{name:"dateCell",fn:ae(B=>[Ie(O.$slots,"dateCell",Nr(Ys(B)))])}:void 0]),1032,["date","selected-day","range","hide-header"]))),128))],2))],2))}}));var cF=Ue(uF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const dF=$t(cF),fF=ct({header:{type:String,default:""},bodyStyle:{type:Xe([String,Object,Array]),default:""},shadow:{type:String,default:"always"}}),hF={name:"ElCard"},pF=ve(Qe(be({},hF),{props:fF,setup(e){const t=Be("card");return(n,o)=>(M(),W("div",{class:P([k(t).b(),k(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(M(),W("div",{key:0,class:P(k(t).e("header"))},[Ie(n.$slots,"header",{},()=>[Ht(Pe(n.header),1)])],2)):fe("v-if",!0),Q("div",{class:P(k(t).e("body")),style:st(n.bodyStyle)},[Ie(n.$slots,"default")],6)],2))}}));var gF=Ue(pF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const mF=$t(gF),vF=ct({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,default:""},indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:{type:String,default:""},loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator(e){return["horizontal","vertical"].includes(e)}},pauseOnHover:{type:Boolean,default:!0}}),yF={change:(e,t)=>[e,t].every(Qt)},bF=["onMouseenter","onMouseleave"],wF=["onMouseenter","onClick"],CF={key:0},EF={name:"ElCarousel"},SF=ve(Qe(be({},EF),{props:vF,emits:yF,setup(e,{expose:t,emit:n}){const o=e,s=Be("carousel"),i=300,l=F(-1),c=F(null),f=F(!1),p=F(),m=F([]),y=$(()=>o.arrow!=="never"&&!k(S)),v=$(()=>m.value.some(ue=>ue.props.label.toString().length>0)),w=$(()=>{const ue=[s.b(),s.m(o.direction)];return k(I)&&ue.push(s.m("card")),ue}),E=$(()=>{const ue=[s.e("indicators"),s.em("indicators",o.direction)];return v.value&&ue.push(s.em("indicators","labels")),(o.indicatorPosition==="outside"||k(I))&&ue.push(s.em("indicators","outside")),ue}),I=$(()=>o.type==="card"),S=$(()=>o.direction==="vertical"),T=$i(ue=>{x(ue)},i,{trailing:!0}),_=$i(ue=>{j(ue)},i);function N(){c.value&&(clearInterval(c.value),c.value=null)}function O(){o.interval<=0||!o.autoplay||c.value||(c.value=setInterval(()=>D(),o.interval))}const D=()=>{l.value<m.value.length-1?l.value=l.value+1:o.loop&&(l.value=0)};function x(ue){if(_t(ue)){const Ee=m.value.filter(qe=>qe.props.name===ue);Ee.length>0&&(ue=m.value.indexOf(Ee[0]))}if(ue=Number(ue),Number.isNaN(ue)||ue!==Math.floor(ue))return;const ne=m.value.length,Se=l.value;ue<0?l.value=o.loop?ne-1:0:ue>=ne?l.value=o.loop?0:ne-1:l.value=ue,Se===l.value&&R(Se)}function R(ue){m.value.forEach((ne,Se)=>{ne.translateItem(Se,l.value,ue)})}function B(ue){m.value.push(ue)}function Y(ue){const ne=m.value.findIndex(Se=>Se.uid===ue);ne!==-1&&(m.value.splice(ne,1),l.value===ne&&q())}function X(ue,ne){var Se,Ee,qe,xe;const pe=k(m),Me=pe.length;if(Me===0||!ue.states.inStage)return!1;const We=ne+1,ze=ne-1,Ze=Me-1,mt=pe[Ze].states.active,ot=pe[0].states.active,te=(Ee=(Se=pe[We])==null?void 0:Se.states)==null?void 0:Ee.active,de=(xe=(qe=pe[ze])==null?void 0:qe.states)==null?void 0:xe.active;return ne===Ze&&ot||te?"left":ne===0&&mt||de?"right":!1}function K(){f.value=!0,o.pauseOnHover&&N()}function J(){f.value=!1,O()}function G(ue){k(S)||m.value.forEach((ne,Se)=>{ue===X(ne,Se)&&(ne.states.hover=!0)})}function z(){k(S)||m.value.forEach(ue=>{ue.states.hover=!1})}function ee(ue){l.value=ue}function j(ue){o.trigger==="hover"&&ue!==l.value&&(l.value=ue)}function V(){x(l.value-1)}function q(){x(l.value+1)}Re(()=>l.value,(ue,ne)=>{R(ne),ne>-1&&n("change",ue,ne)}),Re(()=>o.autoplay,ue=>{ue?O():N()}),Re(()=>o.loop,()=>{x(l.value)});const ce=Hn();return kt(async()=>{await dt(),ce.value=nl(p.value,()=>{R()}),o.initialIndex<m.value.length&&o.initialIndex>=0&&(l.value=o.initialIndex),O()}),gn(()=>{N(),p.value&&ce.value&&ce.value.stop()}),Pt(Ww,{root:p,isCardType:I,isVertical:S,items:m,loop:o.loop,addItem:B,removeItem:Y,setActiveItem:x}),t({setActiveItem:x,prev:V,next:q}),(ue,ne)=>(M(),W("div",{ref_key:"root",ref:p,class:P(k(w)),onMouseenter:vt(K,["stop"]),onMouseleave:vt(J,["stop"])},[Q("div",{class:P(k(s).e("container")),style:st({height:ue.height})},[k(y)?(M(),me($n,{key:0,name:"carousel-arrow-left"},{default:ae(()=>[bt(Q("button",{type:"button",class:P([k(s).e("arrow"),k(s).em("arrow","left")]),onMouseenter:ne[0]||(ne[0]=Se=>G("left")),onMouseleave:z,onClick:ne[1]||(ne[1]=vt(Se=>k(T)(l.value-1),["stop"]))},[le(k(yt),null,{default:ae(()=>[le(k(Ji))]),_:1})],34),[[Zt,(ue.arrow==="always"||f.value)&&(o.loop||l.value>0)]])]),_:1})):fe("v-if",!0),k(y)?(M(),me($n,{key:1,name:"carousel-arrow-right"},{default:ae(()=>[bt(Q("button",{type:"button",class:P([k(s).e("arrow"),k(s).em("arrow","right")]),onMouseenter:ne[2]||(ne[2]=Se=>G("right")),onMouseleave:z,onClick:ne[3]||(ne[3]=vt(Se=>k(T)(l.value+1),["stop"]))},[le(k(yt),null,{default:ae(()=>[le(k(wr))]),_:1})],34),[[Zt,(ue.arrow==="always"||f.value)&&(o.loop||l.value<m.value.length-1)]])]),_:1})):fe("v-if",!0),Ie(ue.$slots,"default")],6),ue.indicatorPosition!=="none"?(M(),W("ul",{key:0,class:P(k(E))},[(M(!0),W(at,null,zt(m.value,(Se,Ee)=>(M(),W("li",{key:Ee,class:P([k(s).e("indicator"),k(s).em("indicator",ue.direction),k(s).is("active",Ee===l.value)]),onMouseenter:qe=>k(_)(Ee),onClick:vt(qe=>ee(Ee),["stop"])},[Q("button",{class:P(k(s).e("button"))},[k(v)?(M(),W("span",CF,Pe(Se.props.label),1)):fe("v-if",!0)],2)],42,wF))),128))],2)):fe("v-if",!0)],42,bF))}}));var AF=Ue(SF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const TF=ct({name:{type:String,default:""},label:{type:[String,Number],default:""}}),IF={name:"ElCarouselItem"},_F=ve(Qe(be({},IF),{props:TF,setup(e){const t=e,n=Be("carousel"),o=et(Ww),s=Dt(),i=.83,l=F(!1),c=F(0),f=F(1),p=F(!1),m=F(!1),y=F(!1),v=F(!1),{isCardType:w,isVertical:E}=o,I=$(()=>{const x=`${`translate${k(E)?"Y":"X"}`}(${k(c)}px)`,R=`scale(${k(f)})`;return{transform:[x,R].join(" ")}});function S(D,x,R){const B=R-1,Y=x-1,X=x+1,K=R/2;return x===0&&D===B?-1:x===B&&D===0?R:D<Y&&x-D>=K?R+1:D>X&&D-x>=K?-2:D}function T(D,x){var R;const B=((R=o.root.value)==null?void 0:R.offsetWidth)||0;return y.value?B*((2-i)*(D-x)+1)/4:D<x?-(1+i)*B/4:(3+i)*B/4}function _(D,x,R){const B=o.root.value;return B?((R?B.offsetHeight:B.offsetWidth)||0)*(D-x):0}const N=(D,x,R)=>{var B;const Y=k(w),X=(B=o.items.value.length)!=null?B:Number.NaN,K=D===x;!Y&&!zo(R)&&(v.value=K||D===R),!K&&X>2&&o.loop&&(D=S(D,x,X));const J=k(E);p.value=K,Y?(y.value=Math.round(Math.abs(D-x))<=1,c.value=T(D,x),f.value=k(p)?1:i):c.value=_(D,x,J),m.value=!0};function O(){if(o&&k(w)){const D=o.items.value.findIndex(({uid:x})=>x===s.uid);o.setActiveItem(D)}}return kt(()=>{o.addItem({props:t,states:nn({hover:l,translate:c,scale:f,active:p,ready:m,inStage:y,animating:v}),uid:s.uid,translateItem:N})}),Tu(()=>{o.removeItem(s.uid)}),(D,x)=>bt((M(),W("div",{class:P([k(n).e("item"),k(n).is("active",p.value),k(n).is("in-stage",y.value),k(n).is("hover",l.value),k(n).is("animating",v.value),{[k(n).em("item","card")]:k(w)}]),style:st(k(I)),onClick:O},[k(w)?bt((M(),W("div",{key:0,class:P(k(n).e("mask"))},null,2)),[[Zt,!p.value]]):fe("v-if",!0),Ie(D.$slots,"default")],6)),[[Zt,m.value]])}}));var QC=Ue(_F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const NF=$t(AF,{CarouselItem:QC}),kF=_n(QC),xF={modelValue:{type:[Boolean,Number,String],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},tabindex:[String,Number],size:String},ll=()=>{const e=et(Jo,{}),t=et(mr,{}),n=et("CheckboxGroup",{}),o=$(()=>n&&(n==null?void 0:n.name)==="ElCheckboxGroup"),s=$(()=>t.size);return{isGroup:o,checkboxGroup:n,elForm:e,elFormItemSize:s,elFormItem:t}},MF=e=>{const t=F(!1),{emit:n}=Dt(),{isGroup:o,checkboxGroup:s}=ll(),i=F(!1);return{model:$({get(){var c,f;return o.value?(c=s.modelValue)==null?void 0:c.value:(f=e.modelValue)!=null?f:t.value},set(c){var f;o.value&&Array.isArray(c)?(i.value=s.max!==void 0&&c.length>s.max.value,i.value===!1&&((f=s==null?void 0:s.changeEvent)==null||f.call(s,c))):(n(Ot,c),t.value=c)}}),isLimitExceeded:i}},OF=(e,{model:t})=>{const{isGroup:n,checkboxGroup:o}=ll(),s=F(!1),i=Fn(o==null?void 0:o.checkboxGroupSize,{prop:!0}),l=$(()=>{const f=t.value;return Eu(f)==="[object Boolean]"?f:Array.isArray(f)?f.includes(e.label):f!=null?f===e.trueLabel:!!f}),c=Fn($(()=>{var f;return n.value?(f=o==null?void 0:o.checkboxGroupSize)==null?void 0:f.value:void 0}));return{isChecked:l,focus:s,size:i,checkboxSize:c}},DF=(e,{model:t,isChecked:n})=>{const{elForm:o,isGroup:s,checkboxGroup:i}=ll(),l=$(()=>{var f,p;const m=(f=i.max)==null?void 0:f.value,y=(p=i.min)==null?void 0:p.value;return!!(m||y)&&t.value.length>=m&&!n.value||t.value.length<=y&&n.value});return{isDisabled:$(()=>{var f,p;const m=e.disabled||o.disabled;return(p=s.value?((f=i.disabled)==null?void 0:f.value)||m||l.value:e.disabled||o.disabled)!=null?p:!1}),isLimitDisabled:l}},$F=(e,{model:t})=>{function n(){Array.isArray(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},RF=(e,{isLimitExceeded:t})=>{const{elFormItem:n}=ll(),{emit:o}=Dt();function s(i){var l,c;if(t.value)return;const p=i.target.checked?(l=e.trueLabel)!=null?l:!0:(c=e.falseLabel)!=null?c:!1;o("change",p,i)}return Re(()=>e.modelValue,()=>{var i;(i=n.validate)==null||i.call(n,"change").catch(l=>void 0)}),{handleChange:s}},JC=e=>{const{model:t,isLimitExceeded:n}=MF(e),{focus:o,size:s,isChecked:i,checkboxSize:l}=OF(e,{model:t}),{isDisabled:c}=DF(e,{model:t,isChecked:i}),{handleChange:f}=RF(e,{isLimitExceeded:n});return $F(e,{model:t}),{isChecked:i,isDisabled:c,checkboxSize:l,model:t,handleChange:f,focus:o,size:s}},LF=ve({name:"ElCheckbox",props:{modelValue:{type:[Number,String,Boolean],default:()=>{}},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:{type:String,validator:Zo},tabindex:[String,Number]},emits:[Ot,"change"],setup(e){const t=Be("checkbox");return be({ns:t},JC(e))}}),PF=["id","aria-controls"],BF=["tabindex","role","aria-checked"],FF=["aria-hidden","name","tabindex","disabled","true-value","false-value"],VF=["aria-hidden","disabled","value","name","tabindex"];function HF(e,t,n,o,s,i){return M(),W("label",{id:e.id,class:P([e.ns.b(),e.ns.m(e.checkboxSize),e.ns.is("disabled",e.isDisabled),e.ns.is("bordered",e.border),e.ns.is("checked",e.isChecked)]),"aria-controls":e.indeterminate?e.controls:null},[Q("span",{class:P([e.ns.e("input"),e.ns.is("disabled",e.isDisabled),e.ns.is("checked",e.isChecked),e.ns.is("indeterminate",e.indeterminate),e.ns.is("focus",e.focus)]),tabindex:e.indeterminate?0:void 0,role:e.indeterminate?"checkbox":void 0,"aria-checked":e.indeterminate?"mixed":!1},[Q("span",{class:P(e.ns.e("inner"))},null,2),e.trueLabel||e.falseLabel?bt((M(),W("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=l=>e.model=l),class:P(e.ns.e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,tabindex:e.tabindex,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...l)=>e.handleChange&&e.handleChange(...l)),onFocus:t[2]||(t[2]=l=>e.focus=!0),onBlur:t[3]||(t[3]=l=>e.focus=!1)},null,42,FF)),[[nd,e.model]]):bt((M(),W("input",{key:1,"onUpdate:modelValue":t[4]||(t[4]=l=>e.model=l),class:P(e.ns.e("original")),type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,value:e.label,name:e.name,tabindex:e.tabindex,onChange:t[5]||(t[5]=(...l)=>e.handleChange&&e.handleChange(...l)),onFocus:t[6]||(t[6]=l=>e.focus=!0),onBlur:t[7]||(t[7]=l=>e.focus=!1)},null,42,VF)),[[nd,e.model]])],10,BF),e.$slots.default||e.label?(M(),W("span",{key:0,class:P(e.ns.e("label"))},[Ie(e.$slots,"default"),e.$slots.default?fe("v-if",!0):(M(),W(at,{key:0},[Ht(Pe(e.label),1)],2112))],2)):fe("v-if",!0)],10,PF)}var zF=Ue(LF,[["render",HF],["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const UF=ve({name:"ElCheckboxButton",props:xF,emits:[Ot,"change"],setup(e){const{focus:t,isChecked:n,isDisabled:o,size:s,model:i,handleChange:l}=JC(e),{checkboxGroup:c}=ll(),f=Be("checkbox"),p=$(()=>{var m,y,v,w;const E=(y=(m=c==null?void 0:c.fill)==null?void 0:m.value)!=null?y:"";return{backgroundColor:E,borderColor:E,color:(w=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?w:"",boxShadow:E?`-1px 0 0 0 ${E}`:null}});return{focus:t,isChecked:n,isDisabled:o,model:i,handleChange:l,activeStyle:p,size:s,ns:f}}}),WF=["aria-checked","aria-disabled"],jF=["name","tabindex","disabled","true-value","false-value"],KF=["name","tabindex","disabled","value"];function YF(e,t,n,o,s,i){return M(),W("label",{class:P([e.ns.b("button"),e.ns.bm("button",e.size),e.ns.is("disabled",e.isDisabled),e.ns.is("checked",e.isChecked),e.ns.is("focus",e.focus)]),role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled},[e.trueLabel||e.falseLabel?bt((M(),W("input",{key:0,"onUpdate:modelValue":t[0]||(t[0]=l=>e.model=l),class:P(e.ns.be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel,onChange:t[1]||(t[1]=(...l)=>e.handleChange&&e.handleChange(...l)),onFocus:t[2]||(t[2]=l=>e.focus=!0),onBlur:t[3]||(t[3]=l=>e.focus=!1)},null,42,jF)),[[nd,e.model]]):bt((M(),W("input",{key:1,"onUpdate:modelValue":t[4]||(t[4]=l=>e.model=l),class:P(e.ns.be("button","original")),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:e.isDisabled,value:e.label,onChange:t[5]||(t[5]=(...l)=>e.handleChange&&e.handleChange(...l)),onFocus:t[6]||(t[6]=l=>e.focus=!0),onBlur:t[7]||(t[7]=l=>e.focus=!1)},null,42,KF)),[[nd,e.model]]),e.$slots.default||e.label?(M(),W("span",{key:2,class:P(e.ns.be("button","inner")),style:st(e.isChecked?e.activeStyle:null)},[Ie(e.$slots,"default",{},()=>[Ht(Pe(e.label),1)])],6)):fe("v-if",!0)],10,WF)}var eE=Ue(UF,[["render",YF],["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const GF=ve({name:"ElCheckboxGroup",props:{modelValue:{type:Array,default:()=>[]},disabled:Boolean,min:{type:Number,default:void 0},max:{type:Number,default:void 0},size:{type:String,validator:Zo},fill:{type:String,default:void 0},textColor:{type:String,default:void 0},tag:{type:String,default:"div"}},emits:[Ot,"change"],setup(e,{emit:t,slots:n}){const{elFormItem:o}=ll(),s=Fn(),i=Be("checkbox"),l=f=>{t(Ot,f),dt(()=>{t("change",f)})},c=$({get(){return e.modelValue},set(f){l(f)}});return Pt("CheckboxGroup",Qe(be({name:"ElCheckboxGroup",modelValue:c},Yn(e)),{checkboxGroupSize:s,changeEvent:l})),Re(()=>e.modelValue,()=>{var f;(f=o.validate)==null||f.call(o,"change").catch(p=>void 0)}),()=>it(e.tag,{class:i.b("group"),role:"group","aria-label":"checkbox-group"},[Ie(n,"default")])}});var tE=Ue(GF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const $r=$t(zF,{CheckboxButton:eE,CheckboxGroup:tE}),XF=_n(eE),nE=_n(tE),oE=ct({size:Qd,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),qF=ct(Qe(be({},oE),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),rE={[Ot]:e=>_t(e)||Qt(e)||ao(e),change:e=>_t(e)||Qt(e)||ao(e)},sE=(e,t)=>{const n=F(),o=et(Xw,void 0),s=$(()=>!!o),i=$({get(){return s.value?o.modelValue:e.modelValue},set(m){s.value?o.changeEvent(m):t(Ot,m),n.value.checked=e.modelValue===e.label}}),l=Fn($(()=>o==null?void 0:o.size)),c=ea($(()=>o==null?void 0:o.disabled)),f=F(!1),p=$(()=>c.value||s.value&&i.value!==e.label?-1:0);return{radioRef:n,isGroup:s,radioGroup:o,focus:f,size:l,disabled:c,tabIndex:p,modelValue:i}},ZF=ve({name:"ElRadio",props:qF,emits:rE,setup(e,{emit:t}){const n=Be("radio"),{radioRef:o,isGroup:s,focus:i,size:l,disabled:c,tabIndex:f,modelValue:p}=sE(e,t);function m(){dt(()=>t("change",p.value))}return{ns:n,focus:i,isGroup:s,modelValue:p,tabIndex:f,size:l,disabled:c,radioRef:o,handleChange:m}}}),QF=["aria-checked","aria-disabled","tabindex"],JF=["value","name","disabled"];function eV(e,t,n,o,s,i){return M(),W("label",{class:P([e.ns.b(),e.ns.is("disabled",e.disabled),e.ns.is("focus",e.focus),e.ns.is("bordered",e.border),e.ns.is("checked",e.modelValue===e.label),e.ns.m(e.size)]),role:"radio","aria-checked":e.modelValue===e.label,"aria-disabled":e.disabled,tabindex:e.tabIndex,onKeydown:t[5]||(t[5]=Ft(vt(l=>e.modelValue=e.disabled?e.modelValue:e.label,["stop","prevent"]),["space"]))},[Q("span",{class:P([e.ns.e("input"),e.ns.is("disabled",e.disabled),e.ns.is("checked",e.modelValue===e.label)])},[Q("span",{class:P(e.ns.e("inner"))},null,2),bt(Q("input",{ref:"radioRef","onUpdate:modelValue":t[0]||(t[0]=l=>e.modelValue=l),class:P(e.ns.e("original")),value:e.label,type:"radio","aria-hidden":"true",name:e.name,disabled:e.disabled,tabindex:"-1",onFocus:t[1]||(t[1]=l=>e.focus=!0),onBlur:t[2]||(t[2]=l=>e.focus=!1),onChange:t[3]||(t[3]=(...l)=>e.handleChange&&e.handleChange(...l))},null,42,JF),[[j2,e.modelValue]])],2),Q("span",{class:P(e.ns.e("label")),onKeydown:t[4]||(t[4]=vt(()=>{},["stop"]))},[Ie(e.$slots,"default",{},()=>[Ht(Pe(e.label),1)])],34)],42,QF)}var tV=Ue(ZF,[["render",eV],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const nV=ct(Qe(be({},oE),{name:{type:String,default:""}})),oV=ve({name:"ElRadioButton",props:nV,setup(e,{emit:t}){const n=Be("radio"),{radioRef:o,isGroup:s,focus:i,size:l,disabled:c,tabIndex:f,modelValue:p,radioGroup:m}=sE(e,t),y=$(()=>({backgroundColor:(m==null?void 0:m.fill)||"",borderColor:(m==null?void 0:m.fill)||"",boxShadow:m!=null&&m.fill?`-1px 0 0 0 ${m.fill}`:"",color:(m==null?void 0:m.textColor)||""}));return{ns:n,isGroup:s,size:l,disabled:c,tabIndex:f,modelValue:p,focus:i,activeStyle:y,radioRef:o}}}),rV=["aria-checked","aria-disabled","tabindex"],sV=["value","name","disabled"];function iV(e,t,n,o,s,i){return M(),W("label",{class:P([e.ns.b("button"),e.ns.is("active",e.modelValue===e.label),e.ns.is("disabled",e.disabled),e.ns.is("focus",e.focus),e.ns.bm("button",e.size)]),role:"radio","aria-checked":e.modelValue===e.label,"aria-disabled":e.disabled,tabindex:e.tabIndex,onKeydown:t[4]||(t[4]=Ft(vt(l=>e.modelValue=e.disabled?e.modelValue:e.label,["stop","prevent"]),["space"]))},[bt(Q("input",{ref:"radioRef","onUpdate:modelValue":t[0]||(t[0]=l=>e.modelValue=l),class:P(e.ns.be("button","original-radio")),value:e.label,type:"radio",name:e.name,disabled:e.disabled,tabindex:"-1",onFocus:t[1]||(t[1]=l=>e.focus=!0),onBlur:t[2]||(t[2]=l=>e.focus=!1)},null,42,sV),[[j2,e.modelValue]]),Q("span",{class:P(e.ns.be("button","inner")),style:st(e.modelValue===e.label?e.activeStyle:{}),onKeydown:t[3]||(t[3]=vt(()=>{},["stop"]))},[Ie(e.$slots,"default",{},()=>[Ht(Pe(e.label),1)])],38)],42,rV)}var iE=Ue(oV,[["render",iV],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const aV=ct({size:Qd,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},textColor:{type:String,default:""}}),lV=rE,uV=ve({name:"ElRadioGroup",props:aV,emits:lV,setup(e,t){const n=Be("radio"),o=F(),{formItem:s}=il(),i=c=>{t.emit(Ot,c),dt(()=>t.emit("change",c))},l=c=>{if(!o.value)return;const f=c.target,p=f.nodeName==="INPUT"?"[type=radio]":"[role=radio]",m=o.value.querySelectorAll(p),y=m.length,v=Array.from(m).indexOf(f),w=o.value.querySelectorAll("[role=radio]");let E=null;switch(c.code){case rt.left:case rt.up:c.stopPropagation(),c.preventDefault(),E=v===0?y-1:v-1;break;case rt.right:case rt.down:c.stopPropagation(),c.preventDefault(),E=v===y-1?0:v+1;break}E!==null&&(w[E].click(),w[E].focus())};return kt(()=>{const c=o.value.querySelectorAll("[type=radio]"),f=c[0];!Array.from(c).some(p=>p.checked)&&f&&(f.tabIndex=0)}),Pt(Xw,nn(Qe(be({},Yn(e)),{changeEvent:i}))),Re(()=>e.modelValue,()=>s==null?void 0:s.validate("change").catch(c=>void 0)),{ns:n,radioGroupRef:o,handleKeydown:l}}});function cV(e,t,n,o,s,i){return M(),W("div",{ref:"radioGroupRef",class:P(e.ns.b("group")),role:"radiogroup",onKeydown:t[0]||(t[0]=(...l)=>e.handleKeydown&&e.handleKeydown(...l))},[Ie(e.$slots,"default")],34)}var aE=Ue(uV,[["render",cV],["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const lE=$t(tV,{RadioButton:iE,RadioGroup:aE}),dV=_n(aE),fV=_n(iE);var hV=ve({name:"NodeContent",setup(){return{ns:Be("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:o,label:s}=t,{renderLabelFn:i}=n;return it("span",{class:e.e("label")},i?i({node:t,data:o}):s)}});const z0=Symbol(),pV=ve({name:"ElCascaderNode",components:{ElCheckbox:$r,ElRadio:lE,NodeContent:hV,ElIcon:yt,Check:ja,Loading:ti,ArrowRight:wr},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=et(z0),o=Be("cascader-node"),s=$(()=>n.isHoverMenu),i=$(()=>n.config.multiple),l=$(()=>n.config.checkStrictly),c=$(()=>{var x;return(x=n.checkedNodes[0])==null?void 0:x.uid}),f=$(()=>e.node.isDisabled),p=$(()=>e.node.isLeaf),m=$(()=>l.value&&!p.value||!f.value),y=$(()=>w(n.expandingNode)),v=$(()=>l.value&&n.checkedNodes.some(w)),w=x=>{var R;const{level:B,uid:Y}=e.node;return((R=x==null?void 0:x.pathNodes[B-1])==null?void 0:R.uid)===Y},E=()=>{y.value||n.expandNode(e.node)},I=x=>{const{node:R}=e;x!==R.checked&&n.handleCheckChange(R,x)},S=()=>{n.lazyLoad(e.node,()=>{p.value||E()})},T=x=>{!s.value||(_(),!p.value&&t("expand",x))},_=()=>{const{node:x}=e;!m.value||x.loading||(x.loaded?E():S())},N=()=>{s.value&&!p.value||(p.value&&!f.value&&!l.value&&!i.value?D(!0):_())},O=x=>{l.value?(I(x),e.node.loaded&&E()):D(x)},D=x=>{e.node.loaded?(I(x),!l.value&&E()):S()};return{panel:n,isHoverMenu:s,multiple:i,checkStrictly:l,checkedNodeId:c,isDisabled:f,isLeaf:p,expandable:m,inExpandingPath:y,inCheckedPath:v,ns:o,handleHoverExpand:T,handleExpand:_,handleClick:N,handleCheck:D,handleSelectCheck:O}}}),gV=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],mV=Q("span",null,null,-1);function vV(e,t,n,o,s,i){const l=Ae("el-checkbox"),c=Ae("el-radio"),f=Ae("check"),p=Ae("el-icon"),m=Ae("node-content"),y=Ae("loading"),v=Ae("arrow-right");return M(),W("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:P([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...w)=>e.handleHoverExpand&&e.handleHoverExpand(...w)),onFocus:t[3]||(t[3]=(...w)=>e.handleHoverExpand&&e.handleHoverExpand(...w)),onClick:t[4]||(t[4]=(...w)=>e.handleClick&&e.handleClick(...w))},[fe(" prefix "),e.multiple?(M(),me(l,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=vt(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(M(),me(c,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=vt(()=>{},["stop"]))},{default:ae(()=>[fe(`
|
||
Add an empty element to avoid render label,
|
||
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
`),mV]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(M(),me(p,{key:2,class:P(e.ns.e("prefix"))},{default:ae(()=>[le(f)]),_:1},8,["class"])):fe("v-if",!0),fe(" content "),le(m),fe(" postfix "),e.isLeaf?fe("v-if",!0):(M(),W(at,{key:3},[e.node.loading?(M(),me(p,{key:0,class:P([e.ns.is("loading"),e.ns.e("postfix")])},{default:ae(()=>[le(y)]),_:1},8,["class"])):(M(),me(p,{key:1,class:P(["arrow-right",e.ns.e("postfix")])},{default:ae(()=>[le(v)]),_:1},8,["class"]))],2112))],42,gV)}var yV=Ue(pV,[["render",vV],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const bV=ve({name:"ElCascaderMenu",components:{Loading:ti,ElIcon:yt,ElScrollbar:Es,ElCascaderNode:yV},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Dt(),n=Be("cascader-menu"),{t:o}=un(),s=Mu();let i=null,l=null;const c=et(z0),f=F(null),p=$(()=>!e.nodes.length),m=$(()=>!c.initialLoaded),y=$(()=>`cascader-menu-${s}-${e.index}`),v=S=>{i=S.target},w=S=>{if(!(!c.isHoverMenu||!i||!f.value))if(i.contains(S.target)){E();const T=t.vnode.el,{left:_}=T.getBoundingClientRect(),{offsetWidth:N,offsetHeight:O}=T,D=S.clientX-_,x=i.offsetTop,R=x+i.offsetHeight;f.value.innerHTML=`
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${D} ${x} L${N} 0 V${x} Z" />
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${D} ${R} L${N} ${O} V${R} Z" />
|
||
`}else l||(l=window.setTimeout(I,c.config.hoverThreshold))},E=()=>{!l||(clearTimeout(l),l=null)},I=()=>{!f.value||(f.value.innerHTML="",E())};return{ns:n,panel:c,hoverZone:f,isEmpty:p,isLoading:m,menuId:y,t:o,handleExpand:v,handleMouseMove:w,clearHoverZone:I}}});function wV(e,t,n,o,s,i){const l=Ae("el-cascader-node"),c=Ae("loading"),f=Ae("el-icon"),p=Ae("el-scrollbar");return M(),me(p,{key:e.menuId,tag:"ul",role:"menu",class:P(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:ae(()=>{var m;return[(M(!0),W(at,null,zt(e.nodes,y=>(M(),me(l,{key:y.uid,node:y,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(M(),W("div",{key:0,class:P(e.ns.e("empty-text"))},[le(f,{size:"14",class:P(e.ns.is("loading"))},{default:ae(()=>[le(c)]),_:1},8,["class"]),Ht(" "+Pe(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(M(),W("div",{key:1,class:P(e.ns.e("empty-text"))},Pe(e.t("el.cascader.noData")),3)):(m=e.panel)!=null&&m.isHoverMenu?(M(),W("svg",{key:2,ref:"hoverZone",class:P(e.ns.e("hover-zone"))},null,2)):fe("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var CV=Ue(bV,[["render",wV],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]),U0=(e=>(e.CLICK="click",e.HOVER="hover",e))(U0||{});let EV=0;const SV=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class Ya{constructor(t,n,o,s=!1){this.data=t,this.config=n,this.parent=o,this.root=s,this.uid=EV++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:l,children:c}=n,f=t[c],p=SV(this);this.level=s?0:o?o.level+1:1,this.value=t[i],this.label=t[l],this.pathNodes=p,this.pathValues=p.map(m=>m.value),this.pathLabels=p.map(m=>m.label),this.childrenData=f,this.children=(f||[]).map(m=>new Ya(m,n,this)),this.loaded=!n.lazy||this.isLeaf||!uu(f)}get isDisabled(){const{data:t,parent:n,config:o}=this,{disabled:s,checkStrictly:i}=o;return(It(s)?s(t,this):!!t[s])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:o,loaded:s}=this,{lazy:i,leaf:l}=n,c=It(l)?l(t,this):t[l];return zo(c)?i&&!s?!1:!(Array.isArray(o)&&o.length):!!c}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:o}=this,s=new Ya(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],o.push(s),s}calcText(t,n){const o=t?this.pathLabels.join(n):this.label;return this.text=o,o}broadcast(t,...n){const o=`onParent${Vo(t)}`;this.children.forEach(s=>{s&&(s.broadcast(t,...n),s[o]&&s[o](...n))})}emit(t,...n){const{parent:o}=this,s=`onChild${Vo(t)}`;o&&(o[s]&&o[s](...n),o.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(s=>!s.isDisabled),o=n.length?n.every(s=>s.checked):!1;this.setCheckState(o)}setCheckState(t){const n=this.children.length,o=this.children.reduce((s,i)=>{const l=i.checked?1:i.indeterminate?.5:0;return s+l},0);this.checked=this.loaded&&this.children.every(s=>s.loaded&&s.checked)&&t,this.indeterminate=this.loaded&&o!==n&&o>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:o}=this.config;n||!o?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const rp=(e,t)=>e.reduce((n,o)=>(o.isLeaf?n.push(o):(!t&&n.push(o),n=n.concat(rp(o.children,t))),n),[]);class xv{constructor(t,n){this.config=n;const o=(t||[]).map(s=>new Ya(s,this.config));this.nodes=o,this.allNodes=rp(o,!1),this.leafNodes=rp(o,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const o=n?n.appendChild(t):new Ya(t,this.config);n||this.nodes.push(o),this.allNodes.push(o),o.isLeaf&&this.leafNodes.push(o)}appendNodes(t,n){t.forEach(o=>this.appendNode(o,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(s=>Ko(s.value,t)||Ko(s.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:o,level:s})=>Ko(t.value,o)&&t.level===s)||null}}const uE={modelValue:[Number,String,Array],options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}},AV={expandTrigger:U0.CLICK,multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:on,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},TV=e=>$(()=>be(be({},AV),e.props)),Mv=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},IV=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Aw(e)&&e.click()},_V=(e,t)=>{const n=t.slice(0),o=n.map(i=>i.uid),s=e.reduce((i,l)=>{const c=o.indexOf(l.uid);return c>-1&&(i.push(l),n.splice(c,1),o.splice(c,1)),i},[]);return s.push(...n),s},NV=ve({name:"ElCascaderPanel",components:{ElCascaderMenu:CV},props:Qe(be({},uE),{border:{type:Boolean,default:!0},renderLabel:Function}),emits:[Ot,Gn,"close","expand-change"],setup(e,{emit:t,slots:n}){let o=!1;const s=Be("cascader"),i=TV(e);let l=null;const c=F(!0),f=F([]),p=F(null),m=F([]),y=F(null),v=F([]),w=$(()=>i.value.expandTrigger===U0.HOVER),E=$(()=>e.renderLabel||n.default),I=()=>{const{options:J}=e,G=i.value;o=!1,l=new xv(J,G),m.value=[l.getNodes()],G.lazy&&uu(e.options)?(c.value=!1,S(void 0,z=>{z&&(l=new xv(z,G),m.value=[l.getNodes()]),c.value=!0,B(!1,!0)})):B(!1,!0)},S=(J,G)=>{const z=i.value;J=J||new Ya({},z,void 0,!0),J.loading=!0;const ee=j=>{const V=J,q=V.root?null:V;j&&(l==null||l.appendNodes(j,q)),V.loading=!1,V.loaded=!0,V.childrenData=V.childrenData||[],G&&G(j)};z.lazyLoad(J,ee)},T=(J,G)=>{var z;const{level:ee}=J,j=m.value.slice(0,ee);let V;J.isLeaf?V=J.pathNodes[ee-2]:(V=J,j.push(J.children)),((z=y.value)==null?void 0:z.uid)!==(V==null?void 0:V.uid)&&(y.value=J,m.value=j,!G&&t("expand-change",(J==null?void 0:J.pathValues)||[]))},_=(J,G,z=!0)=>{const{checkStrictly:ee,multiple:j}=i.value,V=v.value[0];o=!0,!j&&(V==null||V.doCheck(!1)),J.doCheck(G),R(),z&&!j&&!ee&&t("close"),!z&&!j&&!ee&&N(J)},N=J=>{!J||(J=J.parent,N(J),J&&T(J))},O=J=>l==null?void 0:l.getFlattedNodes(J),D=J=>{var G;return(G=O(J))==null?void 0:G.filter(z=>z.checked!==!1)},x=()=>{v.value.forEach(J=>J.doCheck(!1)),R()},R=()=>{var J;const{checkStrictly:G,multiple:z}=i.value,ee=v.value,j=D(!G),V=_V(ee,j),q=V.map(ce=>ce.valueByOption);v.value=V,p.value=z?q:(J=q[0])!=null?J:null},B=(J=!1,G=!1)=>{const{modelValue:z}=e,{lazy:ee,multiple:j,checkStrictly:V}=i.value,q=!V;if(!(!c.value||o||!G&&Ko(z,p.value)))if(ee&&!J){const ue=ev(qO(Ri(z))).map(ne=>l==null?void 0:l.getNodeByValue(ne)).filter(ne=>!!ne&&!ne.loaded&&!ne.loading);ue.length?ue.forEach(ne=>{S(ne,()=>B(!1,G))}):B(!0,G)}else{const ce=j?Ri(z):[z],ue=ev(ce.map(ne=>l==null?void 0:l.getNodeByValue(ne,q)));Y(ue,!1),p.value=z}},Y=(J,G=!0)=>{const{checkStrictly:z}=i.value,ee=v.value,j=J.filter(ce=>!!ce&&(z||ce.isLeaf)),V=l==null?void 0:l.getSameNode(y.value),q=G&&V||j[0];q?q.pathNodes.forEach(ce=>T(ce,!0)):y.value=null,ee.forEach(ce=>ce.doCheck(!1)),j.forEach(ce=>ce.doCheck(!0)),v.value=j,dt(X)},X=()=>{!jt||f.value.forEach(J=>{const G=J==null?void 0:J.$el;if(G){const z=G.querySelector(`.${s.namespace.value}-scrollbar__wrap`),ee=G.querySelector(`.${s.b("node")}.${s.is("active")}`)||G.querySelector(`.${s.b("node")}.in-active-path`);kw(z,ee)}})},K=J=>{const G=J.target,{code:z}=J;switch(z){case rt.up:case rt.down:{J.preventDefault();const ee=z===rt.up?-1:1;Cc(Tw(G,ee,`.${s.b("node")}[tabindex="-1"]`));break}case rt.left:{J.preventDefault();const ee=f.value[Mv(G)-1],j=ee==null?void 0:ee.$el.querySelector(`.${s.b("node")}[aria-expanded="true"]`);Cc(j);break}case rt.right:{J.preventDefault();const ee=f.value[Mv(G)+1],j=ee==null?void 0:ee.$el.querySelector(`.${s.b("node")}[tabindex="-1"]`);Cc(j);break}case rt.enter:IV(G);break;case rt.esc:case rt.tab:t("close");break}};return Pt(z0,nn({config:i,expandingNode:y,checkedNodes:v,isHoverMenu:w,initialLoaded:c,renderLabelFn:E,lazyLoad:S,expandNode:T,handleCheckChange:_})),Re([i,()=>e.options],I,{deep:!0,immediate:!0}),Re(()=>e.modelValue,()=>{o=!1,B()}),Re(p,J=>{Ko(J,e.modelValue)||(t(Ot,J),t(Gn,J))}),y2(()=>f.value=[]),kt(()=>!uu(e.modelValue)&&B()),{ns:s,menuList:f,menus:m,checkedNodes:v,handleKeyDown:K,handleCheckChange:_,getFlattedNodes:O,getCheckedNodes:D,clearCheckedNodes:x,calculateCheckedValue:R,scrollToExpandingNode:X}}});function kV(e,t,n,o,s,i){const l=Ae("el-cascader-menu");return M(),W("div",{class:P([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...c)=>e.handleKeyDown&&e.handleKeyDown(...c))},[(M(!0),W(at,null,zt(e.menus,(c,f)=>(M(),me(l,{key:f,ref_for:!0,ref:p=>e.menuList[f]=p,index:f,nodes:[...c]},null,8,["index","nodes"]))),128))],34)}var _c=Ue(NV,[["render",kV],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);_c.install=e=>{e.component(_c.name,_c)};const cE=_c,xV=cE,W0=ct({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:ts,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),MV={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},OV={name:"ElTag"},DV=ve(Qe(be({},OV),{props:W0,emits:MV,setup(e,{emit:t}){const n=e,o=Fn(),s=Be("tag"),i=$(()=>{const{type:f,hit:p,effect:m,closable:y,round:v}=n;return[s.b(),s.is("closable",y),s.m(f),s.m(o.value),s.m(m),s.is("hit",p),s.is("round",v)]}),l=f=>{f.stopPropagation(),t("close",f)},c=f=>{t("click",f)};return(f,p)=>f.disableTransitions?(M(),me($n,{key:1,name:`${k(s).namespace.value}-zoom-in-center`},{default:ae(()=>[Q("span",{class:P(k(i)),style:st({backgroundColor:f.color}),onClick:c},[Q("span",{class:P(k(s).e("content"))},[Ie(f.$slots,"default")],2),f.closable?(M(),me(k(yt),{key:0,class:P(k(s).e("close")),onClick:l},{default:ae(()=>[le(k(gr))]),_:1},8,["class"])):fe("v-if",!0)],6)]),_:3},8,["name"])):(M(),W("span",{key:0,class:P(k(i)),style:st({backgroundColor:f.color}),onClick:c},[Q("span",{class:P(k(s).e("content"))},[Ie(f.$slots,"default")],2),f.closable?(M(),me(k(yt),{key:0,class:P(k(s).e("close")),onClick:l},{default:ae(()=>[le(k(gr))]),_:1},8,["class"])):fe("v-if",!0)],6))}}));var $V=Ue(DV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const nf=$t($V),RV=40,LV={large:36,default:32,small:28},PV={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:e})=>{const{modifiersData:t,placement:n}=e;["right","left","bottom","top"].includes(n)||(t.arrow.x=35)},requires:["arrow"]}]},Ov="ElCascader",BV=ve({name:Ov,components:{ElCascaderPanel:cE,ElInput:Cr,ElTooltip:Ro,ElScrollbar:Es,ElTag:nf,ElIcon:yt,CircleClose:gs,Check:ja,ArrowDown:Qi},directives:{Clickoutside:ta},props:Qe(be({},uE),{size:{type:String,validator:Zo},placeholder:{type:String},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Function,default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:Function,default:()=>!0},popperClass:{type:String,default:""},popperAppendToBody:{type:Boolean,default:void 0},teleported:ro.teleported,tagType:Qe(be({},W0.type),{default:"info"})}),emits:[Ot,Gn,"focus","blur","visible-change","expand-change","remove-tag"],setup(e,{emit:t}){let n=0,o=0;const{compatTeleported:s}=al(Ov,"popperAppendToBody"),i=Be("cascader"),l=Be("input"),{t:c}=un(),f=et(Jo,{}),p=et(mr,{}),m=F(null),y=F(null),v=F(null),w=F(null),E=F(null),I=F(!1),S=F(!1),T=F(!1),_=F(""),N=F(""),O=F([]),D=F([]),x=F([]),R=F(!1),B=$(()=>e.disabled||f.disabled),Y=$(()=>e.placeholder||c("el.cascader.placeholder")),X=Fn(),K=$(()=>["small"].includes(X.value)?"small":"default"),J=$(()=>!!e.props.multiple),G=$(()=>!e.filterable||J.value),z=$(()=>J.value?N.value:_.value),ee=$(()=>{var ie;return((ie=w.value)==null?void 0:ie.checkedNodes)||[]}),j=$(()=>!e.clearable||B.value||T.value||!S.value?!1:!!ee.value.length),V=$(()=>{const{showAllLevels:ie,separator:re}=e,ge=ee.value;return ge.length?J.value?" ":ge[0].calcText(ie,re):""}),q=$({get(){return e.modelValue},set(ie){var re;t(Ot,ie),t(Gn,ie),(re=p.validate)==null||re.call(p,"change").catch(ge=>void 0)}}),ce=$(()=>{var ie,re;return(re=(ie=m.value)==null?void 0:ie.popperRef)==null?void 0:re.contentRef}),ue=ie=>{var re,ge,Te;if(!B.value&&(ie=ie!=null?ie:!I.value,ie!==I.value)){if(I.value=ie,(ge=(re=y.value)==null?void 0:re.input)==null||ge.setAttribute("aria-expanded",`${ie}`),ie)ne(),dt((Te=w.value)==null?void 0:Te.scrollToExpandingNode);else if(e.filterable){const{value:Je}=V;_.value=Je,N.value=Je}t("visible-change",ie)}},ne=()=>{dt(()=>{var ie;(ie=m.value)==null||ie.updatePopper()})},Se=()=>{T.value=!1},Ee=ie=>{const{showAllLevels:re,separator:ge}=e;return{node:ie,key:ie.uid,text:ie.calcText(re,ge),hitState:!1,closable:!B.value&&!ie.isDisabled,isCollapseTag:!1}},qe=ie=>{var re;const ge=ie.node;ge.doCheck(!1),(re=w.value)==null||re.calculateCheckedValue(),t("remove-tag",ge.valueByOption)},xe=()=>{if(!J.value)return;const ie=ee.value,re=[],ge=[];if(ie.forEach(Te=>ge.push(Ee(Te))),D.value=ge,ie.length){const[Te,...Je]=ie,he=Je.length;re.push(Ee(Te)),he&&(e.collapseTags?re.push({key:-1,text:`+ ${he}`,closable:!1,isCollapseTag:!0}):Je.forEach(He=>re.push(Ee(He))))}O.value=re},pe=()=>{var ie,re;const{filterMethod:ge,showAllLevels:Te,separator:Je}=e,he=(re=(ie=w.value)==null?void 0:ie.getFlattedNodes(!e.props.checkStrictly))==null?void 0:re.filter(He=>He.isDisabled?!1:(He.calcText(Te,Je),ge(He,z.value)));J.value&&(O.value.forEach(He=>{He.hitState=!1}),D.value.forEach(He=>{He.hitState=!1})),T.value=!0,x.value=he,ne()},Me=()=>{var ie;let re;T.value&&E.value?re=E.value.$el.querySelector(`.${i.e("suggestion-item")}`):re=(ie=w.value)==null?void 0:ie.$el.querySelector(`.${i.b("node")}[tabindex="-1"]`),re&&(re.focus(),!T.value&&re.click())},We=()=>{var ie,re;const ge=(ie=y.value)==null?void 0:ie.input,Te=v.value,Je=(re=E.value)==null?void 0:re.$el;if(!(!jt||!ge)){if(Je){const he=Je.querySelector(`.${i.e("suggestion-list")}`);he.style.minWidth=`${ge.offsetWidth}px`}if(Te){const{offsetHeight:he}=Te,He=O.value.length>0?`${Math.max(he+6,n)}px`:`${n}px`;ge.style.height=He,ne()}}},ze=ie=>{var re;return(re=w.value)==null?void 0:re.getCheckedNodes(ie)},Ze=ie=>{ne(),t("expand-change",ie)},mt=ie=>{var re;const ge=(re=ie.target)==null?void 0:re.value;if(ie.type==="compositionend")R.value=!1,dt(()=>Ve(ge));else{const Te=ge[ge.length-1]||"";R.value=!Xd(Te)}},ot=ie=>{if(!R.value)switch(ie.code){case rt.enter:ue();break;case rt.down:ue(!0),dt(Me),ie.preventDefault();break;case rt.esc:case rt.tab:ue(!1);break}},te=()=>{var ie;(ie=w.value)==null||ie.clearCheckedNodes(),ue(!1)},de=ie=>{var re,ge;const{checked:Te}=ie;J.value?(re=w.value)==null||re.handleCheckChange(ie,!Te,!1):(!Te&&((ge=w.value)==null||ge.handleCheckChange(ie,!0,!1)),ue(!1))},Ne=ie=>{const re=ie.target,{code:ge}=ie;switch(ge){case rt.up:case rt.down:{const Te=ge===rt.up?-1:1;Cc(Tw(re,Te,`.${i.e("suggestion-item")}[tabindex="-1"]`));break}case rt.enter:re.click();break;case rt.esc:case rt.tab:ue(!1);break}},De=()=>{const ie=O.value,re=ie[ie.length-1];o=N.value?0:o+1,!(!re||!o)&&(re.hitState?qe(re):re.hitState=!0)},ke=$o(()=>{const{value:ie}=z;if(!ie)return;const re=e.beforeFilter(ie);Hi(re)?re.then(pe).catch(()=>{}):re!==!1?pe():Se()},e.debounce),Ve=(ie,re)=>{!I.value&&ue(!0),!(re!=null&&re.isComposing)&&(ie?ke():Se())};return Re(T,ne),Re([ee,B],xe),Re(O,()=>{dt(()=>We())}),Re(V,ie=>_.value=ie,{immediate:!0}),kt(()=>{var ie;const re=(ie=y.value)==null?void 0:ie.$el;n=(re==null?void 0:re.offsetHeight)||LV[X.value]||RV,ol(re,We)}),gn(()=>{var ie;rl((ie=y.value)==null?void 0:ie.$el,We)}),{popperOptions:PV,tooltipRef:m,popperPaneRef:ce,input:y,tagWrapper:v,panel:w,suggestionPanel:E,popperVisible:I,inputHover:S,inputPlaceholder:Y,filtering:T,presentText:V,checkedValue:q,inputValue:_,searchInputValue:N,presentTags:O,allPresentTags:D,suggestions:x,isDisabled:B,isOnComposition:R,realSize:X,tagSize:K,multiple:J,readonly:G,clearBtnVisible:j,compatTeleported:s,nsCascader:i,nsInput:l,t:c,togglePopperVisible:ue,hideSuggestionPanel:Se,deleteTag:qe,focusFirstNode:Me,getCheckedNodes:ze,handleExpandChange:Ze,handleKeyDown:ot,handleComposition:mt,handleClear:te,handleSuggestionClick:de,handleSuggestionKeyDown:Ne,handleDelete:De,handleInput:Ve}}}),FV={key:0},VV={class:"el-cascader__collapse-tags"},HV=["placeholder"],zV=["onClick"];function UV(e,t,n,o,s,i){const l=Ae("circle-close"),c=Ae("el-icon"),f=Ae("arrow-down"),p=Ae("el-input"),m=Ae("el-tag"),y=Ae("el-tooltip"),v=Ae("el-cascader-panel"),w=Ae("check"),E=Ae("el-scrollbar"),I=qo("clickoutside");return M(),me(y,{ref:"tooltipRef",visible:e.popperVisible,"onUpdate:visible":t[17]||(t[17]=S=>e.popperVisible=S),teleported:e.compatTeleported,"popper-class":[e.nsCascader.e("dropdown"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${e.nsCascader.namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:e.hideSuggestionPanel},{default:ae(()=>[bt((M(),W("div",{class:P([e.nsCascader.b(),e.nsCascader.m(e.realSize),e.nsCascader.is("disabled",e.isDisabled),e.$attrs.class]),style:st(e.$attrs.style),onClick:t[11]||(t[11]=()=>e.togglePopperVisible(e.readonly?void 0:!0)),onKeydown:t[12]||(t[12]=(...S)=>e.handleKeyDown&&e.handleKeyDown(...S)),onMouseenter:t[13]||(t[13]=S=>e.inputHover=!0),onMouseleave:t[14]||(t[14]=S=>e.inputHover=!1)},[le(p,{ref:"input",modelValue:e.inputValue,"onUpdate:modelValue":t[1]||(t[1]=S=>e.inputValue=S),placeholder:e.inputPlaceholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1,size:e.realSize,class:P(e.nsCascader.is("focus",e.popperVisible)),onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onFocus:t[2]||(t[2]=S=>e.$emit("focus",S)),onBlur:t[3]||(t[3]=S=>e.$emit("blur",S)),onInput:e.handleInput},{suffix:ae(()=>[e.clearBtnVisible?(M(),me(c,{key:"clear",class:P([e.nsInput.e("icon"),"icon-circle-close"]),onClick:vt(e.handleClear,["stop"])},{default:ae(()=>[le(l)]),_:1},8,["class","onClick"])):(M(),me(c,{key:"arrow-down",class:P([e.nsInput.e("icon"),"icon-arrow-down",e.nsCascader.is("reverse",e.popperVisible)]),onClick:t[0]||(t[0]=vt(S=>e.togglePopperVisible(),["stop"]))},{default:ae(()=>[le(f)]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","onCompositionstart","onCompositionupdate","onCompositionend","onInput"]),e.multiple?(M(),W("div",{key:0,ref:"tagWrapper",class:P(e.nsCascader.e("tags"))},[(M(!0),W(at,null,zt(e.presentTags,S=>(M(),me(m,{key:S.key,type:e.tagType,size:e.tagSize,hit:S.hitState,closable:S.closable,"disable-transitions":"",onClose:T=>e.deleteTag(S)},{default:ae(()=>[S.isCollapseTag===!1?(M(),W("span",FV,Pe(S.text),1)):(M(),me(y,{key:1,teleported:!1,disabled:e.popperVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:ae(()=>[Q("span",null,Pe(S.text),1)]),content:ae(()=>[Q("div",VV,[(M(!0),W(at,null,zt(e.allPresentTags,(T,_)=>(M(),W("div",{key:_,class:"el-cascader__collapse-tag"},[(M(),me(m,{key:T.key,class:"in-tooltip",type:e.tagType,size:e.tagSize,hit:T.hitState,closable:T.closable,"disable-transitions":"",onClose:N=>e.deleteTag(T)},{default:ae(()=>[Q("span",null,Pe(T.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))]))),128))])]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),e.filterable&&!e.isDisabled?bt((M(),W("input",{key:0,"onUpdate:modelValue":t[4]||(t[4]=S=>e.searchInputValue=S),type:"text",class:P(e.nsCascader.e("search-input")),placeholder:e.presentText?"":e.inputPlaceholder,onInput:t[5]||(t[5]=S=>e.handleInput(e.searchInputValue,S)),onClick:t[6]||(t[6]=vt(S=>e.togglePopperVisible(!0),["stop"])),onKeydown:t[7]||(t[7]=Ft((...S)=>e.handleDelete&&e.handleDelete(...S),["delete"])),onCompositionstart:t[8]||(t[8]=(...S)=>e.handleComposition&&e.handleComposition(...S)),onCompositionupdate:t[9]||(t[9]=(...S)=>e.handleComposition&&e.handleComposition(...S)),onCompositionend:t[10]||(t[10]=(...S)=>e.handleComposition&&e.handleComposition(...S))},null,42,HV)),[[u0,e.searchInputValue]]):fe("v-if",!0)],2)):fe("v-if",!0)],38)),[[I,()=>e.togglePopperVisible(!1),e.popperPaneRef]])]),content:ae(()=>[bt(le(v,{ref:"panel",modelValue:e.checkedValue,"onUpdate:modelValue":t[15]||(t[15]=S=>e.checkedValue=S),options:e.options,props:e.props,border:!1,"render-label":e.$slots.default,onExpandChange:e.handleExpandChange,onClose:t[16]||(t[16]=S=>e.$nextTick(()=>e.togglePopperVisible(!1)))},null,8,["modelValue","options","props","render-label","onExpandChange"]),[[Zt,!e.filtering]]),e.filterable?bt((M(),me(E,{key:0,ref:"suggestionPanel",tag:"ul",class:P(e.nsCascader.e("suggestion-panel")),"view-class":e.nsCascader.e("suggestion-list"),onKeydown:e.handleSuggestionKeyDown},{default:ae(()=>[e.suggestions.length?(M(!0),W(at,{key:0},zt(e.suggestions,S=>(M(),W("li",{key:S.uid,class:P([e.nsCascader.e("suggestion-item"),e.nsCascader.is("checked",S.checked)]),tabindex:-1,onClick:T=>e.handleSuggestionClick(S)},[Q("span",null,Pe(S.text),1),S.checked?(M(),me(c,{key:0},{default:ae(()=>[le(w)]),_:1})):fe("v-if",!0)],10,zV))),128)):Ie(e.$slots,"empty",{key:1},()=>[Q("li",{class:P(e.nsCascader.e("empty-text"))},Pe(e.t("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class","onKeydown"])),[[Zt,e.filtering]]):fe("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-options","transition","onHide"])}var Nc=Ue(BV,[["render",UV],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/index.vue"]]);Nc.install=e=>{e.component(Nc.name,Nc)};const WV=Nc,jV=WV,KV=ct({checked:{type:Boolean,default:!1}}),YV={"update:checked":e=>ao(e),change:e=>ao(e)},GV={name:"ElCheckTag"},XV=ve(Qe(be({},GV),{props:KV,emits:YV,setup(e,{emit:t}){const n=e,o=Be("check-tag"),s=()=>{const i=!n.checked;t("change",i),t("update:checked",i)};return(i,l)=>(M(),W("span",{class:P([k(o).b(),k(o).is("checked",i.checked)]),onClick:s},[Ie(i.$slots,"default")],2))}}));var qV=Ue(XV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ZV=$t(qV),QV=ct({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Xe([Number,Object]),default:()=>In({})},sm:{type:Xe([Number,Object]),default:()=>In({})},md:{type:Xe([Number,Object]),default:()=>In({})},lg:{type:Xe([Number,Object]),default:()=>In({})},xl:{type:Xe([Number,Object]),default:()=>In({})}});var JV=ve({name:"ElCol",props:QV,setup(e,{slots:t}){const{gutter:n}=et(qw,{gutter:$(()=>0)}),o=Be("col"),s=$(()=>n.value?{paddingLeft:`${n.value/2}px`,paddingRight:`${n.value/2}px`}:{}),i=$(()=>{const l=[];return["span","offset","pull","push"].forEach(p=>{const m=e[p];typeof m=="number"&&(p==="span"?l.push(o.b(`${e[p]}`)):m>0&&l.push(o.b(`${p}-${e[p]}`)))}),["xs","sm","md","lg","xl"].forEach(p=>{if(typeof e[p]=="number")l.push(o.b(`${p}-${e[p]}`));else if(typeof e[p]=="object"){const m=e[p];Object.keys(m).forEach(y=>{l.push(y!=="span"?o.b(`${p}-${y}-${m[y]}`):o.b(`${p}-${m[y]}`))})}}),n.value&&l.push(o.is("guttered")),l});return()=>le(e.tag,{class:[o.b(),i.value],style:s.value},t)}});const eH=$t(JV),Dv=e=>typeof Qt(e),tH=ct({accordion:Boolean,modelValue:{type:Xe([Array,String,Number]),default:()=>In([])}}),nH={[Ot]:Dv,[Gn]:Dv},oH={name:"ElCollapse"},rH=ve(Qe(be({},oH),{props:tH,emits:nH,setup(e,{expose:t,emit:n}){const o=e,s=Be("collapse"),i=F(iu(o.modelValue)),l=f=>{i.value=f;const p=o.accordion?i.value[0]:i.value;n(Ot,p),n(Gn,p)},c=f=>{if(o.accordion)l([(i.value[0]||i.value[0]===0)&&i.value[0]===f?"":f]);else{const p=[...i.value],m=p.indexOf(f);m>-1?p.splice(m,1):p.push(f),l(p)}};return Re(()=>o.modelValue,()=>i.value=iu(o.modelValue),{deep:!0}),Pt(jw,{activeNames:i,handleItemClick:c}),t({activeNames:i,setActiveNames:l}),(f,p)=>(M(),W("div",{class:P(k(s).b()),role:"tablist","aria-multiselectable":"true"},[Ie(f.$slots,"default")],2))}}));var sH=Ue(rH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const iH=ve({name:"ElCollapseTransition",setup(){return{ns:Be("collapse-transition"),on:{beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){t.dataset.oldOverflow=t.style.overflow,t.scrollHeight!==0?(t.style.maxHeight=`${t.scrollHeight}px`,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom}}}}});function aH(e,t,n,o,s,i){return M(),me($n,pn({name:e.ns.b()},P_(e.on)),{default:ae(()=>[Ie(e.$slots,"default")]),_:3},16,["name"])}var kc=Ue(iH,[["render",aH],["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);kc.install=e=>{e.component(kc.name,kc)};const of=kc,lH=of,uH=ct({title:{type:String,default:""},name:{type:Xe([String,Number]),default:()=>Mu()},disabled:Boolean}),cH=["aria-expanded","aria-controls","aria-describedby"],dH=["id","tabindex","onKeypress"],fH=["id","aria-hidden","aria-labelledby"],hH={name:"ElCollapseItem"},pH=ve(Qe(be({},hH),{props:uH,setup(e,{expose:t}){const n=e,o=et(jw),s=Be("collapse"),i=F(!1),l=F(!1),c=F(Mu()),f=$(()=>o==null?void 0:o.activeNames.value.includes(n.name)),p=()=>{setTimeout(()=>{l.value?l.value=!1:i.value=!0},50)},m=()=>{n.disabled||(o==null||o.handleItemClick(n.name),i.value=!1,l.value=!0)},y=()=>{o==null||o.handleItemClick(n.name)};return t({isActive:f}),(v,w)=>(M(),W("div",{class:P([k(s).b("item"),k(s).is("active",k(f)),k(s).is("disabled",v.disabled)])},[Q("div",{role:"tab","aria-expanded":k(f),"aria-controls":k(s).b(`content-${c.value}`),"aria-describedby":k(s).b(`content-${c.value}`)},[Q("div",{id:k(s).b(`head-${c.value}`),class:P([k(s).be("item","header"),k(s).is("active",k(f)),{focusing:i.value}]),role:"button",tabindex:v.disabled?-1:0,onClick:m,onKeypress:Ft(vt(y,["stop","prevent"]),["space","enter"]),onFocus:p,onBlur:w[0]||(w[0]=E=>i.value=!1)},[Ie(v.$slots,"title",{},()=>[Ht(Pe(v.title),1)]),le(k(yt),{class:P([k(s).be("item","arrow"),k(s).is("active",k(f))])},{default:ae(()=>[le(k(wr))]),_:1},8,["class"])],42,dH)],8,cH),le(k(of),null,{default:ae(()=>[bt(Q("div",{id:k(s).b(`content-${c.value}`),class:P(k(s).be("item","wrap")),role:"tabpanel","aria-hidden":!k(f),"aria-labelledby":k(s).b(`head-${c.value}`)},[Q("div",{class:P(k(s).be("item","content"))},[Ie(v.$slots,"default")],2)],10,fH),[[Zt,k(f)]])]),_:3})],2))}}));var dE=Ue(pH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const gH=$t(sH,{CollapseItem:dE}),mH=_n(dE);let qf=!1;function fu(e,t){if(!jt)return;const n=function(i){var l;(l=t.drag)==null||l.call(t,i)},o=function(i){var l;Kn(document,"mousemove",n),Kn(document,"mouseup",o),Kn(document,"touchmove",n),Kn(document,"touchend",o),document.onselectstart=null,document.ondragstart=null,qf=!1,(l=t.end)==null||l.call(t,i)},s=function(i){var l;qf||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,Bn(document,"mousemove",n),Bn(document,"mouseup",o),Bn(document,"touchmove",n),Bn(document,"touchend",o),qf=!0,(l=t.start)==null||l.call(t,i))};Bn(e,"mousedown",s),Bn(e,"touchstart",s)}const vH=ve({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=Dt(),n=Hn(null),o=Hn(null),s=F(0),i=F(0),l=F(null);Re(()=>e.color.get("alpha"),()=>{v()}),Re(()=>e.color.value,()=>{v()});function c(){if(e.vertical)return 0;const w=t.vnode.el,E=e.color.get("alpha");return w?Math.round(E*(w.offsetWidth-n.value.offsetWidth/2)/100):0}function f(){const w=t.vnode.el;if(!e.vertical)return 0;const E=e.color.get("alpha");return w?Math.round(E*(w.offsetHeight-n.value.offsetHeight/2)/100):0}function p(){if(e.color&&e.color.value){const{r:w,g:E,b:I}=e.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${E}, ${I}, 0) 0%, rgba(${w}, ${E}, ${I}, 1) 100%)`}return null}function m(w){w.target!==n.value&&y(w)}function y(w){const I=t.vnode.el.getBoundingClientRect(),{clientX:S,clientY:T}=I0(w);if(e.vertical){let _=T-I.top;_=Math.max(n.value.offsetHeight/2,_),_=Math.min(_,I.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((_-n.value.offsetHeight/2)/(I.height-n.value.offsetHeight)*100))}else{let _=S-I.left;_=Math.max(n.value.offsetWidth/2,_),_=Math.min(_,I.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((_-n.value.offsetWidth/2)/(I.width-n.value.offsetWidth)*100))}}function v(){s.value=c(),i.value=f(),l.value=p()}return kt(()=>{const w={drag:E=>{y(E)},end:E=>{y(E)}};fu(o.value,w),fu(n.value,w),v()}),{thumb:n,bar:o,thumbLeft:s,thumbTop:i,background:l,handleClick:m,update:v}}});function yH(e,t,n,o,s,i){return M(),W("div",{class:P(["el-color-alpha-slider",{"is-vertical":e.vertical}])},[Q("div",{ref:"bar",class:"el-color-alpha-slider__bar",style:st({background:e.background}),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},null,4),Q("div",{ref:"thumb",class:"el-color-alpha-slider__thumb",style:st({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var bH=Ue(vH,[["render",yH],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const wH=ve({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Dt(),n=F(null),o=F(null),s=F(0),i=F(0),l=$(()=>e.color.get("hue"));Re(()=>l.value,()=>{y()});function c(v){v.target!==n.value&&f(v)}function f(v){const E=t.vnode.el.getBoundingClientRect(),{clientX:I,clientY:S}=I0(v);let T;if(e.vertical){let _=S-E.top;_=Math.min(_,E.height-n.value.offsetHeight/2),_=Math.max(n.value.offsetHeight/2,_),T=Math.round((_-n.value.offsetHeight/2)/(E.height-n.value.offsetHeight)*360)}else{let _=I-E.left;_=Math.min(_,E.width-n.value.offsetWidth/2),_=Math.max(n.value.offsetWidth/2,_),T=Math.round((_-n.value.offsetWidth/2)/(E.width-n.value.offsetWidth)*360)}e.color.set("hue",T)}function p(){const v=t.vnode.el;if(e.vertical)return 0;const w=e.color.get("hue");return v?Math.round(w*(v.offsetWidth-n.value.offsetWidth/2)/360):0}function m(){const v=t.vnode.el;if(!e.vertical)return 0;const w=e.color.get("hue");return v?Math.round(w*(v.offsetHeight-n.value.offsetHeight/2)/360):0}function y(){s.value=p(),i.value=m()}return kt(()=>{const v={drag:w=>{f(w)},end:w=>{f(w)}};fu(o.value,v),fu(n.value,v),y()}),{bar:o,thumb:n,thumbLeft:s,thumbTop:i,hueValue:l,handleClick:c,update:y}}});function CH(e,t,n,o,s,i){return M(),W("div",{class:P(["el-color-hue-slider",{"is-vertical":e.vertical}])},[Q("div",{ref:"bar",class:"el-color-hue-slider__bar",onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},null,512),Q("div",{ref:"thumb",class:"el-color-hue-slider__thumb",style:st({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,4)],2)}var EH=Ue(wH,[["render",CH],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const fE=Symbol(),SH=()=>et(fE),$v=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},AH=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},TH=function(e){return typeof e=="string"&&e.includes("%")},Ma=function(e,t){AH(e)&&(e="100%");const n=TH(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Rv={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},xc=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${Rv[t]||t}${Rv[n]||n}`},Lv=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${xc(e)}${xc(t)}${xc(n)}`},Zf={A:10,B:11,C:12,D:13,E:14,F:15},pi=function(e){return e.length===2?(Zf[e[0].toUpperCase()]||+e[0])*16+(Zf[e[1].toUpperCase()]||+e[1]):Zf[e[1].toUpperCase()]||+e[1]},IH=function(e,t,n){t=t/100,n=n/100;let o=t;const s=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,o*=s<=1?s:2-s;const i=(n+t)/2,l=n===0?2*o/(s+o):2*t/(n+t);return{h:e,s:l*100,v:i*100}},Pv=function(e,t,n){e=Ma(e,255),t=Ma(t,255),n=Ma(n,255);const o=Math.max(e,t,n),s=Math.min(e,t,n);let i;const l=o,c=o-s,f=o===0?0:c/o;if(o===s)i=0;else{switch(o){case e:{i=(t-n)/c+(t<n?6:0);break}case t:{i=(n-e)/c+2;break}case n:{i=(e-t)/c+4;break}}i/=6}return{h:i*360,s:f*100,v:l*100}},_l=function(e,t,n){e=Ma(e,360)*6,t=Ma(t,100),n=Ma(n,100);const o=Math.floor(e),s=e-o,i=n*(1-t),l=n*(1-s*t),c=n*(1-(1-s)*t),f=o%6,p=[n,l,i,i,c,n][f],m=[c,n,n,l,i,i][f],y=[i,i,c,n,n,l][f];return{r:Math.round(p*255),g:Math.round(m*255),b:Math.round(y*255)}};class Kl{constructor(t){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{};for(const n in t)Bt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const o in t)Bt(t,o)&&this.set(o,t[o]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return _l(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(o,s,i)=>{this._hue=Math.max(0,Math.min(360,o)),this._saturation=Math.max(0,Math.min(100,s)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const o=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,i)=>i>2?Number.parseFloat(s):Number.parseInt(s,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:s,s:i,v:l}=IH(o[0],o[1],o[2]);n(s,i,l)}}else if(t.includes("hsv")){const o=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,i)=>i>2?Number.parseFloat(s):Number.parseInt(s,10));o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3&&n(o[0],o[1],o[2])}else if(t.includes("rgb")){const o=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(s=>s!=="").map((s,i)=>i>2?Number.parseFloat(s):Number.parseInt(s,10));if(o.length===4?this._alpha=Number.parseFloat(o[3])*100:o.length===3&&(this._alpha=100),o.length>=3){const{h:s,s:i,v:l}=Pv(o[0],o[1],o[2]);n(s,i,l)}}else if(t.includes("#")){const o=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(o))return;let s,i,l;o.length===3?(s=pi(o[0]+o[0]),i=pi(o[1]+o[1]),l=pi(o[2]+o[2])):(o.length===6||o.length===8)&&(s=pi(o.slice(0,2)),i=pi(o.slice(2,4)),l=pi(o.slice(4,6))),o.length===8?this._alpha=pi(o.slice(6))/255*100:(o.length===3||o.length===6)&&(this._alpha=100);const{h:c,s:f,v:p}=Pv(s,i,l);n(c,f,p)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:o,_alpha:s,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const l=$v(t,n/100,o/100);this.value=`hsla(${t}, ${Math.round(l[1]*100)}%, ${Math.round(l[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(o)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${Lv(_l(t,n,o))}${xc(s*255/100)}`;break}default:{const{r:l,g:c,b:f}=_l(t,n,o);this.value=`rgba(${l}, ${c}, ${f}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const l=$v(t,n/100,o/100);this.value=`hsl(${t}, ${Math.round(l[1]*100)}%, ${Math.round(l[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(o)}%)`;break}case"rgb":{const{r:l,g:c,b:f}=_l(t,n,o);this.value=`rgb(${l}, ${c}, ${f})`;break}default:this.value=Lv(_l(t,n,o))}}}const _H=ve({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const{currentColor:t}=SH(),n=F(s(e.colors,e.color));Re(()=>t.value,i=>{const l=new Kl;l.fromString(i),n.value.forEach(c=>{c.selected=l.compare(c)})}),dr(()=>{n.value=s(e.colors,e.color)});function o(i){e.color.fromString(e.colors[i])}function s(i,l){return i.map(c=>{const f=new Kl;return f.enableAlpha=!0,f.format="rgba",f.fromString(c),f.selected=f.value===l.value,f})}return{rgbaColors:n,handleSelect:o}}}),NH={class:"el-color-predefine"},kH={class:"el-color-predefine__colors"},xH=["onClick"];function MH(e,t,n,o,s,i){return M(),W("div",NH,[Q("div",kH,[(M(!0),W(at,null,zt(e.rgbaColors,(l,c)=>(M(),W("div",{key:e.colors[c],class:P(["el-color-predefine__color-selector",{selected:l.selected,"is-alpha":l._alpha<100}]),onClick:f=>e.handleSelect(c)},[Q("div",{style:st({backgroundColor:l.value})},null,4)],10,xH))),128))])])}var OH=Ue(_H,[["render",MH],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const DH=ve({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Dt(),n=F(0),o=F(0),s=F("hsl(0, 100%, 50%)"),i=$(()=>{const f=e.color.get("hue"),p=e.color.get("value");return{hue:f,value:p}});function l(){const f=e.color.get("saturation"),p=e.color.get("value"),m=t.vnode.el,{clientWidth:y,clientHeight:v}=m;o.value=f*y/100,n.value=(100-p)*v/100,s.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function c(f){const m=t.vnode.el.getBoundingClientRect(),{clientX:y,clientY:v}=I0(f);let w=y-m.left,E=v-m.top;w=Math.max(0,w),w=Math.min(w,m.width),E=Math.max(0,E),E=Math.min(E,m.height),o.value=w,n.value=E,e.color.set({saturation:w/m.width*100,value:100-E/m.height*100})}return Re(()=>i.value,()=>{l()}),kt(()=>{fu(t.vnode.el,{drag:f=>{c(f)},end:f=>{c(f)}}),l()}),{cursorTop:n,cursorLeft:o,background:s,colorValue:i,handleDrag:c,update:l}}}),$H=Q("div",{class:"el-color-svpanel__white"},null,-1),RH=Q("div",{class:"el-color-svpanel__black"},null,-1),LH=Q("div",null,null,-1),PH=[LH];function BH(e,t,n,o,s,i){return M(),W("div",{class:"el-color-svpanel",style:st({backgroundColor:e.background})},[$H,RH,Q("div",{class:"el-color-svpanel__cursor",style:st({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},PH,4)],4)}var FH=Ue(DH,[["render",BH],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const VH=ve({name:"ElColorPicker",components:{ElButton:fr,ElTooltip:Ro,ElInput:Cr,ElIcon:yt,Close:gr,ArrowDown:Qi,SvPanel:FH,HueSlider:EH,AlphaSlider:bH,Predefine:OH},directives:{ClickOutside:ta},props:{modelValue:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:Zo},popperClass:String,predefine:Array},emits:["change","active-change",Ot],setup(e,{emit:t}){const{t:n}=un(),o=Be("color"),s=et(Jo,{}),i=et(mr,{}),l=F(null),c=F(null),f=F(null),p=F(null),m=nn(new Kl({enableAlpha:e.showAlpha,format:e.colorFormat,value:e.modelValue})),y=F(!1),v=F(!1),w=F(""),E=$(()=>!e.modelValue&&!v.value?"transparent":_(m,e.showAlpha)),I=Fn(),S=$(()=>!!(e.disabled||s.disabled)),T=$(()=>!e.modelValue&&!v.value?"":m.value);Re(()=>e.modelValue,K=>{K?K&&K!==m.value&&m.fromString(K):v.value=!1}),Re(()=>T.value,K=>{w.value=K,t("active-change",K)}),Re(()=>m.value,()=>{!e.modelValue&&!v.value&&(v.value=!0)});function _(K,J){if(!(K instanceof Kl))throw new TypeError("color should be instance of _color Class");const{r:G,g:z,b:ee}=K.toRgb();return J?`rgba(${G}, ${z}, ${ee}, ${K.get("alpha")/100})`:`rgb(${G}, ${z}, ${ee})`}function N(K){y.value=K}const O=$o(N,100);function D(){O(!1),x()}function x(){dt(()=>{e.modelValue?m.fromString(e.modelValue):v.value=!1})}function R(){S.value||O(!y.value)}function B(){m.fromString(w.value)}function Y(){var K;const J=m.value;t(Ot,J),t("change",J),(K=i.validate)==null||K.call(i,"change").catch(G=>void 0),O(!1),dt(()=>{const G=new Kl({enableAlpha:e.showAlpha,format:e.colorFormat,value:e.modelValue});m.compare(G)||x()})}function X(){var K;O(!1),t(Ot,null),t("change",null),e.modelValue!==null&&((K=i.validate)==null||K.call(i,"change").catch(J=>void 0)),x()}return kt(()=>{e.modelValue&&(w.value=T.value)}),Re(()=>y.value,()=>{dt(()=>{var K,J,G;(K=l.value)==null||K.update(),(J=c.value)==null||J.update(),(G=f.value)==null||G.update()})}),Pt(fE,{currentColor:T}),{color:m,colorDisabled:S,colorSize:I,displayedColor:E,showPanelColor:v,showPicker:y,customInput:w,handleConfirm:B,hide:D,handleTrigger:R,clear:X,confirmValue:Y,t:n,ns:o,hue:l,svPanel:c,alpha:f,popper:p}}});function HH(e,t,n,o,s,i){const l=Ae("hue-slider"),c=Ae("sv-panel"),f=Ae("alpha-slider"),p=Ae("predefine"),m=Ae("el-input"),y=Ae("el-button"),v=Ae("arrow-down"),w=Ae("el-icon"),E=Ae("close"),I=Ae("el-tooltip"),S=qo("click-outside");return M(),me(I,{ref:"popper",visible:e.showPicker,"onUpdate:visible":t[2]||(t[2]=T=>e.showPicker=T),"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:"el-zoom-in-top",persistent:""},{content:ae(()=>[bt((M(),W("div",null,[Q("div",{class:P(e.ns.be("dropdown","main-wrapper"))},[le(l,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),le(c,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(M(),me(f,{key:0,ref:"alpha",color:e.color},null,8,["color"])):fe("v-if",!0),e.predefine?(M(),me(p,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):fe("v-if",!0),Q("div",{class:P(e.ns.be("dropdown","btns"))},[Q("span",{class:P(e.ns.be("dropdown","value"))},[le(m,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=T=>e.customInput=T),"validate-event":!1,size:"small",onKeyup:Ft(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),le(y,{size:"small",type:"text",class:P(e.ns.be("dropdown","link-btn")),onClick:e.clear},{default:ae(()=>[Ht(Pe(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),le(y,{plain:"",size:"small",class:P(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:ae(()=>[Ht(Pe(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[S,e.hide]])]),default:ae(()=>[Q("div",{class:P([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)])},[e.colorDisabled?(M(),W("div",{key:0,class:P(e.ns.be("picker","mask"))},null,2)):fe("v-if",!0),Q("div",{class:P(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...T)=>e.handleTrigger&&e.handleTrigger(...T))},[Q("span",{class:P([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[Q("span",{class:P(e.ns.be("picker","color-inner")),style:st({backgroundColor:e.displayedColor})},[bt(le(w,{class:P([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:ae(()=>[le(v)]),_:1},8,["class"]),[[Zt,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(M(),me(w,{key:0,class:P([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:ae(()=>[le(E)]),_:1},8,["class"])):fe("v-if",!0)],6)],2)],2)],2)]),_:1},8,["visible","popper-class"])}var Mc=Ue(VH,[["render",HH],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);Mc.install=e=>{e.component(Mc.name,Mc)};const zH=Mc,UH=zH,sp={},WH=ct({a11y:{type:Boolean,default:!0},locale:{type:Xe(Object)},size:{type:String,values:ts,default:""},button:{type:Xe(Object)},experimentalFeatures:{type:Xe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Xe(Object)},zIndex:{type:Number},namespace:{type:String,default:"el"}});var jH=ve({name:"ElConfigProvider",props:WH,setup(e,{slots:t}){Re(()=>e.message,o=>{Object.assign(sp,o!=null?o:{})},{immediate:!0,deep:!0});const n=nC(e);return()=>Ie(t,"default",{config:n==null?void 0:n.value})}});const KH=$t(jH),YH=ve({name:"ElContainer",props:{direction:{type:String,default:""}},setup(e,{slots:t}){const n=Be("container");return{isVertical:$(()=>e.direction==="vertical"?!0:e.direction==="horizontal"?!1:t&&t.default?t.default().some(i=>{const l=i.type.name;return l==="ElHeader"||l==="ElFooter"}):!1),ns:n}}});function GH(e,t,n,o,s,i){return M(),W("section",{class:P([e.ns.b(),e.ns.is("vertical",e.isVertical)])},[Ie(e.$slots,"default")],2)}var XH=Ue(YH,[["render",GH],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const qH=ve({name:"ElAside",props:{width:{type:String,default:null}},setup(e){const t=Be("aside");return{style:$(()=>e.width?{"--el-aside-width":e.width}:{}),ns:t}}});function ZH(e,t,n,o,s,i){return M(),W("aside",{class:P(e.ns.b()),style:st(e.style)},[Ie(e.$slots,"default")],6)}var hE=Ue(qH,[["render",ZH],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const QH=ve({name:"ElFooter",props:{height:{type:String,default:null}},setup(e){const t=Be("footer");return{style:$(()=>e.height?{"--el-footer-height":e.height}:{}),ns:t}}});function JH(e,t,n,o,s,i){return M(),W("footer",{class:P(e.ns.b()),style:st(e.style)},[Ie(e.$slots,"default")],6)}var pE=Ue(QH,[["render",JH],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const ez=ve({name:"ElHeader",props:{height:{type:String,default:null}},setup(e){const t=Be("header");return{style:$(()=>e.height?{"--el-header-height":e.height}:{}),ns:t}}});function tz(e,t,n,o,s,i){return M(),W("header",{class:P(e.ns.b()),style:st(e.style)},[Ie(e.$slots,"default")],6)}var gE=Ue(ez,[["render",tz],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const nz=ve({name:"ElMain",setup(){return{ns:Be("main")}}});function oz(e,t,n,o,s,i){return M(),W("main",{class:P(e.ns.b())},[Ie(e.$slots,"default")],2)}var mE=Ue(nz,[["render",oz],["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const rz=$t(XH,{Aside:hE,Footer:pE,Header:gE,Main:mE}),sz=_n(hE),iz=_n(pE),az=_n(gE),lz=_n(mE);var vE={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Mo,function(){return function(n,o,s){var i=o.prototype,l=i.format;s.en.ordinal=function(c){var f=["th","st","nd","rd"],p=c%100;return"["+c+(f[(p-20)%10]||f[p]||f[0])+"]"},i.format=function(c){var f=this,p=this.$locale();if(!this.isValid())return l.bind(this)(c);var m=this.$utils(),y=(c||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(v){switch(v){case"Q":return Math.ceil((f.$M+1)/3);case"Do":return p.ordinal(f.$D);case"gggg":return f.weekYear();case"GGGG":return f.isoWeekYear();case"wo":return p.ordinal(f.week(),"W");case"w":case"ww":return m.s(f.week(),v==="w"?1:2,"0");case"W":case"WW":return m.s(f.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return m.s(String(f.$H===0?24:f.$H),v==="k"?1:2,"0");case"X":return Math.floor(f.$d.getTime()/1e3);case"x":return f.$d.getTime();case"z":return"["+f.offsetName()+"]";case"zzz":return"["+f.offsetName("long")+"]";default:return v}});return l.bind(this)(y)}}})})(vE);var uz=vE.exports,yE={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Mo,function(){var n="week",o="year";return function(s,i,l){var c=i.prototype;c.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=l(this).startOf(o).add(1,o).date(p),y=l(this).endOf(n);if(m.isBefore(y))return 1}var v=l(this).startOf(o).date(p).startOf(n).subtract(1,"millisecond"),w=this.diff(v,n,!0);return w<0?l(this).startOf("week").week():Math.ceil(w)},c.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}})})(yE);var cz=yE.exports,bE={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Mo,function(){return function(n,o){o.prototype.weekYear=function(){var s=this.month(),i=this.week(),l=this.year();return i===1&&s===11?l+1:s===0&&i>=52?l-1:l}}})})(bE);var dz=bE.exports,wE={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Mo,function(){return function(n,o,s){o.prototype.dayOfYear=function(i){var l=Math.round((s(this).startOf("day")-s(this).startOf("year"))/864e5)+1;return i==null?l:this.add(i-l,"day")}}})})(wE);var fz=wE.exports,CE={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Mo,function(){return function(n,o){o.prototype.isSameOrAfter=function(s,i){return this.isSame(s,i)||this.isAfter(s,i)}}})})(CE);var hz=CE.exports,EE={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Mo,function(){return function(n,o){o.prototype.isSameOrBefore=function(s,i){return this.isSame(s,i)||this.isBefore(s,i)}}})})(EE);var pz=EE.exports;const SE=Symbol();var gz=ve({name:"ElDatePickerCell",props:ct({cell:{type:Xe(Object)}}),setup(e){const t=et(SE);return()=>{const n=e.cell;if(t!=null&&t.ctx.slots.default){const o=t.ctx.slots.default(n).filter(s=>s.patchFlag!==-2&&s.type.toString()!=="Symbol(Comment)");if(o.length)return o}return it("div",{class:"el-date-table-cell"},[it("span",{class:"el-date-table-cell__text"},[n==null?void 0:n.text])])}}});const mz=ve({components:{ElDatePickerCell:gz},props:{date:{type:Object},minDate:{type:Object},maxDate:{type:Object},parsedValue:{type:[Object,Array]},selectionMode:{type:String,default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{type:Function},cellClassName:{type:Function},rangeState:{type:Object,default:()=>({endDate:null,selecting:!1})}},emits:["changerange","pick","select"],setup(e,t){const{t:n,lang:o}=un(),s=F(null),i=F(null),l=F([[],[],[],[],[],[]]),c=e.date.$locale().weekStart||7,f=e.date.locale("en").localeData().weekdaysShort().map(O=>O.toLowerCase()),p=$(()=>c>3?7-c:-c),m=$(()=>{const O=e.date.startOf("month");return O.subtract(O.day()||7,"day")}),y=$(()=>f.concat(f).slice(c,c+7)),v=$(()=>{var O;const D=e.date.startOf("month"),x=D.day()||7,R=D.daysInMonth(),B=D.subtract(1,"month").daysInMonth(),Y=p.value,X=l.value;let K=1;const J=e.selectionMode==="dates"?Ri(e.parsedValue):[],G=St().locale(o.value).startOf("day");for(let z=0;z<6;z++){const ee=X[z];e.showWeekNumber&&(ee[0]||(ee[0]={type:"week",text:m.value.add(z*7+1,"day").week()}));for(let j=0;j<7;j++){let V=ee[e.showWeekNumber?j+1:j];V||(V={row:z,column:j,type:"normal",inRange:!1,start:!1,end:!1});const q=z*7+j,ce=m.value.add(q-Y,"day");V.dayjs=ce,V.date=ce.toDate(),V.timestamp=ce.valueOf(),V.type="normal";const ue=e.rangeState.endDate||e.maxDate||e.rangeState.selecting&&e.minDate;if(V.inRange=e.minDate&&ce.isSameOrAfter(e.minDate,"day")&&ue&&ce.isSameOrBefore(ue,"day")||e.minDate&&ce.isSameOrBefore(e.minDate,"day")&&ue&&ce.isSameOrAfter(ue,"day"),(O=e.minDate)!=null&&O.isSameOrAfter(ue)?(V.start=ue&&ce.isSame(ue,"day"),V.end=e.minDate&&ce.isSame(e.minDate,"day")):(V.start=e.minDate&&ce.isSame(e.minDate,"day"),V.end=ue&&ce.isSame(ue,"day")),ce.isSame(G,"day")&&(V.type="today"),z>=0&&z<=1){const Ee=x+Y<0?7+x+Y:x+Y;j+z*7>=Ee?V.text=K++:(V.text=B-(Ee-j%7)+1+z*7,V.type="prev-month")}else K<=R?V.text=K++:(V.text=K++-R,V.type="next-month");const Se=ce.toDate();V.selected=J.find(Ee=>Ee.valueOf()===ce.valueOf()),V.isSelected=!!V.selected,V.isCurrent=w(V),V.disabled=e.disabledDate&&e.disabledDate(Se),V.customClass=e.cellClassName&&e.cellClassName(Se),ee[e.showWeekNumber?j+1:j]=V}if(e.selectionMode==="week"){const j=e.showWeekNumber?1:0,V=e.showWeekNumber?7:6,q=N(ee[j+1]);ee[j].inRange=q,ee[j].start=q,ee[V].inRange=q,ee[V].end=q}}return X}),w=O=>e.selectionMode==="day"&&(O.type==="normal"||O.type==="today")&&E(O,e.parsedValue),E=(O,D)=>D?St(D).locale(o.value).isSame(e.date.date(Number(O.text)),"day"):!1,I=O=>{const D=[];return(O.type==="normal"||O.type==="today")&&!O.disabled?(D.push("available"),O.type==="today"&&D.push("today")):D.push(O.type),w(O)&&D.push("current"),O.inRange&&(O.type==="normal"||O.type==="today"||e.selectionMode==="week")&&(D.push("in-range"),O.start&&D.push("start-date"),O.end&&D.push("end-date")),O.disabled&&D.push("disabled"),O.selected&&D.push("selected"),O.customClass&&D.push(O.customClass),D.join(" ")},S=(O,D)=>{const x=O*7+(D-(e.showWeekNumber?1:0))-p.value;return m.value.add(x,"day")},T=O=>{if(!e.rangeState.selecting)return;let D=O.target;if(D.tagName==="SPAN"&&(D=D.parentNode.parentNode),D.tagName==="DIV"&&(D=D.parentNode),D.tagName!=="TD")return;const x=D.parentNode.rowIndex-1,R=D.cellIndex;v.value[x][R].disabled||(x!==s.value||R!==i.value)&&(s.value=x,i.value=R,t.emit("changerange",{selecting:!0,endDate:S(x,R)}))},_=O=>{let D=O.target;for(;D&&D.tagName!=="TD";)D=D.parentNode;if(!D||D.tagName!=="TD")return;const x=D.parentNode.rowIndex-1,R=D.cellIndex,B=v.value[x][R];if(B.disabled||B.type==="week")return;const Y=S(x,R);if(e.selectionMode==="range")e.rangeState.selecting?(Y>=e.minDate?t.emit("pick",{minDate:e.minDate,maxDate:Y}):t.emit("pick",{minDate:Y,maxDate:e.minDate}),t.emit("select",!1)):(t.emit("pick",{minDate:Y,maxDate:null}),t.emit("select",!0));else if(e.selectionMode==="day")t.emit("pick",Y);else if(e.selectionMode==="week"){const X=Y.week(),K=`${Y.year()}w${X}`;t.emit("pick",{year:Y.year(),week:X,value:K,date:Y.startOf("week")})}else if(e.selectionMode==="dates"){const X=B.selected?Ri(e.parsedValue).filter(K=>K.valueOf()!==Y.valueOf()):Ri(e.parsedValue).concat([Y]);t.emit("pick",X)}},N=O=>{if(e.selectionMode!=="week")return!1;let D=e.date.startOf("day");if(O.type==="prev-month"&&(D=D.subtract(1,"month")),O.type==="next-month"&&(D=D.add(1,"month")),D=D.date(Number.parseInt(O.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const x=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(x,"day").isSame(D,"day")}return!1};return{handleMouseMove:T,t:n,rows:v,isWeekActive:N,getCellClasses:I,WEEKS:y,handleClick:_}}}),vz={key:0};function yz(e,t,n,o,s,i){const l=Ae("el-date-picker-cell");return M(),W("table",{cellspacing:"0",cellpadding:"0",class:P(["el-date-table",{"is-week-mode":e.selectionMode==="week"}]),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c)),onMousemove:t[1]||(t[1]=(...c)=>e.handleMouseMove&&e.handleMouseMove(...c))},[Q("tbody",null,[Q("tr",null,[e.showWeekNumber?(M(),W("th",vz,Pe(e.t("el.datepicker.week")),1)):fe("v-if",!0),(M(!0),W(at,null,zt(e.WEEKS,(c,f)=>(M(),W("th",{key:f},Pe(e.t("el.datepicker.weeks."+c)),1))),128))]),(M(!0),W(at,null,zt(e.rows,(c,f)=>(M(),W("tr",{key:f,class:P(["el-date-table__row",{current:e.isWeekActive(c[1])}])},[(M(!0),W(at,null,zt(c,(p,m)=>(M(),W("td",{key:m,class:P(e.getCellClasses(p))},[le(l,{cell:p},null,8,["cell"])],2))),128))],2))),128))])],34)}var AE=Ue(mz,[["render",yz],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const bz=(e,t,n)=>{const o=St().locale(n).startOf("month").month(t).year(e),s=o.daysInMonth();return Us(s).map(i=>o.add(i,"day").toDate())},wz=ve({props:{disabledDate:{type:Function},selectionMode:{type:String,default:"month"},minDate:{type:Object},maxDate:{type:Object},date:{type:Object},parsedValue:{type:Object},rangeState:{type:Object,default:()=>({endDate:null,selecting:!1})}},emits:["changerange","pick","select"],setup(e,t){const{t:n,lang:o}=un(),s=F(e.date.locale("en").localeData().monthsShort().map(v=>v.toLowerCase())),i=F([[],[],[]]),l=F(null),c=F(null),f=$(()=>{var v;const w=i.value,E=St().locale(o.value).startOf("month");for(let I=0;I<3;I++){const S=w[I];for(let T=0;T<4;T++){let _=S[T];_||(_={row:I,column:T,type:"normal",inRange:!1,start:!1,end:!1}),_.type="normal";const N=I*4+T,O=e.date.startOf("year").month(N),D=e.rangeState.endDate||e.maxDate||e.rangeState.selecting&&e.minDate;_.inRange=e.minDate&&O.isSameOrAfter(e.minDate,"month")&&D&&O.isSameOrBefore(D,"month")||e.minDate&&O.isSameOrBefore(e.minDate,"month")&&D&&O.isSameOrAfter(D,"month"),(v=e.minDate)!=null&&v.isSameOrAfter(D)?(_.start=D&&O.isSame(D,"month"),_.end=e.minDate&&O.isSame(e.minDate,"month")):(_.start=e.minDate&&O.isSame(e.minDate,"month"),_.end=D&&O.isSame(D,"month")),E.isSame(O)&&(_.type="today"),_.text=N;const R=O.toDate();_.disabled=e.disabledDate&&e.disabledDate(R),S[T]=_}}return w});return{handleMouseMove:v=>{if(!e.rangeState.selecting)return;let w=v.target;if(w.tagName==="A"&&(w=w.parentNode.parentNode),w.tagName==="DIV"&&(w=w.parentNode),w.tagName!=="TD")return;const E=w.parentNode.rowIndex,I=w.cellIndex;f.value[E][I].disabled||(E!==l.value||I!==c.value)&&(l.value=E,c.value=I,t.emit("changerange",{selecting:!0,endDate:e.date.startOf("year").month(E*4+I)}))},handleMonthTableClick:v=>{let w=v.target;if(w.tagName==="A"&&(w=w.parentNode.parentNode),w.tagName==="DIV"&&(w=w.parentNode),w.tagName!=="TD"||xr(w,"disabled"))return;const E=w.cellIndex,S=w.parentNode.rowIndex*4+E,T=e.date.startOf("year").month(S);e.selectionMode==="range"?e.rangeState.selecting?(T>=e.minDate?t.emit("pick",{minDate:e.minDate,maxDate:T}):t.emit("pick",{minDate:T,maxDate:e.minDate}),t.emit("select",!1)):(t.emit("pick",{minDate:T,maxDate:null}),t.emit("select",!0)):t.emit("pick",S)},rows:f,getCellStyle:v=>{const w={},E=e.date.year(),I=new Date,S=v.text;return w.disabled=e.disabledDate?bz(E,S,o.value).every(e.disabledDate):!1,w.current=Ri(e.parsedValue).findIndex(T=>T.year()===E&&T.month()===S)>=0,w.today=I.getFullYear()===E&&I.getMonth()===S,v.inRange&&(w["in-range"]=!0,v.start&&(w["start-date"]=!0),v.end&&(w["end-date"]=!0)),w},t:n,months:s}}}),Cz={class:"cell"};function Ez(e,t,n,o,s,i){return M(),W("table",{class:"el-month-table",onClick:t[0]||(t[0]=(...l)=>e.handleMonthTableClick&&e.handleMonthTableClick(...l)),onMousemove:t[1]||(t[1]=(...l)=>e.handleMouseMove&&e.handleMouseMove(...l))},[Q("tbody",null,[(M(!0),W(at,null,zt(e.rows,(l,c)=>(M(),W("tr",{key:c},[(M(!0),W(at,null,zt(l,(f,p)=>(M(),W("td",{key:p,class:P(e.getCellStyle(f))},[Q("div",null,[Q("a",Cz,Pe(e.t("el.datepicker.months."+e.months[f.text])),1)])],2))),128))]))),128))])],32)}var TE=Ue(wz,[["render",Ez],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const Sz=(e,t)=>{const n=St(String(e)).locale(t).startOf("year"),s=n.endOf("year").dayOfYear();return Us(s).map(i=>n.add(i,"day").toDate())},Az=ve({props:{disabledDate:{type:Function},parsedValue:{type:Object},date:{type:Object}},emits:["pick"],setup(e,t){const{lang:n}=un();return{startYear:$(()=>Math.floor(e.date.year()/10)*10),getCellStyle:l=>{const c={},f=St().locale(n.value);return c.disabled=e.disabledDate?Sz(l,n.value).every(e.disabledDate):!1,c.current=Ri(e.parsedValue).findIndex(p=>p.year()===l)>=0,c.today=f.year()===l,c},handleYearTableClick:l=>{const c=l.target;if(c.tagName==="A"){if(xr(c.parentNode,"disabled"))return;const f=c.textContent||c.innerText;t.emit("pick",Number(f))}}}}}),Tz={class:"cell"},Iz={class:"cell"},_z={class:"cell"},Nz={class:"cell"},kz={class:"cell"},xz={class:"cell"},Mz={class:"cell"},Oz={class:"cell"},Dz={class:"cell"},$z={class:"cell"},Rz=Q("td",null,null,-1),Lz=Q("td",null,null,-1);function Pz(e,t,n,o,s,i){return M(),W("table",{class:"el-year-table",onClick:t[0]||(t[0]=(...l)=>e.handleYearTableClick&&e.handleYearTableClick(...l))},[Q("tbody",null,[Q("tr",null,[Q("td",{class:P(["available",e.getCellStyle(e.startYear+0)])},[Q("a",Tz,Pe(e.startYear),1)],2),Q("td",{class:P(["available",e.getCellStyle(e.startYear+1)])},[Q("a",Iz,Pe(e.startYear+1),1)],2),Q("td",{class:P(["available",e.getCellStyle(e.startYear+2)])},[Q("a",_z,Pe(e.startYear+2),1)],2),Q("td",{class:P(["available",e.getCellStyle(e.startYear+3)])},[Q("a",Nz,Pe(e.startYear+3),1)],2)]),Q("tr",null,[Q("td",{class:P(["available",e.getCellStyle(e.startYear+4)])},[Q("a",kz,Pe(e.startYear+4),1)],2),Q("td",{class:P(["available",e.getCellStyle(e.startYear+5)])},[Q("a",xz,Pe(e.startYear+5),1)],2),Q("td",{class:P(["available",e.getCellStyle(e.startYear+6)])},[Q("a",Mz,Pe(e.startYear+6),1)],2),Q("td",{class:P(["available",e.getCellStyle(e.startYear+7)])},[Q("a",Oz,Pe(e.startYear+7),1)],2)]),Q("tr",null,[Q("td",{class:P(["available",e.getCellStyle(e.startYear+8)])},[Q("a",Dz,Pe(e.startYear+8),1)],2),Q("td",{class:P(["available",e.getCellStyle(e.startYear+9)])},[Q("a",$z,Pe(e.startYear+9),1)],2),Rz,Lz])])])}var Bz=Ue(Az,[["render",Pz],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const Fz=(e,t,n)=>!0,Vz=ve({components:{DateTable:AE,ElInput:Cr,ElButton:fr,ElIcon:yt,TimePickPanel:H0,MonthTable:TE,YearTable:Bz,DArrowLeft:Kd,ArrowLeft:Ji,DArrowRight:Yd,ArrowRight:wr},directives:{clickoutside:ta},props:{visible:{type:Boolean,default:!1},parsedValue:{type:[Object,Array]},format:{type:String,default:""},type:{type:String,required:!0,validator:Bw}},emits:["pick","set-picker-option","panel-change"],setup(e,t){const{t:n,lang:o}=un(),s=et("EP_PICKER_BASE"),i=et(tf),{shortcuts:l,disabledDate:c,cellClassName:f,defaultTime:p,arrowControl:m}=s.props,y=Un(s.props,"defaultValue"),v=F(St().locale(o.value)),w=$(()=>St(p).locale(o.value)),E=$(()=>v.value.month()),I=$(()=>v.value.year()),S=F([]),T=F(null),_=F(null),N=ge=>S.value.length>0?Fz(ge,S.value,e.format||"HH:mm:ss"):!0,O=ge=>p&&!pe.value?w.value.year(ge.year()).month(ge.month()).date(ge.date()):ue.value?ge.millisecond(0):ge.startOf("day"),D=(ge,...Te)=>{if(!ge)t.emit("pick",ge,...Te);else if(Array.isArray(ge)){const Je=ge.map(O);t.emit("pick",Je,...Te)}else t.emit("pick",O(ge),...Te);T.value=null,_.value=null},x=ge=>{if(z.value==="day"){let Te=e.parsedValue?e.parsedValue.year(ge.year()).month(ge.month()).date(ge.date()):ge;N(Te)||(Te=S.value[0][0].year(ge.year()).month(ge.month()).date(ge.date())),v.value=Te,D(Te,ue.value)}else z.value==="week"?D(ge.date):z.value==="dates"&&D(ge,!0)},R=()=>{v.value=v.value.subtract(1,"month"),re("month")},B=()=>{v.value=v.value.add(1,"month"),re("month")},Y=()=>{K.value==="year"?v.value=v.value.subtract(10,"year"):v.value=v.value.subtract(1,"year"),re("year")},X=()=>{K.value==="year"?v.value=v.value.add(10,"year"):v.value=v.value.add(1,"year"),re("year")},K=F("date"),J=$(()=>{const ge=n("el.datepicker.year");if(K.value==="year"){const Te=Math.floor(I.value/10)*10;return ge?`${Te} ${ge} - ${Te+9} ${ge}`:`${Te} - ${Te+9}`}return`${I.value} ${ge}`}),G=ge=>{const Te=typeof ge.value=="function"?ge.value():ge.value;if(Te){D(St(Te).locale(o.value));return}ge.onClick&&ge.onClick(t)},z=$(()=>["week","month","year","dates"].includes(e.type)?e.type:"day");Re(()=>z.value,ge=>{if(["month","year"].includes(ge)){K.value=ge;return}K.value="date"},{immediate:!0}),Re(()=>K.value,()=>{i==null||i.updatePopper()});const ee=$(()=>!!l.length),j=ge=>{v.value=v.value.startOf("month").month(ge),z.value==="month"?D(v.value):K.value="date",re("month")},V=ge=>{z.value==="year"?(v.value=v.value.startOf("year").year(ge),D(v.value)):(v.value=v.value.year(ge),K.value="month"),re("year")},q=()=>{K.value="month"},ce=()=>{K.value="year"},ue=$(()=>e.type==="datetime"||e.type==="datetimerange"),ne=$(()=>ue.value||z.value==="dates"),Se=()=>{if(z.value==="dates")D(e.parsedValue);else{let ge=e.parsedValue;if(!ge){const Te=St(p).locale(o.value),Je=ke();ge=Te.year(Je.year()).month(Je.month()).date(Je.date())}v.value=ge,D(ge)}},Ee=()=>{const Te=St().locale(o.value).toDate();(!c||!c(Te))&&N(Te)&&(v.value=St().locale(o.value),D(v.value))},qe=$(()=>ZC(e.format)),xe=$(()=>qC(e.format)),pe=$(()=>{if(_.value)return _.value;if(!(!e.parsedValue&&!y.value))return(e.parsedValue||v.value).format(qe.value)}),Me=$(()=>{if(T.value)return T.value;if(!(!e.parsedValue&&!y.value))return(e.parsedValue||v.value).format(xe.value)}),We=F(!1),ze=()=>{We.value=!0},Ze=()=>{We.value=!1},mt=(ge,Te,Je)=>{const he=e.parsedValue?e.parsedValue.hour(ge.hour()).minute(ge.minute()).second(ge.second()):ge;v.value=he,D(v.value,!0),Je||(We.value=Te)},ot=ge=>{const Te=St(ge,qe.value).locale(o.value);Te.isValid()&&N(Te)&&(v.value=Te.year(v.value.year()).month(v.value.month()).date(v.value.date()),_.value=null,We.value=!1,D(v.value,!0))},te=ge=>{const Te=St(ge,xe.value).locale(o.value);if(Te.isValid()){if(c&&c(Te.toDate()))return;v.value=Te.hour(v.value.hour()).minute(v.value.minute()).second(v.value.second()),T.value=null,D(v.value,!0)}},de=ge=>St.isDayjs(ge)&&ge.isValid()&&(c?!c(ge.toDate()):!0),Ne=ge=>z.value==="dates"?ge.map(Te=>Te.format(e.format)):ge.format(e.format),De=ge=>St(ge,e.format).locale(o.value),ke=()=>{const ge=St(y.value).locale(o.value);if(!y.value){const Te=w.value;return St().hour(Te.hour()).minute(Te.minute()).second(Te.second()).locale(o.value)}return ge},Ve=ge=>{const{code:Te,keyCode:Je}=ge,he=[rt.up,rt.down,rt.left,rt.right];e.visible&&!We.value&&(he.includes(Te)&&(ie(Je),ge.stopPropagation(),ge.preventDefault()),Te===rt.enter&&T.value===null&&_.value===null&&D(v,!1))},ie=ge=>{const Te={year:{38:-4,40:4,37:-1,39:1,offset:(he,He)=>he.setFullYear(he.getFullYear()+He)},month:{38:-4,40:4,37:-1,39:1,offset:(he,He)=>he.setMonth(he.getMonth()+He)},week:{38:-1,40:1,37:-1,39:1,offset:(he,He)=>he.setDate(he.getDate()+He*7)},day:{38:-7,40:7,37:-1,39:1,offset:(he,He)=>he.setDate(he.getDate()+He)}},Je=v.value.toDate();for(;Math.abs(v.value.diff(Je,"year",!0))<1;){const he=Te[z.value];if(he.offset(Je,he[ge]),c&&c(Je))continue;const He=St(Je).locale(o.value);v.value=He,t.emit("pick",He,!0);break}},re=ge=>{t.emit("panel-change",v.value.toDate(),ge,K.value)};return t.emit("set-picker-option",["isValidValue",de]),t.emit("set-picker-option",["formatToString",Ne]),t.emit("set-picker-option",["parseUserInput",De]),t.emit("set-picker-option",["handleKeydown",Ve]),Re(()=>y.value,ge=>{ge&&(v.value=ke())},{immediate:!0}),Re(()=>e.parsedValue,ge=>{if(ge){if(z.value==="dates"||Array.isArray(ge))return;v.value=ge}else v.value=ke()},{immediate:!0}),{handleTimePick:mt,handleTimePickClose:Ze,onTimePickerInputFocus:ze,timePickerVisible:We,visibleTime:pe,visibleDate:Me,showTime:ue,changeToNow:Ee,onConfirm:Se,footerVisible:ne,handleYearPick:V,showMonthPicker:q,showYearPicker:ce,handleMonthPick:j,hasShortcuts:ee,shortcuts:l,arrowControl:m,disabledDate:c,cellClassName:f,selectionMode:z,handleShortcutClick:G,prevYear_:Y,nextYear_:X,prevMonth_:R,nextMonth_:B,innerDate:v,t:n,yearLabel:J,currentView:K,month:E,handleDatePick:x,handleVisibleTimeChange:ot,handleVisibleDateChange:te,timeFormat:qe,userInputTime:_,userInputDate:T}}}),Hz={class:"el-picker-panel__body-wrapper"},zz={key:0,class:"el-picker-panel__sidebar"},Uz=["onClick"],Wz={class:"el-picker-panel__body"},jz={key:0,class:"el-date-picker__time-header"},Kz={class:"el-date-picker__editor-wrap"},Yz={class:"el-date-picker__editor-wrap"},Gz=["aria-label"],Xz=["aria-label"],qz=["aria-label"],Zz=["aria-label"],Qz={class:"el-picker-panel__content"},Jz={class:"el-picker-panel__footer"};function eU(e,t,n,o,s,i){const l=Ae("el-input"),c=Ae("time-pick-panel"),f=Ae("d-arrow-left"),p=Ae("el-icon"),m=Ae("arrow-left"),y=Ae("d-arrow-right"),v=Ae("arrow-right"),w=Ae("date-table"),E=Ae("year-table"),I=Ae("month-table"),S=Ae("el-button"),T=qo("clickoutside");return M(),W("div",{class:P(["el-picker-panel el-date-picker",[{"has-sidebar":e.$slots.sidebar||e.hasShortcuts,"has-time":e.showTime}]])},[Q("div",Hz,[Ie(e.$slots,"sidebar",{class:"el-picker-panel__sidebar"}),e.hasShortcuts?(M(),W("div",zz,[(M(!0),W(at,null,zt(e.shortcuts,(_,N)=>(M(),W("button",{key:N,type:"button",class:"el-picker-panel__shortcut",onClick:O=>e.handleShortcutClick(_)},Pe(_.text),9,Uz))),128))])):fe("v-if",!0),Q("div",Wz,[e.showTime?(M(),W("div",jz,[Q("span",Kz,[le(l,{placeholder:e.t("el.datepicker.selectDate"),"model-value":e.visibleDate,size:"small",onInput:t[0]||(t[0]=_=>e.userInputDate=_),onChange:e.handleVisibleDateChange},null,8,["placeholder","model-value","onChange"])]),bt((M(),W("span",Yz,[le(l,{placeholder:e.t("el.datepicker.selectTime"),"model-value":e.visibleTime,size:"small",onFocus:e.onTimePickerInputFocus,onInput:t[1]||(t[1]=_=>e.userInputTime=_),onChange:e.handleVisibleTimeChange},null,8,["placeholder","model-value","onFocus","onChange"]),le(c,{visible:e.timePickerVisible,format:e.timeFormat,"time-arrow-control":e.arrowControl,"parsed-value":e.innerDate,onPick:e.handleTimePick},null,8,["visible","format","time-arrow-control","parsed-value","onPick"])])),[[T,e.handleTimePickClose]])])):fe("v-if",!0),bt(Q("div",{class:P(["el-date-picker__header",{"el-date-picker__header--bordered":e.currentView==="year"||e.currentView==="month"}])},[Q("button",{type:"button","aria-label":e.t("el.datepicker.prevYear"),class:"el-picker-panel__icon-btn el-date-picker__prev-btn d-arrow-left",onClick:t[2]||(t[2]=(..._)=>e.prevYear_&&e.prevYear_(..._))},[le(p,null,{default:ae(()=>[le(f)]),_:1})],8,Gz),bt(Q("button",{type:"button","aria-label":e.t("el.datepicker.prevMonth"),class:"el-picker-panel__icon-btn el-date-picker__prev-btn arrow-left",onClick:t[3]||(t[3]=(..._)=>e.prevMonth_&&e.prevMonth_(..._))},[le(p,null,{default:ae(()=>[le(m)]),_:1})],8,Xz),[[Zt,e.currentView==="date"]]),Q("span",{role:"button",class:"el-date-picker__header-label",onClick:t[4]||(t[4]=(..._)=>e.showYearPicker&&e.showYearPicker(..._))},Pe(e.yearLabel),1),bt(Q("span",{role:"button",class:P(["el-date-picker__header-label",{active:e.currentView==="month"}]),onClick:t[5]||(t[5]=(..._)=>e.showMonthPicker&&e.showMonthPicker(..._))},Pe(e.t(`el.datepicker.month${e.month+1}`)),3),[[Zt,e.currentView==="date"]]),Q("button",{type:"button","aria-label":e.t("el.datepicker.nextYear"),class:"el-picker-panel__icon-btn el-date-picker__next-btn d-arrow-right",onClick:t[6]||(t[6]=(..._)=>e.nextYear_&&e.nextYear_(..._))},[le(p,null,{default:ae(()=>[le(y)]),_:1})],8,qz),bt(Q("button",{type:"button","aria-label":e.t("el.datepicker.nextMonth"),class:"el-picker-panel__icon-btn el-date-picker__next-btn arrow-right",onClick:t[7]||(t[7]=(..._)=>e.nextMonth_&&e.nextMonth_(..._))},[le(p,null,{default:ae(()=>[le(v)]),_:1})],8,Zz),[[Zt,e.currentView==="date"]])],2),[[Zt,e.currentView!=="time"]]),Q("div",Qz,[e.currentView==="date"?(M(),me(w,{key:0,"selection-mode":e.selectionMode,date:e.innerDate,"parsed-value":e.parsedValue,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,onPick:e.handleDatePick},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name","onPick"])):fe("v-if",!0),e.currentView==="year"?(M(),me(E,{key:1,date:e.innerDate,"disabled-date":e.disabledDate,"parsed-value":e.parsedValue,onPick:e.handleYearPick},null,8,["date","disabled-date","parsed-value","onPick"])):fe("v-if",!0),e.currentView==="month"?(M(),me(I,{key:2,date:e.innerDate,"parsed-value":e.parsedValue,"disabled-date":e.disabledDate,onPick:e.handleMonthPick},null,8,["date","parsed-value","disabled-date","onPick"])):fe("v-if",!0)])])]),bt(Q("div",Jz,[bt(le(S,{size:"small",type:"text",class:"el-picker-panel__link-btn",onClick:e.changeToNow},{default:ae(()=>[Ht(Pe(e.t("el.datepicker.now")),1)]),_:1},8,["onClick"]),[[Zt,e.selectionMode!=="dates"]]),le(S,{plain:"",size:"small",class:"el-picker-panel__link-btn",onClick:e.onConfirm},{default:ae(()=>[Ht(Pe(e.t("el.datepicker.confirm")),1)]),_:1},8,["onClick"])],512),[[Zt,e.footerVisible&&e.currentView==="date"]])],2)}var tU=Ue(Vz,[["render",eU],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const nU=ve({directives:{clickoutside:ta},components:{TimePickPanel:H0,DateTable:AE,ElInput:Cr,ElButton:fr,ElIcon:yt,DArrowLeft:Kd,ArrowLeft:Ji,DArrowRight:Yd,ArrowRight:wr},props:{unlinkPanels:Boolean,parsedValue:{type:Array},type:{type:String,required:!0,validator:Bw}},emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,t){const{t:n,lang:o}=un(),s=F(St().locale(o.value)),i=F(St().locale(o.value).add(1,"month")),l=F(null),c=F(null),f=F({min:null,max:null}),p=F({min:null,max:null}),m=$(()=>`${s.value.year()} ${n("el.datepicker.year")} ${n(`el.datepicker.month${s.value.month()+1}`)}`),y=$(()=>`${i.value.year()} ${n("el.datepicker.year")} ${n(`el.datepicker.month${i.value.month()+1}`)}`),v=$(()=>s.value.year()),w=$(()=>s.value.month()),E=$(()=>i.value.year()),I=$(()=>i.value.month()),S=$(()=>!!Je.length),T=$(()=>f.value.min!==null?f.value.min:l.value?l.value.format(x.value):""),_=$(()=>f.value.max!==null?f.value.max:c.value||l.value?(c.value||l.value).format(x.value):""),N=$(()=>p.value.min!==null?p.value.min:l.value?l.value.format(D.value):""),O=$(()=>p.value.max!==null?p.value.max:c.value||l.value?(c.value||l.value).format(D.value):""),D=$(()=>ZC(pt)),x=$(()=>qC(pt)),R=()=>{s.value=s.value.subtract(1,"year"),e.unlinkPanels||(i.value=s.value.add(1,"month")),ee("year")},B=()=>{s.value=s.value.subtract(1,"month"),e.unlinkPanels||(i.value=s.value.add(1,"month")),ee("month")},Y=()=>{e.unlinkPanels?i.value=i.value.add(1,"year"):(s.value=s.value.add(1,"year"),i.value=s.value.add(1,"month")),ee("year")},X=()=>{e.unlinkPanels?i.value=i.value.add(1,"month"):(s.value=s.value.add(1,"month"),i.value=s.value.add(1,"month")),ee("month")},K=()=>{s.value=s.value.add(1,"year"),ee("year")},J=()=>{s.value=s.value.add(1,"month"),ee("month")},G=()=>{i.value=i.value.subtract(1,"year"),ee("year")},z=()=>{i.value=i.value.subtract(1,"month"),ee("month")},ee=_e=>{t.emit("panel-change",[s.value.toDate(),i.value.toDate()],_e)},j=$(()=>{const _e=(w.value+1)%12,Ye=w.value+1>=12?1:0;return e.unlinkPanels&&new Date(v.value+Ye,_e)<new Date(E.value,I.value)}),V=$(()=>e.unlinkPanels&&E.value*12+I.value-(v.value*12+w.value+1)>=12),q=_e=>Array.isArray(_e)&&_e[0]&&_e[1]&&_e[0].valueOf()<=_e[1].valueOf(),ce=F({endDate:null,selecting:!1}),ue=$(()=>!(l.value&&c.value&&!ce.value.selecting&&q([l.value,c.value]))),ne=_e=>{ce.value=_e},Se=_e=>{ce.value.selecting=_e,_e||(ce.value.endDate=null)},Ee=$(()=>e.type==="datetime"||e.type==="datetimerange"),qe=(_e=!1)=>{q([l.value,c.value])&&t.emit("pick",[l.value,c.value],_e)},xe=(_e,Ye)=>{if(!!_e)return At?St(At[Ye]||At).locale(o.value).year(_e.year()).month(_e.month()).date(_e.date()):_e},pe=(_e,Ye=!0)=>{const Le=_e.minDate,Mt=_e.maxDate,Nt=xe(Le,0),Tt=xe(Mt,1);c.value===Tt&&l.value===Nt||(t.emit("calendar-change",[Le.toDate(),Mt&&Mt.toDate()]),c.value=Tt,l.value=Nt,!(!Ye||Ee.value)&&qe())},Me=_e=>{const Ye=typeof _e.value=="function"?_e.value():_e.value;if(Ye){t.emit("pick",[St(Ye[0]).locale(o.value),St(Ye[1]).locale(o.value)]);return}_e.onClick&&_e.onClick(t)},We=F(!1),ze=F(!1),Ze=()=>{We.value=!1},mt=()=>{ze.value=!1},ot=(_e,Ye)=>{f.value[Ye]=_e;const Le=St(_e,x.value).locale(o.value);if(Le.isValid()){if(he&&he(Le.toDate()))return;Ye==="min"?(s.value=Le,l.value=(l.value||s.value).year(Le.year()).month(Le.month()).date(Le.date()),e.unlinkPanels||(i.value=Le.add(1,"month"),c.value=l.value.add(1,"month"))):(i.value=Le,c.value=(c.value||i.value).year(Le.year()).month(Le.month()).date(Le.date()),e.unlinkPanels||(s.value=Le.subtract(1,"month"),l.value=c.value.subtract(1,"month")))}},te=(_e,Ye)=>{f.value[Ye]=null},de=(_e,Ye)=>{p.value[Ye]=_e;const Le=St(_e,D.value).locale(o.value);Le.isValid()&&(Ye==="min"?(We.value=!0,l.value=(l.value||s.value).hour(Le.hour()).minute(Le.minute()).second(Le.second()),(!c.value||c.value.isBefore(l.value))&&(c.value=l.value)):(ze.value=!0,c.value=(c.value||i.value).hour(Le.hour()).minute(Le.minute()).second(Le.second()),i.value=c.value,c.value&&c.value.isBefore(l.value)&&(l.value=c.value)))},Ne=(_e,Ye)=>{p.value[Ye]=null,Ye==="min"?(s.value=l.value,We.value=!1):(i.value=c.value,ze.value=!1)},De=(_e,Ye,Le)=>{p.value.min||(_e&&(s.value=_e,l.value=(l.value||s.value).hour(_e.hour()).minute(_e.minute()).second(_e.second())),Le||(We.value=Ye),(!c.value||c.value.isBefore(l.value))&&(c.value=l.value,i.value=_e))},ke=(_e,Ye,Le)=>{p.value.max||(_e&&(i.value=_e,c.value=(c.value||i.value).hour(_e.hour()).minute(_e.minute()).second(_e.second())),Le||(ze.value=Ye),c.value&&c.value.isBefore(l.value)&&(l.value=c.value))},Ve=()=>{s.value=ge()[0],i.value=s.value.add(1,"month"),t.emit("pick",null)},ie=_e=>Array.isArray(_e)?_e.map(Ye=>Ye.format(pt)):_e.format(pt),re=_e=>Array.isArray(_e)?_e.map(Ye=>St(Ye,pt).locale(o.value)):St(_e,pt).locale(o.value),ge=()=>{let _e;if(Array.isArray(Fe.value)){const Ye=St(Fe.value[0]);let Le=St(Fe.value[1]);return e.unlinkPanels||(Le=Ye.add(1,"month")),[Ye,Le]}else Fe.value?_e=St(Fe.value):_e=St();return _e=_e.locale(o.value),[_e,_e.add(1,"month")]};t.emit("set-picker-option",["isValidValue",q]),t.emit("set-picker-option",["parseUserInput",re]),t.emit("set-picker-option",["formatToString",ie]),t.emit("set-picker-option",["handleClear",Ve]);const Te=et("EP_PICKER_BASE"),{shortcuts:Je,disabledDate:he,cellClassName:He,format:pt,defaultTime:At,arrowControl:tt,clearable:we}=Te.props,Fe=Un(Te.props,"defaultValue");return Re(()=>Fe.value,_e=>{if(_e){const Ye=ge();l.value=null,c.value=null,s.value=Ye[0],i.value=Ye[1]}},{immediate:!0}),Re(()=>e.parsedValue,_e=>{if(_e&&_e.length===2)if(l.value=_e[0],c.value=_e[1],s.value=l.value,e.unlinkPanels&&c.value){const Ye=l.value.year(),Le=l.value.month(),Mt=c.value.year(),Nt=c.value.month();i.value=Ye===Mt&&Le===Nt?c.value.add(1,"month"):c.value}else i.value=s.value.add(1,"month"),c.value&&(i.value=i.value.hour(c.value.hour()).minute(c.value.minute()).second(c.value.second()));else{const Ye=ge();l.value=null,c.value=null,s.value=Ye[0],i.value=Ye[1]}},{immediate:!0}),{shortcuts:Je,disabledDate:he,cellClassName:He,minTimePickerVisible:We,maxTimePickerVisible:ze,handleMinTimeClose:Ze,handleMaxTimeClose:mt,handleShortcutClick:Me,rangeState:ce,minDate:l,maxDate:c,handleRangePick:pe,onSelect:Se,handleChangeRange:ne,btnDisabled:ue,enableYearArrow:V,enableMonthArrow:j,rightPrevMonth:z,rightPrevYear:G,rightNextMonth:X,rightNextYear:Y,leftPrevMonth:B,leftPrevYear:R,leftNextMonth:J,leftNextYear:K,hasShortcuts:S,leftLabel:m,rightLabel:y,leftDate:s,rightDate:i,showTime:Ee,t:n,minVisibleDate:T,maxVisibleDate:_,minVisibleTime:N,maxVisibleTime:O,arrowControl:tt,handleDateInput:ot,handleDateChange:te,handleTimeInput:de,handleTimeChange:Ne,handleMinTimePick:De,handleMaxTimePick:ke,handleClear:Ve,handleConfirm:qe,timeFormat:D,clearable:we}}}),oU={class:"el-picker-panel__body-wrapper"},rU={key:0,class:"el-picker-panel__sidebar"},sU=["onClick"],iU={class:"el-picker-panel__body"},aU={key:0,class:"el-date-range-picker__time-header"},lU={class:"el-date-range-picker__editors-wrap"},uU={class:"el-date-range-picker__time-picker-wrap"},cU={class:"el-date-range-picker__time-picker-wrap"},dU={class:"el-date-range-picker__editors-wrap is-right"},fU={class:"el-date-range-picker__time-picker-wrap"},hU={class:"el-date-range-picker__time-picker-wrap"},pU={class:"el-picker-panel__content el-date-range-picker__content is-left"},gU={class:"el-date-range-picker__header"},mU=["disabled"],vU=["disabled"],yU={class:"el-picker-panel__content el-date-range-picker__content is-right"},bU={class:"el-date-range-picker__header"},wU=["disabled"],CU=["disabled"],EU={key:0,class:"el-picker-panel__footer"};function SU(e,t,n,o,s,i){const l=Ae("el-input"),c=Ae("time-pick-panel"),f=Ae("arrow-right"),p=Ae("el-icon"),m=Ae("d-arrow-left"),y=Ae("arrow-left"),v=Ae("d-arrow-right"),w=Ae("date-table"),E=Ae("el-button"),I=qo("clickoutside");return M(),W("div",{class:P(["el-picker-panel el-date-range-picker",[{"has-sidebar":e.$slots.sidebar||e.hasShortcuts,"has-time":e.showTime}]])},[Q("div",oU,[Ie(e.$slots,"sidebar",{class:"el-picker-panel__sidebar"}),e.hasShortcuts?(M(),W("div",rU,[(M(!0),W(at,null,zt(e.shortcuts,(S,T)=>(M(),W("button",{key:T,type:"button",class:"el-picker-panel__shortcut",onClick:_=>e.handleShortcutClick(S)},Pe(S.text),9,sU))),128))])):fe("v-if",!0),Q("div",iU,[e.showTime?(M(),W("div",aU,[Q("span",lU,[Q("span",uU,[le(l,{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),class:"el-date-range-picker__editor","model-value":e.minVisibleDate,onInput:t[0]||(t[0]=S=>e.handleDateInput(S,"min")),onChange:t[1]||(t[1]=S=>e.handleDateChange(S,"min"))},null,8,["disabled","placeholder","model-value"])]),bt((M(),W("span",cU,[le(l,{size:"small",class:"el-date-range-picker__editor",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),"model-value":e.minVisibleTime,onFocus:t[2]||(t[2]=S=>e.minTimePickerVisible=!0),onInput:t[3]||(t[3]=S=>e.handleTimeInput(S,"min")),onChange:t[4]||(t[4]=S=>e.handleTimeChange(S,"min"))},null,8,["disabled","placeholder","model-value"]),le(c,{visible:e.minTimePickerVisible,format:e.timeFormat,"datetime-role":"start","time-arrow-control":e.arrowControl,"parsed-value":e.leftDate,onPick:e.handleMinTimePick},null,8,["visible","format","time-arrow-control","parsed-value","onPick"])])),[[I,e.handleMinTimeClose]])]),Q("span",null,[le(p,null,{default:ae(()=>[le(f)]),_:1})]),Q("span",dU,[Q("span",fU,[le(l,{size:"small",class:"el-date-range-picker__editor",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),"model-value":e.maxVisibleDate,readonly:!e.minDate,onInput:t[5]||(t[5]=S=>e.handleDateInput(S,"max")),onChange:t[6]||(t[6]=S=>e.handleDateChange(S,"max"))},null,8,["disabled","placeholder","model-value","readonly"])]),bt((M(),W("span",hU,[le(l,{size:"small",class:"el-date-range-picker__editor",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),"model-value":e.maxVisibleTime,readonly:!e.minDate,onFocus:t[7]||(t[7]=S=>e.minDate&&(e.maxTimePickerVisible=!0)),onInput:t[8]||(t[8]=S=>e.handleTimeInput(S,"max")),onChange:t[9]||(t[9]=S=>e.handleTimeChange(S,"max"))},null,8,["disabled","placeholder","model-value","readonly"]),le(c,{"datetime-role":"end",visible:e.maxTimePickerVisible,format:e.timeFormat,"time-arrow-control":e.arrowControl,"parsed-value":e.rightDate,onPick:e.handleMaxTimePick},null,8,["visible","format","time-arrow-control","parsed-value","onPick"])])),[[I,e.handleMaxTimeClose]])])])):fe("v-if",!0),Q("div",pU,[Q("div",gU,[Q("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-left",onClick:t[10]||(t[10]=(...S)=>e.leftPrevYear&&e.leftPrevYear(...S))},[le(p,null,{default:ae(()=>[le(m)]),_:1})]),Q("button",{type:"button",class:"el-picker-panel__icon-btn arrow-left",onClick:t[11]||(t[11]=(...S)=>e.leftPrevMonth&&e.leftPrevMonth(...S))},[le(p,null,{default:ae(()=>[le(y)]),_:1})]),e.unlinkPanels?(M(),W("button",{key:0,type:"button",disabled:!e.enableYearArrow,class:P([{"is-disabled":!e.enableYearArrow},"el-picker-panel__icon-btn d-arrow-right"]),onClick:t[12]||(t[12]=(...S)=>e.leftNextYear&&e.leftNextYear(...S))},[le(p,null,{default:ae(()=>[le(v)]),_:1})],10,mU)):fe("v-if",!0),e.unlinkPanels?(M(),W("button",{key:1,type:"button",disabled:!e.enableMonthArrow,class:P([{"is-disabled":!e.enableMonthArrow},"el-picker-panel__icon-btn arrow-right"]),onClick:t[13]||(t[13]=(...S)=>e.leftNextMonth&&e.leftNextMonth(...S))},[le(p,null,{default:ae(()=>[le(f)]),_:1})],10,vU)):fe("v-if",!0),Q("div",null,Pe(e.leftLabel),1)]),le(w,{"selection-mode":"range",date:e.leftDate,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,onChangerange:e.handleChangeRange,onPick:e.handleRangePick,onSelect:e.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onPick","onSelect"])]),Q("div",yU,[Q("div",bU,[e.unlinkPanels?(M(),W("button",{key:0,type:"button",disabled:!e.enableYearArrow,class:P([{"is-disabled":!e.enableYearArrow},"el-picker-panel__icon-btn d-arrow-left"]),onClick:t[14]||(t[14]=(...S)=>e.rightPrevYear&&e.rightPrevYear(...S))},[le(p,null,{default:ae(()=>[le(m)]),_:1})],10,wU)):fe("v-if",!0),e.unlinkPanels?(M(),W("button",{key:1,type:"button",disabled:!e.enableMonthArrow,class:P([{"is-disabled":!e.enableMonthArrow},"el-picker-panel__icon-btn arrow-left"]),onClick:t[15]||(t[15]=(...S)=>e.rightPrevMonth&&e.rightPrevMonth(...S))},[le(p,null,{default:ae(()=>[le(y)]),_:1})],10,CU)):fe("v-if",!0),Q("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-right",onClick:t[16]||(t[16]=(...S)=>e.rightNextYear&&e.rightNextYear(...S))},[le(p,null,{default:ae(()=>[le(v)]),_:1})]),Q("button",{type:"button",class:"el-picker-panel__icon-btn arrow-right",onClick:t[17]||(t[17]=(...S)=>e.rightNextMonth&&e.rightNextMonth(...S))},[le(p,null,{default:ae(()=>[le(f)]),_:1})]),Q("div",null,Pe(e.rightLabel),1)]),le(w,{"selection-mode":"range",date:e.rightDate,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,onChangerange:e.handleChangeRange,onPick:e.handleRangePick,onSelect:e.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onPick","onSelect"])])])]),e.showTime?(M(),W("div",EU,[e.clearable?(M(),me(E,{key:0,size:"small",type:"text",class:"el-picker-panel__link-btn",onClick:e.handleClear},{default:ae(()=>[Ht(Pe(e.t("el.datepicker.clear")),1)]),_:1},8,["onClick"])):fe("v-if",!0),le(E,{plain:"",size:"small",class:"el-picker-panel__link-btn",disabled:e.btnDisabled,onClick:t[18]||(t[18]=S=>e.handleConfirm(!1))},{default:ae(()=>[Ht(Pe(e.t("el.datepicker.confirm")),1)]),_:1},8,["disabled"])])):fe("v-if",!0)],2)}var AU=Ue(nU,[["render",SU],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const TU=ve({components:{MonthTable:TE,ElIcon:yt,DArrowLeft:Kd,DArrowRight:Yd},props:{unlinkPanels:Boolean,parsedValue:{type:Array}},emits:["pick","set-picker-option"],setup(e,t){const{t:n,lang:o}=un(),s=F(St().locale(o.value)),i=F(St().locale(o.value).add(1,"year")),l=$(()=>!!J.length),c=j=>{const V=typeof j.value=="function"?j.value():j.value;if(V){t.emit("pick",[St(V[0]).locale(o.value),St(V[1]).locale(o.value)]);return}j.onClick&&j.onClick(t)},f=()=>{s.value=s.value.subtract(1,"year"),e.unlinkPanels||(i.value=i.value.subtract(1,"year"))},p=()=>{e.unlinkPanels||(s.value=s.value.add(1,"year")),i.value=i.value.add(1,"year")},m=()=>{s.value=s.value.add(1,"year")},y=()=>{i.value=i.value.subtract(1,"year")},v=$(()=>`${s.value.year()} ${n("el.datepicker.year")}`),w=$(()=>`${i.value.year()} ${n("el.datepicker.year")}`),E=$(()=>s.value.year()),I=$(()=>i.value.year()===s.value.year()?s.value.year()+1:i.value.year()),S=$(()=>e.unlinkPanels&&I.value>E.value+1),T=F(null),_=F(null),N=F({endDate:null,selecting:!1}),O=j=>{N.value=j},D=(j,V=!0)=>{const q=j.minDate,ce=j.maxDate;_.value===ce&&T.value===q||(_.value=ce,T.value=q,V&&R())},x=j=>Array.isArray(j)&&j&&j[0]&&j[1]&&j[0].valueOf()<=j[1].valueOf(),R=(j=!1)=>{x([T.value,_.value])&&t.emit("pick",[T.value,_.value],j)},B=j=>{N.value.selecting=j,j||(N.value.endDate=null)},Y=j=>j.map(V=>V.format(z)),X=()=>{let j;if(Array.isArray(ee.value)){const V=St(ee.value[0]);let q=St(ee.value[1]);return e.unlinkPanels||(q=V.add(1,"year")),[V,q]}else ee.value?j=St(ee.value):j=St();return j=j.locale(o.value),[j,j.add(1,"year")]};t.emit("set-picker-option",["formatToString",Y]);const K=et("EP_PICKER_BASE"),{shortcuts:J,disabledDate:G,format:z}=K.props,ee=Un(K.props,"defaultValue");return Re(()=>ee.value,j=>{if(j){const V=X();s.value=V[0],i.value=V[1]}},{immediate:!0}),Re(()=>e.parsedValue,j=>{if(j&&j.length===2)if(T.value=j[0],_.value=j[1],s.value=T.value,e.unlinkPanels&&_.value){const V=T.value.year(),q=_.value.year();i.value=V===q?_.value.add(1,"year"):_.value}else i.value=s.value.add(1,"year");else{const V=X();T.value=null,_.value=null,s.value=V[0],i.value=V[1]}},{immediate:!0}),{shortcuts:J,disabledDate:G,onSelect:B,handleRangePick:D,rangeState:N,handleChangeRange:O,minDate:T,maxDate:_,enableYearArrow:S,leftLabel:v,rightLabel:w,leftNextYear:m,leftPrevYear:f,rightNextYear:p,rightPrevYear:y,t:n,leftDate:s,rightDate:i,hasShortcuts:l,handleShortcutClick:c}}}),IU={class:"el-picker-panel__body-wrapper"},_U={key:0,class:"el-picker-panel__sidebar"},NU=["onClick"],kU={class:"el-picker-panel__body"},xU={class:"el-picker-panel__content el-date-range-picker__content is-left"},MU={class:"el-date-range-picker__header"},OU=["disabled"],DU={class:"el-picker-panel__content el-date-range-picker__content is-right"},$U={class:"el-date-range-picker__header"},RU=["disabled"];function LU(e,t,n,o,s,i){const l=Ae("d-arrow-left"),c=Ae("el-icon"),f=Ae("d-arrow-right"),p=Ae("month-table");return M(),W("div",{class:P(["el-picker-panel el-date-range-picker",[{"has-sidebar":e.$slots.sidebar||e.hasShortcuts}]])},[Q("div",IU,[Ie(e.$slots,"sidebar",{class:"el-picker-panel__sidebar"}),e.hasShortcuts?(M(),W("div",_U,[(M(!0),W(at,null,zt(e.shortcuts,(m,y)=>(M(),W("button",{key:y,type:"button",class:"el-picker-panel__shortcut",onClick:v=>e.handleShortcutClick(m)},Pe(m.text),9,NU))),128))])):fe("v-if",!0),Q("div",kU,[Q("div",xU,[Q("div",MU,[Q("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-left",onClick:t[0]||(t[0]=(...m)=>e.leftPrevYear&&e.leftPrevYear(...m))},[le(c,null,{default:ae(()=>[le(l)]),_:1})]),e.unlinkPanels?(M(),W("button",{key:0,type:"button",disabled:!e.enableYearArrow,class:P([{"is-disabled":!e.enableYearArrow},"el-picker-panel__icon-btn d-arrow-right"]),onClick:t[1]||(t[1]=(...m)=>e.leftNextYear&&e.leftNextYear(...m))},[le(c,null,{default:ae(()=>[le(f)]),_:1})],10,OU)):fe("v-if",!0),Q("div",null,Pe(e.leftLabel),1)]),le(p,{"selection-mode":"range",date:e.leftDate,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,onChangerange:e.handleChangeRange,onPick:e.handleRangePick,onSelect:e.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onPick","onSelect"])]),Q("div",DU,[Q("div",$U,[e.unlinkPanels?(M(),W("button",{key:0,type:"button",disabled:!e.enableYearArrow,class:P([{"is-disabled":!e.enableYearArrow},"el-picker-panel__icon-btn d-arrow-left"]),onClick:t[2]||(t[2]=(...m)=>e.rightPrevYear&&e.rightPrevYear(...m))},[le(c,null,{default:ae(()=>[le(l)]),_:1})],10,RU)):fe("v-if",!0),Q("button",{type:"button",class:"el-picker-panel__icon-btn d-arrow-right",onClick:t[3]||(t[3]=(...m)=>e.rightNextYear&&e.rightNextYear(...m))},[le(c,null,{default:ae(()=>[le(f)]),_:1})]),Q("div",null,Pe(e.rightLabel),1)]),le(p,{"selection-mode":"range",date:e.rightDate,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,onChangerange:e.handleChangeRange,onPick:e.handleRangePick,onSelect:e.onSelect},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onPick","onSelect"])])])])],2)}var PU=Ue(TU,[["render",LU],["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);St.extend($C);St.extend(uz);St.extend(F0);St.extend(cz);St.extend(dz);St.extend(fz);St.extend(hz);St.extend(pz);const BU=function(e){return e==="daterange"||e==="datetimerange"?AU:e==="monthrange"?PU:tU};var FU=ve({name:"ElDatePicker",install:null,props:Qe(be({},V0),{type:{type:String,default:"date"}}),emits:["update:modelValue"],setup(e,t){Pt("ElPopperOptions",e.popperOptions),Pt(SE,{ctx:t});const n=F(null),o=Qe(be({},e),{focus:(s=!0)=>{var i;(i=n.value)==null||i.focus(s)}});return t.expose(o),()=>{var s;const i=(s=e.format)!=null?s:IB[e.type]||Ol;return it(LC,Qe(be({},e),{format:i,type:e.type,ref:n,"onUpdate:modelValue":l=>t.emit("update:modelValue",l)}),{default:l=>it(BU(e.type),l),"range-separator":()=>Ie(t.slots,"range-separator")})}}});const Oc=FU;Oc.install=e=>{e.component(Oc.name,Oc)};const VU=Oc,j0="elDescriptions";var Bv=ve({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:et(j0,{})}},render(){var e,t,n,o,s,i;const l=nP(this.cell),{border:c,direction:f}=this.descriptions,p=f==="vertical",m=((n=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:n.call(t))||l.label,y=(i=(s=(o=this.cell)==null?void 0:o.children)==null?void 0:s.default)==null?void 0:i.call(s),v=l.span,w=l.align?`is-${l.align}`:"",E=l.labelAlign?`is-${l.labelAlign}`:w,I=l.className,S=l.labelClassName,T={width:Dr(l.width),minWidth:Dr(l.minWidth)},_=Be("descriptions");switch(this.type){case"label":return it(this.tag,{style:T,class:[_.e("cell"),_.e("label"),_.is("bordered-label",c),_.is("vertical-label",p),E,S],colSpan:p?v:1},m);case"content":return it(this.tag,{style:T,class:[_.e("cell"),_.e("content"),_.is("bordered-content",c),_.is("vertical-content",p),w,I],colSpan:p?v:v*2-1},y);default:return it("td",{style:T,class:[_.e("cell"),w],colSpan:v},[it("span",{class:[_.e("label"),S]},m),it("span",{class:[_.e("content"),I]},y)])}}});const HU=ve({name:"ElDescriptionsRow",components:{[Bv.name]:Bv},props:{row:{type:Array}},setup(){return{descriptions:et(j0,{})}}}),zU={key:1};function UU(e,t,n,o,s,i){const l=Ae("el-descriptions-cell");return e.descriptions.direction==="vertical"?(M(),W(at,{key:0},[Q("tr",null,[(M(!0),W(at,null,zt(e.row,(c,f)=>(M(),me(l,{key:`tr1-${f}`,cell:c,tag:"th",type:"label"},null,8,["cell"]))),128))]),Q("tr",null,[(M(!0),W(at,null,zt(e.row,(c,f)=>(M(),me(l,{key:`tr2-${f}`,cell:c,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(M(),W("tr",zU,[(M(!0),W(at,null,zt(e.row,(c,f)=>(M(),W(at,{key:`tr3-${f}`},[e.descriptions.border?(M(),W(at,{key:0},[le(l,{cell:c,tag:"td",type:"label"},null,8,["cell"]),le(l,{cell:c,tag:"td",type:"content"},null,8,["cell"])],64)):(M(),me(l,{key:1,cell:c,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}var Fv=Ue(HU,[["render",UU],["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const WU=ve({name:"ElDescriptions",components:{[Fv.name]:Fv},props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String,validator:Zo},title:{type:String,default:""},extra:{type:String,default:""}},setup(e,{slots:t}){Pt(j0,e);const n=Fn(),o=Be("descriptions"),s=$(()=>[o.b(),o.is(o.m(n.value),!!n.value)]),i=f=>{const p=Array.isArray(f)?f:[f],m=[];return p.forEach(y=>{Array.isArray(y.children)?m.push(...i(y.children)):m.push(y)}),m},l=(f,p,m,y=!1)=>(f.props||(f.props={}),p>m&&(f.props.span=m),y&&(f.props.span=p),f);return{descriptionKls:s,getRows:()=>{var f;const p=i((f=t.default)==null?void 0:f.call(t)).filter(E=>{var I;return((I=E==null?void 0:E.type)==null?void 0:I.name)==="ElDescriptionsItem"}),m=[];let y=[],v=e.column,w=0;return p.forEach((E,I)=>{var S;const T=((S=E.props)==null?void 0:S.span)||1;if(I<p.length-1&&(w+=T>v?v:T),I===p.length-1){const _=e.column-w%e.column;y.push(l(E,_,v,!0)),m.push(y);return}T<v?(v-=T,y.push(E)):(y.push(l(E,T,v)),m.push(y),v=e.column,y=[])}),m},ns:o}}});function jU(e,t,n,o,s,i){const l=Ae("el-descriptions-row");return M(),W("div",{class:P(e.descriptionKls)},[e.title||e.extra||e.$slots.title||e.$slots.extra?(M(),W("div",{key:0,class:P(e.ns.e("header"))},[Q("div",{class:P(e.ns.e("title"))},[Ie(e.$slots,"title",{},()=>[Ht(Pe(e.title),1)])],2),Q("div",{class:P(e.ns.e("extra"))},[Ie(e.$slots,"extra",{},()=>[Ht(Pe(e.extra),1)])],2)],2)):fe("v-if",!0),Q("div",{class:P(e.ns.e("body"))},[Q("table",{class:P([e.ns.e("table"),e.ns.is("bordered",e.border)])},[Q("tbody",null,[(M(!0),W(at,null,zt(e.getRows(),(c,f)=>(M(),me(l,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2)}var KU=Ue(WU,[["render",jU],["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/index.vue"]]),IE=ve({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const YU=$t(KU,{DescriptionsItem:IE}),GU=_n(IE),XU=ct({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Xe([String,Array,Object])},zIndex:{type:Xe([String,Number])}}),qU={click:e=>e instanceof MouseEvent};var ZU=ve({name:"ElOverlay",props:XU,emits:qU,setup(e,{slots:t,emit:n}){const o=Be("overlay"),s=f=>{n("click",f)},{onClick:i,onMousedown:l,onMouseup:c}=$0(e.customMaskEvent?void 0:s);return()=>e.mask?le("div",{class:[o.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:l,onMouseup:c},[Ie(t,"default")],ar.STYLE|ar.CLASS|ar.PROPS,["onClick","onMouseup","onMousedown"]):it("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ie(t,"default")])}});const K0=ZU,_E=ct({center:{type:Boolean,default:!1},closeIcon:{type:uo,default:""},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),QU={close:()=>!0},JU=["aria-label"],eW={name:"ElDialogContent"},tW=ve(Qe(be({},eW),{props:_E,emits:QU,setup(e){const{Close:t}=qL,{dialogRef:n,headerRef:o,ns:s,style:i}=et(Yw);return(l,c)=>(M(),W("div",{ref_key:"dialogRef",ref:n,class:P([k(s).b(),k(s).is("fullscreen",l.fullscreen),k(s).is("draggable",l.draggable),{[k(s).m("center")]:l.center},l.customClass]),"aria-modal":"true",role:"dialog","aria-label":l.title||"dialog",style:st(k(i)),onClick:c[1]||(c[1]=vt(()=>{},["stop"]))},[Q("div",{ref_key:"headerRef",ref:o,class:P(k(s).e("header"))},[Ie(l.$slots,"title",{},()=>[Q("span",{class:P(k(s).e("title"))},Pe(l.title),3)])],2),Q("div",{class:P(k(s).e("body"))},[Ie(l.$slots,"default")],2),l.$slots.footer?(M(),W("div",{key:0,class:P(k(s).e("footer"))},[Ie(l.$slots,"footer")],2)):fe("v-if",!0),l.showClose?(M(),W("button",{key:1,"aria-label":"close",class:P(k(s).e("headerbtn")),type:"button",onClick:c[0]||(c[0]=f=>l.$emit("close"))},[le(k(yt),{class:P(k(s).e("close"))},{default:ae(()=>[(M(),me(Xt(l.closeIcon||k(t))))]),_:1},8,["class"])],2)):fe("v-if",!0)],14,JU))}}));var nW=Ue(tW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const NE=ct(Qe(be({},_E),{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Xe(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,required:!0},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}})),kE={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Ot]:e=>ao(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},xE=(e,t)=>{const o=Dt().emit,{nextZIndex:s}=ws();let i="";const l=F(!1),c=F(!1),f=F(!1),p=F(e.zIndex||s());let m,y;const v=$(()=>Qt(e.width)?`${e.width}px`:e.width),w=$(()=>{const R={},B="--el-dialog";return e.fullscreen||(e.top&&(R[`${B}-margin-top`]=e.top),e.width&&(R[`${B}-width`]=v.value)),R});function E(){o("opened")}function I(){o("closed"),o(Ot,!1),e.destroyOnClose&&(f.value=!1)}function S(){o("close")}function T(){y==null||y(),m==null||m(),e.openDelay&&e.openDelay>0?{stop:m}=Ui(()=>D(),e.openDelay):D()}function _(){m==null||m(),y==null||y(),e.closeDelay&&e.closeDelay>0?{stop:y}=Ui(()=>x(),e.closeDelay):x()}function N(){function R(B){B||(c.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(R):_()}function O(){e.closeOnClickModal&&N()}function D(){!jt||(l.value=!0)}function x(){l.value=!1}return e.lockScroll&&rC(l),e.closeOnPressEscape&&sC({handleClose:N},l),iC(l),Re(()=>e.modelValue,R=>{R?(c.value=!1,T(),f.value=!0,o("open"),p.value=e.zIndex?p.value++:s(),dt(()=>{t.value&&(t.value.scrollTop=0)})):l.value&&_()}),Re(()=>e.fullscreen,R=>{!t.value||(R?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),kt(()=>{e.modelValue&&(l.value=!0,f.value=!0,T())}),{afterEnter:E,afterLeave:I,beforeLeave:S,handleClose:N,onModalClick:O,close:_,doClose:x,closed:c,style:w,rendered:f,visible:l,zIndex:p}},oW={name:"ElDialog"},rW=ve(Qe(be({},oW),{props:NE,emits:kE,setup(e,{expose:t}){const n=e,o=Be("dialog"),s=F(),i=F(),{visible:l,style:c,rendered:f,zIndex:p,afterEnter:m,afterLeave:y,beforeLeave:v,handleClose:w,onModalClick:E}=xE(n,s);Pt(Yw,{dialogRef:s,headerRef:i,ns:o,rendered:f,style:c});const I=$0(E),S=$(()=>n.draggable&&!n.fullscreen);return oC(s,i,S),t({visible:l}),(T,_)=>(M(),me(Iu,{to:"body",disabled:!T.appendToBody},[le($n,{name:"dialog-fade",onAfterEnter:k(m),onAfterLeave:k(y),onBeforeLeave:k(v)},{default:ae(()=>[bt(le(k(K0),{"custom-mask-event":"",mask:T.modal,"overlay-class":T.modalClass,"z-index":k(p)},{default:ae(()=>[Q("div",{class:P(`${k(o).namespace.value}-overlay-dialog`),onClick:_[0]||(_[0]=(...N)=>k(I).onClick&&k(I).onClick(...N)),onMousedown:_[1]||(_[1]=(...N)=>k(I).onMousedown&&k(I).onMousedown(...N)),onMouseup:_[2]||(_[2]=(...N)=>k(I).onMouseup&&k(I).onMouseup(...N))},[k(f)?(M(),me(nW,{key:0,"custom-class":T.customClass,center:T.center,"close-icon":T.closeIcon,draggable:k(S),fullscreen:T.fullscreen,"show-close":T.showClose,style:st(k(c)),title:T.title,onClose:k(w)},Xs({title:ae(()=>[Ie(T.$slots,"title")]),default:ae(()=>[Ie(T.$slots,"default")]),_:2},[T.$slots.footer?{name:"footer",fn:ae(()=>[Ie(T.$slots,"footer")])}:void 0]),1032,["custom-class","center","close-icon","draggable","fullscreen","show-close","style","title","onClose"])):fe("v-if",!0)],34)]),_:3},8,["mask","overlay-class","z-index"]),[[Zt,k(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}}));var sW=Ue(rW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const iW=$t(sW),aW=ct({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Xe(String),default:"solid"}}),lW={name:"ElDivider"},uW=ve(Qe(be({},lW),{props:aW,setup(e){const t=e,n=Be("divider"),o=$(()=>({"--el-border-style":t.borderStyle}));return(s,i)=>(M(),W("div",{class:P([k(n).b(),k(n).m(s.direction)]),style:st(k(o))},[s.$slots.default&&s.direction!=="vertical"?(M(),W("div",{key:0,class:P([k(n).e("text"),k(n).is(s.contentPosition)])},[Ie(s.$slots,"default")],2)):fe("v-if",!0)],6))}}));var cW=Ue(uW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const dW=$t(cW),fW=ct(Qe(be({},NE),{direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}})),hW=kE,pW=ve({name:"ElDrawer",components:{ElOverlay:K0,ElIcon:yt,Close:gr},directives:{TrapFocus:BC},props:fW,emits:hW,setup(e,t){const n=F(),o=Be("drawer"),s=$(()=>e.direction==="rtl"||e.direction==="ltr"),i=$(()=>typeof e.size=="number"?`${e.size}px`:e.size);return Qe(be({},xE(e,t,n)),{drawerRef:n,isHorizontal:s,drawerSize:i,ns:o})}}),gW=["aria-labelledby","aria-label"],mW=["id"],vW=["title"],yW=["aria-label"];function bW(e,t,n,o,s,i){const l=Ae("close"),c=Ae("el-icon"),f=Ae("el-overlay"),p=qo("trap-focus");return M(),me(Iu,{to:"body",disabled:!e.appendToBody},[le($n,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave},{default:ae(()=>[bt(le(f,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:ae(()=>[bt((M(),W("div",{ref:"drawerRef","aria-modal":"true","aria-labelledby":e.ns.e("title"),"aria-label":e.title,class:P([e.ns.b(),e.direction,e.visible&&"open",e.customClass]),style:st(e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize),role:"dialog",onClick:t[1]||(t[1]=vt(()=>{},["stop"]))},[e.withHeader?(M(),W("header",{key:0,id:e.ns.e("title"),class:P(e.ns.e("header"))},[Ie(e.$slots,"title",{},()=>[Q("span",{role:"heading",title:e.title},Pe(e.title),9,vW)]),e.showClose?(M(),W("button",{key:0,"aria-label":"close "+(e.title||"drawer"),class:P(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[le(c,{class:P(e.ns.e("close"))},{default:ae(()=>[le(l)]),_:1},8,["class"])],10,yW)):fe("v-if",!0)],10,mW)):fe("v-if",!0),e.rendered?(M(),W("section",{key:1,class:P(e.ns.e("body"))},[Ie(e.$slots,"default")],2)):fe("v-if",!0),e.$slots.footer?(M(),W("div",{key:2,class:P(e.ns.e("footer"))},[Ie(e.$slots,"footer")],2)):fe("v-if",!0)],14,gW)),[[p]])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Zt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var wW=Ue(pW,[["render",bW],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const CW=$t(wW),ME=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Vv=(e,t)=>{for(const n of e)if(!EW(n,t))return n},EW=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},SW=e=>{const t=ME(e),n=Vv(t,e),o=Vv(t.reverse(),e);return[n,o]},AW=e=>e instanceof HTMLInputElement&&"select"in e,bi=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&AW(e)&&t&&e.select()}};function Hv(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const TW=()=>{let e=[];return{push:o=>{const s=e[0];s&&o!==s&&s.pause(),e=Hv(e,o),e.unshift(o)},remove:o=>{var s,i;e=Hv(e,o),(i=(s=e[0])==null?void 0:s.resume)==null||i.call(s)}}},IW=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(bi(o,t),document.activeElement!==n)return},zv=TW(),Qf="focus-trap.focus-on-mount",Jf="focus-trap.focus-on-unmount",Uv={cancelable:!0,bubbles:!1},Wv="mountOnFocus",jv="unmountOnFocus",OE=Symbol("elFocusTrap"),_W=ve({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean},emits:[Wv,jv],setup(e,{emit:t}){const n=F(),o=F(null);let s,i;const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},c=w=>{if(!e.loop&&!e.trapped||l.paused)return;const{key:E,altKey:I,ctrlKey:S,metaKey:T,currentTarget:_,shiftKey:N}=w,{loop:O}=e,D=E===rt.tab&&!I&&!S&&!T,x=document.activeElement;if(D&&x){const R=_,[B,Y]=SW(R);B&&Y?!N&&x===Y?(w.preventDefault(),O&&bi(B,!0)):N&&x===B&&(w.preventDefault(),O&&bi(Y,!0)):x===R&&w.preventDefault()}};Pt(OE,{focusTrapRef:o,onKeydown:c});const f=w=>{t(Wv,w)},p=w=>t(jv,w),m=w=>{const E=k(o);if(l.paused||!E)return;const I=w.target;I&&E.contains(I)?i=I:bi(i,!0)},y=w=>{const E=k(o);l.paused||!E||E.contains(w.relatedTarget)||bi(i,!0)},v=()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y)};return kt(()=>{const w=k(o);if(w){zv.push(l);const E=document.activeElement;if(s=E,!w.contains(E)){const S=new Event(Qf,Uv);w.addEventListener(Qf,f),w.dispatchEvent(S),S.defaultPrevented||dt(()=>{IW(ME(w),!0),document.activeElement===E&&bi(w)})}}Re(()=>e.trapped,E=>{E?(document.addEventListener("focusin",m),document.addEventListener("focusout",y)):v()},{immediate:!0})}),gn(()=>{v();const w=k(o);if(w){w.removeEventListener(Qf,f);const E=new Event(Jf,Uv);w.addEventListener(Jf,p),w.dispatchEvent(E),E.defaultPrevented||bi(s!=null?s:document.body,!0),w.removeEventListener(Jf,f),zv.remove(l)}}),{focusTrapRef:n,forwardRef:o,onKeydown:c}}});function NW(e,t,n,o,s,i){return Ie(e.$slots,"default")}var kW=Ue(_W,[["render",NW],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const xW=ve({inheritAttrs:!1});function MW(e,t,n,o,s,i){return Ie(e.$slots,"default")}var OW=Ue(xW,[["render",MW],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const DW=ve({name:"ElCollectionItem",inheritAttrs:!1});function $W(e,t,n,o,s,i){return Ie(e.$slots,"default")}var RW=Ue(DW,[["render",$W],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const DE="data-el-collection-item",$E=e=>{const t=`El${e}Collection`,n=`${t}Item`,o=Symbol(t),s=Symbol(n),i=Qe(be({},OW),{name:t,setup(){const c=F(null),f=new Map;Pt(o,{itemMap:f,getItems:()=>{const m=k(c);if(!m)return[];const y=Array.from(m.querySelectorAll(`[${DE}]`));return[...f.values()].sort((E,I)=>y.indexOf(E.ref)-y.indexOf(I.ref))},collectionRef:c})}}),l=Qe(be({},RW),{name:n,setup(c,{attrs:f}){const p=F(null),m=et(o,void 0);Pt(s,{collectionItemRef:p}),kt(()=>{const y=k(p);y&&m.itemMap.set(y,be({ref:y},f))}),gn(()=>{const y=k(p);m.itemMap.delete(y)})}});return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:s,ElCollection:i,ElCollectionItem:l}},LW=ct({style:{type:Xe([String,Array,Object])},currentTabId:{type:Xe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Xe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:PW,ElCollectionItem:BW,COLLECTION_INJECTION_KEY:Y0,COLLECTION_ITEM_INJECTION_KEY:FW}=$E("RovingFocusGroup"),G0=Symbol("elRovingFocusGroup"),RE=Symbol("elRovingFocusGroupItem"),VW={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},HW=(e,t)=>{if(t!=="rtl")return e;switch(e){case rt.right:return rt.left;case rt.left:return rt.right;default:return e}},zW=(e,t,n)=>{const o=HW(e.key,n);if(!(t==="vertical"&&[rt.left,rt.right].includes(o))&&!(t==="horizontal"&&[rt.up,rt.down].includes(o)))return VW[o]},UW=(e,t)=>e.map((n,o)=>e[(o+t)%e.length]),X0=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Kv="currentTabIdChange",eh="rovingFocusGroup.entryFocus",WW={bubbles:!1,cancelable:!0},jW=ve({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:LW,emits:[Kv,"entryFocus"],setup(e,{emit:t}){var n;const o=F((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),s=F(!1),i=F(!1),l=F(null),{getItems:c}=et(Y0,void 0),f=$(()=>[{outline:"none"},e.style]),p=I=>{t(Kv,I)},m=()=>{s.value=!0},y=Tn(I=>{var S;(S=e.onMousedown)==null||S.call(e,I)},()=>{i.value=!0}),v=Tn(I=>{var S;(S=e.onFocus)==null||S.call(e,I)},I=>{const S=!k(i),{target:T,currentTarget:_}=I;if(T===_&&S&&!k(s)){const N=new Event(eh,WW);if(_==null||_.dispatchEvent(N),!N.defaultPrevented){const O=c().filter(Y=>Y.focusable),D=O.find(Y=>Y.active),x=O.find(Y=>Y.id===k(o)),B=[D,x,...O].filter(Boolean).map(Y=>Y.ref);X0(B)}}i.value=!1}),w=Tn(I=>{var S;(S=e.onBlur)==null||S.call(e,I)},()=>{s.value=!1}),E=(...I)=>{t("entryFocus",...I)};Pt(G0,{currentTabbedId:Su(o),loop:Un(e,"loop"),tabIndex:$(()=>k(s)?-1:0),rovingFocusGroupRef:l,rovingFocusGroupRootStyle:f,orientation:Un(e,"orientation"),dir:Un(e,"dir"),onItemFocus:p,onItemShiftTab:m,onBlur:w,onFocus:v,onMousedown:y}),Re(()=>e.currentTabId,I=>{o.value=I!=null?I:null}),kt(()=>{const I=k(l);Bn(I,eh,E)}),gn(()=>{const I=k(l);Kn(I,eh,E)})}});function KW(e,t,n,o,s,i){return Ie(e.$slots,"default")}var YW=Ue(jW,[["render",KW],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const GW=ve({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:PW,ElRovingFocusGroupImpl:YW}});function XW(e,t,n,o,s,i){const l=Ae("el-roving-focus-group-impl"),c=Ae("el-focus-group-collection");return M(),me(c,null,{default:ae(()=>[le(l,Nr(Ys(e.$attrs)),{default:ae(()=>[Ie(e.$slots,"default")]),_:3},16)]),_:3})}var qW=Ue(GW,[["render",XW],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const ZW=ve({components:{ElRovingFocusCollectionItem:BW},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:o,onItemFocus:s,onItemShiftTab:i}=et(G0,void 0),{getItems:l}=et(Y0,void 0),c=R0(),f=F(null),p=Tn(w=>{t("mousedown",w)},w=>{e.focusable?s(k(c)):w.preventDefault()}),m=Tn(w=>{t("focus",w)},()=>{s(k(c))}),y=Tn(w=>{t("keydown",w)},w=>{const{key:E,shiftKey:I,target:S,currentTarget:T}=w;if(E===rt.tab&&I){i();return}if(S!==T)return;const _=zW(w);if(_){w.preventDefault();let O=l().filter(D=>D.focusable).map(D=>D.ref);switch(_){case"last":{O.reverse();break}case"prev":case"next":{_==="prev"&&O.reverse();const D=O.indexOf(T);O=o.value?UW(O,D+1):O.slice(D+1);break}}dt(()=>{X0(O)})}}),v=$(()=>n.value===k(c));return Pt(RE,{rovingFocusGroupItemRef:f,tabIndex:$(()=>k(v)?0:-1),handleMousedown:p,handleFocus:m,handleKeydown:y}),{id:c,handleKeydown:y,handleFocus:m,handleMousedown:p}}});function QW(e,t,n,o,s,i){const l=Ae("el-roving-focus-collection-item");return M(),me(l,{id:e.id,focusable:e.focusable,active:e.active},{default:ae(()=>[Ie(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var JW=Ue(ZW,[["render",QW],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Dc=ct({trigger:du.trigger,effect:Qe(be({},ro.effect),{default:"light"}),type:{type:Xe(String)},placement:{type:Xe(String),default:"bottom"},popperOptions:{type:Xe(Object),default:()=>({})},size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Xe([Number,String]),default:0},maxHeight:{type:Xe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},buttonProps:{type:Xe(Object)}}),LE=ct({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:uo}}),ej=ct({onKeydown:{type:Xe(Function)}}),tj=[rt.down,rt.pageDown,rt.home],PE=[rt.up,rt.pageUp,rt.end],nj=[...tj,...PE],{ElCollection:oj,ElCollectionItem:rj,COLLECTION_INJECTION_KEY:sj,COLLECTION_ITEM_INJECTION_KEY:ij}=$E("Dropdown"),q0=Symbol("elDropdown"),{ButtonGroup:aj}=fr,lj=ve({name:"ElDropdown",components:{ElButton:fr,ElFocusTrap:kW,ElButtonGroup:aj,ElScrollbar:Es,ElDropdownCollection:oj,ElTooltip:Ro,ElRovingFocusGroup:qW,ElIcon:yt,ArrowDown:Qi},props:Dc,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Dt(),o=Be("dropdown"),s=F(),i=F(),l=F(null),c=F(null),f=F(null),p=F(null),m=F(!1),y=$(()=>({maxHeight:Dr(e.maxHeight)})),v=$(()=>[o.m(S.value)]);function w(){E()}function E(){var B;(B=l.value)==null||B.onClose()}function I(){var B;(B=l.value)==null||B.onOpen()}const S=Fn();function T(...B){t("command",...B)}function _(){}function N(){const B=k(c);B==null||B.focus(),p.value=null}function O(B){p.value=B}function D(B){m.value||(B.preventDefault(),B.stopImmediatePropagation())}return Pt(q0,{contentRef:c,isUsingKeyboard:m,onItemEnter:_,onItemLeave:N}),Pt("elDropdown",{instance:n,dropdownSize:S,handleClick:w,commandHandler:T,trigger:Un(e,"trigger"),hideOnClick:Un(e,"hideOnClick")}),{ns:o,scrollbar:f,wrapStyle:y,dropdownTriggerKls:v,dropdownSize:S,currentTabId:p,handleCurrentTabIdChange:O,handlerMainButtonClick:B=>{t("click",B)},handleEntryFocus:D,handleClose:E,handleOpen:I,onMountOnFocus:B=>{var Y,X;B.preventDefault(),(X=(Y=c.value)==null?void 0:Y.focus)==null||X.call(Y,{preventScroll:!0})},popperRef:l,triggeringElementRef:s,referenceElementRef:i}}});function uj(e,t,n,o,s,i){var l;const c=Ae("el-dropdown-collection"),f=Ae("el-roving-focus-group"),p=Ae("el-focus-trap"),m=Ae("el-scrollbar"),y=Ae("el-tooltip"),v=Ae("el-button"),w=Ae("arrow-down"),E=Ae("el-icon"),I=Ae("el-button-group");return M(),W("div",{class:P([e.ns.b(),e.ns.is("disabled",e.disabled)])},[le(y,{ref:"popperRef",effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(l=e.referenceElementRef)==null?void 0:l.$el,trigger:e.trigger,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,"append-to-body":"",pure:"",transition:`${e.ns.namespace.value}-zoom-in-top`,persistent:"",onShow:t[0]||(t[0]=S=>e.$emit("visible-change",!0)),onHide:t[1]||(t[1]=S=>e.$emit("visible-change",!1))},Xs({content:ae(()=>[le(m,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ae(()=>[le(p,{trapped:"",onMountOnFocus:e.onMountOnFocus},{default:ae(()=>[le(f,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:ae(()=>[le(c,null,{default:ae(()=>[Ie(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["onMountOnFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ae(()=>[Q("div",{class:P(e.dropdownTriggerKls)},[Ie(e.$slots,"default")],2)])}]),1032,["effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","show-after","virtual-ref","virtual-triggering","disabled","transition"]),e.splitButton?(M(),me(I,{key:0},{default:ae(()=>[le(v,pn({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,onClick:e.handlerMainButtonClick}),{default:ae(()=>[Ie(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),le(v,pn({ref:"triggeringElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled}),{default:ae(()=>[le(E,{class:P(e.ns.e("icon"))},{default:ae(()=>[le(w)]),_:1},8,["class"])]),_:1},16,["size","type","class","disabled"])]),_:3})):fe("v-if",!0)],2)}var cj=Ue(lj,[["render",uj],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const dj=ve({name:"DropdownItemImpl",components:{ElIcon:yt},props:LE,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Be("dropdown"),{collectionItemRef:o}=et(ij,void 0),{collectionItemRef:s}=et(FW,void 0),{rovingFocusGroupItemRef:i,tabIndex:l,handleFocus:c,handleKeydown:f,handleMousedown:p}=et(RE,void 0),m=x0(o,s,i),y=Tn(v=>{const{code:w}=v;if(w===rt.enter||w===rt.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},f);return{ns:n,itemRef:m,dataset:{[DE]:""},tabIndex:l,handleFocus:c,handleKeydown:y,handleMousedown:p}}}),fj=["aria-disabled","tabindex"];function hj(e,t,n,o,s,i){const l=Ae("el-icon");return M(),W(at,null,[e.divided?(M(),W("li",pn({key:0,class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):fe("v-if",!0),Q("li",pn({ref:e.itemRef},be(be({},e.dataset),e.$attrs),{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:"menuitem",onClick:t[0]||(t[0]=c=>e.$emit("clickimpl",c)),onFocus:t[1]||(t[1]=(...c)=>e.handleFocus&&e.handleFocus(...c)),onKeydown:t[2]||(t[2]=(...c)=>e.handleKeydown&&e.handleKeydown(...c)),onMousedown:t[3]||(t[3]=(...c)=>e.handleMousedown&&e.handleMousedown(...c)),onPointermove:t[4]||(t[4]=c=>e.$emit("pointermove",c)),onPointerleave:t[5]||(t[5]=c=>e.$emit("pointerleave",c))}),[e.icon?(M(),me(l,{key:0},{default:ae(()=>[(M(),me(Xt(e.icon)))]),_:1})):fe("v-if",!0),Ie(e.$slots,"default")],16,fj)],64)}var pj=Ue(dj,[["render",hj],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const BE=()=>{const e=et("elDropdown",{}),t=$(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},gj=ve({name:"ElDropdownItem",components:{ElDropdownCollectionItem:rj,ElRovingFocusItem:JW,ElDropdownItemImpl:pj},inheritAttrs:!1,props:LE,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:o}=BE(),s=Dt(),i=F(null),l=$(()=>{var w,E;return(E=(w=k(i))==null?void 0:w.textContent)!=null?E:""}),{onItemEnter:c,onItemLeave:f}=et(q0,void 0),p=Tn(w=>(t("pointermove",w),w.defaultPrevented),Um(w=>{var E;e.disabled?f(w):(c(w),w.defaultPrevented||(E=w.currentTarget)==null||E.focus())})),m=Tn(w=>(t("pointerleave",w),w.defaultPrevented),Um(w=>{f(w)})),y=Tn(w=>(t("click",w),w.defaultPrevented),w=>{var E,I,S;if(e.disabled){w.stopImmediatePropagation();return}(E=o==null?void 0:o.hideOnClick)!=null&&E.value&&((I=o.handleClick)==null||I.call(o)),(S=o.commandHandler)==null||S.call(o,e.command,s,w)}),v=$(()=>be(be({},e),n));return{handleClick:y,handlePointerMove:p,handlePointerLeave:m,textContent:l,propsAndAttrs:v}}});function mj(e,t,n,o,s,i){var l;const c=Ae("el-dropdown-item-impl"),f=Ae("el-roving-focus-item"),p=Ae("el-dropdown-collection-item");return M(),me(p,{disabled:e.disabled,"text-value":(l=e.textValue)!=null?l:e.textContent},{default:ae(()=>[le(f,{focusable:!e.disabled},{default:ae(()=>[le(c,pn(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:ae(()=>[Ie(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var FE=Ue(gj,[["render",mj],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const vj=ve({name:"ElDropdownMenu",props:ej,setup(e){const t=Be("dropdown"),{_elDropdownSize:n}=BE(),o=n.value,{focusTrapRef:s,onKeydown:i}=et(OE,void 0),{contentRef:l}=et(q0,void 0),{collectionRef:c,getItems:f}=et(sj,void 0),{rovingFocusGroupRef:p,rovingFocusGroupRootStyle:m,tabIndex:y,onBlur:v,onFocus:w,onMousedown:E}=et(G0,void 0),{collectionRef:I}=et(Y0,void 0),S=$(()=>[t.b("menu"),t.bm("menu",o==null?void 0:o.value)]),T=x0(l,c,s,p,I),_=Tn(O=>{var D;(D=e.onKeydown)==null||D.call(e,O)},O=>{const{currentTarget:D,code:x,target:R}=O;if(D.contains(R),rt.tab===x&&O.stopImmediatePropagation(),O.preventDefault(),R!==k(l)||!nj.includes(x))return;const Y=f().filter(X=>!X.disabled).map(X=>X.ref);PE.includes(x)&&Y.reverse(),X0(Y)});return{size:o,rovingFocusGroupRootStyle:m,tabIndex:y,dropdownKls:S,dropdownListWrapperRef:T,handleKeydown:O=>{_(O),i(O)},onBlur:v,onFocus:w,onMousedown:E}}});function yj(e,t,n,o,s,i){return M(),W("ul",{ref:e.dropdownListWrapperRef,class:P(e.dropdownKls),style:st(e.rovingFocusGroupRootStyle),tabindex:-1,role:"menu",onBlur:t[0]||(t[0]=(...l)=>e.onBlur&&e.onBlur(...l)),onFocus:t[1]||(t[1]=(...l)=>e.onFocus&&e.onFocus(...l)),onKeydown:t[2]||(t[2]=(...l)=>e.handleKeydown&&e.handleKeydown(...l)),onMousedown:t[3]||(t[3]=(...l)=>e.onMousedown&&e.onMousedown(...l))},[Ie(e.$slots,"default")],38)}var VE=Ue(vj,[["render",yj],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const bj=$t(cj,{DropdownItem:FE,DropdownMenu:VE}),wj=_n(FE),Cj=_n(VE);let Ej=0;const Sj=ve({name:"ImgEmpty",setup(){return{id:++Ej}}}),Aj={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Tj=["id"],Ij=Q("stop",{"stop-color":"var(--el-empty-fill-color-1)",offset:"0%"},null,-1),_j=Q("stop",{"stop-color":"var(--el-empty-fill-color-4)",offset:"100%"},null,-1),Nj=[Ij,_j],kj=["id"],xj=Q("stop",{"stop-color":"var(--el-empty-fill-color-1)",offset:"0%"},null,-1),Mj=Q("stop",{"stop-color":"var(--el-empty-fill-color-6)",offset:"100%"},null,-1),Oj=[xj,Mj],Dj=["id"],$j={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Rj={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},Lj={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},Pj=Q("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"var(--el-empty-fill-color-3)"},null,-1),Bj=Q("polygon",{id:"Rectangle-Copy-14",fill:"var(--el-empty-fill-color-7)",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,-1),Fj={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},Vj=Q("polygon",{id:"Rectangle-Copy-10",fill:"var(--el-empty-fill-color-7)",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,-1),Hj=Q("polygon",{id:"Rectangle-Copy-11",fill:"var(--el-empty-fill-color-5)",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,-1),zj=["fill"],Uj=Q("polygon",{id:"Rectangle-Copy-13",fill:"var(--el-empty-fill-color-2)",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,-1),Wj=["fill"],jj={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},Kj=["xlink:href"],Yj=["mask"],Gj=Q("polygon",{id:"Rectangle-Copy-18",fill:"var(--el-empty-fill-color-2)",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,-1);function Xj(e,t,n,o,s,i){return M(),W("svg",Aj,[Q("defs",null,[Q("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},Nj,8,Tj),Q("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},Oj,8,kj),Q("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,Dj)]),Q("g",$j,[Q("g",Rj,[Q("g",Lj,[Pj,Bj,Q("g",Fj,[Vj,Hj,Q("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,zj),Uj]),Q("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,Wj),Q("g",jj,[Q("use",{id:"Mask",fill:"var(--el-empty-fill-color-8)",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.id}`},null,8,Kj),Q("polygon",{id:"Rectangle-Copy",fill:"var(--el-empty-fill-color-9)",mask:`url(#mask-4-${e.id})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,Yj)]),Gj])])])])}var qj=Ue(Sj,[["render",Xj],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const Zj={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},Qj=["src"],Jj={key:1},eK={name:"ElEmpty"},tK=ve(Qe(be({},eK),{props:Zj,setup(e){const t=e,{t:n}=un(),o=Be("empty"),s=$(()=>t.description||n("el.table.emptyText")),i=$(()=>({width:t.imageSize?`${t.imageSize}px`:""}));return(l,c)=>(M(),W("div",{class:P(k(o).b())},[Q("div",{class:P(k(o).e("image")),style:st(k(i))},[l.image?(M(),W("img",{key:0,src:l.image,ondragstart:"return false"},null,8,Qj)):Ie(l.$slots,"image",{key:1},()=>[le(qj)])],6),Q("div",{class:P(k(o).e("description"))},[l.$slots.description?Ie(l.$slots,"description",{key:0}):(M(),W("p",Jj,Pe(k(s)),1))],2),l.$slots.default?(M(),W("div",{key:0,class:P(k(o).e("bottom"))},[Ie(l.$slots,"default")],2)):fe("v-if",!0)],2))}}));var nK=Ue(tK,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const oK=$t(nK),rK=ct({model:Object,rules:{type:Xe(Object)},labelPosition:String,labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:ts},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),sK={validate:(e,t,n)=>(wt(e)||_t(e))&&ao(t)&&_t(n)};function iK(){const e=F([]),t=$(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){return e.value.indexOf(i)}function o(i,l){if(i&&l){const c=n(l);e.value.splice(c,1,i)}else i&&e.value.push(i)}function s(i){const l=n(i);l>-1&&e.value.splice(l,1)}return{autoLabelWidth:t,registerLabelWidth:o,deregisterLabelWidth:s}}const ac=(e,t)=>{const n=iu(t);return n.length>0?e.filter(o=>o.prop&&n.includes(o.prop)):e},aK={name:"ElForm"},lK=ve(Qe(be({},aK),{props:rK,emits:sK,setup(e,{expose:t,emit:n}){const o=e,s=[],i=Fn(),l=Be("form"),c=$(()=>{const{labelPosition:_,inline:N}=o;return[l.b(),l.m(i.value||"default"),{[l.m(`label-${_}`)]:_,[l.m("inline")]:N}]}),f=_=>{s.push(_)},p=_=>{_.prop&&s.splice(s.indexOf(_),1)},m=(_=[])=>{!o.model||ac(s,_).forEach(N=>N.resetField())},y=(_=[])=>{ac(s,_).forEach(N=>N.clearValidate())},v=$(()=>!!o.model),w=_=>{if(s.length===0)return[];const N=ac(s,_);return N.length?N:[]},E=async _=>S(void 0,_),I=async(_=[])=>{if(!v.value)return!1;const N=w(_);if(N.length===0)return!0;let O={};for(const D of N)try{await D.validate("")}catch(x){O=be(be({},O),x)}return Object.keys(O).length===0?!0:Promise.reject(O)},S=async(_=[],N)=>{const O=!It(N);try{const D=await I(_);return D===!0&&(N==null||N(D)),D}catch(D){const x=D;return o.scrollToError&&T(Object.keys(x)[0]),N==null||N(!1,x),O&&Promise.reject(x)}},T=_=>{var N;const O=ac(s,_)[0];O&&((N=O.$el)==null||N.scrollIntoView())};return Re(()=>o.rules,()=>{o.validateOnRuleChange&&E()},{deep:!0}),Pt(Jo,nn(be(Qe(be({},Yn(o)),{emit:n,resetFields:m,clearValidate:y,validateField:S,addField:f,removeField:p}),iK()))),t({validate:E,validateField:S,resetFields:m,clearValidate:y,scrollToField:T}),(_,N)=>(M(),W("form",{class:P(k(c))},[Ie(_.$slots,"default")],2))}}));var uK=Ue(lK,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _i(){return _i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},_i.apply(this,arguments)}function cK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hu(e,t)}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function hu(e,t){return hu=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},hu(e,t)}function dK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $c(e,t,n){return dK()?$c=Reflect.construct:$c=function(s,i,l){var c=[null];c.push.apply(c,i);var f=Function.bind.apply(s,c),p=new f;return l&&hu(p,l.prototype),p},$c.apply(null,arguments)}function fK(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ap(e){var t=typeof Map=="function"?new Map:void 0;return ap=function(o){if(o===null||!fK(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(o))return t.get(o);t.set(o,s)}function s(){return $c(o,arguments,ip(this).constructor)}return s.prototype=Object.create(o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),hu(s,o)},ap(e)}var hK=/%[sdj%]/g,pK=function(){};typeof process!="undefined"&&process.env;function lp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function Uo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var s=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var l=e.replace(hK,function(c){if(c==="%%")return"%";if(s>=i)return c;switch(c){case"%s":return String(n[s++]);case"%d":return Number(n[s++]);case"%j":try{return JSON.stringify(n[s++])}catch{return"[Circular]"}break;default:return c}});return l}return e}function gK(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Xn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||gK(t)&&typeof e=="string"&&!e)}function mK(e,t,n){var o=[],s=0,i=e.length;function l(c){o.push.apply(o,c||[]),s++,s===i&&n(o)}e.forEach(function(c){t(c,l)})}function Yv(e,t,n){var o=0,s=e.length;function i(l){if(l&&l.length){n(l);return}var c=o;o=o+1,c<s?t(e[c],i):n([])}i([])}function vK(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Gv=function(e){cK(t,e);function t(n,o){var s;return s=e.call(this,"Async Validation Error")||this,s.errors=n,s.fields=o,s}return t}(ap(Error));function yK(e,t,n,o,s){if(t.first){var i=new Promise(function(v,w){var E=function(T){return o(T),T.length?w(new Gv(T,lp(T))):v(s)},I=vK(e);Yv(I,n,E)});return i.catch(function(v){return v}),i}var l=t.firstFields===!0?Object.keys(e):t.firstFields||[],c=Object.keys(e),f=c.length,p=0,m=[],y=new Promise(function(v,w){var E=function(S){if(m.push.apply(m,S),p++,p===f)return o(m),m.length?w(new Gv(m,lp(m))):v(s)};c.length||(o(m),v(s)),c.forEach(function(I){var S=e[I];l.indexOf(I)!==-1?Yv(S,n,E):mK(S,n,E)})});return y.catch(function(v){return v}),y}function bK(e){return!!(e&&e.message!==void 0)}function wK(e,t){for(var n=e,o=0;o<t.length;o++){if(n==null)return n;n=n[t[o]]}return n}function Xv(e,t){return function(n){var o;return e.fullFields?o=wK(t,e.fullFields):o=t[n.field||e.fullField],bK(n)?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||e.fullField}}}function qv(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];typeof o=="object"&&typeof e[n]=="object"?e[n]=_i({},e[n],o):e[n]=o}}return e}var HE=function(t,n,o,s,i,l){t.required&&(!o.hasOwnProperty(t.field)||Xn(n,l||t.type))&&s.push(Uo(i.messages.required,t.fullField))},CK=function(t,n,o,s,i){(/^\s+$/.test(n)||n==="")&&s.push(Uo(i.messages.whitespace,t.fullField))},th={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Dl={integer:function(t){return Dl.number(t)&&parseInt(t,10)===t},float:function(t){return Dl.number(t)&&!Dl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Dl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(th.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(th.url)},hex:function(t){return typeof t=="string"&&!!t.match(th.hex)}},EK=function(t,n,o,s,i){if(t.required&&n===void 0){HE(t,n,o,s,i);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=t.type;l.indexOf(c)>-1?Dl[c](n)||s.push(Uo(i.messages.types[c],t.fullField,t.type)):c&&typeof n!==t.type&&s.push(Uo(i.messages.types[c],t.fullField,t.type))},SK=function(t,n,o,s,i){var l=typeof t.len=="number",c=typeof t.min=="number",f=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=n,y=null,v=typeof n=="number",w=typeof n=="string",E=Array.isArray(n);if(v?y="number":w?y="string":E&&(y="array"),!y)return!1;E&&(m=n.length),w&&(m=n.replace(p,"_").length),l?m!==t.len&&s.push(Uo(i.messages[y].len,t.fullField,t.len)):c&&!f&&m<t.min?s.push(Uo(i.messages[y].min,t.fullField,t.min)):f&&!c&&m>t.max?s.push(Uo(i.messages[y].max,t.fullField,t.max)):c&&f&&(m<t.min||m>t.max)&&s.push(Uo(i.messages[y].range,t.fullField,t.min,t.max))},pa="enum",AK=function(t,n,o,s,i){t[pa]=Array.isArray(t[pa])?t[pa]:[],t[pa].indexOf(n)===-1&&s.push(Uo(i.messages[pa],t.fullField,t[pa].join(", ")))},TK=function(t,n,o,s,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||s.push(Uo(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||s.push(Uo(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},sn={required:HE,whitespace:CK,type:EK,range:SK,enum:AK,pattern:TK},IK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n,"string")&&!t.required)return o();sn.required(t,n,s,l,i,"string"),Xn(n,"string")||(sn.type(t,n,s,l,i),sn.range(t,n,s,l,i),sn.pattern(t,n,s,l,i),t.whitespace===!0&&sn.whitespace(t,n,s,l,i))}o(l)},_K=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n)&&!t.required)return o();sn.required(t,n,s,l,i),n!==void 0&&sn.type(t,n,s,l,i)}o(l)},NK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(n===""&&(n=void 0),Xn(n)&&!t.required)return o();sn.required(t,n,s,l,i),n!==void 0&&(sn.type(t,n,s,l,i),sn.range(t,n,s,l,i))}o(l)},kK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n)&&!t.required)return o();sn.required(t,n,s,l,i),n!==void 0&&sn.type(t,n,s,l,i)}o(l)},xK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n)&&!t.required)return o();sn.required(t,n,s,l,i),Xn(n)||sn.type(t,n,s,l,i)}o(l)},MK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n)&&!t.required)return o();sn.required(t,n,s,l,i),n!==void 0&&(sn.type(t,n,s,l,i),sn.range(t,n,s,l,i))}o(l)},OK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n)&&!t.required)return o();sn.required(t,n,s,l,i),n!==void 0&&(sn.type(t,n,s,l,i),sn.range(t,n,s,l,i))}o(l)},DK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(n==null&&!t.required)return o();sn.required(t,n,s,l,i,"array"),n!=null&&(sn.type(t,n,s,l,i),sn.range(t,n,s,l,i))}o(l)},$K=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n)&&!t.required)return o();sn.required(t,n,s,l,i),n!==void 0&&sn.type(t,n,s,l,i)}o(l)},RK="enum",LK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n)&&!t.required)return o();sn.required(t,n,s,l,i),n!==void 0&&sn[RK](t,n,s,l,i)}o(l)},PK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n,"string")&&!t.required)return o();sn.required(t,n,s,l,i),Xn(n,"string")||sn.pattern(t,n,s,l,i)}o(l)},BK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n,"date")&&!t.required)return o();if(sn.required(t,n,s,l,i),!Xn(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),sn.type(t,f,s,l,i),f&&sn.range(t,f.getTime(),s,l,i)}}o(l)},FK=function(t,n,o,s,i){var l=[],c=Array.isArray(n)?"array":typeof n;sn.required(t,n,s,l,i,c),o(l)},nh=function(t,n,o,s,i){var l=t.type,c=[],f=t.required||!t.required&&s.hasOwnProperty(t.field);if(f){if(Xn(n,l)&&!t.required)return o();sn.required(t,n,s,c,i,l),Xn(n,l)||sn.type(t,n,s,c,i)}o(c)},VK=function(t,n,o,s,i){var l=[],c=t.required||!t.required&&s.hasOwnProperty(t.field);if(c){if(Xn(n)&&!t.required)return o();sn.required(t,n,s,l,i)}o(l)},Yl={string:IK,method:_K,number:NK,boolean:kK,regexp:xK,integer:MK,float:OK,array:DK,object:$K,enum:LK,pattern:PK,date:BK,url:nh,hex:nh,email:nh,required:FK,any:VK};function up(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var cp=up(),$u=function(){function e(n){this.rules=null,this._messages=cp,this.define(n)}var t=e.prototype;return t.define=function(o){var s=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var l=o[i];s.rules[i]=Array.isArray(l)?l:[l]})},t.messages=function(o){return o&&(this._messages=qv(up(),o)),this._messages},t.validate=function(o,s,i){var l=this;s===void 0&&(s={}),i===void 0&&(i=function(){});var c=o,f=s,p=i;if(typeof f=="function"&&(p=f,f={}),!this.rules||Object.keys(this.rules).length===0)return p&&p(null,c),Promise.resolve(c);function m(I){var S=[],T={};function _(O){if(Array.isArray(O)){var D;S=(D=S).concat.apply(D,O)}else S.push(O)}for(var N=0;N<I.length;N++)_(I[N]);S.length?(T=lp(S),p(S,T)):p(null,c)}if(f.messages){var y=this.messages();y===cp&&(y=up()),qv(y,f.messages),f.messages=y}else f.messages=this.messages();var v={},w=f.keys||Object.keys(this.rules);w.forEach(function(I){var S=l.rules[I],T=c[I];S.forEach(function(_){var N=_;typeof N.transform=="function"&&(c===o&&(c=_i({},c)),T=c[I]=N.transform(T)),typeof N=="function"?N={validator:N}:N=_i({},N),N.validator=l.getValidationMethod(N),N.validator&&(N.field=I,N.fullField=N.fullField||I,N.type=l.getType(N),v[I]=v[I]||[],v[I].push({rule:N,value:T,source:c,field:I}))})});var E={};return yK(v,f,function(I,S){var T=I.rule,_=(T.type==="object"||T.type==="array")&&(typeof T.fields=="object"||typeof T.defaultField=="object");_=_&&(T.required||!T.required&&I.value),T.field=I.field;function N(x,R){return _i({},R,{fullField:T.fullField+"."+x,fullFields:T.fullFields?[].concat(T.fullFields,[x]):[x]})}function O(x){x===void 0&&(x=[]);var R=Array.isArray(x)?x:[x];!f.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&T.message!==void 0&&(R=[].concat(T.message));var B=R.map(Xv(T,c));if(f.first&&B.length)return E[T.field]=1,S(B);if(!_)S(B);else{if(T.required&&!I.value)return T.message!==void 0?B=[].concat(T.message).map(Xv(T,c)):f.error&&(B=[f.error(T,Uo(f.messages.required,T.field))]),S(B);var Y={};T.defaultField&&Object.keys(I.value).map(function(J){Y[J]=T.defaultField}),Y=_i({},Y,I.rule.fields);var X={};Object.keys(Y).forEach(function(J){var G=Y[J],z=Array.isArray(G)?G:[G];X[J]=z.map(N.bind(null,J))});var K=new e(X);K.messages(f.messages),I.rule.options&&(I.rule.options.messages=f.messages,I.rule.options.error=f.error),K.validate(I.value,I.rule.options||f,function(J){var G=[];B&&B.length&&G.push.apply(G,B),J&&J.length&&G.push.apply(G,J),S(G.length?G:null)})}}var D;T.asyncValidator?D=T.asyncValidator(T,I.value,O,I.source,f):T.validator&&(D=T.validator(T,I.value,O,I.source,f),D===!0?O():D===!1?O(typeof T.message=="function"?T.message(T.fullField||T.field):T.message||(T.fullField||T.field)+" fails"):D instanceof Array?O(D):D instanceof Error&&O(D.message)),D&&D.then&&D.then(function(){return O()},function(x){return O(x)})},function(I){m(I)},c)},t.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!Yl.hasOwnProperty(o.type))throw new Error(Uo("Unknown rule type %s",o.type));return o.type||"string"},t.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var s=Object.keys(o),i=s.indexOf("message");return i!==-1&&s.splice(i,1),s.length===1&&s[0]==="required"?Yl.required:Yl[this.getType(o)]||void 0},e}();$u.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Yl[t]=n};$u.warning=pK;$u.messages=cp;$u.validators=Yl;const HK=["","error","validating","success"],zK=ct({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Xe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Xe([Object,Array])},error:String,validateStatus:{type:String,values:HK},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:ts}}),Zv="ElLabelWrap";var UK=ve({name:Zv,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=et(Jo,void 0);et(mr)||zn(Zv,"usage: <el-form-item><label-wrap /></el-form-item>");const s=Be("form"),i=F(),l=F(0),c=()=>{var m;if((m=i.value)!=null&&m.firstElementChild){const y=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(y))}else return 0},f=(m="update")=>{dt(()=>{t.default&&e.isAutoWidth&&(m==="update"?l.value=c():m==="remove"&&(n==null||n.deregisterLabelWidth(l.value)))})},p=()=>f("update");return kt(()=>{p()}),gn(()=>{f("remove")}),br(()=>p()),Re(l,(m,y)=>{e.updateAll&&(n==null||n.registerLabelWidth(m,y))}),nl($(()=>{var m,y;return(y=(m=i.value)==null?void 0:m.firstElementChild)!=null?y:null}),p),()=>{var m,y;if(!t)return null;const{isAutoWidth:v}=e;if(v){const w=n==null?void 0:n.autoLabelWidth,E={};if(w&&w!=="auto"){const I=Math.max(0,Number.parseInt(w,10)-l.value),S=n.labelPosition==="left"?"marginRight":"marginLeft";I&&(E[S]=`${I}px`)}return le("div",{ref:i,class:[s.be("item","label-wrap")],style:E},[(m=t.default)==null?void 0:m.call(t)])}else return le(at,{ref:i},[(y=t.default)==null?void 0:y.call(t)])}}});const WK=["for"],jK={name:"ElFormItem"},KK=ve(Qe(be({},jK),{props:zK,setup(e,{expose:t}){const n=e,o=Nu(),s=et(Jo,void 0),i=et(mr,void 0),l=Fn(void 0,{formItem:!1}),c=Be("form-item"),f=F(""),p=SD(f,100),m=F(""),y=F();let v,w=!1;const E=$(()=>{if((s==null?void 0:s.labelPosition)==="top")return{};const ne=Dr(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return ne?{width:ne}:{}}),I=$(()=>{if((s==null?void 0:s.labelPosition)==="top"||(s==null?void 0:s.inline))return{};if(!n.label&&!n.labelWidth&&D)return{};const ne=Dr(n.labelWidth||(s==null?void 0:s.labelWidth)||"");return!n.label&&!o.label?{marginLeft:ne}:{}}),S=$(()=>[c.b(),c.m(l.value),c.is("error",f.value==="error"),c.is("validating",f.value==="validating"),c.is("success",f.value==="success"),c.is("required",X.value||n.required),c.is("no-asterisk",s==null?void 0:s.hideRequiredAsterisk),{[c.m("feedback")]:s==null?void 0:s.statusIcon}]),T=$(()=>ao(n.inlineMessage)?n.inlineMessage:(s==null?void 0:s.inlineMessage)||!1),_=$(()=>[c.e("error"),{[c.em("error","inline")]:T.value}]),N=$(()=>n.prop?_t(n.prop)?n.prop:n.prop.join("."):""),O=$(()=>n.for||N.value),D=!!i,x=$(()=>{const ne=s==null?void 0:s.model;if(!(!ne||!n.prop))return Ec(ne,n.prop).value}),R=$(()=>{const ne=n.rules?iu(n.rules):[],Se=s==null?void 0:s.rules;if(Se&&n.prop){const Ee=Ec(Se,n.prop).value;Ee&&ne.push(...iu(Ee))}return n.required!==void 0&&ne.push({required:!!n.required}),ne}),B=$(()=>R.value.length>0),Y=ne=>R.value.filter(Ee=>!Ee.trigger||!ne?!0:Array.isArray(Ee.trigger)?Ee.trigger.includes(ne):Ee.trigger===ne).map(xe=>{var pe=xe,{trigger:Ee}=pe,qe=x1(pe,["trigger"]);return qe}),X=$(()=>R.value.some(ne=>ne.required===!0)),K=$(()=>{var ne;return p.value==="error"&&n.showMessage&&((ne=s==null?void 0:s.showMessage)!=null?ne:!0)}),J=$(()=>`${n.label||""}${(s==null?void 0:s.labelSuffix)||""}`),G=ne=>{f.value=ne},z=ne=>{var Se,Ee;const{errors:qe,fields:xe}=ne;(!qe||!xe)&&console.error(ne),G("error"),m.value=qe?(Ee=(Se=qe==null?void 0:qe[0])==null?void 0:Se.message)!=null?Ee:`${n.prop} is required`:"",s==null||s.emit("validate",n.prop,!1,m.value)},ee=()=>{G("success"),s==null||s.emit("validate",n.prop,!0,"")},j=async ne=>{const Se=N.value;return new $u({[Se]:ne}).validate({[Se]:x.value},{firstFields:!0}).then(()=>(ee(),!0)).catch(qe=>(z(qe),Promise.reject(qe)))},V=async(ne,Se)=>{if(w)return w=!1,!1;const Ee=It(Se);if(!B.value)return Se==null||Se(!1),!1;const qe=Y(ne);return qe.length===0?(Se==null||Se(!0),!0):(G("validating"),j(qe).then(()=>(Se==null||Se(!0),!0)).catch(xe=>{const{fields:pe}=xe;return Se==null||Se(!1,pe),Ee?!1:Promise.reject(pe)}))},q=()=>{G(""),m.value=""},ce=async()=>{const ne=s==null?void 0:s.model;if(!ne||!n.prop)return;const Se=Ec(ne,n.prop);Ko(Se.value,v)||(w=!0),Se.value=v,await dt(),q()};Re(()=>n.error,ne=>{m.value=ne||"",G(ne?"error":"")},{immediate:!0}),Re(()=>n.validateStatus,ne=>G(ne||""));const ue=nn(Qe(be({},Yn(n)),{$el:y,size:l,validateState:f,resetField:ce,clearValidate:q,validate:V}));return Pt(mr,ue),kt(()=>{n.prop&&(s==null||s.addField(ue),v=dO(x.value))}),gn(()=>{s==null||s.removeField(ue)}),t({size:l,validateMessage:m,validateState:f,validate:V,clearValidate:q,resetField:ce}),(ne,Se)=>{var Ee;return M(),W("div",{ref_key:"formItemRef",ref:y,class:P(k(S))},[le(k(UK),{"is-auto-width":k(E).width==="auto","update-all":((Ee=k(s))==null?void 0:Ee.labelWidth)==="auto"},{default:ae(()=>[ne.label||ne.$slots.label?(M(),W("label",{key:0,for:k(O),class:P(k(c).e("label")),style:st(k(E))},[Ie(ne.$slots,"label",{label:k(J)},()=>[Ht(Pe(k(J)),1)])],14,WK)):fe("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Q("div",{class:P(k(c).e("content")),style:st(k(I))},[Ie(ne.$slots,"default"),le($n,{name:`${k(c).namespace.value}-zoom-in-top`},{default:ae(()=>[k(K)?Ie(ne.$slots,"error",{key:0,error:m.value},()=>[Q("div",{class:P(k(_))},Pe(m.value),3)]):fe("v-if",!0)]),_:3},8,["name"])],6)],2)}}}));var zE=Ue(KK,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const YK=$t(uK,{FormItem:zE}),GK=_n(zE),XK=ct({urlList:{type:Xe(Array),default:()=>In([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1}}),qK={close:()=>!0,switch:e=>typeof e=="number"},ZK=["src"],QK={name:"ElImageViewer"},JK=ve(Qe(be({},QK),{props:XK,emits:qK,setup(e,{emit:t}){const n=e,o={CONTAIN:{name:"contain",icon:Ql(U$)},ORIGINAL:{name:"original",icon:Ql(sL)}},s=M0()?"DOMMouseScroll":"mousewheel",{t:i}=un(),l=Be("image-viewer"),{nextZIndex:c}=ws(),f=F(),p=F([]),m=cI(),y=F(!0),v=F(n.initialIndex),w=F(o.CONTAIN),E=F({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),I=$(()=>{const{urlList:j}=n;return j.length<=1}),S=$(()=>v.value===0),T=$(()=>v.value===n.urlList.length-1),_=$(()=>n.urlList[v.value]),N=$(()=>{const{scale:j,deg:V,offsetX:q,offsetY:ce,enableTransition:ue}=E.value;let ne=q/j,Se=ce/j;switch(V%360){case 90:case-270:[ne,Se]=[Se,-ne];break;case 180:case-180:[ne,Se]=[-ne,-Se];break;case 270:case-90:[ne,Se]=[-Se,ne];break}const Ee={transform:`scale(${j}) rotate(${V}deg) translate(${ne}px, ${Se}px)`,transition:ue?"transform .3s":""};return w.value.name===o.CONTAIN.name&&(Ee.maxWidth=Ee.maxHeight="100%"),Ee}),O=$(()=>Qt(n.zIndex)?n.zIndex:c());function D(){R(),t("close")}function x(){const j=$i(q=>{switch(q.code){case rt.esc:D();break;case rt.space:J();break;case rt.left:G();break;case rt.up:ee("zoomIn");break;case rt.right:z();break;case rt.down:ee("zoomOut");break}}),V=$i(q=>{(q.wheelDelta?q.wheelDelta:-q.detail)>0?ee("zoomIn",{zoomRate:1.2,enableTransition:!1}):ee("zoomOut",{zoomRate:1.2,enableTransition:!1})});m.run(()=>{Dn(document,"keydown",j),Dn(document,s,V)})}function R(){m.stop()}function B(){y.value=!1}function Y(j){y.value=!1,j.target.alt=i("el.image.error")}function X(j){if(y.value||j.button!==0||!f.value)return;E.value.enableTransition=!1;const{offsetX:V,offsetY:q}=E.value,ce=j.pageX,ue=j.pageY,ne=$i(Ee=>{E.value=Qe(be({},E.value),{offsetX:V+Ee.pageX-ce,offsetY:q+Ee.pageY-ue})}),Se=Dn(document,"mousemove",ne);Dn(document,"mouseup",()=>{Se()}),j.preventDefault()}function K(){E.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function J(){if(y.value)return;const j=Object.keys(o),V=Object.values(o),q=w.value.name,ue=(V.findIndex(ne=>ne.name===q)+1)%j.length;w.value=o[j[ue]],K()}function G(){if(S.value&&!n.infinite)return;const j=n.urlList.length;v.value=(v.value-1+j)%j}function z(){if(T.value&&!n.infinite)return;const j=n.urlList.length;v.value=(v.value+1)%j}function ee(j,V={}){if(y.value)return;const{zoomRate:q,rotateDeg:ce,enableTransition:ue}=be({zoomRate:1.4,rotateDeg:90,enableTransition:!0},V);switch(j){case"zoomOut":E.value.scale>.2&&(E.value.scale=Number.parseFloat((E.value.scale/q).toFixed(3)));break;case"zoomIn":E.value.scale<7&&(E.value.scale=Number.parseFloat((E.value.scale*q).toFixed(3)));break;case"clockwise":E.value.deg+=ce;break;case"anticlockwise":E.value.deg-=ce;break}E.value.enableTransition=ue}return Re(_,()=>{dt(()=>{const j=p.value[0];j!=null&&j.complete||(y.value=!0)})}),Re(v,j=>{K(),t("switch",j)}),kt(()=>{var j,V;x(),(V=(j=f.value)==null?void 0:j.focus)==null||V.call(j)}),(j,V)=>(M(),me(Iu,{to:"body",disabled:!j.teleported},[le($n,{name:"viewer-fade",appear:""},{default:ae(()=>[Q("div",{ref_key:"wrapper",ref:f,tabindex:-1,class:P(k(l).e("wrapper")),style:st({zIndex:k(O)})},[Q("div",{class:P(k(l).e("mask")),onClick:V[0]||(V[0]=vt(q=>j.hideOnClickModal&&D(),["self"]))},null,2),fe(" CLOSE "),Q("span",{class:P([k(l).e("btn"),k(l).e("close")]),onClick:D},[le(k(yt),null,{default:ae(()=>[le(k(gr))]),_:1})],2),fe(" ARROW "),k(I)?fe("v-if",!0):(M(),W(at,{key:0},[Q("span",{class:P([k(l).e("btn"),k(l).e("prev"),k(l).is("disabled",!j.infinite&&k(S))]),onClick:G},[le(k(yt),null,{default:ae(()=>[le(k(Ji))]),_:1})],2),Q("span",{class:P([k(l).e("btn"),k(l).e("next"),k(l).is("disabled",!j.infinite&&k(T))]),onClick:z},[le(k(yt),null,{default:ae(()=>[le(k(wr))]),_:1})],2)],64)),fe(" ACTIONS "),Q("div",{class:P([k(l).e("btn"),k(l).e("actions")])},[Q("div",{class:P(k(l).e("actions__inner"))},[le(k(yt),{onClick:V[1]||(V[1]=q=>ee("zoomOut"))},{default:ae(()=>[le(k(XL))]),_:1}),le(k(yt),{onClick:V[2]||(V[2]=q=>ee("zoomIn"))},{default:ae(()=>[le(k($w))]),_:1}),Q("i",{class:P(k(l).e("actions__divider"))},null,2),le(k(yt),{onClick:J},{default:ae(()=>[(M(),me(Xt(w.value.icon)))]),_:1}),Q("i",{class:P(k(l).e("actions__divider"))},null,2),le(k(yt),{onClick:V[3]||(V[3]=q=>ee("anticlockwise"))},{default:ae(()=>[le(k(YR))]),_:1}),le(k(yt),{onClick:V[4]||(V[4]=q=>ee("clockwise"))},{default:ae(()=>[le(k(JR))]),_:1})],2)],2),fe(" CANVAS "),Q("div",{class:P(k(l).e("canvas"))},[(M(!0),W(at,null,zt(j.urlList,(q,ce)=>bt((M(),W("img",{ref_for:!0,ref:ue=>p.value[ce]=ue,key:q,src:q,style:st(k(N)),class:P(k(l).e("img")),onLoad:B,onError:Y,onMousedown:X},null,46,ZK)),[[Zt,ce===v.value]])),128))],2),Ie(j.$slots,"default")],6)]),_:3})],8,["disabled"]))}}));var eY=Ue(JK,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const UE=$t(eY),tY=ct({appendToBody:{type:Boolean,default:void 0},hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},lazy:{type:Boolean,default:!1},scrollContainer:{type:Xe([String,Object])},previewSrcList:{type:Xe(Array),default:()=>In([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0}}),nY={error:e=>e instanceof Event,switch:e=>Qt(e),close:()=>!0},oY=["src"],rY={key:0},sY={name:"ElImage"},iY=ve(Qe(be({},sY),{props:tY,emits:nY,setup(e,{emit:t}){const n=e;let o="";Ou({scope:"el-image",from:"append-to-body",replacement:"preview-teleported",version:"2.2.0",ref:"https://element-plus.org/en-US/component/image.html#image-attributess"},$(()=>ao(n.appendToBody)));const{t:s}=un(),i=Be("image"),l=O0(),c=F(!1),f=F(!0),p=F(0),m=F(0),y=F(!1),v=F(),w=F();let E,I;const S=$(()=>l.value.style),T=$(()=>{const{fit:j}=n;return jt&&j?{objectFit:j}:{}}),_=$(()=>{const{previewSrcList:j}=n;return Array.isArray(j)&&j.length>0}),N=$(()=>n.appendToBody||n.previewTeleported),O=$(()=>{const{previewSrcList:j,initialIndex:V}=n;let q=V;return V>j.length-1&&(q=0),q}),D=()=>{if(!jt)return;f.value=!0,c.value=!1;const j=new Image,V=n.src;j.addEventListener("load",q=>{V===n.src&&x(q,j)}),j.addEventListener("error",q=>{V===n.src&&R(q)}),Object.entries(l.value).forEach(([q,ce])=>{q.toLowerCase()!=="onload"&&j.setAttribute(q,ce)}),j.src=V};function x(j,V){p.value=V.width,m.value=V.height,f.value=!1,c.value=!1}function R(j){f.value=!1,c.value=!0,t("error",j)}function B(){OD(v.value,w.value)&&(D(),K())}const Y=_w(B,200);async function X(){var j;if(!jt)return;await dt();const{scrollContainer:V}=n;Wi(V)?w.value=V:_t(V)&&V!==""?w.value=(j=document.querySelector(V))!=null?j:void 0:v.value&&(w.value=_0(v.value)),w.value&&(E=Dn(w,"scroll",Y),setTimeout(()=>B(),100))}function K(){!jt||!w.value||!Y||(E(),w.value=void 0)}function J(j){if(!!j.ctrlKey){if(j.deltaY<0)return j.preventDefault(),!1;if(j.deltaY>0)return j.preventDefault(),!1}}function G(){!_.value||(I=Dn("wheel",J,{passive:!1}),o=document.body.style.overflow,document.body.style.overflow="hidden",y.value=!0)}function z(){I==null||I(),document.body.style.overflow=o,y.value=!1,t("close")}function ee(j){t("switch",j)}return Re(()=>n.src,()=>{n.lazy?(f.value=!0,c.value=!1,K(),X()):D()}),kt(()=>{n.lazy?X():D()}),(j,V)=>(M(),W("div",{ref_key:"container",ref:v,class:P([k(i).b(),j.$attrs.class]),style:st(k(S))},[f.value?Ie(j.$slots,"placeholder",{key:0},()=>[Q("div",{class:P(k(i).e("placeholder"))},null,2)]):c.value?Ie(j.$slots,"error",{key:1},()=>[Q("div",{class:P(k(i).e("error"))},Pe(k(s)("el.image.error")),3)]):(M(),W("img",pn({key:2},k(l),{src:j.src,style:k(T),class:[k(i).e("inner"),k(_)?k(i).e("preview"):""],onClick:G}),null,16,oY)),k(_)?(M(),W(at,{key:3},[y.value?(M(),me(k(UE),{key:0,"z-index":j.zIndex,"initial-index":k(O),infinite:j.infinite,"url-list":j.previewSrcList,"hide-on-click-modal":j.hideOnClickModal,teleported:k(N),onClose:z,onSwitch:ee},{default:ae(()=>[j.$slots.viewer?(M(),W("div",rY,[Ie(j.$slots,"viewer")])):fe("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported"])):fe("v-if",!0)],2112)):fe("v-if",!0)],6))}}));var aY=Ue(iY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const lY=$t(aY),uY=ct({step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:{type:Number},disabled:{type:Boolean,default:!1},size:{type:String,values:ts},controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)}}),cY={change:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,input:e=>Qt(e),"update:modelValue":e=>Qt(e)||e===void 0},dY=ve({name:"ElInputNumber",components:{ElInput:Cr,ElIcon:yt,ArrowUp:xu,ArrowDown:Qi,Plus:Ow,Minus:fR},directives:{RepeatClick:PC},props:uY,emits:cY,setup(e,{emit:t}){const n=F(),o=nn({currentValue:e.modelValue,userInput:null}),{formItem:s}=il(),i=Be("input-number"),l=$(()=>I(e.modelValue,-1)<e.min),c=$(()=>I(e.modelValue)>e.max),f=$(()=>{const X=E(e.step);return zo(e.precision)?Math.max(E(e.modelValue),X):(X>e.precision,e.precision)}),p=$(()=>e.controls&&e.controlsPosition==="right"),m=Fn(),y=ea(),v=$(()=>{if(o.userInput!==null)return o.userInput;let X=o.currentValue;if(Qt(X)){if(Number.isNaN(X))return"";zo(e.precision)||(X=X.toFixed(e.precision))}return X}),w=(X,K)=>(zo(K)&&(K=f.value),Number.parseFloat(`${Math.round(X*10**K)/10**K}`)),E=X=>{if(zo(X))return 0;const K=X.toString(),J=K.indexOf(".");let G=0;return J!==-1&&(G=K.length-J-1),G},I=(X,K=1)=>Qt(X)?(X=Qt(X)?X:Number.NaN,w(X+e.step*K)):o.currentValue,S=()=>{if(y.value||c.value)return;const X=e.modelValue||0,K=I(X);N(K)},T=()=>{if(y.value||l.value)return;const X=e.modelValue||0,K=I(X,-1);N(K)},_=(X,K)=>{const{max:J,min:G,step:z,precision:ee,stepStrictly:j}=e;let V=Number(X);return X===null&&(V=Number.NaN),Number.isNaN(V)||(j&&(V=Math.round(V/z)*z),zo(ee)||(V=w(V,ee)),(V>J||V<G)&&(V=V>J?J:G,K&&t("update:modelValue",V))),V},N=X=>{var K;const J=o.currentValue;let G=_(X);J!==G&&(Number.isNaN(G)&&(G=void 0),o.userInput=null,t("update:modelValue",G),t("input",G),t("change",G,J),(K=s==null?void 0:s.validate)==null||K.call(s,"change").catch(z=>void 0),o.currentValue=G)},O=X=>o.userInput=X,D=X=>{const K=X!==""?Number(X):"";(Qt(K)&&!Number.isNaN(K)||X==="")&&N(K),o.userInput=null},x=()=>{var X,K;(K=(X=n.value)==null?void 0:X.focus)==null||K.call(X)},R=()=>{var X,K;(K=(X=n.value)==null?void 0:X.blur)==null||K.call(X)},B=X=>{t("focus",X)},Y=X=>{var K;t("blur",X),(K=s==null?void 0:s.validate)==null||K.call(s,"blur").catch(J=>void 0)};return Re(()=>e.modelValue,X=>{const K=_(X,!0);o.currentValue=K,o.userInput=null},{immediate:!0}),kt(()=>{var X;const K=(X=n.value)==null?void 0:X.input;if(K.setAttribute("role","spinbutton"),K.setAttribute("aria-valuemax",String(e.max)),K.setAttribute("aria-valuemin",String(e.min)),K.setAttribute("aria-valuenow",String(o.currentValue)),K.setAttribute("aria-disabled",String(y.value)),!Qt(e.modelValue)){let J=Number(e.modelValue);Number.isNaN(J)&&(J=void 0),t("update:modelValue",J)}}),br(()=>{var X;const K=(X=n.value)==null?void 0:X.input;K==null||K.setAttribute("aria-valuenow",o.currentValue)}),{input:n,displayValue:v,handleInput:O,handleInputChange:D,controlsAtRight:p,decrease:T,increase:S,inputNumberSize:m,inputNumberDisabled:y,maxDisabled:c,minDisabled:l,focus:x,blur:R,handleFocus:B,handleBlur:Y,ns:i}}});function fY(e,t,n,o,s,i){const l=Ae("arrow-down"),c=Ae("minus"),f=Ae("el-icon"),p=Ae("arrow-up"),m=Ae("plus"),y=Ae("el-input"),v=qo("repeat-click");return M(),W("div",{class:P([e.ns.b(),e.ns.m(e.inputNumberSize),e.ns.is("disabled",e.inputNumberDisabled),e.ns.is("without-controls",!e.controls),e.ns.is("controls-right",e.controlsAtRight)]),onDragstart:t[2]||(t[2]=vt(()=>{},["prevent"]))},[e.controls?bt((M(),W("span",{key:0,role:"button",class:P([e.ns.e("decrease"),e.ns.is("disabled",e.minDisabled)]),onKeydown:t[0]||(t[0]=Ft((...w)=>e.decrease&&e.decrease(...w),["enter"]))},[le(f,null,{default:ae(()=>[e.controlsAtRight?(M(),me(l,{key:0})):(M(),me(c,{key:1}))]),_:1})],34)),[[v,e.decrease]]):fe("v-if",!0),e.controls?bt((M(),W("span",{key:1,role:"button",class:P([e.ns.e("increase"),e.ns.is("disabled",e.maxDisabled)]),onKeydown:t[1]||(t[1]=Ft((...w)=>e.increase&&e.increase(...w),["enter"]))},[le(f,null,{default:ae(()=>[e.controlsAtRight?(M(),me(p,{key:0})):(M(),me(m,{key:1}))]),_:1})],34)),[[v,e.increase]]):fe("v-if",!0),le(y,{ref:"input",type:"number",step:e.step,"model-value":e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onKeydown:[Ft(vt(e.increase,["prevent"]),["up"]),Ft(vt(e.decrease,["prevent"]),["down"])],onBlur:e.handleBlur,onFocus:e.handleFocus,onInput:e.handleInput,onChange:e.handleInputChange},null,8,["step","model-value","placeholder","disabled","size","max","min","name","label","onKeydown","onBlur","onFocus","onInput","onChange"])],34)}var hY=Ue(dY,[["render",fY],["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const WE=$t(hY),pY=ct({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:uo,default:""}}),gY={click:e=>e instanceof MouseEvent},mY=["href"],vY={name:"ElLink"},yY=ve(Qe(be({},vY),{props:pY,emits:gY,setup(e,{emit:t}){const n=e,o=Be("link");function s(i){n.disabled||t("click",i)}return(i,l)=>(M(),W("a",{class:P([k(o).b(),k(o).m(i.type),k(o).is("disabled",i.disabled),k(o).is("underline",i.underline&&!i.disabled)]),href:i.disabled||!i.href?void 0:i.href,onClick:s},[i.icon?(M(),me(k(yt),{key:0},{default:ae(()=>[(M(),me(Xt(i.icon)))]),_:1})):fe("v-if",!0),i.$slots.default?(M(),W("span",{key:1,class:P(k(o).e("inner"))},[Ie(i.$slots,"default")],2)):fe("v-if",!0),i.$slots.icon?Ie(i.$slots,"icon",{key:2}):fe("v-if",!0)],10,mY))}}));var bY=Ue(yY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const wY=$t(bY);class CY{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",o=>{let s=!1;switch(o.code){case rt.down:{this.gotoSubIndex(this.subIndex+1),s=!0;break}case rt.up:{this.gotoSubIndex(this.subIndex-1),s=!0;break}case rt.tab:{wc(t,"mouseleave");break}case rt.enter:case rt.space:{s=!0,o.currentTarget.click();break}}return s&&(o.preventDefault(),o.stopPropagation()),!1})})}}class EY{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new CY(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case rt.down:{wc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case rt.up:{wc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case rt.tab:{wc(t.currentTarget,"mouseleave");break}case rt.enter:case rt.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class SY{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(o=>{o.nodeType===1&&new EY(o,t)})}}const AY=ve({name:"ElMenuCollapseTransition",setup(){const e=Be("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,o){qr(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",o()},onAfterEnter(n){Do(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),xr(n,e.m("collapse"))?(Do(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),qr(n,e.m("collapse"))):(qr(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Do(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){qr(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function TY(e,t,n,o,s,i){return M(),me($n,pn({mode:"out-in"},e.listeners),{default:ae(()=>[Ie(e.$slots,"default")]),_:3},16)}var IY=Ue(AY,[["render",TY],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function jE(e,t){const n=et("rootMenu");n||zn("useMenu","can not inject root menu");const o=$(()=>{let l=e.parent;const c=[t.value];for(;l.type.name!=="ElMenu";)l.props.index&&c.unshift(l.props.index),l=l.parent;return c}),s=$(()=>{let l=e.parent;for(;l&&!["ElMenu","ElSubMenu"].includes(l.type.name);)l=l.parent;return l}),i=$(()=>{let l=e.parent;if(n.props.mode!=="vertical")return{};let c=20;if(n.props.collapse)c=20;else for(;l&&l.type.name!=="ElMenu";)l.type.name==="ElSubMenu"&&(c+=20),l=l.parent;return{paddingLeft:`${c}px`}});return{parentMenu:s,paddingStyle:i,indexPath:o}}function _Y(e){return $(()=>{const n=e.backgroundColor;return n?new NC(n).shade(20).toString():""})}const KE=e=>$(()=>({"--el-menu-text-color":e.textColor||"","--el-menu-hover-text-color":e.textColor||"","--el-menu-bg-color":e.backgroundColor||"","--el-menu-hover-bg-color":_Y(e).value||"","--el-menu-active-color":e.activeTextColor||""})),NY=ct({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6}}),oh="ElSubMenu";var Z0=ve({name:oh,props:NY,setup(e,{slots:t,expose:n}){const o=Dt(),{paddingStyle:s,indexPath:i,parentMenu:l}=jE(o,$(()=>e.index)),c=Be("menu"),f=Be("sub-menu"),p=et("rootMenu");p||zn(oh,"can not inject root menu");const m=et(`subMenu:${l.value.uid}`);m||zn(oh,"can not inject sub menu");const y=F({}),v=F({});let w;const E=F(!1),I=F(),S=F(null),T=$(()=>J.value==="horizontal"&&N.value?"bottom-start":"right-start"),_=$(()=>J.value==="horizontal"&&N.value||J.value==="vertical"&&!p.props.collapse?Qi:wr),N=$(()=>{let ue=!0,ne=o.parent;for(;ne&&ne.type.name!=="ElMenu";)if(["ElSubMenu","ElMenuItemGroup"].includes(ne.type.name)){ue=!1;break}else ne=ne.parent;return ue}),O=$(()=>e.popperAppendToBody===void 0?N.value:Boolean(e.popperAppendToBody)),D=$(()=>p.props.collapse?`${c.namespace.value}-zoom-in-left`:`${c.namespace.value}-zoom-in-top`),x=$(()=>J.value==="horizontal"&&N.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),R=$(()=>p.openedMenus.includes(e.index)),B=$(()=>{let ue=!1;return Object.values(y.value).forEach(ne=>{ne.active&&(ue=!0)}),Object.values(v.value).forEach(ne=>{ne.active&&(ue=!0)}),ue}),Y=$(()=>p.props.backgroundColor||""),X=$(()=>p.props.activeTextColor||""),K=$(()=>p.props.textColor||""),J=$(()=>p.props.mode),G=nn({index:e.index,indexPath:i,active:B}),z=$(()=>J.value!=="horizontal"?{color:K.value}:{borderBottomColor:B.value?p.props.activeTextColor?X.value:"":"transparent",color:B.value?X.value:K.value}),ee=()=>{var ue,ne,Se;return(Se=(ne=(ue=S.value)==null?void 0:ue.popperRef)==null?void 0:ne.popperInstanceRef)==null?void 0:Se.destroy()},j=ue=>{ue||ee()},V=()=>{p.props.menuTrigger==="hover"&&p.props.mode==="horizontal"||p.props.collapse&&p.props.mode==="vertical"||e.disabled||p.handleSubMenuClick({index:e.index,indexPath:i.value,active:B.value})},q=(ue,ne=e.showTimeout)=>{var Se;ue.type==="focus"&&!ue.relatedTarget||p.props.menuTrigger==="click"&&p.props.mode==="horizontal"||!p.props.collapse&&p.props.mode==="vertical"||e.disabled||(m.mouseInChild.value=!0,w==null||w(),{stop:w}=Ui(()=>{p.openMenu(e.index,i.value)},ne),O.value&&((Se=l.value.vnode.el)==null||Se.dispatchEvent(new MouseEvent("mouseenter"))))},ce=(ue=!1)=>{var ne,Se;p.props.menuTrigger==="click"&&p.props.mode==="horizontal"||!p.props.collapse&&p.props.mode==="vertical"||(w==null||w(),m.mouseInChild.value=!1,{stop:w}=Ui(()=>!E.value&&p.closeMenu(e.index,i.value),e.hideTimeout),O.value&&ue&&((ne=o.parent)==null?void 0:ne.type.name)==="ElSubMenu"&&((Se=m.handleMouseleave)==null||Se.call(m,!0)))};Re(()=>p.props.collapse,ue=>j(Boolean(ue)));{const ue=Se=>{v.value[Se.index]=Se},ne=Se=>{delete v.value[Se.index]};Pt(`subMenu:${o.uid}`,{addSubMenu:ue,removeSubMenu:ne,handleMouseleave:ce,mouseInChild:E})}return n({opened:R}),kt(()=>{p.addSubMenu(G),m.addSubMenu(G)}),gn(()=>{m.removeSubMenu(G),p.removeSubMenu(G)}),()=>{var ue;const ne=[(ue=t.title)==null?void 0:ue.call(t),it(yt,{class:f.e("icon-arrow")},{default:()=>it(_.value)})],Se=KE(p.props),Ee=p.isMenuPopup?it(Ro,{ref:S,visible:R.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:T.value,teleported:O.value,fallbackPlacements:x.value,transition:D.value,gpuAcceleration:!1},{content:()=>{var qe;return it("div",{class:[c.m(J.value),e.popperClass],onMouseenter:xe=>q(xe,100),onMouseleave:()=>ce(!0),onFocus:xe=>q(xe,100)},[it("ul",{class:[c.b(),c.m("popup"),c.m(`popup-${T.value}`)],style:Se.value},[(qe=t.default)==null?void 0:qe.call(t)])])},default:()=>it("div",{class:f.e("title"),style:[s.value,z.value,{backgroundColor:Y.value}],onClick:V},ne)}):it(at,{},[it("div",{class:f.e("title"),style:[s.value,z.value,{backgroundColor:Y.value}],ref:I,onClick:V},ne),it(of,{},{default:()=>{var qe;return bt(it("ul",{role:"menu",class:[c.b(),c.m("inline")],style:Se.value},[(qe=t.default)==null?void 0:qe.call(t)]),[[Zt,R.value]])}})]);return it("li",{class:[f.b(),f.is("active",B.value),f.is("opened",R.value),f.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:R.value,onMouseenter:q,onMouseleave:()=>ce(!0),onFocus:q},[Ee])}}});const kY=ct({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Xe(Array),default:()=>In([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),rh=e=>Array.isArray(e)&&e.every(t=>_t(t)),xY={close:(e,t)=>_t(e)&&rh(t),open:(e,t)=>_t(e)&&rh(t),select:(e,t,n,o)=>_t(e)&&rh(t)&&Kt(n)&&(o===void 0||o instanceof Promise)};var MY=ve({name:"ElMenu",props:kY,emits:xY,setup(e,{emit:t,slots:n,expose:o}){const s=Dt(),i=s.appContext.config.globalProperties.$router,l=F(),c=Be("menu"),f=Be("sub-menu"),p=F(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),m=F(e.defaultActive),y=F({}),v=F({}),w=$(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),E=()=>{const R=m.value&&y.value[m.value];if(!R||e.mode==="horizontal"||e.collapse)return;R.indexPath.forEach(Y=>{const X=v.value[Y];X&&I(Y,X.indexPath)})},I=(R,B)=>{p.value.includes(R)||(e.uniqueOpened&&(p.value=p.value.filter(Y=>B.includes(Y))),p.value.push(R),t("open",R,B))},S=(R,B)=>{const Y=p.value.indexOf(R);Y!==-1&&p.value.splice(Y,1),t("close",R,B)},T=({index:R,indexPath:B})=>{p.value.includes(R)?S(R,B):I(R,B)},_=R=>{(e.mode==="horizontal"||e.collapse)&&(p.value=[]);const{index:B,indexPath:Y}=R;if(!(B===void 0||Y===void 0))if(e.router&&i){const X=R.route||B,K=i.push(X).then(J=>(J||(m.value=B),J));t("select",B,Y,{index:B,indexPath:Y,route:X},K)}else m.value=B,t("select",B,Y,{index:B,indexPath:Y})},N=R=>{const B=y.value,Y=B[R]||m.value&&B[m.value]||B[e.defaultActive];Y?(m.value=Y.index,E()):m.value=R},O=()=>{dt(()=>s.proxy.$forceUpdate())};Re(()=>e.defaultActive,R=>{y.value[R]||(m.value=""),N(R)}),Re(y.value,()=>E()),Re(()=>e.collapse,R=>{R&&(p.value=[])});{const R=K=>{v.value[K.index]=K},B=K=>{delete v.value[K.index]};Pt("rootMenu",nn({props:e,openedMenus:p,items:y,subMenus:v,activeIndex:m,isMenuPopup:w,addMenuItem:K=>{y.value[K.index]=K},removeMenuItem:K=>{delete y.value[K.index]},addSubMenu:R,removeSubMenu:B,openMenu:I,closeMenu:S,handleMenuItemClick:_,handleSubMenuClick:T})),Pt(`subMenu:${s.uid}`,{addSubMenu:R,removeSubMenu:B,mouseInChild:F(!1)})}kt(()=>{E(),e.mode==="horizontal"&&new SY(s.vnode.el,c.namespace.value)}),o({open:B=>{const{indexPath:Y}=v.value[B];Y.forEach(X=>I(X,Y))},close:S,handleResize:O});const D=R=>{const B=Array.isArray(R)?R:[R],Y=[];return B.forEach(X=>{Array.isArray(X.children)?Y.push(...D(X.children)):Y.push(X)}),Y},x=R=>e.mode==="horizontal"?bt(R,[[BB,O]]):R;return()=>{var R,B,Y,X;let K=(B=(R=n.default)==null?void 0:R.call(n))!=null?B:[];const J=[];if(e.mode==="horizontal"&&l.value){const j=Array.from((X=(Y=l.value)==null?void 0:Y.childNodes)!=null?X:[]).filter(pe=>pe.nodeName!=="#text"||pe.nodeValue),V=D(K),q=64,ce=Number.parseInt(getComputedStyle(l.value).paddingLeft,10),ue=Number.parseInt(getComputedStyle(l.value).paddingRight,10),ne=l.value.clientWidth-ce-ue;let Se=0,Ee=0;j.forEach((pe,Me)=>{Se+=pe.offsetWidth||0,Se<=ne-q&&(Ee=Me+1)});const qe=V.slice(0,Ee),xe=V.slice(Ee);(xe==null?void 0:xe.length)&&e.ellipsis&&(K=qe,J.push(it(Z0,{index:"sub-menu-more",class:f.e("hide-arrow")},{title:()=>it(yt,{class:f.e("icon-more")},{default:()=>it(AR)}),default:()=>xe})))}const G=KE(e),ee=(j=>e.ellipsis?x(j):j)(it("ul",{key:String(e.collapse),role:"menubar",ref:l,style:G.value,class:{[c.b()]:!0,[c.m("horizontal")]:e.mode==="horizontal",[c.m("collapse")]:e.collapse}},[...K,...J]));return e.collapseTransition&&e.mode==="vertical"?it(IY,()=>ee):ee}}});const OY=ct({index:{type:Xe([String,null]),default:null},route:{type:Xe([String,Object])},disabled:Boolean}),DY={click:e=>_t(e.index)&&Array.isArray(e.indexPath)},sh="ElMenuItem",$Y=ve({name:sh,components:{ElTooltip:Ro},props:OY,emits:DY,setup(e,{emit:t}){const n=Dt(),o=et("rootMenu"),s=Be("menu"),i=Be("menu-item");o||zn(sh,"can not inject root menu");const{parentMenu:l,paddingStyle:c,indexPath:f}=jE(n,Un(e,"index")),p=et(`subMenu:${l.value.uid}`);p||zn(sh,"can not inject sub menu");const m=$(()=>e.index===o.activeIndex),y=nn({index:e.index,indexPath:f,active:m}),v=()=>{e.disabled||(o.handleMenuItemClick({index:e.index,indexPath:f.value,route:e.route}),t("click",y))};return kt(()=>{p.addSubMenu(y),o.addMenuItem(y)}),gn(()=>{p.removeSubMenu(y),o.removeMenuItem(y)}),{Effect:n9,parentMenu:l,rootMenu:o,paddingStyle:c,active:m,nsMenu:s,nsMenuItem:i,handleClick:v}}});function RY(e,t,n,o,s,i){const l=Ae("el-tooltip");return M(),W("li",{class:P([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",style:st(e.paddingStyle),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(M(),me(l,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:ae(()=>[Ie(e.$slots,"title")]),default:ae(()=>[Q("div",{class:P(e.nsMenu.be("tooltip","trigger"))},[Ie(e.$slots,"default")],2)]),_:3},8,["effect"])):(M(),W(at,{key:1},[Ie(e.$slots,"default"),Ie(e.$slots,"title")],64))],6)}var YE=Ue($Y,[["render",RY],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const LY={title:String},Qv="ElMenuItemGroup",PY=ve({name:Qv,props:LY,setup(){const e=Dt(),t=et("rootMenu");t||zn(Qv,"can not inject root menu");const n=Be("menu-item-group");return{levelPadding:$(()=>{if(t.props.collapse)return 20;let s=20,i=e.parent;for(;i&&i.type.name!=="ElMenu";)i.type.name==="ElSubMenu"&&(s+=20),i=i.parent;return s}),ns:n}}});function BY(e,t,n,o,s,i){return M(),W("li",{class:P(e.ns.b())},[Q("div",{class:P(e.ns.e("title")),style:st({paddingLeft:`${e.levelPadding}px`})},[e.$slots.title?Ie(e.$slots,"title",{key:1}):(M(),W(at,{key:0},[Ht(Pe(e.title),1)],2112))],6),Q("ul",null,[Ie(e.$slots,"default")])],2)}var GE=Ue(PY,[["render",BY],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const FY=$t(MY,{MenuItem:YE,MenuItemGroup:GE,SubMenu:Z0}),VY=_n(YE),HY=_n(GE);_n(Z0);const zY=ct({icon:{type:uo,default:()=>f5},title:String,content:{type:String,default:""}}),UY={back:()=>!0},WY={name:"ElPageHeader"},jY=ve(Qe(be({},WY),{props:zY,emits:UY,setup(e,{emit:t}){const{t:n}=un(),o=Be("page-header");function s(){t("back")}return(i,l)=>(M(),W("div",{class:P(k(o).b())},[Q("div",{class:P(k(o).e("left")),onClick:s},[i.icon||i.$slots.icon?(M(),W("div",{key:0,class:P(k(o).e("icon"))},[Ie(i.$slots,"icon",{},()=>[i.icon?(M(),me(k(yt),{key:0},{default:ae(()=>[(M(),me(Xt(i.icon)))]),_:1})):fe("v-if",!0)])],2)):fe("v-if",!0),Q("div",{class:P(k(o).e("title"))},[Ie(i.$slots,"title",{},()=>[Ht(Pe(i.title||k(n)("el.pageHeader.title")),1)])],2)],2),Q("div",{class:P(k(o).e("content"))},[Ie(i.$slots,"content",{},()=>[Ht(Pe(i.content),1)])],2)],2))}}));var KY=Ue(jY,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const YY=$t(KY),GY={disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String,default:""}},XY=ve({name:"ElPaginationPrev",components:{ElIcon:yt,ArrowLeft:Ji},props:GY,emits:["click"],setup(e){return{internalDisabled:$(()=>e.disabled||e.currentPage<=1)}}}),qY=["disabled","aria-disabled"],ZY={key:0};function QY(e,t,n,o,s,i){const l=Ae("arrow-left"),c=Ae("el-icon");return M(),W("button",{type:"button",class:"btn-prev",disabled:e.internalDisabled,"aria-disabled":e.internalDisabled,onClick:t[0]||(t[0]=f=>e.$emit("click",f))},[e.prevText?(M(),W("span",ZY,Pe(e.prevText),1)):(M(),me(c,{key:1},{default:ae(()=>[le(l)]),_:1}))],8,qY)}var JY=Ue(XY,[["render",QY],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const eG={disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String,default:""}},tG=ve({name:"ElPaginationNext",components:{ElIcon:yt,ArrowRight:wr},props:eG,emits:["click"],setup(e){return{internalDisabled:$(()=>e.disabled||e.currentPage===e.pageCount||e.pageCount===0)}}}),nG=["disabled","aria-disabled"],oG={key:0};function rG(e,t,n,o,s,i){const l=Ae("arrow-right"),c=Ae("el-icon");return M(),W("button",{type:"button",class:"btn-next",disabled:e.internalDisabled,"aria-disabled":e.internalDisabled,onClick:t[0]||(t[0]=f=>e.$emit("click",f))},[e.nextText?(M(),W("span",oG,Pe(e.nextText),1)):(M(),me(c,{key:1},{default:ae(()=>[le(l)]),_:1}))],8,nG)}var sG=Ue(tG,[["render",rG],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const XE="ElSelectGroup",rf="ElSelect";function iG(e,t){const n=et(rf),o=et(XE,{disabled:!1}),s=$(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=$(()=>n.props.multiple?y(n.props.modelValue,e.value):v(e.value,n.props.modelValue)),l=$(()=>{if(n.props.multiple){const I=n.props.modelValue||[];return!i.value&&I.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),c=$(()=>e.label||(s.value?"":e.value)),f=$(()=>e.value||e.label||""),p=$(()=>e.disabled||t.groupDisabled||l.value),m=Dt(),y=(I=[],S)=>{if(s.value){const T=n.props.valueKey;return I&&I.some(_=>An(_,T)===An(S,T))}else return I&&I.includes(S)},v=(I,S)=>{if(s.value){const{valueKey:T}=n.props;return An(I,T)===An(S,T)}else return I===S},w=()=>{!e.disabled&&!o.disabled&&(n.hoverIndex=n.optionsArray.indexOf(m.proxy))};Re(()=>c.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Re(()=>e.value,(I,S)=>{const{remote:T,valueKey:_}=n.props;if(!e.created&&!T){if(_&&typeof I=="object"&&typeof S=="object"&&I[_]===S[_])return;n.setSelected()}}),Re(()=>o.disabled,()=>{t.groupDisabled=o.disabled},{immediate:!0});const{queryChange:E}=an(n);return Re(E,I=>{const{query:S}=k(I),T=new RegExp(LD(S),"i");t.visible=T.test(c.value)||e.created,t.visible||n.filteredOptionsCount--}),{select:n,currentLabel:c,currentValue:f,itemSelected:i,isDisabled:p,hoverItem:w}}const aG=ve({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Be("select"),n=nn({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:o,itemSelected:s,isDisabled:i,select:l,hoverItem:c}=iG(e,n),{visible:f,hover:p}=Yn(n),m=Dt().proxy,y=m.value;l.onOptionCreate(m),gn(()=>{const{selected:w}=l,I=(l.props.multiple?w:[w]).some(S=>S.value===m.value);l.cachedOptions.get(y)===m&&!I&&dt(()=>{l.cachedOptions.delete(y)}),l.onOptionDestroy(y,m)});function v(){e.disabled!==!0&&n.groupDisabled!==!0&&l.handleOptionSelect(m,!0)}return{ns:t,currentLabel:o,itemSelected:s,isDisabled:i,select:l,hoverItem:c,visible:f,hover:p,selectOptionClick:v,states:n}}});function lG(e,t,n,o,s,i){return bt((M(),W("li",{class:P([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...l)=>e.hoverItem&&e.hoverItem(...l)),onClick:t[1]||(t[1]=vt((...l)=>e.selectOptionClick&&e.selectOptionClick(...l),["stop"]))},[Ie(e.$slots,"default",{},()=>[Q("span",null,Pe(e.currentLabel),1)])],34)),[[Zt,e.visible]])}var Q0=Ue(aG,[["render",lG],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const uG=ve({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=et(rf),t=Be("select"),n=$(()=>e.props.popperClass),o=$(()=>e.props.multiple),s=$(()=>e.props.fitInputWidth),i=F("");function l(){var c;i.value=`${(c=e.selectWrapper)==null?void 0:c.getBoundingClientRect().width}px`}return kt(()=>{l(),ol(e.selectWrapper,l)}),gn(()=>{rl(e.selectWrapper,l)}),{ns:t,minWidth:i,popperClass:n,isMultiple:o,isFitInputWidth:s}}});function cG(e,t,n,o,s,i){return M(),W("div",{class:P([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:st({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Ie(e.$slots,"default")],6)}var dG=Ue(uG,[["render",cG],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function fG(e){const{t}=un();return nn({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const hG=(e,t,n)=>{const{t:o}=un(),s=Be("select"),i=F(null),l=F(null),c=F(null),f=F(null),p=F(null),m=F(null),y=F(-1),v=Hn({query:""}),w=Hn(""),E=et(Jo,{}),I=et(mr,{}),S=$(()=>!e.filterable||e.multiple||!t.visible),T=$(()=>e.disabled||E.disabled),_=$(()=>{const we=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!T.value&&t.inputHovering&&we}),N=$(()=>e.remote&&e.filterable?"":e.suffixIcon),O=$(()=>s.is("reverse",N.value&&t.visible)),D=$(()=>e.remote?300:0),x=$(()=>e.loading?e.loadingText||o("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||o("el.select.noMatch"):t.options.size===0?e.noDataText||o("el.select.noData"):null),R=$(()=>Array.from(t.options.values())),B=$(()=>Array.from(t.cachedOptions.values())),Y=$(()=>{const we=R.value.filter(Fe=>!Fe.created).some(Fe=>Fe.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!we}),X=Fn(),K=$(()=>["small"].includes(X.value)?"small":"default"),J=$({get(){return t.visible&&x.value!==!1},set(we){t.visible=we}});Re(()=>T.value,()=>{dt(()=>{G()})}),Re(()=>e.placeholder,we=>{t.cachedPlaceHolder=t.currentPlaceholder=we}),Re(()=>e.modelValue,(we,Fe)=>{var _e;e.multiple&&(G(),we&&we.length>0||l.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",z(t.query))),V(),e.filterable&&!e.multiple&&(t.inputLength=20),Ko(we,Fe)||(_e=I.validate)==null||_e.call(I,"change").catch(Ye=>void 0)},{flush:"post",deep:!0}),Re(()=>t.visible,we=>{var Fe,_e,Ye;we?((_e=(Fe=c.value)==null?void 0:Fe.updatePopper)==null||_e.call(Fe),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(Ye=l.value)==null||Ye.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),z(t.query),!e.multiple&&!e.remote&&(v.value.query="",Sl(v),Sl(w)))):(l.value&&l.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ce(),dt(()=>{l.value&&l.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",we)}),Re(()=>t.options.entries(),()=>{var we,Fe,_e;if(!jt)return;(Fe=(we=c.value)==null?void 0:we.updatePopper)==null||Fe.call(we),e.multiple&&G();const Ye=((_e=p.value)==null?void 0:_e.querySelectorAll("input"))||[];Array.from(Ye).includes(document.activeElement)||V(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&j()},{flush:"post"}),Re(()=>t.hoverIndex,we=>{typeof we=="number"&&we>-1&&(y.value=R.value[we]||{}),R.value.forEach(Fe=>{Fe.hover=y.value===Fe})});const G=()=>{e.collapseTags&&!e.filterable||dt(()=>{var we,Fe;if(!i.value)return;const _e=i.value.$el.querySelector("input"),Ye=f.value,Le=t.initialInputHeight||Pw(X.value||E.size);_e.style.height=t.selected.length===0?`${Le}px`:`${Math.max(Ye?Ye.clientHeight+(Ye.clientHeight>Le?6:0):0,Le)}px`,t.tagInMultiLine=Number.parseFloat(_e.style.height)>=Le,t.visible&&x.value!==!1&&((Fe=(we=c.value)==null?void 0:we.updatePopper)==null||Fe.call(we))})},z=we=>{if(!(t.previousQuery===we||t.isOnComposition)){if(t.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){t.previousQuery=we;return}t.previousQuery=we,dt(()=>{var Fe,_e;t.visible&&((_e=(Fe=c.value)==null?void 0:Fe.updatePopper)==null||_e.call(Fe))}),t.hoverIndex=-1,e.multiple&&e.filterable&&dt(()=>{const Fe=l.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Fe):Fe,ee(),G()}),e.remote&&typeof e.remoteMethod=="function"?(t.hoverIndex=-1,e.remoteMethod(we)):typeof e.filterMethod=="function"?(e.filterMethod(we),Sl(w)):(t.filteredOptionsCount=t.optionsCount,v.value.query=we,Sl(v),Sl(w)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&j()}},ee=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=l.value.value?"":t.cachedPlaceHolder)},j=()=>{const we=R.value.filter(Ye=>Ye.visible&&!Ye.disabled&&!Ye.states.groupDisabled),Fe=we.find(Ye=>Ye.created),_e=we[0];t.hoverIndex=Ze(R.value,Fe||_e)},V=()=>{var we;if(e.multiple)t.selectedLabel="";else{const _e=q(e.modelValue);(we=_e.props)!=null&&we.created?(t.createdLabel=_e.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=_e.currentLabel,t.selected=_e,e.filterable&&(t.query=t.selectedLabel);return}const Fe=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(_e=>{Fe.push(q(_e))}),t.selected=Fe,dt(()=>{G()})},q=we=>{let Fe;const _e=pc(we).toLowerCase()==="object",Ye=pc(we).toLowerCase()==="null",Le=pc(we).toLowerCase()==="undefined";for(let Tt=t.cachedOptions.size-1;Tt>=0;Tt--){const cn=B.value[Tt];if(_e?An(cn,e.valueKey)===An(we,e.valueKey):cn.value===we){Fe={value:we,currentLabel:cn.currentLabel,isDisabled:cn.isDisabled};break}}if(Fe)return Fe;const Mt=_e?we.label:!Ye&&!Le?we:"",Nt={value:we,currentLabel:Mt};return e.multiple&&(Nt.hitState=!1),Nt},ce=()=>{setTimeout(()=>{const we=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Fe=>R.value.findIndex(_e=>An(_e,we)===An(Fe,we)))):t.hoverIndex=-1:t.hoverIndex=R.value.findIndex(Fe=>pt(Fe)===pt(t.selected))},300)},ue=()=>{var we,Fe;ne(),(Fe=(we=c.value)==null?void 0:we.updatePopper)==null||Fe.call(we),e.multiple&&!e.filterable&&G()},ne=()=>{var we;t.inputWidth=(we=i.value)==null?void 0:we.$el.getBoundingClientRect().width},Se=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,z(t.query))},Ee=$o(()=>{Se()},D.value),qe=$o(we=>{z(we.target.value)},D.value),xe=we=>{Ko(e.modelValue,we)||n.emit(Gn,we)},pe=we=>{if(we.target.value.length<=0&&!De()){const Fe=e.modelValue.slice();Fe.pop(),n.emit(Ot,Fe),xe(Fe)}we.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},Me=(we,Fe)=>{const _e=t.selected.indexOf(Fe);if(_e>-1&&!T.value){const Ye=e.modelValue.slice();Ye.splice(_e,1),n.emit(Ot,Ye),xe(Ye),n.emit("remove-tag",Fe.value)}we.stopPropagation()},We=we=>{we.stopPropagation();const Fe=e.multiple?[]:"";if(typeof Fe!="string")for(const _e of t.selected)_e.isDisabled&&Fe.push(_e.value);n.emit(Ot,Fe),xe(Fe),t.visible=!1,n.emit("clear")},ze=(we,Fe)=>{var _e;if(e.multiple){const Ye=(e.modelValue||[]).slice(),Le=Ze(Ye,we.value);Le>-1?Ye.splice(Le,1):(e.multipleLimit<=0||Ye.length<e.multipleLimit)&&Ye.push(we.value),n.emit(Ot,Ye),xe(Ye),we.created&&(t.query="",z(""),t.inputLength=20),e.filterable&&((_e=l.value)==null||_e.focus())}else n.emit(Ot,we.value),xe(we.value),t.visible=!1;t.isSilentBlur=Fe,mt(),!t.visible&&dt(()=>{ot(we)})},Ze=(we=[],Fe)=>{if(!Kt(Fe))return we.indexOf(Fe);const _e=e.valueKey;let Ye=-1;return we.some((Le,Mt)=>An(Le,_e)===An(Fe,_e)?(Ye=Mt,!0):!1),Ye},mt=()=>{t.softFocus=!0;const we=l.value||i.value;we&&(we==null||we.focus())},ot=we=>{var Fe,_e,Ye,Le,Mt;const Nt=Array.isArray(we)?we[0]:we;let Tt=null;if(Nt!=null&&Nt.value){const cn=R.value.filter(co=>co.value===Nt.value);cn.length>0&&(Tt=cn[0].$el)}if(c.value&&Tt){const cn=(Le=(Ye=(_e=(Fe=c.value)==null?void 0:Fe.popperRef)==null?void 0:_e.contentRef)==null?void 0:Ye.querySelector)==null?void 0:Le.call(Ye,`.${s.be("dropdown","wrap")}`);cn&&kw(cn,Tt)}(Mt=m.value)==null||Mt.handleScroll()},te=we=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(we.value,we),t.cachedOptions.set(we.value,we)},de=(we,Fe)=>{t.options.get(we)===Fe&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(we))},Ne=we=>{we.code!==rt.backspace&&De(!1),t.inputLength=l.value.value.length*15+20,G()},De=we=>{if(!Array.isArray(t.selected))return;const Fe=t.selected[t.selected.length-1];if(!!Fe)return we===!0||we===!1?(Fe.hitState=we,we):(Fe.hitState=!Fe.hitState,Fe.hitState)},ke=we=>{const Fe=we.target.value;if(we.type==="compositionend")t.isOnComposition=!1,dt(()=>z(Fe));else{const _e=Fe[Fe.length-1]||"";t.isOnComposition=!Xd(_e)}},Ve=()=>{dt(()=>ot(t.selected))},ie=we=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",we))},re=()=>{var we;t.visible=!1,(we=i.value)==null||we.blur()},ge=we=>{dt(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",we)}),t.softFocus=!1},Te=we=>{We(we)},Je=()=>{t.visible=!1},he=()=>{var we;e.automaticDropdown||T.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&((we=l.value||i.value)==null||we.focus()))},He=()=>{t.visible?R.value[t.hoverIndex]&&ze(R.value[t.hoverIndex],void 0):he()},pt=we=>Kt(we.value)?An(we.value,e.valueKey):we.value,At=$(()=>R.value.filter(we=>we.visible).every(we=>we.disabled)),tt=we=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!At.value){we==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):we==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Fe=R.value[t.hoverIndex];(Fe.disabled===!0||Fe.states.groupDisabled===!0||!Fe.visible)&&tt(we),dt(()=>ot(y.value))}};return{optionsArray:R,selectSize:X,handleResize:ue,debouncedOnInputChange:Ee,debouncedQueryChange:qe,deletePrevTag:pe,deleteTag:Me,deleteSelected:We,handleOptionSelect:ze,scrollToOption:ot,readonly:S,resetInputHeight:G,showClose:_,iconComponent:N,iconReverse:O,showNewOption:Y,collapseTagSize:K,setSelected:V,managePlaceholder:ee,selectDisabled:T,emptyText:x,toggleLastOptionHitState:De,resetInputState:Ne,handleComposition:ke,onOptionCreate:te,onOptionDestroy:de,handleMenuEnter:Ve,handleFocus:ie,blur:re,handleBlur:ge,handleClearClick:Te,handleClose:Je,toggleMenu:he,selectOption:He,getValueKey:pt,navigateOptions:tt,dropMenuVisible:J,queryChange:v,groupQueryChange:w,reference:i,input:l,tooltipRef:c,tags:f,selectWrapper:p,scrollbar:m}},ih="ElSelect",pG=ve({name:ih,componentName:ih,components:{ElInput:Cr,ElSelectMenu:dG,ElOption:Q0,ElTag:nf,ElScrollbar:Es,ElTooltip:Ro,ElIcon:yt},directives:{ClickOutside:ta},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Zo},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:void 0},teleported:ro.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:[String,Object],default:gs},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:[String,Object],default:xu},tagType:Qe(be({},W0.type),{default:"info"})},emits:[Ot,Gn,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Be("select"),o=Be("input"),{t:s}=un(),i=fG(e),{optionsArray:l,selectSize:c,readonly:f,handleResize:p,collapseTagSize:m,debouncedOnInputChange:y,debouncedQueryChange:v,deletePrevTag:w,deleteTag:E,deleteSelected:I,handleOptionSelect:S,scrollToOption:T,setSelected:_,resetInputHeight:N,managePlaceholder:O,showClose:D,selectDisabled:x,iconComponent:R,iconReverse:B,showNewOption:Y,emptyText:X,toggleLastOptionHitState:K,resetInputState:J,handleComposition:G,onOptionCreate:z,onOptionDestroy:ee,handleMenuEnter:j,handleFocus:V,blur:q,handleBlur:ce,handleClearClick:ue,handleClose:ne,toggleMenu:Se,selectOption:Ee,getValueKey:qe,navigateOptions:xe,dropMenuVisible:pe,reference:Me,input:We,tooltipRef:ze,tags:Ze,selectWrapper:mt,scrollbar:ot,queryChange:te,groupQueryChange:de}=hG(e,i,t),{focus:Ne}=lP(Me),{inputWidth:De,selected:ke,inputLength:Ve,filteredOptionsCount:ie,visible:re,softFocus:ge,selectedLabel:Te,hoverIndex:Je,query:he,inputHovering:He,currentPlaceholder:pt,menuVisibleOnFocus:At,isOnComposition:tt,isSilentBlur:we,options:Fe,cachedOptions:_e,optionsCount:Ye,prefixWidth:Le,tagInMultiLine:Mt}=Yn(i),Nt=$(()=>{const eo=[n.b()],Ut=k(c);return Ut&&eo.push(n.m(Ut)),e.disabled&&eo.push(n.m("disabled")),eo}),Tt=$(()=>({maxWidth:`${k(De)-32}px`,width:"100%"}));Pt(rf,nn({props:e,options:Fe,optionsArray:l,cachedOptions:_e,optionsCount:Ye,filteredOptionsCount:ie,hoverIndex:Je,handleOptionSelect:S,onOptionCreate:z,onOptionDestroy:ee,selectWrapper:mt,selected:ke,setSelected:_,queryChange:te,groupQueryChange:de})),kt(()=>{if(i.cachedPlaceHolder=pt.value=e.placeholder||s("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(pt.value=""),ol(mt.value,p),Me.value&&Me.value.$el){const eo=Me.value.input;i.initialInputHeight=eo.getBoundingClientRect().height||Pw(c.value)}e.remote&&e.multiple&&N(),dt(()=>{if(!!Me.value&&(Me.value.$el&&(De.value=Me.value.$el.getBoundingClientRect().width),t.slots.prefix)){const eo=Me.value.$el.childNodes,Ut=Array.from(eo).find(Ss=>Ss.tagName==="INPUT"),go=Me.value.$el.querySelector(`.${o.e("prefix")}`);Le.value=Math.max(go.getBoundingClientRect().width+5,30),i.prefixWidth&&(Ut.style.paddingLeft=`${Math.max(i.prefixWidth,30)}px`)}}),_()}),gn(()=>{rl(mt.value,p)}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Ot,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Ot,"");const cn=$(()=>{var eo,Ut;return(Ut=(eo=ze.value)==null?void 0:eo.popperRef)==null?void 0:Ut.contentRef}),{compatTeleported:co}=al(ih,"popperAppendToBody");return{tagInMultiLine:Mt,prefixWidth:Le,selectSize:c,readonly:f,handleResize:p,collapseTagSize:m,debouncedOnInputChange:y,debouncedQueryChange:v,deletePrevTag:w,deleteTag:E,deleteSelected:I,handleOptionSelect:S,scrollToOption:T,inputWidth:De,selected:ke,inputLength:Ve,filteredOptionsCount:ie,visible:re,softFocus:ge,selectedLabel:Te,hoverIndex:Je,query:he,inputHovering:He,currentPlaceholder:pt,menuVisibleOnFocus:At,isOnComposition:tt,isSilentBlur:we,options:Fe,resetInputHeight:N,managePlaceholder:O,showClose:D,selectDisabled:x,iconComponent:R,iconReverse:B,showNewOption:Y,emptyText:X,toggleLastOptionHitState:K,resetInputState:J,handleComposition:G,handleMenuEnter:j,handleFocus:V,blur:q,handleBlur:ce,handleClearClick:ue,handleClose:ne,toggleMenu:Se,selectOption:Ee,getValueKey:qe,navigateOptions:xe,dropMenuVisible:pe,focus:Ne,reference:Me,input:We,tooltipRef:ze,popperPaneRef:cn,tags:Ze,selectWrapper:mt,scrollbar:ot,wrapperKls:Nt,selectTagsStyle:Tt,compatTeleported:co,nsSelect:n}}}),gG={class:"select-trigger"},mG=["disabled","autocomplete"],vG={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function yG(e,t,n,o,s,i){const l=Ae("el-tag"),c=Ae("el-tooltip"),f=Ae("el-icon"),p=Ae("el-input"),m=Ae("el-option"),y=Ae("el-scrollbar"),v=Ae("el-select-menu"),w=qo("click-outside");return bt((M(),W("div",{ref:"selectWrapper",class:P(e.wrapperKls),onClick:t[24]||(t[24]=vt((...E)=>e.toggleMenu&&e.toggleMenu(...E),["stop"]))},[le(c,{ref:"tooltipRef",visible:e.dropMenuVisible,"onUpdate:visible":t[23]||(t[23]=E=>e.dropMenuVisible=E),placement:"bottom-start",teleported:e.compatTeleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:ae(()=>[Q("div",gG,[e.multiple?(M(),W("div",{key:0,ref:"tags",class:P(e.nsSelect.e("tags")),style:st(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(M(),W("span",{key:0,class:P([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[le(l,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=E=>e.deleteTag(E,e.selected[0]))},{default:ae(()=>[Q("span",{class:P(e.nsSelect.e("tags-text")),style:st({maxWidth:e.inputWidth-123+"px"})},Pe(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(M(),me(l,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:ae(()=>[e.collapseTagsTooltip?(M(),me(c,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:ae(()=>[Q("span",{class:P(e.nsSelect.e("tags-text"))},"+ "+Pe(e.selected.length-1),3)]),content:ae(()=>[Q("div",{class:P(e.nsSelect.e("collapse-tags"))},[(M(!0),W(at,null,zt(e.selected,(E,I)=>(M(),W("div",{key:I,class:P(e.nsSelect.e("collapse-tag"))},[(M(),me(l,{key:e.getValueKey(E),class:"in-tooltip",closable:!e.selectDisabled&&!E.isDisabled,size:e.collapseTagSize,hit:E.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:S=>e.deleteTag(S,E)},{default:ae(()=>[Q("span",{class:P(e.nsSelect.e("tags-text")),style:st({maxWidth:e.inputWidth-75+"px"})},Pe(E.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(M(),W("span",{key:1,class:P(e.nsSelect.e("tags-text"))},"+ "+Pe(e.selected.length-1),3))]),_:1},8,["size","type"])):fe("v-if",!0)],2)):fe("v-if",!0),fe(" <div> "),e.collapseTags?fe("v-if",!0):(M(),me($n,{key:1,onAfterLeave:e.resetInputHeight},{default:ae(()=>[Q("span",{class:P([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(M(!0),W(at,null,zt(e.selected,E=>(M(),me(l,{key:e.getValueKey(E),closable:!e.selectDisabled&&!E.isDisabled,size:e.collapseTagSize,hit:E.hitState,type:e.tagType,"disable-transitions":"",onClose:I=>e.deleteTag(I,E)},{default:ae(()=>[Q("span",{class:P(e.nsSelect.e("tags-text")),style:st({maxWidth:e.inputWidth-75+"px"})},Pe(E.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),fe(" </div> "),e.filterable?bt((M(),W("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=E=>e.query=E),type:"text",class:P([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:st({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...E)=>e.handleFocus&&e.handleFocus(...E)),onBlur:t[3]||(t[3]=(...E)=>e.handleBlur&&e.handleBlur(...E)),onKeyup:t[4]||(t[4]=(...E)=>e.managePlaceholder&&e.managePlaceholder(...E)),onKeydown:[t[5]||(t[5]=(...E)=>e.resetInputState&&e.resetInputState(...E)),t[6]||(t[6]=Ft(vt(E=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=Ft(vt(E=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=Ft(vt(E=>e.visible=!1,["stop","prevent"]),["esc"])),t[9]||(t[9]=Ft(vt((...E)=>e.selectOption&&e.selectOption(...E),["stop","prevent"]),["enter"])),t[10]||(t[10]=Ft((...E)=>e.deletePrevTag&&e.deletePrevTag(...E),["delete"])),t[11]||(t[11]=Ft(E=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...E)=>e.handleComposition&&e.handleComposition(...E)),onCompositionupdate:t[13]||(t[13]=(...E)=>e.handleComposition&&e.handleComposition(...E)),onCompositionend:t[14]||(t[14]=(...E)=>e.handleComposition&&e.handleComposition(...E)),onInput:t[15]||(t[15]=(...E)=>e.debouncedQueryChange&&e.debouncedQueryChange(...E))},null,46,mG)),[[u0,e.query]]):fe("v-if",!0)],6)):fe("v-if",!0),le(p,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=E=>e.selectedLabel=E),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:P([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Ft(vt(E=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Ft(vt(E=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Ft(vt(e.selectOption,["stop","prevent"]),["enter"]),t[19]||(t[19]=Ft(vt(E=>e.visible=!1,["stop","prevent"]),["esc"])),t[20]||(t[20]=Ft(E=>e.visible=!1,["tab"]))],onMouseenter:t[21]||(t[21]=E=>e.inputHovering=!0),onMouseleave:t[22]||(t[22]=E=>e.inputHovering=!1)},Xs({suffix:ae(()=>[e.iconComponent&&!e.showClose?(M(),me(f,{key:0,class:P([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ae(()=>[(M(),me(Xt(e.iconComponent)))]),_:1},8,["class"])):fe("v-if",!0),e.showClose&&e.clearIcon?(M(),me(f,{key:1,class:P([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:ae(()=>[(M(),me(Xt(e.clearIcon)))]),_:1},8,["class","onClick"])):fe("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:ae(()=>[Q("div",vG,[Ie(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])])]),content:ae(()=>[le(v,null,{default:ae(()=>[bt(le(y,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:P([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:ae(()=>[e.showNewOption?(M(),me(m,{key:0,value:e.query,created:!0},null,8,["value"])):fe("v-if",!0),Ie(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[Zt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(M(),W(at,{key:0},[e.$slots.empty?Ie(e.$slots,"empty",{key:0}):(M(),W("p",{key:1,class:P(e.nsSelect.be("dropdown","empty"))},Pe(e.emptyText),3))],2112)):fe("v-if",!0)]),_:3})]),_:3},8,["visible","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[w,e.handleClose,e.popperPaneRef]])}var bG=Ue(pG,[["render",yG],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const wG=ve({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Be("select"),n=F(!0),o=Dt(),s=F([]);Pt(XE,nn(be({},Yn(e))));const i=et(rf);kt(()=>{s.value=l(o.subTree)});const l=f=>{const p=[];return Array.isArray(f.children)&&f.children.forEach(m=>{var y;m.type&&m.type.name==="ElOption"&&m.component&&m.component.proxy?p.push(m.component.proxy):(y=m.children)!=null&&y.length&&p.push(...l(m))}),p},{groupQueryChange:c}=an(i);return Re(c,()=>{n.value=s.value.some(f=>f.visible===!0)}),{visible:n,ns:t}}});function CG(e,t,n,o,s,i){return bt((M(),W("ul",{class:P(e.ns.be("group","wrap"))},[Q("li",{class:P(e.ns.be("group","title"))},Pe(e.label),3),Q("li",null,[Q("ul",{class:P(e.ns.b("group"))},[Ie(e.$slots,"default")],2)])],2)),[[Zt,e.visible]])}var qE=Ue(wG,[["render",CG],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const ji=$t(bG,{Option:Q0,OptionGroup:qE}),cd=_n(Q0),EG=_n(qE),J0=()=>et(Gw,{}),SG=ct({pageSize:{type:Number,required:!0},pageSizes:{type:Xe(Array),default:()=>In([10,20,30,40,50,100])},popperClass:{type:String,default:""},disabled:Boolean,size:{type:String,default:"default"}}),AG=ve({name:"ElPaginationSizes",components:{ElSelect:ji,ElOption:cd},props:SG,emits:["page-size-change"],setup(e,{emit:t}){const{t:n}=un(),o=Be("pagination"),s=J0(),i=F(e.pageSize);Re(()=>e.pageSizes,(f,p)=>{if(!Ko(f,p)&&Array.isArray(f)){const m=f.includes(e.pageSize)?e.pageSize:e.pageSizes[0];t("page-size-change",m)}}),Re(()=>e.pageSize,f=>{i.value=f});const l=$(()=>e.pageSizes);function c(f){var p;f!==i.value&&(i.value=f,(p=s.handleSizeChange)==null||p.call(s,Number(f)))}return{ns:o,innerPagesizes:l,innerPageSize:i,t:n,handleChange:c}}});function TG(e,t,n,o,s,i){const l=Ae("el-option"),c=Ae("el-select");return M(),W("span",{class:P(e.ns.e("sizes"))},[le(c,{"model-value":e.innerPageSize,disabled:e.disabled,"popper-class":e.popperClass,size:e.size,onChange:e.handleChange},{default:ae(()=>[(M(!0),W(at,null,zt(e.innerPagesizes,f=>(M(),me(l,{key:f,value:f,label:f+e.t("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","onChange"])],2)}var IG=Ue(AG,[["render",TG],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const _G=ve({name:"ElPaginationJumper",components:{ElInput:Cr},setup(){const{t:e}=un(),t=Be("pagination"),{pageCount:n,disabled:o,currentPage:s,changeEvent:i}=J0(),l=F(),c=$(()=>{var m;return(m=l.value)!=null?m:s==null?void 0:s.value});function f(m){l.value=+m}function p(m){m=Math.trunc(+m),i==null||i(+m),l.value=void 0}return{ns:t,pageCount:n,disabled:o,innerValue:c,t:e,handleInput:f,handleChange:p}}}),NG=["disabled"];function kG(e,t,n,o,s,i){const l=Ae("el-input");return M(),W("span",{class:P(e.ns.e("jump")),disabled:e.disabled},[Ht(Pe(e.t("el.pagination.goto"))+" ",1),le(l,{size:"small",class:P([e.ns.e("editor"),e.ns.is("in-pagination")]),min:1,max:e.pageCount,disabled:e.disabled,"model-value":e.innerValue,type:"number","onUpdate:modelValue":e.handleInput,onChange:e.handleChange},null,8,["class","max","disabled","model-value","onUpdate:modelValue","onChange"]),Ht(" "+Pe(e.t("el.pagination.pageClassifier")),1)],10,NG)}var xG=Ue(_G,[["render",kG],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const MG={total:{type:Number,default:1e3}},OG=ve({name:"ElPaginationTotal",props:MG,setup(){const{t:e}=un(),t=Be("pagination"),{disabled:n}=J0();return{t:e,ns:t,disabled:n}}}),DG=["disabled"];function $G(e,t,n,o,s,i){return M(),W("span",{class:P(e.ns.e("total")),disabled:e.disabled},Pe(e.t("el.pagination.total",{total:e.total})),11,DG)}var RG=Ue(OG,[["render",$G],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const LG={currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean},PG=ve({name:"ElPaginationPager",components:{DArrowLeft:Kd,DArrowRight:Yd,MoreFilled:yR},props:LG,emits:["change"],setup(e,{emit:t}){const n=Be("pager"),o=Be("icon"),s=F(!1),i=F(!1),l=F(!1),c=F(!1),f=$(()=>{const v=e.pagerCount,w=(v-1)/2,E=Number(e.currentPage),I=Number(e.pageCount);let S=!1,T=!1;I>v&&(E>v-w&&(S=!0),E<I-w&&(T=!0));const _=[];if(S&&!T){const N=I-(v-2);for(let O=N;O<I;O++)_.push(O)}else if(!S&&T)for(let N=2;N<v;N++)_.push(N);else if(S&&T){const N=Math.floor(v/2)-1;for(let O=E-N;O<=E+N;O++)_.push(O)}else for(let N=2;N<I;N++)_.push(N);return _});dr(()=>{const v=(e.pagerCount-1)/2;s.value=!1,i.value=!1,e.pageCount>e.pagerCount&&(e.currentPage>e.pagerCount-v&&(s.value=!0),e.currentPage<e.pageCount-v&&(i.value=!0))});function p(v){e.disabled||(v==="left"?l.value=!0:c.value=!0)}function m(v){const w=v.target;if(w.tagName.toLowerCase()==="li"&&Array.from(w.classList).includes("number")){const E=Number(w.textContent);E!==e.currentPage&&t("change",E)}}function y(v){const w=v.target;if(w.tagName.toLowerCase()==="ul"||e.disabled)return;let E=Number(w.textContent);const I=e.pageCount,S=e.currentPage,T=e.pagerCount-2;w.className.includes("more")&&(w.className.includes("quickprev")?E=S-T:w.className.includes("quicknext")&&(E=S+T)),Number.isNaN(+E)||(E<1&&(E=1),E>I&&(E=I)),E!==S&&t("change",E)}return{showPrevMore:s,showNextMore:i,quickPrevHover:l,quickNextHover:c,pagers:f,nsPager:n,nsIcon:o,onMouseenter:p,onPagerClick:y,onEnter:m}}}),BG=["aria-current"],FG=["aria-current"],VG=["aria-current"];function HG(e,t,n,o,s,i){const l=Ae("d-arrow-left"),c=Ae("more-filled"),f=Ae("d-arrow-right");return M(),W("ul",{class:P(e.nsPager.b()),onClick:t[4]||(t[4]=(...p)=>e.onPagerClick&&e.onPagerClick(...p)),onKeyup:t[5]||(t[5]=Ft((...p)=>e.onEnter&&e.onEnter(...p),["enter"]))},[e.pageCount>0?(M(),W("li",{key:0,class:P([[e.nsPager.is("active",e.currentPage===1),e.nsPager.is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===1,tabindex:"0"}," 1 ",10,BG)):fe("v-if",!0),e.showPrevMore?(M(),W("li",{key:1,class:P(["more","btn-quickprev",e.nsIcon.b(),e.nsPager.is("disabled",e.disabled)]),onMouseenter:t[0]||(t[0]=p=>e.onMouseenter("left")),onMouseleave:t[1]||(t[1]=p=>e.quickPrevHover=!1)},[e.quickPrevHover?(M(),me(l,{key:0})):(M(),me(c,{key:1}))],34)):fe("v-if",!0),(M(!0),W(at,null,zt(e.pagers,p=>(M(),W("li",{key:p,class:P([[e.nsPager.is("active",e.currentPage===p),e.nsPager.is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===p,tabindex:"0"},Pe(p),11,FG))),128)),e.showNextMore?(M(),W("li",{key:2,class:P(["more","btn-quicknext",e.nsIcon.b(),e.nsPager.is("disabled",e.disabled)]),onMouseenter:t[2]||(t[2]=p=>e.onMouseenter("right")),onMouseleave:t[3]||(t[3]=p=>e.quickNextHover=!1)},[e.quickNextHover?(M(),me(f,{key:0})):(M(),me(c,{key:1}))],34)):fe("v-if",!0),e.pageCount>1?(M(),W("li",{key:3,class:P([[e.nsPager.is("active",e.currentPage===e.pageCount),e.nsPager.is("disabled",e.disabled)],"number"]),"aria-current":e.currentPage===e.pageCount,tabindex:"0"},Pe(e.pageCount),11,VG)):fe("v-if",!0)],34)}var zG=Ue(PG,[["render",HG],["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const bo=e=>typeof e!="number",UG=ct({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Xe(Array),default:()=>In([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},nextText:{type:String,default:""},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),WG={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},Jv="ElPagination";var jG=ve({name:Jv,props:UG,emits:WG,setup(e,{emit:t,slots:n}){const{t:o}=un(),s=Be("pagination"),i=Dt().vnode.props||{},l="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,c="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,f=$(()=>{if(bo(e.total)&&bo(e.pageCount)||!bo(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(bo(e.pageCount)){if(!bo(e.total)&&!bo(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),p=F(bo(e.defaultPageSize)?10:e.defaultPageSize),m=F(bo(e.defaultCurrentPage)?1:e.defaultCurrentPage),y=$({get(){return bo(e.pageSize)?p.value:e.pageSize},set(N){bo(e.pageSize)&&(p.value=N),c&&(t("update:page-size",N),t("size-change",N))}}),v=$(()=>{let N=0;return bo(e.pageCount)?bo(e.total)||(N=Math.max(1,Math.ceil(e.total/y.value))):N=e.pageCount,N}),w=$({get(){return bo(e.currentPage)?m.value:e.currentPage},set(N){let O=N;N<1?O=1:N>v.value&&(O=v.value),bo(e.currentPage)&&(m.value=O),l&&(t("update:current-page",O),t("current-change",O))}});Re(v,N=>{w.value>N&&(w.value=N)});function E(N){w.value=N}function I(N){y.value=N;const O=v.value;w.value>O&&(w.value=O)}function S(){e.disabled||(w.value-=1,t("prev-click",w.value))}function T(){e.disabled||(w.value+=1,t("next-click",w.value))}function _(N,O){N&&(N.props||(N.props={}),N.props.class=[N.props.class,O].join(" "))}return Pt(Gw,{pageCount:v,disabled:$(()=>e.disabled),currentPage:w,changeEvent:E,handleSizeChange:I}),()=>{var N,O;if(!f.value)return o("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&v.value<=1)return null;const D=[],x=[],R=it("div",{class:s.e("rightwrapper")},x),B={prev:it(JY,{disabled:e.disabled,currentPage:w.value,prevText:e.prevText,onClick:S}),jumper:it(xG),pager:it(zG,{currentPage:w.value,pageCount:v.value,pagerCount:e.pagerCount,onChange:E,disabled:e.disabled}),next:it(sG,{disabled:e.disabled,currentPage:w.value,pageCount:v.value,nextText:e.nextText,onClick:T}),sizes:it(IG,{pageSize:y.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(O=(N=n==null?void 0:n.default)==null?void 0:N.call(n))!=null?O:null,total:it(RG,{total:bo(e.total)?0:e.total})},Y=e.layout.split(",").map(K=>K.trim());let X=!1;return Y.forEach(K=>{if(K==="->"){X=!0;return}X?x.push(B[K]):D.push(B[K])}),_(D[0],s.is("first")),_(D[D.length-1],s.is("last")),X&&x.length>0&&(_(x[0],s.is("first")),_(x[x.length-1],s.is("last")),D.push(R)),it("div",{role:"pagination","aria-label":"pagination",class:[s.b(),s.is("background",e.background),{[s.m("small")]:e.small}]},D)}}});const KG=$t(jG),YG=ct({title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,values:jh,default:"primary"},cancelButtonType:{type:String,values:jh,default:"text"},icon:{type:uo,default:HR},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},onConfirm:{type:Xe(Function)},onCancel:{type:Xe(Function)},teleported:ro.teleported,persistent:ro.persistent}),ey="ElPopconfirm",GG=ve({name:ey,components:{ElButton:fr,ElTooltip:Ro,ElIcon:yt},props:YG,setup(e){const{compatTeleported:t}=al(ey,"appendToBody"),{t:n}=un(),o=Be("popconfirm"),s=F(),i=()=>{var y,v;(v=(y=k(s))==null?void 0:y.onClose)==null||v.call(y)},l=()=>{i()},c=y=>{var v;(v=e.onConfirm)==null||v.call(e,y),l()},f=y=>{var v;(v=e.onCancel)==null||v.call(e,y),l()},p=$(()=>e.confirmButtonText||n("el.popconfirm.confirmButtonText")),m=$(()=>e.cancelButtonText||n("el.popconfirm.cancelButtonText"));return{finalConfirmButtonText:p,finalCancelButtonText:m,tooltipRef:s,ns:o,compatTeleported:t,confirm:c,cancel:f}}});function XG(e,t,n,o,s,i){const l=Ae("el-icon"),c=Ae("el-button"),f=Ae("el-tooltip");return M(),me(f,pn({ref:"tooltipRef"},e.$attrs,{trigger:"click",effect:"light","popper-class":`${e.ns.namespace.value}-popover`,teleported:e.compatTeleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent}),{content:ae(()=>[Q("div",{class:P(e.ns.b())},[Q("div",{class:P(e.ns.e("main"))},[!e.hideIcon&&e.icon?(M(),me(l,{key:0,class:P(e.ns.e("icon")),style:st({color:e.iconColor})},{default:ae(()=>[(M(),me(Xt(e.icon)))]),_:1},8,["class","style"])):fe("v-if",!0),Ht(" "+Pe(e.title),1)],2),Q("div",{class:P(e.ns.e("action"))},[le(c,{size:"small",type:e.cancelButtonType,onClick:e.cancel},{default:ae(()=>[Ht(Pe(e.finalCancelButtonText),1)]),_:1},8,["type","onClick"]),le(c,{size:"small",type:e.confirmButtonType,onClick:e.confirm},{default:ae(()=>[Ht(Pe(e.finalConfirmButtonText),1)]),_:1},8,["type","onClick"])],2)],2)]),default:ae(()=>[e.$slots.reference?Ie(e.$slots,"reference",{key:0}):fe("v-if",!0)]),_:3},16,["popper-class","teleported","hide-after","persistent"])}var qG=Ue(GG,[["render",XG],["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ZG=$t(qG),QG=ct({trigger:du.trigger,placement:Dc.placement,disabled:du.disabled,visible:ro.visible,transition:ro.transition,popperOptions:Dc.popperOptions,tabindex:Dc.tabindex,appendToBody:{type:Boolean,default:void 0},content:ro.content,popperStyle:ro.popperStyle,popperClass:ro.popperClass,enterable:Qe(be({},ro.enterable),{default:!0}),effect:Qe(be({},ro.effect),{default:"light"}),teleported:ro.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0}}),JG=["update:visible","before-enter","before-leave","after-enter","after-leave"],ty="ElPopover",eX=ve({name:ty,components:{ElTooltip:Ro},props:QG,emits:JG,setup(e,{emit:t}){const n=Be("popover"),o=F(null),s=$(()=>{var I;return(I=k(o))==null?void 0:I.popperRef}),i=$(()=>_t(e.width)?e.width:`${e.width}px`),l=$(()=>[{width:i.value},e.popperStyle]),c=$(()=>[n.b(),e.popperClass,{[n.m("plain")]:!!e.content}]),f=$(()=>e.transition==="el-fade-in-linear"),{compatTeleported:p}=al(ty,"appendToBody");return{compatTeleported:p,ns:n,kls:c,gpuAcceleration:f,style:l,tooltipRef:o,popperRef:s,hide:()=>{var I;(I=o.value)==null||I.hide()},beforeEnter:()=>{t("before-enter")},beforeLeave:()=>{t("before-leave")},afterEnter:()=>{t("after-enter")},afterLeave:()=>{t("update:visible",!1),t("after-leave")}}}});function tX(e,t,n,o,s,i){const l=Ae("el-tooltip");return M(),me(l,pn({ref:"tooltipRef"},e.$attrs,{trigger:e.trigger,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,"append-to-body":e.appendToBody,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":e.kls,"popper-style":e.style,teleported:e.compatTeleported,persistent:e.persistent,"gpu-acceleration":e.gpuAcceleration,onBeforeShow:e.beforeEnter,onBeforeHide:e.beforeLeave,onShow:e.afterEnter,onHide:e.afterLeave}),{content:ae(()=>[e.title?(M(),W("div",{key:0,class:P(e.ns.e("title")),role:"title"},Pe(e.title),3)):fe("v-if",!0),Ie(e.$slots,"default",{},()=>[Ht(Pe(e.content),1)])]),default:ae(()=>[e.$slots.reference?Ie(e.$slots,"reference",{key:0}):fe("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","append-to-body","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onBeforeShow","onBeforeHide","onShow","onHide"])}var Gl=Ue(eX,[["render",tX],["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/index.vue"]]);const ny=(e,t)=>{const n=t.arg||t.value,o=n==null?void 0:n.popperRef;o&&(o.triggerRef=e)};var dp={mounted(e,t){ny(e,t)},updated(e,t){ny(e,t)}};const nX="popover";Gl.install=e=>{e.component(Gl.name,Gl)};dp.install=e=>{e.directive(nX,dp)};const ZE=dp;Gl.directive=ZE;const oX=Gl,rX=oX,sX=ZE,iX=ct({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Xe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Xe([String,Array,Function]),default:""},format:{type:Xe(Function),default:e=>`${e}%`}}),aX=ve({name:"ElProgress",components:{ElIcon:yt,CircleCheck:ad,CircleClose:gs,Check:ja,Close:gr,WarningFilled:cu},props:iX,setup(e){const t=Be("progress"),n=$(()=>({width:`${e.percentage}%`,animationDuration:`${e.duration}s`,backgroundColor:I(e.percentage)})),o=$(()=>(e.strokeWidth/e.width*100).toFixed(1)),s=$(()=>e.type==="circle"||e.type==="dashboard"?Number.parseInt(`${50-Number.parseFloat(o.value)/2}`,10):0),i=$(()=>{const T=s.value,_=e.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${_?"":"-"}${T}
|
||
a ${T} ${T} 0 1 1 0 ${_?"-":""}${T*2}
|
||
a ${T} ${T} 0 1 1 0 ${_?"":"-"}${T*2}
|
||
`}),l=$(()=>2*Math.PI*s.value),c=$(()=>e.type==="dashboard"?.75:1),f=$(()=>`${-1*l.value*(1-c.value)/2}px`),p=$(()=>({strokeDasharray:`${l.value*c.value}px, ${l.value}px`,strokeDashoffset:f.value})),m=$(()=>({strokeDasharray:`${l.value*c.value*(e.percentage/100)}px, ${l.value}px`,strokeDashoffset:f.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"})),y=$(()=>{let T;if(e.color)T=I(e.percentage);else switch(e.status){case"success":T="#13ce66";break;case"exception":T="#ff4949";break;case"warning":T="#e6a23c";break;default:T="#20a0ff"}return T}),v=$(()=>e.status==="warning"?cu:e.type==="line"?e.status==="success"?ad:gs:e.status==="success"?ja:gr),w=$(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),E=$(()=>e.format(e.percentage)),I=T=>{var _;const{color:N}=e;if(typeof N=="function")return N(T);if(typeof N=="string")return N;{const O=100/N.length,x=N.map((R,B)=>typeof R=="string"?{color:R,percentage:(B+1)*O}:R).sort((R,B)=>R.percentage-B.percentage);for(const R of x)if(R.percentage>T)return R.color;return(_=x[x.length-1])==null?void 0:_.color}},S=$(()=>({percentage:e.percentage}));return{ns:t,barStyle:n,relativeStrokeWidth:o,radius:s,trackPath:i,perimeter:l,rate:c,strokeDashoffset:f,trailPathStyle:p,circlePathStyle:m,stroke:y,statusIcon:v,progressTextSize:w,content:E,slotData:S}}}),lX=["aria-valuenow"],uX={viewBox:"0 0 100 100"},cX=["d","stroke-width"],dX=["d","stroke","stroke-linecap","stroke-width"],fX={key:0};function hX(e,t,n,o,s,i){const l=Ae("el-icon");return M(),W("div",{class:P([e.ns.b(),e.ns.m(e.type),e.ns.is(e.status),{[e.ns.m("without-text")]:!e.showText,[e.ns.m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(M(),W("div",{key:0,class:P(e.ns.b("bar"))},[Q("div",{class:P(e.ns.be("bar","outer")),style:st({height:`${e.strokeWidth}px`})},[Q("div",{class:P([e.ns.be("bar","inner"),{[e.ns.bem("bar","inner","indeterminate")]:e.indeterminate}]),style:st(e.barStyle)},[(e.showText||e.$slots.default)&&e.textInside?(M(),W("div",{key:0,class:P(e.ns.be("bar","innerText"))},[Ie(e.$slots,"default",Nr(Ys(e.slotData)),()=>[Q("span",null,Pe(e.content),1)])],2)):fe("v-if",!0)],6)],6)],2)):(M(),W("div",{key:1,class:P(e.ns.b("circle")),style:st({height:`${e.width}px`,width:`${e.width}px`})},[(M(),W("svg",uX,[Q("path",{class:P(e.ns.be("circle","track")),d:e.trackPath,stroke:"var(--el-fill-color-light, #e5e9f2)","stroke-width":e.relativeStrokeWidth,fill:"none",style:st(e.trailPathStyle)},null,14,cX),Q("path",{class:P(e.ns.be("circle","path")),d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0,style:st(e.circlePathStyle)},null,14,dX)]))],6)),(e.showText||e.$slots.default)&&!e.textInside?(M(),W("div",{key:2,class:P(e.ns.e("text")),style:st({fontSize:`${e.progressTextSize}px`})},[Ie(e.$slots,"default",Nr(Ys(e.slotData)),()=>[e.status?(M(),me(l,{key:1},{default:ae(()=>[(M(),me(Xt(e.statusIcon)))]),_:1})):(M(),W("span",fX,Pe(e.content),1))])],6)):fe("v-if",!0)],10,lX)}var pX=Ue(aX,[["render",hX],["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const QE=$t(pX),gX=ct({modelValue:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Xe([Array,Object]),default:()=>In(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Xe([Array,Object]),default:()=>[oc,oc,oc]},voidIcon:{type:uo,default:()=>EL},disabledVoidIcon:{type:uo,default:()=>oc},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:""},texts:{type:Xe(Array),default:()=>In(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:{type:String,validator:Zo}}),mX={change:e=>typeof e=="number",[Ot]:e=>typeof e=="number"},vX=["aria-valuenow","aria-valuetext","aria-valuemax"],yX=["onMousemove","onClick"],bX={name:"ElRate"},wX=ve(Qe(be({},bX),{props:gX,emits:mX,setup(e,{expose:t,emit:n}){const o=e;function s(G,z){const ee=q=>Kt(q),j=Object.keys(z).map(q=>+q).filter(q=>{const ce=z[q];return(ee(ce)?ce.excluded:!1)?G<q:G<=q}).sort((q,ce)=>q-ce),V=z[j[0]];return ee(V)&&V.value||V}const i=et(Jo,void 0),l=Fn(),c=Be("rate"),f=F(o.modelValue),p=F(-1),m=F(!0),y=$(()=>[c.b(),c.m(l.value)]),v=$(()=>o.disabled||(i==null?void 0:i.disabled)),w=$(()=>({"--el-rate-void-color":o.voidColor,"--el-rate-disabled-void-color":o.disabledVoidColor,"--el-rate-fill-color":T.value})),E=$(()=>{let G="";return o.showScore?G=o.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?`${o.modelValue}`:`${f.value}`):o.showText&&(G=o.texts[Math.ceil(f.value)-1]),G}),I=$(()=>o.modelValue*100-Math.floor(o.modelValue)*100),S=$(()=>wt(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),T=$(()=>{const G=s(f.value,S.value);return Kt(G)?"":G}),_=$(()=>{let G="";return v.value?G=`${I.value}%`:o.allowHalf&&(G="50%"),{color:T.value,width:G}}),N=$(()=>wt(o.icons)?{[o.lowThreshold]:o.icons[0],[o.highThreshold]:{value:o.icons[1],excluded:!0},[o.max]:o.icons[2]}:o.icons),O=$(()=>s(o.modelValue,N.value)),D=$(()=>v.value?o.disabledVoidIcon:o.voidIcon),x=$(()=>s(f.value,N.value)),R=$(()=>{const G=Array.from({length:o.max}),z=f.value;return G.fill(x.value,0,z),G.fill(D.value,z,o.max),G});function B(G){const z=v.value&&I.value>0&&G-1<o.modelValue&&G>o.modelValue,ee=o.allowHalf&&m.value&&G-.5<=f.value&&G>f.value;return z||ee}function Y(G){v.value||(o.allowHalf&&m.value?(n(Ot,f.value),o.modelValue!==f.value&&n("change",f.value)):(n(Ot,G),o.modelValue!==G&&n("change",G)))}function X(G){if(v.value)return;let z=f.value;const ee=G.code;return ee===rt.up||ee===rt.right?(o.allowHalf?z+=.5:z+=1,G.stopPropagation(),G.preventDefault()):(ee===rt.left||ee===rt.down)&&(o.allowHalf?z-=.5:z-=1,G.stopPropagation(),G.preventDefault()),z=z<0?0:z,z=z>o.max?o.max:z,n(Ot,z),n("change",z),z}function K(G,z){if(!v.value){if(o.allowHalf){let ee=z.target;xr(ee,c.e("item"))&&(ee=ee.querySelector(`.${c.e("icon")}`)),(ee.clientWidth===0||xr(ee,c.e("decimal")))&&(ee=ee.parentNode),m.value=z.offsetX*2<=ee.clientWidth,f.value=m.value?G-.5:G}else f.value=G;p.value=G}}function J(){v.value||(o.allowHalf&&(m.value=o.modelValue!==Math.floor(o.modelValue)),f.value=o.modelValue,p.value=-1)}return Re(()=>o.modelValue,G=>{f.value=G,m.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||n(Ot,0),t({setCurrentValue:K,resetCurrentValue:J}),(G,z)=>(M(),W("div",{class:P([k(y),k(c).is("disabled",k(v))]),role:"slider","aria-valuenow":f.value,"aria-valuetext":k(E),"aria-valuemin":"0","aria-valuemax":G.max,tabindex:"0",style:st(k(w)),onKeydown:X},[(M(!0),W(at,null,zt(G.max,(ee,j)=>(M(),W("span",{key:j,class:P(k(c).e("item")),onMousemove:V=>K(ee,V),onMouseleave:J,onClick:V=>Y(ee)},[le(k(yt),{class:P([k(c).e("icon"),{hover:p.value===ee},k(c).is("active",ee<=f.value)])},{default:ae(()=>[B(ee)?fe("v-if",!0):(M(),me(Xt(k(R)[ee-1]),{key:0})),B(ee)?(M(),me(k(yt),{key:1,style:st(k(_)),class:P([k(c).e("icon"),k(c).e("decimal")])},{default:ae(()=>[(M(),me(Xt(k(O))))]),_:1},8,["style","class"])):fe("v-if",!0)]),_:2},1032,["class"])],42,yX))),128)),G.showText||G.showScore?(M(),W("span",{key:0,class:P(k(c).e("text"))},Pe(k(E)),3)):fe("v-if",!0)],46,vX))}}));var CX=Ue(wX,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const EX=$t(CX),Ea={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},oy={[Ea.success]:V5,[Ea.warning]:cu,[Ea.error]:N0,[Ea.info]:k0},SX=ct({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{values:["success","warning","info","error"],default:"info"}}),ry="ElResult",AX=ve({name:ry,props:SX,setup(e,{slots:t}){const n=Be("result");Ou({scope:ry,type:"Slot",from:"subTitle",replacement:"sub-title",version:"2.1.3",ref:"https://github.com/element-plus/element-plus/pull/6636/"},$(()=>!!t.subTitle));const o=$(()=>{const s=e.icon,i=s&&Ea[s]?Ea[s]:"icon-info",l=oy[i]||oy["icon-info"];return{class:i,component:l}});return{ns:n,resultIcon:o}}});function TX(e,t,n,o,s,i){return M(),W("div",{class:P(e.ns.b())},[Q("div",{class:P(e.ns.e("icon"))},[Ie(e.$slots,"icon",{},()=>[e.resultIcon.component?(M(),me(Xt(e.resultIcon.component),{key:0,class:P(e.resultIcon.class)},null,8,["class"])):fe("v-if",!0)])],2),e.title||e.$slots.title?(M(),W("div",{key:0,class:P(e.ns.e("title"))},[Ie(e.$slots,"title",{},()=>[Q("p",null,Pe(e.title),1)])],2)):fe("v-if",!0),e.subTitle||e.$slots["sub-title"]?(M(),W("div",{key:1,class:P(e.ns.e("subtitle"))},[Ie(e.$slots,"sub-title",{},()=>[Q("p",null,Pe(e.subTitle),1)])],2)):fe("v-if",!0),e.$slots.extra?(M(),W("div",{key:2,class:P(e.ns.e("extra"))},[Ie(e.$slots,"extra")],2)):fe("v-if",!0)],2)}var IX=Ue(AX,[["render",TX],["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const _X=$t(IX),NX=ct({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:["start","center","end","space-around","space-between","space-evenly"],default:"start"},align:{type:String,values:["top","middle","bottom"],default:"top"}}),kX=ve({name:"ElRow",props:NX,setup(e,{slots:t}){const n=Be("row"),o=$(()=>e.gutter);Pt(qw,{gutter:o});const s=$(()=>{const i={marginLeft:"",marginRight:""};return e.gutter&&(i.marginLeft=`-${e.gutter/2}px`,i.marginRight=i.marginLeft),i});return()=>le(e.tag,{class:[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,e.align!=="top")],style:s.value},{default:()=>{var i;return[(i=t.default)==null?void 0:i.call(t)]}})}}),xX=$t(kX);var sy=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function MX(e,t){return!!(e===t||sy(e)&&sy(t))}function OX(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!MX(e[n],t[n]))return!1;return!0}function DX(e,t){t===void 0&&(t=OX);var n=null;function o(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(n&&n.lastThis===this&&t(s,n.lastArgs))return n.lastResult;var l=e.apply(this,s);return n={lastResult:l,lastArgs:s,lastThis:this},l}return o.clear=function(){n=null},o}const $X=()=>{const t=Dt().proxy.$props;return $(()=>{const n=(o,s,i)=>({});return t.perfMode?zd(n):DX(n)})},RX=50,iy="itemRendered",ay="scroll",JE="forward",eS="backward",pu="auto",tS="smart",nS="start",dd="center",oS="end",Ga="horizontal",e1="vertical",LX="ltr",Rc="rtl",rS="negative",PX="positive-ascending",sS="positive-descending",BX={[Ga]:"left",[e1]:"top"},FX=20,VX={[Ga]:"deltaX",[e1]:"deltaY"},HX=({atEndEdge:e,atStartEdge:t,layout:n},o)=>{let s,i=0;const l=f=>f<0&&t.value||f>0&&e.value;return{hasReachedEdge:l,onWheel:f=>{Hw(s);const p=f[VX[n.value]];l(i)&&l(i+p)||(i+=p,M0()||f.preventDefault(),s=Vw(()=>{o(i),i=0}))}}},fp=Br({type:Xe([Number,Function]),required:!0}),hp=Br({type:Number}),pp=Br({type:Number,default:2}),zX=Br({type:String,values:["ltr","rtl"],default:"ltr"}),gp=Br({type:Number,default:0}),fd=Br({type:Number,required:!0}),iS=Br({type:String,values:["horizontal","vertical"],default:e1}),aS=ct({className:{type:String,default:""},containerElement:{type:Xe([String,Object]),default:"div"},data:{type:Xe(Array),default:()=>In([])},direction:zX,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:Xe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),UX=ct(be({cache:pp,estimatedItemSize:hp,layout:iS,initScrollOffset:gp,total:fd,itemSize:fp},aS)),mp={type:Number,default:6},lS={type:Number,default:2},uS={type:Number,default:2};ct(be({columnCache:pp,columnWidth:fp,estimatedColumnWidth:hp,estimatedRowHeight:hp,initScrollLeft:gp,initScrollTop:gp,rowCache:pp,rowHeight:fp,totalColumn:fd,totalRow:fd,hScrollbarSize:mp,vScrollbarSize:mp,scrollbarStartGap:lS,scrollbarEndGap:uS},aS));const WX=ct({alwaysOn:Boolean,class:String,layout:iS,total:fd,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:mp,startGap:lS,endGap:uS,visible:Boolean}),ah=(e,t)=>e<t?JE:eS,gu=e=>e===LX||e===Rc||e===Ga;let ga=null;function ly(e=!1){if(ga===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const o=document.createElement("div"),s=o.style;return s.width="100px",s.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?ga=sS:(t.scrollLeft=1,t.scrollLeft===0?ga=rS:ga=PX),document.body.removeChild(t),ga}return ga}function jX({move:e,size:t,bar:n},o){const s={},i=`translate${n.axis}(${e}px)`;return s[n.size]=t,s.transform=i,s.msTransform=i,s.webkitTransform=i,o==="horizontal"?s.height="100%":s.width="100%",s}const KX=ve({name:"ElVirtualScrollBar",props:WX,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=$(()=>e.startGap+e.endGap),o=Be("virtual-scrollbar"),s=Be("scrollbar"),i=F(),l=F();let c=null,f=null;const p=nn({isDragging:!1,traveled:0}),m=$(()=>yC[e.layout]),y=$(()=>e.clientSize-k(n)),v=$(()=>({position:"absolute",width:`${Ga===e.layout?y.value:e.scrollbarSize}px`,height:`${Ga===e.layout?e.scrollbarSize:y.value}px`,[BX[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),w=$(()=>{const x=e.ratio,R=e.clientSize;if(x>=100)return Number.POSITIVE_INFINITY;if(x>=50)return x*R/100;const B=R/3;return Math.floor(Math.min(Math.max(x*R,FX),B))}),E=$(()=>{if(!Number.isFinite(w.value))return{display:"none"};const x=`${w.value}px`;return jX({bar:m.value,size:x,move:p.traveled},e.layout)}),I=$(()=>Math.floor(e.clientSize-w.value-k(n))),S=()=>{window.addEventListener("mousemove",O),window.addEventListener("mouseup",N);const x=k(l);!x||(f=document.onselectstart,document.onselectstart=()=>!1,x.addEventListener("touchmove",O),x.addEventListener("touchend",N))},T=()=>{window.removeEventListener("mousemove",O),window.removeEventListener("mouseup",N),document.onselectstart=f,f=null;const x=k(l);!x||(x.removeEventListener("touchmove",O),x.removeEventListener("touchend",N))},_=x=>{x.stopImmediatePropagation(),!(x.ctrlKey||[1,2].includes(x.button))&&(p.isDragging=!0,p[m.value.axis]=x.currentTarget[m.value.offset]-(x[m.value.client]-x.currentTarget.getBoundingClientRect()[m.value.direction]),t("start-move"),S())},N=()=>{p.isDragging=!1,p[m.value.axis]=0,t("stop-move"),T()},O=x=>{const{isDragging:R}=p;if(!R||!l.value||!i.value)return;const B=p[m.value.axis];if(!B)return;Hw(c);const Y=(i.value.getBoundingClientRect()[m.value.direction]-x[m.value.client])*-1,X=l.value[m.value.offset]-B,K=Y-X;c=Vw(()=>{p.traveled=Math.max(e.startGap,Math.min(K,I.value)),t("scroll",K,I.value)})},D=x=>{const R=Math.abs(x.target.getBoundingClientRect()[m.value.direction]-x[m.value.client]),B=l.value[m.value.offset]/2,Y=R-B;p.traveled=Math.max(0,Math.min(Y,I.value)),t("scroll",Y,I.value)};return Re(()=>e.scrollFrom,x=>{p.isDragging||(p.traveled=Math.ceil(x*I.value))}),gn(()=>{T()}),()=>it("div",{role:"presentation",ref:i,class:[o.b(),e.class,(e.alwaysOn||p.isDragging)&&"always-on"],style:v.value,onMousedown:vt(D,["stop","prevent"]),onTouchstartPrevent:_},it("div",{ref:l,class:s.e("thumb"),style:E.value,onMousedown:_},[]))}}),cS=({name:e,getOffset:t,getItemSize:n,getItemOffset:o,getEstimatedTotalSize:s,getStartIndexForOffset:i,getStopIndexForStartIndex:l,initCache:c,clearCache:f,validateProps:p})=>ve({name:e!=null?e:"ElVirtualList",props:UX,emits:[iy,ay],setup(m,{emit:y,expose:v}){p(m);const w=Dt(),E=Be("vl"),I=F(c(m,w)),S=$X(),T=F(),_=F(),N=F(),O=F({isScrolling:!1,scrollDir:"forward",scrollOffset:Qt(m.initScrollOffset)?m.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:m.scrollbarAlwaysOn}),D=$(()=>{const{total:Ee,cache:qe}=m,{isScrolling:xe,scrollDir:pe,scrollOffset:Me}=k(O);if(Ee===0)return[0,0,0,0];const We=i(m,Me,k(I)),ze=l(m,We,Me,k(I)),Ze=!xe||pe===eS?Math.max(1,qe):1,mt=!xe||pe===JE?Math.max(1,qe):1;return[Math.max(0,We-Ze),Math.max(0,Math.min(Ee-1,ze+mt)),We,ze]}),x=$(()=>s(m,k(I))),R=$(()=>gu(m.layout)),B=$(()=>[{position:"relative",[`overflow-${R.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:Qt(m.height)?`${m.height}px`:m.height,width:Qt(m.width)?`${m.width}px`:m.width},m.style]),Y=$(()=>{const Ee=k(x),qe=k(R);return{height:qe?"100%":`${Ee}px`,pointerEvents:k(O).isScrolling?"none":void 0,width:qe?`${Ee}px`:"100%"}}),X=$(()=>R.value?m.width:m.height),{onWheel:K}=HX({atStartEdge:$(()=>O.value.scrollOffset<=0),atEndEdge:$(()=>O.value.scrollOffset>=x.value),layout:$(()=>m.layout)},Ee=>{var qe,xe;(xe=(qe=N.value).onMouseUp)==null||xe.call(qe),V(Math.min(O.value.scrollOffset+Ee,x.value-X.value))}),J=()=>{const{total:Ee}=m;if(Ee>0){const[Me,We,ze,Ze]=k(D);y(iy,Me,We,ze,Ze)}const{scrollDir:qe,scrollOffset:xe,updateRequested:pe}=k(O);y(ay,qe,xe,pe)},G=Ee=>{const{clientHeight:qe,scrollHeight:xe,scrollTop:pe}=Ee.currentTarget,Me=k(O);if(Me.scrollOffset===pe)return;const We=Math.max(0,Math.min(pe,xe-qe));O.value=Qe(be({},Me),{isScrolling:!0,scrollDir:ah(Me.scrollOffset,We),scrollOffset:We,updateRequested:!1}),dt(ue)},z=Ee=>{const{clientWidth:qe,scrollLeft:xe,scrollWidth:pe}=Ee.currentTarget,Me=k(O);if(Me.scrollOffset===xe)return;const{direction:We}=m;let ze=xe;if(We===Rc)switch(ly()){case rS:{ze=-xe;break}case sS:{ze=pe-qe-xe;break}}ze=Math.max(0,Math.min(ze,pe-qe)),O.value=Qe(be({},Me),{isScrolling:!0,scrollDir:ah(Me.scrollOffset,ze),scrollOffset:ze,updateRequested:!1}),dt(ue)},ee=Ee=>{k(R)?z(Ee):G(Ee),J()},j=(Ee,qe)=>{const xe=(x.value-X.value)/qe*Ee;V(Math.min(x.value-X.value,xe))},V=Ee=>{Ee=Math.max(Ee,0),Ee!==k(O).scrollOffset&&(O.value=Qe(be({},k(O)),{scrollOffset:Ee,scrollDir:ah(k(O).scrollOffset,Ee),updateRequested:!0}),dt(ue))},q=(Ee,qe=pu)=>{const{scrollOffset:xe}=k(O);Ee=Math.max(0,Math.min(Ee,m.total-1)),V(t(m,Ee,qe,xe,k(I)))},ce=Ee=>{const{direction:qe,itemSize:xe,layout:pe}=m,Me=S.value(f&&xe,f&&pe,f&&qe);let We;if(Bt(Me,String(Ee)))We=Me[Ee];else{const ze=o(m,Ee,k(I)),Ze=n(m,Ee,k(I)),mt=k(R),ot=qe===Rc,te=mt?ze:0;Me[Ee]=We={position:"absolute",left:ot?void 0:`${te}px`,right:ot?`${te}px`:void 0,top:mt?0:`${ze}px`,height:mt?"100%":`${Ze}px`,width:mt?`${Ze}px`:"100%"}}return We},ue=()=>{O.value.isScrolling=!1,dt(()=>{S.value(-1,null,null)})},ne=()=>{const Ee=T.value;Ee&&(Ee.scrollTop=0)};kt(()=>{if(!jt)return;const{initScrollOffset:Ee}=m,qe=k(T);Qt(Ee)&&qe&&(k(R)?qe.scrollLeft=Ee:qe.scrollTop=Ee),J()}),br(()=>{const{direction:Ee,layout:qe}=m,{scrollOffset:xe,updateRequested:pe}=k(O),Me=k(T);if(pe&&Me)if(qe===Ga)if(Ee===Rc)switch(ly()){case"negative":{Me.scrollLeft=-xe;break}case"positive-ascending":{Me.scrollLeft=xe;break}default:{const{clientWidth:We,scrollWidth:ze}=Me;Me.scrollLeft=ze-We-xe;break}}else Me.scrollLeft=xe;else Me.scrollTop=xe});const Se={ns:E,clientSize:X,estimatedTotalSize:x,windowStyle:B,windowRef:T,innerRef:_,innerStyle:Y,itemsToRender:D,scrollbarRef:N,states:O,getItemStyle:ce,onScroll:ee,onScrollbarScroll:j,onWheel:K,scrollTo:V,scrollToItem:q,resetScrollTop:ne};return v({windowRef:T,innerRef:_,getItemStyleCache:S,scrollTo:V,scrollToItem:q,resetScrollTop:ne,states:O}),Se},render(m){var y;const{$slots:v,className:w,clientSize:E,containerElement:I,data:S,getItemStyle:T,innerElement:_,itemsToRender:N,innerStyle:O,layout:D,total:x,onScroll:R,onScrollbarScroll:B,onWheel:Y,states:X,useIsScrolling:K,windowStyle:J,ns:G}=m,[z,ee]=N,j=Xt(I),V=Xt(_),q=[];if(x>0)for(let Se=z;Se<=ee;Se++)q.push((y=v.default)==null?void 0:y.call(v,{data:S,key:Se,index:Se,isScrolling:K?X.isScrolling:void 0,style:T(Se)}));const ce=[it(V,{style:O,ref:"innerRef"},_t(V)?q:{default:()=>q})],ue=it(KX,{ref:"scrollbarRef",clientSize:E,layout:D,onScroll:B,ratio:E*100/this.estimatedTotalSize,scrollFrom:X.scrollOffset/(this.estimatedTotalSize-E),total:x}),ne=it(j,{class:["el-vl__window",w],style:J,onScroll:R,onWheel:Y,ref:"windowRef",key:0},_t(j)?[ce]:{default:()=>[ce]});return it("div",{key:0,class:[G.e("wrapper"),X.scrollbarAlwaysOn?"always-on":""]},[ne,ue])}}),dS=cS({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:o,width:s},i,l,c)=>{const f=gu(o)?s:e,p=Math.max(0,t*n-f),m=Math.min(p,i*n),y=Math.max(0,(i+1)*n-f);switch(l===tS&&(c>=y-f&&c<=m+f?l=pu:l=dd),l){case nS:return m;case oS:return y;case dd:{const v=Math.round(y+(m-y)/2);return v<Math.ceil(f/2)?0:v>p+Math.floor(f/2)?p:v}case pu:default:return c>=y&&c<=m?c:c<y?y:m}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:o,width:s},i,l)=>{const c=i*n,f=gu(o)?s:e,p=Math.ceil((f+l-c)/n);return Math.max(0,Math.min(t-1,i+p-1))},initCache(){},clearCache:!0,validateProps(){}}),Sa=(e,t,n)=>{const{itemSize:o}=e,{items:s,lastVisitedIndex:i}=n;if(t>i){let l=0;if(i>=0){const c=s[i];l=c.offset+c.size}for(let c=i+1;c<=t;c++){const f=o(c);s[c]={offset:l,size:f},l+=f}n.lastVisitedIndex=t}return s[t]},YX=(e,t,n)=>{const{items:o,lastVisitedIndex:s}=t;return(s>0?o[s].offset:0)>=n?fS(e,t,0,s,n):GX(e,t,Math.max(0,s),n)},fS=(e,t,n,o,s)=>{for(;n<=o;){const i=n+Math.floor((o-n)/2),l=Sa(e,i,t).offset;if(l===s)return i;l<s?n=i+1:l>s&&(o=i-1)}return Math.max(0,n-1)},GX=(e,t,n,o)=>{const{total:s}=e;let i=1;for(;n<s&&Sa(e,n,t).offset<o;)n+=i,i*=2;return fS(e,t,Math.floor(n/2),Math.min(n,s-1),o)},uy=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:o})=>{let s=0;if(o>=e&&(o=e-1),o>=0){const c=t[o];s=c.offset+c.size}const l=(e-o-1)*n;return s+l},XX=cS({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Sa(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:uy,getOffset:(e,t,n,o,s)=>{const{height:i,layout:l,width:c}=e,f=gu(l)?c:i,p=Sa(e,t,s),m=uy(e,s),y=Math.max(0,Math.min(m-f,p.offset)),v=Math.max(0,p.offset-f+p.size);switch(n===tS&&(o>=v-f&&o<=y+f?n=pu:n=dd),n){case nS:return y;case oS:return v;case dd:return Math.round(v+(y-v)/2);case pu:default:return o>=v&&o<=y?o:o<v?v:y}},getStartIndexForOffset:(e,t,n)=>YX(e,n,t),getStopIndexForStartIndex:(e,t,n,o)=>{const{height:s,total:i,layout:l,width:c}=e,f=gu(l)?c:s,p=Sa(e,t,o),m=n+f;let y=p.offset+p.size,v=t;for(;v<i-1&&y<m;)v++,y+=Sa(e,v,o).size;return v},initCache({estimatedItemSize:e=RX},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(o,s=!0)=>{var i,l;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,o-1),(i=t.exposed)==null||i.getItemStyleCache(-1),s&&((l=t.proxy)==null||l.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),qX=ve({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Be("select")}}});function ZX(e,t,n,o,s,i){return e.item.isTitle?(M(),W("div",{key:0,class:P(e.ns.be("group","title")),style:st([e.style,{lineHeight:`${e.height}px`}])},Pe(e.item.label),7)):(M(),W("div",{key:1,class:P(e.ns.be("group","split")),style:st(e.style)},[Q("span",{class:P(e.ns.be("group","split-dash")),style:st({top:`${e.height/2}px`})},null,6)],6))}var QX=Ue(qX,[["render",ZX],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function JX(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const eq={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:gs},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},popperAppendToBody:{type:Boolean,default:void 0},teleported:ro.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:Zo},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1}},tq={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},nq=ve({props:tq,emits:["select","hover"],setup(e,{emit:t}){const n=Be("select"),{hoverItem:o,selectOptionClick:s}=JX(e,{emit:t});return{ns:n,hoverItem:o,selectOptionClick:s}}}),oq=["aria-selected"];function rq(e,t,n,o,s,i){return M(),W("li",{"aria-selected":e.selected,style:st(e.style),class:P([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...l)=>e.hoverItem&&e.hoverItem(...l)),onClick:t[1]||(t[1]=vt((...l)=>e.selectOptionClick&&e.selectOptionClick(...l),["stop"]))},[Ie(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[Q("span",null,Pe(e.item.label),1)])],46,oq)}var sq=Ue(nq,[["render",rq],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const hS="ElSelectV2Injection",iq=ve({name:"ElSelectDropdown",props:{data:Array,hoveringIndex:Number,width:Number},setup(e){const t=et(hS),n=Be("select"),o=F([]),s=F(null),i=$(()=>zo(t.props.estimatedOptionHeight)),l=$(()=>i.value?{itemSize:t.props.itemHeight}:{estimatedSize:t.props.estimatedOptionHeight,itemSize:E=>o.value[E]}),c=(E=[],I)=>{const{props:{valueKey:S}}=t;return Kt(I)?E&&E.some(T=>An(T,S)===An(I,S)):E.includes(I)},f=(E,I)=>{if(Kt(I)){const{valueKey:S}=t.props;return An(E,S)===An(I,S)}else return E===I};return{ns:n,select:t,listProps:l,listRef:s,isSized:i,isItemDisabled:(E,I)=>{const{disabled:S,multiple:T,multipleLimit:_}=t.props;return S||!I&&(T?_>0&&E.length>=_:!1)},isItemHovering:E=>e.hoveringIndex===E,isItemSelected:(E,I)=>{const{valueKey:S}=t.props;return t.props.multiple?c(E,An(I,S)):f(E,An(I,S))},scrollToItem:E=>{const I=s.value;I&&I.scrollToItem(E)},resetScrollTop:()=>{const E=s.value;E&&E.resetScrollTop()}}},render(e,t){var n;const{$slots:o,data:s,listProps:i,select:l,isSized:c,width:f,ns:p,isItemDisabled:m,isItemHovering:y,isItemSelected:v}=e,w=c?dS:XX,{props:E,onSelect:I,onHover:S,onKeyboardNavigate:T,onKeyboardSelect:_}=l,{height:N,modelValue:O,multiple:D}=E;if(s.length===0)return it("div",{class:p.b("dropdown"),style:{width:`${f}px`}},(n=o.empty)==null?void 0:n.call(o));const x=ae(B=>{const{index:Y,data:X}=B,K=X[Y];if(X[Y].type==="Group")return it(QX,{item:K,style:B.style,height:c?i.itemSize:i.estimatedSize});const J=v(O,K),G=m(O,J);return it(sq,Qe(be({},B),{selected:J,disabled:K.disabled||G,created:!!K.created,hovering:y(Y),item:K,onSelect:I,onHover:S}),{default:ae(z=>Ie(o,"default",z,()=>[it("span",K.label)]))})}),R=it(w,be({ref:"listRef",className:p.be("dropdown","list"),data:s,height:N,width:f,total:s.length,scrollbarAlwaysOn:E.scrollbarAlwaysOn,onKeydown:[t[1]||(t[1]=Ft(vt(()=>T("forward"),["stop","prevent"]),["down"])),t[2]||(t[2]=Ft(vt(()=>T("backward"),["stop","prevent"]),["up"])),t[3]||(t[3]=Ft(vt(_,["stop","prevent"]),["enter"])),t[4]||(t[4]=Ft(vt(()=>l.expanded=!1,["stop","prevent"]),["esc"])),t[5]||(t[5]=Ft(()=>l.expanded=!1,["tab"]))]},i),{default:x});return it("div",{class:[p.b("dropdown"),p.is("multiple",D)]},[R])}});var aq=Ue(iq,[["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select-dropdown.vue"]]);function lq(e,t){const n=F(0),o=F(null),s=$(()=>e.allowCreate&&e.filterable);function i(m){const y=v=>v.value===m;return e.options&&e.options.some(y)||t.createdOptions.some(y)}function l(m){!s.value||(e.multiple&&m.created?n.value++:o.value=m)}function c(m){if(s.value)if(m&&m.length>0&&!i(m)){const y={value:m,label:m,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=y:t.createdOptions.push(y)}else if(e.multiple)t.createdOptions.length=n.value;else{const y=o.value;t.createdOptions.length=0,y&&y.created&&t.createdOptions.push(y)}}function f(m){if(!s.value||!m||!m.created||m.created&&e.reserveKeyword&&t.inputValue===m.label)return;const y=t.createdOptions.findIndex(v=>v.value===m.value);~y&&(t.createdOptions.splice(y,1),n.value--)}function p(){s.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:c,removeNewOption:f,selectNewOption:l,clearAllNewOption:p}}const uq=e=>{const t=[];return e.forEach(n=>{wt(n.options)?(t.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(o=>{t.push(o)}),t.push({type:"Group"})):t.push(n)}),t};function cq(e){const t=F(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const l=i.target.value,c=l[l.length-1]||"";t.value=!Xd(c)},handleCompositionEnd:i=>{t.value&&(t.value=!1,It(e)&&e(i))}}}const cy="",dy=11,dq={larget:51,default:42,small:33},fq="ElSelectV2",hq=(e,t)=>{const{t:n}=un(),o=Be("select-v2"),s=Be("input"),{form:i,formItem:l}=il(),{compatTeleported:c}=al(fq,"popperAppendToBody"),f=nn({inputValue:cy,displayInputValue:cy,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:"",query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),p=F(-1),m=F(-1),y=F(null),v=F(null),w=F(null),E=F(null),I=F(null),S=F(null),T=F(null),_=F(!1),N=$(()=>e.disabled||(i==null?void 0:i.disabled)),O=$(()=>{const Ge=G.value.length*34;return Ge>e.height?e.height:Ge}),D=$(()=>e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!==""),x=$(()=>{const Ge=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:D.value;return e.clearable&&!N.value&&f.comboBoxHovering&&Ge}),R=$(()=>e.remote&&e.filterable?"":xu),B=$(()=>R.value&&o.is("reverse",_.value)),Y=$(()=>(l==null?void 0:l.validateState)||""),X=$(()=>Rw[Y.value]),K=$(()=>e.remote?300:0),J=$(()=>{const Ge=G.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&f.inputValue===""&&Ge.length===0?!1:e.filterable&&f.inputValue&&Ge.length>0?e.noMatchText||n("el.select.noMatch"):Ge.length===0?e.noDataText||n("el.select.noData"):null}),G=$(()=>{const Ge=gt=>{const Yt=f.inputValue;return Yt?gt.label.includes(Yt):!0};return e.loading?[]:uq(e.options.concat(f.createdOptions).map(gt=>{if(wt(gt.options)){const Yt=gt.options.filter(Ge);if(Yt.length>0)return Qe(be({},gt),{options:Yt})}else if(e.remote||Ge(gt))return gt;return null}).filter(gt=>gt!==null))}),z=$(()=>G.value.every(Ge=>Ge.disabled)),ee=Fn(),j=$(()=>ee.value==="small"?"small":"default"),V=$(()=>{const Ge=S.value,gt=j.value||"default",Yt=Ge?Number.parseInt(getComputedStyle(Ge).paddingLeft):0,Gt=Ge?Number.parseInt(getComputedStyle(Ge).paddingRight):0;return f.selectWidth-Gt-Yt-dq[gt]}),q=()=>{var Ge,gt,Yt;m.value=((Yt=(gt=(Ge=I.value)==null?void 0:Ge.getBoundingClientRect)==null?void 0:gt.call(Ge))==null?void 0:Yt.width)||200},ce=$(()=>({width:`${f.calculatedWidth===0?dy:Math.ceil(f.calculatedWidth)+dy}px`})),ue=$(()=>wt(e.modelValue)?e.modelValue.length===0&&!f.displayInputValue:e.filterable?f.displayInputValue.length===0:!0),ne=$(()=>{const Ge=e.placeholder||n("el.select.placeholder");return e.multiple?Ge:f.selectedLabel||Ge}),Se=$(()=>{var Ge,gt;return(gt=(Ge=E.value)==null?void 0:Ge.popperRef)==null?void 0:gt.contentRef}),Ee=$(()=>{if(e.multiple){const Ge=e.modelValue.length;if(e.modelValue.length>0)return G.value.findIndex(gt=>gt.value===e.modelValue[Ge-1])}else if(e.modelValue)return G.value.findIndex(Ge=>Ge.value===e.modelValue);return-1}),qe=$(()=>_.value&&J.value!==!1),{createNewOption:xe,removeNewOption:pe,selectNewOption:Me,clearAllNewOption:We}=lq(e,f),{handleCompositionStart:ze,handleCompositionUpdate:Ze,handleCompositionEnd:mt}=cq(Ge=>co(Ge)),ot=()=>{var Ge,gt,Yt;(gt=(Ge=v.value).focus)==null||gt.call(Ge),(Yt=E.value)==null||Yt.updatePopper()},te=()=>{if(!e.automaticDropdown&&!N.value)return f.isComposing&&(f.softFocus=!0),dt(()=>{var Ge,gt;_.value=!_.value,(gt=(Ge=v.value)==null?void 0:Ge.focus)==null||gt.call(Ge)})},de=()=>(e.filterable&&f.inputValue!==f.selectedLabel&&(f.query=f.selectedLabel),De(f.inputValue),dt(()=>{xe(f.inputValue)})),Ne=$o(de,K.value),De=Ge=>{f.previousQuery!==Ge&&(f.previousQuery=Ge,e.filterable&&It(e.filterMethod)?e.filterMethod(Ge):e.filterable&&e.remote&&It(e.remoteMethod)&&e.remoteMethod(Ge))},ke=Ge=>{Ko(e.modelValue,Ge)||t(Gn,Ge)},Ve=Ge=>{t(Ot,Ge),ke(Ge),f.previousValue=Ge.toString()},ie=(Ge=[],gt)=>{if(!Kt(gt))return Ge.indexOf(gt);const Yt=e.valueKey;let Gt=-1;return Ge.some((fo,mo)=>An(fo,Yt)===An(gt,Yt)?(Gt=mo,!0):!1),Gt},re=Ge=>Kt(Ge)?An(Ge,e.valueKey):Ge,ge=Ge=>Kt(Ge)?Ge.label:Ge,Te=()=>{if(!(e.collapseTags&&!e.filterable))return dt(()=>{var Ge,gt;if(!v.value)return;const Yt=S.value;I.value.height=Yt.offsetHeight,_.value&&J.value!==!1&&((gt=(Ge=E.value)==null?void 0:Ge.updatePopper)==null||gt.call(Ge))})},Je=()=>{var Ge,gt;if(he(),q(),(gt=(Ge=E.value)==null?void 0:Ge.updatePopper)==null||gt.call(Ge),e.multiple)return Te()},he=()=>{const Ge=S.value;Ge&&(f.selectWidth=Ge.getBoundingClientRect().width)},He=(Ge,gt,Yt=!0)=>{var Gt,fo;if(e.multiple){let mo=e.modelValue.slice();const vo=ie(mo,re(Ge));vo>-1?(mo=[...mo.slice(0,vo),...mo.slice(vo+1)],f.cachedOptions.splice(vo,1),pe(Ge)):(e.multipleLimit<=0||mo.length<e.multipleLimit)&&(mo=[...mo,re(Ge)],f.cachedOptions.push(Ge),Me(Ge),Nt(gt)),Ve(mo),Ge.created&&(f.query="",De(""),f.inputLength=20),e.filterable&&!e.reserveKeyword&&((fo=(Gt=v.value).focus)==null||fo.call(Gt),Ye("")),e.filterable&&(f.calculatedWidth=T.value.getBoundingClientRect().width),Te(),cn()}else p.value=gt,f.selectedLabel=Ge.label,Ve(re(Ge)),_.value=!1,f.isComposing=!1,f.isSilentBlur=Yt,Me(Ge),Ge.created||We(),Nt(gt)},pt=(Ge,gt)=>{const{valueKey:Yt}=e,Gt=e.modelValue.indexOf(An(gt,Yt));if(Gt>-1&&!N.value){const fo=[...e.modelValue.slice(0,Gt),...e.modelValue.slice(Gt+1)];return f.cachedOptions.splice(Gt,1),Ve(fo),t("remove-tag",An(gt,Yt)),f.softFocus=!0,pe(gt),dt(ot)}Ge.stopPropagation()},At=Ge=>{const gt=f.isComposing;f.isComposing=!0,f.softFocus?f.softFocus=!1:gt||t("focus",Ge)},tt=()=>(f.softFocus=!1,dt(()=>{var Ge,gt;(gt=(Ge=v.value)==null?void 0:Ge.blur)==null||gt.call(Ge),T.value&&(f.calculatedWidth=T.value.getBoundingClientRect().width),f.isSilentBlur?f.isSilentBlur=!1:f.isComposing&&t("blur"),f.isComposing=!1})),we=()=>{f.displayInputValue.length>0?Ye(""):_.value=!1},Fe=Ge=>{if(f.displayInputValue.length===0){Ge.preventDefault();const gt=e.modelValue.slice();gt.pop(),pe(f.cachedOptions.pop()),Ve(gt)}},_e=()=>{let Ge;return wt(e.modelValue)?Ge=[]:Ge="",f.softFocus=!0,e.multiple?f.cachedOptions=[]:f.selectedLabel="",_.value=!1,Ve(Ge),t("clear"),We(),dt(ot)},Ye=Ge=>{f.displayInputValue=Ge,f.inputValue=Ge},Le=(Ge,gt=void 0)=>{const Yt=G.value;if(!["forward","backward"].includes(Ge)||N.value||Yt.length<=0||z.value)return;if(!_.value)return te();gt===void 0&&(gt=f.hoveringIndex);let Gt=-1;Ge==="forward"?(Gt=gt+1,Gt>=Yt.length&&(Gt=0)):Ge==="backward"&&(Gt=gt-1,Gt<0&&(Gt=Yt.length-1));const fo=Yt[Gt];if(fo.disabled||fo.type==="Group")return Le(Ge,Gt);Nt(Gt),go(Gt)},Mt=()=>{if(_.value)~f.hoveringIndex&&G.value[f.hoveringIndex]&&He(G.value[f.hoveringIndex],f.hoveringIndex,!1);else return te()},Nt=Ge=>{f.hoveringIndex=Ge},Tt=()=>{f.hoveringIndex=-1},cn=()=>{var Ge;const gt=v.value;gt&&((Ge=gt.focus)==null||Ge.call(gt))},co=Ge=>{const gt=Ge.target.value;if(Ye(gt),f.displayInputValue.length>0&&!_.value&&(_.value=!0),f.calculatedWidth=T.value.getBoundingClientRect().width,e.multiple&&Te(),e.remote)Ne();else return de()},eo=()=>(_.value=!1,tt()),Ut=()=>(f.inputValue=f.displayInputValue,dt(()=>{~Ee.value&&(Nt(Ee.value),go(f.hoveringIndex))})),go=Ge=>{w.value.scrollToItem(Ge)},Ss=()=>{if(Tt(),e.multiple)if(e.modelValue.length>0){let Ge=!1;f.cachedOptions.length=0,f.previousValue=e.modelValue.toString(),e.modelValue.forEach(gt=>{const Yt=G.value.findIndex(Gt=>re(Gt)===gt);~Yt&&(f.cachedOptions.push(G.value[Yt]),Ge||Nt(Yt),Ge=!0)})}else f.cachedOptions=[],f.previousValue="";else if(D.value){f.previousValue=e.modelValue;const Ge=G.value,gt=Ge.findIndex(Yt=>re(Yt)===re(e.modelValue));~gt?(f.selectedLabel=Ge[gt].label,Nt(gt)):f.selectedLabel=`${e.modelValue}`}else f.selectedLabel="",f.previousValue="";q()};return Re(_,Ge=>{var gt,Yt;t("visible-change",Ge),Ge?(Yt=(gt=E.value).update)==null||Yt.call(gt):(f.displayInputValue="",xe(""))}),Re(()=>e.modelValue,(Ge,gt)=>{var Yt;(!Ge||Ge.toString()!==f.previousValue)&&Ss(),Ko(Ge,gt)||(Yt=l==null?void 0:l.validate)==null||Yt.call(l,"change").catch(Gt=>void 0)},{deep:!0}),Re(()=>e.options,()=>{const Ge=v.value;(!Ge||Ge&&document.activeElement!==Ge)&&Ss()},{deep:!0}),Re(G,()=>dt(w.value.resetScrollTop)),kt(()=>{Ss(),ol(I.value,Je)}),Au(()=>{rl(I.value,Je)}),{collapseTagSize:j,currentPlaceholder:ne,expanded:_,emptyText:J,popupHeight:O,debounce:K,filteredOptions:G,iconComponent:R,iconReverse:B,inputWrapperStyle:ce,popperSize:m,dropdownMenuVisible:qe,hasModelValue:D,shouldShowPlaceholder:ue,selectDisabled:N,selectSize:ee,showClearBtn:x,states:f,tagMaxWidth:V,nsSelectV2:o,nsInput:s,calculatorRef:T,controlRef:y,inputRef:v,menuRef:w,popper:E,selectRef:I,selectionRef:S,popperRef:Se,validateState:Y,validateIcon:X,compatTeleported:c,debouncedOnInputChange:Ne,deleteTag:pt,getLabel:ge,getValueKey:re,handleBlur:tt,handleClear:_e,handleClickOutside:eo,handleDel:Fe,handleEsc:we,handleFocus:At,handleMenuEnter:Ut,handleResize:Je,toggleMenu:te,scrollTo:go,onInput:co,onKeyboardNavigate:Le,onKeyboardSelect:Mt,onSelect:He,onHover:Nt,onUpdateInputValue:Ye,handleCompositionStart:ze,handleCompositionEnd:mt,handleCompositionUpdate:Ze}},pq=ve({name:"ElSelectV2",components:{ElSelectMenu:aq,ElTag:nf,ElTooltip:Ro,ElIcon:yt},directives:{ClickOutside:ta,ModelText:u0},props:eq,emits:[Ot,Gn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=hq(e,t);return Pt(hS,{props:nn(Qe(be({},Yn(e)),{height:n.popupHeight})),onSelect:n.onSelect,onHover:n.onHover,onKeyboardNavigate:n.onKeyboardNavigate,onKeyboardSelect:n.onKeyboardSelect}),n}}),gq={key:0},mq=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],vq=["textContent"],yq=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],bq=["textContent"];function wq(e,t,n,o,s,i){const l=Ae("el-tag"),c=Ae("el-tooltip"),f=Ae("el-icon"),p=Ae("el-select-menu"),m=qo("model-text"),y=qo("click-outside");return bt((M(),W("div",{ref:"selectRef",class:P([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=vt((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"])),onMouseenter:t[25]||(t[25]=v=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=v=>e.states.comboBoxHovering=!1)},[le(c,{ref:"popper",visible:e.dropdownMenuVisible,"onUpdate:visible":t[22]||(t[22]=v=>e.dropdownMenuVisible=v),teleported:e.compatTeleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:"bottom-start",pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=v=>e.states.inputValue=e.states.displayInputValue)},{default:ae(()=>{var v;return[Q("div",{ref:"selectionRef",class:P([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(M(),W("div",gq,[Ie(e.$slots,"prefix")])):fe("v-if",!0),e.multiple?(M(),W("div",{key:1,class:P(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(M(),W("div",{key:0,class:P(e.nsSelectV2.e("selected-item"))},[le(l,{closable:!e.selectDisabled&&!((v=e.states.cachedOptions[0])!=null&&v.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:t[0]||(t[0]=w=>e.deleteTag(w,e.states.cachedOptions[0]))},{default:ae(()=>{var w;return[Q("span",{class:P(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},Pe((w=e.states.cachedOptions[0])==null?void 0:w.label),7)]}),_:1},8,["closable","size"]),e.modelValue.length>1?(M(),me(l,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:ae(()=>[e.collapseTagsTooltip?(M(),me(c,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:ae(()=>[Q("span",{class:P(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Pe(e.modelValue.length-1),7)]),content:ae(()=>[Q("div",{class:P(e.nsSelectV2.e("selection"))},[(M(!0),W(at,null,zt(e.states.cachedOptions,(w,E)=>(M(),W("div",{key:E,class:P(e.nsSelectV2.e("selected-item"))},[(M(),me(l,{key:e.getValueKey(w),closable:!e.selectDisabled&&!w.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:I=>e.deleteTag(I,w)},{default:ae(()=>[Q("span",{class:P(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},Pe(e.getLabel(w)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect"])):(M(),W("span",{key:1,class:P(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Pe(e.modelValue.length-1),7))]),_:1},8,["size"])):fe("v-if",!0)],2)):(M(!0),W(at,{key:1},zt(e.states.cachedOptions,(w,E)=>(M(),W("div",{key:E,class:P(e.nsSelectV2.e("selected-item"))},[(M(),me(l,{key:e.getValueKey(w),closable:!e.selectDisabled&&!w.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:I=>e.deleteTag(I,w)},{default:ae(()=>[Q("span",{class:P(e.nsSelectV2.e("tags-text")),style:st({maxWidth:`${e.tagMaxWidth}px`})},Pe(e.getLabel(w)),7)]),_:2},1032,["closable","size","onClose"]))],2))),128)),Q("div",{class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:st(e.inputWrapperStyle)},[bt(Q("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:P([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[1]||(t[1]=(...w)=>e.onUpdateInputValue&&e.onUpdateInputValue(...w)),onFocus:t[2]||(t[2]=(...w)=>e.handleFocus&&e.handleFocus(...w)),onInput:t[3]||(t[3]=(...w)=>e.onInput&&e.onInput(...w)),onCompositionstart:t[4]||(t[4]=(...w)=>e.handleCompositionStart&&e.handleCompositionStart(...w)),onCompositionupdate:t[5]||(t[5]=(...w)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...w)),onCompositionend:t[6]||(t[6]=(...w)=>e.handleCompositionEnd&&e.handleCompositionEnd(...w)),onKeydown:[t[7]||(t[7]=Ft(vt(w=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=Ft(vt(w=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=Ft(vt((...w)=>e.onKeyboardSelect&&e.onKeyboardSelect(...w),["stop","prevent"]),["enter"])),t[10]||(t[10]=Ft(vt((...w)=>e.handleEsc&&e.handleEsc(...w),["stop","prevent"]),["esc"])),t[11]||(t[11]=Ft(vt((...w)=>e.handleDel&&e.handleDel(...w),["stop"]),["delete"]))]},null,42,mq),[[m,e.states.displayInputValue]]),e.filterable?(M(),W("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:P(e.nsSelectV2.e("input-calculator")),textContent:Pe(e.states.displayInputValue)},null,10,vq)):fe("v-if",!0)],6)],2)):(M(),W(at,{key:2},[Q("div",{class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[bt(Q("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:P(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...w)=>e.handleCompositionStart&&e.handleCompositionStart(...w)),onCompositionupdate:t[13]||(t[13]=(...w)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...w)),onCompositionend:t[14]||(t[14]=(...w)=>e.handleCompositionEnd&&e.handleCompositionEnd(...w)),onFocus:t[15]||(t[15]=(...w)=>e.handleFocus&&e.handleFocus(...w)),onInput:t[16]||(t[16]=(...w)=>e.onInput&&e.onInput(...w)),onKeydown:[t[17]||(t[17]=Ft(vt(w=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[18]||(t[18]=Ft(vt(w=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[19]||(t[19]=Ft(vt((...w)=>e.onKeyboardSelect&&e.onKeyboardSelect(...w),["stop","prevent"]),["enter"])),t[20]||(t[20]=Ft(vt((...w)=>e.handleEsc&&e.handleEsc(...w),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[21]||(t[21]=(...w)=>e.onUpdateInputValue&&e.onUpdateInputValue(...w))},null,42,yq),[[m,e.states.displayInputValue]])],2),e.filterable?(M(),W("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:P([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:Pe(e.states.displayInputValue)},null,10,bq)):fe("v-if",!0)],64)),e.shouldShowPlaceholder?(M(),W("span",{key:3,class:P([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.states.isComposing||(e.placeholder&&e.multiple?e.modelValue.length===0:!e.hasModelValue))])},Pe(e.currentPlaceholder),3)):fe("v-if",!0),Q("span",{class:P(e.nsSelectV2.e("suffix"))},[e.iconComponent?bt((M(),me(f,{key:0,class:P([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ae(()=>[(M(),me(Xt(e.iconComponent)))]),_:1},8,["class"])),[[Zt,!e.showClearBtn]]):fe("v-if",!0),e.showClearBtn&&e.clearIcon?(M(),me(f,{key:1,class:P([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:vt(e.handleClear,["prevent","stop"])},{default:ae(()=>[(M(),me(Xt(e.clearIcon)))]),_:1},8,["class","onClick"])):fe("v-if",!0),e.validateState&&e.validateIcon?(M(),me(f,{key:2,class:P([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ae(()=>[(M(),me(Xt(e.validateIcon)))]),_:1},8,["class"])):fe("v-if",!0)],2)],2)]}),content:ae(()=>[le(p,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ae(v=>[Ie(e.$slots,"default",Nr(Ys(v)))]),empty:ae(()=>[Ie(e.$slots,"empty",{},()=>[Q("p",{class:P(e.nsSelectV2.e("empty"))},Pe(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","transition","persistent","onBeforeShow"])],34)),[[y,e.handleClickOutside,e.popperRef]])}var Lc=Ue(pq,[["render",wq],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Lc.install=e=>{e.component(Lc.name,Lc)};const Cq=Lc,Eq=Cq,Sq=ct({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Aq=ct({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),Tq={name:"ElSkeletonItem"},Iq=ve(Qe(be({},Tq),{props:Aq,setup(e){const t=Be("skeleton");return(n,o)=>(M(),W("div",{class:P([k(t).e("item"),k(t).e(n.variant)])},[n.variant==="image"?(M(),me(k(xR),{key:0})):fe("v-if",!0)],2))}}));var hd=Ue(Iq,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const _q={name:"ElSkeleton"},Nq=ve(Qe(be({},_q),{props:Sq,setup(e,{expose:t}){const n=e,o=Be("skeleton"),s=yP(Un(n,"loading"),n.throttle);return t({uiLoading:s}),(i,l)=>k(s)?(M(),W("div",pn({key:0,class:[k(o).b(),k(o).is("animated",i.animated)]},i.$attrs),[(M(!0),W(at,null,zt(i.count,c=>(M(),W(at,{key:c},[i.loading?Ie(i.$slots,"template",{key:c},()=>[le(hd,{class:P(k(o).is("first")),variant:"p"},null,8,["class"]),(M(!0),W(at,null,zt(i.rows,f=>(M(),me(hd,{key:f,class:P([k(o).e("paragraph"),k(o).is("last",f===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):fe("v-if",!0)],64))),128))],16)):Ie(i.$slots,"default",Nr(pn({key:1},i.$attrs)))}}));var kq=Ue(Nq,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const xq=$t(kq,{SkeletonItem:hd}),Mq=_n(hd),Oq=(e,t,n)=>{const o=F(null),s=F(!1),i=$(()=>t.value instanceof Function),l=$(()=>i.value&&t.value(e.modelValue)||e.modelValue),c=$o(()=>{n.value&&(s.value=!0)},50),f=$o(()=>{n.value&&(s.value=!1)},50);return{tooltip:o,tooltipVisible:s,formatValue:l,displayTooltip:c,hideTooltip:f}},Dq=(e,t,n)=>{const{disabled:o,min:s,max:i,step:l,showTooltip:c,precision:f,sliderSize:p,formatTooltip:m,emitChange:y,resetSize:v,updateDragging:w}=et("SliderProvider"),{tooltip:E,tooltipVisible:I,formatValue:S,displayTooltip:T,hideTooltip:_}=Oq(e,m,c),N=$(()=>`${(e.modelValue-s.value)/(i.value-s.value)*100}%`),O=$(()=>e.vertical?{bottom:N.value}:{left:N.value}),D=()=>{t.hovering=!0,T()},x=()=>{t.hovering=!1,t.dragging||_()},R=ee=>{o.value||(ee.preventDefault(),K(ee),Bn(window,"mousemove",J),Bn(window,"touchmove",J),Bn(window,"mouseup",G),Bn(window,"touchend",G),Bn(window,"contextmenu",G))},B=()=>{o.value||(t.newPosition=Number.parseFloat(N.value)-l.value/(i.value-s.value)*100,z(t.newPosition),y())},Y=()=>{o.value||(t.newPosition=Number.parseFloat(N.value)+l.value/(i.value-s.value)*100,z(t.newPosition),y())},X=ee=>{let j,V;return ee.type.startsWith("touch")?(V=ee.touches[0].clientY,j=ee.touches[0].clientX):(V=ee.clientY,j=ee.clientX),{clientX:j,clientY:V}},K=ee=>{t.dragging=!0,t.isClick=!0;const{clientX:j,clientY:V}=X(ee);e.vertical?t.startY=V:t.startX=j,t.startPosition=Number.parseFloat(N.value),t.newPosition=t.startPosition},J=ee=>{if(t.dragging){t.isClick=!1,T(),v();let j;const{clientX:V,clientY:q}=X(ee);e.vertical?(t.currentY=q,j=(t.startY-t.currentY)/p.value*100):(t.currentX=V,j=(t.currentX-t.startX)/p.value*100),t.newPosition=t.startPosition+j,z(t.newPosition)}},G=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||_(),t.isClick||(z(t.newPosition),y())},0),Kn(window,"mousemove",J),Kn(window,"touchmove",J),Kn(window,"mouseup",G),Kn(window,"touchend",G),Kn(window,"contextmenu",G))},z=async ee=>{if(ee===null||Number.isNaN(+ee))return;ee<0?ee=0:ee>100&&(ee=100);const j=100/((i.value-s.value)/l.value);let q=Math.round(ee/j)*j*(i.value-s.value)*.01+s.value;q=Number.parseFloat(q.toFixed(f.value)),n(Ot,q),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await dt(),t.dragging&&T(),E.value.updatePopper()};return Re(()=>t.dragging,ee=>{w(ee)}),{tooltip:E,tooltipVisible:I,showTooltip:c,wrapperStyle:O,formatValue:S,handleMouseEnter:D,handleMouseLeave:x,onButtonDown:R,onLeftKeyDown:B,onRightKeyDown:Y,setPosition:z}},$q=ve({name:"ElSliderButton",components:{ElTooltip:Ro},props:{modelValue:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:{type:String,default:""}},emits:[Ot],setup(e,{emit:t}){const n=Be("slider"),o=nn({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:e.modelValue}),{tooltip:s,showTooltip:i,tooltipVisible:l,wrapperStyle:c,formatValue:f,handleMouseEnter:p,handleMouseLeave:m,onButtonDown:y,onLeftKeyDown:v,onRightKeyDown:w,setPosition:E}=Dq(e,o,t),{hovering:I,dragging:S}=Yn(o);return{ns:n,tooltip:s,tooltipVisible:l,showTooltip:i,wrapperStyle:c,formatValue:f,handleMouseEnter:p,handleMouseLeave:m,onButtonDown:y,onLeftKeyDown:v,onRightKeyDown:w,setPosition:E,hovering:I,dragging:S}}});function Rq(e,t,n,o,s,i){const l=Ae("el-tooltip");return M(),W("div",{ref:"button",class:P([e.ns.e("button-wrapper"),{hover:e.hovering,dragging:e.dragging}]),style:st(e.wrapperStyle),tabindex:"0",onMouseenter:t[1]||(t[1]=(...c)=>e.handleMouseEnter&&e.handleMouseEnter(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.handleMouseLeave&&e.handleMouseLeave(...c)),onMousedown:t[3]||(t[3]=(...c)=>e.onButtonDown&&e.onButtonDown(...c)),onTouchstart:t[4]||(t[4]=(...c)=>e.onButtonDown&&e.onButtonDown(...c)),onFocus:t[5]||(t[5]=(...c)=>e.handleMouseEnter&&e.handleMouseEnter(...c)),onBlur:t[6]||(t[6]=(...c)=>e.handleMouseLeave&&e.handleMouseLeave(...c)),onKeydown:[t[7]||(t[7]=Ft((...c)=>e.onLeftKeyDown&&e.onLeftKeyDown(...c),["left"])),t[8]||(t[8]=Ft((...c)=>e.onRightKeyDown&&e.onRightKeyDown(...c),["right"])),t[9]||(t[9]=Ft(vt((...c)=>e.onLeftKeyDown&&e.onLeftKeyDown(...c),["prevent"]),["down"])),t[10]||(t[10]=Ft(vt((...c)=>e.onRightKeyDown&&e.onRightKeyDown(...c),["prevent"]),["up"]))]},[le(l,{ref:"tooltip",visible:e.tooltipVisible,"onUpdate:visible":t[0]||(t[0]=c=>e.tooltipVisible=c),placement:"top","stop-popper-mouse-event":!1,"popper-class":e.tooltipClass,disabled:!e.showTooltip,persistent:""},{content:ae(()=>[Q("span",null,Pe(e.formatValue),1)]),default:ae(()=>[Q("div",{class:P([e.ns.e("button"),{hover:e.hovering,dragging:e.dragging}])},null,2)]),_:1},8,["visible","popper-class","disabled"])],38)}var Lq=Ue($q,[["render",Rq],["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const Pq=ve({name:"ElMarker",props:{mark:{type:[String,Object],default:()=>{}}},setup(e){const t=Be("slider"),n=$(()=>typeof e.mark=="string"?e.mark:e.mark.label);return{ns:t,label:n}},render(){var e;return it("div",{class:this.ns.e("marks-text"),style:(e=this.mark)==null?void 0:e.style},this.label)}});var Bq=Ue(Pq,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/marker.vue"]]);const Fq=e=>$(()=>e.marks?Object.keys(e.marks).map(parseFloat).sort((n,o)=>n-o).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),Vq=(e,t,n)=>{const o=et(Jo,{}),s=et(mr,{}),i=Hn(null),l=F(null),c=F(null),f={firstButton:l,secondButton:c},p=$(()=>e.disabled||o.disabled||!1),m=$(()=>Math.min(t.firstValue,t.secondValue)),y=$(()=>Math.max(t.firstValue,t.secondValue)),v=$(()=>e.range?`${100*(y.value-m.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),w=$(()=>e.range?`${100*(m.value-e.min)/(e.max-e.min)}%`:"0%"),E=$(()=>e.vertical?{height:e.height}:{}),I=$(()=>e.vertical?{height:v.value,bottom:w.value}:{width:v.value,left:w.value}),S=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},T=R=>{const B=e.min+R*(e.max-e.min)/100;if(!e.range){l.value.setPosition(R);return}let Y;Math.abs(m.value-B)<Math.abs(y.value-B)?Y=t.firstValue<t.secondValue?"firstButton":"secondButton":Y=t.firstValue>t.secondValue?"firstButton":"secondButton",f[Y].value.setPosition(R)},_=R=>{t.firstValue=R,O(e.range?[m.value,y.value]:R)},N=R=>{t.secondValue=R,e.range&&O([m.value,y.value])},O=R=>{n(Ot,R),n(qs,R)},D=async()=>{await dt(),n(Gn,e.range?[m.value,y.value]:e.modelValue)};return{elFormItem:s,slider:i,firstButton:l,secondButton:c,sliderDisabled:p,minValue:m,maxValue:y,runwayStyle:E,barStyle:I,resetSize:S,setPosition:T,emitChange:D,onSliderClick:R=>{if(!(p.value||t.dragging)){if(S(),e.vertical){const B=i.value.getBoundingClientRect().bottom;T((B-R.clientY)/t.sliderSize*100)}else{const B=i.value.getBoundingClientRect().left;T((R.clientX-B)/t.sliderSize*100)}D()}},setFirstValue:_,setSecondValue:N}},Hq=(e,t,n,o)=>({stops:$(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const l=(e.max-e.min)/e.step,c=100*e.step/(e.max-e.min),f=Array.from({length:l-1}).map((p,m)=>(m+1)*c);return e.range?f.filter(p=>p<100*(n.value-e.min)/(e.max-e.min)||p>100*(o.value-e.min)/(e.max-e.min)):f.filter(p=>p>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:l=>e.vertical?{bottom:`${l}%`}:{left:`${l}%`}}),zq=ve({name:"ElSlider",components:{ElInputNumber:WE,SliderButton:Lq,SliderMarker:Bq},props:{modelValue:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},size:{type:String,validator:Zo},inputSize:{type:String,validator:Zo},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Function,default:void 0},disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String,default:""},debounce:{type:Number,default:300},label:{type:String,default:void 0},tooltipClass:{type:String,default:void 0},marks:Object},emits:[Ot,Gn,qs],setup(e,{emit:t}){const n=Be("slider"),o=nn({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:i,firstButton:l,secondButton:c,sliderDisabled:f,minValue:p,maxValue:m,runwayStyle:y,barStyle:v,resetSize:w,emitChange:E,onSliderClick:I,setFirstValue:S,setSecondValue:T}=Vq(e,o,t),{stops:_,getStopStyle:N}=Hq(e,o,p,m),O=Fn(),D=$(()=>e.inputSize||O.value),x=$(()=>[n.b(),n.m(O.value),n.is("vertical",e.vertical),{[n.m("with-input")]:e.showInput}]),R=Fq(e);Uq(e,o,p,m,t,s);const B=$(()=>{const j=[e.min,e.max,e.step].map(V=>{const q=`${V}`.split(".")[1];return q?q.length:0});return Math.max.apply(null,j)}),{sliderWrapper:Y}=Wq(e,o,w),{firstValue:X,secondValue:K,oldValue:J,dragging:G,sliderSize:z}=Yn(o),ee=j=>{o.dragging=j};return Pt("SliderProvider",Qe(be({},Yn(e)),{sliderSize:z,disabled:f,precision:B,emitChange:E,resetSize:w,updateDragging:ee})),{ns:n,firstValue:X,secondValue:K,oldValue:J,dragging:G,sliderSize:z,slider:i,firstButton:l,secondButton:c,sliderDisabled:f,runwayStyle:y,barStyle:v,emitChange:E,onSliderClick:I,getStopStyle:N,setFirstValue:S,setSecondValue:T,stops:_,markList:R,sliderWrapper:Y,sliderWrapperSize:O,sliderInputSize:D,sliderKls:x}}}),Uq=(e,t,n,o,s,i)=>{const l=p=>{s(Ot,p),s(qs,p)},c=()=>e.range?![n.value,o.value].every((p,m)=>p===t.oldValue[m]):e.modelValue!==t.oldValue,f=()=>{var p,m;if(e.min>e.max){zn("Slider","min should not be greater than max.");return}const y=e.modelValue;e.range&&Array.isArray(y)?y[1]<e.min?l([e.min,e.min]):y[0]>e.max?l([e.max,e.max]):y[0]<e.min?l([e.min,y[1]]):y[1]>e.max?l([y[0],e.max]):(t.firstValue=y[0],t.secondValue=y[1],c()&&((p=i.validate)==null||p.call(i,"change").catch(v=>void 0),t.oldValue=y.slice())):!e.range&&typeof y=="number"&&!Number.isNaN(y)&&(y<e.min?l(e.min):y>e.max?l(e.max):(t.firstValue=y,c()&&((m=i.validate)==null||m.call(i,"change").catch(v=>void 0),t.oldValue=y)))};f(),Re(()=>t.dragging,p=>{p||f()}),Re(()=>e.modelValue,(p,m)=>{t.dragging||Array.isArray(p)&&Array.isArray(m)&&p.every((y,v)=>y===m[v])&&t.firstValue===p[0]&&t.secondValue===p[1]||f()},{deep:!0}),Re(()=>[e.min,e.max],()=>{f()})},Wq=(e,t,n)=>{const o=F(null);return kt(async()=>{let s;e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue],s=`${t.firstValue}-${t.secondValue}`):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue,s=t.firstValue),o.value.setAttribute("aria-valuetext",s),o.value.setAttribute("aria-label",e.label?e.label:`slider between ${e.min} and ${e.max}`),Bn(window,"resize",n),await dt(),n()}),gn(()=>{Kn(window,"resize",n)}),{sliderWrapper:o}},jq=["aria-valuemin","aria-valuemax","aria-orientation","aria-disabled"],Kq={key:1};function Yq(e,t,n,o,s,i){const l=Ae("slider-button"),c=Ae("slider-marker"),f=Ae("el-input-number");return M(),W("div",{ref:"sliderWrapper",class:P(e.sliderKls),role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled},[Q("div",{ref:"slider",class:P([e.ns.e("runway"),{"show-input":e.showInput&&!e.range},e.ns.is("disabled",e.sliderDisabled)]),style:st(e.runwayStyle),onClick:t[0]||(t[0]=(...p)=>e.onSliderClick&&e.onSliderClick(...p))},[Q("div",{class:P(e.ns.e("bar")),style:st(e.barStyle)},null,6),le(l,{ref:"firstButton","model-value":e.firstValue,vertical:e.vertical,"tooltip-class":e.tooltipClass,"onUpdate:modelValue":e.setFirstValue},null,8,["model-value","vertical","tooltip-class","onUpdate:modelValue"]),e.range?(M(),me(l,{key:0,ref:"secondButton","model-value":e.secondValue,vertical:e.vertical,"tooltip-class":e.tooltipClass,"onUpdate:modelValue":e.setSecondValue},null,8,["model-value","vertical","tooltip-class","onUpdate:modelValue"])):fe("v-if",!0),e.showStops?(M(),W("div",Kq,[(M(!0),W(at,null,zt(e.stops,(p,m)=>(M(),W("div",{key:m,class:P(e.ns.e("stop")),style:st(e.getStopStyle(p))},null,6))),128))])):fe("v-if",!0),e.markList.length>0?(M(),W(at,{key:2},[Q("div",null,[(M(!0),W(at,null,zt(e.markList,(p,m)=>(M(),W("div",{key:m,style:st(e.getStopStyle(p.position)),class:P([e.ns.e("stop"),e.ns.e("marks-stop")])},null,6))),128))]),Q("div",{class:P(e.ns.e("marks"))},[(M(!0),W(at,null,zt(e.markList,(p,m)=>(M(),me(c,{key:m,mark:p.mark,style:st(e.getStopStyle(p.position))},null,8,["mark","style"]))),128))],2)],64)):fe("v-if",!0)],6),e.showInput&&!e.range?(M(),me(f,{key:0,ref:"input","model-value":e.firstValue,class:P(e.ns.e("input")),step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.sliderInputSize,"onUpdate:modelValue":e.setFirstValue,onChange:e.emitChange},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):fe("v-if",!0)],10,jq)}var Pc=Ue(zq,[["render",Yq],["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/index.vue"]]);Pc.install=e=>{e.component(Pc.name,Pc)};const Gq=Pc,Xq=Gq,qq=ct({prefixCls:{type:String,default:""}}),Zq=ve({props:qq,setup(e){const t=Be("space");return{classes:$(()=>`${e.prefixCls||t.b()}__item`)}}});function Qq(e,t,n,o,s,i){return M(),W("div",{class:P(e.classes)},[Ie(e.$slots,"default")],2)}var fy=Ue(Zq,[["render",Qq],["__file","/home/runner/work/element-plus/element-plus/packages/components/space/src/item.vue"]]);const hy={small:8,default:12,large:16};function Jq(e){const t=Be("space"),n=$(()=>[t.b(),t.m(e.direction),e.class]),o=F(0),s=F(0),i=$(()=>{const c=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${s.value}px`}:{},f={alignItems:e.alignment};return[c,f,e.style]}),l=$(()=>{const c={paddingBottom:`${s.value}px`,marginRight:`${o.value}px`},f=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[c,f]});return dr(()=>{const{size:c="small",wrap:f,direction:p,fill:m}=e;if(Array.isArray(c)){const[y=0,v=0]=c;o.value=y,s.value=v}else{let y;Qt(c)?y=c:y=hy[c]||hy.small,(f||m)&&p==="horizontal"?o.value=s.value=y:p==="horizontal"?(o.value=y,s.value=0):(s.value=y,o.value=0)}}),{classes:n,containerStyle:i,itemStyle:l}}const eZ=ct({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Xe([String,Object,Array]),default:""},style:{type:Xe([String,Array,Object]),default:""},alignment:{type:Xe(String),default:"center"},prefixCls:{type:String},spacer:{type:Xe([Object,String,Number,Array]),default:null,validator:e=>On(e)||Qt(e)||_t(e)},wrap:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ts,validator:e=>Qt(e)||wt(e)&&e.length===2&&e.every(t=>Qt(t))}});var tZ=ve({name:"ElSpace",props:eZ,setup(e,{slots:t}){const{classes:n,containerStyle:o,itemStyle:s}=Jq(e);return()=>{var i;const{spacer:l,prefixCls:c,direction:f}=e,p=Ie(t,"default",{key:0},()=>[]);if(((i=p.children)!=null?i:[]).length===0)return null;if(wt(p.children)){let m=[];if(p.children.forEach((y,v)=>{Fw(y)?wt(y.children)&&y.children.forEach((w,E)=>{m.push(le(fy,{style:s.value,prefixCls:c,key:`nested-${E}`},{default:()=>[w]},ar.PROPS|ar.STYLE,["style","prefixCls"]))}):tP(y)&&m.push(le(fy,{style:s.value,prefixCls:c,key:`LoopKey${v}`},{default:()=>[y]},ar.PROPS|ar.STYLE,["style","prefixCls"]))}),l){const y=m.length-1;m=m.reduce((v,w,E)=>{const I=[...v,w];return E!==y&&I.push(le("span",{style:[s.value,f==="vertical"?"width: 100%":null],key:E},[On(l)?l:Ht(l,ar.TEXT)],ar.STYLE)),I},[])}return le("div",{class:n.value,style:o.value},m,ar.STYLE|ar.CLASS)}return p.children}}});const nZ=$t(tZ),oZ=ve({name:"ElSteps",props:{space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},alignCenter:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},finishStatus:{type:String,default:"finish",validator:e=>["wait","process","finish","error","success"].includes(e)},processStatus:{type:String,default:"process",validator:e=>["wait","process","finish","error","success"].includes(e)}},emits:[Gn],setup(e,{emit:t}){const n=Be("steps"),o=F([]);return Re(o,()=>{o.value.forEach((s,i)=>{s.setIndex(i)})}),Pt("ElSteps",{props:e,steps:o}),Re(()=>e.active,(s,i)=>{t(Gn,s,i)}),{steps:o,ns:n}}});function rZ(e,t,n,o,s,i){return M(),W("div",{class:P([e.ns.b(),e.ns.m(e.simple?"simple":e.direction)])},[Ie(e.$slots,"default")],2)}var sZ=Ue(oZ,[["render",rZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/index.vue"]]);const iZ=ve({name:"ElStep",components:{ElIcon:yt,Close:gr,Check:ja},props:{title:{type:String,default:""},icon:{type:[String,Object],default:""},description:{type:String,default:""},status:{type:String,default:"",validator:e=>["","wait","process","finish","error","success"].includes(e)}},setup(e){const t=Be("step"),n=F(-1),o=F({}),s=F(""),i=et("ElSteps"),l=Dt();kt(()=>{Re([()=>i.props.active,()=>i.props.processStatus,()=>i.props.finishStatus],([O])=>{_(O)},{immediate:!0})}),gn(()=>{i.steps.value=i.steps.value.filter(O=>O.uid!==l.uid)});const c=$(()=>e.status||s.value),f=$(()=>{const O=i.steps.value[n.value-1];return O?O.currentStatus:"wait"}),p=$(()=>i.props.alignCenter),m=$(()=>i.props.direction==="vertical"),y=$(()=>i.props.simple),v=$(()=>i.steps.value.length),w=$(()=>{var O;return((O=i.steps.value[v.value-1])==null?void 0:O.uid)===l.uid}),E=$(()=>y.value?"":i.props.space),I=$(()=>{const O={flexBasis:typeof E.value=="number"?`${E.value}px`:E.value?E.value:`${100/(v.value-(p.value?0:1))}%`};return m.value||w.value&&(O.maxWidth=`${100/v.value}%`),O}),S=O=>{n.value=O},T=O=>{let D=100;const x={};x.transitionDelay=`${150*n.value}ms`,O===i.props.processStatus?D=0:O==="wait"&&(D=0,x.transitionDelay=`${-150*n.value}ms`),x.borderWidth=D&&!y.value?"1px":0,x[i.props.direction==="vertical"?"height":"width"]=`${D}%`,o.value=x},_=O=>{O>n.value?s.value=i.props.finishStatus:O===n.value&&f.value!=="error"?s.value=i.props.processStatus:s.value="wait";const D=i.steps.value[v.value-1];D&&D.calcProgress(s.value)},N=nn({uid:$(()=>l.uid),currentStatus:c,setIndex:S,calcProgress:T});return i.steps.value=[...i.steps.value,N],{ns:t,index:n,lineStyle:o,currentStatus:c,isCenter:p,isVertical:m,isSimple:y,isLast:w,space:E,style:I,parent:i,setIndex:S,calcProgress:T,updateStatus:_}}});function aZ(e,t,n,o,s,i){const l=Ae("el-icon"),c=Ae("check"),f=Ae("close");return M(),W("div",{style:st(e.style),class:P([e.ns.b(),e.ns.is(e.isSimple?"simple":e.parent.props.direction),e.ns.is("flex",e.isLast&&!e.space&&!e.isCenter),e.ns.is("center",e.isCenter&&!e.isVertical&&!e.isSimple)])},[fe(" icon & line "),Q("div",{class:P([e.ns.e("head"),e.ns.is(e.currentStatus)])},[e.isSimple?fe("v-if",!0):(M(),W("div",{key:0,class:P(e.ns.e("line"))},[Q("i",{class:P(e.ns.e("line-inner")),style:st(e.lineStyle)},null,6)],2)),Q("div",{class:P([e.ns.e("icon"),e.ns.is(e.icon?"icon":"text")])},[e.currentStatus!=="success"&&e.currentStatus!=="error"?Ie(e.$slots,"icon",{key:0},()=>[e.icon?(M(),me(l,{key:0,class:P(e.ns.e("icon-inner"))},{default:ae(()=>[(M(),me(Xt(e.icon)))]),_:1},8,["class"])):fe("v-if",!0),!e.icon&&!e.isSimple?(M(),W("div",{key:1,class:P(e.ns.e("icon-inner"))},Pe(e.index+1),3)):fe("v-if",!0)]):(M(),me(l,{key:1,class:P([e.ns.e("icon-inner"),e.ns.is("status")])},{default:ae(()=>[e.currentStatus==="success"?(M(),me(c,{key:0})):(M(),me(f,{key:1}))]),_:1},8,["class"]))],2)],2),fe(" title & description "),Q("div",{class:P(e.ns.e("main"))},[Q("div",{class:P([e.ns.e("title"),e.ns.is(e.currentStatus)])},[Ie(e.$slots,"title",{},()=>[Ht(Pe(e.title),1)])],2),e.isSimple?(M(),W("div",{key:0,class:P(e.ns.e("arrow"))},null,2)):(M(),W("div",{key:1,class:P([e.ns.e("description"),e.ns.is(e.currentStatus)])},[Ie(e.$slots,"description",{},()=>[Ht(Pe(e.description),1)])],2))],2)],6)}var pS=Ue(iZ,[["render",aZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const lZ=$t(sZ,{Step:pS}),uZ=_n(pS),cZ=ct({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:uo,default:""},inactiveIcon:{type:uo,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Xe(Function)},size:{type:String,validator:Zo}}),dZ={[Ot]:e=>ao(e)||_t(e)||Qt(e),[Gn]:e=>ao(e)||_t(e)||Qt(e),[qs]:e=>ao(e)||_t(e)||Qt(e)},py="ElSwitch",fZ=ve({name:py,components:{ElIcon:yt,Loading:ti},props:cZ,emits:dZ,setup(e,{emit:t}){const{formItem:n}=il(),o=ea($(()=>e.loading)),s=Be("switch"),i=Fn(),l=F(e.modelValue!==!1),c=F(),f=F(),p=$(()=>[s.b(),s.m(i.value),s.is("disabled",o.value),s.is("checked",y.value)]);Re(()=>e.modelValue,()=>{l.value=!0}),Re(()=>e.value,()=>{l.value=!1});const m=$(()=>l.value?e.modelValue:e.value),y=$(()=>m.value===e.activeValue);[e.activeValue,e.inactiveValue].includes(m.value)||(t(Ot,e.inactiveValue),t(Gn,e.inactiveValue),t(qs,e.inactiveValue)),Re(y,()=>{var S;c.value.checked=y.value,(e.activeColor||e.inactiveColor)&&E(),e.validateEvent&&((S=n==null?void 0:n.validate)==null||S.call(n,"change").catch(T=>void 0))});const v=()=>{const S=y.value?e.inactiveValue:e.activeValue;t(Ot,S),t(Gn,S),t(qs,S),dt(()=>{c.value.checked=y.value})},w=()=>{if(o.value)return;const{beforeChange:S}=e;if(!S){v();return}const T=S();[Hi(T),ao(T)].some(N=>N)||zn(py,"beforeChange must return type `Promise<boolean>` or `boolean`"),Hi(T)?T.then(N=>{N&&v()}).catch(N=>{}):T&&v()},E=()=>{const S=y.value?e.activeColor:e.inactiveColor,T=f.value;e.borderColor?T.style.borderColor=e.borderColor:e.borderColor||(T.style.borderColor=S),T.style.backgroundColor=S,T.children[0].style.color=S},I=()=>{var S,T;(T=(S=c.value)==null?void 0:S.focus)==null||T.call(S)};return kt(()=>{(e.activeColor||e.inactiveColor||e.borderColor)&&E(),c.value.checked=y.value}),{ns:s,input:c,core:f,switchDisabled:o,checked:y,switchKls:p,handleChange:v,switchValue:w,focus:I}}}),hZ=["aria-checked","aria-disabled"],pZ=["id","name","true-value","false-value","disabled"],gZ=["aria-hidden"],mZ=["aria-hidden"],vZ=["aria-hidden"],yZ=["aria-hidden"];function bZ(e,t,n,o,s,i){const l=Ae("el-icon"),c=Ae("loading");return M(),W("div",{class:P(e.switchKls),role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled,onClick:t[2]||(t[2]=vt((...f)=>e.switchValue&&e.switchValue(...f),["prevent"]))},[Q("input",{id:e.id,ref:"input",class:P(e.ns.e("input")),type:"checkbox",name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled,onChange:t[0]||(t[0]=(...f)=>e.handleChange&&e.handleChange(...f)),onKeydown:t[1]||(t[1]=Ft((...f)=>e.switchValue&&e.switchValue(...f),["enter"]))},null,42,pZ),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText)?(M(),W("span",{key:0,class:P([e.ns.e("label"),e.ns.em("label","left"),e.ns.is("active",!e.checked)])},[e.inactiveIcon?(M(),me(l,{key:0},{default:ae(()=>[(M(),me(Xt(e.inactiveIcon)))]),_:1})):fe("v-if",!0),!e.inactiveIcon&&e.inactiveText?(M(),W("span",{key:1,"aria-hidden":e.checked},Pe(e.inactiveText),9,gZ)):fe("v-if",!0)],2)):fe("v-if",!0),Q("span",{ref:"core",class:P(e.ns.e("core")),style:st({width:(e.width||40)+"px"})},[e.inlinePrompt?(M(),W("div",{key:0,class:P(e.ns.e("inner"))},[e.activeIcon||e.inactiveIcon?(M(),W(at,{key:0},[e.activeIcon?(M(),me(l,{key:0,class:P([e.ns.is("icon"),e.checked?e.ns.is("show"):e.ns.is("hide")])},{default:ae(()=>[(M(),me(Xt(e.activeIcon)))]),_:1},8,["class"])):fe("v-if",!0),e.inactiveIcon?(M(),me(l,{key:1,class:P([e.ns.is("icon"),e.checked?e.ns.is("hide"):e.ns.is("show")])},{default:ae(()=>[(M(),me(Xt(e.inactiveIcon)))]),_:1},8,["class"])):fe("v-if",!0)],64)):e.activeText||e.inactiveIcon?(M(),W(at,{key:1},[e.activeText?(M(),W("span",{key:0,class:P([e.ns.is("text"),e.checked?e.ns.is("show"):e.ns.is("hide")]),"aria-hidden":!e.checked},Pe(e.activeText.substring(0,3)),11,mZ)):fe("v-if",!0),e.inactiveText?(M(),W("span",{key:1,class:P([e.ns.is("text"),e.checked?e.ns.is("hide"):e.ns.is("show")]),"aria-hidden":e.checked},Pe(e.inactiveText.substring(0,3)),11,vZ)):fe("v-if",!0)],64)):fe("v-if",!0)],2)):fe("v-if",!0),Q("div",{class:P(e.ns.e("action"))},[e.loading?(M(),me(l,{key:0,class:P(e.ns.is("loading"))},{default:ae(()=>[le(c)]),_:1},8,["class"])):fe("v-if",!0)],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText)?(M(),W("span",{key:1,class:P([e.ns.e("label"),e.ns.em("label","right"),e.ns.is("active",e.checked)])},[e.activeIcon?(M(),me(l,{key:0},{default:ae(()=>[(M(),me(Xt(e.activeIcon)))]),_:1})):fe("v-if",!0),!e.activeIcon&&e.activeText?(M(),W("span",{key:1,"aria-hidden":!e.checked},Pe(e.activeText),9,yZ)):fe("v-if",!0)],2)):fe("v-if",!0)],10,hZ)}var wZ=Ue(fZ,[["render",bZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const CZ=$t(wZ);/*!
|
||
* escape-html
|
||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
* Copyright(c) 2015 Andreas Lubbe
|
||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
* MIT Licensed
|
||
*/var EZ=/["'&<>]/,SZ=AZ;function AZ(e){var t=""+e,n=EZ.exec(t);if(!n)return t;var o,s="",i=0,l=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}l!==i&&(s+=t.substring(l,i)),l=i+1,s+=o}return l!==i?s+t.substring(l,i):s}const lh=function(e){let t=e.target;for(;t&&t.tagName.toUpperCase()!=="HTML";){if(t.tagName.toUpperCase()==="TD")return t;t=t.parentNode}return null},gy=function(e){return e!==null&&typeof e=="object"},TZ=function(e,t,n,o,s){if(!t&&!o&&(!s||Array.isArray(s)&&!s.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=o?null:function(c,f){return s?(Array.isArray(s)||(s=[s]),s.map(p=>typeof p=="string"?An(c,p):p(c,f,e))):(t!=="$key"&&gy(c)&&"$value"in c&&(c=c.$value),[gy(c)?An(c,t):c])},l=function(c,f){if(o)return o(c.value,f.value);for(let p=0,m=c.key.length;p<m;p++){if(c.key[p]<f.key[p])return-1;if(c.key[p]>f.key[p])return 1}return 0};return e.map((c,f)=>({value:c,index:f,key:i?i(c,f):null})).sort((c,f)=>{let p=l(c,f);return p||(p=c.index-f.index),p*+n}).map(c=>c.value)},gS=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},IZ=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const s=e.columns[o];if(s.columnKey===t){n=s;break}}return n},my=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?gS(e,o[0]):null},so=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const s of n)o=o[s];return`${o}`}else if(typeof t=="function")return t.call(null,e)},Ni=function(e,t){const n={};return(e||[]).forEach((o,s)=>{n[so(o,t)]={row:o,index:s}}),n};function _Z(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(Bt(t,o)){const s=t[o];typeof s!="undefined"&&(n[o]=s)}return n}function t1(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function mS(e){return e===""||e!==void 0&&(e=t1(e),Number.isNaN(e)&&(e=80)),e}function vp(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function NZ(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Bc(e,t,n){let o=!1;const s=e.indexOf(t),i=s!==-1,l=()=>{e.push(t),o=!0},c=()=>{e.splice(s,1),o=!0};return typeof n=="boolean"?n&&!i?l():!n&&i&&c():i?c():l(),o}function kZ(e,t,n="children",o="hasChildren"){const s=l=>!(Array.isArray(l)&&l.length);function i(l,c,f){t(l,c,f),c.forEach(p=>{if(p[o]){t(p,null,f+1);return}const m=p[n];s(m)||i(p,m,f+1)})}e.forEach(l=>{if(l[o]){t(l,null,0);return}const c=l[n];s(c)||i(l,c,0)})}let pd;function xZ(e,t,n,o){const{nextZIndex:s}=ws();function i(){const y=o==="light",v=document.createElement("div");return v.className=`el-popper ${y?"is-light":"is-dark"}`,t=SZ(t),v.innerHTML=t,v.style.zIndex=String(s()),document.body.appendChild(v),v}function l(){const y=document.createElement("div");return y.className="el-popper__arrow",y}function c(){f&&f.update()}pd=function y(){try{f&&f.destroy(),p&&document.body.removeChild(p),Kn(e,"mouseenter",c),Kn(e,"mouseleave",y)}catch{}};let f=null;const p=i(),m=l();return p.appendChild(m),f=yu(e,p,be({modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"arrow",options:{element:m,padding:10}}]},n)),Bn(e,"mouseenter",c),Bn(e,"mouseleave",pd),f}const vS=(e,t,n,o)=>{let s=0,i=e;if(o){if(o[e].colSpan>1)return{};for(let f=0;f<e;f++)s+=o[f].colSpan;i=s+o[e].colSpan-1}else s=e;let l;const c=n.states.columns;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(l="left");break;case"right":s>=c.value.length-n.states.rightFixedLeafColumnsLength.value&&(l="right");break;default:i<n.states.fixedLeafColumnsLength.value?l="left":s>=c.value.length-n.states.rightFixedLeafColumnsLength.value&&(l="right")}return l?{direction:l,start:s,after:i}:{}},n1=(e,t,n,o,s)=>{const i=[],{direction:l,start:c}=vS(t,n,o,s);if(l){const f=l==="left";i.push(`${e}-fixed-column--${l}`),f&&c===o.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!f&&c===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&i.push("is-first-column")}return i};function vy(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const o1=(e,t,n,o)=>{const{direction:s,start:i=0}=vS(e,t,n,o);if(!s)return;const l={},c=s==="left",f=n.states.columns.value;return c?l.left=f.slice(0,e).reduce(vy,0):l.right=f.slice(i+1).reverse().reduce(vy,0),l},Xa=(e,t)=>{!e||Number.isNaN(e[t])||(e[t]=`${e[t]}px`)};function MZ(e){const t=Dt(),n=F(!1),o=F([]);return{updateExpandRows:()=>{const f=e.data.value||[],p=e.rowKey.value;if(n.value)o.value=f.slice();else if(p){const m=Ni(o.value,p);o.value=f.reduce((y,v)=>{const w=so(v,p);return m[w]&&y.push(v),y},[])}else o.value=[]},toggleRowExpansion:(f,p)=>{Bc(o.value,f,p)&&t.emit("expand-change",f,o.value.slice())},setExpandRowKeys:f=>{t.store.assertRowKey();const p=e.data.value||[],m=e.rowKey.value,y=Ni(p,m);o.value=f.reduce((v,w)=>{const E=y[w];return E&&v.push(E.row),v},[])},isRowExpanded:f=>{const p=e.rowKey.value;return p?!!Ni(o.value,p)[so(f,p)]:o.value.includes(f)},states:{expandRows:o,defaultExpandAll:n}}}function OZ(e){const t=Dt(),n=F(null),o=F(null),s=p=>{t.store.assertRowKey(),n.value=p,l(p)},i=()=>{n.value=null},l=p=>{const{data:m,rowKey:y}=e;let v=null;y.value&&(v=(k(m)||[]).find(w=>so(w,y.value)===p)),o.value=v,t.emit("current-change",o.value,null)};return{setCurrentRowKey:s,restoreCurrentRowKey:i,setCurrentRowByKey:l,updateCurrentRow:p=>{const m=o.value;if(p&&p!==m){o.value=p,t.emit("current-change",o.value,m);return}!p&&m&&(o.value=null,t.emit("current-change",null,m))},updateCurrentRowData:()=>{const p=e.rowKey.value,m=e.data.value||[],y=o.value;if(!m.includes(y)&&y){if(p){const v=so(y,p);l(v)}else o.value=null;o.value===null&&t.emit("current-change",null,y)}else n.value&&(l(n.value),i())},states:{_currentRowKey:n,currentRow:o}}}function DZ(e){const t=F([]),n=F({}),o=F(16),s=F(!1),i=F({}),l=F("hasChildren"),c=F("children"),f=Dt(),p=$(()=>{if(!e.rowKey.value)return{};const T=e.data.value||[];return y(T)}),m=$(()=>{const T=e.rowKey.value,_=Object.keys(i.value),N={};return _.length&&_.forEach(O=>{if(i.value[O].length){const D={children:[]};i.value[O].forEach(x=>{const R=so(x,T);D.children.push(R),x[l.value]&&!N[R]&&(N[R]={children:[]})}),N[O]=D}}),N}),y=T=>{const _=e.rowKey.value,N={};return kZ(T,(O,D,x)=>{const R=so(O,_);Array.isArray(D)?N[R]={children:D.map(B=>so(B,_)),level:x}:s.value&&(N[R]={children:[],lazy:!0,level:x})},c.value,l.value),N},v=(T=!1,_=(N=>(N=f.store)==null?void 0:N.states.defaultExpandAll.value)())=>{var N;const O=p.value,D=m.value,x=Object.keys(O),R={};if(x.length){const B=k(n),Y=[],X=(J,G)=>{if(T)return t.value?_||t.value.includes(G):!!(_||(J==null?void 0:J.expanded));{const z=_||t.value&&t.value.includes(G);return!!((J==null?void 0:J.expanded)||z)}};x.forEach(J=>{const G=B[J],z=be({},O[J]);if(z.expanded=X(G,J),z.lazy){const{loaded:ee=!1,loading:j=!1}=G||{};z.loaded=!!ee,z.loading=!!j,Y.push(J)}R[J]=z});const K=Object.keys(D);s.value&&K.length&&Y.length&&K.forEach(J=>{const G=B[J],z=D[J].children;if(Y.includes(J)){if(R[J].children.length!==0)throw new Error("[ElTable]children must be an empty array.");R[J].children=z}else{const{loaded:ee=!1,loading:j=!1}=G||{};R[J]={lazy:!0,loaded:!!ee,loading:!!j,expanded:X(G,J),children:z,level:""}}})}n.value=R,(N=f.store)==null||N.updateTableScrollY()};Re(()=>t.value,()=>{v(!0)}),Re(()=>p.value,()=>{v()}),Re(()=>m.value,()=>{v()});const w=T=>{t.value=T,v()},E=(T,_)=>{f.store.assertRowKey();const N=e.rowKey.value,O=so(T,N),D=O&&n.value[O];if(O&&D&&"expanded"in D){const x=D.expanded;_=typeof _=="undefined"?!D.expanded:_,n.value[O].expanded=_,x!==_&&f.emit("expand-change",T,_),f.store.updateTableScrollY()}},I=T=>{f.store.assertRowKey();const _=e.rowKey.value,N=so(T,_),O=n.value[N];s.value&&O&&"loaded"in O&&!O.loaded?S(T,N,O):E(T,void 0)},S=(T,_,N)=>{const{load:O}=f.props;O&&!n.value[_].loaded&&(n.value[_].loading=!0,O(T,N,D=>{if(!Array.isArray(D))throw new TypeError("[ElTable] data must be an array");n.value[_].loading=!1,n.value[_].loaded=!0,n.value[_].expanded=!0,D.length&&(i.value[_]=D),f.emit("expand-change",T,!0)}))};return{loadData:S,loadOrToggle:I,toggleTreeExpansion:E,updateTreeExpandKeys:w,updateTreeData:v,normalize:y,states:{expandRowKeys:t,treeData:n,indent:o,lazy:s,lazyTreeNodeMap:i,lazyColumnIdentifier:l,childrenColumnName:c}}}const $Z=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:TZ(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Fc=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,Fc(n.children)):t.push(n)}),t};function RZ(){var e;const t=Dt(),{size:n}=Yn((e=t.proxy)==null?void 0:e.$props),o=F(null),s=F([]),i=F([]),l=F(!1),c=F([]),f=F([]),p=F([]),m=F([]),y=F([]),v=F([]),w=F([]),E=F([]),I=F(0),S=F(0),T=F(0),_=F(!1),N=F([]),O=F(!1),D=F(!1),x=F(null),R=F({}),B=F(null),Y=F(null),X=F(null),K=F(null),J=F(null);Re(s,()=>t.state&&ee(!1),{deep:!0});const G=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},z=()=>{m.value=c.value.filter(Ye=>Ye.fixed===!0||Ye.fixed==="left"),y.value=c.value.filter(Ye=>Ye.fixed==="right"),m.value.length>0&&c.value[0]&&c.value[0].type==="selection"&&!c.value[0].fixed&&(c.value[0].fixed=!0,m.value.unshift(c.value[0]));const tt=c.value.filter(Ye=>!Ye.fixed);f.value=[].concat(m.value).concat(tt).concat(y.value);const we=Fc(tt),Fe=Fc(m.value),_e=Fc(y.value);I.value=we.length,S.value=Fe.length,T.value=_e.length,p.value=[].concat(Fe).concat(we).concat(_e),l.value=m.value.length>0||y.value.length>0},ee=(tt,we=!1)=>{tt&&z(),we?t.state.doLayout():t.state.debouncedUpdateLayout()},j=tt=>N.value.includes(tt),V=()=>{_.value=!1,N.value.length&&(N.value=[],t.emit("selection-change",[]))},q=()=>{let tt;if(o.value){tt=[];const we=Ni(N.value,o.value),Fe=Ni(s.value,o.value);for(const _e in we)Bt(we,_e)&&!Fe[_e]&&tt.push(we[_e].row)}else tt=N.value.filter(we=>!s.value.includes(we));if(tt.length){const we=N.value.filter(Fe=>!tt.includes(Fe));N.value=we,t.emit("selection-change",we.slice())}},ce=()=>(N.value||[]).slice(),ue=(tt,we=void 0,Fe=!0)=>{if(Bc(N.value,tt,we)){const Ye=(N.value||[]).slice();Fe&&t.emit("select",Ye,tt),t.emit("selection-change",Ye)}},ne=()=>{var tt,we;const Fe=D.value?!_.value:!(_.value||N.value.length);_.value=Fe;let _e=!1,Ye=0;const Le=(we=(tt=t==null?void 0:t.store)==null?void 0:tt.states)==null?void 0:we.rowKey.value;s.value.forEach((Mt,Nt)=>{const Tt=Nt+Ye;x.value?x.value.call(null,Mt,Tt)&&Bc(N.value,Mt,Fe)&&(_e=!0):Bc(N.value,Mt,Fe)&&(_e=!0),Ye+=qe(so(Mt,Le))}),_e&&t.emit("selection-change",N.value?N.value.slice():[]),t.emit("select-all",N.value)},Se=()=>{const tt=Ni(N.value,o.value);s.value.forEach(we=>{const Fe=so(we,o.value),_e=tt[Fe];_e&&(N.value[_e.index]=we)})},Ee=()=>{var tt,we,Fe;if(((tt=s.value)==null?void 0:tt.length)===0){_.value=!1;return}let _e;o.value&&(_e=Ni(N.value,o.value));const Ye=function(Tt){return _e?!!_e[so(Tt,o.value)]:N.value.includes(Tt)};let Le=!0,Mt=0,Nt=0;for(let Tt=0,cn=(s.value||[]).length;Tt<cn;Tt++){const co=(Fe=(we=t==null?void 0:t.store)==null?void 0:we.states)==null?void 0:Fe.rowKey.value,eo=Tt+Nt,Ut=s.value[Tt],go=x.value&&x.value.call(null,Ut,eo);if(Ye(Ut))Mt++;else if(!x.value||go){Le=!1;break}Nt+=qe(so(Ut,co))}Mt===0&&(Le=!1),_.value=Le},qe=tt=>{var we;if(!t||!t.store)return 0;const{treeData:Fe}=t.store.states;let _e=0;const Ye=(we=Fe.value[tt])==null?void 0:we.children;return Ye&&(_e+=Ye.length,Ye.forEach(Le=>{_e+=qe(Le)})),_e},xe=(tt,we)=>{Array.isArray(tt)||(tt=[tt]);const Fe={};return tt.forEach(_e=>{R.value[_e.id]=we,Fe[_e.columnKey||_e.id]=we}),Fe},pe=(tt,we,Fe)=>{Y.value&&Y.value!==tt&&(Y.value.order=null),Y.value=tt,X.value=we,K.value=Fe},Me=()=>{let tt=k(i);Object.keys(R.value).forEach(we=>{const Fe=R.value[we];if(!Fe||Fe.length===0)return;const _e=gS({columns:p.value},we);_e&&_e.filterMethod&&(tt=tt.filter(Ye=>Fe.some(Le=>_e.filterMethod.call(null,Le,Ye,_e))))}),B.value=tt},We=()=>{s.value=$Z(B.value,{sortingColumn:Y.value,sortProp:X.value,sortOrder:K.value})},ze=(tt=void 0)=>{tt&&tt.filter||Me(),We()},Ze=tt=>{const{tableHeaderRef:we}=t.refs;if(!we)return;const Fe=Object.assign({},we.filterPanels),_e=Object.keys(Fe);if(!!_e.length)if(typeof tt=="string"&&(tt=[tt]),Array.isArray(tt)){const Ye=tt.map(Le=>IZ({columns:p.value},Le));_e.forEach(Le=>{const Mt=Ye.find(Nt=>Nt.id===Le);Mt&&(Mt.filteredValue=[])}),t.store.commit("filterChange",{column:Ye,values:[],silent:!0,multi:!0})}else _e.forEach(Ye=>{const Le=p.value.find(Mt=>Mt.id===Ye);Le&&(Le.filteredValue=[])}),R.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},mt=()=>{!Y.value||(pe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ot,toggleRowExpansion:te,updateExpandRows:de,states:Ne,isRowExpanded:De}=MZ({data:s,rowKey:o}),{updateTreeExpandKeys:ke,toggleTreeExpansion:Ve,updateTreeData:ie,loadOrToggle:re,states:ge}=DZ({data:s,rowKey:o}),{updateCurrentRowData:Te,updateCurrentRow:Je,setCurrentRowKey:he,states:He}=OZ({data:s,rowKey:o});return{assertRowKey:G,updateColumns:z,scheduleLayout:ee,isSelected:j,clearSelection:V,cleanSelection:q,getSelectionRows:ce,toggleRowSelection:ue,_toggleAllSelection:ne,toggleAllSelection:null,updateSelectionByRowKey:Se,updateAllSelected:Ee,updateFilters:xe,updateCurrentRow:Je,updateSort:pe,execFilter:Me,execSort:We,execQuery:ze,clearFilter:Ze,clearSort:mt,toggleRowExpansion:te,setExpandRowKeysAdapter:tt=>{ot(tt),ke(tt)},setCurrentRowKey:he,toggleRowExpansionAdapter:(tt,we)=>{p.value.some(({type:_e})=>_e==="expand")?te(tt,we):Ve(tt,we)},isRowExpanded:De,updateExpandRows:de,updateCurrentRowData:Te,loadOrToggle:re,updateTreeData:ie,states:be(be(be({tableSize:n,rowKey:o,data:s,_data:i,isComplex:l,_columns:c,originColumns:f,columns:p,fixedColumns:m,rightFixedColumns:y,leafColumns:v,fixedLeafColumns:w,rightFixedLeafColumns:E,leafColumnsLength:I,fixedLeafColumnsLength:S,rightFixedLeafColumnsLength:T,isAllSelected:_,selection:N,reserveSelection:O,selectOnIndeterminate:D,selectable:x,filters:R,filteredData:B,sortingColumn:Y,sortProp:X,sortOrder:K,hoverRow:J},Ne),ge),He)}}function yp(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=yp(n.children,t)),n)})}function yS(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&yS(t.children)}),e.sort((t,n)=>t.no-n.no)}function LZ(){const e=Dt(),t=RZ(),n=Be("table"),o={setData(l,c){const f=k(l._data)!==c;l.data.value=c,l._data.value=c,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),k(l.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):f?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(l,c,f){const p=k(l._columns);let m=[];f?(f&&!f.children&&(f.children=[]),f.children.push(c),m=yp(p,f)):(p.push(c),m=p),yS(m),l._columns.value=m,c.type==="selection"&&(l.selectable.value=c.selectable,l.reserveSelection.value=c.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(l,c,f){const p=k(l._columns)||[];if(f)f.children.splice(f.children.findIndex(m=>m.id===c.id),1),f.children.length===0&&delete f.children,l._columns.value=yp(p,f);else{const m=p.indexOf(c);m>-1&&(p.splice(m,1),l._columns.value=p)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(l,c){const{prop:f,order:p,init:m}=c;if(f){const y=k(l.columns).find(v=>v.property===f);y&&(y.order=p,e.store.updateSort(y,f,p),e.store.commit("changeSortCondition",{init:m}))}},changeSortCondition(l,c){const{sortingColumn:f,sortProp:p,sortOrder:m}=l;k(m)===null&&(l.sortingColumn.value=null,l.sortProp.value=null);const y={filter:!0};e.store.execQuery(y),(!c||!(c.silent||c.init))&&e.emit("sort-change",{column:k(f),prop:k(p),order:k(m)}),e.store.updateTableScrollY()},filterChange(l,c){const{column:f,values:p,silent:m}=c,y=e.store.updateFilters(f,p);e.store.execQuery(),m||e.emit("filter-change",y),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(l,c){e.store.toggleRowSelection(c),e.store.updateAllSelected()},setHoverRow(l,c){l.hoverRow.value=c},setCurrentRow(l,c){e.store.updateCurrentRow(c)}},s=function(l,...c){const f=e.store.mutations;if(f[l])f[l].apply(e,[e.store.states].concat(c));else throw new Error(`Action not found: ${l}`)},i=function(){dt(()=>e.layout.updateScrollY.apply(e.layout))};return Qe(be({ns:n},t),{mutations:o,commit:s,updateTableScrollY:i})}const Xl={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function PZ(e,t){if(!e)throw new Error("Table is required.");const n=LZ();return n.toggleAllSelection=$o(n._toggleAllSelection,10),Object.keys(Xl).forEach(o=>{bS(wS(t,o),o,n)}),BZ(n,t),n}function BZ(e,t){Object.keys(Xl).forEach(n=>{Re(()=>wS(t,n),o=>{bS(o,n,e)})})}function bS(e,t,n){let o=e,s=Xl[t];typeof Xl[t]=="object"&&(s=s.key,o=o||Xl[t].default),n.states[s].value=o}function wS(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(s=>{o=o[s]}),o}else return e[t]}class FZ{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=F(null),this.scrollX=F(!1),this.scrollY=F(!1),this.bodyWidth=F(null),this.fixedWidth=F(null),this.rightFixedWidth=F(null),this.tableHeight=F(null),this.headerHeight=F(44),this.appendHeight=F(0),this.footerHeight=F(44),this.viewportHeight=F(null),this.bodyHeight=F(null),this.bodyScrollHeight=F(0),this.fixedBodyHeight=F(null),this.gutterWidth=0;for(const n in t)Bt(t,n)&&(wn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.bodyWrapper;if(this.table.vnode.el&&n){let o=!0;const s=this.scrollY.value;return this.bodyHeight.value===null?o=!1:o=n.scrollHeight>this.bodyHeight.value,this.scrollY.value=o,s!==o}return!1}setHeight(t,n="height"){if(!jt)return;const o=this.table.vnode.el;if(t=vp(t),this.height.value=Number(t),!o&&(t||t===0))return dt(()=>this.setHeight(t,n));typeof t=="number"?(o.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){var t,n;if(!this.table.$ready)return dt(()=>this.updateElsHeight());const{tableWrapper:o,headerWrapper:s,appendWrapper:i,footerWrapper:l,tableHeader:c,tableBody:f}=this.table.refs;if(o&&o.style.display==="none")return;const{tableLayout:p}=this.table.props;if(this.appendHeight.value=i?i.offsetHeight:0,this.showHeader&&!s&&p==="fixed")return;const m=c||null,y=this.headerDisplayNone(m),v=(s==null?void 0:s.offsetHeight)||0,w=this.headerHeight.value=this.showHeader?v:0;if(this.showHeader&&!y&&v>0&&(this.table.store.states.columns.value||[]).length>0&&w<2)return dt(()=>this.updateElsHeight());const E=this.tableHeight.value=(n=(t=this.table)==null?void 0:t.vnode.el)==null?void 0:n.clientHeight,I=this.footerHeight.value=l?l.offsetHeight:0;this.height.value!==null&&(this.bodyHeight.value===null&&requestAnimationFrame(()=>this.updateElsHeight()),this.bodyHeight.value=E-w-I+(l?1:0),this.bodyScrollHeight.value=f==null?void 0:f.scrollHeight),this.fixedBodyHeight.value=this.scrollX.value?this.bodyHeight.value-this.gutterWidth:this.bodyHeight.value,this.viewportHeight.value=this.scrollX.value?E-this.gutterWidth:E,this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!jt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let o=0;const s=this.getFlattenColumns(),i=s.filter(f=>typeof f.width!="number");if(s.forEach(f=>{typeof f.width=="number"&&f.realWidth&&(f.realWidth=null)}),i.length>0&&t){if(s.forEach(f=>{o+=Number(f.width||f.minWidth||80)}),o<=n){this.scrollX.value=!1;const f=n-o;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+f;else{const p=i.reduce((v,w)=>v+Number(w.minWidth||80),0),m=f/p;let y=0;i.forEach((v,w)=>{if(w===0)return;const E=Math.floor(Number(v.minWidth||80)*m);y+=E,v.realWidth=Number(v.minWidth||80)+E}),i[0].realWidth=Number(i[0].minWidth||80)+f-y}}else this.scrollX.value=!0,i.forEach(f=>{f.realWidth=Number(f.minWidth)});this.bodyWidth.value=Math.max(o,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else s.forEach(f=>{!f.width&&!f.minWidth?f.realWidth=80:f.realWidth=Number(f.width||f.minWidth),o+=f.realWidth}),this.scrollX.value=o>n,this.bodyWidth.value=o;const l=this.store.states.fixedColumns.value;if(l.length>0){let f=0;l.forEach(p=>{f+=Number(p.realWidth||p.width)}),this.fixedWidth.value=f}const c=this.store.states.rightFixedColumns.value;if(c.length>0){let f=0;c.forEach(p=>{f+=Number(p.realWidth||p.width)}),this.rightFixedWidth.value=f}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var s,i;switch(t){case"columns":(s=o.state)==null||s.onColumnsChange(this);break;case"scrollable":(i=o.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:VZ}=$r,HZ=ve({name:"ElTableFilterPanel",components:{ElCheckbox:$r,ElCheckboxGroup:VZ,ElScrollbar:Es,ElTooltip:Ro,ElIcon:yt,ArrowDown:Qi,ArrowUp:xu},directives:{ClickOutside:ta},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Dt(),{t:n}=un(),o=Be("table-filter"),s=t==null?void 0:t.parent;s.filterPanels.value[e.column.id]||(s.filterPanels.value[e.column.id]=t);const i=F(!1),l=F(null),c=$(()=>e.column&&e.column.filters),f=$({get:()=>{var O;return(((O=e.column)==null?void 0:O.filteredValue)||[])[0]},set:O=>{p.value&&(typeof O!="undefined"&&O!==null?p.value.splice(0,1,O):p.value.splice(0,1))}}),p=$({get(){return e.column?e.column.filteredValue||[]:[]},set(O){e.column&&e.upDataColumn("filteredValue",O)}}),m=$(()=>e.column?e.column.filterMultiple:!0),y=O=>O.value===f.value,v=()=>{i.value=!1},w=O=>{O.stopPropagation(),i.value=!i.value},E=()=>{i.value=!1},I=()=>{_(p.value),v()},S=()=>{p.value=[],_(p.value),v()},T=O=>{f.value=O,_(typeof O!="undefined"&&O!==null?p.value:[]),v()},_=O=>{e.store.commit("filterChange",{column:e.column,values:O}),e.store.updateAllSelected()};Re(i,O=>{e.column&&e.upDataColumn("filterOpened",O)},{immediate:!0});const N=$(()=>{var O,D;return(D=(O=l.value)==null?void 0:O.popperRef)==null?void 0:D.contentRef});return{tooltipVisible:i,multiple:m,filteredValue:p,filterValue:f,filters:c,handleConfirm:I,handleReset:S,handleSelect:T,isActive:y,t:n,ns:o,showFilterPanel:w,hideFilterPanel:E,popperPaneRef:N,tooltip:l}}}),zZ={key:0},UZ=["disabled"],WZ=["label","onClick"];function jZ(e,t,n,o,s,i){const l=Ae("el-checkbox"),c=Ae("el-checkbox-group"),f=Ae("el-scrollbar"),p=Ae("arrow-up"),m=Ae("arrow-down"),y=Ae("el-icon"),v=Ae("el-tooltip"),w=qo("click-outside");return M(),me(v,{ref:"tooltip",visible:e.tooltipVisible,"onUpdate:visible":t[5]||(t[5]=E=>e.tooltipVisible=E),offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,"append-to-body":"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:ae(()=>[e.multiple?(M(),W("div",zZ,[Q("div",{class:P(e.ns.e("content"))},[le(f,{"wrap-class":e.ns.e("wrap")},{default:ae(()=>[le(c,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=E=>e.filteredValue=E),class:P(e.ns.e("checkbox-group"))},{default:ae(()=>[(M(!0),W(at,null,zt(e.filters,E=>(M(),me(l,{key:E.value,label:E.value},{default:ae(()=>[Ht(Pe(E.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),Q("div",{class:P(e.ns.e("bottom"))},[Q("button",{class:P({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...E)=>e.handleConfirm&&e.handleConfirm(...E))},Pe(e.t("el.table.confirmFilter")),11,UZ),Q("button",{type:"button",onClick:t[2]||(t[2]=(...E)=>e.handleReset&&e.handleReset(...E))},Pe(e.t("el.table.resetFilter")),1)],2)])):(M(),W("ul",{key:1,class:P(e.ns.e("list"))},[Q("li",{class:P([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=E=>e.handleSelect(null))},Pe(e.t("el.table.clearFilter")),3),(M(!0),W(at,null,zt(e.filters,E=>(M(),W("li",{key:E.value,class:P([e.ns.e("list-item"),e.ns.is("active",e.isActive(E))]),label:E.value,onClick:I=>e.handleSelect(E.value)},Pe(E.text),11,WZ))),128))],2))]),default:ae(()=>[bt((M(),W("span",{class:P([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...E)=>e.showFilterPanel&&e.showFilterPanel(...E))},[le(y,null,{default:ae(()=>[e.column.filterOpened?(M(),me(p,{key:0})):(M(),me(m,{key:1}))]),_:1})],2)),[[w,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var KZ=Ue(HZ,[["render",jZ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function CS(e){const t=Dt();Au(()=>{n.value.addObserver(t)}),kt(()=>{o(n.value),s(n.value)}),br(()=>{o(n.value),s(n.value)}),Tu(()=>{n.value.removeObserver(t)});const n=$(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),o=i=>{var l;const c=((l=e.vnode.el)==null?void 0:l.querySelectorAll("colgroup > col"))||[];if(!c.length)return;const f=i.getFlattenColumns(),p={};f.forEach(m=>{p[m.id]=m});for(let m=0,y=c.length;m<y;m++){const v=c[m],w=v.getAttribute("name"),E=p[w];E&&v.setAttribute("width",E.realWidth||E.width)}},s=i=>{var l,c;const f=((l=e.vnode.el)==null?void 0:l.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let m=0,y=f.length;m<y;m++)f[m].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const p=((c=e.vnode.el)==null?void 0:c.querySelectorAll("th.gutter"))||[];for(let m=0,y=p.length;m<y;m++){const v=p[m];v.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",v.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:s}}const ns=Symbol("ElTable");function YZ(e,t){const n=Dt(),o=et(ns),s=I=>{I.stopPropagation()},i=(I,S)=>{!S.filters&&S.sortable?E(I,S,!1):S.filterable&&!S.sortable&&s(I),o==null||o.emit("header-click",S,I)},l=(I,S)=>{o==null||o.emit("header-contextmenu",S,I)},c=F(null),f=F(!1),p=F({}),m=(I,S)=>{if(!!jt&&!(S.children&&S.children.length>0)&&c.value&&e.border){f.value=!0;const T=o;t("set-drag-visible",!0);const N=(T==null?void 0:T.vnode.el).getBoundingClientRect().left,O=n.vnode.el.querySelector(`th.${S.id}`),D=O.getBoundingClientRect(),x=D.left-N+30;qr(O,"noclick"),p.value={startMouseLeft:I.clientX,startLeft:D.right-N,startColumnLeft:D.left-N,tableLeft:N};const R=T==null?void 0:T.refs.resizeProxy;R.style.left=`${p.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const B=X=>{const K=X.clientX-p.value.startMouseLeft,J=p.value.startLeft+K;R.style.left=`${Math.max(x,J)}px`},Y=()=>{if(f.value){const{startColumnLeft:X,startLeft:K}=p.value,G=Number.parseInt(R.style.left,10)-X;S.width=S.realWidth=G,T==null||T.emit("header-dragend",S.width,K-X,S,I),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",f.value=!1,c.value=null,p.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",Y),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Do(O,"noclick")},0)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",Y)}},y=(I,S)=>{if(S.children&&S.children.length>0)return;let T=I.target;for(;T&&T.tagName!=="TH";)T=T.parentNode;if(!(!S||!S.resizable)&&!f.value&&e.border){const _=T.getBoundingClientRect(),N=document.body.style;_.width>12&&_.right-I.pageX<8?(N.cursor="col-resize",xr(T,"is-sortable")&&(T.style.cursor="col-resize"),c.value=S):f.value||(N.cursor="",xr(T,"is-sortable")&&(T.style.cursor="pointer"),c.value=null)}},v=()=>{!jt||(document.body.style.cursor="")},w=({order:I,sortOrders:S})=>{if(I==="")return S[0];const T=S.indexOf(I||null);return S[T>S.length-2?0:T+1]},E=(I,S,T)=>{I.stopPropagation();const _=S.order===T?null:T||w(S);let N=I.target;for(;N&&N.tagName!=="TH";)N=N.parentNode;if(N&&N.tagName==="TH"&&xr(N,"noclick")){Do(N,"noclick");return}if(!S.sortable)return;const O=e.store.states;let D=O.sortProp.value,x;const R=O.sortingColumn.value;(R!==S||R===S&&R.order===null)&&(R&&(R.order=null),O.sortingColumn.value=S,D=S.property),_?x=S.order=_:x=S.order=null,O.sortProp.value=D,O.sortOrder.value=x,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:l,handleMouseDown:m,handleMouseMove:y,handleMouseOut:v,handleSortClick:E,handleFilterClick:s}}function GZ(e){const t=et(ns),n=Be("table");return{getHeaderRowStyle:c=>{const f=t==null?void 0:t.props.headerRowStyle;return typeof f=="function"?f.call(null,{rowIndex:c}):f},getHeaderRowClass:c=>{const f=[],p=t==null?void 0:t.props.headerRowClassName;return typeof p=="string"?f.push(p):typeof p=="function"&&f.push(p.call(null,{rowIndex:c})),f.join(" ")},getHeaderCellStyle:(c,f,p,m)=>{var y;let v=(y=t==null?void 0:t.props.headerCellStyle)!=null?y:{};typeof v=="function"&&(v=v.call(null,{rowIndex:c,columnIndex:f,row:p,column:m}));const w=m.isSubColumn?null:o1(f,m.fixed,e.store,p);return Xa(w,"left"),Xa(w,"right"),Object.assign({},v,w)},getHeaderCellClass:(c,f,p,m)=>{const y=m.isSubColumn?[]:n1(n.b(),f,m.fixed,e.store,p),v=[m.id,m.order,m.headerAlign,m.className,m.labelClassName,...y];m.children||v.push("is-leaf"),m.sortable&&v.push("is-sortable");const w=t==null?void 0:t.props.headerCellClassName;return typeof w=="string"?v.push(w):typeof w=="function"&&v.push(w.call(null,{rowIndex:c,columnIndex:f,row:p,column:m})),v.push(n.e("cell")),v.filter(E=>Boolean(E)).join(" ")}}}const ES=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,ES(n.children))):t.push(n)}),t},XZ=e=>{let t=1;const n=(i,l)=>{if(l&&(i.level=l.level+1,t<i.level&&(t=i.level)),i.children){let c=0;i.children.forEach(f=>{n(f,i),c+=f.colSpan}),i.colSpan=c}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const o=[];for(let i=0;i<t;i++)o.push([]);return ES(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(l=>l.isSubColumn=!0)):i.rowSpan=t-i.level+1,o[i.level-1].push(i)}),o};function qZ(e){const t=et(ns),n=$(()=>XZ(e.store.states.originColumns.value));return{isGroup:$(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var ZZ=ve({name:"ElTableHeader",components:{ElCheckbox:$r},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=Dt(),o=et(ns),s=Be("table"),i=F({}),{onColumnsChange:l,onScrollableChange:c}=CS(o);kt(async()=>{await dt(),await dt();const{prop:x,order:R}=e.defaultSort;o==null||o.store.commit("sort",{prop:x,order:R,init:!0})});const{handleHeaderClick:f,handleHeaderContextMenu:p,handleMouseDown:m,handleMouseMove:y,handleMouseOut:v,handleSortClick:w,handleFilterClick:E}=YZ(e,t),{getHeaderRowStyle:I,getHeaderRowClass:S,getHeaderCellStyle:T,getHeaderCellClass:_}=GZ(e),{isGroup:N,toggleAllSelection:O,columnRows:D}=qZ(e);return n.state={onColumnsChange:l,onScrollableChange:c},n.filterPanels=i,{ns:s,filterPanels:i,onColumnsChange:l,onScrollableChange:c,columnRows:D,getHeaderRowClass:S,getHeaderRowStyle:I,getHeaderCellClass:_,getHeaderCellStyle:T,handleHeaderClick:f,handleHeaderContextMenu:p,handleMouseDown:m,handleMouseMove:y,handleMouseOut:v,handleSortClick:w,handleFilterClick:E,isGroup:N,toggleAllSelection:O}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:s,getHeaderRowClass:i,getHeaderRowStyle:l,handleHeaderClick:c,handleHeaderContextMenu:f,handleMouseDown:p,handleMouseMove:m,handleSortClick:y,handleMouseOut:v,store:w,$parent:E}=this;let I=1;return it("thead",{class:{[e.is("group")]:t}},n.map((S,T)=>it("tr",{class:i(T),key:T,style:l(T)},S.map((_,N)=>(_.rowSpan>I&&(I=_.rowSpan),it("th",{class:s(T,N,S,_),colspan:_.colSpan,key:`${_.id}-thead`,rowspan:_.rowSpan,style:o(T,N,S,_),onClick:O=>c(O,_),onContextmenu:O=>f(O,_),onMousedown:O=>p(O,_),onMousemove:O=>m(O,_),onMouseout:v},[it("div",{class:["cell",_.filteredValue&&_.filteredValue.length>0?"highlight":"",_.labelClassName]},[_.renderHeader?_.renderHeader({column:_,$index:N,store:w,_self:E}):_.label,_.sortable&&it("span",{onClick:O=>y(O,_),class:"caret-wrapper"},[it("i",{onClick:O=>y(O,_,"ascending"),class:"sort-caret ascending"}),it("i",{onClick:O=>y(O,_,"descending"),class:"sort-caret descending"})]),_.filterable&&it(KZ,{store:w,placement:_.filterPlacement||"bottom-start",column:_,upDataColumn:(O,D)=>{_[O]=D}})])]))))))}});function QZ(e){const t=et(ns),n=F(""),o=F(it("div")),s=(v,w,E)=>{var I;const S=t,T=lh(v);let _;const N=(I=S==null?void 0:S.vnode.el)==null?void 0:I.dataset.prefix;T&&(_=my({columns:e.store.states.columns.value},T,N),_&&(S==null||S.emit(`cell-${E}`,w,_,T,v))),S==null||S.emit(`row-${E}`,w,_,v)},i=(v,w)=>{s(v,w,"dblclick")},l=(v,w)=>{e.store.commit("setCurrentRow",w),s(v,w,"click")},c=(v,w)=>{s(v,w,"contextmenu")},f=$o(v=>{e.store.commit("setHoverRow",v)},30),p=$o(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:i,handleClick:l,handleContextMenu:c,handleMouseEnter:f,handleMouseLeave:p,handleCellMouseEnter:(v,w)=>{var E;const I=t,S=lh(v),T=(E=I==null?void 0:I.vnode.el)==null?void 0:E.dataset.prefix;if(S){const x=my({columns:e.store.states.columns.value},S,T),R=I.hoverState={cell:S,column:x,row:w};I==null||I.emit("cell-mouse-enter",R.row,R.column,R.cell,v)}const _=v.target.querySelector(".cell");if(!(xr(_,`${T}-tooltip`)&&_.childNodes.length))return;const N=document.createRange();N.setStart(_,0),N.setEnd(_,_.childNodes.length);const O=N.getBoundingClientRect().width,D=(Number.parseInt(Xr(_,"paddingLeft"),10)||0)+(Number.parseInt(Xr(_,"paddingRight"),10)||0);(O+D>_.offsetWidth||_.scrollWidth>_.offsetWidth)&&xZ(S,S.innerText||S.textContent,{placement:"top",strategy:"fixed"},w.tooltipEffect)},handleCellMouseLeave:v=>{if(!lh(v))return;const E=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",E==null?void 0:E.row,E==null?void 0:E.column,E==null?void 0:E.cell,v)},tooltipContent:n,tooltipTrigger:o}}function JZ(e){const t=et(ns),n=Be("table");return{getRowStyle:(p,m)=>{const y=t==null?void 0:t.props.rowStyle;return typeof y=="function"?y.call(null,{row:p,rowIndex:m}):y||null},getRowClass:(p,m)=>{const y=[n.e("row")];(t==null?void 0:t.props.highlightCurrentRow)&&p===e.store.states.currentRow.value&&y.push("current-row"),e.stripe&&m%2===1&&y.push(n.em("row","striped"));const v=t==null?void 0:t.props.rowClassName;return typeof v=="string"?y.push(v):typeof v=="function"&&y.push(v.call(null,{row:p,rowIndex:m})),y},getCellStyle:(p,m,y,v)=>{const w=t==null?void 0:t.props.cellStyle;let E=w!=null?w:{};typeof w=="function"&&(E=w.call(null,{rowIndex:p,columnIndex:m,row:y,column:v}));const I=v.isSubColumn?null:o1(m,e==null?void 0:e.fixed,e.store);return Xa(I,"left"),Xa(I,"right"),Object.assign({},E,I)},getCellClass:(p,m,y,v)=>{const w=v.isSubColumn?[]:n1(n.b(),m,e==null?void 0:e.fixed,e.store),E=[v.id,v.align,v.className,...w],I=t==null?void 0:t.props.cellClassName;return typeof I=="string"?E.push(I):typeof I=="function"&&E.push(I.call(null,{rowIndex:p,columnIndex:m,row:y,column:v})),E.push(n.e("cell")),E.filter(S=>Boolean(S)).join(" ")},getSpan:(p,m,y,v)=>{let w=1,E=1;const I=t==null?void 0:t.props.spanMethod;if(typeof I=="function"){const S=I({row:p,column:m,rowIndex:y,columnIndex:v});Array.isArray(S)?(w=S[0],E=S[1]):typeof S=="object"&&(w=S.rowspan,E=S.colspan)}return{rowspan:w,colspan:E}},getColspanRealWidth:(p,m,y)=>{if(m<1)return p[y].realWidth;const v=p.map(({realWidth:w,width:E})=>w||E).slice(y,y+m);return Number(v.reduce((w,E)=>Number(w)+Number(E),-1))}}}function eQ(e){const t=et(ns),{handleDoubleClick:n,handleClick:o,handleContextMenu:s,handleMouseEnter:i,handleMouseLeave:l,handleCellMouseEnter:c,handleCellMouseLeave:f,tooltipContent:p,tooltipTrigger:m}=QZ(e),{getRowStyle:y,getRowClass:v,getCellStyle:w,getCellClass:E,getSpan:I,getColspanRealWidth:S}=JZ(e),T=$(()=>e.store.states.columns.value.findIndex(({type:x})=>x==="default")),_=(x,R)=>{const B=t.props.rowKey;return B?so(x,B):R},N=(x,R,B,Y=!1)=>{const{tooltipEffect:X,store:K}=e,{indent:J,columns:G}=K.states,z=v(x,R);let ee=!0;return B&&(z.push(`el-table__row--level-${B.level}`),ee=B.display),it("tr",{style:[ee?null:{display:"none"},y(x,R)],class:z,key:_(x,R),onDblclick:V=>n(V,x),onClick:V=>o(V,x),onContextmenu:V=>s(V,x),onMouseenter:()=>i(R),onMouseleave:l},G.value.map((V,q)=>{const{rowspan:ce,colspan:ue}=I(x,V,R,q);if(!ce||!ue)return null;const ne=be({},V);ne.realWidth=S(G.value,ue,q);const Se={store:e.store,_self:e.context||t,column:ne,row:x,$index:R,cellIndex:q,expanded:Y};q===T.value&&B&&(Se.treeNode={indent:B.level*J.value,level:B.level},typeof B.expanded=="boolean"&&(Se.treeNode.expanded=B.expanded,"loading"in B&&(Se.treeNode.loading=B.loading),"noLazyChildren"in B&&(Se.treeNode.noLazyChildren=B.noLazyChildren)));const Ee=`${R},${q}`,qe=ne.columnKey||ne.rawColumnKey||"",xe=O(q,V,Se);return it("td",{style:w(R,q,x,V),class:E(R,q,x,V),key:`${qe}${Ee}`,rowspan:ce,colspan:ue,onMouseenter:pe=>c(pe,Qe(be({},x),{tooltipEffect:X})),onMouseleave:f},[xe])}))},O=(x,R,B)=>R.renderCell(B);return{wrappedRowRender:(x,R)=>{const B=e.store,{isRowExpanded:Y,assertRowKey:X}=B,{treeData:K,lazyTreeNodeMap:J,childrenColumnName:G,rowKey:z}=B.states,ee=B.states.columns.value;if(ee.some(({type:V})=>V==="expand")){const V=Y(x),q=N(x,R,void 0,V),ce=t.renderExpanded;return V?ce?[[q,it("tr",{key:`expanded-row__${q.key}`},[it("td",{colspan:ee.length,class:"el-table__cell el-table__expanded-cell"},[ce({row:x,$index:R,store:B,expanded:V})])])]]:(console.error("[Element Error]renderExpanded is required."),q):[[q]]}else if(Object.keys(K.value).length){X();const V=so(x,z.value);let q=K.value[V],ce=null;q&&(ce={expanded:q.expanded,level:q.level,display:!0},typeof q.lazy=="boolean"&&(typeof q.loaded=="boolean"&&q.loaded&&(ce.noLazyChildren=!(q.children&&q.children.length)),ce.loading=q.loading));const ue=[N(x,R,ce)];if(q){let ne=0;const Se=(qe,xe)=>{!(qe&&qe.length&&xe)||qe.forEach(pe=>{const Me={display:xe.display&&xe.expanded,level:xe.level+1,expanded:!1,noLazyChildren:!1,loading:!1},We=so(pe,z.value);if(We==null)throw new Error("For nested data item, row-key is required.");if(q=be({},K.value[We]),q&&(Me.expanded=q.expanded,q.level=q.level||Me.level,q.display=!!(q.expanded&&Me.display),typeof q.lazy=="boolean"&&(typeof q.loaded=="boolean"&&q.loaded&&(Me.noLazyChildren=!(q.children&&q.children.length)),Me.loading=q.loading)),ne++,ue.push(N(pe,R+ne,Me)),q){const ze=J.value[We]||pe[G.value];Se(ze,q)}})};q.display=!0;const Ee=J.value[V]||x[G.value];Se(Ee,q)}return ue}else return N(x,R,void 0)},tooltipContent:p,tooltipTrigger:m}}const tQ={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var nQ=ve({name:"ElTableBody",props:tQ,setup(e){const t=Dt(),n=et(ns),o=Be("table"),{wrappedRowRender:s,tooltipContent:i,tooltipTrigger:l}=eQ(e),{onColumnsChange:c,onScrollableChange:f}=CS(n);return Re(e.store.states.hoverRow,(p,m)=>{if(!e.store.states.isComplex.value||!jt)return;let y=window.requestAnimationFrame;y||(y=v=>window.setTimeout(v,16)),y(()=>{var v;const w=(v=t==null?void 0:t.vnode.el)==null?void 0:v.querySelectorAll(`.${o.e("row")}`),E=w[m],I=w[p];E&&Do(E,"hover-row"),I&&qr(I,"hover-row")})}),Tu(()=>{var p;(p=pd)==null||p()}),br(()=>{var p;(p=pd)==null||p()}),{ns:o,onColumnsChange:c,onScrollableChange:f,wrappedRowRender:s,tooltipContent:i,tooltipTrigger:l}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return it("tbody",{},[n.reduce((o,s)=>o.concat(e(s,o.length)),[])])}});function r1(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(s=>s.width===void 0)&&(n=[]);const o=s=>{const i={key:`${e.tableLayout}_${s.id}`,style:{},name:void 0};return t?i.style={width:`${s.width}px`}:i.name=s.id,i};return it("colgroup",{},n.map(s=>it("col",o(s))))}r1.props=["columns","tableLayout"];function oQ(){const e=et(ns),t=e==null?void 0:e.store,n=$(()=>t.states.fixedLeafColumnsLength.value),o=$(()=>t.states.rightFixedColumns.value.length),s=$(()=>t.states.columns.value.length),i=$(()=>t.states.fixedColumns.value.length),l=$(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:s,leftFixedCount:i,rightFixedCount:l,columns:t.states.columns}}function rQ(e){const{columns:t}=oQ(),n=Be("table");return{getCellClasses:(i,l)=>{const c=i[l],f=[n.e("cell"),c.id,c.align,c.labelClassName,...n1(n.b(),l,c.fixed,e.store)];return c.className&&f.push(c.className),c.children||f.push(n.is("leaf")),f},getCellStyles:(i,l)=>{const c=o1(l,i.fixed,e.store);return Xa(c,"left"),Xa(c,"right"),c},columns:t}}var sQ=ve({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:o}=rQ(e);return{ns:Be("table"),getCellClasses:t,getCellStyles:n,columns:o}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:s,ns:i}=this,l=this.store.states.data.value;let c=[];return o?c=o({columns:e,data:l}):e.forEach((f,p)=>{if(p===0){c[p]=s;return}const m=l.map(E=>Number(E[f.property])),y=[];let v=!0;m.forEach(E=>{if(!Number.isNaN(+E)){v=!1;const I=`${E}`.split(".")[1];y.push(I?I.length:0)}});const w=Math.max.apply(null,y);v?c[p]="":c[p]=m.reduce((E,I)=>{const S=Number(I);return Number.isNaN(+S)?E:Number.parseFloat((E+I).toFixed(Math.min(w,20)))},0)}),it("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[r1({columns:e}),it("tbody",[it("tr",{},[...e.map((f,p)=>it("td",{key:p,colspan:f.colSpan,rowspan:f.rowSpan,class:n(e,p),style:t(f,p)},[it("div",{class:["cell",f.labelClassName]},[c[p]])]))])])])}});function iQ(e){return{setCurrentRow:m=>{e.commit("setCurrentRow",m)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(m,y)=>{e.toggleRowSelection(m,y,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:m=>{e.clearFilter(m)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(m,y)=>{e.toggleRowExpansionAdapter(m,y)},clearSort:()=>{e.clearSort()},sort:(m,y)=>{e.commit("sort",{prop:m,order:y})}}}function aQ(e,t,n,o){const s=F(!1),i=F(null),l=F(!1),c=q=>{l.value=q},f=F({width:null,height:null}),p=F(!1),m={display:"inline-block",verticalAlign:"middle"},y=F();dr(()=>{t.setHeight(e.height)}),dr(()=>{t.setMaxHeight(e.maxHeight)}),Re(()=>[e.currentRowKey,n.states.rowKey],([q,ce])=>{!k(ce)||n.setCurrentRowKey(`${q}`)},{immediate:!0}),Re(()=>e.data,q=>{o.store.commit("setData",q)},{immediate:!0,deep:!0}),dr(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const v=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},w=(q,ce)=>{const{pixelX:ue,pixelY:ne}=ce;Math.abs(ue)>=Math.abs(ne)&&(o.refs.bodyWrapper.scrollLeft+=ce.pixelX/5)},E=$(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),I=$(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{E.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(O)};kt(async()=>{await dt(),n.updateColumns(),D(),requestAnimationFrame(S),f.value={width:y.value=o.vnode.el.offsetWidth,height:o.vnode.el.offsetHeight},n.states.columns.value.forEach(q=>{q.filteredValue&&q.filteredValue.length&&o.store.commit("filterChange",{column:q,values:q.filteredValue,silent:!0})}),o.$ready=!0});const T=(q,ce)=>{if(!q)return;const ue=Array.from(q.classList).filter(ne=>!ne.startsWith("is-scrolling-"));ue.push(t.scrollX.value?ce:"is-scrolling-none"),q.className=ue.join(" ")},_=q=>{const{tableWrapper:ce}=o.refs;T(ce,q)},N=q=>{const{tableWrapper:ce}=o.refs;return!!(ce&&ce.classList.contains(q))},O=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const xe="is-scrolling-none";N(xe)||_(xe);return}const q=o.refs.scrollBarRef.wrap$;if(!q)return;const{scrollLeft:ce,offsetWidth:ue,scrollWidth:ne}=q,{headerWrapper:Se,footerWrapper:Ee}=o.refs;Se&&(Se.scrollLeft=ce),Ee&&(Ee.scrollLeft=ce);const qe=ne-ue-1;ce>=qe?_("is-scrolling-right"):_(ce===0?"is-scrolling-left":"is-scrolling-middle")},D=()=>{var q;!o.refs.scrollBarRef||((q=o.refs.scrollBarRef.wrap$)==null||q.addEventListener("scroll",O,{passive:!0}),e.fit?ol(o.vnode.el,R):Bn(window,"resize",S))};gn(()=>{x()});const x=()=>{var q;(q=o.refs.scrollBarRef.wrap$)==null||q.removeEventListener("scroll",O,!0),e.fit?rl(o.vnode.el,R):Kn(window,"resize",S)},R=()=>{if(!o.$ready)return;let q=!1;const ce=o.vnode.el,{width:ue,height:ne}=f.value,Se=y.value=ce.offsetWidth;ue!==Se&&(q=!0);const Ee=ce.offsetHeight;(e.height||E.value)&&ne!==Ee&&(q=!0),q&&(f.value={width:Se,height:Ee},S())},B=Fn(),Y=$(()=>{const{bodyWidth:q,scrollY:ce,gutterWidth:ue}=t;return q.value?`${q.value-(ce.value?ue:0)}px`:""}),X=$(()=>e.maxHeight?"fixed":e.tableLayout);function K(q,ce,ue){const ne=vp(q),Se=e.showHeader?ue:0;if(ne!==null)return _t(ne)?`calc(${ne} - ${ce}px - ${Se}px)`:ne-ce-Se}const J=$(()=>{const q=t.headerHeight.value||0,ce=t.bodyHeight.value,ue=t.footerHeight.value||0;if(e.height)return ce||void 0;if(e.maxHeight)return K(e.maxHeight,ue,q)}),G=$(()=>{const q=t.headerHeight.value||0,ce=t.bodyHeight.value,ue=t.footerHeight.value||0;if(e.height)return{height:ce?`${ce}px`:""};if(e.maxHeight){const ne=K(e.maxHeight,ue,q);if(ne!==null)return{"max-height":`${ne}${Qt(ne)?"px":""}`}}return{}}),z=$(()=>{if(e.data&&e.data.length)return null;let q="100%";return t.appendHeight.value&&(q=`calc(100% - ${t.appendHeight.value}px)`),{width:y.value?`${y.value}px`:"",height:q}}),ee=(q,ce)=>{const ue=o.refs.bodyWrapper;if(Math.abs(ce.spinY)>0){const ne=ue.scrollTop;ce.pixelY<0&&ne!==0&&q.preventDefault(),ce.pixelY>0&&ue.scrollHeight-ue.clientHeight>ne&&q.preventDefault(),ue.scrollTop+=Math.ceil(ce.pixelY/5)}else ue.scrollLeft+=Math.ceil(ce.pixelX/5)},j=$(()=>e.maxHeight?e.showSummary?{bottom:0}:{bottom:t.scrollX.value&&e.data.length?`${t.gutterWidth}px`:""}:e.showSummary?{height:t.tableHeight.value?`${t.tableHeight.value}px`:""}:{height:t.viewportHeight.value?`${t.viewportHeight.value}px`:""}),V=$(()=>{if(e.height)return{height:t.fixedBodyHeight.value?`${t.fixedBodyHeight.value}px`:""};if(e.maxHeight){let q=vp(e.maxHeight);if(typeof q=="number")return q=t.scrollX.value?q-t.gutterWidth:q,e.showHeader&&(q-=t.headerHeight.value),q-=t.footerHeight.value,{"max-height":`${q}px`}}return{}});return{isHidden:s,renderExpanded:i,setDragVisible:c,isGroup:p,handleMouseLeave:v,handleHeaderFooterMousewheel:w,tableSize:B,bodyHeight:G,height:J,emptyBlockStyle:z,handleFixedMousewheel:ee,fixedHeight:j,fixedBodyHeight:V,resizeProxyVisible:l,bodyWidth:Y,resizeState:f,doLayout:S,tableBodyStyles:I,tableLayout:X,scrollbarViewStyle:m}}var lQ={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1}};const uQ=()=>{const e=F(),t=(i,l)=>{const c=e.value;c&&c.scrollTo(i,l)},n=(i,l)=>{const c=e.value;c&&Qt(l)&&["Top","Left"].includes(i)&&c[`setScroll${i}`](l)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let cQ=1;const dQ=ve({name:"ElTable",directives:{Mousewheel:PB},components:{TableHeader:ZZ,TableBody:nQ,TableFooter:sQ,ElScrollbar:Es,hColgroup:r1},props:lQ,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=un(),n=Be("table"),o=Dt();Pt(ns,o);const s=PZ(o,e);o.store=s;const i=new FZ({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=i;const l=$(()=>(s.states.data.value||[]).length===0),{setCurrentRow:c,getSelectionRows:f,toggleRowSelection:p,clearSelection:m,clearFilter:y,toggleAllSelection:v,toggleRowExpansion:w,clearSort:E,sort:I}=iQ(s),{isHidden:S,renderExpanded:T,setDragVisible:_,isGroup:N,handleMouseLeave:O,handleHeaderFooterMousewheel:D,tableSize:x,bodyHeight:R,height:B,emptyBlockStyle:Y,handleFixedMousewheel:X,fixedHeight:K,fixedBodyHeight:J,resizeProxyVisible:G,bodyWidth:z,resizeState:ee,doLayout:j,tableBodyStyles:V,tableLayout:q,scrollbarViewStyle:ce}=aQ(e,i,s,o),{scrollBarRef:ue,scrollTo:ne,setScrollLeft:Se,setScrollTop:Ee}=uQ(),qe=$o(j,50),xe=`el-table_${cQ++}`;o.tableId=xe,o.state={isGroup:N,resizeState:ee,doLayout:j,debouncedUpdateLayout:qe};const pe=$(()=>e.sumText||t("el.table.sumText")),Me=$(()=>e.emptyText||t("el.table.emptyText"));return{ns:n,layout:i,store:s,handleHeaderFooterMousewheel:D,handleMouseLeave:O,tableId:xe,tableSize:x,isHidden:S,isEmpty:l,renderExpanded:T,resizeProxyVisible:G,resizeState:ee,isGroup:N,bodyWidth:z,bodyHeight:R,height:B,tableBodyStyles:V,emptyBlockStyle:Y,debouncedUpdateLayout:qe,handleFixedMousewheel:X,fixedHeight:K,fixedBodyHeight:J,setCurrentRow:c,getSelectionRows:f,toggleRowSelection:p,clearSelection:m,clearFilter:y,toggleAllSelection:v,toggleRowExpansion:w,clearSort:E,doLayout:j,sort:I,t,setDragVisible:_,context:o,computedSumText:pe,computedEmptyText:Me,tableLayout:q,scrollbarViewStyle:ce,scrollBarRef:ue,scrollTo:ne,setScrollLeft:Se,setScrollTop:Ee}}}),fQ=["data-prefix"],hQ={ref:"hiddenColumns",class:"hidden-columns"};function pQ(e,t,n,o,s,i){const l=Ae("hColgroup"),c=Ae("table-header"),f=Ae("table-body"),p=Ae("el-scrollbar"),m=Ae("table-footer"),y=qo("mousewheel");return M(),W("div",{ref:"tableWrapper",class:P([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:st(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=v=>e.handleMouseLeave())},[Q("div",{class:P(e.ns.e("inner-wrapper"))},[Q("div",hQ,[Ie(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?bt((M(),W("div",{key:0,ref:"headerWrapper",class:P(e.ns.e("header-wrapper"))},[Q("table",{ref:"tableHeader",class:P(e.ns.e("header")),style:st(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[le(l,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),le(c,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[y,e.handleHeaderFooterMousewheel]]):fe("v-if",!0),Q("div",{ref:"bodyWrapper",style:st(e.bodyHeight),class:P(e.ns.e("body-wrapper"))},[le(p,{ref:"scrollBarRef",height:e.maxHeight?void 0:e.height,"max-height":e.maxHeight?e.height:void 0,"view-style":e.scrollbarViewStyle,always:e.scrollbarAlwaysOn},{default:ae(()=>[Q("table",{ref:"tableBody",class:P(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:st({width:e.bodyWidth,tableLayout:e.tableLayout})},[le(l,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(M(),me(c,{key:0,border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):fe("v-if",!0),le(f,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","row-style","store","stripe"])],6),e.isEmpty?(M(),W("div",{key:0,ref:"emptyBlock",style:st(e.emptyBlockStyle),class:P(e.ns.e("empty-block"))},[Q("span",{class:P(e.ns.e("empty-text"))},[Ie(e.$slots,"empty",{},()=>[Ht(Pe(e.computedEmptyText),1)])],2)],6)):fe("v-if",!0),e.$slots.append?(M(),W("div",{key:1,ref:"appendWrapper",class:P(e.ns.e("append-wrapper"))},[Ie(e.$slots,"append")],2)):fe("v-if",!0)]),_:3},8,["height","max-height","view-style","always"])],6),e.border||e.isGroup?(M(),W("div",{key:1,class:P(e.ns.e("border-left-patch"))},null,2)):fe("v-if",!0)],2),e.showSummary?bt((M(),W("div",{key:0,ref:"footerWrapper",class:P(e.ns.e("footer-wrapper"))},[le(m,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:st(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Zt,!e.isEmpty],[y,e.handleHeaderFooterMousewheel]]):fe("v-if",!0),bt(Q("div",{ref:"resizeProxy",class:P(e.ns.e("column-resize-proxy"))},null,2),[[Zt,e.resizeProxyVisible]])],46,fQ)}var gQ=Ue(dQ,[["render",pQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const mQ={selection:"table-column--selection",expand:"table__expand-column"},vQ={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},yQ=e=>mQ[e]||"",bQ={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return it($r,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:o}){return it($r,{disabled:t.selectable?!t.selectable.call(null,e,o):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:s=>s.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const o=e.index;return typeof o=="number"?n=t+o:typeof o=="function"&&(n=o(t)),it("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:o}=t,s=[o.e("expand-icon")];return n&&s.push(o.em("expand-icon","expanded")),it("div",{class:s,onClick:function(l){l.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[it(yt,null,{default:()=>[it(wr)]})]})},sortable:!1,resizable:!1}};function wQ({row:e,column:t,$index:n}){var o;const s=t.property,i=s&&Ec(e,s).value;return t&&t.formatter?t.formatter(e,t,i,n):((o=i==null?void 0:i.toString)==null?void 0:o.call(i))||""}function CQ({row:e,treeNode:t,store:n},o=!1){const{ns:s}=n;if(!t)return o?[it("span",{class:s.e("placeholder")})]:null;const i=[],l=function(c){c.stopPropagation(),n.loadOrToggle(e)};if(t.indent&&i.push(it("span",{class:s.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const c=[s.e("expand-icon"),t.expanded?s.em("expand-icon","expanded"):""];let f=wr;t.loading&&(f=ti),i.push(it("div",{class:c,onClick:l},{default:()=>[it(yt,{class:{[s.is("loading")]:t.loading}},{default:()=>[it(f)]})]}))}else i.push(it("span",{class:s.e("placeholder")}));return i}function yy(e,t){return e.reduce((n,o)=>(n[o]=o,n),t)}function EQ(e,t){const n=Dt();return{registerComplexWatchers:()=>{const i=["fixed"],l={realWidth:"width",realMinWidth:"minWidth"},c=yy(i,l);Object.keys(c).forEach(f=>{const p=l[f];Bt(t,p)&&Re(()=>t[p],m=>{let y=m;p==="width"&&f==="realWidth"&&(y=t1(m)),p==="minWidth"&&f==="realMinWidth"&&(y=mS(m)),n.columnConfig.value[p]=y,n.columnConfig.value[f]=y;const v=p==="fixed";e.value.store.scheduleLayout(v)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],l={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},c=yy(i,l);Object.keys(c).forEach(f=>{const p=l[f];Bt(t,p)&&Re(()=>t[p],m=>{n.columnConfig.value[f]=m})})}}}function SQ(e,t,n){const o=Dt(),s=F(""),i=F(!1),l=F(),c=F(),f=Be("table");dr(()=>{l.value=e.align?`is-${e.align}`:null,l.value}),dr(()=>{c.value=e.headerAlign?`is-${e.headerAlign}`:l.value,c.value});const p=$(()=>{let N=o.vnode.vParent||o.parent;for(;N&&!N.tableId&&!N.columnId;)N=N.vnode.vParent||N.parent;return N}),m=$(()=>{const{store:N}=o.parent;if(!N)return!1;const{treeData:O}=N.states,D=O.value;return D&&Object.keys(D).length>0}),y=F(t1(e.width)),v=F(mS(e.minWidth)),w=N=>(y.value&&(N.width=y.value),v.value&&(N.minWidth=v.value),N.minWidth||(N.minWidth=80),N.realWidth=Number(N.width===void 0?N.minWidth:N.width),N),E=N=>{const O=N.type,D=bQ[O]||{};Object.keys(D).forEach(R=>{const B=D[R];R!=="className"&&B!==void 0&&(N[R]=B)});const x=yQ(O);if(x){const R=`${k(f.namespace)}-${x}`;N.className=N.className?`${N.className} ${R}`:R}return N},I=N=>{Array.isArray(N)?N.forEach(D=>O(D)):O(N);function O(D){var x;((x=D==null?void 0:D.type)==null?void 0:x.name)==="ElTableColumn"&&(D.vParent=o)}};return{columnId:s,realAlign:l,isSubColumn:i,realHeaderAlign:c,columnOrTableParent:p,setColumnWidth:w,setColumnForcedProps:E,setColumnRenders:N=>{e.renderHeader||N.type!=="selection"&&(N.renderHeader=x=>{o.columnConfig.value.label;const R=t.header;return R?R(x):N.label});let O=N.renderCell;const D=m.value;return N.type==="expand"?(N.renderCell=x=>it("div",{class:"cell"},[O(x)]),n.value.renderExpanded=x=>t.default?t.default(x):t.default):(O=O||wQ,N.renderCell=x=>{let R=null;if(t.default){const K=t.default(x);R=K.some(J=>J.type!==So)?K:O(x)}else R=O(x);const B=D&&x.cellIndex===0,Y=CQ(x,B),X={class:"cell",style:{}};return N.showOverflowTooltip&&(X.class=`${X.class} ${k(f.namespace)}-tooltip`,X.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),I(R),it("div",X,[Y,R])}),N},getPropsData:(...N)=>N.reduce((O,D)=>(Array.isArray(D)&&D.forEach(x=>{O[x]=e[x]}),O),{}),getColumnElIndex:(N,O)=>Array.prototype.indexOf.call(N,O)}}var AQ={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let TQ=1;var SS=ve({name:"ElTableColumn",components:{ElCheckbox:$r},props:AQ,setup(e,{slots:t}){const n=Dt(),o=F({}),s=$(()=>{let _=n.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:i,registerComplexWatchers:l}=EQ(s,e),{columnId:c,isSubColumn:f,realHeaderAlign:p,columnOrTableParent:m,setColumnWidth:y,setColumnForcedProps:v,setColumnRenders:w,getPropsData:E,getColumnElIndex:I,realAlign:S}=SQ(e,t,s),T=m.value;c.value=`${T.tableId||T.columnId}_column_${TQ++}`,Au(()=>{f.value=s.value!==T;const _=e.type||"default",N=e.sortable===""?!0:e.sortable,O=Qe(be({},vQ[_]),{id:c.value,type:_,property:e.prop||e.property,align:S,headerAlign:p,showOverflowTooltip:e.showOverflowTooltip||e.showTooltipWhenOverflow,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:N,index:e.index,rawColumnKey:n.vnode.key});let Y=E(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);Y=_Z(O,Y),Y=NZ(w,y,v)(Y),o.value=Y,i(),l()}),kt(()=>{var _;const N=m.value,O=f.value?N.vnode.el.children:(_=N.refs.hiddenColumns)==null?void 0:_.children,D=()=>I(O||[],n.vnode.el);o.value.getColumnIndex=D,D()>-1&&s.value.store.commit("insertColumn",o.value,f.value?N.columnConfig.value:null)}),gn(()=>{s.value.store.commit("removeColumn",o.value,f.value?T.columnConfig.value:null)}),n.columnId=c.value,n.columnConfig=o},render(){var e,t,n;try{const o=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),s=[];if(Array.isArray(o))for(const l of o)((n=l.type)==null?void 0:n.name)==="ElTableColumn"||l.shapeFlag&2?s.push(l):l.type===at&&Array.isArray(l.children)&&l.children.forEach(c=>{(c==null?void 0:c.patchFlag)!==1024&&!_t(c==null?void 0:c.children)&&s.push(c)});return it("div",s)}catch{return it("div",[])}}});const IQ=$t(gQ,{TableColumn:SS}),_Q=_n(SS),NQ=ct({tabs:{type:Xe(Array),default:()=>In([])}}),kQ={name:"ElTabBar"},xQ=ve(Qe(be({},kQ),{props:NQ,setup(e,{expose:t}){const n=e,o="ElTabBar",s=Dt(),i=et(qd);i||zn(o,"<el-tabs><el-tab-bar /></el-tabs>");const l=Be("tabs"),c=F(),f=F(),p=()=>{let y=0,v=0;const w=["top","bottom"].includes(i.props.tabPosition)?"width":"height",E=w==="width"?"x":"y";return n.tabs.every(I=>{var S,T,_,N;const O=(T=(S=s.parent)==null?void 0:S.refs)==null?void 0:T[`tab-${I.paneName}`];if(!O)return!1;if(!I.active)return!0;v=O[`client${Vo(w)}`];const D=E==="x"?"left":"top";y=O.getBoundingClientRect()[D]-((N=(_=O.parentElement)==null?void 0:_.getBoundingClientRect()[D])!=null?N:0);const x=window.getComputedStyle(O);return w==="width"&&(n.tabs.length>1&&(v-=Number.parseFloat(x.paddingLeft)+Number.parseFloat(x.paddingRight)),y+=Number.parseFloat(x.paddingLeft)),!1}),{[w]:`${v}px`,transform:`translate${Vo(E)}(${y}px)`}},m=()=>f.value=p();return Re(()=>n.tabs,async()=>{await dt(),m()},{immediate:!0}),nl(c,()=>m()),t({ref:c,update:m}),(y,v)=>(M(),W("div",{ref_key:"barRef",ref:c,class:P([k(l).e("active-bar"),k(l).is(k(i).props.tabPosition)]),style:st(f.value)},null,6))}}));var MQ=Ue(xQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const OQ=ct({panes:{type:Xe(Array),default:()=>In([])},currentName:{type:[String,Number],default:""},editable:Boolean,onTabClick:{type:Xe(Function),default:on},onTabRemove:{type:Xe(Function),default:on},type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),by="ElTabNav",DQ=ve({name:by,props:OQ,setup(e,{expose:t}){const n=et(qd);n||zn(by,"<el-tabs><tab-nav /></el-tabs>");const o=Be("tabs"),s=ID(),i=xD(),l=F(),c=F(),f=F(),p=F(!1),m=F(0),y=F(!1),v=F(!0),w=$(()=>["top","bottom"].includes(n.props.tabPosition)?"width":"height"),E=$(()=>({transform:`translate${w.value==="width"?"X":"Y"}(-${m.value}px)`})),I=()=>{if(!l.value)return;const x=l.value[`offset${Vo(w.value)}`],R=m.value;if(!R)return;const B=R>x?R-x:0;m.value=B},S=()=>{if(!l.value||!c.value)return;const x=c.value[`offset${Vo(w.value)}`],R=l.value[`offset${Vo(w.value)}`],B=m.value;if(x-B<=R)return;const Y=x-B>R*2?B+R:x-R;m.value=Y},T=()=>{const x=c.value;if(!p.value||!f.value||!l.value||!x)return;const R=f.value.querySelector(".is-active");if(!R)return;const B=l.value,Y=["top","bottom"].includes(n.props.tabPosition),X=R.getBoundingClientRect(),K=B.getBoundingClientRect(),J=Y?x.offsetWidth-K.width:x.offsetHeight-K.height,G=m.value;let z=G;Y?(X.left<K.left&&(z=G-(K.left-X.left)),X.right>K.right&&(z=G+X.right-K.right)):(X.top<K.top&&(z=G-(K.top-X.top)),X.bottom>K.bottom&&(z=G+(X.bottom-K.bottom))),z=Math.max(z,0),m.value=Math.min(z,J)},_=()=>{if(!c.value||!l.value)return;const x=c.value[`offset${Vo(w.value)}`],R=l.value[`offset${Vo(w.value)}`],B=m.value;if(R<x){const Y=m.value;p.value=p.value||{},p.value.prev=Y,p.value.next=Y+R<x,x-Y<R&&(m.value=x-R)}else p.value=!1,B>0&&(m.value=0)},N=x=>{const R=x.code,{up:B,down:Y,left:X,right:K}=rt;if(![B,Y,X,K].includes(R))return;const J=Array.from(x.currentTarget.querySelectorAll("[role=tab]")),G=J.indexOf(x.target);let z;R===X||R===B?G===0?z=J.length-1:z=G-1:G<J.length-1?z=G+1:z=0,J[z].focus(),J[z].click(),O()},O=()=>{v.value&&(y.value=!0)},D=()=>y.value=!1;return Re(s,x=>{x==="hidden"?v.value=!1:x==="visible"&&setTimeout(()=>v.value=!0,50)}),Re(i,x=>{x?setTimeout(()=>v.value=!0,50):v.value=!1}),nl(f,_),kt(()=>setTimeout(()=>T(),0)),br(()=>_()),t({scrollToActiveTab:T,removeFocus:D}),()=>{const x=p.value?[le("span",{class:[o.e("nav-prev"),o.is("disabled",!p.value.prev)],onClick:I},[le(yt,null,{default:()=>[le(Ji,null,null)]})]),le("span",{class:[o.e("nav-next"),o.is("disabled",!p.value.next)],onClick:S},[le(yt,null,{default:()=>[le(wr,null,null)]})])]:null,R=e.panes.map((B,Y)=>{var X,K;const J=B.props.name||B.index||`${Y}`,G=B.isClosable||e.editable;B.index=`${Y}`;const z=G?le(yt,{class:"is-icon-close",onClick:V=>e.onTabRemove(B,V)},{default:()=>[le(gr,null,null)]}):null,ee=((K=(X=B.instance.slots).label)==null?void 0:K.call(X))||B.props.label,j=B.active?0:-1;return le("div",{ref:`tab-${J}`,class:[o.e("item"),o.is(n.props.tabPosition),o.is("active",B.active),o.is("disabled",B.props.disabled),o.is("closable",G),o.is("focus",y.value)],id:`tab-${J}`,key:`tab-${J}`,"aria-controls":`pane-${J}`,role:"tab","aria-selected":B.active,tabindex:j,onFocus:()=>O(),onBlur:()=>D(),onClick:V=>{D(),e.onTabClick(B,J,V)},onKeydown:V=>{G&&(V.code===rt.delete||V.code===rt.backspace)&&e.onTabRemove(B,V)}},[ee,z])});return le("div",{ref:f,class:[o.e("nav-wrap"),o.is("scrollable",!!p.value),o.is(n.props.tabPosition)]},[x,le("div",{class:o.e("nav-scroll"),ref:l},[le("div",{class:[o.e("nav"),o.is(n.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(n.props.tabPosition))],ref:c,style:E.value,role:"tablist",onKeydown:N},[e.type?null:le(MQ,{tabs:[...e.panes]},null),R])])])}}}),$Q=ct({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number],default:""},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Xe(Function),default:()=>!0},stretch:Boolean}),lc=e=>_t(e)||Qt(e),RQ={[Ot]:e=>lc(e),[qs]:e=>lc(e),"tab-click":(e,t)=>t instanceof Event,"tab-change":e=>lc(e),edit:(e,t)=>["remove","add"].includes(t),"tab-remove":e=>lc(e),"tab-add":()=>!0},AS=(e,t=[])=>{const n=e.children||[];return Array.from(n).forEach(o=>{let s=o.type;s=s.name||s,s==="ElTabPane"&&o.component?t.push(o.component):(s===at||s==="template")&&AS(o,t)}),t};var LQ=ve({name:"ElTabs",props:$Q,emits:RQ,setup(e,{emit:t,slots:n,expose:o}){const s=Dt();Ou({scope:"el-tabs",type:"Event",from:"input",replacement:"tab-change",version:"2.5.0",ref:"https://element-plus.org/en-US/component/tabs.html#tabs-events"},$(()=>{var S;return It((S=s.vnode.props)==null?void 0:S.onInput)}));const i=Be("tabs"),l=F(),c=F([]),f=F(e.modelValue||e.activeName||"0"),p={},m=(S=!1)=>{if(n.default){const T=s.subTree.children,_=Array.from(T).find(({props:D})=>(D==null?void 0:D.class)===i.e("content"));if(!_)return;const N=AS(_).map(D=>p[D.uid]),O=!(N.length===c.value.length&&N.every((D,x)=>D.uid===c.value[x].uid));(S||O)&&(c.value=N)}else c.value.length!==0&&(c.value=[])},y=S=>{f.value=S,t(qs,S),t(Ot,S),t("tab-change",S)},v=S=>{var T;if(f.value===S)return;const _=(T=e.beforeLeave)==null?void 0:T.call(e,S,f.value);Hi(_)?_.then(()=>{var N,O;y(S),(O=(N=l.value)==null?void 0:N.removeFocus)==null||O.call(N)},on):_!==!1&&y(S)},w=(S,T,_)=>{S.props.disabled||(v(T),t("tab-click",S,_))},E=(S,T)=>{S.props.disabled||(T.stopPropagation(),t("edit",S.props.name,"remove"),t("tab-remove",S.props.name))},I=()=>{t("edit",void 0,"add"),t("tab-add")};return br(()=>m()),kt(()=>m()),Re(()=>e.activeName,S=>v(S)),Re(()=>e.modelValue,S=>v(S)),Re(f,async()=>{var S,T;m(!0),await dt(),await((S=l.value)==null?void 0:S.$nextTick()),(T=l.value)==null||T.scrollToActiveTab()}),Pt(qd,{props:e,currentName:f,updatePaneState:S=>p[S.uid]=S}),o({currentName:f}),()=>{const S=e.editable||e.addable?le("span",{class:i.e("new-tab"),tabindex:"0",onClick:I,onKeydown:N=>{N.code===rt.enter&&I()}},[le(yt,{class:i.is("icon-plus")},{default:()=>[le(Ow,null,null)]})]):null,T=le("div",{class:[i.e("header"),i.is(e.tabPosition)]},[S,le(DQ,{ref:l,currentName:f.value,editable:e.editable,type:e.type,panes:c.value,stretch:e.stretch,onTabClick:w,onTabRemove:E},null)]),_=le("div",{class:i.e("content")},[Ie(n,"default")]);return le("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[T,_]:[_,T]])}}});const PQ=ct({label:{type:String,default:""},name:{type:[String,Number],default:""},closable:Boolean,disabled:Boolean,lazy:Boolean}),BQ=["id","aria-hidden","aria-labelledby"],FQ={name:"ElTabPane"},VQ=ve(Qe(be({},FQ),{props:PQ,setup(e){const t=e,n="ElTabPane",o=Dt(),s=et(qd);s||zn(n,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Be("tab-pane"),l=F(),c=$(()=>t.closable||s.props.closable),f=Km(()=>s.currentName.value===(t.name||l.value)),p=F(f.value),m=$(()=>t.name||l.value),y=Km(()=>!t.lazy||p.value||f.value);return Re(f,v=>{v&&(p.value=!0)}),s.updatePaneState(nn({uid:o.uid,instance:Ql(o),props:t,paneName:m,active:f,index:l,isClosable:c})),(v,w)=>k(y)?bt((M(),W("div",{key:0,id:`pane-${k(m)}`,class:P(k(i).b()),role:"tabpanel","aria-hidden":!k(f),"aria-labelledby":`tab-${k(m)}`},[Ie(v.$slots,"default")],10,BQ)),[[Zt,k(f)]]):fe("v-if",!0)}}));var TS=Ue(VQ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const HQ=$t(LQ,{TabPane:TS}),zQ=_n(TS);St.extend(F0);const{Option:UQ}=ji,as=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const o=Number.parseInt(t[1],10),s=e.toUpperCase();return s.includes("AM")&&n===12?n=0:s.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:o}}return null},uh=(e,t)=>{const n=as(e),o=as(t),s=n.minutes+n.hours*60,i=o.minutes+o.hours*60;return s===i?0:s>i?1:-1},wy=e=>`${e}`.padStart(2,"0"),wa=e=>`${wy(e.hours)}:${wy(e.minutes)}`,WQ=(e,t)=>{const n=as(e),o=as(t),s={hours:n.hours,minutes:n.minutes};return s.minutes+=o.minutes,s.hours+=o.hours,s.hours+=Math.floor(s.minutes/60),s.minutes=s.minutes%60,wa(s)},jQ=ve({name:"ElTimeSelect",components:{ElSelect:ji,ElOption:UQ,ElIcon:yt},model:{prop:"value",event:"change"},props:{format:{type:String,default:"HH:mm"},modelValue:String,disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:{type:String,values:ts,default:""},placeholder:{type:String,default:""},start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:{type:String,default:""},maxTime:{type:String,default:""},name:{type:String,default:""},prefixIcon:{type:[String,Object],default:Mw},clearIcon:{type:[String,Object],default:gs}},emits:["change","blur","focus","update:modelValue"],setup(e){const t=Be("input"),n=F(null),o=$(()=>e.modelValue),s=$(()=>{const v=as(e.start);return wa(v)}),i=$(()=>{const v=as(e.end);return wa(v)}),l=$(()=>{const v=as(e.step);return wa(v)}),c=$(()=>{const v=as(e.minTime);return v?wa(v):null}),f=$(()=>{const v=as(e.maxTime);return v?wa(v):null}),p=$(()=>{const v=[];if(e.start&&e.end&&e.step){let w=s.value,E;for(;uh(w,i.value)<=0;)E=St(w,"HH:mm").format(e.format),v.push({value:E,disabled:uh(w,c.value||"-1:-1")<=0||uh(w,f.value||"100:100")>=0}),w=WQ(w,l.value)}return v});return{nsInput:t,select:n,value:o,items:p,blur:()=>{var v,w;(w=(v=n.value)==null?void 0:v.blur)==null||w.call(v)},focus:()=>{var v,w;(w=(v=n.value)==null?void 0:v.focus)==null||w.call(v)}}}});function KQ(e,t,n,o,s,i){const l=Ae("el-option"),c=Ae("el-icon"),f=Ae("el-select");return M(),me(f,{ref:"select","model-value":e.value,disabled:e.disabled,clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"onUpdate:modelValue":t[0]||(t[0]=p=>e.$emit("update:modelValue",p)),onChange:t[1]||(t[1]=p=>e.$emit("change",p)),onBlur:t[2]||(t[2]=p=>e.$emit("blur",p)),onFocus:t[3]||(t[3]=p=>e.$emit("focus",p))},{prefix:ae(()=>[e.prefixIcon?(M(),me(c,{key:0,class:P(e.nsInput.e("prefix-icon"))},{default:ae(()=>[(M(),me(Xt(e.prefixIcon)))]),_:1},8,["class"])):fe("v-if",!0)]),default:ae(()=>[(M(!0),W(at,null,zt(e.items,p=>(M(),me(l,{key:p.value,label:p.value,value:p.value,disabled:p.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"])}var Vc=Ue(jQ,[["render",KQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);Vc.install=e=>{e.component(Vc.name,Vc)};const YQ=Vc,GQ=YQ,XQ=ve({name:"ElTimeline",setup(e,{slots:t}){const n=Be("timeline");return Pt("timeline",t),()=>it("ul",{class:[n.b()]},[Ie(t,"default")])}}),qQ=ct({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:{type:String,default:""},color:{type:String,default:""},size:{type:String,default:"normal"},icon:{type:uo,default:""},hollow:{type:Boolean,default:!1}}),ZQ=ve({name:"ElTimelineItem",components:{ElIcon:yt},props:qQ,setup(){return{ns:Be("timeline-item")}}});function QQ(e,t,n,o,s,i){const l=Ae("el-icon");return M(),W("li",{class:P([e.ns.b(),{[e.ns.e("center")]:e.center}])},[Q("div",{class:P(e.ns.e("tail"))},null,2),e.$slots.dot?fe("v-if",!0):(M(),W("div",{key:0,class:P([e.ns.e("node"),e.ns.em("node",e.size||""),e.ns.em("node",e.type||""),e.ns.is("hollow",e.hollow)]),style:st({backgroundColor:e.color})},[e.icon?(M(),me(l,{key:0,class:P(e.ns.e("icon"))},{default:ae(()=>[(M(),me(Xt(e.icon)))]),_:1},8,["class"])):fe("v-if",!0)],6)),e.$slots.dot?(M(),W("div",{key:1,class:P(e.ns.e("dot"))},[Ie(e.$slots,"dot")],2)):fe("v-if",!0),Q("div",{class:P(e.ns.e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(M(),W("div",{key:0,class:P([e.ns.e("timestamp"),e.ns.is("top")])},Pe(e.timestamp),3)):fe("v-if",!0),Q("div",{class:P(e.ns.e("content"))},[Ie(e.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(M(),W("div",{key:1,class:P([e.ns.e("timestamp"),e.ns.is("bottom")])},Pe(e.timestamp),3)):fe("v-if",!0)],2)],2)}var IS=Ue(ZQ,[["render",QQ],["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const JQ=$t(XQ,{TimelineItem:IS}),eJ=_n(IS),_S=ct({nowrap:Boolean});var NS=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(NS||{});const tJ=Object.values(NS),s1=ct({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:Xe(Object),default:null}}),nJ=ct({side:{type:Xe(String),values:tJ,required:!0}}),oJ=["absolute","fixed"],rJ=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],i1=ct({ariaLabel:String,arrowPadding:{type:Xe(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:Xe(String),values:rJ,default:"bottom"},reference:{type:Xe(Object),default:null},offset:{type:Number,default:8},strategy:{type:Xe(String),values:oJ,default:"absolute"},showArrow:{type:Boolean,default:!1}}),a1=ct({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:Xe(Function)},"onUpdate:open":{type:Xe(Function)}}),ma={type:Xe(Function)},l1=ct({onBlur:ma,onClick:ma,onFocus:ma,onMouseDown:ma,onMouseEnter:ma,onMouseLeave:ma}),sJ=ct(Qe(be(be(be(be({},a1),s1),l1),i1),{alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:Xe(Object),default:null},teleported:Boolean,to:{type:Xe(String),default:"body"}})),iJ={name:"ElTooltipV2Root"},aJ=ve(Qe(be({},iJ),{props:a1,setup(e,{expose:t}){const n=e,o=F(n.defaultOpen),s=F(null),i=$({get:()=>RD(n.open)?o.value:n.open,set:S=>{var T;o.value=S,(T=n["onUpdate:open"])==null||T.call(n,S)}}),l=$(()=>Qt(n.delayDuration)&&n.delayDuration>0),{start:c,stop:f}=Ui(()=>{i.value=!0},$(()=>n.delayDuration),{immediate:!1}),p=Be("tooltip-v2"),m=R0(),y=()=>{f(),i.value=!0},v=()=>{k(l)?c():y()},w=y,E=()=>{f(),i.value=!1};return Re(i,S=>{var T;S&&(document.dispatchEvent(new CustomEvent(Uf)),w()),(T=n.onOpenChange)==null||T.call(n,S)}),kt(()=>{document.addEventListener(Uf,E)}),gn(()=>{f(),document.removeEventListener(Uf,E)}),Pt(Zd,{contentId:m,triggerRef:s,ns:p,onClose:E,onDelayOpen:v,onOpen:w}),t({onOpen:w,onClose:E}),(S,T)=>Ie(S.$slots,"default",{open:k(i)})}}));var lJ=Ue(aJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const uJ={name:"ElTooltipV2Arrow"},cJ=ve(Qe(be({},uJ),{props:be(be({},s1),nJ),setup(e){const t=e,{ns:n}=et(Zd),{arrowRef:o}=et(eC),s=$(()=>{const{style:i,width:l,height:c}=t,f=n.namespace.value;return be({[`--${f}-tooltip-v2-arrow-width`]:`${l}px`,[`--${f}-tooltip-v2-arrow-height`]:`${c}px`,[`--${f}-tooltip-v2-arrow-border-width`]:`${l/2}px`,[`--${f}-tooltip-v2-arrow-cover-width`]:l/2-1},i||{})});return(i,l)=>(M(),W("span",{ref_key:"arrowRef",ref:o,style:st(k(s)),class:P(k(n).e("arrow"))},null,6))}}));var Cy=Ue(cJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const dJ=["data-side"],fJ={name:"ElTooltipV2Content"},hJ=ve(Qe(be({},fJ),{props:be(be({},i1),_S),setup(e){const t=e,{triggerRef:n,contentId:o}=et(Zd),s=F(t.placement),i=F(t.strategy),l=F(null),{referenceRef:c,contentRef:f,middlewareData:p,x:m,y,update:v}=jP({placement:s,strategy:i,middleware:$(()=>{const N=[BP(t.offset)];return t.showArrow&&N.push(KP({arrowRef:l})),N})}),w=ws().nextZIndex(),E=Be("tooltip-v2"),I=$(()=>s.value.split("-")[0]),S=$(()=>({position:k(i),top:`${k(y)||0}px`,left:`${k(m)||0}px`,zIndex:w})),T=$(()=>{if(!t.showArrow)return{};const{arrow:N}=k(p);return{[`--${E.namespace.value}-tooltip-v2-arrow-x`]:`${N==null?void 0:N.x}px`||"",[`--${E.namespace.value}-tooltip-v2-arrow-y`]:`${N==null?void 0:N.y}px`||""}}),_=$(()=>[E.e("content"),E.is("dark",t.effect==="dark"),E.is(k(i)),t.contentClass]);return Re(l,()=>v()),Re(()=>t.placement,N=>s.value=N),kt(()=>{Re(()=>t.reference||n.value,N=>{c.value=N||void 0},{immediate:!0})}),Pt(eC,{arrowRef:l}),(N,O)=>(M(),W("div",{ref_key:"contentRef",ref:f,style:st(k(S)),"data-tooltip-v2-root":""},[N.nowrap?fe("v-if",!0):(M(),W("div",{key:0,"data-side":k(I),class:P(k(_))},[Ie(N.$slots,"default",{contentStyle:k(S),contentClass:k(_)}),le(k(AC),{id:k(o),role:"tooltip"},{default:ae(()=>[N.ariaLabel?(M(),W(at,{key:0},[Ht(Pe(N.ariaLabel),1)],2112)):Ie(N.$slots,"default",{key:1})]),_:3},8,["id"]),Ie(N.$slots,"arrow",{style:st(k(T)),side:k(I)})],10,dJ))],4))}}));var Ey=Ue(hJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const pJ=ct({setRef:{type:Xe(Function),required:!0},onlyChild:Boolean});var gJ=ve({props:pJ,setup(e,{slots:t}){const n=F(),o=x0(n,s=>{s?e.setRef(s.nextElementSibling):e.setRef(null)});return()=>{var s;const[i]=((s=t.default)==null?void 0:s.call(t))||[],l=e.onlyChild?oP(i.children):i.children;return le(at,{ref:o},[l])}}});const mJ={name:"ElTooltipV2Trigger"},vJ=ve(Qe(be({},mJ),{props:be(be({},_S),l1),setup(e){const t=e,{onClose:n,onOpen:o,onDelayOpen:s,triggerRef:i,contentId:l}=et(Zd);let c=!1;const f=_=>{i.value=_},p=()=>{c=!1},m=Tn(t.onMouseEnter,s),y=Tn(t.onMouseLeave,n),v=Tn(t.onMouseDown,()=>{n(),c=!0,document.addEventListener("mouseup",p,{once:!0})}),w=Tn(t.onFocus,()=>{c||o()}),E=Tn(t.onBlur,n),I=Tn(t.onClick,_=>{_.detail===0&&n()}),S={blur:E,click:I,focus:w,mousedown:v,mouseenter:m,mouseleave:y},T=(_,N,O)=>{_&&Object.entries(N).forEach(([D,x])=>{_[O](D,x)})};return Re(i,(_,N)=>{T(_,S,"addEventListener"),T(N,S,"removeEventListener"),_&&_.setAttribute("aria-describedby",l.value)}),gn(()=>{T(i.value,S,"removeEventListener"),document.removeEventListener("mouseup",p)}),(_,N)=>_.nowrap?(M(),me(k(gJ),{key:0,"set-ref":f,"only-child":""},{default:ae(()=>[Ie(_.$slots,"default")]),_:3})):(M(),W("button",pn({key:1,ref_key:"triggerRef",ref:i},_.$attrs),[Ie(_.$slots,"default")],16))}}));var yJ=Ue(vJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const bJ={name:"ElTooltipV2"},wJ=ve(Qe(be({},bJ),{props:sJ,setup(e){const n=Yn(e),o=nn(Fs(n,Object.keys(s1))),s=nn(Fs(n,Object.keys(i1))),i=nn(Fs(n,Object.keys(a1))),l=nn(Fs(n,Object.keys(l1)));return(c,f)=>(M(),me(lJ,Nr(Ys(k(i))),{default:ae(({open:p})=>[le(yJ,pn(k(l),{nowrap:""}),{default:ae(()=>[Ie(c.$slots,"trigger")]),_:3},16),(M(),me(Iu,{to:c.to,disabled:!c.teleported},[c.fullTransition?(M(),me($n,Nr(pn({key:0},c.transitionProps)),{default:ae(()=>[c.alwaysOn||p?(M(),me(Ey,Nr(pn({key:0},k(s))),{arrow:ae(({style:m,side:y})=>[c.showArrow?(M(),me(Cy,pn({key:0},k(o),{style:m,side:y}),null,16,["style","side"])):fe("v-if",!0)]),default:ae(()=>[Ie(c.$slots,"default")]),_:3},16)):fe("v-if",!0)]),_:2},1040)):(M(),W(at,{key:1},[c.alwaysOn||p?(M(),me(Ey,Nr(pn({key:0},k(s))),{arrow:ae(({style:m,side:y})=>[c.showArrow?(M(),me(Cy,pn({key:0},k(o),{style:m,side:y}),null,16,["style","side"])):fe("v-if",!0)]),default:ae(()=>[Ie(c.$slots,"default")]),_:3},16)):fe("v-if",!0)],2112))],8,["to","disabled"]))]),_:3},16))}}));var CJ=Ue(wJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const EJ=$t(CJ),bp="checked-change",SJ={data:{type:Array,default(){return[]}},optionRender:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},AJ=(e,t)=>{const{emit:n}=Dt(),o=$(()=>e.props.label||"label"),s=$(()=>e.props.key||"key"),i=$(()=>e.props.disabled||"disabled"),l=$(()=>e.data.filter(v=>typeof e.filterMethod=="function"?e.filterMethod(t.query,v):(v[o.value]||v[s.value].toString()).toLowerCase().includes(t.query.toLowerCase()))),c=$(()=>l.value.filter(v=>!v[i.value])),f=$(()=>{const v=t.checked.length,w=e.data.length,{noChecked:E,hasChecked:I}=e.format;return E&&I?v>0?I.replace(/\${checked}/g,v.toString()).replace(/\${total}/g,w.toString()):E.replace(/\${total}/g,w.toString()):`${v}/${w}`}),p=$(()=>{const v=t.checked.length;return v>0&&v<c.value.length}),m=()=>{const v=c.value.map(w=>w[s.value]);t.allChecked=v.length>0&&v.every(w=>t.checked.includes(w))},y=v=>{t.checked=v?c.value.map(w=>w[s.value]):[]};return Re(()=>t.checked,(v,w)=>{if(m(),t.checkChangeByUser){const E=v.concat(w).filter(I=>!v.includes(I)||!w.includes(I));n(bp,v,E)}else n(bp,v),t.checkChangeByUser=!0}),Re(c,()=>{m()}),Re(()=>e.data,()=>{const v=[],w=l.value.map(E=>E[s.value]);t.checked.forEach(E=>{w.includes(E)&&v.push(E)}),t.checkChangeByUser=!1,t.checked=v}),Re(()=>e.defaultChecked,(v,w)=>{if(w&&v.length===w.length&&v.every(S=>w.includes(S)))return;const E=[],I=c.value.map(S=>S[s.value]);v.forEach(S=>{I.includes(S)&&E.push(S)}),t.checkChangeByUser=!1,t.checked=E},{immediate:!0}),{labelProp:o,keyProp:s,disabledProp:i,filteredData:l,checkableData:c,checkedSummary:f,isIndeterminate:p,updateAllChecked:m,handleAllCheckedChange:y}},TJ=ve({name:"ElTransferPanel",components:{ElCheckboxGroup:nE,ElCheckbox:$r,ElInput:Cr,OptionContent:({option:e})=>e},props:SJ,emits:[bp],setup(e,{slots:t}){const{t:n}=un(),o=Be("transfer"),s=nn({checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}),{labelProp:i,keyProp:l,disabledProp:c,filteredData:f,checkedSummary:p,isIndeterminate:m,handleAllCheckedChange:y}=AJ(e,s),v=$(()=>s.query.length>0&&f.value.length===0),w=$(()=>!!t.default()[0].children.length),{checked:E,allChecked:I,query:S,inputHover:T,checkChangeByUser:_}=Yn(s);return{ns:o,labelProp:i,keyProp:l,disabledProp:c,filteredData:f,checkedSummary:p,isIndeterminate:m,handleAllCheckedChange:y,checked:E,allChecked:I,query:S,inputHover:T,checkChangeByUser:_,hasNoMatch:v,SearchIcon:dL,hasFooter:w,t:n}}});function IJ(e,t,n,o,s,i){const l=Ae("el-checkbox"),c=Ae("el-input"),f=Ae("option-content"),p=Ae("el-checkbox-group");return M(),W("div",{class:P(e.ns.b("panel"))},[Q("p",{class:P(e.ns.be("panel","header"))},[le(l,{modelValue:e.allChecked,"onUpdate:modelValue":t[0]||(t[0]=m=>e.allChecked=m),indeterminate:e.isIndeterminate,onChange:e.handleAllCheckedChange},{default:ae(()=>[Ht(Pe(e.title)+" ",1),Q("span",null,Pe(e.checkedSummary),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),Q("div",{class:P([e.ns.be("panel","body"),e.ns.is("with-footer",e.hasFooter)])},[e.filterable?(M(),me(c,{key:0,modelValue:e.query,"onUpdate:modelValue":t[1]||(t[1]=m=>e.query=m),class:P(e.ns.be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":e.SearchIcon,clearable:"",onMouseenter:t[2]||(t[2]=m=>e.inputHover=!0),onMouseleave:t[3]||(t[3]=m=>e.inputHover=!1)},null,8,["modelValue","class","placeholder","prefix-icon"])):fe("v-if",!0),bt(le(p,{modelValue:e.checked,"onUpdate:modelValue":t[4]||(t[4]=m=>e.checked=m),class:P([e.ns.is("filterable",e.filterable),e.ns.be("panel","list")])},{default:ae(()=>[(M(!0),W(at,null,zt(e.filteredData,m=>(M(),me(l,{key:m[e.keyProp],class:P(e.ns.be("panel","item")),label:m[e.keyProp],disabled:m[e.disabledProp]},{default:ae(()=>[le(f,{option:e.optionRender(m)},null,8,["option"])]),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Zt,!e.hasNoMatch&&e.data.length>0]]),bt(Q("p",{class:P(e.ns.be("panel","empty"))},Pe(e.hasNoMatch?e.t("el.transfer.noMatch"):e.t("el.transfer.noData")),3),[[Zt,e.hasNoMatch||e.data.length===0]])],2),e.hasFooter?(M(),W("p",{key:0,class:P(e.ns.be("panel","footer"))},[Ie(e.$slots,"default")],2)):fe("v-if",!0)],2)}var _J=Ue(TJ,[["render",IJ],["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const NJ=e=>{const t=$(()=>e.props.key),n=$(()=>e.data.reduce((i,l)=>(i[l[t.value]]=l)&&i,{})),o=$(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value]))),s=$(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value])):e.modelValue.reduce((i,l)=>{const c=n.value[l];return c&&i.push(c),i},[]));return{propsKey:t,sourceData:o,targetData:s}},kS="left-check-change",xS="right-check-change",kJ=(e,t)=>({onSourceCheckedChange:(s,i)=>{e.leftChecked=s,i!==void 0&&t(kS,s,i)},onTargetCheckedChange:(s,i)=>{e.rightChecked=s,i!==void 0&&t(xS,s,i)}}),xJ=(e,t,n,o)=>{const s=(c,f,p)=>{o(Ot,c),o(Gn,c,f,p)};return{addToLeft:()=>{const c=e.modelValue.slice();t.rightChecked.forEach(f=>{const p=c.indexOf(f);p>-1&&c.splice(p,1)}),s(c,"left",t.rightChecked)},addToRight:()=>{let c=e.modelValue.slice();const f=e.data.filter(p=>{const m=p[n.value];return t.leftChecked.includes(m)&&!e.modelValue.includes(m)}).map(p=>p[n.value]);c=e.targetOrder==="unshift"?f.concat(c):c.concat(f),e.targetOrder==="original"&&(c=e.data.filter(p=>c.includes(p[n.value])).map(p=>p[n.value])),s(c,"right",t.leftChecked)}}},MJ=ve({name:"ElTransfer",components:{TransferPanel:_J,ElButton:fr,ElIcon:yt,ArrowLeft:Ji,ArrowRight:wr},props:{data:{type:Array,default:()=>[]},titles:{type:Array,default:()=>[]},buttonTexts:{type:Array,default:()=>[]},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:()=>[]},rightDefaultChecked:{type:Array,default:()=>[]},renderContent:Function,modelValue:{type:Array,default:()=>[]},format:{type:Object,default:()=>({})},filterable:{type:Boolean,default:!1},props:{type:Object,default:()=>({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,default:"original",validator:e=>["original","push","unshift"].includes(e)}},emits:[Ot,Gn,kS,xS],setup(e,{emit:t,slots:n}){const{t:o}=un(),s=Be("transfer"),i=et(mr,{}),l=nn({leftChecked:[],rightChecked:[]}),{propsKey:c,sourceData:f,targetData:p}=NJ(e),{onSourceCheckedChange:m,onTargetCheckedChange:y}=kJ(l,t),{addToLeft:v,addToRight:w}=xJ(e,l,c,t),E=F(),I=F(),S=x=>{switch(x){case"left":E.value.query="";break;case"right":I.value.query="";break}},T=$(()=>e.buttonTexts.length===2),_=$(()=>e.titles[0]||o("el.transfer.titles.0")),N=$(()=>e.titles[1]||o("el.transfer.titles.1")),O=$(()=>e.filterPlaceholder||o("el.transfer.filterPlaceholder"));Re(()=>e.modelValue,()=>{var x;(x=i.validate)==null||x.call(i,"change").catch(R=>void 0)});const D=$(()=>x=>e.renderContent?e.renderContent(it,x):n.default?n.default({option:x}):it("span",x[e.props.label]||x[e.props.key]));return Qe(be({ns:s,sourceData:f,targetData:p,onSourceCheckedChange:m,onTargetCheckedChange:y,addToLeft:v,addToRight:w},Yn(l)),{hasButtonTexts:T,leftPanelTitle:_,rightPanelTitle:N,panelFilterPlaceholder:O,clearQuery:S,leftPanel:E,rightPanel:I,optionRender:D})}}),OJ={key:0},DJ={key:0};function $J(e,t,n,o,s,i){const l=Ae("transfer-panel"),c=Ae("arrow-left"),f=Ae("el-icon"),p=Ae("el-button"),m=Ae("arrow-right");return M(),W("div",{class:P(e.ns.b())},[le(l,{ref:"leftPanel",data:e.sourceData,"option-render":e.optionRender,placeholder:e.panelFilterPlaceholder,title:e.leftPanelTitle,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:e.props,onCheckedChange:e.onSourceCheckedChange},{default:ae(()=>[Ie(e.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),Q("div",{class:P(e.ns.e("buttons"))},[le(p,{type:"primary",class:P([e.ns.e("button"),e.ns.is("with-texts",e.hasButtonTexts)]),disabled:e.rightChecked.length===0,onClick:e.addToLeft},{default:ae(()=>[le(f,null,{default:ae(()=>[le(c)]),_:1}),e.buttonTexts[0]!==void 0?(M(),W("span",OJ,Pe(e.buttonTexts[0]),1)):fe("v-if",!0)]),_:1},8,["class","disabled","onClick"]),le(p,{type:"primary",class:P([e.ns.e("button"),e.ns.is("with-texts",e.hasButtonTexts)]),disabled:e.leftChecked.length===0,onClick:e.addToRight},{default:ae(()=>[e.buttonTexts[1]!==void 0?(M(),W("span",DJ,Pe(e.buttonTexts[1]),1)):fe("v-if",!0),le(f,null,{default:ae(()=>[le(m)]),_:1})]),_:1},8,["class","disabled","onClick"])],2),le(l,{ref:"rightPanel",data:e.targetData,"option-render":e.optionRender,placeholder:e.panelFilterPlaceholder,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:e.rightPanelTitle,"default-checked":e.rightDefaultChecked,props:e.props,onCheckedChange:e.onTargetCheckedChange},{default:ae(()=>[Ie(e.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2)}var Hc=Ue(MJ,[["render",$J],["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/index.vue"]]);Hc.install=e=>{e.component(Hc.name,Hc)};const RJ=Hc,LJ=RJ,Oa="$treeNodeId",Sy=function(e,t){!t||t[Oa]||Object.defineProperty(t,Oa,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},u1=function(e,t){return e?t[e]:t[Oa]},wp=e=>{let t=!0,n=!0,o=!0;for(let s=0,i=e.length;s<i;s++){const l=e[s];(l.checked!==!0||l.indeterminate)&&(t=!1,l.disabled||(o=!1)),(l.checked!==!1||l.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:o,half:!t&&!n}},zc=function(e){if(e.childNodes.length===0)return;const{all:t,none:n,half:o}=wp(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):o?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const s=e.parent;!s||s.level===0||e.store.checkStrictly||zc(s)},uc=function(e,t){const n=e.store.props,o=e.data||{},s=n[t];if(typeof s=="function")return s(o,e);if(typeof s=="string")return o[s];if(typeof s=="undefined"){const i=o[t];return i===void 0?"":i}};let PJ=0;class Pi{constructor(t){this.id=PJ++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Bt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf!="undefined"){const i=uc(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||Sy(this,this.data),!this.data)return;const o=t.defaultExpandedKeys,s=t.key;s&&o&&o.includes(this.key)&&this.expand(null,t.autoExpandParent),s&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||Sy(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=uc(this,"children")||[];for(let o=0,s=n.length;o<s;o++)this.insertChild({data:n[o]})}get label(){return uc(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return uc(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(o=>o===t||n&&o.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,o){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Pi)){if(!o){const s=this.getChildren(!0);s.includes(t.data)||(typeof n=="undefined"||n<0?s.push(t.data):s.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=nn(new Pi(t)),t instanceof Pi&&t.initialize()}t.level=this.level+1,typeof n=="undefined"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let o;n&&(o=this.childNodes.indexOf(n)),this.insertChild(t,o)}insertAfter(t,n){let o;n&&(o=this.childNodes.indexOf(n),o!==-1&&(o+=1)),this.insertChild(t,o)}removeChild(t){const n=this.getChildren()||[],o=n.indexOf(t.data);o>-1&&n.splice(o,1);const s=this.childNodes.indexOf(t);s>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(s,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let o=0;o<this.childNodes.length;o++)if(this.childNodes[o].data===t){n=this.childNodes[o];break}n&&this.removeChild(n)}expand(t,n){const o=()=>{if(n){let s=this.parent;for(;s.level>0;)s.expanded=!0,s=s.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(s=>{s.canFocus=!0})};this.shouldLoadData()?this.loadData(s=>{Array.isArray(s)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||zc(this),o())}):o()}doCreateChildren(t,n={}){t.forEach(o=>{this.insertChild(Object.assign({data:o},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser!="undefined"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,o,s){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:l,allWithoutDisable:c}=wp(this.childNodes);!this.isLeaf&&!l&&c&&(this.checked=!1,t=!1);const f=()=>{if(n){const p=this.childNodes;for(let v=0,w=p.length;v<w;v++){const E=p[v];s=s||t!==!1;const I=E.disabled?E.checked:s;E.setChecked(I,n,!0,s)}const{half:m,all:y}=wp(p);y||(this.checked=y,this.indeterminate=m)}};if(this.shouldLoadData()){this.loadData(()=>{f(),zc(this)},{checked:t!==!1});return}else f()}const i=this.parent;!i||i.level===0||o||zc(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const o=this.store.props;let s="children";return o&&(s=o.children||"children"),n[s]===void 0&&(n[s]=null),t&&!n[s]&&(n[s]=[]),n[s]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),o={},s=[];t.forEach((i,l)=>{const c=i[Oa];!!c&&n.findIndex(p=>p[Oa]===c)>=0?o[c]={index:l,data:i}:s.push({index:l,data:i})}),this.store.lazy||n.forEach(i=>{o[i[Oa]]||this.removeChildByData(i)}),s.forEach(({index:i,data:l})=>{this.insertChild({data:l},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const o=s=>{this.loaded=!0,this.loading=!1,this.childNodes=[],this.doCreateChildren(s,n),this.updateLeafState(),t&&t.call(this,s)};this.store.load(this,o)}else t&&t.call(this)}}class BJ{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)Bt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){this.root=new Pi({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load?this.load(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()}):this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,o=this.lazy,s=function(i){const l=i.root?i.root.childNodes:i.childNodes;if(l.forEach(c=>{c.visible=n.call(c,t,c.data,c),s(c)}),!i.visible&&l.length){let c=!0;c=!l.some(f=>f.visible),i.root?i.root.visible=c===!1:i.visible=c===!1}!t||i.visible&&!i.isLeaf&&!o&&i.expand()};s(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Pi)return t;const n=typeof t!="object"?t:u1(this.key,t);return this.nodesMap[n]||null}insertBefore(t,n){const o=this.getNode(n);o.parent.insertBefore({data:t},o)}insertAfter(t,n){const o=this.getNode(n);o.parent.insertAfter({data:t},o)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const o=n?this.getNode(n):this.root;o&&o.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(o=>{const s=n[o];s&&s.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(o=>{this.deregisterNode(o)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const o=[],s=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(c=>{(c.checked||n&&c.indeterminate)&&(!t||t&&c.isLeaf)&&o.push(c.data),s(c)})};return s(this),o}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const o in n)Bt(n,o)&&t.push(n[o]);return t}updateChildren(t,n){const o=this.nodesMap[t];if(!o)return;const s=o.childNodes;for(let i=s.length-1;i>=0;i--){const l=s[i];this.remove(l.data)}for(let i=0,l=n.length;i<l;i++){const c=n[i];this.append(c,o.data)}}_setCheckedKeys(t,n=!1,o){const s=this._getAllNodes().sort((c,f)=>f.level-c.level),i=Object.create(null),l=Object.keys(o);s.forEach(c=>c.setChecked(!1,!1));for(let c=0,f=s.length;c<f;c++){const p=s[c],m=p.data[t].toString();if(!l.includes(m)){p.checked&&!i[m]&&p.setChecked(!1,!1);continue}let v=p.parent;for(;v&&v.level>0;)i[v.data[t]]=!0,v=v.parent;if(p.isLeaf||this.checkStrictly){p.setChecked(!0,!1);continue}if(p.setChecked(!0,!0),n){p.setChecked(!1,!1);const w=function(E){E.childNodes.forEach(S=>{S.isLeaf||S.setChecked(!1,!1),w(S)})};w(p)}}}setCheckedNodes(t,n=!1){const o=this.key,s={};t.forEach(i=>{s[(i||{})[o]]=!0}),this._setCheckedKeys(o,n,s)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const o=this.key,s={};t.forEach(i=>{s[i]=!0}),this._setCheckedKeys(o,n,s)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const o=this.getNode(n);o&&o.expand(null,this.autoExpandParent)})}setChecked(t,n,o){const s=this.getNode(t);s&&s.setChecked(!!n,o)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const o=t[this.key],s=this.nodesMap[o];this.setCurrentNode(s),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const o=this.getNode(t);o&&(this.setCurrentNode(o),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const FJ=ve({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Be("tree"),n=et("NodeInstance"),o=et("RootTree");return()=>{const s=e.node,{data:i,store:l}=s;return e.renderContent?e.renderContent(it,{_self:n,node:s,data:i,store:l}):o.ctx.slots.default?o.ctx.slots.default({node:s,data:i}):it("span",{class:t.be("node","label")},[s.label])}}});var VJ=Ue(FJ,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function MS(e){const t=et("TreeNodeMap",null),n={treeNodeExpand:o=>{e.node!==o&&e.node.collapse()},children:[]};return t&&t.children.push(n),Pt("TreeNodeMap",n),{broadcastExpanded:o=>{if(!!e.accordion)for(const s of n.children)s.treeNodeExpand(o)}}}const OS=Symbol("dragEvents");function HJ({props:e,ctx:t,el$:n,dropIndicator$:o,store:s}){const i=Be("tree"),l=F({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Pt(OS,{treeNodeDragStart:({event:m,treeNode:y})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(y.node))return m.preventDefault(),!1;m.dataTransfer.effectAllowed="move";try{m.dataTransfer.setData("text/plain","")}catch{}l.value.draggingNode=y,t.emit("node-drag-start",y.node,m)},treeNodeDragOver:({event:m,treeNode:y})=>{const v=y,w=l.value.dropNode;w&&w!==v&&Do(w.$el,i.is("drop-inner"));const E=l.value.draggingNode;if(!E||!v)return;let I=!0,S=!0,T=!0,_=!0;typeof e.allowDrop=="function"&&(I=e.allowDrop(E.node,v.node,"prev"),_=S=e.allowDrop(E.node,v.node,"inner"),T=e.allowDrop(E.node,v.node,"next")),m.dataTransfer.dropEffect=S||I||T?"move":"none",(I||S||T)&&w!==v&&(w&&t.emit("node-drag-leave",E.node,w.node,m),t.emit("node-drag-enter",E.node,v.node,m)),(I||S||T)&&(l.value.dropNode=v),v.node.nextSibling===E.node&&(T=!1),v.node.previousSibling===E.node&&(I=!1),v.node.contains(E.node,!1)&&(S=!1),(E.node===v.node||E.node.contains(v.node))&&(I=!1,S=!1,T=!1);const N=v.$el.getBoundingClientRect(),O=n.value.getBoundingClientRect();let D;const x=I?S?.25:T?.45:1:-1,R=T?S?.75:I?.55:0:1;let B=-9999;const Y=m.clientY-N.top;Y<N.height*x?D="before":Y>N.height*R?D="after":S?D="inner":D="none";const X=v.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),K=o.value;D==="before"?B=X.top-O.top:D==="after"&&(B=X.bottom-O.top),K.style.top=`${B}px`,K.style.left=`${X.right-O.left}px`,D==="inner"?qr(v.$el,i.is("drop-inner")):Do(v.$el,i.is("drop-inner")),l.value.showDropIndicator=D==="before"||D==="after",l.value.allowDrop=l.value.showDropIndicator||_,l.value.dropType=D,t.emit("node-drag-over",E.node,v.node,m)},treeNodeDragEnd:m=>{const{draggingNode:y,dropType:v,dropNode:w}=l.value;if(m.preventDefault(),m.dataTransfer.dropEffect="move",y&&w){const E={data:y.node.data};v!=="none"&&y.node.remove(),v==="before"?w.node.parent.insertBefore(E,w.node):v==="after"?w.node.parent.insertAfter(E,w.node):v==="inner"&&w.node.insertChild(E),v!=="none"&&s.value.registerNode(E),Do(w.$el,i.is("drop-inner")),t.emit("node-drag-end",y.node,w.node,v,m),v!=="none"&&t.emit("node-drop",y.node,w.node,v,m)}y&&!w&&t.emit("node-drag-end",y.node,null,v,m),l.value.showDropIndicator=!1,l.value.draggingNode=null,l.value.dropNode=null,l.value.allowDrop=!0}}),{dragState:l}}const zJ=ve({name:"ElTreeNode",components:{ElCollapseTransition:of,ElCheckbox:$r,NodeContent:VJ,ElIcon:yt,Loading:ti},props:{node:{type:Pi,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Be("tree"),{broadcastExpanded:o}=MS(e),s=et("RootTree"),i=F(!1),l=F(!1),c=F(null),f=F(null),p=F(null),m=et(OS),y=Dt();Pt("NodeInstance",y),e.node.expanded&&(i.value=!0,l.value=!0);const v=s.props.children||"children";Re(()=>{const Y=e.node.data[v];return Y&&[...Y]},()=>{e.node.updateChildren()}),Re(()=>e.node.indeterminate,Y=>{I(e.node.checked,Y)}),Re(()=>e.node.checked,Y=>{I(Y,e.node.indeterminate)}),Re(()=>e.node.expanded,Y=>{dt(()=>i.value=Y),Y&&(l.value=!0)});const w=Y=>u1(s.props.nodeKey,Y.data),E=Y=>{const X=e.props.class;if(!X)return{};let K;if(It(X)){const{data:J}=Y;K=X(J,Y)}else K=X;return _t(K)?{[K]:!0}:K},I=(Y,X)=>{(c.value!==Y||f.value!==X)&&s.ctx.emit("check-change",e.node.data,Y,X),c.value=Y,f.value=X},S=Y=>{const X=s.store.value;X.setCurrentNode(e.node),s.ctx.emit("current-change",X.currentNode?X.currentNode.data:null,X.currentNode),s.currentNode.value=e.node,s.props.expandOnClickNode&&_(),s.props.checkOnClickNode&&!e.node.disabled&&N(null,{target:{checked:!e.node.checked}}),s.ctx.emit("node-click",e.node.data,e.node,y,Y)},T=Y=>{s.instance.vnode.props.onNodeContextmenu&&(Y.stopPropagation(),Y.preventDefault()),s.ctx.emit("node-contextmenu",Y,e.node.data,e.node,y)},_=()=>{e.node.isLeaf||(i.value?(s.ctx.emit("node-collapse",e.node.data,e.node,y),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,y)))},N=(Y,X)=>{e.node.setChecked(X.target.checked,!s.props.checkStrictly),dt(()=>{const K=s.store.value;s.ctx.emit("check",e.node.data,{checkedNodes:K.getCheckedNodes(),checkedKeys:K.getCheckedKeys(),halfCheckedNodes:K.getHalfCheckedNodes(),halfCheckedKeys:K.getHalfCheckedKeys()})})};return{ns:n,node$:p,tree:s,expanded:i,childNodeRendered:l,oldChecked:c,oldIndeterminate:f,getNodeKey:w,getNodeClass:E,handleSelectChange:I,handleClick:S,handleContextMenu:T,handleExpandIconClick:_,handleCheckChange:N,handleChildNodeExpand:(Y,X,K)=>{o(X),s.ctx.emit("node-expand",Y,X,K)},handleDragStart:Y=>{!s.props.draggable||m.treeNodeDragStart({event:Y,treeNode:e})},handleDragOver:Y=>{Y.preventDefault(),s.props.draggable&&m.treeNodeDragOver({event:Y,treeNode:{$el:p.value,node:e.node}})},handleDrop:Y=>{Y.preventDefault()},handleDragEnd:Y=>{!s.props.draggable||m.treeNodeDragEnd(Y)},CaretRight:xw}}}),UJ=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],WJ=["aria-expanded"];function jJ(e,t,n,o,s,i){const l=Ae("el-icon"),c=Ae("el-checkbox"),f=Ae("loading"),p=Ae("node-content"),m=Ae("el-tree-node"),y=Ae("el-collapse-transition");return bt((M(),W("div",{ref:"node$",class:P([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=vt((...v)=>e.handleClick&&e.handleClick(...v),["stop"])),onContextmenu:t[2]||(t[2]=(...v)=>e.handleContextMenu&&e.handleContextMenu(...v)),onDragstart:t[3]||(t[3]=vt((...v)=>e.handleDragStart&&e.handleDragStart(...v),["stop"])),onDragover:t[4]||(t[4]=vt((...v)=>e.handleDragOver&&e.handleDragOver(...v),["stop"])),onDragend:t[5]||(t[5]=vt((...v)=>e.handleDragEnd&&e.handleDragEnd(...v),["stop"])),onDrop:t[6]||(t[6]=vt((...v)=>e.handleDrop&&e.handleDrop(...v),["stop"]))},[Q("div",{class:P(e.ns.be("node","content")),style:st({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(M(),me(l,{key:0,class:P([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:vt(e.handleExpandIconClick,["stop"])},{default:ae(()=>[(M(),me(Xt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):fe("v-if",!0),e.showCheckbox?(M(),me(c,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=vt(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):fe("v-if",!0),e.node.loading?(M(),me(l,{key:2,class:P([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ae(()=>[le(f)]),_:1},8,["class"])):fe("v-if",!0),le(p,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),le(y,null,{default:ae(()=>[!e.renderAfterExpand||e.childNodeRendered?bt((M(),W("div",{key:0,class:P(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(M(!0),W(at,null,zt(e.node.childNodes,v=>(M(),me(m,{key:e.getNodeKey(v),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:v,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,WJ)),[[Zt,e.expanded]]):fe("v-if",!0)]),_:1})],42,UJ)),[[Zt,e.node.visible]])}var KJ=Ue(zJ,[["render",jJ],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function YJ({el$:e},t){const n=Be("tree"),o=Hn([]),s=Hn([]);kt(()=>{l(),Bn(e.value,"keydown",i)}),gn(()=>{Kn(e.value,"keydown",i)}),br(()=>{o.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),s.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Re(s,c=>{c.forEach(f=>{f.setAttribute("tabindex","-1")})});const i=c=>{const f=c.target;if(!f.className.includes(n.b("node")))return;const p=c.code;o.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const m=o.value.indexOf(f);let y;if([rt.up,rt.down].includes(p)){if(c.preventDefault(),p===rt.up){y=m===-1?0:m!==0?m-1:o.value.length-1;const w=y;for(;!t.value.getNode(o.value[y].dataset.key).canFocus;){if(y--,y===w){y=-1;break}y<0&&(y=o.value.length-1)}}else{y=m===-1?0:m<o.value.length-1?m+1:0;const w=y;for(;!t.value.getNode(o.value[y].dataset.key).canFocus;){if(y++,y===w){y=-1;break}y>=o.value.length&&(y=0)}}y!==-1&&o.value[y].focus()}[rt.left,rt.right].includes(p)&&(c.preventDefault(),f.click());const v=f.querySelector('[type="checkbox"]');[rt.enter,rt.space].includes(p)&&v&&(c.preventDefault(),v.click())},l=()=>{var c;o.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),s.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const f=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(f.length){f[0].setAttribute("tabindex","0");return}(c=o.value[0])==null||c.setAttribute("tabindex","0")}}const GJ=ve({name:"ElTree",components:{ElTreeNode:KJ},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:[String,Object]},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=un(),o=Be("tree"),s=F(new BJ({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));s.value.initialize();const i=F(s.value.root),l=F(null),c=F(null),f=F(null),{broadcastExpanded:p}=MS(e),{dragState:m}=HJ({props:e,ctx:t,el$:c,dropIndicator$:f,store:s});YJ({el$:c},s);const y=$(()=>{const{childNodes:V}=i.value;return!V||V.length===0||V.every(({visible:q})=>!q)});Re(()=>e.defaultCheckedKeys,V=>{s.value.setDefaultCheckedKey(V)}),Re(()=>e.defaultExpandedKeys,V=>{s.value.setDefaultExpandedKeys(V)}),Re(()=>e.data,V=>{s.value.setData(V)},{deep:!0}),Re(()=>e.checkStrictly,V=>{s.value.checkStrictly=V});const v=V=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");s.value.filter(V)},w=V=>u1(e.nodeKey,V.data),E=V=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const q=s.value.getNode(V);if(!q)return[];const ce=[q.data];let ue=q.parent;for(;ue&&ue!==i.value;)ce.push(ue.data),ue=ue.parent;return ce.reverse()},I=(V,q)=>s.value.getCheckedNodes(V,q),S=V=>s.value.getCheckedKeys(V),T=()=>{const V=s.value.getCurrentNode();return V?V.data:null},_=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const V=T();return V?V[e.nodeKey]:null},N=(V,q)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");s.value.setCheckedNodes(V,q)},O=(V,q)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");s.value.setCheckedKeys(V,q)},D=(V,q,ce)=>{s.value.setChecked(V,q,ce)},x=()=>s.value.getHalfCheckedNodes(),R=()=>s.value.getHalfCheckedKeys(),B=(V,q=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");s.value.setUserCurrentNode(V,q)},Y=(V,q=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");s.value.setCurrentNodeKey(V,q)},X=V=>s.value.getNode(V),K=V=>{s.value.remove(V)},J=(V,q)=>{s.value.append(V,q)},G=(V,q)=>{s.value.insertBefore(V,q)},z=(V,q)=>{s.value.insertAfter(V,q)},ee=(V,q,ce)=>{p(q),t.emit("node-expand",V,q,ce)},j=(V,q)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");s.value.updateChildren(V,q)};return Pt("RootTree",{ctx:t,props:e,store:s,root:i,currentNode:l,instance:Dt()}),{ns:o,store:s,root:i,currentNode:l,dragState:m,el$:c,dropIndicator$:f,isEmpty:y,filter:v,getNodeKey:w,getNodePath:E,getCheckedNodes:I,getCheckedKeys:S,getCurrentNode:T,getCurrentKey:_,setCheckedNodes:N,setCheckedKeys:O,setChecked:D,getHalfCheckedNodes:x,getHalfCheckedKeys:R,setCurrentNode:B,setCurrentKey:Y,t:n,getNode:X,remove:K,append:J,insertBefore:G,insertAfter:z,handleNodeExpand:ee,updateKeyChildren:j}}});function XJ(e,t,n,o,s,i){var l;const c=Ae("el-tree-node");return M(),W("div",{ref:"el$",class:P([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(M(!0),W(at,null,zt(e.root.childNodes,f=>(M(),me(c,{key:e.getNodeKey(f),node:f,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(M(),W("div",{key:0,class:P(e.ns.e("empty-block"))},[Q("span",{class:P(e.ns.e("empty-text"))},Pe((l=e.emptyText)!=null?l:e.t("el.tree.emptyText")),3)],2)):fe("v-if",!0),bt(Q("div",{ref:"dropIndicator$",class:P(e.ns.e("drop-indicator"))},null,2),[[Zt,e.dragState.showDropIndicator]])],2)}var Uc=Ue(GJ,[["render",XJ],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Uc.install=e=>{e.component(Uc.name,Uc)};const gd=Uc,qJ=gd,ZJ=(e,{attrs:t},{tree:n,key:o})=>{const s=Be("tree-select"),i=Qe(be(be({},Fs(Yn(e),Object.keys(ji.props))),t),{valueKey:o,popperClass:$(()=>{const l=[s.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{e.filterMethod&&e.filterMethod(l),dt(()=>{var c;(c=n.value)==null||c.filter(l)})},onVisibleChange:l=>{var c;(c=t.onVisibleChange)==null||c.call(t,l),e.filterable&&l&&i.filterMethod()}});return i},QJ=ve({extends:cd,setup(e,t){const n=cd.setup(e,t);return delete n.selectOptionClick,n},methods:{selectOptionClick(){this.$el.parentElement.click()}}}),JJ=(e,{attrs:t,slots:n,emit:o},{select:s,tree:i,key:l})=>{Re(()=>e.modelValue,()=>{e.showCheckbox&&dt(()=>{const p=i.value;p&&!Ko(p.getCheckedKeys(),ch(e.modelValue))&&p.setCheckedKeys(ch(e.modelValue))})},{immediate:!0,deep:!0});const c=$(()=>be({value:l.value},e.props)),f=(p,m)=>{var y;const v=c.value[p];return It(v)?v(m,(y=i.value)==null?void 0:y.getNode(f("value",m))):m[v]};return Qe(be(be({},Fs(Yn(e),Object.keys(gd.props))),t),{nodeKey:l,expandOnClickNode:$(()=>!e.checkStrictly),defaultExpandedKeys:$(()=>{const p=ch(e.modelValue),m=i.value?p.map(y=>{var v,w,E;return(E=(w=(v=i.value)==null?void 0:v.getNode(y))==null?void 0:w.parent)==null?void 0:E.key}).filter(y=>DS(y)):p;return e.defaultExpandedKeys?e.defaultExpandedKeys.concat(m):m}),renderContent:(p,{node:m,data:y,store:v})=>p(QJ,{value:f("value",y),label:f("label",y),disabled:f("disabled",y)},e.renderContent?()=>e.renderContent(p,{node:m,data:y,store:v}):n.default?()=>n.default({node:m,data:y,store:v}):void 0),filterNodeMethod:(p,m,y)=>{var v;return e.filterNodeMethod?e.filterNodeMethod(p,m,y):p?(v=f("label",m))==null?void 0:v.includes(p):!0},onNodeClick:(p,m,y)=>{var v,w,E;if((v=t.onNodeClick)==null||v.call(t,p,m,y),e.checkStrictly||m.isLeaf){if(!f("disabled",p)){const I=(w=s.value)==null?void 0:w.options.get(f("value",p));(E=s.value)==null||E.handleOptionSelect(I,!0)}}else y.proxy.handleExpandIconClick()},onCheck:(p,m)=>{var y,v;(y=t.onCheck)==null||y.call(t,p,m);const w=e.checkStrictly?m.checkedKeys:(v=i.value)==null?void 0:v.getCheckedKeys(!0),E=f("value",p);o(Ot,e.multiple?w:w.includes(E)?E:void 0)}})};function DS(e){return e||e===0}function ch(e){return Array.isArray(e)?e:DS(e)?[e]:[]}const eee=ve({name:"ElTreeSelect",inheritAttrs:!1,props:be(be({},ji.props),gd.props),setup(e,t){const{slots:n,expose:o}=t,s=F(),i=F(),l=$(()=>e.valueKey||e.nodeKey||"value"),c=ZJ(e,t,{select:s,tree:i,key:l}),f=JJ(e,t,{select:s,tree:i,key:l}),p=nn({});return o(p),kt(()=>{Object.assign(p,be(be({},Fs(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"])),Fs(s.value,["focus","blur"])))}),()=>it(ji,nn(Qe(be({},c),{ref:m=>s.value=m})),Qe(be({},n),{default:()=>it(gd,nn(Qe(be({},f),{ref:m=>i.value=m})))}))}});var Wc=Ue(eee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);Wc.install=e=>{e.component(Wc.name,Wc)};const tee=Wc,nee=tee,c1=Symbol(),oee={key:-1,level:-1,data:{}};var $l=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))($l||{}),Cp=(e=>(e.ADD="add",e.DELETE="delete",e))(Cp||{});const ree=ct({data:{type:Xe(Array),default:()=>In([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:Xe(Object),default:()=>In({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Xe(Array),default:()=>In([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Xe(Array),default:()=>In([])},indent:{type:Number,default:16},icon:{type:String},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:Xe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:Xe(Function)},perfMode:{type:Boolean,default:!0}}),see=ct({node:{type:Xe(Object),default:()=>In(oee)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1}}),iee=ct({node:{type:Xe(Object),required:!0}}),$S="node-click",RS="node-expand",LS="node-collapse",PS="current-change",BS="check",FS="check-change",VS="node-contextmenu",aee={[$S]:(e,t,n)=>e&&t&&n,[RS]:(e,t)=>e&&t,[LS]:(e,t)=>e&&t,[PS]:(e,t)=>e&&t,[BS]:(e,t)=>e&&t,[FS]:(e,t)=>e&&typeof t=="boolean",[VS]:(e,t,n)=>e&&t&&n},lee={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function uee(e,t){const n=F(new Set),o=F(new Set),{emit:s}=Dt();Re(()=>t.value,()=>dt(()=>{_(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:N,maxLevel:O}=t.value,D=n.value,x=new Set;for(let R=O-1;R>=1;--R){const B=N.get(R);!B||B.forEach(Y=>{const X=Y.children;if(X){let K=!0,J=!1;for(const G of X){const z=G.key;if(D.has(z))J=!0;else if(x.has(z)){K=!1,J=!0;break}else K=!1}K?D.add(Y.key):J?(x.add(Y.key),D.delete(Y.key)):(D.delete(Y.key),x.delete(Y.key))}})}o.value=x},l=N=>n.value.has(N.key),c=N=>o.value.has(N.key),f=(N,O,D=!0)=>{const x=n.value,R=(B,Y)=>{x[Y?Cp.ADD:Cp.DELETE](B.key);const X=B.children;!e.checkStrictly&&X&&X.forEach(K=>{K.disabled||R(K,Y)})};R(N,O),i(),D&&p(N,O)},p=(N,O)=>{const{checkedNodes:D,checkedKeys:x}=E(),{halfCheckedNodes:R,halfCheckedKeys:B}=I();s(BS,N.data,{checkedKeys:x,checkedNodes:D,halfCheckedKeys:B,halfCheckedNodes:R}),s(FS,N.data,O)};function m(N=!1){return E(N).checkedKeys}function y(N=!1){return E(N).checkedNodes}function v(){return I().halfCheckedKeys}function w(){return I().halfCheckedNodes}function E(N=!1){const O=[],D=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:x}=t.value;n.value.forEach(R=>{const B=x.get(R);B&&(!N||N&&B.isLeaf)&&(D.push(R),O.push(B.data))})}return{checkedKeys:D,checkedNodes:O}}function I(){const N=[],O=[];if((t==null?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:D}=t.value;o.value.forEach(x=>{const R=D.get(x);R&&(O.push(x),N.push(R.data))})}return{halfCheckedNodes:N,halfCheckedKeys:O}}function S(N){n.value.clear(),o.value.clear(),_(N)}function T(N,O){if((t==null?void 0:t.value)&&e.showCheckbox){const D=t.value.treeNodeMap.get(N);D&&f(D,O,!1)}}function _(N){if(t!=null&&t.value){const{treeNodeMap:O}=t.value;if(e.showCheckbox&&O&&N)for(const D of N){const x=O.get(D);x&&!l(x)&&f(x,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:f,isChecked:l,isIndeterminate:c,getCheckedKeys:m,getCheckedNodes:y,getHalfCheckedKeys:v,getHalfCheckedNodes:w,setChecked:T,setCheckedKeys:S}}function cee(e,t){const n=F(new Set([])),o=F(new Set([])),s=$(()=>It(e.filterMethod));function i(c){var f;if(!s.value)return;const p=new Set,m=o.value,y=n.value,v=[],w=((f=t.value)==null?void 0:f.treeNodes)||[],E=e.filterMethod;y.clear();function I(S){S.forEach(T=>{v.push(T),E!=null&&E(c,T.data)?v.forEach(N=>{p.add(N.key)}):T.isLeaf&&y.add(T.key);const _=T.children;if(_&&I(_),!T.isLeaf){if(!p.has(T.key))y.add(T.key);else if(_){let N=!0;for(const O of _)if(!y.has(O.key)){N=!1;break}N?m.add(T.key):m.delete(T.key)}}v.pop()})}return I(w),p}function l(c){return o.value.has(c.key)}return{hiddenExpandIconKeySet:o,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:l}}function dee(e,t){const n=F(new Set(e.defaultExpandedKeys)),o=F(),s=Hn();Re(()=>e.currentNodeKey,pe=>{o.value=pe},{immediate:!0}),Re(()=>e.data,pe=>{xe(pe)},{immediate:!0});const{isIndeterminate:i,isChecked:l,toggleCheckbox:c,getCheckedKeys:f,getCheckedNodes:p,getHalfCheckedKeys:m,getHalfCheckedNodes:y,setChecked:v,setCheckedKeys:w}=uee(e,s),{doFilter:E,hiddenNodeKeySet:I,isForceHiddenExpandIcon:S}=cee(e,s),T=$(()=>{var pe;return((pe=e.props)==null?void 0:pe.value)||$l.KEY}),_=$(()=>{var pe;return((pe=e.props)==null?void 0:pe.children)||$l.CHILDREN}),N=$(()=>{var pe;return((pe=e.props)==null?void 0:pe.disabled)||$l.DISABLED}),O=$(()=>{var pe;return((pe=e.props)==null?void 0:pe.label)||$l.LABEL}),D=$(()=>{const pe=n.value,Me=I.value,We=[],ze=s.value&&s.value.treeNodes||[];function Ze(){const mt=[];for(let ot=ze.length-1;ot>=0;--ot)mt.push(ze[ot]);for(;mt.length;){const ot=mt.pop();if(!!ot&&(Me.has(ot.key)||We.push(ot),pe.has(ot.key))){const te=ot.children;if(te){const de=te.length;for(let Ne=de-1;Ne>=0;--Ne)mt.push(te[Ne])}}}}return Ze(),We}),x=$(()=>D.value.length>0);function R(pe){const Me=new Map,We=new Map;let ze=1;function Ze(ot,te=1,de=void 0){var Ne;const De=[];for(const ke of ot){const Ve=X(ke),ie={level:te,key:Ve,data:ke};ie.label=J(ke),ie.parent=de;const re=Y(ke);ie.disabled=K(ke),ie.isLeaf=!re||re.length===0,re&&re.length&&(ie.children=Ze(re,te+1,ie)),De.push(ie),Me.set(Ve,ie),We.has(te)||We.set(te,[]),(Ne=We.get(te))==null||Ne.push(ie)}return te>ze&&(ze=te),De}const mt=Ze(pe);return{treeNodeMap:Me,levelTreeNodeMap:We,maxLevel:ze,treeNodes:mt}}function B(pe){const Me=E(pe);Me&&(n.value=Me)}function Y(pe){return pe[_.value]}function X(pe){return pe?pe[T.value]:""}function K(pe){return pe[N.value]}function J(pe){return pe[O.value]}function G(pe){n.value.has(pe.key)?q(pe):V(pe)}function z(pe,Me){t($S,pe.data,pe,Me),ee(pe),e.expandOnClickNode&&G(pe),e.showCheckbox&&e.checkOnClickNode&&!pe.disabled&&c(pe,!l(pe),!0)}function ee(pe){ne(pe)||(o.value=pe.key,t(PS,pe.data,pe))}function j(pe,Me){c(pe,Me)}function V(pe){const Me=n.value;if((s==null?void 0:s.value)&&e.accordion){const{treeNodeMap:We}=s.value;Me.forEach(ze=>{const Ze=We.get(ze);Ze&&Ze.level===Ze.level&&Me.delete(ze)})}Me.add(pe.key),t(RS,pe.data,pe)}function q(pe){n.value.delete(pe.key),t(LS,pe.data,pe)}function ce(pe){return n.value.has(pe.key)}function ue(pe){return!!pe.disabled}function ne(pe){const Me=o.value;return!!Me&&Me===pe.key}function Se(){var pe,Me;if(!!o.value)return(Me=(pe=s==null?void 0:s.value)==null?void 0:pe.treeNodeMap.get(o.value))==null?void 0:Me.data}function Ee(){return o.value}function qe(pe){o.value=pe}function xe(pe){dt(()=>s.value=R(pe))}return{tree:s,flattenTree:D,isNotEmpty:x,getKey:X,getChildren:Y,toggleExpand:G,toggleCheckbox:c,isExpanded:ce,isChecked:l,isIndeterminate:i,isDisabled:ue,isCurrent:ne,isForceHiddenExpandIcon:S,handleNodeClick:z,handleNodeCheck:j,getCurrentNode:Se,getCurrentKey:Ee,setCurrentKey:qe,getCheckedKeys:f,getCheckedNodes:p,getHalfCheckedKeys:m,getHalfCheckedNodes:y,setChecked:v,setCheckedKeys:w,filter:B,setData:xe}}var fee=ve({name:"ElTreeNodeContent",props:iee,setup(e){const t=et(c1),n=Be("tree");return()=>{const o=e.node,{data:s}=o;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:o,data:s}):it("span",{class:n.be("node","label")},[o==null?void 0:o.label])}}});const hee="caret-right",pee=ve({name:"ElTreeNode",components:{ElIcon:yt,CaretRight:xw,ElCheckbox:$r,ElNodeContent:fee},props:see,emits:lee,setup(e,{emit:t}){const n=et(c1),o=Be("tree"),s=$(()=>{var m;return(m=n==null?void 0:n.props.indent)!=null?m:16}),i=$(()=>{var m;return(m=n==null?void 0:n.props.icon)!=null?m:hee});return{ns:o,indent:s,icon:i,handleClick:m=>{t("click",e.node,m)},handleExpandIconClick:()=>{t("toggle",e.node)},handleCheckChange:m=>{t("check",e.node,m)},handleContextMenu:m=>{var y,v,w,E;(w=(v=(y=n==null?void 0:n.instance)==null?void 0:y.vnode)==null?void 0:v.props)!=null&&w.onNodeContextmenu&&(m.stopPropagation(),m.preventDefault()),n==null||n.ctx.emit(VS,m,(E=e.node)==null?void 0:E.data,e.node)}}}}),gee=["aria-expanded","aria-disabled","aria-checked","data-key"];function mee(e,t,n,o,s,i){var l,c,f;const p=Ae("el-icon"),m=Ae("el-checkbox"),y=Ae("el-node-content");return M(),W("div",{ref:"node$",class:P([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.current),e.ns.is("focusable",!e.disabled),e.ns.is("checked",!e.disabled&&e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(l=e.node)==null?void 0:l.key,onClick:t[1]||(t[1]=vt((...v)=>e.handleClick&&e.handleClick(...v),["stop"])),onContextmenu:t[2]||(t[2]=(...v)=>e.handleContextMenu&&e.handleContextMenu(...v))},[Q("div",{class:P(e.ns.be("node","content")),style:st({paddingLeft:`${(e.node.level-1)*e.indent}px`})},[e.icon?(M(),me(p,{key:0,class:P([e.ns.is("leaf",!!((c=e.node)!=null&&c.isLeaf)),e.ns.is("hidden",e.hiddenExpandIcon),{expanded:!((f=e.node)!=null&&f.isLeaf)&&e.expanded},e.ns.be("node","expand-icon")]),onClick:vt(e.handleExpandIconClick,["stop"])},{default:ae(()=>[(M(),me(Xt(e.icon)))]),_:1},8,["class","onClick"])):fe("v-if",!0),e.showCheckbox?(M(),me(m,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:e.handleCheckChange,onClick:t[0]||(t[0]=vt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled","onChange"])):fe("v-if",!0),le(y,{node:e.node},null,8,["node"])],6)],42,gee)}var vee=Ue(pee,[["render",mee],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const yee=ve({name:"ElTreeV2",components:{ElTreeNode:vee,FixedSizeList:dS},props:ree,emits:aee,setup(e,t){Pt(c1,{ctx:t,props:e,instance:Dt()});const{t:n}=un(),o=Be("tree"),{flattenTree:s,isNotEmpty:i,toggleExpand:l,isExpanded:c,isIndeterminate:f,isChecked:p,isDisabled:m,isCurrent:y,isForceHiddenExpandIcon:v,toggleCheckbox:w,handleNodeClick:E,handleNodeCheck:I,getCurrentNode:S,getCurrentKey:T,setCurrentKey:_,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:D,getHalfCheckedNodes:x,setChecked:R,setCheckedKeys:B,filter:Y,setData:X}=dee(e,t.emit);return t.expose({getCurrentNode:S,getCurrentKey:T,setCurrentKey:_,getCheckedKeys:N,getCheckedNodes:O,getHalfCheckedKeys:D,getHalfCheckedNodes:x,setChecked:R,setCheckedKeys:B,filter:Y,setData:X}),{t:n,ns:o,flattenTree:s,itemSize:26,isNotEmpty:i,toggleExpand:l,toggleCheckbox:w,isExpanded:c,isIndeterminate:f,isChecked:p,isDisabled:m,isCurrent:y,isForceHiddenExpandIcon:v,handleNodeClick:E,handleNodeCheck:I}}});function bee(e,t,n,o,s,i){var l;const c=Ae("el-tree-node"),f=Ae("fixed-size-list");return M(),W("div",{class:P([e.ns.b(),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[e.isNotEmpty?(M(),me(f,{key:0,"class-name":e.ns.b("virtual-list"),data:e.flattenTree,total:e.flattenTree.length,height:e.height,"item-size":e.itemSize,"perf-mode":e.perfMode},{default:ae(({data:p,index:m,style:y})=>[(M(),me(c,{key:p[m].key,style:st(y),node:p[m],expanded:e.isExpanded(p[m]),"show-checkbox":e.showCheckbox,checked:e.isChecked(p[m]),indeterminate:e.isIndeterminate(p[m]),disabled:e.isDisabled(p[m]),current:e.isCurrent(p[m]),"hidden-expand-icon":e.isForceHiddenExpandIcon(p[m]),onClick:e.handleNodeClick,onToggle:e.toggleExpand,onCheck:e.handleNodeCheck},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(M(),W("div",{key:1,class:P(e.ns.e("empty-block"))},[Q("span",{class:P(e.ns.e("empty-text"))},Pe((l=e.emptyText)!=null?l:e.t("el.tree.emptyText")),3)],2))],2)}var wee=Ue(yee,[["render",bee],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Cee=$t(wee),Eee="ElUpload";class See extends Error{constructor(t,n,o,s){super(t),this.name="UploadAjaxError",this.status=n,this.method=o,this.url=s}}function Ay(e,t,n){let o;return n.response?o=`${n.response.error||n.response}`:n.responseText?o=`${n.responseText}`:o=`fail to ${t.method} ${e} ${n.status}`,new See(o,n.status,t.method,e)}function Aee(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Tee=e=>{typeof XMLHttpRequest=="undefined"&&zn(Eee,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const l=i;l.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(l)});const o=new FormData;if(e.data)for(const[i,l]of Object.entries(e.data))Array.isArray(l)?o.append(i,...l):o.append(i,l);o.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Ay(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Ay(n,e,t));e.onSuccess(Aee(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const s=e.headers||{};if(s instanceof Headers)s.forEach((i,l)=>t.setRequestHeader(l,i));else for(const[i,l]of Object.entries(s))T0(l)||t.setRequestHeader(i,String(l));return t.send(o),t},HS=["text","picture","picture-card"];let Iee=1;const zS=()=>Date.now()+Iee++,US=ct({action:{type:String,required:!0},headers:{type:Xe(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>In({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:Xe(Array),default:()=>In([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:HS,default:"text"},httpRequest:{type:Xe(Function),default:Tee},disabled:Boolean,limit:Number}),_ee=ct(Qe(be({},US),{beforeUpload:{type:Xe(Function),default:on},beforeRemove:{type:Xe(Function)},onRemove:{type:Xe(Function),default:on},onChange:{type:Xe(Function),default:on},onPreview:{type:Xe(Function),default:on},onSuccess:{type:Xe(Function),default:on},onProgress:{type:Xe(Function),default:on},onError:{type:Xe(Function),default:on},onExceed:{type:Xe(Function),default:on}})),Nee=ct({files:{type:Xe(Array),default:()=>In([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Xe(Function),default:on},listType:{type:String,values:HS,default:"text"}}),kee={remove:e=>!!e},xee=["onKeydown"],Mee=["src"],Oee=["onClick"],Dee=["onClick"],$ee=["onClick"],Ree={name:"ElUploadList"},Lee=ve(Qe(be({},Ree),{props:Nee,emits:kee,setup(e,{emit:t}){const n=e,{t:o}=un(),s=Be("upload"),i=Be("icon"),l=Be("list"),c=F(!1),f=y=>{n.handlePreview(y)},p=y=>{y.target.focus()},m=y=>{t("remove",y)};return(y,v)=>(M(),me(vN,{tag:"ul",class:P([k(s).b("list"),k(s).bm("list",y.listType),k(s).is("disabled",y.disabled)]),name:k(l).b()},{default:ae(()=>[(M(!0),W(at,null,zt(y.files,w=>(M(),W("li",{key:w.uid||w.name,class:P([k(s).be("list","item"),k(s).is(w.status),{focusing:c.value}]),tabindex:"0",onKeydown:Ft(E=>!y.disabled&&m(w),["delete"]),onFocus:v[0]||(v[0]=E=>c.value=!0),onBlur:v[1]||(v[1]=E=>c.value=!1),onClick:p},[Ie(y.$slots,"default",{file:w},()=>[y.listType==="picture"||w.status!=="uploading"&&y.listType==="picture-card"?(M(),W("img",{key:0,class:P(k(s).be("list","item-thumbnail")),src:w.url,alt:""},null,10,Mee)):fe("v-if",!0),y.listType!=="picture"&&(w.status==="uploading"||y.listType!=="picture-card")?(M(),W("div",{key:1,class:P(k(s).be("list","item-info"))},[Q("a",{class:P(k(s).be("list","item-name")),onClick:E=>f(w)},[le(k(yt),{class:P(k(i).m("document"))},{default:ae(()=>[le(k(P$))]),_:1},8,["class"]),Ht(" "+Pe(w.name),1)],10,Oee),w.status==="uploading"?(M(),me(k(QE),{key:0,type:y.listType==="picture-card"?"circle":"line","stroke-width":y.listType==="picture-card"?6:2,percentage:Number(w.percentage),style:st(y.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):fe("v-if",!0)],2)):fe("v-if",!0),Q("label",{class:P(k(s).be("list","item-status-label"))},[y.listType==="text"?(M(),me(k(yt),{key:0,class:P([k(i).m("upload-success"),k(i).m("circle-check")])},{default:ae(()=>[le(k(ad))]),_:1},8,["class"])):["picture-card","picture"].includes(y.listType)?(M(),me(k(yt),{key:1,class:P([k(i).m("upload-success"),k(i).m("check")])},{default:ae(()=>[le(k(ja))]),_:1},8,["class"])):fe("v-if",!0)],2),y.disabled?fe("v-if",!0):(M(),me(k(yt),{key:2,class:P(k(i).m("close")),onClick:E=>m(w)},{default:ae(()=>[le(k(gr))]),_:2},1032,["class","onClick"])),fe(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),fe(" This is a bug which needs to be fixed "),fe(" TODO: Fix the incorrect navigation interaction "),y.disabled?fe("v-if",!0):(M(),W("i",{key:3,class:P(k(i).m("close-tip"))},Pe(k(o)("el.upload.deleteTip")),3)),y.listType==="picture-card"?(M(),W("span",{key:4,class:P(k(s).be("list","item-actions"))},[Q("span",{class:P(k(s).be("list","item-preview")),onClick:E=>y.handlePreview(w)},[le(k(yt),{class:P(k(i).m("zoom-in"))},{default:ae(()=>[le(k($w))]),_:1},8,["class"])],10,Dee),y.disabled?fe("v-if",!0):(M(),W("span",{key:0,class:P(k(s).be("list","item-delete")),onClick:E=>m(w)},[le(k(yt),{class:P(k(i).m("delete"))},{default:ae(()=>[le(k(M$))]),_:1},8,["class"])],10,$ee))],2)):fe("v-if",!0)])],42,xee))),128)),Ie(y.$slots,"append")]),_:3},8,["class","name"]))}}));var Ty=Ue(Lee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const Pee=ct({disabled:{type:Boolean,default:!1}}),Bee={file:e=>wt(e)},Fee=["onDrop","onDragover"],Vee={name:"ElUploadDrag"},Hee=ve(Qe(be({},Vee),{props:Pee,emits:Bee,setup(e,{emit:t}){const n=e,o="ElUploadDrag",s=et(Qw);s||zn(o,"usage: <el-upload><el-upload-dragger /></el-upload>");const i=Be("upload"),l=F(!1),c=p=>{if(n.disabled)return;l.value=!1;const m=Array.from(p.dataTransfer.files),y=s.accept.value;if(!y){t("file",m);return}const v=m.filter(w=>{const{type:E,name:I}=w,S=I.includes(".")?`.${I.split(".").pop()}`:"",T=E.replace(/\/.*$/,"");return y.split(",").map(_=>_.trim()).filter(_=>_).some(_=>_.startsWith(".")?S===_:/\/\*$/.test(_)?T===_.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(_)?E===_:!1)});t("file",v)},f=()=>{n.disabled||(l.value=!0)};return(p,m)=>(M(),W("div",{class:P([k(i).b("dragger"),k(i).is("dragover",l.value)]),onDrop:vt(c,["prevent"]),onDragover:vt(f,["prevent"]),onDragleave:m[0]||(m[0]=vt(y=>l.value=!1,["prevent"]))},[Ie(p.$slots,"default")],42,Fee))}}));var zee=Ue(Hee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const Uee=ct(Qe(be({},US),{fileList:{type:Xe(Array),default:()=>In([])},beforeUpload:{type:Xe(Function),default:on},onRemove:{type:Xe(Function),default:on},onStart:{type:Xe(Function),default:on},onSuccess:{type:Xe(Function),default:on},onProgress:{type:Xe(Function),default:on},onError:{type:Xe(Function),default:on},onExceed:{type:Xe(Function),default:on}})),Wee=["onKeydown"],jee=["name","multiple","accept"],Kee={name:"ElUploadContent",inheritAttrs:!1},Yee=ve(Qe(be({},Kee),{props:Uee,setup(e,{expose:t}){const n=e,o=Be("upload"),s=Hn({}),i=Hn(),l=w=>{if(w.length===0)return;const{autoUpload:E,limit:I,fileList:S,multiple:T,onStart:_,onExceed:N}=n;if(I&&S.length+w.length>I){N(w,S);return}T||(w=w.slice(0,1));for(const O of w){const D=O;D.uid=zS(),_(D),E&&c(D)}},c=async w=>{if(i.value.value="",!n.beforeUpload)return f(w);let E;try{E=await n.beforeUpload(w)}catch{E=!1}if(E===!1){n.onRemove(w);return}let I=w;if(E instanceof Blob){E instanceof File?I=E:I=new File([E],w.name,{type:w.type});for(const S of Object.keys(w))I[S]=w[S]}f(w)},f=w=>{const{headers:E,data:I,method:S,withCredentials:T,name:_,action:N,onProgress:O,onSuccess:D,onError:x,httpRequest:R}=n,{uid:B}=w,Y={headers:E||{},withCredentials:T,file:w,data:I,method:S,filename:_,action:N,onProgress:K=>{O(K,w)},onSuccess:K=>{D(K,w),delete s.value[B]},onError:K=>{x(K,w),delete s.value[B]}},X=R(Y);s.value[B]=X,X instanceof Promise&&X.then(Y.onSuccess,Y.onError)},p=w=>{const E=w.target.files;!E||l(Array.from(E))},m=()=>{n.disabled||(i.value.value="",i.value.click())},y=()=>{m()};return t({abort:w=>{PD(s.value).filter(w?([I])=>String(w.uid)===I:()=>!0).forEach(([I,S])=>{S instanceof XMLHttpRequest&&S.abort(),delete s.value[I]})},upload:c}),(w,E)=>(M(),W("div",{class:P([k(o).b(),k(o).m(w.listType)]),tabindex:"0",onClick:m,onKeydown:Ft(vt(y,["self"]),["enter","space"])},[w.drag?(M(),me(zee,{key:0,disabled:w.disabled,onFile:l},{default:ae(()=>[Ie(w.$slots,"default")]),_:3},8,["disabled"])):Ie(w.$slots,"default",{key:1}),Q("input",{ref_key:"inputRef",ref:i,class:P(k(o).e("input")),name:w.name,multiple:w.multiple,accept:w.accept,type:"file",onChange:p},null,42,jee)],42,Wee))}}));var Iy=Ue(Yee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const dh="ElUpload",Gee=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Xee=(e,t)=>{const n=F([]),o=v=>n.value.find(w=>w.uid===v.uid);function s(v){var w;(w=t.value)==null||w.abort(v)}function i(v=["ready","uploading","success","fail"]){n.value=n.value.filter(w=>!v.includes(w.status))}const l=(v,w)=>{const E=o(w);!E||(E.status="fail",n.value.splice(n.value.indexOf(E),1),e.onError(v,E,n.value),e.onChange(E,n.value))},c=(v,w)=>{const E=o(w);!E||(e.onProgress(v,E,n.value),E.status="uploading",E.percentage=Math.round(v.percent))},f=(v,w)=>{const E=o(w);!E||(E.status="success",E.response=v,e.onSuccess(v,E,n.value),e.onChange(E,n.value))},p=v=>{const w={name:v.name,percentage:0,status:"ready",size:v.size,raw:v,uid:v.uid};if(e.listType==="picture-card"||e.listType==="picture")try{w.url=URL.createObjectURL(v)}catch(E){E.message,e.onError(E,w,n.value)}n.value.push(w),e.onChange(w,n.value)},m=async(v,w)=>{w&&Ou({scope:dh,from:"handleRemove second argument",version:"2.2",replacement:"first argument `file`",ref:"https://element-plus.org/en-US/component/upload.html#methods"},!0);const E=w||v,I=E instanceof File?o(E):E;I||zn(dh,"file to be removed not found");const S=T=>{s(T);const _=n.value;_.splice(_.indexOf(T),1),e.onRemove(T,_),Gee(T)};e.beforeRemove?await e.beforeRemove(I,n.value)!==!1&&S(I):S(I)};function y(){n.value.filter(({status:v})=>v==="ready").forEach(({raw:v})=>{var w;return v&&((w=t.value)==null?void 0:w.upload(v))})}return Re(()=>e.listType,v=>{v!=="picture-card"&&v!=="picture"||(n.value=n.value.map(w=>{const{raw:E,url:I}=w;if(!I&&E)try{w.url=URL.createObjectURL(E)}catch(S){e.onError(S,w,n.value)}return w}))}),Re(()=>e.fileList,v=>{for(const w of v)w.uid||(w.uid=zS()),w.status||(w.status="success");n.value=v},{immediate:!0,deep:!0}),{abort:s,clearFiles:i,handleError:l,handleProgress:c,handleStart:p,handleSuccess:f,handleRemove:m,submit:y,uploadFiles:n}},qee={name:"ElUpload"},Zee=ve(Qe(be({},qee),{props:_ee,setup(e,{expose:t}){const n=e,o=Nu(),s=ea(),i=Hn(),{abort:l,submit:c,clearFiles:f,uploadFiles:p,handleStart:m,handleError:y,handleRemove:v,handleSuccess:w,handleProgress:E}=Xee(n,i),I=$(()=>n.listType==="picture-card"),S=$(()=>Qe(be({},n),{onStart:m,onProgress:E,onSuccess:w,onError:y,onRemove:v}));return gn(()=>{p.value.forEach(({url:T})=>{T!=null&&T.startsWith("blob:")&&URL.revokeObjectURL(T)})}),Pt(Qw,{accept:Un(n,"accept")}),t({abort:l,submit:c,clearFiles:f,handleStart:m,handleRemove:v}),(T,_)=>(M(),W("div",null,[k(I)&&T.showFileList?(M(),me(Ty,{key:0,disabled:k(s),"list-type":T.listType,files:k(p),"handle-preview":T.onPreview,onRemove:k(v)},Xs({append:ae(()=>[T.listType==="picture-card"?(M(),me(Iy,pn({key:0,ref_key:"uploadRef",ref:i},k(S)),{default:ae(()=>[k(o).trigger?Ie(T.$slots,"trigger",{key:0}):fe("v-if",!0),!k(o).trigger&&k(o).default?Ie(T.$slots,"default",{key:1}):fe("v-if",!0)]),_:3},16)):fe("v-if",!0)]),_:2},[T.$slots.file?{name:"default",fn:ae(({file:N})=>[Ie(T.$slots,"file",{file:N})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):fe("v-if",!0),T.listType!=="picture-card"?(M(),me(Iy,pn({key:1,ref_key:"uploadRef",ref:i},k(S)),{default:ae(()=>[k(o).trigger?Ie(T.$slots,"trigger",{key:0}):fe("v-if",!0),!k(o).trigger&&k(o).default?Ie(T.$slots,"default",{key:1}):fe("v-if",!0)]),_:3},16)):fe("v-if",!0),T.$slots.trigger?Ie(T.$slots,"default",{key:2}):fe("v-if",!0),Ie(T.$slots,"tip"),!k(I)&&T.showFileList?(M(),me(Ty,{key:3,disabled:k(s),"list-type":T.listType,files:k(p),"handle-preview":T.onPreview,onRemove:k(v)},Xs({_:2},[T.$slots.file?{name:"default",fn:ae(({file:N})=>[Ie(T.$slots,"file",{file:N})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):fe("v-if",!0)]))}}));var Qee=Ue(Zee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Jee=$t(Qee);var ete=[e7,d7,k9,L9,U9,TC,nB,oB,fr,xC,dF,mF,NF,kF,jV,xV,ZV,$r,XF,nE,eH,gH,mH,lH,UH,KH,rz,sz,iz,az,lz,VU,YU,GU,iW,dW,CW,bj,wj,Cj,oK,YK,GK,yt,lY,UE,Cr,WE,wY,FY,VY,HY,YY,KG,ZG,rX,SC,QE,lE,fV,dV,EX,_X,xX,Es,ji,cd,EG,Eq,xq,Mq,Xq,nZ,lZ,uZ,CZ,IQ,_Q,HQ,zQ,nf,qB,GQ,JQ,eJ,Ro,EJ,LJ,qJ,nee,Cee,Jee];const Ir="ElInfiniteScroll",tte=50,nte=200,ote=0,rte={delay:{type:Number,default:nte},distance:{type:Number,default:ote},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},d1=(e,t)=>Object.entries(rte).reduce((n,[o,s])=>{var i,l;const{type:c,default:f}=s,p=e.getAttribute(`infinite-scroll-${o}`);let m=(l=(i=t[p])!=null?i:p)!=null?l:f;return m=m==="false"?!1:m,m=c(m),n[o]=Number.isNaN(m)?f:m,n},{}),WS=e=>{const{observer:t}=e[Ir];t&&(t.disconnect(),delete e[Ir].observer)},ste=(e,t)=>{const{container:n,containerEl:o,instance:s,observer:i,lastScrollTop:l}=e[Ir],{disabled:c,distance:f}=d1(e,s),{clientHeight:p,scrollHeight:m,scrollTop:y}=o,v=y-l;if(e[Ir].lastScrollTop=y,i||c||v<0)return;let w=!1;if(n===e)w=m-(p+y)<=f;else{const{clientTop:E,scrollHeight:I}=e,S=DD(e,o);w=y+p>=S+E+I-f}w&&t.call(s)};function fh(e,t){const{containerEl:n,instance:o}=e[Ir],{disabled:s}=d1(e,o);s||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(o):WS(e))}const ite={async mounted(e,t){const{instance:n,value:o}=t;It(o)||zn(Ir,"'v-infinite-scroll' binding value must be a function"),await dt();const{delay:s,immediate:i}=d1(e,n),l=_0(e,!0),c=l===window?document.documentElement:l,f=$i(ste.bind(null,e,o),s);if(!!l){if(e[Ir]={instance:n,container:l,containerEl:c,delay:s,cb:o,onScroll:f,lastScrollTop:c.scrollTop},i){const p=new MutationObserver($i(fh.bind(null,e,o),tte));e[Ir].observer=p,p.observe(e,{childList:!0,subtree:!0}),fh(e,o)}l.addEventListener("scroll",f)}},unmounted(e){const{container:t,onScroll:n}=e[Ir];t==null||t.removeEventListener("scroll",n),WS(e)},async updated(e){e[Ir]||await dt();const{containerEl:t,cb:n,observer:o}=e[Ir];t.clientHeight&&o&&fh(e,n)}},Ep=ite;Ep.install=e=>{e.directive("InfiniteScroll",Ep)};const ate=Ep;function lte(e){let t;const n=F(!1),o=nn(Qe(be({},e),{originalPosition:"",originalOverflow:"",visible:!1}));function s(v){o.text=v}function i(){const v=o.parent;if(!v.vLoadingAddClassList){let w=v.getAttribute("loading-number");w=Number.parseInt(w)-1,w?v.setAttribute("loading-number",w.toString()):(Do(v,"el-loading-parent--relative"),v.removeAttribute("loading-number")),Do(v,"el-loading-parent--hidden")}l(),m.unmount()}function l(){var v,w;(w=(v=y.$el)==null?void 0:v.parentNode)==null||w.removeChild(y.$el)}function c(){var v;if(e.beforeClose&&!e.beforeClose())return;const w=o.parent;w.vLoadingAddClassList=void 0,n.value=!0,clearTimeout(t),t=window.setTimeout(()=>{n.value&&(n.value=!1,i())},400),o.visible=!1,(v=e.closed)==null||v.call(e)}function f(){!n.value||(n.value=!1,i())}const m=X2({name:"ElLoading",setup(){return()=>{const v=o.spinner||o.svg,w=it("svg",be({class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"25 25 50 50"},v?{innerHTML:v}:{}),[it("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"})]),E=o.text?it("p",{class:"el-loading-text"},[o.text]):void 0;return it($n,{name:"el-loading-fade",onAfterLeave:f},{default:ae(()=>[bt(le("div",{style:{backgroundColor:o.background||""},class:["el-loading-mask",o.customClass,o.fullscreen?"is-fullscreen":""]},[it("div",{class:"el-loading-spinner"},[w,E])]),[[Zt,o.visible]])])})}}}),y=m.mount(document.createElement("div"));return Qe(be({},Yn(o)),{setText:s,remvoeElLoadingChild:l,close:c,handleAfterLeave:f,vm:y,get $el(){return y.$el}})}let cc;const Sp=function(e={}){if(!jt)return;const t=ute(e);if(t.fullscreen&&cc)return cc;const n=lte(Qe(be({},t),{closed:()=>{var s;(s=t.closed)==null||s.call(t),t.fullscreen&&(cc=void 0)}}));cte(t,t.parent,n),_y(t,t.parent,n),t.parent.vLoadingAddClassList=()=>_y(t,t.parent,n);let o=t.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",t.parent.setAttribute("loading-number",o),t.parent.appendChild(n.$el),dt(()=>n.visible.value=t.visible),t.fullscreen&&(cc=n),n},ute=e=>{var t,n,o,s;let i;return _t(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(o=e.lock)!=null?o:!1,customClass:e.customClass||"",visible:(s=e.visible)!=null?s:!0,target:i}},cte=async(e,t,n)=>{const{nextZIndex:o}=ws(),s={};if(e.fullscreen)n.originalPosition.value=Xr(document.body,"position"),n.originalOverflow.value=Xr(document.body,"overflow"),s.zIndex=o();else if(e.parent===document.body){n.originalPosition.value=Xr(document.body,"position"),await dt();for(const i of["top","left"]){const l=i==="top"?"scrollTop":"scrollLeft";s[i]=`${e.target.getBoundingClientRect()[i]+document.body[l]+document.documentElement[l]-Number.parseInt(Xr(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])s[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Xr(t,"position");for(const[i,l]of Object.entries(s))n.$el.style[i]=l},_y=(e,t,n)=>{n.originalPosition.value!=="absolute"&&n.originalPosition.value!=="fixed"?qr(t,"el-loading-parent--relative"):Do(t,"el-loading-parent--relative"),e.fullscreen&&e.lock?qr(t,"el-loading-parent--hidden"):Do(t,"el-loading-parent--hidden")},Ap=Symbol("ElLoading"),Ny=(e,t)=>{var n,o,s,i;const l=t.instance,c=v=>Kt(t.value)?t.value[v]:void 0,f=v=>{const w=_t(v)&&(l==null?void 0:l[v])||v;return w&&F(w)},p=v=>f(c(v)||e.getAttribute(`element-loading-${ei(v)}`)),m=(n=c("fullscreen"))!=null?n:t.modifiers.fullscreen,y={text:p("text"),svg:p("svg"),svgViewBox:p("svgViewBox"),spinner:p("spinner"),background:p("background"),customClass:p("customClass"),fullscreen:m,target:(o=c("target"))!=null?o:m?void 0:e,body:(s=c("body"))!=null?s:t.modifiers.body,lock:(i=c("lock"))!=null?i:t.modifiers.lock};e[Ap]={options:y,instance:Sp(y)}},dte=(e,t)=>{for(const n of Object.keys(t))wn(t[n])&&(t[n].value=e[n])},ky={mounted(e,t){t.value&&Ny(e,t)},updated(e,t){const n=e[Ap];t.oldValue!==t.value&&(t.value&&!t.oldValue?Ny(e,t):t.value&&t.oldValue?Kt(t.value)&&dte(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ap])==null||t.instance.close()}},fte={install(e){e.directive("loading",ky),e.config.globalProperties.$loading=Sp},directive:ky,service:Sp},jS=["success","info","warning","error"],hte=ct({customClass:{type:String,default:""},center:{type:Boolean,default:!1},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:3e3},icon:{type:uo,default:""},id:{type:String,default:""},message:{type:Xe([String,Object,Function]),default:""},onClose:{type:Xe(Function),required:!1},showClose:{type:Boolean,default:!1},type:{type:String,values:jS,default:"info"},offset:{type:Number,default:20},zIndex:{type:Number,default:0},grouping:{type:Boolean,default:!1},repeatNum:{type:Number,default:1}}),pte={destroy:()=>!0},gte=ve({name:"ElMessage",components:be({ElBadge:TC,ElIcon:yt},Gd),props:hte,emits:pte,setup(e){const t=Be("message"),n=F(!1),o=F(e.type?e.type==="error"?"danger":e.type:"info");let s;const i=$(()=>{const v=e.type;return{[t.bm("icon",v)]:v&&ms[v]}}),l=$(()=>e.icon||ms[e.type]||""),c=$(()=>({top:`${e.offset}px`,zIndex:e.zIndex}));function f(){e.duration>0&&({stop:s}=Ui(()=>{n.value&&m()},e.duration))}function p(){s==null||s()}function m(){n.value=!1}function y({code:v}){v===rt.esc?n.value&&m():f()}return kt(()=>{f(),n.value=!0}),Re(()=>e.repeatNum,()=>{p(),f()}),Dn(document,"keydown",y),{ns:t,typeClass:i,iconComponent:l,customStyle:c,visible:n,badgeType:o,close:m,clearTimer:p,startTimer:f}}}),mte=["id"],vte=["innerHTML"];function yte(e,t,n,o,s,i){const l=Ae("el-badge"),c=Ae("el-icon"),f=Ae("close");return M(),me($n,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[2]||(t[2]=p=>e.$emit("destroy"))},{default:ae(()=>[bt(Q("div",{id:e.id,class:P([e.ns.b(),{[e.ns.m(e.type)]:e.type&&!e.icon},e.ns.is("center",e.center),e.ns.is("closable",e.showClose),e.customClass]),style:st(e.customStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...p)=>e.clearTimer&&e.clearTimer(...p)),onMouseleave:t[1]||(t[1]=(...p)=>e.startTimer&&e.startTimer(...p))},[e.repeatNum>1?(M(),me(l,{key:0,value:e.repeatNum,type:e.badgeType,class:P(e.ns.e("badge"))},null,8,["value","type","class"])):fe("v-if",!0),e.iconComponent?(M(),me(c,{key:1,class:P([e.ns.e("icon"),e.typeClass])},{default:ae(()=>[(M(),me(Xt(e.iconComponent)))]),_:1},8,["class"])):fe("v-if",!0),Ie(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(M(),W(at,{key:1},[fe(" Caution here, message could've been compromised, never use user's input as message "),Q("p",{class:P(e.ns.e("content")),innerHTML:e.message},null,10,vte)],2112)):(M(),W("p",{key:0,class:P(e.ns.e("content"))},Pe(e.message),3))]),e.showClose?(M(),me(c,{key:2,class:P(e.ns.e("closeBtn")),onClick:vt(e.close,["stop"])},{default:ae(()=>[le(f)]),_:1},8,["class","onClick"])):fe("v-if",!0)],46,mte),[[Zt,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var bte=Ue(gte,[["render",yte],["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);const Fo=[];let wte=1;const qa=function(e={},t){if(!jt)return{close:()=>{}};if(Qt(sp.max)&&Fo.length>=sp.max)return{close:()=>{}};if(!On(e)&&Kt(e)&&e.grouping&&!On(e.message)&&Fo.length){const y=Fo.find(v=>{var w,E,I;return`${(E=(w=v.vm.props)==null?void 0:w.message)!=null?E:""}`==`${(I=e.message)!=null?I:""}`});if(y)return y.vm.component.props.repeatNum+=1,y.vm.component.props.type=(e==null?void 0:e.type)||"info",{close:()=>m.component.proxy.visible=!1}}(_t(e)||On(e))&&(e={message:e});let n=e.offset||20;Fo.forEach(({vm:y})=>{var v;n+=(((v=y.el)==null?void 0:v.offsetHeight)||0)+16}),n+=16;const{nextZIndex:o}=ws(),s=`message_${wte++}`,i=e.onClose,l=Qe(be({zIndex:o()},e),{offset:n,id:s,onClose:()=>{Cte(s,i)}});let c=document.body;Wi(e.appendTo)?c=e.appendTo:_t(e.appendTo)&&(c=document.querySelector(e.appendTo)),Wi(c)||(c=document.body);const f=document.createElement("div");f.className=`container_${s}`;const p=l.message,m=le(bte,l,It(p)?{default:p}:On(p)?{default:()=>p}:null);return m.appContext=t||qa._context,m.props.onDestroy=()=>{Ua(null,f)},Ua(m,f),Fo.push({vm:m}),c.appendChild(f.firstElementChild),{close:()=>m.component.proxy.visible=!1}};jS.forEach(e=>{qa[e]=(t={},n)=>((_t(t)||On(t))&&(t={message:t}),qa(Qe(be({},t),{type:e}),n))});function Cte(e,t){const n=Fo.findIndex(({vm:l})=>e===l.component.props.id);if(n===-1)return;const{vm:o}=Fo[n];if(!o)return;t==null||t(o);const s=o.el.offsetHeight;Fo.splice(n,1);const i=Fo.length;if(!(i<1))for(let l=n;l<i;l++){const c=Number.parseInt(Fo[l].vm.el.style.top,10)-s-16;Fo[l].vm.component.props.offset=c}}function Ete(){var e;for(let t=Fo.length-1;t>=0;t--){const n=Fo[t].vm.component;(e=n==null?void 0:n.proxy)==null||e.close()}}qa.closeAll=Ete;qa._context=null;const Ste=Lw(qa,"$message"),Ate=ve({name:"ElMessageBox",directives:{TrapFocus:BC},components:be({ElButton:fr,ElInput:Cr,ElOverlay:K0,ElIcon:yt},Gd),inheritAttrs:!1,props:{buttonSize:{type:String,validator:Zo},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=un(),o=Be("message-box"),s=F(!1),{nextZIndex:i}=ws(),l=nn({beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),c=$(()=>{const Y=l.type;return{[o.bm("icon",Y)]:Y&&ms[Y]}}),f=Fn($(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),p=$(()=>l.icon||ms[l.type]||""),m=$(()=>!!l.message),y=F(),v=F(),w=F(),E=F(),I=$(()=>l.confirmButtonClass);Re(()=>l.inputValue,async Y=>{await dt(),e.boxType==="prompt"&&Y!==null&&x()},{immediate:!0}),Re(()=>s.value,Y=>{Y&&((e.boxType==="alert"||e.boxType==="confirm")&&dt().then(()=>{var X,K,J;(J=(K=(X=E.value)==null?void 0:X.$el)==null?void 0:K.focus)==null||J.call(K)}),l.zIndex=i()),e.boxType==="prompt"&&(Y?dt().then(()=>{w.value&&w.value.$el&&R().focus()}):(l.editorErrorMessage="",l.validateError=!1))});const S=$(()=>e.draggable);oC(y,v,S),kt(async()=>{await dt(),e.closeOnHashChange&&Bn(window,"hashchange",T)}),gn(()=>{e.closeOnHashChange&&Kn(window,"hashchange",T)});function T(){!s.value||(s.value=!1,dt(()=>{l.action&&t("action",l.action)}))}const _=()=>{e.closeOnClickModal&&D(l.distinguishCancelAndClose?"close":"cancel")},N=$0(_),O=Y=>{if(l.inputType!=="textarea")return Y.preventDefault(),D("confirm")},D=Y=>{var X;e.boxType==="prompt"&&Y==="confirm"&&!x()||(l.action=Y,l.beforeClose?(X=l.beforeClose)==null||X.call(l,Y,l,T):T())},x=()=>{if(e.boxType==="prompt"){const Y=l.inputPattern;if(Y&&!Y.test(l.inputValue||""))return l.editorErrorMessage=l.inputErrorMessage||n("el.messagebox.error"),l.validateError=!0,!1;const X=l.inputValidator;if(typeof X=="function"){const K=X(l.inputValue);if(K===!1)return l.editorErrorMessage=l.inputErrorMessage||n("el.messagebox.error"),l.validateError=!0,!1;if(typeof K=="string")return l.editorErrorMessage=K,l.validateError=!0,!1}}return l.editorErrorMessage="",l.validateError=!1,!0},R=()=>{const Y=w.value.$refs;return Y.input||Y.textarea},B=()=>{D("close")};return e.closeOnPressEscape?sC({handleClose:B},s):vP(s,"keydown",Y=>Y.code===rt.esc),e.lockScroll&&rC(s),iC(s),Qe(be({},Yn(l)),{ns:o,overlayEvent:N,visible:s,hasMessage:m,typeClass:c,btnSize:f,iconComponent:p,confirmButtonClasses:I,rootRef:y,headerRef:v,inputRef:w,confirmRef:E,doClose:T,handleClose:B,handleWrapperClick:_,handleInputEnter:O,handleAction:D,t:n})}}),Tte=["aria-label"],Ite={key:0},_te=["innerHTML"];function Nte(e,t,n,o,s,i){const l=Ae("el-icon"),c=Ae("close"),f=Ae("el-input"),p=Ae("el-button"),m=Ae("el-overlay"),y=qo("trap-focus");return M(),me($n,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=v=>e.$emit("vanish"))},{default:ae(()=>[bt(le(m,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ae(()=>[Q("div",{class:P(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...v)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...v)),onMousedown:t[9]||(t[9]=(...v)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...v)),onMouseup:t[10]||(t[10]=(...v)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...v))},[bt((M(),W("div",{ref:"rootRef",role:"dialog","aria-label":e.title||"dialog","aria-modal":"true",class:P([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:st(e.customStyle),onClick:t[7]||(t[7]=vt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(M(),W("div",{key:0,ref:"headerRef",class:P(e.ns.e("header"))},[Q("div",{class:P(e.ns.e("title"))},[e.iconComponent&&e.center?(M(),me(l,{key:0,class:P([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(M(),me(Xt(e.iconComponent)))]),_:1},8,["class"])):fe("v-if",!0),Q("span",null,Pe(e.title),1)],2),e.showClose?(M(),W("button",{key:0,type:"button",class:P(e.ns.e("headerbtn")),"aria-label":"Close",onClick:t[0]||(t[0]=v=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Ft(vt(v=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[le(l,{class:P(e.ns.e("close"))},{default:ae(()=>[le(c)]),_:1},8,["class"])],34)):fe("v-if",!0)],2)):fe("v-if",!0),Q("div",{class:P(e.ns.e("content"))},[Q("div",{class:P(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(M(),me(l,{key:0,class:P([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(M(),me(Xt(e.iconComponent)))]),_:1},8,["class"])):fe("v-if",!0),e.hasMessage?(M(),W("div",{key:1,class:P(e.ns.e("message"))},[Ie(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(M(),W("p",{key:1,innerHTML:e.message},null,8,_te)):(M(),W("p",Ite,Pe(e.message),1))])],2)):fe("v-if",!0)],2),bt(Q("div",{class:P(e.ns.e("input"))},[le(f,{ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=v=>e.inputValue=v),type:e.inputType,placeholder:e.inputPlaceholder,class:P({invalid:e.validateError}),onKeydown:Ft(e.handleInputEnter,["enter"])},null,8,["modelValue","type","placeholder","class","onKeydown"]),Q("div",{class:P(e.ns.e("errormsg")),style:st({visibility:e.editorErrorMessage?"visible":"hidden"})},Pe(e.editorErrorMessage),7)],2),[[Zt,e.showInput]])],2),Q("div",{class:P(e.ns.e("btns"))},[e.showCancelButton?(M(),me(p,{key:0,loading:e.cancelButtonLoading,class:P([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=v=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Ft(vt(v=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ae(()=>[Ht(Pe(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):fe("v-if",!0),bt(le(p,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:P([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=v=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Ft(vt(v=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ae(()=>[Ht(Pe(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Zt,e.showConfirmButton]])],2)],14,Tte)),[[y]])],34)]),_:3},8,["z-index","overlay-class","mask"]),[[Zt,e.visible]])]),_:3})}var kte=Ue(Ate,[["render",Nte],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const mu=new Map,xte=(e,t,n=null)=>{const o=it(kte,e);return o.appContext=n,Ua(o,t),document.body.appendChild(t.firstElementChild),o.component},Mte=()=>document.createElement("div"),Ote=(e,t)=>{const n=Mte();e.onVanish=()=>{Ua(null,n),mu.delete(s)},e.onAction=i=>{const l=mu.get(s);let c;e.showInput?c={value:s.inputValue,action:i}:c=i,e.callback?e.callback(c,o.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?l.reject("close"):l.reject("cancel"):l.resolve(c)};const o=xte(e,n,t),s=o.proxy;for(const i in e)Bt(e,i)&&!Bt(s.$props,i)&&(s[i]=e[i]);return Re(()=>s.message,(i,l)=>{On(i)?o.slots.default=()=>[i]:On(l)&&!On(i)&&delete o.slots.default},{immediate:!0}),s.visible=!0,s};function ul(e,t=null){if(!jt)return Promise.reject();let n;return _t(e)||On(e)?e={message:e}:n=e.callback,new Promise((o,s)=>{const i=Ote(e,t!=null?t:ul._context);mu.set(i,{options:e,callback:n,resolve:o,reject:s})})}const Dte=["alert","confirm","prompt"],$te={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Dte.forEach(e=>{ul[e]=Rte(e)});function Rte(e){return(t,n,o,s)=>{let i;return Kt(n)?(o=n,i=""):zo(n)?i="":i=n,ul(Object.assign(be({title:i,message:t,type:""},$te[e]),o,{boxType:e}),s)}}ul.close=()=>{mu.forEach((e,t)=>{t.doClose()}),mu.clear()};ul._context=null;const Ls=ul;Ls.install=e=>{Ls._context=e._context,e.config.globalProperties.$msgbox=Ls,e.config.globalProperties.$messageBox=Ls,e.config.globalProperties.$alert=Ls.alert,e.config.globalProperties.$confirm=Ls.confirm,e.config.globalProperties.$prompt=Ls.prompt};const Lte=Ls,KS=["success","info","warning","error"],Pte=ct({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Xe([String,Object]),default:""},id:{type:String,default:""},message:{type:Xe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Xe(Function),default:()=>{}},onClose:{type:Xe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...KS,""],default:""},zIndex:{type:Number,default:0}}),Bte={destroy:()=>!0},Fte=ve({name:"ElNotification",components:be({ElIcon:yt},Gd),props:Pte,emits:Bte,setup(e){const t=Be("notification"),n=F(!1);let o;const s=$(()=>{const w=e.type;return w&&ms[e.type]?t.m(w):""}),i=$(()=>ms[e.type]||e.icon||""),l=$(()=>e.position.endsWith("right")?"right":"left"),c=$(()=>e.position.startsWith("top")?"top":"bottom"),f=$(()=>({[c.value]:`${e.offset}px`,zIndex:e.zIndex}));function p(){e.duration>0&&({stop:o}=Ui(()=>{n.value&&y()},e.duration))}function m(){o==null||o()}function y(){n.value=!1}function v({code:w}){w===rt.delete||w===rt.backspace?m():w===rt.esc?n.value&&y():p()}return kt(()=>{p(),n.value=!0}),Dn(document,"keydown",v),{ns:t,horizontalClass:l,typeClass:s,iconComponent:i,positionStyle:f,visible:n,close:y,clearTimer:m,startTimer:p}}}),Vte=["id"],Hte=["textContent"],zte={key:0},Ute=["innerHTML"];function Wte(e,t,n,o,s,i){const l=Ae("el-icon"),c=Ae("close");return M(),me($n,{name:e.ns.b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t[3]||(t[3]=f=>e.$emit("destroy"))},{default:ae(()=>[bt(Q("div",{id:e.id,class:P([e.ns.b(),e.customClass,e.horizontalClass]),style:st(e.positionStyle),role:"alert",onMouseenter:t[0]||(t[0]=(...f)=>e.clearTimer&&e.clearTimer(...f)),onMouseleave:t[1]||(t[1]=(...f)=>e.startTimer&&e.startTimer(...f)),onClick:t[2]||(t[2]=(...f)=>e.onClick&&e.onClick(...f))},[e.iconComponent?(M(),me(l,{key:0,class:P([e.ns.e("icon"),e.typeClass])},{default:ae(()=>[(M(),me(Xt(e.iconComponent)))]),_:1},8,["class"])):fe("v-if",!0),Q("div",{class:P(e.ns.e("group"))},[Q("h2",{class:P(e.ns.e("title")),textContent:Pe(e.title)},null,10,Hte),bt(Q("div",{class:P(e.ns.e("content")),style:st(e.title?void 0:{margin:0})},[Ie(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(M(),W(at,{key:1},[fe(" Caution here, message could've been compromized, nerver use user's input as message "),fe(" eslint-disable-next-line "),Q("p",{innerHTML:e.message},null,8,Ute)],2112)):(M(),W("p",zte,Pe(e.message),1))])],6),[[Zt,e.message]]),e.showClose?(M(),me(l,{key:0,class:P(e.ns.e("closeBtn")),onClick:vt(e.close,["stop"])},{default:ae(()=>[le(c)]),_:1},8,["class","onClick"])):fe("v-if",!0)],2)],46,Vte),[[Zt,e.visible]])]),_:3},8,["name","onBeforeLeave"])}var jte=Ue(Fte,[["render",Wte],["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const md={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Tp=16;let Kte=1;const Za=function(e={},t=null){if(!jt)return{close:()=>{}};(typeof e=="string"||On(e))&&(e={message:e});const n=e.position||"top-right";let o=e.offset||0;md[n].forEach(({vm:y})=>{var v;o+=(((v=y.el)==null?void 0:v.offsetHeight)||0)+Tp}),o+=Tp;const{nextZIndex:s}=ws(),i=`notification_${Kte++}`,l=e.onClose,c=Qe(be({zIndex:s(),offset:o},e),{id:i,onClose:()=>{Yte(i,n,l)}});let f=document.body;Wi(e.appendTo)?f=e.appendTo:_t(e.appendTo)&&(f=document.querySelector(e.appendTo)),Wi(f)||(f=document.body);const p=document.createElement("div"),m=le(jte,c,On(c.message)?{default:()=>c.message}:null);return m.appContext=t!=null?t:Za._context,m.props.onDestroy=()=>{Ua(null,p)},Ua(m,p),md[n].push({vm:m}),f.appendChild(p.firstElementChild),{close:()=>{m.component.proxy.visible=!1}}};KS.forEach(e=>{Za[e]=(t={})=>((typeof t=="string"||On(t))&&(t={message:t}),Za(Qe(be({},t),{type:e})))});function Yte(e,t,n){const o=md[t],s=o.findIndex(({vm:p})=>{var m;return((m=p.component)==null?void 0:m.props.id)===e});if(s===-1)return;const{vm:i}=o[s];if(!i)return;n==null||n(i);const l=i.el.offsetHeight,c=t.split("-")[0];o.splice(s,1);const f=o.length;if(!(f<1))for(let p=s;p<f;p++){const{el:m,component:y}=o[p].vm,v=Number.parseInt(m.style[c],10)-l-Tp;y.props.offset=v}}function Gte(){for(const e of Object.values(md))e.forEach(({vm:t})=>{t.component.proxy.visible=!1})}Za.closeAll=Gte;Za._context=null;const Xte=Lw(Za,"$notify");var qte=[ate,fte,Ste,Lte,Xte,sX],Zte=GP([...ete,...qte]),YS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={name:"zh-tw",el:{colorpicker:{confirm:"\u78BA\u8A8D",clear:"\u6E05\u7A7A"},datepicker:{now:"\u73FE\u5728",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u78BA\u8A8D",selectDate:"\u9078\u64C7\u65E5\u671F",selectTime:"\u9078\u64C7\u6642\u9593",startDate:"\u958B\u59CB\u65E5\u671F",startTime:"\u958B\u59CB\u6642\u9593",endDate:"\u7D50\u675F\u65E5\u671F",endTime:"\u7D50\u675F\u6642\u9593",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u5F8C\u4E00\u5E74",prevMonth:"\u4E0A\u500B\u6708",nextMonth:"\u4E0B\u500B\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},select:{loading:"\u52A0\u8F09\u4E2D",noMatch:"\u7121\u5339\u914D\u8CC7\u6599",noData:"\u7121\u8CC7\u6599",placeholder:"\u8ACB\u9078\u64C7"},cascader:{noMatch:"\u7121\u5339\u914D\u8CC7\u6599",loading:"\u52A0\u8F09\u4E2D",placeholder:"\u8ACB\u9078\u64C7",noData:"\u7121\u8CC7\u6599"},pagination:{goto:"\u524D\u5F80",pagesize:"\u9805/\u9801",total:"\u5171 {total} \u9805",pageClassifier:"\u9801"},messagebox:{title:"\u63D0\u793A",confirm:"\u78BA\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F38\u5165\u7684\u8CC7\u6599\u4E0D\u7B26\u898F\u5B9A!"},upload:{deleteTip:"\u6309 delete \u9375\u53EF\u522A\u9664",delete:"\u522A\u9664",preview:"\u67E5\u770B\u5716\u7247",continue:"\u7E7C\u7E8C\u4E0A\u50B3"},table:{emptyText:"\u66AB\u7121\u8CC7\u6599",confirmFilter:"\u7BE9\u9078",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8A08"},tree:{emptyText:"\u66AB\u7121\u8CC7\u6599"},transfer:{noMatch:"\u7121\u5339\u914D\u8CC7\u6599",noData:"\u7121\u8CC7\u6599",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8ACB\u8F38\u5165\u641C\u7D22\u5167\u5BB9",noCheckedFormat:"\u5171 {total} \u9805",hasCheckedFormat:"\u5DF2\u9078 {checked}/{total} \u9805"},image:{error:"\u52A0\u8F09\u5931\u6557"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u78BA\u8A8D",cancelButtonText:"\u53D6\u6D88"}}};e.default=t})(YS);var Qte=MC(YS),Et;(function(e){e[e.QR_CODE=0]="QR_CODE",e[e.AZTEC=1]="AZTEC",e[e.CODABAR=2]="CODABAR",e[e.CODE_39=3]="CODE_39",e[e.CODE_93=4]="CODE_93",e[e.CODE_128=5]="CODE_128",e[e.DATA_MATRIX=6]="DATA_MATRIX",e[e.MAXICODE=7]="MAXICODE",e[e.ITF=8]="ITF",e[e.EAN_13=9]="EAN_13",e[e.EAN_8=10]="EAN_8",e[e.PDF_417=11]="PDF_417",e[e.RSS_14=12]="RSS_14",e[e.RSS_EXPANDED=13]="RSS_EXPANDED",e[e.UPC_A=14]="UPC_A",e[e.UPC_E=15]="UPC_E",e[e.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(Et||(Et={}));var xy=new Map([[Et.QR_CODE,"QR_CODE"],[Et.AZTEC,"AZTEC"],[Et.CODABAR,"CODABAR"],[Et.CODE_39,"CODE_39"],[Et.CODE_93,"CODE_93"],[Et.CODE_128,"CODE_128"],[Et.DATA_MATRIX,"DATA_MATRIX"],[Et.MAXICODE,"MAXICODE"],[Et.ITF,"ITF"],[Et.EAN_13,"EAN_13"],[Et.EAN_8,"EAN_8"],[Et.PDF_417,"PDF_417"],[Et.RSS_14,"RSS_14"],[Et.RSS_EXPANDED,"RSS_EXPANDED"],[Et.UPC_A,"UPC_A"],[Et.UPC_E,"UPC_E"],[Et.UPC_EAN_EXTENSION,"UPC_EAN_EXTENSION"]]),My;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.URL=1]="URL"})(My||(My={}));function Jte(e){return Object.values(Et).includes(e)}var Zs;(function(e){e[e.SCAN_TYPE_CAMERA=0]="SCAN_TYPE_CAMERA",e[e.SCAN_TYPE_FILE=1]="SCAN_TYPE_FILE"})(Zs||(Zs={}));var Gr=function(){function e(){}return e.GITHUB_PROJECT_URL="https://github.com/mebjas/html5-qrcode",e.SCAN_DEFAULT_FPS=2,e.DEFAULT_DISABLE_FLIP=!1,e.DEFAULT_REMEMBER_LAST_CAMERA_USED=!0,e.DEFAULT_SUPPORTED_SCAN_TYPE=[Zs.SCAN_TYPE_CAMERA,Zs.SCAN_TYPE_FILE],e}(),GS=function(){function e(t,n){this.format=t,this.formatName=n}return e.prototype.toString=function(){return this.formatName},e.create=function(t){if(!xy.has(t))throw t+" not in html5QrcodeSupportedFormatsTextMap";return new e(t,xy.get(t))},e}(),Oy=function(){function e(){}return e.createFromText=function(t){var n={text:t};return{decodedText:t,result:n}},e.createFromQrcodeResult=function(t){return{decodedText:t.text,result:t}},e}(),Ip;(function(e){e[e.UNKWOWN_ERROR=0]="UNKWOWN_ERROR",e[e.IMPLEMENTATION_ERROR=1]="IMPLEMENTATION_ERROR",e[e.NO_CODE_FOUND_ERROR=2]="NO_CODE_FOUND_ERROR"})(Ip||(Ip={}));var XS=function(){function e(){}return e.createFrom=function(t){return{errorMessage:t,type:Ip.UNKWOWN_ERROR}},e}(),qS=function(){function e(t){this.verbose=t}return e.prototype.log=function(t){this.verbose&&console.log(t)},e.prototype.warn=function(t){this.verbose&&console.warn(t)},e.prototype.logError=function(t,n){(this.verbose||n===!0)&&console.error(t)},e.prototype.logErrors=function(t){if(t.length===0)throw"Logger#logError called without arguments";this.verbose&&console.error(t)},e}();function Aa(e){return typeof e=="undefined"||e===null}var Nl=function(){function e(){}return e.codeParseError=function(t){return"QR code parse error, error = "+t},e.errorGettingUserMedia=function(t){return"Error getting userMedia, error = "+t},e.onlyDeviceSupportedError=function(){return"The device doesn't support navigator.mediaDevices , only supported cameraIdOrConfig in this case is deviceId parameter (string)."},e.cameraStreamingNotSupported=function(){return"Camera streaming not supported by the browser."},e.unableToQuerySupportedDevices=function(){return"Unable to query supported devices, unknown error."},e.insecureContextCameraQueryError=function(){return"Camera access is only supported in secure context like https or localhost."},e}(),Ar=function(){function e(){}return e.scanningStatus=function(){return"Scanning"},e.idleStatus=function(){return"Idle"},e.errorStatus=function(){return"Error"},e.permissionStatus=function(){return"Permission"},e.noCameraFoundErrorStatus=function(){return"No Cameras"},e.lastMatch=function(t){return"Last Match: "+t},e.codeScannerTitle=function(){return"Code Scanner"},e.cameraPermissionTitle=function(){return"Request Camera Permissions"},e.cameraPermissionRequesting=function(){return"Requesting camera permissions..."},e.noCameraFound=function(){return"No camera found"},e.scanButtonStopScanningText=function(){return"Stop Scanning"},e.scanButtonStartScanningText=function(){return"Start Scanning"},e.scanButtonScanningStarting=function(){return"Launching Camera..."},e.textIfCameraScanSelected=function(){return"Scan an Image File"},e.textIfFileScanSelected=function(){return"Scan using camera directly"},e.selectCamera=function(){return"Select Camera"},e}(),Dy=function(){function e(){}return e.builtUsing=function(){return"Built using "},e.reportIssues=function(){return"Report issues"},e}(),ZS=function(){function e(){}return e.isMediaStreamConstraintsValid=function(t,n){if(typeof t!="object"){var o=typeof t;return n.logError("videoConstraints should be of type object, the "+("object passed is of type "+o+"."),!0),!1}for(var s=["autoGainControl","channelCount","echoCancellation","latency","noiseSuppression","sampleRate","sampleSize","volume"],i=new Set(s),l=Object.keys(t),c=0,f=l;c<f.length;c++){var p=f[c];if(i.has(p))return n.logError(p+" is not supported videoConstaints.",!0),!1}return!0},e}(),Sn={exports:{}};(function(e,t){(function(n,o){o(t)})(Mo,function(n){/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,r){H.__proto__=r}||function(H,r){for(var a in r)r.hasOwnProperty(a)&&(H[a]=r[a])};function s(H,r){o(H,r);function a(){this.constructor=H}H.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}function i(H,r){var a=Object.setPrototypeOf;a?a(H,r):H.__proto__=r}function l(H,r){r===void 0&&(r=H.constructor);var a=Error.captureStackTrace;a&&a(H,r)}var c=function(H){s(r,H);function r(a){var u=this.constructor,d=H.call(this,a)||this;return Object.defineProperty(d,"name",{value:u.name,enumerable:!1}),i(d,u.prototype),l(d),d}return r}(Error);class f extends c{constructor(r=void 0){super(r),this.message=r}getKind(){return this.constructor.kind}}f.kind="Exception";class p extends f{}p.kind="ArgumentException";class m extends f{}m.kind="IllegalArgumentException";class y{constructor(r){if(this.binarizer=r,r===null)throw new m("Binarizer must be non-null.")}getWidth(){return this.binarizer.getWidth()}getHeight(){return this.binarizer.getHeight()}getBlackRow(r,a){return this.binarizer.getBlackRow(r,a)}getBlackMatrix(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix}isCropSupported(){return this.binarizer.getLuminanceSource().isCropSupported()}crop(r,a,u,d){const h=this.binarizer.getLuminanceSource().crop(r,a,u,d);return new y(this.binarizer.createBinarizer(h))}isRotateSupported(){return this.binarizer.getLuminanceSource().isRotateSupported()}rotateCounterClockwise(){const r=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new y(this.binarizer.createBinarizer(r))}rotateCounterClockwise45(){const r=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new y(this.binarizer.createBinarizer(r))}toString(){try{return this.getBlackMatrix().toString()}catch{return""}}}class v extends f{static getChecksumInstance(){return new v}}v.kind="ChecksumException";class w{constructor(r){this.source=r}getLuminanceSource(){return this.source}getWidth(){return this.source.getWidth()}getHeight(){return this.source.getHeight()}}class E{static arraycopy(r,a,u,d,h){for(;h--;)u[d++]=r[a++]}static currentTimeMillis(){return Date.now()}}class I extends f{}I.kind="IndexOutOfBoundsException";class S extends I{constructor(r=void 0,a=void 0){super(a),this.index=r,this.message=a}}S.kind="ArrayIndexOutOfBoundsException";class T{static fill(r,a){for(let u=0,d=r.length;u<d;u++)r[u]=a}static fillWithin(r,a,u,d){T.rangeCheck(r.length,a,u);for(let h=a;h<u;h++)r[h]=d}static rangeCheck(r,a,u){if(a>u)throw new m("fromIndex("+a+") > toIndex("+u+")");if(a<0)throw new S(a);if(u>r)throw new S(u)}static asList(...r){return r}static create(r,a,u){return Array.from({length:r}).map(h=>Array.from({length:a}).fill(u))}static createInt32Array(r,a,u){return Array.from({length:r}).map(h=>Int32Array.from({length:a}).fill(u))}static equals(r,a){if(!r||!a||!r.length||!a.length||r.length!==a.length)return!1;for(let u=0,d=r.length;u<d;u++)if(r[u]!==a[u])return!1;return!0}static hashCode(r){if(r===null)return 0;let a=1;for(const u of r)a=31*a+u;return a}static fillUint8Array(r,a){for(let u=0;u!==r.length;u++)r[u]=a}static copyOf(r,a){return r.slice(0,a)}static copyOfUint8Array(r,a){if(r.length<=a){const u=new Uint8Array(a);return u.set(r),u}return r.slice(0,a)}static copyOfRange(r,a,u){const d=u-a,h=new Int32Array(d);return E.arraycopy(r,a,h,0,d),h}static binarySearch(r,a,u){u===void 0&&(u=T.numberComparator);let d=0,h=r.length-1;for(;d<=h;){const g=h+d>>1,b=u(a,r[g]);if(b>0)d=g+1;else if(b<0)h=g-1;else return g}return-d-1}static numberComparator(r,a){return r-a}}class _{static numberOfTrailingZeros(r){let a;if(r===0)return 32;let u=31;return a=r<<16,a!==0&&(u-=16,r=a),a=r<<8,a!==0&&(u-=8,r=a),a=r<<4,a!==0&&(u-=4,r=a),a=r<<2,a!==0&&(u-=2,r=a),u-(r<<1>>>31)}static numberOfLeadingZeros(r){if(r===0)return 32;let a=1;return r>>>16===0&&(a+=16,r<<=16),r>>>24===0&&(a+=8,r<<=8),r>>>28===0&&(a+=4,r<<=4),r>>>30===0&&(a+=2,r<<=2),a-=r>>>31,a}static toHexString(r){return r.toString(16)}static toBinaryString(r){return String(parseInt(String(r),2))}static bitCount(r){return r=r-(r>>>1&1431655765),r=(r&858993459)+(r>>>2&858993459),r=r+(r>>>4)&252645135,r=r+(r>>>8),r=r+(r>>>16),r&63}static truncDivision(r,a){return Math.trunc(r/a)}static parseInt(r,a=void 0){return parseInt(r,a)}}_.MIN_VALUE_32_BITS=-2147483648,_.MAX_VALUE=Number.MAX_SAFE_INTEGER;class N{constructor(r,a){r===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=r,a==null?this.bits=N.makeArray(r):this.bits=a)}getSize(){return this.size}getSizeInBytes(){return Math.floor((this.size+7)/8)}ensureCapacity(r){if(r>this.bits.length*32){const a=N.makeArray(r);E.arraycopy(this.bits,0,a,0,this.bits.length),this.bits=a}}get(r){return(this.bits[Math.floor(r/32)]&1<<(r&31))!==0}set(r){this.bits[Math.floor(r/32)]|=1<<(r&31)}flip(r){this.bits[Math.floor(r/32)]^=1<<(r&31)}getNextSet(r){const a=this.size;if(r>=a)return a;const u=this.bits;let d=Math.floor(r/32),h=u[d];h&=~((1<<(r&31))-1);const g=u.length;for(;h===0;){if(++d===g)return a;h=u[d]}const b=d*32+_.numberOfTrailingZeros(h);return b>a?a:b}getNextUnset(r){const a=this.size;if(r>=a)return a;const u=this.bits;let d=Math.floor(r/32),h=~u[d];h&=~((1<<(r&31))-1);const g=u.length;for(;h===0;){if(++d===g)return a;h=~u[d]}const b=d*32+_.numberOfTrailingZeros(h);return b>a?a:b}setBulk(r,a){this.bits[Math.floor(r/32)]=a}setRange(r,a){if(a<r||r<0||a>this.size)throw new m;if(a===r)return;a--;const u=Math.floor(r/32),d=Math.floor(a/32),h=this.bits;for(let g=u;g<=d;g++){const b=g>u?0:r&31,C=g<d?31:a&31,A=(2<<C)-(1<<b);h[g]|=A}}clear(){const r=this.bits.length,a=this.bits;for(let u=0;u<r;u++)a[u]=0}isRange(r,a,u){if(a<r||r<0||a>this.size)throw new m;if(a===r)return!0;a--;const d=Math.floor(r/32),h=Math.floor(a/32),g=this.bits;for(let b=d;b<=h;b++){const C=b>d?0:r&31,A=b<h?31:a&31,L=(2<<A)-(1<<C)&4294967295;if((g[b]&L)!==(u?L:0))return!1}return!0}appendBit(r){this.ensureCapacity(this.size+1),r&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++}appendBits(r,a){if(a<0||a>32)throw new m("Num bits must be between 0 and 32");this.ensureCapacity(this.size+a);for(let u=a;u>0;u--)this.appendBit((r>>u-1&1)===1)}appendBitArray(r){const a=r.size;this.ensureCapacity(this.size+a);for(let u=0;u<a;u++)this.appendBit(r.get(u))}xor(r){if(this.size!==r.size)throw new m("Sizes don't match");const a=this.bits;for(let u=0,d=a.length;u<d;u++)a[u]^=r.bits[u]}toBytes(r,a,u,d){for(let h=0;h<d;h++){let g=0;for(let b=0;b<8;b++)this.get(r)&&(g|=1<<7-b),r++;a[u+h]=g}}getBitArray(){return this.bits}reverse(){const r=new Int32Array(this.bits.length),a=Math.floor((this.size-1)/32),u=a+1,d=this.bits;for(let h=0;h<u;h++){let g=d[h];g=g>>1&1431655765|(g&1431655765)<<1,g=g>>2&858993459|(g&858993459)<<2,g=g>>4&252645135|(g&252645135)<<4,g=g>>8&16711935|(g&16711935)<<8,g=g>>16&65535|(g&65535)<<16,r[a-h]=g}if(this.size!==u*32){const h=u*32-this.size;let g=r[0]>>>h;for(let b=1;b<u;b++){const C=r[b];g|=C<<32-h,r[b-1]=g,g=C>>>h}r[u-1]=g}this.bits=r}static makeArray(r){return new Int32Array(Math.floor((r+31)/32))}equals(r){if(!(r instanceof N))return!1;const a=r;return this.size===a.size&&T.equals(this.bits,a.bits)}hashCode(){return 31*this.size+T.hashCode(this.bits)}toString(){let r="";for(let a=0,u=this.size;a<u;a++)(a&7)===0&&(r+=" "),r+=this.get(a)?"X":".";return r}clone(){return new N(this.size,this.bits.slice())}}var O;(function(H){H[H.OTHER=0]="OTHER",H[H.PURE_BARCODE=1]="PURE_BARCODE",H[H.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",H[H.TRY_HARDER=3]="TRY_HARDER",H[H.CHARACTER_SET=4]="CHARACTER_SET",H[H.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",H[H.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",H[H.ASSUME_GS1=7]="ASSUME_GS1",H[H.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",H[H.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",H[H.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"})(O||(O={}));var D=O;class x extends f{static getFormatInstance(){return new x}}x.kind="FormatException";var R;(function(H){H[H.Cp437=0]="Cp437",H[H.ISO8859_1=1]="ISO8859_1",H[H.ISO8859_2=2]="ISO8859_2",H[H.ISO8859_3=3]="ISO8859_3",H[H.ISO8859_4=4]="ISO8859_4",H[H.ISO8859_5=5]="ISO8859_5",H[H.ISO8859_6=6]="ISO8859_6",H[H.ISO8859_7=7]="ISO8859_7",H[H.ISO8859_8=8]="ISO8859_8",H[H.ISO8859_9=9]="ISO8859_9",H[H.ISO8859_10=10]="ISO8859_10",H[H.ISO8859_11=11]="ISO8859_11",H[H.ISO8859_13=12]="ISO8859_13",H[H.ISO8859_14=13]="ISO8859_14",H[H.ISO8859_15=14]="ISO8859_15",H[H.ISO8859_16=15]="ISO8859_16",H[H.SJIS=16]="SJIS",H[H.Cp1250=17]="Cp1250",H[H.Cp1251=18]="Cp1251",H[H.Cp1252=19]="Cp1252",H[H.Cp1256=20]="Cp1256",H[H.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",H[H.UTF8=22]="UTF8",H[H.ASCII=23]="ASCII",H[H.Big5=24]="Big5",H[H.GB18030=25]="GB18030",H[H.EUC_KR=26]="EUC_KR"})(R||(R={}));class B{constructor(r,a,u,...d){this.valueIdentifier=r,this.name=u,typeof a=="number"?this.values=Int32Array.from([a]):this.values=a,this.otherEncodingNames=d,B.VALUE_IDENTIFIER_TO_ECI.set(r,this),B.NAME_TO_ECI.set(u,this);const h=this.values;for(let g=0,b=h.length;g!==b;g++){const C=h[g];B.VALUES_TO_ECI.set(C,this)}for(const g of d)B.NAME_TO_ECI.set(g,this)}getValueIdentifier(){return this.valueIdentifier}getName(){return this.name}getValue(){return this.values[0]}static getCharacterSetECIByValue(r){if(r<0||r>=900)throw new x("incorect value");const a=B.VALUES_TO_ECI.get(r);if(a===void 0)throw new x("incorect value");return a}static getCharacterSetECIByName(r){const a=B.NAME_TO_ECI.get(r);if(a===void 0)throw new x("incorect value");return a}equals(r){if(!(r instanceof B))return!1;const a=r;return this.getName()===a.getName()}}B.VALUE_IDENTIFIER_TO_ECI=new Map,B.VALUES_TO_ECI=new Map,B.NAME_TO_ECI=new Map,B.Cp437=new B(R.Cp437,Int32Array.from([0,2]),"Cp437"),B.ISO8859_1=new B(R.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),B.ISO8859_2=new B(R.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),B.ISO8859_3=new B(R.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),B.ISO8859_4=new B(R.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),B.ISO8859_5=new B(R.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),B.ISO8859_6=new B(R.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),B.ISO8859_7=new B(R.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),B.ISO8859_8=new B(R.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),B.ISO8859_9=new B(R.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),B.ISO8859_10=new B(R.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),B.ISO8859_11=new B(R.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),B.ISO8859_13=new B(R.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),B.ISO8859_14=new B(R.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),B.ISO8859_15=new B(R.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),B.ISO8859_16=new B(R.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),B.SJIS=new B(R.SJIS,20,"SJIS","Shift_JIS"),B.Cp1250=new B(R.Cp1250,21,"Cp1250","windows-1250"),B.Cp1251=new B(R.Cp1251,22,"Cp1251","windows-1251"),B.Cp1252=new B(R.Cp1252,23,"Cp1252","windows-1252"),B.Cp1256=new B(R.Cp1256,24,"Cp1256","windows-1256"),B.UnicodeBigUnmarked=new B(R.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),B.UTF8=new B(R.UTF8,26,"UTF8","UTF-8"),B.ASCII=new B(R.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),B.Big5=new B(R.Big5,28,"Big5"),B.GB18030=new B(R.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),B.EUC_KR=new B(R.EUC_KR,30,"EUC_KR","EUC-KR");class Y extends f{}Y.kind="UnsupportedOperationException";class X{static decode(r,a){const u=this.encodingName(a);return this.customDecoder?this.customDecoder(r,u):typeof TextDecoder=="undefined"||this.shouldDecodeOnFallback(u)?this.decodeFallback(r,u):new TextDecoder(u).decode(r)}static shouldDecodeOnFallback(r){return!X.isBrowser()&&r==="ISO-8859-1"}static encode(r,a){const u=this.encodingName(a);return this.customEncoder?this.customEncoder(r,u):typeof TextEncoder=="undefined"?this.encodeFallback(r):new TextEncoder().encode(r)}static isBrowser(){return typeof window!="undefined"&&{}.toString.call(window)==="[object Window]"}static encodingName(r){return typeof r=="string"?r:r.getName()}static encodingCharacterSet(r){return r instanceof B?r:B.getCharacterSetECIByName(r)}static decodeFallback(r,a){const u=this.encodingCharacterSet(a);if(X.isDecodeFallbackSupported(u)){let d="";for(let h=0,g=r.length;h<g;h++){let b=r[h].toString(16);b.length<2&&(b="0"+b),d+="%"+b}return decodeURIComponent(d)}if(u.equals(B.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(r.buffer));throw new Y(`Encoding ${this.encodingName(a)} not supported by fallback.`)}static isDecodeFallbackSupported(r){return r.equals(B.UTF8)||r.equals(B.ISO8859_1)||r.equals(B.ASCII)}static encodeFallback(r){const u=btoa(unescape(encodeURIComponent(r))).split(""),d=[];for(let h=0;h<u.length;h++)d.push(u[h].charCodeAt(0));return new Uint8Array(d)}}class K{static castAsNonUtf8Char(r,a=null){const u=a?a.getName():this.ISO88591;return X.decode(new Uint8Array([r]),u)}static guessEncoding(r,a){if(a!=null&&a.get(D.CHARACTER_SET)!==void 0)return a.get(D.CHARACTER_SET).toString();const u=r.length;let d=!0,h=!0,g=!0,b=0,C=0,A=0,L=0,U=0,Z=0,se=0,ye=0,Ce=0,Oe=0,Ke=0;const ft=r.length>3&&r[0]===239&&r[1]===187&&r[2]===191;for(let ht=0;ht<u&&(d||h||g);ht++){const lt=r[ht]&255;g&&(b>0?(lt&128)===0?g=!1:b--:(lt&128)!==0&&((lt&64)===0?g=!1:(b++,(lt&32)===0?C++:(b++,(lt&16)===0?A++:(b++,(lt&8)===0?L++:g=!1))))),d&&(lt>127&<<160?d=!1:lt>159&&(lt<192||lt===215||lt===247)&&Ke++),h&&(U>0?lt<64||lt===127||lt>252?h=!1:U--:lt===128||lt===160||lt>239?h=!1:lt>160&<<224?(Z++,ye=0,se++,se>Ce&&(Ce=se)):lt>127?(U++,se=0,ye++,ye>Oe&&(Oe=ye)):(se=0,ye=0))}return g&&b>0&&(g=!1),h&&U>0&&(h=!1),g&&(ft||C+A+L>0)?K.UTF8:h&&(K.ASSUME_SHIFT_JIS||Ce>=3||Oe>=3)?K.SHIFT_JIS:d&&h?Ce===2&&Z===2||Ke*10>=u?K.SHIFT_JIS:K.ISO88591:d?K.ISO88591:h?K.SHIFT_JIS:g?K.UTF8:K.PLATFORM_DEFAULT_ENCODING}static format(r,...a){let u=-1;function d(g,b,C,A,L,U){if(g==="%%")return"%";if(a[++u]===void 0)return;g=A?parseInt(A.substr(1)):void 0;let Z=L?parseInt(L.substr(1)):void 0,se;switch(U){case"s":se=a[u];break;case"c":se=a[u][0];break;case"f":se=parseFloat(a[u]).toFixed(g);break;case"p":se=parseFloat(a[u]).toPrecision(g);break;case"e":se=parseFloat(a[u]).toExponential(g);break;case"x":se=parseInt(a[u]).toString(Z||16);break;case"d":se=parseFloat(parseInt(a[u],Z||10).toPrecision(g)).toFixed(0);break}se=typeof se=="object"?JSON.stringify(se):(+se).toString(Z);let ye=parseInt(C),Ce=C&&C[0]+""=="0"?"0":" ";for(;se.length<ye;)se=b!==void 0?se+Ce:Ce+se;return se}let h=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return r.replace(h,d)}static getBytes(r,a){return X.encode(r,a)}static getCharCode(r,a=0){return r.charCodeAt(a)}static getCharAt(r){return String.fromCharCode(r)}}K.SHIFT_JIS=B.SJIS.getName(),K.GB2312="GB2312",K.ISO88591=B.ISO8859_1.getName(),K.EUC_JP="EUC_JP",K.UTF8=B.UTF8.getName(),K.PLATFORM_DEFAULT_ENCODING=K.UTF8,K.ASSUME_SHIFT_JIS=!1;class J{constructor(r=""){this.value=r}enableDecoding(r){return this.encoding=r,this}append(r){return typeof r=="string"?this.value+=r.toString():this.encoding?this.value+=K.castAsNonUtf8Char(r,this.encoding):this.value+=String.fromCharCode(r),this}appendChars(r,a,u){for(let d=a;a<a+u;d++)this.append(r[d]);return this}length(){return this.value.length}charAt(r){return this.value.charAt(r)}deleteCharAt(r){this.value=this.value.substr(0,r)+this.value.substring(r+1)}setCharAt(r,a){this.value=this.value.substr(0,r)+a+this.value.substr(r+1)}substring(r,a){return this.value.substring(r,a)}setLengthToZero(){this.value=""}toString(){return this.value}insert(r,a){this.value=this.value.substr(0,r)+a+this.value.substr(r+a.length)}}class G{constructor(r,a,u,d){if(this.width=r,this.height=a,this.rowSize=u,this.bits=d,a==null&&(a=r),this.height=a,r<1||a<1)throw new m("Both dimensions must be greater than 0");u==null&&(u=Math.floor((r+31)/32)),this.rowSize=u,d==null&&(this.bits=new Int32Array(this.rowSize*this.height))}static parseFromBooleanArray(r){const a=r.length,u=r[0].length,d=new G(u,a);for(let h=0;h<a;h++){const g=r[h];for(let b=0;b<u;b++)g[b]&&d.set(b,h)}return d}static parseFromString(r,a,u){if(r===null)throw new m("stringRepresentation cannot be null");const d=new Array(r.length);let h=0,g=0,b=-1,C=0,A=0;for(;A<r.length;)if(r.charAt(A)===`
|
||
`||r.charAt(A)==="\r"){if(h>g){if(b===-1)b=h-g;else if(h-g!==b)throw new m("row lengths do not match");g=h,C++}A++}else if(r.substring(A,A+a.length)===a)A+=a.length,d[h]=!0,h++;else if(r.substring(A,A+u.length)===u)A+=u.length,d[h]=!1,h++;else throw new m("illegal character encountered: "+r.substring(A));if(h>g){if(b===-1)b=h-g;else if(h-g!==b)throw new m("row lengths do not match");C++}const L=new G(b,C);for(let U=0;U<h;U++)d[U]&&L.set(Math.floor(U%b),Math.floor(U/b));return L}get(r,a){const u=a*this.rowSize+Math.floor(r/32);return(this.bits[u]>>>(r&31)&1)!==0}set(r,a){const u=a*this.rowSize+Math.floor(r/32);this.bits[u]|=1<<(r&31)&4294967295}unset(r,a){const u=a*this.rowSize+Math.floor(r/32);this.bits[u]&=~(1<<(r&31)&4294967295)}flip(r,a){const u=a*this.rowSize+Math.floor(r/32);this.bits[u]^=1<<(r&31)&4294967295}xor(r){if(this.width!==r.getWidth()||this.height!==r.getHeight()||this.rowSize!==r.getRowSize())throw new m("input matrix dimensions do not match");const a=new N(Math.floor(this.width/32)+1),u=this.rowSize,d=this.bits;for(let h=0,g=this.height;h<g;h++){const b=h*u,C=r.getRow(h,a).getBitArray();for(let A=0;A<u;A++)d[b+A]^=C[A]}}clear(){const r=this.bits,a=r.length;for(let u=0;u<a;u++)r[u]=0}setRegion(r,a,u,d){if(a<0||r<0)throw new m("Left and top must be nonnegative");if(d<1||u<1)throw new m("Height and width must be at least 1");const h=r+u,g=a+d;if(g>this.height||h>this.width)throw new m("The region must fit inside the matrix");const b=this.rowSize,C=this.bits;for(let A=a;A<g;A++){const L=A*b;for(let U=r;U<h;U++)C[L+Math.floor(U/32)]|=1<<(U&31)&4294967295}}getRow(r,a){a==null||a.getSize()<this.width?a=new N(this.width):a.clear();const u=this.rowSize,d=this.bits,h=r*u;for(let g=0;g<u;g++)a.setBulk(g*32,d[h+g]);return a}setRow(r,a){E.arraycopy(a.getBitArray(),0,this.bits,r*this.rowSize,this.rowSize)}rotate180(){const r=this.getWidth(),a=this.getHeight();let u=new N(r),d=new N(r);for(let h=0,g=Math.floor((a+1)/2);h<g;h++)u=this.getRow(h,u),d=this.getRow(a-1-h,d),u.reverse(),d.reverse(),this.setRow(h,d),this.setRow(a-1-h,u)}getEnclosingRectangle(){const r=this.width,a=this.height,u=this.rowSize,d=this.bits;let h=r,g=a,b=-1,C=-1;for(let A=0;A<a;A++)for(let L=0;L<u;L++){const U=d[A*u+L];if(U!==0){if(A<g&&(g=A),A>C&&(C=A),L*32<h){let Z=0;for(;(U<<31-Z&4294967295)===0;)Z++;L*32+Z<h&&(h=L*32+Z)}if(L*32+31>b){let Z=31;for(;U>>>Z===0;)Z--;L*32+Z>b&&(b=L*32+Z)}}}return b<h||C<g?null:Int32Array.from([h,g,b-h+1,C-g+1])}getTopLeftOnBit(){const r=this.rowSize,a=this.bits;let u=0;for(;u<a.length&&a[u]===0;)u++;if(u===a.length)return null;const d=u/r;let h=u%r*32;const g=a[u];let b=0;for(;(g<<31-b&4294967295)===0;)b++;return h+=b,Int32Array.from([h,d])}getBottomRightOnBit(){const r=this.rowSize,a=this.bits;let u=a.length-1;for(;u>=0&&a[u]===0;)u--;if(u<0)return null;const d=Math.floor(u/r);let h=Math.floor(u%r)*32;const g=a[u];let b=31;for(;g>>>b===0;)b--;return h+=b,Int32Array.from([h,d])}getWidth(){return this.width}getHeight(){return this.height}getRowSize(){return this.rowSize}equals(r){if(!(r instanceof G))return!1;const a=r;return this.width===a.width&&this.height===a.height&&this.rowSize===a.rowSize&&T.equals(this.bits,a.bits)}hashCode(){let r=this.width;return r=31*r+this.width,r=31*r+this.height,r=31*r+this.rowSize,r=31*r+T.hashCode(this.bits),r}toString(r="X ",a=" ",u=`
|
||
`){return this.buildToString(r,a,u)}buildToString(r,a,u){let d=new J;for(let h=0,g=this.height;h<g;h++){for(let b=0,C=this.width;b<C;b++)d.append(this.get(b,h)?r:a);d.append(u)}return d.toString()}clone(){return new G(this.width,this.height,this.rowSize,this.bits.slice())}}class z extends f{static getNotFoundInstance(){return new z}}z.kind="NotFoundException";class ee extends w{constructor(r){super(r),this.luminances=ee.EMPTY,this.buckets=new Int32Array(ee.LUMINANCE_BUCKETS)}getBlackRow(r,a){const u=this.getLuminanceSource(),d=u.getWidth();a==null||a.getSize()<d?a=new N(d):a.clear(),this.initArrays(d);const h=u.getRow(r,this.luminances),g=this.buckets;for(let C=0;C<d;C++)g[(h[C]&255)>>ee.LUMINANCE_SHIFT]++;const b=ee.estimateBlackPoint(g);if(d<3)for(let C=0;C<d;C++)(h[C]&255)<b&&a.set(C);else{let C=h[0]&255,A=h[1]&255;for(let L=1;L<d-1;L++){const U=h[L+1]&255;(A*4-C-U)/2<b&&a.set(L),C=A,A=U}}return a}getBlackMatrix(){const r=this.getLuminanceSource(),a=r.getWidth(),u=r.getHeight(),d=new G(a,u);this.initArrays(a);const h=this.buckets;for(let C=1;C<5;C++){const A=Math.floor(u*C/5),L=r.getRow(A,this.luminances),U=Math.floor(a*4/5);for(let Z=Math.floor(a/5);Z<U;Z++){const se=L[Z]&255;h[se>>ee.LUMINANCE_SHIFT]++}}const g=ee.estimateBlackPoint(h),b=r.getMatrix();for(let C=0;C<u;C++){const A=C*a;for(let L=0;L<a;L++)(b[A+L]&255)<g&&d.set(L,C)}return d}createBinarizer(r){return new ee(r)}initArrays(r){this.luminances.length<r&&(this.luminances=new Uint8ClampedArray(r));const a=this.buckets;for(let u=0;u<ee.LUMINANCE_BUCKETS;u++)a[u]=0}static estimateBlackPoint(r){const a=r.length;let u=0,d=0,h=0;for(let L=0;L<a;L++)r[L]>h&&(d=L,h=r[L]),r[L]>u&&(u=r[L]);let g=0,b=0;for(let L=0;L<a;L++){const U=L-d,Z=r[L]*U*U;Z>b&&(g=L,b=Z)}if(d>g){const L=d;d=g,g=L}if(g-d<=a/16)throw new z;let C=g-1,A=-1;for(let L=g-1;L>d;L--){const U=L-d,Z=U*U*(g-L)*(u-r[L]);Z>A&&(C=L,A=Z)}return C<<ee.LUMINANCE_SHIFT}}ee.LUMINANCE_BITS=5,ee.LUMINANCE_SHIFT=8-ee.LUMINANCE_BITS,ee.LUMINANCE_BUCKETS=1<<ee.LUMINANCE_BITS,ee.EMPTY=Uint8ClampedArray.from([0]);class j extends ee{constructor(r){super(r),this.matrix=null}getBlackMatrix(){if(this.matrix!==null)return this.matrix;const r=this.getLuminanceSource(),a=r.getWidth(),u=r.getHeight();if(a>=j.MINIMUM_DIMENSION&&u>=j.MINIMUM_DIMENSION){const d=r.getMatrix();let h=a>>j.BLOCK_SIZE_POWER;(a&j.BLOCK_SIZE_MASK)!==0&&h++;let g=u>>j.BLOCK_SIZE_POWER;(u&j.BLOCK_SIZE_MASK)!==0&&g++;const b=j.calculateBlackPoints(d,h,g,a,u),C=new G(a,u);j.calculateThresholdForBlock(d,h,g,a,u,b,C),this.matrix=C}else this.matrix=super.getBlackMatrix();return this.matrix}createBinarizer(r){return new j(r)}static calculateThresholdForBlock(r,a,u,d,h,g,b){const C=h-j.BLOCK_SIZE,A=d-j.BLOCK_SIZE;for(let L=0;L<u;L++){let U=L<<j.BLOCK_SIZE_POWER;U>C&&(U=C);const Z=j.cap(L,2,u-3);for(let se=0;se<a;se++){let ye=se<<j.BLOCK_SIZE_POWER;ye>A&&(ye=A);const Ce=j.cap(se,2,a-3);let Oe=0;for(let ft=-2;ft<=2;ft++){const ht=g[Z+ft];Oe+=ht[Ce-2]+ht[Ce-1]+ht[Ce]+ht[Ce+1]+ht[Ce+2]}const Ke=Oe/25;j.thresholdBlock(r,ye,U,Ke,d,b)}}}static cap(r,a,u){return r<a?a:r>u?u:r}static thresholdBlock(r,a,u,d,h,g){for(let b=0,C=u*h+a;b<j.BLOCK_SIZE;b++,C+=h)for(let A=0;A<j.BLOCK_SIZE;A++)(r[C+A]&255)<=d&&g.set(a+A,u+b)}static calculateBlackPoints(r,a,u,d,h){const g=h-j.BLOCK_SIZE,b=d-j.BLOCK_SIZE,C=new Array(u);for(let A=0;A<u;A++){C[A]=new Int32Array(a);let L=A<<j.BLOCK_SIZE_POWER;L>g&&(L=g);for(let U=0;U<a;U++){let Z=U<<j.BLOCK_SIZE_POWER;Z>b&&(Z=b);let se=0,ye=255,Ce=0;for(let Ke=0,ft=L*d+Z;Ke<j.BLOCK_SIZE;Ke++,ft+=d){for(let ht=0;ht<j.BLOCK_SIZE;ht++){const lt=r[ft+ht]&255;se+=lt,lt<ye&&(ye=lt),lt>Ce&&(Ce=lt)}if(Ce-ye>j.MIN_DYNAMIC_RANGE)for(Ke++,ft+=d;Ke<j.BLOCK_SIZE;Ke++,ft+=d)for(let ht=0;ht<j.BLOCK_SIZE;ht++)se+=r[ft+ht]&255}let Oe=se>>j.BLOCK_SIZE_POWER*2;if(Ce-ye<=j.MIN_DYNAMIC_RANGE&&(Oe=ye/2,A>0&&U>0)){const Ke=(C[A-1][U]+2*C[A][U-1]+C[A-1][U-1])/4;ye<Ke&&(Oe=Ke)}C[A][U]=Oe}}return C}}j.BLOCK_SIZE_POWER=3,j.BLOCK_SIZE=1<<j.BLOCK_SIZE_POWER,j.BLOCK_SIZE_MASK=j.BLOCK_SIZE-1,j.MINIMUM_DIMENSION=j.BLOCK_SIZE*5,j.MIN_DYNAMIC_RANGE=24;class V{constructor(r,a){this.width=r,this.height=a}getWidth(){return this.width}getHeight(){return this.height}isCropSupported(){return!1}crop(r,a,u,d){throw new Y("This luminance source does not support cropping.")}isRotateSupported(){return!1}rotateCounterClockwise(){throw new Y("This luminance source does not support rotation by 90 degrees.")}rotateCounterClockwise45(){throw new Y("This luminance source does not support rotation by 45 degrees.")}toString(){const r=new Uint8ClampedArray(this.width);let a=new J;for(let u=0;u<this.height;u++){const d=this.getRow(u,r);for(let h=0;h<this.width;h++){const g=d[h]&255;let b;g<64?b="#":g<128?b="+":g<192?b=".":b=" ",a.append(b)}a.append(`
|
||
`)}return a.toString()}}class q extends V{constructor(r){super(r.getWidth(),r.getHeight()),this.delegate=r}getRow(r,a){const u=this.delegate.getRow(r,a),d=this.getWidth();for(let h=0;h<d;h++)u[h]=255-(u[h]&255);return u}getMatrix(){const r=this.delegate.getMatrix(),a=this.getWidth()*this.getHeight(),u=new Uint8ClampedArray(a);for(let d=0;d<a;d++)u[d]=255-(r[d]&255);return u}isCropSupported(){return this.delegate.isCropSupported()}crop(r,a,u,d){return new q(this.delegate.crop(r,a,u,d))}isRotateSupported(){return this.delegate.isRotateSupported()}invert(){return this.delegate}rotateCounterClockwise(){return new q(this.delegate.rotateCounterClockwise())}rotateCounterClockwise45(){return new q(this.delegate.rotateCounterClockwise45())}}class ce extends V{constructor(r){super(r.width,r.height),this.canvas=r,this.tempCanvasElement=null,this.buffer=ce.makeBufferFromCanvasImageData(r)}static makeBufferFromCanvasImageData(r){const a=r.getContext("2d").getImageData(0,0,r.width,r.height);return ce.toGrayscaleBuffer(a.data,r.width,r.height)}static toGrayscaleBuffer(r,a,u){const d=new Uint8ClampedArray(a*u);for(let h=0,g=0,b=r.length;h<b;h+=4,g++){let C;if(r[h+3]===0)C=255;else{const L=r[h],U=r[h+1],Z=r[h+2];C=306*L+601*U+117*Z+512>>10}d[g]=C}return d}getRow(r,a){if(r<0||r>=this.getHeight())throw new m("Requested row is outside the image: "+r);const u=this.getWidth(),d=r*u;return a===null?a=this.buffer.slice(d,d+u):(a.length<u&&(a=new Uint8ClampedArray(u)),a.set(this.buffer.slice(d,d+u))),a}getMatrix(){return this.buffer}isCropSupported(){return!0}crop(r,a,u,d){return super.crop(r,a,u,d),this}isRotateSupported(){return!0}rotateCounterClockwise(){return this.rotate(-90),this}rotateCounterClockwise45(){return this.rotate(-45),this}getTempCanvasElement(){if(this.tempCanvasElement===null){const r=this.canvas.ownerDocument.createElement("canvas");r.width=this.canvas.width,r.height=this.canvas.height,this.tempCanvasElement=r}return this.tempCanvasElement}rotate(r){const a=this.getTempCanvasElement(),u=a.getContext("2d"),d=r*ce.DEGREE_TO_RADIANS,h=this.canvas.width,g=this.canvas.height,b=Math.ceil(Math.abs(Math.cos(d))*h+Math.abs(Math.sin(d))*g),C=Math.ceil(Math.abs(Math.sin(d))*h+Math.abs(Math.cos(d))*g);return a.width=b,a.height=C,u.translate(b/2,C/2),u.rotate(d),u.drawImage(this.canvas,h/-2,g/-2),this.buffer=ce.makeBufferFromCanvasImageData(a),this}invert(){return new q(this)}}ce.DEGREE_TO_RADIANS=Math.PI/180;class ue{constructor(r,a,u){this.deviceId=r,this.label=a,this.kind="videoinput",this.groupId=u||void 0}toJSON(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}}}var ne=(globalThis||Mo||self||window||void 0)&&(globalThis||Mo||self||window||void 0).__awaiter||function(H,r,a,u){function d(h){return h instanceof a?h:new a(function(g){g(h)})}return new(a||(a=Promise))(function(h,g){function b(L){try{A(u.next(L))}catch(U){g(U)}}function C(L){try{A(u.throw(L))}catch(U){g(U)}}function A(L){L.done?h(L.value):d(L.value).then(b,C)}A((u=u.apply(H,r||[])).next())})};class Se{constructor(r,a=500,u){this.reader=r,this.timeBetweenScansMillis=a,this._hints=u,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}get hasNavigator(){return typeof navigator!="undefined"}get isMediaDevicesSuported(){return this.hasNavigator&&!!navigator.mediaDevices}get canEnumerateDevices(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)}get timeBetweenDecodingAttempts(){return this._timeBetweenDecodingAttempts}set timeBetweenDecodingAttempts(r){this._timeBetweenDecodingAttempts=r<0?0:r}set hints(r){this._hints=r||null}get hints(){return this._hints}listVideoInputDevices(){return ne(this,void 0,void 0,function*(){if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");const r=yield navigator.mediaDevices.enumerateDevices(),a=[];for(const u of r){const d=u.kind==="video"?"videoinput":u.kind;if(d!=="videoinput")continue;const h=u.deviceId||u.id,g=u.label||`Video device ${a.length+1}`,b=u.groupId,C={deviceId:h,label:g,kind:d,groupId:b};a.push(C)}return a})}getVideoInputDevices(){return ne(this,void 0,void 0,function*(){return(yield this.listVideoInputDevices()).map(a=>new ue(a.deviceId,a.label))})}findDeviceById(r){return ne(this,void 0,void 0,function*(){const a=yield this.listVideoInputDevices();return a?a.find(u=>u.deviceId===r):null})}decodeFromInputVideoDevice(r,a){return ne(this,void 0,void 0,function*(){return yield this.decodeOnceFromVideoDevice(r,a)})}decodeOnceFromVideoDevice(r,a){return ne(this,void 0,void 0,function*(){this.reset();let u;r?u={deviceId:{exact:r}}:u={facingMode:"environment"};const d={video:u};return yield this.decodeOnceFromConstraints(d,a)})}decodeOnceFromConstraints(r,a){return ne(this,void 0,void 0,function*(){const u=yield navigator.mediaDevices.getUserMedia(r);return yield this.decodeOnceFromStream(u,a)})}decodeOnceFromStream(r,a){return ne(this,void 0,void 0,function*(){this.reset();const u=yield this.attachStreamToVideo(r,a);return yield this.decodeOnce(u)})}decodeFromInputVideoDeviceContinuously(r,a,u){return ne(this,void 0,void 0,function*(){return yield this.decodeFromVideoDevice(r,a,u)})}decodeFromVideoDevice(r,a,u){return ne(this,void 0,void 0,function*(){let d;r?d={deviceId:{exact:r}}:d={facingMode:"environment"};const h={video:d};return yield this.decodeFromConstraints(h,a,u)})}decodeFromConstraints(r,a,u){return ne(this,void 0,void 0,function*(){const d=yield navigator.mediaDevices.getUserMedia(r);return yield this.decodeFromStream(d,a,u)})}decodeFromStream(r,a,u){return ne(this,void 0,void 0,function*(){this.reset();const d=yield this.attachStreamToVideo(r,a);return yield this.decodeContinuously(d,u)})}stopAsyncDecode(){this._stopAsyncDecode=!0}stopContinuousDecode(){this._stopContinuousDecode=!0}attachStreamToVideo(r,a){return ne(this,void 0,void 0,function*(){const u=this.prepareVideoElement(a);return this.addVideoSource(u,r),this.videoElement=u,this.stream=r,yield this.playVideoOnLoadAsync(u),u})}playVideoOnLoadAsync(r){return new Promise((a,u)=>this.playVideoOnLoad(r,()=>a()))}playVideoOnLoad(r,a){this.videoEndedListener=()=>this.stopStreams(),this.videoCanPlayListener=()=>this.tryPlayVideo(r),r.addEventListener("ended",this.videoEndedListener),r.addEventListener("canplay",this.videoCanPlayListener),r.addEventListener("playing",a),this.tryPlayVideo(r)}isVideoPlaying(r){return r.currentTime>0&&!r.paused&&!r.ended&&r.readyState>2}tryPlayVideo(r){return ne(this,void 0,void 0,function*(){if(this.isVideoPlaying(r)){console.warn("Trying to play video that is already playing.");return}try{yield r.play()}catch{console.warn("It was not possible to play the video.")}})}getMediaElement(r,a){const u=document.getElementById(r);if(!u)throw new p(`element with id '${r}' not found`);if(u.nodeName.toLowerCase()!==a.toLowerCase())throw new p(`element with id '${r}' must be an ${a} element`);return u}decodeFromImage(r,a){if(!r&&!a)throw new p("either imageElement with a src set or an url must be provided");return a&&!r?this.decodeFromImageUrl(a):this.decodeFromImageElement(r)}decodeFromVideo(r,a){if(!r&&!a)throw new p("Either an element with a src set or an URL must be provided");return a&&!r?this.decodeFromVideoUrl(a):this.decodeFromVideoElement(r)}decodeFromVideoContinuously(r,a,u){if(r===void 0&&a===void 0)throw new p("Either an element with a src set or an URL must be provided");return a&&!r?this.decodeFromVideoUrlContinuously(a,u):this.decodeFromVideoElementContinuously(r,u)}decodeFromImageElement(r){if(!r)throw new p("An image element must be provided.");this.reset();const a=this.prepareImageElement(r);this.imageElement=a;let u;return this.isImageLoaded(a)?u=this.decodeOnce(a,!1,!0):u=this._decodeOnLoadImage(a),u}decodeFromVideoElement(r){const a=this._decodeFromVideoElementSetup(r);return this._decodeOnLoadVideo(a)}decodeFromVideoElementContinuously(r,a){const u=this._decodeFromVideoElementSetup(r);return this._decodeOnLoadVideoContinuously(u,a)}_decodeFromVideoElementSetup(r){if(!r)throw new p("A video element must be provided.");this.reset();const a=this.prepareVideoElement(r);return this.videoElement=a,a}decodeFromImageUrl(r){if(!r)throw new p("An URL must be provided.");this.reset();const a=this.prepareImageElement();this.imageElement=a;const u=this._decodeOnLoadImage(a);return a.src=r,u}decodeFromVideoUrl(r){if(!r)throw new p("An URL must be provided.");this.reset();const a=this.prepareVideoElement(),u=this.decodeFromVideoElement(a);return a.src=r,u}decodeFromVideoUrlContinuously(r,a){if(!r)throw new p("An URL must be provided.");this.reset();const u=this.prepareVideoElement(),d=this.decodeFromVideoElementContinuously(u,a);return u.src=r,d}_decodeOnLoadImage(r){return new Promise((a,u)=>{this.imageLoadedListener=()=>this.decodeOnce(r,!1,!0).then(a,u),r.addEventListener("load",this.imageLoadedListener)})}_decodeOnLoadVideo(r){return ne(this,void 0,void 0,function*(){return yield this.playVideoOnLoadAsync(r),yield this.decodeOnce(r)})}_decodeOnLoadVideoContinuously(r,a){return ne(this,void 0,void 0,function*(){yield this.playVideoOnLoadAsync(r),this.decodeContinuously(r,a)})}isImageLoaded(r){return!(!r.complete||r.naturalWidth===0)}prepareImageElement(r){let a;return typeof r=="undefined"&&(a=document.createElement("img"),a.width=200,a.height=200),typeof r=="string"&&(a=this.getMediaElement(r,"img")),r instanceof HTMLImageElement&&(a=r),a}prepareVideoElement(r){let a;return!r&&typeof document!="undefined"&&(a=document.createElement("video"),a.width=200,a.height=200),typeof r=="string"&&(a=this.getMediaElement(r,"video")),r instanceof HTMLVideoElement&&(a=r),a.setAttribute("autoplay","true"),a.setAttribute("muted","true"),a.setAttribute("playsinline","true"),a}decodeOnce(r,a=!0,u=!0){this._stopAsyncDecode=!1;const d=(h,g)=>{if(this._stopAsyncDecode){g(new z("Video stream has ended before any code could be detected.")),this._stopAsyncDecode=void 0;return}try{const b=this.decode(r);h(b)}catch(b){const C=a&&b instanceof z,L=(b instanceof v||b instanceof x)&&u;if(C||L)return setTimeout(d,this._timeBetweenDecodingAttempts,h,g);g(b)}};return new Promise((h,g)=>d(h,g))}decodeContinuously(r,a){this._stopContinuousDecode=!1;const u=()=>{if(this._stopContinuousDecode){this._stopContinuousDecode=void 0;return}try{const d=this.decode(r);a(d,null),setTimeout(u,this.timeBetweenScansMillis)}catch(d){a(null,d);const h=d instanceof v||d instanceof x,g=d instanceof z;(h||g)&&setTimeout(u,this._timeBetweenDecodingAttempts)}};u()}decode(r){const a=this.createBinaryBitmap(r);return this.decodeBitmap(a)}createBinaryBitmap(r){const a=this.getCaptureCanvasContext(r);this.drawImageOnCanvas(a,r);const u=this.getCaptureCanvas(r),d=new ce(u),h=new j(d);return new y(h)}getCaptureCanvasContext(r){if(!this.captureCanvasContext){const u=this.getCaptureCanvas(r).getContext("2d");this.captureCanvasContext=u}return this.captureCanvasContext}getCaptureCanvas(r){if(!this.captureCanvas){const a=this.createCaptureCanvas(r);this.captureCanvas=a}return this.captureCanvas}drawImageOnCanvas(r,a){r.drawImage(a,0,0)}decodeBitmap(r){return this.reader.decode(r,this._hints)}createCaptureCanvas(r){if(typeof document=="undefined")return this._destroyCaptureCanvas(),null;const a=document.createElement("canvas");let u,d;return typeof r!="undefined"&&(r instanceof HTMLVideoElement?(u=r.videoWidth,d=r.videoHeight):r instanceof HTMLImageElement&&(u=r.naturalWidth||r.width,d=r.naturalHeight||r.height)),a.style.width=u+"px",a.style.height=d+"px",a.width=u,a.height=d,a}stopStreams(){this.stream&&(this.stream.getVideoTracks().forEach(r=>r.stop()),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()}reset(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()}_destroyVideoElement(){!this.videoElement||(typeof this.videoEndedListener!="undefined"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener!="undefined"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener!="undefined"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)}_destroyImageElement(){!this.imageElement||(this.imageLoadedListener!==void 0&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)}_destroyCaptureCanvas(){this.captureCanvasContext=void 0,this.captureCanvas=void 0}addVideoSource(r,a){try{r.srcObject=a}catch{r.src=URL.createObjectURL(a)}}cleanVideoSource(r){try{r.srcObject=null}catch{r.src=""}this.videoElement.removeAttribute("src")}}class Ee{constructor(r,a,u=a==null?0:8*a.length,d,h,g=E.currentTimeMillis()){this.text=r,this.rawBytes=a,this.numBits=u,this.resultPoints=d,this.format=h,this.timestamp=g,this.text=r,this.rawBytes=a,u==null?this.numBits=a==null?0:8*a.length:this.numBits=u,this.resultPoints=d,this.format=h,this.resultMetadata=null,g==null?this.timestamp=E.currentTimeMillis():this.timestamp=g}getText(){return this.text}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}getResultPoints(){return this.resultPoints}getBarcodeFormat(){return this.format}getResultMetadata(){return this.resultMetadata}putMetadata(r,a){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(r,a)}putAllMetadata(r){r!==null&&(this.resultMetadata===null?this.resultMetadata=r:this.resultMetadata=new Map(r))}addResultPoints(r){const a=this.resultPoints;if(a===null)this.resultPoints=r;else if(r!==null&&r.length>0){const u=new Array(a.length+r.length);E.arraycopy(a,0,u,0,a.length),E.arraycopy(r,0,u,a.length,r.length),this.resultPoints=u}}getTimestamp(){return this.timestamp}toString(){return this.text}}var qe;(function(H){H[H.AZTEC=0]="AZTEC",H[H.CODABAR=1]="CODABAR",H[H.CODE_39=2]="CODE_39",H[H.CODE_93=3]="CODE_93",H[H.CODE_128=4]="CODE_128",H[H.DATA_MATRIX=5]="DATA_MATRIX",H[H.EAN_8=6]="EAN_8",H[H.EAN_13=7]="EAN_13",H[H.ITF=8]="ITF",H[H.MAXICODE=9]="MAXICODE",H[H.PDF_417=10]="PDF_417",H[H.QR_CODE=11]="QR_CODE",H[H.RSS_14=12]="RSS_14",H[H.RSS_EXPANDED=13]="RSS_EXPANDED",H[H.UPC_A=14]="UPC_A",H[H.UPC_E=15]="UPC_E",H[H.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(qe||(qe={}));var xe=qe,pe;(function(H){H[H.OTHER=0]="OTHER",H[H.ORIENTATION=1]="ORIENTATION",H[H.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",H[H.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",H[H.ISSUE_NUMBER=4]="ISSUE_NUMBER",H[H.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",H[H.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",H[H.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",H[H.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",H[H.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",H[H.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(pe||(pe={}));var Me=pe;class We{constructor(r,a,u,d,h=-1,g=-1){this.rawBytes=r,this.text=a,this.byteSegments=u,this.ecLevel=d,this.structuredAppendSequenceNumber=h,this.structuredAppendParity=g,this.numBits=r==null?0:8*r.length}getRawBytes(){return this.rawBytes}getNumBits(){return this.numBits}setNumBits(r){this.numBits=r}getText(){return this.text}getByteSegments(){return this.byteSegments}getECLevel(){return this.ecLevel}getErrorsCorrected(){return this.errorsCorrected}setErrorsCorrected(r){this.errorsCorrected=r}getErasures(){return this.erasures}setErasures(r){this.erasures=r}getOther(){return this.other}setOther(r){this.other=r}hasStructuredAppend(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0}getStructuredAppendParity(){return this.structuredAppendParity}getStructuredAppendSequenceNumber(){return this.structuredAppendSequenceNumber}}class ze{exp(r){return this.expTable[r]}log(r){if(r===0)throw new m;return this.logTable[r]}static addOrSubtract(r,a){return r^a}}class Ze{constructor(r,a){if(a.length===0)throw new m;this.field=r;const u=a.length;if(u>1&&a[0]===0){let d=1;for(;d<u&&a[d]===0;)d++;d===u?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(u-d),E.arraycopy(a,d,this.coefficients,0,this.coefficients.length))}else this.coefficients=a}getCoefficients(){return this.coefficients}getDegree(){return this.coefficients.length-1}isZero(){return this.coefficients[0]===0}getCoefficient(r){return this.coefficients[this.coefficients.length-1-r]}evaluateAt(r){if(r===0)return this.getCoefficient(0);const a=this.coefficients;let u;if(r===1){u=0;for(let g=0,b=a.length;g!==b;g++){const C=a[g];u=ze.addOrSubtract(u,C)}return u}u=a[0];const d=a.length,h=this.field;for(let g=1;g<d;g++)u=ze.addOrSubtract(h.multiply(r,u),a[g]);return u}addOrSubtract(r){if(!this.field.equals(r.field))throw new m("GenericGFPolys do not have same GenericGF field");if(this.isZero())return r;if(r.isZero())return this;let a=this.coefficients,u=r.coefficients;if(a.length>u.length){const g=a;a=u,u=g}let d=new Int32Array(u.length);const h=u.length-a.length;E.arraycopy(u,0,d,0,h);for(let g=h;g<u.length;g++)d[g]=ze.addOrSubtract(a[g-h],u[g]);return new Ze(this.field,d)}multiply(r){if(!this.field.equals(r.field))throw new m("GenericGFPolys do not have same GenericGF field");if(this.isZero()||r.isZero())return this.field.getZero();const a=this.coefficients,u=a.length,d=r.coefficients,h=d.length,g=new Int32Array(u+h-1),b=this.field;for(let C=0;C<u;C++){const A=a[C];for(let L=0;L<h;L++)g[C+L]=ze.addOrSubtract(g[C+L],b.multiply(A,d[L]))}return new Ze(b,g)}multiplyScalar(r){if(r===0)return this.field.getZero();if(r===1)return this;const a=this.coefficients.length,u=this.field,d=new Int32Array(a),h=this.coefficients;for(let g=0;g<a;g++)d[g]=u.multiply(h[g],r);return new Ze(u,d)}multiplyByMonomial(r,a){if(r<0)throw new m;if(a===0)return this.field.getZero();const u=this.coefficients,d=u.length,h=new Int32Array(d+r),g=this.field;for(let b=0;b<d;b++)h[b]=g.multiply(u[b],a);return new Ze(g,h)}divide(r){if(!this.field.equals(r.field))throw new m("GenericGFPolys do not have same GenericGF field");if(r.isZero())throw new m("Divide by 0");const a=this.field;let u=a.getZero(),d=this;const h=r.getCoefficient(r.getDegree()),g=a.inverse(h);for(;d.getDegree()>=r.getDegree()&&!d.isZero();){const b=d.getDegree()-r.getDegree(),C=a.multiply(d.getCoefficient(d.getDegree()),g),A=r.multiplyByMonomial(b,C),L=a.buildMonomial(b,C);u=u.addOrSubtract(L),d=d.addOrSubtract(A)}return[u,d]}toString(){let r="";for(let a=this.getDegree();a>=0;a--){let u=this.getCoefficient(a);if(u!==0){if(u<0?(r+=" - ",u=-u):r.length>0&&(r+=" + "),a===0||u!==1){const d=this.field.log(u);d===0?r+="1":d===1?r+="a":(r+="a^",r+=d)}a!==0&&(a===1?r+="x":(r+="x^",r+=a))}}return r}}class mt extends f{}mt.kind="ArithmeticException";class ot extends ze{constructor(r,a,u){super(),this.primitive=r,this.size=a,this.generatorBase=u;const d=new Int32Array(a);let h=1;for(let b=0;b<a;b++)d[b]=h,h*=2,h>=a&&(h^=r,h&=a-1);this.expTable=d;const g=new Int32Array(a);for(let b=0;b<a-1;b++)g[d[b]]=b;this.logTable=g,this.zero=new Ze(this,Int32Array.from([0])),this.one=new Ze(this,Int32Array.from([1]))}getZero(){return this.zero}getOne(){return this.one}buildMonomial(r,a){if(r<0)throw new m;if(a===0)return this.zero;const u=new Int32Array(r+1);return u[0]=a,new Ze(this,u)}inverse(r){if(r===0)throw new mt;return this.expTable[this.size-this.logTable[r]-1]}multiply(r,a){return r===0||a===0?0:this.expTable[(this.logTable[r]+this.logTable[a])%(this.size-1)]}getSize(){return this.size}getGeneratorBase(){return this.generatorBase}toString(){return"GF(0x"+_.toHexString(this.primitive)+","+this.size+")"}equals(r){return r===this}}ot.AZTEC_DATA_12=new ot(4201,4096,1),ot.AZTEC_DATA_10=new ot(1033,1024,1),ot.AZTEC_DATA_6=new ot(67,64,1),ot.AZTEC_PARAM=new ot(19,16,1),ot.QR_CODE_FIELD_256=new ot(285,256,0),ot.DATA_MATRIX_FIELD_256=new ot(301,256,1),ot.AZTEC_DATA_8=ot.DATA_MATRIX_FIELD_256,ot.MAXICODE_FIELD_64=ot.AZTEC_DATA_6;class te extends f{}te.kind="ReedSolomonException";class de extends f{}de.kind="IllegalStateException";class Ne{constructor(r){this.field=r}decode(r,a){const u=this.field,d=new Ze(u,r),h=new Int32Array(a);let g=!0;for(let se=0;se<a;se++){const ye=d.evaluateAt(u.exp(se+u.getGeneratorBase()));h[h.length-1-se]=ye,ye!==0&&(g=!1)}if(g)return;const b=new Ze(u,h),C=this.runEuclideanAlgorithm(u.buildMonomial(a,1),b,a),A=C[0],L=C[1],U=this.findErrorLocations(A),Z=this.findErrorMagnitudes(L,U);for(let se=0;se<U.length;se++){const ye=r.length-1-u.log(U[se]);if(ye<0)throw new te("Bad error location");r[ye]=ot.addOrSubtract(r[ye],Z[se])}}runEuclideanAlgorithm(r,a,u){if(r.getDegree()<a.getDegree()){const se=r;r=a,a=se}const d=this.field;let h=r,g=a,b=d.getZero(),C=d.getOne();for(;g.getDegree()>=(u/2|0);){let se=h,ye=b;if(h=g,b=C,h.isZero())throw new te("r_{i-1} was zero");g=se;let Ce=d.getZero();const Oe=h.getCoefficient(h.getDegree()),Ke=d.inverse(Oe);for(;g.getDegree()>=h.getDegree()&&!g.isZero();){const ft=g.getDegree()-h.getDegree(),ht=d.multiply(g.getCoefficient(g.getDegree()),Ke);Ce=Ce.addOrSubtract(d.buildMonomial(ft,ht)),g=g.addOrSubtract(h.multiplyByMonomial(ft,ht))}if(C=Ce.multiply(b).addOrSubtract(ye),g.getDegree()>=h.getDegree())throw new de("Division algorithm failed to reduce polynomial?")}const A=C.getCoefficient(0);if(A===0)throw new te("sigmaTilde(0) was zero");const L=d.inverse(A),U=C.multiplyScalar(L),Z=g.multiplyScalar(L);return[U,Z]}findErrorLocations(r){const a=r.getDegree();if(a===1)return Int32Array.from([r.getCoefficient(1)]);const u=new Int32Array(a);let d=0;const h=this.field;for(let g=1;g<h.getSize()&&d<a;g++)r.evaluateAt(g)===0&&(u[d]=h.inverse(g),d++);if(d!==a)throw new te("Error locator degree does not match number of roots");return u}findErrorMagnitudes(r,a){const u=a.length,d=new Int32Array(u),h=this.field;for(let g=0;g<u;g++){const b=h.inverse(a[g]);let C=1;for(let A=0;A<u;A++)if(g!==A){const L=h.multiply(a[A],b),U=(L&1)===0?L|1:L&-2;C=h.multiply(C,U)}d[g]=h.multiply(r.evaluateAt(b),h.inverse(C)),h.getGeneratorBase()!==0&&(d[g]=h.multiply(d[g],b))}return d}}var De;(function(H){H[H.UPPER=0]="UPPER",H[H.LOWER=1]="LOWER",H[H.MIXED=2]="MIXED",H[H.DIGIT=3]="DIGIT",H[H.PUNCT=4]="PUNCT",H[H.BINARY=5]="BINARY"})(De||(De={}));class ke{decode(r){this.ddata=r;let a=r.getBits(),u=this.extractBits(a),d=this.correctBits(u),h=ke.convertBoolArrayToByteArray(d),g=ke.getEncodedData(d),b=new We(h,g,null,null);return b.setNumBits(d.length),b}static highLevelDecode(r){return this.getEncodedData(r)}static getEncodedData(r){let a=r.length,u=De.UPPER,d=De.UPPER,h="",g=0;for(;g<a;)if(d===De.BINARY){if(a-g<5)break;let b=ke.readCode(r,g,5);if(g+=5,b===0){if(a-g<11)break;b=ke.readCode(r,g,11)+31,g+=11}for(let C=0;C<b;C++){if(a-g<8){g=a;break}const A=ke.readCode(r,g,8);h+=K.castAsNonUtf8Char(A),g+=8}d=u}else{let b=d===De.DIGIT?4:5;if(a-g<b)break;let C=ke.readCode(r,g,b);g+=b;let A=ke.getCharacter(d,C);A.startsWith("CTRL_")?(u=d,d=ke.getTable(A.charAt(5)),A.charAt(6)==="L"&&(u=d)):(h+=A,d=u)}return h}static getTable(r){switch(r){case"L":return De.LOWER;case"P":return De.PUNCT;case"M":return De.MIXED;case"D":return De.DIGIT;case"B":return De.BINARY;case"U":default:return De.UPPER}}static getCharacter(r,a){switch(r){case De.UPPER:return ke.UPPER_TABLE[a];case De.LOWER:return ke.LOWER_TABLE[a];case De.MIXED:return ke.MIXED_TABLE[a];case De.PUNCT:return ke.PUNCT_TABLE[a];case De.DIGIT:return ke.DIGIT_TABLE[a];default:throw new de("Bad table")}}correctBits(r){let a,u;this.ddata.getNbLayers()<=2?(u=6,a=ot.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(u=8,a=ot.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(u=10,a=ot.AZTEC_DATA_10):(u=12,a=ot.AZTEC_DATA_12);let d=this.ddata.getNbDatablocks(),h=r.length/u;if(h<d)throw new x;let g=r.length%u,b=new Int32Array(h);for(let Z=0;Z<h;Z++,g+=u)b[Z]=ke.readCode(r,g,u);try{new Ne(a).decode(b,h-d)}catch(Z){throw new x(Z)}let C=(1<<u)-1,A=0;for(let Z=0;Z<d;Z++){let se=b[Z];if(se===0||se===C)throw new x;(se===1||se===C-1)&&A++}let L=new Array(d*u-A),U=0;for(let Z=0;Z<d;Z++){let se=b[Z];if(se===1||se===C-1)L.fill(se>1,U,U+u-1),U+=u-1;else for(let ye=u-1;ye>=0;--ye)L[U++]=(se&1<<ye)!==0}return L}extractBits(r){let a=this.ddata.isCompact(),u=this.ddata.getNbLayers(),d=(a?11:14)+u*4,h=new Int32Array(d),g=new Array(this.totalBitsInLayer(u,a));if(a)for(let b=0;b<h.length;b++)h[b]=b;else{let b=d+1+2*_.truncDivision(_.truncDivision(d,2)-1,15),C=d/2,A=_.truncDivision(b,2);for(let L=0;L<C;L++){let U=L+_.truncDivision(L,15);h[C-L-1]=A-U-1,h[C+L]=A+U+1}}for(let b=0,C=0;b<u;b++){let A=(u-b)*4+(a?9:12),L=b*2,U=d-1-L;for(let Z=0;Z<A;Z++){let se=Z*2;for(let ye=0;ye<2;ye++)g[C+se+ye]=r.get(h[L+ye],h[L+Z]),g[C+2*A+se+ye]=r.get(h[L+Z],h[U-ye]),g[C+4*A+se+ye]=r.get(h[U-ye],h[U-Z]),g[C+6*A+se+ye]=r.get(h[U-Z],h[L+ye])}C+=A*8}return g}static readCode(r,a,u){let d=0;for(let h=a;h<a+u;h++)d<<=1,r[h]&&(d|=1);return d}static readByte(r,a){let u=r.length-a;return u>=8?ke.readCode(r,a,8):ke.readCode(r,a,u)<<8-u}static convertBoolArrayToByteArray(r){let a=new Uint8Array((r.length+7)/8);for(let u=0;u<a.length;u++)a[u]=ke.readByte(r,8*u);return a}totalBitsInLayer(r,a){return((a?88:112)+16*r)*r}}ke.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],ke.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],ke.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b"," ",`
|
||
`,"\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],ke.PUNCT_TABLE=["","\r",`\r
|
||
`,". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],ke.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"];class Ve{constructor(){}static round(r){return r===NaN?0:r<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:r>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:r+(r<0?-.5:.5)|0}static distance(r,a,u,d){const h=r-u,g=a-d;return Math.sqrt(h*h+g*g)}static sum(r){let a=0;for(let u=0,d=r.length;u!==d;u++)a+=r[u];return a}}class ie{static floatToIntBits(r){return r}}ie.MAX_VALUE=Number.MAX_SAFE_INTEGER;class re{constructor(r,a){this.x=r,this.y=a}getX(){return this.x}getY(){return this.y}equals(r){if(r instanceof re){const a=r;return this.x===a.x&&this.y===a.y}return!1}hashCode(){return 31*ie.floatToIntBits(this.x)+ie.floatToIntBits(this.y)}toString(){return"("+this.x+","+this.y+")"}static orderBestPatterns(r){const a=this.distance(r[0],r[1]),u=this.distance(r[1],r[2]),d=this.distance(r[0],r[2]);let h,g,b;if(u>=a&&u>=d?(g=r[0],h=r[1],b=r[2]):d>=u&&d>=a?(g=r[1],h=r[0],b=r[2]):(g=r[2],h=r[0],b=r[1]),this.crossProductZ(h,g,b)<0){const C=h;h=b,b=C}r[0]=h,r[1]=g,r[2]=b}static distance(r,a){return Ve.distance(r.x,r.y,a.x,a.y)}static crossProductZ(r,a,u){const d=a.x,h=a.y;return(u.x-d)*(r.y-h)-(u.y-h)*(r.x-d)}}class ge{constructor(r,a){this.bits=r,this.points=a}getBits(){return this.bits}getPoints(){return this.points}}class Te extends ge{constructor(r,a,u,d,h){super(r,a),this.compact=u,this.nbDatablocks=d,this.nbLayers=h}getNbLayers(){return this.nbLayers}getNbDatablocks(){return this.nbDatablocks}isCompact(){return this.compact}}class Je{constructor(r,a,u,d){this.image=r,this.height=r.getHeight(),this.width=r.getWidth(),a==null&&(a=Je.INIT_SIZE),u==null&&(u=r.getWidth()/2|0),d==null&&(d=r.getHeight()/2|0);const h=a/2|0;if(this.leftInit=u-h,this.rightInit=u+h,this.upInit=d-h,this.downInit=d+h,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new z}detect(){let r=this.leftInit,a=this.rightInit,u=this.upInit,d=this.downInit,h=!1,g=!0,b=!1,C=!1,A=!1,L=!1,U=!1;const Z=this.width,se=this.height;for(;g;){g=!1;let ye=!0;for(;(ye||!C)&&a<Z;)ye=this.containsBlackPoint(u,d,a,!1),ye?(a++,g=!0,C=!0):C||a++;if(a>=Z){h=!0;break}let Ce=!0;for(;(Ce||!A)&&d<se;)Ce=this.containsBlackPoint(r,a,d,!0),Ce?(d++,g=!0,A=!0):A||d++;if(d>=se){h=!0;break}let Oe=!0;for(;(Oe||!L)&&r>=0;)Oe=this.containsBlackPoint(u,d,r,!1),Oe?(r--,g=!0,L=!0):L||r--;if(r<0){h=!0;break}let Ke=!0;for(;(Ke||!U)&&u>=0;)Ke=this.containsBlackPoint(r,a,u,!0),Ke?(u--,g=!0,U=!0):U||u--;if(u<0){h=!0;break}g&&(b=!0)}if(!h&&b){const ye=a-r;let Ce=null;for(let ht=1;Ce===null&&ht<ye;ht++)Ce=this.getBlackPointOnSegment(r,d-ht,r+ht,d);if(Ce==null)throw new z;let Oe=null;for(let ht=1;Oe===null&&ht<ye;ht++)Oe=this.getBlackPointOnSegment(r,u+ht,r+ht,u);if(Oe==null)throw new z;let Ke=null;for(let ht=1;Ke===null&&ht<ye;ht++)Ke=this.getBlackPointOnSegment(a,u+ht,a-ht,u);if(Ke==null)throw new z;let ft=null;for(let ht=1;ft===null&&ht<ye;ht++)ft=this.getBlackPointOnSegment(a,d-ht,a-ht,d);if(ft==null)throw new z;return this.centerEdges(ft,Ce,Ke,Oe)}else throw new z}getBlackPointOnSegment(r,a,u,d){const h=Ve.round(Ve.distance(r,a,u,d)),g=(u-r)/h,b=(d-a)/h,C=this.image;for(let A=0;A<h;A++){const L=Ve.round(r+A*g),U=Ve.round(a+A*b);if(C.get(L,U))return new re(L,U)}return null}centerEdges(r,a,u,d){const h=r.getX(),g=r.getY(),b=a.getX(),C=a.getY(),A=u.getX(),L=u.getY(),U=d.getX(),Z=d.getY(),se=Je.CORR;return h<this.width/2?[new re(U-se,Z+se),new re(b+se,C+se),new re(A-se,L-se),new re(h+se,g-se)]:[new re(U+se,Z+se),new re(b+se,C-se),new re(A-se,L+se),new re(h-se,g-se)]}containsBlackPoint(r,a,u,d){const h=this.image;if(d){for(let g=r;g<=a;g++)if(h.get(g,u))return!0}else for(let g=r;g<=a;g++)if(h.get(u,g))return!0;return!1}}Je.INIT_SIZE=10,Je.CORR=1;class he{static checkAndNudgePoints(r,a){const u=r.getWidth(),d=r.getHeight();let h=!0;for(let g=0;g<a.length&&h;g+=2){const b=Math.floor(a[g]),C=Math.floor(a[g+1]);if(b<-1||b>u||C<-1||C>d)throw new z;h=!1,b===-1?(a[g]=0,h=!0):b===u&&(a[g]=u-1,h=!0),C===-1?(a[g+1]=0,h=!0):C===d&&(a[g+1]=d-1,h=!0)}h=!0;for(let g=a.length-2;g>=0&&h;g-=2){const b=Math.floor(a[g]),C=Math.floor(a[g+1]);if(b<-1||b>u||C<-1||C>d)throw new z;h=!1,b===-1?(a[g]=0,h=!0):b===u&&(a[g]=u-1,h=!0),C===-1?(a[g+1]=0,h=!0):C===d&&(a[g+1]=d-1,h=!0)}}}class He{constructor(r,a,u,d,h,g,b,C,A){this.a11=r,this.a21=a,this.a31=u,this.a12=d,this.a22=h,this.a32=g,this.a13=b,this.a23=C,this.a33=A}static quadrilateralToQuadrilateral(r,a,u,d,h,g,b,C,A,L,U,Z,se,ye,Ce,Oe){const Ke=He.quadrilateralToSquare(r,a,u,d,h,g,b,C);return He.squareToQuadrilateral(A,L,U,Z,se,ye,Ce,Oe).times(Ke)}transformPoints(r){const a=r.length,u=this.a11,d=this.a12,h=this.a13,g=this.a21,b=this.a22,C=this.a23,A=this.a31,L=this.a32,U=this.a33;for(let Z=0;Z<a;Z+=2){const se=r[Z],ye=r[Z+1],Ce=h*se+C*ye+U;r[Z]=(u*se+g*ye+A)/Ce,r[Z+1]=(d*se+b*ye+L)/Ce}}transformPointsWithValues(r,a){const u=this.a11,d=this.a12,h=this.a13,g=this.a21,b=this.a22,C=this.a23,A=this.a31,L=this.a32,U=this.a33,Z=r.length;for(let se=0;se<Z;se++){const ye=r[se],Ce=a[se],Oe=h*ye+C*Ce+U;r[se]=(u*ye+g*Ce+A)/Oe,a[se]=(d*ye+b*Ce+L)/Oe}}static squareToQuadrilateral(r,a,u,d,h,g,b,C){const A=r-u+h-b,L=a-d+g-C;if(A===0&&L===0)return new He(u-r,h-u,r,d-a,g-d,a,0,0,1);{const U=u-h,Z=b-h,se=d-g,ye=C-g,Ce=U*ye-Z*se,Oe=(A*ye-Z*L)/Ce,Ke=(U*L-A*se)/Ce;return new He(u-r+Oe*u,b-r+Ke*b,r,d-a+Oe*d,C-a+Ke*C,a,Oe,Ke,1)}}static quadrilateralToSquare(r,a,u,d,h,g,b,C){return He.squareToQuadrilateral(r,a,u,d,h,g,b,C).buildAdjoint()}buildAdjoint(){return new He(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)}times(r){return new He(this.a11*r.a11+this.a21*r.a12+this.a31*r.a13,this.a11*r.a21+this.a21*r.a22+this.a31*r.a23,this.a11*r.a31+this.a21*r.a32+this.a31*r.a33,this.a12*r.a11+this.a22*r.a12+this.a32*r.a13,this.a12*r.a21+this.a22*r.a22+this.a32*r.a23,this.a12*r.a31+this.a22*r.a32+this.a32*r.a33,this.a13*r.a11+this.a23*r.a12+this.a33*r.a13,this.a13*r.a21+this.a23*r.a22+this.a33*r.a23,this.a13*r.a31+this.a23*r.a32+this.a33*r.a33)}}class pt extends he{sampleGrid(r,a,u,d,h,g,b,C,A,L,U,Z,se,ye,Ce,Oe,Ke,ft,ht){const lt=He.quadrilateralToQuadrilateral(d,h,g,b,C,A,L,U,Z,se,ye,Ce,Oe,Ke,ft,ht);return this.sampleGridWithTransform(r,a,u,lt)}sampleGridWithTransform(r,a,u,d){if(a<=0||u<=0)throw new z;const h=new G(a,u),g=new Float32Array(2*a);for(let b=0;b<u;b++){const C=g.length,A=b+.5;for(let L=0;L<C;L+=2)g[L]=L/2+.5,g[L+1]=A;d.transformPoints(g),he.checkAndNudgePoints(r,g);try{for(let L=0;L<C;L+=2)r.get(Math.floor(g[L]),Math.floor(g[L+1]))&&h.set(L/2,b)}catch{throw new z}}return h}}class At{static setGridSampler(r){At.gridSampler=r}static getInstance(){return At.gridSampler}}At.gridSampler=new pt;class tt{constructor(r,a){this.x=r,this.y=a}toResultPoint(){return new re(this.getX(),this.getY())}getX(){return this.x}getY(){return this.y}}class we{constructor(r){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=r}detect(){return this.detectMirror(!1)}detectMirror(r){let a=this.getMatrixCenter(),u=this.getBullsEyeCorners(a);if(r){let g=u[0];u[0]=u[2],u[2]=g}this.extractParameters(u);let d=this.sampleGrid(this.image,u[this.shift%4],u[(this.shift+1)%4],u[(this.shift+2)%4],u[(this.shift+3)%4]),h=this.getMatrixCornerPoints(u);return new Te(d,h,this.compact,this.nbDataBlocks,this.nbLayers)}extractParameters(r){if(!this.isValidPoint(r[0])||!this.isValidPoint(r[1])||!this.isValidPoint(r[2])||!this.isValidPoint(r[3]))throw new z;let a=2*this.nbCenterLayers,u=new Int32Array([this.sampleLine(r[0],r[1],a),this.sampleLine(r[1],r[2],a),this.sampleLine(r[2],r[3],a),this.sampleLine(r[3],r[0],a)]);this.shift=this.getRotation(u,a);let d=0;for(let g=0;g<4;g++){let b=u[(this.shift+g)%4];this.compact?(d<<=7,d+=b>>1&127):(d<<=10,d+=(b>>2&31<<5)+(b>>1&31))}let h=this.getCorrectedParameterData(d,this.compact);this.compact?(this.nbLayers=(h>>6)+1,this.nbDataBlocks=(h&63)+1):(this.nbLayers=(h>>11)+1,this.nbDataBlocks=(h&2047)+1)}getRotation(r,a){let u=0;r.forEach((d,h,g)=>{let b=(d>>a-2<<1)+(d&1);u=(u<<3)+b}),u=((u&1)<<11)+(u>>1);for(let d=0;d<4;d++)if(_.bitCount(u^this.EXPECTED_CORNER_BITS[d])<=2)return d;throw new z}getCorrectedParameterData(r,a){let u,d;a?(u=7,d=2):(u=10,d=4);let h=u-d,g=new Int32Array(u);for(let C=u-1;C>=0;--C)g[C]=r&15,r>>=4;try{new Ne(ot.AZTEC_PARAM).decode(g,h)}catch{throw new z}let b=0;for(let C=0;C<d;C++)b=(b<<4)+g[C];return b}getBullsEyeCorners(r){let a=r,u=r,d=r,h=r,g=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){let U=this.getFirstDifferent(a,g,1,-1),Z=this.getFirstDifferent(u,g,1,1),se=this.getFirstDifferent(d,g,-1,1),ye=this.getFirstDifferent(h,g,-1,-1);if(this.nbCenterLayers>2){let Ce=this.distancePoint(ye,U)*this.nbCenterLayers/(this.distancePoint(h,a)*(this.nbCenterLayers+2));if(Ce<.75||Ce>1.25||!this.isWhiteOrBlackRectangle(U,Z,se,ye))break}a=U,u=Z,d=se,h=ye,g=!g}if(this.nbCenterLayers!==5&&this.nbCenterLayers!==7)throw new z;this.compact=this.nbCenterLayers===5;let b=new re(a.getX()+.5,a.getY()-.5),C=new re(u.getX()+.5,u.getY()+.5),A=new re(d.getX()-.5,d.getY()+.5),L=new re(h.getX()-.5,h.getY()-.5);return this.expandSquare([b,C,A,L],2*this.nbCenterLayers-3,2*this.nbCenterLayers)}getMatrixCenter(){let r,a,u,d;try{let b=new Je(this.image).detect();r=b[0],a=b[1],u=b[2],d=b[3]}catch{let C=this.image.getWidth()/2,A=this.image.getHeight()/2;r=this.getFirstDifferent(new tt(C+7,A-7),!1,1,-1).toResultPoint(),a=this.getFirstDifferent(new tt(C+7,A+7),!1,1,1).toResultPoint(),u=this.getFirstDifferent(new tt(C-7,A+7),!1,-1,1).toResultPoint(),d=this.getFirstDifferent(new tt(C-7,A-7),!1,-1,-1).toResultPoint()}let h=Ve.round((r.getX()+d.getX()+a.getX()+u.getX())/4),g=Ve.round((r.getY()+d.getY()+a.getY()+u.getY())/4);try{let b=new Je(this.image,15,h,g).detect();r=b[0],a=b[1],u=b[2],d=b[3]}catch{r=this.getFirstDifferent(new tt(h+7,g-7),!1,1,-1).toResultPoint(),a=this.getFirstDifferent(new tt(h+7,g+7),!1,1,1).toResultPoint(),u=this.getFirstDifferent(new tt(h-7,g+7),!1,-1,1).toResultPoint(),d=this.getFirstDifferent(new tt(h-7,g-7),!1,-1,-1).toResultPoint()}return h=Ve.round((r.getX()+d.getX()+a.getX()+u.getX())/4),g=Ve.round((r.getY()+d.getY()+a.getY()+u.getY())/4),new tt(h,g)}getMatrixCornerPoints(r){return this.expandSquare(r,2*this.nbCenterLayers,this.getDimension())}sampleGrid(r,a,u,d,h){let g=At.getInstance(),b=this.getDimension(),C=b/2-this.nbCenterLayers,A=b/2+this.nbCenterLayers;return g.sampleGrid(r,b,b,C,C,A,C,A,A,C,A,a.getX(),a.getY(),u.getX(),u.getY(),d.getX(),d.getY(),h.getX(),h.getY())}sampleLine(r,a,u){let d=0,h=this.distanceResultPoint(r,a),g=h/u,b=r.getX(),C=r.getY(),A=g*(a.getX()-r.getX())/h,L=g*(a.getY()-r.getY())/h;for(let U=0;U<u;U++)this.image.get(Ve.round(b+U*A),Ve.round(C+U*L))&&(d|=1<<u-U-1);return d}isWhiteOrBlackRectangle(r,a,u,d){let h=3;r=new tt(r.getX()-h,r.getY()+h),a=new tt(a.getX()-h,a.getY()-h),u=new tt(u.getX()+h,u.getY()-h),d=new tt(d.getX()+h,d.getY()+h);let g=this.getColor(d,r);if(g===0)return!1;let b=this.getColor(r,a);return b!==g||(b=this.getColor(a,u),b!==g)?!1:(b=this.getColor(u,d),b===g)}getColor(r,a){let u=this.distancePoint(r,a),d=(a.getX()-r.getX())/u,h=(a.getY()-r.getY())/u,g=0,b=r.getX(),C=r.getY(),A=this.image.get(r.getX(),r.getY()),L=Math.ceil(u);for(let Z=0;Z<L;Z++)b+=d,C+=h,this.image.get(Ve.round(b),Ve.round(C))!==A&&g++;let U=g/u;return U>.1&&U<.9?0:U<=.1===A?1:-1}getFirstDifferent(r,a,u,d){let h=r.getX()+u,g=r.getY()+d;for(;this.isValid(h,g)&&this.image.get(h,g)===a;)h+=u,g+=d;for(h-=u,g-=d;this.isValid(h,g)&&this.image.get(h,g)===a;)h+=u;for(h-=u;this.isValid(h,g)&&this.image.get(h,g)===a;)g+=d;return g-=d,new tt(h,g)}expandSquare(r,a,u){let d=u/(2*a),h=r[0].getX()-r[2].getX(),g=r[0].getY()-r[2].getY(),b=(r[0].getX()+r[2].getX())/2,C=(r[0].getY()+r[2].getY())/2,A=new re(b+d*h,C+d*g),L=new re(b-d*h,C-d*g);h=r[1].getX()-r[3].getX(),g=r[1].getY()-r[3].getY(),b=(r[1].getX()+r[3].getX())/2,C=(r[1].getY()+r[3].getY())/2;let U=new re(b+d*h,C+d*g),Z=new re(b-d*h,C-d*g);return[A,U,L,Z]}isValid(r,a){return r>=0&&r<this.image.getWidth()&&a>0&&a<this.image.getHeight()}isValidPoint(r){let a=Ve.round(r.getX()),u=Ve.round(r.getY());return this.isValid(a,u)}distancePoint(r,a){return Ve.distance(r.getX(),r.getY(),a.getX(),a.getY())}distanceResultPoint(r,a){return Ve.distance(r.getX(),r.getY(),a.getX(),a.getY())}getDimension(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(_.truncDivision(this.nbLayers-4,8)+1)+15}}class Fe{decode(r,a=null){let u=null,d=new we(r.getBlackMatrix()),h=null,g=null;try{let L=d.detectMirror(!1);h=L.getPoints(),this.reportFoundResultPoints(a,h),g=new ke().decode(L)}catch(L){u=L}if(g==null)try{let L=d.detectMirror(!0);h=L.getPoints(),this.reportFoundResultPoints(a,h),g=new ke().decode(L)}catch(L){throw u!=null?u:L}let b=new Ee(g.getText(),g.getRawBytes(),g.getNumBits(),h,xe.AZTEC,E.currentTimeMillis()),C=g.getByteSegments();C!=null&&b.putMetadata(Me.BYTE_SEGMENTS,C);let A=g.getECLevel();return A!=null&&b.putMetadata(Me.ERROR_CORRECTION_LEVEL,A),b}reportFoundResultPoints(r,a){if(r!=null){let u=r.get(D.NEED_RESULT_POINT_CALLBACK);u!=null&&a.forEach((d,h,g)=>{u.foundPossibleResultPoint(d)})}}reset(){}}class _e extends Se{constructor(r=500){super(new Fe,r)}}class Ye{decode(r,a){try{return this.doDecode(r,a)}catch{if(a&&a.get(D.TRY_HARDER)===!0&&r.isRotateSupported()){const h=r.rotateCounterClockwise(),g=this.doDecode(h,a),b=g.getResultMetadata();let C=270;b!==null&&b.get(Me.ORIENTATION)===!0&&(C=C+b.get(Me.ORIENTATION)%360),g.putMetadata(Me.ORIENTATION,C);const A=g.getResultPoints();if(A!==null){const L=h.getHeight();for(let U=0;U<A.length;U++)A[U]=new re(L-A[U].getY()-1,A[U].getX())}return g}else throw new z}}reset(){}doDecode(r,a){const u=r.getWidth(),d=r.getHeight();let h=new N(u);const g=a&&a.get(D.TRY_HARDER)===!0,b=Math.max(1,d>>(g?8:5));let C;g?C=d:C=15;const A=Math.trunc(d/2);for(let L=0;L<C;L++){const U=Math.trunc((L+1)/2),Z=(L&1)===0,se=A+b*(Z?U:-U);if(se<0||se>=d)break;try{h=r.getBlackRow(se,h)}catch{continue}for(let ye=0;ye<2;ye++){if(ye===1&&(h.reverse(),a&&a.get(D.NEED_RESULT_POINT_CALLBACK)===!0)){const Ce=new Map;a.forEach((Oe,Ke)=>Ce.set(Ke,Oe)),Ce.delete(D.NEED_RESULT_POINT_CALLBACK),a=Ce}try{const Ce=this.decodeRow(se,h,a);if(ye===1){Ce.putMetadata(Me.ORIENTATION,180);const Oe=Ce.getResultPoints();Oe!==null&&(Oe[0]=new re(u-Oe[0].getX()-1,Oe[0].getY()),Oe[1]=new re(u-Oe[1].getX()-1,Oe[1].getY()))}return Ce}catch{}}}throw new z}static recordPattern(r,a,u){const d=u.length;for(let A=0;A<d;A++)u[A]=0;const h=r.getSize();if(a>=h)throw new z;let g=!r.get(a),b=0,C=a;for(;C<h;){if(r.get(C)!==g)u[b]++;else{if(++b===d)break;u[b]=1,g=!g}C++}if(!(b===d||b===d-1&&C===h))throw new z}static recordPatternInReverse(r,a,u){let d=u.length,h=r.get(a);for(;a>0&&d>=0;)r.get(--a)!==h&&(d--,h=!h);if(d>=0)throw new z;Ye.recordPattern(r,a+1,u)}static patternMatchVariance(r,a,u){const d=r.length;let h=0,g=0;for(let A=0;A<d;A++)h+=r[A],g+=a[A];if(h<g)return Number.POSITIVE_INFINITY;const b=h/g;u*=b;let C=0;for(let A=0;A<d;A++){const L=r[A],U=a[A]*b,Z=L>U?L-U:U-L;if(Z>u)return Number.POSITIVE_INFINITY;C+=Z}return C/h}}class Le extends Ye{static findStartPattern(r){const a=r.getSize(),u=r.getNextSet(0);let d=0,h=Int32Array.from([0,0,0,0,0,0]),g=u,b=!1;const C=6;for(let A=u;A<a;A++)if(r.get(A)!==b)h[d]++;else{if(d===C-1){let L=Le.MAX_AVG_VARIANCE,U=-1;for(let Z=Le.CODE_START_A;Z<=Le.CODE_START_C;Z++){const se=Ye.patternMatchVariance(h,Le.CODE_PATTERNS[Z],Le.MAX_INDIVIDUAL_VARIANCE);se<L&&(L=se,U=Z)}if(U>=0&&r.isRange(Math.max(0,g-(A-g)/2),g,!1))return Int32Array.from([g,A,U]);g+=h[0]+h[1],h=h.slice(2,h.length-1),h[d-1]=0,h[d]=0,d--}else d++;h[d]=1,b=!b}throw new z}static decodeCode(r,a,u){Ye.recordPattern(r,u,a);let d=Le.MAX_AVG_VARIANCE,h=-1;for(let g=0;g<Le.CODE_PATTERNS.length;g++){const b=Le.CODE_PATTERNS[g],C=this.patternMatchVariance(a,b,Le.MAX_INDIVIDUAL_VARIANCE);C<d&&(d=C,h=g)}if(h>=0)return h;throw new z}decodeRow(r,a,u){const d=u&&u.get(D.ASSUME_GS1)===!0,h=Le.findStartPattern(a),g=h[2];let b=0;const C=new Uint8Array(20);C[b++]=g;let A;switch(g){case Le.CODE_START_A:A=Le.CODE_CODE_A;break;case Le.CODE_START_B:A=Le.CODE_CODE_B;break;case Le.CODE_START_C:A=Le.CODE_CODE_C;break;default:throw new x}let L=!1,U=!1,Z="",se=h[0],ye=h[1];const Ce=Int32Array.from([0,0,0,0,0,0]);let Oe=0,Ke=0,ft=g,ht=0,lt=!0,rn=!1,qt=!1;for(;!L;){const ua=U;switch(U=!1,Oe=Ke,Ke=Le.decodeCode(a,Ce,ye),C[b++]=Ke,Ke!==Le.CODE_STOP&&(lt=!0),Ke!==Le.CODE_STOP&&(ht++,ft+=ht*Ke),se=ye,ye+=Ce.reduce((_3,N3)=>_3+N3,0),Ke){case Le.CODE_START_A:case Le.CODE_START_B:case Le.CODE_START_C:throw new x}switch(A){case Le.CODE_CODE_A:if(Ke<64)qt===rn?Z+=String.fromCharCode(" ".charCodeAt(0)+Ke):Z+=String.fromCharCode(" ".charCodeAt(0)+Ke+128),qt=!1;else if(Ke<96)qt===rn?Z+=String.fromCharCode(Ke-64):Z+=String.fromCharCode(Ke+64),qt=!1;else switch(Ke!==Le.CODE_STOP&&(lt=!1),Ke){case Le.CODE_FNC_1:d&&(Z.length===0?Z+="]C1":Z+=String.fromCharCode(29));break;case Le.CODE_FNC_2:case Le.CODE_FNC_3:break;case Le.CODE_FNC_4_A:!rn&&qt?(rn=!0,qt=!1):rn&&qt?(rn=!1,qt=!1):qt=!0;break;case Le.CODE_SHIFT:U=!0,A=Le.CODE_CODE_B;break;case Le.CODE_CODE_B:A=Le.CODE_CODE_B;break;case Le.CODE_CODE_C:A=Le.CODE_CODE_C;break;case Le.CODE_STOP:L=!0;break}break;case Le.CODE_CODE_B:if(Ke<96)qt===rn?Z+=String.fromCharCode(" ".charCodeAt(0)+Ke):Z+=String.fromCharCode(" ".charCodeAt(0)+Ke+128),qt=!1;else switch(Ke!==Le.CODE_STOP&&(lt=!1),Ke){case Le.CODE_FNC_1:d&&(Z.length===0?Z+="]C1":Z+=String.fromCharCode(29));break;case Le.CODE_FNC_2:case Le.CODE_FNC_3:break;case Le.CODE_FNC_4_B:!rn&&qt?(rn=!0,qt=!1):rn&&qt?(rn=!1,qt=!1):qt=!0;break;case Le.CODE_SHIFT:U=!0,A=Le.CODE_CODE_A;break;case Le.CODE_CODE_A:A=Le.CODE_CODE_A;break;case Le.CODE_CODE_C:A=Le.CODE_CODE_C;break;case Le.CODE_STOP:L=!0;break}break;case Le.CODE_CODE_C:if(Ke<100)Ke<10&&(Z+="0"),Z+=Ke;else switch(Ke!==Le.CODE_STOP&&(lt=!1),Ke){case Le.CODE_FNC_1:d&&(Z.length===0?Z+="]C1":Z+=String.fromCharCode(29));break;case Le.CODE_CODE_A:A=Le.CODE_CODE_A;break;case Le.CODE_CODE_B:A=Le.CODE_CODE_B;break;case Le.CODE_STOP:L=!0;break}break}ua&&(A=A===Le.CODE_CODE_A?Le.CODE_CODE_B:Le.CODE_CODE_A)}const _o=ye-se;if(ye=a.getNextUnset(ye),!a.isRange(ye,Math.min(a.getSize(),ye+(ye-se)/2),!1))throw new z;if(ft-=ht*Oe,ft%103!==Oe)throw new v;const Er=Z.length;if(Er===0)throw new z;Er>0&<&&(A===Le.CODE_CODE_C?Z=Z.substring(0,Er-2):Z=Z.substring(0,Er-1));const No=(h[1]+h[0])/2,yn=se+_o/2,oo=C.length,Lo=new Uint8Array(oo);for(let ua=0;ua<oo;ua++)Lo[ua]=C[ua];const la=[new re(No,r),new re(yn,r)];return new Ee(Z,Lo,0,la,xe.CODE_128,new Date().getTime())}}Le.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],Le.MAX_AVG_VARIANCE=.25,Le.MAX_INDIVIDUAL_VARIANCE=.7,Le.CODE_SHIFT=98,Le.CODE_CODE_C=99,Le.CODE_CODE_B=100,Le.CODE_CODE_A=101,Le.CODE_FNC_1=102,Le.CODE_FNC_2=97,Le.CODE_FNC_3=96,Le.CODE_FNC_4_A=101,Le.CODE_FNC_4_B=100,Le.CODE_START_A=103,Le.CODE_START_B=104,Le.CODE_START_C=105,Le.CODE_STOP=106;class Mt extends Ye{constructor(r=!1,a=!1){super(),this.usingCheckDigit=r,this.extendedMode=a,this.decodeRowResult="",this.counters=new Int32Array(9)}decodeRow(r,a,u){let d=this.counters;d.fill(0),this.decodeRowResult="";let h=Mt.findAsteriskPattern(a,d),g=a.getNextSet(h[1]),b=a.getSize(),C,A;do{Mt.recordPattern(a,g,d);let Ce=Mt.toNarrowWidePattern(d);if(Ce<0)throw new z;C=Mt.patternToChar(Ce),this.decodeRowResult+=C,A=g;for(let Oe of d)g+=Oe;g=a.getNextSet(g)}while(C!=="*");this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);let L=0;for(let Ce of d)L+=Ce;let U=g-A-L;if(g!==b&&U*2<L)throw new z;if(this.usingCheckDigit){let Ce=this.decodeRowResult.length-1,Oe=0;for(let Ke=0;Ke<Ce;Ke++)Oe+=Mt.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(Ke));if(this.decodeRowResult.charAt(Ce)!==Mt.ALPHABET_STRING.charAt(Oe%43))throw new v;this.decodeRowResult=this.decodeRowResult.substring(0,Ce)}if(this.decodeRowResult.length===0)throw new z;let Z;this.extendedMode?Z=Mt.decodeExtended(this.decodeRowResult):Z=this.decodeRowResult;let se=(h[1]+h[0])/2,ye=A+L/2;return new Ee(Z,null,0,[new re(se,r),new re(ye,r)],xe.CODE_39,new Date().getTime())}static findAsteriskPattern(r,a){let u=r.getSize(),d=r.getNextSet(0),h=0,g=d,b=!1,C=a.length;for(let A=d;A<u;A++)if(r.get(A)!==b)a[h]++;else{if(h===C-1){if(this.toNarrowWidePattern(a)===Mt.ASTERISK_ENCODING&&r.isRange(Math.max(0,g-Math.floor((A-g)/2)),g,!1))return[g,A];g+=a[0]+a[1],a.copyWithin(0,2,2+h-1),a[h-1]=0,a[h]=0,h--}else h++;a[h]=1,b=!b}throw new z}static toNarrowWidePattern(r){let a=r.length,u=0,d;do{let h=2147483647;for(let C of r)C<h&&C>u&&(h=C);u=h,d=0;let g=0,b=0;for(let C=0;C<a;C++){let A=r[C];A>u&&(b|=1<<a-1-C,d++,g+=A)}if(d===3){for(let C=0;C<a&&d>0;C++){let A=r[C];if(A>u&&(d--,A*2>=g))return-1}return b}}while(d>3);return-1}static patternToChar(r){for(let a=0;a<Mt.CHARACTER_ENCODINGS.length;a++)if(Mt.CHARACTER_ENCODINGS[a]===r)return Mt.ALPHABET_STRING.charAt(a);if(r===Mt.ASTERISK_ENCODING)return"*";throw new z}static decodeExtended(r){let a=r.length,u="";for(let d=0;d<a;d++){let h=r.charAt(d);if(h==="+"||h==="$"||h==="%"||h==="/"){let g=r.charAt(d+1),b="\0";switch(h){case"+":if(g>="A"&&g<="Z")b=String.fromCharCode(g.charCodeAt(0)+32);else throw new x;break;case"$":if(g>="A"&&g<="Z")b=String.fromCharCode(g.charCodeAt(0)-64);else throw new x;break;case"%":if(g>="A"&&g<="E")b=String.fromCharCode(g.charCodeAt(0)-38);else if(g>="F"&&g<="J")b=String.fromCharCode(g.charCodeAt(0)-11);else if(g>="K"&&g<="O")b=String.fromCharCode(g.charCodeAt(0)+16);else if(g>="P"&&g<="T")b=String.fromCharCode(g.charCodeAt(0)+43);else if(g==="U")b="\0";else if(g==="V")b="@";else if(g==="W")b="`";else if(g==="X"||g==="Y"||g==="Z")b="\x7F";else throw new x;break;case"/":if(g>="A"&&g<="O")b=String.fromCharCode(g.charCodeAt(0)-32);else if(g==="Z")b=":";else throw new x;break}u+=b,d++}else u+=h}return u}}Mt.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",Mt.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],Mt.ASTERISK_ENCODING=148;class Nt extends Ye{constructor(){super(...arguments),this.narrowLineWidth=-1}decodeRow(r,a,u){let d=this.decodeStart(a),h=this.decodeEnd(a),g=new J;Nt.decodeMiddle(a,d[1],h[0],g);let b=g.toString(),C=null;u!=null&&(C=u.get(D.ALLOWED_LENGTHS)),C==null&&(C=Nt.DEFAULT_ALLOWED_LENGTHS);let A=b.length,L=!1,U=0;for(let ye of C){if(A===ye){L=!0;break}ye>U&&(U=ye)}if(!L&&A>U&&(L=!0),!L)throw new x;const Z=[new re(d[1],r),new re(h[0],r)];return new Ee(b,null,0,Z,xe.ITF,new Date().getTime())}static decodeMiddle(r,a,u,d){let h=new Int32Array(10),g=new Int32Array(5),b=new Int32Array(5);for(h.fill(0),g.fill(0),b.fill(0);a<u;){Ye.recordPattern(r,a,h);for(let A=0;A<5;A++){let L=2*A;g[A]=h[L],b[A]=h[L+1]}let C=Nt.decodeDigit(g);d.append(C.toString()),C=this.decodeDigit(b),d.append(C.toString()),h.forEach(function(A){a+=A})}}decodeStart(r){let a=Nt.skipWhiteSpace(r),u=Nt.findGuardPattern(r,a,Nt.START_PATTERN);return this.narrowLineWidth=(u[1]-u[0])/4,this.validateQuietZone(r,u[0]),u}validateQuietZone(r,a){let u=this.narrowLineWidth*10;u=u<a?u:a;for(let d=a-1;u>0&&d>=0&&!r.get(d);d--)u--;if(u!==0)throw new z}static skipWhiteSpace(r){const a=r.getSize(),u=r.getNextSet(0);if(u===a)throw new z;return u}decodeEnd(r){r.reverse();try{let a=Nt.skipWhiteSpace(r),u;try{u=Nt.findGuardPattern(r,a,Nt.END_PATTERN_REVERSED[0])}catch(h){h instanceof z&&(u=Nt.findGuardPattern(r,a,Nt.END_PATTERN_REVERSED[1]))}this.validateQuietZone(r,u[0]);let d=u[0];return u[0]=r.getSize()-u[1],u[1]=r.getSize()-d,u}finally{r.reverse()}}static findGuardPattern(r,a,u){let d=u.length,h=new Int32Array(d),g=r.getSize(),b=!1,C=0,A=a;h.fill(0);for(let L=a;L<g;L++)if(r.get(L)!==b)h[C]++;else{if(C===d-1){if(Ye.patternMatchVariance(h,u,Nt.MAX_INDIVIDUAL_VARIANCE)<Nt.MAX_AVG_VARIANCE)return[A,L];A+=h[0]+h[1],E.arraycopy(h,2,h,0,C-1),h[C-1]=0,h[C]=0,C--}else C++;h[C]=1,b=!b}throw new z}static decodeDigit(r){let a=Nt.MAX_AVG_VARIANCE,u=-1,d=Nt.PATTERNS.length;for(let h=0;h<d;h++){let g=Nt.PATTERNS[h],b=Ye.patternMatchVariance(r,g,Nt.MAX_INDIVIDUAL_VARIANCE);b<a?(a=b,u=h):b===a&&(u=-1)}if(u>=0)return u%10;throw new z}}Nt.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],Nt.MAX_AVG_VARIANCE=.38,Nt.MAX_INDIVIDUAL_VARIANCE=.5,Nt.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],Nt.START_PATTERN=Int32Array.from([1,1,1,1]),Nt.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])];class Tt extends Ye{constructor(){super(...arguments),this.decodeRowStringBuffer=""}static findStartGuardPattern(r){let a=!1,u,d=0,h=Int32Array.from([0,0,0]);for(;!a;){h=Int32Array.from([0,0,0]),u=Tt.findGuardPattern(r,d,!1,this.START_END_PATTERN,h);let g=u[0];d=u[1];let b=g-(d-g);b>=0&&(a=r.isRange(b,g,!1))}return u}static checkChecksum(r){return Tt.checkStandardUPCEANChecksum(r)}static checkStandardUPCEANChecksum(r){let a=r.length;if(a===0)return!1;let u=parseInt(r.charAt(a-1),10);return Tt.getStandardUPCEANChecksum(r.substring(0,a-1))===u}static getStandardUPCEANChecksum(r){let a=r.length,u=0;for(let d=a-1;d>=0;d-=2){let h=r.charAt(d).charCodeAt(0)-"0".charCodeAt(0);if(h<0||h>9)throw new x;u+=h}u*=3;for(let d=a-2;d>=0;d-=2){let h=r.charAt(d).charCodeAt(0)-"0".charCodeAt(0);if(h<0||h>9)throw new x;u+=h}return(1e3-u)%10}static decodeEnd(r,a){return Tt.findGuardPattern(r,a,!1,Tt.START_END_PATTERN,new Int32Array(Tt.START_END_PATTERN.length).fill(0))}static findGuardPatternWithoutCounters(r,a,u,d){return this.findGuardPattern(r,a,u,d,new Int32Array(d.length))}static findGuardPattern(r,a,u,d,h){let g=r.getSize();a=u?r.getNextUnset(a):r.getNextSet(a);let b=0,C=a,A=d.length,L=u;for(let U=a;U<g;U++)if(r.get(U)!==L)h[b]++;else{if(b===A-1){if(Ye.patternMatchVariance(h,d,Tt.MAX_INDIVIDUAL_VARIANCE)<Tt.MAX_AVG_VARIANCE)return Int32Array.from([C,U]);C+=h[0]+h[1];let Z=h.slice(2,h.length-1);for(let se=0;se<b-1;se++)h[se]=Z[se];h[b-1]=0,h[b]=0,b--}else b++;h[b]=1,L=!L}throw new z}static decodeDigit(r,a,u,d){this.recordPattern(r,u,a);let h=this.MAX_AVG_VARIANCE,g=-1,b=d.length;for(let C=0;C<b;C++){let A=d[C],L=Ye.patternMatchVariance(a,A,Tt.MAX_INDIVIDUAL_VARIANCE);L<h&&(h=L,g=C)}if(g>=0)return g;throw new z}}Tt.MAX_AVG_VARIANCE=.48,Tt.MAX_INDIVIDUAL_VARIANCE=.7,Tt.START_END_PATTERN=Int32Array.from([1,1,1]),Tt.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),Tt.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),Tt.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])];class cn{constructor(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(r,a,u){let d=this.decodeRowStringBuffer,h=this.decodeMiddle(a,u,d),g=d.toString(),b=cn.parseExtensionString(g),C=[new re((u[0]+u[1])/2,r),new re(h,r)],A=new Ee(g,null,0,C,xe.UPC_EAN_EXTENSION,new Date().getTime());return b!=null&&A.putAllMetadata(b),A}decodeMiddle(r,a,u){let d=this.decodeMiddleCounters;d[0]=0,d[1]=0,d[2]=0,d[3]=0;let h=r.getSize(),g=a[1],b=0;for(let A=0;A<5&&g<h;A++){let L=Tt.decodeDigit(r,d,g,Tt.L_AND_G_PATTERNS);u+=String.fromCharCode("0".charCodeAt(0)+L%10);for(let U of d)g+=U;L>=10&&(b|=1<<4-A),A!==4&&(g=r.getNextSet(g),g=r.getNextUnset(g))}if(u.length!==5)throw new z;let C=this.determineCheckDigit(b);if(cn.extensionChecksum(u.toString())!==C)throw new z;return g}static extensionChecksum(r){let a=r.length,u=0;for(let d=a-2;d>=0;d-=2)u+=r.charAt(d).charCodeAt(0)-"0".charCodeAt(0);u*=3;for(let d=a-1;d>=0;d-=2)u+=r.charAt(d).charCodeAt(0)-"0".charCodeAt(0);return u*=3,u%10}determineCheckDigit(r){for(let a=0;a<10;a++)if(r===this.CHECK_DIGIT_ENCODINGS[a])return a;throw new z}static parseExtensionString(r){if(r.length!==5)return null;let a=cn.parseExtension5String(r);return a==null?null:new Map([[Me.SUGGESTED_PRICE,a]])}static parseExtension5String(r){let a;switch(r.charAt(0)){case"0":a="\xA3";break;case"5":a="$";break;case"9":switch(r){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}a="";break;default:a="";break}let u=parseInt(r.substring(1)),d=(u/100).toString(),h=u%100,g=h<10?"0"+h:h.toString();return a+d+"."+g}}class co{constructor(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}decodeRow(r,a,u){let d=this.decodeRowStringBuffer,h=this.decodeMiddle(a,u,d),g=d.toString(),b=co.parseExtensionString(g),C=[new re((u[0]+u[1])/2,r),new re(h,r)],A=new Ee(g,null,0,C,xe.UPC_EAN_EXTENSION,new Date().getTime());return b!=null&&A.putAllMetadata(b),A}decodeMiddle(r,a,u){let d=this.decodeMiddleCounters;d[0]=0,d[1]=0,d[2]=0,d[3]=0;let h=r.getSize(),g=a[1],b=0;for(let C=0;C<2&&g<h;C++){let A=Tt.decodeDigit(r,d,g,Tt.L_AND_G_PATTERNS);u+=String.fromCharCode("0".charCodeAt(0)+A%10);for(let L of d)g+=L;A>=10&&(b|=1<<1-C),C!==1&&(g=r.getNextSet(g),g=r.getNextUnset(g))}if(u.length!==2)throw new z;if(parseInt(u.toString())%4!==b)throw new z;return g}static parseExtensionString(r){return r.length!==2?null:new Map([[Me.ISSUE_NUMBER,parseInt(r)]])}}class eo{static decodeRow(r,a,u){let d=Tt.findGuardPattern(a,u,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return new cn().decodeRow(r,a,d)}catch{return new co().decodeRow(r,a,d)}}}eo.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]);class Ut extends Tt{constructor(){super(),this.decodeRowStringBuffer="",Ut.L_AND_G_PATTERNS=Ut.L_PATTERNS.map(r=>Int32Array.from(r));for(let r=10;r<20;r++){let a=Ut.L_PATTERNS[r-10],u=new Int32Array(a.length);for(let d=0;d<a.length;d++)u[d]=a[a.length-d-1];Ut.L_AND_G_PATTERNS[r]=u}}decodeRow(r,a,u){let d=Ut.findStartGuardPattern(a),h=u==null?null:u.get(D.NEED_RESULT_POINT_CALLBACK);if(h!=null){const lt=new re((d[0]+d[1])/2,r);h.foundPossibleResultPoint(lt)}let g=this.decodeMiddle(a,d,this.decodeRowStringBuffer),b=g.rowOffset,C=g.resultString;if(h!=null){const lt=new re(b,r);h.foundPossibleResultPoint(lt)}let A=Ut.decodeEnd(a,b);if(h!=null){const lt=new re((A[0]+A[1])/2,r);h.foundPossibleResultPoint(lt)}let L=A[1],U=L+(L-A[0]);if(U>=a.getSize()||!a.isRange(L,U,!1))throw new z;let Z=C.toString();if(Z.length<8)throw new x;if(!Ut.checkChecksum(Z))throw new v;let se=(d[1]+d[0])/2,ye=(A[1]+A[0])/2,Ce=this.getBarcodeFormat(),Oe=[new re(se,r),new re(ye,r)],Ke=new Ee(Z,null,0,Oe,Ce,new Date().getTime()),ft=0;try{let lt=eo.decodeRow(r,a,A[1]);Ke.putMetadata(Me.UPC_EAN_EXTENSION,lt.getText()),Ke.putAllMetadata(lt.getResultMetadata()),Ke.addResultPoints(lt.getResultPoints()),ft=lt.getText().length}catch{}let ht=u==null?null:u.get(D.ALLOWED_EAN_EXTENSIONS);if(ht!=null){let lt=!1;for(let rn in ht)if(ft.toString()===rn){lt=!0;break}if(!lt)throw new z}return Ce===xe.EAN_13||xe.UPC_A,Ke}static checkChecksum(r){return Ut.checkStandardUPCEANChecksum(r)}static checkStandardUPCEANChecksum(r){let a=r.length;if(a===0)return!1;let u=parseInt(r.charAt(a-1),10);return Ut.getStandardUPCEANChecksum(r.substring(0,a-1))===u}static getStandardUPCEANChecksum(r){let a=r.length,u=0;for(let d=a-1;d>=0;d-=2){let h=r.charAt(d).charCodeAt(0)-"0".charCodeAt(0);if(h<0||h>9)throw new x;u+=h}u*=3;for(let d=a-2;d>=0;d-=2){let h=r.charAt(d).charCodeAt(0)-"0".charCodeAt(0);if(h<0||h>9)throw new x;u+=h}return(1e3-u)%10}static decodeEnd(r,a){return Ut.findGuardPattern(r,a,!1,Ut.START_END_PATTERN,new Int32Array(Ut.START_END_PATTERN.length).fill(0))}}class go extends Ut{constructor(){super(),this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(r,a,u){let d=this.decodeMiddleCounters;d[0]=0,d[1]=0,d[2]=0,d[3]=0;let h=r.getSize(),g=a[1],b=0;for(let A=0;A<6&&g<h;A++){let L=Ut.decodeDigit(r,d,g,Ut.L_AND_G_PATTERNS);u+=String.fromCharCode("0".charCodeAt(0)+L%10);for(let U of d)g+=U;L>=10&&(b|=1<<5-A)}u=go.determineFirstDigit(u,b),g=Ut.findGuardPattern(r,g,!0,Ut.MIDDLE_PATTERN,new Int32Array(Ut.MIDDLE_PATTERN.length).fill(0))[1];for(let A=0;A<6&&g<h;A++){let L=Ut.decodeDigit(r,d,g,Ut.L_PATTERNS);u+=String.fromCharCode("0".charCodeAt(0)+L);for(let U of d)g+=U}return{rowOffset:g,resultString:u}}getBarcodeFormat(){return xe.EAN_13}static determineFirstDigit(r,a){for(let u=0;u<10;u++)if(a===this.FIRST_DIGIT_ENCODINGS[u])return r=String.fromCharCode("0".charCodeAt(0)+u)+r,r;throw new z}}go.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26];class Ss extends Ut{constructor(){super(),this.decodeMiddleCounters=Int32Array.from([0,0,0,0])}decodeMiddle(r,a,u){const d=this.decodeMiddleCounters;d[0]=0,d[1]=0,d[2]=0,d[3]=0;let h=r.getSize(),g=a[1];for(let C=0;C<4&&g<h;C++){let A=Ut.decodeDigit(r,d,g,Ut.L_PATTERNS);u+=String.fromCharCode("0".charCodeAt(0)+A);for(let L of d)g+=L}g=Ut.findGuardPattern(r,g,!0,Ut.MIDDLE_PATTERN,new Int32Array(Ut.MIDDLE_PATTERN.length).fill(0))[1];for(let C=0;C<4&&g<h;C++){let A=Ut.decodeDigit(r,d,g,Ut.L_PATTERNS);u+=String.fromCharCode("0".charCodeAt(0)+A);for(let L of d)g+=L}return{rowOffset:g,resultString:u}}getBarcodeFormat(){return xe.EAN_8}}class Ge extends Ut{constructor(){super(...arguments),this.ean13Reader=new go}getBarcodeFormat(){return xe.UPC_A}decode(r,a){return this.maybeReturnResult(this.ean13Reader.decode(r))}decodeRow(r,a,u){return this.maybeReturnResult(this.ean13Reader.decodeRow(r,a,u))}decodeMiddle(r,a,u){return this.ean13Reader.decodeMiddle(r,a,u)}maybeReturnResult(r){let a=r.getText();if(a.charAt(0)==="0"){let u=new Ee(a.substring(1),null,null,r.getResultPoints(),xe.UPC_A);return r.getResultMetadata()!=null&&u.putAllMetadata(r.getResultMetadata()),u}else throw new z}reset(){this.ean13Reader.reset()}}class gt extends Ut{constructor(){super(),this.decodeMiddleCounters=new Int32Array(4)}decodeMiddle(r,a,u){const d=this.decodeMiddleCounters.map(C=>C);d[0]=0,d[1]=0,d[2]=0,d[3]=0;const h=r.getSize();let g=a[1],b=0;for(let C=0;C<6&&g<h;C++){const A=gt.decodeDigit(r,d,g,gt.L_AND_G_PATTERNS);u+=String.fromCharCode("0".charCodeAt(0)+A%10);for(let L of d)g+=L;A>=10&&(b|=1<<5-C)}return gt.determineNumSysAndCheckDigit(new J(u),b),g}decodeEnd(r,a){return gt.findGuardPatternWithoutCounters(r,a,!0,gt.MIDDLE_END_PATTERN)}checkChecksum(r){return Ut.checkChecksum(gt.convertUPCEtoUPCA(r))}static determineNumSysAndCheckDigit(r,a){for(let u=0;u<=1;u++)for(let d=0;d<10;d++)if(a===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[u][d]){r.insert(0,"0"+u),r.append("0"+d);return}throw z.getNotFoundInstance()}getBarcodeFormat(){return xe.UPC_E}static convertUPCEtoUPCA(r){const a=r.slice(1,7).split("").map(h=>h.charCodeAt(0)),u=new J;u.append(r.charAt(0));let d=a[5];switch(d){case 0:case 1:case 2:u.appendChars(a,0,2),u.append(d),u.append("0000"),u.appendChars(a,2,3);break;case 3:u.appendChars(a,0,3),u.append("00000"),u.appendChars(a,3,2);break;case 4:u.appendChars(a,0,4),u.append("00000"),u.append(a[4]);break;default:u.appendChars(a,0,5),u.append("0000"),u.append(d);break}return r.length>=8&&u.append(r.charAt(7)),u.toString()}}gt.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),gt.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])];class Yt extends Ye{constructor(r){super();let a=r==null?null:r.get(D.POSSIBLE_FORMATS),u=[];a!=null&&(a.indexOf(xe.EAN_13)>-1?u.push(new go):a.indexOf(xe.UPC_A)>-1&&u.push(new Ge),a.indexOf(xe.EAN_8)>-1&&u.push(new Ss),a.indexOf(xe.UPC_E)>-1&&u.push(new gt)),u.length===0&&(u.push(new go),u.push(new Ss),u.push(new gt)),this.readers=u}decodeRow(r,a,u){for(let d of this.readers)try{const h=d.decodeRow(r,a,u),g=h.getBarcodeFormat()===xe.EAN_13&&h.getText().charAt(0)==="0",b=u==null?null:u.get(D.POSSIBLE_FORMATS),C=b==null||b.includes(xe.UPC_A);if(g&&C){const A=h.getRawBytes(),L=new Ee(h.getText().substring(1),A,A.length,h.getResultPoints(),xe.UPC_A);return L.putAllMetadata(h.getResultMetadata()),L}return h}catch{}throw new z}reset(){for(let r of this.readers)r.reset()}}class Gt extends Ye{constructor(){super(),this.decodeFinderCounters=new Int32Array(4),this.dataCharacterCounters=new Int32Array(8),this.oddRoundingErrors=new Array(4),this.evenRoundingErrors=new Array(4),this.oddCounts=new Array(this.dataCharacterCounters.length/2),this.evenCounts=new Array(this.dataCharacterCounters.length/2)}getDecodeFinderCounters(){return this.decodeFinderCounters}getDataCharacterCounters(){return this.dataCharacterCounters}getOddRoundingErrors(){return this.oddRoundingErrors}getEvenRoundingErrors(){return this.evenRoundingErrors}getOddCounts(){return this.oddCounts}getEvenCounts(){return this.evenCounts}parseFinderValue(r,a){for(let u=0;u<a.length;u++)if(Ye.patternMatchVariance(r,a[u],Gt.MAX_INDIVIDUAL_VARIANCE)<Gt.MAX_AVG_VARIANCE)return u;throw new z}static count(r){return Ve.sum(new Int32Array(r))}static increment(r,a){let u=0,d=a[0];for(let h=1;h<r.length;h++)a[h]>d&&(d=a[h],u=h);r[u]++}static decrement(r,a){let u=0,d=a[0];for(let h=1;h<r.length;h++)a[h]<d&&(d=a[h],u=h);r[u]--}static isFinderPattern(r){let a=r[0]+r[1],u=a+r[2]+r[3],d=a/u;if(d>=Gt.MIN_FINDER_PATTERN_RATIO&&d<=Gt.MAX_FINDER_PATTERN_RATIO){let h=Number.MAX_SAFE_INTEGER,g=Number.MIN_SAFE_INTEGER;for(let b of r)b>g&&(g=b),b<h&&(h=b);return g<10*h}return!1}}Gt.MAX_AVG_VARIANCE=.2,Gt.MAX_INDIVIDUAL_VARIANCE=.45,Gt.MIN_FINDER_PATTERN_RATIO=9.5/12,Gt.MAX_FINDER_PATTERN_RATIO=12.5/14;class fo{constructor(r,a){this.value=r,this.checksumPortion=a}getValue(){return this.value}getChecksumPortion(){return this.checksumPortion}toString(){return this.value+"("+this.checksumPortion+")"}equals(r){if(!(r instanceof fo))return!1;const a=r;return this.value===a.value&&this.checksumPortion===a.checksumPortion}hashCode(){return this.value^this.checksumPortion}}class mo{constructor(r,a,u,d,h){this.value=r,this.startEnd=a,this.value=r,this.startEnd=a,this.resultPoints=new Array,this.resultPoints.push(new re(u,h)),this.resultPoints.push(new re(d,h))}getValue(){return this.value}getStartEnd(){return this.startEnd}getResultPoints(){return this.resultPoints}equals(r){if(!(r instanceof mo))return!1;const a=r;return this.value===a.value}hashCode(){return this.value}}class vo{constructor(){}static getRSSvalue(r,a,u){let d=0;for(let C of r)d+=C;let h=0,g=0,b=r.length;for(let C=0;C<b-1;C++){let A;for(A=1,g|=1<<C;A<r[C];A++,g&=~(1<<C)){let L=vo.combins(d-A-1,b-C-2);if(u&&g===0&&d-A-(b-C-1)>=b-C-1&&(L-=vo.combins(d-A-(b-C),b-C-2)),b-C-1>1){let U=0;for(let Z=d-A-(b-C-2);Z>a;Z--)U+=vo.combins(d-A-Z-1,b-C-3);L-=U*(b-1-C)}else d-A>a&&L--;h+=L}d-=A}return h}static combins(r,a){let u,d;r-a>a?(d=a,u=r-a):(d=r-a,u=a);let h=1,g=1;for(let b=r;b>u;b--)h*=b,g<=d&&(h/=g,g++);for(;g<=d;)h/=g,g++;return h}}class QS{static buildBitArray(r){let a=r.length*2-1;r[r.length-1].getRightChar()==null&&(a-=1);let u=12*a,d=new N(u),h=0,b=r[0].getRightChar().getValue();for(let C=11;C>=0;--C)(b&1<<C)!=0&&d.set(h),h++;for(let C=1;C<r.length;++C){let A=r[C],L=A.getLeftChar().getValue();for(let U=11;U>=0;--U)(L&1<<U)!=0&&d.set(h),h++;if(A.getRightChar()!=null){let U=A.getRightChar().getValue();for(let Z=11;Z>=0;--Z)(U&1<<Z)!=0&&d.set(h),h++}}return d}}class ni{constructor(r,a){a?this.decodedInformation=null:(this.finished=r,this.decodedInformation=a)}getDecodedInformation(){return this.decodedInformation}isFinished(){return this.finished}}class sf{constructor(r){this.newPosition=r}getNewPosition(){return this.newPosition}}class Ao extends sf{constructor(r,a){super(r),this.value=a}getValue(){return this.value}isFNC1(){return this.value===Ao.FNC1}}Ao.FNC1="$";class oi extends sf{constructor(r,a,u){super(r),u?(this.remaining=!0,this.remainingValue=this.remainingValue):(this.remaining=!1,this.remainingValue=0),this.newString=a}getNewString(){return this.newString}isRemaining(){return this.remaining}getRemainingValue(){return this.remainingValue}}class er extends sf{constructor(r,a,u){if(super(r),a<0||a>10||u<0||u>10)throw new x;this.firstDigit=a,this.secondDigit=u}getFirstDigit(){return this.firstDigit}getSecondDigit(){return this.secondDigit}getValue(){return this.firstDigit*10+this.secondDigit}isFirstDigitFNC1(){return this.firstDigit===er.FNC1}isSecondDigitFNC1(){return this.secondDigit===er.FNC1}isAnyFNC1(){return this.firstDigit===er.FNC1||this.secondDigit===er.FNC1}}er.FNC1=10;class Ct{constructor(){}static parseFieldsInGeneralPurpose(r){if(!r)return null;if(r.length<2)throw new z;let a=r.substring(0,2);for(let h of Ct.TWO_DIGIT_DATA_LENGTH)if(h[0]===a)return h[1]===Ct.VARIABLE_LENGTH?Ct.processVariableAI(2,h[2],r):Ct.processFixedAI(2,h[1],r);if(r.length<3)throw new z;let u=r.substring(0,3);for(let h of Ct.THREE_DIGIT_DATA_LENGTH)if(h[0]===u)return h[1]===Ct.VARIABLE_LENGTH?Ct.processVariableAI(3,h[2],r):Ct.processFixedAI(3,h[1],r);for(let h of Ct.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH)if(h[0]===u)return h[1]===Ct.VARIABLE_LENGTH?Ct.processVariableAI(4,h[2],r):Ct.processFixedAI(4,h[1],r);if(r.length<4)throw new z;let d=r.substring(0,4);for(let h of Ct.FOUR_DIGIT_DATA_LENGTH)if(h[0]===d)return h[1]===Ct.VARIABLE_LENGTH?Ct.processVariableAI(4,h[2],r):Ct.processFixedAI(4,h[1],r);throw new z}static processFixedAI(r,a,u){if(u.length<r)throw new z;let d=u.substring(0,r);if(u.length<r+a)throw new z;let h=u.substring(r,r+a),g=u.substring(r+a),b="("+d+")"+h,C=Ct.parseFieldsInGeneralPurpose(g);return C==null?b:b+C}static processVariableAI(r,a,u){let d=u.substring(0,r),h;u.length<r+a?h=u.length:h=r+a;let g=u.substring(r,h),b=u.substring(h),C="("+d+")"+g,A=Ct.parseFieldsInGeneralPurpose(b);return A==null?C:C+A}}Ct.VARIABLE_LENGTH=[],Ct.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",Ct.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",Ct.VARIABLE_LENGTH,20],["22",Ct.VARIABLE_LENGTH,29],["30",Ct.VARIABLE_LENGTH,8],["37",Ct.VARIABLE_LENGTH,8],["90",Ct.VARIABLE_LENGTH,30],["91",Ct.VARIABLE_LENGTH,30],["92",Ct.VARIABLE_LENGTH,30],["93",Ct.VARIABLE_LENGTH,30],["94",Ct.VARIABLE_LENGTH,30],["95",Ct.VARIABLE_LENGTH,30],["96",Ct.VARIABLE_LENGTH,30],["97",Ct.VARIABLE_LENGTH,3],["98",Ct.VARIABLE_LENGTH,30],["99",Ct.VARIABLE_LENGTH,30]],Ct.THREE_DIGIT_DATA_LENGTH=[["240",Ct.VARIABLE_LENGTH,30],["241",Ct.VARIABLE_LENGTH,30],["242",Ct.VARIABLE_LENGTH,6],["250",Ct.VARIABLE_LENGTH,30],["251",Ct.VARIABLE_LENGTH,30],["253",Ct.VARIABLE_LENGTH,17],["254",Ct.VARIABLE_LENGTH,20],["400",Ct.VARIABLE_LENGTH,30],["401",Ct.VARIABLE_LENGTH,30],["402",17],["403",Ct.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",Ct.VARIABLE_LENGTH,20],["421",Ct.VARIABLE_LENGTH,15],["422",3],["423",Ct.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],Ct.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",Ct.VARIABLE_LENGTH,15],["391",Ct.VARIABLE_LENGTH,18],["392",Ct.VARIABLE_LENGTH,15],["393",Ct.VARIABLE_LENGTH,18],["703",Ct.VARIABLE_LENGTH,30]],Ct.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",Ct.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",Ct.VARIABLE_LENGTH,20],["8003",Ct.VARIABLE_LENGTH,30],["8004",Ct.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",Ct.VARIABLE_LENGTH,30],["8008",Ct.VARIABLE_LENGTH,12],["8018",18],["8020",Ct.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",Ct.VARIABLE_LENGTH,70],["8200",Ct.VARIABLE_LENGTH,70]];class na{constructor(r){this.buffer=new J,this.information=r}decodeAllCodes(r,a){let u=a,d=null;do{let h=this.decodeGeneralPurposeField(u,d),g=Ct.parseFieldsInGeneralPurpose(h.getNewString());if(g!=null&&r.append(g),h.isRemaining()?d=""+h.getRemainingValue():d=null,u===h.getNewPosition())break;u=h.getNewPosition()}while(!0);return r.toString()}isStillNumeric(r){if(r+7>this.information.getSize())return r+4<=this.information.getSize();for(let a=r;a<r+3;++a)if(this.information.get(a))return!0;return this.information.get(r+3)}decodeNumeric(r){if(r+7>this.information.getSize()){let h=this.extractNumericValueFromBitArray(r,4);return h===0?new er(this.information.getSize(),er.FNC1,er.FNC1):new er(this.information.getSize(),h-1,er.FNC1)}let a=this.extractNumericValueFromBitArray(r,7),u=(a-8)/11,d=(a-8)%11;return new er(r+7,u,d)}extractNumericValueFromBitArray(r,a){return na.extractNumericValueFromBitArray(this.information,r,a)}static extractNumericValueFromBitArray(r,a,u){let d=0;for(let h=0;h<u;++h)r.get(a+h)&&(d|=1<<u-h-1);return d}decodeGeneralPurposeField(r,a){this.buffer.setLengthToZero(),a!=null&&this.buffer.append(a),this.current.setPosition(r);let u=this.parseBlocks();return u!=null&&u.isRemaining()?new oi(this.current.getPosition(),this.buffer.toString(),u.getRemainingValue()):new oi(this.current.getPosition(),this.buffer.toString())}parseBlocks(){let r,a;do{let u=this.current.getPosition();if(this.current.isAlpha()?(a=this.parseAlphaBlock(),r=a.isFinished()):this.current.isIsoIec646()?(a=this.parseIsoIec646Block(),r=a.isFinished()):(a=this.parseNumericBlock(),r=a.isFinished()),!(u!==this.current.getPosition())&&!r)break}while(!r);return a.getDecodedInformation()}parseNumericBlock(){for(;this.isStillNumeric(this.current.getPosition());){let r=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(r.getNewPosition()),r.isFirstDigitFNC1()){let a;return r.isSecondDigitFNC1()?a=new oi(this.current.getPosition(),this.buffer.toString()):a=new oi(this.current.getPosition(),this.buffer.toString(),r.getSecondDigit()),new ni(!0,a)}if(this.buffer.append(r.getFirstDigit()),r.isSecondDigitFNC1()){let a=new oi(this.current.getPosition(),this.buffer.toString());return new ni(!0,a)}this.buffer.append(r.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new ni(!1)}parseIsoIec646Block(){for(;this.isStillIsoIec646(this.current.getPosition());){let r=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(r.getNewPosition()),r.isFNC1()){let a=new oi(this.current.getPosition(),this.buffer.toString());return new ni(!0,a)}this.buffer.append(r.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new ni(!1)}parseAlphaBlock(){for(;this.isStillAlpha(this.current.getPosition());){let r=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(r.getNewPosition()),r.isFNC1()){let a=new oi(this.current.getPosition(),this.buffer.toString());return new ni(!0,a)}this.buffer.append(r.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new ni(!1)}isStillIsoIec646(r){if(r+5>this.information.getSize())return!1;let a=this.extractNumericValueFromBitArray(r,5);if(a>=5&&a<16)return!0;if(r+7>this.information.getSize())return!1;let u=this.extractNumericValueFromBitArray(r,7);if(u>=64&&u<116)return!0;if(r+8>this.information.getSize())return!1;let d=this.extractNumericValueFromBitArray(r,8);return d>=232&&d<253}decodeIsoIec646(r){let a=this.extractNumericValueFromBitArray(r,5);if(a===15)return new Ao(r+5,Ao.FNC1);if(a>=5&&a<15)return new Ao(r+5,"0"+(a-5));let u=this.extractNumericValueFromBitArray(r,7);if(u>=64&&u<90)return new Ao(r+7,""+(u+1));if(u>=90&&u<116)return new Ao(r+7,""+(u+7));let d=this.extractNumericValueFromBitArray(r,8),h;switch(d){case 232:h="!";break;case 233:h='"';break;case 234:h="%";break;case 235:h="&";break;case 236:h="'";break;case 237:h="(";break;case 238:h=")";break;case 239:h="*";break;case 240:h="+";break;case 241:h=",";break;case 242:h="-";break;case 243:h=".";break;case 244:h="/";break;case 245:h=":";break;case 246:h=";";break;case 247:h="<";break;case 248:h="=";break;case 249:h=">";break;case 250:h="?";break;case 251:h="_";break;case 252:h=" ";break;default:throw new x}return new Ao(r+8,h)}isStillAlpha(r){if(r+5>this.information.getSize())return!1;let a=this.extractNumericValueFromBitArray(r,5);if(a>=5&&a<16)return!0;if(r+6>this.information.getSize())return!1;let u=this.extractNumericValueFromBitArray(r,6);return u>=16&&u<63}decodeAlphanumeric(r){let a=this.extractNumericValueFromBitArray(r,5);if(a===15)return new Ao(r+5,Ao.FNC1);if(a>=5&&a<15)return new Ao(r+5,"0"+(a-5));let u=this.extractNumericValueFromBitArray(r,6);if(u>=32&&u<58)return new Ao(r+6,""+(u+33));let d;switch(u){case 58:d="*";break;case 59:d=",";break;case 60:d="-";break;case 61:d=".";break;case 62:d="/";break;default:throw new de("Decoding invalid alphanumeric value: "+u)}return new Ao(r+6,d)}isAlphaTo646ToAlphaLatch(r){if(r+1>this.information.getSize())return!1;for(let a=0;a<5&&a+r<this.information.getSize();++a)if(a===2){if(!this.information.get(r+2))return!1}else if(this.information.get(r+a))return!1;return!0}isAlphaOr646ToNumericLatch(r){if(r+3>this.information.getSize())return!1;for(let a=r;a<r+3;++a)if(this.information.get(a))return!1;return!0}isNumericToAlphaNumericLatch(r){if(r+1>this.information.getSize())return!1;for(let a=0;a<4&&a+r<this.information.getSize();++a)if(this.information.get(r+a))return!1;return!0}}class h1{constructor(r){this.information=r,this.generalDecoder=new na(r)}getInformation(){return this.information}getGeneralDecoder(){return this.generalDecoder}}class To extends h1{constructor(r){super(r)}encodeCompressedGtin(r,a){r.append("(01)");let u=r.length();r.append("9"),this.encodeCompressedGtinWithoutAI(r,a,u)}encodeCompressedGtinWithoutAI(r,a,u){for(let d=0;d<4;++d){let h=this.getGeneralDecoder().extractNumericValueFromBitArray(a+10*d,10);h/100===0&&r.append("0"),h/10===0&&r.append("0"),r.append(h)}To.appendCheckDigit(r,u)}static appendCheckDigit(r,a){let u=0;for(let d=0;d<13;d++){let h=r.charAt(d+a).charCodeAt(0)-"0".charCodeAt(0);u+=(d&1)===0?3*h:h}u=10-u%10,u===10&&(u=0),r.append(u)}}To.GTIN_SIZE=40;class oa extends To{constructor(r){super(r)}parseInformation(){let r=new J;r.append("(01)");let a=r.length(),u=this.getGeneralDecoder().extractNumericValueFromBitArray(oa.HEADER_SIZE,4);return r.append(u),this.encodeCompressedGtinWithoutAI(r,oa.HEADER_SIZE+4,a),this.getGeneralDecoder().decodeAllCodes(r,oa.HEADER_SIZE+44)}}oa.HEADER_SIZE=1+1+2;class Ru extends h1{constructor(r){super(r)}parseInformation(){let r=new J;return this.getGeneralDecoder().decodeAllCodes(r,Ru.HEADER_SIZE)}}Ru.HEADER_SIZE=2+1+2;class Lu extends To{constructor(r){super(r)}encodeCompressedWeight(r,a,u){let d=this.getGeneralDecoder().extractNumericValueFromBitArray(a,u);this.addWeightCode(r,d);let h=this.checkWeight(d),g=1e5;for(let b=0;b<5;++b)h/g===0&&r.append("0"),g/=10;r.append(h)}}class Fr extends Lu{constructor(r){super(r)}parseInformation(){if(this.getInformation().getSize()!=Fr.HEADER_SIZE+Lu.GTIN_SIZE+Fr.WEIGHT_SIZE)throw new z;let r=new J;return this.encodeCompressedGtin(r,Fr.HEADER_SIZE),this.encodeCompressedWeight(r,Fr.HEADER_SIZE+Lu.GTIN_SIZE,Fr.WEIGHT_SIZE),r.toString()}}Fr.HEADER_SIZE=4+1,Fr.WEIGHT_SIZE=15;class JS extends Fr{constructor(r){super(r)}addWeightCode(r,a){r.append("(3103)")}checkWeight(r){return r}}class e3 extends Fr{constructor(r){super(r)}addWeightCode(r,a){a<1e4?r.append("(3202)"):r.append("(3203)")}checkWeight(r){return r<1e4?r:r-1e4}}class Vr extends To{constructor(r){super(r)}parseInformation(){if(this.getInformation().getSize()<Vr.HEADER_SIZE+To.GTIN_SIZE)throw new z;let r=new J;this.encodeCompressedGtin(r,Vr.HEADER_SIZE);let a=this.getGeneralDecoder().extractNumericValueFromBitArray(Vr.HEADER_SIZE+To.GTIN_SIZE,Vr.LAST_DIGIT_SIZE);r.append("(392"),r.append(a),r.append(")");let u=this.getGeneralDecoder().decodeGeneralPurposeField(Vr.HEADER_SIZE+To.GTIN_SIZE+Vr.LAST_DIGIT_SIZE,null);return r.append(u.getNewString()),r.toString()}}Vr.HEADER_SIZE=5+1+2,Vr.LAST_DIGIT_SIZE=2;class yo extends To{constructor(r){super(r)}parseInformation(){if(this.getInformation().getSize()<yo.HEADER_SIZE+To.GTIN_SIZE)throw new z;let r=new J;this.encodeCompressedGtin(r,yo.HEADER_SIZE);let a=this.getGeneralDecoder().extractNumericValueFromBitArray(yo.HEADER_SIZE+To.GTIN_SIZE,yo.LAST_DIGIT_SIZE);r.append("(393"),r.append(a),r.append(")");let u=this.getGeneralDecoder().extractNumericValueFromBitArray(yo.HEADER_SIZE+To.GTIN_SIZE+yo.LAST_DIGIT_SIZE,yo.FIRST_THREE_DIGITS_SIZE);u/100==0&&r.append("0"),u/10==0&&r.append("0"),r.append(u);let d=this.getGeneralDecoder().decodeGeneralPurposeField(yo.HEADER_SIZE+To.GTIN_SIZE+yo.LAST_DIGIT_SIZE+yo.FIRST_THREE_DIGITS_SIZE,null);return r.append(d.getNewString()),r.toString()}}yo.HEADER_SIZE=5+1+2,yo.LAST_DIGIT_SIZE=2,yo.FIRST_THREE_DIGITS_SIZE=10;class xn extends Lu{constructor(r,a,u){super(r),this.dateCode=u,this.firstAIdigits=a}parseInformation(){if(this.getInformation().getSize()!=xn.HEADER_SIZE+xn.GTIN_SIZE+xn.WEIGHT_SIZE+xn.DATE_SIZE)throw new z;let r=new J;return this.encodeCompressedGtin(r,xn.HEADER_SIZE),this.encodeCompressedWeight(r,xn.HEADER_SIZE+xn.GTIN_SIZE,xn.WEIGHT_SIZE),this.encodeCompressedDate(r,xn.HEADER_SIZE+xn.GTIN_SIZE+xn.WEIGHT_SIZE),r.toString()}encodeCompressedDate(r,a){let u=this.getGeneralDecoder().extractNumericValueFromBitArray(a,xn.DATE_SIZE);if(u==38400)return;r.append("("),r.append(this.dateCode),r.append(")");let d=u%32;u/=32;let h=u%12+1;u/=12;let g=u;g/10==0&&r.append("0"),r.append(g),h/10==0&&r.append("0"),r.append(h),d/10==0&&r.append("0"),r.append(d)}addWeightCode(r,a){r.append("("),r.append(this.firstAIdigits),r.append(a/1e5),r.append(")")}checkWeight(r){return r%1e5}}xn.HEADER_SIZE=7+1,xn.WEIGHT_SIZE=20,xn.DATE_SIZE=16;function t3(H){try{if(H.get(1))return new oa(H);if(!H.get(2))return new Ru(H);switch(na.extractNumericValueFromBitArray(H,1,4)){case 4:return new JS(H);case 5:return new e3(H)}switch(na.extractNumericValueFromBitArray(H,1,5)){case 12:return new Vr(H);case 13:return new yo(H)}switch(na.extractNumericValueFromBitArray(H,1,7)){case 56:return new xn(H,"310","11");case 57:return new xn(H,"320","11");case 58:return new xn(H,"310","13");case 59:return new xn(H,"320","13");case 60:return new xn(H,"310","15");case 61:return new xn(H,"320","15");case 62:return new xn(H,"310","17");case 63:return new xn(H,"320","17")}}catch(r){throw console.log(r),new de("unknown decoder: "+H)}}class As{constructor(r,a,u,d){this.leftchar=r,this.rightchar=a,this.finderpattern=u,this.maybeLast=d}mayBeLast(){return this.maybeLast}getLeftChar(){return this.leftchar}getRightChar(){return this.rightchar}getFinderPattern(){return this.finderpattern}mustBeLast(){return this.rightchar==null}toString(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(this.finderpattern==null?"null":this.finderpattern.getValue())+" ]"}static equals(r,a){return r instanceof As?As.equalsOrNull(r.leftchar,a.leftchar)&&As.equalsOrNull(r.rightchar,a.rightchar)&&As.equalsOrNull(r.finderpattern,a.finderpattern):!1}static equalsOrNull(r,a){return r===null?a===null:As.equals(r,a)}hashCode(){return this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue()}}class af{constructor(r,a,u){this.pairs=r,this.rowNumber=a,this.wasReversed=u}getPairs(){return this.pairs}getRowNumber(){return this.rowNumber}isReversed(){return this.wasReversed}isEquivalent(r){return this.checkEqualitity(this,r)}toString(){return"{ "+this.pairs+" }"}equals(r,a){return r instanceof af?this.checkEqualitity(r,a)&&r.wasReversed===a.wasReversed:!1}checkEqualitity(r,a){if(!r||!a)return;let u;return r.forEach((d,h)=>{a.forEach(g=>{d.getLeftChar().getValue()===g.getLeftChar().getValue()&&d.getRightChar().getValue()===g.getRightChar().getValue()&&d.getFinderPatter().getValue()===g.getFinderPatter().getValue()&&(u=!0)})}),u}}class nt extends Gt{constructor(r){super(...arguments),this.pairs=new Array(nt.MAX_PAIRS),this.rows=new Array,this.startEnd=[2],this.verbose=r===!0}decodeRow(r,a,u){this.pairs.length=0,this.startFromEven=!1;try{return nt.constructResult(this.decodeRow2pairs(r,a))}catch(d){this.verbose&&console.log(d)}return this.pairs.length=0,this.startFromEven=!0,nt.constructResult(this.decodeRow2pairs(r,a))}reset(){this.pairs.length=0,this.rows.length=0}decodeRow2pairs(r,a){let u=!1;for(;!u;)try{this.pairs.push(this.retrieveNextPair(a,this.pairs,r))}catch(h){if(h instanceof z){if(!this.pairs.length)throw new z;u=!0}}if(this.checkChecksum())return this.pairs;let d;if(this.rows.length?d=!0:d=!1,this.storeRow(r,!1),d){let h=this.checkRowsBoolean(!1);if(h!=null||(h=this.checkRowsBoolean(!0),h!=null))return h}throw new z}checkRowsBoolean(r){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,r&&(this.rows=this.rows.reverse());let a=null;try{a=this.checkRows(new Array,0)}catch(u){this.verbose&&console.log(u)}return r&&(this.rows=this.rows.reverse()),a}checkRows(r,a){for(let u=a;u<this.rows.length;u++){let d=this.rows[u];this.pairs.length=0;for(let g of r)this.pairs.push(g.getPairs());if(this.pairs.push(d.getPairs()),!nt.isValidSequence(this.pairs))continue;if(this.checkChecksum())return this.pairs;let h=new Array(r);h.push(d);try{return this.checkRows(h,u+1)}catch(g){this.verbose&&console.log(g)}}throw new z}static isValidSequence(r){for(let a of nt.FINDER_PATTERN_SEQUENCES){if(r.length>a.length)continue;let u=!0;for(let d=0;d<r.length;d++)if(r[d].getFinderPattern().getValue()!=a[d]){u=!1;break}if(u)return!0}return!1}storeRow(r,a){let u=0,d=!1,h=!1;for(;u<this.rows.length;){let g=this.rows[u];if(g.getRowNumber()>r){h=g.isEquivalent(this.pairs);break}d=g.isEquivalent(this.pairs),u++}h||d||nt.isPartialRow(this.pairs,this.rows)||(this.rows.push(u,new af(this.pairs,r,a)),this.removePartialRows(this.pairs,this.rows))}removePartialRows(r,a){for(let u of a)if(u.getPairs().length!==r.length){for(let d of u.getPairs())for(let h of r)if(As.equals(d,h))break}}static isPartialRow(r,a){for(let u of a){let d=!0;for(let h of r){let g=!1;for(let b of u.getPairs())if(h.equals(b)){g=!0;break}if(!g){d=!1;break}}if(d)return!0}return!1}getRows(){return this.rows}static constructResult(r){let a=QS.buildBitArray(r),d=t3(a).parseInformation(),h=r[0].getFinderPattern().getResultPoints(),g=r[r.length-1].getFinderPattern().getResultPoints(),b=[h[0],h[1],g[0],g[1]];return new Ee(d,null,null,b,xe.RSS_EXPANDED,null)}checkChecksum(){let r=this.pairs.get(0),a=r.getLeftChar(),u=r.getRightChar();if(u==null)return!1;let d=u.getChecksumPortion(),h=2;for(let b=1;b<this.pairs.size();++b){let C=this.pairs.get(b);d+=C.getLeftChar().getChecksumPortion(),h++;let A=C.getRightChar();A!=null&&(d+=A.getChecksumPortion(),h++)}return d%=211,211*(h-4)+d==a.getValue()}static getNextSecondBar(r,a){let u;return r.get(a)?(u=r.getNextUnset(a),u=r.getNextSet(u)):(u=r.getNextSet(a),u=r.getNextUnset(u)),u}retrieveNextPair(r,a,u){let d=a.length%2==0;this.startFromEven&&(d=!d);let h,g=!0,b=-1;do this.findNextPair(r,a,b),h=this.parseFoundFinderPattern(r,u,d),h==null?b=nt.getNextSecondBar(r,this.startEnd[0]):g=!1;while(g);let C=this.decodeDataCharacter(r,h,d,!0);if(!this.isEmptyPair(a)&&a[a.length-1].mustBeLast())throw new z;let A;try{A=this.decodeDataCharacter(r,h,d,!1)}catch(L){A=null,this.verbose&&console.log(L)}return new As(C,A,h,!0)}isEmptyPair(r){return r.length===0}findNextPair(r,a,u){let d=this.getDecodeFinderCounters();d[0]=0,d[1]=0,d[2]=0,d[3]=0;let h=r.getSize(),g;u>=0?g=u:this.isEmptyPair(a)?g=0:g=a[a.length-1].getFinderPattern().getStartEnd()[1];let b=a.length%2!=0;this.startFromEven&&(b=!b);let C=!1;for(;g<h&&(C=!r.get(g),!!C);)g++;let A=0,L=g;for(let U=g;U<h;U++)if(r.get(U)!=C)d[A]++;else{if(A==3){if(b&&nt.reverseCounters(d),nt.isFinderPattern(d)){this.startEnd[0]=L,this.startEnd[1]=U;return}b&&nt.reverseCounters(d),L+=d[0]+d[1],d[0]=d[2],d[1]=d[3],d[2]=0,d[3]=0,A--}else A++;d[A]=1,C=!C}throw new z}static reverseCounters(r){let a=r.length;for(let u=0;u<a/2;++u){let d=r[u];r[u]=r[a-u-1],r[a-u-1]=d}}parseFoundFinderPattern(r,a,u){let d,h,g;if(u){let A=this.startEnd[0]-1;for(;A>=0&&!r.get(A);)A--;A++,d=this.startEnd[0]-A,h=A,g=this.startEnd[1]}else h=this.startEnd[0],g=r.getNextUnset(this.startEnd[1]+1),d=g-this.startEnd[1];let b=this.getDecodeFinderCounters();E.arraycopy(b,0,b,1,b.length-1),b[0]=d;let C;try{C=this.parseFinderValue(b,nt.FINDER_PATTERNS)}catch{return null}return new mo(C,[h,g],h,g,a)}decodeDataCharacter(r,a,u,d){let h=this.getDataCharacterCounters();for(let yn=0;yn<h.length;yn++)h[yn]=0;if(d)nt.recordPatternInReverse(r,a.getStartEnd()[0],h);else{nt.recordPattern(r,a.getStartEnd()[1],h);for(let yn=0,oo=h.length-1;yn<oo;yn++,oo--){let Lo=h[yn];h[yn]=h[oo],h[oo]=Lo}}let g=17,b=Ve.sum(new Int32Array(h))/g,C=(a.getStartEnd()[1]-a.getStartEnd()[0])/15;if(Math.abs(b-C)/C>.3)throw new z;let A=this.getOddCounts(),L=this.getEvenCounts(),U=this.getOddRoundingErrors(),Z=this.getEvenRoundingErrors();for(let yn=0;yn<h.length;yn++){let oo=1*h[yn]/b,Lo=oo+.5;if(Lo<1){if(oo<.3)throw new z;Lo=1}else if(Lo>8){if(oo>8.7)throw new z;Lo=8}let la=yn/2;(yn&1)==0?(A[la]=Lo,U[la]=oo-Lo):(L[la]=Lo,Z[la]=oo-Lo)}this.adjustOddEvenCounts(g);let se=4*a.getValue()+(u?0:2)+(d?0:1)-1,ye=0,Ce=0;for(let yn=A.length-1;yn>=0;yn--){if(nt.isNotA1left(a,u,d)){let oo=nt.WEIGHTS[se][2*yn];Ce+=A[yn]*oo}ye+=A[yn]}let Oe=0;for(let yn=L.length-1;yn>=0;yn--)if(nt.isNotA1left(a,u,d)){let oo=nt.WEIGHTS[se][2*yn+1];Oe+=L[yn]*oo}let Ke=Ce+Oe;if((ye&1)!=0||ye>13||ye<4)throw new z;let ft=(13-ye)/2,ht=nt.SYMBOL_WIDEST[ft],lt=9-ht,rn=vo.getRSSvalue(A,ht,!0),qt=vo.getRSSvalue(L,lt,!1),_o=nt.EVEN_TOTAL_SUBSET[ft],Er=nt.GSUM[ft],No=rn*_o+qt+Er;return new fo(No,Ke)}static isNotA1left(r,a,u){return!(r.getValue()==0&&a&&u)}adjustOddEvenCounts(r){let a=Ve.sum(new Int32Array(this.getOddCounts())),u=Ve.sum(new Int32Array(this.getEvenCounts())),d=!1,h=!1;a>13?h=!0:a<4&&(d=!0);let g=!1,b=!1;u>13?b=!0:u<4&&(g=!0);let C=a+u-r,A=(a&1)==1,L=(u&1)==0;if(C==1)if(A){if(L)throw new z;h=!0}else{if(!L)throw new z;b=!0}else if(C==-1)if(A){if(L)throw new z;d=!0}else{if(!L)throw new z;g=!0}else if(C==0){if(A){if(!L)throw new z;a<u?(d=!0,b=!0):(h=!0,g=!0)}else if(L)throw new z}else throw new z;if(d){if(h)throw new z;nt.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(h&&nt.decrement(this.getOddCounts(),this.getOddRoundingErrors()),g){if(b)throw new z;nt.increment(this.getEvenCounts(),this.getOddRoundingErrors())}b&&nt.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())}}nt.SYMBOL_WIDEST=[7,5,4,3,1],nt.EVEN_TOTAL_SUBSET=[4,20,52,104,204],nt.GSUM=[0,348,1388,2948,3988],nt.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],nt.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],nt.FINDER_PAT_A=0,nt.FINDER_PAT_B=1,nt.FINDER_PAT_C=2,nt.FINDER_PAT_D=3,nt.FINDER_PAT_E=4,nt.FINDER_PAT_F=5,nt.FINDER_PATTERN_SEQUENCES=[[nt.FINDER_PAT_A,nt.FINDER_PAT_A],[nt.FINDER_PAT_A,nt.FINDER_PAT_B,nt.FINDER_PAT_B],[nt.FINDER_PAT_A,nt.FINDER_PAT_C,nt.FINDER_PAT_B,nt.FINDER_PAT_D],[nt.FINDER_PAT_A,nt.FINDER_PAT_E,nt.FINDER_PAT_B,nt.FINDER_PAT_D,nt.FINDER_PAT_C],[nt.FINDER_PAT_A,nt.FINDER_PAT_E,nt.FINDER_PAT_B,nt.FINDER_PAT_D,nt.FINDER_PAT_D,nt.FINDER_PAT_F],[nt.FINDER_PAT_A,nt.FINDER_PAT_E,nt.FINDER_PAT_B,nt.FINDER_PAT_D,nt.FINDER_PAT_E,nt.FINDER_PAT_F,nt.FINDER_PAT_F],[nt.FINDER_PAT_A,nt.FINDER_PAT_A,nt.FINDER_PAT_B,nt.FINDER_PAT_B,nt.FINDER_PAT_C,nt.FINDER_PAT_C,nt.FINDER_PAT_D,nt.FINDER_PAT_D],[nt.FINDER_PAT_A,nt.FINDER_PAT_A,nt.FINDER_PAT_B,nt.FINDER_PAT_B,nt.FINDER_PAT_C,nt.FINDER_PAT_C,nt.FINDER_PAT_D,nt.FINDER_PAT_E,nt.FINDER_PAT_E],[nt.FINDER_PAT_A,nt.FINDER_PAT_A,nt.FINDER_PAT_B,nt.FINDER_PAT_B,nt.FINDER_PAT_C,nt.FINDER_PAT_C,nt.FINDER_PAT_D,nt.FINDER_PAT_E,nt.FINDER_PAT_F,nt.FINDER_PAT_F],[nt.FINDER_PAT_A,nt.FINDER_PAT_A,nt.FINDER_PAT_B,nt.FINDER_PAT_B,nt.FINDER_PAT_C,nt.FINDER_PAT_D,nt.FINDER_PAT_D,nt.FINDER_PAT_E,nt.FINDER_PAT_E,nt.FINDER_PAT_F,nt.FINDER_PAT_F]],nt.MAX_PAIRS=11;class n3 extends fo{constructor(r,a,u){super(r,a),this.count=0,this.finderPattern=u}getFinderPattern(){return this.finderPattern}getCount(){return this.count}incrementCount(){this.count++}}class Rn extends Gt{constructor(){super(...arguments),this.possibleLeftPairs=[],this.possibleRightPairs=[]}decodeRow(r,a,u){const d=this.decodePair(a,!1,r,u);Rn.addOrTally(this.possibleLeftPairs,d),a.reverse();let h=this.decodePair(a,!0,r,u);Rn.addOrTally(this.possibleRightPairs,h),a.reverse();for(let g of this.possibleLeftPairs)if(g.getCount()>1){for(let b of this.possibleRightPairs)if(b.getCount()>1&&Rn.checkChecksum(g,b))return Rn.constructResult(g,b)}throw new z}static addOrTally(r,a){if(a==null)return;let u=!1;for(let d of r)if(d.getValue()===a.getValue()){d.incrementCount(),u=!0;break}u||r.push(a)}reset(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0}static constructResult(r,a){let u=4537077*r.getValue()+a.getValue(),d=new String(u).toString(),h=new J;for(let A=13-d.length;A>0;A--)h.append("0");h.append(d);let g=0;for(let A=0;A<13;A++){let L=h.charAt(A).charCodeAt(0)-"0".charCodeAt(0);g+=(A&1)===0?3*L:L}g=10-g%10,g===10&&(g=0),h.append(g.toString());let b=r.getFinderPattern().getResultPoints(),C=a.getFinderPattern().getResultPoints();return new Ee(h.toString(),null,0,[b[0],b[1],C[0],C[1]],xe.RSS_14,new Date().getTime())}static checkChecksum(r,a){let u=(r.getChecksumPortion()+16*a.getChecksumPortion())%79,d=9*r.getFinderPattern().getValue()+a.getFinderPattern().getValue();return d>72&&d--,d>8&&d--,u===d}decodePair(r,a,u,d){try{let h=this.findFinderPattern(r,a),g=this.parseFoundFinderPattern(r,u,a,h),b=d==null?null:d.get(D.NEED_RESULT_POINT_CALLBACK);if(b!=null){let L=(h[0]+h[1])/2;a&&(L=r.getSize()-1-L),b.foundPossibleResultPoint(new re(L,u))}let C=this.decodeDataCharacter(r,g,!0),A=this.decodeDataCharacter(r,g,!1);return new n3(1597*C.getValue()+A.getValue(),C.getChecksumPortion()+4*A.getChecksumPortion(),g)}catch{return null}}decodeDataCharacter(r,a,u){let d=this.getDataCharacterCounters();for(let Oe=0;Oe<d.length;Oe++)d[Oe]=0;if(u)Ye.recordPatternInReverse(r,a.getStartEnd()[0],d);else{Ye.recordPattern(r,a.getStartEnd()[1]+1,d);for(let Oe=0,Ke=d.length-1;Oe<Ke;Oe++,Ke--){let ft=d[Oe];d[Oe]=d[Ke],d[Ke]=ft}}let h=u?16:15,g=Ve.sum(new Int32Array(d))/h,b=this.getOddCounts(),C=this.getEvenCounts(),A=this.getOddRoundingErrors(),L=this.getEvenRoundingErrors();for(let Oe=0;Oe<d.length;Oe++){let Ke=d[Oe]/g,ft=Math.floor(Ke+.5);ft<1?ft=1:ft>8&&(ft=8);let ht=Math.floor(Oe/2);(Oe&1)===0?(b[ht]=ft,A[ht]=Ke-ft):(C[ht]=ft,L[ht]=Ke-ft)}this.adjustOddEvenCounts(u,h);let U=0,Z=0;for(let Oe=b.length-1;Oe>=0;Oe--)Z*=9,Z+=b[Oe],U+=b[Oe];let se=0,ye=0;for(let Oe=C.length-1;Oe>=0;Oe--)se*=9,se+=C[Oe],ye+=C[Oe];let Ce=Z+3*se;if(u){if((U&1)!==0||U>12||U<4)throw new z;let Oe=(12-U)/2,Ke=Rn.OUTSIDE_ODD_WIDEST[Oe],ft=9-Ke,ht=vo.getRSSvalue(b,Ke,!1),lt=vo.getRSSvalue(C,ft,!0),rn=Rn.OUTSIDE_EVEN_TOTAL_SUBSET[Oe],qt=Rn.OUTSIDE_GSUM[Oe];return new fo(ht*rn+lt+qt,Ce)}else{if((ye&1)!==0||ye>10||ye<4)throw new z;let Oe=(10-ye)/2,Ke=Rn.INSIDE_ODD_WIDEST[Oe],ft=9-Ke,ht=vo.getRSSvalue(b,Ke,!0),lt=vo.getRSSvalue(C,ft,!1),rn=Rn.INSIDE_ODD_TOTAL_SUBSET[Oe],qt=Rn.INSIDE_GSUM[Oe];return new fo(lt*rn+ht+qt,Ce)}}findFinderPattern(r,a){let u=this.getDecodeFinderCounters();u[0]=0,u[1]=0,u[2]=0,u[3]=0;let d=r.getSize(),h=!1,g=0;for(;g<d&&(h=!r.get(g),a!==h);)g++;let b=0,C=g;for(let A=g;A<d;A++)if(r.get(A)!==h)u[b]++;else{if(b===3){if(Gt.isFinderPattern(u))return[C,A];C+=u[0]+u[1],u[0]=u[2],u[1]=u[3],u[2]=0,u[3]=0,b--}else b++;u[b]=1,h=!h}throw new z}parseFoundFinderPattern(r,a,u,d){let h=r.get(d[0]),g=d[0]-1;for(;g>=0&&h!==r.get(g);)g--;g++;const b=d[0]-g,C=this.getDecodeFinderCounters(),A=new Int32Array(C.length);E.arraycopy(C,0,A,1,C.length-1),A[0]=b;const L=this.parseFinderValue(A,Rn.FINDER_PATTERNS);let U=g,Z=d[1];return u&&(U=r.getSize()-1-U,Z=r.getSize()-1-Z),new mo(L,[g,d[1]],U,Z,a)}adjustOddEvenCounts(r,a){let u=Ve.sum(new Int32Array(this.getOddCounts())),d=Ve.sum(new Int32Array(this.getEvenCounts())),h=!1,g=!1,b=!1,C=!1;r?(u>12?g=!0:u<4&&(h=!0),d>12?C=!0:d<4&&(b=!0)):(u>11?g=!0:u<5&&(h=!0),d>10?C=!0:d<4&&(b=!0));let A=u+d-a,L=(u&1)===(r?1:0),U=(d&1)===1;if(A===1)if(L){if(U)throw new z;g=!0}else{if(!U)throw new z;C=!0}else if(A===-1)if(L){if(U)throw new z;h=!0}else{if(!U)throw new z;b=!0}else if(A===0){if(L){if(!U)throw new z;u<d?(h=!0,C=!0):(g=!0,b=!0)}else if(U)throw new z}else throw new z;if(h){if(g)throw new z;Gt.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(g&&Gt.decrement(this.getOddCounts(),this.getOddRoundingErrors()),b){if(C)throw new z;Gt.increment(this.getEvenCounts(),this.getOddRoundingErrors())}C&&Gt.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())}}Rn.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],Rn.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],Rn.OUTSIDE_GSUM=[0,161,961,2015,2715],Rn.INSIDE_GSUM=[0,336,1036,1516],Rn.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],Rn.INSIDE_ODD_WIDEST=[2,4,6,8],Rn.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])];class ra extends Ye{constructor(r,a){super(),this.readers=[],this.verbose=a===!0;const u=r?r.get(D.POSSIBLE_FORMATS):null,d=r&&r.get(D.ASSUME_CODE_39_CHECK_DIGIT)!==void 0;u&&((u.includes(xe.EAN_13)||u.includes(xe.UPC_A)||u.includes(xe.EAN_8)||u.includes(xe.UPC_E))&&this.readers.push(new Yt(r)),u.includes(xe.CODE_39)&&this.readers.push(new Mt(d)),u.includes(xe.CODE_128)&&this.readers.push(new Le),u.includes(xe.ITF)&&this.readers.push(new Nt),u.includes(xe.RSS_14)&&this.readers.push(new Rn),u.includes(xe.RSS_EXPANDED)&&this.readers.push(new nt(this.verbose))),this.readers.length===0&&(this.readers.push(new Yt(r)),this.readers.push(new Mt),this.readers.push(new Yt(r)),this.readers.push(new Le),this.readers.push(new Nt),this.readers.push(new Rn),this.readers.push(new nt(this.verbose)))}decodeRow(r,a,u){for(let d=0;d<this.readers.length;d++)try{return this.readers[d].decodeRow(r,a,u)}catch{}throw new z}reset(){this.readers.forEach(r=>r.reset())}}class o3 extends Se{constructor(r=500,a){super(new ra(a),r,a)}}class hn{constructor(r,a,u){this.ecCodewords=r,this.ecBlocks=[a],u&&this.ecBlocks.push(u)}getECCodewords(){return this.ecCodewords}getECBlocks(){return this.ecBlocks}}class fn{constructor(r,a){this.count=r,this.dataCodewords=a}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class ln{constructor(r,a,u,d,h,g){this.versionNumber=r,this.symbolSizeRows=a,this.symbolSizeColumns=u,this.dataRegionSizeRows=d,this.dataRegionSizeColumns=h,this.ecBlocks=g;let b=0;const C=g.getECCodewords(),A=g.getECBlocks();for(let L of A)b+=L.getCount()*(L.getDataCodewords()+C);this.totalCodewords=b}getVersionNumber(){return this.versionNumber}getSymbolSizeRows(){return this.symbolSizeRows}getSymbolSizeColumns(){return this.symbolSizeColumns}getDataRegionSizeRows(){return this.dataRegionSizeRows}getDataRegionSizeColumns(){return this.dataRegionSizeColumns}getTotalCodewords(){return this.totalCodewords}getECBlocks(){return this.ecBlocks}static getVersionForDimensions(r,a){if((r&1)!==0||(a&1)!==0)throw new x;for(let u of ln.VERSIONS)if(u.symbolSizeRows===r&&u.symbolSizeColumns===a)return u;throw new x}toString(){return""+this.versionNumber}static buildVersions(){return[new ln(1,10,10,8,8,new hn(5,new fn(1,3))),new ln(2,12,12,10,10,new hn(7,new fn(1,5))),new ln(3,14,14,12,12,new hn(10,new fn(1,8))),new ln(4,16,16,14,14,new hn(12,new fn(1,12))),new ln(5,18,18,16,16,new hn(14,new fn(1,18))),new ln(6,20,20,18,18,new hn(18,new fn(1,22))),new ln(7,22,22,20,20,new hn(20,new fn(1,30))),new ln(8,24,24,22,22,new hn(24,new fn(1,36))),new ln(9,26,26,24,24,new hn(28,new fn(1,44))),new ln(10,32,32,14,14,new hn(36,new fn(1,62))),new ln(11,36,36,16,16,new hn(42,new fn(1,86))),new ln(12,40,40,18,18,new hn(48,new fn(1,114))),new ln(13,44,44,20,20,new hn(56,new fn(1,144))),new ln(14,48,48,22,22,new hn(68,new fn(1,174))),new ln(15,52,52,24,24,new hn(42,new fn(2,102))),new ln(16,64,64,14,14,new hn(56,new fn(2,140))),new ln(17,72,72,16,16,new hn(36,new fn(4,92))),new ln(18,80,80,18,18,new hn(48,new fn(4,114))),new ln(19,88,88,20,20,new hn(56,new fn(4,144))),new ln(20,96,96,22,22,new hn(68,new fn(4,174))),new ln(21,104,104,24,24,new hn(56,new fn(6,136))),new ln(22,120,120,18,18,new hn(68,new fn(6,175))),new ln(23,132,132,20,20,new hn(62,new fn(8,163))),new ln(24,144,144,22,22,new hn(62,new fn(8,156),new fn(2,155))),new ln(25,8,18,6,16,new hn(7,new fn(1,5))),new ln(26,8,32,6,14,new hn(11,new fn(1,10))),new ln(27,12,26,10,24,new hn(14,new fn(1,16))),new ln(28,12,36,10,16,new hn(18,new fn(1,22))),new ln(29,16,36,14,16,new hn(24,new fn(1,32))),new ln(30,16,48,14,22,new hn(28,new fn(1,49)))]}}ln.VERSIONS=ln.buildVersions();class lf{constructor(r){const a=r.getHeight();if(a<8||a>144||(a&1)!==0)throw new x;this.version=lf.readVersion(r),this.mappingBitMatrix=this.extractDataRegion(r),this.readMappingMatrix=new G(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}getVersion(){return this.version}static readVersion(r){const a=r.getHeight(),u=r.getWidth();return ln.getVersionForDimensions(a,u)}readCodewords(){const r=new Int8Array(this.version.getTotalCodewords());let a=0,u=4,d=0;const h=this.mappingBitMatrix.getHeight(),g=this.mappingBitMatrix.getWidth();let b=!1,C=!1,A=!1,L=!1;do if(u===h&&d===0&&!b)r[a++]=this.readCorner1(h,g)&255,u-=2,d+=2,b=!0;else if(u===h-2&&d===0&&(g&3)!==0&&!C)r[a++]=this.readCorner2(h,g)&255,u-=2,d+=2,C=!0;else if(u===h+4&&d===2&&(g&7)===0&&!A)r[a++]=this.readCorner3(h,g)&255,u-=2,d+=2,A=!0;else if(u===h-2&&d===0&&(g&7)===4&&!L)r[a++]=this.readCorner4(h,g)&255,u-=2,d+=2,L=!0;else{do u<h&&d>=0&&!this.readMappingMatrix.get(d,u)&&(r[a++]=this.readUtah(u,d,h,g)&255),u-=2,d+=2;while(u>=0&&d<g);u+=1,d+=3;do u>=0&&d<g&&!this.readMappingMatrix.get(d,u)&&(r[a++]=this.readUtah(u,d,h,g)&255),u+=2,d-=2;while(u<h&&d>=0);u+=3,d+=1}while(u<h||d<g);if(a!==this.version.getTotalCodewords())throw new x;return r}readModule(r,a,u,d){return r<0&&(r+=u,a+=4-(u+4&7)),a<0&&(a+=d,r+=4-(d+4&7)),this.readMappingMatrix.set(a,r),this.mappingBitMatrix.get(a,r)}readUtah(r,a,u,d){let h=0;return this.readModule(r-2,a-2,u,d)&&(h|=1),h<<=1,this.readModule(r-2,a-1,u,d)&&(h|=1),h<<=1,this.readModule(r-1,a-2,u,d)&&(h|=1),h<<=1,this.readModule(r-1,a-1,u,d)&&(h|=1),h<<=1,this.readModule(r-1,a,u,d)&&(h|=1),h<<=1,this.readModule(r,a-2,u,d)&&(h|=1),h<<=1,this.readModule(r,a-1,u,d)&&(h|=1),h<<=1,this.readModule(r,a,u,d)&&(h|=1),h}readCorner1(r,a){let u=0;return this.readModule(r-1,0,r,a)&&(u|=1),u<<=1,this.readModule(r-1,1,r,a)&&(u|=1),u<<=1,this.readModule(r-1,2,r,a)&&(u|=1),u<<=1,this.readModule(0,a-2,r,a)&&(u|=1),u<<=1,this.readModule(0,a-1,r,a)&&(u|=1),u<<=1,this.readModule(1,a-1,r,a)&&(u|=1),u<<=1,this.readModule(2,a-1,r,a)&&(u|=1),u<<=1,this.readModule(3,a-1,r,a)&&(u|=1),u}readCorner2(r,a){let u=0;return this.readModule(r-3,0,r,a)&&(u|=1),u<<=1,this.readModule(r-2,0,r,a)&&(u|=1),u<<=1,this.readModule(r-1,0,r,a)&&(u|=1),u<<=1,this.readModule(0,a-4,r,a)&&(u|=1),u<<=1,this.readModule(0,a-3,r,a)&&(u|=1),u<<=1,this.readModule(0,a-2,r,a)&&(u|=1),u<<=1,this.readModule(0,a-1,r,a)&&(u|=1),u<<=1,this.readModule(1,a-1,r,a)&&(u|=1),u}readCorner3(r,a){let u=0;return this.readModule(r-1,0,r,a)&&(u|=1),u<<=1,this.readModule(r-1,a-1,r,a)&&(u|=1),u<<=1,this.readModule(0,a-3,r,a)&&(u|=1),u<<=1,this.readModule(0,a-2,r,a)&&(u|=1),u<<=1,this.readModule(0,a-1,r,a)&&(u|=1),u<<=1,this.readModule(1,a-3,r,a)&&(u|=1),u<<=1,this.readModule(1,a-2,r,a)&&(u|=1),u<<=1,this.readModule(1,a-1,r,a)&&(u|=1),u}readCorner4(r,a){let u=0;return this.readModule(r-3,0,r,a)&&(u|=1),u<<=1,this.readModule(r-2,0,r,a)&&(u|=1),u<<=1,this.readModule(r-1,0,r,a)&&(u|=1),u<<=1,this.readModule(0,a-2,r,a)&&(u|=1),u<<=1,this.readModule(0,a-1,r,a)&&(u|=1),u<<=1,this.readModule(1,a-1,r,a)&&(u|=1),u<<=1,this.readModule(2,a-1,r,a)&&(u|=1),u<<=1,this.readModule(3,a-1,r,a)&&(u|=1),u}extractDataRegion(r){const a=this.version.getSymbolSizeRows(),u=this.version.getSymbolSizeColumns();if(r.getHeight()!==a)throw new m("Dimension of bitMatrix must match the version size");const d=this.version.getDataRegionSizeRows(),h=this.version.getDataRegionSizeColumns(),g=a/d|0,b=u/h|0,C=g*d,A=b*h,L=new G(A,C);for(let U=0;U<g;++U){const Z=U*d;for(let se=0;se<b;++se){const ye=se*h;for(let Ce=0;Ce<d;++Ce){const Oe=U*(d+2)+1+Ce,Ke=Z+Ce;for(let ft=0;ft<h;++ft){const ht=se*(h+2)+1+ft;if(r.get(ht,Oe)){const lt=ye+ft;L.set(lt,Ke)}}}}}return L}}class uf{constructor(r,a){this.numDataCodewords=r,this.codewords=a}static getDataBlocks(r,a){const u=a.getECBlocks();let d=0;const h=u.getECBlocks();for(let Ce of h)d+=Ce.getCount();const g=new Array(d);let b=0;for(let Ce of h)for(let Oe=0;Oe<Ce.getCount();Oe++){const Ke=Ce.getDataCodewords(),ft=u.getECCodewords()+Ke;g[b++]=new uf(Ke,new Uint8Array(ft))}const A=g[0].codewords.length-u.getECCodewords(),L=A-1;let U=0;for(let Ce=0;Ce<L;Ce++)for(let Oe=0;Oe<b;Oe++)g[Oe].codewords[Ce]=r[U++];const Z=a.getVersionNumber()===24,se=Z?8:b;for(let Ce=0;Ce<se;Ce++)g[Ce].codewords[A-1]=r[U++];const ye=g[0].codewords.length;for(let Ce=A;Ce<ye;Ce++)for(let Oe=0;Oe<b;Oe++){const Ke=Z?(Oe+8)%b:Oe,ft=Z&&Ke>7?Ce-1:Ce;g[Ke].codewords[ft]=r[U++]}if(U!==r.length)throw new m;return g}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}class cf{constructor(r){this.bytes=r,this.byteOffset=0,this.bitOffset=0}getBitOffset(){return this.bitOffset}getByteOffset(){return this.byteOffset}readBits(r){if(r<1||r>32||r>this.available())throw new m(""+r);let a=0,u=this.bitOffset,d=this.byteOffset;const h=this.bytes;if(u>0){const g=8-u,b=r<g?r:g,C=g-b,A=255>>8-b<<C;a=(h[d]&A)>>C,r-=b,u+=b,u===8&&(u=0,d++)}if(r>0){for(;r>=8;)a=a<<8|h[d]&255,d++,r-=8;if(r>0){const g=8-r,b=255>>g<<g;a=a<<r|(h[d]&b)>>g,u+=r}}return this.bitOffset=u,this.byteOffset=d,a}available(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset}}var Wn;(function(H){H[H.PAD_ENCODE=0]="PAD_ENCODE",H[H.ASCII_ENCODE=1]="ASCII_ENCODE",H[H.C40_ENCODE=2]="C40_ENCODE",H[H.TEXT_ENCODE=3]="TEXT_ENCODE",H[H.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",H[H.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",H[H.BASE256_ENCODE=6]="BASE256_ENCODE"})(Wn||(Wn={}));class Ts{static decode(r){const a=new cf(r),u=new J,d=new J,h=new Array;let g=Wn.ASCII_ENCODE;do if(g===Wn.ASCII_ENCODE)g=this.decodeAsciiSegment(a,u,d);else{switch(g){case Wn.C40_ENCODE:this.decodeC40Segment(a,u);break;case Wn.TEXT_ENCODE:this.decodeTextSegment(a,u);break;case Wn.ANSIX12_ENCODE:this.decodeAnsiX12Segment(a,u);break;case Wn.EDIFACT_ENCODE:this.decodeEdifactSegment(a,u);break;case Wn.BASE256_ENCODE:this.decodeBase256Segment(a,u,h);break;default:throw new x}g=Wn.ASCII_ENCODE}while(g!==Wn.PAD_ENCODE&&a.available()>0);return d.length()>0&&u.append(d.toString()),new We(r,u.toString(),h.length===0?null:h,null)}static decodeAsciiSegment(r,a,u){let d=!1;do{let h=r.readBits(8);if(h===0)throw new x;if(h<=128)return d&&(h+=128),a.append(String.fromCharCode(h-1)),Wn.ASCII_ENCODE;if(h===129)return Wn.PAD_ENCODE;if(h<=229){const g=h-130;g<10&&a.append("0"),a.append(""+g)}else switch(h){case 230:return Wn.C40_ENCODE;case 231:return Wn.BASE256_ENCODE;case 232:a.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:d=!0;break;case 236:a.append("[)>05"),u.insert(0,"");break;case 237:a.append("[)>06"),u.insert(0,"");break;case 238:return Wn.ANSIX12_ENCODE;case 239:return Wn.TEXT_ENCODE;case 240:return Wn.EDIFACT_ENCODE;case 241:break;default:if(h!==254||r.available()!==0)throw new x;break}}while(r.available()>0);return Wn.ASCII_ENCODE}static decodeC40Segment(r,a){let u=!1;const d=[];let h=0;do{if(r.available()===8)return;const g=r.readBits(8);if(g===254)return;this.parseTwoBytes(g,r.readBits(8),d);for(let b=0;b<3;b++){const C=d[b];switch(h){case 0:if(C<3)h=C+1;else if(C<this.C40_BASIC_SET_CHARS.length){const A=this.C40_BASIC_SET_CHARS[C];u?(a.append(String.fromCharCode(A.charCodeAt(0)+128)),u=!1):a.append(A)}else throw new x;break;case 1:u?(a.append(String.fromCharCode(C+128)),u=!1):a.append(String.fromCharCode(C)),h=0;break;case 2:if(C<this.C40_SHIFT2_SET_CHARS.length){const A=this.C40_SHIFT2_SET_CHARS[C];u?(a.append(String.fromCharCode(A.charCodeAt(0)+128)),u=!1):a.append(A)}else switch(C){case 27:a.append(String.fromCharCode(29));break;case 30:u=!0;break;default:throw new x}h=0;break;case 3:u?(a.append(String.fromCharCode(C+224)),u=!1):a.append(String.fromCharCode(C+96)),h=0;break;default:throw new x}}}while(r.available()>0)}static decodeTextSegment(r,a){let u=!1,d=[],h=0;do{if(r.available()===8)return;const g=r.readBits(8);if(g===254)return;this.parseTwoBytes(g,r.readBits(8),d);for(let b=0;b<3;b++){const C=d[b];switch(h){case 0:if(C<3)h=C+1;else if(C<this.TEXT_BASIC_SET_CHARS.length){const A=this.TEXT_BASIC_SET_CHARS[C];u?(a.append(String.fromCharCode(A.charCodeAt(0)+128)),u=!1):a.append(A)}else throw new x;break;case 1:u?(a.append(String.fromCharCode(C+128)),u=!1):a.append(String.fromCharCode(C)),h=0;break;case 2:if(C<this.TEXT_SHIFT2_SET_CHARS.length){const A=this.TEXT_SHIFT2_SET_CHARS[C];u?(a.append(String.fromCharCode(A.charCodeAt(0)+128)),u=!1):a.append(A)}else switch(C){case 27:a.append(String.fromCharCode(29));break;case 30:u=!0;break;default:throw new x}h=0;break;case 3:if(C<this.TEXT_SHIFT3_SET_CHARS.length){const A=this.TEXT_SHIFT3_SET_CHARS[C];u?(a.append(String.fromCharCode(A.charCodeAt(0)+128)),u=!1):a.append(A),h=0}else throw new x;break;default:throw new x}}}while(r.available()>0)}static decodeAnsiX12Segment(r,a){const u=[];do{if(r.available()===8)return;const d=r.readBits(8);if(d===254)return;this.parseTwoBytes(d,r.readBits(8),u);for(let h=0;h<3;h++){const g=u[h];switch(g){case 0:a.append("\r");break;case 1:a.append("*");break;case 2:a.append(">");break;case 3:a.append(" ");break;default:if(g<14)a.append(String.fromCharCode(g+44));else if(g<40)a.append(String.fromCharCode(g+51));else throw new x;break}}}while(r.available()>0)}static parseTwoBytes(r,a,u){let d=(r<<8)+a-1,h=Math.floor(d/1600);u[0]=h,d-=h*1600,h=Math.floor(d/40),u[1]=h,u[2]=d-h*40}static decodeEdifactSegment(r,a){do{if(r.available()<=16)return;for(let u=0;u<4;u++){let d=r.readBits(6);if(d===31){const h=8-r.getBitOffset();h!==8&&r.readBits(h);return}(d&32)===0&&(d|=64),a.append(String.fromCharCode(d))}}while(r.available()>0)}static decodeBase256Segment(r,a,u){let d=1+r.getByteOffset();const h=this.unrandomize255State(r.readBits(8),d++);let g;if(h===0?g=r.available()/8|0:h<250?g=h:g=250*(h-249)+this.unrandomize255State(r.readBits(8),d++),g<0)throw new x;const b=new Uint8Array(g);for(let C=0;C<g;C++){if(r.available()<8)throw new x;b[C]=this.unrandomize255State(r.readBits(8),d++)}u.push(b);try{a.append(X.decode(b,K.ISO88591))}catch(C){throw new de("Platform does not support required encoding: "+C.message)}}static unrandomize255State(r,a){const u=149*a%255+1,d=r-u;return d>=0?d:d+256}}Ts.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ts.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],Ts.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],Ts.TEXT_SHIFT2_SET_CHARS=Ts.C40_SHIFT2_SET_CHARS,Ts.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)];class r3{constructor(){this.rsDecoder=new Ne(ot.DATA_MATRIX_FIELD_256)}decode(r){const a=new lf(r),u=a.getVersion(),d=a.readCodewords(),h=uf.getDataBlocks(d,u);let g=0;for(let A of h)g+=A.getNumDataCodewords();const b=new Uint8Array(g),C=h.length;for(let A=0;A<C;A++){const L=h[A],U=L.getCodewords(),Z=L.getNumDataCodewords();this.correctErrors(U,Z);for(let se=0;se<Z;se++)b[se*C+A]=U[se]}return Ts.decode(b)}correctErrors(r,a){const u=new Int32Array(r);try{this.rsDecoder.decode(u,r.length-a)}catch{throw new v}for(let d=0;d<a;d++)r[d]=u[d]}}class Vn{constructor(r){this.image=r,this.rectangleDetector=new Je(this.image)}detect(){const r=this.rectangleDetector.detect();let a=this.detectSolid1(r);if(a=this.detectSolid2(a),a[3]=this.correctTopRight(a),!a[3])throw new z;a=this.shiftToModuleCenter(a);const u=a[0],d=a[1],h=a[2],g=a[3];let b=this.transitionsBetween(u,g)+1,C=this.transitionsBetween(h,g)+1;(b&1)===1&&(b+=1),(C&1)===1&&(C+=1),4*b<7*C&&4*C<7*b&&(b=C=Math.max(b,C));let A=Vn.sampleGrid(this.image,u,d,h,g,b,C);return new ge(A,[u,d,h,g])}static shiftPoint(r,a,u){let d=(a.getX()-r.getX())/(u+1),h=(a.getY()-r.getY())/(u+1);return new re(r.getX()+d,r.getY()+h)}static moveAway(r,a,u){let d=r.getX(),h=r.getY();return d<a?d-=1:d+=1,h<u?h-=1:h+=1,new re(d,h)}detectSolid1(r){let a=r[0],u=r[1],d=r[3],h=r[2],g=this.transitionsBetween(a,u),b=this.transitionsBetween(u,d),C=this.transitionsBetween(d,h),A=this.transitionsBetween(h,a),L=g,U=[h,a,u,d];return L>b&&(L=b,U[0]=a,U[1]=u,U[2]=d,U[3]=h),L>C&&(L=C,U[0]=u,U[1]=d,U[2]=h,U[3]=a),L>A&&(U[0]=d,U[1]=h,U[2]=a,U[3]=u),U}detectSolid2(r){let a=r[0],u=r[1],d=r[2],h=r[3],g=this.transitionsBetween(a,h),b=Vn.shiftPoint(u,d,(g+1)*4),C=Vn.shiftPoint(d,u,(g+1)*4),A=this.transitionsBetween(b,a),L=this.transitionsBetween(C,h);return A<L?(r[0]=a,r[1]=u,r[2]=d,r[3]=h):(r[0]=u,r[1]=d,r[2]=h,r[3]=a),r}correctTopRight(r){let a=r[0],u=r[1],d=r[2],h=r[3],g=this.transitionsBetween(a,h),b=this.transitionsBetween(u,h),C=Vn.shiftPoint(a,u,(b+1)*4),A=Vn.shiftPoint(d,u,(g+1)*4);g=this.transitionsBetween(C,h),b=this.transitionsBetween(A,h);let L=new re(h.getX()+(d.getX()-u.getX())/(g+1),h.getY()+(d.getY()-u.getY())/(g+1)),U=new re(h.getX()+(a.getX()-u.getX())/(b+1),h.getY()+(a.getY()-u.getY())/(b+1));if(!this.isValid(L))return this.isValid(U)?U:null;if(!this.isValid(U))return L;let Z=this.transitionsBetween(C,L)+this.transitionsBetween(A,L),se=this.transitionsBetween(C,U)+this.transitionsBetween(A,U);return Z>se?L:U}shiftToModuleCenter(r){let a=r[0],u=r[1],d=r[2],h=r[3],g=this.transitionsBetween(a,h)+1,b=this.transitionsBetween(d,h)+1,C=Vn.shiftPoint(a,u,b*4),A=Vn.shiftPoint(d,u,g*4);g=this.transitionsBetween(C,h)+1,b=this.transitionsBetween(A,h)+1,(g&1)===1&&(g+=1),(b&1)===1&&(b+=1);let L=(a.getX()+u.getX()+d.getX()+h.getX())/4,U=(a.getY()+u.getY()+d.getY()+h.getY())/4;a=Vn.moveAway(a,L,U),u=Vn.moveAway(u,L,U),d=Vn.moveAway(d,L,U),h=Vn.moveAway(h,L,U);let Z,se;return C=Vn.shiftPoint(a,u,b*4),C=Vn.shiftPoint(C,h,g*4),Z=Vn.shiftPoint(u,a,b*4),Z=Vn.shiftPoint(Z,d,g*4),A=Vn.shiftPoint(d,h,b*4),A=Vn.shiftPoint(A,u,g*4),se=Vn.shiftPoint(h,d,b*4),se=Vn.shiftPoint(se,a,g*4),[C,Z,A,se]}isValid(r){return r.getX()>=0&&r.getX()<this.image.getWidth()&&r.getY()>0&&r.getY()<this.image.getHeight()}static sampleGrid(r,a,u,d,h,g,b){return At.getInstance().sampleGrid(r,g,b,.5,.5,g-.5,.5,g-.5,b-.5,.5,b-.5,a.getX(),a.getY(),h.getX(),h.getY(),d.getX(),d.getY(),u.getX(),u.getY())}transitionsBetween(r,a){let u=Math.trunc(r.getX()),d=Math.trunc(r.getY()),h=Math.trunc(a.getX()),g=Math.trunc(a.getY()),b=Math.abs(g-d)>Math.abs(h-u);if(b){let Ce=u;u=d,d=Ce,Ce=h,h=g,g=Ce}let C=Math.abs(h-u),A=Math.abs(g-d),L=-C/2,U=d<g?1:-1,Z=u<h?1:-1,se=0,ye=this.image.get(b?d:u,b?u:d);for(let Ce=u,Oe=d;Ce!==h;Ce+=Z){let Ke=this.image.get(b?Oe:Ce,b?Ce:Oe);if(Ke!==ye&&(se++,ye=Ke),L+=A,L>0){if(Oe===g)break;Oe+=U,L-=C}}return se}}class Is{constructor(){this.decoder=new r3}decode(r,a=null){let u,d;if(a!=null&&a.has(D.PURE_BARCODE)){const A=Is.extractPureBits(r.getBlackMatrix());u=this.decoder.decode(A),d=Is.NO_POINTS}else{const A=new Vn(r.getBlackMatrix()).detect();u=this.decoder.decode(A.getBits()),d=A.getPoints()}const h=u.getRawBytes(),g=new Ee(u.getText(),h,8*h.length,d,xe.DATA_MATRIX,E.currentTimeMillis()),b=u.getByteSegments();b!=null&&g.putMetadata(Me.BYTE_SEGMENTS,b);const C=u.getECLevel();return C!=null&&g.putMetadata(Me.ERROR_CORRECTION_LEVEL,C),g}reset(){}static extractPureBits(r){const a=r.getTopLeftOnBit(),u=r.getBottomRightOnBit();if(a==null||u==null)throw new z;const d=this.moduleSize(a,r);let h=a[1];const g=u[1];let b=a[0];const A=(u[0]-b+1)/d,L=(g-h+1)/d;if(A<=0||L<=0)throw new z;const U=d/2;h+=U,b+=U;const Z=new G(A,L);for(let se=0;se<L;se++){const ye=h+se*d;for(let Ce=0;Ce<A;Ce++)r.get(b+Ce*d,ye)&&Z.set(Ce,se)}return Z}static moduleSize(r,a){const u=a.getWidth();let d=r[0];const h=r[1];for(;d<u&&a.get(d,h);)d++;if(d===u)throw new z;const g=d-r[0];if(g===0)throw new z;return g}}Is.NO_POINTS=[];class s3 extends Se{constructor(r=500){super(new Is,r)}}var sa;(function(H){H[H.L=0]="L",H[H.M=1]="M",H[H.Q=2]="Q",H[H.H=3]="H"})(sa||(sa={}));class Cn{constructor(r,a,u){this.value=r,this.stringValue=a,this.bits=u,Cn.FOR_BITS.set(u,this),Cn.FOR_VALUE.set(r,this)}getValue(){return this.value}getBits(){return this.bits}static fromString(r){switch(r){case"L":return Cn.L;case"M":return Cn.M;case"Q":return Cn.Q;case"H":return Cn.H;default:throw new p(r+"not available")}}toString(){return this.stringValue}equals(r){if(!(r instanceof Cn))return!1;const a=r;return this.value===a.value}static forBits(r){if(r<0||r>=Cn.FOR_BITS.size)throw new m;return Cn.FOR_BITS.get(r)}}Cn.FOR_BITS=new Map,Cn.FOR_VALUE=new Map,Cn.L=new Cn(sa.L,"L",1),Cn.M=new Cn(sa.M,"M",0),Cn.Q=new Cn(sa.Q,"Q",3),Cn.H=new Cn(sa.H,"H",2);class ho{constructor(r){this.errorCorrectionLevel=Cn.forBits(r>>3&3),this.dataMask=r&7}static numBitsDiffering(r,a){return _.bitCount(r^a)}static decodeFormatInformation(r,a){const u=ho.doDecodeFormatInformation(r,a);return u!==null?u:ho.doDecodeFormatInformation(r^ho.FORMAT_INFO_MASK_QR,a^ho.FORMAT_INFO_MASK_QR)}static doDecodeFormatInformation(r,a){let u=Number.MAX_SAFE_INTEGER,d=0;for(const h of ho.FORMAT_INFO_DECODE_LOOKUP){const g=h[0];if(g===r||g===a)return new ho(h[1]);let b=ho.numBitsDiffering(r,g);b<u&&(d=h[1],u=b),r!==a&&(b=ho.numBitsDiffering(a,g),b<u&&(d=h[1],u=b))}return u<=3?new ho(d):null}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getDataMask(){return this.dataMask}hashCode(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask}equals(r){if(!(r instanceof ho))return!1;const a=r;return this.errorCorrectionLevel===a.errorCorrectionLevel&&this.dataMask===a.dataMask}}ho.FORMAT_INFO_MASK_QR=21522,ho.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])];class $e{constructor(r,...a){this.ecCodewordsPerBlock=r,this.ecBlocks=a}getECCodewordsPerBlock(){return this.ecCodewordsPerBlock}getNumBlocks(){let r=0;const a=this.ecBlocks;for(const u of a)r+=u.getCount();return r}getTotalECCodewords(){return this.ecCodewordsPerBlock*this.getNumBlocks()}getECBlocks(){return this.ecBlocks}}class oe{constructor(r,a){this.count=r,this.dataCodewords=a}getCount(){return this.count}getDataCodewords(){return this.dataCodewords}}class xt{constructor(r,a,...u){this.versionNumber=r,this.alignmentPatternCenters=a,this.ecBlocks=u;let d=0;const h=u[0].getECCodewordsPerBlock(),g=u[0].getECBlocks();for(const b of g)d+=b.getCount()*(b.getDataCodewords()+h);this.totalCodewords=d}getVersionNumber(){return this.versionNumber}getAlignmentPatternCenters(){return this.alignmentPatternCenters}getTotalCodewords(){return this.totalCodewords}getDimensionForVersion(){return 17+4*this.versionNumber}getECBlocksForLevel(r){return this.ecBlocks[r.getValue()]}static getProvisionalVersionForDimension(r){if(r%4!==1)throw new x;try{return this.getVersionForNumber((r-17)/4)}catch{throw new x}}static getVersionForNumber(r){if(r<1||r>40)throw new m;return xt.VERSIONS[r-1]}static decodeVersionInformation(r){let a=Number.MAX_SAFE_INTEGER,u=0;for(let d=0;d<xt.VERSION_DECODE_INFO.length;d++){const h=xt.VERSION_DECODE_INFO[d];if(h===r)return xt.getVersionForNumber(d+7);const g=ho.numBitsDiffering(r,h);g<a&&(u=d+7,a=g)}return a<=3?xt.getVersionForNumber(u):null}buildFunctionPattern(){const r=this.getDimensionForVersion(),a=new G(r);a.setRegion(0,0,9,9),a.setRegion(r-8,0,8,9),a.setRegion(0,r-8,9,8);const u=this.alignmentPatternCenters.length;for(let d=0;d<u;d++){const h=this.alignmentPatternCenters[d]-2;for(let g=0;g<u;g++)d===0&&(g===0||g===u-1)||d===u-1&&g===0||a.setRegion(this.alignmentPatternCenters[g]-2,h,5,5)}return a.setRegion(6,9,1,r-17),a.setRegion(9,6,r-17,1),this.versionNumber>6&&(a.setRegion(r-11,0,3,6),a.setRegion(0,r-11,6,3)),a}toString(){return""+this.versionNumber}}xt.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),xt.VERSIONS=[new xt(1,new Int32Array(0),new $e(7,new oe(1,19)),new $e(10,new oe(1,16)),new $e(13,new oe(1,13)),new $e(17,new oe(1,9))),new xt(2,Int32Array.from([6,18]),new $e(10,new oe(1,34)),new $e(16,new oe(1,28)),new $e(22,new oe(1,22)),new $e(28,new oe(1,16))),new xt(3,Int32Array.from([6,22]),new $e(15,new oe(1,55)),new $e(26,new oe(1,44)),new $e(18,new oe(2,17)),new $e(22,new oe(2,13))),new xt(4,Int32Array.from([6,26]),new $e(20,new oe(1,80)),new $e(18,new oe(2,32)),new $e(26,new oe(2,24)),new $e(16,new oe(4,9))),new xt(5,Int32Array.from([6,30]),new $e(26,new oe(1,108)),new $e(24,new oe(2,43)),new $e(18,new oe(2,15),new oe(2,16)),new $e(22,new oe(2,11),new oe(2,12))),new xt(6,Int32Array.from([6,34]),new $e(18,new oe(2,68)),new $e(16,new oe(4,27)),new $e(24,new oe(4,19)),new $e(28,new oe(4,15))),new xt(7,Int32Array.from([6,22,38]),new $e(20,new oe(2,78)),new $e(18,new oe(4,31)),new $e(18,new oe(2,14),new oe(4,15)),new $e(26,new oe(4,13),new oe(1,14))),new xt(8,Int32Array.from([6,24,42]),new $e(24,new oe(2,97)),new $e(22,new oe(2,38),new oe(2,39)),new $e(22,new oe(4,18),new oe(2,19)),new $e(26,new oe(4,14),new oe(2,15))),new xt(9,Int32Array.from([6,26,46]),new $e(30,new oe(2,116)),new $e(22,new oe(3,36),new oe(2,37)),new $e(20,new oe(4,16),new oe(4,17)),new $e(24,new oe(4,12),new oe(4,13))),new xt(10,Int32Array.from([6,28,50]),new $e(18,new oe(2,68),new oe(2,69)),new $e(26,new oe(4,43),new oe(1,44)),new $e(24,new oe(6,19),new oe(2,20)),new $e(28,new oe(6,15),new oe(2,16))),new xt(11,Int32Array.from([6,30,54]),new $e(20,new oe(4,81)),new $e(30,new oe(1,50),new oe(4,51)),new $e(28,new oe(4,22),new oe(4,23)),new $e(24,new oe(3,12),new oe(8,13))),new xt(12,Int32Array.from([6,32,58]),new $e(24,new oe(2,92),new oe(2,93)),new $e(22,new oe(6,36),new oe(2,37)),new $e(26,new oe(4,20),new oe(6,21)),new $e(28,new oe(7,14),new oe(4,15))),new xt(13,Int32Array.from([6,34,62]),new $e(26,new oe(4,107)),new $e(22,new oe(8,37),new oe(1,38)),new $e(24,new oe(8,20),new oe(4,21)),new $e(22,new oe(12,11),new oe(4,12))),new xt(14,Int32Array.from([6,26,46,66]),new $e(30,new oe(3,115),new oe(1,116)),new $e(24,new oe(4,40),new oe(5,41)),new $e(20,new oe(11,16),new oe(5,17)),new $e(24,new oe(11,12),new oe(5,13))),new xt(15,Int32Array.from([6,26,48,70]),new $e(22,new oe(5,87),new oe(1,88)),new $e(24,new oe(5,41),new oe(5,42)),new $e(30,new oe(5,24),new oe(7,25)),new $e(24,new oe(11,12),new oe(7,13))),new xt(16,Int32Array.from([6,26,50,74]),new $e(24,new oe(5,98),new oe(1,99)),new $e(28,new oe(7,45),new oe(3,46)),new $e(24,new oe(15,19),new oe(2,20)),new $e(30,new oe(3,15),new oe(13,16))),new xt(17,Int32Array.from([6,30,54,78]),new $e(28,new oe(1,107),new oe(5,108)),new $e(28,new oe(10,46),new oe(1,47)),new $e(28,new oe(1,22),new oe(15,23)),new $e(28,new oe(2,14),new oe(17,15))),new xt(18,Int32Array.from([6,30,56,82]),new $e(30,new oe(5,120),new oe(1,121)),new $e(26,new oe(9,43),new oe(4,44)),new $e(28,new oe(17,22),new oe(1,23)),new $e(28,new oe(2,14),new oe(19,15))),new xt(19,Int32Array.from([6,30,58,86]),new $e(28,new oe(3,113),new oe(4,114)),new $e(26,new oe(3,44),new oe(11,45)),new $e(26,new oe(17,21),new oe(4,22)),new $e(26,new oe(9,13),new oe(16,14))),new xt(20,Int32Array.from([6,34,62,90]),new $e(28,new oe(3,107),new oe(5,108)),new $e(26,new oe(3,41),new oe(13,42)),new $e(30,new oe(15,24),new oe(5,25)),new $e(28,new oe(15,15),new oe(10,16))),new xt(21,Int32Array.from([6,28,50,72,94]),new $e(28,new oe(4,116),new oe(4,117)),new $e(26,new oe(17,42)),new $e(28,new oe(17,22),new oe(6,23)),new $e(30,new oe(19,16),new oe(6,17))),new xt(22,Int32Array.from([6,26,50,74,98]),new $e(28,new oe(2,111),new oe(7,112)),new $e(28,new oe(17,46)),new $e(30,new oe(7,24),new oe(16,25)),new $e(24,new oe(34,13))),new xt(23,Int32Array.from([6,30,54,78,102]),new $e(30,new oe(4,121),new oe(5,122)),new $e(28,new oe(4,47),new oe(14,48)),new $e(30,new oe(11,24),new oe(14,25)),new $e(30,new oe(16,15),new oe(14,16))),new xt(24,Int32Array.from([6,28,54,80,106]),new $e(30,new oe(6,117),new oe(4,118)),new $e(28,new oe(6,45),new oe(14,46)),new $e(30,new oe(11,24),new oe(16,25)),new $e(30,new oe(30,16),new oe(2,17))),new xt(25,Int32Array.from([6,32,58,84,110]),new $e(26,new oe(8,106),new oe(4,107)),new $e(28,new oe(8,47),new oe(13,48)),new $e(30,new oe(7,24),new oe(22,25)),new $e(30,new oe(22,15),new oe(13,16))),new xt(26,Int32Array.from([6,30,58,86,114]),new $e(28,new oe(10,114),new oe(2,115)),new $e(28,new oe(19,46),new oe(4,47)),new $e(28,new oe(28,22),new oe(6,23)),new $e(30,new oe(33,16),new oe(4,17))),new xt(27,Int32Array.from([6,34,62,90,118]),new $e(30,new oe(8,122),new oe(4,123)),new $e(28,new oe(22,45),new oe(3,46)),new $e(30,new oe(8,23),new oe(26,24)),new $e(30,new oe(12,15),new oe(28,16))),new xt(28,Int32Array.from([6,26,50,74,98,122]),new $e(30,new oe(3,117),new oe(10,118)),new $e(28,new oe(3,45),new oe(23,46)),new $e(30,new oe(4,24),new oe(31,25)),new $e(30,new oe(11,15),new oe(31,16))),new xt(29,Int32Array.from([6,30,54,78,102,126]),new $e(30,new oe(7,116),new oe(7,117)),new $e(28,new oe(21,45),new oe(7,46)),new $e(30,new oe(1,23),new oe(37,24)),new $e(30,new oe(19,15),new oe(26,16))),new xt(30,Int32Array.from([6,26,52,78,104,130]),new $e(30,new oe(5,115),new oe(10,116)),new $e(28,new oe(19,47),new oe(10,48)),new $e(30,new oe(15,24),new oe(25,25)),new $e(30,new oe(23,15),new oe(25,16))),new xt(31,Int32Array.from([6,30,56,82,108,134]),new $e(30,new oe(13,115),new oe(3,116)),new $e(28,new oe(2,46),new oe(29,47)),new $e(30,new oe(42,24),new oe(1,25)),new $e(30,new oe(23,15),new oe(28,16))),new xt(32,Int32Array.from([6,34,60,86,112,138]),new $e(30,new oe(17,115)),new $e(28,new oe(10,46),new oe(23,47)),new $e(30,new oe(10,24),new oe(35,25)),new $e(30,new oe(19,15),new oe(35,16))),new xt(33,Int32Array.from([6,30,58,86,114,142]),new $e(30,new oe(17,115),new oe(1,116)),new $e(28,new oe(14,46),new oe(21,47)),new $e(30,new oe(29,24),new oe(19,25)),new $e(30,new oe(11,15),new oe(46,16))),new xt(34,Int32Array.from([6,34,62,90,118,146]),new $e(30,new oe(13,115),new oe(6,116)),new $e(28,new oe(14,46),new oe(23,47)),new $e(30,new oe(44,24),new oe(7,25)),new $e(30,new oe(59,16),new oe(1,17))),new xt(35,Int32Array.from([6,30,54,78,102,126,150]),new $e(30,new oe(12,121),new oe(7,122)),new $e(28,new oe(12,47),new oe(26,48)),new $e(30,new oe(39,24),new oe(14,25)),new $e(30,new oe(22,15),new oe(41,16))),new xt(36,Int32Array.from([6,24,50,76,102,128,154]),new $e(30,new oe(6,121),new oe(14,122)),new $e(28,new oe(6,47),new oe(34,48)),new $e(30,new oe(46,24),new oe(10,25)),new $e(30,new oe(2,15),new oe(64,16))),new xt(37,Int32Array.from([6,28,54,80,106,132,158]),new $e(30,new oe(17,122),new oe(4,123)),new $e(28,new oe(29,46),new oe(14,47)),new $e(30,new oe(49,24),new oe(10,25)),new $e(30,new oe(24,15),new oe(46,16))),new xt(38,Int32Array.from([6,32,58,84,110,136,162]),new $e(30,new oe(4,122),new oe(18,123)),new $e(28,new oe(13,46),new oe(32,47)),new $e(30,new oe(48,24),new oe(14,25)),new $e(30,new oe(42,15),new oe(32,16))),new xt(39,Int32Array.from([6,26,54,82,110,138,166]),new $e(30,new oe(20,117),new oe(4,118)),new $e(28,new oe(40,47),new oe(7,48)),new $e(30,new oe(43,24),new oe(22,25)),new $e(30,new oe(10,15),new oe(67,16))),new xt(40,Int32Array.from([6,30,58,86,114,142,170]),new $e(30,new oe(19,118),new oe(6,119)),new $e(28,new oe(18,47),new oe(31,48)),new $e(30,new oe(34,24),new oe(34,25)),new $e(30,new oe(20,15),new oe(61,16)))];var qn;(function(H){H[H.DATA_MASK_000=0]="DATA_MASK_000",H[H.DATA_MASK_001=1]="DATA_MASK_001",H[H.DATA_MASK_010=2]="DATA_MASK_010",H[H.DATA_MASK_011=3]="DATA_MASK_011",H[H.DATA_MASK_100=4]="DATA_MASK_100",H[H.DATA_MASK_101=5]="DATA_MASK_101",H[H.DATA_MASK_110=6]="DATA_MASK_110",H[H.DATA_MASK_111=7]="DATA_MASK_111"})(qn||(qn={}));class tr{constructor(r,a){this.value=r,this.isMasked=a}unmaskBitMatrix(r,a){for(let u=0;u<a;u++)for(let d=0;d<a;d++)this.isMasked(u,d)&&r.flip(d,u)}}tr.values=new Map([[qn.DATA_MASK_000,new tr(qn.DATA_MASK_000,(H,r)=>(H+r&1)===0)],[qn.DATA_MASK_001,new tr(qn.DATA_MASK_001,(H,r)=>(H&1)===0)],[qn.DATA_MASK_010,new tr(qn.DATA_MASK_010,(H,r)=>r%3===0)],[qn.DATA_MASK_011,new tr(qn.DATA_MASK_011,(H,r)=>(H+r)%3===0)],[qn.DATA_MASK_100,new tr(qn.DATA_MASK_100,(H,r)=>(Math.floor(H/2)+Math.floor(r/3)&1)===0)],[qn.DATA_MASK_101,new tr(qn.DATA_MASK_101,(H,r)=>H*r%6===0)],[qn.DATA_MASK_110,new tr(qn.DATA_MASK_110,(H,r)=>H*r%6<3)],[qn.DATA_MASK_111,new tr(qn.DATA_MASK_111,(H,r)=>(H+r+H*r%3&1)===0)]]);class i3{constructor(r){const a=r.getHeight();if(a<21||(a&3)!==1)throw new x;this.bitMatrix=r}readFormatInformation(){if(this.parsedFormatInfo!==null&&this.parsedFormatInfo!==void 0)return this.parsedFormatInfo;let r=0;for(let h=0;h<6;h++)r=this.copyBit(h,8,r);r=this.copyBit(7,8,r),r=this.copyBit(8,8,r),r=this.copyBit(8,7,r);for(let h=5;h>=0;h--)r=this.copyBit(8,h,r);const a=this.bitMatrix.getHeight();let u=0;const d=a-7;for(let h=a-1;h>=d;h--)u=this.copyBit(8,h,u);for(let h=a-8;h<a;h++)u=this.copyBit(h,8,u);if(this.parsedFormatInfo=ho.decodeFormatInformation(r,u),this.parsedFormatInfo!==null)return this.parsedFormatInfo;throw new x}readVersion(){if(this.parsedVersion!==null&&this.parsedVersion!==void 0)return this.parsedVersion;const r=this.bitMatrix.getHeight(),a=Math.floor((r-17)/4);if(a<=6)return xt.getVersionForNumber(a);let u=0;const d=r-11;for(let g=5;g>=0;g--)for(let b=r-9;b>=d;b--)u=this.copyBit(b,g,u);let h=xt.decodeVersionInformation(u);if(h!==null&&h.getDimensionForVersion()===r)return this.parsedVersion=h,h;u=0;for(let g=5;g>=0;g--)for(let b=r-9;b>=d;b--)u=this.copyBit(g,b,u);if(h=xt.decodeVersionInformation(u),h!==null&&h.getDimensionForVersion()===r)return this.parsedVersion=h,h;throw new x}copyBit(r,a,u){return(this.isMirror?this.bitMatrix.get(a,r):this.bitMatrix.get(r,a))?u<<1|1:u<<1}readCodewords(){const r=this.readFormatInformation(),a=this.readVersion(),u=tr.values.get(r.getDataMask()),d=this.bitMatrix.getHeight();u.unmaskBitMatrix(this.bitMatrix,d);const h=a.buildFunctionPattern();let g=!0;const b=new Uint8Array(a.getTotalCodewords());let C=0,A=0,L=0;for(let U=d-1;U>0;U-=2){U===6&&U--;for(let Z=0;Z<d;Z++){const se=g?d-1-Z:Z;for(let ye=0;ye<2;ye++)h.get(U-ye,se)||(L++,A<<=1,this.bitMatrix.get(U-ye,se)&&(A|=1),L===8&&(b[C++]=A,L=0,A=0))}g=!g}if(C!==a.getTotalCodewords())throw new x;return b}remask(){if(this.parsedFormatInfo===null)return;const r=tr.values[this.parsedFormatInfo.getDataMask()],a=this.bitMatrix.getHeight();r.unmaskBitMatrix(this.bitMatrix,a)}setMirror(r){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=r}mirror(){const r=this.bitMatrix;for(let a=0,u=r.getWidth();a<u;a++)for(let d=a+1,h=r.getHeight();d<h;d++)r.get(a,d)!==r.get(d,a)&&(r.flip(d,a),r.flip(a,d))}}class df{constructor(r,a){this.numDataCodewords=r,this.codewords=a}static getDataBlocks(r,a,u){if(r.length!==a.getTotalCodewords())throw new m;const d=a.getECBlocksForLevel(u);let h=0;const g=d.getECBlocks();for(const ye of g)h+=ye.getCount();const b=new Array(h);let C=0;for(const ye of g)for(let Ce=0;Ce<ye.getCount();Ce++){const Oe=ye.getDataCodewords(),Ke=d.getECCodewordsPerBlock()+Oe;b[C++]=new df(Oe,new Uint8Array(Ke))}const A=b[0].codewords.length;let L=b.length-1;for(;L>=0&&b[L].codewords.length!==A;)L--;L++;const U=A-d.getECCodewordsPerBlock();let Z=0;for(let ye=0;ye<U;ye++)for(let Ce=0;Ce<C;Ce++)b[Ce].codewords[ye]=r[Z++];for(let ye=L;ye<C;ye++)b[ye].codewords[U]=r[Z++];const se=b[0].codewords.length;for(let ye=U;ye<se;ye++)for(let Ce=0;Ce<C;Ce++){const Oe=Ce<L?ye:ye+1;b[Ce].codewords[Oe]=r[Z++]}return b}getNumDataCodewords(){return this.numDataCodewords}getCodewords(){return this.codewords}}var nr;(function(H){H[H.TERMINATOR=0]="TERMINATOR",H[H.NUMERIC=1]="NUMERIC",H[H.ALPHANUMERIC=2]="ALPHANUMERIC",H[H.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",H[H.BYTE=4]="BYTE",H[H.ECI=5]="ECI",H[H.KANJI=6]="KANJI",H[H.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",H[H.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",H[H.HANZI=9]="HANZI"})(nr||(nr={}));class Rt{constructor(r,a,u,d){this.value=r,this.stringValue=a,this.characterCountBitsForVersions=u,this.bits=d,Rt.FOR_BITS.set(d,this),Rt.FOR_VALUE.set(r,this)}static forBits(r){const a=Rt.FOR_BITS.get(r);if(a===void 0)throw new m;return a}getCharacterCountBits(r){const a=r.getVersionNumber();let u;return a<=9?u=0:a<=26?u=1:u=2,this.characterCountBitsForVersions[u]}getValue(){return this.value}getBits(){return this.bits}equals(r){if(!(r instanceof Rt))return!1;const a=r;return this.value===a.value}toString(){return this.stringValue}}Rt.FOR_BITS=new Map,Rt.FOR_VALUE=new Map,Rt.TERMINATOR=new Rt(nr.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),Rt.NUMERIC=new Rt(nr.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),Rt.ALPHANUMERIC=new Rt(nr.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),Rt.STRUCTURED_APPEND=new Rt(nr.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),Rt.BYTE=new Rt(nr.BYTE,"BYTE",Int32Array.from([8,16,16]),4),Rt.ECI=new Rt(nr.ECI,"ECI",Int32Array.from([0,0,0]),7),Rt.KANJI=new Rt(nr.KANJI,"KANJI",Int32Array.from([8,10,12]),8),Rt.FNC1_FIRST_POSITION=new Rt(nr.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),Rt.FNC1_SECOND_POSITION=new Rt(nr.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),Rt.HANZI=new Rt(nr.HANZI,"HANZI",Int32Array.from([8,10,12]),13);class Mn{static decode(r,a,u,d){const h=new cf(r);let g=new J;const b=new Array;let C=-1,A=-1;try{let L=null,U=!1,Z;do{if(h.available()<4)Z=Rt.TERMINATOR;else{const se=h.readBits(4);Z=Rt.forBits(se)}switch(Z){case Rt.TERMINATOR:break;case Rt.FNC1_FIRST_POSITION:case Rt.FNC1_SECOND_POSITION:U=!0;break;case Rt.STRUCTURED_APPEND:if(h.available()<16)throw new x;C=h.readBits(8),A=h.readBits(8);break;case Rt.ECI:const se=Mn.parseECIValue(h);if(L=B.getCharacterSetECIByValue(se),L===null)throw new x;break;case Rt.HANZI:const ye=h.readBits(4),Ce=h.readBits(Z.getCharacterCountBits(a));ye===Mn.GB2312_SUBSET&&Mn.decodeHanziSegment(h,g,Ce);break;default:const Oe=h.readBits(Z.getCharacterCountBits(a));switch(Z){case Rt.NUMERIC:Mn.decodeNumericSegment(h,g,Oe);break;case Rt.ALPHANUMERIC:Mn.decodeAlphanumericSegment(h,g,Oe,U);break;case Rt.BYTE:Mn.decodeByteSegment(h,g,Oe,L,b,d);break;case Rt.KANJI:Mn.decodeKanjiSegment(h,g,Oe);break;default:throw new x}break}}while(Z!==Rt.TERMINATOR)}catch{throw new x}return new We(r,g.toString(),b.length===0?null:b,u===null?null:u.toString(),C,A)}static decodeHanziSegment(r,a,u){if(u*13>r.available())throw new x;const d=new Uint8Array(2*u);let h=0;for(;u>0;){const g=r.readBits(13);let b=g/96<<8&4294967295|g%96;b<959?b+=41377:b+=42657,d[h]=b>>8&255,d[h+1]=b&255,h+=2,u--}try{a.append(X.decode(d,K.GB2312))}catch(g){throw new x(g)}}static decodeKanjiSegment(r,a,u){if(u*13>r.available())throw new x;const d=new Uint8Array(2*u);let h=0;for(;u>0;){const g=r.readBits(13);let b=g/192<<8&4294967295|g%192;b<7936?b+=33088:b+=49472,d[h]=b>>8,d[h+1]=b,h+=2,u--}try{a.append(X.decode(d,K.SHIFT_JIS))}catch(g){throw new x(g)}}static decodeByteSegment(r,a,u,d,h,g){if(8*u>r.available())throw new x;const b=new Uint8Array(u);for(let A=0;A<u;A++)b[A]=r.readBits(8);let C;d===null?C=K.guessEncoding(b,g):C=d.getName();try{a.append(X.decode(b,C))}catch(A){throw new x(A)}h.push(b)}static toAlphaNumericChar(r){if(r>=Mn.ALPHANUMERIC_CHARS.length)throw new x;return Mn.ALPHANUMERIC_CHARS[r]}static decodeAlphanumericSegment(r,a,u,d){const h=a.length();for(;u>1;){if(r.available()<11)throw new x;const g=r.readBits(11);a.append(Mn.toAlphaNumericChar(Math.floor(g/45))),a.append(Mn.toAlphaNumericChar(g%45)),u-=2}if(u===1){if(r.available()<6)throw new x;a.append(Mn.toAlphaNumericChar(r.readBits(6)))}if(d)for(let g=h;g<a.length();g++)a.charAt(g)==="%"&&(g<a.length()-1&&a.charAt(g+1)==="%"?a.deleteCharAt(g+1):a.setCharAt(g,String.fromCharCode(29)))}static decodeNumericSegment(r,a,u){for(;u>=3;){if(r.available()<10)throw new x;const d=r.readBits(10);if(d>=1e3)throw new x;a.append(Mn.toAlphaNumericChar(Math.floor(d/100))),a.append(Mn.toAlphaNumericChar(Math.floor(d/10)%10)),a.append(Mn.toAlphaNumericChar(d%10)),u-=3}if(u===2){if(r.available()<7)throw new x;const d=r.readBits(7);if(d>=100)throw new x;a.append(Mn.toAlphaNumericChar(Math.floor(d/10))),a.append(Mn.toAlphaNumericChar(d%10))}else if(u===1){if(r.available()<4)throw new x;const d=r.readBits(4);if(d>=10)throw new x;a.append(Mn.toAlphaNumericChar(d))}}static parseECIValue(r){const a=r.readBits(8);if((a&128)===0)return a&127;if((a&192)===128){const u=r.readBits(8);return(a&63)<<8&4294967295|u}if((a&224)===192){const u=r.readBits(16);return(a&31)<<16&4294967295|u}throw new x}}Mn.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Mn.GB2312_SUBSET=1;class p1{constructor(r){this.mirrored=r}isMirrored(){return this.mirrored}applyMirroredCorrection(r){if(!this.mirrored||r===null||r.length<3)return;const a=r[0];r[0]=r[2],r[2]=a}}class a3{constructor(){this.rsDecoder=new Ne(ot.QR_CODE_FIELD_256)}decodeBooleanArray(r,a){return this.decodeBitMatrix(G.parseFromBooleanArray(r),a)}decodeBitMatrix(r,a){const u=new i3(r);let d=null;try{return this.decodeBitMatrixParser(u,a)}catch(h){d=h}try{u.remask(),u.setMirror(!0),u.readVersion(),u.readFormatInformation(),u.mirror();const h=this.decodeBitMatrixParser(u,a);return h.setOther(new p1(!0)),h}catch(h){throw d!==null?d:h}}decodeBitMatrixParser(r,a){const u=r.readVersion(),d=r.readFormatInformation().getErrorCorrectionLevel(),h=r.readCodewords(),g=df.getDataBlocks(h,u,d);let b=0;for(const L of g)b+=L.getNumDataCodewords();const C=new Uint8Array(b);let A=0;for(const L of g){const U=L.getCodewords(),Z=L.getNumDataCodewords();this.correctErrors(U,Z);for(let se=0;se<Z;se++)C[A++]=U[se]}return Mn.decode(C,u,d,a)}correctErrors(r,a){const u=new Int32Array(r);try{this.rsDecoder.decode(u,r.length-a)}catch{throw new v}for(let d=0;d<a;d++)r[d]=u[d]}}class ff extends re{constructor(r,a,u){super(r,a),this.estimatedModuleSize=u}aboutEquals(r,a,u){if(Math.abs(a-this.getY())<=r&&Math.abs(u-this.getX())<=r){const d=Math.abs(r-this.estimatedModuleSize);return d<=1||d<=this.estimatedModuleSize}return!1}combineEstimate(r,a,u){const d=(this.getX()+a)/2,h=(this.getY()+r)/2,g=(this.estimatedModuleSize+u)/2;return new ff(d,h,g)}}class Pu{constructor(r,a,u,d,h,g,b){this.image=r,this.startX=a,this.startY=u,this.width=d,this.height=h,this.moduleSize=g,this.resultPointCallback=b,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}find(){const r=this.startX,a=this.height,u=this.width,d=r+u,h=this.startY+a/2,g=new Int32Array(3),b=this.image;for(let C=0;C<a;C++){const A=h+((C&1)===0?Math.floor((C+1)/2):-Math.floor((C+1)/2));g[0]=0,g[1]=0,g[2]=0;let L=r;for(;L<d&&!b.get(L,A);)L++;let U=0;for(;L<d;){if(b.get(L,A))if(U===1)g[1]++;else if(U===2){if(this.foundPatternCross(g)){const Z=this.handlePossibleCenter(g,A,L);if(Z!==null)return Z}g[0]=g[2],g[1]=1,g[2]=0,U=1}else g[++U]++;else U===1&&U++,g[U]++;L++}if(this.foundPatternCross(g)){const Z=this.handlePossibleCenter(g,A,d);if(Z!==null)return Z}}if(this.possibleCenters.length!==0)return this.possibleCenters[0];throw new z}static centerFromEnd(r,a){return a-r[2]-r[1]/2}foundPatternCross(r){const a=this.moduleSize,u=a/2;for(let d=0;d<3;d++)if(Math.abs(a-r[d])>=u)return!1;return!0}crossCheckVertical(r,a,u,d){const h=this.image,g=h.getHeight(),b=this.crossCheckStateCount;b[0]=0,b[1]=0,b[2]=0;let C=r;for(;C>=0&&h.get(a,C)&&b[1]<=u;)b[1]++,C--;if(C<0||b[1]>u)return NaN;for(;C>=0&&!h.get(a,C)&&b[0]<=u;)b[0]++,C--;if(b[0]>u)return NaN;for(C=r+1;C<g&&h.get(a,C)&&b[1]<=u;)b[1]++,C++;if(C===g||b[1]>u)return NaN;for(;C<g&&!h.get(a,C)&&b[2]<=u;)b[2]++,C++;if(b[2]>u)return NaN;const A=b[0]+b[1]+b[2];return 5*Math.abs(A-d)>=2*d?NaN:this.foundPatternCross(b)?Pu.centerFromEnd(b,C):NaN}handlePossibleCenter(r,a,u){const d=r[0]+r[1]+r[2],h=Pu.centerFromEnd(r,u),g=this.crossCheckVertical(a,h,2*r[1],d);if(!isNaN(g)){const b=(r[0]+r[1]+r[2])/3;for(const A of this.possibleCenters)if(A.aboutEquals(b,g,h))return A.combineEstimate(g,h,b);const C=new ff(h,g,b);this.possibleCenters.push(C),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(C)}return null}}class hf extends re{constructor(r,a,u,d){super(r,a),this.estimatedModuleSize=u,this.count=d,d===void 0&&(this.count=1)}getEstimatedModuleSize(){return this.estimatedModuleSize}getCount(){return this.count}aboutEquals(r,a,u){if(Math.abs(a-this.getY())<=r&&Math.abs(u-this.getX())<=r){const d=Math.abs(r-this.estimatedModuleSize);return d<=1||d<=this.estimatedModuleSize}return!1}combineEstimate(r,a,u){const d=this.count+1,h=(this.count*this.getX()+a)/d,g=(this.count*this.getY()+r)/d,b=(this.count*this.estimatedModuleSize+u)/d;return new hf(h,g,b,d)}}class l3{constructor(r){this.bottomLeft=r[0],this.topLeft=r[1],this.topRight=r[2]}getBottomLeft(){return this.bottomLeft}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}}class Zn{constructor(r,a){this.image=r,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=a}getImage(){return this.image}getPossibleCenters(){return this.possibleCenters}find(r){const a=r!=null&&r.get(D.TRY_HARDER)!==void 0,u=r!=null&&r.get(D.PURE_BARCODE)!==void 0,d=this.image,h=d.getHeight(),g=d.getWidth();let b=Math.floor(3*h/(4*Zn.MAX_MODULES));(b<Zn.MIN_SKIP||a)&&(b=Zn.MIN_SKIP);let C=!1;const A=new Int32Array(5);for(let U=b-1;U<h&&!C;U+=b){A[0]=0,A[1]=0,A[2]=0,A[3]=0,A[4]=0;let Z=0;for(let se=0;se<g;se++)if(d.get(se,U))(Z&1)===1&&Z++,A[Z]++;else if((Z&1)===0)if(Z===4)if(Zn.foundPatternCross(A)){if(this.handlePossibleCenter(A,U,se,u)===!0)if(b=2,this.hasSkipped===!0)C=this.haveMultiplyConfirmedCenters();else{const Ce=this.findRowSkip();Ce>A[2]&&(U+=Ce-A[2]-b,se=g-1)}else{A[0]=A[2],A[1]=A[3],A[2]=A[4],A[3]=1,A[4]=0,Z=3;continue}Z=0,A[0]=0,A[1]=0,A[2]=0,A[3]=0,A[4]=0}else A[0]=A[2],A[1]=A[3],A[2]=A[4],A[3]=1,A[4]=0,Z=3;else A[++Z]++;else A[Z]++;Zn.foundPatternCross(A)&&this.handlePossibleCenter(A,U,g,u)===!0&&(b=A[0],this.hasSkipped&&(C=this.haveMultiplyConfirmedCenters()))}const L=this.selectBestPatterns();return re.orderBestPatterns(L),new l3(L)}static centerFromEnd(r,a){return a-r[4]-r[3]-r[2]/2}static foundPatternCross(r){let a=0;for(let h=0;h<5;h++){const g=r[h];if(g===0)return!1;a+=g}if(a<7)return!1;const u=a/7,d=u/2;return Math.abs(u-r[0])<d&&Math.abs(u-r[1])<d&&Math.abs(3*u-r[2])<3*d&&Math.abs(u-r[3])<d&&Math.abs(u-r[4])<d}getCrossCheckStateCount(){const r=this.crossCheckStateCount;return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r}crossCheckDiagonal(r,a,u,d){const h=this.getCrossCheckStateCount();let g=0;const b=this.image;for(;r>=g&&a>=g&&b.get(a-g,r-g);)h[2]++,g++;if(r<g||a<g)return!1;for(;r>=g&&a>=g&&!b.get(a-g,r-g)&&h[1]<=u;)h[1]++,g++;if(r<g||a<g||h[1]>u)return!1;for(;r>=g&&a>=g&&b.get(a-g,r-g)&&h[0]<=u;)h[0]++,g++;if(h[0]>u)return!1;const C=b.getHeight(),A=b.getWidth();for(g=1;r+g<C&&a+g<A&&b.get(a+g,r+g);)h[2]++,g++;if(r+g>=C||a+g>=A)return!1;for(;r+g<C&&a+g<A&&!b.get(a+g,r+g)&&h[3]<u;)h[3]++,g++;if(r+g>=C||a+g>=A||h[3]>=u)return!1;for(;r+g<C&&a+g<A&&b.get(a+g,r+g)&&h[4]<u;)h[4]++,g++;if(h[4]>=u)return!1;const L=h[0]+h[1]+h[2]+h[3]+h[4];return Math.abs(L-d)<2*d&&Zn.foundPatternCross(h)}crossCheckVertical(r,a,u,d){const h=this.image,g=h.getHeight(),b=this.getCrossCheckStateCount();let C=r;for(;C>=0&&h.get(a,C);)b[2]++,C--;if(C<0)return NaN;for(;C>=0&&!h.get(a,C)&&b[1]<=u;)b[1]++,C--;if(C<0||b[1]>u)return NaN;for(;C>=0&&h.get(a,C)&&b[0]<=u;)b[0]++,C--;if(b[0]>u)return NaN;for(C=r+1;C<g&&h.get(a,C);)b[2]++,C++;if(C===g)return NaN;for(;C<g&&!h.get(a,C)&&b[3]<u;)b[3]++,C++;if(C===g||b[3]>=u)return NaN;for(;C<g&&h.get(a,C)&&b[4]<u;)b[4]++,C++;if(b[4]>=u)return NaN;const A=b[0]+b[1]+b[2]+b[3]+b[4];return 5*Math.abs(A-d)>=2*d?NaN:Zn.foundPatternCross(b)?Zn.centerFromEnd(b,C):NaN}crossCheckHorizontal(r,a,u,d){const h=this.image,g=h.getWidth(),b=this.getCrossCheckStateCount();let C=r;for(;C>=0&&h.get(C,a);)b[2]++,C--;if(C<0)return NaN;for(;C>=0&&!h.get(C,a)&&b[1]<=u;)b[1]++,C--;if(C<0||b[1]>u)return NaN;for(;C>=0&&h.get(C,a)&&b[0]<=u;)b[0]++,C--;if(b[0]>u)return NaN;for(C=r+1;C<g&&h.get(C,a);)b[2]++,C++;if(C===g)return NaN;for(;C<g&&!h.get(C,a)&&b[3]<u;)b[3]++,C++;if(C===g||b[3]>=u)return NaN;for(;C<g&&h.get(C,a)&&b[4]<u;)b[4]++,C++;if(b[4]>=u)return NaN;const A=b[0]+b[1]+b[2]+b[3]+b[4];return 5*Math.abs(A-d)>=d?NaN:Zn.foundPatternCross(b)?Zn.centerFromEnd(b,C):NaN}handlePossibleCenter(r,a,u,d){const h=r[0]+r[1]+r[2]+r[3]+r[4];let g=Zn.centerFromEnd(r,u),b=this.crossCheckVertical(a,Math.floor(g),r[2],h);if(!isNaN(b)&&(g=this.crossCheckHorizontal(Math.floor(g),Math.floor(b),r[2],h),!isNaN(g)&&(!d||this.crossCheckDiagonal(Math.floor(b),Math.floor(g),r[2],h)))){const C=h/7;let A=!1;const L=this.possibleCenters;for(let U=0,Z=L.length;U<Z;U++){const se=L[U];if(se.aboutEquals(C,b,g)){L[U]=se.combineEstimate(b,g,C),A=!0;break}}if(!A){const U=new hf(g,b,C);L.push(U),this.resultPointCallback!==null&&this.resultPointCallback!==void 0&&this.resultPointCallback.foundPossibleResultPoint(U)}return!0}return!1}findRowSkip(){if(this.possibleCenters.length<=1)return 0;let a=null;for(const u of this.possibleCenters)if(u.getCount()>=Zn.CENTER_QUORUM)if(a==null)a=u;else return this.hasSkipped=!0,Math.floor((Math.abs(a.getX()-u.getX())-Math.abs(a.getY()-u.getY()))/2);return 0}haveMultiplyConfirmedCenters(){let r=0,a=0;const u=this.possibleCenters.length;for(const g of this.possibleCenters)g.getCount()>=Zn.CENTER_QUORUM&&(r++,a+=g.getEstimatedModuleSize());if(r<3)return!1;const d=a/u;let h=0;for(const g of this.possibleCenters)h+=Math.abs(g.getEstimatedModuleSize()-d);return h<=.05*a}selectBestPatterns(){const r=this.possibleCenters.length;if(r<3)throw new z;const a=this.possibleCenters;let u;if(r>3){let d=0,h=0;for(const C of this.possibleCenters){const A=C.getEstimatedModuleSize();d+=A,h+=A*A}u=d/r;let g=Math.sqrt(h/r-u*u);a.sort((C,A)=>{const L=Math.abs(A.getEstimatedModuleSize()-u),U=Math.abs(C.getEstimatedModuleSize()-u);return L<U?-1:L>U?1:0});const b=Math.max(.2*u,g);for(let C=0;C<a.length&&a.length>3;C++){const A=a[C];Math.abs(A.getEstimatedModuleSize()-u)>b&&(a.splice(C,1),C--)}}if(a.length>3){let d=0;for(const h of a)d+=h.getEstimatedModuleSize();u=d/a.length,a.sort((h,g)=>{if(g.getCount()===h.getCount()){const b=Math.abs(g.getEstimatedModuleSize()-u),C=Math.abs(h.getEstimatedModuleSize()-u);return b<C?1:b>C?-1:0}else return g.getCount()-h.getCount()}),a.splice(3)}return[a[0],a[1],a[2]]}}Zn.CENTER_QUORUM=2,Zn.MIN_SKIP=3,Zn.MAX_MODULES=57;class cl{constructor(r){this.image=r}getImage(){return this.image}getResultPointCallback(){return this.resultPointCallback}detect(r){this.resultPointCallback=r==null?null:r.get(D.NEED_RESULT_POINT_CALLBACK);const u=new Zn(this.image,this.resultPointCallback).find(r);return this.processFinderPatternInfo(u)}processFinderPatternInfo(r){const a=r.getTopLeft(),u=r.getTopRight(),d=r.getBottomLeft(),h=this.calculateModuleSize(a,u,d);if(h<1)throw new z("No pattern found in proccess finder.");const g=cl.computeDimension(a,u,d,h),b=xt.getProvisionalVersionForDimension(g),C=b.getDimensionForVersion()-7;let A=null;if(b.getAlignmentPatternCenters().length>0){const se=u.getX()-a.getX()+d.getX(),ye=u.getY()-a.getY()+d.getY(),Ce=1-3/C,Oe=Math.floor(a.getX()+Ce*(se-a.getX())),Ke=Math.floor(a.getY()+Ce*(ye-a.getY()));for(let ft=4;ft<=16;ft<<=1)try{A=this.findAlignmentInRegion(h,Oe,Ke,ft);break}catch(ht){if(!(ht instanceof z))throw ht}}const L=cl.createTransform(a,u,d,A,g),U=cl.sampleGrid(this.image,L,g);let Z;return A===null?Z=[d,a,u]:Z=[d,a,u,A],new ge(U,Z)}static createTransform(r,a,u,d,h){const g=h-3.5;let b,C,A,L;return d!==null?(b=d.getX(),C=d.getY(),A=g-3,L=A):(b=a.getX()-r.getX()+u.getX(),C=a.getY()-r.getY()+u.getY(),A=g,L=g),He.quadrilateralToQuadrilateral(3.5,3.5,g,3.5,A,L,3.5,g,r.getX(),r.getY(),a.getX(),a.getY(),b,C,u.getX(),u.getY())}static sampleGrid(r,a,u){return At.getInstance().sampleGridWithTransform(r,u,u,a)}static computeDimension(r,a,u,d){const h=Ve.round(re.distance(r,a)/d),g=Ve.round(re.distance(r,u)/d);let b=Math.floor((h+g)/2)+7;switch(b&3){case 0:b++;break;case 2:b--;break;case 3:throw new z("Dimensions could be not found.")}return b}calculateModuleSize(r,a,u){return(this.calculateModuleSizeOneWay(r,a)+this.calculateModuleSizeOneWay(r,u))/2}calculateModuleSizeOneWay(r,a){const u=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(r.getX()),Math.floor(r.getY()),Math.floor(a.getX()),Math.floor(a.getY())),d=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(a.getX()),Math.floor(a.getY()),Math.floor(r.getX()),Math.floor(r.getY()));return isNaN(u)?d/7:isNaN(d)?u/7:(u+d)/14}sizeOfBlackWhiteBlackRunBothWays(r,a,u,d){let h=this.sizeOfBlackWhiteBlackRun(r,a,u,d),g=1,b=r-(u-r);b<0?(g=r/(r-b),b=0):b>=this.image.getWidth()&&(g=(this.image.getWidth()-1-r)/(b-r),b=this.image.getWidth()-1);let C=Math.floor(a-(d-a)*g);return g=1,C<0?(g=a/(a-C),C=0):C>=this.image.getHeight()&&(g=(this.image.getHeight()-1-a)/(C-a),C=this.image.getHeight()-1),b=Math.floor(r+(b-r)*g),h+=this.sizeOfBlackWhiteBlackRun(r,a,b,C),h-1}sizeOfBlackWhiteBlackRun(r,a,u,d){const h=Math.abs(d-a)>Math.abs(u-r);if(h){let se=r;r=a,a=se,se=u,u=d,d=se}const g=Math.abs(u-r),b=Math.abs(d-a);let C=-g/2;const A=r<u?1:-1,L=a<d?1:-1;let U=0;const Z=u+A;for(let se=r,ye=a;se!==Z;se+=A){const Ce=h?ye:se,Oe=h?se:ye;if(U===1===this.image.get(Ce,Oe)){if(U===2)return Ve.distance(se,ye,r,a);U++}if(C+=b,C>0){if(ye===d)break;ye+=L,C-=g}}return U===2?Ve.distance(u+A,d,r,a):NaN}findAlignmentInRegion(r,a,u,d){const h=Math.floor(d*r),g=Math.max(0,a-h),b=Math.min(this.image.getWidth()-1,a+h);if(b-g<r*3)throw new z("Alignment top exceeds estimated module size.");const C=Math.max(0,u-h),A=Math.min(this.image.getHeight()-1,u+h);if(A-C<r*3)throw new z("Alignment bottom exceeds estimated module size.");return new Pu(this.image,g,C,b-g,A-C,r,this.resultPointCallback).find()}}class _s{constructor(){this.decoder=new a3}getDecoder(){return this.decoder}decode(r,a){let u,d;if(a!=null&&a.get(D.PURE_BARCODE)!==void 0){const C=_s.extractPureBits(r.getBlackMatrix());u=this.decoder.decodeBitMatrix(C,a),d=_s.NO_POINTS}else{const C=new cl(r.getBlackMatrix()).detect(a);u=this.decoder.decodeBitMatrix(C.getBits(),a),d=C.getPoints()}u.getOther()instanceof p1&&u.getOther().applyMirroredCorrection(d);const h=new Ee(u.getText(),u.getRawBytes(),void 0,d,xe.QR_CODE,void 0),g=u.getByteSegments();g!==null&&h.putMetadata(Me.BYTE_SEGMENTS,g);const b=u.getECLevel();return b!==null&&h.putMetadata(Me.ERROR_CORRECTION_LEVEL,b),u.hasStructuredAppend()&&(h.putMetadata(Me.STRUCTURED_APPEND_SEQUENCE,u.getStructuredAppendSequenceNumber()),h.putMetadata(Me.STRUCTURED_APPEND_PARITY,u.getStructuredAppendParity())),h}reset(){}static extractPureBits(r){const a=r.getTopLeftOnBit(),u=r.getBottomRightOnBit();if(a===null||u===null)throw new z;const d=this.moduleSize(a,r);let h=a[1],g=u[1],b=a[0],C=u[0];if(b>=C||h>=g)throw new z;if(g-h!==C-b&&(C=b+(g-h),C>=r.getWidth()))throw new z;const A=Math.round((C-b+1)/d),L=Math.round((g-h+1)/d);if(A<=0||L<=0)throw new z;if(L!==A)throw new z;const U=Math.floor(d/2);h+=U,b+=U;const Z=b+Math.floor((A-1)*d)-C;if(Z>0){if(Z>U)throw new z;b-=Z}const se=h+Math.floor((L-1)*d)-g;if(se>0){if(se>U)throw new z;h-=se}const ye=new G(A,L);for(let Ce=0;Ce<L;Ce++){const Oe=h+Math.floor(Ce*d);for(let Ke=0;Ke<A;Ke++)r.get(b+Math.floor(Ke*d),Oe)&&ye.set(Ke,Ce)}return ye}static moduleSize(r,a){const u=a.getHeight(),d=a.getWidth();let h=r[0],g=r[1],b=!0,C=0;for(;h<d&&g<u;){if(b!==a.get(h,g)){if(++C===5)break;b=!b}h++,g++}if(h===d||g===u)throw new z;return(h-r[0])/7}}_s.NO_POINTS=new Array;class Vt{PDF417Common(){}static getBitCountSum(r){return Ve.sum(r)}static toIntArray(r){if(r==null||!r.length)return Vt.EMPTY_INT_ARRAY;const a=new Int32Array(r.length);let u=0;for(const d of r)a[u++]=d;return a}static getCodeword(r){const a=T.binarySearch(Vt.SYMBOL_TABLE,r&262143);return a<0?-1:(Vt.CODEWORD_TABLE[a]-1)%Vt.NUMBER_OF_CODEWORDS}}Vt.NUMBER_OF_CODEWORDS=929,Vt.MAX_CODEWORDS_IN_BARCODE=Vt.NUMBER_OF_CODEWORDS-1,Vt.MIN_ROWS_IN_BARCODE=3,Vt.MAX_ROWS_IN_BARCODE=90,Vt.MODULES_IN_CODEWORD=17,Vt.MODULES_IN_STOP_PATTERN=18,Vt.BARS_IN_MODULE=8,Vt.EMPTY_INT_ARRAY=new Int32Array([]),Vt.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),Vt.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]);class u3{constructor(r,a){this.bits=r,this.points=a}getBits(){return this.bits}getPoints(){return this.points}}class Jt{static detectMultiple(r,a,u){let d=r.getBlackMatrix(),h=Jt.detect(u,d);return h.length||(d=d.clone(),d.rotate180(),h=Jt.detect(u,d)),new u3(d,h)}static detect(r,a){const u=new Array;let d=0,h=0,g=!1;for(;d<a.getHeight();){const b=Jt.findVertices(a,d,h);if(b[0]==null&&b[3]==null){if(!g)break;g=!1,h=0;for(const C of u)C[1]!=null&&(d=Math.trunc(Math.max(d,C[1].getY()))),C[3]!=null&&(d=Math.max(d,Math.trunc(C[3].getY())));d+=Jt.ROW_STEP;continue}if(g=!0,u.push(b),!r)break;b[2]!=null?(h=Math.trunc(b[2].getX()),d=Math.trunc(b[2].getY())):(h=Math.trunc(b[4].getX()),d=Math.trunc(b[4].getY()))}return u}static findVertices(r,a,u){const d=r.getHeight(),h=r.getWidth(),g=new Array(8);return Jt.copyToResult(g,Jt.findRowsWithPattern(r,d,h,a,u,Jt.START_PATTERN),Jt.INDEXES_START_PATTERN),g[4]!=null&&(u=Math.trunc(g[4].getX()),a=Math.trunc(g[4].getY())),Jt.copyToResult(g,Jt.findRowsWithPattern(r,d,h,a,u,Jt.STOP_PATTERN),Jt.INDEXES_STOP_PATTERN),g}static copyToResult(r,a,u){for(let d=0;d<u.length;d++)r[u[d]]=a[d]}static findRowsWithPattern(r,a,u,d,h,g){const b=new Array(4);let C=!1;const A=new Int32Array(g.length);for(;d<a;d+=Jt.ROW_STEP){let U=Jt.findGuardPattern(r,h,d,u,!1,g,A);if(U!=null){for(;d>0;){const Z=Jt.findGuardPattern(r,h,--d,u,!1,g,A);if(Z!=null)U=Z;else{d++;break}}b[0]=new re(U[0],d),b[1]=new re(U[1],d),C=!0;break}}let L=d+1;if(C){let U=0,Z=Int32Array.from([Math.trunc(b[0].getX()),Math.trunc(b[1].getX())]);for(;L<a;L++){const se=Jt.findGuardPattern(r,Z[0],L,u,!1,g,A);if(se!=null&&Math.abs(Z[0]-se[0])<Jt.MAX_PATTERN_DRIFT&&Math.abs(Z[1]-se[1])<Jt.MAX_PATTERN_DRIFT)Z=se,U=0;else{if(U>Jt.SKIPPED_ROW_COUNT_MAX)break;U++}}L-=U+1,b[2]=new re(Z[0],L),b[3]=new re(Z[1],L)}return L-d<Jt.BARCODE_MIN_HEIGHT&&T.fill(b,null),b}static findGuardPattern(r,a,u,d,h,g,b){T.fillWithin(b,0,b.length,0);let C=a,A=0;for(;r.get(C,u)&&C>0&&A++<Jt.MAX_PIXEL_DRIFT;)C--;let L=C,U=0,Z=g.length;for(let se=h;L<d;L++)if(r.get(L,u)!==se)b[U]++;else{if(U===Z-1){if(Jt.patternMatchVariance(b,g,Jt.MAX_INDIVIDUAL_VARIANCE)<Jt.MAX_AVG_VARIANCE)return new Int32Array([C,L]);C+=b[0]+b[1],E.arraycopy(b,2,b,0,U-1),b[U-1]=0,b[U]=0,U--}else U++;b[U]=1,se=!se}return U===Z-1&&Jt.patternMatchVariance(b,g,Jt.MAX_INDIVIDUAL_VARIANCE)<Jt.MAX_AVG_VARIANCE?new Int32Array([C,L-1]):null}static patternMatchVariance(r,a,u){let d=r.length,h=0,g=0;for(let A=0;A<d;A++)h+=r[A],g+=a[A];if(h<g)return 1/0;let b=h/g;u*=b;let C=0;for(let A=0;A<d;A++){let L=r[A],U=a[A]*b,Z=L>U?L-U:U-L;if(Z>u)return 1/0;C+=Z}return C/h}}Jt.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),Jt.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),Jt.MAX_AVG_VARIANCE=.42,Jt.MAX_INDIVIDUAL_VARIANCE=.8,Jt.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),Jt.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),Jt.MAX_PIXEL_DRIFT=3,Jt.MAX_PATTERN_DRIFT=5,Jt.SKIPPED_ROW_COUNT_MAX=25,Jt.ROW_STEP=5,Jt.BARCODE_MIN_HEIGHT=10;class to{constructor(r,a){if(a.length===0)throw new m;this.field=r;let u=a.length;if(u>1&&a[0]===0){let d=1;for(;d<u&&a[d]===0;)d++;d===u?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(u-d),E.arraycopy(a,d,this.coefficients,0,this.coefficients.length))}else this.coefficients=a}getCoefficients(){return this.coefficients}getDegree(){return this.coefficients.length-1}isZero(){return this.coefficients[0]===0}getCoefficient(r){return this.coefficients[this.coefficients.length-1-r]}evaluateAt(r){if(r===0)return this.getCoefficient(0);if(r===1){let d=0;for(let h of this.coefficients)d=this.field.add(d,h);return d}let a=this.coefficients[0],u=this.coefficients.length;for(let d=1;d<u;d++)a=this.field.add(this.field.multiply(r,a),this.coefficients[d]);return a}add(r){if(!this.field.equals(r.field))throw new m("ModulusPolys do not have same ModulusGF field");if(this.isZero())return r;if(r.isZero())return this;let a=this.coefficients,u=r.coefficients;if(a.length>u.length){let g=a;a=u,u=g}let d=new Int32Array(u.length),h=u.length-a.length;E.arraycopy(u,0,d,0,h);for(let g=h;g<u.length;g++)d[g]=this.field.add(a[g-h],u[g]);return new to(this.field,d)}subtract(r){if(!this.field.equals(r.field))throw new m("ModulusPolys do not have same ModulusGF field");return r.isZero()?this:this.add(r.negative())}multiply(r){return r instanceof to?this.multiplyOther(r):this.multiplyScalar(r)}multiplyOther(r){if(!this.field.equals(r.field))throw new m("ModulusPolys do not have same ModulusGF field");if(this.isZero()||r.isZero())return new to(this.field,new Int32Array([0]));let a=this.coefficients,u=a.length,d=r.coefficients,h=d.length,g=new Int32Array(u+h-1);for(let b=0;b<u;b++){let C=a[b];for(let A=0;A<h;A++)g[b+A]=this.field.add(g[b+A],this.field.multiply(C,d[A]))}return new to(this.field,g)}negative(){let r=this.coefficients.length,a=new Int32Array(r);for(let u=0;u<r;u++)a[u]=this.field.subtract(0,this.coefficients[u]);return new to(this.field,a)}multiplyScalar(r){if(r===0)return new to(this.field,new Int32Array([0]));if(r===1)return this;let a=this.coefficients.length,u=new Int32Array(a);for(let d=0;d<a;d++)u[d]=this.field.multiply(this.coefficients[d],r);return new to(this.field,u)}multiplyByMonomial(r,a){if(r<0)throw new m;if(a===0)return new to(this.field,new Int32Array([0]));let u=this.coefficients.length,d=new Int32Array(u+r);for(let h=0;h<u;h++)d[h]=this.field.multiply(this.coefficients[h],a);return new to(this.field,d)}toString(){let r=new J;for(let a=this.getDegree();a>=0;a--){let u=this.getCoefficient(a);u!==0&&(u<0?(r.append(" - "),u=-u):r.length()>0&&r.append(" + "),(a===0||u!==1)&&r.append(u),a!==0&&(a===1?r.append("x"):(r.append("x^"),r.append(a))))}return r.toString()}}class c3{add(r,a){return(r+a)%this.modulus}subtract(r,a){return(this.modulus+r-a)%this.modulus}exp(r){return this.expTable[r]}log(r){if(r===0)throw new m;return this.logTable[r]}inverse(r){if(r===0)throw new mt;return this.expTable[this.modulus-this.logTable[r]-1]}multiply(r,a){return r===0||a===0?0:this.expTable[(this.logTable[r]+this.logTable[a])%(this.modulus-1)]}getSize(){return this.modulus}equals(r){return r===this}}class pf extends c3{constructor(r,a){super(),this.modulus=r,this.expTable=new Int32Array(r),this.logTable=new Int32Array(r);let u=1;for(let d=0;d<r;d++)this.expTable[d]=u,u=u*a%r;for(let d=0;d<r-1;d++)this.logTable[this.expTable[d]]=d;this.zero=new to(this,new Int32Array([0])),this.one=new to(this,new Int32Array([1]))}getZero(){return this.zero}getOne(){return this.one}buildMonomial(r,a){if(r<0)throw new m;if(a===0)return this.zero;let u=new Int32Array(r+1);return u[0]=a,new to(this,u)}}pf.PDF417_GF=new pf(Vt.NUMBER_OF_CODEWORDS,3);class g1{constructor(){this.field=pf.PDF417_GF}decode(r,a,u){let d=new to(this.field,r),h=new Int32Array(a),g=!1;for(let ye=a;ye>0;ye--){let Ce=d.evaluateAt(this.field.exp(ye));h[a-ye]=Ce,Ce!==0&&(g=!0)}if(!g)return 0;let b=this.field.getOne();if(u!=null)for(const ye of u){let Ce=this.field.exp(r.length-1-ye),Oe=new to(this.field,new Int32Array([this.field.subtract(0,Ce),1]));b=b.multiply(Oe)}let C=new to(this.field,h),A=this.runEuclideanAlgorithm(this.field.buildMonomial(a,1),C,a),L=A[0],U=A[1],Z=this.findErrorLocations(L),se=this.findErrorMagnitudes(U,L,Z);for(let ye=0;ye<Z.length;ye++){let Ce=r.length-1-this.field.log(Z[ye]);if(Ce<0)throw v.getChecksumInstance();r[Ce]=this.field.subtract(r[Ce],se[ye])}return Z.length}runEuclideanAlgorithm(r,a,u){if(r.getDegree()<a.getDegree()){let Z=r;r=a,a=Z}let d=r,h=a,g=this.field.getZero(),b=this.field.getOne();for(;h.getDegree()>=Math.round(u/2);){let Z=d,se=g;if(d=h,g=b,d.isZero())throw v.getChecksumInstance();h=Z;let ye=this.field.getZero(),Ce=d.getCoefficient(d.getDegree()),Oe=this.field.inverse(Ce);for(;h.getDegree()>=d.getDegree()&&!h.isZero();){let Ke=h.getDegree()-d.getDegree(),ft=this.field.multiply(h.getCoefficient(h.getDegree()),Oe);ye=ye.add(this.field.buildMonomial(Ke,ft)),h=h.subtract(d.multiplyByMonomial(Ke,ft))}b=ye.multiply(g).subtract(se).negative()}let C=b.getCoefficient(0);if(C===0)throw v.getChecksumInstance();let A=this.field.inverse(C),L=b.multiply(A),U=h.multiply(A);return[L,U]}findErrorLocations(r){let a=r.getDegree(),u=new Int32Array(a),d=0;for(let h=1;h<this.field.getSize()&&d<a;h++)r.evaluateAt(h)===0&&(u[d]=this.field.inverse(h),d++);if(d!==a)throw v.getChecksumInstance();return u}findErrorMagnitudes(r,a,u){let d=a.getDegree(),h=new Int32Array(d);for(let A=1;A<=d;A++)h[d-A]=this.field.multiply(A,a.getCoefficient(A));let g=new to(this.field,h),b=u.length,C=new Int32Array(b);for(let A=0;A<b;A++){let L=this.field.inverse(u[A]),U=this.field.subtract(0,r.evaluateAt(L)),Z=this.field.inverse(g.evaluateAt(L));C[A]=this.field.multiply(U,Z)}return C}}class ri{constructor(r,a,u,d,h){r instanceof ri?this.constructor_2(r):this.constructor_1(r,a,u,d,h)}constructor_1(r,a,u,d,h){const g=a==null||u==null,b=d==null||h==null;if(g&&b)throw new z;g?(a=new re(0,d.getY()),u=new re(0,h.getY())):b&&(d=new re(r.getWidth()-1,a.getY()),h=new re(r.getWidth()-1,u.getY())),this.image=r,this.topLeft=a,this.bottomLeft=u,this.topRight=d,this.bottomRight=h,this.minX=Math.trunc(Math.min(a.getX(),u.getX())),this.maxX=Math.trunc(Math.max(d.getX(),h.getX())),this.minY=Math.trunc(Math.min(a.getY(),d.getY())),this.maxY=Math.trunc(Math.max(u.getY(),h.getY()))}constructor_2(r){this.image=r.image,this.topLeft=r.getTopLeft(),this.bottomLeft=r.getBottomLeft(),this.topRight=r.getTopRight(),this.bottomRight=r.getBottomRight(),this.minX=r.getMinX(),this.maxX=r.getMaxX(),this.minY=r.getMinY(),this.maxY=r.getMaxY()}static merge(r,a){return r==null?a:a==null?r:new ri(r.image,r.topLeft,r.bottomLeft,a.topRight,a.bottomRight)}addMissingRows(r,a,u){let d=this.topLeft,h=this.bottomLeft,g=this.topRight,b=this.bottomRight;if(r>0){let C=u?this.topLeft:this.topRight,A=Math.trunc(C.getY()-r);A<0&&(A=0);let L=new re(C.getX(),A);u?d=L:g=L}if(a>0){let C=u?this.bottomLeft:this.bottomRight,A=Math.trunc(C.getY()+a);A>=this.image.getHeight()&&(A=this.image.getHeight()-1);let L=new re(C.getX(),A);u?h=L:b=L}return new ri(this.image,d,h,g,b)}getMinX(){return this.minX}getMaxX(){return this.maxX}getMinY(){return this.minY}getMaxY(){return this.maxY}getTopLeft(){return this.topLeft}getTopRight(){return this.topRight}getBottomLeft(){return this.bottomLeft}getBottomRight(){return this.bottomRight}}class d3{constructor(r,a,u,d){this.columnCount=r,this.errorCorrectionLevel=d,this.rowCountUpperPart=a,this.rowCountLowerPart=u,this.rowCount=a+u}getColumnCount(){return this.columnCount}getErrorCorrectionLevel(){return this.errorCorrectionLevel}getRowCount(){return this.rowCount}getRowCountUpperPart(){return this.rowCountUpperPart}getRowCountLowerPart(){return this.rowCountLowerPart}}class dl{constructor(){this.buffer=""}static form(r,a){let u=-1;function d(g,b,C,A,L,U){if(g==="%%")return"%";if(a[++u]===void 0)return;g=A?parseInt(A.substr(1)):void 0;let Z=L?parseInt(L.substr(1)):void 0,se;switch(U){case"s":se=a[u];break;case"c":se=a[u][0];break;case"f":se=parseFloat(a[u]).toFixed(g);break;case"p":se=parseFloat(a[u]).toPrecision(g);break;case"e":se=parseFloat(a[u]).toExponential(g);break;case"x":se=parseInt(a[u]).toString(Z||16);break;case"d":se=parseFloat(parseInt(a[u],Z||10).toPrecision(g)).toFixed(0);break}se=typeof se=="object"?JSON.stringify(se):(+se).toString(Z);let ye=parseInt(C),Ce=C&&C[0]+""=="0"?"0":" ";for(;se.length<ye;)se=b!==void 0?se+Ce:Ce+se;return se}let h=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return r.replace(h,d)}format(r,...a){this.buffer+=dl.form(r,a)}toString(){return this.buffer}}class fl{constructor(r){this.boundingBox=new ri(r),this.codewords=new Array(r.getMaxY()-r.getMinY()+1)}getCodewordNearby(r){let a=this.getCodeword(r);if(a!=null)return a;for(let u=1;u<fl.MAX_NEARBY_DISTANCE;u++){let d=this.imageRowToCodewordIndex(r)-u;if(d>=0&&(a=this.codewords[d],a!=null)||(d=this.imageRowToCodewordIndex(r)+u,d<this.codewords.length&&(a=this.codewords[d],a!=null)))return a}return null}imageRowToCodewordIndex(r){return r-this.boundingBox.getMinY()}setCodeword(r,a){this.codewords[this.imageRowToCodewordIndex(r)]=a}getCodeword(r){return this.codewords[this.imageRowToCodewordIndex(r)]}getBoundingBox(){return this.boundingBox}getCodewords(){return this.codewords}toString(){const r=new dl;let a=0;for(const u of this.codewords){if(u==null){r.format("%3d: | %n",a++);continue}r.format("%3d: %3d|%3d%n",a++,u.getRowNumber(),u.getValue())}return r.toString()}}fl.MAX_NEARBY_DISTANCE=5;class hl{constructor(){this.values=new Map}setValue(r){r=Math.trunc(r);let a=this.values.get(r);a==null&&(a=0),a++,this.values.set(r,a)}getValue(){let r=-1,a=new Array;for(const[u,d]of this.values.entries()){const h={getKey:()=>u,getValue:()=>d};h.getValue()>r?(r=h.getValue(),a=[],a.push(h.getKey())):h.getValue()===r&&a.push(h.getKey())}return Vt.toIntArray(a)}getConfidence(r){return this.values.get(r)}}class m1 extends fl{constructor(r,a){super(r),this._isLeft=a}setRowNumbers(){for(let r of this.getCodewords())r!=null&&r.setRowNumberAsRowIndicatorColumn()}adjustCompleteIndicatorColumnRowNumbers(r){let a=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(a,r);let u=this.getBoundingBox(),d=this._isLeft?u.getTopLeft():u.getTopRight(),h=this._isLeft?u.getBottomLeft():u.getBottomRight(),g=this.imageRowToCodewordIndex(Math.trunc(d.getY())),b=this.imageRowToCodewordIndex(Math.trunc(h.getY())),C=-1,A=1,L=0;for(let U=g;U<b;U++){if(a[U]==null)continue;let Z=a[U],se=Z.getRowNumber()-C;if(se===0)L++;else if(se===1)A=Math.max(A,L),L=1,C=Z.getRowNumber();else if(se<0||Z.getRowNumber()>=r.getRowCount()||se>U)a[U]=null;else{let ye;A>2?ye=(A-2)*se:ye=se;let Ce=ye>=U;for(let Oe=1;Oe<=ye&&!Ce;Oe++)Ce=a[U-Oe]!=null;Ce?a[U]=null:(C=Z.getRowNumber(),L=1)}}}getRowHeights(){let r=this.getBarcodeMetadata();if(r==null)return null;this.adjustIncompleteIndicatorColumnRowNumbers(r);let a=new Int32Array(r.getRowCount());for(let u of this.getCodewords())if(u!=null){let d=u.getRowNumber();if(d>=a.length)continue;a[d]++}return a}adjustIncompleteIndicatorColumnRowNumbers(r){let a=this.getBoundingBox(),u=this._isLeft?a.getTopLeft():a.getTopRight(),d=this._isLeft?a.getBottomLeft():a.getBottomRight(),h=this.imageRowToCodewordIndex(Math.trunc(u.getY())),g=this.imageRowToCodewordIndex(Math.trunc(d.getY())),b=this.getCodewords(),C=-1;for(let A=h;A<g;A++){if(b[A]==null)continue;let L=b[A];L.setRowNumberAsRowIndicatorColumn();let U=L.getRowNumber()-C;U===0||(U===1?C=L.getRowNumber():L.getRowNumber()>=r.getRowCount()?b[A]=null:C=L.getRowNumber())}}getBarcodeMetadata(){let r=this.getCodewords(),a=new hl,u=new hl,d=new hl,h=new hl;for(let b of r){if(b==null)continue;b.setRowNumberAsRowIndicatorColumn();let C=b.getValue()%30,A=b.getRowNumber();switch(this._isLeft||(A+=2),A%3){case 0:u.setValue(C*3+1);break;case 1:h.setValue(C/3),d.setValue(C%3);break;case 2:a.setValue(C+1);break}}if(a.getValue().length===0||u.getValue().length===0||d.getValue().length===0||h.getValue().length===0||a.getValue()[0]<1||u.getValue()[0]+d.getValue()[0]<Vt.MIN_ROWS_IN_BARCODE||u.getValue()[0]+d.getValue()[0]>Vt.MAX_ROWS_IN_BARCODE)return null;let g=new d3(a.getValue()[0],u.getValue()[0],d.getValue()[0],h.getValue()[0]);return this.removeIncorrectCodewords(r,g),g}removeIncorrectCodewords(r,a){for(let u=0;u<r.length;u++){let d=r[u];if(r[u]==null)continue;let h=d.getValue()%30,g=d.getRowNumber();if(g>a.getRowCount()){r[u]=null;continue}switch(this._isLeft||(g+=2),g%3){case 0:h*3+1!==a.getRowCountUpperPart()&&(r[u]=null);break;case 1:(Math.trunc(h/3)!==a.getErrorCorrectionLevel()||h%3!==a.getRowCountLowerPart())&&(r[u]=null);break;case 2:h+1!==a.getColumnCount()&&(r[u]=null);break}}}isLeft(){return this._isLeft}toString(){return"IsLeft: "+this._isLeft+`
|
||
`+super.toString()}}class pl{constructor(r,a){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=r,this.barcodeColumnCount=r.getColumnCount(),this.boundingBox=a,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}getDetectionResultColumns(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);let r=Vt.MAX_CODEWORDS_IN_BARCODE,a;do a=r,r=this.adjustRowNumbersAndGetCount();while(r>0&&r<a);return this.detectionResultColumns}adjustIndicatorColumnRowNumbers(r){r!=null&&r.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)}adjustRowNumbersAndGetCount(){let r=this.adjustRowNumbersByRow();if(r===0)return 0;for(let a=1;a<this.barcodeColumnCount+1;a++){let u=this.detectionResultColumns[a].getCodewords();for(let d=0;d<u.length;d++)u[d]!=null&&(u[d].hasValidRowNumber()||this.adjustRowNumbers(a,d,u))}return r}adjustRowNumbersByRow(){return this.adjustRowNumbersFromBothRI(),this.adjustRowNumbersFromLRI()+this.adjustRowNumbersFromRRI()}adjustRowNumbersFromBothRI(){if(this.detectionResultColumns[0]==null||this.detectionResultColumns[this.barcodeColumnCount+1]==null)return;let r=this.detectionResultColumns[0].getCodewords(),a=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords();for(let u=0;u<r.length;u++)if(r[u]!=null&&a[u]!=null&&r[u].getRowNumber()===a[u].getRowNumber())for(let d=1;d<=this.barcodeColumnCount;d++){let h=this.detectionResultColumns[d].getCodewords()[u];h!=null&&(h.setRowNumber(r[u].getRowNumber()),h.hasValidRowNumber()||(this.detectionResultColumns[d].getCodewords()[u]=null))}}adjustRowNumbersFromRRI(){if(this.detectionResultColumns[this.barcodeColumnCount+1]==null)return 0;let r=0,a=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords();for(let u=0;u<a.length;u++){if(a[u]==null)continue;let d=a[u].getRowNumber(),h=0;for(let g=this.barcodeColumnCount+1;g>0&&h<this.ADJUST_ROW_NUMBER_SKIP;g--){let b=this.detectionResultColumns[g].getCodewords()[u];b!=null&&(h=pl.adjustRowNumberIfValid(d,h,b),b.hasValidRowNumber()||r++)}}return r}adjustRowNumbersFromLRI(){if(this.detectionResultColumns[0]==null)return 0;let r=0,a=this.detectionResultColumns[0].getCodewords();for(let u=0;u<a.length;u++){if(a[u]==null)continue;let d=a[u].getRowNumber(),h=0;for(let g=1;g<this.barcodeColumnCount+1&&h<this.ADJUST_ROW_NUMBER_SKIP;g++){let b=this.detectionResultColumns[g].getCodewords()[u];b!=null&&(h=pl.adjustRowNumberIfValid(d,h,b),b.hasValidRowNumber()||r++)}}return r}static adjustRowNumberIfValid(r,a,u){return u==null||u.hasValidRowNumber()||(u.isValidRowNumber(r)?(u.setRowNumber(r),a=0):++a),a}adjustRowNumbers(r,a,u){let d=u[a],h=this.detectionResultColumns[r-1].getCodewords(),g=h;this.detectionResultColumns[r+1]!=null&&(g=this.detectionResultColumns[r+1].getCodewords());let b=new Array(14);b[2]=h[a],b[3]=g[a],a>0&&(b[0]=u[a-1],b[4]=h[a-1],b[5]=g[a-1]),a>1&&(b[8]=u[a-2],b[10]=h[a-2],b[11]=g[a-2]),a<u.length-1&&(b[1]=u[a+1],b[6]=h[a+1],b[7]=g[a+1]),a<u.length-2&&(b[9]=u[a+2],b[12]=h[a+2],b[13]=g[a+2]);for(let C of b)if(pl.adjustRowNumber(d,C))return}static adjustRowNumber(r,a){return a==null?!1:a.hasValidRowNumber()&&a.getBucket()===r.getBucket()?(r.setRowNumber(a.getRowNumber()),!0):!1}getBarcodeColumnCount(){return this.barcodeColumnCount}getBarcodeRowCount(){return this.barcodeMetadata.getRowCount()}getBarcodeECLevel(){return this.barcodeMetadata.getErrorCorrectionLevel()}setBoundingBox(r){this.boundingBox=r}getBoundingBox(){return this.boundingBox}setDetectionResultColumn(r,a){this.detectionResultColumns[r]=a}getDetectionResultColumn(r){return this.detectionResultColumns[r]}toString(){let r=this.detectionResultColumns[0];r==null&&(r=this.detectionResultColumns[this.barcodeColumnCount+1]);let a=new dl;for(let u=0;u<r.getCodewords().length;u++){a.format("CW %3d:",u);for(let d=0;d<this.barcodeColumnCount+2;d++){if(this.detectionResultColumns[d]==null){a.format(" | ");continue}let h=this.detectionResultColumns[d].getCodewords()[u];if(h==null){a.format(" | ");continue}a.format(" %3d|%3d",h.getRowNumber(),h.getValue())}a.format("%n")}return a.toString()}}class gl{constructor(r,a,u,d){this.rowNumber=gl.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(r),this.endX=Math.trunc(a),this.bucket=Math.trunc(u),this.value=Math.trunc(d)}hasValidRowNumber(){return this.isValidRowNumber(this.rowNumber)}isValidRowNumber(r){return r!==gl.BARCODE_ROW_UNKNOWN&&this.bucket===r%3*3}setRowNumberAsRowIndicatorColumn(){this.rowNumber=Math.trunc(Math.trunc(this.value/30)*3+Math.trunc(this.bucket/3))}getWidth(){return this.endX-this.startX}getStartX(){return this.startX}getEndX(){return this.endX}getBucket(){return this.bucket}getValue(){return this.value}getRowNumber(){return this.rowNumber}setRowNumber(r){this.rowNumber=r}toString(){return this.rowNumber+"|"+this.value}}gl.BARCODE_ROW_UNKNOWN=-1;class Io{static initialize(){for(let r=0;r<Vt.SYMBOL_TABLE.length;r++){let a=Vt.SYMBOL_TABLE[r],u=a&1;for(let d=0;d<Vt.BARS_IN_MODULE;d++){let h=0;for(;(a&1)===u;)h+=1,a>>=1;u=a&1,Io.RATIOS_TABLE[r]||(Io.RATIOS_TABLE[r]=new Array(Vt.BARS_IN_MODULE)),Io.RATIOS_TABLE[r][Vt.BARS_IN_MODULE-d-1]=Math.fround(h/Vt.MODULES_IN_CODEWORD)}}this.bSymbolTableReady=!0}static getDecodedValue(r){let a=Io.getDecodedCodewordValue(Io.sampleBitCounts(r));return a!==-1?a:Io.getClosestDecodedValue(r)}static sampleBitCounts(r){let a=Ve.sum(r),u=new Int32Array(Vt.BARS_IN_MODULE),d=0,h=0;for(let g=0;g<Vt.MODULES_IN_CODEWORD;g++){let b=a/(2*Vt.MODULES_IN_CODEWORD)+g*a/Vt.MODULES_IN_CODEWORD;h+r[d]<=b&&(h+=r[d],d++),u[d]++}return u}static getDecodedCodewordValue(r){let a=Io.getBitValue(r);return Vt.getCodeword(a)===-1?-1:a}static getBitValue(r){let a=0;for(let u=0;u<r.length;u++)for(let d=0;d<r[u];d++)a=a<<1|(u%2===0?1:0);return Math.trunc(a)}static getClosestDecodedValue(r){let a=Ve.sum(r),u=new Array(Vt.BARS_IN_MODULE);if(a>1)for(let g=0;g<u.length;g++)u[g]=Math.fround(r[g]/a);let d=ie.MAX_VALUE,h=-1;this.bSymbolTableReady||Io.initialize();for(let g=0;g<Io.RATIOS_TABLE.length;g++){let b=0,C=Io.RATIOS_TABLE[g];for(let A=0;A<Vt.BARS_IN_MODULE;A++){let L=Math.fround(C[A]-u[A]);if(b+=Math.fround(L*L),b>=d)break}b<d&&(d=b,h=Vt.SYMBOL_TABLE[g])}return h}}Io.bSymbolTableReady=!1,Io.RATIOS_TABLE=new Array(Vt.SYMBOL_TABLE.length).map(H=>new Array(Vt.BARS_IN_MODULE));class v1{constructor(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}getSegmentIndex(){return this.segmentIndex}setSegmentIndex(r){this.segmentIndex=r}getFileId(){return this.fileId}setFileId(r){this.fileId=r}getOptionalData(){return this.optionalData}setOptionalData(r){this.optionalData=r}isLastSegment(){return this.lastSegment}setLastSegment(r){this.lastSegment=r}getSegmentCount(){return this.segmentCount}setSegmentCount(r){this.segmentCount=r}getSender(){return this.sender||null}setSender(r){this.sender=r}getAddressee(){return this.addressee||null}setAddressee(r){this.addressee=r}getFileName(){return this.fileName}setFileName(r){this.fileName=r}getFileSize(){return this.fileSize}setFileSize(r){this.fileSize=r}getChecksum(){return this.checksum}setChecksum(r){this.checksum=r}getTimestamp(){return this.timestamp}setTimestamp(r){this.timestamp=r}}class y1{static parseLong(r,a=void 0){return parseInt(r,a)}}class b1 extends f{}b1.kind="NullPointerException";class f3{writeBytes(r){this.writeBytesOffset(r,0,r.length)}writeBytesOffset(r,a,u){if(r==null)throw new b1;if(a<0||a>r.length||u<0||a+u>r.length||a+u<0)throw new I;if(u===0)return;for(let d=0;d<u;d++)this.write(r[a+d])}flush(){}close(){}}class h3 extends f{}class p3 extends f3{constructor(r=32){if(super(),this.count=0,r<0)throw new m("Negative initial size: "+r);this.buf=new Uint8Array(r)}ensureCapacity(r){r-this.buf.length>0&&this.grow(r)}grow(r){let u=this.buf.length<<1;if(u-r<0&&(u=r),u<0){if(r<0)throw new h3;u=_.MAX_VALUE}this.buf=T.copyOfUint8Array(this.buf,u)}write(r){this.ensureCapacity(this.count+1),this.buf[this.count]=r,this.count+=1}writeBytesOffset(r,a,u){if(a<0||a>r.length||u<0||a+u-r.length>0)throw new I;this.ensureCapacity(this.count+u),E.arraycopy(r,a,this.buf,this.count,u),this.count+=u}writeTo(r){r.writeBytesOffset(this.buf,0,this.count)}reset(){this.count=0}toByteArray(){return T.copyOfUint8Array(this.buf,this.count)}size(){return this.count}toString(r){return r?typeof r=="string"?this.toString_string(r):this.toString_number(r):this.toString_void()}toString_void(){return new String(this.buf).toString()}toString_string(r){return new String(this.buf).toString()}toString_number(r){return new String(this.buf).toString()}close(){}}var mn;(function(H){H[H.ALPHA=0]="ALPHA",H[H.LOWER=1]="LOWER",H[H.MIXED=2]="MIXED",H[H.PUNCT=3]="PUNCT",H[H.ALPHA_SHIFT=4]="ALPHA_SHIFT",H[H.PUNCT_SHIFT=5]="PUNCT_SHIFT"})(mn||(mn={}));function w1(){if(typeof window!="undefined")return window.BigInt||null;if(typeof Mo!="undefined")return Mo.BigInt||null;if(typeof self!="undefined")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}let Bu;function Ns(H){if(typeof Bu=="undefined"&&(Bu=w1()),Bu===null)throw new Error("BigInt is not supported!");return Bu(H)}function g3(){let H=[];H[0]=Ns(1);let r=Ns(900);H[1]=r;for(let a=2;a<16;a++)H[a]=H[a-1]*r;return H}class je{static decode(r,a){let u=new J(""),d=B.ISO8859_1;u.enableDecoding(d);let h=1,g=r[h++],b=new v1;for(;h<r[0];){switch(g){case je.TEXT_COMPACTION_MODE_LATCH:h=je.textCompaction(r,h,u);break;case je.BYTE_COMPACTION_MODE_LATCH:case je.BYTE_COMPACTION_MODE_LATCH_6:h=je.byteCompaction(g,r,d,h,u);break;case je.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:u.append(r[h++]);break;case je.NUMERIC_COMPACTION_MODE_LATCH:h=je.numericCompaction(r,h,u);break;case je.ECI_CHARSET:B.getCharacterSetECIByValue(r[h++]);break;case je.ECI_GENERAL_PURPOSE:h+=2;break;case je.ECI_USER_DEFINED:h++;break;case je.BEGIN_MACRO_PDF417_CONTROL_BLOCK:h=je.decodeMacroBlock(r,h,b);break;case je.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case je.MACRO_PDF417_TERMINATOR:throw new x;default:h--,h=je.textCompaction(r,h,u);break}if(h<r.length)g=r[h++];else throw x.getFormatInstance()}if(u.length()===0)throw x.getFormatInstance();let C=new We(null,u.toString(),null,a);return C.setOther(b),C}static decodeMacroBlock(r,a,u){if(a+je.NUMBER_OF_SEQUENCE_CODEWORDS>r[0])throw x.getFormatInstance();let d=new Int32Array(je.NUMBER_OF_SEQUENCE_CODEWORDS);for(let b=0;b<je.NUMBER_OF_SEQUENCE_CODEWORDS;b++,a++)d[b]=r[a];u.setSegmentIndex(_.parseInt(je.decodeBase900toBase10(d,je.NUMBER_OF_SEQUENCE_CODEWORDS)));let h=new J;a=je.textCompaction(r,a,h),u.setFileId(h.toString());let g=-1;for(r[a]===je.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(g=a+1);a<r[0];)switch(r[a]){case je.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(a++,r[a]){case je.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:let b=new J;a=je.textCompaction(r,a+1,b),u.setFileName(b.toString());break;case je.MACRO_PDF417_OPTIONAL_FIELD_SENDER:let C=new J;a=je.textCompaction(r,a+1,C),u.setSender(C.toString());break;case je.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:let A=new J;a=je.textCompaction(r,a+1,A),u.setAddressee(A.toString());break;case je.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:let L=new J;a=je.numericCompaction(r,a+1,L),u.setSegmentCount(_.parseInt(L.toString()));break;case je.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:let U=new J;a=je.numericCompaction(r,a+1,U),u.setTimestamp(y1.parseLong(U.toString()));break;case je.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:let Z=new J;a=je.numericCompaction(r,a+1,Z),u.setChecksum(_.parseInt(Z.toString()));break;case je.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:let se=new J;a=je.numericCompaction(r,a+1,se),u.setFileSize(y1.parseLong(se.toString()));break;default:throw x.getFormatInstance()}break;case je.MACRO_PDF417_TERMINATOR:a++,u.setLastSegment(!0);break;default:throw x.getFormatInstance()}if(g!==-1){let b=a-g;u.isLastSegment()&&b--,u.setOptionalData(T.copyOfRange(r,g,g+b))}return a}static textCompaction(r,a,u){let d=new Int32Array((r[0]-a)*2),h=new Int32Array((r[0]-a)*2),g=0,b=!1;for(;a<r[0]&&!b;){let C=r[a++];if(C<je.TEXT_COMPACTION_MODE_LATCH)d[g]=C/30,d[g+1]=C%30,g+=2;else switch(C){case je.TEXT_COMPACTION_MODE_LATCH:d[g++]=je.TEXT_COMPACTION_MODE_LATCH;break;case je.BYTE_COMPACTION_MODE_LATCH:case je.BYTE_COMPACTION_MODE_LATCH_6:case je.NUMERIC_COMPACTION_MODE_LATCH:case je.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case je.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case je.MACRO_PDF417_TERMINATOR:a--,b=!0;break;case je.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:d[g]=je.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,C=r[a++],h[g]=C,g++;break}}return je.decodeTextCompaction(d,h,g,u),a}static decodeTextCompaction(r,a,u,d){let h=mn.ALPHA,g=mn.ALPHA,b=0;for(;b<u;){let C=r[b],A="";switch(h){case mn.ALPHA:if(C<26)A=String.fromCharCode(65+C);else switch(C){case 26:A=" ";break;case je.LL:h=mn.LOWER;break;case je.ML:h=mn.MIXED;break;case je.PS:g=h,h=mn.PUNCT_SHIFT;break;case je.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:d.append(a[b]);break;case je.TEXT_COMPACTION_MODE_LATCH:h=mn.ALPHA;break}break;case mn.LOWER:if(C<26)A=String.fromCharCode(97+C);else switch(C){case 26:A=" ";break;case je.AS:g=h,h=mn.ALPHA_SHIFT;break;case je.ML:h=mn.MIXED;break;case je.PS:g=h,h=mn.PUNCT_SHIFT;break;case je.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:d.append(a[b]);break;case je.TEXT_COMPACTION_MODE_LATCH:h=mn.ALPHA;break}break;case mn.MIXED:if(C<je.PL)A=je.MIXED_CHARS[C];else switch(C){case je.PL:h=mn.PUNCT;break;case 26:A=" ";break;case je.LL:h=mn.LOWER;break;case je.AL:h=mn.ALPHA;break;case je.PS:g=h,h=mn.PUNCT_SHIFT;break;case je.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:d.append(a[b]);break;case je.TEXT_COMPACTION_MODE_LATCH:h=mn.ALPHA;break}break;case mn.PUNCT:if(C<je.PAL)A=je.PUNCT_CHARS[C];else switch(C){case je.PAL:h=mn.ALPHA;break;case je.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:d.append(a[b]);break;case je.TEXT_COMPACTION_MODE_LATCH:h=mn.ALPHA;break}break;case mn.ALPHA_SHIFT:if(h=g,C<26)A=String.fromCharCode(65+C);else switch(C){case 26:A=" ";break;case je.TEXT_COMPACTION_MODE_LATCH:h=mn.ALPHA;break}break;case mn.PUNCT_SHIFT:if(h=g,C<je.PAL)A=je.PUNCT_CHARS[C];else switch(C){case je.PAL:h=mn.ALPHA;break;case je.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:d.append(a[b]);break;case je.TEXT_COMPACTION_MODE_LATCH:h=mn.ALPHA;break}break}A!==""&&d.append(A),b++}}static byteCompaction(r,a,u,d,h){let g=new p3,b=0,C=0,A=!1;switch(r){case je.BYTE_COMPACTION_MODE_LATCH:let L=new Int32Array(6),U=a[d++];for(;d<a[0]&&!A;)switch(L[b++]=U,C=900*C+U,U=a[d++],U){case je.TEXT_COMPACTION_MODE_LATCH:case je.BYTE_COMPACTION_MODE_LATCH:case je.NUMERIC_COMPACTION_MODE_LATCH:case je.BYTE_COMPACTION_MODE_LATCH_6:case je.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case je.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case je.MACRO_PDF417_TERMINATOR:d--,A=!0;break;default:if(b%5===0&&b>0){for(let Z=0;Z<6;++Z)g.write(Number(Ns(C)>>Ns(8*(5-Z))));C=0,b=0}break}d===a[0]&&U<je.TEXT_COMPACTION_MODE_LATCH&&(L[b++]=U);for(let Z=0;Z<b;Z++)g.write(L[Z]);break;case je.BYTE_COMPACTION_MODE_LATCH_6:for(;d<a[0]&&!A;){let Z=a[d++];if(Z<je.TEXT_COMPACTION_MODE_LATCH)b++,C=900*C+Z;else switch(Z){case je.TEXT_COMPACTION_MODE_LATCH:case je.BYTE_COMPACTION_MODE_LATCH:case je.NUMERIC_COMPACTION_MODE_LATCH:case je.BYTE_COMPACTION_MODE_LATCH_6:case je.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case je.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case je.MACRO_PDF417_TERMINATOR:d--,A=!0;break}if(b%5===0&&b>0){for(let se=0;se<6;++se)g.write(Number(Ns(C)>>Ns(8*(5-se))));C=0,b=0}}break}return h.append(X.decode(g.toByteArray(),u)),d}static numericCompaction(r,a,u){let d=0,h=!1,g=new Int32Array(je.MAX_NUMERIC_CODEWORDS);for(;a<r[0]&&!h;){let b=r[a++];if(a===r[0]&&(h=!0),b<je.TEXT_COMPACTION_MODE_LATCH)g[d]=b,d++;else switch(b){case je.TEXT_COMPACTION_MODE_LATCH:case je.BYTE_COMPACTION_MODE_LATCH:case je.BYTE_COMPACTION_MODE_LATCH_6:case je.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case je.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case je.MACRO_PDF417_TERMINATOR:a--,h=!0;break}(d%je.MAX_NUMERIC_CODEWORDS===0||b===je.NUMERIC_COMPACTION_MODE_LATCH||h)&&d>0&&(u.append(je.decodeBase900toBase10(g,d)),d=0)}return a}static decodeBase900toBase10(r,a){let u=Ns(0);for(let h=0;h<a;h++)u+=je.EXP900[a-h-1]*Ns(r[h]);let d=u.toString();if(d.charAt(0)!=="1")throw new x;return d.substring(1)}}je.TEXT_COMPACTION_MODE_LATCH=900,je.BYTE_COMPACTION_MODE_LATCH=901,je.NUMERIC_COMPACTION_MODE_LATCH=902,je.BYTE_COMPACTION_MODE_LATCH_6=924,je.ECI_USER_DEFINED=925,je.ECI_GENERAL_PURPOSE=926,je.ECI_CHARSET=927,je.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,je.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,je.MACRO_PDF417_TERMINATOR=922,je.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,je.MAX_NUMERIC_CODEWORDS=15,je.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,je.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,je.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,je.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,je.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,je.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,je.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,je.PL=25,je.LL=27,je.AS=27,je.ML=28,je.AL=28,je.PS=29,je.PAL=29,je.PUNCT_CHARS=`;<>@[\\]_\`~!\r ,:
|
||
-.$/"|*()?{}'`,je.MIXED_CHARS="0123456789&\r ,:#-.$/+%*=^",je.EXP900=w1()?g3():[],je.NUMBER_OF_SEQUENCE_CODEWORDS=2;class tn{constructor(){}static decode(r,a,u,d,h,g,b){let C=new ri(r,a,u,d,h),A=null,L=null,U;for(let ye=!0;;ye=!1){if(a!=null&&(A=tn.getRowIndicatorColumn(r,C,a,!0,g,b)),d!=null&&(L=tn.getRowIndicatorColumn(r,C,d,!1,g,b)),U=tn.merge(A,L),U==null)throw z.getNotFoundInstance();let Ce=U.getBoundingBox();if(ye&&Ce!=null&&(Ce.getMinY()<C.getMinY()||Ce.getMaxY()>C.getMaxY()))C=Ce;else break}U.setBoundingBox(C);let Z=U.getBarcodeColumnCount()+1;U.setDetectionResultColumn(0,A),U.setDetectionResultColumn(Z,L);let se=A!=null;for(let ye=1;ye<=Z;ye++){let Ce=se?ye:Z-ye;if(U.getDetectionResultColumn(Ce)!==void 0)continue;let Oe;Ce===0||Ce===Z?Oe=new m1(C,Ce===0):Oe=new fl(C),U.setDetectionResultColumn(Ce,Oe);let Ke=-1,ft=Ke;for(let ht=C.getMinY();ht<=C.getMaxY();ht++){if(Ke=tn.getStartColumn(U,Ce,ht,se),Ke<0||Ke>C.getMaxX()){if(ft===-1)continue;Ke=ft}let lt=tn.detectCodeword(r,C.getMinX(),C.getMaxX(),se,Ke,ht,g,b);lt!=null&&(Oe.setCodeword(ht,lt),ft=Ke,g=Math.min(g,lt.getWidth()),b=Math.max(b,lt.getWidth()))}}return tn.createDecoderResult(U)}static merge(r,a){if(r==null&&a==null)return null;let u=tn.getBarcodeMetadata(r,a);if(u==null)return null;let d=ri.merge(tn.adjustBoundingBox(r),tn.adjustBoundingBox(a));return new pl(u,d)}static adjustBoundingBox(r){if(r==null)return null;let a=r.getRowHeights();if(a==null)return null;let u=tn.getMax(a),d=0;for(let b of a)if(d+=u-b,b>0)break;let h=r.getCodewords();for(let b=0;d>0&&h[b]==null;b++)d--;let g=0;for(let b=a.length-1;b>=0&&(g+=u-a[b],!(a[b]>0));b--);for(let b=h.length-1;g>0&&h[b]==null;b--)g--;return r.getBoundingBox().addMissingRows(d,g,r.isLeft())}static getMax(r){let a=-1;for(let u of r)a=Math.max(a,u);return a}static getBarcodeMetadata(r,a){let u;if(r==null||(u=r.getBarcodeMetadata())==null)return a==null?null:a.getBarcodeMetadata();let d;return a==null||(d=a.getBarcodeMetadata())==null?u:u.getColumnCount()!==d.getColumnCount()&&u.getErrorCorrectionLevel()!==d.getErrorCorrectionLevel()&&u.getRowCount()!==d.getRowCount()?null:u}static getRowIndicatorColumn(r,a,u,d,h,g){let b=new m1(a,d);for(let C=0;C<2;C++){let A=C===0?1:-1,L=Math.trunc(Math.trunc(u.getX()));for(let U=Math.trunc(Math.trunc(u.getY()));U<=a.getMaxY()&&U>=a.getMinY();U+=A){let Z=tn.detectCodeword(r,0,r.getWidth(),d,L,U,h,g);Z!=null&&(b.setCodeword(U,Z),d?L=Z.getStartX():L=Z.getEndX())}}return b}static adjustCodewordCount(r,a){let u=a[0][1],d=u.getValue(),h=r.getBarcodeColumnCount()*r.getBarcodeRowCount()-tn.getNumberOfECCodeWords(r.getBarcodeECLevel());if(d.length===0){if(h<1||h>Vt.MAX_CODEWORDS_IN_BARCODE)throw z.getNotFoundInstance();u.setValue(h)}else d[0]!==h&&u.setValue(h)}static createDecoderResult(r){let a=tn.createBarcodeMatrix(r);tn.adjustCodewordCount(r,a);let u=new Array,d=new Int32Array(r.getBarcodeRowCount()*r.getBarcodeColumnCount()),h=[],g=new Array;for(let C=0;C<r.getBarcodeRowCount();C++)for(let A=0;A<r.getBarcodeColumnCount();A++){let L=a[C][A+1].getValue(),U=C*r.getBarcodeColumnCount()+A;L.length===0?u.push(U):L.length===1?d[U]=L[0]:(g.push(U),h.push(L))}let b=new Array(h.length);for(let C=0;C<b.length;C++)b[C]=h[C];return tn.createDecoderResultFromAmbiguousValues(r.getBarcodeECLevel(),d,Vt.toIntArray(u),Vt.toIntArray(g),b)}static createDecoderResultFromAmbiguousValues(r,a,u,d,h){let g=new Int32Array(d.length),b=100;for(;b-- >0;){for(let C=0;C<g.length;C++)a[d[C]]=h[C][g[C]];try{return tn.decodeCodewords(a,r,u)}catch(C){if(!(C instanceof v))throw C}if(g.length===0)throw v.getChecksumInstance();for(let C=0;C<g.length;C++)if(g[C]<h[C].length-1){g[C]++;break}else if(g[C]=0,C===g.length-1)throw v.getChecksumInstance()}throw v.getChecksumInstance()}static createBarcodeMatrix(r){let a=Array.from({length:r.getBarcodeRowCount()},()=>new Array(r.getBarcodeColumnCount()+2));for(let d=0;d<a.length;d++)for(let h=0;h<a[d].length;h++)a[d][h]=new hl;let u=0;for(let d of r.getDetectionResultColumns()){if(d!=null){for(let h of d.getCodewords())if(h!=null){let g=h.getRowNumber();if(g>=0){if(g>=a.length)continue;a[g][u].setValue(h.getValue())}}}u++}return a}static isValidBarcodeColumn(r,a){return a>=0&&a<=r.getBarcodeColumnCount()+1}static getStartColumn(r,a,u,d){let h=d?1:-1,g=null;if(tn.isValidBarcodeColumn(r,a-h)&&(g=r.getDetectionResultColumn(a-h).getCodeword(u)),g!=null)return d?g.getEndX():g.getStartX();if(g=r.getDetectionResultColumn(a).getCodewordNearby(u),g!=null)return d?g.getStartX():g.getEndX();if(tn.isValidBarcodeColumn(r,a-h)&&(g=r.getDetectionResultColumn(a-h).getCodewordNearby(u)),g!=null)return d?g.getEndX():g.getStartX();let b=0;for(;tn.isValidBarcodeColumn(r,a-h);){a-=h;for(let C of r.getDetectionResultColumn(a).getCodewords())if(C!=null)return(d?C.getEndX():C.getStartX())+h*b*(C.getEndX()-C.getStartX());b++}return d?r.getBoundingBox().getMinX():r.getBoundingBox().getMaxX()}static detectCodeword(r,a,u,d,h,g,b,C){h=tn.adjustCodewordStartColumn(r,a,u,d,h,g);let A=tn.getModuleBitCount(r,a,u,d,h,g);if(A==null)return null;let L,U=Ve.sum(A);if(d)L=h+U;else{for(let ye=0;ye<A.length/2;ye++){let Ce=A[ye];A[ye]=A[A.length-1-ye],A[A.length-1-ye]=Ce}L=h,h=L-U}if(!tn.checkCodewordSkew(U,b,C))return null;let Z=Io.getDecodedValue(A),se=Vt.getCodeword(Z);return se===-1?null:new gl(h,L,tn.getCodewordBucketNumber(Z),se)}static getModuleBitCount(r,a,u,d,h,g){let b=h,C=new Int32Array(8),A=0,L=d?1:-1,U=d;for(;(d?b<u:b>=a)&&A<C.length;)r.get(b,g)===U?(C[A]++,b+=L):(A++,U=!U);return A===C.length||b===(d?u:a)&&A===C.length-1?C:null}static getNumberOfECCodeWords(r){return 2<<r}static adjustCodewordStartColumn(r,a,u,d,h,g){let b=h,C=d?-1:1;for(let A=0;A<2;A++){for(;(d?b>=a:b<u)&&d===r.get(b,g);){if(Math.abs(h-b)>tn.CODEWORD_SKEW_SIZE)return h;b+=C}C=-C,d=!d}return b}static checkCodewordSkew(r,a,u){return a-tn.CODEWORD_SKEW_SIZE<=r&&r<=u+tn.CODEWORD_SKEW_SIZE}static decodeCodewords(r,a,u){if(r.length===0)throw x.getFormatInstance();let d=1<<a+1,h=tn.correctErrors(r,u,d);tn.verifyCodewordCount(r,d);let g=je.decode(r,""+a);return g.setErrorsCorrected(h),g.setErasures(u.length),g}static correctErrors(r,a,u){if(a!=null&&a.length>u/2+tn.MAX_ERRORS||u<0||u>tn.MAX_EC_CODEWORDS)throw v.getChecksumInstance();return tn.errorCorrection.decode(r,u,a)}static verifyCodewordCount(r,a){if(r.length<4)throw x.getFormatInstance();let u=r[0];if(u>r.length)throw x.getFormatInstance();if(u===0)if(a<r.length)r[0]=r.length-a;else throw x.getFormatInstance()}static getBitCountForCodeword(r){let a=new Int32Array(8),u=0,d=a.length-1;for(;!((r&1)!==u&&(u=r&1,d--,d<0));)a[d]++,r>>=1;return a}static getCodewordBucketNumber(r){return r instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(r):this.getCodewordBucketNumber_number(r)}static getCodewordBucketNumber_number(r){return tn.getCodewordBucketNumber(tn.getBitCountForCodeword(r))}static getCodewordBucketNumber_Int32Array(r){return(r[0]-r[2]+r[4]-r[6]+9)%9}static toString(r){let a=new dl;for(let u=0;u<r.length;u++){a.format("Row %2d: ",u);for(let d=0;d<r[u].length;d++){let h=r[u][d];h.getValue().length===0?a.format(" ",null):a.format("%4d(%2d)",h.getValue()[0],h.getConfidence(h.getValue()[0]))}a.format("%n")}return a.toString()}}tn.CODEWORD_SKEW_SIZE=2,tn.MAX_ERRORS=3,tn.MAX_EC_CODEWORDS=512,tn.errorCorrection=new g1;class no{decode(r,a=null){let u=no.decode(r,a,!1);if(u==null||u.length===0||u[0]==null)throw z.getNotFoundInstance();return u[0]}decodeMultiple(r,a=null){try{return no.decode(r,a,!0)}catch(u){throw u instanceof x||u instanceof v?z.getNotFoundInstance():u}}static decode(r,a,u){const d=new Array,h=Jt.detectMultiple(r,a,u);for(const g of h.getPoints()){const b=tn.decode(h.getBits(),g[4],g[5],g[6],g[7],no.getMinCodewordWidth(g),no.getMaxCodewordWidth(g)),C=new Ee(b.getText(),b.getRawBytes(),void 0,g,xe.PDF_417);C.putMetadata(Me.ERROR_CORRECTION_LEVEL,b.getECLevel());const A=b.getOther();A!=null&&C.putMetadata(Me.PDF417_EXTRA_METADATA,A),d.push(C)}return d.map(g=>g)}static getMaxWidth(r,a){return r==null||a==null?0:Math.trunc(Math.abs(r.getX()-a.getX()))}static getMinWidth(r,a){return r==null||a==null?_.MAX_VALUE:Math.trunc(Math.abs(r.getX()-a.getX()))}static getMaxCodewordWidth(r){return Math.floor(Math.max(Math.max(no.getMaxWidth(r[0],r[4]),no.getMaxWidth(r[6],r[2])*Vt.MODULES_IN_CODEWORD/Vt.MODULES_IN_STOP_PATTERN),Math.max(no.getMaxWidth(r[1],r[5]),no.getMaxWidth(r[7],r[3])*Vt.MODULES_IN_CODEWORD/Vt.MODULES_IN_STOP_PATTERN)))}static getMinCodewordWidth(r){return Math.floor(Math.min(Math.min(no.getMinWidth(r[0],r[4]),no.getMinWidth(r[6],r[2])*Vt.MODULES_IN_CODEWORD/Vt.MODULES_IN_STOP_PATTERN),Math.min(no.getMinWidth(r[1],r[5]),no.getMinWidth(r[7],r[3])*Vt.MODULES_IN_CODEWORD/Vt.MODULES_IN_STOP_PATTERN)))}reset(){}}class Fu extends f{}Fu.kind="ReaderException";class C1{constructor(r,a){this.verbose=r===!0,a&&this.setHints(a)}decode(r,a){return a&&this.setHints(a),this.decodeInternal(r)}decodeWithState(r){return(this.readers===null||this.readers===void 0)&&this.setHints(null),this.decodeInternal(r)}setHints(r){this.hints=r;const a=r!=null&&r.get(D.TRY_HARDER)!==void 0,u=r==null?null:r.get(D.POSSIBLE_FORMATS),d=new Array;if(u!=null){const h=u.some(g=>g===xe.UPC_A||g===xe.UPC_E||g===xe.EAN_13||g===xe.EAN_8||g===xe.CODABAR||g===xe.CODE_39||g===xe.CODE_93||g===xe.CODE_128||g===xe.ITF||g===xe.RSS_14||g===xe.RSS_EXPANDED);h&&!a&&d.push(new ra(r,this.verbose)),u.includes(xe.QR_CODE)&&d.push(new _s),u.includes(xe.DATA_MATRIX)&&d.push(new Is),u.includes(xe.AZTEC)&&d.push(new Fe),u.includes(xe.PDF_417)&&d.push(new no),h&&a&&d.push(new ra(r,this.verbose))}d.length===0&&(a||d.push(new ra(r,this.verbose)),d.push(new _s),d.push(new Is),d.push(new Fe),d.push(new no),a&&d.push(new ra(r,this.verbose))),this.readers=d}reset(){if(this.readers!==null)for(const r of this.readers)r.reset()}decodeInternal(r){if(this.readers===null)throw new Fu("No readers where selected, nothing can be read.");for(const a of this.readers)try{return a.decode(r,this.hints)}catch(u){if(u instanceof Fu)continue}throw new z("No MultiFormat Readers were able to detect the code.")}}class m3 extends Se{constructor(r=null,a=500){const u=new C1;u.setHints(r),super(u,a)}decodeBitmap(r){return this.reader.decodeWithState(r)}}class v3 extends Se{constructor(r=500){super(new no,r)}}class y3 extends Se{constructor(r=500){super(new _s,r)}}var gf;(function(H){H[H.ERROR_CORRECTION=0]="ERROR_CORRECTION",H[H.CHARACTER_SET=1]="CHARACTER_SET",H[H.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",H[H.MIN_SIZE=3]="MIN_SIZE",H[H.MAX_SIZE=4]="MAX_SIZE",H[H.MARGIN=5]="MARGIN",H[H.PDF417_COMPACT=6]="PDF417_COMPACT",H[H.PDF417_COMPACTION=7]="PDF417_COMPACTION",H[H.PDF417_DIMENSIONS=8]="PDF417_DIMENSIONS",H[H.AZTEC_LAYERS=9]="AZTEC_LAYERS",H[H.QR_VERSION=10]="QR_VERSION"})(gf||(gf={}));var jn=gf;class mf{constructor(r){this.field=r,this.cachedGenerators=[],this.cachedGenerators.push(new Ze(r,Int32Array.from([1])))}buildGenerator(r){const a=this.cachedGenerators;if(r>=a.length){let u=a[a.length-1];const d=this.field;for(let h=a.length;h<=r;h++){const g=u.multiply(new Ze(d,Int32Array.from([1,d.exp(h-1+d.getGeneratorBase())])));a.push(g),u=g}}return a[r]}encode(r,a){if(a===0)throw new m("No error correction bytes");const u=r.length-a;if(u<=0)throw new m("No data bytes provided");const d=this.buildGenerator(a),h=new Int32Array(u);E.arraycopy(r,0,h,0,u);let g=new Ze(this.field,h);g=g.multiplyByMonomial(a,1);const C=g.divide(d)[1].getCoefficients(),A=a-C.length;for(let L=0;L<A;L++)r[u+L]=0;E.arraycopy(C,0,r,u+A,C.length)}}class Ln{constructor(){}static applyMaskPenaltyRule1(r){return Ln.applyMaskPenaltyRule1Internal(r,!0)+Ln.applyMaskPenaltyRule1Internal(r,!1)}static applyMaskPenaltyRule2(r){let a=0;const u=r.getArray(),d=r.getWidth(),h=r.getHeight();for(let g=0;g<h-1;g++){const b=u[g];for(let C=0;C<d-1;C++){const A=b[C];A===b[C+1]&&A===u[g+1][C]&&A===u[g+1][C+1]&&a++}}return Ln.N2*a}static applyMaskPenaltyRule3(r){let a=0;const u=r.getArray(),d=r.getWidth(),h=r.getHeight();for(let g=0;g<h;g++)for(let b=0;b<d;b++){const C=u[g];b+6<d&&C[b]===1&&C[b+1]===0&&C[b+2]===1&&C[b+3]===1&&C[b+4]===1&&C[b+5]===0&&C[b+6]===1&&(Ln.isWhiteHorizontal(C,b-4,b)||Ln.isWhiteHorizontal(C,b+7,b+11))&&a++,g+6<h&&u[g][b]===1&&u[g+1][b]===0&&u[g+2][b]===1&&u[g+3][b]===1&&u[g+4][b]===1&&u[g+5][b]===0&&u[g+6][b]===1&&(Ln.isWhiteVertical(u,b,g-4,g)||Ln.isWhiteVertical(u,b,g+7,g+11))&&a++}return a*Ln.N3}static isWhiteHorizontal(r,a,u){a=Math.max(a,0),u=Math.min(u,r.length);for(let d=a;d<u;d++)if(r[d]===1)return!1;return!0}static isWhiteVertical(r,a,u,d){u=Math.max(u,0),d=Math.min(d,r.length);for(let h=u;h<d;h++)if(r[h][a]===1)return!1;return!0}static applyMaskPenaltyRule4(r){let a=0;const u=r.getArray(),d=r.getWidth(),h=r.getHeight();for(let C=0;C<h;C++){const A=u[C];for(let L=0;L<d;L++)A[L]===1&&a++}const g=r.getHeight()*r.getWidth();return Math.floor(Math.abs(a*2-g)*10/g)*Ln.N4}static getDataMaskBit(r,a,u){let d,h;switch(r){case 0:d=u+a&1;break;case 1:d=u&1;break;case 2:d=a%3;break;case 3:d=(u+a)%3;break;case 4:d=Math.floor(u/2)+Math.floor(a/3)&1;break;case 5:h=u*a,d=(h&1)+h%3;break;case 6:h=u*a,d=(h&1)+h%3&1;break;case 7:h=u*a,d=h%3+(u+a&1)&1;break;default:throw new m("Invalid mask pattern: "+r)}return d===0}static applyMaskPenaltyRule1Internal(r,a){let u=0;const d=a?r.getHeight():r.getWidth(),h=a?r.getWidth():r.getHeight(),g=r.getArray();for(let b=0;b<d;b++){let C=0,A=-1;for(let L=0;L<h;L++){const U=a?g[b][L]:g[L][b];U===A?C++:(C>=5&&(u+=Ln.N1+(C-5)),C=1,A=U)}C>=5&&(u+=Ln.N1+(C-5))}return u}}Ln.N1=3,Ln.N2=3,Ln.N3=40,Ln.N4=10;class Vu{constructor(r,a){this.width=r,this.height=a;const u=new Array(a);for(let d=0;d!==a;d++)u[d]=new Uint8Array(r);this.bytes=u}getHeight(){return this.height}getWidth(){return this.width}get(r,a){return this.bytes[a][r]}getArray(){return this.bytes}setNumber(r,a,u){this.bytes[a][r]=u}setBoolean(r,a,u){this.bytes[a][r]=u?1:0}clear(r){for(const a of this.bytes)T.fill(a,r)}equals(r){if(!(r instanceof Vu))return!1;const a=r;if(this.width!==a.width||this.height!==a.height)return!1;for(let u=0,d=this.height;u<d;++u){const h=this.bytes[u],g=a.bytes[u];for(let b=0,C=this.width;b<C;++b)if(h[b]!==g[b])return!1}return!0}toString(){const r=new J;for(let a=0,u=this.height;a<u;++a){const d=this.bytes[a];for(let h=0,g=this.width;h<g;++h)switch(d[h]){case 0:r.append(" 0");break;case 1:r.append(" 1");break;default:r.append(" ");break}r.append(`
|
||
`)}return r.toString()}}class si{constructor(){this.maskPattern=-1}getMode(){return this.mode}getECLevel(){return this.ecLevel}getVersion(){return this.version}getMaskPattern(){return this.maskPattern}getMatrix(){return this.matrix}toString(){const r=new J;return r.append(`<<
|
||
`),r.append(" mode: "),r.append(this.mode?this.mode.toString():"null"),r.append(`
|
||
ecLevel: `),r.append(this.ecLevel?this.ecLevel.toString():"null"),r.append(`
|
||
version: `),r.append(this.version?this.version.toString():"null"),r.append(`
|
||
maskPattern: `),r.append(this.maskPattern.toString()),this.matrix?(r.append(`
|
||
matrix:
|
||
`),r.append(this.matrix.toString())):r.append(`
|
||
matrix: null
|
||
`),r.append(`>>
|
||
`),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&&r<si.NUM_MASK_PATTERNS}}si.NUM_MASK_PATTERNS=8;class vn extends f{}vn.kind="WriterException";class Lt{constructor(){}static clearMatrix(r){r.clear(255)}static buildMatrix(r,a,u,d,h){Lt.clearMatrix(h),Lt.embedBasicPatterns(u,h),Lt.embedTypeInfo(a,d,h),Lt.maybeEmbedVersionInfo(u,h),Lt.embedDataBits(r,d,h)}static embedBasicPatterns(r,a){Lt.embedPositionDetectionPatternsAndSeparators(a),Lt.embedDarkDotAtLeftBottomCorner(a),Lt.maybeEmbedPositionAdjustmentPatterns(r,a),Lt.embedTimingPatterns(a)}static embedTypeInfo(r,a,u){const d=new N;Lt.makeTypeInfoBits(r,a,d);for(let h=0,g=d.getSize();h<g;++h){const b=d.get(d.getSize()-1-h),C=Lt.TYPE_INFO_COORDINATES[h],A=C[0],L=C[1];if(u.setBoolean(A,L,b),h<8){const U=u.getWidth()-h-1,Z=8;u.setBoolean(U,Z,b)}else{const Z=u.getHeight()-7+(h-8);u.setBoolean(8,Z,b)}}}static maybeEmbedVersionInfo(r,a){if(r.getVersionNumber()<7)return;const u=new N;Lt.makeVersionInfoBits(r,u);let d=6*3-1;for(let h=0;h<6;++h)for(let g=0;g<3;++g){const b=u.get(d);d--,a.setBoolean(h,a.getHeight()-11+g,b),a.setBoolean(a.getHeight()-11+g,h,b)}}static embedDataBits(r,a,u){let d=0,h=-1,g=u.getWidth()-1,b=u.getHeight()-1;for(;g>0;){for(g===6&&(g-=1);b>=0&&b<u.getHeight();){for(let C=0;C<2;++C){const A=g-C;if(!Lt.isEmpty(u.get(A,b)))continue;let L;d<r.getSize()?(L=r.get(d),++d):L=!1,a!==255&&Ln.getDataMaskBit(a,A,b)&&(L=!L),u.setBoolean(A,b,L)}b+=h}h=-h,b+=h,g-=2}if(d!==r.getSize())throw new vn("Not all bits consumed: "+d+"/"+r.getSize())}static findMSBSet(r){return 32-_.numberOfLeadingZeros(r)}static calculateBCHCode(r,a){if(a===0)throw new m("0 polynomial");const u=Lt.findMSBSet(a);for(r<<=u-1;Lt.findMSBSet(r)>=u;)r^=a<<Lt.findMSBSet(r)-u;return r}static makeTypeInfoBits(r,a,u){if(!si.isValidMaskPattern(a))throw new vn("Invalid mask pattern");const d=r.getBits()<<3|a;u.appendBits(d,5);const h=Lt.calculateBCHCode(d,Lt.TYPE_INFO_POLY);u.appendBits(h,10);const g=new N;if(g.appendBits(Lt.TYPE_INFO_MASK_PATTERN,15),u.xor(g),u.getSize()!==15)throw new vn("should not happen but we got: "+u.getSize())}static makeVersionInfoBits(r,a){a.appendBits(r.getVersionNumber(),6);const u=Lt.calculateBCHCode(r.getVersionNumber(),Lt.VERSION_INFO_POLY);if(a.appendBits(u,12),a.getSize()!==18)throw new vn("should not happen but we got: "+a.getSize())}static isEmpty(r){return r===255}static embedTimingPatterns(r){for(let a=8;a<r.getWidth()-8;++a){const u=(a+1)%2;Lt.isEmpty(r.get(a,6))&&r.setNumber(a,6,u),Lt.isEmpty(r.get(6,a))&&r.setNumber(6,a,u)}}static embedDarkDotAtLeftBottomCorner(r){if(r.get(8,r.getHeight()-8)===0)throw new vn;r.setNumber(8,r.getHeight()-8,1)}static embedHorizontalSeparationPattern(r,a,u){for(let d=0;d<8;++d){if(!Lt.isEmpty(u.get(r+d,a)))throw new vn;u.setNumber(r+d,a,0)}}static embedVerticalSeparationPattern(r,a,u){for(let d=0;d<7;++d){if(!Lt.isEmpty(u.get(r,a+d)))throw new vn;u.setNumber(r,a+d,0)}}static embedPositionAdjustmentPattern(r,a,u){for(let d=0;d<5;++d){const h=Lt.POSITION_ADJUSTMENT_PATTERN[d];for(let g=0;g<5;++g)u.setNumber(r+g,a+d,h[g])}}static embedPositionDetectionPattern(r,a,u){for(let d=0;d<7;++d){const h=Lt.POSITION_DETECTION_PATTERN[d];for(let g=0;g<7;++g)u.setNumber(r+g,a+d,h[g])}}static embedPositionDetectionPatternsAndSeparators(r){const a=Lt.POSITION_DETECTION_PATTERN[0].length;Lt.embedPositionDetectionPattern(0,0,r),Lt.embedPositionDetectionPattern(r.getWidth()-a,0,r),Lt.embedPositionDetectionPattern(0,r.getWidth()-a,r);const u=8;Lt.embedHorizontalSeparationPattern(0,u-1,r),Lt.embedHorizontalSeparationPattern(r.getWidth()-u,u-1,r),Lt.embedHorizontalSeparationPattern(0,r.getWidth()-u,r);const d=7;Lt.embedVerticalSeparationPattern(d,0,r),Lt.embedVerticalSeparationPattern(r.getHeight()-d-1,0,r),Lt.embedVerticalSeparationPattern(d,r.getHeight()-d,r)}static maybeEmbedPositionAdjustmentPatterns(r,a){if(r.getVersionNumber()<2)return;const u=r.getVersionNumber()-1,d=Lt.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[u];for(let h=0,g=d.length;h!==g;h++){const b=d[h];if(b>=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 r<Nn.ALPHANUMERIC_TABLE.length?Nn.ALPHANUMERIC_TABLE[r]:-1}static chooseMode(r,a=null){if(B.SJIS.getName()===a&&this.isOnlyDoubleByteKanji(r))return Rt.KANJI;let u=!1,d=!1;for(let h=0,g=r.length;h<g;++h){const b=r.charAt(h);if(Nn.isDigit(b))u=!0;else if(this.getAlphanumericCode(b.charCodeAt(0))!==-1)d=!0;else return Rt.BYTE}return d?Rt.ALPHANUMERIC:u?Rt.NUMERIC:Rt.BYTE}static isOnlyDoubleByteKanji(r){let a;try{a=X.encode(r,B.SJIS)}catch{return!1}const u=a.length;if(u%2!==0)return!1;for(let d=0;d<u;d+=2){const h=a[d]&255;if((h<129||h>159)&&(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<si.NUM_MASK_PATTERNS;b++){Lt.buildMatrix(r,a,u,b,d);let C=this.calculateMaskPenalty(d);C<h&&(h=C,g=b)}return g}static chooseVersion(r,a){for(let u=1;u<=40;u++){const d=xt.getVersionForNumber(u);if(Nn.willFit(r,d,a))return d}throw new vn("Data too big")}static willFit(r,a,u){const d=a.getTotalCodewords(),g=a.getECBlocksForLevel(u).getTotalECCodewords(),b=d-g,C=(r+7)/8;return 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()<u;++g)a.appendBit(!1);const d=a.getSize()&7;if(d>0)for(let g=d;g<8;g++)a.appendBit(!1);const h=r-a.getSizeInBytes();for(let g=0;g<h;++g)a.appendBits((g&1)===0?236:17,8);if(a.getSize()!==u)throw new vn("Bits size does not equal capacity")}static getNumDataBytesAndNumECBytesForBlockID(r,a,u,d,h,g){if(d>=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<C?(h[0]=U,g[0]=se):(h[0]=Z,g[0]=ye)}static interleaveWithECBytes(r,a,u,d){if(r.getSizeInBytes()!==u)throw new vn("Number of bits and data bytes does not match");let h=0,g=0,b=0;const C=new Array;for(let L=0;L<d;++L){const U=new Int32Array(1),Z=new Int32Array(1);Nn.getNumDataBytesAndNumECBytesForBlockID(a,u,d,L,U,Z);const se=U[0],ye=new Uint8Array(se);r.toBytes(8*h,ye,0,se);const Ce=Nn.generateECBytes(ye,Z[0]);C.push(new b3(ye,Ce)),g=Math.max(g,se),b=Math.max(b,Ce.length),h+=U[0]}if(u!==h)throw new vn("Data bytes does not match offset");const A=new N;for(let L=0;L<g;++L)for(const U of C){const Z=U.getDataBytes();L<Z.length&&A.appendBits(Z[L],8)}for(let L=0;L<b;++L)for(const U of C){const Z=U.getErrorCorrectionBytes();L<Z.length&&A.appendBits(Z[L],8)}if(a!==A.getSizeInBytes())throw new vn("Interleaving error: "+a+" and "+A.getSizeInBytes()+" differ.");return A}static generateECBytes(r,a){const u=r.length,d=new Int32Array(u+a);for(let g=0;g<u;g++)d[g]=r[g]&255;new mf(ot.QR_CODE_FIELD_256).encode(d,a);const h=new Uint8Array(a);for(let g=0;g<a;g++)h[g]=d[u+g];return h}static appendModeInfo(r,a){a.appendBits(r.getBits(),4)}static appendLengthInfo(r,a,u,d){const h=u.getCharacterCountBits(a);if(r>=1<<h)throw new vn(r+" is bigger than "+((1<<h)-1));d.appendBits(r,h)}static appendBytes(r,a,u,d){switch(a){case Rt.NUMERIC:Nn.appendNumericBytes(r,u);break;case Rt.ALPHANUMERIC:Nn.appendAlphanumericBytes(r,u);break;case Rt.BYTE:Nn.append8BitBytes(r,u,d);break;case Rt.KANJI:Nn.appendKanjiBytes(r,u);break;default:throw new vn("Invalid mode: "+a)}}static getDigit(r){return r.charCodeAt(0)-48}static isDigit(r){const a=Nn.getDigit(r);return a>=0&&a<=9}static appendNumericBytes(r,a){const u=r.length;let d=0;for(;d<u;){const h=Nn.getDigit(r.charAt(d));if(d+2<u){const g=Nn.getDigit(r.charAt(d+1)),b=Nn.getDigit(r.charAt(d+2));a.appendBits(h*100+g*10+b,10),d+=3}else if(d+1<u){const g=Nn.getDigit(r.charAt(d+1));a.appendBits(h*10+g,7),d+=2}else a.appendBits(h,4),d++}}static appendAlphanumericBytes(r,a){const u=r.length;let d=0;for(;d<u;){const h=Nn.getAlphanumericCode(r.charCodeAt(d));if(h===-1)throw new vn;if(d+1<u){const g=Nn.getAlphanumericCode(r.charCodeAt(d+1));if(g===-1)throw new vn;a.appendBits(h*45+g,11),d+=2}else a.appendBits(h,6),d++}}static append8BitBytes(r,a,u){let d;try{d=X.encode(r,u)}catch(h){throw new vn(h)}for(let h=0,g=d.length;h!==g;h++){const b=d[h];a.appendBits(b,8)}}static appendKanjiBytes(r,a){let u;try{u=X.encode(r,B.SJIS)}catch(h){throw new vn(h)}const d=u.length;for(let h=0;h<d;h+=2){const g=u[h]&255,b=u[h+1]&255,C=g<<8&4294967295|b;let A=-1;if(C>=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;Oe<b;Oe++,Ke+=Z)for(let ft=0,ht=se;ft<g;ft++,ht+=Z)if(h.get(ft,Oe)===1){const lt=this.createSvgRectElement(ht,Ke,Z,Z);Ce.appendChild(lt)}return Ce}createSVGElement(r,a){const u=document.createElementNS(ii.SVG_NS,"svg");return u.setAttributeNS(null,"height",r.toString()),u.setAttributeNS(null,"width",a.toString()),u}createSvgRectElement(r,a,u,d){const h=document.createElementNS(ii.SVG_NS,"rect");return h.setAttributeNS(null,"x",r.toString()),h.setAttributeNS(null,"y",a.toString()),h.setAttributeNS(null,"height",u.toString()),h.setAttributeNS(null,"width",d.toString()),h.setAttributeNS(null,"fill","#000000"),h}}ii.QUIET_ZONE_SIZE=4,ii.SVG_NS="http://www.w3.org/2000/svg";class ia{encode(r,a,u,d,h){if(r.length===0)throw new m("Found empty contents");if(a!==xe.QR_CODE)throw new m("Can only encode QR_CODE, but got "+a);if(u<0||d<0)throw new m(`Requested dimensions are too small: ${u}x${d}`);let g=Cn.L,b=ia.QUIET_ZONE_SIZE;h!==null&&(h.get(jn.ERROR_CORRECTION)!==void 0&&(g=Cn.fromString(h.get(jn.ERROR_CORRECTION).toString())),h.get(jn.MARGIN)!==void 0&&(b=Number.parseInt(h.get(jn.MARGIN).toString(),10)));const C=Nn.encode(r,g,h);return ia.renderResult(C,u,d,b)}static 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=new G(L,U);for(let Oe=0,Ke=ye;Oe<b;Oe++,Ke+=Z)for(let ft=0,ht=se;ft<g;ft++,ht+=Z)h.get(ft,Oe)===1&&Ce.setRegion(ht,Ke,Z,Z);return Ce}}ia.QUIET_ZONE_SIZE=4;class w3{encode(r,a,u,d,h){let g;switch(a){case xe.QR_CODE:g=new ia;break;default:throw new m("No encoder available for format "+a)}return g.encode(r,a,u,d,h)}}class Hr extends V{constructor(r,a,u,d,h,g,b,C){if(super(g,b),this.yuvData=r,this.dataWidth=a,this.dataHeight=u,this.left=d,this.top=h,d+g>a||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<u)&&(a=new Uint8ClampedArray(u));const d=(r+this.top)*this.dataWidth+this.left;return E.arraycopy(this.yuvData,d,a,0,u),a}getMatrix(){const r=this.getWidth(),a=this.getHeight();if(r===this.dataWidth&&a===this.dataHeight)return this.yuvData;const u=r*a,d=new Uint8ClampedArray(u);let h=this.top*this.dataWidth+this.left;if(r===this.dataWidth)return E.arraycopy(this.yuvData,h,d,0,u),d;for(let g=0;g<a;g++){const b=g*r;E.arraycopy(this.yuvData,h,d,b,r),h+=this.dataWidth}return d}isCropSupported(){return!0}crop(r,a,u,d){return new Hr(this.yuvData,this.dataWidth,this.dataHeight,this.left+r,this.top+a,u,d,!1)}renderThumbnail(){const r=this.getWidth()/Hr.THUMBNAIL_SCALE_FACTOR,a=this.getHeight()/Hr.THUMBNAIL_SCALE_FACTOR,u=new Int32Array(r*a),d=this.yuvData;let h=this.top*this.dataWidth+this.left;for(let g=0;g<a;g++){const b=g*r;for(let C=0;C<r;C++){const A=d[h+C*Hr.THUMBNAIL_SCALE_FACTOR]&255;u[b+C]=4278190080|A*65793}h+=this.dataWidth*Hr.THUMBNAIL_SCALE_FACTOR}return u}getThumbnailWidth(){return this.getWidth()/Hr.THUMBNAIL_SCALE_FACTOR}getThumbnailHeight(){return this.getHeight()/Hr.THUMBNAIL_SCALE_FACTOR}reverseHorizontal(r,a){const u=this.yuvData;for(let d=0,h=this.top*this.dataWidth+this.left;d<a;d++,h+=this.dataWidth){const g=h+r/2;for(let b=h,C=h+r-1;b<g;b++,C--){const A=u[b];u[b]=u[C],u[C]=A}}}invert(){return new q(this)}}Hr.THUMBNAIL_SCALE_FACTOR=2;class vf extends V{constructor(r,a,u,d,h,g,b){if(super(a,u),this.dataWidth=d,this.dataHeight=h,this.left=g,this.top=b,r.BYTES_PER_ELEMENT===4){const C=a*u,A=new Uint8ClampedArray(C);for(let L=0;L<C;L++){const U=r[L],Z=U>>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<u)&&(a=new Uint8ClampedArray(u));const d=(r+this.top)*this.dataWidth+this.left;return E.arraycopy(this.luminances,d,a,0,u),a}getMatrix(){const r=this.getWidth(),a=this.getHeight();if(r===this.dataWidth&&a===this.dataHeight)return this.luminances;const u=r*a,d=new Uint8ClampedArray(u);let h=this.top*this.dataWidth+this.left;if(r===this.dataWidth)return E.arraycopy(this.luminances,h,d,0,u),d;for(let g=0;g<a;g++){const b=g*r;E.arraycopy(this.luminances,h,d,b,r),h+=this.dataWidth}return d}isCropSupported(){return!0}crop(r,a,u,d){return new vf(this.luminances,u,d,this.dataWidth,this.dataHeight,this.left+r,this.top+a)}invert(){return new q(this)}}class E1 extends B{static forName(r){return this.getCharacterSetECIByName(r)}}class yf{}yf.ISO_8859_1=B.ISO8859_1;class S1{isCompact(){return this.compact}setCompact(r){this.compact=r}getSize(){return this.size}setSize(r){this.size=r}getLayers(){return this.layers}setLayers(r){this.layers=r}getCodeWords(){return this.codeWords}setCodeWords(r){this.codeWords=r}getMatrix(){return this.matrix}setMatrix(r){this.matrix=r}}class A1{static singletonList(r){return[r]}static min(r,a){return r.sort(a)[0]}}class C3{constructor(r){this.previous=r}getPrevious(){return this.previous}}class aa extends C3{constructor(r,a,u){super(r),this.value=a,this.bitCount=u}appendTo(r,a){r.appendBits(this.value,this.bitCount)}add(r,a){return new aa(this,r,a)}addBinaryShift(r,a){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new aa(this,r,a)}toString(){let r=this.value&(1<<this.bitCount)-1;return r|=1<<this.bitCount,"<"+_.toBinaryString(r|1<<this.bitCount).substring(1)+">"}}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;u<this.binaryShiftByteCount;u++)(u===0||u===31&&this.binaryShiftByteCount<=62)&&(r.appendBits(31,5),this.binaryShiftByteCount>62?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.binaryShiftByteCount<r.binaryShiftByteCount?a+=Ur.calculateBinaryShiftCost(r)-Ur.calculateBinaryShiftCost(this):this.binaryShiftByteCount>r.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<L.length;Z++)H[T1][K.getCharCode(L[Z])]=Z;const U=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"];for(let Z=0;Z<U.length;Z++)K.getCharCode(U[Z])>0&&(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;h<this.text.length;h++){let g,b=h+1<this.text.length?this.text[h+1]:0;switch(this.text[h]){case K.getCharCode("\r"):g=b===a?2:0;break;case K.getCharCode("."):g=b===r?3:0;break;case K.getCharCode(","):g=b===r?4:0;break;case K.getCharCode(":"):g=b===r?5:0;break;default:g=0}g>0?(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<Oe.length;lt++)Oe[lt]=lt}else{Ke=Ce+1+2*_.truncDivision(_.truncDivision(Ce,2)-1,15);let lt=_.truncDivision(Ce,2),rn=_.truncDivision(Ke,2);for(let qt=0;qt<lt;qt++){let _o=qt+_.truncDivision(qt,15);Oe[lt-qt-1]=rn-_o-1,Oe[lt+qt]=rn+_o+1}}let ft=new G(Ke);for(let lt=0,rn=0;lt<C;lt++){let qt=(C-lt)*4+(b?9:12);for(let _o=0;_o<qt;_o++){let Er=_o*2;for(let No=0;No<2;No++)Z.get(rn+Er+No)&&ft.set(Oe[lt*2+No],Oe[lt*2+_o]),Z.get(rn+qt*2+Er+No)&&ft.set(Oe[lt*2+_o],Oe[Ce-1-lt*2-No]),Z.get(rn+qt*4+Er+No)&&ft.set(Oe[Ce-1-lt*2-No],Oe[Ce-1-lt*2-_o]),Z.get(rn+qt*6+Er+No)&&ft.set(Oe[Ce-1-lt*2-_o],Oe[lt*2+No])}rn+=qt*8}if(dn.drawModeMessage(ft,b,Ke,ye),b)dn.drawBullsEye(ft,_.truncDivision(Ke,2),5);else{dn.drawBullsEye(ft,_.truncDivision(Ke,2),7);for(let lt=0,rn=0;lt<_.truncDivision(Ce,2)-1;lt+=15,rn+=16)for(let qt=_.truncDivision(Ke,2)&1;qt<Ke;qt+=2)ft.set(_.truncDivision(Ke,2)-rn,qt),ft.set(_.truncDivision(Ke,2)+rn,qt),ft.set(qt,_.truncDivision(Ke,2)-rn),ft.set(qt,_.truncDivision(Ke,2)+rn)}let ht=new S1;return ht.setCompact(b),ht.setSize(Ke),ht.setLayers(C),ht.setCodeWords(se),ht.setMatrix(ft),ht}static drawBullsEye(r,a,u){for(let d=0;d<u;d+=2)for(let h=a-d;h<=a+d;h++)r.set(h,a-d),r.set(h,a+d),r.set(a-d,h),r.set(a+d,h);r.set(a-u,a-u),r.set(a-u+1,a-u),r.set(a-u,a-u+1),r.set(a+u,a-u),r.set(a+u,a-u+1),r.set(a+u,a+u-1)}static generateModeMessage(r,a,u){let d=new N;return r?(d.appendBits(a-1,2),d.appendBits(u-1,6),d=dn.generateCheckWords(d,28,4)):(d.appendBits(a-1,5),d.appendBits(u-1,11),d=dn.generateCheckWords(d,40,4)),d}static drawModeMessage(r,a,u,d){let h=_.truncDivision(u,2);if(a)for(let g=0;g<7;g++){let b=h-3+g;d.get(g)&&r.set(b,h-5),d.get(g+7)&&r.set(h+5,b),d.get(20-g)&&r.set(b,h+5),d.get(27-g)&&r.set(h-5,b)}else for(let g=0;g<10;g++){let b=h-5+g+_.truncDivision(g,5);d.get(g)&&r.set(b,h-7),d.get(g+10)&&r.set(h+7,b),d.get(29-g)&&r.set(b,h+7),d.get(39-g)&&r.set(h-7,b)}}static generateCheckWords(r,a,u){let d=r.getSize()/u,h=new mf(dn.getGF(u)),g=_.truncDivision(a,u),b=dn.bitsToWords(r,u,g);h.encode(b,g-d);let C=a%u,A=new N;A.appendBits(0,C);for(const L of Array.from(b))A.appendBits(L,u);return A}static bitsToWords(r,a,u){let d=new Int32Array(u),h,g;for(h=0,g=r.getSize()/a;h<g;h++){let b=0;for(let C=0;C<a;C++)b|=r.get(h*a+C)?1<<a-C-1:0;d[h]=b}return d}static getGF(r){switch(r){case 4:return ot.AZTEC_PARAM;case 6:return ot.AZTEC_DATA_6;case 8:return ot.AZTEC_DATA_8;case 10:return ot.AZTEC_DATA_10;case 12:return ot.AZTEC_DATA_12;default:throw new m("Unsupported word size "+r)}}static stuffBits(r,a){let u=new N,d=r.getSize(),h=(1<<a)-2;for(let g=0;g<d;g+=a){let b=0;for(let C=0;C<a;C++)(g+C>=d||r.get(g+C))&&(b|=1<<a-1-C);(b&h)===h?(u.appendBits(b&h,a),g--):(b&h)===0?(u.appendBits(b|1,a),g--):u.appendBits(b,a)}return u}static totalBitsInLayer(r,a){return((a?88:112)+16*r)*r}}dn.DEFAULT_EC_PERCENT=33,dn.DEFAULT_AZTEC_LAYERS=0,dn.MAX_NB_BITS=32,dn.MAX_NB_BITS_COMPACT=4,dn.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]);class zu{encode(r,a,u,d){return this.encodeWithHints(r,a,u,d,null)}encodeWithHints(r,a,u,d,h){let g=yf.ISO_8859_1,b=dn.DEFAULT_EC_PERCENT,C=dn.DEFAULT_AZTEC_LAYERS;return h!=null&&(h.has(jn.CHARACTER_SET)&&(g=E1.forName(h.get(jn.CHARACTER_SET).toString())),h.has(jn.ERROR_CORRECTION)&&(b=_.parseInt(h.get(jn.ERROR_CORRECTION).toString())),h.has(jn.AZTEC_LAYERS)&&(C=_.parseInt(h.get(jn.AZTEC_LAYERS).toString()))),zu.encodeLayers(r,a,u,d,g,b,C)}static encodeLayers(r,a,u,d,h,g,b){if(a!==xe.AZTEC)throw new m("Can only encode AZTEC, but got "+a);let C=dn.encode(K.getBytes(r,h),g,b);return zu.renderResult(C,u,d)}static renderResult(r,a,u){let d=r.getMatrix();if(d==null)throw new de;let h=d.getWidth(),g=d.getHeight(),b=Math.max(a,h),C=Math.max(u,g),A=Math.min(b/h,C/g),L=(b-h*A)/2,U=(C-g*A)/2,Z=new G(b,C);for(let se=0,ye=U;se<g;se++,ye+=A)for(let Ce=0,Oe=L;Ce<h;Ce++,Oe+=A)d.get(Ce,se)&&Z.setRegion(Oe,ye,A,A);return Z}}n.ArgumentException=p,n.ArithmeticException=mt,n.AztecCode=S1,n.AztecCodeReader=Fe,n.AztecCodeWriter=zu,n.AztecDecoder=ke,n.AztecDetector=we,n.AztecDetectorResult=Te,n.AztecEncoder=dn,n.AztecHighLevelEncoder=vl,n.AztecPoint=tt,n.BarcodeFormat=xe,n.Binarizer=w,n.BinaryBitmap=y,n.BitArray=N,n.BitMatrix=G,n.BitSource=cf,n.BrowserAztecCodeReader=_e,n.BrowserBarcodeReader=o3,n.BrowserCodeReader=Se,n.BrowserDatamatrixCodeReader=s3,n.BrowserMultiFormatReader=m3,n.BrowserPDF417Reader=v3,n.BrowserQRCodeReader=y3,n.BrowserQRCodeSvgWriter=ii,n.CharacterSetECI=B,n.ChecksumException=v,n.Code128Reader=Le,n.Code39Reader=Mt,n.DataMatrixDecodedBitStreamParser=Ts,n.DataMatrixReader=Is,n.DecodeHintType=D,n.DecoderResult=We,n.DefaultGridSampler=pt,n.DetectorResult=ge,n.EAN13Reader=go,n.EncodeHintType=jn,n.Exception=f,n.FormatException=x,n.GenericGF=ot,n.GenericGFPoly=Ze,n.GlobalHistogramBinarizer=ee,n.GridSampler=he,n.GridSamplerInstance=At,n.HTMLCanvasElementLuminanceSource=ce,n.HybridBinarizer=j,n.ITFReader=Nt,n.IllegalArgumentException=m,n.IllegalStateException=de,n.InvertedLuminanceSource=q,n.LuminanceSource=V,n.MathUtils=Ve,n.MultiFormatOneDReader=ra,n.MultiFormatReader=C1,n.MultiFormatWriter=w3,n.NotFoundException=z,n.OneDReader=Ye,n.PDF417DecodedBitStreamParser=je,n.PDF417DecoderErrorCorrection=g1,n.PDF417Reader=no,n.PDF417ResultMetadata=v1,n.PerspectiveTransform=He,n.PlanarYUVLuminanceSource=Hr,n.QRCodeByteMatrix=Vu,n.QRCodeDataMask=tr,n.QRCodeDecodedBitStreamParser=Mn,n.QRCodeDecoderErrorCorrectionLevel=Cn,n.QRCodeDecoderFormatInformation=ho,n.QRCodeEncoder=Nn,n.QRCodeEncoderQRCode=si,n.QRCodeMaskUtil=Ln,n.QRCodeMatrixUtil=Lt,n.QRCodeMode=Rt,n.QRCodeReader=_s,n.QRCodeVersion=xt,n.QRCodeWriter=ia,n.RGBLuminanceSource=vf,n.RSS14Reader=Rn,n.RSSExpandedReader=nt,n.ReaderException=Fu,n.ReedSolomonDecoder=Ne,n.ReedSolomonEncoder=mf,n.ReedSolomonException=te,n.Result=Ee,n.ResultMetadataType=Me,n.ResultPoint=re,n.StringUtils=K,n.UnsupportedOperationException=Y,n.VideoInputDevice=ue,n.WhiteRectangleDetector=Je,n.WriterException=vn,n.ZXingArrays=T,n.ZXingCharset=E1,n.ZXingInteger=_,n.ZXingStandardCharsets=yf,n.ZXingStringBuilder=J,n.ZXingStringEncoding=X,n.ZXingSystem=E,Object.defineProperty(n,"__esModule",{value:!0})})})(Sn,Sn.exports);var ene=MC(Sn.exports),tne=D3({__proto__:null,default:ene},[Sn.exports]),nne=function(){function e(t,n,o){if(this.formatMap=new Map([[Et.QR_CODE,Sn.exports.BarcodeFormat.QR_CODE],[Et.AZTEC,Sn.exports.BarcodeFormat.AZTEC],[Et.CODABAR,Sn.exports.BarcodeFormat.CODABAR],[Et.CODE_39,Sn.exports.BarcodeFormat.CODE_39],[Et.CODE_93,Sn.exports.BarcodeFormat.CODE_93],[Et.CODE_128,Sn.exports.BarcodeFormat.CODE_128],[Et.DATA_MATRIX,Sn.exports.BarcodeFormat.DATA_MATRIX],[Et.MAXICODE,Sn.exports.BarcodeFormat.MAXICODE],[Et.ITF,Sn.exports.BarcodeFormat.ITF],[Et.EAN_13,Sn.exports.BarcodeFormat.EAN_13],[Et.EAN_8,Sn.exports.BarcodeFormat.EAN_8],[Et.PDF_417,Sn.exports.BarcodeFormat.PDF_417],[Et.RSS_14,Sn.exports.BarcodeFormat.RSS_14],[Et.RSS_EXPANDED,Sn.exports.BarcodeFormat.RSS_EXPANDED],[Et.UPC_A,Sn.exports.BarcodeFormat.UPC_A],[Et.UPC_E,Sn.exports.BarcodeFormat.UPC_E],[Et.UPC_EAN_EXTENSION,Sn.exports.BarcodeFormat.UPC_EAN_EXTENSION]]),this.reverseFormatMap=this.createReverseFormatMap(),!tne)throw"Use html5qrcode.min.js without edit, ZXing not found.";this.verbose=n,this.logger=o;var s=this.createZXingFormats(t),i=new Map;i.set(Sn.exports.DecodeHintType.POSSIBLE_FORMATS,s),this.hints=i}return e.prototype.decodeAsync=function(t){var n=this;return new Promise(function(o,s){try{o(n.decode(t))}catch(i){s(i)}})},e.prototype.decode=function(t){var n=new Sn.exports.MultiFormatReader(this.verbose,this.hints),o=new Sn.exports.HTMLCanvasElementLuminanceSource(t),s=new Sn.exports.BinaryBitmap(new Sn.exports.HybridBinarizer(o)),i=n.decode(s);return{text:i.text,format:GS.create(this.toHtml5QrcodeSupportedFormats(i.format))}},e.prototype.createReverseFormatMap=function(){var t=new Map;return this.formatMap.forEach(function(n,o,s){t.set(n,o)}),t},e.prototype.toHtml5QrcodeSupportedFormats=function(t){if(!this.reverseFormatMap.has(t))throw"reverseFormatMap doesn't have "+t;return this.reverseFormatMap.get(t)},e.prototype.createZXingFormats=function(t){for(var n=[],o=0,s=t;o<s.length;o++){var i=s[o];this.formatMap.has(i)?n.push(this.formatMap.get(i)):this.logger.logError(i+" is not supported byZXingHtml5QrcodeShim")}return n},e}(),one=globalThis&&globalThis.__awaiter||function(e,t,n,o){function s(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function c(m){try{p(o.next(m))}catch(y){l(y)}}function f(m){try{p(o.throw(m))}catch(y){l(y)}}function p(m){m.done?i(m.value):s(m.value).then(c,f)}p((o=o.apply(e,t||[])).next())})},rne=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,s,i,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(p){return function(m){return f([p,m])}}function f(p){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,s&&(i=p[0]&2?s.return:p[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,p[1])).done)return i;switch(s=0,i&&(p=[p[0]&2,i.value]),p[0]){case 0:case 1:i=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,s=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>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]<i[3])){n.label=p[1];break}if(p[0]===6&&n.label<i[1]){n.label=i[1],i=p;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(p);break}i[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(m){p=[6,m],s=0}finally{o=i=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},$y=function(){function e(t,n,o){if(this.formatMap=new Map([[Et.QR_CODE,"qr_code"],[Et.AZTEC,"aztec"],[Et.CODABAR,"codabar"],[Et.CODE_39,"code_39"],[Et.CODE_93,"code_93"],[Et.CODE_128,"code_128"],[Et.DATA_MATRIX,"data_matrix"],[Et.ITF,"itf"],[Et.EAN_13,"ean_13"],[Et.EAN_8,"ean_8"],[Et.PDF_417,"pdf417"],[Et.UPC_A,"upc_a"],[Et.UPC_E,"upc_e"]]),this.reverseFormatMap=this.createReverseFormatMap(),!e.isSupported())throw"Use html5qrcode.min.js without edit, Use BarcodeDetectorDelegate only if it isSupported();";this.verbose=n,this.logger=o;var s=this.createBarcodeDetectorFormats(t);if(this.detector=new BarcodeDetector(s),!this.detector)throw"BarcodeDetector detector not supported"}return e.isSupported=function(){if(!("BarcodeDetector"in window))return!1;var t=new BarcodeDetector({formats:["qr_code"]});return typeof t!="undefined"},e.prototype.decodeAsync=function(t){return one(this,void 0,void 0,function(){var n,o;return rne(this,function(s){switch(s.label){case 0:return[4,this.detector.detect(t)];case 1:if(n=s.sent(),!n||n.length===0)throw"No barcode or QR code detected.";return o=this.selectLargestBarcode(n),[2,{text:o.rawValue,format:GS.create(this.toHtml5QrcodeSupportedFormats(o.format))}]}})})},e.prototype.selectLargestBarcode=function(t){for(var n=null,o=0,s=0,i=t;s<i.length;s++){var l=i[s],c=l.boundingBox.width*l.boundingBox.height;c>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<s.length;o++){var i=s[o];this.formatMap.has(i)?n.push(this.formatMap.get(i)):this.logger.warn(i+" is not supported byBarcodeDetectorDelegate")}return{formats:n}},e.prototype.toHtml5QrcodeSupportedFormats=function(t){if(!this.reverseFormatMap.has(t))throw"reverseFormatMap doesn't have "+t;return this.reverseFormatMap.get(t)},e.prototype.createReverseFormatMap=function(){var t=new Map;return this.formatMap.forEach(function(n,o,s){t.set(n,o)}),t},e}(),sne=function(){function e(t,n,o,s){this.EXECUTIONS_TO_REPORT_PERFORMANCE=100,this.executions=0,this.executionResults=[],this.verbose=n,s.useBarCodeDetectorIfSupported===!0&&$y.isSupported()?this.decoder=new $y(t,n,o):this.decoder=new nne(t,n,o)}return e.prototype.decodeAsync=function(t){var n=this,o=performance.now();return this.decoder.decodeAsync(t).finally(function(){if(n.verbose){var s=performance.now()-o;n.executionResults.push(s),n.executions++,n.possiblyFlushPerformanceReport()}})},e.prototype.possiblyFlushPerformanceReport=function(){if(!(this.executions<this.EXECUTIONS_TO_REPORT_PERFORMANCE)){for(var t=0,n=0,o=this.executionResults;n<o.length;n++){var s=o[n];t+=s}var i=t/this.executionResults.length;console.log(i+" ms for "+this.executionResults.length+" last runs."),this.executions=0,this.executionResults=[]}},e}(),ine=function(){function e(){}return e.createExperimentalFeaturesConfig=function(t){return t?(t.useBarCodeDetectorIfSupported!==!0&&(t.useBarCodeDetectorIfSupported=!1),t):{useBarCodeDetectorIfSupported:!1}},e}(),Pn;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.SCANNING=2]="SCANNING",e[e.PAUSED=3]="PAUSED"})(Pn||(Pn={}));var ane=function(){function e(){this.state=Pn.NOT_STARTED,this.onGoingTransactionNewState=Pn.UNKNOWN}return e.prototype.directTransition=function(t){this.failIfTransitionOngoing(),this.validateTransition(t),this.state=t},e.prototype.startTransition=function(t){return this.failIfTransitionOngoing(),this.validateTransition(t),this.onGoingTransactionNewState=t,this},e.prototype.execute=function(){if(this.onGoingTransactionNewState===Pn.UNKNOWN)throw"Transaction is already cancelled, cannot execute().";var t=this.onGoingTransactionNewState;this.onGoingTransactionNewState=Pn.UNKNOWN,this.directTransition(t)},e.prototype.cancel=function(){if(this.onGoingTransactionNewState===Pn.UNKNOWN)throw"Transaction is already cancelled, cannot cancel().";this.onGoingTransactionNewState=Pn.UNKNOWN},e.prototype.getState=function(){return this.state},e.prototype.failIfTransitionOngoing=function(){if(this.onGoingTransactionNewState!==Pn.UNKNOWN)throw"Cannnot transition to a new state, already under transition"},e.prototype.validateTransition=function(t){switch(this.state){case Pn.UNKNOWN:throw"Transition from unknown is not allowed";case Pn.NOT_STARTED:this.failIfNewStateIs(t,[Pn.PAUSED]);break;case Pn.SCANNING:break;case Pn.PAUSED:break}},e.prototype.failIfNewStateIs=function(t,n){for(var o=0,s=n;o<s.length;o++){var i=s[o];if(t===i)throw"Cannot transition from "+this.state+" to "+t}},e}(),lne=function(){function e(t){this.stateManager=t}return e.prototype.startTransition=function(t){return this.stateManager.startTransition(t)},e.prototype.directTransition=function(t){this.stateManager.directTransition(t)},e.prototype.getState=function(){return this.stateManager.getState()},e.prototype.canScanFile=function(){return this.stateManager.getState()===Pn.NOT_STARTED},e.prototype.isScanning=function(){return this.stateManager.getState()!==Pn.NOT_STARTED},e.prototype.isStrictlyScanning=function(){return this.stateManager.getState()===Pn.SCANNING},e.prototype.isPaused=function(){return this.stateManager.getState()===Pn.PAUSED},e}(),une=function(){function e(){}return e.create=function(){return new lne(new ane)},e}(),cne=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(o[i]=s[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),sr=function(e){cne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.DEFAULT_WIDTH=300,t.DEFAULT_WIDTH_OFFSET=2,t.FILE_SCAN_MIN_HEIGHT=300,t.MIN_QR_BOX_SIZE=50,t.SHADED_LEFT=1,t.SHADED_RIGHT=2,t.SHADED_TOP=3,t.SHADED_BOTTOM=4,t.SHADED_REGION_ELEMENT_ID="qr-shaded-region",t.VERBOSE=!1,t.BORDER_SHADER_DEFAULT_COLOR="#ffffff",t.BORDER_SHADER_MATCH_COLOR="rgb(90, 193, 56)",t}(Gr),dne=function(){function e(t,n){this.logger=n,this.fps=sr.SCAN_DEFAULT_FPS,t?(t.fps&&(this.fps=t.fps),this.disableFlip=t.disableFlip===!0,this.qrbox=t.qrbox,this.aspectRatio=t.aspectRatio,this.videoConstraints=t.videoConstraints):this.disableFlip=sr.DEFAULT_DISABLE_FLIP}return e.prototype.isMediaStreamConstraintsValid=function(){return this.videoConstraints?ZS.isMediaStreamConstraintsValid(this.videoConstraints,this.logger):(this.logger.logError("Empty videoConstraints",!0),!1)},e.prototype.isShadedBoxEnabled=function(){return!Aa(this.qrbox)},e.create=function(t,n){return new e(t,n)},e}(),Ry=function(){function e(t,n){if(this.element=null,this.canvasElement=null,this.scannerPausedUiElement=null,this.hasBorderShaders=null,this.borderShaders=null,this.qrMatch=null,this.videoElement=null,this.localMediaStream=null,this.qrRegion=null,this.context=null,this.lastScanImageFile=null,this.isScanning=!1,!document.getElementById(t))throw"HTML Element with id="+t+" not found";this.elementId=t,this.verbose=!1;var o;typeof n=="boolean"?this.verbose=n===!0:n&&(this.verbose=n.verbose===!0,o=n.experimentalFeatures),this.logger=new qS(this.verbose),this.qrcode=new sne(this.getSupportedFormats(n),this.verbose,this.logger,ine.createExperimentalFeaturesConfig(o)),this.foreverScanTimeout,this.localMediaStream,this.shouldScan=!0,this.stateManagerProxy=une.create()}return e.prototype.start=function(t,n,o,s){if(!t)throw"cameraIdOrConfig is required";if(!o||typeof o!="function")throw"qrCodeSuccessCallback is required and should be a function.";s||(s=this.verbose?this.logger.log:function(){});var i=dne.create(n,this.logger);this.clearElement();var l=!1;i.videoConstraints&&(i.isMediaStreamConstraintsValid()?l=!0:this.logger.logError("'videoConstraints' is not valid 'MediaStreamConstraints, it will be ignored.'",!0));var c=l;i.isShadedBoxEnabled();var f=document.getElementById(this.elementId),p=f.clientWidth?f.clientWidth:sr.DEFAULT_WIDTH;f.style.position="relative",this.shouldScan=!0,this.element=f;var m=this,y=this.stateManagerProxy.startTransition(Pn.SCANNING);return new Promise(function(v,w){var E=c?i.videoConstraints:m.createVideoConstraints(t);if(!E){y.cancel(),w("videoConstraints should be defined");return}navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?navigator.mediaDevices.getUserMedia({audio:!1,video:E}).then(function(I){m.onMediaStreamReceived(I,i,c,p,o,s).then(function(S){y.execute(),m.isScanning=!0,v(null)}).catch(function(S){y.cancel(),w(S)})}).catch(function(I){y.cancel(),w(Nl.errorGettingUserMedia(I))}):(y.cancel(),w(Nl.cameraStreamingNotSupported()))})},e.prototype.pause=function(t){if(!this.stateManagerProxy.isStrictlyScanning())throw"Cannot pause, scanner is not scanning.";this.stateManagerProxy.directTransition(Pn.PAUSED),this.showPausedState(),(Aa(t)||t!==!0)&&(t=!1),t&&this.videoElement&&this.videoElement.pause()},e.prototype.resume=function(){if(!this.stateManagerProxy.isPaused())throw"Cannot result, scanner is not paused.";if(!this.videoElement)throw"VideoElement doesn't exist while trying resume()";var t=this,n=function(){t.stateManagerProxy.directTransition(Pn.SCANNING),t.hidePausedState()},o=this.videoElement.paused;if(!o){n();return}var s=function(){var i;setTimeout(n,200),(i=t.videoElement)===null||i===void 0||i.removeEventListener("playing",s)};this.videoElement.addEventListener("playing",s),this.videoElement.play()},e.prototype.getState=function(){return this.stateManagerProxy.getState()},e.prototype.stop=function(){var t=this;if(!this.stateManagerProxy.isScanning())throw"Cannot stop, scanner is not running or paused.";var n=this.stateManagerProxy.startTransition(Pn.NOT_STARTED);this.shouldScan=!1,this.foreverScanTimeout&&clearTimeout(this.foreverScanTimeout);var o=function(){if(!!t.element){var s=document.getElementById(sr.SHADED_REGION_ELEMENT_ID);s&&t.element.removeChild(s)}};return new Promise(function(s,i){var l=function(){t.localMediaStream=null,t.element&&(t.element.removeChild(t.videoElement),t.element.removeChild(t.canvasElement)),o(),t.qrRegion&&(t.qrRegion=null),t.context&&(t.context=null),n.execute(),t.hidePausedState(),t.isScanning=!1,s()};t.localMediaStream||l();var c=t.localMediaStream.getVideoTracks().length,f=0;t.localMediaStream.getVideoTracks().forEach(function(p){t.localMediaStream.removeTrack(p),p.stop(),++f,f>=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;c<f.length;c++){var p=f[c];p.enabled=!1,p.stop(),i.removeTrack(p)}};navigator.mediaDevices.enumerateDevices().then(function(i){for(var l=[],c=0,f=i;c<f.length;c++){var p=f[c];p.kind==="videoinput"&&l.push({id:p.deviceId,label:p.label})}s(o),t(l)}).catch(function(i){n(i.name+" : "+i.message)})}).catch(function(o){n(o.name+" : "+o.message)})})},e.getCamerasFromMediaStreamTrack=function(){return new Promise(function(t,n){var o=function(i){for(var l=[],c=0,f=i;c<f.length;c++){var p=f[c];p.kind==="video"&&l.push({id:p.id,label:p.label})}t(l)},s=MediaStreamTrack;s.getSources(o)})},e.prototype.getSupportedFormats=function(t){var n=[Et.QR_CODE,Et.AZTEC,Et.CODABAR,Et.CODE_39,Et.CODE_93,Et.CODE_128,Et.DATA_MATRIX,Et.MAXICODE,Et.ITF,Et.EAN_13,Et.EAN_8,Et.PDF_417,Et.RSS_14,Et.RSS_EXPANDED,Et.UPC_A,Et.UPC_E,Et.UPC_EAN_EXTENSION];if(!t||typeof t=="boolean"||!t.formatsToSupport)return n;if(!Array.isArray(t.formatsToSupport))throw"configOrVerbosityFlag.formatsToSupport should be undefined or an array.";if(t.formatsToSupport.length===0)throw"Atleast 1 formatsToSupport is needed.";for(var o=[],s=0,i=t.formatsToSupport;s<i.length;s++){var l=i[s];Jte(l)?o.push(l):this.logger.warn("Invalid format: "+l+" passed in config, ignoring.")}if(o.length===0)throw"None of formatsToSupport match supported values.";return o},e.prototype.validateQrboxSize=function(t,n,o){var s=this,i=o.qrbox;this.validateQrboxConfig(i);var l=this.toQrdimensions(t,n,i),c=function(p){if(p<sr.MIN_QR_BOX_SIZE)throw"minimum size of 'config.qrbox' dimension value is"+(" "+sr.MIN_QR_BOX_SIZE+"px.")},f=function(p){return p>t&&(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+PHBhdGggZD0iTTEwNS4wODQgMzguMjcxaDE2My43Njh2MjBIMTA1LjA4NHoiLz48cGF0aCBkPSJNMzExLjU5NiAxOTAuMTg5Yy03LjQ0MS05LjM0Ny0xOC40MDMtMTYuMjA2LTMyLjc0My0yMC41MjJWMzBjMC0xNi41NDItMTMuNDU4LTMwLTMwLTMwSDEyNS4wODRjLTE2LjU0MiAwLTMwIDEzLjQ1OC0zMCAzMHYxMjAuMTQzaC04LjI5NmMtMTYuNTQyIDAtMzAgMTMuNDU4LTMwIDMwdjEuMzMzYTI5LjgwNCAyOS44MDQgMCAwIDAgNC42MDMgMTUuOTM5Yy03LjM0IDUuNDc0LTEyLjEwMyAxNC4yMjEtMTIuMTAzIDI0LjA2MXYxLjMzM2MwIDkuODQgNC43NjMgMTguNTg3IDEyLjEwMyAyNC4wNjJhMjkuODEgMjkuODEgMCAwIDAtNC42MDMgMTUuOTM4djEuMzMzYzAgMTYuNTQyIDEzLjQ1OCAzMCAzMCAzMGg4LjMyNGMuNDI3IDExLjYzMSA3LjUwMyAyMS41ODcgMTcuNTM0IDI2LjE3Ny45MzEgMTAuNTAzIDQuMDg0IDMwLjE4NyAxNC43NjggNDUuNTM3YTkuOTg4IDkuOTg4IDAgMCAwIDguMjE2IDQuMjg4IDkuOTU4IDkuOTU4IDAgMCAwIDUuNzA0LTEuNzkzYzQuNTMzLTMuMTU1IDUuNjUtOS4zODggMi40OTUtMTMuOTIxLTYuNzk4LTkuNzY3LTkuNjAyLTIyLjYwOC0xMC43Ni0zMS40aDgyLjY4NWMuMjcyLjQxNC41NDUuODE4LjgxNSAxLjIxIDMuMTQyIDQuNTQxIDkuMzcyIDUuNjc5IDEzLjkxMyAyLjUzNCA0LjU0Mi0zLjE0MiA1LjY3Ny05LjM3MSAyLjUzNS0xMy45MTMtMTEuOTE5LTE3LjIyOS04Ljc4Ny0zNS44ODQgOS41ODEtNTcuMDEyIDMuMDY3LTIuNjUyIDEyLjMwNy0xMS43MzIgMTEuMjE3LTI0LjAzMy0uODI4LTkuMzQzLTcuMTA5LTE3LjE5NC0xOC42NjktMjMuMzM3YTkuODU3IDkuODU3IDAgMCAwLTEuMDYxLS40ODZjLS40NjYtLjE4Mi0xMS40MDMtNC41NzktOS43NDEtMTUuNzA2IDEuMDA3LTYuNzM3IDE0Ljc2OC04LjI3MyAyMy43NjYtNy42NjYgMjMuMTU2IDEuNTY5IDM5LjY5OCA3LjgwMyA0Ny44MzYgMTguMDI2IDUuNzUyIDcuMjI1IDcuNjA3IDE2LjYyMyA1LjY3MyAyOC43MzMtLjQxMyAyLjU4NS0uODI0IDUuMjQxLTEuMjQ1IDcuOTU5LTUuNzU2IDM3LjE5NC0xMi45MTkgODMuNDgzLTQ5Ljg3IDExNC42NjEtNC4yMjEgMy41NjEtNC43NTYgOS44Ny0xLjE5NCAxNC4wOTJhOS45OCA5Ljk4IDAgMCAwIDcuNjQ4IDMuNTUxIDkuOTU1IDkuOTU1IDAgMCAwIDYuNDQ0LTIuMzU4YzQyLjY3Mi0zNi4wMDUgNTAuODAyLTg4LjUzMyA1Ni43MzctMTI2Ljg4OC40MTUtMi42ODQuODIxLTUuMzA5IDEuMjI5LTcuODYzIDIuODM0LTE3LjcyMS0uNDU1LTMyLjY0MS05Ljc3Mi00NC4zNDV6bS0yMzIuMzA4IDQyLjYyYy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi0xLjMzM2MwLTUuNTE0IDQuNDg2LTEwIDEwLTEwaDE1djIxLjMzM2gtMTV6bS0yLjUtNTIuNjY2YzAtNS41MTQgNC40ODYtMTAgMTAtMTBoNy41djIxLjMzM2gtNy41Yy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi0xLjMzM3ptMTcuNSA5My45OTloLTcuNWMtNS41MTQgMC0xMC00LjQ4Ni0xMC0xMHYtMS4zMzNjMC01LjUxNCA0LjQ4Ni0xMCAxMC0xMGg3LjV2MjEuMzMzem0zMC43OTYgMjguODg3Yy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi04LjI3MWg5MS40NTdjLS44NTEgNi42NjgtLjQzNyAxMi43ODcuNzMxIDE4LjI3MWgtODIuMTg4em03OS40ODItMTEzLjY5OGMtMy4xMjQgMjAuOTA2IDEyLjQyNyAzMy4xODQgMjEuNjI1IDM3LjA0IDUuNDQxIDIuOTY4IDcuNTUxIDUuNjQ3IDcuNzAxIDcuMTg4LjIxIDIuMTUtMi41NTMgNS42ODQtNC40NzcgNy4yNTEtLjQ4Mi4zNzgtLjkyOS44LTEuMzM1IDEuMjYxLTYuOTg3IDcuOTM2LTExLjk4MiAxNS41Mi0xNS40MzIgMjIuNjg4aC05Ny41NjRWMzBjMC01LjUxNCA0LjQ4Ni0xMCAxMC0xMGgxMjMuNzY5YzUuNTE0IDAgMTAgNC40ODYgMTAgMTB2MTM1LjU3OWMtMy4wMzItLjM4MS02LjE1LS42OTQtOS4zODktLjkxNC0yNS4xNTktMS42OTQtNDIuMzcgNy43NDgtNDQuODk4IDI0LjY2NnoiLz48cGF0aCBkPSJNMTc5LjEyOSA4My4xNjdoLTI0LjA2YTUgNSAwIDAgMC01IDV2MjQuMDYxYTUgNSAwIDAgMCA1IDVoMjQuMDZhNSA1IDAgMCAwIDUtNVY4OC4xNjdhNSA1IDAgMCAwLTUtNXpNMTcyLjYyOSAxNDIuODZoLTEyLjU2VjEzMC44YTUgNSAwIDEgMC0xMCAwdjE3LjA2MWE1IDUgMCAwIDAgNSA1aDE3LjU2YTUgNSAwIDEgMCAwLTEwLjAwMXpNMjE2LjU2OCA4My4xNjdoLTI0LjA2YTUgNSAwIDAgMC01IDV2MjQuMDYxYTUgNSAwIDAgMCA1IDVoMjQuMDZhNSA1IDAgMCAwIDUtNVY4OC4xNjdhNSA1IDAgMCAwLTUtNXptLTUgMjQuMDYxaC0xNC4wNlY5My4xNjdoMTQuMDZ2MTQuMDYxek0yMTEuNjY5IDEyNS45MzZIMTk3LjQxYTUgNSAwIDAgMC01IDV2MTQuMjU3YTUgNSAwIDAgMCA1IDVoMTQuMjU5YTUgNSAwIDAgMCA1LTV2LTE0LjI1N2E1IDUgMCAwIDAtNS01eiIvPjwvc3ZnPg==",hne=f1+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1OS4wMTggNTkuMDE4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OS4wMTggNTkuMDE4IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJtNTguNzQxIDU0LjgwOS01Ljk2OS02LjI0NGExMC43NCAxMC43NCAwIDAgMCAyLjgyLTcuMjVjMC01Ljk1My00Ljg0My0xMC43OTYtMTAuNzk2LTEwLjc5NlMzNCAzNS4zNjEgMzQgNDEuMzE0IDM4Ljg0MyA1Mi4xMSA0NC43OTYgNTIuMTFjMi40NDEgMCA0LjY4OC0uODI0IDYuNDk5LTIuMTk2bDYuMDAxIDYuMjc3YS45OTguOTk4IDAgMCAwIDEuNDE0LjAzMiAxIDEgMCAwIDAgLjAzMS0xLjQxNHpNMzYgNDEuMzE0YzAtNC44NSAzLjk0Ni04Ljc5NiA4Ljc5Ni04Ljc5NnM4Ljc5NiAzLjk0NiA4Ljc5NiA4Ljc5Ni0zLjk0NiA4Ljc5Ni04Ljc5NiA4Ljc5NlMzNiA0Ni4xNjQgMzYgNDEuMzE0ek0xMC40MzEgMTYuMDg4YzAgMy4wNyAyLjQ5OCA1LjU2OCA1LjU2OSA1LjU2OHM1LjU2OS0yLjQ5OCA1LjU2OS01LjU2OGMwLTMuMDcxLTIuNDk4LTUuNTY5LTUuNTY5LTUuNTY5cy01LjU2OSAyLjQ5OC01LjU2OSA1LjU2OXptOS4xMzggMGMwIDEuOTY4LTEuNjAyIDMuNTY4LTMuNTY5IDMuNTY4cy0zLjU2OS0xLjYwMS0zLjU2OS0zLjU2OCAxLjYwMi0zLjU2OSAzLjU2OS0zLjU2OSAzLjU2OSAxLjYwMSAzLjU2OSAzLjU2OXoiLz48cGF0aCBkPSJtMzAuODgyIDI4Ljk4NyA5LjE4LTEwLjA1NCAxMS4yNjIgMTAuMzIzYTEgMSAwIDAgMCAxLjM1MS0xLjQ3NWwtMTItMTFhMSAxIDAgMCAwLTEuNDE0LjA2M2wtOS43OTQgMTAuNzI3LTQuNzQzLTQuNzQzYTEuMDAzIDEuMDAzIDAgMCAwLTEuMzY4LS4wNDRMNi4zMzkgMzcuNzY4YTEgMSAwIDEgMCAxLjMyMiAxLjUwMWwxNi4zMTMtMTQuMzYyIDcuMzE5IDcuMzE4YS45OTkuOTk5IDAgMSAwIDEuNDE0LTEuNDE0bC0xLjgyNS0xLjgyNHoiLz48cGF0aCBkPSJNMzAgNDYuNTE4SDJ2LTQyaDU0djI4YTEgMSAwIDEgMCAyIDB2LTI5YTEgMSAwIDAgMC0xLTFIMWExIDEgMCAwIDAtMSAxdjQ0YTEgMSAwIDAgMCAxIDFoMjlhMSAxIDAgMSAwIDAtMnoiLz48L3N2Zz4=",Ly=f1+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NjAgNDYwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0NjAgNDYwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNMjMwIDBDMTAyLjk3NSAwIDAgMTAyLjk3NSAwIDIzMHMxMDIuOTc1IDIzMCAyMzAgMjMwIDIzMC0xMDIuOTc0IDIzMC0yMzBTMzU3LjAyNSAwIDIzMCAwem0zOC4zMzMgMzc3LjM2YzAgOC42NzYtNy4wMzQgMTUuNzEtMTUuNzEgMTUuNzFoLTQzLjEwMWMtOC42NzYgMC0xNS43MS03LjAzNC0xNS43MS0xNS43MVYyMDIuNDc3YzAtOC42NzYgNy4wMzMtMTUuNzEgMTUuNzEtMTUuNzFoNDMuMTAxYzguNjc2IDAgMTUuNzEgNy4wMzMgMTUuNzEgMTUuNzFWMzc3LjM2ek0yMzAgMTU3Yy0yMS41MzkgMC0zOS0xNy40NjEtMzktMzlzMTcuNDYxLTM5IDM5LTM5IDM5IDE3LjQ2MSAzOSAzOS0xNy40NjEgMzktMzkgMzl6Ii8+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;t<n.length;t++){var o=n[t];if(e.isCameraScanType(o))return!0}return!1},e.isCameraScanType=function(t){return t===Zs.SCAN_TYPE_CAMERA},e.isFileScanType=function(t){return t===Zs.SCAN_TYPE_FILE},e.prototype.validateAndReturnScanTypes=function(t){if(!t||t.length===0)return Gr.DEFAULT_SUPPORTED_SCAN_TYPE;var n=Gr.DEFAULT_SUPPORTED_SCAN_TYPE.length;if(t.length>n)throw"Max "+n+" values expected for supportedScanTypes";for(var o=0,s=t;o<s.length;o++){var i=s[o];if(!Gr.DEFAULT_SUPPORTED_SCAN_TYPE.includes(i))throw"Unsupported scan type "+i}return t},e}(),ir;(function(e){e[e.STATUS_DEFAULT=0]="STATUS_DEFAULT",e[e.STATUS_SUCCESS=1]="STATUS_SUCCESS",e[e.STATUS_WARNING=2]="STATUS_WARNING",e[e.STATUS_REQUESTING_PERMISSION=3]="STATUS_REQUESTING_PERMISSION"})(ir||(ir={}));function bne(e){return{fps:e.fps,qrbox:e.qrbox,aspectRatio:e.aspectRatio,disableFlip:e.disableFlip,videoConstraints:e.videoConstraints}}function wne(e,t){return{formatsToSupport:e.formatsToSupport,experimentalFeatures:e.experimentalFeatures,verbose:t}}var Cne=function(){function e(t,n,o){if(this.lastMatchFound=null,this.cameraScanImage=null,this.fileScanImage=null,this.elementId=t,this.config=this.createConfig(n),this.verbose=o===!0,!document.getElementById(t))throw"HTML Element with id="+t+" not found";this.scanTypeSelector=new rs(this.config.supportedScanTypes),this.currentScanType=this.scanTypeSelector.getDefaultScanType(),this.sectionSwapAllowed=!0,this.logger=new qS(this.verbose),this.persistedDataManager=new gne,n.rememberLastUsedCamera!==!0&&this.persistedDataManager.reset()}return e.prototype.render=function(t,n){var o=this;this.lastMatchFound=null,this.qrCodeSuccessCallback=function(i,l){if(t)t(i,l);else{if(o.lastMatchFound===i)return;o.lastMatchFound=i,o.setHeaderMessage(Ar.lastMatch(i),ir.STATUS_SUCCESS)}},this.qrCodeErrorCallback=function(i,l){n&&n(i,l)};var s=document.getElementById(this.elementId);if(!s)throw"HTML Element with id="+this.elementId+" not found";s.innerHTML="",this.createBasicLayout(s),this.html5Qrcode=new Ry(this.getScanRegionId(),wne(this.config,this.verbose))},e.prototype.pause=function(t){if(!this.html5Qrcode)throw"Code scanner not initialized.";(Aa(t)||t!==!0)&&(t=!1),this.html5Qrcode.pause(t)},e.prototype.resume=function(){if(!this.html5Qrcode)throw"Code scanner not initialized.";this.html5Qrcode.resume()},e.prototype.getState=function(){if(!this.html5Qrcode)throw"Code scanner not initialized.";return this.html5Qrcode.getState()},e.prototype.clear=function(){var t=this,n=function(){var o=document.getElementById(t.elementId);o&&(o.innerHTML="",t.resetBasicLayout(o))};return this.html5Qrcode?new Promise(function(o,s){if(!t.html5Qrcode){o();return}t.html5Qrcode.isScanning?t.html5Qrcode.stop().then(function(i){if(!t.html5Qrcode){o();return}t.html5Qrcode.clear(),n(),o()}).catch(function(i){t.verbose&&t.logger.logError("Unable to stop qrcode scanner",i),s(i)}):(t.html5Qrcode.clear(),n())}):Promise.resolve()},e.prototype.getRunningTrackCapabilities=function(){if(!this.html5Qrcode)throw"Code scanner not initialized.";return this.html5Qrcode.getRunningTrackCapabilities()},e.prototype.applyVideoConstraints=function(t){if(!this.html5Qrcode)throw"Code scanner not initialized.";return this.html5Qrcode.applyVideoConstraints(t)},e.prototype.createConfig=function(t){return t?(t.fps||(t.fps=Gr.SCAN_DEFAULT_FPS),t.rememberLastUsedCamera!==!Gr.DEFAULT_REMEMBER_LAST_CAMERA_USED&&(t.rememberLastUsedCamera=Gr.DEFAULT_REMEMBER_LAST_CAMERA_USED),t):{fps:Gr.SCAN_DEFAULT_FPS,rememberLastUsedCamera:Gr.DEFAULT_REMEMBER_LAST_CAMERA_USED,supportedScanTypes:Gr.DEFAULT_SUPPORTED_SCAN_TYPE}},e.prototype.createBasicLayout=function(t){t.style.position="relative",t.style.padding="0px",t.style.border="1px solid silver",this.createHeader(t);var n=document.createElement("div"),o=this.getScanRegionId();n.id=o,n.style.width="100%",n.style.minHeight="100px",n.style.textAlign="center",t.appendChild(n),rs.isCameraScanType(this.currentScanType)?this.insertCameraScanImageToScanRegion():this.insertFileScanImageToScanRegion();var s=document.createElement("div"),i=this.getDashboardId();s.id=i,s.style.width="100%",t.appendChild(s),this.setupInitialDashboard(s)},e.prototype.resetBasicLayout=function(t){t.style.border="none"},e.prototype.setupInitialDashboard=function(t){this.createSection(t),this.createSectionControlPanel(),this.scanTypeSelector.hasMoreThanOneScanType()&&this.createSectionSwap()},e.prototype.createHeader=function(t){var n=document.createElement("div");n.style.textAlign="left",n.style.margin="0px",t.appendChild(n);var o=new yne;o.renderInto(n);var s=document.createElement("div");s.id=this.getHeaderMessageContainerId(),s.style.display="none",s.style.textAlign="center",s.style.fontSize="14px",s.style.padding="2px 10px",s.style.margin="4px",s.style.borderTop="1px solid #f6f6f6",n.appendChild(s)},e.prototype.createSection=function(t){var n=document.createElement("div");n.id=this.getDashboardSectionId(),n.style.width="100%",n.style.padding="10px 0px 10px 0px",n.style.textAlign="left",t.appendChild(n)},e.prototype.createCameraListUi=function(t,n,o){var s=this;s.setHeaderMessage(Ar.cameraPermissionRequesting());var i=function(){o||s.createPermissionButton(t,n)};Ry.getCameras().then(function(l){s.persistedDataManager.setHasPermission(!0),s.resetHeaderMessage(),l&&l.length>0?(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<y.length;m++){var v=y[m],w=v.id,E=v.label==null?w:v.label,I=document.createElement("option");I.value=w,I.innerText=E,p.push(I),c.appendChild(I)}i.appendChild(c),s.appendChild(i);var S=document.createElement("span"),T=document.createElement("button");T.innerText=Ar.scanButtonStartScanningText(),S.appendChild(T);var _=document.createElement("button");_.innerText=Ar.scanButtonStopScanningText(),_.style.display="none",_.disabled=!0,S.appendChild(_),s.appendChild(S);var N=function(B){B||(T.style.display="none"),T.innerText=Ar.scanButtonStartScanningText(),T.style.opacity="1",T.disabled=!1,B&&(T.style.display="inline-block")};if(T.addEventListener("click",function(B){T.innerText=Ar.scanButtonScanningStarting(),c.disabled=!0,T.disabled=!0,T.style.opacity="0.5",n.scanTypeSelector.hasMoreThanOneScanType()&&o.showHideScanTypeSwapLink(!1),o.resetHeaderMessage();var Y=c.value;o.persistedDataManager.setLastUsedCameraId(Y),o.html5Qrcode.start(Y,bne(o.config),o.qrCodeSuccessCallback,o.qrCodeErrorCallback).then(function(X){_.disabled=!1,_.style.display="inline-block",N(!1)}).catch(function(X){o.showHideScanTypeSwapLink(!0),c.disabled=!1,N(!0),o.setHeaderMessage(X,ir.STATUS_WARNING)})}),l===1&&T.click(),_.addEventListener("click",function(B){if(!o.html5Qrcode)throw"html5Qrcode not defined";_.disabled=!0,o.html5Qrcode.stop().then(function(Y){n.scanTypeSelector.hasMoreThanOneScanType()&&o.showHideScanTypeSwapLink(!0),c.disabled=!1,T.disabled=!1,_.style.display="none",T.style.display="inline-block",o.insertCameraScanImageToScanRegion()}).catch(function(Y){_.disabled=!1,o.setHeaderMessage(Y,ir.STATUS_WARNING)})}),o.persistedDataManager.getLastUsedCameraId()){for(var O=o.persistedDataManager.getLastUsedCameraId(),D=!1,x=0,R=p;x<R.length;x++){var I=R[x];if(I.value===O){D=!0;break}}D?(c.value=O,T.click()):o.persistedDataManager.resetLastUsedCameraId()}},e.prototype.createSectionSwap=function(){var t=this,n=Ar.textIfCameraScanSelected(),o=Ar.textIfFileScanSelected(),s=document.getElementById(this.getDashboardSectionId()),i=document.createElement("div");i.style.textAlign="center";var l=document.createElement("a");l.style.textDecoration="underline",l.id=this.getDashboardSectionSwapLinkId(),l.innerText=rs.isCameraScanType(this.currentScanType)?n:o,l.addEventListener("click",function(){if(!t.sectionSwapAllowed){t.verbose&&t.logger.logError("Section swap called when not allowed");return}t.resetHeaderMessage(),t.getFileScanInput().value="",t.sectionSwapAllowed=!1,rs.isCameraScanType(t.currentScanType)?(t.clearScanRegion(),t.getFileScanInput().disabled=!1,t.getCameraScanRegion().style.display="none",t.getFileScanRegion().style.display="block",l.innerText=o,t.currentScanType=Zs.SCAN_TYPE_FILE,t.insertFileScanImageToScanRegion()):(t.clearScanRegion(),t.getFileScanInput().disabled=!0,t.getCameraScanRegion().style.display="block",t.getFileScanRegion().style.display="none",l.innerText=n,t.currentScanType=Zs.SCAN_TYPE_CAMERA,t.insertCameraScanImageToScanRegion(),t.startCameraScanIfPermissionExistsOnSwap()),t.sectionSwapAllowed=!0}),i.appendChild(l),s.appendChild(i)},e.prototype.startCameraScanIfPermissionExistsOnSwap=function(){var t=this,n=this;if(this.persistedDataManager.hasCameraPermissions()){By.hasCameraPermissions().then(function(o){if(o){var s=document.getElementById(n.getCameraPermissionButtonId());if(!s)throw t.logger.logError("Permission button not found, fail;"),"Permission button not found";s.click()}else n.persistedDataManager.setHasPermission(!1)}).catch(function(o){n.persistedDataManager.setHasPermission(!1)});return}},e.prototype.resetHeaderMessage=function(){var t=document.getElementById(this.getHeaderMessageContainerId());t.style.display="none"},e.prototype.setHeaderMessage=function(t,n){n||(n=ir.STATUS_DEFAULT);var o=this.getHeaderMessageDiv();switch(o.innerText=t,o.style.display="block",n){case ir.STATUS_SUCCESS:o.style.background="#6aaf5042",o.style.color="#477735";break;case ir.STATUS_WARNING:o.style.background="#cb243124",o.style.color="#cb2431";break;case ir.STATUS_DEFAULT:default:o.style.background="#00000000",o.style.color="rgb(17, 17, 17)";break}},e.prototype.showHideScanTypeSwapLink=function(t){t!==!0&&(t=!1),this.sectionSwapAllowed=t,this.getDashboardSectionSwapLink().style.display=t?"inline-block":"none"},e.prototype.insertCameraScanImageToScanRegion=function(){var t=this,n=document.getElementById(this.getScanRegionId());if(this.cameraScanImage){n.innerHTML="<br>",n.appendChild(this.cameraScanImage);return}this.cameraScanImage=new Image,this.cameraScanImage.onload=function(o){n.innerHTML="<br>",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="<br>",n.appendChild(this.fileScanImage);return}this.fileScanImage=new Image,this.fileScanImage.onload=function(o){n.innerHTML="<br>",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();
|