@beterdichtbij/component-library 0.22.0 → 0.22.1
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.
|
@@ -124,8 +124,8 @@ img.ProseMirror-separator {
|
|
|
124
124
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
125
125
|
2. Cannot start or end with "-"
|
|
126
126
|
3. "-" cannot repeat`);ze.customSchemes.push([n,e])}function E3(){ze.scanner=d3(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=m3(ze.scanner.tokens);for(let n=0;n<ze.pluginQueue.length;n++)ze.pluginQueue[n][1]({scanner:ze.scanner,parser:ze.parser});ze.initialized=!0}function C3(n){return ze.initialized||E3(),g3(ze.parser.start,n,f3(ze.scanner.start,n))}function rc(n,e,t){if(e===void 0&&(e=null),t===void 0&&(t=null),e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new tc(t),o=C3(n),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function S3(n){return new yt({key:new Ut("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=q5(t.doc,[...e]);if(lb(l).forEach(({newRange:c})=>{const u=tb(r.doc,c,m=>m.isTextblock);let d,h;if(u.length>1?(d=u[0],h=r.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(d=u[0],h=r.doc.textBetween(d.pos,c.to,void 0," ")),d&&h){const m=h.split(" ").filter(y=>y!=="");if(m.length<=0)return!1;const p=m[m.length-1],g=d.pos+h.lastIndexOf(p);if(!p)return!1;rc(p).filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>n.validate?n.validate(y.value):!0).forEach(y=>{hl(y.from,y.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function T3(n){return new yt({key:new Ut("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=Ff(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function w3(n){return new yt({key:new Ut("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(p=>{a+=p.textContent});const c=rc(a).find(p=>p.isLink&&p.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),d=/href="([^"]*)"/,h=u==null?void 0:u.match(d),m=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:m}),!0}}})}const A3=en.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){sp(n);return}sp(n.scheme,n.optionalSlashes)})},onDestroy(){b3()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[No({find:n=>rc(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(S3({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(T3({type:this.type})),this.options.linkOnPaste&&n.push(w3({editor:this.editor,type:this.type})),n}}).extend({addAttributes(){var n;return{...(n=this.parent)==null?void 0:n.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),k3=Dt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new yt({key:new Ut("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=It.node(a,a+l.nodeSize,{class:d.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),x3=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,O3=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,M3=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,N3=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,I3=en.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[$i({find:x3,type:this.type}),$i({find:M3,type:this.type})]},addPasteRules(){return[No({find:O3,type:this.type}),No({find:N3,type:this.type})]}}),D3=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,_3=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,L3=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,R3=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,P3=en.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[$i({find:D3,type:this.type}),$i({find:L3,type:this.type})]},addPasteRules(){return[No({find:_3,type:this.type}),No({find:R3,type:this.type})]}}),B3=en.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),$3=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),F3=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ap=en.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Pi(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),lp=/^\s*([-+*])\s$/,V3=pn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(F3.name,this.editor.getAttributes(ap.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Fi({find:lp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Fi({find:lp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(ap.name),editor:this.editor})),[n]}}),z3=pn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",dt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),cp=en.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Pi(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),up=/^(\d+)\.\s$/,H3=pn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",dt(this.options.HTMLAttributes,t),0]:["ol",dt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(z3.name,this.editor.getAttributes(cp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Fi({find:up,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)&&(n=Fi({find:up,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(cp.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),U3=pn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",dt(this.options.HTMLAttributes,n)]},renderText(){return`
|
|
127
|
-
`},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),oc={BASIC:"basic",FULL:"full"},j3={class:"attachment-list"},W3={class:"attachment-link"},K3={key:1,class:"attachment-no-download"},G3=["href"],_s=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",j3,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",W3,[r.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",K3,[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,G3))])]))),128))]))}}),Y3={class:"attachment-list"},J3={class:"attachment"},Z3=["onClick"],X3=["src","alt"],Q3=["onClick"],q3=["href"],eC={class:"btn btn-light download-button-image"},tC=["src","alt"],Ls=f.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(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",Y3,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",J3,[i.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,X3)],8,Z3)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",eC,[f.createVNode(f.unref(Qo))])],8,q3)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,tC)],8,Q3))])]))),128))]))}}),dp=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),nC=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,rC=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,oC=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,iC=(n,e)=>e?dp(n):!dp(n),Rs=(n,e)=>n===void 0?void 0:n.filter(o=>iC(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:nC(o),previewUrl:rC(o),fullImageUrl:oC(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),sC={class:"bd-markdown-editor__menu-bottom"},aC={key:0,class:"vr"},lC={key:4,class:"vr"},cC={key:7,class:"vr"},fp=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:oc.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=Jn(t,"modelValue",e),i=[e3,t3,n3,k3.configure({placeholder:t.placeholder}),U3];t.variant===oc.FULL&&i.push(I3,P3,B3,$3,V3,H3,A3.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=qE({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:w}=C,{from:b,to:D}=S.state.selection;if(w.doc.textBetween(b-1,D,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===oc.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,m=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!1):null),p=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},y=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(QE),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),m.value?(f.openBlock(),f.createBlock(_s,{key:0,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),p.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:y},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",sC,[f.createVNode(pt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(Yn))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",aC)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=w=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Qs))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=w=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(sa))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=w=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(la))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",lC)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=w=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(qs))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=w=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(aa))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",cC)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=w=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(ia))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(ii),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),uC={class:"header"},dC=f.createElementVNode("div",null,"Menu",-1),fC={class:"icon-close-wrapper"},hC={class:"navbar"},pC={class:"nav navbar-nav w-100"},mC={class:"nav-item"},gC={class:"nav-item"},ic=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",uC,[dC,f.createElementVNode("div",fC,[f.createVNode(Xo,{onClick:o})])]),f.createElementVNode("nav",hC,[f.createElementVNode("ul",pC,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",mC,[f.createVNode(Cr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.createElementVNode("li",gC,[f.createVNode(Cr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),yC={class:"bd-user"},vC={class:"bd-user__information"},bC={class:"text-break"},EC={class:"overflow-x-hidden"},hp=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",yC,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(lo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",vC,[f.createElementVNode("header",null,[f.createElementVNode("h5",bC,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",EC,f.toDisplayString(t.value),1)])]))}}),CC="",SC={class:"bd-chat-cloud-card"},TC={class:"bd-chat-cloud-card__header"},wC={class:"bd-chat-cloud-card__body"},AC=["innerHTML"],kC={class:"bd-chat-cloud-card__footer"},pp=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":CC),o=f.computed(()=>Rs(t.files,!1)),i=f.computed(()=>Rs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(lo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",SC,[f.createElementVNode("div",TC,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(pt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",wC,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,AC)])]),f.createElementVNode("div",kC,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(_s,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),xC={class:"bd-dropdown dropdown"},sc=f.defineComponent({__name:"BDDropdown",props:{size:{default:st.MD},variant:{default:ni.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(n){const e=n,{uniqueIdentifier:t}=co(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r}));return(l,a)=>(f.openBlock(),f.createElementBlock("div",xC,[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({class:["dropdown-menu",i.value]},s.value),[f.renderSlot(l.$slots,"default")],16)]))}}),OC={class:"navbar navbar-expand-lg header-navbar"},MC=f.createElementVNode("div",null,"Menu",-1),NC={class:"bd-btn-settings d-flex gap-2 align-items-center"},IC="sm",mp=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},src:{},profileImageAlt:{},profileImageSize:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.ref(void 0),o=()=>e("click"),i=()=>{e("signout")},s=()=>r.value=!0,l=()=>r.value=!1,a=f.computed(()=>{if(!t.dropdownOptions)return[];let c=t.dropdownOptions.slice(0);return c.unshift({to:{name:"Overview"},text:"Gesprekken"}),c});return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",OC,[f.createVNode(ca,{viewBox:"0 0 351 61",class:"d-inline-block b-d-logo",onClick:o}),f.createElementVNode("div",{class:"bd-hamburger",onClick:s},[MC,f.createVNode(ti)]),f.createElementVNode("div",null,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(pt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))]),f.createElementVNode("div",NC,[t.src?(f.openBlock(),f.createBlock(lo,{key:0,src:t.src,alt:t.profileImageAlt,size:IC},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(sc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(si,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(si,{text:"Uitloggen",onClick:i})]),_:1},8,["text"])])]),f.createVNode(ic,{active:r.value,options:a.value,onHide:l,onSignout:i},null,8,["active","options"])],64))}}),DC={class:"modal bd-modal modal-lg",tabindex:"-1"},_C={class:"modal-dialog"},LC={class:"modal-content"},RC={class:"modal-header"},PC={class:"modal-title"},BC={class:"modal-body"},$C={key:0,class:"modal-footer"},FC=["disabled"],gp=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",DC,[f.createElementVNode("div",_C,[f.createElementVNode("div",LC,[f.createElementVNode("div",RC,[f.createElementVNode("h2",PC,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[f.createTextVNode("Sluiten "),f.createVNode(f.unref(Xo),{class:"bg-primary"})])]),f.createElementVNode("div",BC,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",$C,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,FC)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
|
|
127
|
+
`},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const d=a.filter(h=>l.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),oc={BASIC:"basic",FULL:"full"},j3={class:"attachment-list"},W3={class:"attachment-link"},K3={key:1,class:"attachment-no-download"},G3=["href"],_s=f.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(f.openBlock(),f.createElementBlock("ul",j3,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.files,i=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[f.createElementVNode("div",W3,[r.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),r.noDownload?(f.openBlock(),f.createElementBlock("div",K3,[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)])):(f.openBlock(),f.createElementBlock("a",{key:2,href:i.downloadUrl},[f.createVNode(f.unref(Yn)),f.createTextVNode(" "+f.toDisplayString(i.Naam.trim()),1)],8,G3))])]))),128))]))}}),Y3={class:"attachment-list"},J3={class:"attachment"},Z3=["onClick"],X3=["src","alt"],Q3=["onClick"],q3=["href"],eC={class:"btn btn-light download-button-image"},tC=["src","alt"],Ls=f.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(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(f.openBlock(),f.createElementBlock("ul",Y3,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.files,l=>(f.openBlock(),f.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[f.createElementVNode("div",J3,[i.showDelete?(f.openBlock(),f.createBlock(pt,{key:0,variant:"remove",onClick:a=>r(l),"aria-label":"verwijder"},{default:f.withCtx(()=>[f.createVNode(f.unref(ao))]),_:2},1032,["onClick"])):f.createCommentVNode("",!0),t.noDownload?(f.openBlock(),f.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[f.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,X3)],8,Z3)):(f.openBlock(),f.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(f.openBlock(),f.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[f.createElementVNode("button",eC,[f.createVNode(f.unref(Qo))])],8,q3)):f.createCommentVNode("",!0),f.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,tC)],8,Q3))])]))),128))]))}}),dp=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),nC=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,rC=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,oC=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,iC=(n,e)=>e?dp(n):!dp(n),Rs=(n,e)=>n===void 0?void 0:n.filter(o=>iC(o,e)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!==void 0?o.CorrelationId.toString():"";return{downloadUrl:nC(o),previewUrl:rC(o),fullImageUrl:oC(o),altName:`${o.Naam}`,...o,CorrelationId:i}}),sC={class:"bd-markdown-editor__menu-bottom"},aC={key:0,class:"vr"},lC={key:4,class:"vr"},cC={key:7,class:"vr"},fp=f.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:Boolean,default:void 0},variant:{default:oc.BASIC},files:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=Jn(t,"modelValue",e),i=[e3,t3,n3,k3.configure({placeholder:t.placeholder}),U3];t.variant===oc.FULL&&i.push(I3,P3,B3,$3,V3,H3,A3.configure({openOnClick:!1,validate:C=>/^https?:\/\//.test(C)}));const s=qE({content:o.value,extensions:i,onUpdate:({editor:C})=>{const{view:S,state:w}=C,{from:b,to:D}=S.state.selection;if(w.doc.textBetween(b-1,D,"")==" "&&C.getAttributes("link").href!=null&&C.chain().setTextSelection({from:b-1,to:D}).toggleLink({href:C.getAttributes("link").href}).setTextSelection({from:D,to:D}).run(),C.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",C.getHTML())}});f.watch(()=>t.modelValue,C=>{s.value.getHTML()!==C&&s.value.commands.setContent(C,!0,{preserveWhitespace:"full"})});const l=f.computed(()=>t.state?"is-invalid":null),a=f.computed(()=>h("bold")),c=f.computed(()=>h("italic")),u=f.computed(()=>h("underline"));f.computed(()=>h("bulletList")),f.computed(()=>h("orderedList"));const d=f.computed(()=>t.variant===oc.FULL),h=C=>s.value&&s.value.isActive(C)?"active":null,m=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!1):null),p=f.computed(()=>t.files&&t.files.length>0?Rs(t.files,!0):null),g=C=>{e("action",{name:"delete-attachment",obj:C})},y=C=>{e("action",{name:"image-attachment",obj:C})};return(C,S)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("div",{class:f.normalizeClass(["bd-markdown-editor",l.value])},[f.createVNode(f.unref(QE),{editor:f.unref(s)},null,8,["editor"]),f.renderSlot(C.$slots,"default"),m.value?(f.openBlock(),f.createBlock(_s,{key:0,files:m.value,"no-download":!0,"show-delete":!0,onDelete:g},null,8,["files"])):f.createCommentVNode("",!0),p.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:p.value,"no-download":!0,"show-delete":!0,onDelete:g,onShow:y},null,8,["files"])):f.createCommentVNode("",!0),f.createElementVNode("div",sC,[f.createVNode(pt,{variant:"light",type:"button",onClick:r},{default:f.withCtx(()=>[f.createVNode(f.unref(Yn))]),_:1}),d.value?(f.openBlock(),f.createElementBlock("div",aC)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:1,variant:"light",type:"button",class:f.normalizeClass(a.value),onClick:S[0]||(S[0]=w=>f.unref(s).chain().focus().toggleBold().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(Qs))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:2,variant:"light",type:"button",class:f.normalizeClass(c.value),onClick:S[1]||(S[1]=w=>f.unref(s).chain().focus().toggleItalic().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(sa))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:3,variant:"light",type:"button",class:f.normalizeClass(u.value),onClick:S[2]||(S[2]=w=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(la))]),_:1},8,["class"])):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",lC)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:5,variant:"light",type:"button",class:"IsUnderlineActive",onClick:S[3]||(S[3]=w=>f.unref(s).chain().focus().toggleUnderline().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(qs))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:6,variant:"light",type:"button",class:"IsBulletListActive",onClick:S[4]||(S[4]=w=>f.unref(s).chain().focus().toggleBulletList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(aa))]),_:1})):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createElementBlock("div",cC)):f.createCommentVNode("",!0),d.value?(f.openBlock(),f.createBlock(pt,{key:8,variant:"light",type:"button",class:"IsOrderedListActive",onClick:S[5]||(S[5]=w=>f.unref(s).chain().focus().toggleOrderedList().run())},{default:f.withCtx(()=>[f.createVNode(f.unref(ia))]),_:1})):f.createCommentVNode("",!0)])],2),f.createVNode(f.unref(ii),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),uC={class:"header"},dC=f.createElementVNode("div",null,"Menu",-1),fC={class:"icon-close-wrapper"},hC={class:"navbar"},pC={class:"nav navbar-nav w-100"},mC={class:"nav-item"},gC={class:"nav-item"},ic=f.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-mobile-menu",r.value])},[f.createElementVNode("div",uC,[dC,f.createElementVNode("div",fC,[f.createVNode(Xo,{onClick:o})])]),f.createElementVNode("nav",hC,[f.createElementVNode("ul",pC,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.options,a=>(f.openBlock(),f.createElementBlock("li",mC,[f.createVNode(Cr,f.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),f.createElementVNode("li",gC,[f.createVNode(Cr,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),yC={class:"bd-user"},vC={class:"bd-user__information"},bC={class:"text-break"},EC={class:"overflow-x-hidden"},hp=f.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=f.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(f.openBlock(),f.createElementBlock("div",yC,[e.hideImage?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(lo,f.mergeProps({key:0},e.img,{size:"sm"}),null,16)),f.createElementVNode("div",vC,[f.createElementVNode("header",null,[f.createElementVNode("h5",bC,f.toDisplayString(e.name),1),f.renderSlot(r.$slots,"header-extra")]),f.createElementVNode("span",EC,f.toDisplayString(t.value),1)])]))}}),CC="",SC={class:"bd-chat-cloud-card"},TC={class:"bd-chat-cloud-card__header"},wC={class:"bd-chat-cloud-card__body"},AC=["innerHTML"],kC={class:"bd-chat-cloud-card__footer"},pp=f.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=f.computed(()=>t.isSender?"sender":CC),o=f.computed(()=>Rs(t.files,!1)),i=f.computed(()=>Rs(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["bd-chat-cloud",r.value])},[f.createVNode(lo,{src:t.src,size:"sm"},null,8,["src"]),f.createElementVNode("div",SC,[f.createElementVNode("div",TC,[f.renderSlot(a.$slots,"header",{},()=>[f.createTextVNode(f.toDisplayString(a.headerTitle),1)]),f.createVNode(pt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:f.withCtx(()=>[f.createTextVNode("kopieer")]),_:1})]),f.createElementVNode("div",wC,[f.renderSlot(a.$slots,"body",{},()=>[f.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,AC)])]),f.createElementVNode("div",kC,[f.renderSlot(a.$slots,"footer",{},()=>[o.value?(f.openBlock(),f.createBlock(_s,{key:0,files:o.value},null,8,["files"])):f.createCommentVNode("",!0),i.value?(f.openBlock(),f.createBlock(Ls,{key:1,files:i.value,onShow:l,"fast-download":!0},null,8,["files"])):f.createCommentVNode("",!0)])])])],2))}}),xC={class:"bd-dropdown dropdown"},sc=f.defineComponent({__name:"BDDropdown",props:{size:{default:st.MD},variant:{default:ni.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(n){const e=n,{uniqueIdentifier:t}=co(),r=`__BD__DROPDOWN__${t.value}`,o=f.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=f.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=f.computed(()=>({"aria-labelledby":r}));return(l,a)=>(f.openBlock(),f.createElementBlock("div",xC,[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.toggleTag),f.mergeProps({class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(e.text),1)]),_:1},16)),f.createElementVNode("ul",f.mergeProps({class:["dropdown-menu",i.value]},s.value),[f.renderSlot(l.$slots,"default")],16)]))}}),OC={class:"navbar navbar-expand-lg header-navbar"},MC=f.createElementVNode("div",null,"Menu",-1),NC={key:0,class:"header-options"},IC={class:"bd-btn-settings d-flex gap-2 align-items-center"},DC="sm",mp=f.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},src:{},profileImageAlt:{},profileImageSize:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=f.ref(void 0),o=()=>e("click"),i=()=>{e("signout")},s=()=>r.value=!0,l=()=>r.value=!1,a=f.computed(()=>{if(!t.dropdownOptions)return[];let c=t.dropdownOptions.slice(0);return c.unshift({to:{name:"Overview"},text:"Gesprekken"}),c});return(c,u)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createElementVNode("nav",OC,[f.createVNode(ca,{viewBox:"0 0 351 61",class:"d-inline-block b-d-logo",onClick:o}),f.createElementVNode("div",{class:"bd-hamburger",onClick:s},[MC,f.createVNode(ti)]),t.headerOptions&&t.headerOptions.length!==0?(f.openBlock(),f.createElementBlock("div",NC,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.headerOptions,d=>(f.openBlock(),f.createBlock(pt,{class:"btn-header",to:d.to},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(d.text),1)]),_:2},1032,["to"]))),256))])):f.createCommentVNode("",!0),f.createElementVNode("div",IC,[t.src?(f.openBlock(),f.createBlock(lo,{key:0,src:t.src,alt:t.profileImageAlt,size:DC},null,8,["src","alt"])):f.createCommentVNode("",!0),f.createVNode(sc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(t.dropdownOptions,(d,h)=>(f.openBlock(),f.createBlock(si,f.mergeProps({key:h},d),null,16))),128)),f.createVNode(si,{text:"Uitloggen",onClick:i})]),_:1},8,["text"])])]),f.createVNode(ic,{active:r.value,options:a.value,onHide:l,onSignout:i},null,8,["active","options"])],64))}}),_C={class:"modal bd-modal modal-lg",tabindex:"-1"},LC={class:"modal-dialog"},RC={class:"modal-content"},PC={class:"modal-header"},BC={class:"modal-title"},$C={class:"modal-body"},FC={key:0,class:"modal-footer"},VC=["disabled"],gp=f.defineComponent({__name:"BDModal",props:{title:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>{e("submit")},o=()=>{e("cancel")};return(i,s)=>(f.openBlock(),f.createElementBlock("div",_C,[f.createElementVNode("div",LC,[f.createElementVNode("div",RC,[f.createElementVNode("div",PC,[f.createElementVNode("h2",BC,f.toDisplayString(t.title),1),f.renderSlot(i.$slots,"modal-header-space-between"),f.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[f.createTextVNode("Sluiten "),f.createVNode(f.unref(Xo),{class:"bg-primary"})])]),f.createElementVNode("div",$C,[f.renderSlot(i.$slots,"default")]),i.hideFooter?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("div",FC,[t.hideFooterSubmitButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:0,type:"button",class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},f.toDisplayString(t.submitButtonTitle),9,VC)),t.hideFooterCancelButton?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},f.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
|
|
128
128
|
* Bootstrap v5.3.0 (https://getbootstrap.com/)
|
|
129
129
|
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
130
130
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
131
|
-
*/const Vn=new Map,ac={set(n,e,t){Vn.has(n)||Vn.set(n,new Map);const r=Vn.get(n);if(!r.has(e)&&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(e,t)},get(n,e){return Vn.has(n)&&Vn.get(n).get(e)||null},remove(n,e){if(!Vn.has(n))return;const t=Vn.get(n);t.delete(e),t.size===0&&Vn.delete(n)}},VC=1e6,zC=1e3,lc="transitionend",yp=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),HC=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),UC=n=>{do n+=Math.floor(Math.random()*VC);while(document.getElementById(n));return n},jC=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*zC)},vp=n=>{n.dispatchEvent(new Event(lc))},yn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),zn=n=>yn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(yp(n)):null,Xr=n=>{if(!yn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Hn=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",bp=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?bp(n.parentNode):null},Ps=()=>{},Uo=n=>{n.offsetHeight},Ep=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,cc=[],WC=n=>{document.readyState==="loading"?(cc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of cc)e()}),cc.push(n)):n()},Rt=()=>document.documentElement.dir==="rtl",Pt=n=>{WC(()=>{const e=Ep();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},Et=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,Cp=(n,e,t=!0)=>{if(!t){Et(n);return}const r=5,o=jC(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(lc,s),Et(n))};e.addEventListener(lc,s),setTimeout(()=>{i||vp(e)},o)},uc=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},KC=/[^.]*(?=\..*)\.|.*/,GC=/\..*/,YC=/::\d+$/,dc={};let Sp=1;const Tp={mouseenter:"mouseover",mouseleave:"mouseout"},JC=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function wp(n,e){return e&&`${e}::${Sp++}`||n.uidEvent||Sp++}function Ap(n){const e=wp(n);return n.uidEvent=e,dc[e]=dc[e]||{},dc[e]}function ZC(n,e){return function t(r){return hc(r,{delegateTarget:n}),t.oneOff&&ne.off(n,r.type,e),e.apply(n,[r])}}function XC(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return hc(o,{delegateTarget:s}),r.oneOff&&ne.off(n,o.type,e,t),t.apply(s,[o])}}function kp(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function xp(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=Mp(n);return JC.has(i)||(i=n),[r,o,i]}function Op(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=xp(e,t,r);e in Tp&&(s=(p=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return p.call(this,g)})(s));const a=Ap(n),c=a[l]||(a[l]={}),u=kp(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const d=wp(s,e.replace(KC,"")),h=i?XC(n,t,s):ZC(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=d,c[d]=h,n.addEventListener(l,h,i)}function fc(n,e,t,r,o){const i=kp(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function QC(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&fc(n,e,t,s.callable,s.delegationSelector)}function Mp(n){return n=n.replace(GC,""),Tp[n]||n}const ne={on(n,e,t,r){Op(n,e,t,r,!1)},one(n,e,t,r){Op(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=xp(e,t,r),l=s!==e,a=Ap(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;fc(n,a,s,i,o?t:null);return}if(u)for(const d of Object.keys(a))QC(n,a,d,e.slice(1));for(const[d,h]of Object.entries(c)){const m=d.replace(YC,"");(!l||e.includes(m))&&fc(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Ep(),o=Mp(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=hc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function hc(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch{Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function Np(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function pc(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const vn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${pc(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${pc(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Np(n.dataset[r])}return e},getDataAttribute(n,e){return Np(n.getAttribute(`data-bs-${pc(e)}`))}};class jo{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new 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){const r=yn(t)?vn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...yn(t)?vn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=yn(i)?"element":HC(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const qC="5.3.0";class Yt extends jo{constructor(e,t){super(),e=zn(e),e&&(this._element=e,this._config=this._getConfig(t),ac.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ac.remove(this._element,this.constructor.DATA_KEY),ne.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Cp(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return ac.get(zn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return qC}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const mc=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return yp(e)},be={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Hn(t)&&Xr(t))},getSelectorFromElement(n){const e=mc(n);return e&&be.findOne(e)?e:null},getElementFromSelector(n){const e=mc(n);return e?be.findOne(e):null},getMultipleElementsFromSelector(n){const e=mc(n);return e?be.find(e):[]}},Bs=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ne.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Hn(this))return;const i=be.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},eS="alert",Ip=".bs.alert",tS=`close${Ip}`,nS=`closed${Ip}`,rS="fade",oS="show";class $s extends Yt{static get NAME(){return eS}close(){if(ne.trigger(this._element,tS).defaultPrevented)return;this._element.classList.remove(oS);const t=this._element.classList.contains(rS);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ne.trigger(this._element,nS),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=$s.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Bs($s,"close"),Pt($s);const iS="button",sS=".bs.button",aS=".data-api",lS="active",Dp='[data-bs-toggle="button"]',cS=`click${sS}${aS}`;class Fs extends Yt{static get NAME(){return iS}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(lS))}static jQueryInterface(e){return this.each(function(){const t=Fs.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ne.on(document,cS,Dp,n=>{n.preventDefault();const e=n.target.closest(Dp);Fs.getOrCreateInstance(e).toggle()}),Pt(Fs);const uS="swipe",Qr=".bs.swipe",dS=`touchstart${Qr}`,fS=`touchmove${Qr}`,hS=`touchend${Qr}`,pS=`pointerdown${Qr}`,mS=`pointerup${Qr}`,gS="touch",yS="pen",vS="pointer-event",bS=40,ES={endCallback:null,leftCallback:null,rightCallback:null},CS={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Vs extends jo{constructor(e,t){super(),this._element=e,!(!e||!Vs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ES}static get DefaultType(){return CS}static get NAME(){return uS}dispose(){ne.off(this._element,Qr)}_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(),Et(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=bS)return;const t=e/this._deltaX;this._deltaX=0,t&&Et(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ne.on(this._element,pS,e=>this._start(e)),ne.on(this._element,mS,e=>this._end(e)),this._element.classList.add(vS)):(ne.on(this._element,dS,e=>this._start(e)),ne.on(this._element,fS,e=>this._move(e)),ne.on(this._element,hS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===yS||e.pointerType===gS)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const SS="carousel",Un=".bs.carousel",_p=".data-api",TS="ArrowLeft",wS="ArrowRight",AS=500,Wo="next",qr="prev",eo="left",zs="right",kS=`slide${Un}`,gc=`slid${Un}`,xS=`keydown${Un}`,OS=`mouseenter${Un}`,MS=`mouseleave${Un}`,NS=`dragstart${Un}`,IS=`load${Un}${_p}`,DS=`click${Un}${_p}`,Lp="carousel",Hs="active",_S="slide",LS="carousel-item-end",RS="carousel-item-start",PS="carousel-item-next",BS="carousel-item-prev",Rp=".active",Pp=".carousel-item",$S=Rp+Pp,FS=".carousel-item img",VS=".carousel-indicators",zS="[data-bs-slide], [data-bs-slide-to]",HS='[data-bs-ride="carousel"]',US={[TS]:zs,[wS]:eo},jS={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},WS={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ko extends Yt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=be.findOne(VS,this._element),this._addEventListeners(),this._config.ride===Lp&&this.cycle()}static get Default(){return jS}static get DefaultType(){return WS}static get NAME(){return SS}next(){this._slide(Wo)}nextWhenVisible(){!document.hidden&&Xr(this._element)&&this.next()}prev(){this._slide(qr)}pause(){this._isSliding&&vp(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){ne.one(this._element,gc,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ne.one(this._element,gc,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Wo:qr;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ne.on(this._element,xS,e=>this._keydown(e)),this._config.pause==="hover"&&(ne.on(this._element,OS,()=>this.pause()),ne.on(this._element,MS,()=>this._maybeEnableCycle())),this._config.touch&&Vs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of be.find(FS,this._element))ne.on(r,NS,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(eo)),rightCallback:()=>this._slide(this._directionToOrder(zs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),AS+this._config.interval))}};this._swipeHelper=new Vs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=US[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=be.findOne(Rp,this._indicatorsElement);t.classList.remove(Hs),t.removeAttribute("aria-current");const r=be.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Hs),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===Wo,i=t||uc(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=m=>ne.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(kS).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?RS:LS,d=o?PS:BS;i.classList.add(d),Uo(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,d),i.classList.add(Hs),r.classList.remove(Hs,d,u),this._isSliding=!1,l(gc)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(_S)}_getActive(){return be.findOne($S,this._element)}_getItems(){return be.find(Pp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Rt()?e===eo?qr:Wo:e===eo?Wo:qr}_orderToDirection(e){return Rt()?e===qr?eo:zs:e===qr?zs:eo}static jQueryInterface(e){return this.each(function(){const t=Ko.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,DS,zS,function(n){const e=be.getElementFromSelector(this);if(!e||!e.classList.contains(Lp))return;n.preventDefault();const t=Ko.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(vn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()}),ne.on(window,IS,()=>{const n=be.find(HS);for(const e of n)Ko.getOrCreateInstance(e)}),Pt(Ko);const KS="collapse",Go=".bs.collapse",GS=".data-api",YS=`show${Go}`,JS=`shown${Go}`,ZS=`hide${Go}`,XS=`hidden${Go}`,QS=`click${Go}${GS}`,yc="show",to="collapse",Us="collapsing",qS="collapsed",e4=`:scope .${to} .${to}`,t4="collapse-horizontal",n4="width",r4="height",o4=".collapse.show, .collapse.collapsing",vc='[data-bs-toggle="collapse"]',i4={parent:null,toggle:!0},s4={parent:"(null|element)",toggle:"boolean"};class Yo extends Yt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=be.find(vc);for(const o of r){const i=be.getSelectorFromElement(o),s=be.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return i4}static get DefaultType(){return s4}static get NAME(){return KS}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(o4).filter(l=>l!==this._element).map(l=>Yo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ne.trigger(this._element,YS).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(to),this._element.classList.add(Us),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Us),this._element.classList.add(to,yc),this._element.style[r]="",ne.trigger(this._element,JS)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ne.trigger(this._element,ZS).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Uo(this._element),this._element.classList.add(Us),this._element.classList.remove(to,yc);for(const o of this._triggerArray){const i=be.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Us),this._element.classList.add(to),ne.trigger(this._element,XS)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(yc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=zn(e.parent),e}_getDimension(){return this._element.classList.contains(t4)?n4:r4}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(vc);for(const t of e){const r=be.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=be.find(e4,this._config.parent);return be.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(qS,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=Yo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ne.on(document,QS,vc,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of be.getMultipleElementsFromSelector(this))Yo.getOrCreateInstance(e,{toggle:!1}).toggle()}),Pt(Yo);const Bp="dropdown",pr=".bs.dropdown",bc=".data-api",a4="Escape",$p="Tab",l4="ArrowUp",Fp="ArrowDown",c4=2,u4=`hide${pr}`,d4=`hidden${pr}`,f4=`show${pr}`,h4=`shown${pr}`,Vp=`click${pr}${bc}`,zp=`keydown${pr}${bc}`,p4=`keyup${pr}${bc}`,no="show",m4="dropup",g4="dropend",y4="dropstart",v4="dropup-center",b4="dropdown-center",mr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',E4=`${mr}.${no}`,js=".dropdown-menu",C4=".navbar",S4=".navbar-nav",T4=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",w4=Rt()?"top-end":"top-start",A4=Rt()?"top-start":"top-end",k4=Rt()?"bottom-end":"bottom-start",x4=Rt()?"bottom-start":"bottom-end",O4=Rt()?"left-start":"right-start",M4=Rt()?"right-start":"left-start",N4="top",I4="bottom",D4={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},_4={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class an extends Yt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=be.next(this._element,js)[0]||be.prev(this._element,js)[0]||be.findOne(js,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return D4}static get DefaultType(){return _4}static get NAME(){return Bp}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Hn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ne.trigger(this._element,f4,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(S4))for(const r of[].concat(...document.body.children))ne.on(r,"mouseover",Ps);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(no),this._element.classList.add(no),ne.trigger(this._element,h4,e)}}hide(){if(Hn(this._element)||!this._isShown())return;const 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(!ne.trigger(this._element,u4,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ne.off(r,"mouseover",Ps);this._popper&&this._popper.destroy(),this._menu.classList.remove(no),this._element.classList.remove(no),this._element.setAttribute("aria-expanded","false"),vn.removeDataAttribute(this._menu,"popper"),ne.trigger(this._element,d4,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!yn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Bp.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Sh>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:yn(this._config.reference)?e=zn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Gi(e,this._menu,t)}_isShown(){return this._menu.classList.contains(no)}_getPlacement(){const e=this._parent;if(e.classList.contains(g4))return O4;if(e.classList.contains(y4))return M4;if(e.classList.contains(v4))return N4;if(e.classList.contains(b4))return I4;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(m4)?t?A4:w4:t?x4:k4}_detectNavbar(){return this._element.closest(C4)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const 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")&&(vn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Et(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=be.find(T4,this._menu).filter(o=>Xr(o));r.length&&uc(r,t,e===Fp,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=an.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===c4||e.type==="keyup"&&e.key!==$p)return;const t=be.find(E4);for(const r of t){const o=an.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===$p||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:o._element};e.type==="click"&&(l.clickEvent=e),o._completeHide(l)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===a4,o=[l4,Fp].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(mr)?this:be.prev(this,mr)[0]||be.next(this,mr)[0]||be.findOne(mr,e.delegateTarget.parentNode),s=an.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ne.on(document,zp,mr,an.dataApiKeydownHandler),ne.on(document,zp,js,an.dataApiKeydownHandler),ne.on(document,Vp,an.clearMenus),ne.on(document,p4,an.clearMenus),ne.on(document,Vp,mr,function(n){n.preventDefault(),an.getOrCreateInstance(this).toggle()}),Pt(an);const Hp="backdrop",L4="fade",Up="show",jp=`mousedown.bs.${Hp}`,R4={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},P4={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Wp extends jo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return R4}static get DefaultType(){return P4}static get NAME(){return Hp}show(e){if(!this._config.isVisible){Et(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Uo(t),t.classList.add(Up),this._emulateAnimation(()=>{Et(e)})}hide(e){if(!this._config.isVisible){Et(e);return}this._getElement().classList.remove(Up),this._emulateAnimation(()=>{this.dispose(),Et(e)})}dispose(){this._isAppended&&(ne.off(this._element,jp),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(L4),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=zn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ne.on(e,jp,()=>{Et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Cp(e,this._getElement(),this._config.isAnimated)}}const B4="focustrap",Ws=".bs.focustrap",$4=`focusin${Ws}`,F4=`keydown.tab${Ws}`,V4="Tab",z4="forward",Kp="backward",H4={autofocus:!0,trapElement:null},U4={autofocus:"boolean",trapElement:"element"};class Gp extends jo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return H4}static get DefaultType(){return U4}static get NAME(){return B4}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ne.off(document,Ws),ne.on(document,$4,e=>this._handleFocusin(e)),ne.on(document,F4,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ne.off(document,Ws))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=be.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===Kp?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===V4&&(this._lastTabNavDirection=e.shiftKey?Kp:z4)}}const Yp=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Jp=".sticky-top",Ks="padding-right",Zp="margin-right";class Ec{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ks,t=>t+e),this._setElementAttributes(Yp,Ks,t=>t+e),this._setElementAttributes(Jp,Zp,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ks),this._resetElementAttributes(Yp,Ks),this._resetElementAttributes(Jp,Zp)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&vn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=vn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}vn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(yn(e)){t(e);return}for(const r of be.find(e,this._element))t(r)}}const j4="modal",Bt=".bs.modal",W4=".data-api",K4="Escape",G4=`hide${Bt}`,Y4=`hidePrevented${Bt}`,Xp=`hidden${Bt}`,Qp=`show${Bt}`,J4=`shown${Bt}`,Z4=`resize${Bt}`,X4=`click.dismiss${Bt}`,Q4=`mousedown.dismiss${Bt}`,q4=`keydown.dismiss${Bt}`,e7=`click${Bt}${W4}`,qp="modal-open",t7="fade",em="show",Cc="modal-static",n7=".modal.show",r7=".modal-dialog",o7=".modal-body",i7='[data-bs-toggle="modal"]',s7={backdrop:!0,focus:!0,keyboard:!0},a7={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class gr extends Yt{constructor(e,t){super(e,t),this._dialog=be.findOne(r7,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ec,this._addEventListeners()}static get Default(){return s7}static get DefaultType(){return a7}static get NAME(){return j4}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ne.trigger(this._element,Qp,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(qp),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ne.trigger(this._element,G4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(em),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ne.off(window,Bt),ne.off(this._dialog,Bt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Wp({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Gp({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;const t=be.findOne(o7,this._dialog);t&&(t.scrollTop=0),Uo(this._element),this._element.classList.add(em);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ne.trigger(this._element,J4,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ne.on(this._element,q4,e=>{if(e.key===K4){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ne.on(window,Z4,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ne.on(this._element,Q4,e=>{ne.one(this._element,X4,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(qp),this._resetAdjustments(),this._scrollBar.reset(),ne.trigger(this._element,Xp)})}_isAnimated(){return this._element.classList.contains(t7)}_triggerBackdropTransition(){if(ne.trigger(this._element,Y4).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Cc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Cc),this._queueCallback(()=>{this._element.classList.remove(Cc),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=Rt()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Rt()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=gr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ne.on(document,e7,i7,function(n){const e=be.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ne.one(e,Qp,o=>{o.defaultPrevented||ne.one(e,Xp,()=>{Xr(this)&&this.focus()})});const t=be.findOne(n7);t&&gr.getInstance(t).hide(),gr.getOrCreateInstance(e).toggle(this)}),Bs(gr),Pt(gr);const l7="offcanvas",bn=".bs.offcanvas",tm=".data-api",c7=`load${bn}${tm}`,u7="Escape",nm="show",rm="showing",om="hiding",d7="offcanvas-backdrop",im=".offcanvas.show",f7=`show${bn}`,h7=`shown${bn}`,p7=`hide${bn}`,sm=`hidePrevented${bn}`,am=`hidden${bn}`,m7=`resize${bn}`,g7=`click${bn}${tm}`,y7=`keydown.dismiss${bn}`,v7='[data-bs-toggle="offcanvas"]',b7={backdrop:!0,keyboard:!0,scroll:!1},E7={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class jn extends Yt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return b7}static get DefaultType(){return E7}static get NAME(){return l7}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ne.trigger(this._element,f7,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ec().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(rm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(nm),this._element.classList.remove(rm),ne.trigger(this._element,h7,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ne.trigger(this._element,p7).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(om),this._backdrop.hide();const t=()=>{this._element.classList.remove(nm,om),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ec().reset(),ne.trigger(this._element,am)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ne.trigger(this._element,sm);return}this.hide()},t=!!this._config.backdrop;return new Wp({className:d7,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new Gp({trapElement:this._element})}_addEventListeners(){ne.on(this._element,y7,e=>{if(e.key===u7){if(this._config.keyboard){this.hide();return}ne.trigger(this._element,sm)}})}static jQueryInterface(e){return this.each(function(){const t=jn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne.on(document,g7,v7,function(n){const e=be.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Hn(this))return;ne.one(e,am,()=>{Xr(this)&&this.focus()});const t=be.findOne(im);t&&t!==e&&jn.getInstance(t).hide(),jn.getOrCreateInstance(e).toggle(this)}),ne.on(window,c7,()=>{for(const n of be.find(im))jn.getOrCreateInstance(n).show()}),ne.on(window,m7,()=>{for(const n of be.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&jn.getOrCreateInstance(n).hide()}),Bs(jn),Pt(jn);const lm={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},C7=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),S7=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,T7=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?C7.has(t)?!!S7.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function w7(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)T7(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const A7="TemplateFactory",k7={allowList:lm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},x7={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},O7={entry:"(string|element|function|null)",selector:"(string|element)"};class M7 extends jo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return k7}static get DefaultType(){return x7}static get NAME(){return A7}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(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},O7)}_setContent(e,t,r){const o=be.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(yn(t)){this._putElementInTemplate(zn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?w7(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Et(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const N7="tooltip",I7=new Set(["sanitize","allowList","sanitizeFn"]),Sc="fade",D7="modal",Gs="show",_7=".tooltip-inner",cm=`.${D7}`,um="hide.bs.modal",Jo="hover",Tc="focus",L7="click",R7="manual",P7="hide",B7="hidden",$7="show",F7="shown",V7="inserted",z7="click",H7="focusin",U7="focusout",j7="mouseenter",W7="mouseleave",K7={AUTO:"auto",TOP:"top",RIGHT:Rt()?"left":"right",BOTTOM:"bottom",LEFT:Rt()?"right":"left"},G7={allowList:lm,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"},Y7={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"};class yr extends Yt{constructor(e,t){if(typeof Sh>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");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 G7}static get DefaultType(){return Y7}static get NAME(){return N7}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ne.off(this._element.closest(cm),um,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 new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ne.trigger(this._element,this.constructor.eventName($7)),r=(bp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ne.trigger(this._element,this.constructor.eventName(V7))),this._popper=this._createPopper(o),o.classList.add(Gs),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ne.on(l,"mouseover",Ps);const s=()=>{ne.trigger(this._element,this.constructor.eventName(F7)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ne.trigger(this._element,this.constructor.eventName(P7)).defaultPrevented)return;if(this._getTipElement().classList.remove(Gs),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ne.off(o,"mouseover",Ps);this._activeTrigger[L7]=!1,this._activeTrigger[Tc]=!1,this._activeTrigger[Jo]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ne.trigger(this._element,this.constructor.eventName(B7)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Sc,Gs),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=UC(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Sc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new M7({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[_7]: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(Sc)}_isShown(){return this.tip&&this.tip.classList.contains(Gs)}_createPopper(e){const t=Et(this._config.placement,[this,e,this._element]),r=K7[t.toUpperCase()];return Gi(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Et(e,[this._element])}_getPopperConfig(e){const 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:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...Et(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ne.on(this._element,this.constructor.eventName(z7),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==R7){const r=t===Jo?this.constructor.eventName(j7):this.constructor.eventName(H7),o=t===Jo?this.constructor.eventName(W7):this.constructor.eventName(U7);ne.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Tc:Jo]=!0,s._enter()}),ne.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Tc:Jo]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ne.on(this._element.closest(cm),um,this._hideModalHandler)}_fixTitle(){const 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){const t=vn.getDataAttributes(this._element);for(const r of Object.keys(t))I7.has(r)&&delete t[r];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:zn(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(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Pt(yr);const J7="popover",Z7=".popover-header",X7=".popover-body",Q7={...yr.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"},q7={...yr.DefaultType,content:"(null|string|element|function)"};class wc extends yr{static get Default(){return Q7}static get DefaultType(){return q7}static get NAME(){return J7}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Z7]:this._getTitle(),[X7]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=wc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Pt(wc);const eT="scrollspy",Ac=".bs.scrollspy",tT=".data-api",nT=`activate${Ac}`,dm=`click${Ac}`,rT=`load${Ac}${tT}`,oT="dropdown-item",ro="active",iT='[data-bs-spy="scroll"]',kc="[href]",sT=".nav, .list-group",fm=".nav-link",aT=`${fm}, .nav-item > ${fm}, .list-group-item`,lT=".dropdown",cT=".dropdown-toggle",uT={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},dT={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ys extends Yt{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 uT}static get DefaultType(){return dT}static get NAME(){return eT}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=zn(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(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ne.off(this._config.target,dm),ne.on(this._config.target,dm,kc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=be.find(kc,this._config.target);for(const t of e){if(!t.hash||Hn(t))continue;const r=be.findOne(decodeURI(t.hash),this._element);Xr(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(ro),this._activateParents(e),ne.trigger(this._element,nT,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(oT)){be.findOne(cT,e.closest(lT)).classList.add(ro);return}for(const t of be.parents(e,sT))for(const r of be.prev(t,aT))r.classList.add(ro)}_clearActiveClass(e){e.classList.remove(ro);const t=be.find(`${kc}.${ro}`,e);for(const r of t)r.classList.remove(ro)}static jQueryInterface(e){return this.each(function(){const t=Ys.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(window,rT,()=>{for(const n of be.find(iT))Ys.getOrCreateInstance(n)}),Pt(Ys);const fT="tab",vr=".bs.tab",hT=`hide${vr}`,pT=`hidden${vr}`,mT=`show${vr}`,gT=`shown${vr}`,yT=`click${vr}`,vT=`keydown${vr}`,bT=`load${vr}`,ET="ArrowLeft",hm="ArrowRight",CT="ArrowUp",pm="ArrowDown",br="active",mm="fade",xc="show",ST="dropdown",TT=".dropdown-toggle",wT=".dropdown-menu",Oc=":not(.dropdown-toggle)",AT='.list-group, .nav, [role="tablist"]',kT=".nav-item, .list-group-item",xT=`.nav-link${Oc}, .list-group-item${Oc}, [role="tab"]${Oc}`,gm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Mc=`${xT}, ${gm}`,OT=`.${br}[data-bs-toggle="tab"], .${br}[data-bs-toggle="pill"], .${br}[data-bs-toggle="list"]`;class oo extends Yt{constructor(e){super(e),this._parent=this._element.closest(AT),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ne.on(this._element,vT,t=>this._keydown(t)))}static get NAME(){return fT}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ne.trigger(t,hT,{relatedTarget:e}):null;ne.trigger(e,mT,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(br),this._activate(be.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(xc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ne.trigger(e,gT,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(mm))}_deactivate(e,t){if(!e)return;e.classList.remove(br),e.blur(),this._deactivate(be.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(xc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ne.trigger(e,pT,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(mm))}_keydown(e){if(![ET,hm,CT,pm].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[hm,pm].includes(e.key),r=uc(this._getChildren().filter(o=>!Hn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),oo.getOrCreateInstance(r).show())}_getChildren(){return be.find(Mc,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=be.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(ST))return;const o=(i,s)=>{const l=be.findOne(i,r);l&&l.classList.toggle(s,t)};o(TT,br),o(wT,xc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(br)}_getInnerElement(e){return e.matches(Mc)?e:be.findOne(Mc,e)}_getOuterElement(e){return e.closest(kT)||e}static jQueryInterface(e){return this.each(function(){const t=oo.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,yT,gm,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Hn(this)&&oo.getOrCreateInstance(this).show()}),ne.on(window,bT,()=>{for(const n of be.find(OT))oo.getOrCreateInstance(n)}),Pt(oo);const MT="toast",Wn=".bs.toast",NT=`mouseover${Wn}`,IT=`mouseout${Wn}`,DT=`focusin${Wn}`,_T=`focusout${Wn}`,LT=`hide${Wn}`,RT=`hidden${Wn}`,PT=`show${Wn}`,BT=`shown${Wn}`,$T="fade",ym="hide",Js="show",Zs="showing",FT={animation:"boolean",autohide:"boolean",delay:"number"},VT={animation:!0,autohide:!0,delay:5e3};class Zo extends Yt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return VT}static get DefaultType(){return FT}static get NAME(){return MT}show(){if(ne.trigger(this._element,PT).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add($T);const t=()=>{this._element.classList.remove(Zs),ne.trigger(this._element,BT),this._maybeScheduleHide()};this._element.classList.remove(ym),Uo(this._element),this._element.classList.add(Js,Zs),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ne.trigger(this._element,LT).defaultPrevented)return;const t=()=>{this._element.classList.add(ym),this._element.classList.remove(Zs,Js),ne.trigger(this._element,RT)};this._element.classList.add(Zs),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Js),super.dispose()}isShown(){return this._element.classList.contains(Js)}_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}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ne.on(this._element,NT,e=>this._onInteraction(e,!0)),ne.on(this._element,IT,e=>this._onInteraction(e,!1)),ne.on(this._element,DT,e=>this._onInteraction(e,!0)),ne.on(this._element,_T,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Zo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Bs(Zo),Pt(Zo);const zT=n=>{const e=f.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value||(e.value=new gr(o,{})),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{e.value&&e.value.hide()}}};function HT(n=void 0){const e=l=>i("Succesvol",l,Sr.SUCCESS),t=l=>i("Waarschuwing",l,Sr.WARNING),r=l=>i("Informatie",l,Sr.INFO),o=l=>i("Mislukt",l,Sr.DANGER);function i(l,a,c){const u=`toast-${eu()}`,d={id:u,show:!0,variant:c,title:l,text:a},h=document.querySelector(".toast-container"),m=f.h(pa,d),g=f.createApp({render:()=>m}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`),C=Zo.getOrCreateInstance(y,n);C&&(C.show(),s(y))}function s(l){function a(d,h){d.forEach(m=>{if(m.attributeName!="class")return;const p=m.target;if(p.classList.contains("hide")){p.remove(),h.disconnect();return}})}const c=new MutationObserver(a),u={attributes:!0};c.observe(l,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const vm={mounted:n=>{new yr(n)}},UT={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},pt=f.defineComponent({__name:"BDButton",props:{size:{default:st.MD},variant:{default:UT.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=f.computed(()=>t.to?Cr:"button"),i=f.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(o.value),f.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),jT={install:n=>{n.component("BDCol",Pc),n.component("BDContainer",Bc),n.component("BDRow",$c),n.component("BDButton",pt),n.component("BDLogo",ca),n.component("BDLink",Cr),n.component("BDDropdownItem",si),n.component("BDDropdown",sc),n.component("BDAlert",Yc),n.component("BDProfileImage",lo),n.component("BDZoomslider",Xc),n.component("BDCard",da),n.component("BDCollapsableCard",tu),n.component("BDFormInput",su),n.component("BDInputGroup",au),n.component("BDFormInvalidFeedback",ii),n.component("BDBadge",lu),n.component("BDForm",cu),n.component("BDPagination",uu),n.component("BDDropzone",gu),n.component("BDMarkdownEditor",fp),n.component("BDModal",gp),n.component("BDFormSelect",du),n.component("BDUser",hp),n.component("BDArticle",hu),n.component("BDFormCheckbox",fu),n.component("BDToast",pa),n.component("BDAttachmentPreviewList",_s),n.component("BDImageAttachmentPreviewList",Ls),n.component("BDHeader",mp),n.component("BDMobileMenu",ic),n.component("BDChatCloud",pp),n.component("IconAcademy",Fc),n.component("IconArrowDown",Vc),n.component("IconArrowUp",zc),n.component("IconAttachment",Yn),n.component("IconBold",Qs),n.component("IconBulletList",qs),n.component("IconCalendar",ea),n.component("IconCalendar",ea),n.component("IconCardView",Hc),n.component("IconCaretDown",ta),n.component("IconCaretLeft",na),n.component("IconCaretRight",ra),n.component("IconCheck",so),n.component("IconClose",Xo),n.component("IconDownloadImage",Qo),n.component("IconDownloadImage",Qo),n.component("IconEdit",Uc),n.component("IconError",qo),n.component("IconEyeShow",jc),n.component("IconEyeSlash",Wc),n.component("IconFile",oa),n.component("IconHyperlink",ia),n.component("IconInfo",ei),n.component("IconItalic",sa),n.component("IconListView",Kc),n.component("IconMenu",ti),n.component("IconMenu",ti),n.component("IconOrderedList",aa),n.component("IconRemove",ao),n.component("IconUnderline",la),n.directive("vBDTooltip",vm)}};he.BDAlert=Yc,he.BDArticle=hu,he.BDAttachmentPreviewList=_s,he.BDBadge=lu,he.BDButton=pt,he.BDCard=da,he.BDChatCloud=pp,he.BDCol=Pc,he.BDCollapsableCard=tu,he.BDContainer=Bc,he.BDDropdown=sc,he.BDDropdownItem=si,he.BDDropzone=gu,he.BDForm=cu,he.BDFormCheckbox=fu,he.BDFormInput=su,he.BDFormInvalidFeedback=ii,he.BDFormSelect=du,he.BDHeader=mp,he.BDImageAttachmentPreviewList=Ls,he.BDInputGroup=au,he.BDLink=Cr,he.BDLogo=ca,he.BDMarkdownEditor=fp,he.BDMobileMenu=ic,he.BDModal=gp,he.BDPagination=uu,he.BDProfileImage=lo,he.BDRow=$c,he.BDToast=pa,he.BDUser=hp,he.BDZoomslider=Xc,he.IconAcademy=Fc,he.IconArrowDown=Vc,he.IconArrowUp=zc,he.IconAttachment=Yn,he.IconBold=Qs,he.IconBulletList=qs,he.IconCalendar=ea,he.IconCardView=Hc,he.IconCaretDown=ta,he.IconCaretLeft=na,he.IconCaretRight=ra,he.IconCheck=so,he.IconClose=Xo,he.IconDownloadImage=Qo,he.IconEdit=Uc,he.IconError=qo,he.IconEyeShow=jc,he.IconEyeSlash=Wc,he.IconFile=oa,he.IconHyperlink=ia,he.IconInfo=ei,he.IconItalic=sa,he.IconListView=Kc,he.IconMenu=ti,he.IconOrderedList=aa,he.IconRemove=ao,he.IconUnderline=la,he.default=jT,he.useModal=zT,he.useToaster=HT,he.vBdTooltip=vm,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
131
|
+
*/const Vn=new Map,ac={set(n,e,t){Vn.has(n)||Vn.set(n,new Map);const r=Vn.get(n);if(!r.has(e)&&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(e,t)},get(n,e){return Vn.has(n)&&Vn.get(n).get(e)||null},remove(n,e){if(!Vn.has(n))return;const t=Vn.get(n);t.delete(e),t.size===0&&Vn.delete(n)}},zC=1e6,HC=1e3,lc="transitionend",yp=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),UC=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),jC=n=>{do n+=Math.floor(Math.random()*zC);while(document.getElementById(n));return n},WC=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*HC)},vp=n=>{n.dispatchEvent(new Event(lc))},yn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),zn=n=>yn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(yp(n)):null,Xr=n=>{if(!yn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Hn=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",bp=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?bp(n.parentNode):null},Ps=()=>{},Uo=n=>{n.offsetHeight},Ep=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,cc=[],KC=n=>{document.readyState==="loading"?(cc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of cc)e()}),cc.push(n)):n()},Rt=()=>document.documentElement.dir==="rtl",Pt=n=>{KC(()=>{const e=Ep();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},Et=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,Cp=(n,e,t=!0)=>{if(!t){Et(n);return}const r=5,o=WC(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(lc,s),Et(n))};e.addEventListener(lc,s),setTimeout(()=>{i||vp(e)},o)},uc=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},GC=/[^.]*(?=\..*)\.|.*/,YC=/\..*/,JC=/::\d+$/,dc={};let Sp=1;const Tp={mouseenter:"mouseover",mouseleave:"mouseout"},ZC=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function wp(n,e){return e&&`${e}::${Sp++}`||n.uidEvent||Sp++}function Ap(n){const e=wp(n);return n.uidEvent=e,dc[e]=dc[e]||{},dc[e]}function XC(n,e){return function t(r){return hc(r,{delegateTarget:n}),t.oneOff&&ne.off(n,r.type,e),e.apply(n,[r])}}function QC(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return hc(o,{delegateTarget:s}),r.oneOff&&ne.off(n,o.type,e,t),t.apply(s,[o])}}function kp(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function xp(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=Mp(n);return ZC.has(i)||(i=n),[r,o,i]}function Op(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=xp(e,t,r);e in Tp&&(s=(p=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return p.call(this,g)})(s));const a=Ap(n),c=a[l]||(a[l]={}),u=kp(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const d=wp(s,e.replace(GC,"")),h=i?QC(n,t,s):XC(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=d,c[d]=h,n.addEventListener(l,h,i)}function fc(n,e,t,r,o){const i=kp(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function qC(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&fc(n,e,t,s.callable,s.delegationSelector)}function Mp(n){return n=n.replace(YC,""),Tp[n]||n}const ne={on(n,e,t,r){Op(n,e,t,r,!1)},one(n,e,t,r){Op(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=xp(e,t,r),l=s!==e,a=Ap(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;fc(n,a,s,i,o?t:null);return}if(u)for(const d of Object.keys(a))qC(n,a,d,e.slice(1));for(const[d,h]of Object.entries(c)){const m=d.replace(JC,"");(!l||e.includes(m))&&fc(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Ep(),o=Mp(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=hc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function hc(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch{Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function Np(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function pc(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const vn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${pc(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${pc(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Np(n.dataset[r])}return e},getDataAttribute(n,e){return Np(n.getAttribute(`data-bs-${pc(e)}`))}};class jo{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new 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){const r=yn(t)?vn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...yn(t)?vn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const i=e[r],s=yn(i)?"element":UC(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const eS="5.3.0";class Yt extends jo{constructor(e,t){super(),e=zn(e),e&&(this._element=e,this._config=this._getConfig(t),ac.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ac.remove(this._element,this.constructor.DATA_KEY),ne.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Cp(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return ac.get(zn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return eS}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const mc=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return yp(e)},be={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Hn(t)&&Xr(t))},getSelectorFromElement(n){const e=mc(n);return e&&be.findOne(e)?e:null},getElementFromSelector(n){const e=mc(n);return e?be.findOne(e):null},getMultipleElementsFromSelector(n){const e=mc(n);return e?be.find(e):[]}},Bs=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ne.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Hn(this))return;const i=be.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},tS="alert",Ip=".bs.alert",nS=`close${Ip}`,rS=`closed${Ip}`,oS="fade",iS="show";class $s extends Yt{static get NAME(){return tS}close(){if(ne.trigger(this._element,nS).defaultPrevented)return;this._element.classList.remove(iS);const t=this._element.classList.contains(oS);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ne.trigger(this._element,rS),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=$s.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Bs($s,"close"),Pt($s);const sS="button",aS=".bs.button",lS=".data-api",cS="active",Dp='[data-bs-toggle="button"]',uS=`click${aS}${lS}`;class Fs extends Yt{static get NAME(){return sS}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(cS))}static jQueryInterface(e){return this.each(function(){const t=Fs.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ne.on(document,uS,Dp,n=>{n.preventDefault();const e=n.target.closest(Dp);Fs.getOrCreateInstance(e).toggle()}),Pt(Fs);const dS="swipe",Qr=".bs.swipe",fS=`touchstart${Qr}`,hS=`touchmove${Qr}`,pS=`touchend${Qr}`,mS=`pointerdown${Qr}`,gS=`pointerup${Qr}`,yS="touch",vS="pen",bS="pointer-event",ES=40,CS={endCallback:null,leftCallback:null,rightCallback:null},SS={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Vs extends jo{constructor(e,t){super(),this._element=e,!(!e||!Vs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return CS}static get DefaultType(){return SS}static get NAME(){return dS}dispose(){ne.off(this._element,Qr)}_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(),Et(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=ES)return;const t=e/this._deltaX;this._deltaX=0,t&&Et(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ne.on(this._element,mS,e=>this._start(e)),ne.on(this._element,gS,e=>this._end(e)),this._element.classList.add(bS)):(ne.on(this._element,fS,e=>this._start(e)),ne.on(this._element,hS,e=>this._move(e)),ne.on(this._element,pS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===vS||e.pointerType===yS)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const TS="carousel",Un=".bs.carousel",_p=".data-api",wS="ArrowLeft",AS="ArrowRight",kS=500,Wo="next",qr="prev",eo="left",zs="right",xS=`slide${Un}`,gc=`slid${Un}`,OS=`keydown${Un}`,MS=`mouseenter${Un}`,NS=`mouseleave${Un}`,IS=`dragstart${Un}`,DS=`load${Un}${_p}`,_S=`click${Un}${_p}`,Lp="carousel",Hs="active",LS="slide",RS="carousel-item-end",PS="carousel-item-start",BS="carousel-item-next",$S="carousel-item-prev",Rp=".active",Pp=".carousel-item",FS=Rp+Pp,VS=".carousel-item img",zS=".carousel-indicators",HS="[data-bs-slide], [data-bs-slide-to]",US='[data-bs-ride="carousel"]',jS={[wS]:zs,[AS]:eo},WS={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},KS={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ko extends Yt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=be.findOne(zS,this._element),this._addEventListeners(),this._config.ride===Lp&&this.cycle()}static get Default(){return WS}static get DefaultType(){return KS}static get NAME(){return TS}next(){this._slide(Wo)}nextWhenVisible(){!document.hidden&&Xr(this._element)&&this.next()}prev(){this._slide(qr)}pause(){this._isSliding&&vp(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){ne.one(this._element,gc,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ne.one(this._element,gc,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Wo:qr;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ne.on(this._element,OS,e=>this._keydown(e)),this._config.pause==="hover"&&(ne.on(this._element,MS,()=>this.pause()),ne.on(this._element,NS,()=>this._maybeEnableCycle())),this._config.touch&&Vs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of be.find(VS,this._element))ne.on(r,IS,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(eo)),rightCallback:()=>this._slide(this._directionToOrder(zs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),kS+this._config.interval))}};this._swipeHelper=new Vs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=jS[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=be.findOne(Rp,this._indicatorsElement);t.classList.remove(Hs),t.removeAttribute("aria-current");const r=be.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Hs),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===Wo,i=t||uc(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=m=>ne.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(xS).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?PS:RS,d=o?BS:$S;i.classList.add(d),Uo(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,d),i.classList.add(Hs),r.classList.remove(Hs,d,u),this._isSliding=!1,l(gc)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(LS)}_getActive(){return be.findOne(FS,this._element)}_getItems(){return be.find(Pp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Rt()?e===eo?qr:Wo:e===eo?Wo:qr}_orderToDirection(e){return Rt()?e===qr?eo:zs:e===qr?zs:eo}static jQueryInterface(e){return this.each(function(){const t=Ko.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,_S,HS,function(n){const e=be.getElementFromSelector(this);if(!e||!e.classList.contains(Lp))return;n.preventDefault();const t=Ko.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(vn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()}),ne.on(window,DS,()=>{const n=be.find(US);for(const e of n)Ko.getOrCreateInstance(e)}),Pt(Ko);const GS="collapse",Go=".bs.collapse",YS=".data-api",JS=`show${Go}`,ZS=`shown${Go}`,XS=`hide${Go}`,QS=`hidden${Go}`,qS=`click${Go}${YS}`,yc="show",to="collapse",Us="collapsing",e4="collapsed",t4=`:scope .${to} .${to}`,n4="collapse-horizontal",r4="width",o4="height",i4=".collapse.show, .collapse.collapsing",vc='[data-bs-toggle="collapse"]',s4={parent:null,toggle:!0},a4={parent:"(null|element)",toggle:"boolean"};class Yo extends Yt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=be.find(vc);for(const o of r){const i=be.getSelectorFromElement(o),s=be.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return s4}static get DefaultType(){return a4}static get NAME(){return GS}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(i4).filter(l=>l!==this._element).map(l=>Yo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ne.trigger(this._element,JS).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(to),this._element.classList.add(Us),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Us),this._element.classList.add(to,yc),this._element.style[r]="",ne.trigger(this._element,ZS)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ne.trigger(this._element,XS).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Uo(this._element),this._element.classList.add(Us),this._element.classList.remove(to,yc);for(const o of this._triggerArray){const i=be.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Us),this._element.classList.add(to),ne.trigger(this._element,QS)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(yc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=zn(e.parent),e}_getDimension(){return this._element.classList.contains(n4)?r4:o4}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(vc);for(const t of e){const r=be.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=be.find(t4,this._config.parent);return be.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(e4,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=Yo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ne.on(document,qS,vc,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of be.getMultipleElementsFromSelector(this))Yo.getOrCreateInstance(e,{toggle:!1}).toggle()}),Pt(Yo);const Bp="dropdown",pr=".bs.dropdown",bc=".data-api",l4="Escape",$p="Tab",c4="ArrowUp",Fp="ArrowDown",u4=2,d4=`hide${pr}`,f4=`hidden${pr}`,h4=`show${pr}`,p4=`shown${pr}`,Vp=`click${pr}${bc}`,zp=`keydown${pr}${bc}`,m4=`keyup${pr}${bc}`,no="show",g4="dropup",y4="dropend",v4="dropstart",b4="dropup-center",E4="dropdown-center",mr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',C4=`${mr}.${no}`,js=".dropdown-menu",S4=".navbar",T4=".navbar-nav",w4=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",A4=Rt()?"top-end":"top-start",k4=Rt()?"top-start":"top-end",x4=Rt()?"bottom-end":"bottom-start",O4=Rt()?"bottom-start":"bottom-end",M4=Rt()?"left-start":"right-start",N4=Rt()?"right-start":"left-start",I4="top",D4="bottom",_4={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},L4={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class an extends Yt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=be.next(this._element,js)[0]||be.prev(this._element,js)[0]||be.findOne(js,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return _4}static get DefaultType(){return L4}static get NAME(){return Bp}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Hn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ne.trigger(this._element,h4,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(T4))for(const r of[].concat(...document.body.children))ne.on(r,"mouseover",Ps);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(no),this._element.classList.add(no),ne.trigger(this._element,p4,e)}}hide(){if(Hn(this._element)||!this._isShown())return;const 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(!ne.trigger(this._element,d4,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ne.off(r,"mouseover",Ps);this._popper&&this._popper.destroy(),this._menu.classList.remove(no),this._element.classList.remove(no),this._element.setAttribute("aria-expanded","false"),vn.removeDataAttribute(this._menu,"popper"),ne.trigger(this._element,f4,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!yn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Bp.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Sh>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:yn(this._config.reference)?e=zn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Gi(e,this._menu,t)}_isShown(){return this._menu.classList.contains(no)}_getPlacement(){const e=this._parent;if(e.classList.contains(y4))return M4;if(e.classList.contains(v4))return N4;if(e.classList.contains(b4))return I4;if(e.classList.contains(E4))return D4;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(g4)?t?k4:A4:t?O4:x4}_detectNavbar(){return this._element.closest(S4)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const 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")&&(vn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Et(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=be.find(w4,this._menu).filter(o=>Xr(o));r.length&&uc(r,t,e===Fp,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=an.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===u4||e.type==="keyup"&&e.key!==$p)return;const t=be.find(C4);for(const r of t){const o=an.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===$p||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:o._element};e.type==="click"&&(l.clickEvent=e),o._completeHide(l)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===l4,o=[c4,Fp].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(mr)?this:be.prev(this,mr)[0]||be.next(this,mr)[0]||be.findOne(mr,e.delegateTarget.parentNode),s=an.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ne.on(document,zp,mr,an.dataApiKeydownHandler),ne.on(document,zp,js,an.dataApiKeydownHandler),ne.on(document,Vp,an.clearMenus),ne.on(document,m4,an.clearMenus),ne.on(document,Vp,mr,function(n){n.preventDefault(),an.getOrCreateInstance(this).toggle()}),Pt(an);const Hp="backdrop",R4="fade",Up="show",jp=`mousedown.bs.${Hp}`,P4={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},B4={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Wp extends jo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return P4}static get DefaultType(){return B4}static get NAME(){return Hp}show(e){if(!this._config.isVisible){Et(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Uo(t),t.classList.add(Up),this._emulateAnimation(()=>{Et(e)})}hide(e){if(!this._config.isVisible){Et(e);return}this._getElement().classList.remove(Up),this._emulateAnimation(()=>{this.dispose(),Et(e)})}dispose(){this._isAppended&&(ne.off(this._element,jp),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(R4),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=zn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ne.on(e,jp,()=>{Et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Cp(e,this._getElement(),this._config.isAnimated)}}const $4="focustrap",Ws=".bs.focustrap",F4=`focusin${Ws}`,V4=`keydown.tab${Ws}`,z4="Tab",H4="forward",Kp="backward",U4={autofocus:!0,trapElement:null},j4={autofocus:"boolean",trapElement:"element"};class Gp extends jo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return U4}static get DefaultType(){return j4}static get NAME(){return $4}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ne.off(document,Ws),ne.on(document,F4,e=>this._handleFocusin(e)),ne.on(document,V4,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ne.off(document,Ws))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=be.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===Kp?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===z4&&(this._lastTabNavDirection=e.shiftKey?Kp:H4)}}const Yp=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Jp=".sticky-top",Ks="padding-right",Zp="margin-right";class Ec{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ks,t=>t+e),this._setElementAttributes(Yp,Ks,t=>t+e),this._setElementAttributes(Jp,Zp,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ks),this._resetElementAttributes(Yp,Ks),this._resetElementAttributes(Jp,Zp)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&vn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=vn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}vn.removeDataAttribute(o,t),o.style.setProperty(t,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(yn(e)){t(e);return}for(const r of be.find(e,this._element))t(r)}}const W4="modal",Bt=".bs.modal",K4=".data-api",G4="Escape",Y4=`hide${Bt}`,J4=`hidePrevented${Bt}`,Xp=`hidden${Bt}`,Qp=`show${Bt}`,Z4=`shown${Bt}`,X4=`resize${Bt}`,Q4=`click.dismiss${Bt}`,q4=`mousedown.dismiss${Bt}`,e7=`keydown.dismiss${Bt}`,t7=`click${Bt}${K4}`,qp="modal-open",n7="fade",em="show",Cc="modal-static",r7=".modal.show",o7=".modal-dialog",i7=".modal-body",s7='[data-bs-toggle="modal"]',a7={backdrop:!0,focus:!0,keyboard:!0},l7={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class gr extends Yt{constructor(e,t){super(e,t),this._dialog=be.findOne(o7,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ec,this._addEventListeners()}static get Default(){return a7}static get DefaultType(){return l7}static get NAME(){return W4}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ne.trigger(this._element,Qp,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(qp),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ne.trigger(this._element,Y4).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(em),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ne.off(window,Bt),ne.off(this._dialog,Bt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Wp({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Gp({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;const t=be.findOne(i7,this._dialog);t&&(t.scrollTop=0),Uo(this._element),this._element.classList.add(em);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ne.trigger(this._element,Z4,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ne.on(this._element,e7,e=>{if(e.key===G4){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ne.on(window,X4,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ne.on(this._element,q4,e=>{ne.one(this._element,Q4,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(qp),this._resetAdjustments(),this._scrollBar.reset(),ne.trigger(this._element,Xp)})}_isAnimated(){return this._element.classList.contains(n7)}_triggerBackdropTransition(){if(ne.trigger(this._element,J4).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Cc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Cc),this._queueCallback(()=>{this._element.classList.remove(Cc),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=Rt()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Rt()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=gr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ne.on(document,t7,s7,function(n){const e=be.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ne.one(e,Qp,o=>{o.defaultPrevented||ne.one(e,Xp,()=>{Xr(this)&&this.focus()})});const t=be.findOne(r7);t&&gr.getInstance(t).hide(),gr.getOrCreateInstance(e).toggle(this)}),Bs(gr),Pt(gr);const c7="offcanvas",bn=".bs.offcanvas",tm=".data-api",u7=`load${bn}${tm}`,d7="Escape",nm="show",rm="showing",om="hiding",f7="offcanvas-backdrop",im=".offcanvas.show",h7=`show${bn}`,p7=`shown${bn}`,m7=`hide${bn}`,sm=`hidePrevented${bn}`,am=`hidden${bn}`,g7=`resize${bn}`,y7=`click${bn}${tm}`,v7=`keydown.dismiss${bn}`,b7='[data-bs-toggle="offcanvas"]',E7={backdrop:!0,keyboard:!0,scroll:!1},C7={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class jn extends Yt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return E7}static get DefaultType(){return C7}static get NAME(){return c7}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ne.trigger(this._element,h7,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ec().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(rm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(nm),this._element.classList.remove(rm),ne.trigger(this._element,p7,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ne.trigger(this._element,m7).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(om),this._backdrop.hide();const t=()=>{this._element.classList.remove(nm,om),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ec().reset(),ne.trigger(this._element,am)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ne.trigger(this._element,sm);return}this.hide()},t=!!this._config.backdrop;return new Wp({className:f7,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new Gp({trapElement:this._element})}_addEventListeners(){ne.on(this._element,v7,e=>{if(e.key===d7){if(this._config.keyboard){this.hide();return}ne.trigger(this._element,sm)}})}static jQueryInterface(e){return this.each(function(){const t=jn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}ne.on(document,y7,b7,function(n){const e=be.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Hn(this))return;ne.one(e,am,()=>{Xr(this)&&this.focus()});const t=be.findOne(im);t&&t!==e&&jn.getInstance(t).hide(),jn.getOrCreateInstance(e).toggle(this)}),ne.on(window,u7,()=>{for(const n of be.find(im))jn.getOrCreateInstance(n).show()}),ne.on(window,g7,()=>{for(const n of be.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&jn.getOrCreateInstance(n).hide()}),Bs(jn),Pt(jn);const lm={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},S7=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),T7=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,w7=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?S7.has(t)?!!T7.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function A7(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)w7(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const k7="TemplateFactory",x7={allowList:lm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},O7={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},M7={entry:"(string|element|function|null)",selector:"(string|element)"};class N7 extends jo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return x7}static get DefaultType(){return O7}static get NAME(){return k7}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(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},M7)}_setContent(e,t,r){const o=be.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(yn(t)){this._putElementInTemplate(zn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?A7(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Et(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const I7="tooltip",D7=new Set(["sanitize","allowList","sanitizeFn"]),Sc="fade",_7="modal",Gs="show",L7=".tooltip-inner",cm=`.${_7}`,um="hide.bs.modal",Jo="hover",Tc="focus",R7="click",P7="manual",B7="hide",$7="hidden",F7="show",V7="shown",z7="inserted",H7="click",U7="focusin",j7="focusout",W7="mouseenter",K7="mouseleave",G7={AUTO:"auto",TOP:"top",RIGHT:Rt()?"left":"right",BOTTOM:"bottom",LEFT:Rt()?"right":"left"},Y7={allowList:lm,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"},J7={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"};class yr extends Yt{constructor(e,t){if(typeof Sh>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");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 Y7}static get DefaultType(){return J7}static get NAME(){return I7}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ne.off(this._element.closest(cm),um,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 new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ne.trigger(this._element,this.constructor.eventName(F7)),r=(bp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ne.trigger(this._element,this.constructor.eventName(z7))),this._popper=this._createPopper(o),o.classList.add(Gs),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ne.on(l,"mouseover",Ps);const s=()=>{ne.trigger(this._element,this.constructor.eventName(V7)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ne.trigger(this._element,this.constructor.eventName(B7)).defaultPrevented)return;if(this._getTipElement().classList.remove(Gs),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ne.off(o,"mouseover",Ps);this._activeTrigger[R7]=!1,this._activeTrigger[Tc]=!1,this._activeTrigger[Jo]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ne.trigger(this._element,this.constructor.eventName($7)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Sc,Gs),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=jC(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Sc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new N7({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[L7]: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(Sc)}_isShown(){return this.tip&&this.tip.classList.contains(Gs)}_createPopper(e){const t=Et(this._config.placement,[this,e,this._element]),r=G7[t.toUpperCase()];return Gi(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Et(e,[this._element])}_getPopperConfig(e){const 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:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...Et(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ne.on(this._element,this.constructor.eventName(H7),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==P7){const r=t===Jo?this.constructor.eventName(W7):this.constructor.eventName(U7),o=t===Jo?this.constructor.eventName(K7):this.constructor.eventName(j7);ne.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Tc:Jo]=!0,s._enter()}),ne.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Tc:Jo]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ne.on(this._element.closest(cm),um,this._hideModalHandler)}_fixTitle(){const 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){const t=vn.getDataAttributes(this._element);for(const r of Object.keys(t))D7.has(r)&&delete t[r];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:zn(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(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=yr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Pt(yr);const Z7="popover",X7=".popover-header",Q7=".popover-body",q7={...yr.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"},eT={...yr.DefaultType,content:"(null|string|element|function)"};class wc extends yr{static get Default(){return q7}static get DefaultType(){return eT}static get NAME(){return Z7}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[X7]:this._getTitle(),[Q7]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=wc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Pt(wc);const tT="scrollspy",Ac=".bs.scrollspy",nT=".data-api",rT=`activate${Ac}`,dm=`click${Ac}`,oT=`load${Ac}${nT}`,iT="dropdown-item",ro="active",sT='[data-bs-spy="scroll"]',kc="[href]",aT=".nav, .list-group",fm=".nav-link",lT=`${fm}, .nav-item > ${fm}, .list-group-item`,cT=".dropdown",uT=".dropdown-toggle",dT={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},fT={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ys extends Yt{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 dT}static get DefaultType(){return fT}static get NAME(){return tT}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=zn(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(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ne.off(this._config.target,dm),ne.on(this._config.target,dm,kc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=be.find(kc,this._config.target);for(const t of e){if(!t.hash||Hn(t))continue;const r=be.findOne(decodeURI(t.hash),this._element);Xr(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(ro),this._activateParents(e),ne.trigger(this._element,rT,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(iT)){be.findOne(uT,e.closest(cT)).classList.add(ro);return}for(const t of be.parents(e,aT))for(const r of be.prev(t,lT))r.classList.add(ro)}_clearActiveClass(e){e.classList.remove(ro);const t=be.find(`${kc}.${ro}`,e);for(const r of t)r.classList.remove(ro)}static jQueryInterface(e){return this.each(function(){const t=Ys.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(window,oT,()=>{for(const n of be.find(sT))Ys.getOrCreateInstance(n)}),Pt(Ys);const hT="tab",vr=".bs.tab",pT=`hide${vr}`,mT=`hidden${vr}`,gT=`show${vr}`,yT=`shown${vr}`,vT=`click${vr}`,bT=`keydown${vr}`,ET=`load${vr}`,CT="ArrowLeft",hm="ArrowRight",ST="ArrowUp",pm="ArrowDown",br="active",mm="fade",xc="show",TT="dropdown",wT=".dropdown-toggle",AT=".dropdown-menu",Oc=":not(.dropdown-toggle)",kT='.list-group, .nav, [role="tablist"]',xT=".nav-item, .list-group-item",OT=`.nav-link${Oc}, .list-group-item${Oc}, [role="tab"]${Oc}`,gm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Mc=`${OT}, ${gm}`,MT=`.${br}[data-bs-toggle="tab"], .${br}[data-bs-toggle="pill"], .${br}[data-bs-toggle="list"]`;class oo extends Yt{constructor(e){super(e),this._parent=this._element.closest(kT),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ne.on(this._element,bT,t=>this._keydown(t)))}static get NAME(){return hT}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ne.trigger(t,pT,{relatedTarget:e}):null;ne.trigger(e,gT,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(br),this._activate(be.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(xc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ne.trigger(e,yT,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(mm))}_deactivate(e,t){if(!e)return;e.classList.remove(br),e.blur(),this._deactivate(be.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(xc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ne.trigger(e,mT,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(mm))}_keydown(e){if(![CT,hm,ST,pm].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[hm,pm].includes(e.key),r=uc(this._getChildren().filter(o=>!Hn(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),oo.getOrCreateInstance(r).show())}_getChildren(){return be.find(Mc,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=be.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(TT))return;const o=(i,s)=>{const l=be.findOne(i,r);l&&l.classList.toggle(s,t)};o(wT,br),o(AT,xc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(br)}_getInnerElement(e){return e.matches(Mc)?e:be.findOne(Mc,e)}_getOuterElement(e){return e.closest(xT)||e}static jQueryInterface(e){return this.each(function(){const t=oo.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ne.on(document,vT,gm,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Hn(this)&&oo.getOrCreateInstance(this).show()}),ne.on(window,ET,()=>{for(const n of be.find(MT))oo.getOrCreateInstance(n)}),Pt(oo);const NT="toast",Wn=".bs.toast",IT=`mouseover${Wn}`,DT=`mouseout${Wn}`,_T=`focusin${Wn}`,LT=`focusout${Wn}`,RT=`hide${Wn}`,PT=`hidden${Wn}`,BT=`show${Wn}`,$T=`shown${Wn}`,FT="fade",ym="hide",Js="show",Zs="showing",VT={animation:"boolean",autohide:"boolean",delay:"number"},zT={animation:!0,autohide:!0,delay:5e3};class Zo extends Yt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return zT}static get DefaultType(){return VT}static get NAME(){return NT}show(){if(ne.trigger(this._element,BT).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(FT);const t=()=>{this._element.classList.remove(Zs),ne.trigger(this._element,$T),this._maybeScheduleHide()};this._element.classList.remove(ym),Uo(this._element),this._element.classList.add(Js,Zs),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ne.trigger(this._element,RT).defaultPrevented)return;const t=()=>{this._element.classList.add(ym),this._element.classList.remove(Zs,Js),ne.trigger(this._element,PT)};this._element.classList.add(Zs),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Js),super.dispose()}isShown(){return this._element.classList.contains(Js)}_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}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ne.on(this._element,IT,e=>this._onInteraction(e,!0)),ne.on(this._element,DT,e=>this._onInteraction(e,!1)),ne.on(this._element,_T,e=>this._onInteraction(e,!0)),ne.on(this._element,LT,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Zo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Bs(Zo),Pt(Zo);const HT=n=>{const e=f.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value||(e.value=new gr(o,{})),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{e.value&&e.value.hide()}}};function UT(n=void 0){const e=l=>i("Succesvol",l,Sr.SUCCESS),t=l=>i("Waarschuwing",l,Sr.WARNING),r=l=>i("Informatie",l,Sr.INFO),o=l=>i("Mislukt",l,Sr.DANGER);function i(l,a,c){const u=`toast-${eu()}`,d={id:u,show:!0,variant:c,title:l,text:a},h=document.querySelector(".toast-container"),m=f.h(pa,d),g=f.createApp({render:()=>m}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`),C=Zo.getOrCreateInstance(y,n);C&&(C.show(),s(y))}function s(l){function a(d,h){d.forEach(m=>{if(m.attributeName!="class")return;const p=m.target;if(p.classList.contains("hide")){p.remove(),h.disconnect();return}})}const c=new MutationObserver(a),u={attributes:!0};c.observe(l,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const vm={mounted:n=>{new yr(n)}},jT={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},pt=f.defineComponent({__name:"BDButton",props:{size:{default:st.MD},variant:{default:jT.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=f.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=f.computed(()=>t.to?Cr:"button"),i=f.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=()=>{e("click")};return(l,a)=>(f.openBlock(),f.createBlock(f.resolveDynamicComponent(o.value),f.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:f.withCtx(()=>[f.renderSlot(l.$slots,"default",{},()=>[f.createTextVNode(f.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),WT={install:n=>{n.component("BDCol",Pc),n.component("BDContainer",Bc),n.component("BDRow",$c),n.component("BDButton",pt),n.component("BDLogo",ca),n.component("BDLink",Cr),n.component("BDDropdownItem",si),n.component("BDDropdown",sc),n.component("BDAlert",Yc),n.component("BDProfileImage",lo),n.component("BDZoomslider",Xc),n.component("BDCard",da),n.component("BDCollapsableCard",tu),n.component("BDFormInput",su),n.component("BDInputGroup",au),n.component("BDFormInvalidFeedback",ii),n.component("BDBadge",lu),n.component("BDForm",cu),n.component("BDPagination",uu),n.component("BDDropzone",gu),n.component("BDMarkdownEditor",fp),n.component("BDModal",gp),n.component("BDFormSelect",du),n.component("BDUser",hp),n.component("BDArticle",hu),n.component("BDFormCheckbox",fu),n.component("BDToast",pa),n.component("BDAttachmentPreviewList",_s),n.component("BDImageAttachmentPreviewList",Ls),n.component("BDHeader",mp),n.component("BDMobileMenu",ic),n.component("BDChatCloud",pp),n.component("IconAcademy",Fc),n.component("IconArrowDown",Vc),n.component("IconArrowUp",zc),n.component("IconAttachment",Yn),n.component("IconBold",Qs),n.component("IconBulletList",qs),n.component("IconCalendar",ea),n.component("IconCalendar",ea),n.component("IconCardView",Hc),n.component("IconCaretDown",ta),n.component("IconCaretLeft",na),n.component("IconCaretRight",ra),n.component("IconCheck",so),n.component("IconClose",Xo),n.component("IconDownloadImage",Qo),n.component("IconDownloadImage",Qo),n.component("IconEdit",Uc),n.component("IconError",qo),n.component("IconEyeShow",jc),n.component("IconEyeSlash",Wc),n.component("IconFile",oa),n.component("IconHyperlink",ia),n.component("IconInfo",ei),n.component("IconItalic",sa),n.component("IconListView",Kc),n.component("IconMenu",ti),n.component("IconMenu",ti),n.component("IconOrderedList",aa),n.component("IconRemove",ao),n.component("IconUnderline",la),n.directive("vBDTooltip",vm)}};he.BDAlert=Yc,he.BDArticle=hu,he.BDAttachmentPreviewList=_s,he.BDBadge=lu,he.BDButton=pt,he.BDCard=da,he.BDChatCloud=pp,he.BDCol=Pc,he.BDCollapsableCard=tu,he.BDContainer=Bc,he.BDDropdown=sc,he.BDDropdownItem=si,he.BDDropzone=gu,he.BDForm=cu,he.BDFormCheckbox=fu,he.BDFormInput=su,he.BDFormInvalidFeedback=ii,he.BDFormSelect=du,he.BDHeader=mp,he.BDImageAttachmentPreviewList=Ls,he.BDInputGroup=au,he.BDLink=Cr,he.BDLogo=ca,he.BDMarkdownEditor=fp,he.BDMobileMenu=ic,he.BDModal=gp,he.BDPagination=uu,he.BDProfileImage=lo,he.BDRow=$c,he.BDToast=pa,he.BDUser=hp,he.BDZoomslider=Xc,he.IconAcademy=Fc,he.IconArrowDown=Vc,he.IconArrowUp=zc,he.IconAttachment=Yn,he.IconBold=Qs,he.IconBulletList=qs,he.IconCalendar=ea,he.IconCardView=Hc,he.IconCaretDown=ta,he.IconCaretLeft=na,he.IconCaretRight=ra,he.IconCheck=so,he.IconClose=Xo,he.IconDownloadImage=Qo,he.IconEdit=Uc,he.IconError=qo,he.IconEyeShow=jc,he.IconEyeSlash=Wc,he.IconFile=oa,he.IconHyperlink=ia,he.IconInfo=ei,he.IconItalic=sa,he.IconListView=Kc,he.IconMenu=ti,he.IconOrderedList=aa,he.IconRemove=ao,he.IconUnderline=la,he.default=WT,he.useModal=HT,he.useToaster=UT,he.vBdTooltip=vm,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/scss/_header.scss
CHANGED