@dcodegroup-au/dsg-vue 0.1.23 → 0.1.24
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 +1 -0
- package/package.json +2 -2
package/dist/dsg-vue.cjs
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
</clipPath>
|
|
10
10
|
</defs>
|
|
11
11
|
</svg>
|
|
12
|
-
`,ro=["href","title"],no={class:"dsg-avatar--image-wrapper",tabindex:"0",ref:"avatarImageWrapperEl"},io=["src","alt"],ao={key:1,class:"dsg-avatar--initials"},oo={class:"dsg-avatar--status"},so={key:0,class:"dsg-avatar--activity"},lo=["innerHTML"],uo={key:2,class:"dsg-avatar--logo"},co=["src","alt"],fo={key:0,class:"dsg-avatar--info"},ho={class:"dsg-avatar--title"},vo={class:"dsg-avatar--subtext"},or=u.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 F.DsgPropSyntaxWarning("DsgAvatar: The 'profile-photo' theme only supports the 'sm', 'md', and 'lg' sizes."),(t.fullName||t.title||t.subText)&&new F.DsgWarning("DsgAvatar: The 'profile-photo' theme will not display the 'title' or 'subText' props.")),t.theme==="logo"&&!t.companyLogoUri&&new F.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 F.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 F.DsgPropSyntaxWarning("DsgAvatar: The 'tile' theme requires either 'title' or 'fullName' prop."),t.size==="xxs"&&(t.title?.length||t.subText?.length)&&new F.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=u.ref(!1),l=v=>{o("before-change-status",s.value,v),s.value=v,o("after-change-status",s.value)},c=u.useTemplateRef("avatarImageWrapperEl"),f=v=>{t.preventDefault||(o("avatar-clicked",v),c.value&&!t.uri&&c.value.focus())};return e({setUserActiveStatus:l,toggleFocus:v=>{c.value&&(v?c.value.focus():c.value.blur())}}),(v,h)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n))},[u.createElementVNode("a",{class:"dsg-avatar--link",href:t.uri,title:a(),target:"_blank",ref:"avatarLink",onClick:f},[u.createElementVNode("div",no,[u.renderSlot(v.$slots,"dsg-avatar--background",{},()=>[t.profileUri?(u.openBlock(),u.createElementBlock("img",{key:0,class:"dsg-avatar--profile-image",src:t.profileUri,alt:a()},null,8,io)):u.createCommentVNode("",!0),!t.profileUri&&t.fullName?(u.openBlock(),u.createElementBlock("span",ao,u.toDisplayString(i(t.fullName)),1)):u.createCommentVNode("",!0),!t.profileUri&&!t.fullName?(u.openBlock(),u.createBlock(F._sfc_main,{key:2,class:"dsg-avatar--user-icon",icon:"user-01",color:u.unref(Ka.ColoursConfig).gray[600],size:t.size},null,8,["color","size"])):u.createCommentVNode("",!0)]),["tile"].indexOf(t.theme)===-1?u.renderSlot(v.$slots,"dsg-avatar--status",{key:0},()=>[u.createElementVNode("div",oo,[t.theme==="activity"&&t.isOnline?(u.openBlock(),u.createElementBlock("span",so)):u.createCommentVNode("",!0),["verified","profile-photo-verified"].indexOf(t.theme)!==-1?(u.openBlock(),u.createElementBlock("span",{key:1,class:"dsg-avatar--verified",innerHTML:u.unref(to)},null,8,lo)):u.createCommentVNode("",!0),t.theme==="logo"?(u.openBlock(),u.createElementBlock("span",uo,[u.createElementVNode("img",{src:t.companyLogoUri,alt:a(),class:"dsg-avatar--company-logo"},null,8,co)])):u.createCommentVNode("",!0)])]):u.createCommentVNode("",!0)],512),t.title?.length||t.theme==="tile"&&(t.title?.length||t.fullName)?(u.openBlock(),u.createElementBlock("div",fo,[t.title?.length||t.theme==="tile"&&(t.title?.length||t.fullName)?u.renderSlot(v.$slots,"dsg-avatar--title",{key:0},()=>[u.createElementVNode("h3",ho,u.toDisplayString(t.title?.length?t.title:t.fullName),1)]):u.createCommentVNode("",!0),t.subText?.length?u.renderSlot(v.$slots,"dsg-avatar--subtext",{key:1},()=>[u.createElementVNode("p",vo,u.toDisplayString(t.subText),1)]):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)],8,ro)],2))}}),fr={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Dt={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Se={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},po={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},go={dangerouslyHTMLString:!1,multiple:!0,position:fr.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},xo={rtl:!1,newestOnTop:!1,toastClassName:""},Gi={...go,...xo};Se.DEFAULT;var q=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(q||{}),pn=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(pn||{});const yo={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},mo={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},wo={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},Eo={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},qn="Toastify--animate Toastify__none-enter";function zi(t,e=!1){var r;let n=yo;if(!t||typeof t=="string")switch(t){case"flip":n=Eo;break;case"zoom":n=wo;break;case"slide":n=mo;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 Ao(t){return t.containerId||String(t.position)}const Ur="will-unmount";function Co(t=fr.TOP_RIGHT){return!!document.querySelector(`.${q.CSS_NAMESPACE}__toast-container--${t}`)}function _o(t=fr.TOP_RIGHT){return`${q.CSS_NAMESPACE}__toast-container--${t}`}function bo(t,e,r=!1){const n=[`${q.CSS_NAMESPACE}__toast-container`,`${q.CSS_NAMESPACE}__toast-container--${t}`,r?`${q.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return Nt(e)?e({position:t,rtl:r,defaultClassName:n}):`${n} ${e||""}`}function So(t){var e;const{position:r,containerClassName:n,rtl:i=!1,style:a={}}=t,o=q.CSS_NAMESPACE,s=_o(r),l=document.querySelector(`.${o}`),c=document.querySelector(`.${s}`),f=!!c&&!((e=c.className)!=null&&e.includes(Ur)),d=l||document.createElement("div"),v=document.createElement("div");v.className=bo(r,n,i),v.dataset.testid=`${q.CSS_NAMESPACE}__toast-container--${r}`,v.id=Ao(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=q.CSS_NAMESPACE,document.body.appendChild(d)),f||d.appendChild(v),v}function gn(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",gn,!1);try{sr[i].unmount(),(n=document.getElementById(i))==null||n.remove(),delete sr[i],delete ye[i]}catch{}}const sr=u.reactive({});function Io(t,e){const r=document.getElementById(String(e));r&&(sr[r.id]=t)}function xn(t,e=!0){const r=String(t);if(!sr[r])return;const n=document.getElementById(r);n&&n.classList.add(Ur),e?(To(t),n&&n.addEventListener("animationend",gn,!1)):gn(r),qe.items=qe.items.filter(i=>i.containerId!==t)}function Oo(t){for(const e in sr)xn(e,t);qe.items=[]}function Wi(t,e){const r=document.getElementById(t.toastId);if(r){let n=t;n={...n,...zi(n.transition)};const i=n.appendPosition?`${n.exit}--${n.position}`:n.exit;r.className+=` ${i}`,e&&e(r)}}function To(t){for(const e in ye)if(e===t)for(const r of ye[e]||[])Wi(r)}function No(t){const e=Bt().find(r=>r.toastId===t);return e?.containerId}function Ln(t){return document.getElementById(t)}function Do(t){const e=Ln(t.containerId);return e&&e.classList.contains(Ur)}function Zn(t){var e;const r=u.isVNode(t.content)?u.toRaw(t.content.props):null;return r??u.toRaw((e=t.data)!=null?e:{})}function Bo(t){return t?qe.items.filter(e=>e.containerId===t).length>0:qe.items.length>0}function Ro(){if(qe.items.length>0){const t=qe.items.shift();Sr(t?.toastContent,t?.toastProps)}}const ye=u.reactive({}),qe=u.reactive({items:[]});function Bt(){const t=u.toRaw(ye);return Object.values(t).reduce((e,r)=>[...e,...r],[])}function Po(t){return Bt().find(e=>e.toastId===t)}function Sr(t,e={}){if(Do(e)){const r=Ln(e.containerId);r&&r.addEventListener("animationend",yn.bind(null,t,e),!1)}else yn(t,e)}function yn(t,e={}){const r=Ln(e.containerId);r&&r.removeEventListener("animationend",yn.bind(null,t,e),!1);const n=ye[e.containerId]||[],i=n.length>0;if(!i&&!Co(e.position)){const a=So(e),o=u.createApp(es,e);e.useHandler&&e.useHandler(o),o.mount(a),Io(o,a.id)}i&&!e.updateId&&(e.position=n[0].position),u.nextTick(()=>{e.updateId?Pe.update(e):Pe.add(t,e)})}const Pe={add(t,e){const{containerId:r=""}=e;r&&(ye[r]=ye[r]||[],ye[r].find(n=>n.toastId===e.toastId)||setTimeout(()=>{var n,i;e.newestOnTop?(n=ye[r])==null||n.unshift(e):(i=ye[r])==null||i.push(e),e.onOpen&&e.onOpen(Zn(e))},e.delay||0))},remove(t){if(t){const e=No(t);if(e){const r=ye[e];let n=r.find(i=>i.toastId===t);ye[e]=r.filter(i=>i.toastId!==t),!ye[e].length&&!Bo(e)&&xn(e,!1),Ro(),u.nextTick(()=>{n!=null&&n.onClose&&(n.onClose(Zn(n)),n=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){ye[e]=ye[e]||[];const r=ye[e].find(a=>a.toastId===t.toastId),n=r?.position!==t.position||r?.transition!==t.transition,i={...t,disabledEnterTransition:!n,updateId:void 0};Pe.dismissForce(t?.toastId),setTimeout(()=>{te(i.content,i)},t.delay||0)}},clear(t,e=!0){t?xn(t,e):Oo(e)},dismissCallback(t){var e;const r=(e=t.currentTarget)==null?void 0:e.id,n=document.getElementById(r);n&&(n.removeEventListener("animationend",Pe.dismissCallback,!1),setTimeout(()=>{Pe.remove(r)}))},dismiss(t){if(t){const e=Bt();for(const r of e)if(r.toastId===t){Wi(r,n=>{n.addEventListener("animationend",Pe.dismissCallback,!1)});break}}},dismissForce(t){if(t){const e=Bt();for(const r of e)if(r.toastId===t){const n=document.getElementById(t);n&&(n.remove(),n.removeEventListener("animationend",Pe.dismissCallback,!1),Pe.remove(t));break}}}},ko=u.reactive({useHandler:void 0}),Xi=u.reactive({}),kr=u.reactive({});function ji(){return Math.random().toString(36).substring(2,9)}function Mo(t){return typeof t=="number"&&!isNaN(t)}function mn(t){return typeof t=="string"}function Nt(t){return typeof t=="function"}function $r(...t){return u.mergeProps(...t)}function Ir(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof t?.type=="object")}function Lo(t={}){Xi[`${q.CSS_NAMESPACE}-default-options`]=t}function Fo(){return Xi[`${q.CSS_NAMESPACE}-default-options`]||Gi}function Vo(){const t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||t?"dark":"light"}var Or=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(Or||{});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:fr.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:Dt.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:Se.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}},Uo={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Se.DEFAULT},theme:{type:String,required:!1,default:Dt.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}},$o=u.defineComponent({name:"ProgressBar",props:Uo,setup(t,{attrs:e}){const r=u.ref(),n=u.computed(()=>t.hide?"true":"false"),i=u.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=u.computed(()=>[`${q.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${q.CSS_NAMESPACE}__progress-bar--controlled`:`${q.CSS_NAMESPACE}__progress-bar--animated`,`${q.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${q.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${q.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),o=u.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())},c=u.computed(()=>t.controlledProgress?null:l),f=u.computed(()=>t.controlledProgress?l:null);return u.watchEffect(()=>{r.value&&(s(),r.value.onanimationend=c.value,r.value.ontransitionend=f.value)}),()=>u.createVNode("div",{ref:r,role:"progressbar","aria-hidden":n.value,"aria-label":"notification timer",class:o.value,style:i.value},null)}}),Ho=u.defineComponent({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:Dt.AUTO},type:{type:String,required:!1,default:Dt.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>u.createVNode("button",{class:`${q.CSS_NAMESPACE}__close-button ${q.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[u.createVNode("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[u.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)])])}}),Hr=({theme:t,type:e,path:r,...n})=>u.createVNode("svg",u.mergeProps({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},n),[u.createVNode("path",{d:r},null)]);function Go(t){return u.createVNode(Hr,u.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 zo(t){return u.createVNode(Hr,u.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 Wo(t){return u.createVNode(Hr,u.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 Xo(t){return u.createVNode(Hr,u.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 jo(){return u.createVNode("div",{class:`${q.CSS_NAMESPACE}__spinner`},null)}const Tr={info:zo,warning:Go,success:Wo,error:Xo,spinner:jo},Ko=t=>t in Tr;function Yo({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 Tr.spinner();if(n!==!1){if(Ir(n))i=u.toRaw(n);else if(Nt(n)){const s=n;o.type=a?"loading":e,i=s(o),i=!i&&a?Tr.spinner():i}else u.isVNode(n)?i=u.cloneVNode(n,o):mn(n)||Mo(n)?i=n:Ko(e)&&(i=Tr[e](o));return i}}const qo=()=>{};function Zo(t,e,r=q.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 Qo(t){const e=u.ref(!1),r=u.ref(!1),n=u.ref(!1),i=u.ref(Or.Enter),a=u.reactive({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||q.COLLAPSE_DURATION}),o=a.done||qo,s=u.computed(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=u.computed(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),c=u.computed(()=>t.pauseOnHover?{onMouseenter:y,onMouseleave:g}:{});function f(){const m=s.value.split(" ");v().addEventListener(pn.ENTRANCE_ANIMATION_END,g,{once:!0});const E=I=>{const B=v();I.target===B&&(B.dispatchEvent(new Event(pn.ENTRANCE_ANIMATION_END)),B.removeEventListener("animationend",E),B.removeEventListener("animationcancel",E),i.value===Or.Enter&&I.type!=="animationcancel"&&B.classList.remove(...m))},_=()=>{const I=v();I.classList.add(...m),I.addEventListener("animationend",E),I.addEventListener("animationcancel",E)};t.pauseOnFocusLoss&&h(),_()}function d(){if(!v())return;const m=()=>{const _=v();_.removeEventListener("animationend",m),a.collapse?Zo(_,o,a.collapseDuration):o()},E=()=>{const _=v();i.value=Or.Exit,_&&(_.className+=` ${l.value}`,_.addEventListener("animationend",m))};r.value||(n.value?m():setTimeout(E))}function v(){return t.toastRef.value}function h(){document.hasFocus()||y(),window.addEventListener("focus",g),window.addEventListener("blur",y)}function p(){window.removeEventListener("focus",g),window.removeEventListener("blur",y)}function g(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function y(){e.value=!1}function w(m){m&&(m.stopPropagation(),m.preventDefault()),r.value=!1}return u.watchEffect(d),u.watchEffect(()=>{const m=Bt();r.value=m.findIndex(E=>E.toastId===a.toastId)>-1}),u.watchEffect(()=>{t.isLoading!==void 0&&(t.loading.value?y():g())}),u.onMounted(f),u.onUnmounted(()=>{t.pauseOnFocusLoss&&p()}),{isIn:r,isRunning:e,hideToast:w,eventHandlers:c}}const Jo=u.defineComponent({name:"ToastItem",inheritAttrs:!1,props:Ki,setup(t){const e=u.ref(),r=u.computed(()=>!!t.isLoading),n=u.computed(()=>t.progress!==void 0&&t.progress!==null),i=u.computed(()=>Yo(t)),a=u.computed(()=>[`${q.CSS_NAMESPACE}__toast`,`${q.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${q.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${q.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:o,isIn:s,hideToast:l,eventHandlers:c}=Qo({toastRef:e,loading:r,done:()=>{Pe.remove(t.toastId)},...zi(t.transition,t.disabledEnterTransition),...t});return()=>u.createVNode("div",u.mergeProps({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:f=>{t.closeOnClick&&l(),t.onClick&&t.onClick(f)}},c.value),[u.createVNode("div",{role:t.role,"data-testid":"toast-body",class:`${q.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[i.value!=null&&u.createVNode("div",{"data-testid":`toast-icon-${t.type}`,class:[`${q.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${q.CSS_NAMESPACE}--animate-icon ${q.CSS_NAMESPACE}__zoom-enter`].join(" ")},[Ir(i.value)?u.h(u.toRaw(i.value),{theme:t.theme,type:t.type}):Nt(i.value)?i.value({theme:t.theme,type:t.type}):i.value]),u.createVNode("div",{"data-testid":"toast-content"},[Ir(t.content)?u.h(u.toRaw(t.content),{toastProps:u.toRaw(t),closeToast:l,data:t.data,...t.expandCustomProps?t.contentProps:{contentProps:t.contentProps||{}}}):Nt(t.content)?t.content({toastProps:u.toRaw(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?u.h("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&u.createVNode(Ho,{theme:t.theme,closeToast:f=>{f.stopPropagation(),f.preventDefault(),l()}},null),Ir(t.closeButton)?u.h(u.toRaw(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):Nt(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,u.createVNode($o,{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 Yi(){typeof window>"u"||(ir&&window.cancelAnimationFrame(ir),ir=window.requestAnimationFrame(Yi),kr.lastUrl!==window.location.href&&(kr.lastUrl=window.location.href,Pe.clear()))}const es=u.defineComponent({name:"ToastifyContainer",inheritAttrs:!1,props:Ki,setup(t){const e=u.computed(()=>t.containerId),r=u.computed(()=>ye[e.value]||[]),n=u.computed(()=>r.value.filter(i=>i.position===t.position));return u.onMounted(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(Yi)}),u.onUnmounted(()=>{typeof window<"u"&&ir&&(window.cancelAnimationFrame(ir),kr.lastUrl="")}),()=>u.createVNode(u.Fragment,null,[n.value.map(i=>{const{toastId:a=""}=i;return u.createVNode(Jo,u.mergeProps({key:a},i),null)})])}});let Kr=!1;const qi={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function Zi(){const t=[];return Bt().forEach(e=>{const r=document.getElementById(e.containerId);r&&!r.classList.contains(Ur)&&t.push(e)}),t}function ts(t){const e=Zi().length,r=t??0;return r>0&&e+qe.items.length>=r}function rs(t){ts(t.limit)&&!t.updateId&&qe.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function ct(t,e,r={}){if(Kr)return;r=$r(Fo(),{type:e},u.toRaw(r)),(!r.toastId||typeof r.toastId!="string"&&typeof r.toastId!="number")&&(r.toastId=ji()),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=Vo()),rs(r),kr.lastUrl=window.location.href,r.multiple?qe.items.length?r.updateId&&Sr(t,r):Sr(t,r):(Kr=!0,te.clearAll(void 0,!1),setTimeout(()=>{Sr(t,r)},0),setTimeout(()=>{Kr=!1},390)),r.toastId}const te=(t,e)=>ct(t,Se.DEFAULT,e);te.info=(t,e)=>ct(t,Se.DEFAULT,{...e,type:Se.INFO});te.error=(t,e)=>ct(t,Se.DEFAULT,{...e,type:Se.ERROR});te.warning=(t,e)=>ct(t,Se.DEFAULT,{...e,type:Se.WARNING});te.warn=te.warning;te.success=(t,e)=>ct(t,Se.DEFAULT,{...e,type:Se.SUCCESS});te.loading=(t,e)=>ct(t,Se.DEFAULT,$r(e,qi));te.dark=(t,e)=>ct(t,Se.DEFAULT,$r(e,{theme:Dt.DARK}));te.remove=t=>{t?Pe.dismiss(t):Pe.clear()};te.clearAll=(t,e)=>{u.nextTick(()=>{Pe.clear(t,e)})};te.isActive=t=>{let e=!1;return e=Zi().findIndex(r=>r.toastId===t)>-1,e};te.update=(t,e={})=>{setTimeout(()=>{const r=Po(t);if(r){const n=u.toRaw(r),{content:i}=n,a={...n,...e,toastId:e.toastId||t,updateId:ji()},o=a.render||i;delete a.render,ct(o,a.type,a)}},0)};te.done=t=>{te.update(t,{isLoading:!1,progress:1})};te.promise=ns;function ns(t,{pending:e,error:r,success:n},i){var a,o,s;let l;const c={...i||{},autoClose:!1};e&&(l=mn(e)?te.loading(e,c):te.loading(e.render,{...c,...e}));const f={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){te.remove(l);return}const y={type:h,...f,...i,data:g},w=mn(p)?{render:p}:p;return l?te.update(l,{...y,...w,isLoading:!1}):te(w.render,{...y,...w,isLoading:!1}),g},v=Nt(t)?t():t;return v.then(h=>{d("success",n,h)}).catch(h=>{d("error",r,h)}),v}te.POSITION=fr;te.THEME=Dt;te.TYPE=Se;te.TRANSITIONS=po;const is={install(t,e={}){ko.useHandler=e.useHandler||(()=>{}),as(e)}};typeof window<"u"&&(window.Vue3Toastify=is);function as(t={}){const e=$r(Gi,t);Lo(e)}const os={class:"dsg-alert__wrapper"},ss=["innerHTML"],Qi=u.defineComponent({__name:"DsgAlertComponent",props:{contentProps:{default:()=>({title:"",message:"",type:"gray",hasCloseButton:!0,useToast:!0,timeout:!1})}},setup(t){const e=["dsg-alert","dsg-alert--"+t.contentProps.type,t.contentProps.hasCloseButton?"dsg-alert--has-close":"dsg-alert--no-close"],n=u.useAttrs().closeToast,i=u.ref(!1);let a=null;const o=()=>{t.contentProps.useToast?n():i.value=!0};return u.onMounted(()=>{t.contentProps.timeout&&t.contentProps.timeout>0&&(a=setTimeout(()=>{o()},t.contentProps.timeout))}),u.onBeforeUnmount(()=>{a&&(clearTimeout(a),a=null)}),(s,l)=>i.value?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(e)},[t.contentProps.type==="gray"?(u.openBlock(),u.createBlock(It,{key:0,icon:{icon:"info-circle"},type:"outline",theme:"gray",size:"lg"})):u.createCommentVNode("",!0),t.contentProps.type==="error"?(u.openBlock(),u.createBlock(It,{key:1,icon:{icon:"alert-circle"},type:"outline",theme:"error",size:"lg"})):u.createCommentVNode("",!0),t.contentProps.type==="warning"?(u.openBlock(),u.createBlock(It,{key:2,icon:{icon:"alert-circle"},type:"outline",theme:"warning",size:"lg"})):u.createCommentVNode("",!0),t.contentProps.type==="success"?(u.openBlock(),u.createBlock(It,{key:3,icon:{icon:"check-circle"},type:"outline",theme:"success",size:"lg"})):u.createCommentVNode("",!0),u.createElementVNode("div",os,[u.createElementVNode("p",{class:u.normalizeClass(["dsg-alert__title",{"dsg-alert__title--with-close-button":t.contentProps.hasCloseButton}])},u.toDisplayString(t.contentProps.title),3),t.contentProps.message?(u.openBlock(),u.createElementBlock("p",{key:0,innerHTML:t.contentProps.message,class:"dsg-alert__message"},null,8,ss)):u.createCommentVNode("",!0)]),t.contentProps.hasCloseButton?(u.openBlock(),u.createElementBlock("button",{key:4,onClick:o,class:"dsg-alert__close-button"},[u.createVNode(F._sfc_main,{icon:"x-close",size:"sm"})])):u.createCommentVNode("",!0)]))}}),ls=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,timeout:3e3,position:"top-right",maxWidthClass:"",...i};te(Qi,{autoClose:a.hasCloseButton?!1:a.timeout,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,timeout:a.timeout},onClick:()=>{}})}};function Yr(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function us(t){return(...e)=>!t(...e)}function cs(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function fs(t){return t.filter(e=>!e.$isLabel)}function qr(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 Qn=(...t)=>e=>t.reduce((r,n)=>n(r),e);var ds={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 Yr(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?qr(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(us(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 Qn(this.filterGroups(e,r,this.groupValues,this.groupLabel,this.customLabel),qr(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Qn(qr(this.groupValues,this.groupLabel),fs)(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(Yr(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return Yr(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=>cs(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}:[]})}}},hs={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}}},Fn={name:"vue-multiselect",mixins:[ds,hs],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},contentWrapperClass:{type:[String,Array,Object],default:""}},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 vs=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],ps={ref:"tags",class:"multiselect__tags"},gs={class:"multiselect__tags-wrap"},xs=["textContent"],ys=["onKeydown","onMousedown"],ms=["textContent"],ws={class:"multiselect__spinner"},Es=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],As=["id","aria-multiselectable"],Cs={key:0},_s={class:"multiselect__option"},bs=["aria-selected","id","role"],Ss=["onClick","onMouseenter","data-select","data-selected","data-deselect"],Is=["data-select","data-deselect","onMouseenter","onMousedown"],Os={class:"multiselect__option"},Ts={class:"multiselect__option"};function Ns(t,e,r,n,i,a){return u.openBlock(),u.createElementBlock("div",{tabindex:t.searchable?-1:r.tabindex,class:u.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]=u.withKeys(u.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=u.withKeys(u.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"])),e[18]||(e[18]=u.withKeys(u.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"]))],onKeyup:e[19]||(e[19]=u.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},[u.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[u.createElementVNode("div",{onMousedown:e[0]||(e[0]=u.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),u.renderSlot(t.$slots,"clear",{search:t.search}),u.createElementVNode("div",ps,[u.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:a.visibleValues,isOpen:t.isOpen},()=>[u.withDirectives(u.createElementVNode("div",gs,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.visibleValues,(o,s)=>u.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(u.openBlock(),u.createElementBlock("span",{class:"multiselect__tag",key:s,onMousedown:e[1]||(e[1]=u.withModifiers(()=>{},["prevent"]))},[u.createElementVNode("span",{textContent:u.toDisplayString(t.getOptionLabel(o))},null,8,xs),u.createElementVNode("i",{tabindex:"1",onKeydown:u.withKeys(u.withModifiers(l=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:u.withModifiers(l=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,ys)],32))])),256))],512),[[u.vShow,a.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>r.limit?u.renderSlot(t.$slots,"limit",{key:0},()=>[u.createElementVNode("strong",{class:"multiselect__strong",textContent:u.toDisplayString(r.limitText(t.internalValue.length-r.limit))},null,8,ms)]):u.createCommentVNode("v-if",!0)]),u.createVNode(u.Transition,{name:"multiselect__loading"},{default:u.withCtx(()=>[u.renderSlot(t.$slots,"loading",{},()=>[u.withDirectives(u.createElementVNode("div",ws,null,512),[[u.vShow,r.loading]])])]),_:3}),t.searchable?(u.openBlock(),u.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:u.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]=u.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=u.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=u.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=u.withKeys(u.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=u.withKeys(u.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[8]||(e[8]=u.withKeys(u.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),e[9]||(e[9]=u.withKeys(u.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,Es)):u.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(u.openBlock(),u.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=u.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[u.renderSlot(t.$slots,"singleLabel",{option:a.singleValue},()=>[u.createTextVNode(u.toDisplayString(t.currentOptionLabel),1)])],32)):u.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(u.openBlock(),u.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=u.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[u.renderSlot(t.$slots,"placeholder",{},()=>[u.createTextVNode(u.toDisplayString(t.placeholder),1)])],32)):u.createCommentVNode("v-if",!0)],512),(u.openBlock(),u.createBlock(u.Teleport,{to:"body",disabled:!r.useTeleport},[u.createVNode(u.Transition,{name:"multiselect"},{default:u.withCtx(()=>[t.isOpen&&i.ready?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["multiselect__content-wrapper",r.contentWrapperClass]),onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=u.withModifiers(()=>{},["prevent"])),style:u.normalizeStyle([i.dropdownStyles,{maxHeight:t.optimizedHeight+"px"}]),ref:"list"},[u.createElementVNode("ul",{class:"multiselect__content",style:u.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+t.id,"aria-multiselectable":t.multiple},[u.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(u.openBlock(),u.createElementBlock("li",Cs,[u.createElementVNode("span",_s,[u.renderSlot(t.$slots,"maxElements",{},()=>[u.createTextVNode("Maximum of "+u.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):u.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(t.filteredOptions,(o,s)=>(u.openBlock(),u.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)?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",{key:0,class:u.normalizeClass([t.optionHighlight(s,o),"multiselect__option"]),onClick:u.withModifiers(l=>t.select(o),["stop"]),onMouseenter:u.withModifiers(l=>t.pointerSet(s),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[u.renderSlot(t.$slots,"option",{option:o,search:t.search,index:s},()=>[u.createElementVNode("span",null,u.toDisplayString(t.getOptionLabel(o)),1)])],42,Ss)),o&&(o.$isLabel||o.$isDisabled)?(u.openBlock(),u.createElementBlock("span",{key:1,"data-select":t.groupSelect&&a.selectGroupLabelText,"data-deselect":t.groupSelect&&a.deselectGroupLabelText,class:u.normalizeClass([t.groupHighlight(s,o),"multiselect__option"]),onMouseenter:u.withModifiers(l=>t.groupSelect&&t.pointerSet(s),["self"]),onMousedown:u.withModifiers(l=>t.selectGroup(o),["prevent"])},[u.renderSlot(t.$slots,"option",{option:o,search:t.search,index:s},()=>[u.createElementVNode("span",null,u.toDisplayString(t.getOptionLabel(o)),1)])],42,Is)):u.createCommentVNode("v-if",!0)],8,bs))),128)):u.createCommentVNode("v-if",!0),u.withDirectives(u.createElementVNode("li",null,[u.createElementVNode("span",Os,[u.renderSlot(t.$slots,"noResult",{search:t.search},()=>[e[20]||(e[20]=u.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[u.vShow,r.showNoResults&&t.filteredOptions.length===0&&t.search&&!r.loading]]),u.withDirectives(u.createElementVNode("li",null,[u.createElementVNode("span",Ts,[u.renderSlot(t.$slots,"noOptions",{},()=>[e[21]||(e[21]=u.createTextVNode("List is empty."))])])],512),[[u.vShow,r.showNoOptions&&(t.options.length===0||a.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!r.loading]]),u.renderSlot(t.$slots,"afterList")],12,As)],38)):u.createCommentVNode("v-if",!0)]),_:3})],8,["disabled"]))],42,vs)}Fn.render=Ns;const Ds={class:"user-picker"},Bs={class:"user-option"},Rs=["data-initials"],Ps=["src"],ks={class:"meta"},Ms={class:"name"},Ls={key:0,class:"email"},Fs={class:"tags"},Vs=["data-initials"],Us=["src"],$s={key:0,class:"inline-block relative"},Hs={class:"placeholder"},Gs={key:0,class:"single-display"},zs=["data-initials"],Ws=["src"],Xs={key:0,class:"name"},js={class:"placeholder"},Ks=u.defineComponent({__name:"DsgIconSelect",props:{modelValue:{},options:{},endpoint:{},queryParam:{default:"q"},extraParams:{},method:{default:"GET"},minChars:{default:1},delay:{default:300},multiple:{type:Boolean,default:!1},trackBy:{default:"id"},labelKey:{default:"primaryText"},secondaryTextKey:{default:"secondaryText"},iconKey:{default:"iconUrl"},placeholder:{default:"Search..."},clearOnSelect:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},selectLabel:{default:""},selectedLabel:{default:""},hideSelectedLabel:{type:Boolean,default:!1}},emits:["update:modelValue","change","search","loaded","error"],setup(t,{emit:e}){const r=t,n=e,i=u.ref(r.options??[]),a=u.ref(!1),o=u.ref("");let s,l=null;u.watch(()=>r.options,g=>{g&&(i.value=[...g])});const c=(g,y)=>{if(g)return g[y]},f=g=>{if(!g)return"";const y=g.trim().split(/\s+/),w=y[0]?.[0]??"",m=y.length>1?y[y.length-1][0]??"":"";return(w+m).toUpperCase()};u.computed(()=>r.multiple?r.modelValue??[]:r.modelValue?[r.modelValue]:[]);const d=u.computed(()=>!!r.endpoint),v=async g=>{if(d.value&&!((g?.length??0)<r.minChars)){a.value=!0,l?.abort(),l=new AbortController;try{const y=new URL(r.endpoint);if(r.method==="GET"){y.searchParams.set(r.queryParam,g),r.extraParams&&Object.entries(r.extraParams).forEach(([E,_])=>y.searchParams.set(E,String(_)));const w=await fetch(y.toString(),{signal:l.signal});if(!w.ok)throw new Error(`Request failed: ${w.status}`);const m=await w.json();i.value=Array.isArray(m)?m:m?.items??[],n("loaded",i.value)}else{const w={[r.queryParam]:g,...r.extraParams??{}},m=await fetch(y.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w),signal:l.signal});if(!m.ok)throw new Error(`Request failed: ${m.status}`);const E=await m.json();i.value=Array.isArray(E)?E:E?.items??[],n("loaded",i.value)}}catch(y){y?.name!=="AbortError"&&(console.error(y),n("error",y))}finally{a.value=!1}}},h=g=>{o.value=g,n("search",g),d.value&&(window.clearTimeout(s),s=window.setTimeout(()=>v(g),r.delay))},p=g=>{n("update:modelValue",g),n("change",g)};return(g,y)=>(u.openBlock(),u.createElementBlock("div",Ds,[u.createVNode(u.unref(Fn),{"model-value":t.modelValue,"onUpdate:modelValue":p,options:i.value,multiple:t.multiple,"track-by":t.trackBy,searchable:!0,"internal-search":!d.value,loading:a.value,"clear-on-select":!1,"close-on-select":!t.multiple,deselectLabel:"",placeholder:t.placeholder,disabled:t.disabled,label:"name","allow-empty":!0,onSearchChange:h,"select-label":t.selectLabel,"selected-label":t.selectedLabel,class:"user-picker__multiselect"},{option:u.withCtx(({option:w})=>[u.createElementVNode("div",Bs,[u.createElementVNode("div",{class:"avatar","data-initials":f(c(w,t.labelKey))},[c(w,t.iconKey)?(u.openBlock(),u.createElementBlock("img",{key:0,src:c(w,t.iconKey),alt:""},null,8,Ps)):u.createCommentVNode("",!0)],8,Rs),u.createElementVNode("div",ks,[u.createElementVNode("div",Ms,u.toDisplayString(c(w,t.labelKey)),1),w.secondaryText?(u.openBlock(),u.createElementBlock("div",Ls,u.toDisplayString(w.secondaryText),1)):u.createCommentVNode("",!0)])])]),selection:u.withCtx(({values:w,isOpen:m})=>[u.createElementVNode("div",Fs,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(w,E=>(u.openBlock(),u.createElementBlock("div",{class:"avatar","data-initials":f(c(E,t.labelKey))},[c(E,t.iconKey)?(u.openBlock(),u.createElementBlock("img",{key:0,src:c(E,t.iconKey),alt:""},null,8,Us)):u.createCommentVNode("",!0)],8,Vs))),256)),t.multiple&&w.length>0?(u.openBlock(),u.createElementBlock("div",$s,[u.createElementVNode("div",Hs,[u.createVNode(F._sfc_main,{icon:"plus",size:"xs"})])])):u.createCommentVNode("",!0)])]),singleLabel:u.withCtx(({option:w})=>[w?(u.openBlock(),u.createElementBlock("div",Gs,[u.createElementVNode("div",{class:"avatar","data-initials":f(c(w,t.labelKey))},[c(w,t.iconKey)?(u.openBlock(),u.createElementBlock("img",{key:0,src:c(w,t.iconKey),alt:""},null,8,Ws)):u.createCommentVNode("",!0)],8,zs),t.hideSelectedLabel?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("span",Xs,u.toDisplayString(c(w,t.labelKey)),1))])):u.createCommentVNode("",!0)]),placeholder:u.withCtx(()=>[u.createElementVNode("div",js,[u.createVNode(F._sfc_main,{icon:"plus",size:"xs"})])]),noResult:u.withCtx(()=>[...y[0]||(y[0]=[u.createElementVNode("div",{class:"empty"},"No results found.",-1)])]),_:1},8,["model-value","options","multiple","track-by","internal-search","loading","close-on-select","placeholder","disabled","select-label","selected-label"])]))}}),Ys=Ft(Ks,[["__scopeId","data-v-3ede6fde"]]),qs={class:"dsg-badge--before"},Zs={key:2,class:"dsg-badge--dot"},Qs={key:1,class:"dsg-badge--label"},Js={class:"dsg-badge--after"},el={key:1,class:"dsg-badge--close-wrapper"},Ji=u.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 F.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 F.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 F.DsgPropSyntaxWarning("DsgBadge: 'iconAfter' and 'hasClose' props are mutually exclusive. Please use only one of them.");const s=r,l=u.useTemplateRef("dsgBadge"),c=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))},f=d=>{s("on-click",l.value)};return e({hideOrDestroy:c,clickEvent:f}),(d,v)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(i)),ref:"dsgBadge",onClick:f},[t.type==="standard"?u.renderSlot(d.$slots,"dsg-badge--before",{key:0},()=>[u.createElementVNode("div",qs,[t.avatarUri?(u.openBlock(),u.createBlock(or,{key:0,"profile-uri":t.avatarUri,class:"dsg-badge--avatar",size:"xxs"},null,8,["profile-uri"])):u.createCommentVNode("",!0),t.iconBefore?(u.openBlock(),u.createBlock(F._sfc_main,{key:1,icon:t.iconBefore,size:"xxs",class:"dsg-badge--icon-before dsg-badge--icon"},null,8,["icon"])):u.createCommentVNode("",!0),t.hasDot?(u.openBlock(),u.createElementBlock("span",Zs)):u.createCommentVNode("",!0)])]):u.createCommentVNode("",!0),t.type==="standard"?(u.openBlock(),u.createElementBlock("label",Qs,u.toDisplayString(t.label),1)):u.createCommentVNode("",!0),t.type==="add"?(u.openBlock(),u.createBlock(F._sfc_main,{key:2,icon:"plus",size:"xxs",class:"dsg-badge--icon-add dsg-badge--icon"})):u.createCommentVNode("",!0),t.type==="icon-only"?(u.openBlock(),u.createBlock(F._sfc_main,{key:3,icon:t.icon,size:"xxs",class:"dsg-badge--icon-only dsg-badge--icon"},null,8,["icon"])):u.createCommentVNode("",!0),t.type==="standard"?u.renderSlot(d.$slots,"dsg-badge--after",{key:4},()=>[u.createElementVNode("div",Js,[t.iconAfter?(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:t.iconAfter,size:"xxs",class:"dsg-badge--icon-after dsg-badge--icon"},null,8,["icon"])):u.createCommentVNode("",!0),t.hasClose?(u.openBlock(),u.createElementBlock("span",el,[t.hasClose?(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:"x-close",class:"dsg-badge--close",size:"xxs",onClick:c})):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)])]):u.createCommentVNode("",!0)],2))}}),tl={class:"dsg-input-number--control"},rl=["disabled"],nl=["value","disabled"],il=["disabled"],al={key:0,class:"dsg-input-number--label"},ol=u.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)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["dsg-input-number",{"dsg-input-number--disabled":r.disabled}])},[u.createElementVNode("div",tl,[u.createElementVNode("button",{type:"button",onClick:a,disabled:r.disabled,class:"dsg-input-number--btn dsg-input-number--decrement"},[r.disabled?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:"minus",size:"sm"}))],8,rl),u.createElementVNode("input",{type:"number",value:t.modelValue,onInput:o,disabled:r.disabled,class:"dsg-input-number--input flex-1"},null,40,nl),u.createElementVNode("button",{type:"button",disabled:r.disabled,onClick:i,class:"dsg-input-number--btn dsg-input-number--increment"},[r.disabled?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:"plus",size:"sm"}))],8,il)]),t.label!==void 0||s.$slots.label?(u.openBlock(),u.createElementBlock("div",al,[u.renderSlot(s.$slots,"label",{},()=>[u.createTextVNode(u.toDisplayString(t.label),1)])])):u.createCommentVNode("",!0)],2))}}),sl={key:0,class:"dsg-checkbox-group--form-wrapper"},ll={class:"dsg-checkbox-group--header"},ul={class:"dsg-checkbox-group--header-title-wrapper"},cl={class:"dsg-checkbox-group--title"},fl=["innerHTML"],dl={class:"dsg-checkbox-group--options"},hl=["onClick"],vl=["textContent"],pl=["innerHTML","data"],gl=u.defineComponent({__name:"DsgCheckboxGroup",props:u.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=u.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)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(r)},[["form","form-radio"].includes(t.theme)?(u.openBlock(),u.createElementBlock("div",sl,[u.createElementVNode("div",ll,[u.renderSlot(i.$slots,"dsg-checkbox-group--header",{},()=>[u.createElementVNode("div",ul,[u.createElementVNode("h3",cl,u.toDisplayString(t.title),1),t.tooltip?(u.openBlock(),u.createBlock(F._sfc_main$1,{key:0,label:t.tooltip,position:"top",triggers:["hover"],"auto-hide":!0,theme:"dark",class:"dsg-checkbox-group--tooltip"},null,8,["label"])):u.createCommentVNode("",!0)]),t.subtext?(u.openBlock(),u.createElementBlock("p",{key:0,class:"dsg-checkbox-group--subtext",innerHTML:t.subtext},null,8,fl)):u.createCommentVNode("",!0)])]),u.createElementVNode("div",dl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.options,(o,s)=>(u.openBlock(),u.createElementBlock("div",{key:s,class:"dsg-checkbox-group--option"},[u.createVNode(F._sfc_main$2,{label:o.label,value:o.value,disabled:o.disabled,size:"sm",type:["form","panel"].includes(t.theme)?"checkbox":"radio",modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=l=>e.value=l)},null,8,["label","value","disabled","type","modelValue"])]))),128))])])):u.createCommentVNode("",!0),["panel","panel-content"].includes(t.theme)?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(t.options,(o,s)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["dsg-checkbox-group--panel",`dsg-checkbox-group--panel-${e.value===o.value?"selected":"unselected"}`]),onClick:l=>n(l,o)},[(u.openBlock(),u.createElementBlock("div",{class:"dsg-checkbox-group--panel-left",key:s},[u.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?(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:o.icon,size:"xl"},null,8,["icon"])):u.createCommentVNode("",!0),u.createElementVNode("h3",{class:"dsg-checkbox-group--panel-title",textContent:u.toDisplayString(o.label)},null,8,vl)]),u.renderSlot(i.$slots,`dsg-checkbox-group--panel-subtext--${String(o.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g,"-").replace(/-+/g,"-")}`,{},()=>[o.subtext?(u.openBlock(),u.createElementBlock("p",{key:0,class:"dsg-checkbox-group--panel-subtext",innerHTML:o.subtext,data:o},null,8,pl)):u.createCommentVNode("",!0)])])),(u.openBlock(),u.createElementBlock("div",{key:s,class:"dsg-checkbox-group--panel-right"},[u.createVNode(F._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,hl))),256)):u.createCommentVNode("",!0)]))}});var xl="2.0.9",yl=500,Jn="user-agent",Rt="",ei="?",ue={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},De="browser",et="cpu",Ke="device",He="engine",ke="os",Pt="result",T="name",b="type",D="vendor",N="version",be="architecture",lr="major",O="model",Nr="console",H="mobile",Q="tablet",ce="smarttv",We="wearable",gr="xr",Qt="embedded",ml="fetcher",Et="inapp",Vn="brands",gt="formFactors",Un="fullVersionList",kt="platform",$n="platformVersion",Gr="bitness",ft="sec-ch-ua",wl=ft+"-full-version-list",El=ft+"-arch",Al=ft+"-"+Gr,Cl=ft+"-form-factors",_l=ft+"-"+H,bl=ft+"-"+O,ea=ft+"-"+kt,Sl=ea+"-version",ta=[Vn,Un,H,O,kt,$n,be,gt,Gr],xr="Amazon",At="Apple",ti="ASUS",ri="BlackBerry",dt="Google",ni="Huawei",Zr="Lenovo",ii="Honor",yr="LG",Qr="Microsoft",Jr="Motorola",ai="Nvidia",oi="OnePlus",en="OPPO",Gt="Samsung",si="Sharp",zt="Sony",tn="Xiaomi",rn="Zebra",li="Chrome",ui="Chromium",rt="Chromecast",Dr="Edge",Wt="Firefox",Ct="Opera",nn="Facebook",ci="Sogou",_t="Mobile ",bt=" Browser",wn="Windows",Il=typeof window!==ue.UNDEFINED,Te=Il&&window.navigator?window.navigator:void 0,xt=Te&&Te.userAgentData?Te.userAgentData:void 0,Ol=function(t,e){var r={},n=e;if(!Mr(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},zr=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},En=function(t,e){if(typeof t===ue.OBJECT&&t.length>0){for(var r in t)if(ot(e)==ot(t[r]))return!0;return!1}return dr(t)?ot(e)==ot(t):!1},Mr=function(t,e){for(var r in t)return/^(browser|cpu|device|engine|os)$/.test(r)||(e?Mr(t[r]):!1)},dr=function(t){return typeof t===ue.STRING},an=function(t){if(t){for(var e=[],r=Mt(/\\?\"/g,t).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var i=Lr(r[n]).split(";v=");e[n]={brand:i[0],version:i[1]}}else e[n]=Lr(r[n]);return e}},ot=function(t){return dr(t)?t.toLowerCase():t},An=function(t){return dr(t)?Mt(/[^\d\.]/g,t).split(".")[0]:void 0},Je=function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];typeof r==ue.OBJECT&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this},Mt=function(t,e){return dr(e)?e.replace(t,Rt):e},Xt=function(t){return Mt(/\\?\"/g,t)},Lr=function(t,e){return t=Mt(/^\s\s*/,String(t)),typeof e===ue.UNDEFINED?t:t.substring(0,e)},Cn=function(t,e){if(!(!t||!e))for(var r=0,n,i,a,o,s,l;r<e.length&&!s;){var c=e[r],f=e[r+1];for(n=i=0;n<c.length&&!s&&c[n];)if(s=c[n++].exec(t),s)for(a=0;a<f.length;a++)l=s[++i],o=f[a],typeof o===ue.OBJECT&&o.length>0?o.length===2?typeof o[1]==ue.FUNCTION?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]===ue.FUNCTION&&!(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}},Ue=function(t,e){for(var r in e)if(typeof e[r]===ue.OBJECT&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(En(e[r][n],t))return r===ei?void 0:r}else if(En(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:""},di={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Tl={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"},hi={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[N,[T,_t+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[N,[T,Dr+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[N,[T,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[T,N],[/opios[\/ ]+([\w\.]+)/i],[N,[T,Ct+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[N,[T,Ct+" GX"]],[/\bopr\/([\w\.]+)/i],[N,[T,Ct]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[N,[T,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[N,[T,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[T,N],[/quark(?:pc)?\/([-\w\.]+)/i],[N,[T,"Quark"]],[/\bddg\/([\w\.]+)/i],[N,[T,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[N,[T,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[N,[T,"WeChat"]],[/konqueror\/([\w\.]+)/i],[N,[T,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[N,[T,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[N,[T,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[N,[T,"Smart "+Zr+bt]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[T,/(.+)/,"$1 Secure"+bt],N],[/norton\/([\w\.]+)/i],[N,[T,"Norton Private"+bt]],[/\bfocus\/([\w\.]+)/i],[N,[T,Wt+" Focus"]],[/ mms\/([\w\.]+)$/i],[N,[T,Ct+" Neon"]],[/ opt\/([\w\.]+)$/i],[N,[T,Ct+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[N,[T,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[N,[T,"Dolphin"]],[/coast\/([\w\.]+)/i],[N,[T,Ct+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[N,[T,"MIUI"+bt]],[/fxios\/([\w\.-]+)/i],[N,[T,_t+Wt]],[/\bqihoobrowser\/?([\w\.]*)/i],[N,[T,"360"]],[/\b(qq)\/([\w\.]+)/i],[[T,/(.+)/,"$1Browser"],N],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[T,/(.+)/,"$1"+bt],N],[/samsungbrowser\/([\w\.]+)/i],[N,[T,Gt+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[N,[T,ci+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[T,ci+" Mobile"],N],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[T,N],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[T],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[N,T],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[T,nn],N,[b,Et]],[/(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,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[T,N,[b,Et]],[/\bgsa\/([\w\.]+) .*safari\//i],[N,[T,"GSA"],[b,Et]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[N,[T,"TikTok"],[b,Et]],[/\[(linkedin)app\]/i],[T,[b,Et]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[T,/(.+)/,"Zalo"],N,[b,Et]],[/(chromium)[\/ ]([-\w\.]+)/i],[T,N],[/ome-(lighthouse)$/i],[T,[b,ml]],[/headlesschrome(?:\/([\w\.]+)| )/i],[N,[T,li+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[N,[T,Dr+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[T,li+" WebView"],N],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[N,[T,"Android"+bt]],[/chrome\/([\w\.]+) mobile/i],[N,[T,_t+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[T,N],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[N,[T,_t+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[T,_t+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[N,T],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[T,[N,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[T,N],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[T,_t+Wt],N],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[T,"Netscape"],N],[/(wolvic|librewolf)\/([\w\.]+)/i],[T,N],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[N,[T,Wt+" 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|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[T,[N,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[T,[N,/[^\d\.]+./,Rt]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[be,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[be,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[be,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[be,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[be,"arm"]],[/ sun4\w[;\)]/i],[[be,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[be,/ower/,Rt,ot]],[/mc680.0/i],[[be,"68k"]],[/winnt.+\[axp/i],[[be,"alpha"]]],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],[O,[D,Gt],[b,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],[O,[D,Gt],[b,H]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[O,[D,At],[b,H]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[O,[D,At],[b,Q]],[/(macintosh);/i],[O,[D,At]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[O,[D,si],[b,H]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[O,[D,ii],[b,Q]],[/honor([-\w ]+)[;\)]/i],[O,[D,ii],[b,H]],[/\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],[O,[D,ni],[b,Q]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[O,[D,ni],[b,H]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[O,/_/g," "],[D,tn],[b,Q]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[O,/_/g," "],[D,tn],[b,H]],[/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-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[O,[D,oi],[b,H]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[O,[D,en],[b,H]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[O,[D,Ue,{OnePlus:["203","304","403","404","413","415"],"*":en}],[b,Q]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[O,[D,"BLU"],[b,H]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[O,[D,"Vivo"],[b,H]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[O,[D,"Realme"],[b,H]],[/(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],[O,[D,Zr],[b,Q]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[O,[D,Zr],[b,H]],[/\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],[O,[D,Jr],[b,H]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[O,[D,Jr],[b,Q]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[O,[D,yr],[b,Q]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[O,[D,yr],[b,H]],[/(nokia) (t[12][01])/i],[D,O,[b,Q]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[O,/_/g," "],[b,H],[D,"Nokia"]],[/(pixel (c|tablet))\b/i],[O,[D,dt],[b,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],[O,[D,dt],[b,H]],[/(google) (pixelbook( go)?)/i],[D,O],[/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],[O,[D,zt],[b,H]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[O,"Xperia Tablet"],[D,zt],[b,Q]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[O,[D,xr],[b,Q]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[O,/(.+)/g,"Fire Phone $1"],[D,xr],[b,H]],[/(playbook);[-\w\),; ]+(rim)/i],[O,D,[b,Q]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[O,[D,ri],[b,H]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[O,[D,ti],[b,Q]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[O,[D,ti],[b,H]],[/(nexus 9)/i],[O,[D,"HTC"],[b,Q]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[D,[O,/_/g," "],[b,H]],[/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],[O,[D,"TCL"],[b,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],[O,[D,"TCL"],[b,H]],[/(itel) ((\w+))/i],[[D,ot],O,[b,Ue,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[O,[D,"Acer"],[b,Q]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[O,[D,"Meizu"],[b,H]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[O,[D,"Ulefone"],[b,H]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[O,[D,"Energizer"],[b,H]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[O,[D,"Cat"],[b,H]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[O,[D,"Smartfren"],[b,H]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[O,[D,"Nothing"],[b,H]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[O,[D,"Archos"],[b,Q]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[O,[D,"Archos"],[b,H]],[/; (n159v)/i],[O,[D,"HMD"],[b,H]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[D,O,[b,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|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[D,O,[b,H]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[D,O,[b,Q]],[/(surface duo)/i],[O,[D,Qr],[b,Q]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[O,[D,"Fairphone"],[b,H]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[O,[D,ai],[b,Q]],[/(sprint) (\w+)/i],[D,O,[b,H]],[/(kin\.[onetw]{3})/i],[[O,/\./g," "],[D,Qr],[b,H]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[O,[D,rn],[b,Q]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[O,[D,rn],[b,H]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[D,[b,ce]],[/hbbtv.+maple;(\d+)/i],[[O,/^/,"SmartTV"],[D,Gt],[b,ce]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[D,O,[b,ce]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[D,yr],[b,ce]],[/(apple) ?tv/i],[D,[O,At+" TV"],[b,ce]],[/crkey.*devicetype\/chromecast/i],[[O,rt+" Third Generation"],[D,dt],[b,ce]],[/crkey.*devicetype\/([^/]*)/i],[[O,/^/,"Chromecast "],[D,dt],[b,ce]],[/fuchsia.*crkey/i],[[O,rt+" Nest Hub"],[D,dt],[b,ce]],[/crkey/i],[[O,rt],[D,dt],[b,ce]],[/(portaltv)/i],[O,[D,nn],[b,ce]],[/droid.+aft(\w+)( bui|\))/i],[O,[D,xr],[b,ce]],[/(shield \w+ tv)/i],[O,[D,ai],[b,ce]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[O,[D,si],[b,ce]],[/(bravia[\w ]+)( bui|\))/i],[O,[D,zt],[b,ce]],[/(mi(tv|box)-?\w+) bui/i],[O,[D,tn],[b,ce]],[/Hbbtv.*(technisat) (.*);/i],[D,O,[b,ce]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[D,/.+\/(\w+)/,"$1",Ue,{LG:"lge"}],[O,Lr],[b,ce]],[/(playstation \w+)/i],[O,[D,zt],[b,Nr]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[O,[D,Qr],[b,Nr]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[D,Ue,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],O,[b,Nr]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[O,[D,Gt],[b,We]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[D,O,[b,We]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[O,[D,en],[b,We]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[O,[D,At],[b,We]],[/(opwwe\d{3})/i],[O,[D,oi],[b,We]],[/(moto 360)/i],[O,[D,Jr],[b,We]],[/(smartwatch 3)/i],[O,[D,zt],[b,We]],[/(g watch r)/i],[O,[D,yr],[b,We]],[/droid.+; (wt63?0{2,3})\)/i],[O,[D,rn],[b,We]],[/droid.+; (glass) \d/i],[O,[D,dt],[b,gr]],[/(pico) ([\w ]+) os\d/i],[D,O,[b,gr]],[/(quest( \d| pro)?s?).+vr/i],[O,[D,nn],[b,gr]],[/mobile vr; rv.+firefox/i],[[b,gr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[D,[b,Qt]],[/(aeobc)\b/i],[O,[D,xr],[b,Qt]],[/(homepod).+mac os/i],[O,[D,At],[b,Qt]],[/windows iot/i],[[b,Qt]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[O,[b,ce]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[b,ce]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[O,[b,Ue,{mobile:"Mobile",xr:"VR","*":Q}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,Q]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,H]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[O,[D,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[N,[T,Dr+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[T,N],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[N,[T,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[T,N],[/ladybird\//i],[[T,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[N,T]],os:[[/(windows nt) (6\.[23]); arm/i],[[T,/N/,"R"],[N,Ue,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],[T,N],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[N,/(;|\))/g,"",Ue,fi],[T,wn]],[/(windows ce)\/?([\d\.]*)/i],[T,N],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[N,/_/g,"."],[T,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[T,"macOS"],[N,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[N,[T,rt+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[N,[T,rt+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[N,[T,rt+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[N,[T,rt+" Linux"]],[/crkey\/([\d\.]+)/i],[N,[T,rt]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[N,T],[/(ubuntu) ([\w\.]+) like android/i],[[T,/(.+)/,"$1 Touch"],N],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[T,N],[/\(bb(10);/i],[N,[T,ri]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[N,[T,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[N,[T,Wt+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[N,[T,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[N,Ue,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[T,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[N,[T,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[N,[T,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[N,[T,"Vega OS"]],[/(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],[T,N],[/(sunos) ?([\d\.]*)/i],[[T,"Solaris"],N],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[T,N]]},mr=(function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Je.call(t.init,[[De,[T,N,lr,b]],[et,[be]],[Ke,[b,O,D]],[He,[T,N]],[ke,[T,N]]]),Je.call(t.isIgnore,[[De,[N,lr]],[He,[N]],[ke,[N]]]),Je.call(t.isIgnoreRgx,[[De,/ ?browser$/i],[ke,/ ?os$/i]]),Je.call(t.toString,[[De,[T,N]],[et,[be]],[Ke,[D,O]],[He,[T,N]],[ke,[T,N]]]),t})(),Nl=function(t,e){var r=mr.init[e],n=mr.isIgnore[e]||0,i=mr.isIgnoreRgx[e]||0,a=mr.toString[e]||0;function o(){Je.call(this,r)}return o.prototype.getItem=function(){return t},o.prototype.withClientHints=function(){return xt?xt.getHighEntropyValues(ta).then(function(s){return t.setCH(new ra(s,!1)).parseCH().get()}):t.parseCH().get()},o.prototype.withFeatureCheck=function(){return t.detectFeature().get()},e!=Pt&&(o.prototype.is=function(s){var l=!1;for(var c in this)if(this.hasOwnProperty(c)&&!En(n,c)&&ot(i?Mt(i,this[c]):this[c])==ot(i?Mt(i,s):s)){if(l=!0,s!=ue.UNDEFINED)break}else if(s==ue.UNDEFINED&&l){l=!l;break}return l},o.prototype.toString=function(){var s=Rt;for(var l in a)typeof this[a[l]]!==ue.UNDEFINED&&(s+=(s?" ":Rt)+this[a[l]]);return s||ue.UNDEFINED}),o.prototype.then=function(s){var l=this,c=function(){for(var d in l)l.hasOwnProperty(d)&&(this[d]=l[d])};c.prototype={is:o.prototype.is,toString:o.prototype.toString,withClientHints:o.prototype.withClientHints,withFeatureCheck:o.prototype.withFeatureCheck};var f=new c;return s(f),f},new o};function ra(t,e){if(t=t||{},Je.call(this,ta),e)Je.call(this,[[Vn,an(t[ft])],[Un,an(t[wl])],[H,/\?1/.test(t[_l])],[O,Xt(t[bl])],[kt,Xt(t[ea])],[$n,Xt(t[Sl])],[be,Xt(t[El])],[gt,an(t[Cl])],[Gr,Xt(t[Al])]]);else for(var r in t)this.hasOwnProperty(r)&&typeof t[r]!==ue.UNDEFINED&&(this[r]=t[r])}function ut(t,e,r,n){return Je.call(this,[["itemType",t],["ua",e],["uaCH",n],["rgxMap",r],["data",Nl(this,t)]]),this}ut.prototype.get=function(t){return t?this.data.hasOwnProperty(t)?this.data[t]:void 0:this.data};ut.prototype.set=function(t,e){return this.data[t]=e,this};ut.prototype.setCH=function(t){return this.uaCH=t,this};ut.prototype.detectFeature=function(){if(Te&&Te.userAgent==this.ua)switch(this.itemType){case De:Te.brave&&typeof Te.brave.isBrave==ue.FUNCTION&&this.set(T,"Brave");break;case Ke:!this.get(b)&&xt&&xt[H]&&this.set(b,H),this.get(O)=="Macintosh"&&Te&&typeof Te.standalone!==ue.UNDEFINED&&Te.maxTouchPoints&&Te.maxTouchPoints>2&&this.set(O,"iPad").set(b,Q);break;case ke:!this.get(T)&&xt&&xt[kt]&&this.set(T,xt[kt]);break;case Pt:var t=this.data,e=function(r){return t[r].getItem().detectFeature().get()};this.set(De,e(De)).set(et,e(et)).set(Ke,e(Ke)).set(He,e(He)).set(ke,e(ke))}return this};ut.prototype.parseUA=function(){switch(this.itemType!=Pt&&Cn.call(this.data,this.ua,this.rgxMap),this.itemType){case De:this.set(lr,An(this.get(N)));break;case ke:if(this.get(T)=="iOS"&&this.get(N)=="18.6"){var t=/\) Version\/([\d\.]+)/.exec(this.ua);t&&parseInt(t[1].substring(0,2),10)>=26&&this.set(N,t[1])}break}return this};ut.prototype.parseCH=function(){var t=this.uaCH,e=this.rgxMap;switch(this.itemType){case De:case He:var r=t[Un]||t[Vn],n;if(r)for(var i=0;i<r.length;i++){var a=r[i].brand||r[i],o=r[i].version;this.itemType==De&&!/not.a.brand/i.test(a)&&(!n||/Chrom/.test(n)&&a!=ui||n==Dr&&/WebView2/.test(a))&&(a=Ue(a,Tl),n=this.get(T),n&&!/Chrom/.test(n)&&/Chrom/.test(a)||this.set(T,a).set(N,o).set(lr,An(o)),n=a),this.itemType==He&&a==ui&&this.set(N,o)}break;case et:var s=t[be];s&&(s&&t[Gr]=="64"&&(s+="64"),Cn.call(this.data,s+";",e));break;case Ke:if(t[H]&&this.set(b,H),t[O]&&(this.set(O,t[O]),!this.get(b)||!this.get(D))){var l={};Cn.call(l,"droid 9; "+t[O]+")",e),!this.get(b)&&l.type&&this.set(b,l.type),!this.get(D)&&l.vendor&&this.set(D,l.vendor)}if(t[gt]){var c;if(typeof t[gt]!="string")for(var f=0;!c&&f<t[gt].length;)c=Ue(t[gt][f++],di);else c=Ue(t[gt],di);this.set(b,c)}break;case ke:var d=t[kt];if(d){var v=t[$n];d==wn&&(v=parseInt(An(v),10)>=13?"11":"10"),this.set(T,d).set(N,v)}this.get(T)==wn&&t[O]=="Xbox"&&this.set(T,"Xbox").set(N,void 0);break;case Pt:var h=this.data,p=function(g){return h[g].getItem().setCH(t).parseCH().get()};this.set(De,p(De)).set(et,p(et)).set(Ke,p(Ke)).set(He,p(He)).set(ke,p(ke))}return this};function tt(t,e,r){if(typeof t===ue.OBJECT?(Mr(t,!0)?(typeof e===ue.OBJECT&&(r=e),e=t):(r=t,e=void 0),t=void 0):typeof t===ue.STRING&&!Mr(e,!0)&&(r=e,e=void 0),r)if(typeof r.append===ue.FUNCTION){var n={};r.forEach(function(f,d){n[String(d).toLowerCase()]=f}),r=n}else{var i={};for(var a in r)r.hasOwnProperty(a)&&(i[String(a).toLowerCase()]=r[a]);r=i}if(!(this instanceof tt))return new tt(t,e,r).getResult();var o=typeof t===ue.STRING?t:r&&r[Jn]?r[Jn]:Te&&Te.userAgent?Te.userAgent:Rt,s=new ra(r,!0),l=e?Ol(hi,e):hi,c=function(f){return f==Pt?function(){return new ut(f,o,l,s).set("ua",o).set(De,this.getBrowser()).set(et,this.getCPU()).set(Ke,this.getDevice()).set(He,this.getEngine()).set(ke,this.getOS()).get()}:function(){return new ut(f,o,l[f],s).parseUA().get()}};return Je.call(this,[["getBrowser",c(De)],["getCPU",c(et)],["getDevice",c(Ke)],["getEngine",c(He)],["getOS",c(ke)],["getResult",c(Pt)],["getUA",function(){return o}],["setUA",function(f){return dr(f)&&(o=Lr(f,yl)),this}]]).setUA(o),this}tt.VERSION=xl;tt.BROWSER=zr([T,N,lr,b]);tt.CPU=zr([be]);tt.DEVICE=zr([O,D,b,Nr,H,ce,Q,We,Qt]);tt.ENGINE=tt.OS=zr([T,N]);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 jt(t,e,r,n){t.removeEventListener?t.removeEventListener(e,r,n):t.detachEvent&&t.detachEvent("on".concat(e),r)}function na(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 ia(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 Dl(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},Ge={"⇧":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},me={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,aa="all";const Qe=new Map,Vt=t=>ur[t.toLowerCase()]||Ge[t.toLowerCase()]||t.toUpperCase().charCodeAt(0),Bl=t=>Object.keys(ur).find(e=>ur[e]===t),Rl=t=>Object.keys(Ge).find(e=>Ge[e]===t);function oa(t){aa=t||"all"}function cr(){return aa||"all"}function Pl(){return oe.slice(0)}function kl(){return oe.map(t=>Bl(t)||Rl(t)||String.fromCharCode(t))}function Ml(){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=>Vt(s))})})}),t}function Ll(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 Fl(t){return typeof t=="string"&&(t=Vt(t)),oe.indexOf(t)!==-1}function Vl(t,e){let r,n;t||(t=cr());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 Hn(s)}):n++;cr()===t&&oa(e||"all")}function Ul(t){let e=t.keyCode||t.which||t.charCode;t.key&&t.key.toLowerCase()==="capslock"&&(e=Vt(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 me){me[e]=!1;for(const n in Ge)Ge[n]===e&&(Xe[n]=!1)}}function sa(t){if(typeof t>"u")Object.keys(se).forEach(i=>{Array.isArray(se[i])&&se[i].forEach(a=>wr(a)),delete se[i]}),Hn(null);else if(Array.isArray(t))t.forEach(i=>{i.key&&wr(i)});else if(typeof t=="object")t.key&&wr(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=""),wr({key:t,scope:i,method:a,splitKey:"+"})}}const wr=t=>{let{key:e,scope:r,method:n,splitKey:i="+"}=t;ia(e).forEach(o=>{const s=o.split(i),l=s.length,c=s[l-1],f=c==="*"?"*":Vt(c);if(!se[f])return;r||(r=cr());const d=l>1?na(Ge,s):[],v=[];se[f]=se[f].filter(h=>{const g=(n?h.method===n:!0)&&h.scope===r&&Dl(h.mods,d);return g&&v.push(h.element),!g}),v.forEach(h=>Hn(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 me)Object.prototype.hasOwnProperty.call(me,a)&&(!me[a]&&e.mods.indexOf(+a)>-1||me[a]&&e.mods.indexOf(+a)===-1)&&(i=!1);(e.mods.length===0&&!me[16]&&!me[18]&&!me[17]&&!me[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(c=>c in Jt||c===n))}),n in me){me[n]=!0;for(const s in Ge)if(Object.prototype.hasOwnProperty.call(Ge,s)){const l=Jt[Ge[s]];Xe[s]=t[l]}if(!r)return}for(const s in me)Object.prototype.hasOwnProperty.call(me,s)&&(me[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),me[17]=!0,me[18]=!0);const i=cr();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:c}=l,f=l.key.split(c),d=[];for(let v=0;v<f.length;v++)d.push(Vt(f[v]));d.sort().join("")===oe.sort().join("")&&vi(t,l,i,e)}}function Xe(t,e,r){oe=[];const n=ia(t);let i=[],a="all",o=document,s=0,l=!1,c=!0,f="+",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&&(c=e.keydown),e.capture!==void 0&&(d=e.capture),typeof e.splitKey=="string"&&(f=e.splitKey),e.single===!0&&(v=!0)),typeof e=="string"&&(a=e),v&&sa(t,a);s<n.length;s++)t=n[s].split(f),i=[],t.length>1&&(i=na(Ge,t)),t=t[t.length-1],t=t==="*"?"*":Vt(t),t in se||(se[t]=[]),se[t].push({keyup:l,keydown:c,scope:a,mods:i,shortcut:n[s],method:r,key:n[s],splitKey:f,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),Ul(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 $l(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 Hn(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&&(jt(t,"keyup",i,a),jt(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&&(jt(i,"keyup",o,s),jt(i,"keydown",a,s),Qe.delete(i))}),Qe.clear(),Object.keys(se).forEach(i=>delete se[i]),ar)){const{listener:i,capture:a}=ar;jt(window,"focus",i,a),ar=null}}const ln={getPressedKeyString:kl,setScope:oa,getScope:cr,deleteScope:Vl,getPressedKeyCodes:Pl,getAllKeyCodes:Ml,isPressed:Fl,filter:Ll,trigger:$l,unbind:sa,keyMap:ur,modifier:Ge,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 Hl={class:"dsg-dropdown--trigger",tabindex:"0"},Gl={class:"dsg-dropdown--menu"},zl={key:0,class:"dsg-dropdown--menu-header"},Wl={key:1,class:"dsg-dropdown--menu-header"},Xl={class:"dsg-dropdown--menu-title"},jl={key:2,class:"dsg-dropdown--menu-header subsection"},Kl={class:"dsg-dropdown--menu-subtitle"},Yl=["href","target","tabindex","title","onClick"],ql={key:0,class:"dsg-dropdown--menu-item--content"},Zl={key:0,class:"dsg-dropdown--menu-item--icon"},Ql={class:"dsg-dropdown--menu-item--label"},Jl={class:"dsg-dropdown--menu-item--hotkey"},eu={key:0},tu={key:1,class:"dsg-dropdown--menu-item--content"},ru=u.defineComponent({__name:"DsgDropdown",props:{label:{default:""},type:{default:"button"},icon:{default:"dots-vertical"},iconBefore:{default:()=>{}},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},size:{default:"md"}},setup(t,{expose:e}){const r=u.ref(t.isOpen),n=new tt().getOS().name;t.menuItems.forEach(h=>{});const i=u.useTemplateRef("floatingVueDropdownEl"),a=u.useTemplateRef("dsgDropdownAvatarTriggerEl"),o=u.useTemplateRef("dsgDropdownButtonTriggerEl"),s=h=>{c(),a.value&&setTimeout(()=>{a?.value?.toggleFocus(r.value)},100)},l=h=>{c(),o.value&&setTimeout(()=>{o?.value?.focusButton(r.value)},100)},c=()=>{r.value=!r.value,r.value?i.value?.show():i.value?.hide()},f=(h,p)=>{p.uri||h.preventDefault(),p.action&&(p.action(),i.value?.hide())},d=u.useTemplateRef("dsgDropdown"),v=h=>(h=h.toLowerCase(),h.replace("ctrl","⌃").replace("shift","⇧").replace("alt","⌥").replace("cmd",n==="macOS"?"⌘":"⊞").replace("++","+").replace("+","").toUpperCase());return u.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())})})}),u.onBeforeUnmount(()=>{Xe.deleteScope("dsgDropdown")}),e({handleTriggerClick:c}),(h,p)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["dsg-dropdown",`dsg-dropdown--${t.size}`+t.classes]),ref:"dsgDropdown"},[u.createVNode(u.unref(F.kt),u.mergeProps({triggers:[],placement:t.placement,"handle-resize":!1,strategy:t.strategy,shown:r.value,flip:!1,shift:!1,boundary:d.value,container:d.value,skidding:t.skidding,distance:t.distance,class:"dsg-dropdown--popper",onHide:p[0]||(p[0]=g=>r.value=!1),ref:"floatingVueDropdownEl"},h.$attrs),{popper:u.withCtx(()=>[u.createElementVNode("div",Gl,[u.renderSlot(h.$slots,"dsg-dropdown-menu--header",{},()=>[t.headerType==="avatar"?(u.openBlock(),u.createElementBlock("div",zl,[t.avatarInfo?(u.openBlock(),u.createBlock(or,{key:0,size:"md",profileUri:t.avatarInfo.profileUri,fullName:t.avatarInfo.fullName,isOnline:t.avatarInfo.isOnline,title:t.avatarInfo.title,"sub-text":t.avatarInfo.subText},null,8,["profileUri","fullName","isOnline","title","sub-text"])):u.createCommentVNode("",!0)])):t.headerType==="title"?(u.openBlock(),u.createElementBlock("div",Wl,[u.createElementVNode("h3",Xl,u.toDisplayString(t.headerTitle),1)])):t.headerType==="subsection"?(u.openBlock(),u.createElementBlock("div",jl,[u.createElementVNode("h4",Kl,u.toDisplayString(t.headerTitle),1)])):u.createCommentVNode("",!0)]),u.renderSlot(h.$slots,"dsg-dropdown-menu-content",{},()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.menuItems,(g,y)=>(u.openBlock(),u.createElementBlock("a",{class:u.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:y,onClick:w=>f(w,g)},[g.type==="item"||g.type===void 0?(u.openBlock(),u.createElementBlock("div",ql,[g.icon?(u.openBlock(),u.createElementBlock("div",Zl,[u.createVNode(F._sfc_main,{icon:g.icon,size:"xs"},null,8,["icon"])])):u.createCommentVNode("",!0),u.createElementVNode("span",Ql,u.toDisplayString(g.label),1),u.createElementVNode("div",Jl,[g.hotkey?(u.openBlock(),u.createElementBlock("span",eu,u.toDisplayString(v(g.hotkey)),1)):u.createCommentVNode("",!0)])])):g.type==="divider"?(u.openBlock(),u.createElementBlock("div",tu,[...p[1]||(p[1]=[u.createElementVNode("hr",null,null,-1)])])):u.createCommentVNode("",!0)],10,Yl))),128))])])]),default:u.withCtx(()=>[u.createElementVNode("div",Hl,[u.renderSlot(h.$slots,"dsg-dropdown--trigger",{},()=>[t.type==="avatar"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[t.avatarInfo?(u.openBlock(),u.createBlock(or,{key:0,size:"lg",profileUri:t.avatarInfo.profileUri,fullName:t.avatarInfo.fullName,ref:"dsgDropdownAvatarTriggerEl",onClick:s,"prevent-default":!0},null,8,["profileUri","fullName"])):u.createCommentVNode("",!0)],64)):t.type==="button"?(u.openBlock(),u.createBlock(F._sfc_main$3,{key:1,theme:t.buttonTheme,label:t.label,onClick:l,ref:"dsgDropdownButtonTriggerEl","icon-before":t.iconBefore,size:t.size,"icon-after":"chevron-down",class:u.normalizeClass({"dropdown-active":r.value})},null,8,["theme","label","icon-before","size","class"])):t.type==="icon"?(u.openBlock(),u.createBlock(F._sfc_main$3,{key:2,"icon-before":t.icon,size:"sm",theme:t.buttonTheme,class:u.normalizeClass(["dsg-dropdown--trigger-button",{"dropdown-active":r.value}]),onClick:c},null,8,["icon-before","theme","class"])):u.createCommentVNode("",!0)])])]),_:3},16,["placement","strategy","shown","boundary","container","skidding","distance"])],2))}}),nu={class:"dsg-input--label-wrapper block"},iu=["onMousedown"],au=["textContent"],ou={class:"option-icon-wrapper"},su=["textContent"],lu={key:0,class:"dsg-input-select--error-wrapper"},uu=u.defineComponent({__name:"DsgInputSelect",props:u.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},useTeleport:{type:Boolean,default:!1},wrapContent:{type:Boolean,default:!1},contentWrapperClass:{default:""},selectLabel:{default:""},selectedLabel:{default:""},errors:{default:()=>[]},scrollBind:{default:()=>document.body},size:{default:"md"}},{modelValue:{},modelModifiers:{},single:{},singleModifiers:{}}),emits:u.mergeModels(["update:modelValue","update:model-value","search-change","select","open","close","remove","tag"],["update:modelValue","update:single"]),setup(t,{expose:e,emit:r}){const n=u.useModel(t,"modelValue"),i=u.useModel(t,"single"),a=u.ref(t.options),o=u.useTemplateRef("multiselectEl"),s=u.ref(!1),l=u.ref([]);u.computed(()=>l.value.length>0);const c=u.computed(()=>[...Array.isArray(t.errors)?t.errors:[t.errors],...l.value].filter((R,M,P)=>M===P.indexOf(R))),f=u.computed(()=>{const C=Array.isArray(t.contentWrapperClass)?t.contentWrapperClass:[t.contentWrapperClass],R=t.wrapContent?"dsg-input-select--content-wrapper--wrap":"dsg-input-select--content-wrapper--no-wrap";return[...C,"dsg-input-select--content-wrapper",R].join(" ")}),d=u.computed(()=>["dsg-input-select",`dsg-input-select--${t.size}`,`dsg-input-select--${t.strategy}`,`dsg-input-select--${c.value.length>0?"has-errors":"no-errors"}`,`dsg-input-select--${t.wrapContent?"wrap-content":"no-wrap-content"}`].join(" ").replace(/\s+/g," ").trim()),v=()=>{t.useTeleport||y()},h=C=>{t.useTeleport||y()};u.watchEffect(()=>{}),u.watch(()=>t.options,C=>{Array.isArray(C)?a.value=C:console.warn("Options should be an array.")});const p=u.ref(null);u.watch(()=>t.scrollBind,async C=>{await u.nextTick(),p.value&&typeof p.value.removeEventListener=="function"&&p.value.removeEventListener("scroll",h);const R=P=>{const X=window.getComputedStyle(P),V=["auto","scroll","overlay"].includes(X.overflow)||["auto","scroll","overlay"].includes(X.overflowY)||["auto","scroll","overlay"].includes(X.overflowX),G=P.scrollHeight>P.clientHeight||P.scrollWidth>P.clientWidth;return V&&G};let M=null;C?M=R(C)?C:window:M=window,M&&typeof M.addEventListener=="function"?(M.addEventListener("scroll",h),p.value=M):p.value=null},{immediate:!0});const g=r,y=()=>{if(o.value)if(s.value===!0){const C=o.value.$el.getBoundingClientRect(),R=o.value.$el.offsetHeight,M=window.innerHeight;u.nextTick(()=>{const P=o.value.$el.querySelector(".multiselect__content-wrapper");P.style.display="block";const X=P.offsetHeight;if(t.strategy==="fixed"){P.style.left=C.left+"px",P.style.right="auto",P.style.top="auto",P.style.bottom="auto";const V=C.width,G=window.innerWidth-C.left,ze=V>G?Math.min(300,G-16):V;P.style.width=`${ze}px`;const wt=M-C.bottom,$t=C.top,Ht=X+8;(wt<Ht&&$t>wt?"top":"bottom")==="top"?P.style.bottom=`${M-C.top+4}px`:P.style.top=`${C.bottom+4}px`;let vr=!1;if(p.value===window)vr=C.top<M&&C.bottom>0&&C.left<window.innerWidth&&C.right>0;else if(p.value){const pr=p.value.getBoundingClientRect();vr=C.top<pr.bottom&&C.bottom>pr.top&&C.left<pr.right&&C.right>pr.left}else vr=C.top<M&&C.bottom>0&&C.left<window.innerWidth&&C.right>0;if(!vr){P.style.display="none";return}P.style.display="block"}else P.style.left="0",P.style.right="auto",P.style.width="auto",P.style.maxWidth=t.contentMaxWidth,(C.bottom+X+R+2>M?"top":"bottom")==="top"?P.style.bottom=`${R+4}px`:P.style.top=`${R+4}px`})}else{const C=o.value.$refs.list;C&&(C.style.display="none",C.style.top="auto",C.style.bottom="auto",C.style.left="auto",C.style.right="auto")}},w=C=>{s.value=!0,t.useTeleport||y(),g("open",C)},m=(C,R)=>{s.value=!1,t.useTeleport||y(),g("close",C,R)},E=F.useDebounceFn(C=>{t.getUrl&&C.length>=2&&F.axios.get(t.getUrl,{params:{term:C,...t.extraParams}}).then(R=>{a.value=R.data}),g("search-change",C)},300),_=(C,R=!0)=>{if(l.value=[],t.allowEmpty===!1&&(C==null||Array.isArray(C)&&C.length===0)&&l.value.push(`${t.label} is required.`),R===!0)try{I(C),g("update:modelValue",C),g("update:model-value",C)}catch(M){console.log(M)}},I=C=>{C?i.value=C[t.trackBy]||C:i.value=null};return u.onMounted(()=>{window.addEventListener("resize",v),t.getUrl&&t.options.length===0&&t.fetchOnLoad&&F.axios.get(t.getUrl).then(C=>{a.value=C.data}).catch(C=>{console.error("Error fetching options:",C)}),t.validateOnLoad&&_(n.value,!1)}),u.onUnmounted(()=>{window.removeEventListener("resize",v),p.value&&typeof p.value.removeEventListener=="function"&&p.value.removeEventListener("scroll",h)}),e({getInstance:()=>o.value}),(C,R)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(d.value),ref:"dsgInputSelectEl"},[u.createElementVNode("div",nu,[t.label?(u.openBlock(),u.createBlock(Hi._sfc_main,{key:0,label:t.label,size:"sm"},null,8,["label"])):u.createCommentVNode("",!0)]),u.createVNode(u.unref(Fn),u.mergeProps({ref:"multiselectEl",modelValue:n.value,"onUpdate:modelValue":[R[0]||(R[0]=M=>n.value=M),R[3]||(R[3]=M=>_(M,!0))],options:a.value,multiple:t.multiple,onSearchChange:u.unref(E),onOpen:R[1]||(R[1]=M=>w(M)),onClose:R[2]||(R[2]=(M,P)=>m(M,P)),onRemove:R[4]||(R[4]=(M,P)=>g("remove",M,P)),onTag:R[5]||(R[5]=(M,P)=>g("tag",M,P)),placeholder:t.placeholder,label:t.itemLabel,"track-by":t.trackBy,"close-on-select":t.closeOnSelect,"show-labels":t.showLabels,disabled:t.disabled,"allow-empty":t.allowEmpty,"select-label":t.selectLabel,"preserve-search":!0,"selected-label":t.selectedLabel,"use-teleport":t.useTeleport,class:["dsg-input--multiselect",{"dsg-input--multiselect--has-errors":t.errors&&t.errors.length,"dsg-input--multiselect--disabled":t.disabled}],"content-wrapper-class":f.value},C.$attrs),{selection:u.withCtx(()=>[t.icon?(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:t.icon,size:"md",class:"dsg-untitled-icon text-gray-500 transition-all duration-200 ease-in-out inline-block mr-2"},null,8,["icon"])):u.createCommentVNode("",!0)]),caret:u.withCtx(({toggle:M})=>[u.createElementVNode("div",{onMousedown:u.withModifiers(P=>M(),["prevent","stop"]),class:"multiselect__select"},[u.createVNode(F._sfc_main,{icon:"chevron-down"})],40,iu)]),option:u.withCtx(({option:M})=>[u.createElementVNode("span",{class:"option-label",textContent:u.toDisplayString(M[t.itemLabel])},null,8,au),u.createElementVNode("span",ou,[u.createVNode(F._sfc_main,{icon:"check",size:"sm",class:"option-icon text-brand-600"})])]),singleLabel:u.withCtx(({option:M})=>[u.renderSlot(C.$slots,"singleLabel",{option:M},()=>[u.createElementVNode("span",{textContent:u.toDisplayString(M?.[t.itemLabel])},null,8,su)])]),_:3},16,["modelValue","options","multiple","onSearchChange","placeholder","label","track-by","close-on-select","show-labels","disabled","allow-empty","select-label","selected-label","use-teleport","content-wrapper-class","class"]),c.value&&c.value.length?(u.openBlock(),u.createElementBlock("div",lu,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value,(M,P)=>(u.openBlock(),u.createElementBlock("span",{class:"dsg-input--error",key:P},u.toDisplayString(M),1))),128))])):u.createCommentVNode("",!0)],2))}}),cu=["name"],fu=["selected"],du=["value","selected"],hu=u.defineComponent({__name:"DsgInputDropdown",props:u.mergeModels({name:{default:""},placeholder:{default:""},classes:{default:""},options:{default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=u.useModel(t,"modelValue");return(r,n)=>u.withDirectives((u.openBlock(),u.createElementBlock("select",{class:u.normalizeClass(["dsg-input-dropdown",t.classes]),name:t.name,"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i)},[t.placeholder?(u.openBlock(),u.createElementBlock("option",{key:0,value:"",disabled:"",selected:e.value===""},u.toDisplayString(t.placeholder),9,fu)):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.options,(i,a)=>(u.openBlock(),u.createElementBlock("option",{key:a,value:i.value,selected:e.value===i.value},u.toDisplayString(i.label),9,du))),128))],10,cu)),[[u.vModelSelect,e.value]])}}),vu=["href","title","target"],pu={key:0,class:"dsg-link--label"},gu=u.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)=>(u.openBlock(),u.createElementBlock("a",{href:t.href,title:"Link: "+t.label,target:t.uriTarget,class:u.normalizeClass(u.unref(r)),onClick:i},[u.renderSlot(a.$slots,"dsg-link-content",{},()=>[t.label?(u.openBlock(),u.createElementBlock("span",pu,u.toDisplayString(t.label),1)):u.createCommentVNode("",!0)])],10,vu))}}),xu={key:1,class:"dsg-modal__header-text"},yu={key:0,class:"dsg-modal__header-title"},mu={key:1,class:"dsg-modal__header-description"},wu={key:1,class:"dsg-modal__body"},la=u.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=u.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")},c=()=>{n("primary-button-clicked")};return e({open:a,close:o,secondaryButtonClicked:l,primaryButtonClicked:c}),(f,d)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["dsg-modal",`dsg-modal--${i.value?"open":"closed"}`])},[t.hasBackground?(u.openBlock(),u.createElementBlock("div",{key:0,class:"dsg-modal__background",onDblclick:s},null,32)):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(["dsg-modal__wrapper",t.wrapperClasses]),style:u.normalizeStyle({width:t.width})},[t.hasClosedButton?(u.openBlock(),u.createBlock(F._sfc_main$3,{key:0,theme:"gray-tertiary",iconBefore:"x",size:"lg",class:u.normalizeClass(["dsg-modal__close-button",`dsg-modal__close-button--${t.type}`]),onClick:o},null,8,["class"])):u.createCommentVNode("",!0),u.renderSlot(f.$slots,"dsg-modal__header",{},()=>[u.createElementVNode("div",{class:u.normalizeClass(["dsg-modal__header",[`dsg-modal__header--${t.type}`,`${f.$slots.default?"dsg-modal__header--with-body":""}`].join(" ")])},[t.miscIcon?(u.openBlock(),u.createBlock(It,u.normalizeProps(u.mergeProps({key:0},t.miscIcon)),null,16)):u.createCommentVNode("",!0),t.title||t.description?(u.openBlock(),u.createElementBlock("div",xu,[t.title?(u.openBlock(),u.createElementBlock("h3",yu,u.toDisplayString(t.title),1)):u.createCommentVNode("",!0),t.description?(u.openBlock(),u.createElementBlock("p",mu,u.toDisplayString(t.description),1)):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)],2)]),f.$slots.default?(u.openBlock(),u.createElementBlock("div",wu,[u.renderSlot(f.$slots,"default")])):u.createCommentVNode("",!0),u.renderSlot(f.$slots,"dsg-modal__footer",{},()=>[u.createElementVNode("div",{class:u.normalizeClass(["dsg-modal__footer",`dsg-modal__footer--${t.footerType}`])},[t.secondaryButton?(u.openBlock(),u.createBlock(F._sfc_main$3,u.mergeProps({key:0},t.secondaryButton,{onButtonClicked:l,classes:"dsg-modal__secondary-button"}),null,16)):u.createCommentVNode("",!0),t.primaryButton?(u.openBlock(),u.createBlock(F._sfc_main$3,u.mergeProps({key:1},t.primaryButton,{onButtonClicked:c,classes:"dsg-dsg-modal__primary-button"}),null,16)):u.createCommentVNode("",!0)],2)])],6)],2))}}),Eu={class:"dsg-tag--before"},Au={class:"dsg-tag--label"},Cu={class:"dsg-tag--after"},_u={key:0,class:"dsg-tag--count"},bu=u.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 F.DsgPropSyntaxWarning("DsgTag: 'hasClose' and 'tagCount' props are mutually exclusive. Please use only one of them."),t.avatarUri&&t.dotHex&&new F.DsgPropSyntaxWarning("DsgTag: 'avatarUri' and 'dotHex' props are mutually exclusive. Please use only one of them.");const a=r,o=u.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,y)=>{a("before-checked",g,y)},c=g=>{a("after-checked",g)},f=u.ref(t.tagCount),d=g=>{f.value=g},v=u.ref(t.value);return e({setTagCount:d,setValue:g=>{v.value=g},getValue:()=>v.value}),(g,y)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n)),ref:"dsgTag"},[u.createElementVNode("div",Eu,[t.hasCheckbox?(u.openBlock(),u.createBlock(F._sfc_main$2,{key:0,class:"dsg-tag--checkbox",size:i(),"no-focus":!0,onBeforeChecked:l,onAfterChecked:c},null,8,["size"])):u.createCommentVNode("",!0),t.avatarUri?(u.openBlock(),u.createBlock(or,{key:1,"profile-uri":t.avatarUri,size:"xxs","no-focus":!0,class:"dsg-tag--avatar"},null,8,["profile-uri"])):u.createCommentVNode("",!0),t.dotHex?(u.openBlock(),u.createElementBlock("span",{key:2,class:"dsg-tag--dot",style:u.normalizeStyle({backgroundColor:t.dotHex})},null,4)):u.createCommentVNode("",!0)]),u.renderSlot(g.$slots,"dsg-tag--label",{},()=>[u.createElementVNode("span",Au,u.toDisplayString(t.label),1)]),u.createElementVNode("div",Cu,[f.value&&f.value>0?(u.openBlock(),u.createElementBlock("div",_u,u.toDisplayString(f.value),1)):u.createCommentVNode("",!0),t.hasClose?(u.openBlock(),u.createBlock(F._sfc_main,{key:1,icon:"x-close",class:"dsg-tag--close",onClick:s})):u.createCommentVNode("",!0)])],2))}}),Su={class:"dsg-toggle--element"},Iu=["checked","disabled"],Ou={key:0,class:"dsg-toggle--label-wrapper"},Tu=["innerHTML"],Nu=["innerHTML"],Du=u.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=u.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=u.useTemplateRef("toggleCheckbox"),s=()=>{o.value&&o.value.focus(),t.disabled||a()},l=r;return e({set:f=>{i.value=f}}),(f,d)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n)),onClick:s},[u.createElementVNode("label",Su,[u.createElementVNode("input",{type:"checkbox",class:"dsg-toggle--checkbox",checked:i.value,onChange:a,title:"checkbox",ref:"toggleCheckbox",disabled:t.disabled},null,40,Iu),d[0]||(d[0]=u.createElementVNode("span",{class:"dsg-toggle--slider"},null,-1))]),t.label.length?(u.openBlock(),u.createElementBlock("div",Ou,[u.renderSlot(f.$slots,"dsg-toggle--label",{},()=>[u.createElementVNode("h3",{class:"dsg-toggle--label",innerHTML:t.label},null,8,Tu)]),t.label.length&&t.subText.length?u.renderSlot(f.$slots,"dsg-toggle--subtext",{key:0},()=>[u.createElementVNode("p",{class:"dsg-toggle--subtext",innerHTML:t.subText},null,8,Nu)]):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)],2))}}),Bu={class:"dsg-progress"},Ru={class:"dsg-progress--inner"},Pu={key:0,class:"text-sm text-gray-700 min-w-[60px] text-right"},ku={key:0},Mu={key:1},Lu={key:2},Fu=u.defineComponent({__name:"DsgProgress",props:{value:{},max:{},showText:{},textSuffix:{}},setup(t){const e=t,r=u.computed(()=>{const n=e.value/e.max*100;return isNaN(n)?0:Math.min(Math.max(n,0),100)});return(n,i)=>(u.openBlock(),u.createElementBlock("div",Bu,[u.createElementVNode("div",Ru,[u.createElementVNode("div",{class:"dsg-progress--inner--progress",style:u.normalizeStyle({width:r.value+"%"})},null,4)]),t.showText!=="none"?(u.openBlock(),u.createElementBlock("div",Pu,[t.showText==="number"?(u.openBlock(),u.createElementBlock("span",ku,u.toDisplayString(t.value)+"/"+u.toDisplayString(t.max),1)):t.showText==="percentage"?(u.openBlock(),u.createElementBlock("span",Mu,u.toDisplayString(r.value.toFixed(2))+"%",1)):u.createCommentVNode("",!0),t.textSuffix?(u.openBlock(),u.createElementBlock("span",Lu," "+u.toDisplayString(t.textSuffix),1)):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)]))}});function Vu(t,e){var r=Object.setPrototypeOf;r?r(t,e):t.__proto__=e}function Uu(t,e){e===void 0&&(e=t.constructor);var r=Error.captureStackTrace;r&&r(t,e)}var $u=(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)}})(),Hu=(function(t){$u(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}),Vu(a,i.prototype),Uu(a),a}return e})(Error),Gu=(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)}})(),Ie=(function(t){Gu(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})(Hu),zu=(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)}})(),Ve=(function(t){zu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArgumentException",e})(Ie),Wu=(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)}})(),U=(function(t){Wu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e})(Ie),Xu=(function(){function t(e){if(this.binarizer=e,e===null)throw new U("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})(),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)}})(),we=(function(t){ju(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e})(Ie),Ku=(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})(),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)}})(),Gn=(function(t){Yu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e})(Ie),qu=(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)}})(),gi=(function(t){qu(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})(Gn),Zu=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.")},Be=(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 U("fromIndex("+r+") > toIndex("+n+")");if(r<0)throw new gi(r);if(n>e)throw new gi(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=Zu(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})(),z=(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+z.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+z.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 U;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,c=(2<<l)-(1<<s);a[o]|=c}}},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 U;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,c=s<a?31:r&31,f=(2<<c)-(1<<l)&4294967295;if((o[s]&f)!==(n?f: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 U("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 U("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 c=e[a];l|=c<<32-s,e[a-1]=l,l=c>>>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&&Be.equals(this.bits,r.bits)},t.prototype.hashCode=function(){return 31*this.size+Be.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})(),_n;(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"})(_n||(_n={}));const le=_n;var Qu=(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)}})(),k=(function(t){Qu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getFormatInstance=function(){return new e},e.kind="FormatException",e})(Ie),Ju=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 he=(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,c=0,f=l.length;c!==f;c++){var d=l[c];t.VALUES_TO_ECI.set(d,this)}try{for(var v=Ju(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 k("incorect value");var r=t.VALUES_TO_ECI.get(e);if(r===void 0)throw new k("incorect value");return r},t.getCharacterSetECIByName=function(e){var r=t.NAME_TO_ECI.get(e);if(r===void 0)throw new k("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})(),ec=(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)}})(),Br=(function(t){ec(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e})(Ie),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 he?e:he.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(he.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new Br("Encoding "+this.encodingName(r)+" not supported by fallback.")},t.isDecodeFallbackSupported=function(e){return e.equals(he.UTF8)||e.equals(he.ISO8859_1)||e.equals(he.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,c=0,f=0,d=0,v=0,h=0,p=0,g=0,y=0,w=0,m=e.length>3&&e[0]===239&&e[1]===187&&e[2]===191,E=0;E<n&&(i||a||o);E++){var _=e[E]&255;o&&(s>0?(_&128)===0?o=!1:s--:(_&128)!==0&&((_&64)===0?o=!1:(s++,(_&32)===0?l++:(s++,(_&16)===0?c++:(s++,(_&8)===0?f++:o=!1))))),i&&(_>127&&_<160?i=!1:_>159&&(_<192||_===215||_===247)&&w++),a&&(d>0?_<64||_===127||_>252?a=!1:d--:_===128||_===160||_>239?a=!1:_>160&&_<224?(v++,p=0,h++,h>g&&(g=h)):_>127?(d++,h=0,p++,p>y&&(y=p)):(h=0,p=0))}return o&&s>0&&(o=!1),a&&d>0&&(a=!1),o&&(m||l+c+f>0)?t.UTF8:a&&(t.ASSUME_SHIFT_JIS||g>=3||y>=3)?t.SHIFT_JIS:i&&a?g===2&&v===2||w*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,c,f,d,v){if(s==="%%")return"%";if(r[++i]!==void 0){s=f?parseInt(f.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(c),y=c&&c[0]+""=="0"?"0":" ";p.length<g;)p=l!==void 0?p+y:y+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=he.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=he.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=he.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t})(),ee=(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 U("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 U("stringRepresentation cannot be null");for(var i=new Array(e.length),a=0,o=0,s=-1,l=0,c=0;c<e.length;)if(e.charAt(c)===`
|
|
12
|
+
`,ro=["href","title"],no={class:"dsg-avatar--image-wrapper",tabindex:"0",ref:"avatarImageWrapperEl"},io=["src","alt"],ao={key:1,class:"dsg-avatar--initials"},oo={class:"dsg-avatar--status"},so={key:0,class:"dsg-avatar--activity"},lo=["innerHTML"],uo={key:2,class:"dsg-avatar--logo"},co=["src","alt"],fo={key:0,class:"dsg-avatar--info"},ho={class:"dsg-avatar--title"},vo={class:"dsg-avatar--subtext"},or=u.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 F.DsgPropSyntaxWarning("DsgAvatar: The 'profile-photo' theme only supports the 'sm', 'md', and 'lg' sizes."),(t.fullName||t.title||t.subText)&&new F.DsgWarning("DsgAvatar: The 'profile-photo' theme will not display the 'title' or 'subText' props.")),t.theme==="logo"&&!t.companyLogoUri&&new F.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 F.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 F.DsgPropSyntaxWarning("DsgAvatar: The 'tile' theme requires either 'title' or 'fullName' prop."),t.size==="xxs"&&(t.title?.length||t.subText?.length)&&new F.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=u.ref(!1),l=v=>{o("before-change-status",s.value,v),s.value=v,o("after-change-status",s.value)},c=u.useTemplateRef("avatarImageWrapperEl"),f=v=>{t.preventDefault||(o("avatar-clicked",v),c.value&&!t.uri&&c.value.focus())};return e({setUserActiveStatus:l,toggleFocus:v=>{c.value&&(v?c.value.focus():c.value.blur())}}),(v,h)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n))},[u.createElementVNode("a",{class:"dsg-avatar--link",href:t.uri,title:a(),target:"_blank",ref:"avatarLink",onClick:f},[u.createElementVNode("div",no,[u.renderSlot(v.$slots,"dsg-avatar--background",{},()=>[t.profileUri?(u.openBlock(),u.createElementBlock("img",{key:0,class:"dsg-avatar--profile-image",src:t.profileUri,alt:a()},null,8,io)):u.createCommentVNode("",!0),!t.profileUri&&t.fullName?(u.openBlock(),u.createElementBlock("span",ao,u.toDisplayString(i(t.fullName)),1)):u.createCommentVNode("",!0),!t.profileUri&&!t.fullName?(u.openBlock(),u.createBlock(F._sfc_main,{key:2,class:"dsg-avatar--user-icon",icon:"user-01",color:u.unref(Ka.ColoursConfig).gray[600],size:t.size},null,8,["color","size"])):u.createCommentVNode("",!0)]),["tile"].indexOf(t.theme)===-1?u.renderSlot(v.$slots,"dsg-avatar--status",{key:0},()=>[u.createElementVNode("div",oo,[t.theme==="activity"&&t.isOnline?(u.openBlock(),u.createElementBlock("span",so)):u.createCommentVNode("",!0),["verified","profile-photo-verified"].indexOf(t.theme)!==-1?(u.openBlock(),u.createElementBlock("span",{key:1,class:"dsg-avatar--verified",innerHTML:u.unref(to)},null,8,lo)):u.createCommentVNode("",!0),t.theme==="logo"?(u.openBlock(),u.createElementBlock("span",uo,[u.createElementVNode("img",{src:t.companyLogoUri,alt:a(),class:"dsg-avatar--company-logo"},null,8,co)])):u.createCommentVNode("",!0)])]):u.createCommentVNode("",!0)],512),t.title?.length||t.theme==="tile"&&(t.title?.length||t.fullName)?(u.openBlock(),u.createElementBlock("div",fo,[t.title?.length||t.theme==="tile"&&(t.title?.length||t.fullName)?u.renderSlot(v.$slots,"dsg-avatar--title",{key:0},()=>[u.createElementVNode("h3",ho,u.toDisplayString(t.title?.length?t.title:t.fullName),1)]):u.createCommentVNode("",!0),t.subText?.length?u.renderSlot(v.$slots,"dsg-avatar--subtext",{key:1},()=>[u.createElementVNode("p",vo,u.toDisplayString(t.subText),1)]):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)],8,ro)],2))}}),fr={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Dt={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},Se={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},po={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},go={dangerouslyHTMLString:!1,multiple:!0,position:fr.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},xo={rtl:!1,newestOnTop:!1,toastClassName:""},Gi={...go,...xo};Se.DEFAULT;var q=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(q||{}),pn=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(pn||{});const yo={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},mo={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},wo={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},Eo={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},qn="Toastify--animate Toastify__none-enter";function zi(t,e=!1){var r;let n=yo;if(!t||typeof t=="string")switch(t){case"flip":n=Eo;break;case"zoom":n=wo;break;case"slide":n=mo;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 Ao(t){return t.containerId||String(t.position)}const Ur="will-unmount";function Co(t=fr.TOP_RIGHT){return!!document.querySelector(`.${q.CSS_NAMESPACE}__toast-container--${t}`)}function _o(t=fr.TOP_RIGHT){return`${q.CSS_NAMESPACE}__toast-container--${t}`}function bo(t,e,r=!1){const n=[`${q.CSS_NAMESPACE}__toast-container`,`${q.CSS_NAMESPACE}__toast-container--${t}`,r?`${q.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return Nt(e)?e({position:t,rtl:r,defaultClassName:n}):`${n} ${e||""}`}function So(t){var e;const{position:r,containerClassName:n,rtl:i=!1,style:a={}}=t,o=q.CSS_NAMESPACE,s=_o(r),l=document.querySelector(`.${o}`),c=document.querySelector(`.${s}`),f=!!c&&!((e=c.className)!=null&&e.includes(Ur)),d=l||document.createElement("div"),v=document.createElement("div");v.className=bo(r,n,i),v.dataset.testid=`${q.CSS_NAMESPACE}__toast-container--${r}`,v.id=Ao(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=q.CSS_NAMESPACE,document.body.appendChild(d)),f||d.appendChild(v),v}function gn(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",gn,!1);try{sr[i].unmount(),(n=document.getElementById(i))==null||n.remove(),delete sr[i],delete ye[i]}catch{}}const sr=u.reactive({});function Io(t,e){const r=document.getElementById(String(e));r&&(sr[r.id]=t)}function xn(t,e=!0){const r=String(t);if(!sr[r])return;const n=document.getElementById(r);n&&n.classList.add(Ur),e?(To(t),n&&n.addEventListener("animationend",gn,!1)):gn(r),qe.items=qe.items.filter(i=>i.containerId!==t)}function Oo(t){for(const e in sr)xn(e,t);qe.items=[]}function Wi(t,e){const r=document.getElementById(t.toastId);if(r){let n=t;n={...n,...zi(n.transition)};const i=n.appendPosition?`${n.exit}--${n.position}`:n.exit;r.className+=` ${i}`,e&&e(r)}}function To(t){for(const e in ye)if(e===t)for(const r of ye[e]||[])Wi(r)}function No(t){const e=Bt().find(r=>r.toastId===t);return e?.containerId}function Ln(t){return document.getElementById(t)}function Do(t){const e=Ln(t.containerId);return e&&e.classList.contains(Ur)}function Zn(t){var e;const r=u.isVNode(t.content)?u.toRaw(t.content.props):null;return r??u.toRaw((e=t.data)!=null?e:{})}function Bo(t){return t?qe.items.filter(e=>e.containerId===t).length>0:qe.items.length>0}function Ro(){if(qe.items.length>0){const t=qe.items.shift();Sr(t?.toastContent,t?.toastProps)}}const ye=u.reactive({}),qe=u.reactive({items:[]});function Bt(){const t=u.toRaw(ye);return Object.values(t).reduce((e,r)=>[...e,...r],[])}function Po(t){return Bt().find(e=>e.toastId===t)}function Sr(t,e={}){if(Do(e)){const r=Ln(e.containerId);r&&r.addEventListener("animationend",yn.bind(null,t,e),!1)}else yn(t,e)}function yn(t,e={}){const r=Ln(e.containerId);r&&r.removeEventListener("animationend",yn.bind(null,t,e),!1);const n=ye[e.containerId]||[],i=n.length>0;if(!i&&!Co(e.position)){const a=So(e),o=u.createApp(es,e);e.useHandler&&e.useHandler(o),o.mount(a),Io(o,a.id)}i&&!e.updateId&&(e.position=n[0].position),u.nextTick(()=>{e.updateId?Pe.update(e):Pe.add(t,e)})}const Pe={add(t,e){const{containerId:r=""}=e;r&&(ye[r]=ye[r]||[],ye[r].find(n=>n.toastId===e.toastId)||setTimeout(()=>{var n,i;e.newestOnTop?(n=ye[r])==null||n.unshift(e):(i=ye[r])==null||i.push(e),e.onOpen&&e.onOpen(Zn(e))},e.delay||0))},remove(t){if(t){const e=No(t);if(e){const r=ye[e];let n=r.find(i=>i.toastId===t);ye[e]=r.filter(i=>i.toastId!==t),!ye[e].length&&!Bo(e)&&xn(e,!1),Ro(),u.nextTick(()=>{n!=null&&n.onClose&&(n.onClose(Zn(n)),n=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){ye[e]=ye[e]||[];const r=ye[e].find(a=>a.toastId===t.toastId),n=r?.position!==t.position||r?.transition!==t.transition,i={...t,disabledEnterTransition:!n,updateId:void 0};Pe.dismissForce(t?.toastId),setTimeout(()=>{te(i.content,i)},t.delay||0)}},clear(t,e=!0){t?xn(t,e):Oo(e)},dismissCallback(t){var e;const r=(e=t.currentTarget)==null?void 0:e.id,n=document.getElementById(r);n&&(n.removeEventListener("animationend",Pe.dismissCallback,!1),setTimeout(()=>{Pe.remove(r)}))},dismiss(t){if(t){const e=Bt();for(const r of e)if(r.toastId===t){Wi(r,n=>{n.addEventListener("animationend",Pe.dismissCallback,!1)});break}}},dismissForce(t){if(t){const e=Bt();for(const r of e)if(r.toastId===t){const n=document.getElementById(t);n&&(n.remove(),n.removeEventListener("animationend",Pe.dismissCallback,!1),Pe.remove(t));break}}}},ko=u.reactive({useHandler:void 0}),Xi=u.reactive({}),kr=u.reactive({});function ji(){return Math.random().toString(36).substring(2,9)}function Mo(t){return typeof t=="number"&&!isNaN(t)}function mn(t){return typeof t=="string"}function Nt(t){return typeof t=="function"}function $r(...t){return u.mergeProps(...t)}function Ir(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof t?.type=="object")}function Lo(t={}){Xi[`${q.CSS_NAMESPACE}-default-options`]=t}function Fo(){return Xi[`${q.CSS_NAMESPACE}-default-options`]||Gi}function Vo(){const t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;return document.documentElement.classList.contains("dark")||t?"dark":"light"}var Or=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(Or||{});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:fr.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:Dt.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:Se.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}},Uo={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:Se.DEFAULT},theme:{type:String,required:!1,default:Dt.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}},$o=u.defineComponent({name:"ProgressBar",props:Uo,setup(t,{attrs:e}){const r=u.ref(),n=u.computed(()=>t.hide?"true":"false"),i=u.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=u.computed(()=>[`${q.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${q.CSS_NAMESPACE}__progress-bar--controlled`:`${q.CSS_NAMESPACE}__progress-bar--animated`,`${q.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${q.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${q.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),o=u.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())},c=u.computed(()=>t.controlledProgress?null:l),f=u.computed(()=>t.controlledProgress?l:null);return u.watchEffect(()=>{r.value&&(s(),r.value.onanimationend=c.value,r.value.ontransitionend=f.value)}),()=>u.createVNode("div",{ref:r,role:"progressbar","aria-hidden":n.value,"aria-label":"notification timer",class:o.value,style:i.value},null)}}),Ho=u.defineComponent({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:Dt.AUTO},type:{type:String,required:!1,default:Dt.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>u.createVNode("button",{class:`${q.CSS_NAMESPACE}__close-button ${q.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[u.createVNode("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[u.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)])])}}),Hr=({theme:t,type:e,path:r,...n})=>u.createVNode("svg",u.mergeProps({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},n),[u.createVNode("path",{d:r},null)]);function Go(t){return u.createVNode(Hr,u.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 zo(t){return u.createVNode(Hr,u.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 Wo(t){return u.createVNode(Hr,u.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 Xo(t){return u.createVNode(Hr,u.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 jo(){return u.createVNode("div",{class:`${q.CSS_NAMESPACE}__spinner`},null)}const Tr={info:zo,warning:Go,success:Wo,error:Xo,spinner:jo},Ko=t=>t in Tr;function Yo({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 Tr.spinner();if(n!==!1){if(Ir(n))i=u.toRaw(n);else if(Nt(n)){const s=n;o.type=a?"loading":e,i=s(o),i=!i&&a?Tr.spinner():i}else u.isVNode(n)?i=u.cloneVNode(n,o):mn(n)||Mo(n)?i=n:Ko(e)&&(i=Tr[e](o));return i}}const qo=()=>{};function Zo(t,e,r=q.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 Qo(t){const e=u.ref(!1),r=u.ref(!1),n=u.ref(!1),i=u.ref(Or.Enter),a=u.reactive({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||q.COLLAPSE_DURATION}),o=a.done||qo,s=u.computed(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=u.computed(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),c=u.computed(()=>t.pauseOnHover?{onMouseenter:y,onMouseleave:g}:{});function f(){const m=s.value.split(" ");v().addEventListener(pn.ENTRANCE_ANIMATION_END,g,{once:!0});const E=I=>{const B=v();I.target===B&&(B.dispatchEvent(new Event(pn.ENTRANCE_ANIMATION_END)),B.removeEventListener("animationend",E),B.removeEventListener("animationcancel",E),i.value===Or.Enter&&I.type!=="animationcancel"&&B.classList.remove(...m))},_=()=>{const I=v();I.classList.add(...m),I.addEventListener("animationend",E),I.addEventListener("animationcancel",E)};t.pauseOnFocusLoss&&h(),_()}function d(){if(!v())return;const m=()=>{const _=v();_.removeEventListener("animationend",m),a.collapse?Zo(_,o,a.collapseDuration):o()},E=()=>{const _=v();i.value=Or.Exit,_&&(_.className+=` ${l.value}`,_.addEventListener("animationend",m))};r.value||(n.value?m():setTimeout(E))}function v(){return t.toastRef.value}function h(){document.hasFocus()||y(),window.addEventListener("focus",g),window.addEventListener("blur",y)}function p(){window.removeEventListener("focus",g),window.removeEventListener("blur",y)}function g(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function y(){e.value=!1}function w(m){m&&(m.stopPropagation(),m.preventDefault()),r.value=!1}return u.watchEffect(d),u.watchEffect(()=>{const m=Bt();r.value=m.findIndex(E=>E.toastId===a.toastId)>-1}),u.watchEffect(()=>{t.isLoading!==void 0&&(t.loading.value?y():g())}),u.onMounted(f),u.onUnmounted(()=>{t.pauseOnFocusLoss&&p()}),{isIn:r,isRunning:e,hideToast:w,eventHandlers:c}}const Jo=u.defineComponent({name:"ToastItem",inheritAttrs:!1,props:Ki,setup(t){const e=u.ref(),r=u.computed(()=>!!t.isLoading),n=u.computed(()=>t.progress!==void 0&&t.progress!==null),i=u.computed(()=>Yo(t)),a=u.computed(()=>[`${q.CSS_NAMESPACE}__toast`,`${q.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${q.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${q.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:o,isIn:s,hideToast:l,eventHandlers:c}=Qo({toastRef:e,loading:r,done:()=>{Pe.remove(t.toastId)},...zi(t.transition,t.disabledEnterTransition),...t});return()=>u.createVNode("div",u.mergeProps({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:f=>{t.closeOnClick&&l(),t.onClick&&t.onClick(f)}},c.value),[u.createVNode("div",{role:t.role,"data-testid":"toast-body",class:`${q.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[i.value!=null&&u.createVNode("div",{"data-testid":`toast-icon-${t.type}`,class:[`${q.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${q.CSS_NAMESPACE}--animate-icon ${q.CSS_NAMESPACE}__zoom-enter`].join(" ")},[Ir(i.value)?u.h(u.toRaw(i.value),{theme:t.theme,type:t.type}):Nt(i.value)?i.value({theme:t.theme,type:t.type}):i.value]),u.createVNode("div",{"data-testid":"toast-content"},[Ir(t.content)?u.h(u.toRaw(t.content),{toastProps:u.toRaw(t),closeToast:l,data:t.data,...t.expandCustomProps?t.contentProps:{contentProps:t.contentProps||{}}}):Nt(t.content)?t.content({toastProps:u.toRaw(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?u.h("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&u.createVNode(Ho,{theme:t.theme,closeToast:f=>{f.stopPropagation(),f.preventDefault(),l()}},null),Ir(t.closeButton)?u.h(u.toRaw(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):Nt(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,u.createVNode($o,{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 Yi(){typeof window>"u"||(ir&&window.cancelAnimationFrame(ir),ir=window.requestAnimationFrame(Yi),kr.lastUrl!==window.location.href&&(kr.lastUrl=window.location.href,Pe.clear()))}const es=u.defineComponent({name:"ToastifyContainer",inheritAttrs:!1,props:Ki,setup(t){const e=u.computed(()=>t.containerId),r=u.computed(()=>ye[e.value]||[]),n=u.computed(()=>r.value.filter(i=>i.position===t.position));return u.onMounted(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(Yi)}),u.onUnmounted(()=>{typeof window<"u"&&ir&&(window.cancelAnimationFrame(ir),kr.lastUrl="")}),()=>u.createVNode(u.Fragment,null,[n.value.map(i=>{const{toastId:a=""}=i;return u.createVNode(Jo,u.mergeProps({key:a},i),null)})])}});let Kr=!1;const qi={isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1};function Zi(){const t=[];return Bt().forEach(e=>{const r=document.getElementById(e.containerId);r&&!r.classList.contains(Ur)&&t.push(e)}),t}function ts(t){const e=Zi().length,r=t??0;return r>0&&e+qe.items.length>=r}function rs(t){ts(t.limit)&&!t.updateId&&qe.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function ct(t,e,r={}){if(Kr)return;r=$r(Fo(),{type:e},u.toRaw(r)),(!r.toastId||typeof r.toastId!="string"&&typeof r.toastId!="number")&&(r.toastId=ji()),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=Vo()),rs(r),kr.lastUrl=window.location.href,r.multiple?qe.items.length?r.updateId&&Sr(t,r):Sr(t,r):(Kr=!0,te.clearAll(void 0,!1),setTimeout(()=>{Sr(t,r)},0),setTimeout(()=>{Kr=!1},390)),r.toastId}const te=(t,e)=>ct(t,Se.DEFAULT,e);te.info=(t,e)=>ct(t,Se.DEFAULT,{...e,type:Se.INFO});te.error=(t,e)=>ct(t,Se.DEFAULT,{...e,type:Se.ERROR});te.warning=(t,e)=>ct(t,Se.DEFAULT,{...e,type:Se.WARNING});te.warn=te.warning;te.success=(t,e)=>ct(t,Se.DEFAULT,{...e,type:Se.SUCCESS});te.loading=(t,e)=>ct(t,Se.DEFAULT,$r(e,qi));te.dark=(t,e)=>ct(t,Se.DEFAULT,$r(e,{theme:Dt.DARK}));te.remove=t=>{t?Pe.dismiss(t):Pe.clear()};te.clearAll=(t,e)=>{u.nextTick(()=>{Pe.clear(t,e)})};te.isActive=t=>{let e=!1;return e=Zi().findIndex(r=>r.toastId===t)>-1,e};te.update=(t,e={})=>{setTimeout(()=>{const r=Po(t);if(r){const n=u.toRaw(r),{content:i}=n,a={...n,...e,toastId:e.toastId||t,updateId:ji()},o=a.render||i;delete a.render,ct(o,a.type,a)}},0)};te.done=t=>{te.update(t,{isLoading:!1,progress:1})};te.promise=ns;function ns(t,{pending:e,error:r,success:n},i){var a,o,s;let l;const c={...i||{},autoClose:!1};e&&(l=mn(e)?te.loading(e,c):te.loading(e.render,{...c,...e}));const f={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){te.remove(l);return}const y={type:h,...f,...i,data:g},w=mn(p)?{render:p}:p;return l?te.update(l,{...y,...w,isLoading:!1}):te(w.render,{...y,...w,isLoading:!1}),g},v=Nt(t)?t():t;return v.then(h=>{d("success",n,h)}).catch(h=>{d("error",r,h)}),v}te.POSITION=fr;te.THEME=Dt;te.TYPE=Se;te.TRANSITIONS=po;const is={install(t,e={}){ko.useHandler=e.useHandler||(()=>{}),as(e)}};typeof window<"u"&&(window.Vue3Toastify=is);function as(t={}){const e=$r(Gi,t);Lo(e)}const os={class:"dsg-alert__wrapper"},ss=["innerHTML"],Qi=u.defineComponent({__name:"DsgAlertComponent",props:{contentProps:{default:()=>({title:"",message:"",type:"gray",hasCloseButton:!0,useToast:!0,timeout:!1})}},setup(t){const e=["dsg-alert","dsg-alert--"+t.contentProps.type,t.contentProps.hasCloseButton?"dsg-alert--has-close":"dsg-alert--no-close"],n=u.useAttrs().closeToast,i=u.ref(!1);let a=null;const o=()=>{t.contentProps.useToast?n():i.value=!0};return u.onMounted(()=>{t.contentProps.timeout&&t.contentProps.timeout>0&&(a=setTimeout(()=>{o()},t.contentProps.timeout))}),u.onBeforeUnmount(()=>{a&&(clearTimeout(a),a=null)}),(s,l)=>i.value?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(e)},[t.contentProps.type==="gray"?(u.openBlock(),u.createBlock(It,{key:0,icon:{icon:"info-circle"},type:"outline",theme:"gray",size:"lg"})):u.createCommentVNode("",!0),t.contentProps.type==="error"?(u.openBlock(),u.createBlock(It,{key:1,icon:{icon:"alert-circle"},type:"outline",theme:"error",size:"lg"})):u.createCommentVNode("",!0),t.contentProps.type==="warning"?(u.openBlock(),u.createBlock(It,{key:2,icon:{icon:"alert-circle"},type:"outline",theme:"warning",size:"lg"})):u.createCommentVNode("",!0),t.contentProps.type==="success"?(u.openBlock(),u.createBlock(It,{key:3,icon:{icon:"check-circle"},type:"outline",theme:"success",size:"lg"})):u.createCommentVNode("",!0),u.createElementVNode("div",os,[u.createElementVNode("p",{class:u.normalizeClass(["dsg-alert__title",{"dsg-alert__title--with-close-button":t.contentProps.hasCloseButton}])},u.toDisplayString(t.contentProps.title),3),t.contentProps.message?(u.openBlock(),u.createElementBlock("p",{key:0,innerHTML:t.contentProps.message,class:"dsg-alert__message"},null,8,ss)):u.createCommentVNode("",!0)]),t.contentProps.hasCloseButton?(u.openBlock(),u.createElementBlock("button",{key:4,onClick:o,class:"dsg-alert__close-button"},[u.createVNode(F._sfc_main,{icon:"x-close",size:"sm"})])):u.createCommentVNode("",!0)]))}}),ls=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,timeout:3e3,position:"top-right",maxWidthClass:"",...i};te(Qi,{autoClose:a.hasCloseButton?!1:a.timeout,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,timeout:a.timeout},onClick:()=>{}})}};function Yr(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function us(t){return(...e)=>!t(...e)}function cs(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function fs(t){return t.filter(e=>!e.$isLabel)}function qr(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 Qn=(...t)=>e=>t.reduce((r,n)=>n(r),e);var ds={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 Yr(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?qr(this.groupValues,this.groupLabel)(r):r,r=this.hideSelected?r.filter(us(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 Qn(this.filterGroups(e,r,this.groupValues,this.groupLabel,this.customLabel),qr(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return Qn(qr(this.groupValues,this.groupLabel),fs)(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(Yr(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return Yr(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=>cs(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}:[]})}}},hs={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}}},Fn={name:"vue-multiselect",mixins:[ds,hs],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},contentWrapperClass:{type:[String,Array,Object],default:""}},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 vs=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],ps={ref:"tags",class:"multiselect__tags"},gs={class:"multiselect__tags-wrap"},xs=["textContent"],ys=["onKeydown","onMousedown"],ms=["textContent"],ws={class:"multiselect__spinner"},Es=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],As=["id","aria-multiselectable"],Cs={key:0},_s={class:"multiselect__option"},bs=["aria-selected","id","role"],Ss=["onClick","onMouseenter","data-select","data-selected","data-deselect"],Is=["data-select","data-deselect","onMouseenter","onMousedown"],Os={class:"multiselect__option"},Ts={class:"multiselect__option"};function Ns(t,e,r,n,i,a){return u.openBlock(),u.createElementBlock("div",{tabindex:t.searchable?-1:r.tabindex,class:u.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]=u.withKeys(u.withModifiers(o=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=u.withKeys(u.withModifiers(o=>t.pointerBackward(),["self","prevent"]),["up"])),e[18]||(e[18]=u.withKeys(u.withModifiers(o=>t.addPointerElement(o),["stop","self"]),["enter","tab"]))],onKeyup:e[19]||(e[19]=u.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},[u.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[u.createElementVNode("div",{onMousedown:e[0]||(e[0]=u.withModifiers(o=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),u.renderSlot(t.$slots,"clear",{search:t.search}),u.createElementVNode("div",ps,[u.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:a.visibleValues,isOpen:t.isOpen},()=>[u.withDirectives(u.createElementVNode("div",gs,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.visibleValues,(o,s)=>u.renderSlot(t.$slots,"tag",{option:o,search:t.search,remove:t.removeElement},()=>[(u.openBlock(),u.createElementBlock("span",{class:"multiselect__tag",key:s,onMousedown:e[1]||(e[1]=u.withModifiers(()=>{},["prevent"]))},[u.createElementVNode("span",{textContent:u.toDisplayString(t.getOptionLabel(o))},null,8,xs),u.createElementVNode("i",{tabindex:"1",onKeydown:u.withKeys(u.withModifiers(l=>t.removeElement(o),["prevent"]),["enter"]),onMousedown:u.withModifiers(l=>t.removeElement(o),["prevent"]),class:"multiselect__tag-icon"},null,40,ys)],32))])),256))],512),[[u.vShow,a.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>r.limit?u.renderSlot(t.$slots,"limit",{key:0},()=>[u.createElementVNode("strong",{class:"multiselect__strong",textContent:u.toDisplayString(r.limitText(t.internalValue.length-r.limit))},null,8,ms)]):u.createCommentVNode("v-if",!0)]),u.createVNode(u.Transition,{name:"multiselect__loading"},{default:u.withCtx(()=>[u.renderSlot(t.$slots,"loading",{},()=>[u.withDirectives(u.createElementVNode("div",ws,null,512),[[u.vShow,r.loading]])])]),_:3}),t.searchable?(u.openBlock(),u.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:u.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]=u.withModifiers(o=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=u.withModifiers(o=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=u.withKeys(o=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=u.withKeys(u.withModifiers(o=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=u.withKeys(u.withModifiers(o=>t.pointerBackward(),["prevent"]),["up"])),e[8]||(e[8]=u.withKeys(u.withModifiers(o=>t.addPointerElement(o),["prevent","stop","self"]),["enter"])),e[9]||(e[9]=u.withKeys(u.withModifiers(o=>t.removeLastElement(),["stop"]),["delete"]))],class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,Es)):u.createCommentVNode("v-if",!0),a.isSingleLabelVisible?(u.openBlock(),u.createElementBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=u.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[u.renderSlot(t.$slots,"singleLabel",{option:a.singleValue},()=>[u.createTextVNode(u.toDisplayString(t.currentOptionLabel),1)])],32)):u.createCommentVNode("v-if",!0),a.isPlaceholderVisible?(u.openBlock(),u.createElementBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=u.withModifiers((...o)=>t.toggle&&t.toggle(...o),["prevent"]))},[u.renderSlot(t.$slots,"placeholder",{},()=>[u.createTextVNode(u.toDisplayString(t.placeholder),1)])],32)):u.createCommentVNode("v-if",!0)],512),(u.openBlock(),u.createBlock(u.Teleport,{to:"body",disabled:!r.useTeleport},[u.createVNode(u.Transition,{name:"multiselect"},{default:u.withCtx(()=>[t.isOpen&&i.ready?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(["multiselect__content-wrapper",r.contentWrapperClass]),onFocus:e[12]||(e[12]=(...o)=>t.activate&&t.activate(...o)),tabindex:"-1",onMousedown:e[13]||(e[13]=u.withModifiers(()=>{},["prevent"])),style:u.normalizeStyle([i.dropdownStyles,{maxHeight:t.optimizedHeight+"px"}]),ref:"list"},[u.createElementVNode("ul",{class:"multiselect__content",style:u.normalizeStyle(a.contentStyle),role:"listbox",id:"listbox-"+t.id,"aria-multiselectable":t.multiple},[u.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(u.openBlock(),u.createElementBlock("li",Cs,[u.createElementVNode("span",_s,[u.renderSlot(t.$slots,"maxElements",{},()=>[u.createTextVNode("Maximum of "+u.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):u.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(t.filteredOptions,(o,s)=>(u.openBlock(),u.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)?u.createCommentVNode("v-if",!0):(u.openBlock(),u.createElementBlock("span",{key:0,class:u.normalizeClass([t.optionHighlight(s,o),"multiselect__option"]),onClick:u.withModifiers(l=>t.select(o),["stop"]),onMouseenter:u.withModifiers(l=>t.pointerSet(s),["self"]),"data-select":o&&o.isTag?t.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[u.renderSlot(t.$slots,"option",{option:o,search:t.search,index:s},()=>[u.createElementVNode("span",null,u.toDisplayString(t.getOptionLabel(o)),1)])],42,Ss)),o&&(o.$isLabel||o.$isDisabled)?(u.openBlock(),u.createElementBlock("span",{key:1,"data-select":t.groupSelect&&a.selectGroupLabelText,"data-deselect":t.groupSelect&&a.deselectGroupLabelText,class:u.normalizeClass([t.groupHighlight(s,o),"multiselect__option"]),onMouseenter:u.withModifiers(l=>t.groupSelect&&t.pointerSet(s),["self"]),onMousedown:u.withModifiers(l=>t.selectGroup(o),["prevent"])},[u.renderSlot(t.$slots,"option",{option:o,search:t.search,index:s},()=>[u.createElementVNode("span",null,u.toDisplayString(t.getOptionLabel(o)),1)])],42,Is)):u.createCommentVNode("v-if",!0)],8,bs))),128)):u.createCommentVNode("v-if",!0),u.withDirectives(u.createElementVNode("li",null,[u.createElementVNode("span",Os,[u.renderSlot(t.$slots,"noResult",{search:t.search},()=>[e[20]||(e[20]=u.createTextVNode("No elements found. Consider changing the search query."))])])],512),[[u.vShow,r.showNoResults&&t.filteredOptions.length===0&&t.search&&!r.loading]]),u.withDirectives(u.createElementVNode("li",null,[u.createElementVNode("span",Ts,[u.renderSlot(t.$slots,"noOptions",{},()=>[e[21]||(e[21]=u.createTextVNode("List is empty."))])])],512),[[u.vShow,r.showNoOptions&&(t.options.length===0||a.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!r.loading]]),u.renderSlot(t.$slots,"afterList")],12,As)],38)):u.createCommentVNode("v-if",!0)]),_:3})],8,["disabled"]))],42,vs)}Fn.render=Ns;const Ds={class:"user-picker"},Bs={class:"user-option"},Rs=["data-initials"],Ps=["src"],ks={class:"meta"},Ms={class:"name"},Ls={key:0,class:"email"},Fs={class:"tags"},Vs=["data-initials"],Us=["src"],$s={key:0,class:"inline-block relative"},Hs={class:"placeholder"},Gs={key:0,class:"single-display"},zs=["data-initials"],Ws=["src"],Xs={key:0,class:"name"},js={class:"placeholder"},Ks=u.defineComponent({__name:"DsgIconSelect",props:{modelValue:{},options:{},endpoint:{},queryParam:{default:"q"},extraParams:{},method:{default:"GET"},minChars:{default:1},delay:{default:300},multiple:{type:Boolean,default:!1},trackBy:{default:"id"},labelKey:{default:"primaryText"},secondaryTextKey:{default:"secondaryText"},iconKey:{default:"iconUrl"},placeholder:{default:"Search..."},clearOnSelect:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},selectLabel:{default:""},selectedLabel:{default:""},hideSelectedLabel:{type:Boolean,default:!1}},emits:["update:modelValue","change","search","loaded","error"],setup(t,{emit:e}){const r=t,n=e,i=u.ref(r.options??[]),a=u.ref(!1),o=u.ref("");let s,l=null;u.watch(()=>r.options,g=>{g&&(i.value=[...g])});const c=(g,y)=>{if(g)return g[y]},f=g=>{if(!g)return"";const y=g.trim().split(/\s+/),w=y[0]?.[0]??"",m=y.length>1?y[y.length-1][0]??"":"";return(w+m).toUpperCase()};u.computed(()=>r.multiple?r.modelValue??[]:r.modelValue?[r.modelValue]:[]);const d=u.computed(()=>!!r.endpoint),v=async g=>{if(d.value&&!((g?.length??0)<r.minChars)){a.value=!0,l?.abort(),l=new AbortController;try{const y=new URL(r.endpoint);if(r.method==="GET"){y.searchParams.set(r.queryParam,g),r.extraParams&&Object.entries(r.extraParams).forEach(([E,_])=>y.searchParams.set(E,String(_)));const w=await fetch(y.toString(),{signal:l.signal});if(!w.ok)throw new Error(`Request failed: ${w.status}`);const m=await w.json();i.value=Array.isArray(m)?m:m?.items??[],n("loaded",i.value)}else{const w={[r.queryParam]:g,...r.extraParams??{}},m=await fetch(y.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(w),signal:l.signal});if(!m.ok)throw new Error(`Request failed: ${m.status}`);const E=await m.json();i.value=Array.isArray(E)?E:E?.items??[],n("loaded",i.value)}}catch(y){y?.name!=="AbortError"&&(console.error(y),n("error",y))}finally{a.value=!1}}},h=g=>{o.value=g,n("search",g),d.value&&(window.clearTimeout(s),s=window.setTimeout(()=>v(g),r.delay))},p=g=>{n("update:modelValue",g),n("change",g)};return(g,y)=>(u.openBlock(),u.createElementBlock("div",Ds,[u.createVNode(u.unref(Fn),{"model-value":t.modelValue,"onUpdate:modelValue":p,options:i.value,multiple:t.multiple,"track-by":t.trackBy,searchable:!0,"internal-search":!d.value,loading:a.value,"clear-on-select":!1,"close-on-select":!t.multiple,deselectLabel:"",placeholder:t.placeholder,disabled:t.disabled,label:"name","allow-empty":!0,onSearchChange:h,"select-label":t.selectLabel,"selected-label":t.selectedLabel,class:"user-picker__multiselect"},{option:u.withCtx(({option:w})=>[u.createElementVNode("div",Bs,[u.createElementVNode("div",{class:"avatar","data-initials":f(c(w,t.labelKey))},[c(w,t.iconKey)?(u.openBlock(),u.createElementBlock("img",{key:0,src:c(w,t.iconKey),alt:""},null,8,Ps)):u.createCommentVNode("",!0)],8,Rs),u.createElementVNode("div",ks,[u.createElementVNode("div",Ms,u.toDisplayString(c(w,t.labelKey)),1),w.secondaryText?(u.openBlock(),u.createElementBlock("div",Ls,u.toDisplayString(w.secondaryText),1)):u.createCommentVNode("",!0)])])]),selection:u.withCtx(({values:w,isOpen:m})=>[u.createElementVNode("div",Fs,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(w,E=>(u.openBlock(),u.createElementBlock("div",{class:"avatar","data-initials":f(c(E,t.labelKey))},[c(E,t.iconKey)?(u.openBlock(),u.createElementBlock("img",{key:0,src:c(E,t.iconKey),alt:""},null,8,Us)):u.createCommentVNode("",!0)],8,Vs))),256)),t.multiple&&w.length>0?(u.openBlock(),u.createElementBlock("div",$s,[u.createElementVNode("div",Hs,[u.createVNode(F._sfc_main,{icon:"plus",size:"xs"})])])):u.createCommentVNode("",!0)])]),singleLabel:u.withCtx(({option:w})=>[w?(u.openBlock(),u.createElementBlock("div",Gs,[u.createElementVNode("div",{class:"avatar","data-initials":f(c(w,t.labelKey))},[c(w,t.iconKey)?(u.openBlock(),u.createElementBlock("img",{key:0,src:c(w,t.iconKey),alt:""},null,8,Ws)):u.createCommentVNode("",!0)],8,zs),t.hideSelectedLabel?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("span",Xs,u.toDisplayString(c(w,t.labelKey)),1))])):u.createCommentVNode("",!0)]),placeholder:u.withCtx(()=>[u.createElementVNode("div",js,[u.createVNode(F._sfc_main,{icon:"plus",size:"xs"})])]),noResult:u.withCtx(()=>[...y[0]||(y[0]=[u.createElementVNode("div",{class:"empty"},"No results found.",-1)])]),_:1},8,["model-value","options","multiple","track-by","internal-search","loading","close-on-select","placeholder","disabled","select-label","selected-label"])]))}}),Ys=Ft(Ks,[["__scopeId","data-v-3ede6fde"]]),qs={class:"dsg-badge--before"},Zs={key:2,class:"dsg-badge--dot"},Qs={key:1,class:"dsg-badge--label"},Js={class:"dsg-badge--after"},el={key:1,class:"dsg-badge--close-wrapper"},Ji=u.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 F.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 F.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 F.DsgPropSyntaxWarning("DsgBadge: 'iconAfter' and 'hasClose' props are mutually exclusive. Please use only one of them.");const s=r,l=u.useTemplateRef("dsgBadge"),c=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))},f=d=>{s("on-click",l.value)};return e({hideOrDestroy:c,clickEvent:f}),(d,v)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(i)),ref:"dsgBadge",onClick:f},[t.type==="standard"?u.renderSlot(d.$slots,"dsg-badge--before",{key:0},()=>[u.createElementVNode("div",qs,[t.avatarUri?(u.openBlock(),u.createBlock(or,{key:0,"profile-uri":t.avatarUri,class:"dsg-badge--avatar",size:"xxs"},null,8,["profile-uri"])):u.createCommentVNode("",!0),t.iconBefore?(u.openBlock(),u.createBlock(F._sfc_main,{key:1,icon:t.iconBefore,size:"xxs",class:"dsg-badge--icon-before dsg-badge--icon"},null,8,["icon"])):u.createCommentVNode("",!0),t.hasDot?(u.openBlock(),u.createElementBlock("span",Zs)):u.createCommentVNode("",!0)])]):u.createCommentVNode("",!0),t.type==="standard"?(u.openBlock(),u.createElementBlock("label",Qs,u.toDisplayString(t.label),1)):u.createCommentVNode("",!0),t.type==="add"?(u.openBlock(),u.createBlock(F._sfc_main,{key:2,icon:"plus",size:"xxs",class:"dsg-badge--icon-add dsg-badge--icon"})):u.createCommentVNode("",!0),t.type==="icon-only"?(u.openBlock(),u.createBlock(F._sfc_main,{key:3,icon:t.icon,size:"xxs",class:"dsg-badge--icon-only dsg-badge--icon"},null,8,["icon"])):u.createCommentVNode("",!0),t.type==="standard"?u.renderSlot(d.$slots,"dsg-badge--after",{key:4},()=>[u.createElementVNode("div",Js,[t.iconAfter?(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:t.iconAfter,size:"xxs",class:"dsg-badge--icon-after dsg-badge--icon"},null,8,["icon"])):u.createCommentVNode("",!0),t.hasClose?(u.openBlock(),u.createElementBlock("span",el,[t.hasClose?(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:"x-close",class:"dsg-badge--close",size:"xxs",onClick:c})):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)])]):u.createCommentVNode("",!0)],2))}}),tl={class:"dsg-input-number--control"},rl=["disabled"],nl=["value","disabled"],il=["disabled"],al={key:0,class:"dsg-input-number--label"},ol=u.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)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["dsg-input-number",{"dsg-input-number--disabled":r.disabled}])},[u.createElementVNode("div",tl,[u.createElementVNode("button",{type:"button",onClick:a,disabled:r.disabled,class:"dsg-input-number--btn dsg-input-number--decrement"},[r.disabled?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:"minus",size:"sm"}))],8,rl),u.createElementVNode("input",{type:"number",value:t.modelValue,onInput:o,disabled:r.disabled,class:"dsg-input-number--input flex-1"},null,40,nl),u.createElementVNode("button",{type:"button",disabled:r.disabled,onClick:i,class:"dsg-input-number--btn dsg-input-number--increment"},[r.disabled?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:"plus",size:"sm"}))],8,il)]),t.label!==void 0||s.$slots.label?(u.openBlock(),u.createElementBlock("div",al,[u.renderSlot(s.$slots,"label",{},()=>[u.createTextVNode(u.toDisplayString(t.label),1)])])):u.createCommentVNode("",!0)],2))}}),sl={key:0,class:"dsg-checkbox-group--form-wrapper"},ll={class:"dsg-checkbox-group--header"},ul={class:"dsg-checkbox-group--header-title-wrapper"},cl={class:"dsg-checkbox-group--title"},fl=["innerHTML"],dl={class:"dsg-checkbox-group--options"},hl=["onClick"],vl=["textContent"],pl=["innerHTML","data"],gl=u.defineComponent({__name:"DsgCheckboxGroup",props:u.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=u.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)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(r)},[["form","form-radio"].includes(t.theme)?(u.openBlock(),u.createElementBlock("div",sl,[u.createElementVNode("div",ll,[u.renderSlot(i.$slots,"dsg-checkbox-group--header",{},()=>[u.createElementVNode("div",ul,[u.createElementVNode("h3",cl,u.toDisplayString(t.title),1),t.tooltip?(u.openBlock(),u.createBlock(F._sfc_main$1,{key:0,label:t.tooltip,position:"top",triggers:["hover"],"auto-hide":!0,theme:"dark",class:"dsg-checkbox-group--tooltip"},null,8,["label"])):u.createCommentVNode("",!0)]),t.subtext?(u.openBlock(),u.createElementBlock("p",{key:0,class:"dsg-checkbox-group--subtext",innerHTML:t.subtext},null,8,fl)):u.createCommentVNode("",!0)])]),u.createElementVNode("div",dl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.options,(o,s)=>(u.openBlock(),u.createElementBlock("div",{key:s,class:"dsg-checkbox-group--option"},[u.createVNode(F._sfc_main$2,{label:o.label,value:o.value,disabled:o.disabled,size:"sm",type:["form","panel"].includes(t.theme)?"checkbox":"radio",modelValue:e.value,"onUpdate:modelValue":a[0]||(a[0]=l=>e.value=l)},null,8,["label","value","disabled","type","modelValue"])]))),128))])])):u.createCommentVNode("",!0),["panel","panel-content"].includes(t.theme)?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(t.options,(o,s)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["dsg-checkbox-group--panel",`dsg-checkbox-group--panel-${e.value===o.value?"selected":"unselected"}`]),onClick:l=>n(l,o)},[(u.openBlock(),u.createElementBlock("div",{class:"dsg-checkbox-group--panel-left",key:s},[u.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?(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:o.icon,size:"xl"},null,8,["icon"])):u.createCommentVNode("",!0),u.createElementVNode("h3",{class:"dsg-checkbox-group--panel-title",textContent:u.toDisplayString(o.label)},null,8,vl)]),u.renderSlot(i.$slots,`dsg-checkbox-group--panel-subtext--${String(o.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g,"-").replace(/-+/g,"-")}`,{},()=>[o.subtext?(u.openBlock(),u.createElementBlock("p",{key:0,class:"dsg-checkbox-group--panel-subtext",innerHTML:o.subtext,data:o},null,8,pl)):u.createCommentVNode("",!0)])])),(u.openBlock(),u.createElementBlock("div",{key:s,class:"dsg-checkbox-group--panel-right"},[u.createVNode(F._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,hl))),256)):u.createCommentVNode("",!0)]))}});var xl="2.0.9",yl=500,Jn="user-agent",Rt="",ei="?",ue={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},De="browser",et="cpu",Ke="device",He="engine",ke="os",Pt="result",T="name",b="type",D="vendor",N="version",be="architecture",lr="major",O="model",Nr="console",H="mobile",Q="tablet",ce="smarttv",We="wearable",gr="xr",Qt="embedded",ml="fetcher",Et="inapp",Vn="brands",gt="formFactors",Un="fullVersionList",kt="platform",$n="platformVersion",Gr="bitness",ft="sec-ch-ua",wl=ft+"-full-version-list",El=ft+"-arch",Al=ft+"-"+Gr,Cl=ft+"-form-factors",_l=ft+"-"+H,bl=ft+"-"+O,ea=ft+"-"+kt,Sl=ea+"-version",ta=[Vn,Un,H,O,kt,$n,be,gt,Gr],xr="Amazon",At="Apple",ti="ASUS",ri="BlackBerry",dt="Google",ni="Huawei",Zr="Lenovo",ii="Honor",yr="LG",Qr="Microsoft",Jr="Motorola",ai="Nvidia",oi="OnePlus",en="OPPO",Gt="Samsung",si="Sharp",zt="Sony",tn="Xiaomi",rn="Zebra",li="Chrome",ui="Chromium",rt="Chromecast",Dr="Edge",Wt="Firefox",Ct="Opera",nn="Facebook",ci="Sogou",_t="Mobile ",bt=" Browser",wn="Windows",Il=typeof window!==ue.UNDEFINED,Te=Il&&window.navigator?window.navigator:void 0,xt=Te&&Te.userAgentData?Te.userAgentData:void 0,Ol=function(t,e){var r={},n=e;if(!Mr(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},zr=function(t){for(var e={},r=0;r<t.length;r++)e[t[r].toUpperCase()]=t[r];return e},En=function(t,e){if(typeof t===ue.OBJECT&&t.length>0){for(var r in t)if(ot(e)==ot(t[r]))return!0;return!1}return dr(t)?ot(e)==ot(t):!1},Mr=function(t,e){for(var r in t)return/^(browser|cpu|device|engine|os)$/.test(r)||(e?Mr(t[r]):!1)},dr=function(t){return typeof t===ue.STRING},an=function(t){if(t){for(var e=[],r=Mt(/\\?\"/g,t).split(","),n=0;n<r.length;n++)if(r[n].indexOf(";")>-1){var i=Lr(r[n]).split(";v=");e[n]={brand:i[0],version:i[1]}}else e[n]=Lr(r[n]);return e}},ot=function(t){return dr(t)?t.toLowerCase():t},An=function(t){return dr(t)?Mt(/[^\d\.]/g,t).split(".")[0]:void 0},Je=function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];typeof r==ue.OBJECT&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this},Mt=function(t,e){return dr(e)?e.replace(t,Rt):e},Xt=function(t){return Mt(/\\?\"/g,t)},Lr=function(t,e){return t=Mt(/^\s\s*/,String(t)),typeof e===ue.UNDEFINED?t:t.substring(0,e)},Cn=function(t,e){if(!(!t||!e))for(var r=0,n,i,a,o,s,l;r<e.length&&!s;){var c=e[r],f=e[r+1];for(n=i=0;n<c.length&&!s&&c[n];)if(s=c[n++].exec(t),s)for(a=0;a<f.length;a++)l=s[++i],o=f[a],typeof o===ue.OBJECT&&o.length>0?o.length===2?typeof o[1]==ue.FUNCTION?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:o.length>=3&&(typeof o[1]===ue.FUNCTION&&!(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}},Ue=function(t,e){for(var r in e)if(typeof e[r]===ue.OBJECT&&e[r].length>0){for(var n=0;n<e[r].length;n++)if(En(e[r][n],t))return r===ei?void 0:r}else if(En(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:""},di={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},Tl={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"},hi={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[N,[T,_t+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[N,[T,Dr+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[N,[T,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[T,N],[/opios[\/ ]+([\w\.]+)/i],[N,[T,Ct+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[N,[T,Ct+" GX"]],[/\bopr\/([\w\.]+)/i],[N,[T,Ct]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[N,[T,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[N,[T,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[T,N],[/quark(?:pc)?\/([-\w\.]+)/i],[N,[T,"Quark"]],[/\bddg\/([\w\.]+)/i],[N,[T,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[N,[T,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[N,[T,"WeChat"]],[/konqueror\/([\w\.]+)/i],[N,[T,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[N,[T,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[N,[T,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[N,[T,"Smart "+Zr+bt]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[T,/(.+)/,"$1 Secure"+bt],N],[/norton\/([\w\.]+)/i],[N,[T,"Norton Private"+bt]],[/\bfocus\/([\w\.]+)/i],[N,[T,Wt+" Focus"]],[/ mms\/([\w\.]+)$/i],[N,[T,Ct+" Neon"]],[/ opt\/([\w\.]+)$/i],[N,[T,Ct+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[N,[T,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[N,[T,"Dolphin"]],[/coast\/([\w\.]+)/i],[N,[T,Ct+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[N,[T,"MIUI"+bt]],[/fxios\/([\w\.-]+)/i],[N,[T,_t+Wt]],[/\bqihoobrowser\/?([\w\.]*)/i],[N,[T,"360"]],[/\b(qq)\/([\w\.]+)/i],[[T,/(.+)/,"$1Browser"],N],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[T,/(.+)/,"$1"+bt],N],[/samsungbrowser\/([\w\.]+)/i],[N,[T,Gt+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[N,[T,ci+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[T,ci+" Mobile"],N],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[T,N],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[T],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[N,T],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[T,nn],N,[b,Et]],[/(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,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[T,N,[b,Et]],[/\bgsa\/([\w\.]+) .*safari\//i],[N,[T,"GSA"],[b,Et]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[N,[T,"TikTok"],[b,Et]],[/\[(linkedin)app\]/i],[T,[b,Et]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[T,/(.+)/,"Zalo"],N,[b,Et]],[/(chromium)[\/ ]([-\w\.]+)/i],[T,N],[/ome-(lighthouse)$/i],[T,[b,ml]],[/headlesschrome(?:\/([\w\.]+)| )/i],[N,[T,li+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[N,[T,Dr+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[T,li+" WebView"],N],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[N,[T,"Android"+bt]],[/chrome\/([\w\.]+) mobile/i],[N,[T,_t+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[T,N],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[N,[T,_t+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[T,_t+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[N,T],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[T,[N,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[T,N],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[T,_t+Wt],N],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[T,"Netscape"],N],[/(wolvic|librewolf)\/([\w\.]+)/i],[T,N],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[N,[T,Wt+" 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|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[T,[N,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[T,[N,/[^\d\.]+./,Rt]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[be,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[be,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[be,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[be,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[be,"arm"]],[/ sun4\w[;\)]/i],[[be,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[be,/ower/,Rt,ot]],[/mc680.0/i],[[be,"68k"]],[/winnt.+\[axp/i],[[be,"alpha"]]],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],[O,[D,Gt],[b,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],[O,[D,Gt],[b,H]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[O,[D,At],[b,H]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[O,[D,At],[b,Q]],[/(macintosh);/i],[O,[D,At]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[O,[D,si],[b,H]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[O,[D,ii],[b,Q]],[/honor([-\w ]+)[;\)]/i],[O,[D,ii],[b,H]],[/\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],[O,[D,ni],[b,Q]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[O,[D,ni],[b,H]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[O,/_/g," "],[D,tn],[b,Q]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[O,/_/g," "],[D,tn],[b,H]],[/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-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[O,[D,oi],[b,H]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[O,[D,en],[b,H]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[O,[D,Ue,{OnePlus:["203","304","403","404","413","415"],"*":en}],[b,Q]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[O,[D,"BLU"],[b,H]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[O,[D,"Vivo"],[b,H]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[O,[D,"Realme"],[b,H]],[/(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],[O,[D,Zr],[b,Q]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[O,[D,Zr],[b,H]],[/\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],[O,[D,Jr],[b,H]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[O,[D,Jr],[b,Q]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[O,[D,yr],[b,Q]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[O,[D,yr],[b,H]],[/(nokia) (t[12][01])/i],[D,O,[b,Q]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[O,/_/g," "],[b,H],[D,"Nokia"]],[/(pixel (c|tablet))\b/i],[O,[D,dt],[b,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],[O,[D,dt],[b,H]],[/(google) (pixelbook( go)?)/i],[D,O],[/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],[O,[D,zt],[b,H]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[O,"Xperia Tablet"],[D,zt],[b,Q]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[O,[D,xr],[b,Q]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[O,/(.+)/g,"Fire Phone $1"],[D,xr],[b,H]],[/(playbook);[-\w\),; ]+(rim)/i],[O,D,[b,Q]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[O,[D,ri],[b,H]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[O,[D,ti],[b,Q]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[O,[D,ti],[b,H]],[/(nexus 9)/i],[O,[D,"HTC"],[b,Q]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[D,[O,/_/g," "],[b,H]],[/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],[O,[D,"TCL"],[b,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],[O,[D,"TCL"],[b,H]],[/(itel) ((\w+))/i],[[D,ot],O,[b,Ue,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[O,[D,"Acer"],[b,Q]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[O,[D,"Meizu"],[b,H]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[O,[D,"Ulefone"],[b,H]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[O,[D,"Energizer"],[b,H]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[O,[D,"Cat"],[b,H]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[O,[D,"Smartfren"],[b,H]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[O,[D,"Nothing"],[b,H]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[O,[D,"Archos"],[b,Q]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[O,[D,"Archos"],[b,H]],[/; (n159v)/i],[O,[D,"HMD"],[b,H]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[D,O,[b,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|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[D,O,[b,H]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[D,O,[b,Q]],[/(surface duo)/i],[O,[D,Qr],[b,Q]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[O,[D,"Fairphone"],[b,H]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[O,[D,ai],[b,Q]],[/(sprint) (\w+)/i],[D,O,[b,H]],[/(kin\.[onetw]{3})/i],[[O,/\./g," "],[D,Qr],[b,H]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[O,[D,rn],[b,Q]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[O,[D,rn],[b,H]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[D,[b,ce]],[/hbbtv.+maple;(\d+)/i],[[O,/^/,"SmartTV"],[D,Gt],[b,ce]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[D,O,[b,ce]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[D,yr],[b,ce]],[/(apple) ?tv/i],[D,[O,At+" TV"],[b,ce]],[/crkey.*devicetype\/chromecast/i],[[O,rt+" Third Generation"],[D,dt],[b,ce]],[/crkey.*devicetype\/([^/]*)/i],[[O,/^/,"Chromecast "],[D,dt],[b,ce]],[/fuchsia.*crkey/i],[[O,rt+" Nest Hub"],[D,dt],[b,ce]],[/crkey/i],[[O,rt],[D,dt],[b,ce]],[/(portaltv)/i],[O,[D,nn],[b,ce]],[/droid.+aft(\w+)( bui|\))/i],[O,[D,xr],[b,ce]],[/(shield \w+ tv)/i],[O,[D,ai],[b,ce]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[O,[D,si],[b,ce]],[/(bravia[\w ]+)( bui|\))/i],[O,[D,zt],[b,ce]],[/(mi(tv|box)-?\w+) bui/i],[O,[D,tn],[b,ce]],[/Hbbtv.*(technisat) (.*);/i],[D,O,[b,ce]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[D,/.+\/(\w+)/,"$1",Ue,{LG:"lge"}],[O,Lr],[b,ce]],[/(playstation \w+)/i],[O,[D,zt],[b,Nr]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[O,[D,Qr],[b,Nr]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[D,Ue,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],O,[b,Nr]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[O,[D,Gt],[b,We]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[D,O,[b,We]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[O,[D,en],[b,We]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[O,[D,At],[b,We]],[/(opwwe\d{3})/i],[O,[D,oi],[b,We]],[/(moto 360)/i],[O,[D,Jr],[b,We]],[/(smartwatch 3)/i],[O,[D,zt],[b,We]],[/(g watch r)/i],[O,[D,yr],[b,We]],[/droid.+; (wt63?0{2,3})\)/i],[O,[D,rn],[b,We]],[/droid.+; (glass) \d/i],[O,[D,dt],[b,gr]],[/(pico) ([\w ]+) os\d/i],[D,O,[b,gr]],[/(quest( \d| pro)?s?).+vr/i],[O,[D,nn],[b,gr]],[/mobile vr; rv.+firefox/i],[[b,gr]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[D,[b,Qt]],[/(aeobc)\b/i],[O,[D,xr],[b,Qt]],[/(homepod).+mac os/i],[O,[D,At],[b,Qt]],[/windows iot/i],[[b,Qt]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[O,[b,ce]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[b,ce]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[O,[b,Ue,{mobile:"Mobile",xr:"VR","*":Q}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,Q]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,H]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[O,[D,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[N,[T,Dr+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[T,N],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[N,[T,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[T,N],[/ladybird\//i],[[T,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[N,T]],os:[[/(windows nt) (6\.[23]); arm/i],[[T,/N/,"R"],[N,Ue,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],[T,N],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[N,/(;|\))/g,"",Ue,fi],[T,wn]],[/(windows ce)\/?([\d\.]*)/i],[T,N],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[N,/_/g,"."],[T,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[T,"macOS"],[N,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[N,[T,rt+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[N,[T,rt+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[N,[T,rt+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[N,[T,rt+" Linux"]],[/crkey\/([\d\.]+)/i],[N,[T,rt]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[N,T],[/(ubuntu) ([\w\.]+) like android/i],[[T,/(.+)/,"$1 Touch"],N],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[T,N],[/\(bb(10);/i],[N,[T,ri]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[N,[T,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[N,[T,Wt+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[N,[T,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[N,Ue,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[T,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[N,[T,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[N,[T,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[N,[T,"Vega OS"]],[/(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],[T,N],[/(sunos) ?([\d\.]*)/i],[[T,"Solaris"],N],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[T,N]]},mr=(function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Je.call(t.init,[[De,[T,N,lr,b]],[et,[be]],[Ke,[b,O,D]],[He,[T,N]],[ke,[T,N]]]),Je.call(t.isIgnore,[[De,[N,lr]],[He,[N]],[ke,[N]]]),Je.call(t.isIgnoreRgx,[[De,/ ?browser$/i],[ke,/ ?os$/i]]),Je.call(t.toString,[[De,[T,N]],[et,[be]],[Ke,[D,O]],[He,[T,N]],[ke,[T,N]]]),t})(),Nl=function(t,e){var r=mr.init[e],n=mr.isIgnore[e]||0,i=mr.isIgnoreRgx[e]||0,a=mr.toString[e]||0;function o(){Je.call(this,r)}return o.prototype.getItem=function(){return t},o.prototype.withClientHints=function(){return xt?xt.getHighEntropyValues(ta).then(function(s){return t.setCH(new ra(s,!1)).parseCH().get()}):t.parseCH().get()},o.prototype.withFeatureCheck=function(){return t.detectFeature().get()},e!=Pt&&(o.prototype.is=function(s){var l=!1;for(var c in this)if(this.hasOwnProperty(c)&&!En(n,c)&&ot(i?Mt(i,this[c]):this[c])==ot(i?Mt(i,s):s)){if(l=!0,s!=ue.UNDEFINED)break}else if(s==ue.UNDEFINED&&l){l=!l;break}return l},o.prototype.toString=function(){var s=Rt;for(var l in a)typeof this[a[l]]!==ue.UNDEFINED&&(s+=(s?" ":Rt)+this[a[l]]);return s||ue.UNDEFINED}),o.prototype.then=function(s){var l=this,c=function(){for(var d in l)l.hasOwnProperty(d)&&(this[d]=l[d])};c.prototype={is:o.prototype.is,toString:o.prototype.toString,withClientHints:o.prototype.withClientHints,withFeatureCheck:o.prototype.withFeatureCheck};var f=new c;return s(f),f},new o};function ra(t,e){if(t=t||{},Je.call(this,ta),e)Je.call(this,[[Vn,an(t[ft])],[Un,an(t[wl])],[H,/\?1/.test(t[_l])],[O,Xt(t[bl])],[kt,Xt(t[ea])],[$n,Xt(t[Sl])],[be,Xt(t[El])],[gt,an(t[Cl])],[Gr,Xt(t[Al])]]);else for(var r in t)this.hasOwnProperty(r)&&typeof t[r]!==ue.UNDEFINED&&(this[r]=t[r])}function ut(t,e,r,n){return Je.call(this,[["itemType",t],["ua",e],["uaCH",n],["rgxMap",r],["data",Nl(this,t)]]),this}ut.prototype.get=function(t){return t?this.data.hasOwnProperty(t)?this.data[t]:void 0:this.data};ut.prototype.set=function(t,e){return this.data[t]=e,this};ut.prototype.setCH=function(t){return this.uaCH=t,this};ut.prototype.detectFeature=function(){if(Te&&Te.userAgent==this.ua)switch(this.itemType){case De:Te.brave&&typeof Te.brave.isBrave==ue.FUNCTION&&this.set(T,"Brave");break;case Ke:!this.get(b)&&xt&&xt[H]&&this.set(b,H),this.get(O)=="Macintosh"&&Te&&typeof Te.standalone!==ue.UNDEFINED&&Te.maxTouchPoints&&Te.maxTouchPoints>2&&this.set(O,"iPad").set(b,Q);break;case ke:!this.get(T)&&xt&&xt[kt]&&this.set(T,xt[kt]);break;case Pt:var t=this.data,e=function(r){return t[r].getItem().detectFeature().get()};this.set(De,e(De)).set(et,e(et)).set(Ke,e(Ke)).set(He,e(He)).set(ke,e(ke))}return this};ut.prototype.parseUA=function(){switch(this.itemType!=Pt&&Cn.call(this.data,this.ua,this.rgxMap),this.itemType){case De:this.set(lr,An(this.get(N)));break;case ke:if(this.get(T)=="iOS"&&this.get(N)=="18.6"){var t=/\) Version\/([\d\.]+)/.exec(this.ua);t&&parseInt(t[1].substring(0,2),10)>=26&&this.set(N,t[1])}break}return this};ut.prototype.parseCH=function(){var t=this.uaCH,e=this.rgxMap;switch(this.itemType){case De:case He:var r=t[Un]||t[Vn],n;if(r)for(var i=0;i<r.length;i++){var a=r[i].brand||r[i],o=r[i].version;this.itemType==De&&!/not.a.brand/i.test(a)&&(!n||/Chrom/.test(n)&&a!=ui||n==Dr&&/WebView2/.test(a))&&(a=Ue(a,Tl),n=this.get(T),n&&!/Chrom/.test(n)&&/Chrom/.test(a)||this.set(T,a).set(N,o).set(lr,An(o)),n=a),this.itemType==He&&a==ui&&this.set(N,o)}break;case et:var s=t[be];s&&(s&&t[Gr]=="64"&&(s+="64"),Cn.call(this.data,s+";",e));break;case Ke:if(t[H]&&this.set(b,H),t[O]&&(this.set(O,t[O]),!this.get(b)||!this.get(D))){var l={};Cn.call(l,"droid 9; "+t[O]+")",e),!this.get(b)&&l.type&&this.set(b,l.type),!this.get(D)&&l.vendor&&this.set(D,l.vendor)}if(t[gt]){var c;if(typeof t[gt]!="string")for(var f=0;!c&&f<t[gt].length;)c=Ue(t[gt][f++],di);else c=Ue(t[gt],di);this.set(b,c)}break;case ke:var d=t[kt];if(d){var v=t[$n];d==wn&&(v=parseInt(An(v),10)>=13?"11":"10"),this.set(T,d).set(N,v)}this.get(T)==wn&&t[O]=="Xbox"&&this.set(T,"Xbox").set(N,void 0);break;case Pt:var h=this.data,p=function(g){return h[g].getItem().setCH(t).parseCH().get()};this.set(De,p(De)).set(et,p(et)).set(Ke,p(Ke)).set(He,p(He)).set(ke,p(ke))}return this};function tt(t,e,r){if(typeof t===ue.OBJECT?(Mr(t,!0)?(typeof e===ue.OBJECT&&(r=e),e=t):(r=t,e=void 0),t=void 0):typeof t===ue.STRING&&!Mr(e,!0)&&(r=e,e=void 0),r)if(typeof r.append===ue.FUNCTION){var n={};r.forEach(function(f,d){n[String(d).toLowerCase()]=f}),r=n}else{var i={};for(var a in r)r.hasOwnProperty(a)&&(i[String(a).toLowerCase()]=r[a]);r=i}if(!(this instanceof tt))return new tt(t,e,r).getResult();var o=typeof t===ue.STRING?t:r&&r[Jn]?r[Jn]:Te&&Te.userAgent?Te.userAgent:Rt,s=new ra(r,!0),l=e?Ol(hi,e):hi,c=function(f){return f==Pt?function(){return new ut(f,o,l,s).set("ua",o).set(De,this.getBrowser()).set(et,this.getCPU()).set(Ke,this.getDevice()).set(He,this.getEngine()).set(ke,this.getOS()).get()}:function(){return new ut(f,o,l[f],s).parseUA().get()}};return Je.call(this,[["getBrowser",c(De)],["getCPU",c(et)],["getDevice",c(Ke)],["getEngine",c(He)],["getOS",c(ke)],["getResult",c(Pt)],["getUA",function(){return o}],["setUA",function(f){return dr(f)&&(o=Lr(f,yl)),this}]]).setUA(o),this}tt.VERSION=xl;tt.BROWSER=zr([T,N,lr,b]);tt.CPU=zr([be]);tt.DEVICE=zr([O,D,b,Nr,H,ce,Q,We,Qt]);tt.ENGINE=tt.OS=zr([T,N]);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 jt(t,e,r,n){t.removeEventListener?t.removeEventListener(e,r,n):t.detachEvent&&t.detachEvent("on".concat(e),r)}function na(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 ia(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 Dl(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},Ge={"⇧":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},me={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,aa="all";const Qe=new Map,Vt=t=>ur[t.toLowerCase()]||Ge[t.toLowerCase()]||t.toUpperCase().charCodeAt(0),Bl=t=>Object.keys(ur).find(e=>ur[e]===t),Rl=t=>Object.keys(Ge).find(e=>Ge[e]===t);function oa(t){aa=t||"all"}function cr(){return aa||"all"}function Pl(){return oe.slice(0)}function kl(){return oe.map(t=>Bl(t)||Rl(t)||String.fromCharCode(t))}function Ml(){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=>Vt(s))})})}),t}function Ll(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 Fl(t){return typeof t=="string"&&(t=Vt(t)),oe.indexOf(t)!==-1}function Vl(t,e){let r,n;t||(t=cr());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 Hn(s)}):n++;cr()===t&&oa(e||"all")}function Ul(t){let e=t.keyCode||t.which||t.charCode;t.key&&t.key.toLowerCase()==="capslock"&&(e=Vt(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 me){me[e]=!1;for(const n in Ge)Ge[n]===e&&(Xe[n]=!1)}}function sa(t){if(typeof t>"u")Object.keys(se).forEach(i=>{Array.isArray(se[i])&&se[i].forEach(a=>wr(a)),delete se[i]}),Hn(null);else if(Array.isArray(t))t.forEach(i=>{i.key&&wr(i)});else if(typeof t=="object")t.key&&wr(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=""),wr({key:t,scope:i,method:a,splitKey:"+"})}}const wr=t=>{let{key:e,scope:r,method:n,splitKey:i="+"}=t;ia(e).forEach(o=>{const s=o.split(i),l=s.length,c=s[l-1],f=c==="*"?"*":Vt(c);if(!se[f])return;r||(r=cr());const d=l>1?na(Ge,s):[],v=[];se[f]=se[f].filter(h=>{const g=(n?h.method===n:!0)&&h.scope===r&&Dl(h.mods,d);return g&&v.push(h.element),!g}),v.forEach(h=>Hn(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 me)Object.prototype.hasOwnProperty.call(me,a)&&(!me[a]&&e.mods.indexOf(+a)>-1||me[a]&&e.mods.indexOf(+a)===-1)&&(i=!1);(e.mods.length===0&&!me[16]&&!me[18]&&!me[17]&&!me[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(c=>c in Jt||c===n))}),n in me){me[n]=!0;for(const s in Ge)if(Object.prototype.hasOwnProperty.call(Ge,s)){const l=Jt[Ge[s]];Xe[s]=t[l]}if(!r)return}for(const s in me)Object.prototype.hasOwnProperty.call(me,s)&&(me[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),me[17]=!0,me[18]=!0);const i=cr();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:c}=l,f=l.key.split(c),d=[];for(let v=0;v<f.length;v++)d.push(Vt(f[v]));d.sort().join("")===oe.sort().join("")&&vi(t,l,i,e)}}function Xe(t,e,r){oe=[];const n=ia(t);let i=[],a="all",o=document,s=0,l=!1,c=!0,f="+",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&&(c=e.keydown),e.capture!==void 0&&(d=e.capture),typeof e.splitKey=="string"&&(f=e.splitKey),e.single===!0&&(v=!0)),typeof e=="string"&&(a=e),v&&sa(t,a);s<n.length;s++)t=n[s].split(f),i=[],t.length>1&&(i=na(Ge,t)),t=t[t.length-1],t=t==="*"?"*":Vt(t),t in se||(se[t]=[]),se[t].push({keyup:l,keydown:c,scope:a,mods:i,shortcut:n[s],method:r,key:n[s],splitKey:f,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),Ul(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 $l(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 Hn(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&&(jt(t,"keyup",i,a),jt(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&&(jt(i,"keyup",o,s),jt(i,"keydown",a,s),Qe.delete(i))}),Qe.clear(),Object.keys(se).forEach(i=>delete se[i]),ar)){const{listener:i,capture:a}=ar;jt(window,"focus",i,a),ar=null}}const ln={getPressedKeyString:kl,setScope:oa,getScope:cr,deleteScope:Vl,getPressedKeyCodes:Pl,getAllKeyCodes:Ml,isPressed:Fl,filter:Ll,trigger:$l,unbind:sa,keyMap:ur,modifier:Ge,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 Hl={class:"dsg-dropdown--trigger",tabindex:"0"},Gl={class:"dsg-dropdown--menu"},zl={key:0,class:"dsg-dropdown--menu-header"},Wl={key:1,class:"dsg-dropdown--menu-header"},Xl={class:"dsg-dropdown--menu-title"},jl={key:2,class:"dsg-dropdown--menu-header subsection"},Kl={class:"dsg-dropdown--menu-subtitle"},Yl=["href","target","tabindex","title","onClick"],ql={key:0,class:"dsg-dropdown--menu-item--content"},Zl={key:0,class:"dsg-dropdown--menu-item--icon"},Ql={class:"dsg-dropdown--menu-item--label"},Jl={class:"dsg-dropdown--menu-item--hotkey"},eu={key:0},tu={key:1,class:"dsg-dropdown--menu-item--content"},ru=u.defineComponent({__name:"DsgDropdown",props:{label:{default:""},type:{default:"button"},icon:{default:"dots-vertical"},iconBefore:{default:()=>{}},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},size:{default:"md"}},setup(t,{expose:e}){const r=u.ref(t.isOpen),n=new tt().getOS().name;t.menuItems.forEach(h=>{});const i=u.useTemplateRef("floatingVueDropdownEl"),a=u.useTemplateRef("dsgDropdownAvatarTriggerEl"),o=u.useTemplateRef("dsgDropdownButtonTriggerEl"),s=h=>{c(),a.value&&setTimeout(()=>{a?.value?.toggleFocus(r.value)},100)},l=h=>{c(),o.value&&setTimeout(()=>{o?.value?.focusButton(r.value)},100)},c=()=>{r.value=!r.value,r.value?i.value?.show():i.value?.hide()},f=(h,p)=>{p.uri||h.preventDefault(),p.action&&(p.action(),i.value?.hide())},d=u.useTemplateRef("dsgDropdown"),v=h=>(h=h.toLowerCase(),h.replace("ctrl","⌃").replace("shift","⇧").replace("alt","⌥").replace("cmd",n==="macOS"?"⌘":"⊞").replace("++","+").replace("+","").toUpperCase());return u.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())})})}),u.onBeforeUnmount(()=>{Xe.deleteScope("dsgDropdown")}),e({handleTriggerClick:c}),(h,p)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["dsg-dropdown",`dsg-dropdown--${t.size}`+t.classes]),ref:"dsgDropdown"},[u.createVNode(u.unref(F.kt),u.mergeProps({triggers:[],placement:t.placement,"handle-resize":!1,strategy:t.strategy,shown:r.value,flip:!1,shift:!1,boundary:d.value,container:d.value,skidding:t.skidding,distance:t.distance,class:"dsg-dropdown--popper",onHide:p[0]||(p[0]=g=>r.value=!1),ref:"floatingVueDropdownEl"},h.$attrs),{popper:u.withCtx(()=>[u.createElementVNode("div",Gl,[u.renderSlot(h.$slots,"dsg-dropdown-menu--header",{},()=>[t.headerType==="avatar"?(u.openBlock(),u.createElementBlock("div",zl,[t.avatarInfo?(u.openBlock(),u.createBlock(or,{key:0,size:"md",profileUri:t.avatarInfo.profileUri,fullName:t.avatarInfo.fullName,isOnline:t.avatarInfo.isOnline,title:t.avatarInfo.title,"sub-text":t.avatarInfo.subText},null,8,["profileUri","fullName","isOnline","title","sub-text"])):u.createCommentVNode("",!0)])):t.headerType==="title"?(u.openBlock(),u.createElementBlock("div",Wl,[u.createElementVNode("h3",Xl,u.toDisplayString(t.headerTitle),1)])):t.headerType==="subsection"?(u.openBlock(),u.createElementBlock("div",jl,[u.createElementVNode("h4",Kl,u.toDisplayString(t.headerTitle),1)])):u.createCommentVNode("",!0)]),u.renderSlot(h.$slots,"dsg-dropdown-menu-content",{},()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.menuItems,(g,y)=>(u.openBlock(),u.createElementBlock("a",{class:u.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:y,onClick:w=>f(w,g)},[g.type==="item"||g.type===void 0?(u.openBlock(),u.createElementBlock("div",ql,[g.icon?(u.openBlock(),u.createElementBlock("div",Zl,[u.createVNode(F._sfc_main,{icon:g.icon,size:"xs"},null,8,["icon"])])):u.createCommentVNode("",!0),u.createElementVNode("span",Ql,u.toDisplayString(g.label),1),u.createElementVNode("div",Jl,[g.hotkey?(u.openBlock(),u.createElementBlock("span",eu,u.toDisplayString(v(g.hotkey)),1)):u.createCommentVNode("",!0)])])):g.type==="divider"?(u.openBlock(),u.createElementBlock("div",tu,[...p[1]||(p[1]=[u.createElementVNode("hr",null,null,-1)])])):u.createCommentVNode("",!0)],10,Yl))),128))])])]),default:u.withCtx(()=>[u.createElementVNode("div",Hl,[u.renderSlot(h.$slots,"dsg-dropdown--trigger",{},()=>[t.type==="avatar"?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[t.avatarInfo?(u.openBlock(),u.createBlock(or,{key:0,size:"lg",profileUri:t.avatarInfo.profileUri,fullName:t.avatarInfo.fullName,ref:"dsgDropdownAvatarTriggerEl",onClick:s,"prevent-default":!0},null,8,["profileUri","fullName"])):u.createCommentVNode("",!0)],64)):t.type==="button"?(u.openBlock(),u.createBlock(F._sfc_main$3,{key:1,theme:t.buttonTheme,label:t.label,onClick:l,ref:"dsgDropdownButtonTriggerEl","icon-before":t.iconBefore,size:t.size,"icon-after":"chevron-down",class:u.normalizeClass({"dropdown-active":r.value})},null,8,["theme","label","icon-before","size","class"])):t.type==="icon"?(u.openBlock(),u.createBlock(F._sfc_main$3,{key:2,"icon-before":t.icon,size:"sm",theme:t.buttonTheme,class:u.normalizeClass(["dsg-dropdown--trigger-button",{"dropdown-active":r.value}]),onClick:c},null,8,["icon-before","theme","class"])):u.createCommentVNode("",!0)])])]),_:3},16,["placement","strategy","shown","boundary","container","skidding","distance"])],2))}}),nu={class:"dsg-input--label-wrapper block"},iu=["onMousedown"],au=["textContent"],ou={class:"option-icon-wrapper"},su=["textContent"],lu={key:0,class:"dsg-input-select--error-wrapper"},uu=u.defineComponent({__name:"DsgInputSelect",props:u.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},useTeleport:{type:Boolean,default:!1},wrapContent:{type:Boolean,default:!1},contentWrapperClass:{default:""},selectLabel:{default:""},selectedLabel:{default:""},errors:{default:()=>[]},scrollBind:{default:()=>document.body},size:{default:"md"}},{modelValue:{},modelModifiers:{},single:{},singleModifiers:{}}),emits:u.mergeModels(["update:modelValue","update:model-value","search-change","select","open","close","remove","tag"],["update:modelValue","update:single"]),setup(t,{expose:e,emit:r}){const n=u.useModel(t,"modelValue"),i=u.useModel(t,"single"),a=u.ref(t.options),o=u.useTemplateRef("multiselectEl"),s=u.ref(!1),l=u.ref([]);u.computed(()=>l.value.length>0);const c=u.computed(()=>[...Array.isArray(t.errors)?t.errors:[t.errors],...l.value].filter((R,M,P)=>M===P.indexOf(R))),f=u.computed(()=>{const C=Array.isArray(t.contentWrapperClass)?t.contentWrapperClass:[t.contentWrapperClass],R=t.wrapContent?"dsg-input-select--content-wrapper--wrap":"dsg-input-select--content-wrapper--no-wrap";return[...C,"dsg-input-select--content-wrapper",R].join(" ")}),d=u.computed(()=>["dsg-input-select",`dsg-input-select--${t.size}`,`dsg-input-select--${t.strategy}`,`dsg-input-select--${c.value.length>0?"has-errors":"no-errors"}`,`dsg-input-select--${t.wrapContent?"wrap-content":"no-wrap-content"}`].join(" ").replace(/\s+/g," ").trim()),v=()=>{t.useTeleport||y()},h=C=>{t.useTeleport||y()};u.watchEffect(()=>{l.value=(Array.isArray(t.errors)?t.errors:[t.errors]).filter(C=>C!=null&&C!=="")}),u.watch(()=>t.options,C=>{Array.isArray(C)?a.value=C:console.warn("Options should be an array.")});const p=u.ref(null);u.watch(()=>t.scrollBind,async C=>{await u.nextTick(),p.value&&typeof p.value.removeEventListener=="function"&&p.value.removeEventListener("scroll",h);const R=P=>{const X=window.getComputedStyle(P),V=["auto","scroll","overlay"].includes(X.overflow)||["auto","scroll","overlay"].includes(X.overflowY)||["auto","scroll","overlay"].includes(X.overflowX),G=P.scrollHeight>P.clientHeight||P.scrollWidth>P.clientWidth;return V&&G};let M=null;C?M=R(C)?C:window:M=window,M&&typeof M.addEventListener=="function"?(M.addEventListener("scroll",h),p.value=M):p.value=null},{immediate:!0});const g=r,y=()=>{if(o.value)if(s.value===!0){const C=o.value.$el.getBoundingClientRect(),R=o.value.$el.offsetHeight,M=window.innerHeight;u.nextTick(()=>{const P=o.value.$el.querySelector(".multiselect__content-wrapper");P.style.display="block";const X=P.offsetHeight;if(t.strategy==="fixed"){P.style.left=C.left+"px",P.style.right="auto",P.style.top="auto",P.style.bottom="auto";const V=C.width,G=window.innerWidth-C.left,ze=V>G?Math.min(300,G-16):V;P.style.width=`${ze}px`;const wt=M-C.bottom,$t=C.top,Ht=X+8;(wt<Ht&&$t>wt?"top":"bottom")==="top"?P.style.bottom=`${M-C.top+4}px`:P.style.top=`${C.bottom+4}px`;let vr=!1;if(p.value===window)vr=C.top<M&&C.bottom>0&&C.left<window.innerWidth&&C.right>0;else if(p.value){const pr=p.value.getBoundingClientRect();vr=C.top<pr.bottom&&C.bottom>pr.top&&C.left<pr.right&&C.right>pr.left}else vr=C.top<M&&C.bottom>0&&C.left<window.innerWidth&&C.right>0;if(!vr){P.style.display="none";return}P.style.display="block"}else P.style.left="0",P.style.right="auto",P.style.width="auto",P.style.maxWidth=t.contentMaxWidth,(C.bottom+X+R+2>M?"top":"bottom")==="top"?P.style.bottom=`${R+4}px`:P.style.top=`${R+4}px`})}else{const C=o.value.$refs.list;C&&(C.style.display="none",C.style.top="auto",C.style.bottom="auto",C.style.left="auto",C.style.right="auto")}},w=C=>{s.value=!0,t.useTeleport||y(),g("open",C)},m=(C,R)=>{s.value=!1,t.useTeleport||y(),g("close",C,R)},E=F.useDebounceFn(C=>{t.getUrl&&C.length>=2&&F.axios.get(t.getUrl,{params:{term:C,...t.extraParams}}).then(R=>{a.value=R.data}),g("search-change",C)},300),_=(C,R=!0)=>{if(l.value=[],t.allowEmpty===!1&&(C==null||Array.isArray(C)&&C.length===0)&&l.value.push(`${t.label} is required.`),R===!0)try{I(C),g("update:modelValue",C),g("update:model-value",C)}catch(M){console.log(M)}},I=C=>{C?i.value=C[t.trackBy]||C:i.value=null};return u.onMounted(()=>{window.addEventListener("resize",v),t.getUrl&&t.options.length===0&&t.fetchOnLoad&&F.axios.get(t.getUrl).then(C=>{a.value=C.data}).catch(C=>{console.error("Error fetching options:",C)}),t.validateOnLoad&&_(n.value,!1)}),u.onUnmounted(()=>{window.removeEventListener("resize",v),p.value&&typeof p.value.removeEventListener=="function"&&p.value.removeEventListener("scroll",h)}),e({getInstance:()=>o.value}),(C,R)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(d.value),ref:"dsgInputSelectEl"},[u.createElementVNode("div",nu,[t.label?(u.openBlock(),u.createBlock(Hi._sfc_main,{key:0,label:t.label,size:"sm"},null,8,["label"])):u.createCommentVNode("",!0)]),u.createVNode(u.unref(Fn),u.mergeProps({ref:"multiselectEl",modelValue:n.value,"onUpdate:modelValue":[R[0]||(R[0]=M=>n.value=M),R[3]||(R[3]=M=>_(M,!0))],options:a.value,multiple:t.multiple,onSearchChange:u.unref(E),onOpen:R[1]||(R[1]=M=>w(M)),onClose:R[2]||(R[2]=(M,P)=>m(M,P)),onRemove:R[4]||(R[4]=(M,P)=>g("remove",M,P)),onTag:R[5]||(R[5]=(M,P)=>g("tag",M,P)),placeholder:t.placeholder,label:t.itemLabel,"track-by":t.trackBy,"close-on-select":t.closeOnSelect,"show-labels":t.showLabels,disabled:t.disabled,"allow-empty":t.allowEmpty,"select-label":t.selectLabel,"preserve-search":!0,"selected-label":t.selectedLabel,"use-teleport":t.useTeleport,class:["dsg-input--multiselect",{"dsg-input--multiselect--has-errors":t.errors&&t.errors.length,"dsg-input--multiselect--disabled":t.disabled}],"content-wrapper-class":f.value},C.$attrs),{selection:u.withCtx(()=>[t.icon?(u.openBlock(),u.createBlock(F._sfc_main,{key:0,icon:t.icon,size:"md",class:"dsg-untitled-icon text-gray-500 transition-all duration-200 ease-in-out inline-block mr-2"},null,8,["icon"])):u.createCommentVNode("",!0)]),caret:u.withCtx(({toggle:M})=>[u.createElementVNode("div",{onMousedown:u.withModifiers(P=>M(),["prevent","stop"]),class:"multiselect__select"},[u.createVNode(F._sfc_main,{icon:"chevron-down"})],40,iu)]),option:u.withCtx(({option:M})=>[u.createElementVNode("span",{class:"option-label",textContent:u.toDisplayString(M[t.itemLabel])},null,8,au),u.createElementVNode("span",ou,[u.createVNode(F._sfc_main,{icon:"check",size:"sm",class:"option-icon text-brand-600"})])]),singleLabel:u.withCtx(({option:M})=>[u.renderSlot(C.$slots,"singleLabel",{option:M},()=>[u.createElementVNode("span",{textContent:u.toDisplayString(M?.[t.itemLabel])},null,8,su)])]),_:3},16,["modelValue","options","multiple","onSearchChange","placeholder","label","track-by","close-on-select","show-labels","disabled","allow-empty","select-label","selected-label","use-teleport","content-wrapper-class","class"]),c.value&&c.value.length?(u.openBlock(),u.createElementBlock("div",lu,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value,(M,P)=>(u.openBlock(),u.createElementBlock("span",{class:"dsg-input--error",key:P},u.toDisplayString(M),1))),128))])):u.createCommentVNode("",!0)],2))}}),cu=["name"],fu=["selected"],du=["value","selected"],hu=u.defineComponent({__name:"DsgInputDropdown",props:u.mergeModels({name:{default:""},placeholder:{default:""},classes:{default:""},options:{default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=u.useModel(t,"modelValue");return(r,n)=>u.withDirectives((u.openBlock(),u.createElementBlock("select",{class:u.normalizeClass(["dsg-input-dropdown",t.classes]),name:t.name,"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i)},[t.placeholder?(u.openBlock(),u.createElementBlock("option",{key:0,value:"",disabled:"",selected:e.value===""},u.toDisplayString(t.placeholder),9,fu)):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.options,(i,a)=>(u.openBlock(),u.createElementBlock("option",{key:a,value:i.value,selected:e.value===i.value},u.toDisplayString(i.label),9,du))),128))],10,cu)),[[u.vModelSelect,e.value]])}}),vu=["href","title","target"],pu={key:0,class:"dsg-link--label"},gu=u.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)=>(u.openBlock(),u.createElementBlock("a",{href:t.href,title:"Link: "+t.label,target:t.uriTarget,class:u.normalizeClass(u.unref(r)),onClick:i},[u.renderSlot(a.$slots,"dsg-link-content",{},()=>[t.label?(u.openBlock(),u.createElementBlock("span",pu,u.toDisplayString(t.label),1)):u.createCommentVNode("",!0)])],10,vu))}}),xu={key:1,class:"dsg-modal__header-text"},yu={key:0,class:"dsg-modal__header-title"},mu={key:1,class:"dsg-modal__header-description"},wu={key:1,class:"dsg-modal__body"},la=u.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=u.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")},c=()=>{n("primary-button-clicked")};return e({open:a,close:o,secondaryButtonClicked:l,primaryButtonClicked:c}),(f,d)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["dsg-modal",`dsg-modal--${i.value?"open":"closed"}`])},[t.hasBackground?(u.openBlock(),u.createElementBlock("div",{key:0,class:"dsg-modal__background",onDblclick:s},null,32)):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(["dsg-modal__wrapper",t.wrapperClasses]),style:u.normalizeStyle({width:t.width})},[t.hasClosedButton?(u.openBlock(),u.createBlock(F._sfc_main$3,{key:0,theme:"gray-tertiary",iconBefore:"x",size:"lg",class:u.normalizeClass(["dsg-modal__close-button",`dsg-modal__close-button--${t.type}`]),onClick:o},null,8,["class"])):u.createCommentVNode("",!0),u.renderSlot(f.$slots,"dsg-modal__header",{},()=>[u.createElementVNode("div",{class:u.normalizeClass(["dsg-modal__header",[`dsg-modal__header--${t.type}`,`${f.$slots.default?"dsg-modal__header--with-body":""}`].join(" ")])},[t.miscIcon?(u.openBlock(),u.createBlock(It,u.normalizeProps(u.mergeProps({key:0},t.miscIcon)),null,16)):u.createCommentVNode("",!0),t.title||t.description?(u.openBlock(),u.createElementBlock("div",xu,[t.title?(u.openBlock(),u.createElementBlock("h3",yu,u.toDisplayString(t.title),1)):u.createCommentVNode("",!0),t.description?(u.openBlock(),u.createElementBlock("p",mu,u.toDisplayString(t.description),1)):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)],2)]),f.$slots.default?(u.openBlock(),u.createElementBlock("div",wu,[u.renderSlot(f.$slots,"default")])):u.createCommentVNode("",!0),u.renderSlot(f.$slots,"dsg-modal__footer",{},()=>[u.createElementVNode("div",{class:u.normalizeClass(["dsg-modal__footer",`dsg-modal__footer--${t.footerType}`])},[t.secondaryButton?(u.openBlock(),u.createBlock(F._sfc_main$3,u.mergeProps({key:0},t.secondaryButton,{onButtonClicked:l,classes:"dsg-modal__secondary-button"}),null,16)):u.createCommentVNode("",!0),t.primaryButton?(u.openBlock(),u.createBlock(F._sfc_main$3,u.mergeProps({key:1},t.primaryButton,{onButtonClicked:c,classes:"dsg-dsg-modal__primary-button"}),null,16)):u.createCommentVNode("",!0)],2)])],6)],2))}}),Eu={class:"dsg-tag--before"},Au={class:"dsg-tag--label"},Cu={class:"dsg-tag--after"},_u={key:0,class:"dsg-tag--count"},bu=u.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 F.DsgPropSyntaxWarning("DsgTag: 'hasClose' and 'tagCount' props are mutually exclusive. Please use only one of them."),t.avatarUri&&t.dotHex&&new F.DsgPropSyntaxWarning("DsgTag: 'avatarUri' and 'dotHex' props are mutually exclusive. Please use only one of them.");const a=r,o=u.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,y)=>{a("before-checked",g,y)},c=g=>{a("after-checked",g)},f=u.ref(t.tagCount),d=g=>{f.value=g},v=u.ref(t.value);return e({setTagCount:d,setValue:g=>{v.value=g},getValue:()=>v.value}),(g,y)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n)),ref:"dsgTag"},[u.createElementVNode("div",Eu,[t.hasCheckbox?(u.openBlock(),u.createBlock(F._sfc_main$2,{key:0,class:"dsg-tag--checkbox",size:i(),"no-focus":!0,onBeforeChecked:l,onAfterChecked:c},null,8,["size"])):u.createCommentVNode("",!0),t.avatarUri?(u.openBlock(),u.createBlock(or,{key:1,"profile-uri":t.avatarUri,size:"xxs","no-focus":!0,class:"dsg-tag--avatar"},null,8,["profile-uri"])):u.createCommentVNode("",!0),t.dotHex?(u.openBlock(),u.createElementBlock("span",{key:2,class:"dsg-tag--dot",style:u.normalizeStyle({backgroundColor:t.dotHex})},null,4)):u.createCommentVNode("",!0)]),u.renderSlot(g.$slots,"dsg-tag--label",{},()=>[u.createElementVNode("span",Au,u.toDisplayString(t.label),1)]),u.createElementVNode("div",Cu,[f.value&&f.value>0?(u.openBlock(),u.createElementBlock("div",_u,u.toDisplayString(f.value),1)):u.createCommentVNode("",!0),t.hasClose?(u.openBlock(),u.createBlock(F._sfc_main,{key:1,icon:"x-close",class:"dsg-tag--close",onClick:s})):u.createCommentVNode("",!0)])],2))}}),Su={class:"dsg-toggle--element"},Iu=["checked","disabled"],Ou={key:0,class:"dsg-toggle--label-wrapper"},Tu=["innerHTML"],Nu=["innerHTML"],Du=u.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=u.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=u.useTemplateRef("toggleCheckbox"),s=()=>{o.value&&o.value.focus(),t.disabled||a()},l=r;return e({set:f=>{i.value=f}}),(f,d)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(u.unref(n)),onClick:s},[u.createElementVNode("label",Su,[u.createElementVNode("input",{type:"checkbox",class:"dsg-toggle--checkbox",checked:i.value,onChange:a,title:"checkbox",ref:"toggleCheckbox",disabled:t.disabled},null,40,Iu),d[0]||(d[0]=u.createElementVNode("span",{class:"dsg-toggle--slider"},null,-1))]),t.label.length?(u.openBlock(),u.createElementBlock("div",Ou,[u.renderSlot(f.$slots,"dsg-toggle--label",{},()=>[u.createElementVNode("h3",{class:"dsg-toggle--label",innerHTML:t.label},null,8,Tu)]),t.label.length&&t.subText.length?u.renderSlot(f.$slots,"dsg-toggle--subtext",{key:0},()=>[u.createElementVNode("p",{class:"dsg-toggle--subtext",innerHTML:t.subText},null,8,Nu)]):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)],2))}}),Bu={class:"dsg-progress"},Ru={class:"dsg-progress--inner"},Pu={key:0,class:"text-sm text-gray-700 min-w-[60px] text-right"},ku={key:0},Mu={key:1},Lu={key:2},Fu=u.defineComponent({__name:"DsgProgress",props:{value:{},max:{},showText:{},textSuffix:{}},setup(t){const e=t,r=u.computed(()=>{const n=e.value/e.max*100;return isNaN(n)?0:Math.min(Math.max(n,0),100)});return(n,i)=>(u.openBlock(),u.createElementBlock("div",Bu,[u.createElementVNode("div",Ru,[u.createElementVNode("div",{class:"dsg-progress--inner--progress",style:u.normalizeStyle({width:r.value+"%"})},null,4)]),t.showText!=="none"?(u.openBlock(),u.createElementBlock("div",Pu,[t.showText==="number"?(u.openBlock(),u.createElementBlock("span",ku,u.toDisplayString(t.value)+"/"+u.toDisplayString(t.max),1)):t.showText==="percentage"?(u.openBlock(),u.createElementBlock("span",Mu,u.toDisplayString(r.value.toFixed(2))+"%",1)):u.createCommentVNode("",!0),t.textSuffix?(u.openBlock(),u.createElementBlock("span",Lu," "+u.toDisplayString(t.textSuffix),1)):u.createCommentVNode("",!0)])):u.createCommentVNode("",!0)]))}});function Vu(t,e){var r=Object.setPrototypeOf;r?r(t,e):t.__proto__=e}function Uu(t,e){e===void 0&&(e=t.constructor);var r=Error.captureStackTrace;r&&r(t,e)}var $u=(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)}})(),Hu=(function(t){$u(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}),Vu(a,i.prototype),Uu(a),a}return e})(Error),Gu=(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)}})(),Ie=(function(t){Gu(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})(Hu),zu=(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)}})(),Ve=(function(t){zu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArgumentException",e})(Ie),Wu=(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)}})(),U=(function(t){Wu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e})(Ie),Xu=(function(){function t(e){if(this.binarizer=e,e===null)throw new U("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})(),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)}})(),we=(function(t){ju(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e})(Ie),Ku=(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})(),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)}})(),Gn=(function(t){Yu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e})(Ie),qu=(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)}})(),gi=(function(t){qu(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})(Gn),Zu=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.")},Be=(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 U("fromIndex("+r+") > toIndex("+n+")");if(r<0)throw new gi(r);if(n>e)throw new gi(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=Zu(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})(),z=(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+z.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+z.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 U;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,c=(2<<l)-(1<<s);a[o]|=c}}},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 U;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,c=s<a?31:r&31,f=(2<<c)-(1<<l)&4294967295;if((o[s]&f)!==(n?f: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 U("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 U("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 c=e[a];l|=c<<32-s,e[a-1]=l,l=c>>>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&&Be.equals(this.bits,r.bits)},t.prototype.hashCode=function(){return 31*this.size+Be.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})(),_n;(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"})(_n||(_n={}));const le=_n;var Qu=(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)}})(),k=(function(t){Qu(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getFormatInstance=function(){return new e},e.kind="FormatException",e})(Ie),Ju=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 he=(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,c=0,f=l.length;c!==f;c++){var d=l[c];t.VALUES_TO_ECI.set(d,this)}try{for(var v=Ju(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 k("incorect value");var r=t.VALUES_TO_ECI.get(e);if(r===void 0)throw new k("incorect value");return r},t.getCharacterSetECIByName=function(e){var r=t.NAME_TO_ECI.get(e);if(r===void 0)throw new k("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})(),ec=(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)}})(),Br=(function(t){ec(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e})(Ie),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 he?e:he.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(he.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new Br("Encoding "+this.encodingName(r)+" not supported by fallback.")},t.isDecodeFallbackSupported=function(e){return e.equals(he.UTF8)||e.equals(he.ISO8859_1)||e.equals(he.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,c=0,f=0,d=0,v=0,h=0,p=0,g=0,y=0,w=0,m=e.length>3&&e[0]===239&&e[1]===187&&e[2]===191,E=0;E<n&&(i||a||o);E++){var _=e[E]&255;o&&(s>0?(_&128)===0?o=!1:s--:(_&128)!==0&&((_&64)===0?o=!1:(s++,(_&32)===0?l++:(s++,(_&16)===0?c++:(s++,(_&8)===0?f++:o=!1))))),i&&(_>127&&_<160?i=!1:_>159&&(_<192||_===215||_===247)&&w++),a&&(d>0?_<64||_===127||_>252?a=!1:d--:_===128||_===160||_>239?a=!1:_>160&&_<224?(v++,p=0,h++,h>g&&(g=h)):_>127?(d++,h=0,p++,p>y&&(y=p)):(h=0,p=0))}return o&&s>0&&(o=!1),a&&d>0&&(a=!1),o&&(m||l+c+f>0)?t.UTF8:a&&(t.ASSUME_SHIFT_JIS||g>=3||y>=3)?t.SHIFT_JIS:i&&a?g===2&&v===2||w*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,c,f,d,v){if(s==="%%")return"%";if(r[++i]!==void 0){s=f?parseInt(f.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(c),y=c&&c[0]+""=="0"?"0":" ";p.length<g;)p=l!==void 0?p+y:y+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=he.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=he.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=he.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t})(),ee=(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 U("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 U("stringRepresentation cannot be null");for(var i=new Array(e.length),a=0,o=0,s=-1,l=0,c=0;c<e.length;)if(e.charAt(c)===`
|
|
13
13
|
`||e.charAt(c)==="\r"){if(a>o){if(s===-1)s=a-o;else if(a-o!==s)throw new U("row lengths do not match");o=a,l++}c++}else if(e.substring(c,c+r.length)===r)c+=r.length,i[a]=!0,a++;else if(e.substring(c,c+n.length)===n)c+=n.length,i[a]=!1,a++;else throw new U("illegal character encountered: "+e.substring(c));if(a>o){if(s===-1)s=a-o;else if(a-o!==s)throw new U("row lengths do not match");l++}for(var f=new t(s,l),d=0;d<a;d++)i[d]&&f.set(Math.floor(d%s),Math.floor(d/s));return f},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 U("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(),c=0;c<n;c++)i[s+c]^=l[c]},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 U("Left and top must be nonnegative");if(i<1||n<1)throw new U("Height and width must be at least 1");var a=e+n,o=r+i;if(o>this.height||a>this.width)throw new U("The region must fit inside the matrix");for(var s=this.rowSize,l=this.bits,c=r;c<o;c++)for(var f=c*s,d=e;d<a;d++)l[f+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,c=0;c<r;c++)for(var f=0;f<n;f++){var d=i[c*n+f];if(d!==0){if(c<o&&(o=c),c>l&&(l=c),f*32<a){for(var v=0;(d<<31-v&4294967295)===0;)v++;f*32+v<a&&(a=f*32+v)}if(f*32+31>s){for(var v=31;!(d>>>v);)v--;f*32+v>s&&(s=f*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&&Be.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+Be.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 ee,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})(),tc=(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)}})(),S=(function(t){tc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e})(Ie),rc=(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)}})(),nc=(function(t){rc(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 c=e.estimateBlackPoint(s);if(a<3)for(var l=0;l<a;l++)(o[l]&255)<c&&n.set(l);else for(var f=o[0]&255,d=o[1]&255,l=1;l<a-1;l++){var v=o[l+1]&255;(d*4-f-v)/2<c&&n.set(l),f=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),c=r.getRow(l,this.luminances),f=Math.floor(n*4/5),d=Math.floor(n/5);d<f;d++){var v=c[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,c=0,s=0;s<n;s++){var f=s-a,d=r[s]*f*f;d>c&&(l=s,c=d)}if(a>l){var v=a;a=l,l=v}if(l-a<=n/16)throw new S;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})(Ku),ic=(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)}})(),ac=(function(t){ic(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),c=new Ze(n,i);e.calculateThresholdForBlock(a,o,s,n,i,l,c),this.matrix=c}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 c=o-e.BLOCK_SIZE,f=a-e.BLOCK_SIZE,d=0;d<i;d++){var v=d<<e.BLOCK_SIZE_POWER;v>c&&(v=c);for(var h=e.cap(d,2,i-3),p=0;p<n;p++){var g=p<<e.BLOCK_SIZE_POWER;g>f&&(g=f);for(var y=e.cap(p,2,n-3),w=0,m=-2;m<=2;m++){var E=s[h+m];w+=E[y-2]+E[y-1]+E[y]+E[y+1]+E[y+2]}var _=w/25;e.thresholdBlock(r,g,v,_,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,c=i*o+n;l<e.BLOCK_SIZE;l++,c+=o)for(var f=0;f<e.BLOCK_SIZE;f++)(r[c+f]&255)<=a&&s.set(n+f,i+l)},e.calculateBlackPoints=function(r,n,i,a,o){for(var s=o-e.BLOCK_SIZE,l=a-e.BLOCK_SIZE,c=new Array(i),f=0;f<i;f++){c[f]=new Int32Array(n);var d=f<<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,y=0,w=0,m=d*a+h;w<e.BLOCK_SIZE;w++,m+=a){for(var E=0;E<e.BLOCK_SIZE;E++){var _=r[m+E]&255;p+=_,_<g&&(g=_),_>y&&(y=_)}if(y-g>e.MIN_DYNAMIC_RANGE)for(w++,m+=a;w<e.BLOCK_SIZE;w++,m+=a)for(var E=0;E<e.BLOCK_SIZE;E++)p+=r[m+E]&255}var I=p>>e.BLOCK_SIZE_POWER*2;if(y-g<=e.MIN_DYNAMIC_RANGE&&(I=g/2,f>0&&v>0)){var B=(c[f-1][v]+2*c[f][v-1]+c[f-1][v-1])/4;g<B&&(I=B)}c[f][v]=I}}return c},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})(nc),Wr=(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 Br("This luminance source does not support cropping.")},t.prototype.isRotateSupported=function(){return!1},t.prototype.rotateCounterClockwise=function(){throw new Br("This luminance source does not support rotation by 90 degrees.")},t.prototype.rotateCounterClockwise45=function(){throw new Br("This luminance source does not support rotation by 45 degrees.")},t.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),r=new ee,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})(),oc=(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){oc(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})(Wr),sc=(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)}})(),lc=(function(t){sc(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 c=void 0,f=r[o+3];if(f===0)c=255;else{var d=r[o],v=r[o+1],h=r[o+2];c=306*d+601*v+117*h+512>>10}a[s]=c}return a},e.prototype.getRow=function(r,n){if(r<0||r>=this.getHeight())throw new U("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),c=Math.ceil(Math.abs(Math.sin(a))*o+Math.abs(Math.cos(a))*s);return n.width=l,n.height=c,i.translate(l/2,c/2),i.rotate(a),i.drawImage(this.canvas,o/-2,s/-2),this.buffer=e.makeBufferFromCanvasImageData(n),this},e.prototype.invert=function(){return new zn(this)},e.DEGREE_TO_RADIANS=Math.PI/180,e})(Wr),uc=(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})(),Ce=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(f){try{c(n.next(f))}catch(d){o(d)}}function l(f){try{c(n.throw(f))}catch(d){o(d)}}function c(f){f.done?a(f.value):i(f.value).then(s,l)}c((n=n.apply(t,e||[])).next())})},_e=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(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(f){c=[6,f],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cc=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.")},Ut=(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 Ce(this,void 0,void 0,function(){var e,r,n,i,a,o,s,l,c,f,d,v;return _e(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=cc(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),c=a.groupId,f={deviceId:s,label:l,kind:o,groupId:c},r.push(f))}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 Ce(this,void 0,void 0,function(){var e;return _e(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 uc(n.deviceId,n.label)})]}})})},t.prototype.findDeviceById=function(e){return Ce(this,void 0,void 0,function(){var r;return _e(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 Ce(this,void 0,void 0,function(){return _e(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 Ce(this,void 0,void 0,function(){var n,i;return _e(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 Ce(this,void 0,void 0,function(){var n;return _e(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 Ce(this,void 0,void 0,function(){var n,i;return _e(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 Ce(this,void 0,void 0,function(){return _e(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 Ce(this,void 0,void 0,function(){var i,a;return _e(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 Ce(this,void 0,void 0,function(){var i;return _e(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 Ce(this,void 0,void 0,function(){var i;return _e(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 Ce(this,void 0,void 0,function(){var n;return _e(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 Ce(this,void 0,void 0,function(){return _e(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 Ve("element with id '"+e+"' not found");if(n.nodeName.toLowerCase()!==r.toLowerCase())throw new Ve("element with id '"+e+"' must be an "+r+" element");return n},t.prototype.decodeFromImage=function(e,r){if(!e&&!r)throw new Ve("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 Ve("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 Ve("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 Ve("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 Ve("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 Ve("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 Ve("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 Ve("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 Ce(this,void 0,void 0,function(){return _e(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 Ce(this,void 0,void 0,function(){return _e(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 S("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 c=r&&v instanceof S,f=v instanceof we||v instanceof k,d=f&&n;if(c||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 we||l instanceof k,s=l instanceof S;(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 lc(r),i=new ac(n);return new Xu(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})(),Re=(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})(),bn;(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"})(bn||(bn={}));const $=bn;var Sn;(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"})(Sn||(Sn={}));const Ee=Sn;var Xr=(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 U;return this.logTable[e]},t.addOrSubtract=function(e,r){return e^r},t})(),st=(function(){function t(e,r){if(r.length===0)throw new U;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 U("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 U("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 c=r[l],f=0;f<a;f++)o[l+f]=er.addOrSubtract(o[l+f],s.multiply(c,i[f]));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 U;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 U("GenericGFPolys do not have same GenericGF field");if(e.isZero())throw new U("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),c=e.multiplyByMonomial(s,l),f=r.buildMonomial(s,l);n=n.addOrSubtract(f),i=i.addOrSubtract(c)}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})(),fc=(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)}})(),ua=(function(t){fc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ArithmeticException",e})(Ie),dc=(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){dc(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 c=new Int32Array(n),l=0;l<n-1;l++)c[o[l]]=l;return a.logTable=c,a.zero=new st(a,Int32Array.from([0])),a.one=new st(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 U;if(n===0)return this.zero;var i=new Int32Array(r+1);return i[0]=n,new st(this,i)},e.prototype.inverse=function(r){if(r===0)throw new ua;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"+z.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),hc=(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)}})(),Er=(function(t){hc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="ReedSolomonException",e})(Ie),vc=(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){vc(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.kind="IllegalStateException",e})(Ie),jr=(function(){function t(e){this.field=e}return t.prototype.decode=function(e,r){for(var n=this.field,i=new st(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 c=new st(n,a),f=this.runEuclideanAlgorithm(n.buildMonomial(r,1),c,r),d=f[0],v=f[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 Er("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(),c=a.getOne();s.getDegree()>=(n/2|0);){var f=o,d=l;if(o=s,l=c,o.isZero())throw new Er("r_{i-1} was zero");s=f;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(),y=a.multiply(s.getCoefficient(s.getDegree()),p);v=v.addOrSubtract(a.buildMonomial(g,y)),s=s.addOrSubtract(o.multiplyByMonomial(g,y))}if(c=v.multiply(l).addOrSubtract(d),s.getDegree()>=o.getDegree())throw new hr("Division algorithm failed to reduce polynomial?")}var w=c.getCoefficient(0);if(w===0)throw new Er("sigmaTilde(0) was zero");var m=a.inverse(w),E=c.multiplyScalar(m),_=s.multiplyScalar(m);return[E,_]},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 Er("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,c=0;c<n;c++)if(o!==c){var f=a.multiply(r[c],s),d=(f&1)===0?f|1:f&-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})(),xe;(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"})(xe||(xe={}));var xi=(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 Xr(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=xe.UPPER,i=xe.UPPER,a="",o=0;o<r;)if(i===xe.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 c=t.readCode(e,o,8);a+=re.castAsNonUtf8Char(c),o+=8}i=n}else{var f=i===xe.DIGIT?4:5;if(r-o<f)break;var c=t.readCode(e,o,f);o+=f;var d=t.getCharacter(i,c);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 xe.LOWER;case"P":return xe.PUNCT;case"M":return xe.MIXED;case"D":return xe.DIGIT;case"B":return xe.BINARY;case"U":default:return xe.UPPER}},t.getCharacter=function(e,r){switch(e){case xe.UPPER:return t.UPPER_TABLE[r];case xe.LOWER:return t.LOWER_TABLE[r];case xe.MIXED:return t.MIXED_TABLE[r];case xe.PUNCT:return t.PUNCT_TABLE[r];case xe.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 k;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 c=new jr(r);c.decode(s,a-i)}catch(y){throw new k(y)}for(var f=(1<<n)-1,d=0,l=0;l<i;l++){var v=s[l];if(v===0||v===f)throw new k;(v===1||v===f-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===f-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*z.truncDivision(z.truncDivision(i,2)-1,15),c=i/2,f=z.truncDivision(l,2),s=0;s<c;s++){var d=s+z.truncDivision(s,15);a[c-s-1]=f-d-1,a[c+s]=f+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,y=0;y<h;y++)for(var w=y*2,m=0;m<2;m++)o[v+w+m]=e.get(a[p+m],a[p+y]),o[v+2*h+w+m]=e.get(a[p+y],a[g-m]),o[v+4*h+w+m]=e.get(a[g-m],a[g-y]),o[v+6*h+w+m]=e.get(a[g-y],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
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcodegroup-au/dsg-vue",
|
|
3
3
|
"description": "Front-end Vue/Tailwind DSG for UntitledUI.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.24",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"preinstall": "npx only-allow pnpm",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"@eslint/js": "^9.39.2",
|
|
107
107
|
"@testing-library/vue": "^8.1.0",
|
|
108
108
|
"@types/eslint": "^9.6.1",
|
|
109
|
-
"@types/node": "^22.19.
|
|
109
|
+
"@types/node": "^22.19.11",
|
|
110
110
|
"@types/uuid": "^10.0.0",
|
|
111
111
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
112
112
|
"@vue/eslint-config-typescript": "^14.6.0",
|