@beterdichtbij/component-library 0.58.2 → 0.58.4

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.
@@ -1297,7 +1297,7 @@ ${t.slice(l+2)}`,d+=1;else break}t.push({indent:l,number:parseInt(s,10),content:
1297
1297
  `)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(FM,this.editor.getAttributes(IM)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=OO({find:LM,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=OO({find:LM,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(IM)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),zM=/^\s*(\[([( |x])?\])\s$/,BM=BO.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,UE(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>RO(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`),l=e=>{var t;s.ariaLabel=((t=this.options.a11y)?.checkboxLabel)?.call(t,e,s.checked)||`Task item checkbox for ${e.textContent||`empty task item`}`};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=WE(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}},addInputRules(){return[OO({find:zM,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),VM=BO.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,UE(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,`
1298
1298
  `):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=LO(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);return t?[{type:`taskList`,raw:t.raw,items:t.items}]:n.blockTokens(e)},i=LO(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});dO.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(_M.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(vM.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(kM.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(RM.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(BM.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(VM.configure(this.options.taskList)),e}});var HM=vM,UM=_M,WM=RM,GM=BO.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,UE(this.options.HTMLAttributes,e)]},renderText(){return`
1299
1299
  `},renderMarkdown:()=>`
1300
- `,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});function KM(e){let{char:t,allowSpaces:n,allowToIncludeChar:r,allowedPrefixes:i,startOfLine:a,$position:o}=e,s=n&&!r,c=kO(t),l=RegExp(`\\s${c}$`),u=a?`^`:``,d=r?``:c,f=RegExp(s?`${u}${c}.*?(?=\\s${d}|$)`:`${u}(?:^)?${c}[^\\s${d}]*`,`gm`),p=o.nodeBefore?.isText&&o.nodeBefore.text;if(!p)return null;let m=o.pos-p.length,h=Array.from(p.matchAll(f)).pop();if(!h||h.input===void 0||h.index===void 0)return null;let g=h.input.slice(Math.max(0,h.index-1),h.index),_=RegExp(`^[${i?.join(``)}\0]?$`).test(g);if(i!==null&&!_)return null;let v=m+h.index,y=v+h[0].length;return s&&l.test(p.slice(y-1,y+1))&&(h[0]+=` `,y+=1),v<o.pos&&y>=o.pos?{range:{from:v,to:y},query:h[0].slice(t.length),text:h[0]}:null}var qM=new By(`suggestion`);function JM({pluginKey:e=qM,editor:t,char:n=`@`,allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:a=[` `],startOfLine:o=!1,decorationTag:s=`span`,decorationClass:c=`suggestion`,decorationContent:l=``,decorationEmptyClass:u=`is-empty`,command:d=()=>null,items:f=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:h=KM,shouldShow:g}){let _,v=p?.(),y=()=>{let e=t.state.selection.$anchor.pos,{top:n,right:r,bottom:i,left:a}=t.view.coordsAtPos(e);try{return new DOMRect(a,n,r-a,i-n)}catch{return null}},b=(n,r)=>r?()=>{let r=e.getState(t.state)?.decorationId;return n.dom.querySelector(`[data-decoration-id="${r}"]`)?.getBoundingClientRect()||null}:y;function x(n,r){var i;try{let r=e.getState(n.state),a=r?.decorationId?n.dom.querySelector(`[data-decoration-id="${r.decorationId}"]`):null,o={editor:t,range:r?.range||{from:0,to:0},query:r?.query||null,text:r?.text||null,items:[],command:e=>d({editor:t,range:r?.range||{from:0,to:0},props:e}),decorationNode:a,clientRect:b(n,a)};(i=v?.onExit)==null||i.call(v,o)}catch{}let a=n.state.tr.setMeta(r,{exit:!0});n.dispatch(a)}let S=new Ly({key:e,view(){return{update:async(e,n)=>{var r,i,a,o,s;let c=this.key?.getState(n),l=this.key?.getState(e.state),u=c.active&&l.active&&c.range.from!==l.range.from,p=!c.active&&l.active,m=c.active&&!l.active,h=!p&&!m&&c.query!==l.query,g=p||u&&h,y=h||u,x=m||u&&h;if(!g&&!y&&!x)return;let S=x&&!g?c:l,C=e.dom.querySelector(`[data-decoration-id="${S.decorationId}"]`);_={editor:t,range:S.range,query:S.query,text:S.text,items:[],command:e=>d({editor:t,range:S.range,props:e}),decorationNode:C,clientRect:b(e,C)},g&&((r=v?.onBeforeStart)==null||r.call(v,_)),y&&((i=v?.onBeforeUpdate)==null||i.call(v,_)),(y||g)&&(_.items=await f({editor:t,query:S.query})),x&&((a=v?.onExit)==null||a.call(v,_)),y&&((o=v?.onUpdate)==null||o.call(v,_)),g&&((s=v?.onStart)==null||s.call(v,_))},destroy:()=>{var e;_&&((e=v?.onExit)==null||e.call(v,_))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(s,c,l,u){let{isEditable:d}=t,{composing:f}=t.view,{selection:p}=s,{empty:_,from:v}=p,y={...c},b=s.getMeta(e);if(b&&b.exit)return y.active=!1,y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null,y;if(y.composing=f,d&&(_||t.view.composing)){(v<c.range.from||v>c.range.to)&&!f&&!c.composing&&(y.active=!1);let e=h({char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:a,startOfLine:o,$position:p.$from}),l=`id_${Math.floor(Math.random()*4294967295)}`;e&&m({editor:t,state:u,range:e.range,isActive:c.active})&&(!g||g({editor:t,range:e.range,query:e.query,text:e.text,transaction:s}))?(y.active=!0,y.decorationId=c.decorationId?c.decorationId:l,y.range=e.range,y.query=e.query,y.text=e.text):y.active=!1}else y.active=!1;return y.active||(y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null),y}},props:{handleKeyDown(n,r){var i;let{active:a,range:o}=S.getState(n.state);if(!a)return!1;if(r.key===`Escape`||r.key===`Esc`){let a=S.getState(n.state),o=_?.decorationNode??null??(a?.decorationId?n.dom.querySelector(`[data-decoration-id="${a.decorationId}"]`):null);if((v?.onKeyDown)?.call(v,{view:n,event:r,range:a.range}))return!0;let s={editor:t,range:a.range,query:a.query,text:a.text,items:[],command:e=>d({editor:t,range:a.range,props:e}),decorationNode:o,clientRect:o?()=>o.getBoundingClientRect()||null:null};return(i=v?.onExit)==null||i.call(v,s),x(n,e),!0}return(v?.onKeyDown)?.call(v,{view:n,event:r,range:o})||!1},decorations(e){let{active:t,range:n,decorationId:r,query:i}=S.getState(e);if(!t)return null;let a=!i?.length,o=[c];return a&&o.push(u),fw.create(e.doc,[lw.inline(n.from,n.to,{nodeName:s,class:o.join(` `),"data-decoration-id":r,"data-decoration-content":l})])}}});return S}function YM({editor:e,overrideSuggestionOptions:t,extensionName:n,char:r=`@`}){return{editor:e,char:r,pluginKey:new By,command:({editor:e,range:t,props:i})=>{var a;(e.view.state.selection.$to.nodeAfter?.text)?.startsWith(` `)&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:n,attrs:{...i,mentionSuggestionChar:r}},{type:`text`,text:` `}]).run(),(a=e.view.dom.ownerDocument.defaultView?.getSelection())==null||a.collapseToEnd()},allow:({state:e,range:t})=>{let r=e.doc.resolve(t.from),i=e.schema.nodes[n];return!!r.parent.type.contentMatch.matchType(i)},...t}}function XM(e){return(e.options.suggestions.length?e.options.suggestions:[e.options.suggestion]).map(t=>YM({editor:e.editor,overrideSuggestionOptions:t,extensionName:e.name,char:t.char}))}function ZM(e,t){let n=XM(e);return n.find(e=>e.char===t)||(n.length?n[0]:null)}var QM=BO.create({name:`mention`,priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:e,suggestion:t}){return`${t?.char??`@`}${e.attrs.label??e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t,suggestion:n}){return[`span`,UE(this.HTMLAttributes,e.HTMLAttributes),`${n?.char??`@`}${t.attrs.label??t.attrs.id}`]},suggestions:[],suggestion:{}}},group:`inline`,inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute(`data-id`),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute(`data-label`),renderHTML:e=>e.label?{"data-label":e.label}:{}},mentionSuggestionChar:{default:`@`,parseHTML:e=>e.getAttribute(`data-mention-suggestion-char`),renderHTML:e=>({"data-mention-suggestion-char":e.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){let n=ZM(this,e.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn(`renderLabel is deprecated use renderText and renderHTML instead`),[`span`,UE({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e,suggestion:n})];let r={...this.options};r.HTMLAttributes=UE({"data-type":this.name},this.options.HTMLAttributes,t);let i=this.options.renderHTML({options:r,node:e,suggestion:n});return typeof i==`string`?[`span`,UE({"data-type":this.name},this.options.HTMLAttributes,t),i]:i},...IO({nodeName:`mention`,name:`@`,selfClosing:!0,allowedAttributes:[`id`,`label`,{name:`mentionSuggestionChar`,skipIfDefault:`@`}],parseAttributes:e=>{let t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);for(;r!==null;){let[,i,a,o]=r;t[i===`char`?`mentionSuggestionChar`:i]=a??o,r=n.exec(e)}return t},serializeAttributes:e=>Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>`${e===`mentionSuggestionChar`?`char`:e}="${t}"`).join(` `)}),renderText({node:e}){let t={options:this.options,node:e,suggestion:ZM(this,e.attrs.mentionSuggestionChar)};return this.options.renderLabel===void 0?this.options.renderText(t):(console.warn(`renderLabel is deprecated use renderText and renderHTML instead`),this.options.renderLabel(t))},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1,{selection:r}=t,{empty:i,anchor:a}=r;if(!i)return!1;let o=new c_,s=0;return t.doc.nodesBetween(a-1,a,(e,t)=>{if(e.type.name===this.name)return n=!0,o=e,s=t,!1}),n&&e.insertText(this.options.deleteTriggerWithBackspace?``:o.attrs.mentionSuggestionChar,s,s+o.nodeSize),n})}},addProseMirrorPlugins(){return XM(this).map(JM)}}),$M={class:`dropdown-menu show`},eN=[`onClick`],tN={__name:`BDPlaceholderList`,props:{items:Array,command:Function},setup(e,{expose:n}){let r=e,i=(0,t.ref)(0);(0,t.watch)(()=>r.items,()=>{i.value=0});let a=e=>{let t=r.items[e];t&&r.command(t)};return n({onKeyDown:({event:e})=>r.items?.length?e.key===`ArrowUp`?(i.value=(i.value+r.items.length-1)%r.items.length,!0):e.key===`ArrowDown`?(i.value=(i.value+1)%r.items.length,!0):e.key===`Enter`?(a(i.value),!0):!1:!1}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$M,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n,class:(0,t.normalizeClass)([`dropdown-item`,{active:n===i.value}]),onClick:e=>a(n)},(0,t.toDisplayString)(e.label),11,eN))),128))]))}},nN=(e=[],t)=>({items:({query:t})=>e.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())),command:({editor:e,range:t,props:n})=>{e.chain().focus().deleteRange(t).insertContent(`{${n.id}}`).run()},render:()=>{let e=null,n=n=>{let r=n.clientRect?.(),i=t?.value;if(!r||!i||!e?.element)return;let a=i.getBoundingClientRect(),o=r.left-a.left+i.scrollLeft,s=r.bottom-a.top+i.scrollTop,c=e.element;c.classList.add(`placeholder-tokens-menu`),c.style.position=`absolute`,c.style.left=`${Math.round(o)}px`,c.style.top=`${Math.round(s)}px`};return{onStart:r=>{e=new KO(tN,{props:r,editor:r.editor});let i=t?.value;i&&e.element&&i.appendChild(e.element),n(r)},onUpdate(t){e&&e.updateProps(t),n(t)},onKeyDown(t){return e?.ref?.onKeyDown?.(t)??!1},onExit(){e&&(e.destroy(),e.element?.remove())}}}}),rN={class:`popover bd-link-input-popover show bd-link-input-bottom`},iN={class:`popover-body`},aN={class:`form-label`},oN={key:0,class:`validation-text`},sN={class:`d-flex gap-2 mt-2`},cN=[`disabled`],lN=(0,t.defineComponent)({__name:`BDLinkInput`,props:{previousUrl:{}},emits:[`submit`,`cancel`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(r.previousUrl??``),o=(0,t.computed)(()=>{if(!a.value)return!!r.previousUrl;if(a.value===r.previousUrl)return!1;let e=a.value.trim().toLowerCase();return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`www.`)}),s=(0,t.computed)(()=>a.value&&a.value===r.previousUrl?`De URL is niet gewijzigd`:a.value&&!o.value?`De URL moet beginnen met http://, https:// of www.`:``),c=(0,t.computed)(()=>r.previousUrl?a.value?`Wijzigen`:`Verwijderen`:`Toevoegen`),l=()=>i(`submit`,a.value),u=()=>i(`cancel`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rN,[n[2]||=(0,t.createElementVNode)(`div`,{class:`popover-header`},`Link beheren`,-1),(0,t.createElementVNode)(`div`,iN,[(0,t.createElementVNode)(`label`,aN,[n[1]||=(0,t.createTextVNode)(` URL: `,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":n[0]||=e=>a.value=e,type:`text`,class:`form-control`,placeholder:`https://www.example.com`},null,512),[[t.vModelText,a.value]]),s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,oN,(0,t.toDisplayString)(s.value),1)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,sN,[(0,t.createElementVNode)(`button`,{type:`button`,class:`btn btn-primary btn-sm`,disabled:!o.value,onClick:l},(0,t.toDisplayString)(c.value),9,cN),(0,t.createElementVNode)(`button`,{type:`button`,class:`btn btn-secondary btn-sm`,onClick:u},` Annuleren `)])])]))}}),uN={BASIC:`basic`,FULL:`full`,FORMAT:`format`},dN={class:`attachment-list`},fN={class:`attachment-link`},pN={key:1,class:`attachment-no-download`},mN=[`href`],hN=(0,t.defineComponent)({__name:`BDAttachmentPreviewList`,props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`],setup(e,{emit:n}){let r=n,i=e=>{r(`delete`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,dN,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.files,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{class:`attachment-list__item`,key:n.CorrelationId},[(0,t.createElementVNode)(`div`,fN,[e.showDelete?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`remove`,onClick:e=>i(n),"aria-label":`verwijder`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(gi))]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),e.noDownload?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pN,[(0,t.createVNode)((0,t.unref)(ae)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(n.Naam.trim()),1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:2,href:n.downloadUrl},[(0,t.createVNode)((0,t.unref)(ae)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(n.Naam.trim()),1)],8,mN))])]))),128))]))}}),gN={class:`attachment-list`},_N={class:`attachment`},vN=[`onClick`],yN=[`src`,`alt`],bN=[`onClick`],xN=[`href`],SN={class:`btn btn-light download-button-image`},CN=[`src`,`alt`],wN=(0,t.defineComponent)({__name:`BDImageAttachmentPreviewList`,props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`,`show`],setup(e,{emit:n}){let r=e,i=n,a=e=>{i(`delete`,e)},o=(e,t)=>{e.target&&e.target.className===`img-preview`&&i(`show`,t)};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,gN,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.files,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{class:`attachment-list__item`,key:n.CorrelationId},[(0,t.createElementVNode)(`div`,_N,[e.showDelete?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`remove`,"aria-label":`verwijder`,onClick:(0,t.withModifiers)(e=>a(n),[`prevent`])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(gi))]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),r.noDownload?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,onClick:e=>o(e,n)},[(0,t.createElementVNode)(`img`,{src:n.previewUrl,class:`img-preview`,alt:n.altName,loading:`lazy`},null,8,yN)],8,vN)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,onClick:e=>o(e,n)},[r.fastDownload?((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:0,href:n.downloadUrl,class:`download-link`},[(0,t.createElementVNode)(`button`,SN,[(0,t.createVNode)((0,t.unref)(Rt))])],8,xN)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`img`,{src:n.previewUrl,alt:n.altName,class:`img-preview`,loading:`lazy`},null,8,CN)],8,bN))])]))),128))]))}}),TN=e=>e?.map(e=>e.CorrelationId),EN=e=>e.Naam.toLowerCase().endsWith(`.png`)||e.Naam.toLowerCase().endsWith(`.jpg`)||e.Naam.toLowerCase().endsWith(`.jpeg`)||e.Naam.toLowerCase().endsWith(`.gif`),DN=(e,t)=>t.DownloadUrl?t.DownloadUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlage/${t.Id}`:t.FileId?`${e}/Portaal/DownloadStandardMessageAttachment/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlage/${t.CorrelationId}`,ON=(e,t)=>t.ThumbnailUrl?t.ThumbnailUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlageThumbnail/${t.Id}`:t.StandardAttachmentId||t.standardAttachmentId?`${e}/Portaal/DownloadStandardMessageAttachmentThumbnail/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlageThumbnail/${t.CorrelationId}`,kN=(e,t)=>t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:null,AN=(e,t)=>t?EN(e):!EN(e),jN=(e=``,t,n)=>{if(t!==void 0)return t.filter(e=>AN(e,n)).map(t=>{let n=typeof t.CorrelationId==`string`?t.CorrelationId:t.CorrelationId==null?``:t.CorrelationId.toString();return{downloadUrl:DN(e,t),previewUrl:ON(e,t),fullImageUrl:kN(e,t),altName:`${t.Naam}`,...t,CorrelationId:n}})},MN=`bottom`,NN=`right`,PN=`left`,FN=`auto`,IN=[`top`,MN,NN,PN],LN=`start`,RN=`clippingParents`,zN=`viewport`,BN=`popper`,VN=`reference`,HN=IN.reduce(function(e,t){return e.concat([t+`-`+LN,t+`-end`])},[]),UN=[].concat(IN,[FN]).reduce(function(e,t){return e.concat([t,t+`-`+LN,t+`-end`])},[]),WN=`beforeRead`,GN=`read`,KN=`afterRead`,qN=`beforeMain`,JN=`main`,YN=`afterMain`,XN=`beforeWrite`,ZN=`write`,QN=`afterWrite`,$N=[WN,GN,KN,qN,JN,YN,XN,ZN,QN];function eP(e){return e?(e.nodeName||``).toLowerCase():null}function tP(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nP(e){return e instanceof tP(e).Element||e instanceof Element}function rP(e){return e instanceof tP(e).HTMLElement||e instanceof HTMLElement}function iP(e){return typeof ShadowRoot>`u`?!1:e instanceof tP(e).ShadowRoot||e instanceof ShadowRoot}function aP(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!rP(i)||!eP(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function oP(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!rP(r)||!eP(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var sP={name:`applyStyles`,enabled:!0,phase:`write`,fn:aP,effect:oP,requires:[`computeStyles`]};function cP(e){return e.split(`-`)[0]}var lP=Math.max,uP=Math.min,dP=Math.round;function fP(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function pP(){return!/^((?!chrome|android).)*safari/i.test(fP())}function mP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&rP(e)&&(i=e.offsetWidth>0&&dP(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&dP(r.height)/e.offsetHeight||1);var o=(nP(e)?tP(e):window).visualViewport,s=!pP()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function hP(e){var t=mP(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function gP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _P(e){return tP(e).getComputedStyle(e)}function vP(e){return[`table`,`td`,`th`].indexOf(eP(e))>=0}function yP(e){return((nP(e)?e.ownerDocument:e.document)||window.document).documentElement}function bP(e){return eP(e)===`html`?e:e.assignedSlot||e.parentNode||(iP(e)?e.host:null)||yP(e)}function xP(e){return!rP(e)||_P(e).position===`fixed`?null:e.offsetParent}function SP(e){var t=/firefox/i.test(fP());if(/Trident/i.test(fP())&&rP(e)&&_P(e).position===`fixed`)return null;var n=bP(e);for(iP(n)&&(n=n.host);rP(n)&&[`html`,`body`].indexOf(eP(n))<0;){var r=_P(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function CP(e){for(var t=tP(e),n=xP(e);n&&vP(n)&&_P(n).position===`static`;)n=xP(n);return n&&(eP(n)===`html`||eP(n)===`body`&&_P(n).position===`static`)?t:n||SP(e)||t}function wP(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function TP(e,t,n){return lP(e,uP(t,n))}function EP(e,t,n){var r=TP(e,t,n);return r>n?n:r}function DP(){return{top:0,right:0,bottom:0,left:0}}function OP(e){return Object.assign({},DP(),e)}function kP(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var AP=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,OP(typeof e==`number`?kP(e,IN):e)};function jP(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=cP(n.placement),c=wP(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=AP(i.padding,n),d=hP(a),f=c===`y`?`top`:PN,p=c===`y`?MN:NN,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=CP(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=TP(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function MP(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||gP(t.elements.popper,r)&&(t.elements.arrow=r))}var NP={name:`arrow`,enabled:!0,phase:`main`,fn:jP,effect:MP,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function PP(e){return e.split(`-`)[1]}var FP={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function IP(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:dP(n*i)/i||0,y:dP(r*i)/i||0}}function LP(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=PN,b=`top`,x=window;if(l){var S=CP(n),C=`clientHeight`,w=`clientWidth`;if(S===tP(n)&&(S=yP(n),_P(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=MN;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=NN;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&FP),O=u===!0?IP({x:p,y:h},tP(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function RP(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:cP(t.placement),variation:PP(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,LP(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,LP(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var zP={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:RP,data:{}},BP={passive:!0};function VP(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=tP(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,BP)}),s&&c.addEventListener(`resize`,n.update,BP),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,BP)}),s&&c.removeEventListener(`resize`,n.update,BP)}}var HP={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:VP,data:{}},UP={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function WP(e){return e.replace(/left|right|bottom|top/g,function(e){return UP[e]})}var GP={start:`end`,end:`start`};function KP(e){return e.replace(/start|end/g,function(e){return GP[e]})}function qP(e){var t=tP(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function JP(e){return mP(yP(e)).left+qP(e).scrollLeft}function YP(e,t){var n=tP(e),r=yP(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=pP();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+JP(e),y:c}}function XP(e){var t=yP(e),n=qP(e),r=e.ownerDocument?.body,i=lP(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=lP(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+JP(e),s=-n.scrollTop;return _P(r||t).direction===`rtl`&&(o+=lP(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function ZP(e){var t=_P(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function QP(e){return[`html`,`body`,`#document`].indexOf(eP(e))>=0?e.ownerDocument.body:rP(e)&&ZP(e)?e:QP(bP(e))}function $P(e,t){t===void 0&&(t=[]);var n=QP(e),r=n===e.ownerDocument?.body,i=tP(n),a=r?[i].concat(i.visualViewport||[],ZP(n)?n:[]):n,o=t.concat(a);return r?o:o.concat($P(bP(a)))}function eF(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tF(e,t){var n=mP(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function nF(e,t,n){return t===`viewport`?eF(YP(e,n)):nP(t)?tF(t,n):eF(XP(yP(e)))}function rF(e){var t=$P(bP(e)),n=[`absolute`,`fixed`].indexOf(_P(e).position)>=0&&rP(e)?CP(e):e;return nP(n)?t.filter(function(e){return nP(e)&&gP(e,n)&&eP(e)!==`body`}):[]}function iF(e,t,n,r){var i=t===`clippingParents`?rF(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=nF(e,n,r);return t.top=lP(i.top,t.top),t.right=uP(i.right,t.right),t.bottom=uP(i.bottom,t.bottom),t.left=lP(i.left,t.left),t},nF(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function aF(e){var t=e.reference,n=e.element,r=e.placement,i=r?cP(r):null,a=r?PP(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case MN:c={x:o,y:t.y+t.height};break;case NN:c={x:t.x+t.width,y:s};break;case PN:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?wP(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case LN:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function oF(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?RN:s,l=n.rootBoundary,u=l===void 0?zN:l,d=n.elementContext,f=d===void 0?BN:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=OP(typeof g==`number`?kP(g,IN):g),v=f===`popper`?VN:BN,y=e.rects.popper,b=e.elements[m?v:f],x=iF(nP(b)?b:b.contextElement||yP(e.elements.popper),c,u,o),S=mP(e.elements.reference),C=aF({reference:S,element:y,strategy:`absolute`,placement:i}),w=eF(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function sF(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?UN:c,u=PP(r),d=u?s?HN:HN.filter(function(e){return PP(e)===u}):IN,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=oF(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[cP(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function cF(e){if(cP(e)===`auto`)return[];var t=WP(e);return[KP(e),t,KP(t)]}function lF(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=cP(g)===g,v=c||(_||!m?[WP(g)]:cF(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(cP(n)===`auto`?sF(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=cP(E),O=PP(E)===LN,k=[`top`,MN].indexOf(D)>=0,A=k?`width`:`height`,j=oF(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?NN:PN:O?MN:`top`;b[A]>x[A]&&(M=WP(M));var ee=WP(M),te=[];if(a&&te.push(j[D]<=0),s&&te.push(j[M]<=0,j[ee]<=0),te.every(function(e){return e})){w=E,C=!1;break}S.set(E,te)}if(C)for(var ne=m?3:1,re=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ie=ne;ie>0&&re(ie)!==`break`;ie--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var uF={name:`flip`,enabled:!0,phase:`main`,fn:lF,requiresIfExists:[`offset`],data:{_skip:!1}};function dF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fF(e){return[`top`,NN,MN,PN].some(function(t){return e[t]>=0})}function pF(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=oF(t,{elementContext:`reference`}),s=oF(t,{altBoundary:!0}),c=dF(o,r),l=dF(s,i,a),u=fF(c),d=fF(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var mF={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:pF};function hF(e,t,n){var r=cP(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function gF(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=UN.reduce(function(e,n){return e[n]=hF(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var _F={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:gF};function vF(e){var t=e.state,n=e.name;t.modifiersData[n]=aF({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var yF={name:`popperOffsets`,enabled:!0,phase:`read`,fn:vF,data:{}};function bF(e){return e===`x`?`y`:`x`}function xF(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=oF(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=cP(t.placement),v=PP(t.placement),y=!v,b=wP(_),x=bF(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:PN,A=b===`y`?MN:NN,j=b===`y`?`height`:`width`,M=S[b],ee=M+g[k],te=M-g[A],ne=p?-w[j]/2:0,re=v===`start`?C[j]:w[j],ie=v===`start`?-w[j]:-C[j],ae=t.elements.arrow,oe=p&&ae?hP(ae):{width:0,height:0},se=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:DP(),ce=se[k],le=se[A],N=TP(0,C[j],oe[j]),ue=y?C[j]/2-ne-N-ce-E.mainAxis:re-N-ce-E.mainAxis,de=y?-C[j]/2+ne+N+le+E.mainAxis:ie+N+le+E.mainAxis,fe=t.elements.arrow&&CP(t.elements.arrow),pe=fe?b===`y`?fe.clientTop||0:fe.clientLeft||0:0,me=D?.[b]??0,he=M+ue-me-pe,ge=M+de-me,_e=TP(p?uP(ee,he):ee,M,p?lP(te,ge):te);S[b]=_e,O[b]=_e-M}if(s){var ve=b===`x`?`top`:PN,ye=b===`x`?MN:NN,be=S[x],xe=x===`y`?`height`:`width`,Se=be+g[ve],Ce=be-g[ye],we=[`top`,PN].indexOf(_)!==-1,Te=D?.[x]??0,Ee=we?Se:be-C[xe]-w[xe]-Te+E.altAxis,De=we?be+C[xe]+w[xe]-Te-E.altAxis:Ce,Oe=p&&we?EP(Ee,be,De):TP(p?Ee:Se,be,p?De:Ce);S[x]=Oe,O[x]=Oe-be}t.modifiersData[r]=O}}var SF={name:`preventOverflow`,enabled:!0,phase:`main`,fn:xF,requiresIfExists:[`offset`]};function CF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wF(e){return e===tP(e)||!rP(e)?qP(e):CF(e)}function TF(e){var t=e.getBoundingClientRect(),n=dP(t.width)/e.offsetWidth||1,r=dP(t.height)/e.offsetHeight||1;return n!==1||r!==1}function EF(e,t,n){n===void 0&&(n=!1);var r=rP(t),i=rP(t)&&TF(t),a=yP(t),o=mP(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((eP(t)!==`body`||ZP(a))&&(s=wF(t)),rP(t)?(c=mP(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=JP(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function DF(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function OF(e){var t=DF(e);return $N.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function kF(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function AF(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var jF={placement:`bottom`,modifiers:[],strategy:`absolute`};function MF(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function NF(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?jF:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},jF,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:nP(e)?$P(e):e.contextElement?$P(e.contextElement):[],popper:$P(t)};var s=OF(AF([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(MF(t,n)){i.rects={reference:EF(t,CP(n),i.options.strategy===`fixed`),popper:hP(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:kF(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!MF(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var PF=NF(),FF=NF({defaultModifiers:[HP,yF,zP,sP]}),IF=NF({defaultModifiers:[HP,yF,zP,sP,_F,uF,SF,NP,mF]}),LF=u({afterMain:()=>YN,afterRead:()=>KN,afterWrite:()=>QN,applyStyles:()=>sP,arrow:()=>NP,auto:()=>FN,basePlacements:()=>IN,beforeMain:()=>qN,beforeRead:()=>WN,beforeWrite:()=>XN,bottom:()=>MN,clippingParents:()=>RN,computeStyles:()=>zP,createPopper:()=>IF,createPopperBase:()=>PF,createPopperLite:()=>FF,detectOverflow:()=>oF,end:()=>`end`,eventListeners:()=>HP,flip:()=>uF,hide:()=>mF,left:()=>PN,main:()=>JN,modifierPhases:()=>$N,offset:()=>_F,placements:()=>UN,popper:()=>BN,popperGenerator:()=>NF,popperOffsets:()=>yF,preventOverflow:()=>SF,read:()=>GN,reference:()=>VN,right:()=>NN,start:()=>LN,top:()=>`top`,variationPlacements:()=>HN,viewport:()=>zN,write:()=>ZN}),RF=new Map,zF={set(e,t,n){RF.has(e)||RF.set(e,new Map);let r=RF.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return RF.has(e)&&RF.get(e).get(t)||null},remove(e,t){if(!RF.has(e))return;let n=RF.get(e);n.delete(t),n.size===0&&RF.delete(e)}},BF=1e6,VF=1e3,HF=`transitionend`,UF=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),WF=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),GF=e=>{do e+=Math.floor(Math.random()*BF);while(document.getElementById(e));return e},KF=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*VF)},qF=e=>{e.dispatchEvent(new Event(HF))},JF=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),YF=e=>JF(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(UF(e)):null,XF=e=>{if(!JF(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},ZF=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,QF=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?QF(e.parentNode):null},$F=()=>{},eI=e=>{e.offsetHeight},tI=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,nI=[],rI=e=>{document.readyState===`loading`?(nI.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of nI)e()}),nI.push(e)):e()},iI=()=>document.documentElement.dir===`rtl`,aI=e=>{rI(()=>{let t=tI();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},oI=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,sI=(e,t,n=!0)=>{if(!n){oI(e);return}let r=KF(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(HF,a),oI(e))};t.addEventListener(HF,a),setTimeout(()=>{i||qF(t)},r)},cI=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},lI=/[^.]*(?=\..*)\.|.*/,uI=/\..*/,dI=/::\d+$/,fI={},pI=1,mI={mouseenter:`mouseover`,mouseleave:`mouseout`},hI=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function gI(e,t){return t&&`${t}::${pI++}`||e.uidEvent||pI++}function _I(e){let t=gI(e);return e.uidEvent=t,fI[t]=fI[t]||{},fI[t]}function vI(e,t){return function n(r){return EI(r,{delegateTarget:e}),n.oneOff&&Q.off(e,r.type,t),t.apply(e,[r])}}function yI(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return EI(i,{delegateTarget:o}),r.oneOff&&Q.off(e,i.type,t,n),n.apply(o,[i])}}function bI(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function xI(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=TI(e);return hI.has(a)||(a=e),[r,i,a]}function SI(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=xI(t,n,r);t in mI&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=_I(e),l=c[s]||(c[s]={}),u=bI(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=gI(o,t.replace(lI,``)),f=a?yI(e,n,o):vI(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function CI(e,t,n,r,i){let a=bI(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function wI(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&CI(e,t,n,o.callable,o.delegationSelector)}function TI(e){return e=e.replace(uI,``),mI[e]||e}var Q={on(e,t,n,r){SI(e,t,n,r,!1)},one(e,t,n,r){SI(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=xI(t,n,r),s=o!==t,c=_I(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;CI(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))wI(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(dI,``);(!s||t.includes(i))&&CI(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=tI(),i=t!==TI(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=EI(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function EI(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function DI(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function OI(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var kI={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${OI(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${OI(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=DI(e.dataset[r])}return t},getDataAttribute(e,t){return DI(e.getAttribute(`data-bs-${OI(t)}`))}},AI=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=JF(t)?kI.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...JF(t)?kI.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=JF(t)?`element`:WF(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},jI=`5.3.8`,MI=class extends AI{constructor(e,t){super(),e=YF(e),e&&(this._element=e,this._config=this._getConfig(t),zF.set(this._element,this.constructor.DATA_KEY,this))}dispose(){zF.remove(this._element,this.constructor.DATA_KEY),Q.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){sI(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return zF.get(YF(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return jI}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},NI=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>UF(e)).join(`,`):null},$={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!ZF(e)&&XF(e))},getSelectorFromElement(e){let t=NI(e);return t&&$.findOne(t)?t:null},getElementFromSelector(e){let t=NI(e);return t?$.findOne(t):null},getMultipleElementsFromSelector(e){let t=NI(e);return t?$.find(t):[]}},PI=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;Q.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),ZF(this))return;let i=$.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},FI=`alert`,II=`.bs.alert`,LI=`close${II}`,RI=`closed${II}`,zI=`fade`,BI=`show`,VI=class e extends MI{static get NAME(){return FI}close(){if(Q.trigger(this._element,LI).defaultPrevented)return;this._element.classList.remove(BI);let e=this._element.classList.contains(zI);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Q.trigger(this._element,RI),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};PI(VI,`close`),aI(VI);var HI=`button`,UI=`.bs.button`,WI=`.data-api`,GI=`active`,KI=`[data-bs-toggle="button"]`,qI=`click${UI}${WI}`,JI=class e extends MI{static get NAME(){return HI}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(GI))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};Q.on(document,qI,KI,e=>{e.preventDefault();let t=e.target.closest(KI);JI.getOrCreateInstance(t).toggle()}),aI(JI);var YI=`swipe`,XI=`.bs.swipe`,ZI=`touchstart${XI}`,QI=`touchmove${XI}`,$I=`touchend${XI}`,eL=`pointerdown${XI}`,tL=`pointerup${XI}`,nL=`touch`,rL=`pen`,iL=`pointer-event`,aL=40,oL={endCallback:null,leftCallback:null,rightCallback:null},sL={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},cL=class e extends AI{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return oL}static get DefaultType(){return sL}static get NAME(){return YI}dispose(){Q.off(this._element,XI)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),oI(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=aL)return;let t=e/this._deltaX;this._deltaX=0,t&&oI(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Q.on(this._element,eL,e=>this._start(e)),Q.on(this._element,tL,e=>this._end(e)),this._element.classList.add(iL)):(Q.on(this._element,ZI,e=>this._start(e)),Q.on(this._element,QI,e=>this._move(e)),Q.on(this._element,$I,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===rL||e.pointerType===nL)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},lL=`carousel`,uL=`.bs.carousel`,dL=`.data-api`,fL=`ArrowLeft`,pL=`ArrowRight`,mL=500,hL=`next`,gL=`prev`,_L=`left`,vL=`right`,yL=`slide${uL}`,bL=`slid${uL}`,xL=`keydown${uL}`,SL=`mouseenter${uL}`,CL=`mouseleave${uL}`,wL=`dragstart${uL}`,TL=`load${uL}${dL}`,EL=`click${uL}${dL}`,DL=`carousel`,OL=`active`,kL=`slide`,AL=`carousel-item-end`,jL=`carousel-item-start`,ML=`carousel-item-next`,NL=`carousel-item-prev`,PL=`.active`,FL=`.carousel-item`,IL=PL+FL,LL=`.carousel-item img`,RL=`.carousel-indicators`,zL=`[data-bs-slide], [data-bs-slide-to]`,BL=`[data-bs-ride="carousel"]`,VL={[fL]:vL,[pL]:_L},HL={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},UL={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},WL=class e extends MI{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=$.findOne(RL,this._element),this._addEventListeners(),this._config.ride===DL&&this.cycle()}static get Default(){return HL}static get DefaultType(){return UL}static get NAME(){return lL}next(){this._slide(hL)}nextWhenVisible(){!document.hidden&&XF(this._element)&&this.next()}prev(){this._slide(gL)}pause(){this._isSliding&&qF(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Q.one(this._element,bL,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){Q.one(this._element,bL,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?hL:gL;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Q.on(this._element,xL,e=>this._keydown(e)),this._config.pause===`hover`&&(Q.on(this._element,SL,()=>this.pause()),Q.on(this._element,CL,()=>this._maybeEnableCycle())),this._config.touch&&cL.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of $.find(LL,this._element))Q.on(e,wL,e=>e.preventDefault());this._swipeHelper=new cL(this._element,{leftCallback:()=>this._slide(this._directionToOrder(_L)),rightCallback:()=>this._slide(this._directionToOrder(vL)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),mL+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=VL[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=$.findOne(PL,this._indicatorsElement);t.classList.remove(OL),t.removeAttribute(`aria-current`);let n=$.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(OL),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===hL,i=t||cI(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>Q.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(yL).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?jL:AL,l=r?ML:NL;i.classList.add(l),eI(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(OL),n.classList.remove(OL,l,c),this._isSliding=!1,o(bL)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(kL)}_getActive(){return $.findOne(IL,this._element)}_getItems(){return $.find(FL,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return iI()?e===_L?gL:hL:e===_L?hL:gL}_orderToDirection(e){return iI()?e===gL?_L:vL:e===gL?vL:_L}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(document,EL,zL,function(e){let t=$.getElementFromSelector(this);if(!t||!t.classList.contains(DL))return;e.preventDefault();let n=WL.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(kI.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),Q.on(window,TL,()=>{let e=$.find(BL);for(let t of e)WL.getOrCreateInstance(t)}),aI(WL);var GL=`collapse`,KL=`.bs.collapse`,qL=`.data-api`,JL=`show${KL}`,YL=`shown${KL}`,XL=`hide${KL}`,ZL=`hidden${KL}`,QL=`click${KL}${qL}`,$L=`show`,eR=`collapse`,tR=`collapsing`,nR=`collapsed`,rR=`:scope .${eR} .${eR}`,iR=`collapse-horizontal`,aR=`width`,oR=`height`,sR=`.collapse.show, .collapse.collapsing`,cR=`[data-bs-toggle="collapse"]`,lR={parent:null,toggle:!0},uR={parent:`(null|element)`,toggle:`boolean`},dR=class e extends MI{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=$.find(cR);for(let e of n){let t=$.getSelectorFromElement(e),n=$.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return lR}static get DefaultType(){return uR}static get NAME(){return GL}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(sR).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||Q.trigger(this._element,JL).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(eR),this._element.classList.add(tR),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(tR),this._element.classList.add(eR,$L),this._element.style[n]=``,Q.trigger(this._element,YL)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||Q.trigger(this._element,XL).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,eI(this._element),this._element.classList.add(tR),this._element.classList.remove(eR,$L);for(let e of this._triggerArray){let t=$.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(tR),this._element.classList.add(eR),Q.trigger(this._element,ZL)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains($L)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=YF(e.parent),e}_getDimension(){return this._element.classList.contains(iR)?aR:oR}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(cR);for(let t of e){let e=$.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=$.find(rR,this._config.parent);return $.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(nR,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};Q.on(document,QL,cR,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of $.getMultipleElementsFromSelector(this))dR.getOrCreateInstance(e,{toggle:!1}).toggle()}),aI(dR);var fR=`dropdown`,pR=`.bs.dropdown`,mR=`.data-api`,hR=`Escape`,gR=`Tab`,_R=`ArrowUp`,vR=`ArrowDown`,yR=2,bR=`hide${pR}`,xR=`hidden${pR}`,SR=`show${pR}`,CR=`shown${pR}`,wR=`click${pR}${mR}`,TR=`keydown${pR}${mR}`,ER=`keyup${pR}${mR}`,DR=`show`,OR=`dropup`,kR=`dropend`,AR=`dropstart`,jR=`dropup-center`,MR=`dropdown-center`,NR=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,PR=`${NR}.${DR}`,FR=`.dropdown-menu`,IR=`.navbar`,LR=`.navbar-nav`,RR=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,zR=iI()?`top-end`:`top-start`,BR=iI()?`top-start`:`top-end`,VR=iI()?`bottom-end`:`bottom-start`,HR=iI()?`bottom-start`:`bottom-end`,UR=iI()?`left-start`:`right-start`,WR=iI()?`right-start`:`left-start`,GR=`top`,KR=`bottom`,qR={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},JR={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},YR=class e extends MI{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=$.next(this._element,FR)[0]||$.prev(this._element,FR)[0]||$.findOne(FR,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return qR}static get DefaultType(){return JR}static get NAME(){return fR}toggle(){return this._isShown()?this.hide():this.show()}show(){if(ZF(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!Q.trigger(this._element,SR,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(LR))for(let e of[].concat(...document.body.children))Q.on(e,`mouseover`,$F);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(DR),this._element.classList.add(DR),Q.trigger(this._element,CR,e)}}hide(){if(ZF(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Q.trigger(this._element,bR,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.off(e,`mouseover`,$F);this._popper&&this._popper.destroy(),this._menu.classList.remove(DR),this._element.classList.remove(DR),this._element.setAttribute(`aria-expanded`,`false`),kI.removeDataAttribute(this._menu,`popper`),Q.trigger(this._element,xR,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!JF(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${fR.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(LF===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:JF(this._config.reference)?e=YF(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=IF(e,this._menu,t)}_isShown(){return this._menu.classList.contains(DR)}_getPlacement(){let e=this._parent;if(e.classList.contains(kR))return UR;if(e.classList.contains(AR))return WR;if(e.classList.contains(jR))return GR;if(e.classList.contains(MR))return KR;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(OR)?t?BR:zR:t?HR:VR}_detectNavbar(){return this._element.closest(IR)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(kI.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...oI(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=$.find(RR,this._menu).filter(e=>XF(e));n.length&&cI(n,t,e===vR,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===yR||t.type===`keyup`&&t.key!==gR)return;let n=$.find(PR);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===gR||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===hR,i=[_R,vR].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(NR)?this:$.prev(this,NR)[0]||$.next(this,NR)[0]||$.findOne(NR,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};Q.on(document,TR,NR,YR.dataApiKeydownHandler),Q.on(document,TR,FR,YR.dataApiKeydownHandler),Q.on(document,wR,YR.clearMenus),Q.on(document,ER,YR.clearMenus),Q.on(document,wR,NR,function(e){e.preventDefault(),YR.getOrCreateInstance(this).toggle()}),aI(YR);var XR=`backdrop`,ZR=`fade`,QR=`show`,$R=`mousedown.bs.${XR}`,ez={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},tz={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},nz=class extends AI{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return ez}static get DefaultType(){return tz}static get NAME(){return XR}show(e){if(!this._config.isVisible){oI(e);return}this._append();let t=this._getElement();this._config.isAnimated&&eI(t),t.classList.add(QR),this._emulateAnimation(()=>{oI(e)})}hide(e){if(!this._config.isVisible){oI(e);return}this._getElement().classList.remove(QR),this._emulateAnimation(()=>{this.dispose(),oI(e)})}dispose(){this._isAppended&&=(Q.off(this._element,$R),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(ZR),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=YF(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),Q.on(e,$R,()=>{oI(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){sI(e,this._getElement(),this._config.isAnimated)}},rz=`focustrap`,iz=`.bs.focustrap`,az=`focusin${iz}`,oz=`keydown.tab${iz}`,sz=`Tab`,cz=`forward`,lz=`backward`,uz={autofocus:!0,trapElement:null},dz={autofocus:`boolean`,trapElement:`element`},fz=class extends AI{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return uz}static get DefaultType(){return dz}static get NAME(){return rz}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),Q.off(document,iz),Q.on(document,az,e=>this._handleFocusin(e)),Q.on(document,oz,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,Q.off(document,iz))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=$.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===lz?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===sz&&(this._lastTabNavDirection=e.shiftKey?lz:cz)}},pz=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,mz=`.sticky-top`,hz=`padding-right`,gz=`margin-right`,_z=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,hz,t=>t+e),this._setElementAttributes(pz,hz,t=>t+e),this._setElementAttributes(mz,gz,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,hz),this._resetElementAttributes(pz,hz),this._resetElementAttributes(mz,gz)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&kI.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=kI.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}kI.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(JF(e)){t(e);return}for(let n of $.find(e,this._element))t(n)}},vz=`modal`,yz=`.bs.modal`,bz=`.data-api`,xz=`Escape`,Sz=`hide${yz}`,Cz=`hidePrevented${yz}`,wz=`hidden${yz}`,Tz=`show${yz}`,Ez=`shown${yz}`,Dz=`resize${yz}`,Oz=`click.dismiss${yz}`,kz=`mousedown.dismiss${yz}`,Az=`keydown.dismiss${yz}`,jz=`click${yz}${bz}`,Mz=`modal-open`,Nz=`fade`,Pz=`show`,Fz=`modal-static`,Iz=`.modal.show`,Lz=`.modal-dialog`,Rz=`.modal-body`,zz=`[data-bs-toggle="modal"]`,Bz={backdrop:!0,focus:!0,keyboard:!0},Vz={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},Hz=class e extends MI{constructor(e,t){super(e,t),this._dialog=$.findOne(Lz,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new _z,this._addEventListeners()}static get Default(){return Bz}static get DefaultType(){return Vz}static get NAME(){return vz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Q.trigger(this._element,Tz,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Mz),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Q.trigger(this._element,Sz).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Pz),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Q.off(window,yz),Q.off(this._dialog,yz),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new nz({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fz({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=$.findOne(Rz,this._dialog);t&&(t.scrollTop=0),eI(this._element),this._element.classList.add(Pz),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Q.trigger(this._element,Ez,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){Q.on(this._element,Az,e=>{if(e.key===xz){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Q.on(window,Dz,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Q.on(this._element,kz,e=>{Q.one(this._element,Oz,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop===`static`){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display=`none`,this._element.setAttribute(`aria-hidden`,!0),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Mz),this._resetAdjustments(),this._scrollBar.reset(),Q.trigger(this._element,wz)})}_isAnimated(){return this._element.classList.contains(Nz)}_triggerBackdropTransition(){if(Q.trigger(this._element,Cz).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(Fz)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(Fz),this._queueCallback(()=>{this._element.classList.remove(Fz),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=iI()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=iI()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};Q.on(document,jz,zz,function(e){let t=$.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Q.one(t,Tz,e=>{e.defaultPrevented||Q.one(t,wz,()=>{XF(this)&&this.focus()})});let n=$.findOne(Iz);n&&Hz.getInstance(n).hide(),Hz.getOrCreateInstance(t).toggle(this)}),PI(Hz),aI(Hz);var Uz=`offcanvas`,Wz=`.bs.offcanvas`,Gz=`.data-api`,Kz=`load${Wz}${Gz}`,qz=`Escape`,Jz=`show`,Yz=`showing`,Xz=`hiding`,Zz=`offcanvas-backdrop`,Qz=`.offcanvas.show`,$z=`show${Wz}`,eB=`shown${Wz}`,tB=`hide${Wz}`,nB=`hidePrevented${Wz}`,rB=`hidden${Wz}`,iB=`resize${Wz}`,aB=`click${Wz}${Gz}`,oB=`keydown.dismiss${Wz}`,sB=`[data-bs-toggle="offcanvas"]`,cB={backdrop:!0,keyboard:!0,scroll:!1},lB={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},uB=class e extends MI{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return cB}static get DefaultType(){return lB}static get NAME(){return Uz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Q.trigger(this._element,$z,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new _z().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(Yz),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Jz),this._element.classList.remove(Yz),Q.trigger(this._element,eB,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||Q.trigger(this._element,tB).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Xz),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Jz,Xz),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new _z().reset(),Q.trigger(this._element,rB)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){Q.trigger(this._element,nB);return}this.hide()},t=!!this._config.backdrop;return new nz({className:Zz,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new fz({trapElement:this._element})}_addEventListeners(){Q.on(this._element,oB,e=>{if(e.key===qz){if(this._config.keyboard){this.hide();return}Q.trigger(this._element,nB)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Q.on(document,aB,sB,function(e){let t=$.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),ZF(this))return;Q.one(t,rB,()=>{XF(this)&&this.focus()});let n=$.findOne(Qz);n&&n!==t&&uB.getInstance(n).hide(),uB.getOrCreateInstance(t).toggle(this)}),Q.on(window,Kz,()=>{for(let e of $.find(Qz))uB.getOrCreateInstance(e).show()}),Q.on(window,iB,()=>{for(let e of $.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&uB.getOrCreateInstance(e).hide()}),PI(uB),aI(uB);var dB=/^aria-[\w-]*$/i,fB={"*":[`class`,`dir`,`id`,`lang`,`role`,dB],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},pB=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),mB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,hB=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?pB.has(n)?!!mB.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function gB(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)hB(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var _B=`TemplateFactory`,vB={allowList:fB,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},yB={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},bB={entry:`(string|element|function|null)`,selector:`(string|element)`},xB=class extends AI{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return vB}static get DefaultType(){return yB}static get NAME(){return _B}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},bB)}_setContent(e,t,n){let r=$.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(JF(t)){this._putElementInTemplate(YF(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?gB(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return oI(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},SB=`tooltip`,CB=new Set([`sanitize`,`allowList`,`sanitizeFn`]),wB=`fade`,TB=`modal`,EB=`show`,DB=`.tooltip-inner`,OB=`.${TB}`,kB=`hide.bs.modal`,AB=`hover`,jB=`focus`,MB=`click`,NB=`manual`,PB=`hide`,FB=`hidden`,IB=`show`,LB=`shown`,RB=`inserted`,zB=`click`,BB=`focusin`,VB=`focusout`,HB=`mouseenter`,UB=`mouseleave`,WB={AUTO:`auto`,TOP:`top`,RIGHT:iI()?`left`:`right`,BOTTOM:`bottom`,LEFT:iI()?`right`:`left`},GB={allowList:fB,animation:!0,boundary:`clippingParents`,container:!1,customClass:``,delay:0,fallbackPlacements:[`top`,`right`,`bottom`,`left`],html:!1,offset:[0,6],placement:`top`,popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:`<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`,title:``,trigger:`hover focus`},KB={allowList:`object`,animation:`boolean`,boundary:`(string|element)`,container:`(string|element|boolean)`,customClass:`(string|function)`,delay:`(number|object)`,fallbackPlacements:`array`,html:`boolean`,offset:`(array|string|function)`,placement:`(string|function)`,popperConfig:`(null|object|function)`,sanitize:`boolean`,sanitizeFn:`(null|function)`,selector:`(string|boolean)`,template:`string`,title:`(string|element|function)`,trigger:`string`},qB=class e extends MI{constructor(e,t){if(LF===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return GB}static get DefaultType(){return KB}static get NAME(){return SB}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Q.off(this._element.closest(OB),kB,this._hideModalHandler),this._element.getAttribute(`data-bs-original-title`)&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=Q.trigger(this._element,this.constructor.eventName(IB)),t=(QF(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Q.trigger(this._element,this.constructor.eventName(RB))),this._popper=this._createPopper(n),n.classList.add(EB),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.on(e,`mouseover`,$F);this._queueCallback(()=>{Q.trigger(this._element,this.constructor.eventName(LB)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||Q.trigger(this._element,this.constructor.eventName(PB)).defaultPrevented)){if(this._getTipElement().classList.remove(EB),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.off(e,`mouseover`,$F);this._activeTrigger[MB]=!1,this._activeTrigger[jB]=!1,this._activeTrigger[AB]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),Q.trigger(this._element,this.constructor.eventName(FB)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(wB,EB),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=GF(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(wB),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new xB({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[DB]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(`data-bs-original-title`)}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(wB)}_isShown(){return this.tip&&this.tip.classList.contains(EB)}_createPopper(e){let t=WB[oI(this._config.placement,[this,e,this._element]).toUpperCase()];return IF(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return oI(e,[this._element,this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...oI(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)Q.on(this._element,this.constructor.eventName(zB),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[MB]=!(t._isShown()&&t._activeTrigger[MB]),t.toggle()});else if(t!==NB){let e=t===AB?this.constructor.eventName(HB):this.constructor.eventName(BB),n=t===AB?this.constructor.eventName(UB):this.constructor.eventName(VB);Q.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?jB:AB]=!0,t._enter()}),Q.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?jB:AB]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Q.on(this._element.closest(OB),kB,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=kI.getDataAttributes(this._element);for(let e of Object.keys(t))CB.has(e)&&delete t[e];return e={...t,...typeof e==`object`&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:YF(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};aI(qB);var JB=`popover`,YB=`.popover-header`,XB=`.popover-body`,ZB={...qB.Default,content:``,offset:[0,8],placement:`right`,template:`<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>`,trigger:`click`},QB={...qB.DefaultType,content:`(null|string|element|function)`},$B=class e extends qB{static get Default(){return ZB}static get DefaultType(){return QB}static get NAME(){return JB}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[YB]:this._getTitle(),[XB]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};aI($B);var eV=`scrollspy`,tV=`.bs.scrollspy`,nV=`.data-api`,rV=`activate${tV}`,iV=`click${tV}`,aV=`load${tV}${nV}`,oV=`dropdown-item`,sV=`active`,cV=`[data-bs-spy="scroll"]`,lV=`[href]`,uV=`.nav, .list-group`,dV=`.nav-link`,fV=`${dV}, .nav-item > ${dV}, .list-group-item`,pV=`.dropdown`,mV=`.dropdown-toggle`,hV={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},gV={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},_V=class e extends MI{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY===`visible`?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return hV}static get DefaultType(){return gV}static get NAME(){return eV}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=YF(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Q.off(this._config.target,iV),Q.on(this._config.target,iV,lV,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=$.find(lV,this._config.target);for(let t of e){if(!t.hash||ZF(t))continue;let e=$.findOne(decodeURI(t.hash),this._element);XF(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(sV),this._activateParents(e),Q.trigger(this._element,rV,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(oV)){$.findOne(mV,e.closest(pV)).classList.add(sV);return}for(let t of $.parents(e,uV))for(let e of $.prev(t,fV))e.classList.add(sV)}_clearActiveClass(e){e.classList.remove(sV);let t=$.find(`${lV}.${sV}`,e);for(let e of t)e.classList.remove(sV)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(window,aV,()=>{for(let e of $.find(cV))_V.getOrCreateInstance(e)}),aI(_V);var vV=`tab`,yV=`.bs.tab`,bV=`hide${yV}`,xV=`hidden${yV}`,SV=`show${yV}`,CV=`shown${yV}`,wV=`click${yV}`,TV=`keydown${yV}`,EV=`load${yV}`,DV=`ArrowLeft`,OV=`ArrowRight`,kV=`ArrowUp`,AV=`ArrowDown`,jV=`Home`,MV=`End`,NV=`active`,PV=`fade`,FV=`show`,IV=`dropdown`,LV=`.dropdown-toggle`,RV=`.dropdown-menu`,zV=`:not(${LV})`,BV=`.list-group, .nav, [role="tablist"]`,VV=`.nav-item, .list-group-item`,HV=`.nav-link${zV}, .list-group-item${zV}, [role="tab"]${zV}`,UV=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,WV=`${HV}, ${UV}`,GV=`.${NV}[data-bs-toggle="tab"], .${NV}[data-bs-toggle="pill"], .${NV}[data-bs-toggle="list"]`,KV=class e extends MI{constructor(e){super(e),this._parent=this._element.closest(BV),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Q.on(this._element,TV,e=>this._keydown(e)))}static get NAME(){return vV}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?Q.trigger(t,bV,{relatedTarget:e}):null;Q.trigger(e,SV,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(NV),this._activate($.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(FV);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),Q.trigger(e,CV,{relatedTarget:t})},e,e.classList.contains(PV)))}_deactivate(e,t){e&&(e.classList.remove(NV),e.blur(),this._deactivate($.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(FV);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),Q.trigger(e,xV,{relatedTarget:t})},e,e.classList.contains(PV)))}_keydown(t){if(![DV,OV,kV,AV,jV,MV].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!ZF(e)),r;if([jV,MV].includes(t.key))r=n[t.key===jV?0:n.length-1];else{let e=[OV,AV].includes(t.key);r=cI(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return $.find(WV,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=$.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(IV))return;let r=(e,r)=>{let i=$.findOne(e,n);i&&i.classList.toggle(r,t)};r(LV,NV),r(RV,FV),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(NV)}_getInnerElement(e){return e.matches(WV)?e:$.findOne(WV,e)}_getOuterElement(e){return e.closest(VV)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(document,wV,UV,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!ZF(this)&&KV.getOrCreateInstance(this).show()}),Q.on(window,EV,()=>{for(let e of $.find(GV))KV.getOrCreateInstance(e)}),aI(KV);var qV=`toast`,JV=`.bs.toast`,YV=`mouseover${JV}`,XV=`mouseout${JV}`,ZV=`focusin${JV}`,QV=`focusout${JV}`,$V=`hide${JV}`,eH=`hidden${JV}`,tH=`show${JV}`,nH=`shown${JV}`,rH=`fade`,iH=`hide`,aH=`show`,oH=`showing`,sH={animation:`boolean`,autohide:`boolean`,delay:`number`},cH={animation:!0,autohide:!0,delay:5e3},lH=class e extends MI{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return cH}static get DefaultType(){return sH}static get NAME(){return qV}show(){Q.trigger(this._element,tH).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(rH),this._element.classList.remove(iH),eI(this._element),this._element.classList.add(aH,oH),this._queueCallback(()=>{this._element.classList.remove(oH),Q.trigger(this._element,nH),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||Q.trigger(this._element,$V).defaultPrevented||(this._element.classList.add(oH),this._queueCallback(()=>{this._element.classList.add(iH),this._element.classList.remove(oH,aH),Q.trigger(this._element,eH)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(aH),super.dispose()}isShown(){return this._element.classList.contains(aH)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Q.on(this._element,YV,e=>this._onInteraction(e,!0)),Q.on(this._element,XV,e=>this._onInteraction(e,!1)),Q.on(this._element,ZV,e=>this._onInteraction(e,!0)),Q.on(this._element,QV,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};PI(lH),aI(lH);function uH(e,t){return t.value||e.getAttribute(`title`)||``}var dH={mounted:(e,t)=>{let n=uH(e,t);n&&e.setAttribute(`title`,n),new qB(e)},updated:(e,t)=>{let n=qB.getInstance(e);n&&n.dispose();let r=uH(e,t);r&&e.setAttribute(`title`,r),new qB(e)},unmounted:e=>{let t=qB.getInstance(e);t&&t.dispose()}},fH={key:0,class:`pills-list__wrapper`},pH={class:`pills-list__ul`},mH={class:`bd-markdown-editor__menu-bottom`},hH={key:1,class:`vr`},gH=(0,t.defineComponent)({__name:`BDMarkdownEditor`,props:{placeholder:{default:`Typ een bericht`},errorText:{default:`er is iets fout gegaan`},state:{type:[Boolean,null],default:null},variant:{default:uN.BASIC},files:{default:void 0},pills:{default:void 0},apiUrl:{default:``},tokens:{default:[]},modelValue:{}},emits:[`update:modelValue`,`upload`,`action`],setup(e,{emit:n}){let r=e,i=n,a=()=>{i(`upload`)},o=(0,t.ref)(null),s=Va(r,`modelValue`,i),c=[qO,XO,ZO,QM.configure({HTMLAttributes:{class:`mention`},suggestion:{...nN(r.tokens||[],o),char:`{`,allowSpaces:!0}}),$j.configure({placeholder:r.placeholder}),GM,dj.configure({openOnClick:!1,validate:e=>/^(https?:\/\/|www\.)/i.test(e)})];(r.variant===uN.FULL||r.variant===uN.FORMAT)&&c.push(aM,uM,dM,HM,UM,WM);let l=GO({content:s.value,extensions:c,onUpdate:({editor:e})=>{let{view:t,state:n}=e,{from:r,to:a}=t.state.selection;if(n.doc.textBetween(r-1,a,``)==` `&&e.getAttributes(`link`).href!=null&&e.chain().setTextSelection({from:r-1,to:a}).toggleLink({href:e.getAttributes(`link`).href}).setTextSelection({from:a,to:a}).run(),e.getText().trim()===``){i(`update:modelValue`,``);return}i(`update:modelValue`,e.getHTML())}});(0,t.watch)(()=>r.modelValue,e=>{l.value.getHTML()!==e&&l.value.commands.setContent(e,!0,{preserveWhitespace:`full`})});let u=(0,t.computed)(()=>r.state===!1?`is-invalid`:null),d=(0,t.computed)(()=>x(`bold`)),f=(0,t.computed)(()=>x(`italic`)),p=(0,t.computed)(()=>x(`underline`)),m=(0,t.computed)(()=>x(`bulletList`)),h=(0,t.computed)(()=>x(`orderedList`)),g=(0,t.computed)(()=>x(`link`)),_=(0,t.computed)(()=>r.variant===uN.FULL||r.variant===uN.FORMAT),y=(0,t.computed)(()=>r.variant===uN.FULL),b=(0,t.computed)(()=>r.variant===uN.FULL||r.variant===uN.BASIC||!r.variant),x=e=>l.value&&l.value.isActive(e)?`active`:null,S=(0,t.computed)(()=>r.files&&r.files.length>0?jN(r.apiUrl,r.files,!1):null),C=(0,t.computed)(()=>r.files&&r.files.length>0?jN(r.apiUrl,r.files,!0):null),w=e=>{i(`action`,{name:`delete-attachment`,obj:e})},T=e=>{i(`action`,{name:`image-attachment`,obj:e})},E=(0,t.computed)(()=>{if(!l.value)return!1;let{from:e,to:t}=l.value.state.selection;return e!==t}),D=(0,t.computed)(()=>E.value?`Voeg een link toe`:`Selecteer eerst tekst`),O=(0,t.ref)(!1),k=(0,t.ref)(``),A=(0,t.ref)(null),j=()=>{k.value=l.value.getAttributes(`link`).href||``,O.value=!0},M=e=>{if(O.value=!1,!e){l.value.chain().focus().unsetLink().run();return}/^www\./i.test(e)&&(e=`https://${e}`),l.value.chain().focus().toggleLink({href:e}).run()},ee=()=>{O.value=!1};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`bd-markdown-editor`,u.value]),ref_key:`wrapperRef`,ref:o},[(0,t.createVNode)((0,t.unref)(WO),{editor:(0,t.unref)(l)},null,8,[`editor`]),e.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fH,[(0,t.createElementVNode)(`ul`,pH,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pills,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`pills-list__li`},[(0,t.createVNode)(tg,(0,t.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),S.value?((0,t.openBlock)(),(0,t.createBlock)(hN,{key:1,files:S.value,"no-download":!0,"show-delete":!0,onDelete:w},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),C.value?((0,t.openBlock)(),(0,t.createBlock)(wN,{key:2,files:C.value,"no-download":!0,"show-delete":!0,"fast-download":!1,onDelete:w,onShow:T},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,mH,[b.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`light`,type:`button`,onClick:a},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ae))]),_:1})):(0,t.createCommentVNode)(``,!0),y.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hH)):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:2,variant:`light`,type:`button`,class:(0,t.normalizeClass)(d.value),onClick:i[0]||=e=>(0,t.unref)(l).chain().focus().toggleBold().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(le))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:3,variant:`light`,type:`button`,class:(0,t.normalizeClass)(f.value),onClick:i[1]||=e=>(0,t.unref)(l).chain().focus().toggleItalic().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)($n))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:4,variant:`light`,type:`button`,class:(0,t.normalizeClass)(p.value),onClick:i[2]||=e=>(0,t.unref)(l).chain().focus().toggleUnderline().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(sa))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:5,variant:`light`,type:`button`,class:(0,t.normalizeClass)(m.value),onClick:i[3]||=e=>(0,t.unref)(l).chain().focus().toggleBulletList().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(fe))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:6,variant:`light`,type:`button`,class:(0,t.normalizeClass)(h.value),onClick:i[4]||=e=>(0,t.unref)(l).chain().focus().toggleOrderedList().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ii))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,null,[_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,ref_key:`linkButton`,ref:A,variant:`light`,type:`button`,class:(0,t.normalizeClass)(g.value),onClick:j,disabled:!E.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(kn))]),_:1},8,[`class`,`disabled`])):(0,t.createCommentVNode)(``,!0)])),[[(0,t.unref)(dH),D.value]])]),O.value?((0,t.openBlock)(),(0,t.createBlock)(lN,{key:3,previousUrl:k.value,onSubmit:M,onCancel:ee},null,8,[`previousUrl`])):(0,t.createCommentVNode)(``,!0)],2),(0,t.createVNode)(Qm,{text:r.errorText,state:r.state},null,8,[`text`,`state`])],64))}}),_H={class:`header`},vH={class:`icon-close-wrapper`},yH={class:`navbar`},bH={class:`nav navbar-nav w-100`},xH={class:`nav-item`},SH={class:`nav-item`},CH=(0,t.defineComponent)({__name:`BDMobileMenu`,props:{active:{type:Boolean,default:void 0},options:{}},emits:[`hide`,`signout`],setup(e,{emit:n}){let r=n,i=e,a=(0,t.computed)(()=>({active:i.active===!0,inactive:i.active===!1})),o=()=>r(`hide`),s=()=>r(`signout`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`bd-mobile-menu`,a.value])},[(0,t.createElementVNode)(`div`,_H,[n[0]||=(0,t.createElementVNode)(`div`,null,`Menu`,-1),(0,t.createElementVNode)(`div`,vH,[(0,t.createVNode)(Qe,{onClick:o})])]),(0,t.createElementVNode)(`nav`,yH,[(0,t.createElementVNode)(`ul`,bH,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,xH,[(0,t.createVNode)(_,(0,t.mergeProps)({class:`nav-link`},{ref_for:!0},e,{onClick:o}),null,16)]))),256)),(0,t.renderSlot)(e.$slots,`special-options`),(0,t.createElementVNode)(`li`,SH,[(0,t.createVNode)(_,{class:`nav-link`,text:`Uitloggen`,onClick:s})])])])],2))}}),wH={class:`bd-user`},TH={class:`bd-user__information`},EH={class:`text-break`},DH={class:`overflow-x-hidden`},OH=(0,t.defineComponent)({__name:`BDUser`,props:{name:{default:``},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(e){let n=e,r=(0,t.computed)(()=>typeof n.details==`string`?n.details:n.details?.join(` • `));return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,wH,[n.hideImage?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(qa,(0,t.mergeProps)({key:0},n.img,{size:`sm`}),null,16)),(0,t.createElementVNode)(`div`,TH,[(0,t.createElementVNode)(`header`,null,[(0,t.createElementVNode)(`h5`,EH,(0,t.toDisplayString)(n.name),1),(0,t.renderSlot)(e.$slots,`header-extra`)]),(0,t.createElementVNode)(`span`,DH,(0,t.toDisplayString)(r.value),1)])]))}}),kH={class:`bd-chat-cloud-card`},AH={class:`bd-chat-cloud-card__header`},jH={class:`bd-chat-cloud-card__body`},MH=[`innerHTML`],NH={class:`bd-chat-cloud-card__footer`},PH={key:0,class:`pills-list__wrapper`},FH={class:`pills-list__ul`},IH=(0,t.defineComponent)({__name:`BDChatCloud`,props:{headerTitle:{default:``},src:{default:void 0},username:{default:null},message:{default:``},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0},apiUrl:{default:``}},emits:[`show-attachment`,`action`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>r.isSender?`sender`:``),o=(0,t.computed)(()=>jN(r.apiUrl,r.files,!1)),s=(0,t.computed)(()=>jN(r.apiUrl,r.files,!0)),c=()=>{i(`action`,`copy-message`)},l=e=>{i(`show-attachment`,e)};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`bd-chat-cloud`,a.value])},[(0,t.createVNode)(qa,{src:r.src,username:r.username,size:`sm`},null,8,[`src`,`username`]),(0,t.createElementVNode)(`div`,kH,[(0,t.createElementVNode)(`div`,AH,[(0,t.renderSlot)(n.$slots,`header`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.headerTitle),1)]),(0,t.createVNode)(v,{variant:`outline-primary-dark`,size:`sm`,onClick:c},{default:(0,t.withCtx)(()=>[...i[0]||=[(0,t.createTextVNode)(` kopieer `,-1)]]),_:1})]),(0,t.createElementVNode)(`div`,jH,[(0,t.renderSlot)(n.$slots,`body`,{},()=>[(0,t.createElementVNode)(`div`,{class:`bd-chat-cloud-card__message`,innerHTML:r.message},null,8,MH)])]),(0,t.createElementVNode)(`div`,NH,[(0,t.renderSlot)(n.$slots,`footer`,{},()=>[e.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,PH,[(0,t.createElementVNode)(`ul`,FH,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pills,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`pills-list__li`},[(0,t.createVNode)(tg,(0,t.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,t.createCommentVNode)(``,!0),o.value&&o.value.length>0?((0,t.openBlock)(),(0,t.createBlock)(hN,{key:1,files:o.value},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),s.value&&s.value.length>0?((0,t.openBlock)(),(0,t.createBlock)(wN,{key:2,"fast-download":!0,files:s.value,onShow:l},null,8,[`files`])):(0,t.createCommentVNode)(``,!0)])])])],2))}}),LH=(0,t.defineComponent)({__name:`BDTableSortHeader`,props:[`active`,`label`,`sortDesc`],emits:[`sortAsc`,`sortDesc`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(r.sortDesc),o=()=>{r.active&&(a.value=!a.value)},s=()=>{r.active&&i(a.value?`sortDesc`:`sortAsc`)},c=(0,t.computed)(()=>({"bd-table-sort":!0,active:r.active}));return(0,t.watch)(()=>r.active,(e,t)=>{e&&!t&&(a.value=!1,i(`sortAsc`))}),s(),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{class:(0,t.normalizeClass)(c.value),onClick:n[0]||=e=>{o(),s()}},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(r.label),1),r.active&&!a.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Vi),{key:0})):r.active&&a.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Gi),{key:1})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Yi),{key:2}))],2))}}),RH={class:`bd-table`},zH={key:0,class:`table`},BH={key:1},VH={key:2},HH=[`onClick`],UH={key:0},WH={key:1,class:`empty-text`},GH=(0,t.defineComponent)({__name:`BDTable`,props:[`fields`,`items`,`sortBy`,`sortDesc`,`tbodyTrClass`,`emptyText`],emits:[`row-click`,`sort-changed`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=(0,t.ref)(i.items),s=(0,t.ref)(i.sortBy),c=e=>s.value=e,l=(e,t,n)=>{let r=t[e],i=n[e];if(r==null)return 1;if(i==null)return-1;let a=r.toString(),o=i.toString();return a.localeCompare(o,void 0,{numeric:!0})},u=e=>{o.value=o.value.sort((t,n)=>l(e,t,n)),a(`sort-changed`,{sortBy:e,sortDesc:!1})},d=e=>{o.value=o.value.sort((t,n)=>l(e,n,t)),a(`sort-changed`,{sortBy:e,sortDesc:!0})};return(0,t.watch)(()=>i.items,e=>{o.value=e}),n({Refresh:()=>{o.value=i.items}}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,RH,[i.items&&i.items.length>0?((0,t.openBlock)(),(0,t.createElementBlock)(`table`,zH,[(0,t.createElementVNode)(`thead`,null,[(0,t.createElementVNode)(`tr`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.fields,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.isVisible?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.sortable?((0,t.openBlock)(),(0,t.createBlock)(LH,{key:0,label:e.label,active:e.key==s.value,sortDesc:i.sortDesc,onClick:t=>c(e.key),onSortAsc:t=>u(e.key),onSortDesc:t=>d(e.key)},null,8,[`label`,`active`,`sortDesc`,`onClick`,`onSortAsc`,`onSortDesc`])):n.$slots.hasOwnProperty(`header_${e.key}`)?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,BH,[(0,t.renderSlot)(n.$slots,`header_${e.key}`)])):((0,t.openBlock)(),(0,t.createElementBlock)(`th`,VH,(0,t.toDisplayString)(e.label),1))],64)):(0,t.createCommentVNode)(``,!0)],64))),256))])]),(0,t.createElementVNode)(`tbody`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,r=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{class:(0,t.normalizeClass)(i.tbodyTrClass&&i.tbodyTrClass(r)),onClick:e=>a(`row-click`,r)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fields,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.isVisible?((0,t.openBlock)(),(0,t.createElementBlock)(`td`,UH,[n.$slots.hasOwnProperty(e.key)?(0,t.renderSlot)(n.$slots,e.key,{key:0,row:r,item:r,value:r[e.key]}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r[e.key]),1)],64))])):(0,t.createCommentVNode)(``,!0)],64))),256))],10,HH))),256))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,WH,(0,t.toDisplayString)(i.emptyText),1))]))}}),KH=[`id`],qH={key:0,class:`toast-body__title`},JH={class:`actions`},YH=[`textContent`],XH=[`textContent`],ZH={class:`icon-wrapper`},QH=[`textContent`],$H=[`textContent`],eU=3e4,tU=5e3,nU=(0,t.defineComponent)({__name:`BDVideoCallToast`,props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:[`reject-video-call`,`accept-video-call`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=null,c=null,l=(0,t.computed)(()=>{let e=`video-call-toast`;return r.id&&(e+=`-${r.id}`),e}),u=(0,t.computed)(()=>a.value?[a.value?`is-handled`:``,o.value?`is-handled--success`:``,r.canceled?`is-handled--canceled`:``].join(` `):``),d=(0,t.computed)(()=>r.canceled?r.localization.videoCallCanceled:o.value?r.localization.videoCallAccepted:r.localization.videoCallRejected),f=(0,t.computed)(()=>r.canceled?`${r.firstNameSender}${r.localization.notifyCallerWhenCanceled}`:r.isSender?r.contactInfoReceiver?`${r.contactInfoReceiver.name}${r.localization.notifyCallerWhenRejected}`:r.localization.notifyCallerWhenRejected:o.value?r.localization.openNewTabWhenAccepted:`${r.localization.notifyReceiverWhenRejected.start}${r.firstNameSender}${r.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g,` `));(0,t.watch)(()=>r.canceled,()=>{a.value=!0}),(0,t.onMounted)(()=>{let e=l.value,t=document.querySelector(`#${e}`);if(t){t.addEventListener(`hide.bs.toast`,y);var n={autohide:!0,delay:eU+tU};c=lH.getOrCreateInstance(t,n),c.show(),s=window.setTimeout(p,eU)}});let p=()=>{a.value||h()},m=()=>{h(),_()},h=()=>{a.value||(a.value=!0,i(`reject-video-call`,r.id))},g=()=>{a.value=!0,o.value=!0,i(`accept-video-call`,r.id),_()},_=()=>{window.clearTimeout(s),window.setTimeout(()=>c.hide(),tU)},y=()=>{a.value=!1,o.value=!1};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:l.value,class:`toast bd-video-call-toast`,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`},[(0,t.unref)(a)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qH,(0,t.toDisplayString)(r.localization.incomingVideoCall),1)),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`toast-body__main`,u.value])},[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,ZH,[(0,t.createVNode)(be)]),(0,t.createElementVNode)(`div`,null,[(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(d.value),class:`title`},null,8,QH),(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(f.value)},null,8,$H)])],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createVNode)(og,{value:e.contactInfoReceiver},null,8,[`value`]),(0,t.createElementVNode)(`div`,JH,[(0,t.createVNode)(v,{variant:`danger`,class:`text-center`,onClick:m},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(we),(0,t.createElementVNode)(`span`,{textContent:(0,t.toDisplayString)(r.localization.rejectVideoCall)},null,8,YH)]),_:1}),(0,t.createVNode)(v,{variant:`success`,class:`text-center`,onClick:g},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(be),(0,t.createElementVNode)(`span`,{textContent:(0,t.toDisplayString)(r.localization.acceptVideoCall)},null,8,XH)]),_:1})])],64))],2)],8,KH))}}),rU=(0,t.defineComponent)({__name:`BDDropdown`,props:{size:{default:g.MD},variant:{default:Ca.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:`button`},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:``},offset:{default:void 0}},setup(e){let n=e,{uniqueIdentifier:r}=$a(),i=`__BD__DROPDOWN__${r.value}`,a=(0,t.computed)(()=>({class:{btn:n.toggleTag===`button`,[`btn-${n.variant}`]:n.toggleTag===`button`&&n.variant,[`btn-${n.size}`]:n.toggleTag===`button`&&n.size,[`${n.toggleClass}`]:n.toggleClass!==void 0,"dropdown-toggle-action":n.actionToggle},"data-bs-display":n.noFlip?`static`:null,"data-bs-offset":n.offset?n.offset:null,id:i})),o=(0,t.computed)(()=>({"dropdown-menu-end":n.right,"dropdown-menu-action":n.actionToggle})),s=(0,t.computed)(()=>({"aria-labelledby":i})),c=(0,t.ref)(),l=(0,t.ref)(),u=()=>{c.value.classList.remove(`show`),l.value.classList.remove(`show`),l.value.removeAttribute(`aria-expanded`)};return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`bd-dropdown dropdown`,onClick:r[0]||=(0,t.withModifiers)(()=>{},[`stop`])},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(n.toggleTag),(0,t.mergeProps)({ref_key:`dropdownToggle`,ref:l,class:`dropdown-toggle`,target:`_self`,role:`button`,"data-bs-toggle":`dropdown`},a.value),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n.text),1)]),_:1},16)),(0,t.createElementVNode)(`ul`,(0,t.mergeProps)({ref_key:`dropdownMenu`,ref:c,class:[`dropdown-menu`,o.value]},s.value,{onClick:u}),[(0,t.renderSlot)(e.$slots,`default`)],16)]))}}),iU={class:`row bd-header`},aU={class:`col logo-mix`},oU=[`src`],sU={key:1,class:`col header-options`},cU={class:`col bd-btn-settings`},lU={key:2},uU=(0,t.defineComponent)({__name:`BDHeader`,props:{isEmbedded:{type:Boolean},dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},hasLogoutOption:{type:Boolean,default:!0}},emits:[`click-logo`,`signout`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>{let e=[];return r.isEmbedded?e:(r.headerOptions&&(e=e.concat(r.headerOptions)),r.dropdownOptions&&(e=e.concat(r.dropdownOptions)),e)}),o=(0,t.computed)(()=>!r.isEmbedded&&r.headerOptions&&r.headerOptions.length!==0),s=(0,t.ref)(void 0),c=()=>{r.isEmbedded||i(`click-logo`)},l=()=>i(`signout`),u=()=>s.value=!0,d=()=>s.value=!1;return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`nav`,iU,[(0,t.createElementVNode)(`div`,aU,[(0,t.createVNode)(S,{viewBox:`0 0 351 61`,class:`logo bd-logo`,onClick:c}),r.organizationLogoSrc?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,class:`logo organization-logo`,src:r.organizationLogoSrc,alt:``},null,8,oU)):(0,t.createCommentVNode)(``,!0)]),r.isEmbedded?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`col bd-hamburger`,onClick:u},[n[0]||=(0,t.createElementVNode)(`div`,null,`Menu`,-1),(0,t.createVNode)(Fr)])),o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sU,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.headerOptions,e=>((0,t.openBlock)(),(0,t.createBlock)(v,{class:`btn-header`,to:e.to,variant:`neutral`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)]),_:2},1032,[`to`]))),256))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,cU,[r.isEmbedded?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(e.$slots,`profile-side`,{key:0}),r.profileImageSrc?((0,t.openBlock)(),(0,t.createBlock)(qa,{key:1,src:r.profileImageSrc,alt:r.profileImageAlt,size:`sm`},null,8,[`src`,`alt`])):(0,t.createCommentVNode)(``,!0),r.isEmbedded?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,lU,(0,t.toDisplayString)(r.dropdownMenuTitle),1)):(0,t.createCommentVNode)(``,!0),r.isEmbedded?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(rU,{key:3,text:r.dropdownMenuTitle,variant:`primary`,toggleTag:`a`,right:!0},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.dropdownOptions,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Eg,(0,t.mergeProps)({key:n},{ref_for:!0},e),null,16))),128)),r.hasLogoutOption?((0,t.openBlock)(),(0,t.createBlock)(Eg,{key:0,text:`Uitloggen`,onClick:l})):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`text`]))])]),r.isEmbedded?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(CH,{key:0,active:s.value,options:a.value,onHide:d,onSignout:l},{"special-options":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`mobile-menu-special-options`)]),_:3},8,[`active`,`options`]))],64))}}),dU=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20height='800px'%20width='800px'%20viewBox='0%200%20800%20800'%20fill='none'%20version='1.1'%20id='svg2'%20sodipodi:docname='bell-icon.svg'%20inkscape:version='1.4.2%20(ebf0e94,%202025-05-08)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3csodipodi:namedview%20id='namedview2'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='0.93902601'%20inkscape:cx='361.01236'%20inkscape:cy='425.44082'%20inkscape:window-width='2323'%20inkscape:window-height='1321'%20inkscape:window-x='69'%20inkscape:window-y='-9'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg2'%20inkscape:lockguides='false'%20/%3e%3cpath%20fill='%23394156'%20d='m%20574.7134,517.70839%20c%20-43.02343,-19.42958%20-40.33991,-92.03173%20-40.37166,-94.13603%20l%20-0.86403,-55.08622%20c%20-0.84452,-53.84263%20-32.76289,-101.01787%20-79.52261,-120.73389%20-0.10055,-27.68538%20-26.24787,-50.17713%20-53.95375,-50.17713%20-27.70655,0%20-53.8532,22.49307%20-53.95442,50.17581%20-46.75774,19.71601%20-77.67395,68.62166%20-78.65724,122.46193%20l%20-0.86403,47.31%20c%20-0.0304,2.1043%201.78773,80.75463%20-41.23703,100.1842%20-4.90122,2.21412%20-7.59494,12.9473%20-6.46175,18.20508%201.13187,5.25843%203.98237,14.4119%209.36122,14.4119%20h%20110.87115%20c%202.23595,12.30035%208.05205,23.74336%2016.94754,33.01196%2011.8148,12.30961%2027.4393,19.08888%2043.99257,19.08888%2016.5546,0%2032.1791,-6.77927%2043.99258,-19.08888%208.89681,-9.26925%2014.71291,-20.71294%2016.94754,-33.01196%20h%20110.87115%20c%205.37885,0%208.22869,-9.1528%209.36189,-14.4119%201.13449,-5.25778%20-1.55789,-15.9903%20-6.45912,-18.20375%20z%20m%20-65.45742,-27.74178%20c%204.52282,13.71204%207.25707,16.20673%2016.33845,27.66562%20l%20-250.39475,-0.79275%20c%209.08005,-11.45756%2010.3714,-13.15885%2014.89422,-26.87287%20z%20M%20400.00135,224.00622%20c%2012.53255,0%2019.53015,4.82252%2022.8457,16.30126%20-8.54159,-1.77156%20-13.78747,-2.70563%20-22.8457,-2.70563%20-9.05823,0%20-14.30412,0.93341%20-22.84569,2.70563%203.3162,-11.47808%2010.31381,-16.30126%2022.84569,-16.30126%20z%20m%20-103.58848,199.63494%201.79933,-54.2217%20c%201.96022,-59.06989%2042.68543,-96.67497%20101.78915,-96.67497%2059.10373,0%2099.89499,35.80359%20101.78916,94.87564%20l%201.79933,56.1143%20c%200.0152,1.71731%201.47422,12.5683%201.23243,34.7862%20H%20295.17778%20c%200.71894,-22.23906%201.22119,-33.1218%201.23509,-34.87947%20z%20m%20103.58848,148.96978%20c%20-17.42517,0%20-25.43558,-5.58015%20-30.31694,-22.28624%20h%2060.63257%20c%20-4.88138,16.70609%20-12.88914,22.28624%20-30.31563,22.28624%20z'%20id='path1'%20style='stroke-width:0.899666;stroke-dasharray:none'%20sodipodi:nodetypes='ccscscscccsccsccscccccccscscscsssccccsccs'%20/%3e%3cpath%20fill='%23394156'%20d='m%20397.96944,283.33669%20c%20-49.41855,0%20-89.62361,40.20373%20-89.62361,89.62161%200,6.34354%205.14286,11.4864%2011.48639,11.4864%206.34355,0%2011.48641,-5.14286%2011.48641,-11.4864%200,-36.75076%2029.89938,-66.64948%2066.65148,-66.64948%206.34353,0%2011.48639,-5.14285%2011.48639,-11.4864%20-6.6e-4,-6.3442%20-5.14353,-11.48573%20-11.48706,-11.48573%20z'%20id='path2'%20style='stroke-width:0.904712;stroke-dasharray:none'%20sodipodi:nodetypes='ssssscs'%20/%3e%3c/svg%3e`,fU=async(e,t)=>{let n=e+t,r=new TextEncoder().encode(n),i=await crypto.subtle.digest(`SHA-256`,r);return Array.from(new Uint8Array(i)).map(e=>e.toString(16).padStart(2,`0`)).join(``)};function pU(){let e=()=>new Promise(e=>{if(document.readyState===`complete`)return e();window.addEventListener(`load`,()=>e(),{once:!0})});return{OnWindowLoaded:n=>{(0,t.onMounted)(()=>e().then(n))}}}var mU=(e,n,r)=>{let{OnWindowLoaded:i}=pU(),a=`lkj298fhGGJihge`,o=(0,t.ref)(!1),s=()=>n+`|`+r();return i(async()=>{if(n==null||r==null||r()==null){o.value=!1;return}let t=s(),i=localStorage.getItem(e),c=JSON.parse(i)||[],l=await fU(t,a);o.value=!c.includes(l)}),{hasUnfulfilledInteraction:o,MarkInteractionPerformed:async()=>{let t=await fU(s(),a),n=localStorage.getItem(e),r=JSON.parse(n)||[];r.includes(t)||(r.push(t),localStorage.setItem(e,JSON.stringify(r))),o.value=!1}}};function hU(e){let{OnWindowLoaded:n}=pU(),r;(0,t.onMounted)(()=>{r=document.addEventListener(`click`,t=>{if(!t||!t.target)return;let n=null;if(t.target instanceof Element&&(n=t.target.closest(`.popover`)),n)return;let r=$B.getInstance(e.value);r&&r.hide()})});let i=()=>{e?.value!=null&&($B.getInstance(e.value)||new $B(e.value))};n(i),(0,t.watch)(e,i),(0,t.onUnmounted)(()=>{if(e?.value!=null){let t=$B.getInstance(e.value);t&&t.dispose()}r&&document.removeEventListener(`click`,r)})}var gU=[`data-bs-title`,`data-bs-content`],_U=[`title`],vU={key:0,class:`number-circle`,textContent:1},yU=(0,t.defineComponent)({__name:`BDNotificationButton`,props:{userId:{},getNotification:{}},setup(e){let n=e,{hasUnfulfilledInteraction:r,MarkInteractionPerformed:i}=mU(`notificationsRead`,n.userId,()=>n.getNotification?.linkUrl),a=(0,t.ref)();hU(a);let o=(0,t.computed)(()=>{let e=n.getNotification;if(!e)return!1;let{isActive:t,startDate:r,endDate:i}=e;if(!t)return!1;let a=new Date(r),o=new Date(i),s=new Date;return s>=a&&s<=o}),s=(0,t.computed)(()=>n.getNotification?.tooltip),c=(0,t.computed)(()=>n.getNotification?.title),l=(0,t.computed)(()=>{let e=n.getNotification;if(!e)return``;let{text:t,linkUrl:r,linkText:i}=e;return`
1300
+ `,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});function KM(e){let{char:t,allowSpaces:n,allowToIncludeChar:r,allowedPrefixes:i,startOfLine:a,$position:o}=e,s=n&&!r,c=kO(t),l=RegExp(`\\s${c}$`),u=a?`^`:``,d=r?``:c,f=RegExp(s?`${u}${c}.*?(?=\\s${d}|$)`:`${u}(?:^)?${c}[^\\s${d}]*`,`gm`),p=o.nodeBefore?.isText&&o.nodeBefore.text;if(!p)return null;let m=o.pos-p.length,h=Array.from(p.matchAll(f)).pop();if(!h||h.input===void 0||h.index===void 0)return null;let g=h.input.slice(Math.max(0,h.index-1),h.index),_=RegExp(`^[${i?.join(``)}\0]?$`).test(g);if(i!==null&&!_)return null;let v=m+h.index,y=v+h[0].length;return s&&l.test(p.slice(y-1,y+1))&&(h[0]+=` `,y+=1),v<o.pos&&y>=o.pos?{range:{from:v,to:y},query:h[0].slice(t.length),text:h[0]}:null}var qM=new By(`suggestion`);function JM({pluginKey:e=qM,editor:t,char:n=`@`,allowSpaces:r=!1,allowToIncludeChar:i=!1,allowedPrefixes:a=[` `],startOfLine:o=!1,decorationTag:s=`span`,decorationClass:c=`suggestion`,decorationContent:l=``,decorationEmptyClass:u=`is-empty`,command:d=()=>null,items:f=()=>[],render:p=()=>({}),allow:m=()=>!0,findSuggestionMatch:h=KM,shouldShow:g}){let _,v=p?.(),y=()=>{let e=t.state.selection.$anchor.pos,{top:n,right:r,bottom:i,left:a}=t.view.coordsAtPos(e);try{return new DOMRect(a,n,r-a,i-n)}catch{return null}},b=(n,r)=>r?()=>{let r=e.getState(t.state)?.decorationId;return n.dom.querySelector(`[data-decoration-id="${r}"]`)?.getBoundingClientRect()||null}:y;function x(n,r){var i;try{let r=e.getState(n.state),a=r?.decorationId?n.dom.querySelector(`[data-decoration-id="${r.decorationId}"]`):null,o={editor:t,range:r?.range||{from:0,to:0},query:r?.query||null,text:r?.text||null,items:[],command:e=>d({editor:t,range:r?.range||{from:0,to:0},props:e}),decorationNode:a,clientRect:b(n,a)};(i=v?.onExit)==null||i.call(v,o)}catch{}let a=n.state.tr.setMeta(r,{exit:!0});n.dispatch(a)}let S=new Ly({key:e,view(){return{update:async(e,n)=>{var r,i,a,o,s;let c=this.key?.getState(n),l=this.key?.getState(e.state),u=c.active&&l.active&&c.range.from!==l.range.from,p=!c.active&&l.active,m=c.active&&!l.active,h=!p&&!m&&c.query!==l.query,g=p||u&&h,y=h||u,x=m||u&&h;if(!g&&!y&&!x)return;let S=x&&!g?c:l,C=e.dom.querySelector(`[data-decoration-id="${S.decorationId}"]`);_={editor:t,range:S.range,query:S.query,text:S.text,items:[],command:e=>d({editor:t,range:S.range,props:e}),decorationNode:C,clientRect:b(e,C)},g&&((r=v?.onBeforeStart)==null||r.call(v,_)),y&&((i=v?.onBeforeUpdate)==null||i.call(v,_)),(y||g)&&(_.items=await f({editor:t,query:S.query})),x&&((a=v?.onExit)==null||a.call(v,_)),y&&((o=v?.onUpdate)==null||o.call(v,_)),g&&((s=v?.onStart)==null||s.call(v,_))},destroy:()=>{var e;_&&((e=v?.onExit)==null||e.call(v,_))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(s,c,l,u){let{isEditable:d}=t,{composing:f}=t.view,{selection:p}=s,{empty:_,from:v}=p,y={...c},b=s.getMeta(e);if(b&&b.exit)return y.active=!1,y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null,y;if(y.composing=f,d&&(_||t.view.composing)){(v<c.range.from||v>c.range.to)&&!f&&!c.composing&&(y.active=!1);let e=h({char:n,allowSpaces:r,allowToIncludeChar:i,allowedPrefixes:a,startOfLine:o,$position:p.$from}),l=`id_${Math.floor(Math.random()*4294967295)}`;e&&m({editor:t,state:u,range:e.range,isActive:c.active})&&(!g||g({editor:t,range:e.range,query:e.query,text:e.text,transaction:s}))?(y.active=!0,y.decorationId=c.decorationId?c.decorationId:l,y.range=e.range,y.query=e.query,y.text=e.text):y.active=!1}else y.active=!1;return y.active||(y.decorationId=null,y.range={from:0,to:0},y.query=null,y.text=null),y}},props:{handleKeyDown(n,r){var i;let{active:a,range:o}=S.getState(n.state);if(!a)return!1;if(r.key===`Escape`||r.key===`Esc`){let a=S.getState(n.state),o=_?.decorationNode??null??(a?.decorationId?n.dom.querySelector(`[data-decoration-id="${a.decorationId}"]`):null);if((v?.onKeyDown)?.call(v,{view:n,event:r,range:a.range}))return!0;let s={editor:t,range:a.range,query:a.query,text:a.text,items:[],command:e=>d({editor:t,range:a.range,props:e}),decorationNode:o,clientRect:o?()=>o.getBoundingClientRect()||null:null};return(i=v?.onExit)==null||i.call(v,s),x(n,e),!0}return(v?.onKeyDown)?.call(v,{view:n,event:r,range:o})||!1},decorations(e){let{active:t,range:n,decorationId:r,query:i}=S.getState(e);if(!t)return null;let a=!i?.length,o=[c];return a&&o.push(u),fw.create(e.doc,[lw.inline(n.from,n.to,{nodeName:s,class:o.join(` `),"data-decoration-id":r,"data-decoration-content":l})])}}});return S}function YM({editor:e,overrideSuggestionOptions:t,extensionName:n,char:r=`@`}){return{editor:e,char:r,pluginKey:new By,command:({editor:e,range:t,props:i})=>{var a;(e.view.state.selection.$to.nodeAfter?.text)?.startsWith(` `)&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:n,attrs:{...i,mentionSuggestionChar:r}},{type:`text`,text:` `}]).run(),(a=e.view.dom.ownerDocument.defaultView?.getSelection())==null||a.collapseToEnd()},allow:({state:e,range:t})=>{let r=e.doc.resolve(t.from),i=e.schema.nodes[n];return!!r.parent.type.contentMatch.matchType(i)},...t}}function XM(e){return(e.options.suggestions.length?e.options.suggestions:[e.options.suggestion]).map(t=>YM({editor:e.editor,overrideSuggestionOptions:t,extensionName:e.name,char:t.char}))}function ZM(e,t){let n=XM(e);return n.find(e=>e.char===t)||(n.length?n[0]:null)}var QM=BO.create({name:`mention`,priority:101,addOptions(){return{HTMLAttributes:{},renderText({node:e,suggestion:t}){return`${t?.char??`@`}${e.attrs.label??e.attrs.id}`},deleteTriggerWithBackspace:!1,renderHTML({options:e,node:t,suggestion:n}){return[`span`,UE(this.HTMLAttributes,e.HTMLAttributes),`${n?.char??`@`}${t.attrs.label??t.attrs.id}`]},suggestions:[],suggestion:{}}},group:`inline`,inline:!0,selectable:!1,atom:!0,addAttributes(){return{id:{default:null,parseHTML:e=>e.getAttribute(`data-id`),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute(`data-label`),renderHTML:e=>e.label?{"data-label":e.label}:{}},mentionSuggestionChar:{default:`@`,parseHTML:e=>e.getAttribute(`data-mention-suggestion-char`),renderHTML:e=>({"data-mention-suggestion-char":e.mentionSuggestionChar})}}},parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){let n=ZM(this,e.attrs.mentionSuggestionChar);if(this.options.renderLabel!==void 0)return console.warn(`renderLabel is deprecated use renderText and renderHTML instead`),[`span`,UE({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e,suggestion:n})];let r={...this.options};r.HTMLAttributes=UE({"data-type":this.name},this.options.HTMLAttributes,t);let i=this.options.renderHTML({options:r,node:e,suggestion:n});return typeof i==`string`?[`span`,UE({"data-type":this.name},this.options.HTMLAttributes,t),i]:i},...IO({nodeName:`mention`,name:`@`,selfClosing:!0,allowedAttributes:[`id`,`label`,{name:`mentionSuggestionChar`,skipIfDefault:`@`}],parseAttributes:e=>{let t={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g,r=n.exec(e);for(;r!==null;){let[,i,a,o]=r;t[i===`char`?`mentionSuggestionChar`:i]=a??o,r=n.exec(e)}return t},serializeAttributes:e=>Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>`${e===`mentionSuggestionChar`?`char`:e}="${t}"`).join(` `)}),renderText({node:e}){let t={options:this.options,node:e,suggestion:ZM(this,e.attrs.mentionSuggestionChar)};return this.options.renderLabel===void 0?this.options.renderText(t):(console.warn(`renderLabel is deprecated use renderText and renderHTML instead`),this.options.renderLabel(t))},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command(({tr:e,state:t})=>{let n=!1,{selection:r}=t,{empty:i,anchor:a}=r;if(!i)return!1;let o=new c_,s=0;return t.doc.nodesBetween(a-1,a,(e,t)=>{if(e.type.name===this.name)return n=!0,o=e,s=t,!1}),n&&e.insertText(this.options.deleteTriggerWithBackspace?``:o.attrs.mentionSuggestionChar,s,s+o.nodeSize),n})}},addProseMirrorPlugins(){return XM(this).map(JM)}}),$M={class:`dropdown-menu show`},eN=[`onClick`],tN={__name:`BDPlaceholderList`,props:{items:Array,command:Function},setup(e,{expose:n}){let r=e,i=(0,t.ref)(0);(0,t.watch)(()=>r.items,()=>{i.value=0});let a=e=>{let t=r.items[e];t&&r.command(t)};return n({onKeyDown:({event:e})=>r.items?.length?e.key===`ArrowUp`?(i.value=(i.value+r.items.length-1)%r.items.length,!0):e.key===`ArrowDown`?(i.value=(i.value+1)%r.items.length,!0):e.key===`Enter`?(a(i.value),!0):!1:!1}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,$M,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:n,class:(0,t.normalizeClass)([`dropdown-item`,{active:n===i.value}]),onClick:e=>a(n)},(0,t.toDisplayString)(e.label),11,eN))),128))]))}},nN=(e=[],t)=>({items:({query:t})=>e.filter(e=>e.label.toLowerCase().includes(t.toLowerCase())),command:({editor:e,range:t,props:n})=>{e.chain().focus().deleteRange(t).insertContent(`{${n.id}}`).run()},render:()=>{let e=null,n=n=>{let r=n.clientRect?.(),i=t?.value;if(!r||!i||!e?.element)return;let a=i.getBoundingClientRect(),o=r.left-a.left+i.scrollLeft,s=r.bottom-a.top+i.scrollTop,c=e.element;c.classList.add(`placeholder-tokens-menu`),c.style.position=`absolute`,c.style.left=`${Math.round(o)}px`,c.style.top=`${Math.round(s)}px`};return{onStart:r=>{e=new KO(tN,{props:r,editor:r.editor});let i=t?.value;i&&e.element&&i.appendChild(e.element),n(r)},onUpdate(t){e&&e.updateProps(t),n(t)},onKeyDown(t){return e?.ref?.onKeyDown?.(t)??!1},onExit(){e&&(e.destroy(),e.element?.remove())}}}}),rN={class:`popover bd-link-input-popover show bd-link-input-bottom`},iN={class:`popover-body`},aN={class:`form-label`},oN={key:0,class:`validation-text`},sN={class:`d-flex gap-2 mt-2`},cN=[`disabled`],lN=(0,t.defineComponent)({__name:`BDLinkInput`,props:{previousUrl:{}},emits:[`submit`,`cancel`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(r.previousUrl??``),o=(0,t.computed)(()=>{if(!a.value)return!!r.previousUrl;if(a.value===r.previousUrl)return!1;let e=a.value.trim().toLowerCase();return e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`www.`)}),s=(0,t.computed)(()=>a.value&&a.value===r.previousUrl?`De URL is niet gewijzigd`:a.value&&!o.value?`De URL moet beginnen met http://, https:// of www.`:``),c=(0,t.computed)(()=>r.previousUrl?a.value?`Wijzigen`:`Verwijderen`:`Toevoegen`),l=()=>i(`submit`,a.value),u=()=>i(`cancel`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,rN,[n[2]||=(0,t.createElementVNode)(`div`,{class:`popover-header`},`Link beheren`,-1),(0,t.createElementVNode)(`div`,iN,[(0,t.createElementVNode)(`label`,aN,[n[1]||=(0,t.createTextVNode)(` URL: `,-1),(0,t.withDirectives)((0,t.createElementVNode)(`input`,{"onUpdate:modelValue":n[0]||=e=>a.value=e,type:`text`,class:`form-control`,placeholder:`https://www.example.com`},null,512),[[t.vModelText,a.value]]),s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,oN,(0,t.toDisplayString)(s.value),1)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,sN,[(0,t.createElementVNode)(`button`,{type:`button`,class:`btn btn-primary btn-sm`,disabled:!o.value,onClick:l},(0,t.toDisplayString)(c.value),9,cN),(0,t.createElementVNode)(`button`,{type:`button`,class:`btn btn-secondary btn-sm`,onClick:u},` Annuleren `)])])]))}}),uN={BASIC:`basic`,FULL:`full`,FORMAT:`format`},dN={class:`attachment-list`},fN={class:`attachment-link`},pN={key:1,class:`attachment-no-download`},mN=[`href`],hN=(0,t.defineComponent)({__name:`BDAttachmentPreviewList`,props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`],setup(e,{emit:n}){let r=n,i=e=>{r(`delete`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,dN,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.files,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{class:`attachment-list__item`,key:n.CorrelationId},[(0,t.createElementVNode)(`div`,fN,[e.showDelete?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`remove`,onClick:e=>i(n),"aria-label":`verwijder`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(gi))]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),e.noDownload?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,pN,[(0,t.createVNode)((0,t.unref)(ae)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(n.Naam.trim()),1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:2,href:n.downloadUrl},[(0,t.createVNode)((0,t.unref)(ae)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(n.Naam.trim()),1)],8,mN))])]))),128))]))}}),gN={class:`attachment-list`},_N={class:`attachment`},vN=[`onClick`],yN=[`src`,`alt`],bN=[`onClick`],xN=[`href`],SN={class:`btn btn-light download-button-image`},CN=[`src`,`alt`],wN=(0,t.defineComponent)({__name:`BDImageAttachmentPreviewList`,props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:[`delete`,`show`],setup(e,{emit:n}){let r=e,i=n,a=e=>{i(`delete`,e)},o=(e,t)=>{e.target&&e.target.className===`img-preview`&&i(`show`,t)};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`ul`,gN,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.files,n=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{class:`attachment-list__item`,key:n.CorrelationId},[(0,t.createElementVNode)(`div`,_N,[e.showDelete?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`remove`,"aria-label":`verwijder`,onClick:(0,t.withModifiers)(e=>a(n),[`prevent`])},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(gi))]),_:1},8,[`onClick`])):(0,t.createCommentVNode)(``,!0),r.noDownload?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,onClick:e=>o(e,n)},[(0,t.createElementVNode)(`img`,{src:n.previewUrl,class:`img-preview`,alt:n.altName,loading:`lazy`},null,8,yN)],8,vN)):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,onClick:e=>o(e,n)},[r.fastDownload?((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:0,href:n.downloadUrl,class:`download-link`},[(0,t.createElementVNode)(`button`,SN,[(0,t.createVNode)((0,t.unref)(Rt))])],8,xN)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`img`,{src:n.previewUrl,alt:n.altName,class:`img-preview`,loading:`lazy`},null,8,CN)],8,bN))])]))),128))]))}}),TN=e=>e?.map(e=>e.CorrelationId),EN=e=>e.Naam.toLowerCase().endsWith(`.png`)||e.Naam.toLowerCase().endsWith(`.jpg`)||e.Naam.toLowerCase().endsWith(`.jpeg`)||e.Naam.toLowerCase().endsWith(`.gif`),DN=(e,t)=>t.DownloadUrl?t.DownloadUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlage/${t.Id}`:t.FileId?`${e}/Portaal/DownloadStandardMessageAttachment/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlage/${t.CorrelationId}`,ON=(e,t)=>t.ThumbnailUrl?t.ThumbnailUrl:t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?`${e}/Portaal/DownloadBerichtBijlageThumbnail/${t.Id}`:t.StandardAttachmentId||t.standardAttachmentId?`${e}/Portaal/DownloadStandardMessageAttachmentThumbnail/${t.StandardAttachmentId}/${t.FileId}`:`${e}/Portaal/DownloadBerichtStagingBijlageThumbnail/${t.CorrelationId}`,kN=(e,t)=>t.identifier?`${e}/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:null,AN=(e,t)=>t?EN(e):!EN(e),jN=(e=``,t,n)=>{if(t!==void 0)return t.filter(e=>AN(e,n)).map(t=>{let n=typeof t.CorrelationId==`string`?t.CorrelationId:t.CorrelationId==null?``:t.CorrelationId.toString();return{downloadUrl:DN(e,t),previewUrl:ON(e,t),fullImageUrl:kN(e,t),altName:`${t.Naam}`,...t,CorrelationId:n}})},MN=`bottom`,NN=`right`,PN=`left`,FN=`auto`,IN=[`top`,MN,NN,PN],LN=`start`,RN=`clippingParents`,zN=`viewport`,BN=`popper`,VN=`reference`,HN=IN.reduce(function(e,t){return e.concat([t+`-`+LN,t+`-end`])},[]),UN=[].concat(IN,[FN]).reduce(function(e,t){return e.concat([t,t+`-`+LN,t+`-end`])},[]),WN=`beforeRead`,GN=`read`,KN=`afterRead`,qN=`beforeMain`,JN=`main`,YN=`afterMain`,XN=`beforeWrite`,ZN=`write`,QN=`afterWrite`,$N=[WN,GN,KN,qN,JN,YN,XN,ZN,QN];function eP(e){return e?(e.nodeName||``).toLowerCase():null}function tP(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nP(e){return e instanceof tP(e).Element||e instanceof Element}function rP(e){return e instanceof tP(e).HTMLElement||e instanceof HTMLElement}function iP(e){return typeof ShadowRoot>`u`?!1:e instanceof tP(e).ShadowRoot||e instanceof ShadowRoot}function aP(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!rP(i)||!eP(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function oP(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!rP(r)||!eP(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var sP={name:`applyStyles`,enabled:!0,phase:`write`,fn:aP,effect:oP,requires:[`computeStyles`]};function cP(e){return e.split(`-`)[0]}var lP=Math.max,uP=Math.min,dP=Math.round;function fP(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function pP(){return!/^((?!chrome|android).)*safari/i.test(fP())}function mP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&rP(e)&&(i=e.offsetWidth>0&&dP(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&dP(r.height)/e.offsetHeight||1);var o=(nP(e)?tP(e):window).visualViewport,s=!pP()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function hP(e){var t=mP(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function gP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&iP(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function _P(e){return tP(e).getComputedStyle(e)}function vP(e){return[`table`,`td`,`th`].indexOf(eP(e))>=0}function yP(e){return((nP(e)?e.ownerDocument:e.document)||window.document).documentElement}function bP(e){return eP(e)===`html`?e:e.assignedSlot||e.parentNode||(iP(e)?e.host:null)||yP(e)}function xP(e){return!rP(e)||_P(e).position===`fixed`?null:e.offsetParent}function SP(e){var t=/firefox/i.test(fP());if(/Trident/i.test(fP())&&rP(e)&&_P(e).position===`fixed`)return null;var n=bP(e);for(iP(n)&&(n=n.host);rP(n)&&[`html`,`body`].indexOf(eP(n))<0;){var r=_P(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function CP(e){for(var t=tP(e),n=xP(e);n&&vP(n)&&_P(n).position===`static`;)n=xP(n);return n&&(eP(n)===`html`||eP(n)===`body`&&_P(n).position===`static`)?t:n||SP(e)||t}function wP(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function TP(e,t,n){return lP(e,uP(t,n))}function EP(e,t,n){var r=TP(e,t,n);return r>n?n:r}function DP(){return{top:0,right:0,bottom:0,left:0}}function OP(e){return Object.assign({},DP(),e)}function kP(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var AP=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,OP(typeof e==`number`?kP(e,IN):e)};function jP(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=cP(n.placement),c=wP(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=AP(i.padding,n),d=hP(a),f=c===`y`?`top`:PN,p=c===`y`?MN:NN,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=CP(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=TP(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function MP(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||gP(t.elements.popper,r)&&(t.elements.arrow=r))}var NP={name:`arrow`,enabled:!0,phase:`main`,fn:jP,effect:MP,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function PP(e){return e.split(`-`)[1]}var FP={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function IP(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:dP(n*i)/i||0,y:dP(r*i)/i||0}}function LP(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=PN,b=`top`,x=window;if(l){var S=CP(n),C=`clientHeight`,w=`clientWidth`;if(S===tP(n)&&(S=yP(n),_P(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=MN;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=NN;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&FP),O=u===!0?IP({x:p,y:h},tP(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function RP(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:cP(t.placement),variation:PP(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,LP(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,LP(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var zP={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:RP,data:{}},BP={passive:!0};function VP(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=tP(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,BP)}),s&&c.addEventListener(`resize`,n.update,BP),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,BP)}),s&&c.removeEventListener(`resize`,n.update,BP)}}var HP={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:VP,data:{}},UP={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function WP(e){return e.replace(/left|right|bottom|top/g,function(e){return UP[e]})}var GP={start:`end`,end:`start`};function KP(e){return e.replace(/start|end/g,function(e){return GP[e]})}function qP(e){var t=tP(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function JP(e){return mP(yP(e)).left+qP(e).scrollLeft}function YP(e,t){var n=tP(e),r=yP(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=pP();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+JP(e),y:c}}function XP(e){var t=yP(e),n=qP(e),r=e.ownerDocument?.body,i=lP(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=lP(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+JP(e),s=-n.scrollTop;return _P(r||t).direction===`rtl`&&(o+=lP(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function ZP(e){var t=_P(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function QP(e){return[`html`,`body`,`#document`].indexOf(eP(e))>=0?e.ownerDocument.body:rP(e)&&ZP(e)?e:QP(bP(e))}function $P(e,t){t===void 0&&(t=[]);var n=QP(e),r=n===e.ownerDocument?.body,i=tP(n),a=r?[i].concat(i.visualViewport||[],ZP(n)?n:[]):n,o=t.concat(a);return r?o:o.concat($P(bP(a)))}function eF(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tF(e,t){var n=mP(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function nF(e,t,n){return t===`viewport`?eF(YP(e,n)):nP(t)?tF(t,n):eF(XP(yP(e)))}function rF(e){var t=$P(bP(e)),n=[`absolute`,`fixed`].indexOf(_P(e).position)>=0&&rP(e)?CP(e):e;return nP(n)?t.filter(function(e){return nP(e)&&gP(e,n)&&eP(e)!==`body`}):[]}function iF(e,t,n,r){var i=t===`clippingParents`?rF(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=nF(e,n,r);return t.top=lP(i.top,t.top),t.right=uP(i.right,t.right),t.bottom=uP(i.bottom,t.bottom),t.left=lP(i.left,t.left),t},nF(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function aF(e){var t=e.reference,n=e.element,r=e.placement,i=r?cP(r):null,a=r?PP(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case MN:c={x:o,y:t.y+t.height};break;case NN:c={x:t.x+t.width,y:s};break;case PN:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?wP(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case LN:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function oF(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?RN:s,l=n.rootBoundary,u=l===void 0?zN:l,d=n.elementContext,f=d===void 0?BN:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=OP(typeof g==`number`?kP(g,IN):g),v=f===`popper`?VN:BN,y=e.rects.popper,b=e.elements[m?v:f],x=iF(nP(b)?b:b.contextElement||yP(e.elements.popper),c,u,o),S=mP(e.elements.reference),C=aF({reference:S,element:y,strategy:`absolute`,placement:i}),w=eF(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function sF(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?UN:c,u=PP(r),d=u?s?HN:HN.filter(function(e){return PP(e)===u}):IN,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=oF(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[cP(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function cF(e){if(cP(e)===`auto`)return[];var t=WP(e);return[KP(e),t,KP(t)]}function lF(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=cP(g)===g,v=c||(_||!m?[WP(g)]:cF(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(cP(n)===`auto`?sF(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=cP(E),O=PP(E)===LN,k=[`top`,MN].indexOf(D)>=0,A=k?`width`:`height`,j=oF(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?NN:PN:O?MN:`top`;b[A]>x[A]&&(M=WP(M));var ee=WP(M),te=[];if(a&&te.push(j[D]<=0),s&&te.push(j[M]<=0,j[ee]<=0),te.every(function(e){return e})){w=E,C=!1;break}S.set(E,te)}if(C)for(var ne=m?3:1,re=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},ie=ne;ie>0&&re(ie)!==`break`;ie--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var uF={name:`flip`,enabled:!0,phase:`main`,fn:lF,requiresIfExists:[`offset`],data:{_skip:!1}};function dF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function fF(e){return[`top`,NN,MN,PN].some(function(t){return e[t]>=0})}function pF(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=oF(t,{elementContext:`reference`}),s=oF(t,{altBoundary:!0}),c=dF(o,r),l=dF(s,i,a),u=fF(c),d=fF(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var mF={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:pF};function hF(e,t,n){var r=cP(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function gF(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=UN.reduce(function(e,n){return e[n]=hF(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var _F={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:gF};function vF(e){var t=e.state,n=e.name;t.modifiersData[n]=aF({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var yF={name:`popperOffsets`,enabled:!0,phase:`read`,fn:vF,data:{}};function bF(e){return e===`x`?`y`:`x`}function xF(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=oF(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=cP(t.placement),v=PP(t.placement),y=!v,b=wP(_),x=bF(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:PN,A=b===`y`?MN:NN,j=b===`y`?`height`:`width`,M=S[b],ee=M+g[k],te=M-g[A],ne=p?-w[j]/2:0,re=v===`start`?C[j]:w[j],ie=v===`start`?-w[j]:-C[j],ae=t.elements.arrow,oe=p&&ae?hP(ae):{width:0,height:0},se=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:DP(),ce=se[k],le=se[A],N=TP(0,C[j],oe[j]),ue=y?C[j]/2-ne-N-ce-E.mainAxis:re-N-ce-E.mainAxis,de=y?-C[j]/2+ne+N+le+E.mainAxis:ie+N+le+E.mainAxis,fe=t.elements.arrow&&CP(t.elements.arrow),pe=fe?b===`y`?fe.clientTop||0:fe.clientLeft||0:0,me=D?.[b]??0,he=M+ue-me-pe,ge=M+de-me,_e=TP(p?uP(ee,he):ee,M,p?lP(te,ge):te);S[b]=_e,O[b]=_e-M}if(s){var ve=b===`x`?`top`:PN,ye=b===`x`?MN:NN,be=S[x],xe=x===`y`?`height`:`width`,Se=be+g[ve],Ce=be-g[ye],we=[`top`,PN].indexOf(_)!==-1,Te=D?.[x]??0,Ee=we?Se:be-C[xe]-w[xe]-Te+E.altAxis,De=we?be+C[xe]+w[xe]-Te-E.altAxis:Ce,Oe=p&&we?EP(Ee,be,De):TP(p?Ee:Se,be,p?De:Ce);S[x]=Oe,O[x]=Oe-be}t.modifiersData[r]=O}}var SF={name:`preventOverflow`,enabled:!0,phase:`main`,fn:xF,requiresIfExists:[`offset`]};function CF(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wF(e){return e===tP(e)||!rP(e)?qP(e):CF(e)}function TF(e){var t=e.getBoundingClientRect(),n=dP(t.width)/e.offsetWidth||1,r=dP(t.height)/e.offsetHeight||1;return n!==1||r!==1}function EF(e,t,n){n===void 0&&(n=!1);var r=rP(t),i=rP(t)&&TF(t),a=yP(t),o=mP(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((eP(t)!==`body`||ZP(a))&&(s=wF(t)),rP(t)?(c=mP(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=JP(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function DF(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function OF(e){var t=DF(e);return $N.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function kF(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function AF(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var jF={placement:`bottom`,modifiers:[],strategy:`absolute`};function MF(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function NF(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?jF:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},jF,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:nP(e)?$P(e):e.contextElement?$P(e.contextElement):[],popper:$P(t)};var s=OF(AF([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(MF(t,n)){i.rects={reference:EF(t,CP(n),i.options.strategy===`fixed`),popper:hP(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:kF(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!MF(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var PF=NF(),FF=NF({defaultModifiers:[HP,yF,zP,sP]}),IF=NF({defaultModifiers:[HP,yF,zP,sP,_F,uF,SF,NP,mF]}),LF=u({afterMain:()=>YN,afterRead:()=>KN,afterWrite:()=>QN,applyStyles:()=>sP,arrow:()=>NP,auto:()=>FN,basePlacements:()=>IN,beforeMain:()=>qN,beforeRead:()=>WN,beforeWrite:()=>XN,bottom:()=>MN,clippingParents:()=>RN,computeStyles:()=>zP,createPopper:()=>IF,createPopperBase:()=>PF,createPopperLite:()=>FF,detectOverflow:()=>oF,end:()=>`end`,eventListeners:()=>HP,flip:()=>uF,hide:()=>mF,left:()=>PN,main:()=>JN,modifierPhases:()=>$N,offset:()=>_F,placements:()=>UN,popper:()=>BN,popperGenerator:()=>NF,popperOffsets:()=>yF,preventOverflow:()=>SF,read:()=>GN,reference:()=>VN,right:()=>NN,start:()=>LN,top:()=>`top`,variationPlacements:()=>HN,viewport:()=>zN,write:()=>ZN}),RF=new Map,zF={set(e,t,n){RF.has(e)||RF.set(e,new Map);let r=RF.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return RF.has(e)&&RF.get(e).get(t)||null},remove(e,t){if(!RF.has(e))return;let n=RF.get(e);n.delete(t),n.size===0&&RF.delete(e)}},BF=1e6,VF=1e3,HF=`transitionend`,UF=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),WF=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),GF=e=>{do e+=Math.floor(Math.random()*BF);while(document.getElementById(e));return e},KF=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*VF)},qF=e=>{e.dispatchEvent(new Event(HF))},JF=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),YF=e=>JF(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(UF(e)):null,XF=e=>{if(!JF(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},ZF=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,QF=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?QF(e.parentNode):null},$F=()=>{},eI=e=>{e.offsetHeight},tI=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,nI=[],rI=e=>{document.readyState===`loading`?(nI.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of nI)e()}),nI.push(e)):e()},iI=()=>document.documentElement.dir===`rtl`,aI=e=>{rI(()=>{let t=tI();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},oI=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,sI=(e,t,n=!0)=>{if(!n){oI(e);return}let r=KF(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(HF,a),oI(e))};t.addEventListener(HF,a),setTimeout(()=>{i||qF(t)},r)},cI=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},lI=/[^.]*(?=\..*)\.|.*/,uI=/\..*/,dI=/::\d+$/,fI={},pI=1,mI={mouseenter:`mouseover`,mouseleave:`mouseout`},hI=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function gI(e,t){return t&&`${t}::${pI++}`||e.uidEvent||pI++}function _I(e){let t=gI(e);return e.uidEvent=t,fI[t]=fI[t]||{},fI[t]}function vI(e,t){return function n(r){return EI(r,{delegateTarget:e}),n.oneOff&&Q.off(e,r.type,t),t.apply(e,[r])}}function yI(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return EI(i,{delegateTarget:o}),r.oneOff&&Q.off(e,i.type,t,n),n.apply(o,[i])}}function bI(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function xI(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=TI(e);return hI.has(a)||(a=e),[r,i,a]}function SI(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=xI(t,n,r);t in mI&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=_I(e),l=c[s]||(c[s]={}),u=bI(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=gI(o,t.replace(lI,``)),f=a?yI(e,n,o):vI(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function CI(e,t,n,r,i){let a=bI(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function wI(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&CI(e,t,n,o.callable,o.delegationSelector)}function TI(e){return e=e.replace(uI,``),mI[e]||e}var Q={on(e,t,n,r){SI(e,t,n,r,!1)},one(e,t,n,r){SI(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=xI(t,n,r),s=o!==t,c=_I(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;CI(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))wI(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(dI,``);(!s||t.includes(i))&&CI(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=tI(),i=t!==TI(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=EI(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function EI(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function DI(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function OI(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var kI={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${OI(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${OI(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=DI(e.dataset[r])}return t},getDataAttribute(e,t){return DI(e.getAttribute(`data-bs-${OI(t)}`))}},AI=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=JF(t)?kI.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...JF(t)?kI.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=JF(t)?`element`:WF(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},jI=`5.3.8`,MI=class extends AI{constructor(e,t){super(),e=YF(e),e&&(this._element=e,this._config=this._getConfig(t),zF.set(this._element,this.constructor.DATA_KEY,this))}dispose(){zF.remove(this._element,this.constructor.DATA_KEY),Q.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){sI(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return zF.get(YF(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return jI}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},NI=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>UF(e)).join(`,`):null},$={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!ZF(e)&&XF(e))},getSelectorFromElement(e){let t=NI(e);return t&&$.findOne(t)?t:null},getElementFromSelector(e){let t=NI(e);return t?$.findOne(t):null},getMultipleElementsFromSelector(e){let t=NI(e);return t?$.find(t):[]}},PI=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;Q.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),ZF(this))return;let i=$.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},FI=`alert`,II=`.bs.alert`,LI=`close${II}`,RI=`closed${II}`,zI=`fade`,BI=`show`,VI=class e extends MI{static get NAME(){return FI}close(){if(Q.trigger(this._element,LI).defaultPrevented)return;this._element.classList.remove(BI);let e=this._element.classList.contains(zI);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Q.trigger(this._element,RI),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};PI(VI,`close`),aI(VI);var HI=`button`,UI=`.bs.button`,WI=`.data-api`,GI=`active`,KI=`[data-bs-toggle="button"]`,qI=`click${UI}${WI}`,JI=class e extends MI{static get NAME(){return HI}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(GI))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};Q.on(document,qI,KI,e=>{e.preventDefault();let t=e.target.closest(KI);JI.getOrCreateInstance(t).toggle()}),aI(JI);var YI=`swipe`,XI=`.bs.swipe`,ZI=`touchstart${XI}`,QI=`touchmove${XI}`,$I=`touchend${XI}`,eL=`pointerdown${XI}`,tL=`pointerup${XI}`,nL=`touch`,rL=`pen`,iL=`pointer-event`,aL=40,oL={endCallback:null,leftCallback:null,rightCallback:null},sL={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},cL=class e extends AI{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return oL}static get DefaultType(){return sL}static get NAME(){return YI}dispose(){Q.off(this._element,XI)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),oI(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=aL)return;let t=e/this._deltaX;this._deltaX=0,t&&oI(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Q.on(this._element,eL,e=>this._start(e)),Q.on(this._element,tL,e=>this._end(e)),this._element.classList.add(iL)):(Q.on(this._element,ZI,e=>this._start(e)),Q.on(this._element,QI,e=>this._move(e)),Q.on(this._element,$I,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===rL||e.pointerType===nL)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},lL=`carousel`,uL=`.bs.carousel`,dL=`.data-api`,fL=`ArrowLeft`,pL=`ArrowRight`,mL=500,hL=`next`,gL=`prev`,_L=`left`,vL=`right`,yL=`slide${uL}`,bL=`slid${uL}`,xL=`keydown${uL}`,SL=`mouseenter${uL}`,CL=`mouseleave${uL}`,wL=`dragstart${uL}`,TL=`load${uL}${dL}`,EL=`click${uL}${dL}`,DL=`carousel`,OL=`active`,kL=`slide`,AL=`carousel-item-end`,jL=`carousel-item-start`,ML=`carousel-item-next`,NL=`carousel-item-prev`,PL=`.active`,FL=`.carousel-item`,IL=PL+FL,LL=`.carousel-item img`,RL=`.carousel-indicators`,zL=`[data-bs-slide], [data-bs-slide-to]`,BL=`[data-bs-ride="carousel"]`,VL={[fL]:vL,[pL]:_L},HL={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},UL={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},WL=class e extends MI{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=$.findOne(RL,this._element),this._addEventListeners(),this._config.ride===DL&&this.cycle()}static get Default(){return HL}static get DefaultType(){return UL}static get NAME(){return lL}next(){this._slide(hL)}nextWhenVisible(){!document.hidden&&XF(this._element)&&this.next()}prev(){this._slide(gL)}pause(){this._isSliding&&qF(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Q.one(this._element,bL,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){Q.one(this._element,bL,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?hL:gL;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Q.on(this._element,xL,e=>this._keydown(e)),this._config.pause===`hover`&&(Q.on(this._element,SL,()=>this.pause()),Q.on(this._element,CL,()=>this._maybeEnableCycle())),this._config.touch&&cL.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of $.find(LL,this._element))Q.on(e,wL,e=>e.preventDefault());this._swipeHelper=new cL(this._element,{leftCallback:()=>this._slide(this._directionToOrder(_L)),rightCallback:()=>this._slide(this._directionToOrder(vL)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),mL+this._config.interval))}})}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=VL[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=$.findOne(PL,this._indicatorsElement);t.classList.remove(OL),t.removeAttribute(`aria-current`);let n=$.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(OL),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===hL,i=t||cI(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>Q.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(yL).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?jL:AL,l=r?ML:NL;i.classList.add(l),eI(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(OL),n.classList.remove(OL,l,c),this._isSliding=!1,o(bL)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(kL)}_getActive(){return $.findOne(IL,this._element)}_getItems(){return $.find(FL,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return iI()?e===_L?gL:hL:e===_L?hL:gL}_orderToDirection(e){return iI()?e===gL?_L:vL:e===gL?vL:_L}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(document,EL,zL,function(e){let t=$.getElementFromSelector(this);if(!t||!t.classList.contains(DL))return;e.preventDefault();let n=WL.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(kI.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),Q.on(window,TL,()=>{let e=$.find(BL);for(let t of e)WL.getOrCreateInstance(t)}),aI(WL);var GL=`collapse`,KL=`.bs.collapse`,qL=`.data-api`,JL=`show${KL}`,YL=`shown${KL}`,XL=`hide${KL}`,ZL=`hidden${KL}`,QL=`click${KL}${qL}`,$L=`show`,eR=`collapse`,tR=`collapsing`,nR=`collapsed`,rR=`:scope .${eR} .${eR}`,iR=`collapse-horizontal`,aR=`width`,oR=`height`,sR=`.collapse.show, .collapse.collapsing`,cR=`[data-bs-toggle="collapse"]`,lR={parent:null,toggle:!0},uR={parent:`(null|element)`,toggle:`boolean`},dR=class e extends MI{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=$.find(cR);for(let e of n){let t=$.getSelectorFromElement(e),n=$.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return lR}static get DefaultType(){return uR}static get NAME(){return GL}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(sR).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||Q.trigger(this._element,JL).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(eR),this._element.classList.add(tR),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(tR),this._element.classList.add(eR,$L),this._element.style[n]=``,Q.trigger(this._element,YL)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||Q.trigger(this._element,XL).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,eI(this._element),this._element.classList.add(tR),this._element.classList.remove(eR,$L);for(let e of this._triggerArray){let t=$.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove(tR),this._element.classList.add(eR),Q.trigger(this._element,ZL)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains($L)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=YF(e.parent),e}_getDimension(){return this._element.classList.contains(iR)?aR:oR}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(cR);for(let t of e){let e=$.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=$.find(rR,this._config.parent);return $.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(nR,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};Q.on(document,QL,cR,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of $.getMultipleElementsFromSelector(this))dR.getOrCreateInstance(e,{toggle:!1}).toggle()}),aI(dR);var fR=`dropdown`,pR=`.bs.dropdown`,mR=`.data-api`,hR=`Escape`,gR=`Tab`,_R=`ArrowUp`,vR=`ArrowDown`,yR=2,bR=`hide${pR}`,xR=`hidden${pR}`,SR=`show${pR}`,CR=`shown${pR}`,wR=`click${pR}${mR}`,TR=`keydown${pR}${mR}`,ER=`keyup${pR}${mR}`,DR=`show`,OR=`dropup`,kR=`dropend`,AR=`dropstart`,jR=`dropup-center`,MR=`dropdown-center`,NR=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,PR=`${NR}.${DR}`,FR=`.dropdown-menu`,IR=`.navbar`,LR=`.navbar-nav`,RR=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,zR=iI()?`top-end`:`top-start`,BR=iI()?`top-start`:`top-end`,VR=iI()?`bottom-end`:`bottom-start`,HR=iI()?`bottom-start`:`bottom-end`,UR=iI()?`left-start`:`right-start`,WR=iI()?`right-start`:`left-start`,GR=`top`,KR=`bottom`,qR={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},JR={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},YR=class e extends MI{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=$.next(this._element,FR)[0]||$.prev(this._element,FR)[0]||$.findOne(FR,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return qR}static get DefaultType(){return JR}static get NAME(){return fR}toggle(){return this._isShown()?this.hide():this.show()}show(){if(ZF(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!Q.trigger(this._element,SR,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(LR))for(let e of[].concat(...document.body.children))Q.on(e,`mouseover`,$F);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(DR),this._element.classList.add(DR),Q.trigger(this._element,CR,e)}}hide(){if(ZF(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Q.trigger(this._element,bR,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.off(e,`mouseover`,$F);this._popper&&this._popper.destroy(),this._menu.classList.remove(DR),this._element.classList.remove(DR),this._element.setAttribute(`aria-expanded`,`false`),kI.removeDataAttribute(this._menu,`popper`),Q.trigger(this._element,xR,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!JF(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${fR.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(LF===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:JF(this._config.reference)?e=YF(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=IF(e,this._menu,t)}_isShown(){return this._menu.classList.contains(DR)}_getPlacement(){let e=this._parent;if(e.classList.contains(kR))return UR;if(e.classList.contains(AR))return WR;if(e.classList.contains(jR))return GR;if(e.classList.contains(MR))return KR;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(OR)?t?BR:zR:t?HR:VR}_detectNavbar(){return this._element.closest(IR)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(kI.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...oI(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=$.find(RR,this._menu).filter(e=>XF(e));n.length&&cI(n,t,e===vR,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===yR||t.type===`keyup`&&t.key!==gR)return;let n=$.find(PR);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===gR||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===hR,i=[_R,vR].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(NR)?this:$.prev(this,NR)[0]||$.next(this,NR)[0]||$.findOne(NR,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};Q.on(document,TR,NR,YR.dataApiKeydownHandler),Q.on(document,TR,FR,YR.dataApiKeydownHandler),Q.on(document,wR,YR.clearMenus),Q.on(document,ER,YR.clearMenus),Q.on(document,wR,NR,function(e){e.preventDefault(),YR.getOrCreateInstance(this).toggle()}),aI(YR);var XR=`backdrop`,ZR=`fade`,QR=`show`,$R=`mousedown.bs.${XR}`,ez={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},tz={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},nz=class extends AI{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return ez}static get DefaultType(){return tz}static get NAME(){return XR}show(e){if(!this._config.isVisible){oI(e);return}this._append();let t=this._getElement();this._config.isAnimated&&eI(t),t.classList.add(QR),this._emulateAnimation(()=>{oI(e)})}hide(e){if(!this._config.isVisible){oI(e);return}this._getElement().classList.remove(QR),this._emulateAnimation(()=>{this.dispose(),oI(e)})}dispose(){this._isAppended&&=(Q.off(this._element,$R),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(ZR),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=YF(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),Q.on(e,$R,()=>{oI(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){sI(e,this._getElement(),this._config.isAnimated)}},rz=`focustrap`,iz=`.bs.focustrap`,az=`focusin${iz}`,oz=`keydown.tab${iz}`,sz=`Tab`,cz=`forward`,lz=`backward`,uz={autofocus:!0,trapElement:null},dz={autofocus:`boolean`,trapElement:`element`},fz=class extends AI{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return uz}static get DefaultType(){return dz}static get NAME(){return rz}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),Q.off(document,iz),Q.on(document,az,e=>this._handleFocusin(e)),Q.on(document,oz,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,Q.off(document,iz))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=$.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===lz?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===sz&&(this._lastTabNavDirection=e.shiftKey?lz:cz)}},pz=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,mz=`.sticky-top`,hz=`padding-right`,gz=`margin-right`,_z=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,hz,t=>t+e),this._setElementAttributes(pz,hz,t=>t+e),this._setElementAttributes(mz,gz,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,hz),this._resetElementAttributes(pz,hz),this._resetElementAttributes(mz,gz)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&kI.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=kI.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}kI.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(JF(e)){t(e);return}for(let n of $.find(e,this._element))t(n)}},vz=`modal`,yz=`.bs.modal`,bz=`.data-api`,xz=`Escape`,Sz=`hide${yz}`,Cz=`hidePrevented${yz}`,wz=`hidden${yz}`,Tz=`show${yz}`,Ez=`shown${yz}`,Dz=`resize${yz}`,Oz=`click.dismiss${yz}`,kz=`mousedown.dismiss${yz}`,Az=`keydown.dismiss${yz}`,jz=`click${yz}${bz}`,Mz=`modal-open`,Nz=`fade`,Pz=`show`,Fz=`modal-static`,Iz=`.modal.show`,Lz=`.modal-dialog`,Rz=`.modal-body`,zz=`[data-bs-toggle="modal"]`,Bz={backdrop:!0,focus:!0,keyboard:!0},Vz={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},Hz=class e extends MI{constructor(e,t){super(e,t),this._dialog=$.findOne(Lz,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new _z,this._addEventListeners()}static get Default(){return Bz}static get DefaultType(){return Vz}static get NAME(){return vz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Q.trigger(this._element,Tz,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Mz),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Q.trigger(this._element,Sz).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Pz),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Q.off(window,yz),Q.off(this._dialog,yz),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new nz({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new fz({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=$.findOne(Rz,this._dialog);t&&(t.scrollTop=0),eI(this._element),this._element.classList.add(Pz),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Q.trigger(this._element,Ez,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){Q.on(this._element,Az,e=>{if(e.key===xz){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Q.on(window,Dz,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Q.on(this._element,kz,e=>{Q.one(this._element,Oz,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop===`static`){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display=`none`,this._element.setAttribute(`aria-hidden`,!0),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Mz),this._resetAdjustments(),this._scrollBar.reset(),Q.trigger(this._element,wz)})}_isAnimated(){return this._element.classList.contains(Nz)}_triggerBackdropTransition(){if(Q.trigger(this._element,Cz).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(Fz)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(Fz),this._queueCallback(()=>{this._element.classList.remove(Fz),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=iI()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=iI()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};Q.on(document,jz,zz,function(e){let t=$.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Q.one(t,Tz,e=>{e.defaultPrevented||Q.one(t,wz,()=>{XF(this)&&this.focus()})});let n=$.findOne(Iz);n&&Hz.getInstance(n).hide(),Hz.getOrCreateInstance(t).toggle(this)}),PI(Hz),aI(Hz);var Uz=`offcanvas`,Wz=`.bs.offcanvas`,Gz=`.data-api`,Kz=`load${Wz}${Gz}`,qz=`Escape`,Jz=`show`,Yz=`showing`,Xz=`hiding`,Zz=`offcanvas-backdrop`,Qz=`.offcanvas.show`,$z=`show${Wz}`,eB=`shown${Wz}`,tB=`hide${Wz}`,nB=`hidePrevented${Wz}`,rB=`hidden${Wz}`,iB=`resize${Wz}`,aB=`click${Wz}${Gz}`,oB=`keydown.dismiss${Wz}`,sB=`[data-bs-toggle="offcanvas"]`,cB={backdrop:!0,keyboard:!0,scroll:!1},lB={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},uB=class e extends MI{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return cB}static get DefaultType(){return lB}static get NAME(){return Uz}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Q.trigger(this._element,$z,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new _z().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(Yz),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Jz),this._element.classList.remove(Yz),Q.trigger(this._element,eB,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||Q.trigger(this._element,tB).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Xz),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Jz,Xz),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new _z().reset(),Q.trigger(this._element,rB)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){Q.trigger(this._element,nB);return}this.hide()},t=!!this._config.backdrop;return new nz({className:Zz,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new fz({trapElement:this._element})}_addEventListeners(){Q.on(this._element,oB,e=>{if(e.key===qz){if(this._config.keyboard){this.hide();return}Q.trigger(this._element,nB)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};Q.on(document,aB,sB,function(e){let t=$.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),ZF(this))return;Q.one(t,rB,()=>{XF(this)&&this.focus()});let n=$.findOne(Qz);n&&n!==t&&uB.getInstance(n).hide(),uB.getOrCreateInstance(t).toggle(this)}),Q.on(window,Kz,()=>{for(let e of $.find(Qz))uB.getOrCreateInstance(e).show()}),Q.on(window,iB,()=>{for(let e of $.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&uB.getOrCreateInstance(e).hide()}),PI(uB),aI(uB);var dB=/^aria-[\w-]*$/i,fB={"*":[`class`,`dir`,`id`,`lang`,`role`,dB],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},pB=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),mB=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,hB=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?pB.has(n)?!!mB.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function gB(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)hB(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var _B=`TemplateFactory`,vB={allowList:fB,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},yB={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},bB={entry:`(string|element|function|null)`,selector:`(string|element)`},xB=class extends AI{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return vB}static get DefaultType(){return yB}static get NAME(){return _B}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},bB)}_setContent(e,t,n){let r=$.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(JF(t)){this._putElementInTemplate(YF(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?gB(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return oI(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},SB=`tooltip`,CB=new Set([`sanitize`,`allowList`,`sanitizeFn`]),wB=`fade`,TB=`modal`,EB=`show`,DB=`.tooltip-inner`,OB=`.${TB}`,kB=`hide.bs.modal`,AB=`hover`,jB=`focus`,MB=`click`,NB=`manual`,PB=`hide`,FB=`hidden`,IB=`show`,LB=`shown`,RB=`inserted`,zB=`click`,BB=`focusin`,VB=`focusout`,HB=`mouseenter`,UB=`mouseleave`,WB={AUTO:`auto`,TOP:`top`,RIGHT:iI()?`left`:`right`,BOTTOM:`bottom`,LEFT:iI()?`right`:`left`},GB={allowList:fB,animation:!0,boundary:`clippingParents`,container:!1,customClass:``,delay:0,fallbackPlacements:[`top`,`right`,`bottom`,`left`],html:!1,offset:[0,6],placement:`top`,popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:`<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>`,title:``,trigger:`hover focus`},KB={allowList:`object`,animation:`boolean`,boundary:`(string|element)`,container:`(string|element|boolean)`,customClass:`(string|function)`,delay:`(number|object)`,fallbackPlacements:`array`,html:`boolean`,offset:`(array|string|function)`,placement:`(string|function)`,popperConfig:`(null|object|function)`,sanitize:`boolean`,sanitizeFn:`(null|function)`,selector:`(string|boolean)`,template:`string`,title:`(string|element|function)`,trigger:`string`},qB=class e extends MI{constructor(e,t){if(LF===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return GB}static get DefaultType(){return KB}static get NAME(){return SB}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Q.off(this._element.closest(OB),kB,this._hideModalHandler),this._element.getAttribute(`data-bs-original-title`)&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=Q.trigger(this._element,this.constructor.eventName(IB)),t=(QF(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Q.trigger(this._element,this.constructor.eventName(RB))),this._popper=this._createPopper(n),n.classList.add(EB),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.on(e,`mouseover`,$F);this._queueCallback(()=>{Q.trigger(this._element,this.constructor.eventName(LB)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||Q.trigger(this._element,this.constructor.eventName(PB)).defaultPrevented)){if(this._getTipElement().classList.remove(EB),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))Q.off(e,`mouseover`,$F);this._activeTrigger[MB]=!1,this._activeTrigger[jB]=!1,this._activeTrigger[AB]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),Q.trigger(this._element,this.constructor.eventName(FB)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(wB,EB),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=GF(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(wB),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new xB({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[DB]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute(`data-bs-original-title`)}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(wB)}_isShown(){return this.tip&&this.tip.classList.contains(EB)}_createPopper(e){let t=WB[oI(this._config.placement,[this,e,this._element]).toUpperCase()];return IF(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return oI(e,[this._element,this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...oI(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)Q.on(this._element,this.constructor.eventName(zB),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[MB]=!(t._isShown()&&t._activeTrigger[MB]),t.toggle()});else if(t!==NB){let e=t===AB?this.constructor.eventName(HB):this.constructor.eventName(BB),n=t===AB?this.constructor.eventName(UB):this.constructor.eventName(VB);Q.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?jB:AB]=!0,t._enter()}),Q.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?jB:AB]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Q.on(this._element.closest(OB),kB,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=kI.getDataAttributes(this._element);for(let e of Object.keys(t))CB.has(e)&&delete t[e];return e={...t,...typeof e==`object`&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:YF(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};aI(qB);var JB=`popover`,YB=`.popover-header`,XB=`.popover-body`,ZB={...qB.Default,content:``,offset:[0,8],placement:`right`,template:`<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>`,trigger:`click`},QB={...qB.DefaultType,content:`(null|string|element|function)`},$B=class e extends qB{static get Default(){return ZB}static get DefaultType(){return QB}static get NAME(){return JB}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[YB]:this._getTitle(),[XB]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};aI($B);var eV=`scrollspy`,tV=`.bs.scrollspy`,nV=`.data-api`,rV=`activate${tV}`,iV=`click${tV}`,aV=`load${tV}${nV}`,oV=`dropdown-item`,sV=`active`,cV=`[data-bs-spy="scroll"]`,lV=`[href]`,uV=`.nav, .list-group`,dV=`.nav-link`,fV=`${dV}, .nav-item > ${dV}, .list-group-item`,pV=`.dropdown`,mV=`.dropdown-toggle`,hV={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},gV={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},_V=class e extends MI{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY===`visible`?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return hV}static get DefaultType(){return gV}static get NAME(){return eV}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=YF(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Q.off(this._config.target,iV),Q.on(this._config.target,iV,lV,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=$.find(lV,this._config.target);for(let t of e){if(!t.hash||ZF(t))continue;let e=$.findOne(decodeURI(t.hash),this._element);XF(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(sV),this._activateParents(e),Q.trigger(this._element,rV,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(oV)){$.findOne(mV,e.closest(pV)).classList.add(sV);return}for(let t of $.parents(e,uV))for(let e of $.prev(t,fV))e.classList.add(sV)}_clearActiveClass(e){e.classList.remove(sV);let t=$.find(`${lV}.${sV}`,e);for(let e of t)e.classList.remove(sV)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(window,aV,()=>{for(let e of $.find(cV))_V.getOrCreateInstance(e)}),aI(_V);var vV=`tab`,yV=`.bs.tab`,bV=`hide${yV}`,xV=`hidden${yV}`,SV=`show${yV}`,CV=`shown${yV}`,wV=`click${yV}`,TV=`keydown${yV}`,EV=`load${yV}`,DV=`ArrowLeft`,OV=`ArrowRight`,kV=`ArrowUp`,AV=`ArrowDown`,jV=`Home`,MV=`End`,NV=`active`,PV=`fade`,FV=`show`,IV=`dropdown`,LV=`.dropdown-toggle`,RV=`.dropdown-menu`,zV=`:not(${LV})`,BV=`.list-group, .nav, [role="tablist"]`,VV=`.nav-item, .list-group-item`,HV=`.nav-link${zV}, .list-group-item${zV}, [role="tab"]${zV}`,UV=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,WV=`${HV}, ${UV}`,GV=`.${NV}[data-bs-toggle="tab"], .${NV}[data-bs-toggle="pill"], .${NV}[data-bs-toggle="list"]`,KV=class e extends MI{constructor(e){super(e),this._parent=this._element.closest(BV),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Q.on(this._element,TV,e=>this._keydown(e)))}static get NAME(){return vV}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?Q.trigger(t,bV,{relatedTarget:e}):null;Q.trigger(e,SV,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(NV),this._activate($.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(FV);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),Q.trigger(e,CV,{relatedTarget:t})},e,e.classList.contains(PV)))}_deactivate(e,t){e&&(e.classList.remove(NV),e.blur(),this._deactivate($.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(FV);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),Q.trigger(e,xV,{relatedTarget:t})},e,e.classList.contains(PV)))}_keydown(t){if(![DV,OV,kV,AV,jV,MV].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!ZF(e)),r;if([jV,MV].includes(t.key))r=n[t.key===jV?0:n.length-1];else{let e=[OV,AV].includes(t.key);r=cI(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return $.find(WV,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=$.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(IV))return;let r=(e,r)=>{let i=$.findOne(e,n);i&&i.classList.toggle(r,t)};r(LV,NV),r(RV,FV),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(NV)}_getInnerElement(e){return e.matches(WV)?e:$.findOne(WV,e)}_getOuterElement(e){return e.closest(VV)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};Q.on(document,wV,UV,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!ZF(this)&&KV.getOrCreateInstance(this).show()}),Q.on(window,EV,()=>{for(let e of $.find(GV))KV.getOrCreateInstance(e)}),aI(KV);var qV=`toast`,JV=`.bs.toast`,YV=`mouseover${JV}`,XV=`mouseout${JV}`,ZV=`focusin${JV}`,QV=`focusout${JV}`,$V=`hide${JV}`,eH=`hidden${JV}`,tH=`show${JV}`,nH=`shown${JV}`,rH=`fade`,iH=`hide`,aH=`show`,oH=`showing`,sH={animation:`boolean`,autohide:`boolean`,delay:`number`},cH={animation:!0,autohide:!0,delay:5e3},lH=class e extends MI{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return cH}static get DefaultType(){return sH}static get NAME(){return qV}show(){Q.trigger(this._element,tH).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(rH),this._element.classList.remove(iH),eI(this._element),this._element.classList.add(aH,oH),this._queueCallback(()=>{this._element.classList.remove(oH),Q.trigger(this._element,nH),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||Q.trigger(this._element,$V).defaultPrevented||(this._element.classList.add(oH),this._queueCallback(()=>{this._element.classList.add(iH),this._element.classList.remove(oH,aH),Q.trigger(this._element,eH)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(aH),super.dispose()}isShown(){return this._element.classList.contains(aH)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Q.on(this._element,YV,e=>this._onInteraction(e,!0)),Q.on(this._element,XV,e=>this._onInteraction(e,!1)),Q.on(this._element,ZV,e=>this._onInteraction(e,!0)),Q.on(this._element,QV,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};PI(lH),aI(lH);function uH(e,t){return t.value||e.getAttribute(`title`)||``}var dH={mounted:(e,t)=>{let n=uH(e,t);n&&e.setAttribute(`title`,n),new qB(e)},updated:(e,t)=>{let n=qB.getInstance(e);n&&n.dispose();let r=uH(e,t);r&&e.setAttribute(`title`,r),new qB(e)},unmounted:e=>{let t=qB.getInstance(e);t&&t.dispose()}},fH={key:0,class:`pills-list__wrapper`},pH={class:`pills-list__ul`},mH={class:`bd-markdown-editor__menu-bottom`},hH={key:1,class:`vr`},gH=(0,t.defineComponent)({__name:`BDMarkdownEditor`,props:{placeholder:{default:`Typ een bericht`},errorText:{default:`er is iets fout gegaan`},state:{type:[Boolean,null],default:null},variant:{default:uN.BASIC},files:{default:void 0},pills:{default:void 0},apiUrl:{default:``},tokens:{default:[]},modelValue:{}},emits:[`update:modelValue`,`upload`,`action`],setup(e,{emit:n}){let r=e,i=n,a=()=>{i(`upload`)},o=(0,t.ref)(null),s=Va(r,`modelValue`,i),c=[qO,XO,ZO,QM.configure({HTMLAttributes:{class:`mention`},suggestion:{...nN(r.tokens||[],o),char:`{`,allowSpaces:!0}}),$j.configure({placeholder:r.placeholder}),GM,dj.configure({openOnClick:!1,validate:e=>/^(https?:\/\/|www\.)/i.test(e)})];(r.variant===uN.FULL||r.variant===uN.FORMAT)&&c.push(aM,uM,dM,HM,UM,WM);let l=GO({content:s.value,extensions:c,onUpdate:({editor:e})=>{let{view:t,state:n}=e,{from:r,to:a}=t.state.selection;if(n.doc.textBetween(r-1,a,``)==` `&&e.getAttributes(`link`).href!=null&&e.chain().setTextSelection({from:r-1,to:a}).toggleLink({href:e.getAttributes(`link`).href}).setTextSelection({from:a,to:a}).run(),e.getText().trim()===``){i(`update:modelValue`,``);return}i(`update:modelValue`,e.getHTML())}});(0,t.watch)(()=>r.modelValue,e=>{l.value.getHTML()!==e&&l.value.commands.setContent(e,!0,{preserveWhitespace:`full`})});let u=(0,t.computed)(()=>r.state===!1?`is-invalid`:null),d=(0,t.computed)(()=>x(`bold`)),f=(0,t.computed)(()=>x(`italic`)),p=(0,t.computed)(()=>x(`underline`)),m=(0,t.computed)(()=>x(`bulletList`)),h=(0,t.computed)(()=>x(`orderedList`)),g=(0,t.computed)(()=>x(`link`)),_=(0,t.computed)(()=>r.variant===uN.FULL||r.variant===uN.FORMAT),y=(0,t.computed)(()=>r.variant===uN.FULL),b=(0,t.computed)(()=>r.variant===uN.FULL||r.variant===uN.BASIC||!r.variant),x=e=>l.value&&l.value.isActive(e)?`active`:null,S=(0,t.computed)(()=>r.files&&r.files.length>0?jN(r.apiUrl,r.files,!1):null),C=(0,t.computed)(()=>r.files&&r.files.length>0?jN(r.apiUrl,r.files,!0):null),w=e=>{i(`action`,{name:`delete-attachment`,obj:e})},T=e=>{i(`action`,{name:`image-attachment`,obj:e})},E=(0,t.computed)(()=>{if(!l.value)return!1;let{from:e,to:t}=l.value.state.selection;return e!==t}),D=(0,t.computed)(()=>E.value?`Voeg een link toe`:`Selecteer eerst tekst`),O=(0,t.ref)(!1),k=(0,t.ref)(``),A=(0,t.ref)(null),j=()=>{k.value=l.value.getAttributes(`link`).href||``,O.value=!0},M=e=>{if(O.value=!1,!e){l.value.chain().focus().unsetLink().run();return}/^www\./i.test(e)&&(e=`https://${e}`),l.value.chain().focus().toggleLink({href:e}).run()},ee=()=>{O.value=!1};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`bd-markdown-editor`,u.value]),ref_key:`wrapperRef`,ref:o},[(0,t.createVNode)((0,t.unref)(WO),{editor:(0,t.unref)(l)},null,8,[`editor`]),e.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fH,[(0,t.createElementVNode)(`ul`,pH,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pills,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`pills-list__li`},[(0,t.createVNode)(tg,(0,t.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`default`),S.value?((0,t.openBlock)(),(0,t.createBlock)(hN,{key:1,files:S.value,"no-download":!0,"show-delete":!0,onDelete:w},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),C.value?((0,t.openBlock)(),(0,t.createBlock)(wN,{key:2,files:C.value,"no-download":!0,"show-delete":!0,"fast-download":!1,onDelete:w,onShow:T},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,mH,[b.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,variant:`light`,type:`button`,onClick:a},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ae))]),_:1})):(0,t.createCommentVNode)(``,!0),y.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,hH)):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:2,variant:`light`,type:`button`,class:(0,t.normalizeClass)(d.value),onClick:i[0]||=e=>(0,t.unref)(l).chain().focus().toggleBold().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(le))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:3,variant:`light`,type:`button`,class:(0,t.normalizeClass)(f.value),onClick:i[1]||=e=>(0,t.unref)(l).chain().focus().toggleItalic().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)($n))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:4,variant:`light`,type:`button`,class:(0,t.normalizeClass)(p.value),onClick:i[2]||=e=>(0,t.unref)(l).chain().focus().toggleUnderline().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(sa))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:5,variant:`light`,type:`button`,class:(0,t.normalizeClass)(m.value),onClick:i[3]||=e=>(0,t.unref)(l).chain().focus().toggleBulletList().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(fe))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:6,variant:`light`,type:`button`,class:(0,t.normalizeClass)(h.value),onClick:i[4]||=e=>(0,t.unref)(l).chain().focus().toggleOrderedList().run()},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(ii))]),_:1},8,[`class`])):(0,t.createCommentVNode)(``,!0),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)(`span`,null,[_.value?((0,t.openBlock)(),(0,t.createBlock)(v,{key:0,ref_key:`linkButton`,ref:A,variant:`light`,type:`button`,class:(0,t.normalizeClass)(g.value),onClick:j,disabled:!E.value},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(kn))]),_:1},8,[`class`,`disabled`])):(0,t.createCommentVNode)(``,!0)])),[[(0,t.unref)(dH),D.value]])]),O.value?((0,t.openBlock)(),(0,t.createBlock)(lN,{key:3,previousUrl:k.value,onSubmit:M,onCancel:ee},null,8,[`previousUrl`])):(0,t.createCommentVNode)(``,!0)],2),(0,t.createVNode)(Qm,{text:r.errorText,state:r.state},null,8,[`text`,`state`])],64))}}),_H={class:`header`},vH={class:`icon-close-wrapper`},yH={class:`navbar`},bH={class:`nav navbar-nav w-100`},xH={class:`nav-item`},SH={class:`nav-item`},CH=(0,t.defineComponent)({__name:`BDMobileMenu`,props:{active:{type:Boolean,default:void 0},options:{}},emits:[`hide`,`signout`],setup(e,{emit:n}){let r=n,i=e,a=(0,t.computed)(()=>({active:i.active===!0,inactive:i.active===!1})),o=()=>r(`hide`),s=()=>r(`signout`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`bd-mobile-menu`,a.value])},[(0,t.createElementVNode)(`div`,_H,[n[0]||=(0,t.createElementVNode)(`div`,null,`Menu`,-1),(0,t.createElementVNode)(`div`,vH,[(0,t.createVNode)(Qe,{onClick:o})])]),(0,t.createElementVNode)(`nav`,yH,[(0,t.createElementVNode)(`ul`,bH,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,xH,[(0,t.createVNode)(_,(0,t.mergeProps)({class:`nav-link`},{ref_for:!0},e,{onClick:o}),null,16)]))),256)),(0,t.renderSlot)(e.$slots,`special-options`),(0,t.createElementVNode)(`li`,SH,[(0,t.createVNode)(_,{class:`nav-link`,text:`Uitloggen`,onClick:s})])])])],2))}}),wH={class:`bd-user`},TH={class:`bd-user__information`},EH={class:`text-break`},DH={class:`overflow-x-hidden`},OH=(0,t.defineComponent)({__name:`BDUser`,props:{name:{default:``},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(e){let n=e,r=(0,t.computed)(()=>typeof n.details==`string`?n.details:n.details?.join(` • `));return(e,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,wH,[n.hideImage?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(qa,(0,t.mergeProps)({key:0},n.img,{size:`sm`}),null,16)),(0,t.createElementVNode)(`div`,TH,[(0,t.createElementVNode)(`header`,null,[(0,t.createElementVNode)(`h5`,EH,(0,t.toDisplayString)(n.name),1),(0,t.renderSlot)(e.$slots,`header-extra`)]),(0,t.createElementVNode)(`span`,DH,(0,t.toDisplayString)(r.value),1)])]))}}),kH={class:`bd-chat-cloud-card`},AH={class:`bd-chat-cloud-card__header`},jH={class:`bd-chat-cloud-card__body`},MH=[`innerHTML`],NH={class:`bd-chat-cloud-card__footer`},PH={key:0,class:`pills-list__wrapper`},FH={class:`pills-list__ul`},IH=(0,t.defineComponent)({__name:`BDChatCloud`,props:{headerTitle:{default:``},src:{default:void 0},username:{default:null},message:{default:``},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0},apiUrl:{default:``}},emits:[`show-attachment`,`action`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>r.isSender?`sender`:``),o=(0,t.computed)(()=>jN(r.apiUrl,r.files,!1)),s=(0,t.computed)(()=>jN(r.apiUrl,r.files,!0)),c=()=>{i(`action`,`copy-message`)},l=e=>{i(`show-attachment`,e)};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`bd-chat-cloud`,a.value])},[(0,t.createVNode)(qa,{src:r.src,username:r.username,size:`sm`},null,8,[`src`,`username`]),(0,t.createElementVNode)(`div`,kH,[(0,t.createElementVNode)(`div`,AH,[(0,t.renderSlot)(n.$slots,`header`,{},()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.headerTitle),1)]),(0,t.createVNode)(v,{variant:`outline-primary-dark`,size:`sm`,onClick:c},{default:(0,t.withCtx)(()=>[...i[0]||=[(0,t.createTextVNode)(` kopieer `,-1)]]),_:1})]),(0,t.createElementVNode)(`div`,jH,[(0,t.renderSlot)(n.$slots,`body`,{},()=>[(0,t.createElementVNode)(`div`,{class:`bd-chat-cloud-card__message`,innerHTML:r.message},null,8,MH)])]),(0,t.createElementVNode)(`div`,NH,[(0,t.renderSlot)(n.$slots,`footer`,{},()=>[e.pills?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,PH,[(0,t.createElementVNode)(`ul`,FH,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.pills,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n,class:`pills-list__li`},[(0,t.createVNode)(tg,(0,t.mergeProps)({ref_for:!0},e),null,16)]))),128))])])):(0,t.createCommentVNode)(``,!0),o.value&&o.value.length>0?((0,t.openBlock)(),(0,t.createBlock)(hN,{key:1,files:o.value},null,8,[`files`])):(0,t.createCommentVNode)(``,!0),s.value&&s.value.length>0?((0,t.openBlock)(),(0,t.createBlock)(wN,{key:2,"fast-download":!0,files:s.value,onShow:l},null,8,[`files`])):(0,t.createCommentVNode)(``,!0)])])])],2))}}),LH=(0,t.defineComponent)({__name:`BDTableSortHeader`,props:[`active`,`label`,`sortDesc`],emits:[`sortAsc`,`sortDesc`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(r.sortDesc),o=()=>{r.active&&(a.value=!a.value)},s=()=>{r.active&&i(a.value?`sortDesc`:`sortAsc`)},c=(0,t.computed)(()=>({"bd-table-sort":!0,active:r.active}));return(0,t.watch)(()=>r.active,(e,t)=>{e&&!t&&(a.value=!1,i(`sortAsc`))}),s(),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`th`,{class:(0,t.normalizeClass)(c.value),onClick:n[0]||=e=>{o(),s()}},[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(r.label),1),r.active&&!a.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Vi),{key:0})):r.active&&a.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Gi),{key:1})):((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(Yi),{key:2}))],2))}}),RH={class:`bd-table`},zH={key:0,class:`table`},BH={key:1},VH={key:2},HH=[`onClick`],UH={key:0},WH={key:1,class:`empty-text`},GH=(0,t.defineComponent)({__name:`BDTable`,props:[`fields`,`items`,`sortBy`,`sortDesc`,`tbodyTrClass`,`emptyText`],emits:[`row-click`,`sort-changed`],setup(e,{expose:n,emit:r}){let i=e,a=r,o=(0,t.ref)(i.items),s=(0,t.ref)(i.sortBy),c=e=>s.value=e,l=(e,t,n)=>{let r=t[e],i=n[e];if(r==null)return 1;if(i==null)return-1;let a=r.toString(),o=i.toString();return a.localeCompare(o,void 0,{numeric:!0})},u=e=>{o.value=o.value.sort((t,n)=>l(e,t,n)),a(`sort-changed`,{sortBy:e,sortDesc:!1})},d=e=>{o.value=o.value.sort((t,n)=>l(e,n,t)),a(`sort-changed`,{sortBy:e,sortDesc:!0})};return(0,t.watch)(()=>i.items,e=>{o.value=e}),(0,t.watch)(()=>i.sortBy,e=>{s.value=e}),n({Refresh:()=>{o.value=i.items}}),(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,RH,[i.items&&i.items.length>0?((0,t.openBlock)(),(0,t.createElementBlock)(`table`,zH,[(0,t.createElementVNode)(`thead`,null,[(0,t.createElementVNode)(`tr`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.fields,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.isVisible?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[e.sortable?((0,t.openBlock)(),(0,t.createBlock)(LH,{key:0,label:e.label,active:e.key==s.value,sortDesc:i.sortDesc,onClick:t=>c(e.key),onSortAsc:t=>u(e.key),onSortDesc:t=>d(e.key)},null,8,[`label`,`active`,`sortDesc`,`onClick`,`onSortAsc`,`onSortDesc`])):n.$slots.hasOwnProperty(`header_${e.key}`)?((0,t.openBlock)(),(0,t.createElementBlock)(`th`,BH,[(0,t.renderSlot)(n.$slots,`header_${e.key}`)])):((0,t.openBlock)(),(0,t.createElementBlock)(`th`,VH,(0,t.toDisplayString)(e.label),1))],64)):(0,t.createCommentVNode)(``,!0)],64))),256))])]),(0,t.createElementVNode)(`tbody`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,r=>((0,t.openBlock)(),(0,t.createElementBlock)(`tr`,{class:(0,t.normalizeClass)(i.tbodyTrClass&&i.tbodyTrClass(r)),onClick:e=>a(`row-click`,r)},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.fields,e=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[e.isVisible?((0,t.openBlock)(),(0,t.createElementBlock)(`td`,UH,[n.$slots.hasOwnProperty(e.key)?(0,t.renderSlot)(n.$slots,e.key,{key:0,row:r,item:r,value:r[e.key]}):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createTextVNode)((0,t.toDisplayString)(r[e.key]),1)],64))])):(0,t.createCommentVNode)(``,!0)],64))),256))],10,HH))),256))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,WH,(0,t.toDisplayString)(i.emptyText),1))]))}}),KH=[`id`],qH={key:0,class:`toast-body__title`},JH={class:`actions`},YH=[`textContent`],XH=[`textContent`],ZH={class:`icon-wrapper`},QH=[`textContent`],$H=[`textContent`],eU=3e4,tU=5e3,nU=(0,t.defineComponent)({__name:`BDVideoCallToast`,props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:[`reject-video-call`,`accept-video-call`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.ref)(!1),o=(0,t.ref)(!1),s=null,c=null,l=(0,t.computed)(()=>{let e=`video-call-toast`;return r.id&&(e+=`-${r.id}`),e}),u=(0,t.computed)(()=>a.value?[a.value?`is-handled`:``,o.value?`is-handled--success`:``,r.canceled?`is-handled--canceled`:``].join(` `):``),d=(0,t.computed)(()=>r.canceled?r.localization.videoCallCanceled:o.value?r.localization.videoCallAccepted:r.localization.videoCallRejected),f=(0,t.computed)(()=>r.canceled?`${r.firstNameSender}${r.localization.notifyCallerWhenCanceled}`:r.isSender?r.contactInfoReceiver?`${r.contactInfoReceiver.name}${r.localization.notifyCallerWhenRejected}`:r.localization.notifyCallerWhenRejected:o.value?r.localization.openNewTabWhenAccepted:`${r.localization.notifyReceiverWhenRejected.start}${r.firstNameSender}${r.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g,` `));(0,t.watch)(()=>r.canceled,()=>{a.value=!0}),(0,t.onMounted)(()=>{let e=l.value,t=document.querySelector(`#${e}`);if(t){t.addEventListener(`hide.bs.toast`,y);var n={autohide:!0,delay:eU+tU};c=lH.getOrCreateInstance(t,n),c.show(),s=window.setTimeout(p,eU)}});let p=()=>{a.value||h()},m=()=>{h(),_()},h=()=>{a.value||(a.value=!0,i(`reject-video-call`,r.id))},g=()=>{a.value=!0,o.value=!0,i(`accept-video-call`,r.id),_()},_=()=>{window.clearTimeout(s),window.setTimeout(()=>c.hide(),tU)},y=()=>{a.value=!1,o.value=!1};return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{id:l.value,class:`toast bd-video-call-toast`,role:`alert`,"aria-live":`assertive`,"aria-atomic":`true`},[(0,t.unref)(a)?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,qH,(0,t.toDisplayString)(r.localization.incomingVideoCall),1)),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`toast-body__main`,u.value])},[(0,t.unref)(a)?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:1},[(0,t.createElementVNode)(`div`,ZH,[(0,t.createVNode)(be)]),(0,t.createElementVNode)(`div`,null,[(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(d.value),class:`title`},null,8,QH),(0,t.createElementVNode)(`p`,{textContent:(0,t.toDisplayString)(f.value)},null,8,$H)])],64)):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createVNode)(og,{value:e.contactInfoReceiver},null,8,[`value`]),(0,t.createElementVNode)(`div`,JH,[(0,t.createVNode)(v,{variant:`danger`,class:`text-center`,onClick:m},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(we),(0,t.createElementVNode)(`span`,{textContent:(0,t.toDisplayString)(r.localization.rejectVideoCall)},null,8,YH)]),_:1}),(0,t.createVNode)(v,{variant:`success`,class:`text-center`,onClick:g},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(be),(0,t.createElementVNode)(`span`,{textContent:(0,t.toDisplayString)(r.localization.acceptVideoCall)},null,8,XH)]),_:1})])],64))],2)],8,KH))}}),rU=(0,t.defineComponent)({__name:`BDDropdown`,props:{size:{default:g.MD},variant:{default:Ca.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:`button`},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:``},offset:{default:void 0}},setup(e){let n=e,{uniqueIdentifier:r}=$a(),i=`__BD__DROPDOWN__${r.value}`,a=(0,t.computed)(()=>({class:{btn:n.toggleTag===`button`,[`btn-${n.variant}`]:n.toggleTag===`button`&&n.variant,[`btn-${n.size}`]:n.toggleTag===`button`&&n.size,[`${n.toggleClass}`]:n.toggleClass!==void 0,"dropdown-toggle-action":n.actionToggle},"data-bs-display":n.noFlip?`static`:null,"data-bs-offset":n.offset?n.offset:null,id:i})),o=(0,t.computed)(()=>({"dropdown-menu-end":n.right,"dropdown-menu-action":n.actionToggle})),s=(0,t.computed)(()=>({"aria-labelledby":i})),c=(0,t.ref)(),l=(0,t.ref)(),u=()=>{c.value.classList.remove(`show`),l.value.classList.remove(`show`),l.value.removeAttribute(`aria-expanded`)};return(e,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`bd-dropdown dropdown`,onClick:r[0]||=(0,t.withModifiers)(()=>{},[`stop`])},[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(n.toggleTag),(0,t.mergeProps)({ref_key:`dropdownToggle`,ref:l,class:`dropdown-toggle`,target:`_self`,role:`button`,"data-bs-toggle":`dropdown`},a.value),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n.text),1)]),_:1},16)),(0,t.createElementVNode)(`ul`,(0,t.mergeProps)({ref_key:`dropdownMenu`,ref:c,class:[`dropdown-menu`,o.value]},s.value,{onClick:u}),[(0,t.renderSlot)(e.$slots,`default`)],16)]))}}),iU={class:`row bd-header`},aU={class:`col logo-mix`},oU=[`src`],sU={key:1,class:`col header-options`},cU={class:`col bd-btn-settings`},lU={key:2},uU=(0,t.defineComponent)({__name:`BDHeader`,props:{isEmbedded:{type:Boolean},dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},hasLogoutOption:{type:Boolean,default:!0}},emits:[`click-logo`,`signout`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>{let e=[];return r.isEmbedded?e:(r.headerOptions&&(e=e.concat(r.headerOptions)),r.dropdownOptions&&(e=e.concat(r.dropdownOptions)),e)}),o=(0,t.computed)(()=>!r.isEmbedded&&r.headerOptions&&r.headerOptions.length!==0),s=(0,t.ref)(void 0),c=()=>{r.isEmbedded||i(`click-logo`)},l=()=>i(`signout`),u=()=>s.value=!0,d=()=>s.value=!1;return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`nav`,iU,[(0,t.createElementVNode)(`div`,aU,[(0,t.createVNode)(S,{viewBox:`0 0 351 61`,class:`logo bd-logo`,onClick:c}),r.organizationLogoSrc?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,class:`logo organization-logo`,src:r.organizationLogoSrc,alt:``},null,8,oU)):(0,t.createCommentVNode)(``,!0)]),r.isEmbedded?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:0,class:`col bd-hamburger`,onClick:u},[n[0]||=(0,t.createElementVNode)(`div`,null,`Menu`,-1),(0,t.createVNode)(Fr)])),o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sU,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.headerOptions,e=>((0,t.openBlock)(),(0,t.createBlock)(v,{class:`btn-header`,to:e.to,variant:`neutral`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.text),1)]),_:2},1032,[`to`]))),256))])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,cU,[r.isEmbedded?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(e.$slots,`profile-side`,{key:0}),r.profileImageSrc?((0,t.openBlock)(),(0,t.createBlock)(qa,{key:1,src:r.profileImageSrc,alt:r.profileImageAlt,size:`sm`},null,8,[`src`,`alt`])):(0,t.createCommentVNode)(``,!0),r.isEmbedded?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,lU,(0,t.toDisplayString)(r.dropdownMenuTitle),1)):(0,t.createCommentVNode)(``,!0),r.isEmbedded?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(rU,{key:3,text:r.dropdownMenuTitle,variant:`primary`,toggleTag:`a`,right:!0},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.dropdownOptions,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(Eg,(0,t.mergeProps)({key:n},{ref_for:!0},e),null,16))),128)),r.hasLogoutOption?((0,t.openBlock)(),(0,t.createBlock)(Eg,{key:0,text:`Uitloggen`,onClick:l})):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`text`]))])]),r.isEmbedded?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(CH,{key:0,active:s.value,options:a.value,onHide:d,onSignout:l},{"special-options":(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`mobile-menu-special-options`)]),_:3},8,[`active`,`options`]))],64))}}),dU=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20height='800px'%20width='800px'%20viewBox='0%200%20800%20800'%20fill='none'%20version='1.1'%20id='svg2'%20sodipodi:docname='bell-icon.svg'%20inkscape:version='1.4.2%20(ebf0e94,%202025-05-08)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3csodipodi:namedview%20id='namedview2'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='0.93902601'%20inkscape:cx='361.01236'%20inkscape:cy='425.44082'%20inkscape:window-width='2323'%20inkscape:window-height='1321'%20inkscape:window-x='69'%20inkscape:window-y='-9'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg2'%20inkscape:lockguides='false'%20/%3e%3cpath%20fill='%23394156'%20d='m%20574.7134,517.70839%20c%20-43.02343,-19.42958%20-40.33991,-92.03173%20-40.37166,-94.13603%20l%20-0.86403,-55.08622%20c%20-0.84452,-53.84263%20-32.76289,-101.01787%20-79.52261,-120.73389%20-0.10055,-27.68538%20-26.24787,-50.17713%20-53.95375,-50.17713%20-27.70655,0%20-53.8532,22.49307%20-53.95442,50.17581%20-46.75774,19.71601%20-77.67395,68.62166%20-78.65724,122.46193%20l%20-0.86403,47.31%20c%20-0.0304,2.1043%201.78773,80.75463%20-41.23703,100.1842%20-4.90122,2.21412%20-7.59494,12.9473%20-6.46175,18.20508%201.13187,5.25843%203.98237,14.4119%209.36122,14.4119%20h%20110.87115%20c%202.23595,12.30035%208.05205,23.74336%2016.94754,33.01196%2011.8148,12.30961%2027.4393,19.08888%2043.99257,19.08888%2016.5546,0%2032.1791,-6.77927%2043.99258,-19.08888%208.89681,-9.26925%2014.71291,-20.71294%2016.94754,-33.01196%20h%20110.87115%20c%205.37885,0%208.22869,-9.1528%209.36189,-14.4119%201.13449,-5.25778%20-1.55789,-15.9903%20-6.45912,-18.20375%20z%20m%20-65.45742,-27.74178%20c%204.52282,13.71204%207.25707,16.20673%2016.33845,27.66562%20l%20-250.39475,-0.79275%20c%209.08005,-11.45756%2010.3714,-13.15885%2014.89422,-26.87287%20z%20M%20400.00135,224.00622%20c%2012.53255,0%2019.53015,4.82252%2022.8457,16.30126%20-8.54159,-1.77156%20-13.78747,-2.70563%20-22.8457,-2.70563%20-9.05823,0%20-14.30412,0.93341%20-22.84569,2.70563%203.3162,-11.47808%2010.31381,-16.30126%2022.84569,-16.30126%20z%20m%20-103.58848,199.63494%201.79933,-54.2217%20c%201.96022,-59.06989%2042.68543,-96.67497%20101.78915,-96.67497%2059.10373,0%2099.89499,35.80359%20101.78916,94.87564%20l%201.79933,56.1143%20c%200.0152,1.71731%201.47422,12.5683%201.23243,34.7862%20H%20295.17778%20c%200.71894,-22.23906%201.22119,-33.1218%201.23509,-34.87947%20z%20m%20103.58848,148.96978%20c%20-17.42517,0%20-25.43558,-5.58015%20-30.31694,-22.28624%20h%2060.63257%20c%20-4.88138,16.70609%20-12.88914,22.28624%20-30.31563,22.28624%20z'%20id='path1'%20style='stroke-width:0.899666;stroke-dasharray:none'%20sodipodi:nodetypes='ccscscscccsccsccscccccccscscscsssccccsccs'%20/%3e%3cpath%20fill='%23394156'%20d='m%20397.96944,283.33669%20c%20-49.41855,0%20-89.62361,40.20373%20-89.62361,89.62161%200,6.34354%205.14286,11.4864%2011.48639,11.4864%206.34355,0%2011.48641,-5.14286%2011.48641,-11.4864%200,-36.75076%2029.89938,-66.64948%2066.65148,-66.64948%206.34353,0%2011.48639,-5.14285%2011.48639,-11.4864%20-6.6e-4,-6.3442%20-5.14353,-11.48573%20-11.48706,-11.48573%20z'%20id='path2'%20style='stroke-width:0.904712;stroke-dasharray:none'%20sodipodi:nodetypes='ssssscs'%20/%3e%3c/svg%3e`,fU=async(e,t)=>{let n=e+t,r=new TextEncoder().encode(n),i=await crypto.subtle.digest(`SHA-256`,r);return Array.from(new Uint8Array(i)).map(e=>e.toString(16).padStart(2,`0`)).join(``)};function pU(){let e=()=>new Promise(e=>{if(document.readyState===`complete`)return e();window.addEventListener(`load`,()=>e(),{once:!0})});return{OnWindowLoaded:n=>{(0,t.onMounted)(()=>e().then(n))}}}var mU=(e,n,r)=>{let{OnWindowLoaded:i}=pU(),a=`lkj298fhGGJihge`,o=(0,t.ref)(!1),s=()=>n+`|`+r();return i(async()=>{if(n==null||r==null||r()==null){o.value=!1;return}let t=s(),i=localStorage.getItem(e),c=JSON.parse(i)||[],l=await fU(t,a);o.value=!c.includes(l)}),{hasUnfulfilledInteraction:o,MarkInteractionPerformed:async()=>{let t=await fU(s(),a),n=localStorage.getItem(e),r=JSON.parse(n)||[];r.includes(t)||(r.push(t),localStorage.setItem(e,JSON.stringify(r))),o.value=!1}}};function hU(e){let{OnWindowLoaded:n}=pU(),r;(0,t.onMounted)(()=>{r=document.addEventListener(`click`,t=>{if(!t||!t.target)return;let n=null;if(t.target instanceof Element&&(n=t.target.closest(`.popover`)),n)return;let r=$B.getInstance(e.value);r&&r.hide()})});let i=()=>{e?.value!=null&&($B.getInstance(e.value)||new $B(e.value))};n(i),(0,t.watch)(e,i),(0,t.onUnmounted)(()=>{if(e?.value!=null){let t=$B.getInstance(e.value);t&&t.dispose()}r&&document.removeEventListener(`click`,r)})}var gU=[`data-bs-title`,`data-bs-content`],_U=[`title`],vU={key:0,class:`number-circle`,textContent:1},yU=(0,t.defineComponent)({__name:`BDNotificationButton`,props:{userId:{},getNotification:{}},setup(e){let n=e,{hasUnfulfilledInteraction:r,MarkInteractionPerformed:i}=mU(`notificationsRead`,n.userId,()=>n.getNotification?.linkUrl),a=(0,t.ref)();hU(a);let o=(0,t.computed)(()=>{let e=n.getNotification;if(!e)return!1;let{isActive:t,startDate:r,endDate:i}=e;if(!t)return!1;let a=new Date(r),o=new Date(i),s=new Date;return s>=a&&s<=o}),s=(0,t.computed)(()=>n.getNotification?.tooltip),c=(0,t.computed)(()=>n.getNotification?.title),l=(0,t.computed)(()=>{let e=n.getNotification;if(!e)return``;let{text:t,linkUrl:r,linkText:i}=e;return`
1301
1301
  <p>${t}</p>
1302
1302
  <a href='${r}' target='_blank'>${i}</a>
1303
1303
  `});return(e,n)=>o.value?((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:0,ref_key:`notificationButton`,ref:a,tabindex:`0`,class:`bd-notification-button`,role:`button`,"data-bs-toggle":`popover`,"data-bs-placement":`bottom`,"data-bs-title":c.value,"data-bs-content":l.value,"data-bs-html":!0,onClick:n[0]||=(...e)=>(0,t.unref)(i)&&(0,t.unref)(i)(...e)},[(0,t.withDirectives)((0,t.createElementVNode)(`img`,{src:dU,alt:`BeterDichtbij nieuws notificatie bel.`,title:s.value},null,8,_U),[[(0,t.unref)(dH)]]),(0,t.unref)(r)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,vU)):(0,t.createCommentVNode)(``,!0)],8,gU)):(0,t.createCommentVNode)(``,!0)}}),bU={class:`profile-side`},xU=[`href`],SU={class:`nav-item`},CU=[`textContent`],wU=(0,t.defineComponent)({__name:`BDPractitionerHeader`,props:{academyUrl:{},userId:{},getNotification:{}},setup(e){let{t:n}=gu(),r=e,i=(0,t.computed)(()=>n(`practitionerHeader.academyTooltip`)),a=(0,t.computed)(()=>n(`practitionerHeader.academyMenuItem`));return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(uU,null,(0,t.createSlots)({"profile-side":(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,bU,[(0,t.createVNode)(yU,{"user-id":r.userId,"get-notification":r.getNotification},null,8,[`user-id`,`get-notification`]),r.academyUrl?((0,t.openBlock)(),(0,t.createElementBlock)(`a`,{key:0,href:r.academyUrl,target:`_blank`,rel:`noopener,noreferrer`},[(0,t.withDirectives)((0,t.createVNode)((0,t.unref)(E),{title:i.value},null,8,[`title`]),[[(0,t.unref)(dH)]])],8,xU)):(0,t.createCommentVNode)(``,!0)])]),_:2},[r.academyUrl?{name:`mobile-menu-special-options`,fn:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`li`,SU,[(0,t.createVNode)(_,{class:`nav-link`,to:r.academyUrl},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(E)),(0,t.createElementVNode)(`span`,{textContent:(0,t.toDisplayString)(a.value)},null,8,CU)]),_:1},8,[`to`])])]),key:`0`}:void 0]),1024))}}),TU={class:`modal-dialog`},EU={class:`modal-content`},DU={class:`modal-header`},OU={class:`modal-title`},kU=[`src`],AU={class:`modal-body`},jU={key:0,class:`modal-footer`},MU=[`disabled`],NU=(0,t.defineComponent)({__name:`BDModal`,props:{title:{default:``},titleImage:{default:``},submitButtonTitle:{default:`Opslaan`},closeButtonTitle:{default:`Annuleren`},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:`lg`}},emits:[`submit`,`cancel`],setup(e,{emit:n}){let r=e,i=n,a=(0,t.computed)(()=>`modal bd-modal modal-${r.size}`),o=()=>i(`submit`),s=()=>i(`cancel`);return(n,i)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)(a.value),tabindex:`-1`},[(0,t.createElementVNode)(`div`,TU,[(0,t.createElementVNode)(`div`,EU,[(0,t.createElementVNode)(`div`,DU,[(0,t.createElementVNode)(`h2`,OU,[r.titleImage?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:r.titleImage,class:`title-image`,alt:``},null,8,kU)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(r.title),1)]),(0,t.renderSlot)(n.$slots,`modal-header-space-between`),r.hideCloseButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,type:`button`,class:`btn-close w-auto`,"data-bs-dismiss":`modal`,"aria-label":`Sluiten`,onClick:s},[i[0]||=(0,t.createElementVNode)(`span`,null,`Sluiten`,-1),(0,t.createVNode)((0,t.unref)(Qe))]))]),(0,t.createElementVNode)(`div`,AU,[(0,t.renderSlot)(n.$slots,`default`)]),e.hideFooter?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,jU,[r.hideFooterSubmitButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:0,class:`btn btn-primary`,disabled:r.disableSubmitButton,onClick:o},(0,t.toDisplayString)(r.submitButtonTitle),9,MU)),(0,t.renderSlot)(n.$slots,`buttons`),r.hideFooterCancelButton?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`button`,{key:1,type:`button`,class:`btn btn-link`,"data-bs-dismiss":`modal`,onClick:s,"aria-label":`Annuleren`},(0,t.toDisplayString)(r.closeButtonTitle),1))]))])])],2))}}),PU=e=>{let n=(0,t.ref)(null);return{showModal:()=>{let t=document.getElementById(e);t instanceof HTMLElement?(n.value=Hz.getOrCreateInstance(t),n.value.show()):console.error(`Modal '${e}' niet gevonden.`)},closeModal:()=>{if(n.value){n.value.hide();return}let t=document.getElementById(e);if(t instanceof HTMLElement){let e=Hz.getInstance(t);e&&e.hide()}}}};function FU(e=void 0){let n=e=>o(`Succesvol`,e,Uh.SUCCESS),r=e=>o(`Waarschuwing`,e,Uh.WARNING),i=e=>o(`Informatie`,e,Uh.INFO),a=e=>o(`Mislukt`,e,Uh.DANGER);function o(n,r,i){let a=`toast-${Qa()}`,o={id:a,variant:i,title:n,text:r},c=document.querySelector(`.toast-container`);if(!c){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let l=(0,t.h)(qh,o),u=(0,t.createApp)({render:()=>l}).mount(document.createElement(`div`));c.appendChild(u.$el);let d=document.querySelector(`#${a}`);d&&(lH.getOrCreateInstance(d,e).show(),s(d))}function s(e){function t(e,t){e.forEach(e=>{if(e.attributeName!=`class`)return;let n=e.target;if(n.classList.contains(`hide`)){n.remove(),t.disconnect();return}})}new MutationObserver(t).observe(e,{attributes:!0})}return{showSuccessToast:n,showInformationToast:i,showWarningToast:r,showDangerToast:a}}var{showDangerToast:IU}=FU();function LU(e){let n=(0,t.ref)(null),r=(e,t=`serverErrors`)=>{let r=[];if(r=Array.isArray(e?.response?.data)?e.response.data.filter(e=>Jh(e.ErrorMessage)&&e.ErrorMessage!==``):e.response.data.ErrorMessage?[e.response.data.ErrorMessage]:null,Jh(t))n.value=r;else if(Array.isArray(t)){let e=n.value;for(let n=0;n<t.length;n++)n===t.length-1?e[t[n]]=r:e=e[t[n]]}i(e),s(n)},i=t=>{if(e==null)return;let n=new URL(t.request.responseURL).pathname;if(n in e.error){let t=e.error[n];t&&IU(t)}},a=(0,t.ref)(null),o=(0,t.ref)(``),s=e=>{ng(e.value)?a.value=e.value.map(e=>Jh(e)?e:e.ErrorMessage):Jh(e.value)&&(o.value=e.value)};function c(){n.value=null,a.value=null,o.value=``}return{serverErrors:n,errorMessages:a,errorMessageText:o,MapErrors:s,MapServerErrors:r,ResetServerErrors:c}}var RU={key:0},zU={key:1},BU={class:`bd-form-field`},VU={class:`bd-form-field`},HU=(0,t.defineComponent)({__name:`BDPhoneNumberEditModal`,props:[`modalTitle`,`submitButtonTitle`,`phoneNumberLabel`,`phoneNumberUnchangedText`,`confirmationCodeLabel`,`confirmationCodeRequiredText`,`confirmationCodeSentText`,`editSuccessText`,`editCanceledText`,`sendConfirmationCodeText`,`startPhoneNumberUpdate`,`confirmPhoneNumberUpdate`],emits:[`startPhoneNumberUpdate`,`confirmPhoneNumberUpdate`,`setPhoneNumber`],setup(e,{expose:n,emit:r}){let{showSuccessToast:i,showWarningToast:a}=FU(),{serverErrors:o,errorMessages:s,errorMessageText:c,MapServerErrors:l,ResetServerErrors:u}=LU(null),{closeModal:d}=PU(`phone-number-edit-modal`),f=e,p=r,m=``,h=(0,t.ref)(),g=(0,t.ref)(null),_=(0,t.ref)(),y=(0,t.ref)(),b=(0,t.ref)(null),x=(0,t.computed)(()=>y.value==null||y.value==``),S=()=>{if(g.value=null,u(),!h.value||h.value==m){g.value=!1;return}let e={newPhonenumber:h.value};f.startPhoneNumberUpdate(e).then(w).catch(l)},C=()=>{if(!y.value){b.value=!1;return}let e={requestIdentifier:_.value,token:y.value};f.confirmPhoneNumberUpdate(e).then(T).catch(l)},w=e=>{g.value=null,i(f.confirmationCodeSentText),_.value=e.data.RequestIdentifier},T=()=>{p(`setPhoneNumber`,h.value),i(f.editSuccessText),d(),g.value=null,b.value=null},E=e=>{m=e,h.value=m,g.value=null,_.value=void 0,y.value=void 0,b.value=null},D=()=>{E(m),u(),a(f.editCanceledText)};return n({Reset:E}),(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(NU,{id:`phone-number-edit-modal`,class:(0,t.normalizeClass)((0,t.unref)(``)),title:f.modalTitle,submitButtonTitle:f.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":x.value,serverErrors:(0,t.unref)(o),errorMessages:(0,t.unref)(s),errorMessageText:(0,t.unref)(c),onSubmit:C,onCancel:D},{default:(0,t.withCtx)(()=>[(0,t.unref)(c)||(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createBlock)(Ta,{key:0,variant:`danger`},{default:(0,t.withCtx)(()=>[(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,RU,[(0,t.createElementVNode)(`ul`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(s),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n},[(0,t.createVNode)(Gn),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e),1)]))),128))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,zU,(0,t.toDisplayString)((0,t.unref)(c)),1))]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`div`,BU,[(0,t.createVNode)(vh,{id:`form-input-phone-number`,label:f.phoneNumberLabel,modelValue:h.value,"onUpdate:modelValue":n[0]||=e=>h.value=e,state:g.value,type:`text`,"form-field-class":`form-input-with-button`,"invalid-feedback-text":f.phoneNumberUnchangedText},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(v,{textContent:(0,t.toDisplayString)(f.sendConfirmationCodeText),class:`tablet-device-up`,type:`button`,onClick:S},null,8,[`textContent`])]),_:1},8,[`label`,`modelValue`,`state`,`invalid-feedback-text`]),(0,t.createVNode)(v,{textContent:(0,t.toDisplayString)(f.sendConfirmationCodeText),class:`mobile-device`,type:`button`,onClick:S},null,8,[`textContent`])]),(0,t.createElementVNode)(`div`,VU,[_.value?((0,t.openBlock)(),(0,t.createBlock)(vh,{key:0,label:f.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":n[1]||=e=>y.value=e,state:b.value,"invalid-feedback-text":f.confirmationCodeRequiredText},null,8,[`label`,`modelValue`,`state`,`invalid-feedback-text`])):(0,t.createCommentVNode)(``,!0)])]),_:1},8,[`class`,`title`,`submitButtonTitle`,`disable-submit-button`,`serverErrors`,`errorMessages`,`errorMessageText`]))}}),UU=(e,n,r,i,a,o)=>{let s=(0,t.ref)(null),c=(0,t.ref)(null),l=(0,t.ref)(!1),u=(0,t.ref)(null),{showModal:d,closeModal:f}=PU(`session-time-out-modal`),p=(0,t.computed)(()=>s.value&&e?e-(s.value+1):0),m=(0,t.computed)(()=>c.value?60-c.value:0),h=(0,t.computed)(()=>l.value),g=()=>{u.value=setInterval(v,1e3),i(u.value)},_=()=>{u.value&&clearInterval(u.value)},v=()=>{s.value=(0,mg.default)().diff(r(),`m`),c.value=(0,mg.default)().subtract(s.value,`m`).diff(r(),`s`);let t=e??2**53-1,i=n??0;s.value>=t?(l.value=!0,d(),localStorage.setItem(`session-timeout`,`true`),window.onbeforeunload=y):s.value>=t-i?d():f()},y=e=>{e.stopPropagation(),x()},b=()=>{a(),_(),s.value=null,c.value=null,g()},x=()=>{_(),s.value=null,c.value=null,localStorage.removeItem(`session-timeout`),o()},S=()=>{l.value?x():b()};return(0,t.onMounted)(()=>{let e=document.getElementById(`session-time-out-modal`);e&&e.addEventListener(`hidden.bs.modal`,S),_(),g()}),{IsExpired:h,Minutes:p,Seconds:m,OnLogOut:()=>{x()},OnSubmit:()=>{l.value?x():f()}}},WU=(0,t.defineComponent)({__name:`BDSessionTimeOutModal`,props:[`expiredTitle`,`expiredMessage`,`expiredButtonText`,`almostExpiredTitle`,`almostExpiredMessage`,`almostExpiredButtonText`,`almostExpiredCancelButtonText`,`threshold`,`warningThreshold`,`getTime`,`setTaskId`,`setNewTime`,`logout`,`hideCancelButton`],setup(e){let n=e,{IsExpired:r,Minutes:i,Seconds:a,OnLogOut:o,OnSubmit:s}=UU(n.threshold,n.warningThreshold,n.getTime,n.setTaskId,n.setNewTime,n.logout),c=(0,t.computed)(()=>r.value?n.expiredTitle:n.almostExpiredTitle),l=(0,t.computed)(()=>r.value?n.expiredMessage:`${n.almostExpiredMessage} ${i.value}:${a.value<10?`0`+a.value:a.value}`),u=(0,t.computed)(()=>n.hideCancelButton||r.value),d=(0,t.computed)(()=>r.value?n.expiredButtonText:n.almostExpiredButtonText);return(e,r)=>((0,t.openBlock)(),(0,t.createBlock)(NU,{id:`session-time-out-modal`,title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":u.value,"close-button-title":n.almostExpiredCancelButtonText,"submit-button-title":d.value,size:`md`,onSubmit:(0,t.unref)(s),onCancel:(0,t.unref)(o)},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(l.value),1)]),_:1},8,[`title`,`hide-footer-cancel-button`,`close-button-title`,`submit-button-title`,`onSubmit`,`onCancel`]))}}),GU={__name:`BDConfirmationModal`,props:[`modalId`,`modalTitle`,`description`,`submitButtonText`,`cancelButtonText`],setup(e,{expose:n}){let r=e,{closeModal:i,showModal:a}=PU(r.modalId),o=(0,t.ref)(null);n({Confirm:async()=>(a(),new Promise(e=>o.value=e))});let s=()=>{i(),o.value(!0)},c=()=>o.value(!1);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(NU,{id:r.modalId,title:r.modalTitle,"submit-button-title":r.submitButtonText,"close-button-title":r.cancelButtonText,"hide-close-button":!0,size:`md`,onSubmit:s,onCancel:c},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(r.description),1)]),_:1},8,[`id`,`title`,`submit-button-title`,`close-button-title`]))}},KU={__name:`BDAssignConversationModal`,emits:[`update:isConcluded`,`update:isUnread`],setup(e,{emit:n}){let{t:r}=gu(),i=(0,t.ref)(!1),a=(0,t.ref)(!1),o=n,s=()=>o(`update:isConcluded`,i.value),c=()=>o(`update:isUnread`,a.value);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(NU,{id:`assign-conversation-modal`,title:(0,t.unref)(r)(`assignConversationModal.title`),submitButtonTitle:(0,t.unref)(r)(`assignConversationModal.submitButton`)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(e.$slots,`body`),(0,t.createVNode)(xh,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(zh,{modelValue:i.value,"onUpdate:modelValue":n[0]||=e=>i.value=e,onChange:s},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)((0,t.unref)(r)(`assignConversationModal.conclude`)),1),(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)(v,{variant:`placeholder`,class:`btn-tooltip`,title:(0,t.unref)(r)(`assignConversationModal.concludeTooltip`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Gn)]),_:1},8,[`title`])),[[(0,t.unref)(dH)]])]),_:1},8,[`modelValue`])]),_:1}),(0,t.createVNode)(xh,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(zh,{modelValue:a.value,"onUpdate:modelValue":n[1]||=e=>a.value=e,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`assignConversationModal.makeUnread`)),1)]),_:1},8,[`modelValue`])]),_:1}),(0,t.renderSlot)(e.$slots,`footer`)]),_:3},8,[`title`,`submitButtonTitle`]))}},qU=(0,t.defineComponent)({__name:`BDAttachmentUploadModal`,props:{dropzoneUrl:{},token:{}},emits:[`cancel`,`on-submit`],setup(e,{emit:n}){let{closeModal:r}=PU(`attachment-upload-modal`),{t:i}=gu(),a=e,o=n,s=()=>{o(`on-submit`,l.value),l.value=[],r()},c=()=>{o(`cancel`),l.value=[]},l=(0,t.ref)([]),u=(0,t.computed)(()=>i(`attachmentUploadModal.title`)),d=(0,t.computed)(()=>i(`attachmentUploadModal.submitButton`)),f=(0,t.computed)(()=>i(`attachmentUploadModal.infoMessage`)),p=(0,t.computed)(()=>i(`attachmentUploadModal.addAttachmentButton`)),m=(0,t.computed)(()=>i(`attachmentUploadModal.errorMessage`)),h=(0,t.computed)(()=>i(`attachmentUploadModal.fileTooBigErrorMessage`)),g=(0,t.computed)(()=>i(`attachmentUploadModal.fileSizeExceededMessage`));return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(NU,{id:`attachment-upload-modal`,title:u.value,"submit-button-title":d.value,onSubmit:s,onCancel:c},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(f.value),1),(0,t.createVNode)(Ig,{modelValue:l.value,"onUpdate:modelValue":n[0]||=e=>l.value=e,"button-text":p.value,"error-message":m.value,multiple:!0,"file-size-exceeded-message":h.value,"accepted-files":`.png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov`,url:a.dropzoneUrl,tag:`div`,token:a.token},null,8,[`modelValue`,`button-text`,`error-message`,`file-size-exceeded-message`,`url`,`token`]),(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(g.value),1),(0,t.renderSlot)(e.$slots,`default`)]),_:3},8,[`title`,`submit-button-title`]))}}),JU=Object.defineProperty,YU=Object.defineProperties,XU=Object.getOwnPropertyDescriptors,ZU=Object.getOwnPropertySymbols,QU=Object.prototype.hasOwnProperty,$U=Object.prototype.propertyIsEnumerable,eW=(e,t,n)=>t in e?JU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tW=(e,t)=>{for(var n in t||={})QU.call(t,n)&&eW(e,n,t[n]);if(ZU)for(var n of ZU(t))$U.call(t,n)&&eW(e,n,t[n]);return e},nW=(e,t)=>YU(e,XU(t)),rW={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(e){this.autoscroll&&e&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){let e=this.$refs.dropdownMenu?.children[this.typeAheadPointer]||!1;if(e){let t=this.getDropdownViewport(),{top:n,bottom:r,height:i}=e.getBoundingClientRect();if(n<t.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(r>t.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(t.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},iW={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let e=0;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},open(e){e&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let e=this.typeAheadPointer-1;e>=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown(){for(let e=this.typeAheadPointer+1;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadSelect(){let e=this.filteredOptions[this.typeAheadPointer];e&&this.selectable(e)&&this.select(e)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length===0?-1:this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1])}}},aW={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit(`search`,this.search,this.toggleLoading)},loading(e){this.mutableLoading=e}},methods:{toggleLoading(e=null){return e==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=e}}},oW=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},sW={},cW={xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`10`},lW=[(0,t.createElementVNode)(`path`,{d:`M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z`},null,-1)];function uW(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,cW,lW)}var dW=oW(sW,[[`render`,uW]]),fW={},pW={xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`10`},mW=[(0,t.createElementVNode)(`path`,{d:`M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z`},null,-1)];function hW(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`svg`,pW,mW)}var gW={Deselect:dW,OpenIndicator:oW(fW,[[`render`,hW]])},_W={mounted(e,{instance:t}){if(t.appendToBody){let{height:n,top:r,left:i,width:a}=t.$refs.toggle.getBoundingClientRect(),o=window.scrollX||window.pageXOffset,s=window.scrollY||window.pageYOffset;e.unbindPosition=t.calculatePosition(e,t,{width:a+`px`,left:o+i+`px`,top:s+r+n+`px`}),document.body.appendChild(e)}},unmounted(e,{instance:t}){t.appendToBody&&(e.unbindPosition&&typeof e.unbindPosition==`function`&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}};function vW(e){let t={};return Object.keys(e).sort().forEach(n=>{t[n]=e[n]}),JSON.stringify(t)}var yW=0;function bW(){return++yW}var xW={components:tW({},gW),directives:{appendToBody:_W},mixins:[rW,iW,aW],compatConfig:{MODE:3},emits:[`open`,`close`,`update:modelValue`,`search`,`search:compositionstart`,`search:compositionend`,`search:keydown`,`search:blur`,`search:focus`,`search:input`,`option:created`,`option:selecting`,`option:selected`,`option:deselecting`,`option:deselected`],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:``},transition:{type:String,default:`vs__fade`},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:`label`},autocomplete:{type:String,default:`off`},reduce:{type:Function,default:e=>e},selectable:{type:Function,default:e=>!0},getOptionLabel:{type:Function,default(e){return typeof e==`object`?e.hasOwnProperty(this.label)?e[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(e)}.