@dcodegroup-au/dsg-vue 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dsg-vue.cjs +1 -1
- package/dist/dsg-vue.esm.js +18 -12
- package/package.json +1 -1
package/dist/dsg-vue.cjs
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</clipPath>
|
|
10
10
|
</defs>
|
|
11
11
|
</svg>
|
|
12
|
-
`,io=["href","title"],ao={class:"dsg-avatar--image-wrapper",tabindex:"0",ref:"avatarImageWrapperEl"},oo=["src","alt"],so={key:1,class:"dsg-avatar--initials"},lo={class:"dsg-avatar--status"},uo={key:0,class:"dsg-avatar--activity"},fo=["innerHTML"],co={key:2,class:"dsg-avatar--logo"},ho=["src","alt"],vo={key:0,class:"dsg-avatar--info"},po={class:"dsg-avatar--title"},go={class:"dsg-avatar--subtext"},or=f.defineComponent({__name:"DsgAvatar",props:{profileUri:{default:""},fullName:{default:""},size:{default:"md"},theme:{default:"activity"},isOnline:{type:Boolean,default:!1},uri:{default:()=>{}},classes:{default:""},companyLogoUri:{default:()=>{}},preventDefault:{type:Boolean,default:!1},title:{default:""},subText:{default:""},noFocus:{type:Boolean,default:!1}},emits:["avatar-clicked","before-change-status","after-change-status"],setup(t,{expose:e,emit:r}){const n=["dsg-avatar",`dsg-avatar--${t.size}`,`dsg-avatar--${t.theme}`,`dsg-avatar--${t.isOnline?"online":"offline"}`,`dsg-avatar--${t.title?.length?"has-info":"no-info"}`,`dsg-avatar--${t.uri?"has-link":"no-link"}`,`dsg-avatar--${t.noFocus?"no-focus":"focus"}`,`dsg-avatar--${["profile-photo","profile-photo-verified"].indexOf(t.theme)!==-1?"profile-photo":"non-profile-photo"}`,t.classes].join(" ");["profile-photo","profile-photo-verified"].indexOf(t.theme)!==-1&&(["sm","md","lg"].indexOf(t.size)===-1&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'profile-photo' theme only supports the 'sm', 'md', and 'lg' sizes."),(t.fullName||t.title||t.subText)&&new L.DsgWarning("DsgAvatar: The 'profile-photo' theme will not display the 'title' or 'subText' props.")),t.theme==="logo"&&!t.companyLogoUri&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'logo' theme requires a 'companyLogoUri' prop."),["activity","verified","logo"].indexOf(t.theme)!==-1&&t.title?.length&&t.subText?.length&&["xs","sm","md","lg","xl","2xl"].indexOf(t.size)===-1&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'activity', 'verified', and 'logo' themes only support the 'xs', 'sm', 'md', 'lg', and 'xl' sizes when 'title' and 'subText' are provided."),t.theme==="tile"&&!t.title?.length&&!t.fullName&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'tile' theme requires either 'title' or 'fullName' prop."),t.size==="xxs"&&(t.title?.length||t.subText?.length)&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'xxs' size does not support the 'title' or 'subText' props.");const i=v=>{const h=v.split(" ");return(h[0].charAt(0)+h[h.length-1].charAt(0)).toUpperCase()},a=()=>t.fullName?"Avatar of "+t.fullName:"Avatar",o=r,s=f.ref(!1),l=v=>{o("before-change-status",s.value,v),s.value=v,o("after-change-status",s.value)},u=f.useTemplateRef("avatarImageWrapperEl"),c=v=>{t.preventDefault||(o("avatar-clicked",v),u.value&&!t.uri&&u.value.focus())};return e({setUserActiveStatus:l,toggleFocus:v=>{u.value&&(v?u.value.focus():u.value.blur())}}),(v,h)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(n))},[f.createElementVNode("a",{class:"dsg-avatar--link",href:v.uri,title:a(),target:"_blank",ref:"avatarLink",onClick:c},[f.createElementVNode("div",ao,[f.renderSlot(v.$slots,"dsg-avatar--background",{},()=>[v.profileUri?(f.openBlock(),f.createElementBlock("img",{key:0,class:"dsg-avatar--profile-image",src:v.profileUri,alt:a()},null,8,oo)):f.createCommentVNode("",!0),!v.profileUri&&v.fullName?(f.openBlock(),f.createElementBlock("span",so,f.toDisplayString(i(v.fullName)),1)):f.createCommentVNode("",!0),!v.profileUri&&!v.fullName?(f.openBlock(),f.createBlock(L._sfc_main,{key:2,class:"dsg-avatar--user-icon",icon:"user-01",color:f.unref(Za.ColoursConfig).gray[600],size:v.size},null,8,["color","size"])):f.createCommentVNode("",!0)]),["tile"].indexOf(v.theme)===-1?f.renderSlot(v.$slots,"dsg-avatar--status",{key:0},()=>[f.createElementVNode("div",lo,[v.theme==="activity"&&v.isOnline?(f.openBlock(),f.createElementBlock("span",uo)):f.createCommentVNode("",!0),["verified","profile-photo-verified"].indexOf(v.theme)!==-1?(f.openBlock(),f.createElementBlock("span",{key:1,class:"dsg-avatar--verified",innerHTML:f.unref(no)},null,8,fo)):f.createCommentVNode("",!0),v.theme==="logo"?(f.openBlock(),f.createElementBlock("span",co,[f.createElementVNode("img",{src:v.companyLogoUri,alt:a(),class:"dsg-avatar--company-logo"},null,8,ho)])):f.createCommentVNode("",!0)])]):f.createCommentVNode("",!0)],512),v.title?.length||v.theme==="tile"&&(v.title?.length||v.fullName)?(f.openBlock(),f.createElementBlock("div",vo,[v.title?.length||v.theme==="tile"&&(v.title?.length||v.fullName)?f.renderSlot(v.$slots,"dsg-avatar--title",{key:0},()=>[f.createElementVNode("h3",po,f.toDisplayString(v.title?.length?v.title:v.fullName),1)]):f.createCommentVNode("",!0),v.subText?.length?f.renderSlot(v.$slots,"dsg-avatar--subtext",{key:1},()=>[f.createElementVNode("p",go,f.toDisplayString(v.subText),1)]):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)],8,io)],2))}}),dr={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Nt={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Ce={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},xo={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},yo={dangerouslyHTMLString:!1,multiple:!0,position:dr.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},mo={rtl:!1,newestOnTop:!1,toastClassName:""},zi={...yo,...mo};Ce.DEFAULT;var K=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(K||{}),xn=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(xn||{});const wo={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},_o={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},Eo={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},Ao={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},qn="Toastify--animate Toastify__none-enter";function Wi(t,e=!1){var r;let n=wo;if(!t||typeof t=="string")switch(t){case"flip":n=Ao;break;case"zoom":n=Eo;break;case"slide":n=_o;break}else n=t;if(e)n.enter=qn;else if(n.enter===qn){const i=(r=n.exit.split("__")[1])==null?void 0:r.split("-")[0];n.enter=`Toastify--animate Toastify__${i}-enter`}return n}function Co(t){return t.containerId||String(t.position)}const Vr="will-unmount";function bo(t=dr.TOP_RIGHT){return!!document.querySelector(`.${K.CSS_NAMESPACE}__toast-container--${t}`)}function So(t=dr.TOP_RIGHT){return`${K.CSS_NAMESPACE}__toast-container--${t}`}function Io(t,e,r=!1){const n=[`${K.CSS_NAMESPACE}__toast-container`,`${K.CSS_NAMESPACE}__toast-container--${t}`,r?`${K.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return It(e)?e({position:t,rtl:r,defaultClassName:n}):`${n} ${e||""}`}function Oo(t){var e;const{position:r,containerClassName:n,rtl:i=!1,style:a={}}=t,o=K.CSS_NAMESPACE,s=So(r),l=document.querySelector(`.${o}`),u=document.querySelector(`.${s}`),c=!!u&&!((e=u.className)!=null&&e.includes(Vr)),d=l||document.createElement("div"),v=document.createElement("div");v.className=Io(r,n,i),v.dataset.testid=`${K.CSS_NAMESPACE}__toast-container--${r}`,v.id=Co(t);for(const h in a)if(Object.prototype.hasOwnProperty.call(a,h)){const p=a[h];v.style[h]=p}return l||(d.className=K.CSS_NAMESPACE,document.body.appendChild(d)),c||d.appendChild(v),v}function yn(t){var e,r,n;const i=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((r=t.target)==null?void 0:r.id),a=document.getElementById(i);a&&a.removeEventListener("animationend",yn,!1);try{sr[i].unmount(),(n=document.getElementById(i))==null||n.remove(),delete sr[i],delete xe[i]}catch{}}const sr=f.reactive({});function To(t,e){const r=document.getElementById(String(e));r&&(sr[r.id]=t)}function mn(t,e=!0){const r=String(t);if(!sr[r])return;const n=document.getElementById(r);n&&n.classList.add(Vr),e?(Do(t),n&&n.addEventListener("animationend",yn,!1)):yn(r),Ke.items=Ke.items.filter(i=>i.containerId!==t)}function No(t){for(const e in sr)mn(e,t);Ke.items=[]}function Xi(t,e){const r=document.getElementById(t.toastId);if(r){let n=t;n={...n,...Wi(n.transition)};const i=n.appendPosition?`${n.exit}--${n.position}`:n.exit;r.className+=` ${i}`,e&&e(r)}}function Do(t){for(const e in xe)if(e===t)for(const r of xe[e]||[])Xi(r)}function Bo(t){const e=Dt().find(r=>r.toastId===t);return e?.containerId}function Vn(t){return document.getElementById(t)}function Ro(t){const e=Vn(t.containerId);return e&&e.classList.contains(Vr)}function Qn(t){var e;const r=f.isVNode(t.content)?f.toRaw(t.content.props):null;return r??f.toRaw((e=t.data)!=null?e:{})}function Po(t){return t?Ke.items.filter(e=>e.containerId===t).length>0:Ke.items.length>0}function ko(){if(Ke.items.length>0){const t=Ke.items.shift();br(t?.toastContent,t?.toastProps)}}const xe=f.reactive({}),Ke=f.reactive({items:[]});function Dt(){const t=f.toRaw(xe);return Object.values(t).reduce((e,r)=>[...e,...r],[])}function Mo(t){return Dt().find(e=>e.toastId===t)}function br(t,e={}){if(Ro(e)){const r=Vn(e.containerId);r&&r.addEventListener("animationend",wn.bind(null,t,e),!1)}else wn(t,e)}function wn(t,e={}){const r=Vn(e.containerId);r&&r.removeEventListener("animationend",wn.bind(null,t,e),!1);const n=xe[e.containerId]||[],i=n.length>0;if(!i&&!bo(e.position)){const a=Oo(e),o=f.createApp(rs,e);e.useHandler&&e.useHandler(o),o.mount(a),To(o,a.id)}i&&!e.updateId&&(e.position=n[0].position),f.nextTick(()=>{e.updateId?Re.update(e):Re.add(t,e)})}const Re={add(t,e){const{containerId:r=""}=e;r&&(xe[r]=xe[r]||[],xe[r].find(n=>n.toastId===e.toastId)||setTimeout(()=>{var n,i;e.newestOnTop?(n=xe[r])==null||n.unshift(e):(i=xe[r])==null||i.push(e),e.onOpen&&e.onOpen(Qn(e))},e.delay||0))},remove(t){if(t){const e=Bo(t);if(e){const r=xe[e];let n=r.find(i=>i.toastId===t);xe[e]=r.filter(i=>i.toastId!==t),!xe[e].length&&!Po(e)&&mn(e,!1),ko(),f.nextTick(()=>{n!=null&&n.onClose&&(n.onClose(Qn(n)),n=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){xe[e]=xe[e]||[];const r=xe[e].find(a=>a.toastId===t.toastId),n=r?.position!==t.position||r?.transition!==t.transition,i={...t,disabledEnterTransition:!n,updateId:void 0};Re.dismissForce(t?.toastId),setTimeout(()=>{ee(i.content,i)},t.delay||0)}},clear(t,e=!0){t?mn(t,e):No(e)},dismissCallback(t){var e;const r=(e=t.currentTarget)==null?void 0:e.id,n=document.getElementById(r);n&&(n.removeEventListener("animationend",Re.dismissCallback,!1),setTimeout(()=>{Re.remove(r)}))},dismiss(t){if(t){const e=Dt();for(const r of e)if(r.toastId===t){Xi(r,n=>{n.addEventListener("animationend",Re.dismissCallback,!1)});break}}},dismissForce(t){if(t){const e=Dt();for(const r of e)if(r.toastId===t){const n=document.getElementById(t);n&&(n.remove(),n.removeEventListener("animationend",Re.dismissCallback,!1),Re.remove(t));break}}}},Lo=f.reactive({useHandler:void 0}),ji=f.reactive({}),Rr=f.reactive({});function Yi(){return Math.random().toString(36).substring(2,9)}function Fo(t){return typeof t=="number"&&!isNaN(t)}function _n(t){return typeof t=="string"}function It(t){return typeof t=="function"}function Ur(...t){return f.mergeProps(...t)}function Sr(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof t?.type=="object")}function Vo(t={}){ji[`${K.CSS_NAMESPACE}-default-options`]=t}function Uo(){return ji[`${K.CSS_NAMESPACE}-default-options`]||zi}function $o(){const t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||t?"dark":"light"}var Ir=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(Ir||{});const Ki={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:dr.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:Nt.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:Ce.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},Ho={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Ce.DEFAULT},theme:{type:String,required:!1,default:Nt.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},Go=f.defineComponent({name:"ProgressBar",props:Ho,setup(t,{attrs:e}){const r=f.ref(),n=f.computed(()=>t.hide?"true":"false"),i=f.computed(()=>({...e.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),a=f.computed(()=>[`${K.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${K.CSS_NAMESPACE}__progress-bar--controlled`:`${K.CSS_NAMESPACE}__progress-bar--animated`,`${K.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${K.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${K.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),o=f.computed(()=>`${a.value} ${e?.class||""}`),s=()=>{r.value&&(r.value.onanimationend=null,r.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),s())},u=f.computed(()=>t.controlledProgress?null:l),c=f.computed(()=>t.controlledProgress?l:null);return f.watchEffect(()=>{r.value&&(s(),r.value.onanimationend=u.value,r.value.ontransitionend=c.value)}),()=>f.createVNode("div",{ref:r,role:"progressbar","aria-hidden":n.value,"aria-label":"notification timer",class:o.value,style:i.value},null)}}),zo=f.defineComponent({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:Nt.AUTO},type:{type:String,required:!1,default:Nt.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>f.createVNode("button",{class:`${K.CSS_NAMESPACE}__close-button ${K.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[f.createVNode("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[f.createVNode("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),$r=({theme:t,type:e,path:r,...n})=>f.createVNode("svg",f.mergeProps({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},n),[f.createVNode("path",{d:r},null)]);function Wo(t){return f.createVNode($r,f.mergeProps(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function Xo(t){return f.createVNode($r,f.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function jo(t){return f.createVNode($r,f.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function Yo(t){return f.createVNode($r,f.mergeProps(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function Ko(){return f.createVNode("div",{class:`${K.CSS_NAMESPACE}__spinner`},null)}const Or={info:Xo,warning:Wo,success:jo,error:Yo,spinner:Ko},Zo=t=>t in Or;function qo({theme:t,type:e,isLoading:r,icon:n}){let i;const a=!!r||e==="loading",o={theme:t,type:e};if(a&&(n===void 0||typeof n=="boolean"))return Or.spinner();if(n!==!1){if(Sr(n))i=f.toRaw(n);else if(It(n)){const s=n;o.type=a?"loading":e,i=s(o),i=!i&&a?Or.spinner():i}else f.isVNode(n)?i=f.cloneVNode(n,o):_n(n)||Fo(n)?i=n:Zo(e)&&(i=Or[e](o));return i}}const Qo=()=>{};function Jo(t,e,r=K.COLLAPSE_DURATION){const{scrollHeight:n,style:i}=t,a=r;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${a}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,a)})})}function es(t){const e=f.ref(!1),r=f.ref(!1),n=f.ref(!1),i=f.ref(Ir.Enter),a=f.reactive({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||K.COLLAPSE_DURATION}),o=a.done||Qo,s=f.computed(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=f.computed(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),u=f.computed(()=>t.pauseOnHover?{onMouseenter:w,onMouseleave:g}:{});function c(){const m=s.value.split(" ");v().addEventListener(xn.ENTRANCE_ANIMATION_END,g,{once:!0});const E=C=>{const b=v();C.target===b&&(b.dispatchEvent(new Event(xn.ENTRANCE_ANIMATION_END)),b.removeEventListener("animationend",E),b.removeEventListener("animationcancel",E),i.value===Ir.Enter&&C.type!=="animationcancel"&&b.classList.remove(...m))},y=()=>{const C=v();C.classList.add(...m),C.addEventListener("animationend",E),C.addEventListener("animationcancel",E)};t.pauseOnFocusLoss&&h(),y()}function d(){if(!v())return;const m=()=>{const y=v();y.removeEventListener("animationend",m),a.collapse?Jo(y,o,a.collapseDuration):o()},E=()=>{const y=v();i.value=Ir.Exit,y&&(y.className+=` ${l.value}`,y.addEventListener("animationend",m))};r.value||(n.value?m():setTimeout(E))}function v(){return t.toastRef.value}function h(){document.hasFocus()||w(),window.addEventListener("focus",g),window.addEventListener("blur",w)}function p(){window.removeEventListener("focus",g),window.removeEventListener("blur",w)}function g(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function w(){e.value=!1}function _(m){m&&(m.stopPropagation(),m.preventDefault()),r.value=!1}return f.watchEffect(d),f.watchEffect(()=>{const m=Dt();r.value=m.findIndex(E=>E.toastId===a.toastId)>-1}),f.watchEffect(()=>{t.isLoading!==void 0&&(t.loading.value?w():g())}),f.onMounted(c),f.onUnmounted(()=>{t.pauseOnFocusLoss&&p()}),{isIn:r,isRunning:e,hideToast:_,eventHandlers:u}}const ts=f.defineComponent({name:"ToastItem",inheritAttrs:!1,props:Ki,setup(t){const e=f.ref(),r=f.computed(()=>!!t.isLoading),n=f.computed(()=>t.progress!==void 0&&t.progress!==null),i=f.computed(()=>qo(t)),a=f.computed(()=>[`${K.CSS_NAMESPACE}__toast`,`${K.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${K.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${K.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:o,isIn:s,hideToast:l,eventHandlers:u}=es({toastRef:e,loading:r,done:()=>{Re.remove(t.toastId)},...Wi(t.transition,t.disabledEnterTransition),...t});return()=>f.createVNode("div",f.mergeProps({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:c=>{t.closeOnClick&&l(),t.onClick&&t.onClick(c)}},u.value),[f.createVNode("div",{role:t.role,"data-testid":"toast-body",class:`${K.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[i.value!=null&&f.createVNode("div",{"data-testid":`toast-icon-${t.type}`,class:[`${K.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${K.CSS_NAMESPACE}--animate-icon ${K.CSS_NAMESPACE}__zoom-enter`].join(" ")},[Sr(i.value)?f.h(f.toRaw(i.value),{theme:t.theme,type:t.type}):It(i.value)?i.value({theme:t.theme,type:t.type}):i.value]),f.createVNode("div",{"data-testid":"toast-content"},[Sr(t.content)?f.h(f.toRaw(t.content),{toastProps:f.toRaw(t),closeToast:l,data:t.data,...t.expandCustomProps?t.contentProps:{contentProps:t.contentProps||{}}}):It(t.content)?t.content({toastProps:f.toRaw(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?f.h("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&f.createVNode(zo,{theme:t.theme,closeToast:c=>{c.stopPropagation(),c.preventDefault(),l()}},null),Sr(t.closeButton)?f.h(f.toRaw(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):It(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,f.createVNode(Go,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:s.value,type:t.type,hide:t.hideProgressBar,isRunning:o.value,autoClose:t.autoClose,controlledProgress:n.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let ir=0;function Zi(){typeof window>"u"||(ir&&window.cancelAnimationFrame(ir),ir=window.requestAnimationFrame(Zi),Rr.lastUrl!==window.location.href&&(Rr.lastUrl=window.location.href,Re.clear()))}const rs=f.defineComponent({name:"ToastifyContainer",inheritAttrs:!1,props:Ki,setup(t){const e=f.computed(()=>t.containerId),r=f.computed(()=>xe[e.value]||[]),n=f.computed(()=>r.value.filter(i=>i.position===t.position));return f.onMounted(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(Zi)}),f.onUnmounted(()=>{typeof window<"u"&&ir&&(window.cancelAnimationFrame(ir),Rr.lastUrl="")}),()=>f.createVNode(f.Fragment,null,[n.value.map(i=>{const{toastId:a=""}=i;return f.createVNode(ts,f.mergeProps({key:a},i),null)})])}});let jr=!1;const qi={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function Qi(){const t=[];return Dt().forEach(e=>{const r=document.getElementById(e.containerId);r&&!r.classList.contains(Vr)&&t.push(e)}),t}function ns(t){const e=Qi().length,r=t??0;return r>0&&e+Ke.items.length>=r}function is(t){ns(t.limit)&&!t.updateId&&Ke.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function dt(t,e,r={}){if(jr)return;r=Ur(Uo(),{type:e},f.toRaw(r)),(!r.toastId||typeof r.toastId!="string"&&typeof r.toastId!="number")&&(r.toastId=Yi()),r={...r,...r.type==="loading"?qi:{},content:t,containerId:r.containerId||String(r.position)};const n=Number(r?.progress);return!isNaN(n)&&n<0&&(r.progress=0),n>1&&(r.progress=1),r.theme==="auto"&&(r.theme=$o()),is(r),Rr.lastUrl=window.location.href,r.multiple?Ke.items.length?r.updateId&&br(t,r):br(t,r):(jr=!0,ee.clearAll(void 0,!1),setTimeout(()=>{br(t,r)},0),setTimeout(()=>{jr=!1},390)),r.toastId}const ee=(t,e)=>dt(t,Ce.DEFAULT,e);ee.info=(t,e)=>dt(t,Ce.DEFAULT,{...e,type:Ce.INFO});ee.error=(t,e)=>dt(t,Ce.DEFAULT,{...e,type:Ce.ERROR});ee.warning=(t,e)=>dt(t,Ce.DEFAULT,{...e,type:Ce.WARNING});ee.warn=ee.warning;ee.success=(t,e)=>dt(t,Ce.DEFAULT,{...e,type:Ce.SUCCESS});ee.loading=(t,e)=>dt(t,Ce.DEFAULT,Ur(e,qi));ee.dark=(t,e)=>dt(t,Ce.DEFAULT,Ur(e,{theme:Nt.DARK}));ee.remove=t=>{t?Re.dismiss(t):Re.clear()};ee.clearAll=(t,e)=>{f.nextTick(()=>{Re.clear(t,e)})};ee.isActive=t=>{let e=!1;return e=Qi().findIndex(r=>r.toastId===t)>-1,e};ee.update=(t,e={})=>{setTimeout(()=>{const r=Mo(t);if(r){const n=f.toRaw(r),{content:i}=n,a={...n,...e,toastId:e.toastId||t,updateId:Yi()},o=a.render||i;delete a.render,dt(o,a.type,a)}},0)};ee.done=t=>{ee.update(t,{isLoading:!1,progress:1})};ee.promise=as;function as(t,{pending:e,error:r,success:n},i){var a,o,s;let l;const u={...i||{},autoClose:!1};e&&(l=_n(e)?ee.loading(e,u):ee.loading(e.render,{...u,...e}));const c={autoClose:(a=i?.autoClose)!=null?a:!0,closeOnClick:(o=i?.closeOnClick)!=null?o:!0,closeButton:(s=i?.autoClose)!=null?s:null,isLoading:void 0,draggable:null,delay:100},d=(h,p,g)=>{if(p==null){ee.remove(l);return}const w={type:h,...c,...i,data:g},_=_n(p)?{render:p}:p;return l?ee.update(l,{...w,..._,isLoading:!1}):ee(_.render,{...w,..._,isLoading:!1}),g},v=It(t)?t():t;return v.then(h=>{d("success",n,h)}).catch(h=>{d("error",r,h)}),v}ee.POSITION=dr;ee.THEME=Nt;ee.TYPE=Ce;ee.TRANSITIONS=xo;const os={install(t,e={}){Lo.useHandler=e.useHandler||(()=>{}),ss(e)}};typeof window<"u"&&(window.Vue3Toastify=os);function ss(t={}){const e=Ur(zi,t);Vo(e)}const ls={class:"dsg-alert__wrapper"},us=["innerHTML"],Ji=f.defineComponent({__name:"DsgAlertComponent",props:{contentProps:{default:()=>({title:"",message:"",type:"gray",hasCloseButton:!0,useToast:!0})}},setup(t){const e=["dsg-alert","dsg-alert--"+t.contentProps.type,t.contentProps.hasCloseButton?"dsg-alert--has-close":"dsg-alert--no-close"],n=f.useAttrs().closeToast,i=f.ref(!1),a=()=>{t.contentProps.useToast?n():i.value=!0};return(o,s)=>i.value?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(e)},[o.contentProps.type==="gray"?(f.openBlock(),f.createBlock(Ct,{key:0,icon:{icon:"info-circle"},type:"outline",theme:"gray",size:"lg"})):f.createCommentVNode("",!0),o.contentProps.type==="error"?(f.openBlock(),f.createBlock(Ct,{key:1,icon:{icon:"alert-circle"},type:"outline",theme:"error",size:"lg"})):f.createCommentVNode("",!0),o.contentProps.type==="warning"?(f.openBlock(),f.createBlock(Ct,{key:2,icon:{icon:"alert-circle"},type:"outline",theme:"warning",size:"lg"})):f.createCommentVNode("",!0),o.contentProps.type==="success"?(f.openBlock(),f.createBlock(Ct,{key:3,icon:{icon:"check-circle"},type:"outline",theme:"success",size:"lg"})):f.createCommentVNode("",!0),f.createElementVNode("div",ls,[f.createElementVNode("p",{class:f.normalizeClass(["dsg-alert__title",{"dsg-alert__title--with-close-button":o.contentProps.hasCloseButton}])},f.toDisplayString(o.contentProps.title),3),o.contentProps.message?(f.openBlock(),f.createElementBlock("p",{key:0,innerHTML:o.contentProps.message,class:"dsg-alert__message"},null,8,us)):f.createCommentVNode("",!0)]),o.contentProps.hasCloseButton?(f.openBlock(),f.createElementBlock("button",{key:4,onClick:a,class:"dsg-alert__close-button"},[f.createVNode(L._sfc_main,{icon:"x-close",size:"sm"})])):f.createCommentVNode("",!0)]))}}),fs=new class Zt{info(e="",r="",n={}){Zt.showToast("gray",e,r,n)}error(e="",r="",n={}){Zt.showToast("error",e,r,n)}warning(e="",r="",n={}){Zt.showToast("warning",e,r,n)}success(e="",r="",n={}){Zt.showToast("success",e,r,n)}static showToast(e,r,n,i){const a={hasCloseButton:!1,position:"top-right",maxWidthClass:"",...i};ee(Ji,{autoClose:!a.hasCloseButton,closeButton:!1,hideProgressBar:!0,closeOnClick:!a.hasCloseButton,position:a.position,containerClassName:`dsg-alert-container ${a.maxWidthClass}`,toastClassName:"dsg-alert",bodyClassName:"dsg-alert--body",contentProps:{title:r,message:n,type:e,hasCloseButton:a.hasCloseButton},onClick:()=>{}})}},cs={class:"dsg-badge--before"},ds={key:2,class:"dsg-badge--dot"},hs={key:1,class:"dsg-badge--label"},vs={class:"dsg-badge--after"},ps={key:1,class:"dsg-badge--close-wrapper"},ea=f.defineComponent({__name:"DsgBadge",props:{label:{default:""},classes:{default:""},type:{default:"standard"},size:{default:"md"},hasClose:{type:Boolean,default:!1},avatarUri:{default:""},iconBefore:{default:""},icon:{default:""},iconAfter:{default:""},iconOnly:{type:Boolean,default:!1},hasDot:{type:Boolean,default:!1},theme:{default:"badge-modern"},themeColor:{default:"gray"},destroyOnClose:{type:Boolean,default:!1}},emits:["before-hide","after-hide","before-destroy","after-destroy","on-click"],setup(t,{expose:e,emit:r}){const n=t.iconBefore||t.iconAfter||t.type==="add"||t.type==="icon-only",i=["dsg-badge",`dsg-badge--${t.size}`,`dsg-badge--${t.type}`,`dsg-badge--${t.theme}`,`dsg-badge--${t.themeColor}`,`dsg-badge--${t.iconOnly?"icon-only":"label"}`,`${t.hasClose?"dsg-badge--has-close":""}`,`${t.avatarUri?"dsg-badge--has-avatar":""}`,`${t.hasDot?"dsg-badge--has-dot":""}`,`${n?"dsg-badge--has-icon":""}`,`${t.iconBefore?"dsg-badge--has-icon-before":""}`,`${t.iconAfter?"dsg-badge--has-icon-after":""}`,t.classes].join(" ").replaceAll(/\s+/g," ").trim();(t.type==="add"||t.type==="icon-only")&&(t.label||t.avatarUri||t.hasDot||t.iconBefore||t.iconAfter||t.hasClose)&&t.theme!=="badge-modern"&&t.themeColor&&new L.DsgPropSyntaxWarning("DsgBadge: 'add'/'icon-only' type badges should only be called with 'size', 'theme' and 'themeColor' props. Note that 'themeColor' prop is discarded for theme 'badge-modern'."),[t.avatarUri,t.iconBefore,t.hasDot].filter(Boolean).length>1&&new L.DsgPropSyntaxWarning("DsgBadge: 'avatarUri', 'iconBefore' and 'hasDot' props are mutually exclusive. Please use only one of them."),[t.iconAfter,t.hasClose].filter(Boolean).length>1&&new L.DsgPropSyntaxWarning("DsgBadge: 'iconAfter' and 'hasClose' props are mutually exclusive. Please use only one of them.");const s=r,l=f.useTemplateRef("dsgBadge"),u=d=>{t.destroyOnClose?(s("before-destroy",l.value),l.value?.remove(),s("after-destroy")):(s("before-hide",l.value),l.value&&(l.value.style.display="none"),s("after-hide",l.value))},c=d=>{s("on-click",l.value)};return e({hideOrDestroy:u,clickEvent:c}),(d,v)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(i)),ref:"dsgBadge",onClick:c},[d.type==="standard"?f.renderSlot(d.$slots,"dsg-badge--before",{key:0},()=>[f.createElementVNode("div",cs,[d.avatarUri?(f.openBlock(),f.createBlock(or,{key:0,"profile-uri":d.avatarUri,class:"dsg-badge--avatar",size:"xxs"},null,8,["profile-uri"])):f.createCommentVNode("",!0),d.iconBefore?(f.openBlock(),f.createBlock(L._sfc_main,{key:1,icon:d.iconBefore,size:"xxs",class:"dsg-badge--icon-before dsg-badge--icon"},null,8,["icon"])):f.createCommentVNode("",!0),d.hasDot?(f.openBlock(),f.createElementBlock("span",ds)):f.createCommentVNode("",!0)])]):f.createCommentVNode("",!0),d.type==="standard"?(f.openBlock(),f.createElementBlock("label",hs,f.toDisplayString(d.label),1)):f.createCommentVNode("",!0),d.type==="add"?(f.openBlock(),f.createBlock(L._sfc_main,{key:2,icon:"plus",size:"xxs",class:"dsg-badge--icon-add dsg-badge--icon"})):f.createCommentVNode("",!0),d.type==="icon-only"?(f.openBlock(),f.createBlock(L._sfc_main,{key:3,icon:d.icon,size:"xxs",class:"dsg-badge--icon-only dsg-badge--icon"},null,8,["icon"])):f.createCommentVNode("",!0),d.type==="standard"?f.renderSlot(d.$slots,"dsg-badge--after",{key:4},()=>[f.createElementVNode("div",vs,[d.iconAfter?(f.openBlock(),f.createBlock(L._sfc_main,{key:0,icon:d.iconAfter,size:"xxs",class:"dsg-badge--icon-after dsg-badge--icon"},null,8,["icon"])):f.createCommentVNode("",!0),d.hasClose?(f.openBlock(),f.createElementBlock("span",ps,[d.hasClose?(f.openBlock(),f.createBlock(L._sfc_main,{key:0,icon:"x-close",class:"dsg-badge--close",size:"xxs",onClick:u})):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)])]):f.createCommentVNode("",!0)],2))}}),gs={class:"dsg-input-number--control"},xs=["disabled"],ys={key:0},ms=["value","disabled"],ws=["disabled"],_s={key:0},Es={key:0,class:"dsg-input-number--label"},As=f.defineComponent({__name:"DsgInputNumber",props:{modelValue:{},disabled:{type:Boolean},label:{},step:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,i=a=>{if(r.disabled)return;const o=a.target;n("update:modelValue",Number(o.value))};return(a,o)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["dsg-input-number",{"dsg-input-number--disabled":r.disabled}])},[f.createElementVNode("div",gs,[f.createElementVNode("button",{type:"button",disabled:r.disabled,class:"dsg-input-number--btn"},[r.disabled?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",ys,"−"))],8,xs),f.createElementVNode("input",{type:"number",value:a.modelValue,onInput:i,disabled:r.disabled,class:"dsg-input-number--input"},null,40,ms),f.createElementVNode("button",{type:"button",disabled:r.disabled,class:"dsg-input-number--btn"},[r.disabled?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",_s,"+"))],8,ws)]),a.label!==void 0||a.$slots.label?(f.openBlock(),f.createElementBlock("div",Es,[f.renderSlot(a.$slots,"label",{},()=>[f.createTextVNode(f.toDisplayString(a.label),1)])])):f.createCommentVNode("",!0)],2))}}),Cs={key:0,class:"dsg-checkbox-group--form-wrapper"},bs={class:"dsg-checkbox-group--header"},Ss={class:"dsg-checkbox-group--header-title-wrapper"},Is={class:"dsg-checkbox-group--title"},Os=["innerHTML"],Ts={class:"dsg-checkbox-group--options"},Ns=["onClick"],Ds=["textContent"],Bs=["innerHTML","data"],Rs=f.defineComponent({__name:"DsgCheckboxGroup",props:f.mergeModels({size:{default:"md"},theme:{default:"form"},title:{default:""},subtext:{default:""},options:{default:()=>[]},tooltip:{default:null},defaultValue:{type:[String,Number,Boolean,Array,null],default:()=>[]}},{modelValue:{type:[String,Number,Boolean,Array,null],default:[]},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=f.useModel(t,"modelValue"),r=["dsg-checkbox-group",`dsg-checkbox-group--${t.size}`,`dsg-checkbox-group--theme-${t.theme}`],n=(i,a)=>{i.target instanceof HTMLAnchorElement||(e.value=a.value)};return(i,a)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(r)},[["form","form-radio"].includes(i.theme)?(f.openBlock(),f.createElementBlock("div",Cs,[f.createElementVNode("div",bs,[f.renderSlot(i.$slots,"dsg-checkbox-group--header",{},()=>[f.createElementVNode("div",Ss,[f.createElementVNode("h3",Is,f.toDisplayString(i.title),1),i.tooltip?(f.openBlock(),f.createBlock(L._sfc_main$1,{key:0,label:i.tooltip,position:"top",triggers:["hover"],"auto-hide":!0,theme:"dark",class:"dsg-checkbox-group--tooltip"},null,8,["label"])):f.createCommentVNode("",!0)]),i.subtext?(f.openBlock(),f.createElementBlock("p",{key:0,class:"dsg-checkbox-group--subtext",innerHTML:i.subtext},null,8,Os)):f.createCommentVNode("",!0)])]),f.createElementVNode("div",Ts,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.options,(o,s)=>(f.openBlock(),f.createElementBlock("div",{key:s,class:"dsg-checkbox-group--option"},[f.createVNode(L._sfc_main$2,{label:o.label,value:o.value,disabled:o.disabled,size:"sm",type:["form","panel"].includes(i.theme)?"checkbox":"radio",modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=l=>e.value=l)},null,8,["label","value","disabled","type","modelValue"])]))),128))])])):f.createCommentVNode("",!0),["panel","panel-content"].includes(i.theme)?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(i.options,(o,s)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["dsg-checkbox-group--panel",`dsg-checkbox-group--panel-${e.value===o.value?"selected":"unselected"}`]),onClick:l=>n(l,o)},[(f.openBlock(),f.createElementBlock("div",{class:"dsg-checkbox-group--panel-left",key:s},[f.renderSlot(i.$slots,`dsg-checkbox-group--panel-title--${String(o.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g,"-").replace(/-+/g,"-")}`,{data:o},()=>[o.icon?(f.openBlock(),f.createBlock(L._sfc_main,{key:0,icon:o.icon,size:"xl"},null,8,["icon"])):f.createCommentVNode("",!0),f.createElementVNode("h3",{class:"dsg-checkbox-group--panel-title",textContent:f.toDisplayString(o.label)},null,8,Ds)]),f.renderSlot(i.$slots,`dsg-checkbox-group--panel-subtext--${String(o.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g,"-").replace(/-+/g,"-")}`,{},()=>[o.subtext?(f.openBlock(),f.createElementBlock("p",{key:0,class:"dsg-checkbox-group--panel-subtext",innerHTML:o.subtext,data:o},null,8,Bs)):f.createCommentVNode("",!0)])])),(f.openBlock(),f.createElementBlock("div",{key:s,class:"dsg-checkbox-group--panel-right"},[f.createVNode(L._sfc_main$2,{value:o.value,disabled:o.disabled,type:"radio",modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=l=>e.value=l)},null,8,["value","disabled","modelValue"])]))],10,Ns))),256)):f.createCommentVNode("",!0)]))}});var Ps="2.0.4",En=500,Jn="user-agent",Bt="",ei="?",Pr="function",ut="undefined",Rt="object",An="string",Ie="browser",Qe="cpu",We="device",Ve="engine",ke="os",Ot="result",D="name",S="type",N="vendor",B="version",Oe="architecture",lr="major",T="model",qt="console",$="mobile",q="tablet",ue="smarttv",Ge="wearable",pr="xr",Qt="embedded",Vt="inapp",Un="brands",yt="formFactors",$n="fullVersionList",Tt="platform",Hn="platformVersion",Hr="bitness",ht="sec-ch-ua",ks=ht+"-full-version-list",Ms=ht+"-arch",Ls=ht+"-"+Hr,Fs=ht+"-form-factors",Vs=ht+"-"+$,Us=ht+"-"+T,ta=ht+"-"+Tt,$s=ta+"-version",ra=[Un,$n,$,T,Tt,Hn,Oe,yt,Hr],gr="Amazon",_t="Apple",ti="ASUS",ri="BlackBerry",vt="Google",ni="Huawei",Yr="Lenovo",ii="Honor",xr="LG",Kr="Microsoft",Zr="Motorola",qr="Nvidia",ai="OnePlus",Qr="OPPO",Ut="Samsung",oi="Sharp",$t="Sony",Jr="Xiaomi",en="Zebra",si="Chrome",li="Chromium",it="Chromecast",Tr="Edge",Ht="Firefox",Gt="Opera",tn="Facebook",ui="Sogou",Et="Mobile ",zt=" Browser",Cn="Windows",Hs=typeof window!==ut,Te=Hs&&window.navigator?window.navigator:void 0,lt=Te&&Te.userAgentData?Te.userAgentData:void 0,Gs=function(t,e){var r={},n=e;if(!kr(e)){n={};for(var i in e)for(var a in e[i])n[a]=e[i][a].concat(n[a]?n[a]:[])}for(var o in t)r[o]=n[o]&&n[o].length%2===0?n[o].concat(t[o]):t[o];return r},Gr=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},bn=function(t,e){if(typeof t===Rt&&t.length>0){for(var r in t)if(Je(e)==Je(t[r]))return!0;return!1}return Mt(t)?Je(e)==Je(t):!1},kr=function(t,e){for(var r in t)return/^(browser|cpu|device|engine|os)$/.test(r)||(e?kr(t[r]):!1)},Mt=function(t){return typeof t===An},rn=function(t){if(t){for(var e=[],r=Pt(/\\?\"/g,t).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var i=Mr(r[n]).split(";v=");e[n]={brand:i[0],version:i[1]}}else e[n]=Mr(r[n]);return e}},Je=function(t){return Mt(t)?t.toLowerCase():t},nn=function(t){return Mt(t)?Pt(/[^\d\.]/g,t).split(".")[0]:void 0},et=function(t){for(var e in t){var r=t[e];typeof r==Rt&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this},Pt=function(t,e){return Mt(e)?e.replace(t,Bt):e},Wt=function(t){return Pt(/\\?\"/g,t)},Mr=function(t,e){if(Mt(t))return t=Pt(/^\s\s*/,t),typeof e===ut?t:t.substring(0,En)},an=function(t,e){if(!(!t||!e))for(var r=0,n,i,a,o,s,l;r<e.length&&!s;){var u=e[r],c=e[r+1];for(n=i=0;n<u.length&&!s&&u[n];)if(s=u[n++].exec(t),s)for(a=0;a<c.length;a++)l=s[++i],o=c[a],typeof o===Rt&&o.length>0?o.length===2?typeof o[1]==Pr?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]===Pr&&!(o[1].exec&&o[1].test)?o.length>3?this[o[0]]=l?o[1].apply(this,o.slice(2)):void 0:this[o[0]]=l?o[1].call(this,l,o[2]):void 0:o.length==3?this[o[0]]=l?l.replace(o[1],o[2]):void 0:o.length==4?this[o[0]]=l?o[3].call(this,l.replace(o[1],o[2])):void 0:o.length>4&&(this[o[0]]=l?o[3].apply(this,[l.replace(o[1],o[2])].concat(o.slice(4))):void 0)):this[o]=l||void 0;r+=2}},ze=function(t,e){for(var r in e)if(typeof e[r]===Rt&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(bn(e[r][n],t))return r===ei?void 0:r}else if(bn(e[r],t))return r===ei?void 0:r;return e.hasOwnProperty("*")?e["*"]:t},fi={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},ci={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},zs={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},di={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[B,[D,Et+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[B,[D,Tr+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[B,[D,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[D,B],[/opios[\/ ]+([\w\.]+)/i],[B,[D,Gt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[B,[D,Gt+" GX"]],[/\bopr\/([\w\.]+)/i],[B,[D,Gt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[B,[D,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[B,[D,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[D,B],[/quark(?:pc)?\/([-\w\.]+)/i],[B,[D,"Quark"]],[/\bddg\/([\w\.]+)/i],[B,[D,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[B,[D,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[B,[D,"WeChat"]],[/konqueror\/([\w\.]+)/i],[B,[D,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[B,[D,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[B,[D,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[B,[D,"Smart "+Yr+zt]],[/(avast|avg)\/([\w\.]+)/i],[[D,/(.+)/,"$1 Secure"+zt],B],[/\bfocus\/([\w\.]+)/i],[B,[D,Ht+" Focus"]],[/\bopt\/([\w\.]+)/i],[B,[D,Gt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[B,[D,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[B,[D,"Dolphin"]],[/coast\/([\w\.]+)/i],[B,[D,Gt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[B,[D,"MIUI"+zt]],[/fxios\/([\w\.-]+)/i],[B,[D,Et+Ht]],[/\bqihoobrowser\/?([\w\.]*)/i],[B,[D,"360"]],[/\b(qq)\/([\w\.]+)/i],[[D,/(.+)/,"$1Browser"],B],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[D,/(.+)/,"$1"+zt],B],[/samsungbrowser\/([\w\.]+)/i],[B,[D,Ut+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[B,[D,ui+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[D,ui+" Mobile"],B],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[D,B],[/(lbbrowser|rekonq)/i],[D],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[B,D],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[D,tn],B,[S,Vt]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[D,B,[S,Vt]],[/\bgsa\/([\w\.]+) .*safari\//i],[B,[D,"GSA"],[S,Vt]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[B,[D,"TikTok"],[S,Vt]],[/\[(linkedin)app\]/i],[D,[S,Vt]],[/(chromium)[\/ ]([-\w\.]+)/i],[D,B],[/headlesschrome(?:\/([\w\.]+)| )/i],[B,[D,si+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[B,[D,Tr+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[D,si+" WebView"],B],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[B,[D,"Android"+zt]],[/chrome\/([\w\.]+) mobile/i],[B,[D,Et+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[D,B],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[B,[D,Et+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[D,Et+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[B,D],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[D,[B,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[D,B],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[D,Et+Ht],B],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[D,"Netscape"],B],[/(wolvic|librewolf)\/([\w\.]+)/i],[D,B],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[B,[D,Ht+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[D,[B,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[D,[B,/[^\d\.]+./,Bt]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Oe,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Oe,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Oe,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Oe,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Oe,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[Oe,/ower/,Bt,Je]],[/ sun4\w[;\)]/i],[[Oe,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[Oe,Je]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[T,[N,Ut],[S,q]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[T,[N,Ut],[S,$]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[T,[N,_t],[S,$]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[T,[N,_t],[S,q]],[/(macintosh);/i],[T,[N,_t]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[T,[N,oi],[S,$]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[T,[N,ii],[S,q]],[/honor([-\w ]+)[;\)]/i],[T,[N,ii],[S,$]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[T,[N,ni],[S,q]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[T,[N,ni],[S,$]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[T,/_/g," "],[N,Jr],[S,q]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[T,/_/g," "],[N,Jr],[S,$]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[T,[N,ai],[S,$]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[T,[N,Qr],[S,$]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[T,[N,ze,{OnePlus:["203","304","403","404","413","415"],"*":Qr}],[S,q]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[T,[N,"BLU"],[S,$]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[T,[N,"Vivo"],[S,$]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[T,[N,"Realme"],[S,$]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[T,[N,Yr],[S,q]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[T,[N,Yr],[S,$]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[T,[N,Zr],[S,$]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[T,[N,Zr],[S,q]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[T,[N,xr],[S,q]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[T,[N,xr],[S,$]],[/(nokia) (t[12][01])/i],[N,T,[S,q]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[T,/_/g," "],[S,$],[N,"Nokia"]],[/(pixel (c|tablet))\b/i],[T,[N,vt],[S,q]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[T,[N,vt],[S,$]],[/(google) (pixelbook( go)?)/i],[N,T],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[T,[N,$t],[S,$]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[T,"Xperia Tablet"],[N,$t],[S,q]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[T,[N,gr],[S,q]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[T,/(.+)/g,"Fire Phone $1"],[N,gr],[S,$]],[/(playbook);[-\w\),; ]+(rim)/i],[T,N,[S,q]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[T,[N,ri],[S,$]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[T,[N,ti],[S,q]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[T,[N,ti],[S,$]],[/(nexus 9)/i],[T,[N,"HTC"],[S,q]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[N,[T,/_/g," "],[S,$]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[T,[N,"TCL"],[S,q]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[T,[N,"TCL"],[S,$]],[/(itel) ((\w+))/i],[[N,Je],T,[S,ze,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[T,[N,"Acer"],[S,q]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[T,[N,"Meizu"],[S,$]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[T,[N,"Ulefone"],[S,$]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[T,[N,"Energizer"],[S,$]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[T,[N,"Cat"],[S,$]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[T,[N,"Smartfren"],[S,$]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[T,[N,"Nothing"],[S,$]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[T,[N,"Archos"],[S,q]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[T,[N,"Archos"],[S,$]],[/; (n159v)/i],[T,[N,"HMD"],[S,$]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[N,T,[S,q]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i],[N,T,[S,$]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[N,T,[S,q]],[/(surface duo)/i],[T,[N,Kr],[S,q]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[T,[N,"Fairphone"],[S,$]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[T,[N,qr],[S,q]],[/(sprint) (\w+)/i],[N,T,[S,$]],[/(kin\.[onetw]{3})/i],[[T,/\./g," "],[N,Kr],[S,$]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[T,[N,en],[S,q]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[T,[N,en],[S,$]],[/smart-tv.+(samsung)/i],[N,[S,ue]],[/hbbtv.+maple;(\d+)/i],[[T,/^/,"SmartTV"],[N,Ut],[S,ue]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[N,T,[S,ue]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[N,xr],[S,ue]],[/(apple) ?tv/i],[N,[T,_t+" TV"],[S,ue]],[/crkey.*devicetype\/chromecast/i],[[T,it+" Third Generation"],[N,vt],[S,ue]],[/crkey.*devicetype\/([^/]*)/i],[[T,/^/,"Chromecast "],[N,vt],[S,ue]],[/fuchsia.*crkey/i],[[T,it+" Nest Hub"],[N,vt],[S,ue]],[/crkey/i],[[T,it],[N,vt],[S,ue]],[/(portaltv)/i],[T,[N,tn],[S,ue]],[/droid.+aft(\w+)( bui|\))/i],[T,[N,gr],[S,ue]],[/(shield \w+ tv)/i],[T,[N,qr],[S,ue]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[T,[N,oi],[S,ue]],[/(bravia[\w ]+)( bui|\))/i],[T,[N,$t],[S,ue]],[/(mi(tv|box)-?\w+) bui/i],[T,[N,Jr],[S,ue]],[/Hbbtv.*(technisat) (.*);/i],[N,T,[S,ue]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[N,/.+\/(\w+)/,"$1",ze,{LG:"lge"}],[T,Mr],[S,ue]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[T,[S,ue]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i],[[S,ue]],[/(playstation \w+)/i],[T,[N,$t],[S,qt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[T,[N,Kr],[S,qt]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[N,T,[S,qt]],[/droid.+; (shield)( bui|\))/i],[T,[N,qr],[S,qt]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[T,[N,Ut],[S,Ge]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[N,T,[S,Ge]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[T,[N,Qr],[S,Ge]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[T,[N,_t],[S,Ge]],[/(opwwe\d{3})/i],[T,[N,ai],[S,Ge]],[/(moto 360)/i],[T,[N,Zr],[S,Ge]],[/(smartwatch 3)/i],[T,[N,$t],[S,Ge]],[/(g watch r)/i],[T,[N,xr],[S,Ge]],[/droid.+; (wt63?0{2,3})\)/i],[T,[N,en],[S,Ge]],[/droid.+; (glass) \d/i],[T,[N,vt],[S,pr]],[/(pico) (4|neo3(?: link|pro)?)/i],[N,T,[S,pr]],[/(quest( \d| pro)?s?).+vr/i],[T,[N,tn],[S,pr]],[/mobile vr; rv.+firefox/i],[[S,pr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[N,[S,Qt]],[/(aeobc)\b/i],[T,[N,gr],[S,Qt]],[/(homepod).+mac os/i],[T,[N,_t],[S,Qt]],[/windows iot/i],[[S,Qt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[T,[S,ze,{mobile:"Mobile",xr:"VR","*":q}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[S,q]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[S,$]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[T,[N,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[B,[D,Tr+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[D,B],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[B,[D,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[D,B],[/ladybird\//i],[[D,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[B,D]],os:[[/(windows nt) (6\.[23]); arm/i],[[D,/N/,"R"],[B,ze,fi]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[D,B],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[B,/(;|\))/g,"",ze,fi],[D,Cn]],[/(windows ce)\/?([\d\.]*)/i],[D,B],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[B,/_/g,"."],[D,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[D,"macOS"],[B,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[B,[D,it+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[B,[D,it+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[B,[D,it+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[B,[D,it+" Linux"]],[/crkey\/([\d\.]+)/i],[B,[D,it]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[B,D],[/(ubuntu) ([\w\.]+) like android/i],[[D,/(.+)/,"$1 Touch"],B],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[D,B],[/\(bb(10);/i],[B,[D,ri]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[B,[D,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[B,[D,Ht+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[B,[D,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[B,ze,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[D,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[B,[D,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[D,"Chrome OS"],B],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[D,B],[/(sunos) ?([\d\.]*)/i],[[D,"Solaris"],B],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[D,B]]},yr=function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return et.call(t.init,[[Ie,[D,B,lr,S]],[Qe,[Oe]],[We,[S,T,N]],[Ve,[D,B]],[ke,[D,B]]]),et.call(t.isIgnore,[[Ie,[B,lr]],[Ve,[B]],[ke,[B]]]),et.call(t.isIgnoreRgx,[[Ie,/ ?browser$/i],[ke,/ ?os$/i]]),et.call(t.toString,[[Ie,[D,B]],[Qe,[Oe]],[We,[N,T]],[Ve,[D,B]],[ke,[D,B]]]),t}(),Ws=function(t,e){var r=yr.init[e],n=yr.isIgnore[e]||0,i=yr.isIgnoreRgx[e]||0,a=yr.toString[e]||0;function o(){et.call(this,r)}return o.prototype.getItem=function(){return t},o.prototype.withClientHints=function(){return lt?lt.getHighEntropyValues(ra).then(function(s){return t.setCH(new na(s,!1)).parseCH().get()}):t.parseCH().get()},o.prototype.withFeatureCheck=function(){return t.detectFeature().get()},e!=Ot&&(o.prototype.is=function(s){var l=!1;for(var u in this)if(this.hasOwnProperty(u)&&!bn(n,u)&&Je(i?Pt(i,this[u]):this[u])==Je(i?Pt(i,s):s)){if(l=!0,s!=ut)break}else if(s==ut&&l){l=!l;break}return l},o.prototype.toString=function(){var s=Bt;for(var l in a)typeof this[a[l]]!==ut&&(s+=(s?" ":Bt)+this[a[l]]);return s||ut}),lt||(o.prototype.then=function(s){var l=this,u=function(){for(var d in l)l.hasOwnProperty(d)&&(this[d]=l[d])};u.prototype={is:o.prototype.is,toString:o.prototype.toString};var c=new u;return s(c),c}),new o};function na(t,e){if(t=t||{},et.call(this,ra),e)et.call(this,[[Un,rn(t[ht])],[$n,rn(t[ks])],[$,/\?1/.test(t[Vs])],[T,Wt(t[Us])],[Tt,Wt(t[ta])],[Hn,Wt(t[$s])],[Oe,Wt(t[Ms])],[yt,rn(t[Fs])],[Hr,Wt(t[Ls])]]);else for(var r in t)this.hasOwnProperty(r)&&typeof t[r]!==ut&&(this[r]=t[r])}function hi(t,e,r,n){return this.get=function(i){return i?this.data.hasOwnProperty(i)?this.data[i]:void 0:this.data},this.set=function(i,a){return this.data[i]=a,this},this.setCH=function(i){return this.uaCH=i,this},this.detectFeature=function(){if(Te&&Te.userAgent==this.ua)switch(this.itemType){case Ie:Te.brave&&typeof Te.brave.isBrave==Pr&&this.set(D,"Brave");break;case We:!this.get(S)&<&<[$]&&this.set(S,$),this.get(T)=="Macintosh"&&Te&&typeof Te.standalone!==ut&&Te.maxTouchPoints&&Te.maxTouchPoints>2&&this.set(T,"iPad").set(S,q);break;case ke:!this.get(D)&<&<[Tt]&&this.set(D,lt[Tt]);break;case Ot:var i=this.data,a=function(o){return i[o].getItem().detectFeature().get()};this.set(Ie,a(Ie)).set(Qe,a(Qe)).set(We,a(We)).set(Ve,a(Ve)).set(ke,a(ke))}return this},this.parseUA=function(){return this.itemType!=Ot&&an.call(this.data,this.ua,this.rgxMap),this.itemType==Ie&&this.set(lr,nn(this.get(B))),this},this.parseCH=function(){var i=this.uaCH,a=this.rgxMap;switch(this.itemType){case Ie:case Ve:var o=i[$n]||i[Un],s;if(o)for(var l in o){var u=o[l].brand||o[l],c=o[l].version;this.itemType==Ie&&!/not.a.brand/i.test(u)&&(!s||/Chrom/.test(s)&&u!=li||s==Tr&&/WebView2/.test(u))&&(u=ze(u,zs),s=this.get(D),s&&!/Chrom/.test(s)&&/Chrom/.test(u)||this.set(D,u).set(B,c).set(lr,nn(c)),s=u),this.itemType==Ve&&u==li&&this.set(B,c)}break;case Qe:var d=i[Oe];d&&(d&&i[Hr]=="64"&&(d+="64"),an.call(this.data,d+";",a));break;case We:if(i[$]&&this.set(S,$),i[T]&&(this.set(T,i[T]),!this.get(S)||!this.get(N))){var v={};an.call(v,"droid 9; "+i[T]+")",a),!this.get(S)&&v.type&&this.set(S,v.type),!this.get(N)&&v.vendor&&this.set(N,v.vendor)}if(i[yt]){var h;if(typeof i[yt]!="string")for(var p=0;!h&&p<i[yt].length;)h=ze(i[yt][p++],ci);else h=ze(i[yt],ci);this.set(S,h)}break;case ke:var g=i[Tt];if(g){var w=i[Hn];g==Cn&&(w=parseInt(nn(w),10)>=13?"11":"10"),this.set(D,g).set(B,w)}this.get(D)==Cn&&i[T]=="Xbox"&&this.set(D,"Xbox").set(B,void 0);break;case Ot:var _=this.data,m=function(E){return _[E].getItem().setCH(i).parseCH().get()};this.set(Ie,m(Ie)).set(Qe,m(Qe)).set(We,m(We)).set(Ve,m(Ve)).set(ke,m(ke))}return this},et.call(this,[["itemType",t],["ua",e],["uaCH",n],["rgxMap",r],["data",Ws(this,t)]]),this}function tt(t,e,r){if(typeof t===Rt?(kr(t,!0)?(typeof e===Rt&&(r=e),e=t):(r=t,e=void 0),t=void 0):typeof t===An&&!kr(e,!0)&&(r=e,e=void 0),r&&typeof r.append===Pr){var n={};r.forEach(function(l,u){n[u]=l}),r=n}if(!(this instanceof tt))return new tt(t,e,r).getResult();var i=typeof t===An?t:r&&r[Jn]?r[Jn]:Te&&Te.userAgent?Te.userAgent:Bt,a=new na(r,!0),o=e?Gs(di,e):di,s=function(l){return l==Ot?function(){return new hi(l,i,o,a).set("ua",i).set(Ie,this.getBrowser()).set(Qe,this.getCPU()).set(We,this.getDevice()).set(Ve,this.getEngine()).set(ke,this.getOS()).get()}:function(){return new hi(l,i,o[l],a).parseUA().get()}};return et.call(this,[["getBrowser",s(Ie)],["getCPU",s(Qe)],["getDevice",s(We)],["getEngine",s(Ve)],["getOS",s(ke)],["getResult",s(Ot)],["getUA",function(){return i}],["setUA",function(l){return Mt(l)&&(i=l.length>En?Mr(l,En):l),this}]]).setUA(i),this}tt.VERSION=Ps;tt.BROWSER=Gr([D,B,lr,S]);tt.CPU=Gr([Oe]);tt.DEVICE=Gr([T,N,S,qt,$,ue,q,Ge,Qt]);tt.ENGINE=tt.OS=Gr([D,B]);const on=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sn(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),r)}function Xt(t,e,r,n){t.removeEventListener?t.removeEventListener(e,r,n):t.detachEvent&&t.detachEvent("on".concat(e),r)}function ia(t,e){const r=e.slice(0,e.length-1);for(let n=0;n<r.length;n++)r[n]=t[r[n].toLowerCase()];return r}function aa(t){typeof t!="string"&&(t=""),t=t.replace(/\s/g,"");const e=t.split(",");let r=e.lastIndexOf("");for(;r>=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}function Xs(t,e){const r=t.length>=e.length?t:e,n=t.length>=e.length?e:t;let i=!0;for(let a=0;a<r.length;a++)n.indexOf(r[a])===-1&&(i=!1);return i}const ur={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":on?173:189,"=":on?61:187,";":on?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},$e={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Jt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ye={16:!1,18:!1,17:!1,91:!1},se={};for(let t=1;t<20;t++)ur["f".concat(t)]=111+t;let oe=[],ar=null,oa="all";const qe=new Map,Lt=t=>ur[t.toLowerCase()]||$e[t.toLowerCase()]||t.toUpperCase().charCodeAt(0),js=t=>Object.keys(ur).find(e=>ur[e]===t),Ys=t=>Object.keys($e).find(e=>$e[e]===t);function sa(t){oa=t||"all"}function fr(){return oa||"all"}function Ks(){return oe.slice(0)}function Zs(){return oe.map(t=>js(t)||Ys(t)||String.fromCharCode(t))}function qs(){const t=[];return Object.keys(se).forEach(e=>{se[e].forEach(r=>{let{key:n,scope:i,mods:a,shortcut:o}=r;t.push({scope:i,shortcut:o,mods:a,keys:n.split("+").map(s=>Lt(s))})})}),t}function Qs(t){const e=t.target||t.srcElement,{tagName:r}=e;let n=!0;const i=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(e.type);return(e.isContentEditable||(i||r==="TEXTAREA"||r==="SELECT")&&!e.readOnly)&&(n=!1),n}function Js(t){return typeof t=="string"&&(t=Lt(t)),oe.indexOf(t)!==-1}function el(t,e){let r,n;t||(t=fr());for(const i in se)if(Object.prototype.hasOwnProperty.call(se,i))for(r=se[i],n=0;n<r.length;)r[n].scope===t?r.splice(n,1).forEach(o=>{let{element:s}=o;return Gn(s)}):n++;fr()===t&&sa(e||"all")}function tl(t){let e=t.keyCode||t.which||t.charCode;t.key&&t.key.toLowerCase()==="capslock"&&(e=Lt(t.key));const r=oe.indexOf(e);if(r>=0&&oe.splice(r,1),t.key&&t.key.toLowerCase()==="meta"&&oe.splice(0,oe.length),(e===93||e===224)&&(e=91),e in ye){ye[e]=!1;for(const n in $e)$e[n]===e&&(Xe[n]=!1)}}function la(t){if(typeof t>"u")Object.keys(se).forEach(i=>{Array.isArray(se[i])&&se[i].forEach(a=>mr(a)),delete se[i]}),Gn(null);else if(Array.isArray(t))t.forEach(i=>{i.key&&mr(i)});else if(typeof t=="object")t.key&&mr(t);else if(typeof t=="string"){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];let[i,a]=r;typeof i=="function"&&(a=i,i=""),mr({key:t,scope:i,method:a,splitKey:"+"})}}const mr=t=>{let{key:e,scope:r,method:n,splitKey:i="+"}=t;aa(e).forEach(o=>{const s=o.split(i),l=s.length,u=s[l-1],c=u==="*"?"*":Lt(u);if(!se[c])return;r||(r=fr());const d=l>1?ia($e,s):[],v=[];se[c]=se[c].filter(h=>{const g=(n?h.method===n:!0)&&h.scope===r&&Xs(h.mods,d);return g&&v.push(h.element),!g}),v.forEach(h=>Gn(h))})};function vi(t,e,r,n){if(e.element!==n)return;let i;if(e.scope===r||e.scope==="all"){i=e.mods.length>0;for(const a in ye)Object.prototype.hasOwnProperty.call(ye,a)&&(!ye[a]&&e.mods.indexOf(+a)>-1||ye[a]&&e.mods.indexOf(+a)===-1)&&(i=!1);(e.mods.length===0&&!ye[16]&&!ye[18]&&!ye[17]&&!ye[91]||i||e.shortcut==="*")&&(e.keys=[],e.keys=e.keys.concat(oe),e.method(t,e)===!1&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0)))}}function pi(t,e){const r=se["*"];let n=t.keyCode||t.which||t.charCode;if(t.key&&t.key.toLowerCase()==="capslock"||!Xe.filter.call(this,t))return;if((n===93||n===224)&&(n=91),oe.indexOf(n)===-1&&n!==229&&oe.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(s=>{const l=Jt[s];t[s]&&oe.indexOf(l)===-1?oe.push(l):!t[s]&&oe.indexOf(l)>-1?oe.splice(oe.indexOf(l),1):s==="metaKey"&&t[s]&&(oe=oe.filter(u=>u in Jt||u===n))}),n in ye){ye[n]=!0;for(const s in $e)if(Object.prototype.hasOwnProperty.call($e,s)){const l=Jt[$e[s]];Xe[s]=t[l]}if(!r)return}for(const s in ye)Object.prototype.hasOwnProperty.call(ye,s)&&(ye[s]=t[Jt[s]]);t.getModifierState&&!(t.altKey&&!t.ctrlKey)&&t.getModifierState("AltGraph")&&(oe.indexOf(17)===-1&&oe.push(17),oe.indexOf(18)===-1&&oe.push(18),ye[17]=!0,ye[18]=!0);const i=fr();if(r)for(let s=0;s<r.length;s++)r[s].scope===i&&(t.type==="keydown"&&r[s].keydown||t.type==="keyup"&&r[s].keyup)&&vi(t,r[s],i,e);if(!(n in se))return;const a=se[n],o=a.length;for(let s=0;s<o;s++)if((t.type==="keydown"&&a[s].keydown||t.type==="keyup"&&a[s].keyup)&&a[s].key){const l=a[s],{splitKey:u}=l,c=l.key.split(u),d=[];for(let v=0;v<c.length;v++)d.push(Lt(c[v]));d.sort().join("")===oe.sort().join("")&&vi(t,l,i,e)}}function Xe(t,e,r){oe=[];const n=aa(t);let i=[],a="all",o=document,s=0,l=!1,u=!0,c="+",d=!1,v=!1;for(r===void 0&&typeof e=="function"&&(r=e),Object.prototype.toString.call(e)==="[object Object]"&&(e.scope&&(a=e.scope),e.element&&(o=e.element),e.keyup&&(l=e.keyup),e.keydown!==void 0&&(u=e.keydown),e.capture!==void 0&&(d=e.capture),typeof e.splitKey=="string"&&(c=e.splitKey),e.single===!0&&(v=!0)),typeof e=="string"&&(a=e),v&&la(t,a);s<n.length;s++)t=n[s].split(c),i=[],t.length>1&&(i=ia($e,t)),t=t[t.length-1],t=t==="*"?"*":Lt(t),t in se||(se[t]=[]),se[t].push({keyup:l,keydown:u,scope:a,mods:i,shortcut:n[s],method:r,key:n[s],splitKey:c,element:o});if(typeof o<"u"&&window){if(!qe.has(o)){const h=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return pi(g,o)},p=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;pi(g,o),tl(g)};qe.set(o,{keydownListener:h,keyupListenr:p,capture:d}),sn(o,"keydown",h,d),sn(o,"keyup",p,d)}if(!ar){const h=()=>{oe=[]};ar={listener:h,capture:d},sn(window,"focus",h,d)}}}function rl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(se).forEach(r=>{se[r].filter(i=>i.scope===e&&i.shortcut===t).forEach(i=>{i&&i.method&&i.method()})})}function Gn(t){const e=Object.values(se).flat();if(e.findIndex(n=>{let{element:i}=n;return i===t})<0){const{keydownListener:n,keyupListenr:i,capture:a}=qe.get(t)||{};n&&i&&(Xt(t,"keyup",i,a),Xt(t,"keydown",n,a),qe.delete(t))}if((e.length<=0||qe.size<=0)&&(Object.keys(qe).forEach(i=>{const{keydownListener:a,keyupListenr:o,capture:s}=qe.get(i)||{};a&&o&&(Xt(i,"keyup",o,s),Xt(i,"keydown",a,s),qe.delete(i))}),qe.clear(),Object.keys(se).forEach(i=>delete se[i]),ar)){const{listener:i,capture:a}=ar;Xt(window,"focus",i,a),ar=null}}const ln={getPressedKeyString:Zs,setScope:sa,getScope:fr,deleteScope:el,getPressedKeyCodes:Ks,getAllKeyCodes:qs,isPressed:Js,filter:Qs,trigger:rl,unbind:la,keyMap:ur,modifier:$e,modifierMap:Jt};for(const t in ln)Object.prototype.hasOwnProperty.call(ln,t)&&(Xe[t]=ln[t]);if(typeof window<"u"){const t=window.hotkeys;Xe.noConflict=e=>(e&&window.hotkeys===Xe&&(window.hotkeys=t),Xe),window.hotkeys=Xe}const nl={class:"dsg-dropdown--trigger",tabindex:"0"},il={class:"dsg-dropdown--menu"},al={key:0,class:"dsg-dropdown--menu-header"},ol={key:1,class:"dsg-dropdown--menu-header"},sl={class:"dsg-dropdown--menu-title"},ll={key:2,class:"dsg-dropdown--menu-header subsection"},ul={class:"dsg-dropdown--menu-subtitle"},fl=["href","target","tabindex","title","onClick"],cl={key:0,class:"dsg-dropdown--menu-item--content"},dl={key:0,class:"dsg-dropdown--menu-item--icon"},hl={class:"dsg-dropdown--menu-item--label"},vl={class:"dsg-dropdown--menu-item--hotkey"},pl={key:0},gl={key:1,class:"dsg-dropdown--menu-item--content"},xl=f.defineComponent({__name:"DsgDropdown",props:{label:{default:""},type:{default:"button"},icon:{default:"dots-vertical"},buttonTheme:{default:"gray"},menuItems:{default:()=>[]},avatarInfo:{default:null},isOpen:{type:Boolean,default:!1},placement:{default:"bottom-end"},headerType:{default:"none"},headerTitle:{default:""},classes:{default:""},strategy:{default:"absolute"},skidding:{default:0},distance:{default:0}},setup(t,{expose:e}){const r=f.ref(t.isOpen),n=new tt().getOS().name;t.menuItems.forEach(h=>{});const i=f.useTemplateRef("floatingVueDropdownEl"),a=f.useTemplateRef("dsgDropdownAvatarTriggerEl"),o=f.useTemplateRef("dsgDropdownButtonTriggerEl"),s=h=>{u(),a.value&&setTimeout(()=>{a?.value?.toggleFocus(r.value)},100)},l=h=>{u(),o.value&&setTimeout(()=>{o?.value?.focusButton(r.value)},100)},u=()=>{r.value=!r.value,r.value?i.value?.show():i.value?.hide()},c=(h,p)=>{p.uri||h.preventDefault(),p.action&&(p.action(),i.value?.hide())},d=f.useTemplateRef("dsgDropdown"),v=h=>(h=h.toLowerCase(),h.replace("ctrl","⌃").replace("shift","⇧").replace("alt","⌥").replace("cmd",n==="macOS"?"⌘":"⊞").replace("++","+").replace("+","").toUpperCase());return f.onMounted(()=>{t.menuItems.forEach(h=>{h.hotkey&&Xe(h.hotkey,p=>{h.hotkeyPreventDefault&&h.hotkeyPreventDefault===!0&&p.preventDefault(),h.uri&&window.open(h.uri,h.uriTarget??"_blank"),typeof h.action=="function"&&(h.action(),i.value?.hide())})})}),f.onBeforeUnmount(()=>{Xe.deleteScope("dsgDropdown")}),e({handleTriggerClick:u}),(h,p)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["dsg-dropdown",h.classes]),ref:"dsgDropdown"},[f.createVNode(f.unref(L.kt),f.mergeProps({triggers:[],placement:h.placement,"handle-resize":!1,strategy:h.strategy,shown:r.value,flip:!1,shift:!1,boundary:d.value,container:d.value,skidding:h.skidding,distance:h.distance,class:"dsg-dropdown--popper",onHide:p[0]||(p[0]=g=>r.value=!1),ref:"floatingVueDropdownEl"},h.$attrs),{popper:f.withCtx(()=>[f.createElementVNode("div",il,[f.renderSlot(h.$slots,"dsg-dropdown-menu--header",{},()=>[h.headerType==="avatar"?(f.openBlock(),f.createElementBlock("div",al,[h.avatarInfo?(f.openBlock(),f.createBlock(or,{key:0,size:"md",profileUri:h.avatarInfo.profileUri,fullName:h.avatarInfo.fullName,isOnline:h.avatarInfo.isOnline,title:h.avatarInfo.title,"sub-text":h.avatarInfo.subText},null,8,["profileUri","fullName","isOnline","title","sub-text"])):f.createCommentVNode("",!0)])):h.headerType==="title"?(f.openBlock(),f.createElementBlock("div",ol,[f.createElementVNode("h3",sl,f.toDisplayString(h.headerTitle),1)])):h.headerType==="subsection"?(f.openBlock(),f.createElementBlock("div",ll,[f.createElementVNode("h4",ul,f.toDisplayString(h.headerTitle),1)])):f.createCommentVNode("",!0)]),f.renderSlot(h.$slots,"dsg-dropdown-menu-content",{},()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(h.menuItems,(g,w)=>(f.openBlock(),f.createElementBlock("a",{class:f.normalizeClass(["dsg-dropdown--menu-item",{"is-divider":g.type==="divider"}]),href:g.uri,target:g.uriTarget??"_blank",tabindex:!g.uri&&g.type!=="divider"?0:void 0,title:g.label,key:w,onClick:_=>c(_,g)},[g.type==="item"||g.type===void 0?(f.openBlock(),f.createElementBlock("div",cl,[g.icon?(f.openBlock(),f.createElementBlock("div",dl,[f.createVNode(L._sfc_main,{icon:g.icon,size:"xs"},null,8,["icon"])])):f.createCommentVNode("",!0),f.createElementVNode("span",hl,f.toDisplayString(g.label),1),f.createElementVNode("div",vl,[g.hotkey?(f.openBlock(),f.createElementBlock("span",pl,f.toDisplayString(v(g.hotkey)),1)):f.createCommentVNode("",!0)])])):g.type==="divider"?(f.openBlock(),f.createElementBlock("div",gl,p[1]||(p[1]=[f.createElementVNode("hr",null,null,-1)]))):f.createCommentVNode("",!0)],10,fl))),128))])])]),default:f.withCtx(()=>[f.createElementVNode("div",nl,[f.renderSlot(h.$slots,"dsg-dropdown--trigger",{},()=>[h.type==="avatar"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[h.avatarInfo?(f.openBlock(),f.createBlock(or,{key:0,size:"lg",profileUri:h.avatarInfo.profileUri,fullName:h.avatarInfo.fullName,ref:"dsgDropdownAvatarTriggerEl",onClick:s,"prevent-default":!0},null,8,["profileUri","fullName"])):f.createCommentVNode("",!0)],64)):h.type==="button"?(f.openBlock(),f.createBlock(L._sfc_main$3,{key:1,theme:h.buttonTheme,label:h.label,onClick:l,ref:"dsgDropdownButtonTriggerEl","icon-after":"chevron-down",class:f.normalizeClass({"dropdown-active":r.value})},null,8,["theme","label","class"])):h.type==="icon"?(f.openBlock(),f.createBlock(L._sfc_main$3,{key:2,"icon-before":h.icon,size:"sm",theme:h.buttonTheme,class:f.normalizeClass(["dsg-dropdown--trigger-button",{"dropdown-active":r.value}]),onClick:u},null,8,["icon-before","theme","class"])):f.createCommentVNode("",!0)])])]),_:3},16,["placement","strategy","shown","boundary","container","skidding","distance"])],2))}});function un(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function yl(t){return(...e)=>!t(...e)}function ml(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function wl(t){return t.filter(e=>!e.$isLabel)}function fn(t,e){return r=>r.reduce((n,i)=>i[t]&&i[t].length?(n.push({$groupLabel:i[e],$isLabel:!0}),n.concat(i[t])):n,[])}const gi=(...t)=>e=>t.reduce((r,n)=>n(r),e);var _l={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return un(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let r=this.options.concat();return this.internalSearch?r=this.groupValues?this.filterAndFlat(r,e,this.label):this.filterOptions(r,e,this.label,this.customLabel):r=this.groupValues?fn(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(yl(this.isSelected)):r,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?r.push({isTag:!0,label:t}):r.unshift({isTag:!0,label:t})),r.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,r){return gi(this.filterGroups(e,r,this.groupValues,this.groupLabel,this.customLabel),fn(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return gi(fn(this.groupValues,this.groupLabel),wl)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(un(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return un(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const r=this.trackBy?e[this.groupValues].map(i=>i[this.trackBy]):e[this.groupValues],n=this.internalValue.filter(i=>r.indexOf(this.trackBy?i[this.trackBy]:i)===-1);this.$emit("update:modelValue",n)}else{const r=e[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&r.splice(this.max-this.internalValue.length),this.$emit("select",r,this.id),this.$emit("update:modelValue",this.internalValue.concat(r))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const r=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const n=this.internalValue.slice(0,r).concat(this.internalValue.slice(r+1));this.$emit("update:modelValue",n)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))},filterOptions(t,e,r,n){return e?t.filter(i=>ml(n(i,r),e)).sort((i,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(i,a):n(i,r).length-n(a,r).length):t},filterGroups(t,e,r,n,i){return a=>a.map(o=>{if(!o[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const s=this.filterOptions(o[r],t,e,i);return s.length?{[n]:o[n],[r]:s}:[]})}}},El={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const r=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);return r&&!this.wholeGroupDisabled(r)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(r)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list?.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list?.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},ua={name:"vue-multiselect",mixins:[_l,El],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1},useTeleport:{type:Boolean,default:!1}},data(){return{dropdownStyles:{},ready:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}},watch:{isOpen(t){t&&(this.useTeleport?(this.ready=!1,this.$nextTick(()=>{const e=this.$el.getBoundingClientRect();this.dropdownStyles={position:"absolute",top:`${e.bottom+window.scrollY}px`,left:`${e.left+window.scrollX}px`,width:`${e.width}px`,zIndex:9999},this.ready=!0})):this.ready=!0)}}};const Al=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],Cl={ref:"tags",class:"multiselect__tags"},bl={class:"multiselect__tags-wrap"},Sl=["textContent"],Il=["onKeypress","onMousedown"],Ol=["textContent"],Tl={class:"multiselect__spinner"},Nl=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],Dl=["id","aria-multiselectable"],Bl={key:0},Rl={class:"multiselect__option"},Pl=["aria-selected","id","role"],kl=["onClick","onMouseenter","data-select","data-selected","data-deselect"],Ml=["data-select","data-deselect","onMouseenter","onMousedown"],Ll={class:"multiselect__option"},Fl={class:"multiselect__option"};function Vl(t,e,r,n,i,a){return f.openBlock(),f.createElementBlock("div",{tabindex:t.searchable?-1:r.tabindex,class:f.normalizeClass([{"multiselect--active":t.isOpen,"multiselect--disabled":r.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=f.withKeys(f.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=f.withKeys(f.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=f.withKeys(f.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=f.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-expanded":t.isOpen,"aria-owns":"listbox-"+t.id,"aria-activedescendant":t.isOpen&&t.pointer!==null?t.id+"-"+t.pointer:null},[f.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[f.createElementVNode("div",{onMousedown:e[0]||(e[0]=f.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),f.renderSlot(t.$slots,"clear",{search:t.search}),f.createElementVNode("div",Cl,[f.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:a.visibleValues,isOpen:t.isOpen},()=>[f.withDirectives(f.createElementVNode("div",bl,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(a.visibleValues,(o,s)=>f.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(f.openBlock(),f.createElementBlock("span",{class:"multiselect__tag",key:s,onMousedown:e[1]||(e[1]=f.withModifiers(()=>{},["prevent"]))},[f.createElementVNode("span",{textContent:f.toDisplayString(t.getOptionLabel(o))},null,8,Sl),f.createElementVNode("i",{tabindex:"1",onKeypress:f.withKeys(f.withModifiers(l=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:f.withModifiers(l=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,Il)],32))])),256))],512),[[f.vShow,a.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>r.limit?f.renderSlot(t.$slots,"limit",{key:0},()=>[f.createElementVNode("strong",{class:"multiselect__strong",textContent:f.toDisplayString(r.limitText(t.internalValue.length-r.limit))},null,8,Ol)]):f.createCommentVNode("v-if",!0)]),f.createVNode(f.Transition,{name:"multiselect__loading"},{default:f.withCtx(()=>[f.renderSlot(t.$slots,"loading",{},()=>[f.withDirectives(f.createElementVNode("div",Tl,null,512),[[f.vShow,r.loading]])])]),_:3}),t.searchable?(f.openBlock(),f.createElementBlock("input",{key:0,ref:"search",name:r.name,id:t.id,type:"text",autocomplete:"off",spellcheck:r.spellcheck,placeholder:t.placeholder,required:a.isRequired,style:f.normalizeStyle(a.inputStyle),value:t.search,disabled:r.disabled,tabindex:r.tabindex,"aria-label":r.name+"-searchbox",onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=f.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=f.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=f.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=f.withKeys(f.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=f.withKeys(f.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=f.withKeys(f.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=f.withKeys(f.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,Nl)):f.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(f.openBlock(),f.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=f.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[f.renderSlot(t.$slots,"singleLabel",{option:a.singleValue},()=>[f.createTextVNode(f.toDisplayString(t.currentOptionLabel),1)])],32)):f.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(f.openBlock(),f.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=f.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[f.renderSlot(t.$slots,"placeholder",{},()=>[f.createTextVNode(f.toDisplayString(t.placeholder),1)])],32)):f.createCommentVNode("v-if",!0)],512),(f.openBlock(),f.createBlock(f.Teleport,{to:"body",disabled:!r.useTeleport},[f.createVNode(f.Transition,{name:"multiselect"},{default:f.withCtx(()=>[t.isOpen&&i.ready?(f.openBlock(),f.createElementBlock("div",{key:0,class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=f.withModifiers(()=>{},["prevent"])),style:f.normalizeStyle([i.dropdownStyles,{maxHeight:t.optimizedHeight+"px"}]),ref:"list"},[f.createElementVNode("ul",{class:"multiselect__content",style:f.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+t.id,"aria-multiselectable":t.multiple},[f.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(f.openBlock(),f.createElementBlock("li",Bl,[f.createElementVNode("span",Rl,[f.renderSlot(t.$slots,"maxElements",{},()=>[f.createTextVNode("Maximum of "+f.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):f.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(t.filteredOptions,(o,s)=>(f.openBlock(),f.createElementBlock("li",{class:"multiselect__element",key:s,"aria-selected":t.isSelected(o),id:t.id+"-"+s,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",{key:0,class:f.normalizeClass([t.optionHighlight(s,o),"multiselect__option"]),onClick:f.withModifiers(l=>t.select(o),["stop"]),onMouseenter:f.withModifiers(l=>t.pointerSet(s),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[f.renderSlot(t.$slots,"option",{option:o,search:t.search,index:s},()=>[f.createElementVNode("span",null,f.toDisplayString(t.getOptionLabel(o)),1)])],42,kl)),o&&(o.$isLabel||o.$isDisabled)?(f.openBlock(),f.createElementBlock("span",{key:1,"data-select":t.groupSelect&&a.selectGroupLabelText,"data-deselect":t.groupSelect&&a.deselectGroupLabelText,class:f.normalizeClass([t.groupHighlight(s,o),"multiselect__option"]),onMouseenter:f.withModifiers(l=>t.groupSelect&&t.pointerSet(s),["self"]),onMousedown:f.withModifiers(l=>t.selectGroup(o),["prevent"])},[f.renderSlot(t.$slots,"option",{option:o,search:t.search,index:s},()=>[f.createElementVNode("span",null,f.toDisplayString(t.getOptionLabel(o)),1)])],42,Ml)):f.createCommentVNode("v-if",!0)],8,Pl))),128)):f.createCommentVNode("v-if",!0),f.withDirectives(f.createElementVNode("li",null,[f.createElementVNode("span",Ll,[f.renderSlot(t.$slots,"noResult",{search:t.search},()=>[e[20]||(e[20]=f.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[f.vShow,r.showNoResults&&t.filteredOptions.length===0&&t.search&&!r.loading]]),f.withDirectives(f.createElementVNode("li",null,[f.createElementVNode("span",Fl,[f.renderSlot(t.$slots,"noOptions",{},()=>[e[21]||(e[21]=f.createTextVNode("List is empty."))])])],512),[[f.vShow,r.showNoOptions&&(t.options.length===0||a.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!r.loading]]),f.renderSlot(t.$slots,"afterList")],12,Dl)],36)):f.createCommentVNode("v-if",!0)]),_:3})],8,["disabled"]))],42,Al)}ua.render=Vl;const Ul={class:"dsg-input--label-wrapper block"},$l=["onMousedown"],Hl={class:"option-label"},Gl={key:0,class:"dsg-input-select--error-wrapper"},zl=f.defineComponent({__name:"DsgInputSelect",props:f.mergeModels({options:{default:()=>[]},multiple:{type:Boolean,default:!1},fetchOnLoad:{type:Boolean,default:!1},getUrl:{},extraParams:{default:()=>({})},strategy:{default:"absolute"},placeholder:{},icon:{default:null},label:{default:"label"},showLabels:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},trackBy:{default:"id"},contentMaxWidth:{default:"24rem"},itemLabel:{default:"label"},allowEmpty:{type:Boolean,default:!1},validateOnLoad:{type:Boolean,default:!0},selectLabel:{default:""},selectedLabel:{default:""},errors:{default:()=>[]},scrollBind:{default:()=>document.body},size:{default:"md"}},{modelValue:{},modelModifiers:{},single:{},singleModifiers:{}}),emits:f.mergeModels(["update:modelValue","update:model-value","search-change","select","open","close","remove","tag"],["update:modelValue","update:single"]),setup(t,{emit:e}){const r=f.useModel(t,"modelValue"),n=f.useModel(t,"single"),i=f.ref(t.options),a=f.useTemplateRef("multiselectEl"),o=f.ref(!1),s=f.ref([]);f.computed(()=>s.value.length>0);const l=f.computed(()=>[...Array.isArray(t.errors)?t.errors:[t.errors],...s.value].filter((C,b,O)=>b===O.indexOf(C))),u=f.computed(()=>["dsg-input-select",`dsg-input-select--${t.size}`,`dsg-input-select--${t.strategy}`,`dsg-input-select--${l.value.length>0?"has-errors":"no-errors"}`].join(" ").replace(/\s+/g," ").trim()),c=()=>{p()},d=y=>{p()};f.watchEffect(()=>{}),f.watch(()=>t.options,y=>{Array.isArray(y)?i.value=y:console.warn("Options should be an array.")});const v=f.ref(null);f.watch(()=>t.scrollBind,async y=>{await f.nextTick(),v.value&&typeof v.value.removeEventListener=="function"&&v.value.removeEventListener("scroll",d);const C=O=>{const P=window.getComputedStyle(O),H=["auto","scroll","overlay"].includes(P.overflow)||["auto","scroll","overlay"].includes(P.overflowY)||["auto","scroll","overlay"].includes(P.overflowX),M=O.scrollHeight>O.clientHeight||O.scrollWidth>O.clientWidth;return H&&M};let b=null;y?b=C(y)?y:window:b=window,b&&typeof b.addEventListener=="function"?(b.addEventListener("scroll",d),v.value=b):v.value=null},{immediate:!0});const h=e,p=()=>{if(a.value)if(o.value===!0){const y=a.value.$el.getBoundingClientRect(),C=a.value.$el.offsetHeight,b=window.innerHeight;f.nextTick(()=>{const O=a.value.$el.querySelector(".multiselect__content-wrapper");O.style.display="block";const P=O.offsetHeight;if(t.strategy==="fixed"){O.style.left=y.left+"px",O.style.right="auto",O.style.top="auto",O.style.bottom="auto";const H=y.width,M=window.innerWidth-y.left,V=H>M?Math.min(300,M-16):H;O.style.width=`${V}px`;const z=b-y.bottom,he=y.top,He=P+8;(z<He&&he>z?"top":"bottom")==="top"?O.style.bottom=`${b-y.top+4}px`:O.style.top=`${y.bottom+4}px`;let rt=!1;if(v.value===window)rt=y.top<b&&y.bottom>0&&y.left<window.innerWidth&&y.right>0;else if(v.value){const nt=v.value.getBoundingClientRect();rt=y.top<nt.bottom&&y.bottom>nt.top&&y.left<nt.right&&y.right>nt.left}else rt=y.top<b&&y.bottom>0&&y.left<window.innerWidth&&y.right>0;if(!rt){O.style.display="none";return}O.style.display="block"}else O.style.left="0",O.style.right="auto",O.style.width="auto",O.style.maxWidth=t.contentMaxWidth,(y.bottom+P+C+2>b?"top":"bottom")==="top"?O.style.bottom=`${C+4}px`:O.style.top=`${C+4}px`})}else{const y=a.value.$refs.list;y&&(y.style.display="none",y.style.top="auto",y.style.bottom="auto",y.style.left="auto",y.style.right="auto")}},g=y=>{o.value=!0,p(),h("open",y)},w=(y,C)=>{o.value=!1,p(),h("close",y,C)},_=L.useDebounceFn(y=>{t.getUrl&&y.length>2&&L.axios.get(t.getUrl,{params:{term:y,...t.extraParams}}).then(C=>{i.value=C.data}),h("search-change",y)},300),m=(y,C=!0)=>{if(s.value=[],t.allowEmpty===!1&&(y==null||Array.isArray(y)&&y.length===0)&&s.value.push(`${t.label} is required.`),C===!0)try{E(y),h("update:modelValue",y),h("update:model-value",y)}catch(b){console.log(b)}},E=y=>{y?n.value=y[t.trackBy]||y:n.value=null};return f.onMounted(()=>{window.addEventListener("resize",c),t.getUrl&&t.options.length===0&&t.fetchOnLoad&&L.axios.get(t.getUrl).then(y=>{i.value=y.data}).catch(y=>{console.error("Error fetching options:",y)}),t.validateOnLoad&&m(r.value,!1)}),f.onUnmounted(()=>{window.removeEventListener("resize",c),v.value&&typeof v.value.removeEventListener=="function"&&v.value.removeEventListener("scroll",d)}),(y,C)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(u.value),ref:"dsgInputSelectEl"},[f.createElementVNode("div",Ul,[y.label?(f.openBlock(),f.createBlock(Gi._sfc_main,{key:0,label:y.label,size:"sm"},null,8,["label"])):f.createCommentVNode("",!0)]),f.createVNode(f.unref(ua),f.mergeProps({ref:"multiselectEl",modelValue:r.value,"onUpdate:modelValue":[C[0]||(C[0]=b=>r.value=b),C[3]||(C[3]=b=>m(b,!0))],options:i.value,multiple:y.multiple,onSearchChange:f.unref(_),onOpen:C[1]||(C[1]=b=>g(b)),onClose:C[2]||(C[2]=(b,O)=>w(b,O)),onRemove:C[4]||(C[4]=(b,O)=>h("remove",b,O)),onTag:C[5]||(C[5]=(b,O)=>h("tag",b,O)),placeholder:y.placeholder,label:y.itemLabel,"track-by":y.trackBy,"close-on-select":y.closeOnSelect,"show-labels":y.showLabels,disabled:y.disabled,"allow-empty":y.allowEmpty,"select-label":y.selectLabel,"preserve-search":!0,"selected-label":y.selectedLabel,class:["dsg-input--multiselect",{"dsg-input--multiselect--has-errors":y.errors&&y.errors.length,"dsg-input--multiselect--disabled":y.disabled}]},y.$attrs),{selection:f.withCtx(()=>[y.icon?(f.openBlock(),f.createBlock(L._sfc_main,{key:0,icon:y.icon,size:"md",class:"dsg-untitled-icon text-gray-500 transition-all duration-200 ease-in-out inline-block mr-2"},null,8,["icon"])):f.createCommentVNode("",!0)]),caret:f.withCtx(({toggle:b})=>[f.createElementVNode("div",{onMousedown:f.withModifiers(O=>b(),["prevent","stop"]),class:"multiselect__select"},[f.createVNode(L._sfc_main,{icon:"chevron-down"})],40,$l)]),option:f.withCtx(({option:b})=>[f.createElementVNode("span",Hl,f.toDisplayString(b[y.itemLabel]),1),f.createVNode(L._sfc_main,{icon:"check",size:"sm",class:"option-icon text-brand-600"})]),_:1},16,["modelValue","options","multiple","onSearchChange","placeholder","label","track-by","close-on-select","show-labels","disabled","allow-empty","select-label","selected-label","class"]),l.value&&l.value.length?(f.openBlock(),f.createElementBlock("div",Gl,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(l.value,(b,O)=>(f.openBlock(),f.createElementBlock("span",{class:"dsg-input--error",key:O},f.toDisplayString(b),1))),128))])):f.createCommentVNode("",!0)],2))}}),Wl=["name"],Xl=["selected"],jl=["value","selected"],Yl=f.defineComponent({__name:"DsgInputDropdown",props:f.mergeModels({name:{default:""},placeholder:{default:""},classes:{default:""},options:{default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=f.useModel(t,"modelValue");return(r,n)=>f.withDirectives((f.openBlock(),f.createElementBlock("select",{class:f.normalizeClass(["dsg-input-dropdown",r.classes]),name:r.name,"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i)},[r.placeholder?(f.openBlock(),f.createElementBlock("option",{key:0,value:"",disabled:"",selected:e.value===""},f.toDisplayString(r.placeholder),9,Xl)):f.createCommentVNode("",!0),(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.options,(i,a)=>(f.openBlock(),f.createElementBlock("option",{key:a,value:i.value,selected:e.value===i.value},f.toDisplayString(i.label),9,jl))),128))],10,Wl)),[[f.vModelSelect,e.value]])}}),Kl=["href","title","target"],Zl={key:0,class:"dsg-link--label"},ql=f.defineComponent({__name:"DsgLink",props:{label:{default:"Link"},href:{default:""},uriTarget:{default:"_self"},size:{default:"md"},classes:{default:""},preventDefault:{type:Boolean,default:!1}},emits:["link-clicked"],setup(t,{emit:e}){const r=["dsg-link","dsg-link--"+t.size,t.classes].join(" "),n=e,i=a=>{t.preventDefault&&a.preventDefault(),n("link-clicked",a)};return(a,o)=>(f.openBlock(),f.createElementBlock("a",{href:a.href,title:"Link: "+a.label,target:a.uriTarget,class:f.normalizeClass(f.unref(r)),onClick:i},[f.renderSlot(a.$slots,"dsg-link-content",{},()=>[a.label?(f.openBlock(),f.createElementBlock("span",Zl,f.toDisplayString(a.label),1)):f.createCommentVNode("",!0)])],10,Kl))}}),Ql={key:1,class:"dsg-modal__header-text"},Jl={key:0,class:"dsg-modal__header-title"},eu={key:1,class:"dsg-modal__header-description"},tu={key:1,class:"dsg-modal__body"},fa=f.defineComponent({__name:"DsgModal",props:{title:{default:""},description:{default:""},miscIcon:{default:null},hasClosedButton:{type:Boolean,default:!0},initialOpen:{type:Boolean,default:!1},closeClickBackground:{type:Boolean,default:!1},wrapperClasses:{default:""},width:{default:400},type:{default:"left"},footerType:{default:"horizontal-even"},primaryButton:{type:[Object,Boolean],default:!1},secondaryButton:{type:[Object,Boolean],default:!1},hasBackground:{type:Boolean,default:!0}},emits:["before-open","after-open","before-close","after-close","secondary-button-clicked","primary-button-clicked"],setup(t,{expose:e,emit:r}){const n=r,i=f.ref(t.initialOpen),a=()=>{n("before-open"),i.value=!0,n("after-open")},o=()=>{n("before-close"),i.value=!1,n("after-close")},s=()=>{i.value&&t.closeClickBackground&&o()},l=()=>{n("secondary-button-clicked")},u=()=>{n("primary-button-clicked")};return e({open:a,close:o,secondaryButtonClicked:l,primaryButtonClicked:u}),(c,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["dsg-modal",`dsg-modal--${i.value?"open":"closed"}`])},[c.hasBackground?(f.openBlock(),f.createElementBlock("div",{key:0,class:"dsg-modal__background",onDblclick:s},null,32)):f.createCommentVNode("",!0),f.createElementVNode("div",{class:f.normalizeClass(["dsg-modal__wrapper",c.wrapperClasses]),style:f.normalizeStyle({width:c.width})},[c.hasClosedButton?(f.openBlock(),f.createBlock(L._sfc_main$3,{key:0,theme:"gray-tertiary",iconBefore:"x",size:"lg",class:f.normalizeClass(["dsg-modal__close-button",`dsg-modal__close-button--${c.type}`]),onClick:o},null,8,["class"])):f.createCommentVNode("",!0),f.renderSlot(c.$slots,"dsg-modal__header",{},()=>[f.createElementVNode("div",{class:f.normalizeClass(["dsg-modal__header",[`dsg-modal__header--${c.type}`,`${c.$slots.default?"dsg-modal__header--with-body":""}`].join(" ")])},[c.miscIcon?(f.openBlock(),f.createBlock(Ct,f.normalizeProps(f.mergeProps({key:0},c.miscIcon)),null,16)):f.createCommentVNode("",!0),c.title||c.description?(f.openBlock(),f.createElementBlock("div",Ql,[c.title?(f.openBlock(),f.createElementBlock("h3",Jl,f.toDisplayString(c.title),1)):f.createCommentVNode("",!0),c.description?(f.openBlock(),f.createElementBlock("p",eu,f.toDisplayString(c.description),1)):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)],2)]),c.$slots.default?(f.openBlock(),f.createElementBlock("div",tu,[f.renderSlot(c.$slots,"default")])):f.createCommentVNode("",!0),f.renderSlot(c.$slots,"dsg-modal__footer",{},()=>[f.createElementVNode("div",{class:f.normalizeClass(["dsg-modal__footer",`dsg-modal__footer--${c.footerType}`])},[c.secondaryButton?(f.openBlock(),f.createBlock(L._sfc_main$3,f.mergeProps({key:0},c.secondaryButton,{onButtonClicked:l,classes:"dsg-modal__secondary-button"}),null,16)):f.createCommentVNode("",!0),c.primaryButton?(f.openBlock(),f.createBlock(L._sfc_main$3,f.mergeProps({key:1},c.primaryButton,{onButtonClicked:u,classes:"dsg-dsg-modal__primary-button"}),null,16)):f.createCommentVNode("",!0)],2)])],6)],2))}}),ru={class:"dsg-tag--before"},nu={class:"dsg-tag--label"},iu={class:"dsg-tag--after"},au={key:0,class:"dsg-tag--count"},ou=f.defineComponent({__name:"DsgTag",props:{label:{default:""},size:{default:"md"},hasClose:{type:Boolean,default:!1},tagCount:{default:null},avatarUri:{default:""},hasCheckbox:{type:Boolean,default:!1},dotHex:{default:null},destroyOnClose:{type:Boolean,default:!1},value:{default:null},classes:{default:""}},emits:["before-checked","after-checked","before-hide","after-hide","before-destroy","after-destroy"],setup(t,{expose:e,emit:r}){const n=["dsg-tag",`dsg-tag--${t.size}`,`dsg-tag--${t.hasClose?"has-close":"no-close"}`,`dsg-tag--${t.tagCount?"has-count":"no-count"}`,`dsg-tag--${t.avatarUri?"has-avatar":"no-avatar"}`,`dsg-tag--${t.hasCheckbox?"has-checkbox":"no-checkbox"}`,t.classes].join(" "),i=()=>`tag-${t.size}`;t.hasClose&&t.tagCount!==null&&new L.DsgPropSyntaxWarning("DsgTag: 'hasClose' and 'tagCount' props are mutually exclusive. Please use only one of them."),t.avatarUri&&t.dotHex&&new L.DsgPropSyntaxWarning("DsgTag: 'avatarUri' and 'dotHex' props are mutually exclusive. Please use only one of them.");const a=r,o=f.useTemplateRef("dsgTag"),s=g=>{t.destroyOnClose?(a("before-destroy",o.value),o.value?.remove(),a("after-destroy")):(a("before-hide",o.value),o.value&&(o.value.style.display="none"),a("after-hide",o.value))},l=(g,w)=>{a("before-checked",g,w)},u=g=>{a("after-checked",g)},c=f.ref(t.tagCount),d=g=>{c.value=g},v=f.ref(t.value);return e({setTagCount:d,setValue:g=>{v.value=g},getValue:()=>v.value}),(g,w)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(n)),ref:"dsgTag"},[f.createElementVNode("div",ru,[g.hasCheckbox?(f.openBlock(),f.createBlock(L._sfc_main$2,{key:0,class:"dsg-tag--checkbox",size:i(),"no-focus":!0,onBeforeChecked:l,onAfterChecked:u},null,8,["size"])):f.createCommentVNode("",!0),g.avatarUri?(f.openBlock(),f.createBlock(or,{key:1,"profile-uri":g.avatarUri,size:"xxs","no-focus":!0,class:"dsg-tag--avatar"},null,8,["profile-uri"])):f.createCommentVNode("",!0),g.dotHex?(f.openBlock(),f.createElementBlock("span",{key:2,class:"dsg-tag--dot",style:f.normalizeStyle({backgroundColor:g.dotHex})},null,4)):f.createCommentVNode("",!0)]),f.renderSlot(g.$slots,"dsg-tag--label",{},()=>[f.createElementVNode("span",nu,f.toDisplayString(g.label),1)]),f.createElementVNode("div",iu,[c.value&&c.value>0?(f.openBlock(),f.createElementBlock("div",au,f.toDisplayString(c.value),1)):f.createCommentVNode("",!0),g.hasClose?(f.openBlock(),f.createBlock(L._sfc_main,{key:1,icon:"x-close",class:"dsg-tag--close",onClick:s})):f.createCommentVNode("",!0)])],2))}}),su={class:"dsg-toggle--element"},lu=["checked","disabled"],uu={key:0,class:"dsg-toggle--label-wrapper"},fu=["innerHTML"],cu=["innerHTML"],du=f.defineComponent({__name:"DsgToggle",props:{modelValue:{type:Boolean,default:!1},size:{default:"md"},label:{default:""},subText:{default:""},disabled:{type:Boolean,default:!1},classes:{default:""}},emits:["before-toggle","after-toggle","update:modelValue"],setup(t,{expose:e,emit:r}){const n=["dsg-toggle",`dsg-toggle--${t.size}`,`dsg-toggle--${t.disabled?"disabled":"enabled"}`,`dsg-toggle--${t.label.length?"has-label":"no-label"}`,`dsg-toggle--${t.subText.length?"has-subtext":"no-subtext"}`,t.classes].join(" "),i=f.ref(t.modelValue),a=()=>{t.disabled||(l("before-toggle",i.value,!i.value),i.value=!i.value,l("after-toggle",i.value),l("update:modelValue",i.value))},o=f.useTemplateRef("toggleCheckbox"),s=()=>{o.value&&o.value.focus(),t.disabled||a()},l=r;return e({set:c=>{i.value=c}}),(c,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(n)),onClick:s},[f.createElementVNode("label",su,[f.createElementVNode("input",{type:"checkbox",class:"dsg-toggle--checkbox",checked:i.value,onChange:a,title:"checkbox",ref:"toggleCheckbox",disabled:c.disabled},null,40,lu),d[0]||(d[0]=f.createElementVNode("span",{class:"dsg-toggle--slider"},null,-1))]),c.label.length?(f.openBlock(),f.createElementBlock("div",uu,[f.renderSlot(c.$slots,"dsg-toggle--label",{},()=>[f.createElementVNode("h3",{class:"dsg-toggle--label",innerHTML:c.label},null,8,fu)]),c.label.length&&c.subText.length?f.renderSlot(c.$slots,"dsg-toggle--subtext",{key:0},()=>[f.createElementVNode("p",{class:"dsg-toggle--subtext",innerHTML:c.subText},null,8,cu)]):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)],2))}}),hu={class:"dsg-progress"},vu={class:"dsg-progress--inner"},pu={key:0,class:"text-sm text-gray-700 min-w-[60px] text-right"},gu={key:0},xu={key:1},yu={key:2},mu=f.defineComponent({__name:"DsgProgress",props:{value:{},max:{},showText:{},textSuffix:{}},setup(t){const e=t,r=f.computed(()=>{const n=e.value/e.max*100;return isNaN(n)?0:Math.min(Math.max(n,0),100)});return(n,i)=>(f.openBlock(),f.createElementBlock("div",hu,[f.createElementVNode("div",vu,[f.createElementVNode("div",{class:"dsg-progress--inner--progress",style:f.normalizeStyle({width:r.value+"%"})},null,4)]),n.showText!=="none"?(f.openBlock(),f.createElementBlock("div",pu,[n.showText==="number"?(f.openBlock(),f.createElementBlock("span",gu,f.toDisplayString(n.value)+"/"+f.toDisplayString(n.max),1)):n.showText==="percentage"?(f.openBlock(),f.createElementBlock("span",xu,f.toDisplayString(r.value.toFixed(2))+"%",1)):f.createCommentVNode("",!0),n.textSuffix?(f.openBlock(),f.createElementBlock("span",yu," "+f.toDisplayString(n.textSuffix),1)):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)]))}});function wu(t,e){var r=Object.setPrototypeOf;r?r(t,e):t.__proto__=e}function _u(t,e){e===void 0&&(e=t.constructor);var r=Error.captureStackTrace;r&&r(t,e)}var Eu=function(){var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},t(r,n)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Au=function(t){Eu(e,t);function e(r,n){var i=this.constructor,a=t.call(this,r,n)||this;return Object.defineProperty(a,"name",{value:i.name,enumerable:!1,configurable:!0}),wu(a,i.prototype),_u(a),a}return e}(Error),Cu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),be=function(t){Cu(e,t);function e(r){r===void 0&&(r=void 0);var n=t.call(this,r)||this;return n.message=r,n}return e.prototype.getKind=function(){var r=this.constructor;return r.kind},e.kind="Exception",e}(Au),bu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fe=function(t){bu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArgumentException",e}(be),Su=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),F=function(t){Su(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e}(be),Iu=function(){function t(e){if(this.binarizer=e,e===null)throw new F("Binarizer must be non-null.")}return t.prototype.getWidth=function(){return this.binarizer.getWidth()},t.prototype.getHeight=function(){return this.binarizer.getHeight()},t.prototype.getBlackRow=function(e,r){return this.binarizer.getBlackRow(e,r)},t.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},t.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},t.prototype.crop=function(e,r,n,i){var a=this.binarizer.getLuminanceSource().crop(e,r,n,i);return new t(this.binarizer.createBinarizer(a))},t.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},t.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new t(this.binarizer.createBinarizer(e))},t.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new t(this.binarizer.createBinarizer(e))},t.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},t}(),Ou=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),me=function(t){Ou(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(be),Tu=function(){function t(e){this.source=e}return t.prototype.getLuminanceSource=function(){return this.source},t.prototype.getWidth=function(){return this.source.getWidth()},t.prototype.getHeight=function(){return this.source.getHeight()},t}(),ne=function(){function t(){}return t.arraycopy=function(e,r,n,i,a){for(;a--;)n[i++]=e[r++]},t.currentTimeMillis=function(){return Date.now()},t}(),Nu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),zn=function(t){Nu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e}(be),Du=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),xi=function(t){Du(e,t);function e(r,n){r===void 0&&(r=void 0),n===void 0&&(n=void 0);var i=t.call(this,n)||this;return i.index=r,i.message=n,i}return e.kind="ArrayIndexOutOfBoundsException",e}(zn),Bu=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},De=function(){function t(){}return t.fill=function(e,r){for(var n=0,i=e.length;n<i;n++)e[n]=r},t.fillWithin=function(e,r,n,i){t.rangeCheck(e.length,r,n);for(var a=r;a<n;a++)e[a]=i},t.rangeCheck=function(e,r,n){if(r>n)throw new F("fromIndex("+r+") > toIndex("+n+")");if(r<0)throw new xi(r);if(n>e)throw new xi(n)},t.asList=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e},t.create=function(e,r,n){var i=Array.from({length:e});return i.map(function(a){return Array.from({length:r}).fill(n)})},t.createInt32Array=function(e,r,n){var i=Array.from({length:e});return i.map(function(a){return Int32Array.from({length:r}).fill(n)})},t.equals=function(e,r){if(!e||!r||!e.length||!r.length||e.length!==r.length)return!1;for(var n=0,i=e.length;n<i;n++)if(e[n]!==r[n])return!1;return!0},t.hashCode=function(e){var r,n;if(e===null)return 0;var i=1;try{for(var a=Bu(e),o=a.next();!o.done;o=a.next()){var s=o.value;i=31*i+s}}catch(l){r={error:l}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},t.fillUint8Array=function(e,r){for(var n=0;n!==e.length;n++)e[n]=r},t.copyOf=function(e,r){return e.slice(0,r)},t.copyOfUint8Array=function(e,r){if(e.length<=r){var n=new Uint8Array(r);return n.set(e),n}return e.slice(0,r)},t.copyOfRange=function(e,r,n){var i=n-r,a=new Int32Array(i);return ne.arraycopy(e,r,a,0,i),a},t.binarySearch=function(e,r,n){n===void 0&&(n=t.numberComparator);for(var i=0,a=e.length-1;i<=a;){var o=a+i>>1,s=n(r,e[o]);if(s>0)i=o+1;else if(s<0)a=o-1;else return o}return-i-1},t.numberComparator=function(e,r){return e-r},t}(),G=function(){function t(){}return t.numberOfTrailingZeros=function(e){var r;if(e===0)return 32;var n=31;return r=e<<16,r!==0&&(n-=16,e=r),r=e<<8,r!==0&&(n-=8,e=r),r=e<<4,r!==0&&(n-=4,e=r),r=e<<2,r!==0&&(n-=2,e=r),n-(e<<1>>>31)},t.numberOfLeadingZeros=function(e){if(e===0)return 32;var r=1;return e>>>16||(r+=16,e<<=16),e>>>24||(r+=8,e<<=8),e>>>28||(r+=4,e<<=4),e>>>30||(r+=2,e<<=2),r-=e>>>31,r},t.toHexString=function(e){return e.toString(16)},t.toBinaryString=function(e){return String(parseInt(String(e),2))},t.bitCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e=e+(e>>>8),e=e+(e>>>16),e&63},t.truncDivision=function(e,r){return Math.trunc(e/r)},t.parseInt=function(e,r){return r===void 0&&(r=void 0),parseInt(e,r)},t.MIN_VALUE_32_BITS=-2147483648,t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}(),pe=function(){function t(e,r){e===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,r==null?this.bits=t.makeArray(e):this.bits=r)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>this.bits.length*32){var r=t.makeArray(e);ne.arraycopy(this.bits,0,r,0,this.bits.length),this.bits=r}},t.prototype.get=function(e){return(this.bits[Math.floor(e/32)]&1<<(e&31))!==0},t.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(e&31)},t.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(e&31)},t.prototype.getNextSet=function(e){var r=this.size;if(e>=r)return r;var n=this.bits,i=Math.floor(e/32),a=n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return r;a=n[i]}var s=i*32+G.numberOfTrailingZeros(a);return s>r?r:s},t.prototype.getNextUnset=function(e){var r=this.size;if(e>=r)return r;var n=this.bits,i=Math.floor(e/32),a=~n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return r;a=~n[i]}var s=i*32+G.numberOfTrailingZeros(a);return s>r?r:s},t.prototype.setBulk=function(e,r){this.bits[Math.floor(e/32)]=r},t.prototype.setRange=function(e,r){if(r<e||e<0||r>this.size)throw new F;if(r!==e){r--;for(var n=Math.floor(e/32),i=Math.floor(r/32),a=this.bits,o=n;o<=i;o++){var s=o>n?0:e&31,l=o<i?31:r&31,u=(2<<l)-(1<<s);a[o]|=u}}},t.prototype.clear=function(){for(var e=this.bits.length,r=this.bits,n=0;n<e;n++)r[n]=0},t.prototype.isRange=function(e,r,n){if(r<e||e<0||r>this.size)throw new F;if(r===e)return!0;r--;for(var i=Math.floor(e/32),a=Math.floor(r/32),o=this.bits,s=i;s<=a;s++){var l=s>i?0:e&31,u=s<a?31:r&31,c=(2<<u)-(1<<l)&4294967295;if((o[s]&c)!==(n?c:0))return!1}return!0},t.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},t.prototype.appendBits=function(e,r){if(r<0||r>32)throw new F("Num bits must be between 0 and 32");this.ensureCapacity(this.size+r);for(var n=r;n>0;n--)this.appendBit((e>>n-1&1)===1)},t.prototype.appendBitArray=function(e){var r=e.size;this.ensureCapacity(this.size+r);for(var n=0;n<r;n++)this.appendBit(e.get(n))},t.prototype.xor=function(e){if(this.size!==e.size)throw new F("Sizes don't match");for(var r=this.bits,n=0,i=r.length;n<i;n++)r[n]^=e.bits[n]},t.prototype.toBytes=function(e,r,n,i){for(var a=0;a<i;a++){for(var o=0,s=0;s<8;s++)this.get(e)&&(o|=1<<7-s),e++;r[n+a]=o}},t.prototype.getBitArray=function(){return this.bits},t.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),r=Math.floor((this.size-1)/32),n=r+1,i=this.bits,a=0;a<n;a++){var o=i[a];o=o>>1&1431655765|(o&1431655765)<<1,o=o>>2&858993459|(o&858993459)<<2,o=o>>4&252645135|(o&252645135)<<4,o=o>>8&16711935|(o&16711935)<<8,o=o>>16&65535|(o&65535)<<16,e[r-a]=o}if(this.size!==n*32){for(var s=n*32-this.size,l=e[0]>>>s,a=1;a<n;a++){var u=e[a];l|=u<<32-s,e[a-1]=l,l=u>>>s}e[n-1]=l}this.bits=e},t.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.size===r.size&&De.equals(this.bits,r.bits)},t.prototype.hashCode=function(){return 31*this.size+De.hashCode(this.bits)},t.prototype.toString=function(){for(var e="",r=0,n=this.size;r<n;r++)(r&7)===0&&(e+=" "),e+=this.get(r)?"X":".";return e},t.prototype.clone=function(){return new t(this.size,this.bits.slice())},t}(),Sn;(function(t){t[t.OTHER=0]="OTHER",t[t.PURE_BARCODE=1]="PURE_BARCODE",t[t.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",t[t.TRY_HARDER=3]="TRY_HARDER",t[t.CHARACTER_SET=4]="CHARACTER_SET",t[t.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",t[t.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",t[t.ASSUME_GS1=7]="ASSUME_GS1",t[t.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",t[t.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",t[t.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"})(Sn||(Sn={}));const le=Sn;var Ru=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),R=function(t){Ru(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(be),Pu=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Z;(function(t){t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"})(Z||(Z={}));var de=function(){function t(e,r,n){for(var i,a,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];this.valueIdentifier=e,this.name=n,typeof r=="number"?this.values=Int32Array.from([r]):this.values=r,this.otherEncodingNames=o,t.VALUE_IDENTIFIER_TO_ECI.set(e,this),t.NAME_TO_ECI.set(n,this);for(var l=this.values,u=0,c=l.length;u!==c;u++){var d=l[u];t.VALUES_TO_ECI.set(d,this)}try{for(var v=Pu(o),h=v.next();!h.done;h=v.next()){var p=h.value;t.NAME_TO_ECI.set(p,this)}}catch(g){i={error:g}}finally{try{h&&!h.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}}return t.prototype.getValueIdentifier=function(){return this.valueIdentifier},t.prototype.getName=function(){return this.name},t.prototype.getValue=function(){return this.values[0]},t.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new R("incorect value");var r=t.VALUES_TO_ECI.get(e);if(r===void 0)throw new R("incorect value");return r},t.getCharacterSetECIByName=function(e){var r=t.NAME_TO_ECI.get(e);if(r===void 0)throw new R("incorect value");return r},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.getName()===r.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(Z.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(Z.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(Z.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(Z.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(Z.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(Z.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(Z.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(Z.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(Z.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(Z.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(Z.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(Z.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(Z.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(Z.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(Z.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(Z.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(Z.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(Z.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(Z.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(Z.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(Z.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(Z.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(Z.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(Z.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(Z.Big5,28,"Big5"),t.GB18030=new t(Z.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(Z.EUC_KR,30,"EUC_KR","EUC-KR"),t}(),ku=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Nr=function(t){ku(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e}(be),Ye=function(){function t(){}return t.decode=function(e,r){var n=this.encodingName(r);return this.customDecoder?this.customDecoder(e,n):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(n)?this.decodeFallback(e,n):new TextDecoder(n).decode(e)},t.shouldDecodeOnFallback=function(e){return!t.isBrowser()&&e==="ISO-8859-1"},t.encode=function(e,r){var n=this.encodingName(r);return this.customEncoder?this.customEncoder(e,n):typeof TextEncoder>"u"?this.encodeFallback(e):new TextEncoder().encode(e)},t.isBrowser=function(){return typeof window<"u"&&{}.toString.call(window)==="[object Window]"},t.encodingName=function(e){return typeof e=="string"?e:e.getName()},t.encodingCharacterSet=function(e){return e instanceof de?e:de.getCharacterSetECIByName(e)},t.decodeFallback=function(e,r){var n=this.encodingCharacterSet(r);if(t.isDecodeFallbackSupported(n)){for(var i="",a=0,o=e.length;a<o;a++){var s=e[a].toString(16);s.length<2&&(s="0"+s),i+="%"+s}return decodeURIComponent(i)}if(n.equals(de.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new Nr("Encoding "+this.encodingName(r)+" not supported by fallback.")},t.isDecodeFallbackSupported=function(e){return e.equals(de.UTF8)||e.equals(de.ISO8859_1)||e.equals(de.ASCII)},t.encodeFallback=function(e){for(var r=btoa(unescape(encodeURIComponent(e))),n=r.split(""),i=[],a=0;a<n.length;a++)i.push(n[a].charCodeAt(0));return new Uint8Array(i)},t}(),re=function(){function t(){}return t.castAsNonUtf8Char=function(e,r){r===void 0&&(r=null);var n=r?r.getName():this.ISO88591;return Ye.decode(new Uint8Array([e]),n)},t.guessEncoding=function(e,r){if(r!=null&&r.get(le.CHARACTER_SET)!==void 0)return r.get(le.CHARACTER_SET).toString();for(var n=e.length,i=!0,a=!0,o=!0,s=0,l=0,u=0,c=0,d=0,v=0,h=0,p=0,g=0,w=0,_=0,m=e.length>3&&e[0]===239&&e[1]===187&&e[2]===191,E=0;E<n&&(i||a||o);E++){var y=e[E]&255;o&&(s>0?(y&128)===0?o=!1:s--:(y&128)!==0&&((y&64)===0?o=!1:(s++,(y&32)===0?l++:(s++,(y&16)===0?u++:(s++,(y&8)===0?c++:o=!1))))),i&&(y>127&&y<160?i=!1:y>159&&(y<192||y===215||y===247)&&_++),a&&(d>0?y<64||y===127||y>252?a=!1:d--:y===128||y===160||y>239?a=!1:y>160&&y<224?(v++,p=0,h++,h>g&&(g=h)):y>127?(d++,h=0,p++,p>w&&(w=p)):(h=0,p=0))}return o&&s>0&&(o=!1),a&&d>0&&(a=!1),o&&(m||l+u+c>0)?t.UTF8:a&&(t.ASSUME_SHIFT_JIS||g>=3||w>=3)?t.SHIFT_JIS:i&&a?g===2&&v===2||_*10>=n?t.SHIFT_JIS:t.ISO88591:i?t.ISO88591:a?t.SHIFT_JIS:o?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.format=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=-1;function a(s,l,u,c,d,v){if(s==="%%")return"%";if(r[++i]!==void 0){s=c?parseInt(c.substr(1)):void 0;var h=d?parseInt(d.substr(1)):void 0,p;switch(v){case"s":p=r[i];break;case"c":p=r[i][0];break;case"f":p=parseFloat(r[i]).toFixed(s);break;case"p":p=parseFloat(r[i]).toPrecision(s);break;case"e":p=parseFloat(r[i]).toExponential(s);break;case"x":p=parseInt(r[i]).toString(h||16);break;case"d":p=parseFloat(parseInt(r[i],h||10).toPrecision(s)).toFixed(0);break}p=typeof p=="object"?JSON.stringify(p):(+p).toString(h);for(var g=parseInt(u),w=u&&u[0]+""=="0"?"0":" ";p.length<g;)p=l!==void 0?p+w:w+p;return p}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(o,a)},t.getBytes=function(e,r){return Ye.encode(e,r)},t.getCharCode=function(e,r){return r===void 0&&(r=0),e.charCodeAt(r)},t.getCharAt=function(e){return String.fromCharCode(e)},t.SHIFT_JIS=de.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=de.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=de.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t}(),J=function(){function t(e){e===void 0&&(e=""),this.value=e}return t.prototype.enableDecoding=function(e){return this.encoding=e,this},t.prototype.append=function(e){return typeof e=="string"?this.value+=e.toString():this.encoding?this.value+=re.castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},t.prototype.appendChars=function(e,r,n){for(var i=r;r<r+n;i++)this.append(e[i]);return this},t.prototype.length=function(){return this.value.length},t.prototype.charAt=function(e){return this.value.charAt(e)},t.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},t.prototype.setCharAt=function(e,r){this.value=this.value.substr(0,e)+r+this.value.substr(e+1)},t.prototype.substring=function(e,r){return this.value.substring(e,r)},t.prototype.setLengthToZero=function(){this.value=""},t.prototype.toString=function(){return this.value},t.prototype.insert=function(e,r){this.value=this.value.substr(0,e)+r+this.value.substr(e+r.length)},t}(),Ze=function(){function t(e,r,n,i){if(this.width=e,this.height=r,this.rowSize=n,this.bits=i,r==null&&(r=e),this.height=r,e<1||r<1)throw new F("Both dimensions must be greater than 0");n==null&&(n=Math.floor((e+31)/32)),this.rowSize=n,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return t.parseFromBooleanArray=function(e){for(var r=e.length,n=e[0].length,i=new t(n,r),a=0;a<r;a++)for(var o=e[a],s=0;s<n;s++)o[s]&&i.set(s,a);return i},t.parseFromString=function(e,r,n){if(e===null)throw new F("stringRepresentation cannot be null");for(var i=new Array(e.length),a=0,o=0,s=-1,l=0,u=0;u<e.length;)if(e.charAt(u)===`
|
|
12
|
+
`,io=["href","title"],ao={class:"dsg-avatar--image-wrapper",tabindex:"0",ref:"avatarImageWrapperEl"},oo=["src","alt"],so={key:1,class:"dsg-avatar--initials"},lo={class:"dsg-avatar--status"},uo={key:0,class:"dsg-avatar--activity"},fo=["innerHTML"],co={key:2,class:"dsg-avatar--logo"},ho=["src","alt"],vo={key:0,class:"dsg-avatar--info"},po={class:"dsg-avatar--title"},go={class:"dsg-avatar--subtext"},or=f.defineComponent({__name:"DsgAvatar",props:{profileUri:{default:""},fullName:{default:""},size:{default:"md"},theme:{default:"activity"},isOnline:{type:Boolean,default:!1},uri:{default:()=>{}},classes:{default:""},companyLogoUri:{default:()=>{}},preventDefault:{type:Boolean,default:!1},title:{default:""},subText:{default:""},noFocus:{type:Boolean,default:!1}},emits:["avatar-clicked","before-change-status","after-change-status"],setup(t,{expose:e,emit:r}){const n=["dsg-avatar",`dsg-avatar--${t.size}`,`dsg-avatar--${t.theme}`,`dsg-avatar--${t.isOnline?"online":"offline"}`,`dsg-avatar--${t.title?.length?"has-info":"no-info"}`,`dsg-avatar--${t.uri?"has-link":"no-link"}`,`dsg-avatar--${t.noFocus?"no-focus":"focus"}`,`dsg-avatar--${["profile-photo","profile-photo-verified"].indexOf(t.theme)!==-1?"profile-photo":"non-profile-photo"}`,t.classes].join(" ");["profile-photo","profile-photo-verified"].indexOf(t.theme)!==-1&&(["sm","md","lg"].indexOf(t.size)===-1&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'profile-photo' theme only supports the 'sm', 'md', and 'lg' sizes."),(t.fullName||t.title||t.subText)&&new L.DsgWarning("DsgAvatar: The 'profile-photo' theme will not display the 'title' or 'subText' props.")),t.theme==="logo"&&!t.companyLogoUri&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'logo' theme requires a 'companyLogoUri' prop."),["activity","verified","logo"].indexOf(t.theme)!==-1&&t.title?.length&&t.subText?.length&&["xs","sm","md","lg","xl","2xl"].indexOf(t.size)===-1&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'activity', 'verified', and 'logo' themes only support the 'xs', 'sm', 'md', 'lg', and 'xl' sizes when 'title' and 'subText' are provided."),t.theme==="tile"&&!t.title?.length&&!t.fullName&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'tile' theme requires either 'title' or 'fullName' prop."),t.size==="xxs"&&(t.title?.length||t.subText?.length)&&new L.DsgPropSyntaxWarning("DsgAvatar: The 'xxs' size does not support the 'title' or 'subText' props.");const i=v=>{const h=v.split(" ");return(h[0].charAt(0)+h[h.length-1].charAt(0)).toUpperCase()},a=()=>t.fullName?"Avatar of "+t.fullName:"Avatar",o=r,s=f.ref(!1),l=v=>{o("before-change-status",s.value,v),s.value=v,o("after-change-status",s.value)},u=f.useTemplateRef("avatarImageWrapperEl"),c=v=>{t.preventDefault||(o("avatar-clicked",v),u.value&&!t.uri&&u.value.focus())};return e({setUserActiveStatus:l,toggleFocus:v=>{u.value&&(v?u.value.focus():u.value.blur())}}),(v,h)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(n))},[f.createElementVNode("a",{class:"dsg-avatar--link",href:v.uri,title:a(),target:"_blank",ref:"avatarLink",onClick:c},[f.createElementVNode("div",ao,[f.renderSlot(v.$slots,"dsg-avatar--background",{},()=>[v.profileUri?(f.openBlock(),f.createElementBlock("img",{key:0,class:"dsg-avatar--profile-image",src:v.profileUri,alt:a()},null,8,oo)):f.createCommentVNode("",!0),!v.profileUri&&v.fullName?(f.openBlock(),f.createElementBlock("span",so,f.toDisplayString(i(v.fullName)),1)):f.createCommentVNode("",!0),!v.profileUri&&!v.fullName?(f.openBlock(),f.createBlock(L._sfc_main,{key:2,class:"dsg-avatar--user-icon",icon:"user-01",color:f.unref(Za.ColoursConfig).gray[600],size:v.size},null,8,["color","size"])):f.createCommentVNode("",!0)]),["tile"].indexOf(v.theme)===-1?f.renderSlot(v.$slots,"dsg-avatar--status",{key:0},()=>[f.createElementVNode("div",lo,[v.theme==="activity"&&v.isOnline?(f.openBlock(),f.createElementBlock("span",uo)):f.createCommentVNode("",!0),["verified","profile-photo-verified"].indexOf(v.theme)!==-1?(f.openBlock(),f.createElementBlock("span",{key:1,class:"dsg-avatar--verified",innerHTML:f.unref(no)},null,8,fo)):f.createCommentVNode("",!0),v.theme==="logo"?(f.openBlock(),f.createElementBlock("span",co,[f.createElementVNode("img",{src:v.companyLogoUri,alt:a(),class:"dsg-avatar--company-logo"},null,8,ho)])):f.createCommentVNode("",!0)])]):f.createCommentVNode("",!0)],512),v.title?.length||v.theme==="tile"&&(v.title?.length||v.fullName)?(f.openBlock(),f.createElementBlock("div",vo,[v.title?.length||v.theme==="tile"&&(v.title?.length||v.fullName)?f.renderSlot(v.$slots,"dsg-avatar--title",{key:0},()=>[f.createElementVNode("h3",po,f.toDisplayString(v.title?.length?v.title:v.fullName),1)]):f.createCommentVNode("",!0),v.subText?.length?f.renderSlot(v.$slots,"dsg-avatar--subtext",{key:1},()=>[f.createElementVNode("p",go,f.toDisplayString(v.subText),1)]):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)],8,io)],2))}}),dr={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Nt={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Ce={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},xo={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},yo={dangerouslyHTMLString:!1,multiple:!0,position:dr.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},mo={rtl:!1,newestOnTop:!1,toastClassName:""},zi={...yo,...mo};Ce.DEFAULT;var K=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(K||{}),xn=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(xn||{});const wo={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},_o={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},Eo={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},Ao={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},qn="Toastify--animate Toastify__none-enter";function Wi(t,e=!1){var r;let n=wo;if(!t||typeof t=="string")switch(t){case"flip":n=Ao;break;case"zoom":n=Eo;break;case"slide":n=_o;break}else n=t;if(e)n.enter=qn;else if(n.enter===qn){const i=(r=n.exit.split("__")[1])==null?void 0:r.split("-")[0];n.enter=`Toastify--animate Toastify__${i}-enter`}return n}function Co(t){return t.containerId||String(t.position)}const Vr="will-unmount";function bo(t=dr.TOP_RIGHT){return!!document.querySelector(`.${K.CSS_NAMESPACE}__toast-container--${t}`)}function So(t=dr.TOP_RIGHT){return`${K.CSS_NAMESPACE}__toast-container--${t}`}function Io(t,e,r=!1){const n=[`${K.CSS_NAMESPACE}__toast-container`,`${K.CSS_NAMESPACE}__toast-container--${t}`,r?`${K.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return It(e)?e({position:t,rtl:r,defaultClassName:n}):`${n} ${e||""}`}function Oo(t){var e;const{position:r,containerClassName:n,rtl:i=!1,style:a={}}=t,o=K.CSS_NAMESPACE,s=So(r),l=document.querySelector(`.${o}`),u=document.querySelector(`.${s}`),c=!!u&&!((e=u.className)!=null&&e.includes(Vr)),d=l||document.createElement("div"),v=document.createElement("div");v.className=Io(r,n,i),v.dataset.testid=`${K.CSS_NAMESPACE}__toast-container--${r}`,v.id=Co(t);for(const h in a)if(Object.prototype.hasOwnProperty.call(a,h)){const p=a[h];v.style[h]=p}return l||(d.className=K.CSS_NAMESPACE,document.body.appendChild(d)),c||d.appendChild(v),v}function yn(t){var e,r,n;const i=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((r=t.target)==null?void 0:r.id),a=document.getElementById(i);a&&a.removeEventListener("animationend",yn,!1);try{sr[i].unmount(),(n=document.getElementById(i))==null||n.remove(),delete sr[i],delete xe[i]}catch{}}const sr=f.reactive({});function To(t,e){const r=document.getElementById(String(e));r&&(sr[r.id]=t)}function mn(t,e=!0){const r=String(t);if(!sr[r])return;const n=document.getElementById(r);n&&n.classList.add(Vr),e?(Do(t),n&&n.addEventListener("animationend",yn,!1)):yn(r),Ke.items=Ke.items.filter(i=>i.containerId!==t)}function No(t){for(const e in sr)mn(e,t);Ke.items=[]}function Xi(t,e){const r=document.getElementById(t.toastId);if(r){let n=t;n={...n,...Wi(n.transition)};const i=n.appendPosition?`${n.exit}--${n.position}`:n.exit;r.className+=` ${i}`,e&&e(r)}}function Do(t){for(const e in xe)if(e===t)for(const r of xe[e]||[])Xi(r)}function Bo(t){const e=Dt().find(r=>r.toastId===t);return e?.containerId}function Vn(t){return document.getElementById(t)}function Ro(t){const e=Vn(t.containerId);return e&&e.classList.contains(Vr)}function Qn(t){var e;const r=f.isVNode(t.content)?f.toRaw(t.content.props):null;return r??f.toRaw((e=t.data)!=null?e:{})}function Po(t){return t?Ke.items.filter(e=>e.containerId===t).length>0:Ke.items.length>0}function ko(){if(Ke.items.length>0){const t=Ke.items.shift();br(t?.toastContent,t?.toastProps)}}const xe=f.reactive({}),Ke=f.reactive({items:[]});function Dt(){const t=f.toRaw(xe);return Object.values(t).reduce((e,r)=>[...e,...r],[])}function Mo(t){return Dt().find(e=>e.toastId===t)}function br(t,e={}){if(Ro(e)){const r=Vn(e.containerId);r&&r.addEventListener("animationend",wn.bind(null,t,e),!1)}else wn(t,e)}function wn(t,e={}){const r=Vn(e.containerId);r&&r.removeEventListener("animationend",wn.bind(null,t,e),!1);const n=xe[e.containerId]||[],i=n.length>0;if(!i&&!bo(e.position)){const a=Oo(e),o=f.createApp(rs,e);e.useHandler&&e.useHandler(o),o.mount(a),To(o,a.id)}i&&!e.updateId&&(e.position=n[0].position),f.nextTick(()=>{e.updateId?Re.update(e):Re.add(t,e)})}const Re={add(t,e){const{containerId:r=""}=e;r&&(xe[r]=xe[r]||[],xe[r].find(n=>n.toastId===e.toastId)||setTimeout(()=>{var n,i;e.newestOnTop?(n=xe[r])==null||n.unshift(e):(i=xe[r])==null||i.push(e),e.onOpen&&e.onOpen(Qn(e))},e.delay||0))},remove(t){if(t){const e=Bo(t);if(e){const r=xe[e];let n=r.find(i=>i.toastId===t);xe[e]=r.filter(i=>i.toastId!==t),!xe[e].length&&!Po(e)&&mn(e,!1),ko(),f.nextTick(()=>{n!=null&&n.onClose&&(n.onClose(Qn(n)),n=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){xe[e]=xe[e]||[];const r=xe[e].find(a=>a.toastId===t.toastId),n=r?.position!==t.position||r?.transition!==t.transition,i={...t,disabledEnterTransition:!n,updateId:void 0};Re.dismissForce(t?.toastId),setTimeout(()=>{ee(i.content,i)},t.delay||0)}},clear(t,e=!0){t?mn(t,e):No(e)},dismissCallback(t){var e;const r=(e=t.currentTarget)==null?void 0:e.id,n=document.getElementById(r);n&&(n.removeEventListener("animationend",Re.dismissCallback,!1),setTimeout(()=>{Re.remove(r)}))},dismiss(t){if(t){const e=Dt();for(const r of e)if(r.toastId===t){Xi(r,n=>{n.addEventListener("animationend",Re.dismissCallback,!1)});break}}},dismissForce(t){if(t){const e=Dt();for(const r of e)if(r.toastId===t){const n=document.getElementById(t);n&&(n.remove(),n.removeEventListener("animationend",Re.dismissCallback,!1),Re.remove(t));break}}}},Lo=f.reactive({useHandler:void 0}),ji=f.reactive({}),Rr=f.reactive({});function Yi(){return Math.random().toString(36).substring(2,9)}function Fo(t){return typeof t=="number"&&!isNaN(t)}function _n(t){return typeof t=="string"}function It(t){return typeof t=="function"}function Ur(...t){return f.mergeProps(...t)}function Sr(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof t?.type=="object")}function Vo(t={}){ji[`${K.CSS_NAMESPACE}-default-options`]=t}function Uo(){return ji[`${K.CSS_NAMESPACE}-default-options`]||zi}function $o(){const t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||t?"dark":"light"}var Ir=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(Ir||{});const Ki={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:dr.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:Nt.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:Ce.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""},contentProps:{type:Object,required:!1,default:null},expandCustomProps:{type:Boolean,required:!1,default:!1}},Ho={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Ce.DEFAULT},theme:{type:String,required:!1,default:Nt.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},Go=f.defineComponent({name:"ProgressBar",props:Ho,setup(t,{attrs:e}){const r=f.ref(),n=f.computed(()=>t.hide?"true":"false"),i=f.computed(()=>({...e.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),a=f.computed(()=>[`${K.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${K.CSS_NAMESPACE}__progress-bar--controlled`:`${K.CSS_NAMESPACE}__progress-bar--animated`,`${K.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${K.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${K.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),o=f.computed(()=>`${a.value} ${e?.class||""}`),s=()=>{r.value&&(r.value.onanimationend=null,r.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),s())},u=f.computed(()=>t.controlledProgress?null:l),c=f.computed(()=>t.controlledProgress?l:null);return f.watchEffect(()=>{r.value&&(s(),r.value.onanimationend=u.value,r.value.ontransitionend=c.value)}),()=>f.createVNode("div",{ref:r,role:"progressbar","aria-hidden":n.value,"aria-label":"notification timer",class:o.value,style:i.value},null)}}),zo=f.defineComponent({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:Nt.AUTO},type:{type:String,required:!1,default:Nt.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>f.createVNode("button",{class:`${K.CSS_NAMESPACE}__close-button ${K.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[f.createVNode("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[f.createVNode("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),$r=({theme:t,type:e,path:r,...n})=>f.createVNode("svg",f.mergeProps({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},n),[f.createVNode("path",{d:r},null)]);function Wo(t){return f.createVNode($r,f.mergeProps(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function Xo(t){return f.createVNode($r,f.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function jo(t){return f.createVNode($r,f.mergeProps(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function Yo(t){return f.createVNode($r,f.mergeProps(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function Ko(){return f.createVNode("div",{class:`${K.CSS_NAMESPACE}__spinner`},null)}const Or={info:Xo,warning:Wo,success:jo,error:Yo,spinner:Ko},Zo=t=>t in Or;function qo({theme:t,type:e,isLoading:r,icon:n}){let i;const a=!!r||e==="loading",o={theme:t,type:e};if(a&&(n===void 0||typeof n=="boolean"))return Or.spinner();if(n!==!1){if(Sr(n))i=f.toRaw(n);else if(It(n)){const s=n;o.type=a?"loading":e,i=s(o),i=!i&&a?Or.spinner():i}else f.isVNode(n)?i=f.cloneVNode(n,o):_n(n)||Fo(n)?i=n:Zo(e)&&(i=Or[e](o));return i}}const Qo=()=>{};function Jo(t,e,r=K.COLLAPSE_DURATION){const{scrollHeight:n,style:i}=t,a=r;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${a}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,a)})})}function es(t){const e=f.ref(!1),r=f.ref(!1),n=f.ref(!1),i=f.ref(Ir.Enter),a=f.reactive({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||K.COLLAPSE_DURATION}),o=a.done||Qo,s=f.computed(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=f.computed(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),u=f.computed(()=>t.pauseOnHover?{onMouseenter:w,onMouseleave:g}:{});function c(){const m=s.value.split(" ");v().addEventListener(xn.ENTRANCE_ANIMATION_END,g,{once:!0});const E=C=>{const b=v();C.target===b&&(b.dispatchEvent(new Event(xn.ENTRANCE_ANIMATION_END)),b.removeEventListener("animationend",E),b.removeEventListener("animationcancel",E),i.value===Ir.Enter&&C.type!=="animationcancel"&&b.classList.remove(...m))},y=()=>{const C=v();C.classList.add(...m),C.addEventListener("animationend",E),C.addEventListener("animationcancel",E)};t.pauseOnFocusLoss&&h(),y()}function d(){if(!v())return;const m=()=>{const y=v();y.removeEventListener("animationend",m),a.collapse?Jo(y,o,a.collapseDuration):o()},E=()=>{const y=v();i.value=Ir.Exit,y&&(y.className+=` ${l.value}`,y.addEventListener("animationend",m))};r.value||(n.value?m():setTimeout(E))}function v(){return t.toastRef.value}function h(){document.hasFocus()||w(),window.addEventListener("focus",g),window.addEventListener("blur",w)}function p(){window.removeEventListener("focus",g),window.removeEventListener("blur",w)}function g(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function w(){e.value=!1}function _(m){m&&(m.stopPropagation(),m.preventDefault()),r.value=!1}return f.watchEffect(d),f.watchEffect(()=>{const m=Dt();r.value=m.findIndex(E=>E.toastId===a.toastId)>-1}),f.watchEffect(()=>{t.isLoading!==void 0&&(t.loading.value?w():g())}),f.onMounted(c),f.onUnmounted(()=>{t.pauseOnFocusLoss&&p()}),{isIn:r,isRunning:e,hideToast:_,eventHandlers:u}}const ts=f.defineComponent({name:"ToastItem",inheritAttrs:!1,props:Ki,setup(t){const e=f.ref(),r=f.computed(()=>!!t.isLoading),n=f.computed(()=>t.progress!==void 0&&t.progress!==null),i=f.computed(()=>qo(t)),a=f.computed(()=>[`${K.CSS_NAMESPACE}__toast`,`${K.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${K.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${K.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:o,isIn:s,hideToast:l,eventHandlers:u}=es({toastRef:e,loading:r,done:()=>{Re.remove(t.toastId)},...Wi(t.transition,t.disabledEnterTransition),...t});return()=>f.createVNode("div",f.mergeProps({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:c=>{t.closeOnClick&&l(),t.onClick&&t.onClick(c)}},u.value),[f.createVNode("div",{role:t.role,"data-testid":"toast-body",class:`${K.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[i.value!=null&&f.createVNode("div",{"data-testid":`toast-icon-${t.type}`,class:[`${K.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${K.CSS_NAMESPACE}--animate-icon ${K.CSS_NAMESPACE}__zoom-enter`].join(" ")},[Sr(i.value)?f.h(f.toRaw(i.value),{theme:t.theme,type:t.type}):It(i.value)?i.value({theme:t.theme,type:t.type}):i.value]),f.createVNode("div",{"data-testid":"toast-content"},[Sr(t.content)?f.h(f.toRaw(t.content),{toastProps:f.toRaw(t),closeToast:l,data:t.data,...t.expandCustomProps?t.contentProps:{contentProps:t.contentProps||{}}}):It(t.content)?t.content({toastProps:f.toRaw(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?f.h("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&f.createVNode(zo,{theme:t.theme,closeToast:c=>{c.stopPropagation(),c.preventDefault(),l()}},null),Sr(t.closeButton)?f.h(f.toRaw(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):It(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,f.createVNode(Go,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:s.value,type:t.type,hide:t.hideProgressBar,isRunning:o.value,autoClose:t.autoClose,controlledProgress:n.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let ir=0;function Zi(){typeof window>"u"||(ir&&window.cancelAnimationFrame(ir),ir=window.requestAnimationFrame(Zi),Rr.lastUrl!==window.location.href&&(Rr.lastUrl=window.location.href,Re.clear()))}const rs=f.defineComponent({name:"ToastifyContainer",inheritAttrs:!1,props:Ki,setup(t){const e=f.computed(()=>t.containerId),r=f.computed(()=>xe[e.value]||[]),n=f.computed(()=>r.value.filter(i=>i.position===t.position));return f.onMounted(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(Zi)}),f.onUnmounted(()=>{typeof window<"u"&&ir&&(window.cancelAnimationFrame(ir),Rr.lastUrl="")}),()=>f.createVNode(f.Fragment,null,[n.value.map(i=>{const{toastId:a=""}=i;return f.createVNode(ts,f.mergeProps({key:a},i),null)})])}});let jr=!1;const qi={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function Qi(){const t=[];return Dt().forEach(e=>{const r=document.getElementById(e.containerId);r&&!r.classList.contains(Vr)&&t.push(e)}),t}function ns(t){const e=Qi().length,r=t??0;return r>0&&e+Ke.items.length>=r}function is(t){ns(t.limit)&&!t.updateId&&Ke.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function dt(t,e,r={}){if(jr)return;r=Ur(Uo(),{type:e},f.toRaw(r)),(!r.toastId||typeof r.toastId!="string"&&typeof r.toastId!="number")&&(r.toastId=Yi()),r={...r,...r.type==="loading"?qi:{},content:t,containerId:r.containerId||String(r.position)};const n=Number(r?.progress);return!isNaN(n)&&n<0&&(r.progress=0),n>1&&(r.progress=1),r.theme==="auto"&&(r.theme=$o()),is(r),Rr.lastUrl=window.location.href,r.multiple?Ke.items.length?r.updateId&&br(t,r):br(t,r):(jr=!0,ee.clearAll(void 0,!1),setTimeout(()=>{br(t,r)},0),setTimeout(()=>{jr=!1},390)),r.toastId}const ee=(t,e)=>dt(t,Ce.DEFAULT,e);ee.info=(t,e)=>dt(t,Ce.DEFAULT,{...e,type:Ce.INFO});ee.error=(t,e)=>dt(t,Ce.DEFAULT,{...e,type:Ce.ERROR});ee.warning=(t,e)=>dt(t,Ce.DEFAULT,{...e,type:Ce.WARNING});ee.warn=ee.warning;ee.success=(t,e)=>dt(t,Ce.DEFAULT,{...e,type:Ce.SUCCESS});ee.loading=(t,e)=>dt(t,Ce.DEFAULT,Ur(e,qi));ee.dark=(t,e)=>dt(t,Ce.DEFAULT,Ur(e,{theme:Nt.DARK}));ee.remove=t=>{t?Re.dismiss(t):Re.clear()};ee.clearAll=(t,e)=>{f.nextTick(()=>{Re.clear(t,e)})};ee.isActive=t=>{let e=!1;return e=Qi().findIndex(r=>r.toastId===t)>-1,e};ee.update=(t,e={})=>{setTimeout(()=>{const r=Mo(t);if(r){const n=f.toRaw(r),{content:i}=n,a={...n,...e,toastId:e.toastId||t,updateId:Yi()},o=a.render||i;delete a.render,dt(o,a.type,a)}},0)};ee.done=t=>{ee.update(t,{isLoading:!1,progress:1})};ee.promise=as;function as(t,{pending:e,error:r,success:n},i){var a,o,s;let l;const u={...i||{},autoClose:!1};e&&(l=_n(e)?ee.loading(e,u):ee.loading(e.render,{...u,...e}));const c={autoClose:(a=i?.autoClose)!=null?a:!0,closeOnClick:(o=i?.closeOnClick)!=null?o:!0,closeButton:(s=i?.autoClose)!=null?s:null,isLoading:void 0,draggable:null,delay:100},d=(h,p,g)=>{if(p==null){ee.remove(l);return}const w={type:h,...c,...i,data:g},_=_n(p)?{render:p}:p;return l?ee.update(l,{...w,..._,isLoading:!1}):ee(_.render,{...w,..._,isLoading:!1}),g},v=It(t)?t():t;return v.then(h=>{d("success",n,h)}).catch(h=>{d("error",r,h)}),v}ee.POSITION=dr;ee.THEME=Nt;ee.TYPE=Ce;ee.TRANSITIONS=xo;const os={install(t,e={}){Lo.useHandler=e.useHandler||(()=>{}),ss(e)}};typeof window<"u"&&(window.Vue3Toastify=os);function ss(t={}){const e=Ur(zi,t);Vo(e)}const ls={class:"dsg-alert__wrapper"},us=["innerHTML"],Ji=f.defineComponent({__name:"DsgAlertComponent",props:{contentProps:{default:()=>({title:"",message:"",type:"gray",hasCloseButton:!0,useToast:!0})}},setup(t){const e=["dsg-alert","dsg-alert--"+t.contentProps.type,t.contentProps.hasCloseButton?"dsg-alert--has-close":"dsg-alert--no-close"],n=f.useAttrs().closeToast,i=f.ref(!1),a=()=>{t.contentProps.useToast?n():i.value=!0};return(o,s)=>i.value?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(e)},[o.contentProps.type==="gray"?(f.openBlock(),f.createBlock(Ct,{key:0,icon:{icon:"info-circle"},type:"outline",theme:"gray",size:"lg"})):f.createCommentVNode("",!0),o.contentProps.type==="error"?(f.openBlock(),f.createBlock(Ct,{key:1,icon:{icon:"alert-circle"},type:"outline",theme:"error",size:"lg"})):f.createCommentVNode("",!0),o.contentProps.type==="warning"?(f.openBlock(),f.createBlock(Ct,{key:2,icon:{icon:"alert-circle"},type:"outline",theme:"warning",size:"lg"})):f.createCommentVNode("",!0),o.contentProps.type==="success"?(f.openBlock(),f.createBlock(Ct,{key:3,icon:{icon:"check-circle"},type:"outline",theme:"success",size:"lg"})):f.createCommentVNode("",!0),f.createElementVNode("div",ls,[f.createElementVNode("p",{class:f.normalizeClass(["dsg-alert__title",{"dsg-alert__title--with-close-button":o.contentProps.hasCloseButton}])},f.toDisplayString(o.contentProps.title),3),o.contentProps.message?(f.openBlock(),f.createElementBlock("p",{key:0,innerHTML:o.contentProps.message,class:"dsg-alert__message"},null,8,us)):f.createCommentVNode("",!0)]),o.contentProps.hasCloseButton?(f.openBlock(),f.createElementBlock("button",{key:4,onClick:a,class:"dsg-alert__close-button"},[f.createVNode(L._sfc_main,{icon:"x-close",size:"sm"})])):f.createCommentVNode("",!0)]))}}),fs=new class Zt{info(e="",r="",n={}){Zt.showToast("gray",e,r,n)}error(e="",r="",n={}){Zt.showToast("error",e,r,n)}warning(e="",r="",n={}){Zt.showToast("warning",e,r,n)}success(e="",r="",n={}){Zt.showToast("success",e,r,n)}static showToast(e,r,n,i){const a={hasCloseButton:!1,position:"top-right",maxWidthClass:"",...i};ee(Ji,{autoClose:!a.hasCloseButton,closeButton:!1,hideProgressBar:!0,closeOnClick:!a.hasCloseButton,position:a.position,containerClassName:`dsg-alert-container ${a.maxWidthClass}`,toastClassName:"dsg-alert",bodyClassName:"dsg-alert--body",contentProps:{title:r,message:n,type:e,hasCloseButton:a.hasCloseButton},onClick:()=>{}})}},cs={class:"dsg-badge--before"},ds={key:2,class:"dsg-badge--dot"},hs={key:1,class:"dsg-badge--label"},vs={class:"dsg-badge--after"},ps={key:1,class:"dsg-badge--close-wrapper"},ea=f.defineComponent({__name:"DsgBadge",props:{label:{default:""},classes:{default:""},type:{default:"standard"},size:{default:"md"},hasClose:{type:Boolean,default:!1},avatarUri:{default:""},iconBefore:{default:""},icon:{default:""},iconAfter:{default:""},iconOnly:{type:Boolean,default:!1},hasDot:{type:Boolean,default:!1},theme:{default:"badge-modern"},themeColor:{default:"gray"},destroyOnClose:{type:Boolean,default:!1}},emits:["before-hide","after-hide","before-destroy","after-destroy","on-click"],setup(t,{expose:e,emit:r}){const n=t.iconBefore||t.iconAfter||t.type==="add"||t.type==="icon-only",i=["dsg-badge",`dsg-badge--${t.size}`,`dsg-badge--${t.type}`,`dsg-badge--${t.theme}`,`dsg-badge--${t.themeColor}`,`dsg-badge--${t.iconOnly?"icon-only":"label"}`,`${t.hasClose?"dsg-badge--has-close":""}`,`${t.avatarUri?"dsg-badge--has-avatar":""}`,`${t.hasDot?"dsg-badge--has-dot":""}`,`${n?"dsg-badge--has-icon":""}`,`${t.iconBefore?"dsg-badge--has-icon-before":""}`,`${t.iconAfter?"dsg-badge--has-icon-after":""}`,t.classes].join(" ").replaceAll(/\s+/g," ").trim();(t.type==="add"||t.type==="icon-only")&&(t.label||t.avatarUri||t.hasDot||t.iconBefore||t.iconAfter||t.hasClose)&&t.theme!=="badge-modern"&&t.themeColor&&new L.DsgPropSyntaxWarning("DsgBadge: 'add'/'icon-only' type badges should only be called with 'size', 'theme' and 'themeColor' props. Note that 'themeColor' prop is discarded for theme 'badge-modern'."),[t.avatarUri,t.iconBefore,t.hasDot].filter(Boolean).length>1&&new L.DsgPropSyntaxWarning("DsgBadge: 'avatarUri', 'iconBefore' and 'hasDot' props are mutually exclusive. Please use only one of them."),[t.iconAfter,t.hasClose].filter(Boolean).length>1&&new L.DsgPropSyntaxWarning("DsgBadge: 'iconAfter' and 'hasClose' props are mutually exclusive. Please use only one of them.");const s=r,l=f.useTemplateRef("dsgBadge"),u=d=>{t.destroyOnClose?(s("before-destroy",l.value),l.value?.remove(),s("after-destroy")):(s("before-hide",l.value),l.value&&(l.value.style.display="none"),s("after-hide",l.value))},c=d=>{s("on-click",l.value)};return e({hideOrDestroy:u,clickEvent:c}),(d,v)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(i)),ref:"dsgBadge",onClick:c},[d.type==="standard"?f.renderSlot(d.$slots,"dsg-badge--before",{key:0},()=>[f.createElementVNode("div",cs,[d.avatarUri?(f.openBlock(),f.createBlock(or,{key:0,"profile-uri":d.avatarUri,class:"dsg-badge--avatar",size:"xxs"},null,8,["profile-uri"])):f.createCommentVNode("",!0),d.iconBefore?(f.openBlock(),f.createBlock(L._sfc_main,{key:1,icon:d.iconBefore,size:"xxs",class:"dsg-badge--icon-before dsg-badge--icon"},null,8,["icon"])):f.createCommentVNode("",!0),d.hasDot?(f.openBlock(),f.createElementBlock("span",ds)):f.createCommentVNode("",!0)])]):f.createCommentVNode("",!0),d.type==="standard"?(f.openBlock(),f.createElementBlock("label",hs,f.toDisplayString(d.label),1)):f.createCommentVNode("",!0),d.type==="add"?(f.openBlock(),f.createBlock(L._sfc_main,{key:2,icon:"plus",size:"xxs",class:"dsg-badge--icon-add dsg-badge--icon"})):f.createCommentVNode("",!0),d.type==="icon-only"?(f.openBlock(),f.createBlock(L._sfc_main,{key:3,icon:d.icon,size:"xxs",class:"dsg-badge--icon-only dsg-badge--icon"},null,8,["icon"])):f.createCommentVNode("",!0),d.type==="standard"?f.renderSlot(d.$slots,"dsg-badge--after",{key:4},()=>[f.createElementVNode("div",vs,[d.iconAfter?(f.openBlock(),f.createBlock(L._sfc_main,{key:0,icon:d.iconAfter,size:"xxs",class:"dsg-badge--icon-after dsg-badge--icon"},null,8,["icon"])):f.createCommentVNode("",!0),d.hasClose?(f.openBlock(),f.createElementBlock("span",ps,[d.hasClose?(f.openBlock(),f.createBlock(L._sfc_main,{key:0,icon:"x-close",class:"dsg-badge--close",size:"xxs",onClick:u})):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)])]):f.createCommentVNode("",!0)],2))}}),gs={class:"dsg-input-number--control"},xs=["disabled"],ys={key:0},ms=["value","disabled"],ws=["disabled"],_s={key:0},Es={key:0,class:"dsg-input-number--label"},As=f.defineComponent({__name:"DsgInputNumber",props:{modelValue:{},disabled:{type:Boolean},label:{},step:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,i=()=>{r.disabled||n("update:modelValue",r.modelValue+(r.step??1))},a=()=>{r.disabled||n("update:modelValue",r.modelValue-(r.step??1))},o=s=>{if(r.disabled)return;const l=s.target;n("update:modelValue",Number(l.value))};return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["dsg-input-number",{"dsg-input-number--disabled":r.disabled}])},[f.createElementVNode("div",gs,[f.createElementVNode("button",{type:"button",onClick:i,disabled:r.disabled,class:"dsg-input-number--btn dsg-input-number--increment"},[r.disabled?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",ys,"−"))],8,xs),f.createElementVNode("input",{type:"number",value:s.modelValue,onInput:o,disabled:r.disabled,class:"dsg-input-number--input flex-1"},null,40,ms),f.createElementVNode("button",{type:"button",disabled:r.disabled,onClick:a,class:"dsg-input-number--btn dsg-input-number--decrement"},[r.disabled?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("span",_s,"+"))],8,ws)]),s.label!==void 0||s.$slots.label?(f.openBlock(),f.createElementBlock("div",Es,[f.renderSlot(s.$slots,"label",{},()=>[f.createTextVNode(f.toDisplayString(s.label),1)])])):f.createCommentVNode("",!0)],2))}}),Cs={key:0,class:"dsg-checkbox-group--form-wrapper"},bs={class:"dsg-checkbox-group--header"},Ss={class:"dsg-checkbox-group--header-title-wrapper"},Is={class:"dsg-checkbox-group--title"},Os=["innerHTML"],Ts={class:"dsg-checkbox-group--options"},Ns=["onClick"],Ds=["textContent"],Bs=["innerHTML","data"],Rs=f.defineComponent({__name:"DsgCheckboxGroup",props:f.mergeModels({size:{default:"md"},theme:{default:"form"},title:{default:""},subtext:{default:""},options:{default:()=>[]},tooltip:{default:null},defaultValue:{type:[String,Number,Boolean,Array,null],default:()=>[]}},{modelValue:{type:[String,Number,Boolean,Array,null],default:[]},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=f.useModel(t,"modelValue"),r=["dsg-checkbox-group",`dsg-checkbox-group--${t.size}`,`dsg-checkbox-group--theme-${t.theme}`],n=(i,a)=>{i.target instanceof HTMLAnchorElement||(e.value=a.value)};return(i,a)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(r)},[["form","form-radio"].includes(i.theme)?(f.openBlock(),f.createElementBlock("div",Cs,[f.createElementVNode("div",bs,[f.renderSlot(i.$slots,"dsg-checkbox-group--header",{},()=>[f.createElementVNode("div",Ss,[f.createElementVNode("h3",Is,f.toDisplayString(i.title),1),i.tooltip?(f.openBlock(),f.createBlock(L._sfc_main$1,{key:0,label:i.tooltip,position:"top",triggers:["hover"],"auto-hide":!0,theme:"dark",class:"dsg-checkbox-group--tooltip"},null,8,["label"])):f.createCommentVNode("",!0)]),i.subtext?(f.openBlock(),f.createElementBlock("p",{key:0,class:"dsg-checkbox-group--subtext",innerHTML:i.subtext},null,8,Os)):f.createCommentVNode("",!0)])]),f.createElementVNode("div",Ts,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.options,(o,s)=>(f.openBlock(),f.createElementBlock("div",{key:s,class:"dsg-checkbox-group--option"},[f.createVNode(L._sfc_main$2,{label:o.label,value:o.value,disabled:o.disabled,size:"sm",type:["form","panel"].includes(i.theme)?"checkbox":"radio",modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=l=>e.value=l)},null,8,["label","value","disabled","type","modelValue"])]))),128))])])):f.createCommentVNode("",!0),["panel","panel-content"].includes(i.theme)?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(i.options,(o,s)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["dsg-checkbox-group--panel",`dsg-checkbox-group--panel-${e.value===o.value?"selected":"unselected"}`]),onClick:l=>n(l,o)},[(f.openBlock(),f.createElementBlock("div",{class:"dsg-checkbox-group--panel-left",key:s},[f.renderSlot(i.$slots,`dsg-checkbox-group--panel-title--${String(o.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g,"-").replace(/-+/g,"-")}`,{data:o},()=>[o.icon?(f.openBlock(),f.createBlock(L._sfc_main,{key:0,icon:o.icon,size:"xl"},null,8,["icon"])):f.createCommentVNode("",!0),f.createElementVNode("h3",{class:"dsg-checkbox-group--panel-title",textContent:f.toDisplayString(o.label)},null,8,Ds)]),f.renderSlot(i.$slots,`dsg-checkbox-group--panel-subtext--${String(o.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g,"-").replace(/-+/g,"-")}`,{},()=>[o.subtext?(f.openBlock(),f.createElementBlock("p",{key:0,class:"dsg-checkbox-group--panel-subtext",innerHTML:o.subtext,data:o},null,8,Bs)):f.createCommentVNode("",!0)])])),(f.openBlock(),f.createElementBlock("div",{key:s,class:"dsg-checkbox-group--panel-right"},[f.createVNode(L._sfc_main$2,{value:o.value,disabled:o.disabled,type:"radio",modelValue:e.value,"onUpdate:modelValue":a[1]||(a[1]=l=>e.value=l)},null,8,["value","disabled","modelValue"])]))],10,Ns))),256)):f.createCommentVNode("",!0)]))}});var Ps="2.0.4",En=500,Jn="user-agent",Bt="",ei="?",Pr="function",ut="undefined",Rt="object",An="string",Ie="browser",Qe="cpu",We="device",Ve="engine",ke="os",Ot="result",D="name",S="type",N="vendor",B="version",Oe="architecture",lr="major",T="model",qt="console",$="mobile",q="tablet",ue="smarttv",Ge="wearable",pr="xr",Qt="embedded",Vt="inapp",Un="brands",yt="formFactors",$n="fullVersionList",Tt="platform",Hn="platformVersion",Hr="bitness",ht="sec-ch-ua",ks=ht+"-full-version-list",Ms=ht+"-arch",Ls=ht+"-"+Hr,Fs=ht+"-form-factors",Vs=ht+"-"+$,Us=ht+"-"+T,ta=ht+"-"+Tt,$s=ta+"-version",ra=[Un,$n,$,T,Tt,Hn,Oe,yt,Hr],gr="Amazon",_t="Apple",ti="ASUS",ri="BlackBerry",vt="Google",ni="Huawei",Yr="Lenovo",ii="Honor",xr="LG",Kr="Microsoft",Zr="Motorola",qr="Nvidia",ai="OnePlus",Qr="OPPO",Ut="Samsung",oi="Sharp",$t="Sony",Jr="Xiaomi",en="Zebra",si="Chrome",li="Chromium",it="Chromecast",Tr="Edge",Ht="Firefox",Gt="Opera",tn="Facebook",ui="Sogou",Et="Mobile ",zt=" Browser",Cn="Windows",Hs=typeof window!==ut,Te=Hs&&window.navigator?window.navigator:void 0,lt=Te&&Te.userAgentData?Te.userAgentData:void 0,Gs=function(t,e){var r={},n=e;if(!kr(e)){n={};for(var i in e)for(var a in e[i])n[a]=e[i][a].concat(n[a]?n[a]:[])}for(var o in t)r[o]=n[o]&&n[o].length%2===0?n[o].concat(t[o]):t[o];return r},Gr=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},bn=function(t,e){if(typeof t===Rt&&t.length>0){for(var r in t)if(Je(e)==Je(t[r]))return!0;return!1}return Mt(t)?Je(e)==Je(t):!1},kr=function(t,e){for(var r in t)return/^(browser|cpu|device|engine|os)$/.test(r)||(e?kr(t[r]):!1)},Mt=function(t){return typeof t===An},rn=function(t){if(t){for(var e=[],r=Pt(/\\?\"/g,t).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var i=Mr(r[n]).split(";v=");e[n]={brand:i[0],version:i[1]}}else e[n]=Mr(r[n]);return e}},Je=function(t){return Mt(t)?t.toLowerCase():t},nn=function(t){return Mt(t)?Pt(/[^\d\.]/g,t).split(".")[0]:void 0},et=function(t){for(var e in t){var r=t[e];typeof r==Rt&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this},Pt=function(t,e){return Mt(e)?e.replace(t,Bt):e},Wt=function(t){return Pt(/\\?\"/g,t)},Mr=function(t,e){if(Mt(t))return t=Pt(/^\s\s*/,t),typeof e===ut?t:t.substring(0,En)},an=function(t,e){if(!(!t||!e))for(var r=0,n,i,a,o,s,l;r<e.length&&!s;){var u=e[r],c=e[r+1];for(n=i=0;n<u.length&&!s&&u[n];)if(s=u[n++].exec(t),s)for(a=0;a<c.length;a++)l=s[++i],o=c[a],typeof o===Rt&&o.length>0?o.length===2?typeof o[1]==Pr?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]===Pr&&!(o[1].exec&&o[1].test)?o.length>3?this[o[0]]=l?o[1].apply(this,o.slice(2)):void 0:this[o[0]]=l?o[1].call(this,l,o[2]):void 0:o.length==3?this[o[0]]=l?l.replace(o[1],o[2]):void 0:o.length==4?this[o[0]]=l?o[3].call(this,l.replace(o[1],o[2])):void 0:o.length>4&&(this[o[0]]=l?o[3].apply(this,[l.replace(o[1],o[2])].concat(o.slice(4))):void 0)):this[o]=l||void 0;r+=2}},ze=function(t,e){for(var r in e)if(typeof e[r]===Rt&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(bn(e[r][n],t))return r===ei?void 0:r}else if(bn(e[r],t))return r===ei?void 0:r;return e.hasOwnProperty("*")?e["*"]:t},fi={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},ci={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},zs={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},di={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[B,[D,Et+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[B,[D,Tr+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[B,[D,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[D,B],[/opios[\/ ]+([\w\.]+)/i],[B,[D,Gt+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[B,[D,Gt+" GX"]],[/\bopr\/([\w\.]+)/i],[B,[D,Gt]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[B,[D,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[B,[D,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[D,B],[/quark(?:pc)?\/([-\w\.]+)/i],[B,[D,"Quark"]],[/\bddg\/([\w\.]+)/i],[B,[D,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[B,[D,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[B,[D,"WeChat"]],[/konqueror\/([\w\.]+)/i],[B,[D,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[B,[D,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[B,[D,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[B,[D,"Smart "+Yr+zt]],[/(avast|avg)\/([\w\.]+)/i],[[D,/(.+)/,"$1 Secure"+zt],B],[/\bfocus\/([\w\.]+)/i],[B,[D,Ht+" Focus"]],[/\bopt\/([\w\.]+)/i],[B,[D,Gt+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[B,[D,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[B,[D,"Dolphin"]],[/coast\/([\w\.]+)/i],[B,[D,Gt+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[B,[D,"MIUI"+zt]],[/fxios\/([\w\.-]+)/i],[B,[D,Et+Ht]],[/\bqihoobrowser\/?([\w\.]*)/i],[B,[D,"360"]],[/\b(qq)\/([\w\.]+)/i],[[D,/(.+)/,"$1Browser"],B],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[D,/(.+)/,"$1"+zt],B],[/samsungbrowser\/([\w\.]+)/i],[B,[D,Ut+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[B,[D,ui+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[D,ui+" Mobile"],B],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[D,B],[/(lbbrowser|rekonq)/i],[D],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[B,D],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[D,tn],B,[S,Vt]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[D,B,[S,Vt]],[/\bgsa\/([\w\.]+) .*safari\//i],[B,[D,"GSA"],[S,Vt]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[B,[D,"TikTok"],[S,Vt]],[/\[(linkedin)app\]/i],[D,[S,Vt]],[/(chromium)[\/ ]([-\w\.]+)/i],[D,B],[/headlesschrome(?:\/([\w\.]+)| )/i],[B,[D,si+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[B,[D,Tr+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[D,si+" WebView"],B],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[B,[D,"Android"+zt]],[/chrome\/([\w\.]+) mobile/i],[B,[D,Et+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[D,B],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[B,[D,Et+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[D,Et+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[B,D],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[D,[B,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[D,B],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[D,Et+Ht],B],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[D,"Netscape"],B],[/(wolvic|librewolf)\/([\w\.]+)/i],[D,B],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[B,[D,Ht+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[D,[B,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[D,[B,/[^\d\.]+./,Bt]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[Oe,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[Oe,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[Oe,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[Oe,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[Oe,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[Oe,/ower/,Bt,Je]],[/ sun4\w[;\)]/i],[[Oe,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[Oe,Je]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[T,[N,Ut],[S,q]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[T,[N,Ut],[S,$]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[T,[N,_t],[S,$]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[T,[N,_t],[S,q]],[/(macintosh);/i],[T,[N,_t]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[T,[N,oi],[S,$]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[T,[N,ii],[S,q]],[/honor([-\w ]+)[;\)]/i],[T,[N,ii],[S,$]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[T,[N,ni],[S,q]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[T,[N,ni],[S,$]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[T,/_/g," "],[N,Jr],[S,q]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[T,/_/g," "],[N,Jr],[S,$]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[T,[N,ai],[S,$]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[T,[N,Qr],[S,$]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[T,[N,ze,{OnePlus:["203","304","403","404","413","415"],"*":Qr}],[S,q]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[T,[N,"BLU"],[S,$]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[T,[N,"Vivo"],[S,$]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[T,[N,"Realme"],[S,$]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[T,[N,Yr],[S,q]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[T,[N,Yr],[S,$]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[T,[N,Zr],[S,$]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[T,[N,Zr],[S,q]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[T,[N,xr],[S,q]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[T,[N,xr],[S,$]],[/(nokia) (t[12][01])/i],[N,T,[S,q]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[T,/_/g," "],[S,$],[N,"Nokia"]],[/(pixel (c|tablet))\b/i],[T,[N,vt],[S,q]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[T,[N,vt],[S,$]],[/(google) (pixelbook( go)?)/i],[N,T],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[T,[N,$t],[S,$]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[T,"Xperia Tablet"],[N,$t],[S,q]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[T,[N,gr],[S,q]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[T,/(.+)/g,"Fire Phone $1"],[N,gr],[S,$]],[/(playbook);[-\w\),; ]+(rim)/i],[T,N,[S,q]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[T,[N,ri],[S,$]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[T,[N,ti],[S,q]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[T,[N,ti],[S,$]],[/(nexus 9)/i],[T,[N,"HTC"],[S,q]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[N,[T,/_/g," "],[S,$]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[T,[N,"TCL"],[S,q]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[T,[N,"TCL"],[S,$]],[/(itel) ((\w+))/i],[[N,Je],T,[S,ze,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[T,[N,"Acer"],[S,q]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[T,[N,"Meizu"],[S,$]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[T,[N,"Ulefone"],[S,$]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[T,[N,"Energizer"],[S,$]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[T,[N,"Cat"],[S,$]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[T,[N,"Smartfren"],[S,$]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[T,[N,"Nothing"],[S,$]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[T,[N,"Archos"],[S,q]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[T,[N,"Archos"],[S,$]],[/; (n159v)/i],[T,[N,"HMD"],[S,$]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[N,T,[S,q]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i],[N,T,[S,$]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[N,T,[S,q]],[/(surface duo)/i],[T,[N,Kr],[S,q]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[T,[N,"Fairphone"],[S,$]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[T,[N,qr],[S,q]],[/(sprint) (\w+)/i],[N,T,[S,$]],[/(kin\.[onetw]{3})/i],[[T,/\./g," "],[N,Kr],[S,$]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[T,[N,en],[S,q]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[T,[N,en],[S,$]],[/smart-tv.+(samsung)/i],[N,[S,ue]],[/hbbtv.+maple;(\d+)/i],[[T,/^/,"SmartTV"],[N,Ut],[S,ue]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[N,T,[S,ue]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[N,xr],[S,ue]],[/(apple) ?tv/i],[N,[T,_t+" TV"],[S,ue]],[/crkey.*devicetype\/chromecast/i],[[T,it+" Third Generation"],[N,vt],[S,ue]],[/crkey.*devicetype\/([^/]*)/i],[[T,/^/,"Chromecast "],[N,vt],[S,ue]],[/fuchsia.*crkey/i],[[T,it+" Nest Hub"],[N,vt],[S,ue]],[/crkey/i],[[T,it],[N,vt],[S,ue]],[/(portaltv)/i],[T,[N,tn],[S,ue]],[/droid.+aft(\w+)( bui|\))/i],[T,[N,gr],[S,ue]],[/(shield \w+ tv)/i],[T,[N,qr],[S,ue]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[T,[N,oi],[S,ue]],[/(bravia[\w ]+)( bui|\))/i],[T,[N,$t],[S,ue]],[/(mi(tv|box)-?\w+) bui/i],[T,[N,Jr],[S,ue]],[/Hbbtv.*(technisat) (.*);/i],[N,T,[S,ue]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[N,/.+\/(\w+)/,"$1",ze,{LG:"lge"}],[T,Mr],[S,ue]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[T,[S,ue]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i],[[S,ue]],[/(playstation \w+)/i],[T,[N,$t],[S,qt]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[T,[N,Kr],[S,qt]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[N,T,[S,qt]],[/droid.+; (shield)( bui|\))/i],[T,[N,qr],[S,qt]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[T,[N,Ut],[S,Ge]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[N,T,[S,Ge]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[T,[N,Qr],[S,Ge]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[T,[N,_t],[S,Ge]],[/(opwwe\d{3})/i],[T,[N,ai],[S,Ge]],[/(moto 360)/i],[T,[N,Zr],[S,Ge]],[/(smartwatch 3)/i],[T,[N,$t],[S,Ge]],[/(g watch r)/i],[T,[N,xr],[S,Ge]],[/droid.+; (wt63?0{2,3})\)/i],[T,[N,en],[S,Ge]],[/droid.+; (glass) \d/i],[T,[N,vt],[S,pr]],[/(pico) (4|neo3(?: link|pro)?)/i],[N,T,[S,pr]],[/(quest( \d| pro)?s?).+vr/i],[T,[N,tn],[S,pr]],[/mobile vr; rv.+firefox/i],[[S,pr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[N,[S,Qt]],[/(aeobc)\b/i],[T,[N,gr],[S,Qt]],[/(homepod).+mac os/i],[T,[N,_t],[S,Qt]],[/windows iot/i],[[S,Qt]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[T,[S,ze,{mobile:"Mobile",xr:"VR","*":q}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[S,q]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[S,$]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[T,[N,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[B,[D,Tr+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[D,B],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[B,[D,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[D,B],[/ladybird\//i],[[D,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[B,D]],os:[[/(windows nt) (6\.[23]); arm/i],[[D,/N/,"R"],[B,ze,fi]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[D,B],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[B,/(;|\))/g,"",ze,fi],[D,Cn]],[/(windows ce)\/?([\d\.]*)/i],[D,B],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[B,/_/g,"."],[D,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[D,"macOS"],[B,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[B,[D,it+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[B,[D,it+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[B,[D,it+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[B,[D,it+" Linux"]],[/crkey\/([\d\.]+)/i],[B,[D,it]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[B,D],[/(ubuntu) ([\w\.]+) like android/i],[[D,/(.+)/,"$1 Touch"],B],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[D,B],[/\(bb(10);/i],[B,[D,ri]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[B,[D,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[B,[D,Ht+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[B,[D,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[B,ze,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[D,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[B,[D,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[D,"Chrome OS"],B],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[D,B],[/(sunos) ?([\d\.]*)/i],[[D,"Solaris"],B],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[D,B]]},yr=function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return et.call(t.init,[[Ie,[D,B,lr,S]],[Qe,[Oe]],[We,[S,T,N]],[Ve,[D,B]],[ke,[D,B]]]),et.call(t.isIgnore,[[Ie,[B,lr]],[Ve,[B]],[ke,[B]]]),et.call(t.isIgnoreRgx,[[Ie,/ ?browser$/i],[ke,/ ?os$/i]]),et.call(t.toString,[[Ie,[D,B]],[Qe,[Oe]],[We,[N,T]],[Ve,[D,B]],[ke,[D,B]]]),t}(),Ws=function(t,e){var r=yr.init[e],n=yr.isIgnore[e]||0,i=yr.isIgnoreRgx[e]||0,a=yr.toString[e]||0;function o(){et.call(this,r)}return o.prototype.getItem=function(){return t},o.prototype.withClientHints=function(){return lt?lt.getHighEntropyValues(ra).then(function(s){return t.setCH(new na(s,!1)).parseCH().get()}):t.parseCH().get()},o.prototype.withFeatureCheck=function(){return t.detectFeature().get()},e!=Ot&&(o.prototype.is=function(s){var l=!1;for(var u in this)if(this.hasOwnProperty(u)&&!bn(n,u)&&Je(i?Pt(i,this[u]):this[u])==Je(i?Pt(i,s):s)){if(l=!0,s!=ut)break}else if(s==ut&&l){l=!l;break}return l},o.prototype.toString=function(){var s=Bt;for(var l in a)typeof this[a[l]]!==ut&&(s+=(s?" ":Bt)+this[a[l]]);return s||ut}),lt||(o.prototype.then=function(s){var l=this,u=function(){for(var d in l)l.hasOwnProperty(d)&&(this[d]=l[d])};u.prototype={is:o.prototype.is,toString:o.prototype.toString};var c=new u;return s(c),c}),new o};function na(t,e){if(t=t||{},et.call(this,ra),e)et.call(this,[[Un,rn(t[ht])],[$n,rn(t[ks])],[$,/\?1/.test(t[Vs])],[T,Wt(t[Us])],[Tt,Wt(t[ta])],[Hn,Wt(t[$s])],[Oe,Wt(t[Ms])],[yt,rn(t[Fs])],[Hr,Wt(t[Ls])]]);else for(var r in t)this.hasOwnProperty(r)&&typeof t[r]!==ut&&(this[r]=t[r])}function hi(t,e,r,n){return this.get=function(i){return i?this.data.hasOwnProperty(i)?this.data[i]:void 0:this.data},this.set=function(i,a){return this.data[i]=a,this},this.setCH=function(i){return this.uaCH=i,this},this.detectFeature=function(){if(Te&&Te.userAgent==this.ua)switch(this.itemType){case Ie:Te.brave&&typeof Te.brave.isBrave==Pr&&this.set(D,"Brave");break;case We:!this.get(S)&<&<[$]&&this.set(S,$),this.get(T)=="Macintosh"&&Te&&typeof Te.standalone!==ut&&Te.maxTouchPoints&&Te.maxTouchPoints>2&&this.set(T,"iPad").set(S,q);break;case ke:!this.get(D)&<&<[Tt]&&this.set(D,lt[Tt]);break;case Ot:var i=this.data,a=function(o){return i[o].getItem().detectFeature().get()};this.set(Ie,a(Ie)).set(Qe,a(Qe)).set(We,a(We)).set(Ve,a(Ve)).set(ke,a(ke))}return this},this.parseUA=function(){return this.itemType!=Ot&&an.call(this.data,this.ua,this.rgxMap),this.itemType==Ie&&this.set(lr,nn(this.get(B))),this},this.parseCH=function(){var i=this.uaCH,a=this.rgxMap;switch(this.itemType){case Ie:case Ve:var o=i[$n]||i[Un],s;if(o)for(var l in o){var u=o[l].brand||o[l],c=o[l].version;this.itemType==Ie&&!/not.a.brand/i.test(u)&&(!s||/Chrom/.test(s)&&u!=li||s==Tr&&/WebView2/.test(u))&&(u=ze(u,zs),s=this.get(D),s&&!/Chrom/.test(s)&&/Chrom/.test(u)||this.set(D,u).set(B,c).set(lr,nn(c)),s=u),this.itemType==Ve&&u==li&&this.set(B,c)}break;case Qe:var d=i[Oe];d&&(d&&i[Hr]=="64"&&(d+="64"),an.call(this.data,d+";",a));break;case We:if(i[$]&&this.set(S,$),i[T]&&(this.set(T,i[T]),!this.get(S)||!this.get(N))){var v={};an.call(v,"droid 9; "+i[T]+")",a),!this.get(S)&&v.type&&this.set(S,v.type),!this.get(N)&&v.vendor&&this.set(N,v.vendor)}if(i[yt]){var h;if(typeof i[yt]!="string")for(var p=0;!h&&p<i[yt].length;)h=ze(i[yt][p++],ci);else h=ze(i[yt],ci);this.set(S,h)}break;case ke:var g=i[Tt];if(g){var w=i[Hn];g==Cn&&(w=parseInt(nn(w),10)>=13?"11":"10"),this.set(D,g).set(B,w)}this.get(D)==Cn&&i[T]=="Xbox"&&this.set(D,"Xbox").set(B,void 0);break;case Ot:var _=this.data,m=function(E){return _[E].getItem().setCH(i).parseCH().get()};this.set(Ie,m(Ie)).set(Qe,m(Qe)).set(We,m(We)).set(Ve,m(Ve)).set(ke,m(ke))}return this},et.call(this,[["itemType",t],["ua",e],["uaCH",n],["rgxMap",r],["data",Ws(this,t)]]),this}function tt(t,e,r){if(typeof t===Rt?(kr(t,!0)?(typeof e===Rt&&(r=e),e=t):(r=t,e=void 0),t=void 0):typeof t===An&&!kr(e,!0)&&(r=e,e=void 0),r&&typeof r.append===Pr){var n={};r.forEach(function(l,u){n[u]=l}),r=n}if(!(this instanceof tt))return new tt(t,e,r).getResult();var i=typeof t===An?t:r&&r[Jn]?r[Jn]:Te&&Te.userAgent?Te.userAgent:Bt,a=new na(r,!0),o=e?Gs(di,e):di,s=function(l){return l==Ot?function(){return new hi(l,i,o,a).set("ua",i).set(Ie,this.getBrowser()).set(Qe,this.getCPU()).set(We,this.getDevice()).set(Ve,this.getEngine()).set(ke,this.getOS()).get()}:function(){return new hi(l,i,o[l],a).parseUA().get()}};return et.call(this,[["getBrowser",s(Ie)],["getCPU",s(Qe)],["getDevice",s(We)],["getEngine",s(Ve)],["getOS",s(ke)],["getResult",s(Ot)],["getUA",function(){return i}],["setUA",function(l){return Mt(l)&&(i=l.length>En?Mr(l,En):l),this}]]).setUA(i),this}tt.VERSION=Ps;tt.BROWSER=Gr([D,B,lr,S]);tt.CPU=Gr([Oe]);tt.DEVICE=Gr([T,N,S,qt,$,ue,q,Ge,Qt]);tt.ENGINE=tt.OS=Gr([D,B]);const on=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sn(t,e,r,n){t.addEventListener?t.addEventListener(e,r,n):t.attachEvent&&t.attachEvent("on".concat(e),r)}function Xt(t,e,r,n){t.removeEventListener?t.removeEventListener(e,r,n):t.detachEvent&&t.detachEvent("on".concat(e),r)}function ia(t,e){const r=e.slice(0,e.length-1);for(let n=0;n<r.length;n++)r[n]=t[r[n].toLowerCase()];return r}function aa(t){typeof t!="string"&&(t=""),t=t.replace(/\s/g,"");const e=t.split(",");let r=e.lastIndexOf("");for(;r>=0;)e[r-1]+=",",e.splice(r,1),r=e.lastIndexOf("");return e}function Xs(t,e){const r=t.length>=e.length?t:e,n=t.length>=e.length?e:t;let i=!0;for(let a=0;a<r.length;a++)n.indexOf(r[a])===-1&&(i=!1);return i}const ur={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":on?173:189,"=":on?61:187,";":on?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},$e={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Jt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ye={16:!1,18:!1,17:!1,91:!1},se={};for(let t=1;t<20;t++)ur["f".concat(t)]=111+t;let oe=[],ar=null,oa="all";const qe=new Map,Lt=t=>ur[t.toLowerCase()]||$e[t.toLowerCase()]||t.toUpperCase().charCodeAt(0),js=t=>Object.keys(ur).find(e=>ur[e]===t),Ys=t=>Object.keys($e).find(e=>$e[e]===t);function sa(t){oa=t||"all"}function fr(){return oa||"all"}function Ks(){return oe.slice(0)}function Zs(){return oe.map(t=>js(t)||Ys(t)||String.fromCharCode(t))}function qs(){const t=[];return Object.keys(se).forEach(e=>{se[e].forEach(r=>{let{key:n,scope:i,mods:a,shortcut:o}=r;t.push({scope:i,shortcut:o,mods:a,keys:n.split("+").map(s=>Lt(s))})})}),t}function Qs(t){const e=t.target||t.srcElement,{tagName:r}=e;let n=!0;const i=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(e.type);return(e.isContentEditable||(i||r==="TEXTAREA"||r==="SELECT")&&!e.readOnly)&&(n=!1),n}function Js(t){return typeof t=="string"&&(t=Lt(t)),oe.indexOf(t)!==-1}function el(t,e){let r,n;t||(t=fr());for(const i in se)if(Object.prototype.hasOwnProperty.call(se,i))for(r=se[i],n=0;n<r.length;)r[n].scope===t?r.splice(n,1).forEach(o=>{let{element:s}=o;return Gn(s)}):n++;fr()===t&&sa(e||"all")}function tl(t){let e=t.keyCode||t.which||t.charCode;t.key&&t.key.toLowerCase()==="capslock"&&(e=Lt(t.key));const r=oe.indexOf(e);if(r>=0&&oe.splice(r,1),t.key&&t.key.toLowerCase()==="meta"&&oe.splice(0,oe.length),(e===93||e===224)&&(e=91),e in ye){ye[e]=!1;for(const n in $e)$e[n]===e&&(Xe[n]=!1)}}function la(t){if(typeof t>"u")Object.keys(se).forEach(i=>{Array.isArray(se[i])&&se[i].forEach(a=>mr(a)),delete se[i]}),Gn(null);else if(Array.isArray(t))t.forEach(i=>{i.key&&mr(i)});else if(typeof t=="object")t.key&&mr(t);else if(typeof t=="string"){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];let[i,a]=r;typeof i=="function"&&(a=i,i=""),mr({key:t,scope:i,method:a,splitKey:"+"})}}const mr=t=>{let{key:e,scope:r,method:n,splitKey:i="+"}=t;aa(e).forEach(o=>{const s=o.split(i),l=s.length,u=s[l-1],c=u==="*"?"*":Lt(u);if(!se[c])return;r||(r=fr());const d=l>1?ia($e,s):[],v=[];se[c]=se[c].filter(h=>{const g=(n?h.method===n:!0)&&h.scope===r&&Xs(h.mods,d);return g&&v.push(h.element),!g}),v.forEach(h=>Gn(h))})};function vi(t,e,r,n){if(e.element!==n)return;let i;if(e.scope===r||e.scope==="all"){i=e.mods.length>0;for(const a in ye)Object.prototype.hasOwnProperty.call(ye,a)&&(!ye[a]&&e.mods.indexOf(+a)>-1||ye[a]&&e.mods.indexOf(+a)===-1)&&(i=!1);(e.mods.length===0&&!ye[16]&&!ye[18]&&!ye[17]&&!ye[91]||i||e.shortcut==="*")&&(e.keys=[],e.keys=e.keys.concat(oe),e.method(t,e)===!1&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0)))}}function pi(t,e){const r=se["*"];let n=t.keyCode||t.which||t.charCode;if(t.key&&t.key.toLowerCase()==="capslock"||!Xe.filter.call(this,t))return;if((n===93||n===224)&&(n=91),oe.indexOf(n)===-1&&n!==229&&oe.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(s=>{const l=Jt[s];t[s]&&oe.indexOf(l)===-1?oe.push(l):!t[s]&&oe.indexOf(l)>-1?oe.splice(oe.indexOf(l),1):s==="metaKey"&&t[s]&&(oe=oe.filter(u=>u in Jt||u===n))}),n in ye){ye[n]=!0;for(const s in $e)if(Object.prototype.hasOwnProperty.call($e,s)){const l=Jt[$e[s]];Xe[s]=t[l]}if(!r)return}for(const s in ye)Object.prototype.hasOwnProperty.call(ye,s)&&(ye[s]=t[Jt[s]]);t.getModifierState&&!(t.altKey&&!t.ctrlKey)&&t.getModifierState("AltGraph")&&(oe.indexOf(17)===-1&&oe.push(17),oe.indexOf(18)===-1&&oe.push(18),ye[17]=!0,ye[18]=!0);const i=fr();if(r)for(let s=0;s<r.length;s++)r[s].scope===i&&(t.type==="keydown"&&r[s].keydown||t.type==="keyup"&&r[s].keyup)&&vi(t,r[s],i,e);if(!(n in se))return;const a=se[n],o=a.length;for(let s=0;s<o;s++)if((t.type==="keydown"&&a[s].keydown||t.type==="keyup"&&a[s].keyup)&&a[s].key){const l=a[s],{splitKey:u}=l,c=l.key.split(u),d=[];for(let v=0;v<c.length;v++)d.push(Lt(c[v]));d.sort().join("")===oe.sort().join("")&&vi(t,l,i,e)}}function Xe(t,e,r){oe=[];const n=aa(t);let i=[],a="all",o=document,s=0,l=!1,u=!0,c="+",d=!1,v=!1;for(r===void 0&&typeof e=="function"&&(r=e),Object.prototype.toString.call(e)==="[object Object]"&&(e.scope&&(a=e.scope),e.element&&(o=e.element),e.keyup&&(l=e.keyup),e.keydown!==void 0&&(u=e.keydown),e.capture!==void 0&&(d=e.capture),typeof e.splitKey=="string"&&(c=e.splitKey),e.single===!0&&(v=!0)),typeof e=="string"&&(a=e),v&&la(t,a);s<n.length;s++)t=n[s].split(c),i=[],t.length>1&&(i=ia($e,t)),t=t[t.length-1],t=t==="*"?"*":Lt(t),t in se||(se[t]=[]),se[t].push({keyup:l,keydown:u,scope:a,mods:i,shortcut:n[s],method:r,key:n[s],splitKey:c,element:o});if(typeof o<"u"&&window){if(!qe.has(o)){const h=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return pi(g,o)},p=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;pi(g,o),tl(g)};qe.set(o,{keydownListener:h,keyupListenr:p,capture:d}),sn(o,"keydown",h,d),sn(o,"keyup",p,d)}if(!ar){const h=()=>{oe=[]};ar={listener:h,capture:d},sn(window,"focus",h,d)}}}function rl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(se).forEach(r=>{se[r].filter(i=>i.scope===e&&i.shortcut===t).forEach(i=>{i&&i.method&&i.method()})})}function Gn(t){const e=Object.values(se).flat();if(e.findIndex(n=>{let{element:i}=n;return i===t})<0){const{keydownListener:n,keyupListenr:i,capture:a}=qe.get(t)||{};n&&i&&(Xt(t,"keyup",i,a),Xt(t,"keydown",n,a),qe.delete(t))}if((e.length<=0||qe.size<=0)&&(Object.keys(qe).forEach(i=>{const{keydownListener:a,keyupListenr:o,capture:s}=qe.get(i)||{};a&&o&&(Xt(i,"keyup",o,s),Xt(i,"keydown",a,s),qe.delete(i))}),qe.clear(),Object.keys(se).forEach(i=>delete se[i]),ar)){const{listener:i,capture:a}=ar;Xt(window,"focus",i,a),ar=null}}const ln={getPressedKeyString:Zs,setScope:sa,getScope:fr,deleteScope:el,getPressedKeyCodes:Ks,getAllKeyCodes:qs,isPressed:Js,filter:Qs,trigger:rl,unbind:la,keyMap:ur,modifier:$e,modifierMap:Jt};for(const t in ln)Object.prototype.hasOwnProperty.call(ln,t)&&(Xe[t]=ln[t]);if(typeof window<"u"){const t=window.hotkeys;Xe.noConflict=e=>(e&&window.hotkeys===Xe&&(window.hotkeys=t),Xe),window.hotkeys=Xe}const nl={class:"dsg-dropdown--trigger",tabindex:"0"},il={class:"dsg-dropdown--menu"},al={key:0,class:"dsg-dropdown--menu-header"},ol={key:1,class:"dsg-dropdown--menu-header"},sl={class:"dsg-dropdown--menu-title"},ll={key:2,class:"dsg-dropdown--menu-header subsection"},ul={class:"dsg-dropdown--menu-subtitle"},fl=["href","target","tabindex","title","onClick"],cl={key:0,class:"dsg-dropdown--menu-item--content"},dl={key:0,class:"dsg-dropdown--menu-item--icon"},hl={class:"dsg-dropdown--menu-item--label"},vl={class:"dsg-dropdown--menu-item--hotkey"},pl={key:0},gl={key:1,class:"dsg-dropdown--menu-item--content"},xl=f.defineComponent({__name:"DsgDropdown",props:{label:{default:""},type:{default:"button"},icon:{default:"dots-vertical"},buttonTheme:{default:"gray"},menuItems:{default:()=>[]},avatarInfo:{default:null},isOpen:{type:Boolean,default:!1},placement:{default:"bottom-end"},headerType:{default:"none"},headerTitle:{default:""},classes:{default:""},strategy:{default:"absolute"},skidding:{default:0},distance:{default:0}},setup(t,{expose:e}){const r=f.ref(t.isOpen),n=new tt().getOS().name;t.menuItems.forEach(h=>{});const i=f.useTemplateRef("floatingVueDropdownEl"),a=f.useTemplateRef("dsgDropdownAvatarTriggerEl"),o=f.useTemplateRef("dsgDropdownButtonTriggerEl"),s=h=>{u(),a.value&&setTimeout(()=>{a?.value?.toggleFocus(r.value)},100)},l=h=>{u(),o.value&&setTimeout(()=>{o?.value?.focusButton(r.value)},100)},u=()=>{r.value=!r.value,r.value?i.value?.show():i.value?.hide()},c=(h,p)=>{p.uri||h.preventDefault(),p.action&&(p.action(),i.value?.hide())},d=f.useTemplateRef("dsgDropdown"),v=h=>(h=h.toLowerCase(),h.replace("ctrl","⌃").replace("shift","⇧").replace("alt","⌥").replace("cmd",n==="macOS"?"⌘":"⊞").replace("++","+").replace("+","").toUpperCase());return f.onMounted(()=>{t.menuItems.forEach(h=>{h.hotkey&&Xe(h.hotkey,p=>{h.hotkeyPreventDefault&&h.hotkeyPreventDefault===!0&&p.preventDefault(),h.uri&&window.open(h.uri,h.uriTarget??"_blank"),typeof h.action=="function"&&(h.action(),i.value?.hide())})})}),f.onBeforeUnmount(()=>{Xe.deleteScope("dsgDropdown")}),e({handleTriggerClick:u}),(h,p)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["dsg-dropdown",h.classes]),ref:"dsgDropdown"},[f.createVNode(f.unref(L.kt),f.mergeProps({triggers:[],placement:h.placement,"handle-resize":!1,strategy:h.strategy,shown:r.value,flip:!1,shift:!1,boundary:d.value,container:d.value,skidding:h.skidding,distance:h.distance,class:"dsg-dropdown--popper",onHide:p[0]||(p[0]=g=>r.value=!1),ref:"floatingVueDropdownEl"},h.$attrs),{popper:f.withCtx(()=>[f.createElementVNode("div",il,[f.renderSlot(h.$slots,"dsg-dropdown-menu--header",{},()=>[h.headerType==="avatar"?(f.openBlock(),f.createElementBlock("div",al,[h.avatarInfo?(f.openBlock(),f.createBlock(or,{key:0,size:"md",profileUri:h.avatarInfo.profileUri,fullName:h.avatarInfo.fullName,isOnline:h.avatarInfo.isOnline,title:h.avatarInfo.title,"sub-text":h.avatarInfo.subText},null,8,["profileUri","fullName","isOnline","title","sub-text"])):f.createCommentVNode("",!0)])):h.headerType==="title"?(f.openBlock(),f.createElementBlock("div",ol,[f.createElementVNode("h3",sl,f.toDisplayString(h.headerTitle),1)])):h.headerType==="subsection"?(f.openBlock(),f.createElementBlock("div",ll,[f.createElementVNode("h4",ul,f.toDisplayString(h.headerTitle),1)])):f.createCommentVNode("",!0)]),f.renderSlot(h.$slots,"dsg-dropdown-menu-content",{},()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(h.menuItems,(g,w)=>(f.openBlock(),f.createElementBlock("a",{class:f.normalizeClass(["dsg-dropdown--menu-item",{"is-divider":g.type==="divider"}]),href:g.uri,target:g.uriTarget??"_blank",tabindex:!g.uri&&g.type!=="divider"?0:void 0,title:g.label,key:w,onClick:_=>c(_,g)},[g.type==="item"||g.type===void 0?(f.openBlock(),f.createElementBlock("div",cl,[g.icon?(f.openBlock(),f.createElementBlock("div",dl,[f.createVNode(L._sfc_main,{icon:g.icon,size:"xs"},null,8,["icon"])])):f.createCommentVNode("",!0),f.createElementVNode("span",hl,f.toDisplayString(g.label),1),f.createElementVNode("div",vl,[g.hotkey?(f.openBlock(),f.createElementBlock("span",pl,f.toDisplayString(v(g.hotkey)),1)):f.createCommentVNode("",!0)])])):g.type==="divider"?(f.openBlock(),f.createElementBlock("div",gl,p[1]||(p[1]=[f.createElementVNode("hr",null,null,-1)]))):f.createCommentVNode("",!0)],10,fl))),128))])])]),default:f.withCtx(()=>[f.createElementVNode("div",nl,[f.renderSlot(h.$slots,"dsg-dropdown--trigger",{},()=>[h.type==="avatar"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[h.avatarInfo?(f.openBlock(),f.createBlock(or,{key:0,size:"lg",profileUri:h.avatarInfo.profileUri,fullName:h.avatarInfo.fullName,ref:"dsgDropdownAvatarTriggerEl",onClick:s,"prevent-default":!0},null,8,["profileUri","fullName"])):f.createCommentVNode("",!0)],64)):h.type==="button"?(f.openBlock(),f.createBlock(L._sfc_main$3,{key:1,theme:h.buttonTheme,label:h.label,onClick:l,ref:"dsgDropdownButtonTriggerEl","icon-after":"chevron-down",class:f.normalizeClass({"dropdown-active":r.value})},null,8,["theme","label","class"])):h.type==="icon"?(f.openBlock(),f.createBlock(L._sfc_main$3,{key:2,"icon-before":h.icon,size:"sm",theme:h.buttonTheme,class:f.normalizeClass(["dsg-dropdown--trigger-button",{"dropdown-active":r.value}]),onClick:u},null,8,["icon-before","theme","class"])):f.createCommentVNode("",!0)])])]),_:3},16,["placement","strategy","shown","boundary","container","skidding","distance"])],2))}});function un(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function yl(t){return(...e)=>!t(...e)}function ml(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function wl(t){return t.filter(e=>!e.$isLabel)}function fn(t,e){return r=>r.reduce((n,i)=>i[t]&&i[t].length?(n.push({$groupLabel:i[e],$isLabel:!0}),n.concat(i[t])):n,[])}const gi=(...t)=>e=>t.reduce((r,n)=>n(r),e);var _l={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return un(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let r=this.options.concat();return this.internalSearch?r=this.groupValues?this.filterAndFlat(r,e,this.label):this.filterOptions(r,e,this.label,this.customLabel):r=this.groupValues?fn(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(yl(this.isSelected)):r,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?r.push({isTag:!0,label:t}):r.unshift({isTag:!0,label:t})),r.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,r){return gi(this.filterGroups(e,r,this.groupValues,this.groupLabel,this.customLabel),fn(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return gi(fn(this.groupValues,this.groupLabel),wl)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(un(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return un(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(r=>r[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const r=this.trackBy?e[this.groupValues].map(i=>i[this.trackBy]):e[this.groupValues],n=this.internalValue.filter(i=>r.indexOf(this.trackBy?i[this.trackBy]:i)===-1);this.$emit("update:modelValue",n)}else{const r=e[this.groupValues].filter(n=>!(this.isOptionDisabled(n)||this.isSelected(n)));this.max&&r.splice(this.max-this.internalValue.length),this.$emit("select",r,this.id),this.$emit("update:modelValue",this.internalValue.concat(r))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const r=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const n=this.internalValue.slice(0,r).concat(this.internalValue.slice(r+1));this.$emit("update:modelValue",n)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))},filterOptions(t,e,r,n){return e?t.filter(i=>ml(n(i,r),e)).sort((i,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(i,a):n(i,r).length-n(a,r).length):t},filterGroups(t,e,r,n,i){return a=>a.map(o=>{if(!o[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const s=this.filterOptions(o[r],t,e,i);return s.length?{[n]:o[n],[r]:s}:[]})}}},El={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const r=this.options.find(n=>n[this.groupLabel]===e.$groupLabel);return r&&!this.wholeGroupDisabled(r)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(r)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list?.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list?.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},ua={name:"vue-multiselect",mixins:[_l,El],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1},useTeleport:{type:Boolean,default:!1}},data(){return{dropdownStyles:{},ready:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}},watch:{isOpen(t){t&&(this.useTeleport?(this.ready=!1,this.$nextTick(()=>{const e=this.$el.getBoundingClientRect();this.dropdownStyles={position:"absolute",top:`${e.bottom+window.scrollY}px`,left:`${e.left+window.scrollX}px`,width:`${e.width}px`,zIndex:9999},this.ready=!0})):this.ready=!0)}}};const Al=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],Cl={ref:"tags",class:"multiselect__tags"},bl={class:"multiselect__tags-wrap"},Sl=["textContent"],Il=["onKeypress","onMousedown"],Ol=["textContent"],Tl={class:"multiselect__spinner"},Nl=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],Dl=["id","aria-multiselectable"],Bl={key:0},Rl={class:"multiselect__option"},Pl=["aria-selected","id","role"],kl=["onClick","onMouseenter","data-select","data-selected","data-deselect"],Ml=["data-select","data-deselect","onMouseenter","onMousedown"],Ll={class:"multiselect__option"},Fl={class:"multiselect__option"};function Vl(t,e,r,n,i,a){return f.openBlock(),f.createElementBlock("div",{tabindex:t.searchable?-1:r.tabindex,class:f.normalizeClass([{"multiselect--active":t.isOpen,"multiselect--disabled":r.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:e[14]||(e[14]=o=>t.activate()),onBlur:e[15]||(e[15]=o=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=f.withKeys(f.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=f.withKeys(f.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=f.withKeys(f.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=f.withKeys(o=>t.deactivate(),["esc"])),role:"combobox","aria-expanded":t.isOpen,"aria-owns":"listbox-"+t.id,"aria-activedescendant":t.isOpen&&t.pointer!==null?t.id+"-"+t.pointer:null},[f.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[f.createElementVNode("div",{onMousedown:e[0]||(e[0]=f.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),f.renderSlot(t.$slots,"clear",{search:t.search}),f.createElementVNode("div",Cl,[f.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:a.visibleValues,isOpen:t.isOpen},()=>[f.withDirectives(f.createElementVNode("div",bl,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(a.visibleValues,(o,s)=>f.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(f.openBlock(),f.createElementBlock("span",{class:"multiselect__tag",key:s,onMousedown:e[1]||(e[1]=f.withModifiers(()=>{},["prevent"]))},[f.createElementVNode("span",{textContent:f.toDisplayString(t.getOptionLabel(o))},null,8,Sl),f.createElementVNode("i",{tabindex:"1",onKeypress:f.withKeys(f.withModifiers(l=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:f.withModifiers(l=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,Il)],32))])),256))],512),[[f.vShow,a.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>r.limit?f.renderSlot(t.$slots,"limit",{key:0},()=>[f.createElementVNode("strong",{class:"multiselect__strong",textContent:f.toDisplayString(r.limitText(t.internalValue.length-r.limit))},null,8,Ol)]):f.createCommentVNode("v-if",!0)]),f.createVNode(f.Transition,{name:"multiselect__loading"},{default:f.withCtx(()=>[f.renderSlot(t.$slots,"loading",{},()=>[f.withDirectives(f.createElementVNode("div",Tl,null,512),[[f.vShow,r.loading]])])]),_:3}),t.searchable?(f.openBlock(),f.createElementBlock("input",{key:0,ref:"search",name:r.name,id:t.id,type:"text",autocomplete:"off",spellcheck:r.spellcheck,placeholder:t.placeholder,required:a.isRequired,style:f.normalizeStyle(a.inputStyle),value:t.search,disabled:r.disabled,tabindex:r.tabindex,"aria-label":r.name+"-searchbox",onInput:e[2]||(e[2]=o=>t.updateSearch(o.target.value)),onFocus:e[3]||(e[3]=f.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=f.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=f.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=f.withKeys(f.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=f.withKeys(f.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=f.withKeys(f.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=f.withKeys(f.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,Nl)):f.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(f.openBlock(),f.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=f.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[f.renderSlot(t.$slots,"singleLabel",{option:a.singleValue},()=>[f.createTextVNode(f.toDisplayString(t.currentOptionLabel),1)])],32)):f.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(f.openBlock(),f.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=f.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[f.renderSlot(t.$slots,"placeholder",{},()=>[f.createTextVNode(f.toDisplayString(t.placeholder),1)])],32)):f.createCommentVNode("v-if",!0)],512),(f.openBlock(),f.createBlock(f.Teleport,{to:"body",disabled:!r.useTeleport},[f.createVNode(f.Transition,{name:"multiselect"},{default:f.withCtx(()=>[t.isOpen&&i.ready?(f.openBlock(),f.createElementBlock("div",{key:0,class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=f.withModifiers(()=>{},["prevent"])),style:f.normalizeStyle([i.dropdownStyles,{maxHeight:t.optimizedHeight+"px"}]),ref:"list"},[f.createElementVNode("ul",{class:"multiselect__content",style:f.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+t.id,"aria-multiselectable":t.multiple},[f.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(f.openBlock(),f.createElementBlock("li",Bl,[f.createElementVNode("span",Rl,[f.renderSlot(t.$slots,"maxElements",{},()=>[f.createTextVNode("Maximum of "+f.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):f.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(t.filteredOptions,(o,s)=>(f.openBlock(),f.createElementBlock("li",{class:"multiselect__element",key:s,"aria-selected":t.isSelected(o),id:t.id+"-"+s,role:o&&(o.$isLabel||o.$isDisabled)?null:"option"},[o&&(o.$isLabel||o.$isDisabled)?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",{key:0,class:f.normalizeClass([t.optionHighlight(s,o),"multiselect__option"]),onClick:f.withModifiers(l=>t.select(o),["stop"]),onMouseenter:f.withModifiers(l=>t.pointerSet(s),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[f.renderSlot(t.$slots,"option",{option:o,search:t.search,index:s},()=>[f.createElementVNode("span",null,f.toDisplayString(t.getOptionLabel(o)),1)])],42,kl)),o&&(o.$isLabel||o.$isDisabled)?(f.openBlock(),f.createElementBlock("span",{key:1,"data-select":t.groupSelect&&a.selectGroupLabelText,"data-deselect":t.groupSelect&&a.deselectGroupLabelText,class:f.normalizeClass([t.groupHighlight(s,o),"multiselect__option"]),onMouseenter:f.withModifiers(l=>t.groupSelect&&t.pointerSet(s),["self"]),onMousedown:f.withModifiers(l=>t.selectGroup(o),["prevent"])},[f.renderSlot(t.$slots,"option",{option:o,search:t.search,index:s},()=>[f.createElementVNode("span",null,f.toDisplayString(t.getOptionLabel(o)),1)])],42,Ml)):f.createCommentVNode("v-if",!0)],8,Pl))),128)):f.createCommentVNode("v-if",!0),f.withDirectives(f.createElementVNode("li",null,[f.createElementVNode("span",Ll,[f.renderSlot(t.$slots,"noResult",{search:t.search},()=>[e[20]||(e[20]=f.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[f.vShow,r.showNoResults&&t.filteredOptions.length===0&&t.search&&!r.loading]]),f.withDirectives(f.createElementVNode("li",null,[f.createElementVNode("span",Fl,[f.renderSlot(t.$slots,"noOptions",{},()=>[e[21]||(e[21]=f.createTextVNode("List is empty."))])])],512),[[f.vShow,r.showNoOptions&&(t.options.length===0||a.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!r.loading]]),f.renderSlot(t.$slots,"afterList")],12,Dl)],36)):f.createCommentVNode("v-if",!0)]),_:3})],8,["disabled"]))],42,Al)}ua.render=Vl;const Ul={class:"dsg-input--label-wrapper block"},$l=["onMousedown"],Hl={class:"option-label"},Gl={key:0,class:"dsg-input-select--error-wrapper"},zl=f.defineComponent({__name:"DsgInputSelect",props:f.mergeModels({options:{default:()=>[]},multiple:{type:Boolean,default:!1},fetchOnLoad:{type:Boolean,default:!1},getUrl:{},extraParams:{default:()=>({})},strategy:{default:"absolute"},placeholder:{},icon:{default:null},label:{default:"label"},showLabels:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},trackBy:{default:"id"},contentMaxWidth:{default:"24rem"},itemLabel:{default:"label"},allowEmpty:{type:Boolean,default:!1},validateOnLoad:{type:Boolean,default:!0},selectLabel:{default:""},selectedLabel:{default:""},errors:{default:()=>[]},scrollBind:{default:()=>document.body},size:{default:"md"}},{modelValue:{},modelModifiers:{},single:{},singleModifiers:{}}),emits:f.mergeModels(["update:modelValue","update:model-value","search-change","select","open","close","remove","tag"],["update:modelValue","update:single"]),setup(t,{emit:e}){const r=f.useModel(t,"modelValue"),n=f.useModel(t,"single"),i=f.ref(t.options),a=f.useTemplateRef("multiselectEl"),o=f.ref(!1),s=f.ref([]);f.computed(()=>s.value.length>0);const l=f.computed(()=>[...Array.isArray(t.errors)?t.errors:[t.errors],...s.value].filter((C,b,O)=>b===O.indexOf(C))),u=f.computed(()=>["dsg-input-select",`dsg-input-select--${t.size}`,`dsg-input-select--${t.strategy}`,`dsg-input-select--${l.value.length>0?"has-errors":"no-errors"}`].join(" ").replace(/\s+/g," ").trim()),c=()=>{p()},d=y=>{p()};f.watchEffect(()=>{}),f.watch(()=>t.options,y=>{Array.isArray(y)?i.value=y:console.warn("Options should be an array.")});const v=f.ref(null);f.watch(()=>t.scrollBind,async y=>{await f.nextTick(),v.value&&typeof v.value.removeEventListener=="function"&&v.value.removeEventListener("scroll",d);const C=O=>{const P=window.getComputedStyle(O),H=["auto","scroll","overlay"].includes(P.overflow)||["auto","scroll","overlay"].includes(P.overflowY)||["auto","scroll","overlay"].includes(P.overflowX),M=O.scrollHeight>O.clientHeight||O.scrollWidth>O.clientWidth;return H&&M};let b=null;y?b=C(y)?y:window:b=window,b&&typeof b.addEventListener=="function"?(b.addEventListener("scroll",d),v.value=b):v.value=null},{immediate:!0});const h=e,p=()=>{if(a.value)if(o.value===!0){const y=a.value.$el.getBoundingClientRect(),C=a.value.$el.offsetHeight,b=window.innerHeight;f.nextTick(()=>{const O=a.value.$el.querySelector(".multiselect__content-wrapper");O.style.display="block";const P=O.offsetHeight;if(t.strategy==="fixed"){O.style.left=y.left+"px",O.style.right="auto",O.style.top="auto",O.style.bottom="auto";const H=y.width,M=window.innerWidth-y.left,V=H>M?Math.min(300,M-16):H;O.style.width=`${V}px`;const z=b-y.bottom,he=y.top,He=P+8;(z<He&&he>z?"top":"bottom")==="top"?O.style.bottom=`${b-y.top+4}px`:O.style.top=`${y.bottom+4}px`;let rt=!1;if(v.value===window)rt=y.top<b&&y.bottom>0&&y.left<window.innerWidth&&y.right>0;else if(v.value){const nt=v.value.getBoundingClientRect();rt=y.top<nt.bottom&&y.bottom>nt.top&&y.left<nt.right&&y.right>nt.left}else rt=y.top<b&&y.bottom>0&&y.left<window.innerWidth&&y.right>0;if(!rt){O.style.display="none";return}O.style.display="block"}else O.style.left="0",O.style.right="auto",O.style.width="auto",O.style.maxWidth=t.contentMaxWidth,(y.bottom+P+C+2>b?"top":"bottom")==="top"?O.style.bottom=`${C+4}px`:O.style.top=`${C+4}px`})}else{const y=a.value.$refs.list;y&&(y.style.display="none",y.style.top="auto",y.style.bottom="auto",y.style.left="auto",y.style.right="auto")}},g=y=>{o.value=!0,p(),h("open",y)},w=(y,C)=>{o.value=!1,p(),h("close",y,C)},_=L.useDebounceFn(y=>{t.getUrl&&y.length>2&&L.axios.get(t.getUrl,{params:{term:y,...t.extraParams}}).then(C=>{i.value=C.data}),h("search-change",y)},300),m=(y,C=!0)=>{if(s.value=[],t.allowEmpty===!1&&(y==null||Array.isArray(y)&&y.length===0)&&s.value.push(`${t.label} is required.`),C===!0)try{E(y),h("update:modelValue",y),h("update:model-value",y)}catch(b){console.log(b)}},E=y=>{y?n.value=y[t.trackBy]||y:n.value=null};return f.onMounted(()=>{window.addEventListener("resize",c),t.getUrl&&t.options.length===0&&t.fetchOnLoad&&L.axios.get(t.getUrl).then(y=>{i.value=y.data}).catch(y=>{console.error("Error fetching options:",y)}),t.validateOnLoad&&m(r.value,!1)}),f.onUnmounted(()=>{window.removeEventListener("resize",c),v.value&&typeof v.value.removeEventListener=="function"&&v.value.removeEventListener("scroll",d)}),(y,C)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(u.value),ref:"dsgInputSelectEl"},[f.createElementVNode("div",Ul,[y.label?(f.openBlock(),f.createBlock(Gi._sfc_main,{key:0,label:y.label,size:"sm"},null,8,["label"])):f.createCommentVNode("",!0)]),f.createVNode(f.unref(ua),f.mergeProps({ref:"multiselectEl",modelValue:r.value,"onUpdate:modelValue":[C[0]||(C[0]=b=>r.value=b),C[3]||(C[3]=b=>m(b,!0))],options:i.value,multiple:y.multiple,onSearchChange:f.unref(_),onOpen:C[1]||(C[1]=b=>g(b)),onClose:C[2]||(C[2]=(b,O)=>w(b,O)),onRemove:C[4]||(C[4]=(b,O)=>h("remove",b,O)),onTag:C[5]||(C[5]=(b,O)=>h("tag",b,O)),placeholder:y.placeholder,label:y.itemLabel,"track-by":y.trackBy,"close-on-select":y.closeOnSelect,"show-labels":y.showLabels,disabled:y.disabled,"allow-empty":y.allowEmpty,"select-label":y.selectLabel,"preserve-search":!0,"selected-label":y.selectedLabel,class:["dsg-input--multiselect",{"dsg-input--multiselect--has-errors":y.errors&&y.errors.length,"dsg-input--multiselect--disabled":y.disabled}]},y.$attrs),{selection:f.withCtx(()=>[y.icon?(f.openBlock(),f.createBlock(L._sfc_main,{key:0,icon:y.icon,size:"md",class:"dsg-untitled-icon text-gray-500 transition-all duration-200 ease-in-out inline-block mr-2"},null,8,["icon"])):f.createCommentVNode("",!0)]),caret:f.withCtx(({toggle:b})=>[f.createElementVNode("div",{onMousedown:f.withModifiers(O=>b(),["prevent","stop"]),class:"multiselect__select"},[f.createVNode(L._sfc_main,{icon:"chevron-down"})],40,$l)]),option:f.withCtx(({option:b})=>[f.createElementVNode("span",Hl,f.toDisplayString(b[y.itemLabel]),1),f.createVNode(L._sfc_main,{icon:"check",size:"sm",class:"option-icon text-brand-600"})]),_:1},16,["modelValue","options","multiple","onSearchChange","placeholder","label","track-by","close-on-select","show-labels","disabled","allow-empty","select-label","selected-label","class"]),l.value&&l.value.length?(f.openBlock(),f.createElementBlock("div",Gl,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(l.value,(b,O)=>(f.openBlock(),f.createElementBlock("span",{class:"dsg-input--error",key:O},f.toDisplayString(b),1))),128))])):f.createCommentVNode("",!0)],2))}}),Wl=["name"],Xl=["selected"],jl=["value","selected"],Yl=f.defineComponent({__name:"DsgInputDropdown",props:f.mergeModels({name:{default:""},placeholder:{default:""},classes:{default:""},options:{default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=f.useModel(t,"modelValue");return(r,n)=>f.withDirectives((f.openBlock(),f.createElementBlock("select",{class:f.normalizeClass(["dsg-input-dropdown",r.classes]),name:r.name,"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i)},[r.placeholder?(f.openBlock(),f.createElementBlock("option",{key:0,value:"",disabled:"",selected:e.value===""},f.toDisplayString(r.placeholder),9,Xl)):f.createCommentVNode("",!0),(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.options,(i,a)=>(f.openBlock(),f.createElementBlock("option",{key:a,value:i.value,selected:e.value===i.value},f.toDisplayString(i.label),9,jl))),128))],10,Wl)),[[f.vModelSelect,e.value]])}}),Kl=["href","title","target"],Zl={key:0,class:"dsg-link--label"},ql=f.defineComponent({__name:"DsgLink",props:{label:{default:"Link"},href:{default:""},uriTarget:{default:"_self"},size:{default:"md"},classes:{default:""},preventDefault:{type:Boolean,default:!1}},emits:["link-clicked"],setup(t,{emit:e}){const r=["dsg-link","dsg-link--"+t.size,t.classes].join(" "),n=e,i=a=>{t.preventDefault&&a.preventDefault(),n("link-clicked",a)};return(a,o)=>(f.openBlock(),f.createElementBlock("a",{href:a.href,title:"Link: "+a.label,target:a.uriTarget,class:f.normalizeClass(f.unref(r)),onClick:i},[f.renderSlot(a.$slots,"dsg-link-content",{},()=>[a.label?(f.openBlock(),f.createElementBlock("span",Zl,f.toDisplayString(a.label),1)):f.createCommentVNode("",!0)])],10,Kl))}}),Ql={key:1,class:"dsg-modal__header-text"},Jl={key:0,class:"dsg-modal__header-title"},eu={key:1,class:"dsg-modal__header-description"},tu={key:1,class:"dsg-modal__body"},fa=f.defineComponent({__name:"DsgModal",props:{title:{default:""},description:{default:""},miscIcon:{default:null},hasClosedButton:{type:Boolean,default:!0},initialOpen:{type:Boolean,default:!1},closeClickBackground:{type:Boolean,default:!1},wrapperClasses:{default:""},width:{default:400},type:{default:"left"},footerType:{default:"horizontal-even"},primaryButton:{type:[Object,Boolean],default:!1},secondaryButton:{type:[Object,Boolean],default:!1},hasBackground:{type:Boolean,default:!0}},emits:["before-open","after-open","before-close","after-close","secondary-button-clicked","primary-button-clicked"],setup(t,{expose:e,emit:r}){const n=r,i=f.ref(t.initialOpen),a=()=>{n("before-open"),i.value=!0,n("after-open")},o=()=>{n("before-close"),i.value=!1,n("after-close")},s=()=>{i.value&&t.closeClickBackground&&o()},l=()=>{n("secondary-button-clicked")},u=()=>{n("primary-button-clicked")};return e({open:a,close:o,secondaryButtonClicked:l,primaryButtonClicked:u}),(c,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["dsg-modal",`dsg-modal--${i.value?"open":"closed"}`])},[c.hasBackground?(f.openBlock(),f.createElementBlock("div",{key:0,class:"dsg-modal__background",onDblclick:s},null,32)):f.createCommentVNode("",!0),f.createElementVNode("div",{class:f.normalizeClass(["dsg-modal__wrapper",c.wrapperClasses]),style:f.normalizeStyle({width:c.width})},[c.hasClosedButton?(f.openBlock(),f.createBlock(L._sfc_main$3,{key:0,theme:"gray-tertiary",iconBefore:"x",size:"lg",class:f.normalizeClass(["dsg-modal__close-button",`dsg-modal__close-button--${c.type}`]),onClick:o},null,8,["class"])):f.createCommentVNode("",!0),f.renderSlot(c.$slots,"dsg-modal__header",{},()=>[f.createElementVNode("div",{class:f.normalizeClass(["dsg-modal__header",[`dsg-modal__header--${c.type}`,`${c.$slots.default?"dsg-modal__header--with-body":""}`].join(" ")])},[c.miscIcon?(f.openBlock(),f.createBlock(Ct,f.normalizeProps(f.mergeProps({key:0},c.miscIcon)),null,16)):f.createCommentVNode("",!0),c.title||c.description?(f.openBlock(),f.createElementBlock("div",Ql,[c.title?(f.openBlock(),f.createElementBlock("h3",Jl,f.toDisplayString(c.title),1)):f.createCommentVNode("",!0),c.description?(f.openBlock(),f.createElementBlock("p",eu,f.toDisplayString(c.description),1)):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)],2)]),c.$slots.default?(f.openBlock(),f.createElementBlock("div",tu,[f.renderSlot(c.$slots,"default")])):f.createCommentVNode("",!0),f.renderSlot(c.$slots,"dsg-modal__footer",{},()=>[f.createElementVNode("div",{class:f.normalizeClass(["dsg-modal__footer",`dsg-modal__footer--${c.footerType}`])},[c.secondaryButton?(f.openBlock(),f.createBlock(L._sfc_main$3,f.mergeProps({key:0},c.secondaryButton,{onButtonClicked:l,classes:"dsg-modal__secondary-button"}),null,16)):f.createCommentVNode("",!0),c.primaryButton?(f.openBlock(),f.createBlock(L._sfc_main$3,f.mergeProps({key:1},c.primaryButton,{onButtonClicked:u,classes:"dsg-dsg-modal__primary-button"}),null,16)):f.createCommentVNode("",!0)],2)])],6)],2))}}),ru={class:"dsg-tag--before"},nu={class:"dsg-tag--label"},iu={class:"dsg-tag--after"},au={key:0,class:"dsg-tag--count"},ou=f.defineComponent({__name:"DsgTag",props:{label:{default:""},size:{default:"md"},hasClose:{type:Boolean,default:!1},tagCount:{default:null},avatarUri:{default:""},hasCheckbox:{type:Boolean,default:!1},dotHex:{default:null},destroyOnClose:{type:Boolean,default:!1},value:{default:null},classes:{default:""}},emits:["before-checked","after-checked","before-hide","after-hide","before-destroy","after-destroy"],setup(t,{expose:e,emit:r}){const n=["dsg-tag",`dsg-tag--${t.size}`,`dsg-tag--${t.hasClose?"has-close":"no-close"}`,`dsg-tag--${t.tagCount?"has-count":"no-count"}`,`dsg-tag--${t.avatarUri?"has-avatar":"no-avatar"}`,`dsg-tag--${t.hasCheckbox?"has-checkbox":"no-checkbox"}`,t.classes].join(" "),i=()=>`tag-${t.size}`;t.hasClose&&t.tagCount!==null&&new L.DsgPropSyntaxWarning("DsgTag: 'hasClose' and 'tagCount' props are mutually exclusive. Please use only one of them."),t.avatarUri&&t.dotHex&&new L.DsgPropSyntaxWarning("DsgTag: 'avatarUri' and 'dotHex' props are mutually exclusive. Please use only one of them.");const a=r,o=f.useTemplateRef("dsgTag"),s=g=>{t.destroyOnClose?(a("before-destroy",o.value),o.value?.remove(),a("after-destroy")):(a("before-hide",o.value),o.value&&(o.value.style.display="none"),a("after-hide",o.value))},l=(g,w)=>{a("before-checked",g,w)},u=g=>{a("after-checked",g)},c=f.ref(t.tagCount),d=g=>{c.value=g},v=f.ref(t.value);return e({setTagCount:d,setValue:g=>{v.value=g},getValue:()=>v.value}),(g,w)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(n)),ref:"dsgTag"},[f.createElementVNode("div",ru,[g.hasCheckbox?(f.openBlock(),f.createBlock(L._sfc_main$2,{key:0,class:"dsg-tag--checkbox",size:i(),"no-focus":!0,onBeforeChecked:l,onAfterChecked:u},null,8,["size"])):f.createCommentVNode("",!0),g.avatarUri?(f.openBlock(),f.createBlock(or,{key:1,"profile-uri":g.avatarUri,size:"xxs","no-focus":!0,class:"dsg-tag--avatar"},null,8,["profile-uri"])):f.createCommentVNode("",!0),g.dotHex?(f.openBlock(),f.createElementBlock("span",{key:2,class:"dsg-tag--dot",style:f.normalizeStyle({backgroundColor:g.dotHex})},null,4)):f.createCommentVNode("",!0)]),f.renderSlot(g.$slots,"dsg-tag--label",{},()=>[f.createElementVNode("span",nu,f.toDisplayString(g.label),1)]),f.createElementVNode("div",iu,[c.value&&c.value>0?(f.openBlock(),f.createElementBlock("div",au,f.toDisplayString(c.value),1)):f.createCommentVNode("",!0),g.hasClose?(f.openBlock(),f.createBlock(L._sfc_main,{key:1,icon:"x-close",class:"dsg-tag--close",onClick:s})):f.createCommentVNode("",!0)])],2))}}),su={class:"dsg-toggle--element"},lu=["checked","disabled"],uu={key:0,class:"dsg-toggle--label-wrapper"},fu=["innerHTML"],cu=["innerHTML"],du=f.defineComponent({__name:"DsgToggle",props:{modelValue:{type:Boolean,default:!1},size:{default:"md"},label:{default:""},subText:{default:""},disabled:{type:Boolean,default:!1},classes:{default:""}},emits:["before-toggle","after-toggle","update:modelValue"],setup(t,{expose:e,emit:r}){const n=["dsg-toggle",`dsg-toggle--${t.size}`,`dsg-toggle--${t.disabled?"disabled":"enabled"}`,`dsg-toggle--${t.label.length?"has-label":"no-label"}`,`dsg-toggle--${t.subText.length?"has-subtext":"no-subtext"}`,t.classes].join(" "),i=f.ref(t.modelValue),a=()=>{t.disabled||(l("before-toggle",i.value,!i.value),i.value=!i.value,l("after-toggle",i.value),l("update:modelValue",i.value))},o=f.useTemplateRef("toggleCheckbox"),s=()=>{o.value&&o.value.focus(),t.disabled||a()},l=r;return e({set:c=>{i.value=c}}),(c,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(f.unref(n)),onClick:s},[f.createElementVNode("label",su,[f.createElementVNode("input",{type:"checkbox",class:"dsg-toggle--checkbox",checked:i.value,onChange:a,title:"checkbox",ref:"toggleCheckbox",disabled:c.disabled},null,40,lu),d[0]||(d[0]=f.createElementVNode("span",{class:"dsg-toggle--slider"},null,-1))]),c.label.length?(f.openBlock(),f.createElementBlock("div",uu,[f.renderSlot(c.$slots,"dsg-toggle--label",{},()=>[f.createElementVNode("h3",{class:"dsg-toggle--label",innerHTML:c.label},null,8,fu)]),c.label.length&&c.subText.length?f.renderSlot(c.$slots,"dsg-toggle--subtext",{key:0},()=>[f.createElementVNode("p",{class:"dsg-toggle--subtext",innerHTML:c.subText},null,8,cu)]):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)],2))}}),hu={class:"dsg-progress"},vu={class:"dsg-progress--inner"},pu={key:0,class:"text-sm text-gray-700 min-w-[60px] text-right"},gu={key:0},xu={key:1},yu={key:2},mu=f.defineComponent({__name:"DsgProgress",props:{value:{},max:{},showText:{},textSuffix:{}},setup(t){const e=t,r=f.computed(()=>{const n=e.value/e.max*100;return isNaN(n)?0:Math.min(Math.max(n,0),100)});return(n,i)=>(f.openBlock(),f.createElementBlock("div",hu,[f.createElementVNode("div",vu,[f.createElementVNode("div",{class:"dsg-progress--inner--progress",style:f.normalizeStyle({width:r.value+"%"})},null,4)]),n.showText!=="none"?(f.openBlock(),f.createElementBlock("div",pu,[n.showText==="number"?(f.openBlock(),f.createElementBlock("span",gu,f.toDisplayString(n.value)+"/"+f.toDisplayString(n.max),1)):n.showText==="percentage"?(f.openBlock(),f.createElementBlock("span",xu,f.toDisplayString(r.value.toFixed(2))+"%",1)):f.createCommentVNode("",!0),n.textSuffix?(f.openBlock(),f.createElementBlock("span",yu," "+f.toDisplayString(n.textSuffix),1)):f.createCommentVNode("",!0)])):f.createCommentVNode("",!0)]))}});function wu(t,e){var r=Object.setPrototypeOf;r?r(t,e):t.__proto__=e}function _u(t,e){e===void 0&&(e=t.constructor);var r=Error.captureStackTrace;r&&r(t,e)}var Eu=function(){var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},t(r,n)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Au=function(t){Eu(e,t);function e(r,n){var i=this.constructor,a=t.call(this,r,n)||this;return Object.defineProperty(a,"name",{value:i.name,enumerable:!1,configurable:!0}),wu(a,i.prototype),_u(a),a}return e}(Error),Cu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),be=function(t){Cu(e,t);function e(r){r===void 0&&(r=void 0);var n=t.call(this,r)||this;return n.message=r,n}return e.prototype.getKind=function(){var r=this.constructor;return r.kind},e.kind="Exception",e}(Au),bu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fe=function(t){bu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArgumentException",e}(be),Su=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),F=function(t){Su(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e}(be),Iu=function(){function t(e){if(this.binarizer=e,e===null)throw new F("Binarizer must be non-null.")}return t.prototype.getWidth=function(){return this.binarizer.getWidth()},t.prototype.getHeight=function(){return this.binarizer.getHeight()},t.prototype.getBlackRow=function(e,r){return this.binarizer.getBlackRow(e,r)},t.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},t.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},t.prototype.crop=function(e,r,n,i){var a=this.binarizer.getLuminanceSource().crop(e,r,n,i);return new t(this.binarizer.createBinarizer(a))},t.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},t.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new t(this.binarizer.createBinarizer(e))},t.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new t(this.binarizer.createBinarizer(e))},t.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},t}(),Ou=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),me=function(t){Ou(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(be),Tu=function(){function t(e){this.source=e}return t.prototype.getLuminanceSource=function(){return this.source},t.prototype.getWidth=function(){return this.source.getWidth()},t.prototype.getHeight=function(){return this.source.getHeight()},t}(),ne=function(){function t(){}return t.arraycopy=function(e,r,n,i,a){for(;a--;)n[i++]=e[r++]},t.currentTimeMillis=function(){return Date.now()},t}(),Nu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),zn=function(t){Nu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e}(be),Du=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),xi=function(t){Du(e,t);function e(r,n){r===void 0&&(r=void 0),n===void 0&&(n=void 0);var i=t.call(this,n)||this;return i.index=r,i.message=n,i}return e.kind="ArrayIndexOutOfBoundsException",e}(zn),Bu=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},De=function(){function t(){}return t.fill=function(e,r){for(var n=0,i=e.length;n<i;n++)e[n]=r},t.fillWithin=function(e,r,n,i){t.rangeCheck(e.length,r,n);for(var a=r;a<n;a++)e[a]=i},t.rangeCheck=function(e,r,n){if(r>n)throw new F("fromIndex("+r+") > toIndex("+n+")");if(r<0)throw new xi(r);if(n>e)throw new xi(n)},t.asList=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e},t.create=function(e,r,n){var i=Array.from({length:e});return i.map(function(a){return Array.from({length:r}).fill(n)})},t.createInt32Array=function(e,r,n){var i=Array.from({length:e});return i.map(function(a){return Int32Array.from({length:r}).fill(n)})},t.equals=function(e,r){if(!e||!r||!e.length||!r.length||e.length!==r.length)return!1;for(var n=0,i=e.length;n<i;n++)if(e[n]!==r[n])return!1;return!0},t.hashCode=function(e){var r,n;if(e===null)return 0;var i=1;try{for(var a=Bu(e),o=a.next();!o.done;o=a.next()){var s=o.value;i=31*i+s}}catch(l){r={error:l}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i},t.fillUint8Array=function(e,r){for(var n=0;n!==e.length;n++)e[n]=r},t.copyOf=function(e,r){return e.slice(0,r)},t.copyOfUint8Array=function(e,r){if(e.length<=r){var n=new Uint8Array(r);return n.set(e),n}return e.slice(0,r)},t.copyOfRange=function(e,r,n){var i=n-r,a=new Int32Array(i);return ne.arraycopy(e,r,a,0,i),a},t.binarySearch=function(e,r,n){n===void 0&&(n=t.numberComparator);for(var i=0,a=e.length-1;i<=a;){var o=a+i>>1,s=n(r,e[o]);if(s>0)i=o+1;else if(s<0)a=o-1;else return o}return-i-1},t.numberComparator=function(e,r){return e-r},t}(),G=function(){function t(){}return t.numberOfTrailingZeros=function(e){var r;if(e===0)return 32;var n=31;return r=e<<16,r!==0&&(n-=16,e=r),r=e<<8,r!==0&&(n-=8,e=r),r=e<<4,r!==0&&(n-=4,e=r),r=e<<2,r!==0&&(n-=2,e=r),n-(e<<1>>>31)},t.numberOfLeadingZeros=function(e){if(e===0)return 32;var r=1;return e>>>16||(r+=16,e<<=16),e>>>24||(r+=8,e<<=8),e>>>28||(r+=4,e<<=4),e>>>30||(r+=2,e<<=2),r-=e>>>31,r},t.toHexString=function(e){return e.toString(16)},t.toBinaryString=function(e){return String(parseInt(String(e),2))},t.bitCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e=e+(e>>>8),e=e+(e>>>16),e&63},t.truncDivision=function(e,r){return Math.trunc(e/r)},t.parseInt=function(e,r){return r===void 0&&(r=void 0),parseInt(e,r)},t.MIN_VALUE_32_BITS=-2147483648,t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}(),pe=function(){function t(e,r){e===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,r==null?this.bits=t.makeArray(e):this.bits=r)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>this.bits.length*32){var r=t.makeArray(e);ne.arraycopy(this.bits,0,r,0,this.bits.length),this.bits=r}},t.prototype.get=function(e){return(this.bits[Math.floor(e/32)]&1<<(e&31))!==0},t.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(e&31)},t.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(e&31)},t.prototype.getNextSet=function(e){var r=this.size;if(e>=r)return r;var n=this.bits,i=Math.floor(e/32),a=n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return r;a=n[i]}var s=i*32+G.numberOfTrailingZeros(a);return s>r?r:s},t.prototype.getNextUnset=function(e){var r=this.size;if(e>=r)return r;var n=this.bits,i=Math.floor(e/32),a=~n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return r;a=~n[i]}var s=i*32+G.numberOfTrailingZeros(a);return s>r?r:s},t.prototype.setBulk=function(e,r){this.bits[Math.floor(e/32)]=r},t.prototype.setRange=function(e,r){if(r<e||e<0||r>this.size)throw new F;if(r!==e){r--;for(var n=Math.floor(e/32),i=Math.floor(r/32),a=this.bits,o=n;o<=i;o++){var s=o>n?0:e&31,l=o<i?31:r&31,u=(2<<l)-(1<<s);a[o]|=u}}},t.prototype.clear=function(){for(var e=this.bits.length,r=this.bits,n=0;n<e;n++)r[n]=0},t.prototype.isRange=function(e,r,n){if(r<e||e<0||r>this.size)throw new F;if(r===e)return!0;r--;for(var i=Math.floor(e/32),a=Math.floor(r/32),o=this.bits,s=i;s<=a;s++){var l=s>i?0:e&31,u=s<a?31:r&31,c=(2<<u)-(1<<l)&4294967295;if((o[s]&c)!==(n?c:0))return!1}return!0},t.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},t.prototype.appendBits=function(e,r){if(r<0||r>32)throw new F("Num bits must be between 0 and 32");this.ensureCapacity(this.size+r);for(var n=r;n>0;n--)this.appendBit((e>>n-1&1)===1)},t.prototype.appendBitArray=function(e){var r=e.size;this.ensureCapacity(this.size+r);for(var n=0;n<r;n++)this.appendBit(e.get(n))},t.prototype.xor=function(e){if(this.size!==e.size)throw new F("Sizes don't match");for(var r=this.bits,n=0,i=r.length;n<i;n++)r[n]^=e.bits[n]},t.prototype.toBytes=function(e,r,n,i){for(var a=0;a<i;a++){for(var o=0,s=0;s<8;s++)this.get(e)&&(o|=1<<7-s),e++;r[n+a]=o}},t.prototype.getBitArray=function(){return this.bits},t.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),r=Math.floor((this.size-1)/32),n=r+1,i=this.bits,a=0;a<n;a++){var o=i[a];o=o>>1&1431655765|(o&1431655765)<<1,o=o>>2&858993459|(o&858993459)<<2,o=o>>4&252645135|(o&252645135)<<4,o=o>>8&16711935|(o&16711935)<<8,o=o>>16&65535|(o&65535)<<16,e[r-a]=o}if(this.size!==n*32){for(var s=n*32-this.size,l=e[0]>>>s,a=1;a<n;a++){var u=e[a];l|=u<<32-s,e[a-1]=l,l=u>>>s}e[n-1]=l}this.bits=e},t.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.size===r.size&&De.equals(this.bits,r.bits)},t.prototype.hashCode=function(){return 31*this.size+De.hashCode(this.bits)},t.prototype.toString=function(){for(var e="",r=0,n=this.size;r<n;r++)(r&7)===0&&(e+=" "),e+=this.get(r)?"X":".";return e},t.prototype.clone=function(){return new t(this.size,this.bits.slice())},t}(),Sn;(function(t){t[t.OTHER=0]="OTHER",t[t.PURE_BARCODE=1]="PURE_BARCODE",t[t.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",t[t.TRY_HARDER=3]="TRY_HARDER",t[t.CHARACTER_SET=4]="CHARACTER_SET",t[t.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",t[t.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",t[t.ASSUME_GS1=7]="ASSUME_GS1",t[t.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",t[t.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",t[t.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"})(Sn||(Sn={}));const le=Sn;var Ru=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),R=function(t){Ru(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(be),Pu=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Z;(function(t){t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"})(Z||(Z={}));var de=function(){function t(e,r,n){for(var i,a,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];this.valueIdentifier=e,this.name=n,typeof r=="number"?this.values=Int32Array.from([r]):this.values=r,this.otherEncodingNames=o,t.VALUE_IDENTIFIER_TO_ECI.set(e,this),t.NAME_TO_ECI.set(n,this);for(var l=this.values,u=0,c=l.length;u!==c;u++){var d=l[u];t.VALUES_TO_ECI.set(d,this)}try{for(var v=Pu(o),h=v.next();!h.done;h=v.next()){var p=h.value;t.NAME_TO_ECI.set(p,this)}}catch(g){i={error:g}}finally{try{h&&!h.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}}return t.prototype.getValueIdentifier=function(){return this.valueIdentifier},t.prototype.getName=function(){return this.name},t.prototype.getValue=function(){return this.values[0]},t.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new R("incorect value");var r=t.VALUES_TO_ECI.get(e);if(r===void 0)throw new R("incorect value");return r},t.getCharacterSetECIByName=function(e){var r=t.NAME_TO_ECI.get(e);if(r===void 0)throw new R("incorect value");return r},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.getName()===r.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(Z.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(Z.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(Z.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(Z.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(Z.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(Z.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(Z.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(Z.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(Z.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(Z.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(Z.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(Z.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(Z.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(Z.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(Z.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(Z.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(Z.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(Z.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(Z.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(Z.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(Z.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(Z.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(Z.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(Z.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(Z.Big5,28,"Big5"),t.GB18030=new t(Z.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(Z.EUC_KR,30,"EUC_KR","EUC-KR"),t}(),ku=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Nr=function(t){ku(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e}(be),Ye=function(){function t(){}return t.decode=function(e,r){var n=this.encodingName(r);return this.customDecoder?this.customDecoder(e,n):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(n)?this.decodeFallback(e,n):new TextDecoder(n).decode(e)},t.shouldDecodeOnFallback=function(e){return!t.isBrowser()&&e==="ISO-8859-1"},t.encode=function(e,r){var n=this.encodingName(r);return this.customEncoder?this.customEncoder(e,n):typeof TextEncoder>"u"?this.encodeFallback(e):new TextEncoder().encode(e)},t.isBrowser=function(){return typeof window<"u"&&{}.toString.call(window)==="[object Window]"},t.encodingName=function(e){return typeof e=="string"?e:e.getName()},t.encodingCharacterSet=function(e){return e instanceof de?e:de.getCharacterSetECIByName(e)},t.decodeFallback=function(e,r){var n=this.encodingCharacterSet(r);if(t.isDecodeFallbackSupported(n)){for(var i="",a=0,o=e.length;a<o;a++){var s=e[a].toString(16);s.length<2&&(s="0"+s),i+="%"+s}return decodeURIComponent(i)}if(n.equals(de.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new Nr("Encoding "+this.encodingName(r)+" not supported by fallback.")},t.isDecodeFallbackSupported=function(e){return e.equals(de.UTF8)||e.equals(de.ISO8859_1)||e.equals(de.ASCII)},t.encodeFallback=function(e){for(var r=btoa(unescape(encodeURIComponent(e))),n=r.split(""),i=[],a=0;a<n.length;a++)i.push(n[a].charCodeAt(0));return new Uint8Array(i)},t}(),re=function(){function t(){}return t.castAsNonUtf8Char=function(e,r){r===void 0&&(r=null);var n=r?r.getName():this.ISO88591;return Ye.decode(new Uint8Array([e]),n)},t.guessEncoding=function(e,r){if(r!=null&&r.get(le.CHARACTER_SET)!==void 0)return r.get(le.CHARACTER_SET).toString();for(var n=e.length,i=!0,a=!0,o=!0,s=0,l=0,u=0,c=0,d=0,v=0,h=0,p=0,g=0,w=0,_=0,m=e.length>3&&e[0]===239&&e[1]===187&&e[2]===191,E=0;E<n&&(i||a||o);E++){var y=e[E]&255;o&&(s>0?(y&128)===0?o=!1:s--:(y&128)!==0&&((y&64)===0?o=!1:(s++,(y&32)===0?l++:(s++,(y&16)===0?u++:(s++,(y&8)===0?c++:o=!1))))),i&&(y>127&&y<160?i=!1:y>159&&(y<192||y===215||y===247)&&_++),a&&(d>0?y<64||y===127||y>252?a=!1:d--:y===128||y===160||y>239?a=!1:y>160&&y<224?(v++,p=0,h++,h>g&&(g=h)):y>127?(d++,h=0,p++,p>w&&(w=p)):(h=0,p=0))}return o&&s>0&&(o=!1),a&&d>0&&(a=!1),o&&(m||l+u+c>0)?t.UTF8:a&&(t.ASSUME_SHIFT_JIS||g>=3||w>=3)?t.SHIFT_JIS:i&&a?g===2&&v===2||_*10>=n?t.SHIFT_JIS:t.ISO88591:i?t.ISO88591:a?t.SHIFT_JIS:o?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.format=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=-1;function a(s,l,u,c,d,v){if(s==="%%")return"%";if(r[++i]!==void 0){s=c?parseInt(c.substr(1)):void 0;var h=d?parseInt(d.substr(1)):void 0,p;switch(v){case"s":p=r[i];break;case"c":p=r[i][0];break;case"f":p=parseFloat(r[i]).toFixed(s);break;case"p":p=parseFloat(r[i]).toPrecision(s);break;case"e":p=parseFloat(r[i]).toExponential(s);break;case"x":p=parseInt(r[i]).toString(h||16);break;case"d":p=parseFloat(parseInt(r[i],h||10).toPrecision(s)).toFixed(0);break}p=typeof p=="object"?JSON.stringify(p):(+p).toString(h);for(var g=parseInt(u),w=u&&u[0]+""=="0"?"0":" ";p.length<g;)p=l!==void 0?p+w:w+p;return p}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(o,a)},t.getBytes=function(e,r){return Ye.encode(e,r)},t.getCharCode=function(e,r){return r===void 0&&(r=0),e.charCodeAt(r)},t.getCharAt=function(e){return String.fromCharCode(e)},t.SHIFT_JIS=de.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=de.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=de.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t}(),J=function(){function t(e){e===void 0&&(e=""),this.value=e}return t.prototype.enableDecoding=function(e){return this.encoding=e,this},t.prototype.append=function(e){return typeof e=="string"?this.value+=e.toString():this.encoding?this.value+=re.castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},t.prototype.appendChars=function(e,r,n){for(var i=r;r<r+n;i++)this.append(e[i]);return this},t.prototype.length=function(){return this.value.length},t.prototype.charAt=function(e){return this.value.charAt(e)},t.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},t.prototype.setCharAt=function(e,r){this.value=this.value.substr(0,e)+r+this.value.substr(e+1)},t.prototype.substring=function(e,r){return this.value.substring(e,r)},t.prototype.setLengthToZero=function(){this.value=""},t.prototype.toString=function(){return this.value},t.prototype.insert=function(e,r){this.value=this.value.substr(0,e)+r+this.value.substr(e+r.length)},t}(),Ze=function(){function t(e,r,n,i){if(this.width=e,this.height=r,this.rowSize=n,this.bits=i,r==null&&(r=e),this.height=r,e<1||r<1)throw new F("Both dimensions must be greater than 0");n==null&&(n=Math.floor((e+31)/32)),this.rowSize=n,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return t.parseFromBooleanArray=function(e){for(var r=e.length,n=e[0].length,i=new t(n,r),a=0;a<r;a++)for(var o=e[a],s=0;s<n;s++)o[s]&&i.set(s,a);return i},t.parseFromString=function(e,r,n){if(e===null)throw new F("stringRepresentation cannot be null");for(var i=new Array(e.length),a=0,o=0,s=-1,l=0,u=0;u<e.length;)if(e.charAt(u)===`
|
|
13
13
|
`||e.charAt(u)==="\r"){if(a>o){if(s===-1)s=a-o;else if(a-o!==s)throw new F("row lengths do not match");o=a,l++}u++}else if(e.substring(u,u+r.length)===r)u+=r.length,i[a]=!0,a++;else if(e.substring(u,u+n.length)===n)u+=n.length,i[a]=!1,a++;else throw new F("illegal character encountered: "+e.substring(u));if(a>o){if(s===-1)s=a-o;else if(a-o!==s)throw new F("row lengths do not match");l++}for(var c=new t(s,l),d=0;d<a;d++)i[d]&&c.set(Math.floor(d%s),Math.floor(d/s));return c},t.prototype.get=function(e,r){var n=r*this.rowSize+Math.floor(e/32);return(this.bits[n]>>>(e&31)&1)!==0},t.prototype.set=function(e,r){var n=r*this.rowSize+Math.floor(e/32);this.bits[n]|=1<<(e&31)&4294967295},t.prototype.unset=function(e,r){var n=r*this.rowSize+Math.floor(e/32);this.bits[n]&=~(1<<(e&31)&4294967295)},t.prototype.flip=function(e,r){var n=r*this.rowSize+Math.floor(e/32);this.bits[n]^=1<<(e&31)&4294967295},t.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new F("input matrix dimensions do not match");for(var r=new pe(Math.floor(this.width/32)+1),n=this.rowSize,i=this.bits,a=0,o=this.height;a<o;a++)for(var s=a*n,l=e.getRow(a,r).getBitArray(),u=0;u<n;u++)i[s+u]^=l[u]},t.prototype.clear=function(){for(var e=this.bits,r=e.length,n=0;n<r;n++)e[n]=0},t.prototype.setRegion=function(e,r,n,i){if(r<0||e<0)throw new F("Left and top must be nonnegative");if(i<1||n<1)throw new F("Height and width must be at least 1");var a=e+n,o=r+i;if(o>this.height||a>this.width)throw new F("The region must fit inside the matrix");for(var s=this.rowSize,l=this.bits,u=r;u<o;u++)for(var c=u*s,d=e;d<a;d++)l[c+Math.floor(d/32)]|=1<<(d&31)&4294967295},t.prototype.getRow=function(e,r){r==null||r.getSize()<this.width?r=new pe(this.width):r.clear();for(var n=this.rowSize,i=this.bits,a=e*n,o=0;o<n;o++)r.setBulk(o*32,i[a+o]);return r},t.prototype.setRow=function(e,r){ne.arraycopy(r.getBitArray(),0,this.bits,e*this.rowSize,this.rowSize)},t.prototype.rotate180=function(){for(var e=this.getWidth(),r=this.getHeight(),n=new pe(e),i=new pe(e),a=0,o=Math.floor((r+1)/2);a<o;a++)n=this.getRow(a,n),i=this.getRow(r-1-a,i),n.reverse(),i.reverse(),this.setRow(a,i),this.setRow(r-1-a,n)},t.prototype.getEnclosingRectangle=function(){for(var e=this.width,r=this.height,n=this.rowSize,i=this.bits,a=e,o=r,s=-1,l=-1,u=0;u<r;u++)for(var c=0;c<n;c++){var d=i[u*n+c];if(d!==0){if(u<o&&(o=u),u>l&&(l=u),c*32<a){for(var v=0;(d<<31-v&4294967295)===0;)v++;c*32+v<a&&(a=c*32+v)}if(c*32+31>s){for(var v=31;!(d>>>v);)v--;c*32+v>s&&(s=c*32+v)}}}return s<a||l<o?null:Int32Array.from([a,o,s-a+1,l-o+1])},t.prototype.getTopLeftOnBit=function(){for(var e=this.rowSize,r=this.bits,n=0;n<r.length&&r[n]===0;)n++;if(n===r.length)return null;for(var i=n/e,a=n%e*32,o=r[n],s=0;(o<<31-s&4294967295)===0;)s++;return a+=s,Int32Array.from([a,i])},t.prototype.getBottomRightOnBit=function(){for(var e=this.rowSize,r=this.bits,n=r.length-1;n>=0&&r[n]===0;)n--;if(n<0)return null;for(var i=Math.floor(n/e),a=Math.floor(n%e)*32,o=r[n],s=31;!(o>>>s);)s--;return a+=s,Int32Array.from([a,i])},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRowSize=function(){return this.rowSize},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var r=e;return this.width===r.width&&this.height===r.height&&this.rowSize===r.rowSize&&De.equals(this.bits,r.bits)},t.prototype.hashCode=function(){var e=this.width;return e=31*e+this.width,e=31*e+this.height,e=31*e+this.rowSize,e=31*e+De.hashCode(this.bits),e},t.prototype.toString=function(e,r,n){return e===void 0&&(e="X "),r===void 0&&(r=" "),n===void 0&&(n=`
|
|
14
14
|
`),this.buildToString(e,r,n)},t.prototype.buildToString=function(e,r,n){for(var i=new J,a=0,o=this.height;a<o;a++){for(var s=0,l=this.width;s<l;s++)i.append(this.get(s,a)?e:r);i.append(n)}return i.toString()},t.prototype.clone=function(){return new t(this.width,this.height,this.rowSize,this.bits.slice())},t}(),Mu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),I=function(t){Mu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e}(be),Lu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Fu=function(t){Lu(e,t);function e(r){var n=t.call(this,r)||this;return n.luminances=e.EMPTY,n.buckets=new Int32Array(e.LUMINANCE_BUCKETS),n}return e.prototype.getBlackRow=function(r,n){var i=this.getLuminanceSource(),a=i.getWidth();n==null||n.getSize()<a?n=new pe(a):n.clear(),this.initArrays(a);for(var o=i.getRow(r,this.luminances),s=this.buckets,l=0;l<a;l++)s[(o[l]&255)>>e.LUMINANCE_SHIFT]++;var u=e.estimateBlackPoint(s);if(a<3)for(var l=0;l<a;l++)(o[l]&255)<u&&n.set(l);else for(var c=o[0]&255,d=o[1]&255,l=1;l<a-1;l++){var v=o[l+1]&255;(d*4-c-v)/2<u&&n.set(l),c=d,d=v}return n},e.prototype.getBlackMatrix=function(){var r=this.getLuminanceSource(),n=r.getWidth(),i=r.getHeight(),a=new Ze(n,i);this.initArrays(n);for(var o=this.buckets,s=1;s<5;s++)for(var l=Math.floor(i*s/5),u=r.getRow(l,this.luminances),c=Math.floor(n*4/5),d=Math.floor(n/5);d<c;d++){var v=u[d]&255;o[v>>e.LUMINANCE_SHIFT]++}for(var h=e.estimateBlackPoint(o),p=r.getMatrix(),s=0;s<i;s++)for(var g=s*n,d=0;d<n;d++){var v=p[g+d]&255;v<h&&a.set(d,s)}return a},e.prototype.createBinarizer=function(r){return new e(r)},e.prototype.initArrays=function(r){this.luminances.length<r&&(this.luminances=new Uint8ClampedArray(r));for(var n=this.buckets,i=0;i<e.LUMINANCE_BUCKETS;i++)n[i]=0},e.estimateBlackPoint=function(r){for(var n=r.length,i=0,a=0,o=0,s=0;s<n;s++)r[s]>o&&(a=s,o=r[s]),r[s]>i&&(i=r[s]);for(var l=0,u=0,s=0;s<n;s++){var c=s-a,d=r[s]*c*c;d>u&&(l=s,u=d)}if(a>l){var v=a;a=l,l=v}if(l-a<=n/16)throw new I;for(var h=l-1,p=-1,s=l-1;s>a;s--){var g=s-a,d=g*g*(l-s)*(i-r[s]);d>p&&(h=s,p=d)}return h<<e.LUMINANCE_SHIFT},e.LUMINANCE_BITS=5,e.LUMINANCE_SHIFT=8-e.LUMINANCE_BITS,e.LUMINANCE_BUCKETS=1<<e.LUMINANCE_BITS,e.EMPTY=Uint8ClampedArray.from([0]),e}(Tu),Vu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Uu=function(t){Vu(e,t);function e(r){var n=t.call(this,r)||this;return n.matrix=null,n}return e.prototype.getBlackMatrix=function(){if(this.matrix!==null)return this.matrix;var r=this.getLuminanceSource(),n=r.getWidth(),i=r.getHeight();if(n>=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var a=r.getMatrix(),o=n>>e.BLOCK_SIZE_POWER;(n&e.BLOCK_SIZE_MASK)!==0&&o++;var s=i>>e.BLOCK_SIZE_POWER;(i&e.BLOCK_SIZE_MASK)!==0&&s++;var l=e.calculateBlackPoints(a,o,s,n,i),u=new Ze(n,i);e.calculateThresholdForBlock(a,o,s,n,i,l,u),this.matrix=u}else this.matrix=t.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(r){return new e(r)},e.calculateThresholdForBlock=function(r,n,i,a,o,s,l){for(var u=o-e.BLOCK_SIZE,c=a-e.BLOCK_SIZE,d=0;d<i;d++){var v=d<<e.BLOCK_SIZE_POWER;v>u&&(v=u);for(var h=e.cap(d,2,i-3),p=0;p<n;p++){var g=p<<e.BLOCK_SIZE_POWER;g>c&&(g=c);for(var w=e.cap(p,2,n-3),_=0,m=-2;m<=2;m++){var E=s[h+m];_+=E[w-2]+E[w-1]+E[w]+E[w+1]+E[w+2]}var y=_/25;e.thresholdBlock(r,g,v,y,a,l)}}},e.cap=function(r,n,i){return r<n?n:r>i?i:r},e.thresholdBlock=function(r,n,i,a,o,s){for(var l=0,u=i*o+n;l<e.BLOCK_SIZE;l++,u+=o)for(var c=0;c<e.BLOCK_SIZE;c++)(r[u+c]&255)<=a&&s.set(n+c,i+l)},e.calculateBlackPoints=function(r,n,i,a,o){for(var s=o-e.BLOCK_SIZE,l=a-e.BLOCK_SIZE,u=new Array(i),c=0;c<i;c++){u[c]=new Int32Array(n);var d=c<<e.BLOCK_SIZE_POWER;d>s&&(d=s);for(var v=0;v<n;v++){var h=v<<e.BLOCK_SIZE_POWER;h>l&&(h=l);for(var p=0,g=255,w=0,_=0,m=d*a+h;_<e.BLOCK_SIZE;_++,m+=a){for(var E=0;E<e.BLOCK_SIZE;E++){var y=r[m+E]&255;p+=y,y<g&&(g=y),y>w&&(w=y)}if(w-g>e.MIN_DYNAMIC_RANGE)for(_++,m+=a;_<e.BLOCK_SIZE;_++,m+=a)for(var E=0;E<e.BLOCK_SIZE;E++)p+=r[m+E]&255}var C=p>>e.BLOCK_SIZE_POWER*2;if(w-g<=e.MIN_DYNAMIC_RANGE&&(C=g/2,c>0&&v>0)){var b=(u[c-1][v]+2*u[c][v-1]+u[c-1][v-1])/4;g<b&&(C=b)}u[c][v]=C}}return u},e.BLOCK_SIZE_POWER=3,e.BLOCK_SIZE=1<<e.BLOCK_SIZE_POWER,e.BLOCK_SIZE_MASK=e.BLOCK_SIZE-1,e.MINIMUM_DIMENSION=e.BLOCK_SIZE*5,e.MIN_DYNAMIC_RANGE=24,e}(Fu),zr=function(){function t(e,r){this.width=e,this.height=r}return t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.isCropSupported=function(){return!1},t.prototype.crop=function(e,r,n,i){throw new Nr("This luminance source does not support cropping.")},t.prototype.isRotateSupported=function(){return!1},t.prototype.rotateCounterClockwise=function(){throw new Nr("This luminance source does not support rotation by 90 degrees.")},t.prototype.rotateCounterClockwise45=function(){throw new Nr("This luminance source does not support rotation by 45 degrees.")},t.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),r=new J,n=0;n<this.height;n++){for(var i=this.getRow(n,e),a=0;a<this.width;a++){var o=i[a]&255,s=void 0;o<64?s="#":o<128?s="+":o<192?s=".":s=" ",r.append(s)}r.append(`
|
|
15
15
|
`)}return r.toString()},t}(),$u=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Wn=function(t){$u(e,t);function e(r){var n=t.call(this,r.getWidth(),r.getHeight())||this;return n.delegate=r,n}return e.prototype.getRow=function(r,n){for(var i=this.delegate.getRow(r,n),a=this.getWidth(),o=0;o<a;o++)i[o]=255-(i[o]&255);return i},e.prototype.getMatrix=function(){for(var r=this.delegate.getMatrix(),n=this.getWidth()*this.getHeight(),i=new Uint8ClampedArray(n),a=0;a<n;a++)i[a]=255-(r[a]&255);return i},e.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},e.prototype.crop=function(r,n,i,a){return new e(this.delegate.crop(r,n,i,a))},e.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},e.prototype.invert=function(){return this.delegate},e.prototype.rotateCounterClockwise=function(){return new e(this.delegate.rotateCounterClockwise())},e.prototype.rotateCounterClockwise45=function(){return new e(this.delegate.rotateCounterClockwise45())},e}(zr),Hu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Gu=function(t){Hu(e,t);function e(r){var n=t.call(this,r.width,r.height)||this;return n.canvas=r,n.tempCanvasElement=null,n.buffer=e.makeBufferFromCanvasImageData(r),n}return e.makeBufferFromCanvasImageData=function(r){var n=r.getContext("2d").getImageData(0,0,r.width,r.height);return e.toGrayscaleBuffer(n.data,r.width,r.height)},e.toGrayscaleBuffer=function(r,n,i){for(var a=new Uint8ClampedArray(n*i),o=0,s=0,l=r.length;o<l;o+=4,s++){var u=void 0,c=r[o+3];if(c===0)u=255;else{var d=r[o],v=r[o+1],h=r[o+2];u=306*d+601*v+117*h+512>>10}a[s]=u}return a},e.prototype.getRow=function(r,n){if(r<0||r>=this.getHeight())throw new F("Requested row is outside the image: "+r);var i=this.getWidth(),a=r*i;return n===null?n=this.buffer.slice(a,a+i):(n.length<i&&(n=new Uint8ClampedArray(i)),n.set(this.buffer.slice(a,a+i))),n},e.prototype.getMatrix=function(){return this.buffer},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(r,n,i,a){return t.prototype.crop.call(this,r,n,i,a),this},e.prototype.isRotateSupported=function(){return!0},e.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},e.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},e.prototype.getTempCanvasElement=function(){if(this.tempCanvasElement===null){var r=this.canvas.ownerDocument.createElement("canvas");r.width=this.canvas.width,r.height=this.canvas.height,this.tempCanvasElement=r}return this.tempCanvasElement},e.prototype.rotate=function(r){var n=this.getTempCanvasElement(),i=n.getContext("2d"),a=r*e.DEGREE_TO_RADIANS,o=this.canvas.width,s=this.canvas.height,l=Math.ceil(Math.abs(Math.cos(a))*o+Math.abs(Math.sin(a))*s),u=Math.ceil(Math.abs(Math.sin(a))*o+Math.abs(Math.cos(a))*s);return n.width=l,n.height=u,i.translate(l/2,u/2),i.rotate(a),i.drawImage(this.canvas,o/-2,s/-2),this.buffer=e.makeBufferFromCanvasImageData(n),this},e.prototype.invert=function(){return new Wn(this)},e.DEGREE_TO_RADIANS=Math.PI/180,e}(zr),zu=function(){function t(e,r,n){this.deviceId=e,this.label=r,this.kind="videoinput",this.groupId=n||void 0}return t.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},t}(),Ee=function(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(d){o(d)}}function l(c){try{u(n.throw(c))}catch(d){o(d)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(t,e||[])).next())})},Ae=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(c){u=[6,c],i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Wu=function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ft=function(){function t(e,r,n){r===void 0&&(r=500),this.reader=e,this.timeBetweenScansMillis=r,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(t.prototype,"hasNavigator",{get:function(){return typeof navigator<"u"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canEnumerateDevices",{get:function(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),t.prototype.listVideoInputDevices=function(){return Ee(this,void 0,void 0,function(){var e,r,n,i,a,o,s,l,u,c,d,v;return Ae(this,function(h){switch(h.label){case 0: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.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=h.sent(),r=[];try{for(n=Wu(e),i=n.next();!i.done;i=n.next())a=i.value,o=a.kind==="video"?"videoinput":a.kind,o==="videoinput"&&(s=a.deviceId||a.id,l=a.label||"Video device "+(r.length+1),u=a.groupId,c={deviceId:s,label:l,kind:o,groupId:u},r.push(c))}catch(p){d={error:p}}finally{try{i&&!i.done&&(v=n.return)&&v.call(n)}finally{if(d)throw d.error}}return[2,r]}})})},t.prototype.getVideoInputDevices=function(){return Ee(this,void 0,void 0,function(){var e;return Ae(this,function(r){switch(r.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=r.sent(),[2,e.map(function(n){return new zu(n.deviceId,n.label)})]}})})},t.prototype.findDeviceById=function(e){return Ee(this,void 0,void 0,function(){var r;return Ae(this,function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return r=n.sent(),r?[2,r.find(function(i){return i.deviceId===e})]:[2,null]}})})},t.prototype.decodeFromInputVideoDevice=function(e,r){return Ee(this,void 0,void 0,function(){return Ae(this,function(n){switch(n.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,r)];case 1:return[2,n.sent()]}})})},t.prototype.decodeOnceFromVideoDevice=function(e,r){return Ee(this,void 0,void 0,function(){var n,i;return Ae(this,function(a){switch(a.label){case 0:return this.reset(),e?n={deviceId:{exact:e}}:n={facingMode:"environment"},i={video:n},[4,this.decodeOnceFromConstraints(i,r)];case 1:return[2,a.sent()]}})})},t.prototype.decodeOnceFromConstraints=function(e,r){return Ee(this,void 0,void 0,function(){var n;return Ae(this,function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=i.sent(),[4,this.decodeOnceFromStream(n,r)];case 2:return[2,i.sent()]}})})},t.prototype.decodeOnceFromStream=function(e,r){return Ee(this,void 0,void 0,function(){var n,i;return Ae(this,function(a){switch(a.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,r)];case 1:return n=a.sent(),[4,this.decodeOnce(n)];case 2:return i=a.sent(),[2,i]}})})},t.prototype.decodeFromInputVideoDeviceContinuously=function(e,r,n){return Ee(this,void 0,void 0,function(){return Ae(this,function(i){switch(i.label){case 0:return[4,this.decodeFromVideoDevice(e,r,n)];case 1:return[2,i.sent()]}})})},t.prototype.decodeFromVideoDevice=function(e,r,n){return Ee(this,void 0,void 0,function(){var i,a;return Ae(this,function(o){switch(o.label){case 0:return e?i={deviceId:{exact:e}}:i={facingMode:"environment"},a={video:i},[4,this.decodeFromConstraints(a,r,n)];case 1:return[2,o.sent()]}})})},t.prototype.decodeFromConstraints=function(e,r,n){return Ee(this,void 0,void 0,function(){var i;return Ae(this,function(a){switch(a.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return i=a.sent(),[4,this.decodeFromStream(i,r,n)];case 2:return[2,a.sent()]}})})},t.prototype.decodeFromStream=function(e,r,n){return Ee(this,void 0,void 0,function(){var i;return Ae(this,function(a){switch(a.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,r)];case 1:return i=a.sent(),[4,this.decodeContinuously(i,n)];case 2:return[2,a.sent()]}})})},t.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},t.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},t.prototype.attachStreamToVideo=function(e,r){return Ee(this,void 0,void 0,function(){var n;return Ae(this,function(i){switch(i.label){case 0:return n=this.prepareVideoElement(r),this.addVideoSource(n,e),this.videoElement=n,this.stream=e,[4,this.playVideoOnLoadAsync(n)];case 1:return i.sent(),[2,n]}})})},t.prototype.playVideoOnLoadAsync=function(e){var r=this;return new Promise(function(n,i){return r.playVideoOnLoad(e,function(){return n()})})},t.prototype.playVideoOnLoad=function(e,r){var n=this;this.videoEndedListener=function(){return n.stopStreams()},this.videoCanPlayListener=function(){return n.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",r),this.tryPlayVideo(e)},t.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},t.prototype.tryPlayVideo=function(e){return Ee(this,void 0,void 0,function(){return Ae(this,function(r){switch(r.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.play()];case 2:return r.sent(),[3,4];case 3:return r.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},t.prototype.getMediaElement=function(e,r){var n=document.getElementById(e);if(!n)throw new Fe("element with id '"+e+"' not found");if(n.nodeName.toLowerCase()!==r.toLowerCase())throw new Fe("element with id '"+e+"' must be an "+r+" element");return n},t.prototype.decodeFromImage=function(e,r){if(!e&&!r)throw new Fe("either imageElement with a src set or an url must be provided");return r&&!e?this.decodeFromImageUrl(r):this.decodeFromImageElement(e)},t.prototype.decodeFromVideo=function(e,r){if(!e&&!r)throw new Fe("Either an element with a src set or an URL must be provided");return r&&!e?this.decodeFromVideoUrl(r):this.decodeFromVideoElement(e)},t.prototype.decodeFromVideoContinuously=function(e,r,n){if(e===void 0&&r===void 0)throw new Fe("Either an element with a src set or an URL must be provided");return r&&!e?this.decodeFromVideoUrlContinuously(r,n):this.decodeFromVideoElementContinuously(e,n)},t.prototype.decodeFromImageElement=function(e){if(!e)throw new Fe("An image element must be provided.");this.reset();var r=this.prepareImageElement(e);this.imageElement=r;var n;return this.isImageLoaded(r)?n=this.decodeOnce(r,!1,!0):n=this._decodeOnLoadImage(r),n},t.prototype.decodeFromVideoElement=function(e){var r=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(r)},t.prototype.decodeFromVideoElementContinuously=function(e,r){var n=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(n,r)},t.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new Fe("A video element must be provided.");this.reset();var r=this.prepareVideoElement(e);return this.videoElement=r,r},t.prototype.decodeFromImageUrl=function(e){if(!e)throw new Fe("An URL must be provided.");this.reset();var r=this.prepareImageElement();this.imageElement=r;var n=this._decodeOnLoadImage(r);return r.src=e,n},t.prototype.decodeFromVideoUrl=function(e){if(!e)throw new Fe("An URL must be provided.");this.reset();var r=this.prepareVideoElement(),n=this.decodeFromVideoElement(r);return r.src=e,n},t.prototype.decodeFromVideoUrlContinuously=function(e,r){if(!e)throw new Fe("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(n,r);return n.src=e,i},t.prototype._decodeOnLoadImage=function(e){var r=this;return new Promise(function(n,i){r.imageLoadedListener=function(){return r.decodeOnce(e,!1,!0).then(n,i)},e.addEventListener("load",r.imageLoadedListener)})},t.prototype._decodeOnLoadVideo=function(e){return Ee(this,void 0,void 0,function(){return Ae(this,function(r){switch(r.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return r.sent(),[4,this.decodeOnce(e)];case 2:return[2,r.sent()]}})})},t.prototype._decodeOnLoadVideoContinuously=function(e,r){return Ee(this,void 0,void 0,function(){return Ae(this,function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return n.sent(),this.decodeContinuously(e,r),[2]}})})},t.prototype.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},t.prototype.prepareImageElement=function(e){var r;return typeof e>"u"&&(r=document.createElement("img"),r.width=200,r.height=200),typeof e=="string"&&(r=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(r=e),r},t.prototype.prepareVideoElement=function(e){var r;return!e&&typeof document<"u"&&(r=document.createElement("video"),r.width=200,r.height=200),typeof e=="string"&&(r=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(r=e),r.setAttribute("autoplay","true"),r.setAttribute("muted","true"),r.setAttribute("playsinline","true"),r},t.prototype.decodeOnce=function(e,r,n){var i=this;r===void 0&&(r=!0),n===void 0&&(n=!0),this._stopAsyncDecode=!1;var a=function(o,s){if(i._stopAsyncDecode){s(new I("Video stream has ended before any code could be detected.")),i._stopAsyncDecode=void 0;return}try{var l=i.decode(e);o(l)}catch(v){var u=r&&v instanceof I,c=v instanceof me||v instanceof R,d=c&&n;if(u||d)return setTimeout(a,i._timeBetweenDecodingAttempts,o,s);s(v)}};return new Promise(function(o,s){return a(o,s)})},t.prototype.decodeContinuously=function(e,r){var n=this;this._stopContinuousDecode=!1;var i=function(){if(n._stopContinuousDecode){n._stopContinuousDecode=void 0;return}try{var a=n.decode(e);r(a,null),setTimeout(i,n.timeBetweenScansMillis)}catch(l){r(null,l);var o=l instanceof me||l instanceof R,s=l instanceof I;(o||s)&&setTimeout(i,n._timeBetweenDecodingAttempts)}};i()},t.prototype.decode=function(e){var r=this.createBinaryBitmap(e);return this.decodeBitmap(r)},t.prototype._isHTMLVideoElement=function(e){var r=e;return r.videoWidth!==0},t.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e),this._isHTMLVideoElement(e)?this.drawFrameOnCanvas(e):this.drawImageOnCanvas(e);var r=this.getCaptureCanvas(e),n=new Gu(r),i=new Uu(n);return new Iu(i)},t.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var r=this.getCaptureCanvas(e),n=void 0;try{n=r.getContext("2d",{willReadFrequently:!0})}catch{n=r.getContext("2d")}this.captureCanvasContext=n}return this.captureCanvasContext},t.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var r=this.createCaptureCanvas(e);this.captureCanvas=r}return this.captureCanvas},t.prototype.drawFrameOnCanvas=function(e,r,n){r===void 0&&(r={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(e,r.sx,r.sy,r.sWidth,r.sHeight,r.dx,r.dy,r.dWidth,r.dHeight)},t.prototype.drawImageOnCanvas=function(e,r,n){r===void 0&&(r={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(e,r.sx,r.sy,r.sWidth,r.sHeight,r.dx,r.dy,r.dWidth,r.dHeight)},t.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},t.prototype.createCaptureCanvas=function(e){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var r=document.createElement("canvas"),n,i;return typeof e<"u"&&(e instanceof HTMLVideoElement?(n=e.videoWidth,i=e.videoHeight):e instanceof HTMLImageElement&&(n=e.naturalWidth||e.width,i=e.naturalHeight||e.height)),r.style.width=n+"px",r.style.height=i+"px",r.width=n,r.height=i,r},t.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(e){return e.stop()}),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()},t.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},t.prototype._destroyVideoElement=function(){this.videoElement&&(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},t.prototype._destroyImageElement=function(){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)},t.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},t.prototype.addVideoSource=function(e,r){try{e.srcObject=r}catch{e.src=URL.createObjectURL(r)}},t.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch{e.src=""}this.videoElement.removeAttribute("src")},t}(),Be=function(){function t(e,r,n,i,a,o){n===void 0&&(n=r==null?0:8*r.length),o===void 0&&(o=ne.currentTimeMillis()),this.text=e,this.rawBytes=r,this.numBits=n,this.resultPoints=i,this.format=a,this.timestamp=o,this.text=e,this.rawBytes=r,n==null?this.numBits=r==null?0:8*r.length:this.numBits=n,this.resultPoints=i,this.format=a,this.resultMetadata=null,o==null?this.timestamp=ne.currentTimeMillis():this.timestamp=o}return t.prototype.getText=function(){return this.text},t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.getBarcodeFormat=function(){return this.format},t.prototype.getResultMetadata=function(){return this.resultMetadata},t.prototype.putMetadata=function(e,r){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(e,r)},t.prototype.putAllMetadata=function(e){e!==null&&(this.resultMetadata===null?this.resultMetadata=e:this.resultMetadata=new Map(e))},t.prototype.addResultPoints=function(e){var r=this.resultPoints;if(r===null)this.resultPoints=e;else if(e!==null&&e.length>0){var n=new Array(r.length+e.length);ne.arraycopy(r,0,n,0,r.length),ne.arraycopy(e,0,n,r.length,e.length),this.resultPoints=n}},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.toString=function(){return this.text},t}(),In;(function(t){t[t.AZTEC=0]="AZTEC",t[t.CODABAR=1]="CODABAR",t[t.CODE_39=2]="CODE_39",t[t.CODE_93=3]="CODE_93",t[t.CODE_128=4]="CODE_128",t[t.DATA_MATRIX=5]="DATA_MATRIX",t[t.EAN_8=6]="EAN_8",t[t.EAN_13=7]="EAN_13",t[t.ITF=8]="ITF",t[t.MAXICODE=9]="MAXICODE",t[t.PDF_417=10]="PDF_417",t[t.QR_CODE=11]="QR_CODE",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(In||(In={}));const U=In;var On;(function(t){t[t.OTHER=0]="OTHER",t[t.ORIENTATION=1]="ORIENTATION",t[t.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",t[t.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",t[t.ISSUE_NUMBER=4]="ISSUE_NUMBER",t[t.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",t[t.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",t[t.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",t[t.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",t[t.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",t[t.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(On||(On={}));const we=On;var Wr=function(){function t(e,r,n,i,a,o){a===void 0&&(a=-1),o===void 0&&(o=-1),this.rawBytes=e,this.text=r,this.byteSegments=n,this.ecLevel=i,this.structuredAppendSequenceNumber=a,this.structuredAppendParity=o,this.numBits=e==null?0:8*e.length}return t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.setNumBits=function(e){this.numBits=e},t.prototype.getText=function(){return this.text},t.prototype.getByteSegments=function(){return this.byteSegments},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getErrorsCorrected=function(){return this.errorsCorrected},t.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},t.prototype.getErasures=function(){return this.erasures},t.prototype.setErasures=function(e){this.erasures=e},t.prototype.getOther=function(){return this.other},t.prototype.setOther=function(e){this.other=e},t.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},t.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},t.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},t}(),er=function(){function t(){}return t.prototype.exp=function(e){return this.expTable[e]},t.prototype.log=function(e){if(e===0)throw new F;return this.logTable[e]},t.addOrSubtract=function(e,r){return e^r},t}(),ft=function(){function t(e,r){if(r.length===0)throw new F;this.field=e;var n=r.length;if(n>1&&r[0]===0){for(var i=1;i<n&&r[i]===0;)i++;i===n?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(n-i),ne.arraycopy(r,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=r}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return this.coefficients[0]===0},t.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},t.prototype.evaluateAt=function(e){if(e===0)return this.getCoefficient(0);var r=this.coefficients,n;if(e===1){n=0;for(var i=0,a=r.length;i!==a;i++){var o=r[i];n=er.addOrSubtract(n,o)}return n}n=r[0];for(var s=r.length,l=this.field,i=1;i<s;i++)n=er.addOrSubtract(l.multiply(e,n),r[i]);return n},t.prototype.addOrSubtract=function(e){if(!this.field.equals(e.field))throw new F("GenericGFPolys do not have same GenericGF field");if(this.isZero())return e;if(e.isZero())return this;var r=this.coefficients,n=e.coefficients;if(r.length>n.length){var i=r;r=n,n=i}var a=new Int32Array(n.length),o=n.length-r.length;ne.arraycopy(n,0,a,0,o);for(var s=o;s<n.length;s++)a[s]=er.addOrSubtract(r[s-o],n[s]);return new t(this.field,a)},t.prototype.multiply=function(e){if(!this.field.equals(e.field))throw new F("GenericGFPolys do not have same GenericGF field");if(this.isZero()||e.isZero())return this.field.getZero();for(var r=this.coefficients,n=r.length,i=e.coefficients,a=i.length,o=new Int32Array(n+a-1),s=this.field,l=0;l<n;l++)for(var u=r[l],c=0;c<a;c++)o[l+c]=er.addOrSubtract(o[l+c],s.multiply(u,i[c]));return new t(s,o)},t.prototype.multiplyScalar=function(e){if(e===0)return this.field.getZero();if(e===1)return this;for(var r=this.coefficients.length,n=this.field,i=new Int32Array(r),a=this.coefficients,o=0;o<r;o++)i[o]=n.multiply(a[o],e);return new t(n,i)},t.prototype.multiplyByMonomial=function(e,r){if(e<0)throw new F;if(r===0)return this.field.getZero();for(var n=this.coefficients,i=n.length,a=new Int32Array(i+e),o=this.field,s=0;s<i;s++)a[s]=o.multiply(n[s],r);return new t(o,a)},t.prototype.divide=function(e){if(!this.field.equals(e.field))throw new F("GenericGFPolys do not have same GenericGF field");if(e.isZero())throw new F("Divide by 0");for(var r=this.field,n=r.getZero(),i=this,a=e.getCoefficient(e.getDegree()),o=r.inverse(a);i.getDegree()>=e.getDegree()&&!i.isZero();){var s=i.getDegree()-e.getDegree(),l=r.multiply(i.getCoefficient(i.getDegree()),o),u=e.multiplyByMonomial(s,l),c=r.buildMonomial(s,l);n=n.addOrSubtract(c),i=i.addOrSubtract(u)}return[n,i]},t.prototype.toString=function(){for(var e="",r=this.getDegree();r>=0;r--){var n=this.getCoefficient(r);if(n!==0){if(n<0?(e+=" - ",n=-n):e.length>0&&(e+=" + "),r===0||n!==1){var i=this.field.log(n);i===0?e+="1":i===1?e+="a":(e+="a^",e+=i)}r!==0&&(r===1?e+="x":(e+="x^",e+=r))}}return e},t}(),Xu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ca=function(t){Xu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArithmeticException",e}(be),ju=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ne=function(t){ju(e,t);function e(r,n,i){var a=t.call(this)||this;a.primitive=r,a.size=n,a.generatorBase=i;for(var o=new Int32Array(n),s=1,l=0;l<n;l++)o[l]=s,s*=2,s>=n&&(s^=r,s&=n-1);a.expTable=o;for(var u=new Int32Array(n),l=0;l<n-1;l++)u[o[l]]=l;return a.logTable=u,a.zero=new ft(a,Int32Array.from([0])),a.one=new ft(a,Int32Array.from([1])),a}return e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(r,n){if(r<0)throw new F;if(n===0)return this.zero;var i=new Int32Array(r+1);return i[0]=n,new ft(this,i)},e.prototype.inverse=function(r){if(r===0)throw new ca;return this.expTable[this.size-this.logTable[r]-1]},e.prototype.multiply=function(r,n){return r===0||n===0?0:this.expTable[(this.logTable[r]+this.logTable[n])%(this.size-1)]},e.prototype.getSize=function(){return this.size},e.prototype.getGeneratorBase=function(){return this.generatorBase},e.prototype.toString=function(){return"GF(0x"+G.toHexString(this.primitive)+","+this.size+")"},e.prototype.equals=function(r){return r===this},e.AZTEC_DATA_12=new e(4201,4096,1),e.AZTEC_DATA_10=new e(1033,1024,1),e.AZTEC_DATA_6=new e(67,64,1),e.AZTEC_PARAM=new e(19,16,1),e.QR_CODE_FIELD_256=new e(285,256,0),e.DATA_MATRIX_FIELD_256=new e(301,256,1),e.AZTEC_DATA_8=e.DATA_MATRIX_FIELD_256,e.MAXICODE_FIELD_64=e.AZTEC_DATA_6,e}(er),Yu=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),wr=function(t){Yu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ReedSolomonException",e}(be),Ku=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),hr=function(t){Ku(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalStateException",e}(be),Xr=function(){function t(e){this.field=e}return t.prototype.decode=function(e,r){for(var n=this.field,i=new ft(n,e),a=new Int32Array(r),o=!0,s=0;s<r;s++){var l=i.evaluateAt(n.exp(s+n.getGeneratorBase()));a[a.length-1-s]=l,l!==0&&(o=!1)}if(!o)for(var u=new ft(n,a),c=this.runEuclideanAlgorithm(n.buildMonomial(r,1),u,r),d=c[0],v=c[1],h=this.findErrorLocations(d),p=this.findErrorMagnitudes(v,h),s=0;s<h.length;s++){var g=e.length-1-n.log(h[s]);if(g<0)throw new wr("Bad error location");e[g]=Ne.addOrSubtract(e[g],p[s])}},t.prototype.runEuclideanAlgorithm=function(e,r,n){if(e.getDegree()<r.getDegree()){var i=e;e=r,r=i}for(var a=this.field,o=e,s=r,l=a.getZero(),u=a.getOne();s.getDegree()>=(n/2|0);){var c=o,d=l;if(o=s,l=u,o.isZero())throw new wr("r_{i-1} was zero");s=c;for(var v=a.getZero(),h=o.getCoefficient(o.getDegree()),p=a.inverse(h);s.getDegree()>=o.getDegree()&&!s.isZero();){var g=s.getDegree()-o.getDegree(),w=a.multiply(s.getCoefficient(s.getDegree()),p);v=v.addOrSubtract(a.buildMonomial(g,w)),s=s.addOrSubtract(o.multiplyByMonomial(g,w))}if(u=v.multiply(l).addOrSubtract(d),s.getDegree()>=o.getDegree())throw new hr("Division algorithm failed to reduce polynomial?")}var _=u.getCoefficient(0);if(_===0)throw new wr("sigmaTilde(0) was zero");var m=a.inverse(_),E=u.multiplyScalar(m),y=s.multiplyScalar(m);return[E,y]},t.prototype.findErrorLocations=function(e){var r=e.getDegree();if(r===1)return Int32Array.from([e.getCoefficient(1)]);for(var n=new Int32Array(r),i=0,a=this.field,o=1;o<a.getSize()&&i<r;o++)e.evaluateAt(o)===0&&(n[i]=a.inverse(o),i++);if(i!==r)throw new wr("Error locator degree does not match number of roots");return n},t.prototype.findErrorMagnitudes=function(e,r){for(var n=r.length,i=new Int32Array(n),a=this.field,o=0;o<n;o++){for(var s=a.inverse(r[o]),l=1,u=0;u<n;u++)if(o!==u){var c=a.multiply(r[u],s),d=(c&1)===0?c|1:c&-2;l=a.multiply(l,d)}i[o]=a.multiply(e.evaluateAt(s),a.inverse(l)),a.getGeneratorBase()!==0&&(i[o]=a.multiply(i[o],s))}return i},t}(),ge;(function(t){t[t.UPPER=0]="UPPER",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.DIGIT=3]="DIGIT",t[t.PUNCT=4]="PUNCT",t[t.BINARY=5]="BINARY"})(ge||(ge={}));var yi=function(){function t(){}return t.prototype.decode=function(e){this.ddata=e;var r=e.getBits(),n=this.extractBits(r),i=this.correctBits(n),a=t.convertBoolArrayToByteArray(i),o=t.getEncodedData(i),s=new Wr(a,o,null,null);return s.setNumBits(i.length),s},t.highLevelDecode=function(e){return this.getEncodedData(e)},t.getEncodedData=function(e){for(var r=e.length,n=ge.UPPER,i=ge.UPPER,a="",o=0;o<r;)if(i===ge.BINARY){if(r-o<5)break;var s=t.readCode(e,o,5);if(o+=5,s===0){if(r-o<11)break;s=t.readCode(e,o,11)+31,o+=11}for(var l=0;l<s;l++){if(r-o<8){o=r;break}var u=t.readCode(e,o,8);a+=re.castAsNonUtf8Char(u),o+=8}i=n}else{var c=i===ge.DIGIT?4:5;if(r-o<c)break;var u=t.readCode(e,o,c);o+=c;var d=t.getCharacter(i,u);d.startsWith("CTRL_")?(n=i,i=t.getTable(d.charAt(5)),d.charAt(6)==="L"&&(n=i)):(a+=d,i=n)}return a},t.getTable=function(e){switch(e){case"L":return ge.LOWER;case"P":return ge.PUNCT;case"M":return ge.MIXED;case"D":return ge.DIGIT;case"B":return ge.BINARY;case"U":default:return ge.UPPER}},t.getCharacter=function(e,r){switch(e){case ge.UPPER:return t.UPPER_TABLE[r];case ge.LOWER:return t.LOWER_TABLE[r];case ge.MIXED:return t.MIXED_TABLE[r];case ge.PUNCT:return t.PUNCT_TABLE[r];case ge.DIGIT:return t.DIGIT_TABLE[r];default:throw new hr("Bad table")}},t.prototype.correctBits=function(e){var r,n;this.ddata.getNbLayers()<=2?(n=6,r=Ne.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(n=8,r=Ne.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(n=10,r=Ne.AZTEC_DATA_10):(n=12,r=Ne.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),a=e.length/n;if(a<i)throw new R;for(var o=e.length%n,s=new Int32Array(a),l=0;l<a;l++,o+=n)s[l]=t.readCode(e,o,n);try{var u=new Xr(r);u.decode(s,a-i)}catch(w){throw new R(w)}for(var c=(1<<n)-1,d=0,l=0;l<i;l++){var v=s[l];if(v===0||v===c)throw new R;(v===1||v===c-1)&&d++}for(var h=new Array(i*n-d),p=0,l=0;l<i;l++){var v=s[l];if(v===1||v===c-1)h.fill(v>1,p,p+n-1),p+=n-1;else for(var g=n-1;g>=0;--g)h[p++]=(v&1<<g)!==0}return h},t.prototype.extractBits=function(e){var r=this.ddata.isCompact(),n=this.ddata.getNbLayers(),i=(r?11:14)+n*4,a=new Int32Array(i),o=new Array(this.totalBitsInLayer(n,r));if(r)for(var s=0;s<a.length;s++)a[s]=s;else for(var l=i+1+2*G.truncDivision(G.truncDivision(i,2)-1,15),u=i/2,c=G.truncDivision(l,2),s=0;s<u;s++){var d=s+G.truncDivision(s,15);a[u-s-1]=c-d-1,a[u+s]=c+d+1}for(var s=0,v=0;s<n;s++){for(var h=(n-s)*4+(r?9:12),p=s*2,g=i-1-p,w=0;w<h;w++)for(var _=w*2,m=0;m<2;m++)o[v+_+m]=e.get(a[p+m],a[p+w]),o[v+2*h+_+m]=e.get(a[p+w],a[g-m]),o[v+4*h+_+m]=e.get(a[g-m],a[g-w]),o[v+6*h+_+m]=e.get(a[g-w],a[p+m]);v+=h*8}return o},t.readCode=function(e,r,n){for(var i=0,a=r;a<r+n;a++)i<<=1,e[a]&&(i|=1);return i},t.readByte=function(e,r){var n=e.length-r;return n>=8?t.readCode(e,r,8):t.readCode(e,r,n)<<8-n},t.convertBoolArrayToByteArray=function(e){for(var r=new Uint8Array((e.length+7)/8),n=0;n<r.length;n++)r[n]=t.readByte(e,8*n);return r},t.prototype.totalBitsInLayer=function(e,r){return((r?88:112)+16*e)*e},t.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"],t.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"],t.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b"," ",`
|
package/dist/dsg-vue.esm.js
CHANGED
|
@@ -1517,40 +1517,46 @@ const Us = { class: "dsg-alert__wrapper" }, Vs = ["innerHTML"], Ga = /* @__PURE_
|
|
|
1517
1517
|
},
|
|
1518
1518
|
emits: ["update:modelValue"],
|
|
1519
1519
|
setup(t, { emit: e }) {
|
|
1520
|
-
const r = t, n = e, i = (
|
|
1520
|
+
const r = t, n = e, i = () => {
|
|
1521
|
+
r.disabled || n("update:modelValue", r.modelValue + (r.step ?? 1));
|
|
1522
|
+
}, a = () => {
|
|
1523
|
+
r.disabled || n("update:modelValue", r.modelValue - (r.step ?? 1));
|
|
1524
|
+
}, o = (s) => {
|
|
1521
1525
|
if (r.disabled) return;
|
|
1522
|
-
const
|
|
1523
|
-
n("update:modelValue", Number(
|
|
1526
|
+
const u = s.target;
|
|
1527
|
+
n("update:modelValue", Number(u.value));
|
|
1524
1528
|
};
|
|
1525
|
-
return (
|
|
1529
|
+
return (s, u) => (E(), R("div", {
|
|
1526
1530
|
class: Q(["dsg-input-number", { "dsg-input-number--disabled": r.disabled }])
|
|
1527
1531
|
}, [
|
|
1528
1532
|
L("div", js, [
|
|
1529
1533
|
L("button", {
|
|
1530
1534
|
type: "button",
|
|
1535
|
+
onClick: i,
|
|
1531
1536
|
disabled: r.disabled,
|
|
1532
|
-
class: "dsg-input-number--btn"
|
|
1537
|
+
class: "dsg-input-number--btn dsg-input-number--increment"
|
|
1533
1538
|
}, [
|
|
1534
1539
|
r.disabled ? B("", !0) : (E(), R("span", Ks, "−"))
|
|
1535
1540
|
], 8, Ys),
|
|
1536
1541
|
L("input", {
|
|
1537
1542
|
type: "number",
|
|
1538
|
-
value:
|
|
1539
|
-
onInput:
|
|
1543
|
+
value: s.modelValue,
|
|
1544
|
+
onInput: o,
|
|
1540
1545
|
disabled: r.disabled,
|
|
1541
|
-
class: "dsg-input-number--input"
|
|
1546
|
+
class: "dsg-input-number--input flex-1"
|
|
1542
1547
|
}, null, 40, Zs),
|
|
1543
1548
|
L("button", {
|
|
1544
1549
|
type: "button",
|
|
1545
1550
|
disabled: r.disabled,
|
|
1546
|
-
|
|
1551
|
+
onClick: a,
|
|
1552
|
+
class: "dsg-input-number--btn dsg-input-number--decrement"
|
|
1547
1553
|
}, [
|
|
1548
1554
|
r.disabled ? B("", !0) : (E(), R("span", Qs, "+"))
|
|
1549
1555
|
], 8, qs)
|
|
1550
1556
|
]),
|
|
1551
|
-
|
|
1552
|
-
W(
|
|
1553
|
-
jt(X(
|
|
1557
|
+
s.label !== void 0 || s.$slots.label ? (E(), R("div", Js, [
|
|
1558
|
+
W(s.$slots, "label", {}, () => [
|
|
1559
|
+
jt(X(s.label), 1)
|
|
1554
1560
|
])
|
|
1555
1561
|
])) : B("", !0)
|
|
1556
1562
|
], 2));
|