@beterdichtbij/component-library 0.71.0-alpha.8 → 0.71.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bd-component-lib.cjs.js +2 -2
- package/dist/bd-component-lib.es.js +2077 -2044
- package/dist/bd-component-lib.umd.js +2 -2
- package/dist/components/templates/BDVideoCallTemplate/BDVideoCallTemplate.vue.d.ts +2 -0
- package/dist/locales/en.json +56 -44
- package/dist/locales/nl.json +67 -55
- package/dist/scss/templates/_video-call-template.scss +13 -8
- package/package.json +1 -1
|
@@ -1693,7 +1693,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1693
1693
|
}
|
|
1694
1694
|
`,classes:{root:function(e){return[`p-fileupload p-fileupload-${e.props.mode} p-component`]},header:`p-fileupload-header`,pcChooseButton:`p-fileupload-choose-button`,pcUploadButton:`p-fileupload-upload-button`,pcCancelButton:`p-fileupload-cancel-button`,content:`p-fileupload-content`,fileList:`p-fileupload-file-list`,file:`p-fileupload-file`,fileThumbnail:`p-fileupload-file-thumbnail`,fileInfo:`p-fileupload-file-info`,fileName:`p-fileupload-file-name`,fileSize:`p-fileupload-file-size`,pcFileBadge:`p-fileupload-file-badge`,fileActions:`p-fileupload-file-actions`,pcFileRemoveButton:`p-fileupload-file-remove-button`,basicContent:`p-fileupload-basic-content`}}),fy={name:`BaseFileUpload`,extends:Dp,props:{name:{type:String,default:null},url:{type:String,default:null},mode:{type:String,default:`advanced`},multiple:{type:Boolean,default:!1},accept:{type:String,default:null},disabled:{type:Boolean,default:!1},auto:{type:Boolean,default:!1},maxFileSize:{type:Number,default:null},invalidFileSizeMessage:{type:String,default:`{0}: Invalid file size, file size should be smaller than {1}.`},invalidFileTypeMessage:{type:String,default:`{0}: Invalid file type, allowed file types: {1}.`},fileLimit:{type:Number,default:null},invalidFileLimitMessage:{type:String,default:`Maximum number of files exceeded, limit is {0} at most.`},withCredentials:{type:Boolean,default:!1},previewWidth:{type:Number,default:50},chooseLabel:{type:String,default:null},uploadLabel:{type:String,default:null},cancelLabel:{type:String,default:null},customUpload:{type:Boolean,default:!1},showUploadButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},chooseIcon:{type:String,default:void 0},uploadIcon:{type:String,default:void 0},cancelIcon:{type:String,default:void 0},style:null,class:null,chooseButtonProps:{type:null,default:null},uploadButtonProps:{type:Object,default:function(){return{severity:`secondary`}}},cancelButtonProps:{type:Object,default:function(){return{severity:`secondary`}}}},style:dy,provide:function(){return{$pcFileUpload:this,$parentInstance:this}}},py={name:`FileContent`,hostName:`FileUpload`,extends:Dp,emits:[`remove`],props:{files:{type:Array,default:function(){return[]}},badgeSeverity:{type:String,default:`warn`},badgeValue:{type:String,default:null},previewWidth:{type:Number,default:50},templates:{type:null,default:null}},methods:{formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`}},components:{Button:Um,Badge:im,TimesIcon:Cv}},my=[`alt`,`src`,`width`];function hy(e,n,r,i,a,o){var s=(0,t.resolveComponent)(`Badge`),c=(0,t.resolveComponent)(`TimesIcon`),l=(0,t.resolveComponent)(`Button`);return(0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(r.files,function(n,i){return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:n.name+n.type+n.size,class:e.cx(`file`)},{ref_for:!0},e.ptm(`file`)),[(0,t.createElementVNode)(`img`,(0,t.mergeProps)({role:`presentation`,class:e.cx(`fileThumbnail`),alt:n.name,src:n.objectURL,width:r.previewWidth},{ref_for:!0},e.ptm(`fileThumbnail`)),null,16,my),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`fileInfo`)},{ref_for:!0},e.ptm(`fileInfo`)),[(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`fileName`)},{ref_for:!0},e.ptm(`fileName`)),(0,t.toDisplayString)(n.name),17),(0,t.createElementVNode)(`span`,(0,t.mergeProps)({class:e.cx(`fileSize`)},{ref_for:!0},e.ptm(`fileSize`)),(0,t.toDisplayString)(o.formatSize(n.size)),17)],16),(0,t.createVNode)(s,{value:r.badgeValue,class:(0,t.normalizeClass)(e.cx(`pcFileBadge`)),severity:r.badgeSeverity,unstyled:e.unstyled,pt:e.ptm(`pcFileBadge`)},null,8,[`value`,`class`,`severity`,`unstyled`,`pt`]),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`fileActions`)},{ref_for:!0},e.ptm(`fileActions`)),[(0,t.createVNode)(l,{onClick:function(t){return e.$emit(`remove`,i)},text:``,rounded:``,severity:`danger`,class:(0,t.normalizeClass)(e.cx(`pcFileRemoveButton`)),unstyled:e.unstyled,pt:e.ptm(`pcFileRemoveButton`)},{icon:(0,t.withCtx)(function(a){return[r.templates.fileremoveicon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r.templates.fileremoveicon),{key:0,class:(0,t.normalizeClass)(a.class),file:n,index:i},null,8,[`class`,`file`,`index`])):((0,t.openBlock)(),(0,t.createBlock)(c,(0,t.mergeProps)({key:1,class:a.class,"aria-hidden":`true`},{ref_for:!0},e.ptm(`pcFileRemoveButton`).icon),null,16,[`class`]))]}),_:2},1032,[`onClick`,`class`,`unstyled`,`pt`])],16)],16)}),128)}py.render=hy;function gy(e){return yy(e)||vy(e)||xy(e)||_y()}function _y(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1695
1695
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vy(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function yy(e){if(Array.isArray(e))return Sy(e)}function by(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=xy(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1696
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function xy(e,t){if(e){if(typeof e==`string`)return Sy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sy(e,t):void 0}}function Sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Cy={name:`FileUpload`,extends:fy,inheritAttrs:!1,emits:[`select`,`uploader`,`before-upload`,`progress`,`upload`,`error`,`before-send`,`clear`,`remove`,`remove-uploaded-file`],duplicateIEEvent:!1,data:function(){return{uploadedFileCount:0,files:[],messages:[],focused:!1,progress:null,uploadedFiles:[]}},methods:{upload:function(){this.hasFiles&&this.uploader()},onBasicUploaderClick:function(e){e.button===0&&this.$refs.fileInput.click()},onFileSelect:function(e){if(e.type!==`drop`&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.isBasic&&this.hasFiles&&(this.files=[]),this.messages=[],this.files=this.files||[];var t=by(e.dataTransfer?e.dataTransfer.files:e.target.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;!this.isFileSelected(r)&&!this.isFileLimitExceeded()&&this.validate(r)&&(this.isImage(r)&&(r.objectURL=window.URL.createObjectURL(r)),this.files.push(r))}}catch(e){t.e(e)}finally{t.f()}this.$emit(`select`,{originalEvent:e,files:this.files}),this.fileLimit&&this.checkFileLimit(),this.auto&&this.hasFiles&&!this.isFileLimitExceeded()&&this.uploader(),e.type!==`drop`&&this.isIE11()?this.clearIEInput():this.clearInputElement()},choose:function(){this.$refs.fileInput.click()},uploader:function(){var e=this;if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.$emit(`uploader`,{files:this.files});else{var t=new XMLHttpRequest,n=new FormData;this.$emit(`before-upload`,{xhr:t,formData:n});var r=by(this.files),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;n.append(this.name,a,a.name)}}catch(e){r.e(e)}finally{r.f()}t.upload.addEventListener(`progress`,function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded*100/t.total)),e.$emit(`progress`,{originalEvent:t,progress:e.progress})}),t.onreadystatechange=function(){if(t.readyState===4){if(e.progress=0,t.status>=200&&t.status<300){var n;e.fileLimit&&(e.uploadedFileCount+=e.files.length),e.$emit(`upload`,{xhr:t,files:e.files}),(n=e.uploadedFiles).push.apply(n,gy(e.files))}else e.$emit(`error`,{xhr:t,files:e.files});e.clear()}},this.url&&(t.open(`POST`,this.url,!0),this.$emit(`before-send`,{xhr:t,formData:n}),t.withCredentials=this.withCredentials,t.send(n))}},clear:function(){this.files=[],this.messages=null,this.$emit(`clear`),this.isAdvanced&&this.clearInputElement()},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},isFileSelected:function(e){if(this.files&&this.files.length){var t=by(this.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name+r.type+r.size===e.name+e.type+e.size)return!0}}catch(e){t.e(e)}finally{t.f()}}return!1},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode},validate:function(e){return this.accept&&!this.isFileTypeValid(e)?(this.messages.push(this.invalidFileTypeMessage.replace(`{0}`,e.name).replace(`{1}`,this.accept)),!1):this.maxFileSize&&e.size>this.maxFileSize?(this.messages.push(this.invalidFileSizeMessage.replace(`{0}`,e.name).replace(`{1}`,this.formatSize(this.maxFileSize))),!1):!0},isFileTypeValid:function(e){var t=by(this.accept.split(`,`).map(function(e){return e.trim()})),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0}}catch(e){t.e(e)}finally{t.f()}return!1},getTypeClass:function(e){return e.substring(0,e.indexOf(`/`))},isWildcard:function(e){return e.indexOf(`*`)!==-1},getFileExtension:function(e){return`.`+e.name.split(`.`).pop()},isImage:function(e){return/^image\//.test(e.type)},onDragEnter:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(e.stopPropagation(),e.preventDefault())},onDragOver:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(!this.isUnstyled&&Sd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!0),e.stopPropagation(),e.preventDefault())},onDragLeave:function(){this.disabled||(!this.isUnstyled&&Cd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1))},onDrop:function(e){if(!this.disabled){!this.isUnstyled&&Cd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1),e.stopPropagation(),e.preventDefault();var t=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||t&&t.length===1)&&this.onFileSelect(e)}},remove:function(e){this.clearInputElement();var t=this.files.splice(e,1)[0];this.files=gy(this.files),this.$emit(`remove`,{file:t,files:this.files})},removeUploadedFile:function(e){var t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=gy(this.uploadedFiles),this.$emit(`remove-uploaded-file`,{file:t,files:this.uploadedFiles})},clearInputElement:function(){this.$refs.fileInput.value=``},clearIEInput:function(){this.$refs.fileInput&&(this.duplicateIEEvent=!0,this.$refs.fileInput.value=``)},formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`},isFileLimitExceeded:function(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focused&&(this.focused=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount},checkFileLimit:function(){this.isFileLimitExceeded()&&this.messages.push(this.invalidFileLimitMessage.replace(`{0}`,this.fileLimit.toString()))},onMessageClose:function(){this.messages=null}},computed:{isAdvanced:function(){return this.mode===`advanced`},isBasic:function(){return this.mode===`basic`},chooseButtonClass:function(){return[this.cx(`pcChooseButton`),this.class]},basicFileChosenLabel:function(){if(this.auto)return this.chooseButtonLabel;if(this.hasFiles){var e;return this.files&&this.files.length===1?this.files[0].name:(e=this.$primevue.config.locale)==null||(e=e.fileChosenMessage)==null?void 0:e.replace(`{0}`,this.files.length)}return this.$primevue.config.locale?.noFileChosenMessage||``},hasFiles:function(){return this.files&&this.files.length>0},hasUploadedFiles:function(){return this.uploadedFiles&&this.uploadedFiles.length>0},chooseDisabled:function(){return this.disabled||this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount},uploadDisabled:function(){return this.disabled||!this.hasFiles||this.fileLimit&&this.fileLimit<this.files.length},cancelDisabled:function(){return this.disabled||!this.hasFiles},chooseButtonLabel:function(){return this.chooseLabel||this.$primevue.config.locale.choose},uploadButtonLabel:function(){return this.uploadLabel||this.$primevue.config.locale.upload},cancelButtonLabel:function(){return this.cancelLabel||this.$primevue.config.locale.cancel},completedLabel:function(){return this.$primevue.config.locale.completed},pendingLabel:function(){return this.$primevue.config.locale.pending}},components:{Button:Um,ProgressBar:ay,Message:Gv,FileContent:py,PlusIcon:hv,UploadIcon:jv,TimesIcon:Cv},directives:{ripple:jm}},wy=[`multiple`,`accept`,`disabled`],Ty=[`accept`,`disabled`,`multiple`];function Ey(e,n,r,i,a,o){var s=(0,t.resolveComponent)(`Button`),c=(0,t.resolveComponent)(`ProgressBar`),l=(0,t.resolveComponent)(`Message`),u=(0,t.resolveComponent)(`FileContent`);return o.isAdvanced?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:0,class:e.cx(`root`)},e.ptmi(`root`)),[(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`fileInput`,type:`file`,onChange:n[0]||=function(){return o.onFileSelect&&o.onFileSelect.apply(o,arguments)},multiple:e.multiple,accept:e.accept,disabled:o.chooseDisabled},e.ptm(`input`)),null,16,wy),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`header`)},e.ptm(`header`)),[(0,t.renderSlot)(e.$slots,`header`,{files:a.files,uploadedFiles:a.uploadedFiles,chooseCallback:o.choose,uploadCallback:o.uploader,clearCallback:o.clear},function(){return[(0,t.createVNode)(s,(0,t.mergeProps)({label:o.chooseButtonLabel,class:o.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onClick:o.choose,onKeydown:(0,t.withKeys)(o.choose,[`enter`]),onFocus:o.onFocus,onBlur:o.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,t.mergeProps)({class:[n.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onClick`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.showUploadButton?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:0,class:e.cx(`pcUploadButton`),label:o.uploadButtonLabel,onClick:o.uploader,disabled:o.uploadDisabled,unstyled:e.unstyled},e.uploadButtonProps,{pt:e.ptm(`pcUploadButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`uploadicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.uploadIcon?`span`:`UploadIcon`),(0,t.mergeProps)({class:[n.class,e.uploadIcon],"aria-hidden":`true`},e.ptm(`pcUploadButton`).icon,{"data-pc-section":`uploadbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,t.createCommentVNode)(``,!0),e.showCancelButton?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:1,class:e.cx(`pcCancelButton`),label:o.cancelButtonLabel,onClick:o.clear,disabled:o.cancelDisabled,unstyled:e.unstyled},e.cancelButtonProps,{pt:e.ptm(`pcCancelButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`cancelicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.cancelIcon?`span`:`TimesIcon`),(0,t.mergeProps)({class:[n.class,e.cancelIcon],"aria-hidden":`true`},e.ptm(`pcCancelButton`).icon,{"data-pc-section":`cancelbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,t.createCommentVNode)(``,!0)]})],16),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({ref:`content`,class:e.cx(`content`),onDragenter:n[1]||=function(){return o.onDragEnter&&o.onDragEnter.apply(o,arguments)},onDragover:n[2]||=function(){return o.onDragOver&&o.onDragOver.apply(o,arguments)},onDragleave:n[3]||=function(){return o.onDragLeave&&o.onDragLeave.apply(o,arguments)},onDrop:n[4]||=function(){return o.onDrop&&o.onDrop.apply(o,arguments)}},e.ptm(`content`),{"data-p-highlight":!1}),[(0,t.renderSlot)(e.$slots,`content`,{files:a.files,uploadedFiles:a.uploadedFiles,removeUploadedFileCallback:o.removeUploadedFile,removeFileCallback:o.remove,progress:a.progress,messages:a.messages},function(){return[o.hasFiles?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,value:a.progress,showValue:!1,unstyled:e.unstyled,pt:e.ptm(`pcProgressbar`)},null,8,[`value`,`unstyled`,`pt`])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.messages,function(n){return(0,t.openBlock)(),(0,t.createBlock)(l,{key:n,severity:`error`,onClose:o.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,t.withCtx)(function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(n),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),o.hasFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)(e.cx(`fileList`))},[(0,t.createVNode)(u,{files:a.files,onRemove:o.remove,badgeValue:o.pendingLabel,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,t.createCommentVNode)(``,!0),o.hasUploadedFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:(0,t.normalizeClass)(e.cx(`fileList`))},[(0,t.createVNode)(u,{files:a.uploadedFiles,onRemove:o.removeUploadedFile,badgeValue:o.completedLabel,badgeSeverity:`success`,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,t.createCommentVNode)(``,!0)]}),e.$slots.empty&&!o.hasFiles&&!o.hasUploadedFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.normalizeProps)((0,t.mergeProps)({key:0},e.ptm(`empty`))),[(0,t.renderSlot)(e.$slots,`empty`)],16)):(0,t.createCommentVNode)(``,!0)],16)],16)):o.isBasic?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:1,class:e.cx(`root`)},e.ptmi(`root`)),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.messages,function(n){return(0,t.openBlock)(),(0,t.createBlock)(l,{key:n,severity:`error`,onClose:o.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,t.withCtx)(function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(n),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`basicContent`)},e.ptm(`basicContent`)),[(0,t.createVNode)(s,(0,t.mergeProps)({label:o.chooseButtonLabel,class:o.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onMouseup:o.onBasicUploaderClick,onKeydown:(0,t.withKeys)(o.choose,[`enter`]),onFocus:o.onFocus,onBlur:o.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,t.mergeProps)({class:[n.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onMouseup`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.auto?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(e.$slots,`filelabel`,{key:0,class:(0,t.normalizeClass)(e.cx(`filelabel`)),files:a.files},function(){return[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)(e.cx(`filelabel`))},(0,t.toDisplayString)(o.basicFileChosenLabel),3)]}),(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`fileInput`,type:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:n[5]||=function(){return o.onFileSelect&&o.onFileSelect.apply(o,arguments)},onFocus:n[6]||=function(){return o.onFocus&&o.onFocus.apply(o,arguments)},onBlur:n[7]||=function(){return o.onBlur&&o.onBlur.apply(o,arguments)}},e.ptm(`input`)),null,16,Ty)],16)],16)):(0,t.createCommentVNode)(``,!0)}Cy.render=Ey;var Dy={notFoundTemplate:{title:`Page not found`,description:`The page you're looking for couldn't be found. Check the URL or go back to the mainpage.`,buttonDefault:`Back to mainpage`},practitionerHeader:{tooltipAcademy:`BeterDichtbij Academie`,menuItemAcademy:`Academie`},videoCallTemplate:{fullScreen:`Full screen`,miniPlayer:`Mini player`,shareScreen:`Share screen`,stopSharingScreen:`Stop sharing screen`,signalStrength:{weak:`Weak signal`,steady:`Moderate signal`,strong:`Strong signal`},serviceDesk:`Service desk`,testCall:`Run the video call test`,endCall:`End call`,placeholderSettingsHelpTitle:`Connection issues?`,placeholderSettingsHelpMessage:`End the call and try again.`,messageWhenDialing:`Calling...`,messageWhenRinging:`Phone is ringing`,messageWhenNotAnsweredDetail:`Patient does not appear to answer.`,initializing:`Initializing...`,answered:`Call answered`,messageWhenConnected:`Connected`,messageWhenNoVideoHint:`No video? Run the video call test.`,messageWhenCallNotDelivered:`The video call does not arrive on the patient's mobile phone or tablet.`,messageWhenCallNotDeliveredDetail:`Asking the patient to log in again in the BeterDichtbij app often resolves this.`,messageWhenConnectionIssues:`Connection issues`,messageWhenConnectionIssuesMedium:`The connection is unstable.`,messageWhenConnectionIssuesStrong:`The connection seems lost. Check internet connection and try again.`,messageWhenSignalHold:`Video call connection with patient's phone/tablet could not be established`,messageWhenSignalHoldDetail:`Run the video call test.`,messageWhenVideoCallHangedUp:`Call has ended.`,messageWhenVideoCallDeclined:`The call could not be answered right now.`,messageWhenDevicePermissionDenied:`A call cannot be started`,permissionDeniedForVideo:`No access to camera`,permissionDeniedForAudio:`No access to microphone`,closeWindow:`Close window`,switchCamera:`Switch camera`,hasNoAvailableCamera:`No camera available.`,hasOneAvailableCamera:`One camera is available.`,hasMultipleAvailableCameras:`Multiple cameras are available.`,callEndReasons:{0:`Patient ended the call.`,4:`The app was closed.`,5:`Patient ended the call.`,6:`BeterDichtbij call screen was closed.`,10:`Patient waited too long to answer.`,12:`Network or camera issue on patient side. Check internet and camera permission.`,20:`Patient pressed Back while the phone was ringing.`,21:`Call was hung up.`,22:`Patient pressed Home while the phone was ringing.`,23:`Patient waited too long to answer.`,24:`Patient clicked Yes in the popup.`,25:`Patient ended the call.`,26:`The app moved to background on phone/tablet.`,33:`Outdated app version. Ask patient to update the BeterDichtbij app.`},unknown:`Unknown message`}},Oy={activeFilters:{title:`Actieve filters`,clearAll:`Wis alle filters`},assignConversationModal:{title:`Gesprek overdragen`,submitButton:`Gesprek overdragen`,conclude:`Afhandelen bij de overdracht`,concludeTooltip:`Het gesprek blijft beschikbaar, deze wordt getoond als het filter "afgehandeld" is geselecteerd. Je patiënt kan ook nog gewoon reageren.`,makeUnread:`Gesprek op ongelezen zetten`},attachmentUploadModal:{title:`Bijlage toevoegen`,submitButton:`Toevoegen`,infoMessage:`Kies je bestand.`,addAttachmentButton:`Bijlage toevoegen`,errorMessage:`Fout opgetreden`,fileTooBigErrorMessage:`Bestand is te groot.`,fileSizeExceededMessage:`Bestanden mogen maximaal 10 MB groot zijn.`},changePasswordTemplate:{toasters:{reset:`De velden zijn geleegd.`}},contentLibraryCard:{insert:`Invoegen`},contentLibraryCardMessageTemplate:{insert:`Invoegen`,collapseOpen:`Inklappen`,collapseClosed:`Lees meer`,popoverIsSharedByOtherUser:`Dit bericht kan alleen door de eigenaar of beheerder aangepast worden`,delete:`Verwijderen`,edit:`Wijzigen`},contentLibraryOverview:{noResults:`Er zijn geen berichten gevonden voor deze zoekterm of filters; pas ze aan om opnieuw te zoeken.`},contentLibrarySplitButton:{messageTemplatesTitle:`Standaardberichten`},contentLibraryTemplate:{changeCategoryButtonLabel:`Mijn categorieën aanpassen`,newMessageText:`Nieuw bericht`,message:`Bericht`,messages:`Berichten`,more:`Meer`,less:`Minder`,searchPlaceholder:`Zoek een bericht`,searchPlaceholderSearch:`Vul een zoekterm in om resultaten te tonen`},conversationToTextModal:{copyButton:`Kopieer selectie naar klembord`,copySuccess:`Het gesprek is gekopieerd naar het klembord.`,onBehalfOf:`namens`,prefix:`Communicatie vanuit BeterDichtbij`,selectAll:`Alles selecteren`,systemMessage:`Tussentijdse mededeling`},imageAttachmentModal:{download:`Download afbeelding`,loading:`Afbeelding aan het laden`},fileUpload:{errorMessage:`Er is een fout opgetreden tijdens het uploaden van het bestand.`},filterCard:{more:`Meer`,less:`Minder`},messageTemplateFormModal:{createTitle:`Standaardbericht toevoegen`,editTitle:`Standaardbericht wijzigen`,titleLabel:`Titel`,titlePlaceHolder:`Zwelling na botbreuk`,replyTemplateLabel:`Standaardbericht`,replyTemplatePlaceHolder:`Schrijf hier jouw bericht naar de patiënt`,sharedWithLabel:`Delen met`,owner:`Eigenaar`,ownerPlaceholder:`Selecteer eigenaar`,tooltipOwner:`Als het bericht met meerdere instanties (teams) gedeeld wordt, kunje alleen zelf eigenaar worden`,categoryLabel:`Categorie`,categoryPlaceholderDropdown:`Selecteer categorie of maak een nieuwe aan`,validation:`Dit veld is verplicht.`},notFoundTemplate:{title:`Pagina niet gevonden`,description:`De pagina die je zoekt kon niet gevonden worden. Controleer de URL of ga terug naar de hoofdpagina.`,buttonDefault:`Terug naar hoofdpagina`},practitionerHeader:{academyTooltip:`BeterDichtbij Academie`,academyMenuItem:`Academie`},videoCallConfirmationModal:{title:`Beeldbellen`,cancel:`Nee`,close:`Sluiten`,ok:`Ja`,message:`Weet je zeker dat je wilt beeldbellen?`,participantMessage:`Weet je zeker dat je wilt beeldbellen met`,testMessage:`Doe de beeldbeltest`,noMobileActivationMessage:`gebruikt BeterDichtbij via de web applicatie waardoor beeldbellen niet mogelijk is. Vraag de patiënt om de app te installeren op een mobiele telefoon of tablet.`,noCompatibleDevices:`gebruikt mogelijk een mobiele telefoon of tablet die beeldbellen niet ondersteunt. Het is daarom momenteel niet mogelijk om te beeldbellen met deze patiënt.`,generalWarning:`Beeldbellen is niet mogelijk om de volgende redenen:`,cameraPermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de camera door BeterDichtbij.`,microphonePermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de microfoon door BeterDichtbij.`,helpMessage:`om te controleren of je camera en microfoon goed werken.`},videoCallTemplate:{fullScreen:`Volledig scherm`,miniPlayer:`Mini player`,shareScreen:`Scherm delen`,stopSharingScreen:`Stop scherm delen`,signalStrength:{weak:`Zwak signaal`,steady:`Matig signaal`,strong:`Sterk signaal`},serviceDesk:`Servicedesk`,testCall:`Doe de beeldbeltest`,endCall:`Gesprek beëindigen`,placeholderSettingsHelpTitle:`Problemen met de verbinding?`,placeholderSettingsHelpMessage:`Sluit het gesprek en probeer opnieuw te bellen.`,messageWhenDialing:`Bellen...`,messageWhenRinging:`Telefoon gaat over`,messageWhenNotAnsweredDetail:`Patiënt lijkt niet op te nemen.`,initializing:`Bezig met opstarten...`,answered:`Er is opgenomen`,messageWhenConnected:`Verbonden`,messageWhenNoVideoHint:`Geen beeld? Doe de beeldbel kwaliteit test.`,messageWhenCallNotDelivered:`Beeldbelgesprek komt niet aan op de mobiele telefoon of tablet van de patiënt.`,messageWhenCallNotDeliveredDetail:`De patiënt opnieuw laten inloggen in de BeterDichtbij app lost het probleem vaak op.`,messageWhenConnectionIssues:`Connectie problemen`,messageWhenConnectionIssuesMedium:`De verbinding is instabiel.`,messageWhenConnectionIssuesStrong:`De verbinding lijkt verbroken. Controleer internetverbinding en probeer opnieuw.`,messageWhenSignalHold:`Beeldbel verbinding met patiënt zijn telefoon/tablet komt niet tot stand`,messageWhenSignalHoldDetail:`Doe de beeldbel kwaliteit test.`,messageWhenVideoCallHangedUp:`Er is opgehangen.`,messageWhenVideoCallDeclined:`Er kon op dit moment niet worden opgenomen.`,messageWhenDevicePermissionDenied:`Er kan geen gesprek worden gestart`,permissionDeniedForVideo:`Geen toegang beschikbaar tot de camera`,permissionDeniedForAudio:`Er is geen toegang beschikbaar tot uw microfoon`,closeWindow:`Venster sluiten`,switchCamera:`Wissel camera`,hasNoAvailableCamera:`Er is geen camera beschikbaar.`,hasOneAvailableCamera:`Er is één camera beschikbaar.`,hasMultipleAvailableCameras:`Er zijn meerdere camera's beschikbaar.`,callEndReasons:{0:`Patiënt heeft gesprek beëindigd.`,4:`App is afgesloten.`,5:`Patiënt heeft gesprek beëindigd.`,6:`BeterDichtbij gespreksscherm is afgesloten.`,10:`Patiënt heeft te lang gewacht met opnemen.`,12:`Netwerk issue of camera issue bij de patiënt. Controleer internet en camera-toestemming bij de patiënt.`,20:`Patiënt heeft de Terug-knop ingedrukt terwijl de telefoon overging.`,21:`Gesprek opgehangen.`,22:`Patiënt heeft Home ingedrukt terwijl de telefoon overging.`,23:`Patiënt heeft te lang gewacht met opnemen.`,24:`Patiënt heeft Ja geklikt in de pop-up.`,25:`Patiënt heeft gesprek beëindigd.`,26:`App is naar de achtergrond gegaan op telefoon/tablet.`,33:`Verouderde versie van de app. Vraag de patiënt om de BeterDichtbij app te updaten.`},unknown:`Onbekende melding`}},ky=Gu({legacy:!1,locale:`nl`,messages:{en:{...Dy},nl:{...Oy}}}),Ay=`bottom`,jy=`right`,My=`left`,Ny=`auto`,Py=[`top`,Ay,jy,My],Fy=`start`,Iy=`clippingParents`,Ly=`viewport`,Ry=`popper`,zy=`reference`,By=Py.reduce(function(e,t){return e.concat([t+`-`+Fy,t+`-end`])},[]),Vy=[].concat(Py,[Ny]).reduce(function(e,t){return e.concat([t,t+`-`+Fy,t+`-end`])},[]),Hy=`beforeRead`,Uy=`read`,Wy=`afterRead`,Gy=`beforeMain`,Ky=`main`,qy=`afterMain`,Jy=`beforeWrite`,Yy=`write`,Xy=`afterWrite`,Zy=[Hy,Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy];function Qy(e){return e?(e.nodeName||``).toLowerCase():null}function $y(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eb(e){return e instanceof $y(e).Element||e instanceof Element}function tb(e){return e instanceof $y(e).HTMLElement||e instanceof HTMLElement}function nb(e){return typeof ShadowRoot>`u`?!1:e instanceof $y(e).ShadowRoot||e instanceof ShadowRoot}function rb(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!tb(i)||!Qy(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function ib(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!tb(r)||!Qy(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ab={name:`applyStyles`,enabled:!0,phase:`write`,fn:rb,effect:ib,requires:[`computeStyles`]};function ob(e){return e.split(`-`)[0]}var sb=Math.max,cb=Math.min,lb=Math.round;function ub(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function db(){return!/^((?!chrome|android).)*safari/i.test(ub())}function fb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&tb(e)&&(i=e.offsetWidth>0&&lb(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&lb(r.height)/e.offsetHeight||1);var o=(eb(e)?$y(e):window).visualViewport,s=!db()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function pb(e){var t=fb(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function mb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hb(e){return $y(e).getComputedStyle(e)}function gb(e){return[`table`,`td`,`th`].indexOf(Qy(e))>=0}function _b(e){return((eb(e)?e.ownerDocument:e.document)||window.document).documentElement}function vb(e){return Qy(e)===`html`?e:e.assignedSlot||e.parentNode||(nb(e)?e.host:null)||_b(e)}function yb(e){return!tb(e)||hb(e).position===`fixed`?null:e.offsetParent}function bb(e){var t=/firefox/i.test(ub());if(/Trident/i.test(ub())&&tb(e)&&hb(e).position===`fixed`)return null;var n=vb(e);for(nb(n)&&(n=n.host);tb(n)&&[`html`,`body`].indexOf(Qy(n))<0;){var r=hb(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function xb(e){for(var t=$y(e),n=yb(e);n&&gb(n)&&hb(n).position===`static`;)n=yb(n);return n&&(Qy(n)===`html`||Qy(n)===`body`&&hb(n).position===`static`)?t:n||bb(e)||t}function Sb(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function Cb(e,t,n){return sb(e,cb(t,n))}function wb(e,t,n){var r=Cb(e,t,n);return r>n?n:r}function Tb(){return{top:0,right:0,bottom:0,left:0}}function Eb(e){return Object.assign({},Tb(),e)}function Db(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ob=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Eb(typeof e==`number`?Db(e,Py):e)};function kb(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=ob(n.placement),c=Sb(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Ob(i.padding,n),d=pb(a),f=c===`y`?`top`:My,p=c===`y`?Ay:jy,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=xb(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=Cb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Ab(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||mb(t.elements.popper,r)&&(t.elements.arrow=r))}var jb={name:`arrow`,enabled:!0,phase:`main`,fn:kb,effect:Ab,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Mb(e){return e.split(`-`)[1]}var Nb={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Pb(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:lb(n*i)/i||0,y:lb(r*i)/i||0}}function Fb(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=My,b=`top`,x=window;if(l){var S=xb(n),C=`clientHeight`,w=`clientWidth`;if(S===$y(n)&&(S=_b(n),hb(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Ay;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=jy;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Nb),O=u===!0?Pb({x:p,y:h},$y(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Ib(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:ob(t.placement),variation:Mb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fb(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fb(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Lb={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Ib,data:{}},Rb={passive:!0};function zb(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=$y(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Rb)}),s&&c.addEventListener(`resize`,n.update,Rb),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Rb)}),s&&c.removeEventListener(`resize`,n.update,Rb)}}var Bb={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:zb,data:{}},Vb={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Hb(e){return e.replace(/left|right|bottom|top/g,function(e){return Vb[e]})}var Ub={start:`end`,end:`start`};function Wb(e){return e.replace(/start|end/g,function(e){return Ub[e]})}function Gb(e){var t=$y(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kb(e){return fb(_b(e)).left+Gb(e).scrollLeft}function qb(e,t){var n=$y(e),r=_b(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=db();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Kb(e),y:c}}function Jb(e){var t=_b(e),n=Gb(e),r=e.ownerDocument?.body,i=sb(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=sb(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Kb(e),s=-n.scrollTop;return hb(r||t).direction===`rtl`&&(o+=sb(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Yb(e){var t=hb(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Xb(e){return[`html`,`body`,`#document`].indexOf(Qy(e))>=0?e.ownerDocument.body:tb(e)&&Yb(e)?e:Xb(vb(e))}function Zb(e,t){t===void 0&&(t=[]);var n=Xb(e),r=n===e.ownerDocument?.body,i=$y(n),a=r?[i].concat(i.visualViewport||[],Yb(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Zb(vb(a)))}function Qb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $b(e,t){var n=fb(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ex(e,t,n){return t===`viewport`?Qb(qb(e,n)):eb(t)?$b(t,n):Qb(Jb(_b(e)))}function tx(e){var t=Zb(vb(e)),n=[`absolute`,`fixed`].indexOf(hb(e).position)>=0&&tb(e)?xb(e):e;return eb(n)?t.filter(function(e){return eb(e)&&mb(e,n)&&Qy(e)!==`body`}):[]}function nx(e,t,n,r){var i=t===`clippingParents`?tx(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=ex(e,n,r);return t.top=sb(i.top,t.top),t.right=cb(i.right,t.right),t.bottom=cb(i.bottom,t.bottom),t.left=sb(i.left,t.left),t},ex(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function rx(e){var t=e.reference,n=e.element,r=e.placement,i=r?ob(r):null,a=r?Mb(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Ay:c={x:o,y:t.y+t.height};break;case jy:c={x:t.x+t.width,y:s};break;case My:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Sb(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Fy:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function ix(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Iy:s,l=n.rootBoundary,u=l===void 0?Ly:l,d=n.elementContext,f=d===void 0?Ry:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Eb(typeof g==`number`?Db(g,Py):g),v=f===`popper`?zy:Ry,y=e.rects.popper,b=e.elements[m?v:f],x=nx(eb(b)?b:b.contextElement||_b(e.elements.popper),c,u,o),S=fb(e.elements.reference),C=rx({reference:S,element:y,strategy:`absolute`,placement:i}),w=Qb(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function ax(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Vy:c,u=Mb(r),d=u?s?By:By.filter(function(e){return Mb(e)===u}):Py,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=ix(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[ob(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function ox(e){if(ob(e)===`auto`)return[];var t=Hb(e);return[Wb(e),t,Wb(t)]}function sx(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=ob(g)===g,v=c||(_||!m?[Hb(g)]:ox(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(ob(n)===`auto`?ax(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=ob(E),O=Mb(E)===Fy,ee=[`top`,Ay].indexOf(D)>=0,te=ee?`width`:`height`,k=ix(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),ne=ee?O?jy:My:O?Ay:`top`;b[te]>x[te]&&(ne=Hb(ne));var re=Hb(ne),ie=[];if(a&&ie.push(k[D]<=0),s&&ie.push(k[ne]<=0,k[re]<=0),ie.every(function(e){return e})){w=E,C=!1;break}S.set(E,ie)}if(C)for(var ae=m?3:1,oe=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},se=ae;se>0&&oe(se)!==`break`;se--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var cx={name:`flip`,enabled:!0,phase:`main`,fn:sx,requiresIfExists:[`offset`],data:{_skip:!1}};function lx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ux(e){return[`top`,jy,Ay,My].some(function(t){return e[t]>=0})}function dx(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ix(t,{elementContext:`reference`}),s=ix(t,{altBoundary:!0}),c=lx(o,r),l=lx(s,i,a),u=ux(c),d=ux(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var fx={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:dx};function px(e,t,n){var r=ob(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function mx(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Vy.reduce(function(e,n){return e[n]=px(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var hx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:mx};function gx(e){var t=e.state,n=e.name;t.modifiersData[n]=rx({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var _x={name:`popperOffsets`,enabled:!0,phase:`read`,fn:gx,data:{}};function vx(e){return e===`x`?`y`:`x`}function yx(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=ix(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=ob(t.placement),v=Mb(t.placement),y=!v,b=Sb(_),x=vx(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:My,te=b===`y`?Ay:jy,k=b===`y`?`height`:`width`,ne=S[b],re=ne+g[ee],ie=ne-g[te],ae=p?-w[k]/2:0,oe=v===`start`?C[k]:w[k],se=v===`start`?-w[k]:-C[k],ce=t.elements.arrow,le=p&&ce?pb(ce):{width:0,height:0},ue=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Tb(),de=ue[ee],fe=ue[te],pe=Cb(0,C[k],le[k]),me=y?C[k]/2-ae-pe-de-E.mainAxis:oe-pe-de-E.mainAxis,he=y?-C[k]/2+ae+pe+fe+E.mainAxis:se+pe+fe+E.mainAxis,ge=t.elements.arrow&&xb(t.elements.arrow),_e=ge?b===`y`?ge.clientTop||0:ge.clientLeft||0:0,ve=D?.[b]??0,ye=ne+me-ve-_e,be=ne+he-ve,xe=Cb(p?cb(re,ye):re,ne,p?sb(ie,be):ie);S[b]=xe,O[b]=xe-ne}if(s){var Se=b===`x`?`top`:My,Ce=b===`x`?Ay:jy,we=S[x],Te=x===`y`?`height`:`width`,Ee=we+g[Se],De=we-g[Ce],Oe=[`top`,My].indexOf(_)!==-1,A=D?.[x]??0,ke=Oe?Ee:we-C[Te]-w[Te]-A+E.altAxis,Ae=Oe?we+C[Te]+w[Te]-A-E.altAxis:De,je=p&&Oe?wb(ke,we,Ae):Cb(p?ke:Ee,we,p?Ae:De);S[x]=je,O[x]=je-we}t.modifiersData[r]=O}}var bx={name:`preventOverflow`,enabled:!0,phase:`main`,fn:yx,requiresIfExists:[`offset`]};function xx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Sx(e){return e===$y(e)||!tb(e)?Gb(e):xx(e)}function Cx(e){var t=e.getBoundingClientRect(),n=lb(t.width)/e.offsetWidth||1,r=lb(t.height)/e.offsetHeight||1;return n!==1||r!==1}function wx(e,t,n){n===void 0&&(n=!1);var r=tb(t),i=tb(t)&&Cx(t),a=_b(t),o=fb(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Qy(t)!==`body`||Yb(a))&&(s=Sx(t)),tb(t)?(c=fb(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Kb(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Tx(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Ex(e){var t=Tx(e);return Zy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Dx(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Ox(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var kx={placement:`bottom`,modifiers:[],strategy:`absolute`};function Ax(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function jx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?kx:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},kx,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:eb(e)?Zb(e):e.contextElement?Zb(e.contextElement):[],popper:Zb(t)};var s=Ex(Ox([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Ax(t,n)){i.rects={reference:wx(t,xb(n),i.options.strategy===`fixed`),popper:pb(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Dx(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Ax(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Mx=jx(),Nx=jx({defaultModifiers:[Bb,_x,Lb,ab]}),Px=jx({defaultModifiers:[Bb,_x,Lb,ab,hx,cx,bx,jb,fx]}),Fx=f({afterMain:()=>qy,afterRead:()=>Wy,afterWrite:()=>Xy,applyStyles:()=>ab,arrow:()=>jb,auto:()=>Ny,basePlacements:()=>Py,beforeMain:()=>Gy,beforeRead:()=>Hy,beforeWrite:()=>Jy,bottom:()=>Ay,clippingParents:()=>Iy,computeStyles:()=>Lb,createPopper:()=>Px,createPopperBase:()=>Mx,createPopperLite:()=>Nx,detectOverflow:()=>ix,end:()=>`end`,eventListeners:()=>Bb,flip:()=>cx,hide:()=>fx,left:()=>My,main:()=>Ky,modifierPhases:()=>Zy,offset:()=>hx,placements:()=>Vy,popper:()=>Ry,popperGenerator:()=>jx,popperOffsets:()=>_x,preventOverflow:()=>bx,read:()=>Uy,reference:()=>zy,right:()=>jy,start:()=>Fy,top:()=>`top`,variationPlacements:()=>By,viewport:()=>Ly,write:()=>Yy}),Ix=new Map,Lx={set(e,t,n){Ix.has(e)||Ix.set(e,new Map);let r=Ix.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return Ix.has(e)&&Ix.get(e).get(t)||null},remove(e,t){if(!Ix.has(e))return;let n=Ix.get(e);n.delete(t),n.size===0&&Ix.delete(e)}},Rx=1e6,zx=1e3,Bx=`transitionend`,Vx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Hx=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Ux=e=>{do e+=Math.floor(Math.random()*Rx);while(document.getElementById(e));return e},Wx=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*zx)},Gx=e=>{e.dispatchEvent(new Event(Bx))},Kx=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),qx=e=>Kx(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Vx(e)):null,Jx=e=>{if(!Kx(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},Yx=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,Xx=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Xx(e.parentNode):null},Zx=()=>{},Qx=e=>{e.offsetHeight},$x=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,eS=[],tS=e=>{document.readyState===`loading`?(eS.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of eS)e()}),eS.push(e)):e()},nS=()=>document.documentElement.dir===`rtl`,rS=e=>{tS(()=>{let t=$x();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},iS=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,aS=(e,t,n=!0)=>{if(!n){iS(e);return}let r=Wx(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Bx,a),iS(e))};t.addEventListener(Bx,a),setTimeout(()=>{i||Gx(t)},r)},oS=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},sS=/[^.]*(?=\..*)\.|.*/,cS=/\..*/,lS=/::\d+$/,uS={},dS=1,fS={mouseenter:`mouseover`,mouseleave:`mouseout`},pS=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function mS(e,t){return t&&`${t}::${dS++}`||e.uidEvent||dS++}function hS(e){let t=mS(e);return e.uidEvent=t,uS[t]=uS[t]||{},uS[t]}function gS(e,t){return function n(r){return wS(r,{delegateTarget:e}),n.oneOff&&U.off(e,r.type,t),t.apply(e,[r])}}function _S(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return wS(i,{delegateTarget:o}),r.oneOff&&U.off(e,i.type,t,n),n.apply(o,[i])}}function vS(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function yS(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=CS(e);return pS.has(a)||(a=e),[r,i,a]}function bS(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=yS(t,n,r);t in fS&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=hS(e),l=c[s]||(c[s]={}),u=vS(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=mS(o,t.replace(sS,``)),f=a?_S(e,n,o):gS(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function xS(e,t,n,r,i){let a=vS(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function SS(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&xS(e,t,n,o.callable,o.delegationSelector)}function CS(e){return e=e.replace(cS,``),fS[e]||e}var U={on(e,t,n,r){bS(e,t,n,r,!1)},one(e,t,n,r){bS(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=yS(t,n,r),s=o!==t,c=hS(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;xS(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))SS(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(lS,``);(!s||t.includes(i))&&xS(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=$x(),i=t!==CS(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=wS(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function wS(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function TS(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function ES(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var DS={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${ES(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${ES(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=TS(e.dataset[r])}return t},getDataAttribute(e,t){return TS(e.getAttribute(`data-bs-${ES(t)}`))}},OS=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=Kx(t)?DS.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Kx(t)?DS.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=Kx(t)?`element`:Hx(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},kS=`5.3.8`,AS=class extends OS{constructor(e,t){super(),e=qx(e),e&&(this._element=e,this._config=this._getConfig(t),Lx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Lx.remove(this._element,this.constructor.DATA_KEY),U.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){aS(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Lx.get(qx(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return kS}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},jS=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>Vx(e)).join(`,`):null},W={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!Yx(e)&&Jx(e))},getSelectorFromElement(e){let t=jS(e);return t&&W.findOne(t)?t:null},getElementFromSelector(e){let t=jS(e);return t?W.findOne(t):null},getMultipleElementsFromSelector(e){let t=jS(e);return t?W.find(t):[]}},MS=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;U.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),Yx(this))return;let i=W.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},NS=`alert`,PS=`.bs.alert`,FS=`close${PS}`,IS=`closed${PS}`,LS=`fade`,RS=`show`,zS=class e extends AS{static get NAME(){return NS}close(){if(U.trigger(this._element,FS).defaultPrevented)return;this._element.classList.remove(RS);let e=this._element.classList.contains(LS);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),U.trigger(this._element,IS),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};MS(zS,`close`),rS(zS);var BS=`button`,VS=`.bs.button`,HS=`.data-api`,US=`active`,WS=`[data-bs-toggle="button"]`,GS=`click${VS}${HS}`,KS=class e extends AS{static get NAME(){return BS}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(US))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};U.on(document,GS,WS,e=>{e.preventDefault();let t=e.target.closest(WS);KS.getOrCreateInstance(t).toggle()}),rS(KS);var qS=`swipe`,JS=`.bs.swipe`,YS=`touchstart${JS}`,XS=`touchmove${JS}`,ZS=`touchend${JS}`,QS=`pointerdown${JS}`,$S=`pointerup${JS}`,eC=`touch`,tC=`pen`,nC=`pointer-event`,rC=40,iC={endCallback:null,leftCallback:null,rightCallback:null},aC={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},oC=class e extends OS{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return iC}static get DefaultType(){return aC}static get NAME(){return qS}dispose(){U.off(this._element,JS)}_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(),iS(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=rC)return;let t=e/this._deltaX;this._deltaX=0,t&&iS(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(U.on(this._element,QS,e=>this._start(e)),U.on(this._element,$S,e=>this._end(e)),this._element.classList.add(nC)):(U.on(this._element,YS,e=>this._start(e)),U.on(this._element,XS,e=>this._move(e)),U.on(this._element,ZS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===tC||e.pointerType===eC)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},sC=`carousel`,cC=`.bs.carousel`,lC=`.data-api`,uC=`ArrowLeft`,dC=`ArrowRight`,fC=500,pC=`next`,mC=`prev`,hC=`left`,gC=`right`,_C=`slide${cC}`,vC=`slid${cC}`,yC=`keydown${cC}`,bC=`mouseenter${cC}`,xC=`mouseleave${cC}`,SC=`dragstart${cC}`,CC=`load${cC}${lC}`,wC=`click${cC}${lC}`,TC=`carousel`,EC=`active`,DC=`slide`,OC=`carousel-item-end`,kC=`carousel-item-start`,AC=`carousel-item-next`,jC=`carousel-item-prev`,MC=`.active`,NC=`.carousel-item`,PC=`.active.carousel-item`,FC=`.carousel-item img`,IC=`.carousel-indicators`,LC=`[data-bs-slide], [data-bs-slide-to]`,RC=`[data-bs-ride="carousel"]`,zC={[uC]:gC,[dC]:hC},BC={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},VC={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},HC=class e extends AS{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=W.findOne(IC,this._element),this._addEventListeners(),this._config.ride===TC&&this.cycle()}static get Default(){return BC}static get DefaultType(){return VC}static get NAME(){return sC}next(){this._slide(pC)}nextWhenVisible(){!document.hidden&&Jx(this._element)&&this.next()}prev(){this._slide(mC)}pause(){this._isSliding&&Gx(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){U.one(this._element,vC,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){U.one(this._element,vC,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?pC:mC;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&U.on(this._element,yC,e=>this._keydown(e)),this._config.pause===`hover`&&(U.on(this._element,bC,()=>this.pause()),U.on(this._element,xC,()=>this._maybeEnableCycle())),this._config.touch&&oC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of W.find(FC,this._element))U.on(e,SC,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(hC)),rightCallback:()=>this._slide(this._directionToOrder(gC)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),fC+this._config.interval))}};this._swipeHelper=new oC(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=zC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=W.findOne(MC,this._indicatorsElement);t.classList.remove(EC),t.removeAttribute(`aria-current`);let n=W.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(EC),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===pC,i=t||oS(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>U.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(_C).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?kC:OC,l=r?AC:jC;i.classList.add(l),Qx(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(EC),n.classList.remove(EC,l,c),this._isSliding=!1,o(vC)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(DC)}_getActive(){return W.findOne(PC,this._element)}_getItems(){return W.find(NC,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return nS()?e===hC?mC:pC:e===hC?pC:mC}_orderToDirection(e){return nS()?e===mC?hC:gC:e===mC?gC:hC}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};U.on(document,wC,LC,function(e){let t=W.getElementFromSelector(this);if(!t||!t.classList.contains(TC))return;e.preventDefault();let n=HC.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(DS.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),U.on(window,CC,()=>{let e=W.find(RC);for(let t of e)HC.getOrCreateInstance(t)}),rS(HC);var UC=`collapse`,WC=`.bs.collapse`,GC=`.data-api`,KC=`show${WC}`,qC=`shown${WC}`,JC=`hide${WC}`,YC=`hidden${WC}`,XC=`click${WC}${GC}`,ZC=`show`,QC=`collapse`,$C=`collapsing`,ew=`collapsed`,tw=`:scope .${QC} .${QC}`,nw=`collapse-horizontal`,rw=`width`,iw=`height`,aw=`.collapse.show, .collapse.collapsing`,ow=`[data-bs-toggle="collapse"]`,sw={parent:null,toggle:!0},cw={parent:`(null|element)`,toggle:`boolean`},lw=class e extends AS{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=W.find(ow);for(let e of n){let t=W.getSelectorFromElement(e),n=W.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return sw}static get DefaultType(){return cw}static get NAME(){return UC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(aw).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||U.trigger(this._element,KC).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(QC),this._element.classList.add($C),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove($C),this._element.classList.add(QC,ZC),this._element.style[n]=``,U.trigger(this._element,qC)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||U.trigger(this._element,JC).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Qx(this._element),this._element.classList.add($C),this._element.classList.remove(QC,ZC);for(let e of this._triggerArray){let t=W.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove($C),this._element.classList.add(QC),U.trigger(this._element,YC)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(ZC)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=qx(e.parent),e}_getDimension(){return this._element.classList.contains(nw)?rw:iw}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(ow);for(let t of e){let e=W.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=W.find(tw,this._config.parent);return W.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(ew,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};U.on(document,XC,ow,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of W.getMultipleElementsFromSelector(this))lw.getOrCreateInstance(e,{toggle:!1}).toggle()}),rS(lw);var uw=`dropdown`,dw=`.bs.dropdown`,fw=`.data-api`,pw=`Escape`,mw=`Tab`,hw=`ArrowUp`,gw=`ArrowDown`,_w=2,vw=`hide${dw}`,yw=`hidden${dw}`,bw=`show${dw}`,xw=`shown${dw}`,Sw=`click${dw}${fw}`,Cw=`keydown${dw}${fw}`,ww=`keyup${dw}${fw}`,Tw=`show`,Ew=`dropup`,Dw=`dropend`,Ow=`dropstart`,kw=`dropup-center`,Aw=`dropdown-center`,jw=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,Mw=`${jw}.${Tw}`,Nw=`.dropdown-menu`,Pw=`.navbar`,Fw=`.navbar-nav`,Iw=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,Lw=nS()?`top-end`:`top-start`,Rw=nS()?`top-start`:`top-end`,zw=nS()?`bottom-end`:`bottom-start`,Bw=nS()?`bottom-start`:`bottom-end`,Vw=nS()?`left-start`:`right-start`,Hw=nS()?`right-start`:`left-start`,Uw=`top`,Ww=`bottom`,Gw={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},Kw={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},qw=class e extends AS{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=W.next(this._element,Nw)[0]||W.prev(this._element,Nw)[0]||W.findOne(Nw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Gw}static get DefaultType(){return Kw}static get NAME(){return uw}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Yx(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!U.trigger(this._element,bw,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(Fw))for(let e of[].concat(...document.body.children))U.on(e,`mouseover`,Zx);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(Tw),this._element.classList.add(Tw),U.trigger(this._element,xw,e)}}hide(){if(Yx(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!U.trigger(this._element,vw,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))U.off(e,`mouseover`,Zx);this._popper&&this._popper.destroy(),this._menu.classList.remove(Tw),this._element.classList.remove(Tw),this._element.setAttribute(`aria-expanded`,`false`),DS.removeDataAttribute(this._menu,`popper`),U.trigger(this._element,yw,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Kx(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${uw.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(Fx===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:Kx(this._config.reference)?e=qx(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Px(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Tw)}_getPlacement(){let e=this._parent;if(e.classList.contains(Dw))return Vw;if(e.classList.contains(Ow))return Hw;if(e.classList.contains(kw))return Uw;if(e.classList.contains(Aw))return Ww;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(Ew)?t?Rw:Lw:t?Bw:zw}_detectNavbar(){return this._element.closest(Pw)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(DS.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...iS(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=W.find(Iw,this._menu).filter(e=>Jx(e));n.length&&oS(n,t,e===gw,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===_w||t.type===`keyup`&&t.key!==mw)return;let n=W.find(Mw);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===mw||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===pw,i=[hw,gw].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(jw)?this:W.prev(this,jw)[0]||W.next(this,jw)[0]||W.findOne(jw,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};U.on(document,Cw,jw,qw.dataApiKeydownHandler),U.on(document,Cw,Nw,qw.dataApiKeydownHandler),U.on(document,Sw,qw.clearMenus),U.on(document,ww,qw.clearMenus),U.on(document,Sw,jw,function(e){e.preventDefault(),qw.getOrCreateInstance(this).toggle()}),rS(qw);var Jw=`backdrop`,Yw=`fade`,Xw=`show`,Zw=`mousedown.bs.${Jw}`,Qw={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},$w={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},eT=class extends OS{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Qw}static get DefaultType(){return $w}static get NAME(){return Jw}show(e){if(!this._config.isVisible){iS(e);return}this._append();let t=this._getElement();this._config.isAnimated&&Qx(t),t.classList.add(Xw),this._emulateAnimation(()=>{iS(e)})}hide(e){if(!this._config.isVisible){iS(e);return}this._getElement().classList.remove(Xw),this._emulateAnimation(()=>{this.dispose(),iS(e)})}dispose(){this._isAppended&&=(U.off(this._element,Zw),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(Yw),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=qx(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),U.on(e,Zw,()=>{iS(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){aS(e,this._getElement(),this._config.isAnimated)}},tT=`focustrap`,nT=`.bs.focustrap`,rT=`focusin${nT}`,iT=`keydown.tab${nT}`,aT=`Tab`,oT=`forward`,sT=`backward`,cT={autofocus:!0,trapElement:null},lT={autofocus:`boolean`,trapElement:`element`},uT=class extends OS{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return cT}static get DefaultType(){return lT}static get NAME(){return tT}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),U.off(document,nT),U.on(document,rT,e=>this._handleFocusin(e)),U.on(document,iT,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,U.off(document,nT))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=W.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===sT?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===aT&&(this._lastTabNavDirection=e.shiftKey?sT:oT)}},dT=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,fT=`.sticky-top`,pT=`padding-right`,mT=`margin-right`,hT=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,pT,t=>t+e),this._setElementAttributes(dT,pT,t=>t+e),this._setElementAttributes(fT,mT,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,pT),this._resetElementAttributes(dT,pT),this._resetElementAttributes(fT,mT)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&DS.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=DS.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}DS.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Kx(e)){t(e);return}for(let n of W.find(e,this._element))t(n)}},gT=`modal`,_T=`.bs.modal`,vT=`.data-api`,yT=`Escape`,bT=`hide${_T}`,xT=`hidePrevented${_T}`,ST=`hidden${_T}`,CT=`show${_T}`,wT=`shown${_T}`,TT=`resize${_T}`,ET=`click.dismiss${_T}`,DT=`mousedown.dismiss${_T}`,OT=`keydown.dismiss${_T}`,kT=`click${_T}${vT}`,AT=`modal-open`,jT=`fade`,MT=`show`,NT=`modal-static`,PT=`.modal.show`,FT=`.modal-dialog`,IT=`.modal-body`,LT=`[data-bs-toggle="modal"]`,RT={backdrop:!0,focus:!0,keyboard:!0},zT={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},BT=class e extends AS{constructor(e,t){super(e,t),this._dialog=W.findOne(FT,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hT,this._addEventListeners()}static get Default(){return RT}static get DefaultType(){return zT}static get NAME(){return gT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||U.trigger(this._element,CT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(AT),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||U.trigger(this._element,bT).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(MT),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){U.off(window,_T),U.off(this._dialog,_T),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new eT({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new uT({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=W.findOne(IT,this._dialog);t&&(t.scrollTop=0),Qx(this._element),this._element.classList.add(MT),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,U.trigger(this._element,wT,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){U.on(this._element,OT,e=>{if(e.key===yT){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),U.on(window,TT,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),U.on(this._element,DT,e=>{U.one(this._element,ET,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(AT),this._resetAdjustments(),this._scrollBar.reset(),U.trigger(this._element,ST)})}_isAnimated(){return this._element.classList.contains(jT)}_triggerBackdropTransition(){if(U.trigger(this._element,xT).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(NT)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(NT),this._queueCallback(()=>{this._element.classList.remove(NT),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=nS()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=nS()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};U.on(document,kT,LT,function(e){let t=W.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),U.one(t,CT,e=>{e.defaultPrevented||U.one(t,ST,()=>{Jx(this)&&this.focus()})});let n=W.findOne(PT);n&&BT.getInstance(n).hide(),BT.getOrCreateInstance(t).toggle(this)}),MS(BT),rS(BT);var VT=`offcanvas`,HT=`.bs.offcanvas`,UT=`.data-api`,WT=`load${HT}${UT}`,GT=`Escape`,KT=`show`,qT=`showing`,JT=`hiding`,YT=`offcanvas-backdrop`,XT=`.offcanvas.show`,ZT=`show${HT}`,QT=`shown${HT}`,$T=`hide${HT}`,eE=`hidePrevented${HT}`,tE=`hidden${HT}`,nE=`resize${HT}`,rE=`click${HT}${UT}`,iE=`keydown.dismiss${HT}`,aE=`[data-bs-toggle="offcanvas"]`,oE={backdrop:!0,keyboard:!0,scroll:!1},sE={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},cE=class e extends AS{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return oE}static get DefaultType(){return sE}static get NAME(){return VT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||U.trigger(this._element,ZT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new hT().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(qT),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(KT),this._element.classList.remove(qT),U.trigger(this._element,QT,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||U.trigger(this._element,$T).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(JT),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(KT,JT),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new hT().reset(),U.trigger(this._element,tE)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){U.trigger(this._element,eE);return}this.hide()},t=!!this._config.backdrop;return new eT({className:YT,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new uT({trapElement:this._element})}_addEventListeners(){U.on(this._element,iE,e=>{if(e.key===GT){if(this._config.keyboard){this.hide();return}U.trigger(this._element,eE)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};U.on(document,rE,aE,function(e){let t=W.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Yx(this))return;U.one(t,tE,()=>{Jx(this)&&this.focus()});let n=W.findOne(XT);n&&n!==t&&cE.getInstance(n).hide(),cE.getOrCreateInstance(t).toggle(this)}),U.on(window,WT,()=>{for(let e of W.find(XT))cE.getOrCreateInstance(e).show()}),U.on(window,nE,()=>{for(let e of W.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&cE.getOrCreateInstance(e).hide()}),MS(cE),rS(cE);var lE={"*":[`class`,`dir`,`id`,`lang`,`role`,/^aria-[\w-]*$/i],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},uE=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),dE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,fE=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?uE.has(n)?!!dE.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function pE(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)fE(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var mE=`TemplateFactory`,hE={allowList:lE,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},gE={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},_E={entry:`(string|element|function|null)`,selector:`(string|element)`},vE=class extends OS{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return hE}static get DefaultType(){return gE}static get NAME(){return mE}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},_E)}_setContent(e,t,n){let r=W.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Kx(t)){this._putElementInTemplate(qx(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?pE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return iS(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},yE=`tooltip`,bE=new Set([`sanitize`,`allowList`,`sanitizeFn`]),xE=`fade`,SE=`modal`,CE=`show`,wE=`.tooltip-inner`,TE=`.${SE}`,EE=`hide.bs.modal`,DE=`hover`,OE=`focus`,kE=`click`,AE=`manual`,jE=`hide`,ME=`hidden`,NE=`show`,PE=`shown`,FE=`inserted`,IE=`click`,LE=`focusin`,RE=`focusout`,zE=`mouseenter`,BE=`mouseleave`,VE={AUTO:`auto`,TOP:`top`,RIGHT:nS()?`left`:`right`,BOTTOM:`bottom`,LEFT:nS()?`right`:`left`},HE={allowList:lE,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`},UE={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`},WE=class e extends AS{constructor(e,t){if(Fx===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return HE}static get DefaultType(){return UE}static get NAME(){return yE}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),U.off(this._element.closest(TE),EE,this._hideModalHandler),this._element.getAttribute(`data-bs-original-title`)&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=U.trigger(this._element,this.constructor.eventName(NE)),t=(Xx(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),U.trigger(this._element,this.constructor.eventName(FE))),this._popper=this._createPopper(n),n.classList.add(CE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))U.on(e,`mouseover`,Zx);this._queueCallback(()=>{U.trigger(this._element,this.constructor.eventName(PE)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||U.trigger(this._element,this.constructor.eventName(jE)).defaultPrevented)){if(this._getTipElement().classList.remove(CE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))U.off(e,`mouseover`,Zx);this._activeTrigger[kE]=!1,this._activeTrigger[OE]=!1,this._activeTrigger[DE]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),U.trigger(this._element,this.constructor.eventName(ME)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(xE,CE),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=Ux(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(xE),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new vE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[wE]: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(xE)}_isShown(){return this.tip&&this.tip.classList.contains(CE)}_createPopper(e){let t=VE[iS(this._config.placement,[this,e,this._element]).toUpperCase()];return Px(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return iS(e,[this._element,this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...iS(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)U.on(this._element,this.constructor.eventName(IE),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[kE]=!(t._isShown()&&t._activeTrigger[kE]),t.toggle()});else if(t!==AE){let e=t===DE?this.constructor.eventName(zE):this.constructor.eventName(LE),n=t===DE?this.constructor.eventName(BE):this.constructor.eventName(RE);U.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?OE:DE]=!0,t._enter()}),U.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?OE:DE]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},U.on(this._element.closest(TE),EE,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=DS.getDataAttributes(this._element);for(let e of Object.keys(t))bE.has(e)&&delete t[e];return e={...t,...typeof e==`object`&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:qx(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};rS(WE);var GE=`popover`,KE=`.popover-header`,qE=`.popover-body`,JE={...WE.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`},YE={...WE.DefaultType,content:`(null|string|element|function)`},XE=class e extends WE{static get Default(){return JE}static get DefaultType(){return YE}static get NAME(){return GE}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[KE]:this._getTitle(),[qE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};rS(XE);var ZE=`scrollspy`,QE=`.bs.scrollspy`,$E=`.data-api`,eD=`activate${QE}`,tD=`click${QE}`,nD=`load${QE}${$E}`,rD=`dropdown-item`,iD=`active`,aD=`[data-bs-spy="scroll"]`,oD=`[href]`,sD=`.nav, .list-group`,cD=`.nav-link`,lD=`${cD}, .nav-item > ${cD}, .list-group-item`,uD=`.dropdown`,dD=`.dropdown-toggle`,fD={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},pD={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},mD=class e extends AS{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 fD}static get DefaultType(){return pD}static get NAME(){return ZE}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=qx(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(U.off(this._config.target,tD),U.on(this._config.target,tD,oD,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=W.find(oD,this._config.target);for(let t of e){if(!t.hash||Yx(t))continue;let e=W.findOne(decodeURI(t.hash),this._element);Jx(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(iD),this._activateParents(e),U.trigger(this._element,eD,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(rD)){W.findOne(dD,e.closest(uD)).classList.add(iD);return}for(let t of W.parents(e,sD))for(let e of W.prev(t,lD))e.classList.add(iD)}_clearActiveClass(e){e.classList.remove(iD);let t=W.find(`${oD}.${iD}`,e);for(let e of t)e.classList.remove(iD)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};U.on(window,nD,()=>{for(let e of W.find(aD))mD.getOrCreateInstance(e)}),rS(mD);var hD=`tab`,gD=`.bs.tab`,_D=`hide${gD}`,vD=`hidden${gD}`,yD=`show${gD}`,bD=`shown${gD}`,xD=`click${gD}`,SD=`keydown${gD}`,CD=`load${gD}`,wD=`ArrowLeft`,TD=`ArrowRight`,ED=`ArrowUp`,DD=`ArrowDown`,OD=`Home`,kD=`End`,AD=`active`,jD=`fade`,MD=`show`,ND=`dropdown`,PD=`.dropdown-toggle`,FD=`.dropdown-menu`,ID=`:not(${PD})`,LD=`.list-group, .nav, [role="tablist"]`,RD=`.nav-item, .list-group-item`,zD=`.nav-link${ID}, .list-group-item${ID}, [role="tab"]${ID}`,BD=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,VD=`${zD}, ${BD}`,HD=`.${AD}[data-bs-toggle="tab"], .${AD}[data-bs-toggle="pill"], .${AD}[data-bs-toggle="list"]`,UD=class e extends AS{constructor(e){super(e),this._parent=this._element.closest(LD),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),U.on(this._element,SD,e=>this._keydown(e)))}static get NAME(){return hD}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?U.trigger(t,_D,{relatedTarget:e}):null;U.trigger(e,yD,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(AD),this._activate(W.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(MD);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),U.trigger(e,bD,{relatedTarget:t})},e,e.classList.contains(jD)))}_deactivate(e,t){e&&(e.classList.remove(AD),e.blur(),this._deactivate(W.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(MD);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),U.trigger(e,vD,{relatedTarget:t})},e,e.classList.contains(jD)))}_keydown(t){if(![wD,TD,ED,DD,OD,kD].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Yx(e)),r;if([OD,kD].includes(t.key))r=n[t.key===OD?0:n.length-1];else{let e=[TD,DD].includes(t.key);r=oS(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return W.find(VD,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=W.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(ND))return;let r=(e,r)=>{let i=W.findOne(e,n);i&&i.classList.toggle(r,t)};r(PD,AD),r(FD,MD),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(AD)}_getInnerElement(e){return e.matches(VD)?e:W.findOne(VD,e)}_getOuterElement(e){return e.closest(RD)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};U.on(document,xD,BD,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Yx(this)&&UD.getOrCreateInstance(this).show()}),U.on(window,CD,()=>{for(let e of W.find(HD))UD.getOrCreateInstance(e)}),rS(UD);var WD=`toast`,GD=`.bs.toast`,KD=`mouseover${GD}`,qD=`mouseout${GD}`,JD=`focusin${GD}`,YD=`focusout${GD}`,XD=`hide${GD}`,ZD=`hidden${GD}`,QD=`show${GD}`,$D=`shown${GD}`,eO=`fade`,tO=`hide`,nO=`show`,rO=`showing`,iO={animation:`boolean`,autohide:`boolean`,delay:`number`},aO={animation:!0,autohide:!0,delay:5e3},oO=class e extends AS{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return aO}static get DefaultType(){return iO}static get NAME(){return WD}show(){U.trigger(this._element,QD).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(eO),this._element.classList.remove(tO),Qx(this._element),this._element.classList.add(nO,rO),this._queueCallback(()=>{this._element.classList.remove(rO),U.trigger(this._element,$D),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||U.trigger(this._element,XD).defaultPrevented||(this._element.classList.add(rO),this._queueCallback(()=>{this._element.classList.add(tO),this._element.classList.remove(rO,nO),U.trigger(this._element,ZD)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(nO),super.dispose()}isShown(){return this._element.classList.contains(nO)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){U.on(this._element,KD,e=>this._onInteraction(e,!0)),U.on(this._element,qD,e=>this._onInteraction(e,!1)),U.on(this._element,JD,e=>this._onInteraction(e,!0)),U.on(this._element,YD,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};MS(oO),rS(oO);function sO(e=void 0){let n=e=>o(`Succesvol`,e,x_.SUCCESS),r=e=>o(`Waarschuwing`,e,x_.WARNING),i=e=>o(`Informatie`,e,x_.INFO),a=e=>o(`Mislukt`,e,x_.DANGER);function o(n,r,i){let a=`toast-${Pa()}`,o={id:a,variant:i,title:n,text:r},c=document.querySelector(`.toast-container`);if(!c){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let l=(0,t.h)(T_,o),u=(0,t.createApp)({render:()=>l}).mount(document.createElement(`div`));c.appendChild(u.$el);let d=document.querySelector(`#${a}`);d&&(oO.getOrCreateInstance(d,e).show(),s(d))}function s(e){function t(e,t){e.forEach(e=>{if(e.attributeName!=`class`)return;let n=e.target;if(n.classList.contains(`hide`)){n.remove(),t.disconnect();return}})}new MutationObserver(t).observe(e,{attributes:!0})}return{showSuccessToast:n,showInformationToast:i,showWarningToast:r,showDangerToast:a}}var cO={class:`bd-file-upload`},lO={class:`flex align-items-center justify-content-between gap-2`},uO={key:0,class:`preview-container`},dO=(0,t.defineComponent)({__name:`BDFileUpload`,props:{modelValue:{},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:`.jpg`},url:{default:``},tag:{default:`form`},token:{default:``}},emits:[`update:modelValue`],setup(e,{emit:n}){let{showDangerToast:r}=sO(),{t:i}=ky.global,a=e,o=n,s=(0,t.ref)(null),c=(0,t.ref)([]);(0,t.watch)(()=>a.modelValue,e=>{s.value&&(s.value.files=s.value.files.filter(t=>e.files.some(e=>e.Naam===t.name)))},{deep:!0});let l=(0,t.computed)(()=>({variant:ya.PRIMARY,size:Oa.SM})),u=pg(a,`modelValue`,o),d=async e=>{let t=Array.isArray(e.files)?e.files:[e.files];c.value.push(...t.map(e=>({name:e.name,previewUrl:e.objectURL})));for(let e of t){let t=new FormData;t.append(`file`,e);try{let n={method:`POST`,headers:{RequestVerificationToken:a.token},body:t};f(e,await(await fetch(a.url,n)).json())}catch{r(a.errorMessage||i(`fileUpload.errorMessage`))}}c.value=[],s.value&&s.value.clear()},f=(e,t)=>{let n=c.value.findIndex(t=>t.name==e.name);n!==-1&&c.value.splice(n,1),u.value.files.push({previewUrl:e.objectURL,UUID:e.name,CorrelationId:t.CorrelationId,name:t.Naam,Naam:t.Naam})},p=e=>{let t=u.value.files.indexOf(e);t!==-1&&u.value.files.splice(t,1),t=c.value.indexOf(e),t!==-1&&c.value.splice(t,1)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,cO,[(0,t.createVNode)((0,t.unref)(Cy),{ref_key:`fileUploadRef`,ref:s,multiple:a.multiple,"max-file-size":10485760,accept:a.acceptedFiles,auto:!0,"max-files":a.multiple?10:1,"custom-upload":!0,name:`file`,onUploader:d},{header:(0,t.withCtx)(({chooseCallback:e})=>[(0,t.createElementVNode)(`div`,lO,[(0,t.createVNode)(j,(0,t.mergeProps)(l.value,{onClick:e}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(k)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(a.buttonText),1)]),_:1},16,[`onClick`])])]),content:(0,t.withCtx)(()=>[c.value||(0,t.unref)(u)&&(0,t.unref)(u).files&&(0,t.unref)(u).files.length!==0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uO,[(0,t.unref)(u)&&(0,t.unref)(u).files?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)((0,t.unref)(u).files,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(mv,{key:n,file:e,"is-pending":!1,onRemove:p},null,8,[`file`]))),128)):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(c.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(mv,{key:n,file:e,"is-pending":!0,onRemove:p},null,8,[`file`]))),128)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`multiple`,`accept`,`max-files`])]))}}),fO=[`id`,`value`,`disabled`],pO=[`for`],mO={class:`invalid-feedback`},hO={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Ku(),o=(0,t.ref)(r.modelValue),s=(0,t.computed)(()=>r.selectAllText?r.selectAllText:a(`form.multipleCheckbox.defaultButton`)),c=(0,t.computed)(()=>{let e=`bd-form-multiple-checkbox`;return r.state||(e+=` is-invalid`),r.overflow&&(e+=` overflow-form-control`),e}),l=(0,t.computed)(()=>r.errorMessage?r.errorMessage:a(`form.multipleCheckbox.defaultErrorMessage`));(0,t.watch)(()=>r.modelValue,e=>{o.value=e}),(0,t.watch)(o,e=>{i(`update:modelValue`,e),i(`on-input`,e),i(`change-department`,e)});function u(){o.value=r.options.map(e=>e.value),d()}function d(){i(`on-input`,o.value)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(c.value)},[(0,t.createVNode)(j,{variant:`outline-primary`,size:`sm`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,disabled:e.disabled},null,8,fO),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,pO)]))),128))],2),(0,t.createElementVNode)(`div`,mO,[(0,t.createVNode)(Kt),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}};function gO(e){this.content=e}gO.prototype={constructor:gO,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new gO(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new gO(n)},addToStart:function(e,t){return new gO([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new gO(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new gO(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=gO.from(e),e.size?new gO(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=gO.from(e),e.size?new gO(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=gO.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},gO.from=function(e){if(e instanceof gO)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new gO(t)};function _O(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&bO(e.charCodeAt(r-1))&&yO(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=_O(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function vO(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&bO(e.charCodeAt(i-1))&&yO(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=vO(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function yO(e){return e>=56320&&e<57344}function bO(e){return e>=55296&&e<56320}var G=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return _O(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return vO(this,e,t,n)}findIndex(e){if(e==0)return SO(0,e);if(e==this.size)return SO(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?SO(t+1,i):SO(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};G.empty=new G([],0);var xO={index:0,offset:0};function SO(e,t){return xO.index=e,xO.offset=t,xO}function CO(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!CO(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!CO(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var wO=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&CO(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};wO.none=[];var TO=class extends Error{},K=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=DO(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(EO(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(G.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};K.empty=new K(G.empty,0,0);function EO(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(EO(a.content,t-i-1,n-i-1)))}function DO(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=DO(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function OO(e,t,n){if(n.openStart>e.depth)throw new TO(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new TO(`Inconsistent open depths`);return kO(e,t,n,0)}function kO(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=kO(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return PO(a,IO(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return PO(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=LO(n,e);return PO(a,FO(e,i,o,t,r))}}function AO(e,t){if(!t.type.compatibleContent(e.type))throw new TO(`Cannot join `+t.type.name+` onto `+e.type.name)}function jO(e,t,n){let r=e.node(n);return AO(r,t.node(n)),r}function MO(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function NO(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(MO(e.nodeAfter,r),a++));for(let e=a;e<o;e++)MO(i.child(e),r);t&&t.depth==n&&t.textOffset&&MO(t.nodeBefore,r)}function PO(e,t){if(!e.type.validContent(t))throw new TO(`Invalid content for node `+e.type.name);return e.copy(t)}function FO(e,t,n,r,i){let a=e.depth>i&&jO(e,t,i+1),o=r.depth>i&&jO(n,r,i+1),s=[];return NO(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(AO(a,o),MO(PO(a,FO(e,t,n,r,i+1)),s)):(a&&MO(PO(a,IO(e,t,i+1)),s),NO(t,n,i,s),o&&MO(PO(o,IO(n,r,i+1)),s)),NO(r,null,i,s),new G(s)}function IO(e,t,n){let r=[];return NO(null,e,n,r),e.depth>n&&MO(PO(jO(e,t,n+1),IO(e,t,n+1)),r),NO(t,null,n,r),new G(r)}function LO(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(G.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var RO=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return wO.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new HO(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=VO.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else VO.set(t,r=new zO);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%BO,i}},zO=class{constructor(){this.elts=[],this.i=0}},BO=12,VO=new WeakMap,HO=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},UO=Object.create(null),WO=class e{constructor(e,t,n,r=wO.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||G.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&CO(this.attrs,t||e.defaultAttrs||UO)&&wO.sameSet(this.marks,n||wO.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return K.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new K(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return OO(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return RO.resolveCached(this,e)}resolveNoCache(e){return RO.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),KO(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=G.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=wO.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!wO.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=G.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};WO.prototype.text=void 0;var GO=class e extends WO{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):KO(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function KO(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var qO=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new JO(t,n);if(r.next==null)return e.empty;let i=YO(r);r.next&&r.err(`Unexpected trailing text`);let a=ak(nk(i));return ok(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return G.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
1696
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function xy(e,t){if(e){if(typeof e==`string`)return Sy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sy(e,t):void 0}}function Sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Cy={name:`FileUpload`,extends:fy,inheritAttrs:!1,emits:[`select`,`uploader`,`before-upload`,`progress`,`upload`,`error`,`before-send`,`clear`,`remove`,`remove-uploaded-file`],duplicateIEEvent:!1,data:function(){return{uploadedFileCount:0,files:[],messages:[],focused:!1,progress:null,uploadedFiles:[]}},methods:{upload:function(){this.hasFiles&&this.uploader()},onBasicUploaderClick:function(e){e.button===0&&this.$refs.fileInput.click()},onFileSelect:function(e){if(e.type!==`drop`&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.isBasic&&this.hasFiles&&(this.files=[]),this.messages=[],this.files=this.files||[];var t=by(e.dataTransfer?e.dataTransfer.files:e.target.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;!this.isFileSelected(r)&&!this.isFileLimitExceeded()&&this.validate(r)&&(this.isImage(r)&&(r.objectURL=window.URL.createObjectURL(r)),this.files.push(r))}}catch(e){t.e(e)}finally{t.f()}this.$emit(`select`,{originalEvent:e,files:this.files}),this.fileLimit&&this.checkFileLimit(),this.auto&&this.hasFiles&&!this.isFileLimitExceeded()&&this.uploader(),e.type!==`drop`&&this.isIE11()?this.clearIEInput():this.clearInputElement()},choose:function(){this.$refs.fileInput.click()},uploader:function(){var e=this;if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.$emit(`uploader`,{files:this.files});else{var t=new XMLHttpRequest,n=new FormData;this.$emit(`before-upload`,{xhr:t,formData:n});var r=by(this.files),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;n.append(this.name,a,a.name)}}catch(e){r.e(e)}finally{r.f()}t.upload.addEventListener(`progress`,function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded*100/t.total)),e.$emit(`progress`,{originalEvent:t,progress:e.progress})}),t.onreadystatechange=function(){if(t.readyState===4){if(e.progress=0,t.status>=200&&t.status<300){var n;e.fileLimit&&(e.uploadedFileCount+=e.files.length),e.$emit(`upload`,{xhr:t,files:e.files}),(n=e.uploadedFiles).push.apply(n,gy(e.files))}else e.$emit(`error`,{xhr:t,files:e.files});e.clear()}},this.url&&(t.open(`POST`,this.url,!0),this.$emit(`before-send`,{xhr:t,formData:n}),t.withCredentials=this.withCredentials,t.send(n))}},clear:function(){this.files=[],this.messages=null,this.$emit(`clear`),this.isAdvanced&&this.clearInputElement()},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},isFileSelected:function(e){if(this.files&&this.files.length){var t=by(this.files),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(r.name+r.type+r.size===e.name+e.type+e.size)return!0}}catch(e){t.e(e)}finally{t.f()}}return!1},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode},validate:function(e){return this.accept&&!this.isFileTypeValid(e)?(this.messages.push(this.invalidFileTypeMessage.replace(`{0}`,e.name).replace(`{1}`,this.accept)),!1):this.maxFileSize&&e.size>this.maxFileSize?(this.messages.push(this.invalidFileSizeMessage.replace(`{0}`,e.name).replace(`{1}`,this.formatSize(this.maxFileSize))),!1):!0},isFileTypeValid:function(e){var t=by(this.accept.split(`,`).map(function(e){return e.trim()})),n;try{for(t.s();!(n=t.n()).done;){var r=n.value;if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0}}catch(e){t.e(e)}finally{t.f()}return!1},getTypeClass:function(e){return e.substring(0,e.indexOf(`/`))},isWildcard:function(e){return e.indexOf(`*`)!==-1},getFileExtension:function(e){return`.`+e.name.split(`.`).pop()},isImage:function(e){return/^image\//.test(e.type)},onDragEnter:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(e.stopPropagation(),e.preventDefault())},onDragOver:function(e){!this.disabled&&(!this.hasFiles||this.multiple)&&(!this.isUnstyled&&Sd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!0),e.stopPropagation(),e.preventDefault())},onDragLeave:function(){this.disabled||(!this.isUnstyled&&Cd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1))},onDrop:function(e){if(!this.disabled){!this.isUnstyled&&Cd(this.$refs.content,`p-fileupload-highlight`),this.$refs.content&&this.$refs.content.setAttribute(`data-p-highlight`,!1),e.stopPropagation(),e.preventDefault();var t=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||t&&t.length===1)&&this.onFileSelect(e)}},remove:function(e){this.clearInputElement();var t=this.files.splice(e,1)[0];this.files=gy(this.files),this.$emit(`remove`,{file:t,files:this.files})},removeUploadedFile:function(e){var t=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=gy(this.uploadedFiles),this.$emit(`remove-uploaded-file`,{file:t,files:this.uploadedFiles})},clearInputElement:function(){this.$refs.fileInput.value=``},clearIEInput:function(){this.$refs.fileInput&&(this.duplicateIEEvent=!0,this.$refs.fileInput.value=``)},formatSize:function(e){var t=1024,n=3,r=this.$primevue.config.locale?.fileSizeTypes||[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(e===0)return`0 ${r[0]}`;var i=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/t**+i).toFixed(n))} ${r[i]}`},isFileLimitExceeded:function(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focused&&(this.focused=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount},checkFileLimit:function(){this.isFileLimitExceeded()&&this.messages.push(this.invalidFileLimitMessage.replace(`{0}`,this.fileLimit.toString()))},onMessageClose:function(){this.messages=null}},computed:{isAdvanced:function(){return this.mode===`advanced`},isBasic:function(){return this.mode===`basic`},chooseButtonClass:function(){return[this.cx(`pcChooseButton`),this.class]},basicFileChosenLabel:function(){if(this.auto)return this.chooseButtonLabel;if(this.hasFiles){var e;return this.files&&this.files.length===1?this.files[0].name:(e=this.$primevue.config.locale)==null||(e=e.fileChosenMessage)==null?void 0:e.replace(`{0}`,this.files.length)}return this.$primevue.config.locale?.noFileChosenMessage||``},hasFiles:function(){return this.files&&this.files.length>0},hasUploadedFiles:function(){return this.uploadedFiles&&this.uploadedFiles.length>0},chooseDisabled:function(){return this.disabled||this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount},uploadDisabled:function(){return this.disabled||!this.hasFiles||this.fileLimit&&this.fileLimit<this.files.length},cancelDisabled:function(){return this.disabled||!this.hasFiles},chooseButtonLabel:function(){return this.chooseLabel||this.$primevue.config.locale.choose},uploadButtonLabel:function(){return this.uploadLabel||this.$primevue.config.locale.upload},cancelButtonLabel:function(){return this.cancelLabel||this.$primevue.config.locale.cancel},completedLabel:function(){return this.$primevue.config.locale.completed},pendingLabel:function(){return this.$primevue.config.locale.pending}},components:{Button:Um,ProgressBar:ay,Message:Gv,FileContent:py,PlusIcon:hv,UploadIcon:jv,TimesIcon:Cv},directives:{ripple:jm}},wy=[`multiple`,`accept`,`disabled`],Ty=[`accept`,`disabled`,`multiple`];function Ey(e,n,r,i,a,o){var s=(0,t.resolveComponent)(`Button`),c=(0,t.resolveComponent)(`ProgressBar`),l=(0,t.resolveComponent)(`Message`),u=(0,t.resolveComponent)(`FileContent`);return o.isAdvanced?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:0,class:e.cx(`root`)},e.ptmi(`root`)),[(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`fileInput`,type:`file`,onChange:n[0]||=function(){return o.onFileSelect&&o.onFileSelect.apply(o,arguments)},multiple:e.multiple,accept:e.accept,disabled:o.chooseDisabled},e.ptm(`input`)),null,16,wy),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`header`)},e.ptm(`header`)),[(0,t.renderSlot)(e.$slots,`header`,{files:a.files,uploadedFiles:a.uploadedFiles,chooseCallback:o.choose,uploadCallback:o.uploader,clearCallback:o.clear},function(){return[(0,t.createVNode)(s,(0,t.mergeProps)({label:o.chooseButtonLabel,class:o.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onClick:o.choose,onKeydown:(0,t.withKeys)(o.choose,[`enter`]),onFocus:o.onFocus,onBlur:o.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,t.mergeProps)({class:[n.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onClick`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.showUploadButton?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:0,class:e.cx(`pcUploadButton`),label:o.uploadButtonLabel,onClick:o.uploader,disabled:o.uploadDisabled,unstyled:e.unstyled},e.uploadButtonProps,{pt:e.ptm(`pcUploadButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`uploadicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.uploadIcon?`span`:`UploadIcon`),(0,t.mergeProps)({class:[n.class,e.uploadIcon],"aria-hidden":`true`},e.ptm(`pcUploadButton`).icon,{"data-pc-section":`uploadbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,t.createCommentVNode)(``,!0),e.showCancelButton?((0,t.openBlock)(),(0,t.createBlock)(s,(0,t.mergeProps)({key:1,class:e.cx(`pcCancelButton`),label:o.cancelButtonLabel,onClick:o.clear,disabled:o.cancelDisabled,unstyled:e.unstyled},e.cancelButtonProps,{pt:e.ptm(`pcCancelButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`cancelicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.cancelIcon?`span`:`TimesIcon`),(0,t.mergeProps)({class:[n.class,e.cancelIcon],"aria-hidden":`true`},e.ptm(`pcCancelButton`).icon,{"data-pc-section":`cancelbuttonicon`}),null,16,[`class`]))]})]}),_:3},16,[`class`,`label`,`onClick`,`disabled`,`unstyled`,`pt`])):(0,t.createCommentVNode)(``,!0)]})],16),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({ref:`content`,class:e.cx(`content`),onDragenter:n[1]||=function(){return o.onDragEnter&&o.onDragEnter.apply(o,arguments)},onDragover:n[2]||=function(){return o.onDragOver&&o.onDragOver.apply(o,arguments)},onDragleave:n[3]||=function(){return o.onDragLeave&&o.onDragLeave.apply(o,arguments)},onDrop:n[4]||=function(){return o.onDrop&&o.onDrop.apply(o,arguments)}},e.ptm(`content`),{"data-p-highlight":!1}),[(0,t.renderSlot)(e.$slots,`content`,{files:a.files,uploadedFiles:a.uploadedFiles,removeUploadedFileCallback:o.removeUploadedFile,removeFileCallback:o.remove,progress:a.progress,messages:a.messages},function(){return[o.hasFiles?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,value:a.progress,showValue:!1,unstyled:e.unstyled,pt:e.ptm(`pcProgressbar`)},null,8,[`value`,`unstyled`,`pt`])):(0,t.createCommentVNode)(``,!0),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.messages,function(n){return(0,t.openBlock)(),(0,t.createBlock)(l,{key:n,severity:`error`,onClose:o.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,t.withCtx)(function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(n),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),o.hasFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:1,class:(0,t.normalizeClass)(e.cx(`fileList`))},[(0,t.createVNode)(u,{files:a.files,onRemove:o.remove,badgeValue:o.pendingLabel,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,t.createCommentVNode)(``,!0),o.hasUploadedFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:2,class:(0,t.normalizeClass)(e.cx(`fileList`))},[(0,t.createVNode)(u,{files:a.uploadedFiles,onRemove:o.removeUploadedFile,badgeValue:o.completedLabel,badgeSeverity:`success`,previewWidth:e.previewWidth,templates:e.$slots,unstyled:e.unstyled,pt:e.pt},null,8,[`files`,`onRemove`,`badgeValue`,`previewWidth`,`templates`,`unstyled`,`pt`])],2)):(0,t.createCommentVNode)(``,!0)]}),e.$slots.empty&&!o.hasFiles&&!o.hasUploadedFiles?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.normalizeProps)((0,t.mergeProps)({key:0},e.ptm(`empty`))),[(0,t.renderSlot)(e.$slots,`empty`)],16)):(0,t.createCommentVNode)(``,!0)],16)],16)):o.isBasic?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:1,class:e.cx(`root`)},e.ptmi(`root`)),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.messages,function(n){return(0,t.openBlock)(),(0,t.createBlock)(l,{key:n,severity:`error`,onClose:o.onMessageClose,unstyled:e.unstyled,pt:e.ptm(`pcMessage`)},{default:(0,t.withCtx)(function(){return[(0,t.createTextVNode)((0,t.toDisplayString)(n),1)]}),_:2},1032,[`onClose`,`unstyled`,`pt`])}),128)),(0,t.createElementVNode)(`div`,(0,t.mergeProps)({class:e.cx(`basicContent`)},e.ptm(`basicContent`)),[(0,t.createVNode)(s,(0,t.mergeProps)({label:o.chooseButtonLabel,class:o.chooseButtonClass,style:e.style,disabled:e.disabled,unstyled:e.unstyled,onMouseup:o.onBasicUploaderClick,onKeydown:(0,t.withKeys)(o.choose,[`enter`]),onFocus:o.onFocus,onBlur:o.onBlur},e.chooseButtonProps,{pt:e.ptm(`pcChooseButton`)}),{icon:(0,t.withCtx)(function(n){return[(0,t.renderSlot)(e.$slots,`chooseicon`,{},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.chooseIcon?`span`:`PlusIcon`),(0,t.mergeProps)({class:[n.class,e.chooseIcon],"aria-hidden":`true`},e.ptm(`pcChooseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`label`,`class`,`style`,`disabled`,`unstyled`,`onMouseup`,`onKeydown`,`onFocus`,`onBlur`,`pt`]),e.auto?(0,t.createCommentVNode)(``,!0):(0,t.renderSlot)(e.$slots,`filelabel`,{key:0,class:(0,t.normalizeClass)(e.cx(`filelabel`)),files:a.files},function(){return[(0,t.createElementVNode)(`span`,{class:(0,t.normalizeClass)(e.cx(`filelabel`))},(0,t.toDisplayString)(o.basicFileChosenLabel),3)]}),(0,t.createElementVNode)(`input`,(0,t.mergeProps)({ref:`fileInput`,type:`file`,accept:e.accept,disabled:e.disabled,multiple:e.multiple,onChange:n[5]||=function(){return o.onFileSelect&&o.onFileSelect.apply(o,arguments)},onFocus:n[6]||=function(){return o.onFocus&&o.onFocus.apply(o,arguments)},onBlur:n[7]||=function(){return o.onBlur&&o.onBlur.apply(o,arguments)}},e.ptm(`input`)),null,16,Ty)],16)],16)):(0,t.createCommentVNode)(``,!0)}Cy.render=Ey;var Dy={notFoundTemplate:{title:`Page not found`,description:`The page you're looking for couldn't be found. Check the URL or go back to the mainpage.`,buttonDefault:`Back to mainpage`},practitionerHeader:{tooltipAcademy:`BeterDichtbij Academie`,menuItemAcademy:`Academie`},videoCallTemplate:{signalStrength:{weak:`Weak signal`,steady:`Moderate signal`,strong:`Strong signal`},actions:{fullScreen:`Full screen`,miniPlayer:`Mini player`,shareScreen:`Share screen`,stopSharingScreen:`Stop sharing screen`,testCall:`Run the video call test`,serviceDesk:`Service desk`,endCall:`End call`,closeWindow:`Close window`,switchCamera:`Switch camera`},help:{placeholderSettingsHelpTitle:`Connection issues?`,placeholderSettingsHelpMessage:`End the call and try again.`},statusTextMessage:{initializing:`Initializing...`,dialing:`Calling...`,ringing:`Phone is ringing`,answered:`Call answered`,connected:`Connected`,videoCallDeclined:`The call could not be answered right now.`,videoCallHangedUp:`Call has ended.`,devicePermissionDenied:`A call cannot be started`,callNotDelivered:`The video call does not arrive on the {participantRole}'s mobile phone or tablet.`,signalHold:`Video call connection with {participantRole}'s phone/tablet could not be established`,connectionIssues:`Connection issues`},statusDetailMessage:{notAnsweredDetail:`{participantRole} does not appear to answer.`,noVideoHint:`No video? Run the video call test.`,callNotDeliveredDetail:`Asking {participantRole} to log in again in the BeterDichtbij app often resolves this.`,connectionIssuesMedium:`The connection is unstable.`,connectionIssuesStrong:`The connection seems lost. Check internet connection and try again.`,signalHoldDetail:`Run the video call test.`},permissions:{permissionDeniedForVideo:`No access to camera`,permissionDeniedForAudio:`No access to microphone`},cameraAvailability:{hasNoAvailableCamera:`No camera available.`,hasOneAvailableCamera:`One camera is available.`,hasMultipleAvailableCameras:`Multiple cameras are available.`},endReasons:{0:`{participantRole} ended the call.`,4:`The app was closed.`,5:`{participantRole} ended the call.`,6:`BeterDichtbij call screen was closed.`,10:`{participantRole} waited too long to answer.`,12:`Network or camera issue on {participantRole} side. Check internet and camera permission.`,20:`{participantRole} pressed Back while the phone was ringing.`,21:`Call was hung up.`,22:`{participantRole} pressed Home while the phone was ringing.`,23:`{participantRole} waited too long to answer.`,24:`{participantRole} clicked Yes in the popup.`,25:`{participantRole} ended the call.`,26:`The app moved to background on phone/tablet.`,33:`Outdated app version. Ask {participantRole} to update the BeterDichtbij app.`},unknown:`Unknown message`}},Oy={activeFilters:{title:`Actieve filters`,clearAll:`Wis alle filters`},assignConversationModal:{title:`Gesprek overdragen`,submitButton:`Gesprek overdragen`,conclude:`Afhandelen bij de overdracht`,concludeTooltip:`Het gesprek blijft beschikbaar, deze wordt getoond als het filter "afgehandeld" is geselecteerd. Je patiënt kan ook nog gewoon reageren.`,makeUnread:`Gesprek op ongelezen zetten`},attachmentUploadModal:{title:`Bijlage toevoegen`,submitButton:`Toevoegen`,infoMessage:`Kies je bestand.`,addAttachmentButton:`Bijlage toevoegen`,errorMessage:`Fout opgetreden`,fileTooBigErrorMessage:`Bestand is te groot.`,fileSizeExceededMessage:`Bestanden mogen maximaal 10 MB groot zijn.`},changePasswordTemplate:{toasters:{reset:`De velden zijn geleegd.`}},contentLibraryCard:{insert:`Invoegen`},contentLibraryCardMessageTemplate:{insert:`Invoegen`,collapseOpen:`Inklappen`,collapseClosed:`Lees meer`,popoverIsSharedByOtherUser:`Dit bericht kan alleen door de eigenaar of beheerder aangepast worden`,delete:`Verwijderen`,edit:`Wijzigen`},contentLibraryOverview:{noResults:`Er zijn geen berichten gevonden voor deze zoekterm of filters; pas ze aan om opnieuw te zoeken.`},contentLibrarySplitButton:{messageTemplatesTitle:`Standaardberichten`},contentLibraryTemplate:{changeCategoryButtonLabel:`Mijn categorieën aanpassen`,newMessageText:`Nieuw bericht`,message:`Bericht`,messages:`Berichten`,more:`Meer`,less:`Minder`,searchPlaceholder:`Zoek een bericht`,searchPlaceholderSearch:`Vul een zoekterm in om resultaten te tonen`},conversationToTextModal:{copyButton:`Kopieer selectie naar klembord`,copySuccess:`Het gesprek is gekopieerd naar het klembord.`,onBehalfOf:`namens`,prefix:`Communicatie vanuit BeterDichtbij`,selectAll:`Alles selecteren`,systemMessage:`Tussentijdse mededeling`},imageAttachmentModal:{download:`Download afbeelding`,loading:`Afbeelding aan het laden`},fileUpload:{errorMessage:`Er is een fout opgetreden tijdens het uploaden van het bestand.`},filterCard:{more:`Meer`,less:`Minder`},messageTemplateFormModal:{createTitle:`Standaardbericht toevoegen`,editTitle:`Standaardbericht wijzigen`,titleLabel:`Titel`,titlePlaceHolder:`Zwelling na botbreuk`,replyTemplateLabel:`Standaardbericht`,replyTemplatePlaceHolder:`Schrijf hier jouw bericht naar de patiënt`,sharedWithLabel:`Delen met`,owner:`Eigenaar`,ownerPlaceholder:`Selecteer eigenaar`,tooltipOwner:`Als het bericht met meerdere instanties (teams) gedeeld wordt, kunje alleen zelf eigenaar worden`,categoryLabel:`Categorie`,categoryPlaceholderDropdown:`Selecteer categorie of maak een nieuwe aan`,validation:`Dit veld is verplicht.`},notFoundTemplate:{title:`Pagina niet gevonden`,description:`De pagina die je zoekt kon niet gevonden worden. Controleer de URL of ga terug naar de hoofdpagina.`,buttonDefault:`Terug naar hoofdpagina`},practitionerHeader:{academyTooltip:`BeterDichtbij Academie`,academyMenuItem:`Academie`},videoCallConfirmationModal:{title:`Beeldbellen`,cancel:`Nee`,close:`Sluiten`,ok:`Ja`,message:`Weet je zeker dat je wilt beeldbellen?`,participantMessage:`Weet je zeker dat je wilt beeldbellen met`,testMessage:`Doe de beeldbeltest`,noMobileActivationMessage:`gebruikt BeterDichtbij via de web applicatie waardoor beeldbellen niet mogelijk is. Vraag de patiënt om de app te installeren op een mobiele telefoon of tablet.`,noCompatibleDevices:`gebruikt mogelijk een mobiele telefoon of tablet die beeldbellen niet ondersteunt. Het is daarom momenteel niet mogelijk om te beeldbellen met deze patiënt.`,generalWarning:`Beeldbellen is niet mogelijk om de volgende redenen:`,cameraPermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de camera door BeterDichtbij.`,microphonePermissionMissing:`Je hebt geen toestemming gegeven voor gebruik van de microfoon door BeterDichtbij.`,helpMessage:`om te controleren of je camera en microfoon goed werken.`},videoCallTemplate:{signalStrength:{weak:`Zwak signaal`,steady:`Matig signaal`,strong:`Sterk signaal`},actions:{fullScreen:`Volledig scherm`,miniPlayer:`Mini player`,shareScreen:`Scherm delen`,stopSharingScreen:`Stop scherm delen`,testCall:`Doe de beeldbeltest`,serviceDesk:`Servicedesk`,endCall:`Gesprek beëindigen`,closeWindow:`Venster sluiten`,switchCamera:`Wissel camera`},help:{placeholderSettingsHelpTitle:`Problemen met de verbinding?`,placeholderSettingsHelpMessage:`Sluit het gesprek en probeer opnieuw te bellen.`},statusTextMessage:{initializing:`Bezig met opstarten...`,dialing:`Bellen...`,ringing:`Telefoon gaat over`,answered:`Er is opgenomen`,connected:`Verbonden`,videoCallDeclined:`Er kon op dit moment niet worden opgenomen.`,videoCallHangedUp:`Er is opgehangen.`,devicePermissionDenied:`Er kan geen gesprek worden gestart`,callNotDelivered:`Beeldbelgesprek komt niet aan op de mobiele telefoon of tablet van de {participantRole}.`,signalHold:`Beeldbel verbinding met {participantRole} zijn telefoon/tablet komt niet tot stand`,connectionIssues:`Connectie problemen`},statusDetailMessage:{notAnsweredDetail:`{participantRole} lijkt niet op te nemen.`,noVideoHint:`Geen beeld? Doe de beeldbel kwaliteit test.`,callNotDeliveredDetail:`De {participantRole} opnieuw laten inloggen in de BeterDichtbij app lost het probleem vaak op.`,connectionIssuesMedium:`De verbinding is instabiel.`,connectionIssuesStrong:`De verbinding lijkt verbroken. Controleer internetverbinding en probeer opnieuw.`,signalHoldDetail:`Doe de beeldbel kwaliteit test.`},permissions:{permissionDeniedForVideo:`Geen toegang beschikbaar tot de camera`,permissionDeniedForAudio:`Er is geen toegang beschikbaar tot uw microfoon`},cameraAvailability:{hasNoAvailableCamera:`Er is geen camera beschikbaar.`,hasOneAvailableCamera:`Er is één camera beschikbaar.`,hasMultipleAvailableCameras:`Er zijn meerdere camera's beschikbaar.`},endReasons:{0:`{participantRole} heeft gesprek beëindigd.`,4:`App is afgesloten.`,5:`{participantRole} heeft gesprek beëindigd.`,6:`BeterDichtbij gespreksscherm is afgesloten.`,10:`{participantRole} heeft te lang gewacht met opnemen.`,12:`Netwerk issue of camera issue bij de {participantRole}. Controleer internet en camera-toestemming bij de {participantRole}.`,20:`{participantRole} heeft de Terug-knop ingedrukt terwijl de telefoon overging.`,21:`Gesprek opgehangen.`,22:`{participantRole} heeft Home ingedrukt terwijl de telefoon overging.`,23:`{participantRole} heeft te lang gewacht met opnemen.`,24:`{participantRole} heeft Ja geklikt in de pop-up.`,25:`{participantRole} heeft gesprek beëindigd.`,26:`App is naar de achtergrond gegaan op telefoon/tablet.`,33:`Verouderde versie van de app. Vraag de {participantRole} om de BeterDichtbij app te updaten.`},unknown:`Onbekende melding`}},ky=Gu({legacy:!1,locale:`nl`,messages:{en:{...Dy},nl:{...Oy}}}),Ay=`bottom`,jy=`right`,My=`left`,Ny=`auto`,Py=[`top`,Ay,jy,My],Fy=`start`,Iy=`clippingParents`,Ly=`viewport`,Ry=`popper`,zy=`reference`,By=Py.reduce(function(e,t){return e.concat([t+`-`+Fy,t+`-end`])},[]),Vy=[].concat(Py,[Ny]).reduce(function(e,t){return e.concat([t,t+`-`+Fy,t+`-end`])},[]),Hy=`beforeRead`,Uy=`read`,Wy=`afterRead`,Gy=`beforeMain`,Ky=`main`,qy=`afterMain`,Jy=`beforeWrite`,Yy=`write`,Xy=`afterWrite`,Zy=[Hy,Uy,Wy,Gy,Ky,qy,Jy,Yy,Xy];function Qy(e){return e?(e.nodeName||``).toLowerCase():null}function $y(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eb(e){return e instanceof $y(e).Element||e instanceof Element}function tb(e){return e instanceof $y(e).HTMLElement||e instanceof HTMLElement}function nb(e){return typeof ShadowRoot>`u`?!1:e instanceof $y(e).ShadowRoot||e instanceof ShadowRoot}function rb(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!tb(i)||!Qy(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function ib(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!tb(r)||!Qy(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ab={name:`applyStyles`,enabled:!0,phase:`write`,fn:rb,effect:ib,requires:[`computeStyles`]};function ob(e){return e.split(`-`)[0]}var sb=Math.max,cb=Math.min,lb=Math.round;function ub(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function db(){return!/^((?!chrome|android).)*safari/i.test(ub())}function fb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&tb(e)&&(i=e.offsetWidth>0&&lb(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&lb(r.height)/e.offsetHeight||1);var o=(eb(e)?$y(e):window).visualViewport,s=!db()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function pb(e){var t=fb(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function mb(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&nb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hb(e){return $y(e).getComputedStyle(e)}function gb(e){return[`table`,`td`,`th`].indexOf(Qy(e))>=0}function _b(e){return((eb(e)?e.ownerDocument:e.document)||window.document).documentElement}function vb(e){return Qy(e)===`html`?e:e.assignedSlot||e.parentNode||(nb(e)?e.host:null)||_b(e)}function yb(e){return!tb(e)||hb(e).position===`fixed`?null:e.offsetParent}function bb(e){var t=/firefox/i.test(ub());if(/Trident/i.test(ub())&&tb(e)&&hb(e).position===`fixed`)return null;var n=vb(e);for(nb(n)&&(n=n.host);tb(n)&&[`html`,`body`].indexOf(Qy(n))<0;){var r=hb(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function xb(e){for(var t=$y(e),n=yb(e);n&&gb(n)&&hb(n).position===`static`;)n=yb(n);return n&&(Qy(n)===`html`||Qy(n)===`body`&&hb(n).position===`static`)?t:n||bb(e)||t}function Sb(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function Cb(e,t,n){return sb(e,cb(t,n))}function wb(e,t,n){var r=Cb(e,t,n);return r>n?n:r}function Tb(){return{top:0,right:0,bottom:0,left:0}}function Eb(e){return Object.assign({},Tb(),e)}function Db(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Ob=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Eb(typeof e==`number`?Db(e,Py):e)};function kb(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=ob(n.placement),c=Sb(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Ob(i.padding,n),d=pb(a),f=c===`y`?`top`:My,p=c===`y`?Ay:jy,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=xb(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=Cb(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Ab(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||mb(t.elements.popper,r)&&(t.elements.arrow=r))}var jb={name:`arrow`,enabled:!0,phase:`main`,fn:kb,effect:Ab,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Mb(e){return e.split(`-`)[1]}var Nb={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function Pb(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:lb(n*i)/i||0,y:lb(r*i)/i||0}}function Fb(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=My,b=`top`,x=window;if(l){var S=xb(n),C=`clientHeight`,w=`clientWidth`;if(S===$y(n)&&(S=_b(n),hb(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Ay;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=jy;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Nb),O=u===!0?Pb({x:p,y:h},$y(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Ib(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:ob(t.placement),variation:Mb(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fb(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fb(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Lb={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Ib,data:{}},Rb={passive:!0};function zb(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=$y(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Rb)}),s&&c.addEventListener(`resize`,n.update,Rb),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Rb)}),s&&c.removeEventListener(`resize`,n.update,Rb)}}var Bb={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:zb,data:{}},Vb={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Hb(e){return e.replace(/left|right|bottom|top/g,function(e){return Vb[e]})}var Ub={start:`end`,end:`start`};function Wb(e){return e.replace(/start|end/g,function(e){return Ub[e]})}function Gb(e){var t=$y(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kb(e){return fb(_b(e)).left+Gb(e).scrollLeft}function qb(e,t){var n=$y(e),r=_b(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=db();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Kb(e),y:c}}function Jb(e){var t=_b(e),n=Gb(e),r=e.ownerDocument?.body,i=sb(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=sb(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Kb(e),s=-n.scrollTop;return hb(r||t).direction===`rtl`&&(o+=sb(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function Yb(e){var t=hb(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Xb(e){return[`html`,`body`,`#document`].indexOf(Qy(e))>=0?e.ownerDocument.body:tb(e)&&Yb(e)?e:Xb(vb(e))}function Zb(e,t){t===void 0&&(t=[]);var n=Xb(e),r=n===e.ownerDocument?.body,i=$y(n),a=r?[i].concat(i.visualViewport||[],Yb(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Zb(vb(a)))}function Qb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $b(e,t){var n=fb(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ex(e,t,n){return t===`viewport`?Qb(qb(e,n)):eb(t)?$b(t,n):Qb(Jb(_b(e)))}function tx(e){var t=Zb(vb(e)),n=[`absolute`,`fixed`].indexOf(hb(e).position)>=0&&tb(e)?xb(e):e;return eb(n)?t.filter(function(e){return eb(e)&&mb(e,n)&&Qy(e)!==`body`}):[]}function nx(e,t,n,r){var i=t===`clippingParents`?tx(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=ex(e,n,r);return t.top=sb(i.top,t.top),t.right=cb(i.right,t.right),t.bottom=cb(i.bottom,t.bottom),t.left=sb(i.left,t.left),t},ex(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function rx(e){var t=e.reference,n=e.element,r=e.placement,i=r?ob(r):null,a=r?Mb(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Ay:c={x:o,y:t.y+t.height};break;case jy:c={x:t.x+t.width,y:s};break;case My:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Sb(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Fy:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function ix(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Iy:s,l=n.rootBoundary,u=l===void 0?Ly:l,d=n.elementContext,f=d===void 0?Ry:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Eb(typeof g==`number`?Db(g,Py):g),v=f===`popper`?zy:Ry,y=e.rects.popper,b=e.elements[m?v:f],x=nx(eb(b)?b:b.contextElement||_b(e.elements.popper),c,u,o),S=fb(e.elements.reference),C=rx({reference:S,element:y,strategy:`absolute`,placement:i}),w=Qb(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function ax(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Vy:c,u=Mb(r),d=u?s?By:By.filter(function(e){return Mb(e)===u}):Py,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=ix(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[ob(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function ox(e){if(ob(e)===`auto`)return[];var t=Hb(e);return[Wb(e),t,Wb(t)]}function sx(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=ob(g)===g,v=c||(_||!m?[Hb(g)]:ox(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(ob(n)===`auto`?ax(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=ob(E),O=Mb(E)===Fy,ee=[`top`,Ay].indexOf(D)>=0,te=ee?`width`:`height`,k=ix(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),ne=ee?O?jy:My:O?Ay:`top`;b[te]>x[te]&&(ne=Hb(ne));var re=Hb(ne),ie=[];if(a&&ie.push(k[D]<=0),s&&ie.push(k[ne]<=0,k[re]<=0),ie.every(function(e){return e})){w=E,C=!1;break}S.set(E,ie)}if(C)for(var ae=m?3:1,oe=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},se=ae;se>0&&oe(se)!==`break`;se--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var cx={name:`flip`,enabled:!0,phase:`main`,fn:sx,requiresIfExists:[`offset`],data:{_skip:!1}};function lx(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ux(e){return[`top`,jy,Ay,My].some(function(t){return e[t]>=0})}function dx(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=ix(t,{elementContext:`reference`}),s=ix(t,{altBoundary:!0}),c=lx(o,r),l=lx(s,i,a),u=ux(c),d=ux(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var fx={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:dx};function px(e,t,n){var r=ob(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function mx(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Vy.reduce(function(e,n){return e[n]=px(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var hx={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:mx};function gx(e){var t=e.state,n=e.name;t.modifiersData[n]=rx({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var _x={name:`popperOffsets`,enabled:!0,phase:`read`,fn:gx,data:{}};function vx(e){return e===`x`?`y`:`x`}function yx(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=ix(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=ob(t.placement),v=Mb(t.placement),y=!v,b=Sb(_),x=vx(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:My,te=b===`y`?Ay:jy,k=b===`y`?`height`:`width`,ne=S[b],re=ne+g[ee],ie=ne-g[te],ae=p?-w[k]/2:0,oe=v===`start`?C[k]:w[k],se=v===`start`?-w[k]:-C[k],ce=t.elements.arrow,le=p&&ce?pb(ce):{width:0,height:0},ue=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Tb(),de=ue[ee],fe=ue[te],pe=Cb(0,C[k],le[k]),me=y?C[k]/2-ae-pe-de-E.mainAxis:oe-pe-de-E.mainAxis,he=y?-C[k]/2+ae+pe+fe+E.mainAxis:se+pe+fe+E.mainAxis,ge=t.elements.arrow&&xb(t.elements.arrow),_e=ge?b===`y`?ge.clientTop||0:ge.clientLeft||0:0,ve=D?.[b]??0,ye=ne+me-ve-_e,be=ne+he-ve,xe=Cb(p?cb(re,ye):re,ne,p?sb(ie,be):ie);S[b]=xe,O[b]=xe-ne}if(s){var Se=b===`x`?`top`:My,Ce=b===`x`?Ay:jy,we=S[x],Te=x===`y`?`height`:`width`,Ee=we+g[Se],De=we-g[Ce],Oe=[`top`,My].indexOf(_)!==-1,A=D?.[x]??0,ke=Oe?Ee:we-C[Te]-w[Te]-A+E.altAxis,Ae=Oe?we+C[Te]+w[Te]-A-E.altAxis:De,je=p&&Oe?wb(ke,we,Ae):Cb(p?ke:Ee,we,p?Ae:De);S[x]=je,O[x]=je-we}t.modifiersData[r]=O}}var bx={name:`preventOverflow`,enabled:!0,phase:`main`,fn:yx,requiresIfExists:[`offset`]};function xx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Sx(e){return e===$y(e)||!tb(e)?Gb(e):xx(e)}function Cx(e){var t=e.getBoundingClientRect(),n=lb(t.width)/e.offsetWidth||1,r=lb(t.height)/e.offsetHeight||1;return n!==1||r!==1}function wx(e,t,n){n===void 0&&(n=!1);var r=tb(t),i=tb(t)&&Cx(t),a=_b(t),o=fb(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Qy(t)!==`body`||Yb(a))&&(s=Sx(t)),tb(t)?(c=fb(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Kb(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Tx(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Ex(e){var t=Tx(e);return Zy.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Dx(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Ox(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var kx={placement:`bottom`,modifiers:[],strategy:`absolute`};function Ax(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function jx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?kx:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},kx,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:eb(e)?Zb(e):e.contextElement?Zb(e.contextElement):[],popper:Zb(t)};var s=Ex(Ox([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Ax(t,n)){i.rects={reference:wx(t,xb(n),i.options.strategy===`fixed`),popper:pb(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Dx(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Ax(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Mx=jx(),Nx=jx({defaultModifiers:[Bb,_x,Lb,ab]}),Px=jx({defaultModifiers:[Bb,_x,Lb,ab,hx,cx,bx,jb,fx]}),Fx=f({afterMain:()=>qy,afterRead:()=>Wy,afterWrite:()=>Xy,applyStyles:()=>ab,arrow:()=>jb,auto:()=>Ny,basePlacements:()=>Py,beforeMain:()=>Gy,beforeRead:()=>Hy,beforeWrite:()=>Jy,bottom:()=>Ay,clippingParents:()=>Iy,computeStyles:()=>Lb,createPopper:()=>Px,createPopperBase:()=>Mx,createPopperLite:()=>Nx,detectOverflow:()=>ix,end:()=>`end`,eventListeners:()=>Bb,flip:()=>cx,hide:()=>fx,left:()=>My,main:()=>Ky,modifierPhases:()=>Zy,offset:()=>hx,placements:()=>Vy,popper:()=>Ry,popperGenerator:()=>jx,popperOffsets:()=>_x,preventOverflow:()=>bx,read:()=>Uy,reference:()=>zy,right:()=>jy,start:()=>Fy,top:()=>`top`,variationPlacements:()=>By,viewport:()=>Ly,write:()=>Yy}),Ix=new Map,Lx={set(e,t,n){Ix.has(e)||Ix.set(e,new Map);let r=Ix.get(e);if(!r.has(t)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(t,n)},get(e,t){return Ix.has(e)&&Ix.get(e).get(t)||null},remove(e,t){if(!Ix.has(e))return;let n=Ix.get(e);n.delete(t),n.size===0&&Ix.delete(e)}},Rx=1e6,zx=1e3,Bx=`transitionend`,Vx=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),Hx=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Ux=e=>{do e+=Math.floor(Math.random()*Rx);while(document.getElementById(e));return e},Wx=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);return!Number.parseFloat(t)&&!Number.parseFloat(n)?0:(t=t.split(`,`)[0],n=n.split(`,`)[0],(Number.parseFloat(t)+Number.parseFloat(n))*zx)},Gx=e=>{e.dispatchEvent(new Event(Bx))},Kx=e=>!e||typeof e!=`object`?!1:(e.jquery!==void 0&&(e=e[0]),e.nodeType!==void 0),qx=e=>Kx(e)?e.jquery?e[0]:e:typeof e==`string`&&e.length>0?document.querySelector(Vx(e)):null,Jx=e=>{if(!Kx(e)||e.getClientRects().length===0)return!1;let t=getComputedStyle(e).getPropertyValue(`visibility`)===`visible`,n=e.closest(`details:not([open])`);if(!n)return t;if(n!==e){let t=e.closest(`summary`);if(t&&t.parentNode!==n||t===null)return!1}return t},Yx=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains(`disabled`)?!0:e.disabled===void 0?e.hasAttribute(`disabled`)&&e.getAttribute(`disabled`)!==`false`:e.disabled,Xx=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode==`function`){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Xx(e.parentNode):null},Zx=()=>{},Qx=e=>{e.offsetHeight},$x=()=>window.jQuery&&!document.body.hasAttribute(`data-bs-no-jquery`)?window.jQuery:null,eS=[],tS=e=>{document.readyState===`loading`?(eS.length||document.addEventListener(`DOMContentLoaded`,()=>{for(let e of eS)e()}),eS.push(e)):e()},nS=()=>document.documentElement.dir===`rtl`,rS=e=>{tS(()=>{let t=$x();if(t){let n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},iS=(e,t=[],n=e)=>typeof e==`function`?e.call(...t):n,aS=(e,t,n=!0)=>{if(!n){iS(e);return}let r=Wx(t)+5,i=!1,a=({target:n})=>{n===t&&(i=!0,t.removeEventListener(Bx,a),iS(e))};t.addEventListener(Bx,a),setTimeout(()=>{i||Gx(t)},r)},oS=(e,t,n,r)=>{let i=e.length,a=e.indexOf(t);return a===-1?!n&&r?e[i-1]:e[0]:(a+=n?1:-1,r&&(a=(a+i)%i),e[Math.max(0,Math.min(a,i-1))])},sS=/[^.]*(?=\..*)\.|.*/,cS=/\..*/,lS=/::\d+$/,uS={},dS=1,fS={mouseenter:`mouseover`,mouseleave:`mouseout`},pS=new Set(`click.dblclick.mouseup.mousedown.contextmenu.mousewheel.DOMMouseScroll.mouseover.mouseout.mousemove.selectstart.selectend.keydown.keypress.keyup.orientationchange.touchstart.touchmove.touchend.touchcancel.pointerdown.pointermove.pointerup.pointerleave.pointercancel.gesturestart.gesturechange.gestureend.focus.blur.change.reset.select.submit.focusin.focusout.load.unload.beforeunload.resize.move.DOMContentLoaded.readystatechange.error.abort.scroll`.split(`.`));function mS(e,t){return t&&`${t}::${dS++}`||e.uidEvent||dS++}function hS(e){let t=mS(e);return e.uidEvent=t,uS[t]=uS[t]||{},uS[t]}function gS(e,t){return function n(r){return wS(r,{delegateTarget:e}),n.oneOff&&U.off(e,r.type,t),t.apply(e,[r])}}function _S(e,t,n){return function r(i){let a=e.querySelectorAll(t);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(let s of a)if(s===o)return wS(i,{delegateTarget:o}),r.oneOff&&U.off(e,i.type,t,n),n.apply(o,[i])}}function vS(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function yS(e,t,n){let r=typeof t==`string`,i=r?n:t||n,a=CS(e);return pS.has(a)||(a=e),[r,i,a]}function bS(e,t,n,r,i){if(typeof t!=`string`||!e)return;let[a,o,s]=yS(t,n,r);t in fS&&(o=(e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)})(o));let c=hS(e),l=c[s]||(c[s]={}),u=vS(l,o,a?n:null);if(u){u.oneOff=u.oneOff&&i;return}let d=mS(o,t.replace(sS,``)),f=a?_S(e,n,o):gS(e,o);f.delegationSelector=a?n:null,f.callable=o,f.oneOff=i,f.uidEvent=d,l[d]=f,e.addEventListener(s,f,a)}function xS(e,t,n,r,i){let a=vS(t[n],r,i);a&&(e.removeEventListener(n,a,!!i),delete t[n][a.uidEvent])}function SS(e,t,n,r){let i=t[n]||{};for(let[a,o]of Object.entries(i))a.includes(r)&&xS(e,t,n,o.callable,o.delegationSelector)}function CS(e){return e=e.replace(cS,``),fS[e]||e}var U={on(e,t,n,r){bS(e,t,n,r,!1)},one(e,t,n,r){bS(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!=`string`||!e)return;let[i,a,o]=yS(t,n,r),s=o!==t,c=hS(e),l=c[o]||{},u=t.startsWith(`.`);if(a!==void 0){if(!Object.keys(l).length)return;xS(e,c,o,a,i?n:null);return}if(u)for(let n of Object.keys(c))SS(e,c,n,t.slice(1));for(let[n,r]of Object.entries(l)){let i=n.replace(lS,``);(!s||t.includes(i))&&xS(e,c,o,r.callable,r.delegationSelector)}},trigger(e,t,n){if(typeof t!=`string`||!e)return null;let r=$x(),i=t!==CS(t),a=null,o=!0,s=!0,c=!1;i&&r&&(a=r.Event(t,n),r(e).trigger(a),o=!a.isPropagationStopped(),s=!a.isImmediatePropagationStopped(),c=a.isDefaultPrevented());let l=wS(new Event(t,{bubbles:o,cancelable:!0}),n);return c&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&a&&a.preventDefault(),l}};function wS(e,t={}){for(let[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function TS(e){if(e===`true`)return!0;if(e===`false`)return!1;if(e===Number(e).toString())return Number(e);if(e===``||e===`null`)return null;if(typeof e!=`string`)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function ES(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var DS={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${ES(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${ES(t)}`)},getDataAttributes(e){if(!e)return{};let t={},n=Object.keys(e.dataset).filter(e=>e.startsWith(`bs`)&&!e.startsWith(`bsConfig`));for(let r of n){let n=r.replace(/^bs/,``);n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=TS(e.dataset[r])}return t},getDataAttribute(e,t){return TS(e.getAttribute(`data-bs-${ES(t)}`))}},OS=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error(`You have to implement the static method "NAME", for each component!`)}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let n=Kx(t)?DS.getDataAttribute(t,`config`):{};return{...this.constructor.Default,...typeof n==`object`?n:{},...Kx(t)?DS.getDataAttributes(t):{},...typeof e==`object`?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[n,r]of Object.entries(t)){let t=e[n],i=Kx(t)?`element`:Hx(t);if(!new RegExp(r).test(i))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${i}" but expected type "${r}".`)}}},kS=`5.3.8`,AS=class extends OS{constructor(e,t){super(),e=qx(e),e&&(this._element=e,this._config=this._getConfig(t),Lx.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Lx.remove(this._element,this.constructor.DATA_KEY),U.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){aS(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Lx.get(qx(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t==`object`?t:null)}static get VERSION(){return kS}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},jS=e=>{let t=e.getAttribute(`data-bs-target`);if(!t||t===`#`){let n=e.getAttribute(`href`);if(!n||!n.includes(`#`)&&!n.startsWith(`.`))return null;n.includes(`#`)&&!n.startsWith(`#`)&&(n=`#${n.split(`#`)[1]}`),t=n&&n!==`#`?n.trim():null}return t?t.split(`,`).map(e=>Vx(e)).join(`,`):null},W={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){let n=[],r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){let t=[`a`,`button`,`input`,`textarea`,`select`,`details`,`[tabindex]`,`[contenteditable="true"]`].map(e=>`${e}:not([tabindex^="-"])`).join(`,`);return this.find(t,e).filter(e=>!Yx(e)&&Jx(e))},getSelectorFromElement(e){let t=jS(e);return t&&W.findOne(t)?t:null},getElementFromSelector(e){let t=jS(e);return t?W.findOne(t):null},getMultipleElementsFromSelector(e){let t=jS(e);return t?W.find(t):[]}},MS=(e,t=`hide`)=>{let n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;U.on(document,n,`[data-bs-dismiss="${r}"]`,function(n){if([`A`,`AREA`].includes(this.tagName)&&n.preventDefault(),Yx(this))return;let i=W.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(i)[t]()})},NS=`alert`,PS=`.bs.alert`,FS=`close${PS}`,IS=`closed${PS}`,LS=`fade`,RS=`show`,zS=class e extends AS{static get NAME(){return NS}close(){if(U.trigger(this._element,FS).defaultPrevented)return;this._element.classList.remove(RS);let e=this._element.classList.contains(LS);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),U.trigger(this._element,IS),this.dispose()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};MS(zS,`close`),rS(zS);var BS=`button`,VS=`.bs.button`,HS=`.data-api`,US=`active`,WS=`[data-bs-toggle="button"]`,GS=`click${VS}${HS}`,KS=class e extends AS{static get NAME(){return BS}toggle(){this._element.setAttribute(`aria-pressed`,this._element.classList.toggle(US))}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);t===`toggle`&&n[t]()})}};U.on(document,GS,WS,e=>{e.preventDefault();let t=e.target.closest(WS);KS.getOrCreateInstance(t).toggle()}),rS(KS);var qS=`swipe`,JS=`.bs.swipe`,YS=`touchstart${JS}`,XS=`touchmove${JS}`,ZS=`touchend${JS}`,QS=`pointerdown${JS}`,$S=`pointerup${JS}`,eC=`touch`,tC=`pen`,nC=`pointer-event`,rC=40,iC={endCallback:null,leftCallback:null,rightCallback:null},aC={endCallback:`(function|null)`,leftCallback:`(function|null)`,rightCallback:`(function|null)`},oC=class e extends OS{constructor(t,n){super(),this._element=t,!(!t||!e.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return iC}static get DefaultType(){return aC}static get NAME(){return qS}dispose(){U.off(this._element,JS)}_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(),iS(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=rC)return;let t=e/this._deltaX;this._deltaX=0,t&&iS(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(U.on(this._element,QS,e=>this._start(e)),U.on(this._element,$S,e=>this._end(e)),this._element.classList.add(nC)):(U.on(this._element,YS,e=>this._start(e)),U.on(this._element,XS,e=>this._move(e)),U.on(this._element,ZS,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===tC||e.pointerType===eC)}static isSupported(){return`ontouchstart`in document.documentElement||navigator.maxTouchPoints>0}},sC=`carousel`,cC=`.bs.carousel`,lC=`.data-api`,uC=`ArrowLeft`,dC=`ArrowRight`,fC=500,pC=`next`,mC=`prev`,hC=`left`,gC=`right`,_C=`slide${cC}`,vC=`slid${cC}`,yC=`keydown${cC}`,bC=`mouseenter${cC}`,xC=`mouseleave${cC}`,SC=`dragstart${cC}`,CC=`load${cC}${lC}`,wC=`click${cC}${lC}`,TC=`carousel`,EC=`active`,DC=`slide`,OC=`carousel-item-end`,kC=`carousel-item-start`,AC=`carousel-item-next`,jC=`carousel-item-prev`,MC=`.active`,NC=`.carousel-item`,PC=`.active.carousel-item`,FC=`.carousel-item img`,IC=`.carousel-indicators`,LC=`[data-bs-slide], [data-bs-slide-to]`,RC=`[data-bs-ride="carousel"]`,zC={[uC]:gC,[dC]:hC},BC={interval:5e3,keyboard:!0,pause:`hover`,ride:!1,touch:!0,wrap:!0},VC={interval:`(number|boolean)`,keyboard:`boolean`,pause:`(string|boolean)`,ride:`(boolean|string)`,touch:`boolean`,wrap:`boolean`},HC=class e extends AS{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=W.findOne(IC,this._element),this._addEventListeners(),this._config.ride===TC&&this.cycle()}static get Default(){return BC}static get DefaultType(){return VC}static get NAME(){return sC}next(){this._slide(pC)}nextWhenVisible(){!document.hidden&&Jx(this._element)&&this.next()}prev(){this._slide(mC)}pause(){this._isSliding&&Gx(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){U.one(this._element,vC,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){U.one(this._element,vC,()=>this.to(e));return}let n=this._getItemIndex(this._getActive());if(n===e)return;let r=e>n?pC:mC;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&U.on(this._element,yC,e=>this._keydown(e)),this._config.pause===`hover`&&(U.on(this._element,bC,()=>this.pause()),U.on(this._element,xC,()=>this._maybeEnableCycle())),this._config.touch&&oC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of W.find(FC,this._element))U.on(e,SC,e=>e.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(hC)),rightCallback:()=>this._slide(this._directionToOrder(gC)),endCallback:()=>{this._config.pause===`hover`&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),fC+this._config.interval))}};this._swipeHelper=new oC(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=zC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=W.findOne(MC,this._indicatorsElement);t.classList.remove(EC),t.removeAttribute(`aria-current`);let n=W.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(EC),n.setAttribute(`aria-current`,`true`))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute(`data-bs-interval`),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let n=this._getActive(),r=e===pC,i=t||oS(this._getItems(),n,r,this._config.wrap);if(i===n)return;let a=this._getItemIndex(i),o=t=>U.trigger(this._element,t,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(o(_C).defaultPrevented||!n||!i)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=i;let c=r?kC:OC,l=r?AC:jC;i.classList.add(l),Qx(i),n.classList.add(c),i.classList.add(c),this._queueCallback(()=>{i.classList.remove(c,l),i.classList.add(EC),n.classList.remove(EC,l,c),this._isSliding=!1,o(vC)},n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(DC)}_getActive(){return W.findOne(PC,this._element)}_getItems(){return W.find(NC,this._element)}_clearInterval(){this._interval&&=(clearInterval(this._interval),null)}_directionToOrder(e){return nS()?e===hC?mC:pC:e===hC?pC:mC}_orderToDirection(e){return nS()?e===mC?hC:gC:e===mC?gC:hC}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`number`){n.to(t);return}if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};U.on(document,wC,LC,function(e){let t=W.getElementFromSelector(this);if(!t||!t.classList.contains(TC))return;e.preventDefault();let n=HC.getOrCreateInstance(t),r=this.getAttribute(`data-bs-slide-to`);if(r){n.to(r),n._maybeEnableCycle();return}if(DS.getDataAttribute(this,`slide`)===`next`){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),U.on(window,CC,()=>{let e=W.find(RC);for(let t of e)HC.getOrCreateInstance(t)}),rS(HC);var UC=`collapse`,WC=`.bs.collapse`,GC=`.data-api`,KC=`show${WC}`,qC=`shown${WC}`,JC=`hide${WC}`,YC=`hidden${WC}`,XC=`click${WC}${GC}`,ZC=`show`,QC=`collapse`,$C=`collapsing`,ew=`collapsed`,tw=`:scope .${QC} .${QC}`,nw=`collapse-horizontal`,rw=`width`,iw=`height`,aw=`.collapse.show, .collapse.collapsing`,ow=`[data-bs-toggle="collapse"]`,sw={parent:null,toggle:!0},cw={parent:`(null|element)`,toggle:`boolean`},lw=class e extends AS{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let n=W.find(ow);for(let e of n){let t=W.getSelectorFromElement(e),n=W.find(t).filter(e=>e===this._element);t!==null&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return sw}static get DefaultType(){return cw}static get NAME(){return UC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(aw).filter(e=>e!==this._element).map(t=>e.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||U.trigger(this._element,KC).defaultPrevented)return;for(let e of t)e.hide();let n=this._getDimension();this._element.classList.remove(QC),this._element.classList.add($C),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove($C),this._element.classList.add(QC,ZC),this._element.style[n]=``,U.trigger(this._element,qC)},i=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[n]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||U.trigger(this._element,JC).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Qx(this._element),this._element.classList.add($C),this._element.classList.remove(QC,ZC);for(let e of this._triggerArray){let t=W.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;let t=()=>{this._isTransitioning=!1,this._element.classList.remove($C),this._element.classList.add(QC),U.trigger(this._element,YC)};this._element.style[e]=``,this._queueCallback(t,this._element,!0)}_isShown(e=this._element){return e.classList.contains(ZC)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=qx(e.parent),e}_getDimension(){return this._element.classList.contains(nw)?rw:iw}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(ow);for(let t of e){let e=W.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){let t=W.find(tw,this._config.parent);return W.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let n of e)n.classList.toggle(ew,!t),n.setAttribute(`aria-expanded`,t)}static jQueryInterface(t){let n={};return typeof t==`string`&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){let r=e.getOrCreateInstance(this,n);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t]()}})}};U.on(document,XC,ow,function(e){(e.target.tagName===`A`||e.delegateTarget&&e.delegateTarget.tagName===`A`)&&e.preventDefault();for(let e of W.getMultipleElementsFromSelector(this))lw.getOrCreateInstance(e,{toggle:!1}).toggle()}),rS(lw);var uw=`dropdown`,dw=`.bs.dropdown`,fw=`.data-api`,pw=`Escape`,mw=`Tab`,hw=`ArrowUp`,gw=`ArrowDown`,_w=2,vw=`hide${dw}`,yw=`hidden${dw}`,bw=`show${dw}`,xw=`shown${dw}`,Sw=`click${dw}${fw}`,Cw=`keydown${dw}${fw}`,ww=`keyup${dw}${fw}`,Tw=`show`,Ew=`dropup`,Dw=`dropend`,Ow=`dropstart`,kw=`dropup-center`,Aw=`dropdown-center`,jw=`[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)`,Mw=`${jw}.${Tw}`,Nw=`.dropdown-menu`,Pw=`.navbar`,Fw=`.navbar-nav`,Iw=`.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)`,Lw=nS()?`top-end`:`top-start`,Rw=nS()?`top-start`:`top-end`,zw=nS()?`bottom-end`:`bottom-start`,Bw=nS()?`bottom-start`:`bottom-end`,Vw=nS()?`left-start`:`right-start`,Hw=nS()?`right-start`:`left-start`,Uw=`top`,Ww=`bottom`,Gw={autoClose:!0,boundary:`clippingParents`,display:`dynamic`,offset:[0,2],popperConfig:null,reference:`toggle`},Kw={autoClose:`(boolean|string)`,boundary:`(string|element)`,display:`string`,offset:`(array|string|function)`,popperConfig:`(null|object|function)`,reference:`(string|element|object)`},qw=class e extends AS{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=W.next(this._element,Nw)[0]||W.prev(this._element,Nw)[0]||W.findOne(Nw,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Gw}static get DefaultType(){return Kw}static get NAME(){return uw}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Yx(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!U.trigger(this._element,bw,e).defaultPrevented){if(this._createPopper(),`ontouchstart`in document.documentElement&&!this._parent.closest(Fw))for(let e of[].concat(...document.body.children))U.on(e,`mouseover`,Zx);this._element.focus(),this._element.setAttribute(`aria-expanded`,!0),this._menu.classList.add(Tw),this._element.classList.add(Tw),U.trigger(this._element,xw,e)}}hide(){if(Yx(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!U.trigger(this._element,vw,e).defaultPrevented){if(`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))U.off(e,`mouseover`,Zx);this._popper&&this._popper.destroy(),this._menu.classList.remove(Tw),this._element.classList.remove(Tw),this._element.setAttribute(`aria-expanded`,`false`),DS.removeDataAttribute(this._menu,`popper`),U.trigger(this._element,yw,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference==`object`&&!Kx(e.reference)&&typeof e.reference.getBoundingClientRect!=`function`)throw TypeError(`${uw.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(Fx===void 0)throw TypeError(`Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)`);let e=this._element;this._config.reference===`parent`?e=this._parent:Kx(this._config.reference)?e=qx(this._config.reference):typeof this._config.reference==`object`&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Px(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Tw)}_getPlacement(){let e=this._parent;if(e.classList.contains(Dw))return Vw;if(e.classList.contains(Ow))return Hw;if(e.classList.contains(kw))return Uw;if(e.classList.contains(Aw))return Ww;let t=getComputedStyle(this._menu).getPropertyValue(`--bs-position`).trim()===`end`;return e.classList.contains(Ew)?t?Rw:Lw:t?Bw:zw}_detectNavbar(){return this._element.closest(Pw)!==null}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`offset`,options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display===`static`)&&(DS.setDataAttribute(this._menu,`popper`,`static`),e.modifiers=[{name:`applyStyles`,enabled:!1}]),{...e,...iS(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let n=W.find(Iw,this._menu).filter(e=>Jx(e));n.length&&oS(n,t,e===gw,!n.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===_w||t.type===`keyup`&&t.key!==mw)return;let n=W.find(Mw);for(let r of n){let n=e.getInstance(r);if(!n||n._config.autoClose===!1)continue;let i=t.composedPath(),a=i.includes(n._menu);if(i.includes(n._element)||n._config.autoClose===`inside`&&!a||n._config.autoClose===`outside`&&a||n._menu.contains(t.target)&&(t.type===`keyup`&&t.key===mw||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:n._element};t.type===`click`&&(o.clickEvent=t),n._completeHide(o)}}static dataApiKeydownHandler(t){let n=/input|textarea/i.test(t.target.tagName),r=t.key===pw,i=[hw,gw].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();let a=this.matches(jw)?this:W.prev(this,jw)[0]||W.next(this,jw)[0]||W.findOne(jw,t.delegateTarget.parentNode),o=e.getOrCreateInstance(a);if(i){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),a.focus())}};U.on(document,Cw,jw,qw.dataApiKeydownHandler),U.on(document,Cw,Nw,qw.dataApiKeydownHandler),U.on(document,Sw,qw.clearMenus),U.on(document,ww,qw.clearMenus),U.on(document,Sw,jw,function(e){e.preventDefault(),qw.getOrCreateInstance(this).toggle()}),rS(qw);var Jw=`backdrop`,Yw=`fade`,Xw=`show`,Zw=`mousedown.bs.${Jw}`,Qw={className:`modal-backdrop`,clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:`body`},$w={className:`string`,clickCallback:`(function|null)`,isAnimated:`boolean`,isVisible:`boolean`,rootElement:`(element|string)`},eT=class extends OS{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Qw}static get DefaultType(){return $w}static get NAME(){return Jw}show(e){if(!this._config.isVisible){iS(e);return}this._append();let t=this._getElement();this._config.isAnimated&&Qx(t),t.classList.add(Xw),this._emulateAnimation(()=>{iS(e)})}hide(e){if(!this._config.isVisible){iS(e);return}this._getElement().classList.remove(Xw),this._emulateAnimation(()=>{this.dispose(),iS(e)})}dispose(){this._isAppended&&=(U.off(this._element,Zw),this._element.remove(),!1)}_getElement(){if(!this._element){let e=document.createElement(`div`);e.className=this._config.className,this._config.isAnimated&&e.classList.add(Yw),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=qx(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),U.on(e,Zw,()=>{iS(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){aS(e,this._getElement(),this._config.isAnimated)}},tT=`focustrap`,nT=`.bs.focustrap`,rT=`focusin${nT}`,iT=`keydown.tab${nT}`,aT=`Tab`,oT=`forward`,sT=`backward`,cT={autofocus:!0,trapElement:null},lT={autofocus:`boolean`,trapElement:`element`},uT=class extends OS{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return cT}static get DefaultType(){return lT}static get NAME(){return tT}activate(){this._isActive||=(this._config.autofocus&&this._config.trapElement.focus(),U.off(document,nT),U.on(document,rT,e=>this._handleFocusin(e)),U.on(document,iT,e=>this._handleKeydown(e)),!0)}deactivate(){this._isActive&&(this._isActive=!1,U.off(document,nT))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let n=W.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===sT?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===aT&&(this._lastTabNavDirection=e.shiftKey?sT:oT)}},dT=`.fixed-top, .fixed-bottom, .is-fixed, .sticky-top`,fT=`.sticky-top`,pT=`padding-right`,mT=`margin-right`,hT=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,pT,t=>t+e),this._setElementAttributes(dT,pT,t=>t+e),this._setElementAttributes(fT,mT,t=>t-e)}reset(){this._resetElementAttributes(this._element,`overflow`),this._resetElementAttributes(this._element,pT),this._resetElementAttributes(dT,pT),this._resetElementAttributes(fT,mT)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,`overflow`),this._element.style.overflow=`hidden`}_setElementAttributes(e,t,n){let r=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);let i=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(i))}px`)})}_saveInitialAttribute(e,t){let n=e.style.getPropertyValue(t);n&&DS.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{let n=DS.getDataAttribute(e,t);if(n===null){e.style.removeProperty(t);return}DS.removeDataAttribute(e,t),e.style.setProperty(t,n)})}_applyManipulationCallback(e,t){if(Kx(e)){t(e);return}for(let n of W.find(e,this._element))t(n)}},gT=`modal`,_T=`.bs.modal`,vT=`.data-api`,yT=`Escape`,bT=`hide${_T}`,xT=`hidePrevented${_T}`,ST=`hidden${_T}`,CT=`show${_T}`,wT=`shown${_T}`,TT=`resize${_T}`,ET=`click.dismiss${_T}`,DT=`mousedown.dismiss${_T}`,OT=`keydown.dismiss${_T}`,kT=`click${_T}${vT}`,AT=`modal-open`,jT=`fade`,MT=`show`,NT=`modal-static`,PT=`.modal.show`,FT=`.modal-dialog`,IT=`.modal-body`,LT=`[data-bs-toggle="modal"]`,RT={backdrop:!0,focus:!0,keyboard:!0},zT={backdrop:`(boolean|string)`,focus:`boolean`,keyboard:`boolean`},BT=class e extends AS{constructor(e,t){super(e,t),this._dialog=W.findOne(FT,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hT,this._addEventListeners()}static get Default(){return RT}static get DefaultType(){return zT}static get NAME(){return gT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||U.trigger(this._element,CT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(AT),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||U.trigger(this._element,bT).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(MT),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){U.off(window,_T),U.off(this._dialog,_T),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new eT({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new uT({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display=`block`,this._element.removeAttribute(`aria-hidden`),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.scrollTop=0;let t=W.findOne(IT,this._dialog);t&&(t.scrollTop=0),Qx(this._element),this._element.classList.add(MT),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,U.trigger(this._element,wT,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){U.on(this._element,OT,e=>{if(e.key===yT){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),U.on(window,TT,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),U.on(this._element,DT,e=>{U.one(this._element,ET,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(AT),this._resetAdjustments(),this._scrollBar.reset(),U.trigger(this._element,ST)})}_isAnimated(){return this._element.classList.contains(jT)}_triggerBackdropTransition(){if(U.trigger(this._element,xT).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t===`hidden`||this._element.classList.contains(NT)||(e||(this._element.style.overflowY=`hidden`),this._element.classList.add(NT),this._queueCallback(()=>{this._element.classList.remove(NT),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){let e=nS()?`paddingLeft`:`paddingRight`;this._element.style[e]=`${t}px`}if(!n&&e){let e=nS()?`paddingRight`:`paddingLeft`;this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft=``,this._element.style.paddingRight=``}static jQueryInterface(t,n){return this.each(function(){let r=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(r[t]===void 0)throw TypeError(`No method named "${t}"`);r[t](n)}})}};U.on(document,kT,LT,function(e){let t=W.getElementFromSelector(this);[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),U.one(t,CT,e=>{e.defaultPrevented||U.one(t,ST,()=>{Jx(this)&&this.focus()})});let n=W.findOne(PT);n&&BT.getInstance(n).hide(),BT.getOrCreateInstance(t).toggle(this)}),MS(BT),rS(BT);var VT=`offcanvas`,HT=`.bs.offcanvas`,UT=`.data-api`,WT=`load${HT}${UT}`,GT=`Escape`,KT=`show`,qT=`showing`,JT=`hiding`,YT=`offcanvas-backdrop`,XT=`.offcanvas.show`,ZT=`show${HT}`,QT=`shown${HT}`,$T=`hide${HT}`,eE=`hidePrevented${HT}`,tE=`hidden${HT}`,nE=`resize${HT}`,rE=`click${HT}${UT}`,iE=`keydown.dismiss${HT}`,aE=`[data-bs-toggle="offcanvas"]`,oE={backdrop:!0,keyboard:!0,scroll:!1},sE={backdrop:`(boolean|string)`,keyboard:`boolean`,scroll:`boolean`},cE=class e extends AS{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return oE}static get DefaultType(){return sE}static get NAME(){return VT}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||U.trigger(this._element,ZT,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new hT().hide(),this._element.setAttribute(`aria-modal`,!0),this._element.setAttribute(`role`,`dialog`),this._element.classList.add(qT),this._queueCallback(()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(KT),this._element.classList.remove(qT),U.trigger(this._element,QT,{relatedTarget:e})},this._element,!0))}hide(){!this._isShown||U.trigger(this._element,$T).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(JT),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(KT,JT),this._element.removeAttribute(`aria-modal`),this._element.removeAttribute(`role`),this._config.scroll||new hT().reset(),U.trigger(this._element,tE)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop===`static`){U.trigger(this._element,eE);return}this.hide()},t=!!this._config.backdrop;return new eT({className:YT,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new uT({trapElement:this._element})}_addEventListeners(){U.on(this._element,iE,e=>{if(e.key===GT){if(this._config.keyboard){this.hide();return}U.trigger(this._element,eE)}})}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t](this)}})}};U.on(document,rE,aE,function(e){let t=W.getElementFromSelector(this);if([`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),Yx(this))return;U.one(t,tE,()=>{Jx(this)&&this.focus()});let n=W.findOne(XT);n&&n!==t&&cE.getInstance(n).hide(),cE.getOrCreateInstance(t).toggle(this)}),U.on(window,WT,()=>{for(let e of W.find(XT))cE.getOrCreateInstance(e).show()}),U.on(window,nE,()=>{for(let e of W.find(`[aria-modal][class*=show][class*=offcanvas-]`))getComputedStyle(e).position!==`fixed`&&cE.getOrCreateInstance(e).hide()}),MS(cE),rS(cE);var lE={"*":[`class`,`dir`,`id`,`lang`,`role`,/^aria-[\w-]*$/i],a:[`target`,`href`,`title`,`rel`],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:[`src`,`srcset`,`alt`,`title`,`width`,`height`],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},uE=new Set([`background`,`cite`,`href`,`itemtype`,`longdesc`,`poster`,`src`,`xlink:href`]),dE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,fE=(e,t)=>{let n=e.nodeName.toLowerCase();return t.includes(n)?uE.has(n)?!!dE.test(e.nodeValue):!0:t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};function pE(e,t,n){if(!e.length)return e;if(n&&typeof n==`function`)return n(e);let r=new window.DOMParser().parseFromString(e,`text/html`),i=[].concat(...r.body.querySelectorAll(`*`));for(let e of i){let n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}let r=[].concat(...e.attributes),i=[].concat(t[`*`]||[],t[n]||[]);for(let t of r)fE(t,i)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}var mE=`TemplateFactory`,hE={allowList:lE,content:{},extraClass:``,html:!1,sanitize:!0,sanitizeFn:null,template:`<div></div>`},gE={allowList:`object`,content:`object`,extraClass:`(string|function)`,html:`boolean`,sanitize:`boolean`,sanitizeFn:`(null|function)`,template:`string`},_E={entry:`(string|element|function|null)`,selector:`(string|element)`},vE=class extends OS{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return hE}static get DefaultType(){return gE}static get NAME(){return mE}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement(`div`);e.innerHTML=this._maybeSanitize(this._config.template);for(let[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);let t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(` `)),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},_E)}_setContent(e,t,n){let r=W.findOne(n,e);if(r){if(t=this._resolvePossibleFunction(t),!t){r.remove();return}if(Kx(t)){this._putElementInTemplate(qx(t),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(t);return}r.textContent=t}}_maybeSanitize(e){return this._config.sanitize?pE(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return iS(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML=``,t.append(e);return}t.textContent=e.textContent}},yE=`tooltip`,bE=new Set([`sanitize`,`allowList`,`sanitizeFn`]),xE=`fade`,SE=`modal`,CE=`show`,wE=`.tooltip-inner`,TE=`.${SE}`,EE=`hide.bs.modal`,DE=`hover`,OE=`focus`,kE=`click`,AE=`manual`,jE=`hide`,ME=`hidden`,NE=`show`,PE=`shown`,FE=`inserted`,IE=`click`,LE=`focusin`,RE=`focusout`,zE=`mouseenter`,BE=`mouseleave`,VE={AUTO:`auto`,TOP:`top`,RIGHT:nS()?`left`:`right`,BOTTOM:`bottom`,LEFT:nS()?`right`:`left`},HE={allowList:lE,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`},UE={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`},WE=class e extends AS{constructor(e,t){if(Fx===void 0)throw TypeError(`Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)`);super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return HE}static get DefaultType(){return UE}static get NAME(){return yE}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),U.off(this._element.closest(TE),EE,this._hideModalHandler),this._element.getAttribute(`data-bs-original-title`)&&this._element.setAttribute(`title`,this._element.getAttribute(`data-bs-original-title`)),this._disposePopper(),super.dispose()}show(){if(this._element.style.display===`none`)throw Error(`Please use show on visible elements`);if(!(this._isWithContent()&&this._isEnabled))return;let e=U.trigger(this._element,this.constructor.eventName(NE)),t=(Xx(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();let n=this._getTipElement();this._element.setAttribute(`aria-describedby`,n.getAttribute(`id`));let{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),U.trigger(this._element,this.constructor.eventName(FE))),this._popper=this._createPopper(n),n.classList.add(CE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))U.on(e,`mouseover`,Zx);this._queueCallback(()=>{U.trigger(this._element,this.constructor.eventName(PE)),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!(!this._isShown()||U.trigger(this._element,this.constructor.eventName(jE)).defaultPrevented)){if(this._getTipElement().classList.remove(CE),`ontouchstart`in document.documentElement)for(let e of[].concat(...document.body.children))U.off(e,`mouseover`,Zx);this._activeTrigger[kE]=!1,this._activeTrigger[OE]=!1,this._activeTrigger[DE]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute(`aria-describedby`),U.trigger(this._element,this.constructor.eventName(ME)))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||=this._createTipElement(this._newContent||this._getContentForTemplate()),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(xE,CE),t.classList.add(`bs-${this.constructor.NAME}-auto`);let n=Ux(this.constructor.NAME).toString();return t.setAttribute(`id`,n),this._isAnimated()&&t.classList.add(xE),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new vE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[wE]: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(xE)}_isShown(){return this.tip&&this.tip.classList.contains(CE)}_createPopper(e){let t=VE[iS(this._config.placement,[this,e,this._element]).toUpperCase()];return Px(this._element,e,this._getPopperConfig(t))}_getOffset(){let{offset:e}=this._config;return typeof e==`string`?e.split(`,`).map(e=>Number.parseInt(e,10)):typeof e==`function`?t=>e(t,this._element):e}_resolvePossibleFunction(e){return iS(e,[this._element,this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:`flip`,options:{fallbackPlacements:this._config.fallbackPlacements}},{name:`offset`,options:{offset:this._getOffset()}},{name:`preventOverflow`,options:{boundary:this._config.boundary}},{name:`arrow`,options:{element:`.${this.constructor.NAME}-arrow`}},{name:`preSetPlacement`,enabled:!0,phase:`beforeMain`,fn:e=>{this._getTipElement().setAttribute(`data-popper-placement`,e.state.placement)}}]};return{...t,...iS(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(` `);for(let t of e)if(t===`click`)U.on(this._element,this.constructor.eventName(IE),this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[kE]=!(t._isShown()&&t._activeTrigger[kE]),t.toggle()});else if(t!==AE){let e=t===DE?this.constructor.eventName(zE):this.constructor.eventName(LE),n=t===DE?this.constructor.eventName(BE):this.constructor.eventName(RE);U.on(this._element,e,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusin`?OE:DE]=!0,t._enter()}),U.on(this._element,n,this._config.selector,e=>{let t=this._initializeOnDelegatedTarget(e);t._activeTrigger[e.type===`focusout`?OE:DE]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},U.on(this._element.closest(TE),EE,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute(`title`);e&&(!this._element.getAttribute(`aria-label`)&&!this._element.textContent.trim()&&this._element.setAttribute(`aria-label`,e),this._element.setAttribute(`data-bs-original-title`,e),this._element.removeAttribute(`title`))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=DS.getDataAttributes(this._element);for(let e of Object.keys(t))bE.has(e)&&delete t[e];return e={...t,...typeof e==`object`&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:qx(e.container),typeof e.delay==`number`&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title==`number`&&(e.title=e.title.toString()),typeof e.content==`number`&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger=`manual`,e}_disposePopper(){this._popper&&=(this._popper.destroy(),null),this.tip&&=(this.tip.remove(),null)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};rS(WE);var GE=`popover`,KE=`.popover-header`,qE=`.popover-body`,JE={...WE.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`},YE={...WE.DefaultType,content:`(null|string|element|function)`},XE=class e extends WE{static get Default(){return JE}static get DefaultType(){return YE}static get NAME(){return GE}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[KE]:this._getTitle(),[qE]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t]()}})}};rS(XE);var ZE=`scrollspy`,QE=`.bs.scrollspy`,$E=`.data-api`,eD=`activate${QE}`,tD=`click${QE}`,nD=`load${QE}${$E}`,rD=`dropdown-item`,iD=`active`,aD=`[data-bs-spy="scroll"]`,oD=`[href]`,sD=`.nav, .list-group`,cD=`.nav-link`,lD=`${cD}, .nav-item > ${cD}, .list-group-item`,uD=`.dropdown`,dD=`.dropdown-toggle`,fD={offset:null,rootMargin:`0px 0px -25%`,smoothScroll:!1,target:null,threshold:[.1,.5,1]},pD={offset:`(number|null)`,rootMargin:`string`,smoothScroll:`boolean`,target:`element`,threshold:`array`},mD=class e extends AS{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 fD}static get DefaultType(){return pD}static get NAME(){return ZE}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=qx(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold==`string`&&(e.threshold=e.threshold.split(`,`).map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(U.off(this._config.target,tD),U.on(this._config.target,tD,oD,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:`smooth`});return}n.scrollTop=r}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){let t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}let e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&e){if(n(a),!r)return;continue}!i&&!e&&n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=W.find(oD,this._config.target);for(let t of e){if(!t.hash||Yx(t))continue;let e=W.findOne(decodeURI(t.hash),this._element);Jx(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(iD),this._activateParents(e),U.trigger(this._element,eD,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(rD)){W.findOne(dD,e.closest(uD)).classList.add(iD);return}for(let t of W.parents(e,sD))for(let e of W.prev(t,lD))e.classList.add(iD)}_clearActiveClass(e){e.classList.remove(iD);let t=W.find(`${oD}.${iD}`,e);for(let e of t)e.classList.remove(iD)}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};U.on(window,nD,()=>{for(let e of W.find(aD))mD.getOrCreateInstance(e)}),rS(mD);var hD=`tab`,gD=`.bs.tab`,_D=`hide${gD}`,vD=`hidden${gD}`,yD=`show${gD}`,bD=`shown${gD}`,xD=`click${gD}`,SD=`keydown${gD}`,CD=`load${gD}`,wD=`ArrowLeft`,TD=`ArrowRight`,ED=`ArrowUp`,DD=`ArrowDown`,OD=`Home`,kD=`End`,AD=`active`,jD=`fade`,MD=`show`,ND=`dropdown`,PD=`.dropdown-toggle`,FD=`.dropdown-menu`,ID=`:not(${PD})`,LD=`.list-group, .nav, [role="tablist"]`,RD=`.nav-item, .list-group-item`,zD=`.nav-link${ID}, .list-group-item${ID}, [role="tab"]${ID}`,BD=`[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]`,VD=`${zD}, ${BD}`,HD=`.${AD}[data-bs-toggle="tab"], .${AD}[data-bs-toggle="pill"], .${AD}[data-bs-toggle="list"]`,UD=class e extends AS{constructor(e){super(e),this._parent=this._element.closest(LD),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),U.on(this._element,SD,e=>this._keydown(e)))}static get NAME(){return hD}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),n=t?U.trigger(t,_D,{relatedTarget:e}):null;U.trigger(e,yD,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(AD),this._activate(W.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.add(MD);return}e.removeAttribute(`tabindex`),e.setAttribute(`aria-selected`,!0),this._toggleDropDown(e,!0),U.trigger(e,bD,{relatedTarget:t})},e,e.classList.contains(jD)))}_deactivate(e,t){e&&(e.classList.remove(AD),e.blur(),this._deactivate(W.getElementFromSelector(e)),this._queueCallback(()=>{if(e.getAttribute(`role`)!==`tab`){e.classList.remove(MD);return}e.setAttribute(`aria-selected`,!1),e.setAttribute(`tabindex`,`-1`),this._toggleDropDown(e,!1),U.trigger(e,vD,{relatedTarget:t})},e,e.classList.contains(jD)))}_keydown(t){if(![wD,TD,ED,DD,OD,kD].includes(t.key))return;t.stopPropagation(),t.preventDefault();let n=this._getChildren().filter(e=>!Yx(e)),r;if([OD,kD].includes(t.key))r=n[t.key===OD?0:n.length-1];else{let e=[TD,DD].includes(t.key);r=oS(n,t.target,e,!0)}r&&(r.focus({preventScroll:!0}),e.getOrCreateInstance(r).show())}_getChildren(){return W.find(VD,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,`role`,`tablist`);for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute(`aria-selected`,t),n!==e&&this._setAttributeIfNotExists(n,`role`,`presentation`),t||e.setAttribute(`tabindex`,`-1`),this._setAttributeIfNotExists(e,`role`,`tab`),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=W.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,`role`,`tabpanel`),e.id&&this._setAttributeIfNotExists(t,`aria-labelledby`,`${e.id}`))}_toggleDropDown(e,t){let n=this._getOuterElement(e);if(!n.classList.contains(ND))return;let r=(e,r)=>{let i=W.findOne(e,n);i&&i.classList.toggle(r,t)};r(PD,AD),r(FD,MD),n.setAttribute(`aria-expanded`,t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(AD)}_getInnerElement(e){return e.matches(VD)?e:W.findOne(VD,e)}_getOuterElement(e){return e.closest(RD)||e}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this);if(typeof t==`string`){if(n[t]===void 0||t.startsWith(`_`)||t===`constructor`)throw TypeError(`No method named "${t}"`);n[t]()}})}};U.on(document,xD,BD,function(e){[`A`,`AREA`].includes(this.tagName)&&e.preventDefault(),!Yx(this)&&UD.getOrCreateInstance(this).show()}),U.on(window,CD,()=>{for(let e of W.find(HD))UD.getOrCreateInstance(e)}),rS(UD);var WD=`toast`,GD=`.bs.toast`,KD=`mouseover${GD}`,qD=`mouseout${GD}`,JD=`focusin${GD}`,YD=`focusout${GD}`,XD=`hide${GD}`,ZD=`hidden${GD}`,QD=`show${GD}`,$D=`shown${GD}`,eO=`fade`,tO=`hide`,nO=`show`,rO=`showing`,iO={animation:`boolean`,autohide:`boolean`,delay:`number`},aO={animation:!0,autohide:!0,delay:5e3},oO=class e extends AS{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return aO}static get DefaultType(){return iO}static get NAME(){return WD}show(){U.trigger(this._element,QD).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add(eO),this._element.classList.remove(tO),Qx(this._element),this._element.classList.add(nO,rO),this._queueCallback(()=>{this._element.classList.remove(rO),U.trigger(this._element,$D),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){!this.isShown()||U.trigger(this._element,XD).defaultPrevented||(this._element.classList.add(rO),this._queueCallback(()=>{this._element.classList.add(tO),this._element.classList.remove(rO,nO),U.trigger(this._element,ZD)},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(nO),super.dispose()}isShown(){return this._element.classList.contains(nO)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case`mouseover`:case`mouseout`:this._hasMouseInteraction=t;break;case`focusin`:case`focusout`:this._hasKeyboardInteraction=t;break}if(t){this._clearTimeout();return}let n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){U.on(this._element,KD,e=>this._onInteraction(e,!0)),U.on(this._element,qD,e=>this._onInteraction(e,!1)),U.on(this._element,JD,e=>this._onInteraction(e,!0)),U.on(this._element,YD,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let n=e.getOrCreateInstance(this,t);if(typeof t==`string`){if(n[t]===void 0)throw TypeError(`No method named "${t}"`);n[t](this)}})}};MS(oO),rS(oO);function sO(e=void 0){let n=e=>o(`Succesvol`,e,x_.SUCCESS),r=e=>o(`Waarschuwing`,e,x_.WARNING),i=e=>o(`Informatie`,e,x_.INFO),a=e=>o(`Mislukt`,e,x_.DANGER);function o(n,r,i){let a=`toast-${Pa()}`,o={id:a,variant:i,title:n,text:r},c=document.querySelector(`.toast-container`);if(!c){console.error(`There was no element with class 'toast-container' found, which is required for useToaster.`);return}let l=(0,t.h)(T_,o),u=(0,t.createApp)({render:()=>l}).mount(document.createElement(`div`));c.appendChild(u.$el);let d=document.querySelector(`#${a}`);d&&(oO.getOrCreateInstance(d,e).show(),s(d))}function s(e){function t(e,t){e.forEach(e=>{if(e.attributeName!=`class`)return;let n=e.target;if(n.classList.contains(`hide`)){n.remove(),t.disconnect();return}})}new MutationObserver(t).observe(e,{attributes:!0})}return{showSuccessToast:n,showInformationToast:i,showWarningToast:r,showDangerToast:a}}var cO={class:`bd-file-upload`},lO={class:`flex align-items-center justify-content-between gap-2`},uO={key:0,class:`preview-container`},dO=(0,t.defineComponent)({__name:`BDFileUpload`,props:{modelValue:{},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:`.jpg`},url:{default:``},tag:{default:`form`},token:{default:``}},emits:[`update:modelValue`],setup(e,{emit:n}){let{showDangerToast:r}=sO(),{t:i}=ky.global,a=e,o=n,s=(0,t.ref)(null),c=(0,t.ref)([]);(0,t.watch)(()=>a.modelValue,e=>{s.value&&(s.value.files=s.value.files.filter(t=>e.files.some(e=>e.Naam===t.name)))},{deep:!0});let l=(0,t.computed)(()=>({variant:ya.PRIMARY,size:Oa.SM})),u=pg(a,`modelValue`,o),d=async e=>{let t=Array.isArray(e.files)?e.files:[e.files];c.value.push(...t.map(e=>({name:e.name,previewUrl:e.objectURL})));for(let e of t){let t=new FormData;t.append(`file`,e);try{let n={method:`POST`,headers:{RequestVerificationToken:a.token},body:t};f(e,await(await fetch(a.url,n)).json())}catch{r(a.errorMessage||i(`fileUpload.errorMessage`))}}c.value=[],s.value&&s.value.clear()},f=(e,t)=>{let n=c.value.findIndex(t=>t.name==e.name);n!==-1&&c.value.splice(n,1),u.value.files.push({previewUrl:e.objectURL,UUID:e.name,CorrelationId:t.CorrelationId,name:t.Naam,Naam:t.Naam})},p=e=>{let t=u.value.files.indexOf(e);t!==-1&&u.value.files.splice(t,1),t=c.value.indexOf(e),t!==-1&&c.value.splice(t,1)};return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,cO,[(0,t.createVNode)((0,t.unref)(Cy),{ref_key:`fileUploadRef`,ref:s,multiple:a.multiple,"max-file-size":10485760,accept:a.acceptedFiles,auto:!0,"max-files":a.multiple?10:1,"custom-upload":!0,name:`file`,onUploader:d},{header:(0,t.withCtx)(({chooseCallback:e})=>[(0,t.createElementVNode)(`div`,lO,[(0,t.createVNode)(j,(0,t.mergeProps)(l.value,{onClick:e}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(k)),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(a.buttonText),1)]),_:1},16,[`onClick`])])]),content:(0,t.withCtx)(()=>[c.value||(0,t.unref)(u)&&(0,t.unref)(u).files&&(0,t.unref)(u).files.length!==0?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uO,[(0,t.unref)(u)&&(0,t.unref)(u).files?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)((0,t.unref)(u).files,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(mv,{key:n,file:e,"is-pending":!1,onRemove:p},null,8,[`file`]))),128)):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:1},(0,t.renderList)(c.value,(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(mv,{key:n,file:e,"is-pending":!0,onRemove:p},null,8,[`file`]))),128)):(0,t.createCommentVNode)(``,!0)])):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`multiple`,`accept`,`max-files`])]))}}),fO=[`id`,`value`,`disabled`],pO=[`for`],mO={class:`invalid-feedback`},hO={__name:`BDFormMultipleCheckbox`,props:{modelValue:{type:Array,required:!0},options:{type:Array,required:!0},selectAllText:{type:String,default:null},state:{type:Boolean,default:!0},errorMessage:{type:String,default:null},overflow:{type:Boolean,default:!1}},emits:[`update:modelValue`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Ku(),o=(0,t.ref)(r.modelValue),s=(0,t.computed)(()=>r.selectAllText?r.selectAllText:a(`form.multipleCheckbox.defaultButton`)),c=(0,t.computed)(()=>{let e=`bd-form-multiple-checkbox`;return r.state||(e+=` is-invalid`),r.overflow&&(e+=` overflow-form-control`),e}),l=(0,t.computed)(()=>r.errorMessage?r.errorMessage:a(`form.multipleCheckbox.defaultErrorMessage`));(0,t.watch)(()=>r.modelValue,e=>{o.value=e}),(0,t.watch)(o,e=>{i(`update:modelValue`,e),i(`on-input`,e),i(`change-department`,e)});function u(){o.value=r.options.map(e=>e.value),d()}function d(){i(`on-input`,o.value)}return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,null,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)(c.value)},[(0,t.createVNode)(j,{variant:`outline-primary`,size:`sm`,onClick:u},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(s.value),1)]),_:1}),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.options,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`form-check`,key:e.value},[(0,t.withDirectives)((0,t.createElementVNode)(`input`,{class:`form-check-input`,type:`checkbox`,id:e.value,value:e.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,disabled:e.disabled},null,8,fO),[[t.vModelCheckbox,o.value]]),(0,t.createElementVNode)(`label`,{class:`form-check-label`,for:e.value},(0,t.toDisplayString)(e.text),9,pO)]))),128))],2),(0,t.createElementVNode)(`div`,mO,[(0,t.createVNode)(Kt),(0,t.createTextVNode)(` `+(0,t.toDisplayString)(l.value),1)])],64))}};function gO(e){this.content=e}gO.prototype={constructor:gO,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new gO(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new gO(n)},addToStart:function(e,t){return new gO([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new gO(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new gO(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=gO.from(e),e.size?new gO(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=gO.from(e),e.size?new gO(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=gO.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},gO.from=function(e){if(e instanceof gO)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new gO(t)};function _O(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&bO(e.charCodeAt(r-1))&&yO(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=_O(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function vO(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&bO(e.charCodeAt(i-1))&&yO(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=vO(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function yO(e){return e>=56320&&e<57344}function bO(e){return e>=55296&&e<56320}var G=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return _O(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return vO(this,e,t,n)}findIndex(e){if(e==0)return SO(0,e);if(e==this.size)return SO(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?SO(t+1,i):SO(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};G.empty=new G([],0);var xO={index:0,offset:0};function SO(e,t){return xO.index=e,xO.offset=t,xO}function CO(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!CO(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!CO(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var wO=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&CO(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};wO.none=[];var TO=class extends Error{},K=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=DO(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(EO(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(G.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};K.empty=new K(G.empty,0,0);function EO(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(EO(a.content,t-i-1,n-i-1)))}function DO(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=DO(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function OO(e,t,n){if(n.openStart>e.depth)throw new TO(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new TO(`Inconsistent open depths`);return kO(e,t,n,0)}function kO(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=kO(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return PO(a,IO(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return PO(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=LO(n,e);return PO(a,FO(e,i,o,t,r))}}function AO(e,t){if(!t.type.compatibleContent(e.type))throw new TO(`Cannot join `+t.type.name+` onto `+e.type.name)}function jO(e,t,n){let r=e.node(n);return AO(r,t.node(n)),r}function MO(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function NO(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(MO(e.nodeAfter,r),a++));for(let e=a;e<o;e++)MO(i.child(e),r);t&&t.depth==n&&t.textOffset&&MO(t.nodeBefore,r)}function PO(e,t){if(!e.type.validContent(t))throw new TO(`Invalid content for node `+e.type.name);return e.copy(t)}function FO(e,t,n,r,i){let a=e.depth>i&&jO(e,t,i+1),o=r.depth>i&&jO(n,r,i+1),s=[];return NO(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(AO(a,o),MO(PO(a,FO(e,t,n,r,i+1)),s)):(a&&MO(PO(a,IO(e,t,i+1)),s),NO(t,n,i,s),o&&MO(PO(o,IO(n,r,i+1)),s)),NO(r,null,i,s),new G(s)}function IO(e,t,n){let r=[];return NO(null,e,n,r),e.depth>n&&MO(PO(jO(e,t,n+1),IO(e,t,n+1)),r),NO(t,null,n,r),new G(r)}function LO(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(G.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var RO=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return wO.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new HO(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=VO.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else VO.set(t,r=new zO);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%BO,i}},zO=class{constructor(){this.elts=[],this.i=0}},BO=12,VO=new WeakMap,HO=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},UO=Object.create(null),WO=class e{constructor(e,t,n,r=wO.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||G.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&CO(this.attrs,t||e.defaultAttrs||UO)&&wO.sameSet(this.marks,n||wO.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return K.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new K(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return OO(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return RO.resolveCached(this,e)}resolveNoCache(e){return RO.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),KO(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=G.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=wO.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!wO.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=G.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};WO.prototype.text=void 0;var GO=class e extends WO{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):KO(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function KO(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var qO=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new JO(t,n);if(r.next==null)return e.empty;let i=YO(r);r.next&&r.err(`Unexpected trailing text`);let a=ak(nk(i));return ok(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return G.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
1697
1697
|
`)}};qO.empty=new qO(!0);var JO=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function YO(e){let t=[];do t.push(XO(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function XO(e){let t=[];do t.push(ZO(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function ZO(e){let t=tk(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=$O(e,t);else break;return t}function QO(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function $O(e,t){let n=QO(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:QO(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function ek(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function tk(e){if(e.eat(`(`)){let t=YO(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=ek(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function nk(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function rk(e,t){return t-e}function ik(e,t){let n=[];return r(t),n.sort(rk);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function ak(e){let t=Object.create(null);return n(ik(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);ik(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new qO(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(rk);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function ok(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function sk(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function ck(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function lk(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function uk(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new pk(e,r,t[r]);return n}var dk=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=uk(e,n.attrs),this.defaultAttrs=sk(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==qO.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:ck(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new WO(this,this.computeAttrs(e),G.from(t),wO.setFrom(n))}createChecked(e=null,t,n){return t=G.from(t),this.checkContent(t),new WO(this,this.computeAttrs(e),t,wO.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=G.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(G.empty,!0);return i?new WO(this,e,t.append(i),wO.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){lk(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:wO.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function fk(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var pk=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?fk(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},mk=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=uk(e,r.attrs),this.excluded=null;let i=sk(this.attrs);this.instance=i?new wO(this,i):null}create(e=null){return!e&&this.instance?this.instance:new wO(this,ck(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){lk(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},hk=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=gO.from(e.nodes),t.marks=gO.from(e.marks||{}),this.nodes=dk.compile(this.spec.nodes,this),this.marks=mk.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=qO.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?gk(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:gk(this,n.split(` `))}this.nodeFromJSON=e=>WO.fromJSON(this,e),this.markFromJSON=e=>wO.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof dk))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new GO(n,n.defaultAttrs,e,wO.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function gk(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function _k(e){return e.tag!=null}function vk(e){return e.style!=null}var yk=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(_k(e))this.tags.push(e);else if(vk(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new Ok(this,t,!1);return n.addAll(e,wO.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Ok(this,t,!0);return n.addAll(e,wO.none,t.from,t.to),K.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(Ak(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=jk(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=jk(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},bk={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},xk={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Sk={ol:!0,ul:!0},Ck=1,wk=2,Tk=4;function Ek(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?Ck:0)|(t===`full`?wk:0)}var Dk=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=wO.none,this.match=i||(a&Tk?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(G.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Ck)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=G.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(G.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!bk.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},Ok=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=Ek(null,t.preserveWhitespace,0)|(n?Tk:0);i=r?new Dk(r.type,r.attrs,wO.none,!0,t.topMatch||r.type.contentMatch,a):n?new Dk(null,null,wO.none,!0,null,a):new Dk(e.schema.topNodeType,null,wO.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&wk?`full`:this.localPreserveWS||(r.options&Ck)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,`
|
|
1698
1698
|
`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;Sk.hasOwnProperty(a)&&this.parser.normalizeLists&&kk(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:xk.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(bk.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
1699
1699
|
`),t)}ignoreFallback(e,t){e.nodeName==`BR`&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=wO.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Mk(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=Ek(e,i,a.options);a.options&Tk&&a.content.length==0&&(o|=Tk);let s=wO.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):Mk(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new Dk(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=Ck);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}else{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function kk(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&Sk.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Ak(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function jk(e){let t={};for(let n in e)t[n]=e[n];return t}function Mk(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var Nk=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=Fk(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return Fk(t).createTextNode(e.text);let{dom:n,contentDOM:r}=zk(Fk(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&zk(Fk(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:zk(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Pk(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Pk(e.marks)}};function Pk(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Fk(e){return e.document||window.document}var Ik=new WeakMap;function Lk(e){let t=Ik.get(e);return t===void 0&&Ik.set(e,t=Rk(e)),t}function Rk(e){let t=null;function n(e){if(e&&typeof e==`object`)if(Array.isArray(e))if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function zk(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=Lk(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}else if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=zk(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Bk=65535,Vk=2**16;function Hk(e,t){return e+t*Vk}function Uk(e){return e&Bk}function Wk(e){return(e-(e&Bk))/Vk}var Gk=1,Kk=2,qk=4,Jk=8,Yk=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Jk)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&qk)>0}},Xk=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Uk(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+Wk(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Hk(o/3,e-s),f=e==s?Kk:e==u?Gk:qk;return(t<0?e!=s:e!=u)&&(f|=Jk),new Yk(a,f,d)}r+=l-c}return n?e+r:new Yk(e+r,0,null)}touches(e,t){let n=0,r=Uk(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};Xk.empty=new Xk([]);var Zk=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Yk(e,r,null)}},Qk=Object.create(null),$k=class{getMap(){return Xk.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Qk[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Qk)throw RangeError(`Duplicate use of step JSON ID `+e);return Qk[e]=t,t.prototype.jsonID=e,t}},eA=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof TO)return e.fail(t.message);throw t}}};function tA(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(tA(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return G.fromArray(r)}var nA=class e extends $k{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new K(tA(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return eA.fromReplace(e,this.from,this.to,i)}invert(){return new rA(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};$k.jsonID(`addMark`,nA);var rA=class e extends $k{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new K(tA(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return eA.fromReplace(e,this.from,this.to,n)}invert(){return new nA(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};$k.jsonID(`removeMark`,rA);var iA=class e extends $k{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return eA.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return eA.fromReplace(e,this.pos,this.pos+1,new K(G.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new aA(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};$k.jsonID(`addNodeMark`,iA);var aA=class e extends $k{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return eA.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return eA.fromReplace(e,this.pos,this.pos+1,new K(G.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new iA(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};$k.jsonID(`removeNodeMark`,aA);var oA=class e extends $k{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&cA(e,this.from,this.to)?eA.fail(`Structure replace would overwrite content`):eA.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Xk([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?K.empty:new K(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?K.empty:new K(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,K.fromJSON(t,n.slice),!!n.structure)}};oA.MAP_BIAS=1,$k.jsonID(`replace`,oA);var sA=class e extends $k{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(cA(e,this.from,this.gapFrom)||cA(e,this.gapTo,this.to)))return eA.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return eA.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?eA.fromReplace(e,this.from,this.to,n):eA.fail(`Content does not fit in gap`)}getMap(){return new Xk([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,K.fromJSON(t,n.slice),n.insert,!!n.structure)}};$k.jsonID(`replaceAround`,sA);function cA(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function lA(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new rA(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new nA(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function uA(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof mk){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new rA(t.from,t.to,t.style)))}function dA(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new oA(s,l,K.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new rA(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new K(G.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new oA(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(G.empty,!0);e.replace(s,s,new K(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function fA(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function pA(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!fA(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function mA(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=G.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=G.from(r.node(e).copy(u)),d++):c--;let f=G.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=G.from(i.node(e).copy(f)),p++):l++;e.step(new sA(c,l,o,s,new K(u.append(f),d,p),u.size-d,!0))}function hA(e,t,n=null,r=e){let i=_A(e,t),a=i&&vA(r,t);return a?i.map(gA).concat({type:t,attrs:n}).concat(a.map(gA)):null}function gA(e){return{type:e,attrs:null}}function _A(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function vA(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function yA(e,t,n){let r=G.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=G.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new sA(i,a,i,a,new K(r,0,0),n.length,!0))}function bA(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&CA(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&SA(e,t,n,a),dA(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new sA(c,l,c+1,l-1,new K(G.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&xA(e,t,n,a),!1}})}function xA(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function SA(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
|
|
@@ -1882,4 +1882,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1882
1882
|
}
|
|
1883
1883
|
`,classes:{root:`p-chip p-component`,image:`p-chip-image`,icon:`p-chip-icon`,label:`p-chip-label`,removeIcon:`p-chip-remove-icon`}}),TJ={name:`Chip`,extends:{name:`BaseChip`,extends:Dp,props:{label:{type:[String,Number],default:null},icon:{type:String,default:null},image:{type:String,default:null},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:void 0}},style:wJ,provide:function(){return{$pcChip:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`remove`],data:function(){return{visible:!0}},methods:{onKeydown:function(e){(e.key===`Enter`||e.key===`Backspace`)&&this.close(e)},close:function(e){this.visible=!1,this.$emit(`remove`,e)}},computed:{dataP:function(){return bd({removable:this.removable})}},components:{TimesCircleIcon:gJ}},EJ=[`aria-label`,`data-p`],DJ=[`src`];function OJ(e,n,r,i,a,o){return a.visible?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:0,class:e.cx(`root`),"aria-label":e.label},e.ptmi(`root`),{"data-p":o.dataP}),[(0,t.renderSlot)(e.$slots,`default`,{},function(){return[e.image?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,(0,t.mergeProps)({key:0,src:e.image},e.ptm(`image`),{class:e.cx(`image`)}),null,16,DJ)):e.$slots.icon?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.$slots.icon),(0,t.mergeProps)({key:1,class:e.cx(`icon`)},e.ptm(`icon`)),null,16,[`class`])):e.icon?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,(0,t.mergeProps)({key:2,class:[e.cx(`icon`),e.icon]},e.ptm(`icon`)),null,16)):(0,t.createCommentVNode)(``,!0),e.label===null?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,(0,t.mergeProps)({key:3,class:e.cx(`label`)},e.ptm(`label`)),(0,t.toDisplayString)(e.label),17))]}),e.removable?(0,t.renderSlot)(e.$slots,`removeicon`,{key:0,removeCallback:o.close,keydownCallback:o.onKeydown},function(){return[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.removeIcon?`span`:`TimesCircleIcon`),(0,t.mergeProps)({class:[e.cx(`removeIcon`),e.removeIcon],onClick:o.close,onKeydown:o.onKeydown},e.ptm(`removeIcon`)),null,16,[`class`,`onClick`,`onKeydown`]))]}):(0,t.createCommentVNode)(``,!0)],16,EJ)):(0,t.createCommentVNode)(``,!0)}TJ.render=OJ;var kJ={key:0,class:`bd-active-filters`},AJ={class:`options`},jJ=(0,t.defineComponent)({__name:`BDActiveFilters`,props:(0,t.mergeModels)({filters:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{t:n}=Ku(),r=(0,t.useModel)(e,`modelValue`),i=e,a=(0,t.computed)(()=>n(`activeFilters.title`)),o=(0,t.computed)(()=>n(`activeFilters.clearAll`)),s=(0,t.computed)(()=>r.value&&r.value.length>0),c=(0,t.computed)(()=>i.filters.filter(e=>r.value?.some(t=>t.startsWith(`${e.id}-`)))),l=e=>e.options.concat(e.moreOptions||[]).filter(t=>r.value?.some(n=>n===`${e.id}-${t.item}`)),u=()=>{r.value=[]},d=e=>{if(!r.value)return;let t=r.value.indexOf(e);t!==-1&&r.value?.splice(t,1)};return(e,n)=>s.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,kJ,[(0,t.createElementVNode)(`header`,null,[(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(a.value),1),(0,t.createVNode)(j,{variant:`link`,onClick:u,textContent:(0,t.toDisplayString)(o.value)},null,8,[`textContent`])]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(c.value,e=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{key:e.id,class:`filter`},[(0,t.createElementVNode)(`label`,null,(0,t.toDisplayString)(e.label)+`:`,1),(0,t.createElementVNode)(`div`,AJ,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(l(e),n=>(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createBlock)((0,t.unref)(TJ),{key:e.id+`-`+n.item,label:n.name,removable:``,onRemove:t=>d(`${e.id}-${n.item}`)},null,8,[`label`,`onRemove`])),[[(0,t.unref)(xG),n.name]])),128))])]))),128))])):(0,t.createCommentVNode)(``,!0)}}),MJ=[`id`],NJ={class:`collapse-button-container`},PJ={class:`collapsed-show`},FJ={class:`collapsed-hide`},IJ=(0,t.defineComponent)({__name:`BDFilterCard`,props:{enableEditCategory:{type:Boolean},filters:{},searchForm:{}},emits:[`check`],setup(e,{emit:n}){let{t:r}=Ku(),i=n,a=(0,t.computed)(()=>r(`filterCard.more`)),o=(0,t.computed)(()=>r(`filterCard.less`)),s=e=>e.replace(/\s/g,`-`),c=()=>i(`check`);return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Ha,{class:`bd-filter-card`,title:`Filter`,"show-on":`md`,"collapse-on":`md`},{body:(0,t.withCtx)(()=>[(0,t.createVNode)(jJ,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[0]||=t=>e.searchForm.selectedFilters=t,filters:e.filters},null,8,[`modelValue`,`filters`]),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.filters,(i,l)=>((0,t.openBlock)(),(0,t.createBlock)(Gg,{key:i.label,label:i.label},{default:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.options,(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(hg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[1]||=t=>e.searchForm.selectedFilters=t,key:a,value:`${i.id}-${n.item}`,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.name),1)]),_:2},1032,[`modelValue`,`value`]))),128)),i.moreOptions?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[(0,t.createElementVNode)(`div`,{id:`collapse-${s(i.label)}`,class:`collapse`},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.moreOptions,(n,a)=>((0,t.openBlock)(),(0,t.createBlock)(hg,{modelValue:e.searchForm.selectedFilters,"onUpdate:modelValue":r[2]||=t=>e.searchForm.selectedFilters=t,key:a,value:`${i.id}-${n.item}`,onChange:c},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(n.name),1)]),_:2},1032,[`modelValue`,`value`]))),128))],8,MJ),(0,t.createElementVNode)(`div`,NJ,[(0,t.createVNode)(j,{class:(0,t.normalizeClass)([`collapse-button collapsed`,{"collapse-button-last":e.filters.length-1===l}]),variant:`link`,"data-bs-toggle":`collapse`,"data-bs-target":`#collapse-${s(i.label)}`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(C,{class:`collapsed-show`}),(0,t.createElementVNode)(`span`,PJ,(0,t.toDisplayString)(a.value),1),(0,t.createVNode)(D,{class:`collapsed-hide`}),(0,t.createElementVNode)(`span`,FJ,(0,t.toDisplayString)(o.value),1)]),_:1},8,[`class`,`data-bs-target`])])],64)):(0,t.createCommentVNode)(``,!0),(0,t.renderSlot)(n.$slots,`filter-extra`,{filter:i})]),_:2},1032,[`label`]))),128))]),_:3}))}}),LJ={class:`content-library-template`},RJ={class:`number-of-messages`},zJ=[`src`],BJ=[`src`],VJ=(0,t.defineComponent)({__name:`BDContentLibraryTemplate`,props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:[`create`,`on-insert`,`on-change`,`delete`,`update`,`on-input`,`show-attachment`,`provider-changed`],setup(e,{emit:n}){let{t:r}=Ku(),i=e,a=n,o=(0,t.ref)(i.modelValue);(0,t.watch)(()=>i.modelValue,e=>{o.value=e},{immediate:!0,deep:!0});let s=(0,t.computed)(()=>i.modelValue?.provider?.SupportsSearch?r(`contentLibraryTemplate.searchPlaceholderSearch`):r(`contentLibraryTemplate.searchPlaceholder`)),c=(0,t.computed)(()=>O_(i.providerSelectOptions)&&i.providerSelectOptions.length>1),l=(0,t.computed)(()=>i.provider&&O_(i.provider.items)?i.provider.items:[]),u=(0,t.computed)(()=>i.provider&&O_(i.provider.filters)),d=(0,t.computed)(()=>{let e=0;return i.provider&&Hq(i.provider.totalNumber)&&(e=i.provider.totalNumber),e===1?`${e} ${r(`contentLibraryTemplate.message`)}`:`${e} ${r(`contentLibraryTemplate.messages`)}`}),f=(0,t.computed)(()=>i.provider&&i.provider.pageSize&&i.provider.totalNumber&&i.provider.pageSize<=i.provider.totalNumber),p=(0,t.computed)(()=>i.provider&&i.provider.totalNumber?i.provider.totalNumber:0),m=(0,t.computed)(()=>u.value?9:12),h=(0,t.computed)(()=>i.provider&&!u.value?3:2),g=(0,t.computed)(()=>i.showAddButton||c.value),_=(0,t.computed)(()=>({md:3,lg:3})),v=(0,t.computed)(()=>({md:9,lg:9})),y=(0,t.computed)(()=>({sm:12,md:8,lg:c.value?7:8,"offset-lg":g.value?0:3,"offset-md":g.value?0:3})),b=(0,t.computed)(()=>({sm:12,md:g.value?4:3,lg:c.value?5:4})),x=e=>e.label===`Categorieën`&&i.editCategory,S=()=>{a(`create`)},C=e=>{a(`on-insert`,e)},w=e=>{a(`on-change`,e)},T=e=>{a(`delete`,e)},E=()=>{a(`update`,`category`)},D=()=>{o.value.currentPage=1,a(`on-input`,o.value)},O=()=>{a(`on-input`,o.value)},ee=e=>{a(`show-attachment`,e)},te=e=>{a(`provider-changed`,e.value)};return(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,LJ,[(0,t.createVNode)(JK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,(0,t.mergeProps)(_.value,{class:`content-library-header content-library-header__messages`}),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`span`,RJ,(0,t.toDisplayString)(d.value),1)]),_:1},16),(0,t.createVNode)(KK,(0,t.mergeProps)(v.value,{class:`content-library-header`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(JK,{class:`controls-row`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,(0,t.mergeProps)(y.value,{class:`search-block`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Lg,{type:`text`,modelValue:o.value.searchTerm,"onUpdate:modelValue":a[0]||=e=>o.value.searchTerm=e,placeholder:s.value,delayTimeMs:500,class:`search-input`,onInput:D,autofocus:``},null,8,[`modelValue`,`placeholder`])]),_:1},16),e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(KK,(0,t.mergeProps)({key:0},b.value,{class:`add-button-block`}),{default:(0,t.withCtx)(()=>[e.showAddButton?((0,t.openBlock)(),(0,t.createBlock)(j,{key:0,class:`add-button`,onClick:S},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(ii),(0,t.createTextVNode)(` `+(0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryTemplate.newMessageText`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1},16)):(0,t.createCommentVNode)(``,!0),c.value?((0,t.openBlock)(),(0,t.createBlock)(KK,(0,t.mergeProps)({key:1},b.value,{class:`select-button-block`}),{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Vq),{modelValue:o.value.provider,"onUpdate:modelValue":a[1]||=e=>o.value.provider=e,options:e.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":te},{"open-indicator":(0,t.withCtx)(({attributes:e})=>[(0,t.createElementVNode)(`span`,(0,t.normalizeProps)((0,t.guardReactiveProps)(e)),[(0,t.createVNode)(A)],16)]),option:(0,t.withCtx)(({icon:e,label:n,img:r})=>[e?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e),{key:0})):(0,t.createCommentVNode)(``,!0),r?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:r},null,8,zJ)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n),1)]),"selected-option":(0,t.withCtx)(({icon:e,label:n,img:r})=>[e?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e),{key:0})):(0,t.createCommentVNode)(``,!0),r?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:1,src:r},null,8,BJ)):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(n),1)]),_:1},8,[`modelValue`,`options`])]),_:1},16)):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1},16),u.value?((0,t.openBlock)(),(0,t.createBlock)(KK,{key:0,md:12,lg:3,class:`content-library-body`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(IJ,{filters:i.provider.filters,searchForm:o.value,"enable-edit-category":i.editCategory,"no-header":!0,onCheck:D},{"filter-extra":(0,t.withCtx)(({filter:e})=>[x(e)?((0,t.openBlock)(),(0,t.createBlock)(j,{key:0,variant:`outline-primary-dark`,class:`edit-category-button`,size:`sm`,onClick:E},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(r)(`contentLibraryTemplate.changeCategoryButtonLabel`)),1)]),_:1})):(0,t.createCommentVNode)(``,!0)]),_:1},8,[`filters`,`searchForm`,`enable-edit-category`])]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(KK,{md:12,lg:m.value,class:`content-library-body`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(hJ,{items:l.value,cols:h.value,onOnInsert:C,onOnChange:w,onDelete:T,onShowAttachment:ee},null,8,[`items`,`cols`]),(0,t.createVNode)(JK,{class:`content-library-pagination`},{default:(0,t.withCtx)(()=>[f.value?((0,t.openBlock)(),(0,t.createBlock)(s_,{key:0,modelValue:o.value.currentPage,"onUpdate:modelValue":a[2]||=e=>o.value.currentPage=e,totalRows:p.value,rowsPerPage:e.provider.pageSize,onClick:O,isPatient:!0},null,8,[`modelValue`,`totalRows`,`rowsPerPage`])):(0,t.createCommentVNode)(``,!0)]),_:1})]),_:1},8,[`lg`])]),_:1})]))}}),HJ={__name:`BDContentLibraryModal`,props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},loading:{type:Boolean,default:!1}},emits:[`on-insert`,`cancel`,`show-attachment`,`shown`,`provider-changed`],setup(e,{emit:n}){let{closeModal:r}=wK(`content-library-modal`),i=e,a=n,o=(0,t.ref)(i.modelValue),s=(0,t.computed)(()=>i.modelValue?.provider?.img??null),c=(0,t.computed)(()=>i.modelValue?.provider?.label??``);(0,t.watch)(()=>i.modelValue,e=>{o.value=e},{immediate:!0,deep:!0});let l=e=>{r(),a(`on-insert`,e)},u=()=>{a(`cancel`)},d=e=>{a(`show-attachment`,e)},f=()=>{a(`shown`)},p=e=>{a(`provider-changed`,e)};return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(CK,{id:`content-library-modal`,"title-image":s.value,title:c.value,size:`xl`,visible:e.visible,"hide-footer":!0,onCancel:u,onShown:f},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(VJ,{modelValue:o.value,"onUpdate:modelValue":r[0]||=e=>o.value=e,provider:e.provider,providerSelectOptions:e.providerSelectOptions,loading:e.loading,onOnInsert:l,onShowAttachment:d,onProviderChanged:p},null,8,[`modelValue`,`provider`,`providerSelectOptions`,`loading`])]),_:1},8,[`title-image`,`title`,`visible`]))}},UJ=Object.defineProperty,WJ=(e,t,n)=>t in e?UJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,GJ=(e,t,n)=>(WJ(e,typeof t==`symbol`?t:t+``,n),n),KJ=class{constructor(){GJ(this,`seed`,0),GJ(this,`data`,new Map)}id(){return Date.now().toString(26)+ this.seed++}add(e,t=this.id()){return this.data.set(t,e),t}get(e){return this.data.get(e)}delete(e){this.delete(e)}},qJ=`Failed to copy value to clipboard. Unknown type.`,JJ={asString(e){if(e==null)return console.warn(`Clipboard input is empty`),``;if(typeof e!=`string`)try{return JSON.stringify(e)}catch(e){return console.warn(qJ,e),``}return e}},YJ=`position:fixed; pointer-events:none; z-index:-9999; opacity:0;`,XJ={createTextarea(e){let t=document.createElement(`textarea`);return t.addEventListener(`focusin`,e=>{e.stopPropagation()}),t.value=e,t.setAttribute(`readonly`,``),t.style.cssText=YJ,t}},ZJ={async requestClipboardPermission(){return navigator.permissions.query({name:`clipboard-write`})},async writeClipboard(e){return(await ZJ.requestClipboardPermission()).state===`granted`?(await navigator.clipboard.writeText(e),!0):!1},writeClipboardExecCommand(e){let t=XJ.createTextarea(e);if(document.body.appendChild(t),navigator.userAgent.match(/ipad|ipod|iphone/i)){t.contentEditable=`true`,t.readOnly=!0;let e=document.createRange();e.selectNodeContents(t);let n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(e),t.setSelectionRange(0,999999))}else t.select();let n=document.execCommand(`copy`);return document.body.removeChild(t),n},async copy(e){let t=typeof e==`function`?e():e,n=JJ.asString(t);if(ZJ.writeClipboardExecCommand(n))return!0;await ZJ.writeClipboard(n)}};new KJ;var{showSuccessToast:QJ}=sO(),$J=(e,t,n)=>{let r=`${t}\n${e.AfzenderNaam}: \r${e.Datum} \r${tJ(nJ(e.Tekst))}`;ZJ.copy(r).then(()=>QJ(n))},eY=(e,t,n)=>{let r=`${t}\n${e.filter(e=>e.selected).map(e=>`${e.AfzenderNaam}: \r${e.Datum}\r${tJ(nJ(e.Tekst))}`).join(`
|
|
1884
1884
|
-----------------------
|
|
1885
|
-
`)}`;ZJ.copy(r).then(()=>QJ(n))},tY=(e,t)=>{ZJ.copy(e).then(()=>QJ(t))},nY={class:`message-cloud-multi-select`},rY={class:`message-cloud-multi-select__body`},iY={class:`message-content`},aY={class:`message-cloud__header`},oY={class:`message-cloud__title`},sY={key:0},cY=[`innerHTML`],lY=(0,t.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t:n}=Ku(),r=e,i=(0,t.ref)([]),a=(0,t.ref)(!0);(0,t.watchEffect)(()=>{i.value=r.modelValue}),(0,t.watch)(()=>a.value,e=>{i.value.forEach(t=>t.selected=e)});let o=(0,t.computed)(()=>n(`conversationToTextModal.systemMessage`)),s=e=>{let t=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?t+n(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},c=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,l=()=>{let e=n(`conversationToTextModal.prefix`),t=n(`conversationToTextModal.copySuccess`);return eY(i.value,e,t)};return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)(CK,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(j,{variant:`primary`,onClick:l},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,t.createElementVNode)(`div`,nY,[(0,t.createVNode)(hg,{class:`select-all-checkbox`,modelValue:a.value,"onUpdate:modelValue":u[0]||=e=>a.value=e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,t.createElementVNode)(`div`,rY,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`message-cloud-selector`,key:n},[(0,t.createVNode)(hg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,t.createElementVNode)(`div`,iY,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message`,c(e)])},[(0,t.createElementVNode)(`div`,aY,[(0,t.createElementVNode)(`div`,oY,[(0,t.createTextVNode)((0,t.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,sY,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(o.value),1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(s(e)),1)]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.Datum),1)])]),(0,t.createElementVNode)(`div`,{class:`message-cloud__body`,innerHTML:e.Tekst},null,8,cY)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}});function uY(){let e=(0,t.ref)(0),n=(0,t.ref)(!0),r=(0,t.ref)(null),i=(0,t.ref)({top:0,left:0,x:0,y:0});return{zoom:e,mouseDown:n,imageHolderRef:r,pos:i,SetZoom:(0,t.computed)(()=>e.value>0?`zoom-${e.value}`:``),OnMouseDown:e=>{if(!r.value)return;i.value.left=r.value.scrollLeft,i.value.top=r.value.scrollTop;let t=document.querySelector(`#image-attachment-modal`),a=document.querySelector(`.image-preview-image-holder`);t&&(t.style.cursor=`grabbing`),a&&(a.style.cursor=`grabbing`),i.value.x=e.clientX,i.value.y=e.clientY,n.value=!0},OnMouseMove:e=>{if(n.value){let t=e.clientX-i.value.x,n=e.clientY-i.value.y;r.value&&(r.value.scrollTop=i.value.top-n,r.value.scrollLeft=i.value.left-t)}},OnMouseUp:()=>{let e=document.querySelector(`#image-attachment-modal`),t=document.querySelector(`.image-preview-image-holder`);e&&e.style&&(e.style.cursor=``),t&&t.style&&(t.style.cursor=`grab`),n.value=!1}}}var dY=[`src`,`alt`],fY={key:0,class:`show-spinner`},pY={class:`spinner-border text-primary`,role:`status`},mY=[`textContent`],hY=[`href`],gY=(0,t.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:n}){let{showModal:r}=wK(`image-attachment-modal`),{zoom:i,imageHolderRef:a,SetZoom:o,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=uY(),{t:u}=Ku(),d=(0,t.ref)(!0),f=(0,t.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,t.computed)(()=>u(`imageAttachmentModal.download`)),m=(0,t.computed)(()=>u(`imageAttachmentModal.loading`));n({Show:e=>{f.value=e,i.value=0,r()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(CK,{id:`image-attachment-modal`,class:(0,t.normalizeClass)((0,t.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:a,onMousedown:n[0]||=(...e)=>(0,t.unref)(s)&&(0,t.unref)(s)(...e),onMousemove:n[1]||=(...e)=>(0,t.unref)(c)&&(0,t.unref)(c)(...e),onMouseup:n[2]||=(...e)=>(0,t.unref)(l)&&(0,t.unref)(l)(...e)},[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,t.normalizeClass)([`image-preview-modal`,(0,t.unref)(o)]),onLoad:h,draggable:!1},null,42,dY)):(0,t.createCommentVNode)(``,!0)],544),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fY,[(0,t.createElementVNode)(`div`,pY,[(0,t.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,t.toDisplayString)(m.value)},null,8,mY)])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(N_,{modelValue:(0,t.unref)(i),"onUpdate:modelValue":n[3]||=e=>(0,t.isRef)(i)?i.value=e:null,class:`image-preview-bd-zoom-slider`,"max-value":4},null,8,[`modelValue`]),(0,t.createElementVNode)(`a`,{href:f.value.downloadUrl},[(0,t.createVNode)(j,{variant:`primary`,class:`download-image`,textContent:(0,t.toDisplayString)(p.value)},null,8,[`textContent`])],8,hY)]),_:1},8,[`class`,`title`]))}}),_Y={__name:`BDMessageTemplateForm`,props:{modelValue:{type:Object,required:!0},validation:{type:Object,default:()=>({title:{state:null},text:{state:null},category:{state:null},ownerId:{state:null}})},practitionerOptions:{type:Array,default:null},departmentOptions:{type:Array,default:null},categoryOptions:{type:Array,default:null},files:{type:Array},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`,`change-text`,`change-title`],setup(e,{emit:n}){let{showModal:r}=wK(`attachment-upload-modal`),i=e,a=n,{t:o}=Ku(),s=(0,t.ref)([]),c=(0,t.computed)(()=>void 0),l=(0,t.computed)(()=>i.validation.category.state===!1?`is-invalid`:``);(0,t.computed)(()=>i.validation.ownerId.state===!1?`is-invalid`:``);let u=(0,t.computed)(()=>[...i.categoryOptions?i.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...s.value]);(0,t.computed)(()=>i.practitionerOptions?.find(e=>e.value===i.modelValue?.ownerId)??null);let d=(0,t.computed)(()=>i.modelValue.sharedWithDepartment||[]);function f(e){C({...i.modelValue,sharedWithDepartment:e})}(0,t.computed)(()=>{if(i.modelValue.tag)return u.value.filter(e=>e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase())!==-1)}),(0,t.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,t.computed)(()=>{let e=i.modelValue.files||[],t=i.files||[];return[...e,...t]});(0,t.onMounted)(()=>{i.modelValue.category.length>0&&x()});function m(e){e&&!u.value.some(t=>t.value===e)&&(s.value=[{text:e,value:e}])}function h(e){a(`show-attachment`,e)}function g(e){a(`action`,{action:`content-library`,provider:e})}function _(e){v(i.files,e),v(i.modelValue.files,e)}function v(e,t){let n;n=t.obj.FileId?e.findIndex(e=>e.FileId===t.obj.FileId):e.findIndex(e=>e.CorrelationId===t.obj.CorrelationId),n!==-1&&e.splice(n,1)}function y(e){e.name===`delete-attachment`?_(e):e.name===`image-attachment`&&h(e)}function b(){r()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...i.modelValue,category:e})}function C(e){a(`update:modelValue`,e),a(`on-input`,e)}function w(){a(`change-department`,i.modelValue)}function T(e){a(`change-title`,e)}function E(e){a(`change-text`,e)}return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Zh,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Gg,{label:(0,t.unref)(o)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Lg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":T,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.titlePlaceHolder`),state:e.validation.title.state,"invalid-feedback-text":e.validation.title.errorLabel},null,8,[`modelValue`,`placeholder`,`state`,`invalid-feedback-text`])]),_:1},8,[`label`]),(0,t.createVNode)(Gg,{label:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(wG,{modelValue:e.modelValue.text,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,t.unref)(o)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":c.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(__,{pills:e.modelValue.pills},null,8,[`pills`])]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,t.createVNode)(jh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),r[0]||=(0,t.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,t.createVNode)(Gg,{label:(0,t.unref)(o)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(hO,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,t.renderSlot)(n.$slots,`extra-fields`),(0,t.createVNode)(Gg,{label:(0,t.unref)(o)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Vq),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:u.value,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m,class:(0,t.normalizeClass)({"is-invalid":e.validation.category.state===!1})},null,8,[`modelValue`,`options`,`placeholder`,`class`]),(0,t.createVNode)(_g,{class:(0,t.normalizeClass)(l.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},vY={__name:`BDMessageTemplateFormModal`,props:{modelValue:{type:Object,required:!0},files:{type:Array},visible:{type:Boolean,default:null},editable:{type:Boolean,default:!1},departmentOptions:{type:Array},practitionerOptions:{type:Array},categoryOptions:{type:Array},serverErrors:{type:Array,default:null},validation:{type:Object,required:!0},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Ku(),o=!1,s=(0,t.ref)(JSON.parse(JSON.stringify(r.modelValue))),c=(0,t.computed)(()=>r.modelValue.id?a(`messageTemplateFormModal.editTitle`):a(`messageTemplateFormModal.createTitle`)),l=(0,t.computed)(()=>r.modelValue.id?a(`modals.edit`):a(`modals.add`));(0,t.watch)(()=>r.modelValue,e=>{o||(s.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function u(e){i(`show-attachment`,e.obj)}function d(e){i(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(s.value));typeof e.category!=`string`&&(e.category=e.category.value??``),i(`on-submit`,e)}function p(){i(`close`)}function m(){i(`on-input`,s.value)}function h(){o=!0,i(`change-department`,s.value),(0,t.nextTick)(()=>{o=!1})}function g(e){s.value.title=e,m()}function _(e){s.value.text=e,m()}return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(CK,{id:`message-template-form-modal`,title:c.value,"submit-button-title":l.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(_Y,{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":r.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:u,onChangeDepartment:h,onChangeText:_,onChangeTitle:g},{"extra-fields":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}},yY={key:0},bY={key:1},xY={key:2},SY={key:3},CY={key:1},wY={key:2},TY=[`href`],EY=(0,t.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:n}){let{t:r}=Ku(),i=e,a=n,o=()=>i.isMissingCameraPermission||i.isMissingMicrophonePermission||i.isMissingMobileActivation||i.isMissingVideoConferencingSupport,s=(0,t.computed)(()=>o()?r(`videoCallConfirmationModal.close`):r(`videoCallConfirmationModal.cancel`)),c=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noMobileActivationMessage`)}`),l=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noCompatibleDevices`)}`),u=(0,t.computed)(()=>r(`videoCallConfirmationModal.title`)),d=(0,t.computed)(()=>r(`videoCallConfirmationModal.ok`)),f=(0,t.computed)(()=>r(`videoCallConfirmationModal.generalWarning`)),p=(0,t.computed)(()=>r(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,t.computed)(()=>r(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,t.computed)(()=>r(`videoCallConfirmationModal.message`)),g=(0,t.computed)(()=>r(`videoCallConfirmationModal.participantMessage`)),_=(0,t.computed)(()=>r(`videoCallConfirmationModal.testMessage`)),v=(0,t.computed)(()=>r(`videoCallConfirmationModal.helpMessage`)),y=()=>a(`confirmed`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(CK,{id:`video-call-confirmation-modal`,title:u.value,"submit-button-title":d.value,"close-button-title":s.value,"hide-footer-submit-button":o(),onSubmit:y},{default:(0,t.withCtx)(()=>[o()?((0,t.openBlock)(),(0,t.createBlock)(xa,{key:0,variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(f.value),1),(0,t.createElementVNode)(`ul`,null,[i.isMissingCameraPermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,yY,(0,t.toDisplayString)(p.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMicrophonePermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,bY,(0,t.toDisplayString)(m.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMobileActivation?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,xY,(0,t.toDisplayString)(c.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingVideoConferencingSupport?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,SY,(0,t.toDisplayString)(l.value),1)):(0,t.createCommentVNode)(``,!0)])]),_:1})):i.participantName?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,CY,[(0,t.createTextVNode)((0,t.toDisplayString)(g.value)+` `,1),(0,t.createElementVNode)(`b`,null,(0,t.toDisplayString)(i.participantName),1),n[0]||=(0,t.createTextVNode)(`?`,-1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,wY,(0,t.toDisplayString)(h.value),1)),(0,t.createElementVNode)(`p`,null,[(0,t.createElementVNode)(`a`,{href:i.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,t.toDisplayString)(_.value),9,TY),(0,t.createElementVNode)(`span`,null,`\xA0`+(0,t.toDisplayString)(v.value),1)])]),_:1},8,[`title`,`submit-button-title`,`close-button-title`,`hide-footer-submit-button`]))}}),DY=()=>({ResetValidation:e=>{for(let t in e.value)e.value[t].state=null},ValidationObjectIsValid:e=>{for(let t in e)if(e[t].state===!1)return!1;return!0}}),OY={class:`template change-password-template`},kY={class:`template-title`},AY={key:0},jY={key:1},MY={class:`bd-form-field`},NY={class:`bd-form-field`},PY={class:`bd-form-field`},FY={class:`bd-form-buttons`},IY=(0,t.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t:n}=Ku(),{showDangerToast:r,showWarningToast:i,showSuccessToast:a}=sO(),{errorMessages:o,errorMessageText:s,MapServerErrors:c,ResetServerErrors:l}=EK(null),{ValidationObjectIsValid:u}=DY(),d=e,f=(0,t.ref)({password:``,passwordNew:``,passwordRepeat:``}),p=(0,t.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),m=()=>{if(!h())return;let e=d.submitPassword(f.value);e&&e.then(()=>{a(d.successText),g()}).catch(e=>{r(d.failureText),c(e)})},h=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))p.value.passwordNew.state=!1,p.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;p.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,p.value.passwordNew.errorLabel=t,p.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,p.value.passwordRepeat.errorLabel=t}return p.value.password.state=f.value.password===``?!1:null,p.value.password.errorLabel=p.value.password.state?``:d.requiredText,u(p.value)},g=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,p.value.password.state=null,p.value.passwordNew.state=null,p.value.passwordRepeat.state=null,l(),i(n(`changePasswordTemplate.toasters.reset`)))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,OY,[(0,t.createVNode)(qK,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(JK,{class:`justify-content-md-center template-header`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`h1`,kY,(0,t.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,t.createVNode)(JK,{class:`justify-content-md-center`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ra,{class:`bd-card-template`,"no-header":!0},{body:(0,t.withCtx)(()=>[(0,t.createVNode)(qK,{class:`container-fluid`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(JK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xa,{variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.alertText),1)]),_:1})]),_:1})]),_:1}),(0,t.unref)(o)||(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createBlock)(JK,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xa,{variant:`danger`},{default:(0,t.withCtx)(()=>[(0,t.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,AY,[(0,t.createElementVNode)(`ul`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(o),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n},[(0,t.createVNode)(Vn),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e),1)]))),128))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,jY,(0,t.toDisplayString)((0,t.unref)(s)),1))]),_:1})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(JK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,{class:`bd-card-form`,sm:12,md:12},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`form`,{onSubmit:(0,t.withModifiers)(m,[`prevent`]),onReset:(0,t.withModifiers)(g,[`prevent`]),class:`form`},[(0,t.createElementVNode)(`div`,MY,[(0,t.createVNode)(Lg,{modelValue:(0,t.unref)(f).password,"onUpdate:modelValue":r[0]||=e=>(0,t.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,t.unref)(p).password.state,type:`password`,"invalid-feedback-text":(0,t.unref)(p).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,NY,[(0,t.createVNode)(Lg,{modelValue:(0,t.unref)(f).passwordNew,"onUpdate:modelValue":r[1]||=e=>(0,t.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,t.unref)(p).passwordNew.state,type:`password`,"invalid-feedback-text":(0,t.unref)(p).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,PY,[(0,t.createVNode)(Lg,{modelValue:(0,t.unref)(f).passwordRepeat,"onUpdate:modelValue":r[2]||=e=>(0,t.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,t.unref)(p).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,t.unref)(p).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,FY,[(0,t.createVNode)(j,{type:`submit`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,t.createVNode)(j,{type:`reset`,variant:`link`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}});function LY(...e){if(e.length>0){let t=String(e[0]);t.includes(`:error`)?console.error(...e):t.includes(`:warning`)?console.warn(...e):t.includes(`:info`)?console.info(...e):(t.includes(`:verbose`),console.debug(...e))}}function RY(e){return globalThis.process?.env?.[e]}typeof window<`u`&&window.document,typeof self==`object`&&`importScripts`in self&&typeof self.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name);var zY=RY(`DEBUG`),BY,VY=[],HY=[],UY=[];zY&&GY(zY);var WY=Object.assign(e=>YY(e),{enable:GY,enabled:KY,disable:JY,log:LY});function GY(e){BY=e,VY=[],HY=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?HY.push(e.substring(1)):VY.push(e);for(let e of UY)e.enabled=KY(e.namespace)}function KY(e){if(e.endsWith(`*`))return!0;for(let t of HY)if(qY(e,t))return!1;for(let t of VY)if(qY(e,t))return!0;return!1}function qY(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r<o&&i<a;)if(n[i]===`*`){if(s=i,i++,i===a)return!0;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else if(n[i]===e[r])i++,r++;else if(s>=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function JY(){let e=BY||``;return GY(``),e}function YY(e){let t=Object.assign(n,{enabled:KY(e),destroy:XY,log:WY.log,namespace:e,extend:ZY});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return UY.push(t),t}function XY(){let e=UY.indexOf(this);return e>=0?(UY.splice(e,1),!0):!1}function ZY(e){let t=YY(`${this.namespace}:${e}`);return t.log=this.log,t}var QY=[`verbose`,`info`,`warning`,`error`],$Y={verbose:400,info:300,warning:200,error:100};function eX(e,t){t.log=(...t)=>{e.log(...t)}}function tX(e){return QY.includes(e)}function nX(e){let t=new Set,n=RY(e.logLevelEnvVarName),r,i=WY(e.namespace);i.log=(...e)=>{WY.log(...e)};function a(e){if(e&&!tX(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${QY.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);WY.enable(n.join(`,`))}n&&(tX(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${QY.join(`, `)}.`));function o(e){return!!(r&&$Y[e.level]<=$Y[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(eX(e,r),o(r)){let e=WY.disable();WY.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return eX(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}nX({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`}).logger;var rX=nX({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`}),iX=rX.logger;function aX(e){rX.setLogLevel(e)}var oX={class:`video-call-template`},sX={key:0,class:`card`},cX={key:0,class:`permissions-denied__audio`},lX={class:`permissions-denied__audio-disabled`},uX={key:1,class:`permissions-denied__video`},dX={class:`permissions-denied__video-disabled`},fX={key:1,class:`card`},pX={class:`incoming__settings`},mX={class:`side`},hX={class:`outgoing`},gX={class:`card`},_X={key:0,class:`outgoing__video`},vX={class:`outgoing__available-cameras-count text-center`},yX={key:3,class:`permissions-denied__video`},bX={class:`permissions-denied__video-disabled`},xX={class:`settings`},SX={class:`settings__status`},CX={class:`settings__status-text`},wX={key:0,class:`settings__status-detail`},TX={class:`settings__help`},EX=[`href`],DX={href:`https://www.beterdichtbij.nl/service-contact/`,target:`blank`,rel:`noopener noreferrer`},OX=2e3,kX={__name:`BDVideoCallTemplate`,props:{participant:{type:Object,default:null},isCallee:{type:Boolean,default:!1},videoTestUrl:{type:String,default:``}},emits:[`ready`,`start-call`,`end-call`],setup(e,{expose:i,emit:a}){let o=Object.freeze({Initializing:`initializing`,Dialing:`dialing`,Ringing:`ringing`,Answered:`answered`,Connected:`connected`,Declined:`declined`,HangedUp:`hangedUp`,DevicePermissionDenied:`devicePermissionDenied`}),s=e,c=a,{tm:l}=Ku(),u=(0,t.ref)([]),d=navigator.userAgent.indexOf(`Firefox`)>-1,f=(0,t.computed)(()=>l(`videoCallTemplate`)),p=(0,t.ref)(!1),m=(0,t.ref)(!1),h=(0,t.ref)(!1),g=(0,t.ref)(2),_=(0,t.ref)({}),v=(0,t.ref)(o.Initializing),y=(0,t.ref)(null),b=(0,t.reactive)({client:null,agent:null,deviceManager:null,incomingCall:null,call:null}),x=(0,t.ref)(null),S=(0,t.ref)(null),C=(0,t.ref)(null),w=(0,t.ref)(null),T=(0,t.ref)(0),E=(0,t.ref)(0),D=(0,t.ref)(null),O=(0,t.ref)(!1),ee=(0,t.ref)(``),te=(0,t.ref)(``),k=(0,t.ref)(null),ne=(0,t.ref)(null),re=null,ie=null,ae=null,oe=(0,t.computed)(()=>{switch(T.value){case 0:return f.value.hasNoAvailableCamera;case 1:return f.value.hasOneAvailableCamera;default:return f.value.hasMultipleAvailableCameras}}),se=(0,t.computed)(()=>{let e=navigator.userAgent;return/Mobi/.test(e)&&!p.value}),ce=(0,t.computed)(()=>{let e=navigator.userAgent,t=e.indexOf(`Android`)!==-1,n=/Mobi/.test(e),r=/iPad|iPhone|iPod/.test(e)&&!window.MSStream;return!(t&&n||r)}),le=(0,t.computed)(()=>!_.value?.video&&xe.value),ue=(0,t.computed)(()=>!_.value?.audio&&xe.value),de=(0,t.computed)(()=>v.value===o.Declined?`incoming--declined`:`incoming--loading`),fe=(0,t.computed)(()=>{switch(g.value){case 0:return`weak`;case 1:return`steady`;case 2:return`strong`;default:return null}}),pe=(0,t.computed)(()=>{switch(g.value){case 0:return f.value.signalStrength.weak;case 1:return f.value.signalStrength.steady;case 2:return f.value.signalStrength.strong;default:return null}}),me=(0,t.computed)(()=>p.value?f.value.stopSharingScreen:f.value.shareScreen),he=(0,t.computed)(()=>f.value.placeholderSettingsHelpTitle),ge=(0,t.computed)(()=>f.value.placeholderSettingsHelpMessage),_e=(0,t.computed)(()=>v.value===o.Declined),ve=(0,t.computed)(()=>v.value===o.HangedUp),ye=(0,t.computed)(()=>v.value===o.Connected),be=(0,t.computed)(()=>!ye.value),xe=(0,t.computed)(()=>v.value===o.DevicePermissionDenied),Se=(0,t.computed)(()=>{switch(console.log(`videoCallState.value`,v.value),v.value){case o.Initializing:return f.value.initializing;case o.Dialing:return f.value.messageWhenDialing;case o.Ringing:return f.value.messageWhenRinging;case o.Answered:return f.value.answered;case o.Connected:return f.value.messageWhenConnected;case o.Declined:return f.value.messageWhenVideoCallDeclined;case o.HangedUp:return f.value.messageWhenVideoCallHangedUp;case o.DevicePermissionDenied:return f.value.messageWhenDevicePermissionDenied}return f.value.unknown}),Ce=(0,t.computed)(()=>ee.value||Se.value),we=(0,t.computed)(()=>te.value),Te=(0,t.computed)(()=>h.value?`.incoming__screenshare`:`.incoming__video`);(0,t.onMounted)(()=>{st(),ne.value=window.setInterval(Ie,5e3)}),(0,t.onUnmounted)(()=>{D.value&&window.clearInterval(D.value),ne.value&&window.clearInterval(ne.value),Ee(),at()});function Ee(){re&&=(window.clearTimeout(re),null),ie&&=(window.clearTimeout(ie),null),ae&&=(window.clearTimeout(ae),null)}function De(){Ee(),v.value===o.Dialing&&(re=window.setTimeout(()=>{v.value===o.Dialing&&(ee.value=f.value.messageWhenCallNotDelivered,te.value=f.value.messageWhenCallNotDeliveredDetail)},3e4)),v.value===o.Ringing&&(ie=window.setTimeout(()=>{v.value===o.Ringing&&(ee.value=``,te.value=f.value.messageWhenNotAnsweredDetail)},5e3)),v.value===o.Connected&&(ae=window.setTimeout(()=>{v.value===o.Connected&&(te.value=f.value.messageWhenNoVideoHint)},5e3))}function Oe(e){console.log(`SetVideoCallState`,e),v.value=e,ee.value=``,te.value=``,De()}function A(){Oe(o.Declined)}function ke(){Oe(o.Answered)}function Ae(){v.value!==o.Connected&&Oe(o.Dialing)}function je(){v.value!==o.DevicePermissionDenied&&!s.isCallee&&Be()}async function Me(){Oe(o.HangedUp),_.value.video&&rt()}function Ne(e){Oe(o.HangedUp),te.value=qe(e)}function Pe(){ee.value=f.value.messageWhenSignalHold,te.value=f.value.messageWhenSignalHoldDetail}function Fe(){k.value=new Date}function Ie(){if(!k.value||v.value===o.HangedUp)return;let e=new Date,t=new Date(k.value),n=Math.abs(e.getTime()-t.getTime()),r=Math.ceil(n/1e3);r>=40?(ee.value=f.value.messageWhenConnectionIssues,te.value=f.value.messageWhenConnectionIssuesStrong,g.value=0):r>20&&(ee.value=f.value.messageWhenConnectionIssues,te.value=f.value.messageWhenConnectionIssuesMedium,g.value=1)}async function Le(e){b.client=(0,t.markRaw)(new n.CallClient);let i=new r.AzureCommunicationTokenCredential(e);b.agent=(0,t.markRaw)(await b.client.createCallAgent(i)),b.deviceManager=await b.client.getDeviceManager(),_.value=await b.deviceManager.askDevicePermission({video:!0,audio:!0}),D.value=window.setInterval(rt,5e3),(!_.value.audio||!_.value.video)&&Oe(o.DevicePermissionDenied),console.log(`register set incoming call listener`),b.agent.on(`incomingCall`,Re),s.isCallee?c(`ready`):c(`start-call`)}async function Re(e){if(console.log(`Set incoming call`,e),!O.value)try{O.value=!0,b.incomingCall=e.incomingCall,await Ve()}catch(e){console.log(`error occured during starting call`,e)}finally{O.value=!1}}async function ze(){let e=await He();return e?{localVideoStreams:[e]}:void 0}async function Be(){console.log(`Starting call...`);try{Oe(o.Dialing);let e={videoOptions:await ze()},t=[{communicationUserId:s.participant.videoCallIdentityId}];b.call=b.agent.startCall(t,e),We(),Ue()}catch(e){console.error(e)}}async function Ve(){console.log(`Accepting incoming call...`);let e=await ze();try{b.call=await b.incomingCall.accept({videoOptions:e})}catch(e){console.error(`Error occurred during accepting call`,e)}We(),Ue()}async function He(){let e=(await b.deviceManager.getCameras())[0];if(e)return new n.LocalVideoStream(e);console.error(`No camera device found on the system`)}function Ue(){console.log(`Subscribing to call events`),b.call.on(`stateChanged`,Ke),b.call.on(`localVideoStreamsUpdated`,e=>{e.added.forEach(Ye),e.removed.forEach(Je)}),b.call.remoteParticipants.forEach(Ze),b.call.on(`remoteParticipantsUpdated`,e=>{e.added.forEach(Ze)}),b.call.on(`isScreenSharingOnChanged`,()=>{p.value=b.call.isScreenSharingOn})}function We(){y.value=b.call.feature(n.Features.UserFacingDiagnostics),y.value.media.on(`diagnosticChanged`,Ge),y.value.network.on(`diagnosticChanged`,Ge)}function Ge(e){(e.diagnostic===`networkReceiveQuality`||e.diagnostic===`networkSendQuality`)&&(e.value===n.DiagnosticQuality.Bad?(console.error(`${e.diagnostic} is bad quality`),g.value=0):e.value===n.DiagnosticQuality.Poor?(console.error(`${e.diagnostic} is poor quality`),g.value=1):g.value=2)}function Ke(){switch(console.log(`Call state changed to`,b.call.state),b.call.state){case`EarlyMedia`:Oe(o.Dialing);break;case`Ringing`:Oe(o.Ringing);break;case`Connected`:Oe(o.Connected);break;case`Disconnected`:let e=b.call.callEndReason;console.log(`Call end reason:`,e),console.log(`Code:`,e?.code),console.log(`SubCode:`,e?.subCode),Me();break}}function qe(e){let t=String(e);return f.value.callEndReasons?.[t]||``}async function Je(e){if(!e||e.mediaStreamType!==`ScreenSharing`||!w.value)return;w.value.dispose();let t=document.querySelector(`.outgoing__screenshare`);t.style.display=`none`;let n=document.querySelector(`.outgoing__video`);n.style.display=`flex`}async function Ye(e){if(!e||e.mediaStreamType!==`ScreenSharing`)return;w.value=await new n.VideoStreamRenderer(e).createView();let t=document.querySelector(`.outgoing__screenshare`);t.replaceChildren(w.value.target),t.style.display=`flex`;let r=document.querySelector(`.outgoing__video`);r.style.display=`none`;let i=t.querySelector(`video`);i.style.objectFit=`contain`}async function Xe(e){if(e&&e.source&&x.value&&x.value.source&&x.value.source.id==e.source.id)return!0;try{S.value=new n.VideoStreamRenderer(e);let t=await S.value.createView(),r=document.querySelector(`.outgoing__video`);r.querySelector(`video`)&&(r.innerHTML=``),r.hidden=!1,r.replaceChildren(t.target)}catch{return!1}return x.value=e,!0}async function Ze(e){e.videoStreams.forEach(Qe),e.on(`videoStreamsUpdated`,e=>{e.added.forEach(Qe)})}async function Qe(e){if(e.mediaStreamType===`Video`&&(await $e(e),e.on(`isAvailableChanged`,async()=>await $e(e))),e.mediaStreamType===`ScreenSharing`&&e.on(`isAvailableChanged`,tt),e.mediaStreamType===`ScreenSharing`&&e.isAvailable){C.value=new n.VideoStreamRenderer(e);let t=await C.value.createView(),r=document.querySelector(`.incoming__screenshare`);et(!0),h.value=!0,it(`.incoming__screenshare`),r.replaceChildren(t.target)}}async function $e(e){if(!e.isAvailable)return;C.value=new n.VideoStreamRenderer(e);let t=await C.value.createView(),r=document.querySelector(`.incoming__video`);r.hidden=!1,r.replaceChildren(t.target),it(`.incoming__video`),et(!1)}function et(e){let t=document.querySelector(`.incoming__video`),n=document.querySelector(`.incoming__screenshare`);t.style.display=e?`none`:`block`,n.style.display=e?`flex`:`none`}function tt(){h.value=!1,et(!1)}async function nt(){rt(!0)}async function rt(e=!1){let t=b.call?.state;if(t===`Connecting`||t===`EarlyMedia`)return;let r=(await b.deviceManager.getCameras()).filter(e=>e.name!=`OBS Virtual Camera`);T.value=r.length;for(let t=0;t<T.value;t++){(e||t!=0)&&(E.value=(E.value+1)%T.value);let i=r[E.value];if(await Xe(new n.LocalVideoStream(i)))break}}function it(e){let t=document.querySelector(e);if(!t)return;let n=t.querySelector(`video`);n&&(n.style.objectFit=`contain`,n.disablePictureInPicture=!1)}async function at(){b.call&&b.call.state!==`Disconnected`&&(await b.call.hangUp({forEveryone:!0}),await b.agent.dispose()),c(`end-call`),window.close()}function ot(){window.close()}function st(){iX.log=(...e)=>console.log(...e),aX(`verbose`),iX.log=(...e)=>{let t=[...e];u.value=u.value.splice(1-OX).concat(t)}}function ct(){document.querySelector(Te.value).querySelector(`video`).requestFullscreen()}function lt(){let e=document.querySelector(Te.value).querySelector(`video`);document.pictureInPictureElement?e.exitPictureInPicture():document.pictureInPictureEnabled&&e.requestPictureInPicture()}async function ut(){b.call&&b.call.isScreenSharingOn?await b.call.stopScreenSharing():await b.call.startScreenSharing()}return i({CallDeclined:A,CallAnswered:ke,CallForDataReceived:Ae,CallClosedWithStatusCode:Ne,CallHeartbeatReceived:Fe,CallSignalHoldDetected:Pe,CallStartVideoCall:je,CallHangUp:Me,InitializeAcsConnection:Le}),(e,n)=>{let r=(0,t.resolveComponent)(`BDLoader`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,oX,[(0,t.createVNode)(qK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(JK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(FG,{smallState:!0,contactInfo:s.participant.contact},null,8,[`contactInfo`])]),_:1})]),_:1}),(0,t.createVNode)(JK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,{sm:`12`,lg:_e.value?`12`:`8`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`incoming`,de.value])},[be.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sX,[(0,t.createVNode)(r,{size:`lg`,message:Se.value,stopAnimation:_e.value||ve.value||xe.value},null,8,[`message`,`stopAnimation`]),ue.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,cX,[(0,t.createElementVNode)(`div`,lX,[(0,t.createVNode)(Hr,{class:`icon-xl icon-state-error`})]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(f.value.permissionDeniedForAudio),1)])):(0,t.createCommentVNode)(``,!0),le.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uX,[(0,t.createElementVNode)(`div`,dX,[(0,t.createVNode)(ua,{class:`icon-xl icon-state-error`})]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(f.value.permissionDeniedForVideo),1)])):(0,t.createCommentVNode)(``,!0),_e.value||ve.value||xe.value?((0,t.openBlock)(),(0,t.createBlock)(j,{key:2,variant:`primary`,class:`text-center`,onClick:ot},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(f.value.closeWindow),1)]),_:1})):(0,t.createCommentVNode)(``,!0)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fX,[n[0]||=(0,t.createElementVNode)(`div`,{class:`incoming__video`},null,-1),n[1]||=(0,t.createElementVNode)(`div`,{class:`incoming__screenshare`},null,-1),(0,t.createElementVNode)(`div`,pX,[(0,t.createVNode)(j,{variant:`primary`,class:`text-center`,onClick:ct},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ti),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(f.value.fullScreen),1)]),_:1}),!d&&!m.value?((0,t.openBlock)(),(0,t.createBlock)(j,{key:0,variant:`primary`,class:`text-center`,onClick:lt},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ti),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(f.value.miniPlayer),1)]),_:1})):(0,t.createCommentVNode)(``,!0)])]))],2)]),_:1},8,[`lg`]),_e.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(KK,{key:0,sm:`12`,lg:`4`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,mX,[(0,t.createElementVNode)(`div`,null,[(0,t.createElementVNode)(`div`,hX,[(0,t.createElementVNode)(`div`,gX,[xe.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_X)),n[2]||=(0,t.createElementVNode)(`div`,{class:`outgoing__screenshare`},null,-1),ce.value&&!xe.value&&!m.value&&!be.value?((0,t.openBlock)(),(0,t.createBlock)(j,{key:1,variant:p.value?`danger`:`primary`,class:`text-center`,onClick:ut},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ti),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(me.value),1)]),_:1},8,[`variant`])):(0,t.createCommentVNode)(``,!0),se.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createVNode)(j,{class:`text-center`,onClick:nt},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(f.value.switchCamera),1)]),_:1}),(0,t.createElementVNode)(`p`,vX,(0,t.toDisplayString)(oe.value),1)],64)):(0,t.createCommentVNode)(``,!0),le.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,yX,[(0,t.createElementVNode)(`div`,bX,[(0,t.createVNode)(ua,{class:`icon-xxl icon-state-error`})]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(f.value.permissionDeniedForVideo),1)])):(0,t.createCommentVNode)(``,!0)])]),(0,t.createElementVNode)(`div`,xX,[(0,t.createElementVNode)(`div`,SX,[(0,t.createElementVNode)(`p`,CX,(0,t.toDisplayString)(Ce.value),1),we.value?((0,t.openBlock)(),(0,t.createElementBlock)(`small`,wX,(0,t.toDisplayString)(we.value),1)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`settings__signal`,fe.value])},[n[3]||=(0,t.createElementVNode)(`ul`,{class:`indicator`},[(0,t.createElementVNode)(`li`),(0,t.createElementVNode)(`li`),(0,t.createElementVNode)(`li`)],-1),(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(pe.value),1)],2),(0,t.createElementVNode)(`div`,TX,[(0,t.createElementVNode)(`p`,null,[(0,t.createElementVNode)(`b`,null,(0,t.toDisplayString)(he.value),1)]),(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(ge.value),1),(0,t.createElementVNode)(`p`,null,[(0,t.createElementVNode)(`a`,{href:s.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,t.toDisplayString)(f.value.testCall),9,EX),n[4]||=(0,t.createTextVNode)(` • `,-1),(0,t.createElementVNode)(`a`,DX,(0,t.toDisplayString)(f.value.serviceDesk),1)])])])]),!ve.value&&!xe.value?((0,t.openBlock)(),(0,t.createBlock)(j,{key:0,variant:`danger`,class:`text-center w-100`,onClick:at},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ht),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(f.value.endCall),1)]),_:1})):(0,t.createCommentVNode)(``,!0)])]),_:1}))]),_:1})]),_:1})])}}},AX={class:`template not-found-template`},jX={class:`center-screen`},MX={class:`container-warning`},NX=(0,t.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:n}){let{t:r}=Ku(),i=e,a=n,o=(0,t.computed)(()=>i.buttonText||r(`notFoundTemplate.buttonDefault`)),s=(0,t.computed)(()=>r(`notFoundTemplate.title`)),c=(0,t.computed)(()=>r(`notFoundTemplate.description`)),l=()=>a(`navigate`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,AX,[(0,t.createVNode)(qK,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,jX,[(0,t.createElementVNode)(`div`,MX,[(0,t.createVNode)($i),(0,t.createElementVNode)(`h1`,null,(0,t.toDisplayString)(s.value),1),(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(c.value),1),(0,t.createVNode)(j,{onClick:l,variant:`primary`,type:`button`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.value),1)]),_:1})])])]),_:1})]))}});e.BDAlert=xa,e.BDArticle=wa,e.BDAssignConversationModal=ZK,e.BDAttachmentPreviewList=R_,e.BDAttachmentUploadModal=QK,e.BDBadge=Da,e.BDButton=j,e.BDCard=Ra,e.BDChangePasswordTemplate=IY,e.BDChatCloud=ov,e.BDCol=KK,e.BDCollapsableCard=Ha,e.BDConfirmationModal=$K,e.BDContainer=qK,e.BDContentLibraryModal=HJ,e.BDContentLibrarySplitButton=jh,e.BDContentLibraryTemplate=VJ,e.BDConversationToTextModal=lY,e.BDDate=Xh,e.BDDropdown=sK,e.BDDropdownItem=sv,e.BDFileUpload=dO,e.BDForm=Zh,e.BDFormCheckbox=hg,e.BDFormInput=Lg,e.BDFormInvalidFeedback=_g,e.BDFormMultipleCheckbox=hO,e.BDFormSelect=Hg,e.BDHeader=mK,e.BDImageAttachmentModal=gY,e.BDImageAttachmentPreviewList=q_,e.BDInputGroup=Gg,e.BDLink=ka,e.BDLoader=Zg,e.BDLogo=e_,e.BDMarkdownEditor=wG,e.BDMessageTemplateFormModal=vY,e.BDMobileMenu=jG,e.BDModal=CK,e.BDNotFoundTemplate=NX,e.BDPagination=s_,e.BDPhoneNumberEditModal=jK,e.BDPill=m_,e.BDPillContainer=__,e.BDPractitionerHeader=GK,e.BDProfileImage=b_,e.BDRow=JK,e.BDSessionTimeOutModal=XK,e.BDSmallConversationCard=FG,e.BDTable=WG,e.BDToast=T_,e.BDUser=YG,e.BDUserInformation=A_,e.BDVideoCallConfirmationModal=EY,e.BDVideoCallTemplate=kX,e.BDVideoCallToast=oK,e.BDZoomslider=N_,e.CopyChatMessageToClipboard=$J,e.CopyChatMessagesToClipboard=eY,e.CopyHl7MessagesToClipboard=tY,e.CreateHyperlinkParagraph=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,e.CreateThumbnailUri=Z_,e.IconAcademy=y,e.IconArrowDown=C,e.IconArrowUp=D,e.IconAttachment=k,e.IconBold=ae,e.IconBulletList=le,e.IconCalendar=pe,e.IconCall=_e,e.IconCallReject=xe,e.IconCardView=Te,e.IconCaretDown=A,e.IconCaretLeft=Me,e.IconCaretRight=Ie,e.IconCheck=Be,e.IconClipboard=We,e.IconClose=Je,e.IconComment=Qe,e.IconCommentActive=nt,e.IconCommentStatic=ot,e.IconCommonFileEmpty=ut,e.IconCommonFileWarning=mt,e.IconContactPerson=vt,e.IconCopy=St,e.IconDelete=Et,e.IconDoubleCheck=At,e.IconDownloadImage=Pt,e.IconEdit=Rt,e.IconEndCall=Ht,e.IconError=Kt,e.IconExternal=Xt,e.IconEyeShow=en,e.IconEyeSlash=an,e.IconFile=ln,e.IconFileAdded=pn,e.IconForward=_n,e.IconHix=xn,e.IconHyperlink=Tn,e.IconImageFileLandscape=kn,e.IconImageFileWarning=Nn,e.IconInbox=Ln,e.IconInfo=Vn,e.IconInformationCircle=Gn,e.IconItalic=Yn,e.IconListView=$n,e.IconLock=rr,e.IconLusciiEscalated=sr,e.IconLusciiLogo=dr,e.IconLusciiOpen=hr,e.IconLusciiPriorityHigh=yr,e.IconLusciiPriorityLow=Cr,e.IconLusciiPriorityMedium=Dr,e.IconMenu=jr,e.IconMessage=Fr,e.IconMessageForward=zr,e.IconMicrophoneSlash=Hr,e.IconMicrosoftTeams=Kr,e.IconMin=Xr,e.IconOrderedList=ei,e.IconPlus=ii,e.IconRefresh=ci,e.IconRemove=fi,e.IconSananetLogo=_i,e.IconService=xi,e.IconShareScreen=Ti,e.IconSingleNeutral=ki,e.IconSort=Ni,e.IconSortAsc=Li,e.IconSortDesc=Vi,e.IconSortNone=Gi,e.IconTriangleDown=Yi,e.IconTriangleExclamation=$i,e.IconUnderline=ra,e.IconVideoDisabled=ua,e.IconVideocall=sa,e.IconWarning=ma,e.IconZorgkaart=va,e.MapAttachmentsForApi=J_,e.MapToAttachmentObjects=ev,e.TransformHyperlinks=e=>{let t=/<a\b[^>]*>.*?<\/a>/gi,n=[],r;for(;(r=t.exec(e))!==null;)n.push({start:r.index,end:r.index+r[0].length});return e.replace(/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g,(e,t,r)=>n.some(e=>r>=e.start&&r<e.end)?e:`<a href="${e.startsWith(`www.`)?`http://${e}`:e}" target="_blank" rel="noopener noreferrer">${e}</a>`)},e.ValidateUrl=e=>e.startsWith(`http://`)||e.startsWith(`https://`),e.default={install:e=>{e.component(`BDAlert`,xa),e.component(`BDArticle`,wa),e.component(`BDAssignConversationModal`,ZK),e.component(`BDAttachmentPreviewList`,R_),e.component(`BDAttachmentUploadModal`,QK),e.component(`BDBadge`,Da),e.component(`BDButton`,j),e.component(`BDCard`,Ra),e.component(`BDChangePasswordTemplate`,IY),e.component(`BDChatCloud`,ov),e.component(`BDCol`,KK),e.component(`BDCollapsableCard`,Ha),e.component(`BDConfirmationModal`,$K),e.component(`BDContainer`,qK),e.component(`BDContentLibraryModal`,HJ),e.component(`BDContentLibrarySplitButton`,jh),e.component(`BDContentLibraryTemplate`,VJ),e.component(`BDConversationToTextModal`,lY),e.component(`BDDate`,Xh),e.component(`BDDropdown`,sK),e.component(`BDDropdownItem`,sv),e.component(`BDFileUpload`,dO),e.component(`BDForm`,Zh),e.component(`BDFormCheckbox`,hg),e.component(`BDFormInput`,Lg),e.component(`BDFormInvalidFeedback`,_g),e.component(`BDFormMultipleCheckbox`,hO),e.component(`BDFormSelect`,Hg),e.component(`BDHeader`,mK),e.component(`BDImageAttachmentModal`,gY),e.component(`BDImageAttachmentPreviewList`,q_),e.component(`BDInputGroup`,Gg),e.component(`BDLink`,ka),e.component(`BDLoader`,Zg),e.component(`BDLogo`,e_),e.component(`BDMarkdownEditor`,wG),e.component(`BDMessageTemplateFormModal`,vY),e.component(`BDMobileMenu`,jG),e.component(`BDModal`,CK),e.component(`BDNotFoundTemplate`,NX),e.component(`BDPagination`,s_),e.component(`BDPhoneNumberEditModal`,jK),e.component(`BDPill`,m_),e.component(`BDPillContainer`,__),e.component(`BDPractitionerHeader`,GK),e.component(`BDProfileImage`,b_),e.component(`BDRow`,JK),e.component(`BDSessionTimeOutModal`,XK),e.component(`BDSmallConversationCard`,FG),e.component(`BDTable`,WG),e.component(`BDToast`,T_),e.component(`BDUser`,YG),e.component(`BDUserInformation`,A_),e.component(`BDVideoCallConfirmationModal`,EY),e.component(`BDVideoCallTemplate`,kX),e.component(`BDVideoCallToast`,oK),e.component(`BDZoomslider`,N_),e.component(`IconAcademy`,y),e.component(`IconArrowDown`,C),e.component(`IconArrowUp`,D),e.component(`IconAttachment`,k),e.component(`IconBold`,ae),e.component(`IconBulletList`,le),e.component(`IconCalendar`,pe),e.component(`IconCall`,_e),e.component(`IconCallReject`,xe),e.component(`IconCardView`,Te),e.component(`IconCaretDown`,A),e.component(`IconCaretLeft`,Me),e.component(`IconCaretRight`,Ie),e.component(`IconCheck`,Be),e.component(`IconClipboard`,We),e.component(`IconClose`,Je),e.component(`IconComment`,Qe),e.component(`IconCommentActive`,nt),e.component(`IconCommentStatic`,ot),e.component(`IconCommonFileEmpty`,ut),e.component(`IconCommonFileWarning`,mt),e.component(`IconContactPerson`,vt),e.component(`IconCopy`,St),e.component(`IconDelete`,Et),e.component(`IconDoubleCheck`,At),e.component(`IconDownloadImage`,Pt),e.component(`IconEdit`,Rt),e.component(`IconEndCall`,Ht),e.component(`IconError`,Kt),e.component(`IconExternal`,Xt),e.component(`IconEyeShow`,en),e.component(`IconEyeSlash`,an),e.component(`IconFile`,ln),e.component(`IconFileAdded`,pn),e.component(`IconForward`,_n),e.component(`IconHix`,xn),e.component(`IconHyperlink`,Tn),e.component(`IconImageFileLandscape`,kn),e.component(`IconImageFileWarning`,Nn),e.component(`IconInbox`,Ln),e.component(`IconInfo`,Vn),e.component(`IconInformationCircle`,Gn),e.component(`IconItalic`,Yn),e.component(`IconListView`,$n),e.component(`IconLock`,rr),e.component(`IconLusciiEscalated`,sr),e.component(`IconLusciiLogo`,dr),e.component(`IconLusciiOpen`,hr),e.component(`IconLusciiPriorityHigh`,yr),e.component(`IconLusciiPriorityLow`,Cr),e.component(`IconLusciiPriorityMedium`,Dr),e.component(`IconMenu`,jr),e.component(`IconMessage`,Fr),e.component(`IconMessageForward`,zr),e.component(`IconMicrophoneSlash`,Hr),e.component(`IconMicrosoftTeams`,Kr),e.component(`IconMin`,Xr),e.component(`IconOrderedList`,ei),e.component(`IconPlus`,ii),e.component(`IconRefresh`,ci),e.component(`IconRemove`,fi),e.component(`IconSananetLogo`,_i),e.component(`IconService`,xi),e.component(`IconShareScreen`,Ti),e.component(`IconSingleNeutral`,ki),e.component(`IconSort`,Ni),e.component(`IconSortAsc`,Li),e.component(`IconSortDesc`,Vi),e.component(`IconSortNone`,Gi),e.component(`IconTriangleDown`,Yi),e.component(`IconTriangleExclamation`,$i),e.component(`IconUnderline`,ra),e.component(`IconVideoDisabled`,ua),e.component(`IconVideocall`,sa),e.component(`IconWarning`,ma),e.component(`IconZorgkaart`,va),e.directive(`bd-tooltip`,xG)}},e.getDisplayDateNumeric=Jh,e.getDisplayDateTextual=Gh,e.getDisplayDateTimeNumeric=qh,e.getDisplayDateTimeTextual=Kh,e.useModal=wK,e.usePopover=IK,e.useServerErrors=EK,e.useSessionTimeOut=YK,e.useToaster=sO,e.useValidation=DY,e.useWindow=PK,e.useZoom=uY,e.vBdTooltip=xG});
|
|
1885
|
+
`)}`;ZJ.copy(r).then(()=>QJ(n))},tY=(e,t)=>{ZJ.copy(e).then(()=>QJ(t))},nY={class:`message-cloud-multi-select`},rY={class:`message-cloud-multi-select__body`},iY={class:`message-content`},aY={class:`message-cloud__header`},oY={class:`message-cloud__title`},sY={key:0},cY=[`innerHTML`],lY=(0,t.defineComponent)({__name:`BDConversationToTextModal`,props:{modelValue:{},extraClass:{}},setup(e){let{t:n}=Ku(),r=e,i=(0,t.ref)([]),a=(0,t.ref)(!0);(0,t.watchEffect)(()=>{i.value=r.modelValue}),(0,t.watch)(()=>a.value,e=>{i.value.forEach(t=>t.selected=e)});let o=(0,t.computed)(()=>n(`conversationToTextModal.systemMessage`)),s=e=>{let t=e.IsTussentijdseMededeling?`, `:``;return e.AfzenderType===2&&e.AfzenderId!==e.BehandelaarId&&e.BehandelaarId!==null?t+n(`conversationToTextModal.onBehalfOf`)+` `+e.BehandelaarNaam:``},c=e=>e.AfzenderType===2?`is-sender`:`is-receiver`,l=()=>{let e=n(`conversationToTextModal.prefix`),t=n(`conversationToTextModal.copySuccess`);return eY(i.value,e,t)};return(r,u)=>((0,t.openBlock)(),(0,t.createBlock)(CK,{id:`conversation-to-text-modal`,title:`Tekst versie`,"modal-class":e.extraClass,"hide-footer":``},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(j,{variant:`primary`,onClick:l},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.copyButton`)),1)]),_:1}),(0,t.createElementVNode)(`div`,nY,[(0,t.createVNode)(hg,{class:`select-all-checkbox`,modelValue:a.value,"onUpdate:modelValue":u[0]||=e=>a.value=e},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)((0,t.unref)(n)(`conversationToTextModal.selectAll`)),1)]),_:1},8,[`modelValue`]),(0,t.createElementVNode)(`div`,rY,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:`message-cloud-selector`,key:n},[(0,t.createVNode)(hg,{class:`select-all-checkbox`,modelValue:e.selected,"onUpdate:modelValue":t=>e.selected=t},null,8,[`modelValue`,`onUpdate:modelValue`]),(0,t.createElementVNode)(`div`,iY,[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`message`,c(e)])},[(0,t.createElementVNode)(`div`,aY,[(0,t.createElementVNode)(`div`,oY,[(0,t.createTextVNode)((0,t.toDisplayString)(e.AfzenderNaam)+` `,1),e.IsTussentijdseMededeling?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,sY,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(o.value),1)])):(0,t.createCommentVNode)(``,!0),(0,t.createElementVNode)(`span`,null,[(0,t.createElementVNode)(`i`,null,(0,t.toDisplayString)(s(e)),1)]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e.Datum),1)])]),(0,t.createElementVNode)(`div`,{class:`message-cloud__body`,innerHTML:e.Tekst},null,8,cY)],2)])]))),128))])])]),_:1},8,[`modal-class`]))}});function uY(){let e=(0,t.ref)(0),n=(0,t.ref)(!0),r=(0,t.ref)(null),i=(0,t.ref)({top:0,left:0,x:0,y:0});return{zoom:e,mouseDown:n,imageHolderRef:r,pos:i,SetZoom:(0,t.computed)(()=>e.value>0?`zoom-${e.value}`:``),OnMouseDown:e=>{if(!r.value)return;i.value.left=r.value.scrollLeft,i.value.top=r.value.scrollTop;let t=document.querySelector(`#image-attachment-modal`),a=document.querySelector(`.image-preview-image-holder`);t&&(t.style.cursor=`grabbing`),a&&(a.style.cursor=`grabbing`),i.value.x=e.clientX,i.value.y=e.clientY,n.value=!0},OnMouseMove:e=>{if(n.value){let t=e.clientX-i.value.x,n=e.clientY-i.value.y;r.value&&(r.value.scrollTop=i.value.top-n,r.value.scrollLeft=i.value.left-t)}},OnMouseUp:()=>{let e=document.querySelector(`#image-attachment-modal`),t=document.querySelector(`.image-preview-image-holder`);e&&e.style&&(e.style.cursor=``),t&&t.style&&(t.style.cursor=`grab`),n.value=!1}}}var dY=[`src`,`alt`],fY={key:0,class:`show-spinner`},pY={class:`spinner-border text-primary`,role:`status`},mY=[`textContent`],hY=[`href`],gY=(0,t.defineComponent)({__name:`BDImageAttachmentModal`,setup(e,{expose:n}){let{showModal:r}=wK(`image-attachment-modal`),{zoom:i,imageHolderRef:a,SetZoom:o,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=uY(),{t:u}=Ku(),d=(0,t.ref)(!0),f=(0,t.ref)({BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}),p=(0,t.computed)(()=>u(`imageAttachmentModal.download`)),m=(0,t.computed)(()=>u(`imageAttachmentModal.loading`));n({Show:e=>{f.value=e,i.value=0,r()}});let h=()=>{d.value=!1},g=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:``,altName:``,downloadUrl:``,fullImageUrl:``,previewUrl:``}};return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(CK,{id:`image-attachment-modal`,class:(0,t.normalizeClass)((0,t.unref)(``)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:g},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:`image-preview-image-holder`,ref_key:`imageHolderRef`,ref:a,onMousedown:n[0]||=(...e)=>(0,t.unref)(s)&&(0,t.unref)(s)(...e),onMousemove:n[1]||=(...e)=>(0,t.unref)(c)&&(0,t.unref)(c)(...e),onMouseup:n[2]||=(...e)=>(0,t.unref)(l)&&(0,t.unref)(l)(...e)},[f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`img`,{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:(0,t.normalizeClass)([`image-preview-modal`,(0,t.unref)(o)]),onLoad:h,draggable:!1},null,42,dY)):(0,t.createCommentVNode)(``,!0)],544),d.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fY,[(0,t.createElementVNode)(`div`,pY,[(0,t.createElementVNode)(`span`,{class:`visually-hidden`,textContent:(0,t.toDisplayString)(m.value)},null,8,mY)])])):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(N_,{modelValue:(0,t.unref)(i),"onUpdate:modelValue":n[3]||=e=>(0,t.isRef)(i)?i.value=e:null,class:`image-preview-bd-zoom-slider`,"max-value":4},null,8,[`modelValue`]),(0,t.createElementVNode)(`a`,{href:f.value.downloadUrl},[(0,t.createVNode)(j,{variant:`primary`,class:`download-image`,textContent:(0,t.toDisplayString)(p.value)},null,8,[`textContent`])],8,hY)]),_:1},8,[`class`,`title`]))}}),_Y={__name:`BDMessageTemplateForm`,props:{modelValue:{type:Object,required:!0},validation:{type:Object,default:()=>({title:{state:null},text:{state:null},category:{state:null},ownerId:{state:null}})},practitionerOptions:{type:Array,default:null},departmentOptions:{type:Array,default:null},categoryOptions:{type:Array,default:null},files:{type:Array},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`update:modelValue`,`show-attachment`,`action`,`on-input`,`change-department`,`change-text`,`change-title`],setup(e,{emit:n}){let{showModal:r}=wK(`attachment-upload-modal`),i=e,a=n,{t:o}=Ku(),s=(0,t.ref)([]),c=(0,t.computed)(()=>void 0),l=(0,t.computed)(()=>i.validation.category.state===!1?`is-invalid`:``);(0,t.computed)(()=>i.validation.ownerId.state===!1?`is-invalid`:``);let u=(0,t.computed)(()=>[...i.categoryOptions?i.categoryOptions.map(e=>({text:e.name,value:e.name})):[],...s.value]);(0,t.computed)(()=>i.practitionerOptions?.find(e=>e.value===i.modelValue?.ownerId)??null);let d=(0,t.computed)(()=>i.modelValue.sharedWithDepartment||[]);function f(e){C({...i.modelValue,sharedWithDepartment:e})}(0,t.computed)(()=>{if(i.modelValue.tag)return u.value.filter(e=>e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase())!==-1)}),(0,t.computed)(()=>GetContentLibraryExternalProviders.value[0].img);let p=(0,t.computed)(()=>{let e=i.modelValue.files||[],t=i.files||[];return[...e,...t]});(0,t.onMounted)(()=>{i.modelValue.category.length>0&&x()});function m(e){e&&!u.value.some(t=>t.value===e)&&(s.value=[{text:e,value:e}])}function h(e){a(`show-attachment`,e)}function g(e){a(`action`,{action:`content-library`,provider:e})}function _(e){v(i.files,e),v(i.modelValue.files,e)}function v(e,t){let n;n=t.obj.FileId?e.findIndex(e=>e.FileId===t.obj.FileId):e.findIndex(e=>e.CorrelationId===t.obj.CorrelationId),n!==-1&&e.splice(n,1)}function y(e){e.name===`delete-attachment`?_(e):e.name===`image-attachment`&&h(e)}function b(){r()}function x(){let e=document.querySelector(`.ti-new-tag-input-wrapper`);e&&(e.style.display=`none`)}function S(e){C({...i.modelValue,category:e})}function C(e){a(`update:modelValue`,e),a(`on-input`,e)}function w(){a(`change-department`,i.modelValue)}function T(e){a(`change-title`,e)}function E(e){a(`change-text`,e)}return(n,r)=>((0,t.openBlock)(),(0,t.createBlock)(Zh,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Gg,{label:(0,t.unref)(o)(`messageTemplateFormModal.titleLabel`),"label-for":`message-template-input-title`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Lg,{id:`message-template-input-title`,type:`text`,modelValue:e.modelValue.title,"onUpdate:modelValue":T,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.titlePlaceHolder`),state:e.validation.title.state,"invalid-feedback-text":e.validation.title.errorLabel},null,8,[`modelValue`,`placeholder`,`state`,`invalid-feedback-text`])]),_:1},8,[`label`]),(0,t.createVNode)(Gg,{label:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplateLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(wG,{modelValue:e.modelValue.text,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.replyTemplatePlaceHolder`),errorText:(0,t.unref)(o)(`messageTemplateFormModal.validation`),files:p.value,state:e.validation.text.state,variant:`full`,"api-url":c.value,onUpload:b,onAction:y,"onUpdate:modelValue":E},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(__,{pills:e.modelValue.pills},null,8,[`pills`])]),_:1},8,[`modelValue`,`placeholder`,`errorText`,`files`,`state`,`api-url`]),(0,t.createVNode)(jh,{"content-library-providers":e.contentLibraryExternalProviders,"is-external-only":!0,onContentLibrary:g},null,8,[`content-library-providers`])]),_:1},8,[`label`]),r[0]||=(0,t.createElementVNode)(`div`,{class:`form-splitter`},null,-1),(0,t.createVNode)(Gg,{label:(0,t.unref)(o)(`messageTemplateFormModal.sharedWithLabel`)},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(hO,{modelValue:d.value,"onUpdate:modelValue":f,options:e.departmentOptions,onChangeDepartment:w,overflow:``},null,8,[`modelValue`,`options`])]),_:1},8,[`label`]),(0,t.renderSlot)(n.$slots,`extra-fields`),(0,t.createVNode)(Gg,{label:(0,t.unref)(o)(`messageTemplateFormModal.categoryLabel`),"label-for":`input-select-category`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)((0,t.unref)(Vq),{modelValue:e.modelValue.category,"onUpdate:modelValue":S,options:u.value,label:`text`,placeholder:(0,t.unref)(o)(`messageTemplateFormModal.categoryPlaceholderDropdown`),onSearch:m,class:(0,t.normalizeClass)({"is-invalid":e.validation.category.state===!1})},null,8,[`modelValue`,`options`,`placeholder`,`class`]),(0,t.createVNode)(_g,{class:(0,t.normalizeClass)(l.value),state:e.validation.category.state,text:e.validation.category.errorLabel},null,8,[`class`,`state`,`text`])]),_:1},8,[`label`])]),_:3}))}},vY={__name:`BDMessageTemplateFormModal`,props:{modelValue:{type:Object,required:!0},files:{type:Array},visible:{type:Boolean,default:null},editable:{type:Boolean,default:!1},departmentOptions:{type:Array},practitionerOptions:{type:Array},categoryOptions:{type:Array},serverErrors:{type:Array,default:null},validation:{type:Object,required:!0},contentLibraryExternalProviders:{type:Array,default:()=>[]}},emits:[`show-attachment`,`action`,`on-submit`,`close`,`on-input`,`change-department`],setup(e,{emit:n}){let r=e,i=n,{t:a}=Ku(),o=!1,s=(0,t.ref)(JSON.parse(JSON.stringify(r.modelValue))),c=(0,t.computed)(()=>r.modelValue.id?a(`messageTemplateFormModal.editTitle`):a(`messageTemplateFormModal.createTitle`)),l=(0,t.computed)(()=>r.modelValue.id?a(`modals.edit`):a(`modals.add`));(0,t.watch)(()=>r.modelValue,e=>{o||(s.value=JSON.parse(JSON.stringify(e)))},{immediate:!0,deep:!0});function u(e){i(`show-attachment`,e.obj)}function d(e){i(`action`,e)}function f(){let e=JSON.parse(JSON.stringify(s.value));typeof e.category!=`string`&&(e.category=e.category.value??``),i(`on-submit`,e)}function p(){i(`close`)}function m(){i(`on-input`,s.value)}function h(){o=!0,i(`change-department`,s.value),(0,t.nextTick)(()=>{o=!1})}function g(e){s.value.title=e,m()}function _(e){s.value.text=e,m()}return(n,i)=>((0,t.openBlock)(),(0,t.createBlock)(CK,{id:`message-template-form-modal`,title:c.value,"submit-button-title":l.value,"server-errors":e.serverErrors,visible:e.visible,onSubmit:f,onCancel:p},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(_Y,{modelValue:s.value,"onUpdate:modelValue":i[0]||=e=>s.value=e,departmentOptions:e.departmentOptions,practitionerOptions:e.practitionerOptions,categoryOptions:e.categoryOptions,validation:e.validation,files:e.files,"content-library-external-providers":r.contentLibraryExternalProviders,onOnInput:m,onAction:d,onShowAttachment:u,onChangeDepartment:h,onChangeText:_,onChangeTitle:g},{"extra-fields":(0,t.withCtx)(()=>[(0,t.renderSlot)(n.$slots,`extra-fields`)]),_:3},8,[`modelValue`,`departmentOptions`,`practitionerOptions`,`categoryOptions`,`validation`,`files`,`content-library-external-providers`])]),_:3},8,[`title`,`submit-button-title`,`server-errors`,`visible`]))}},yY={key:0},bY={key:1},xY={key:2},SY={key:3},CY={key:1},wY={key:2},TY=[`href`],EY=(0,t.defineComponent)({__name:`BDVideoCallConfirmationModal`,props:[`isMissingCameraPermission`,`isMissingMicrophonePermission`,`isMissingMobileActivation`,`isMissingVideoConferencingSupport`,`participantName`,`videoTestUrl`],emits:[`confirmed`],setup(e,{emit:n}){let{t:r}=Ku(),i=e,a=n,o=()=>i.isMissingCameraPermission||i.isMissingMicrophonePermission||i.isMissingMobileActivation||i.isMissingVideoConferencingSupport,s=(0,t.computed)(()=>o()?r(`videoCallConfirmationModal.close`):r(`videoCallConfirmationModal.cancel`)),c=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noMobileActivationMessage`)}`),l=(0,t.computed)(()=>`${i.participantName} ${r(`videoCallConfirmationModal.noCompatibleDevices`)}`),u=(0,t.computed)(()=>r(`videoCallConfirmationModal.title`)),d=(0,t.computed)(()=>r(`videoCallConfirmationModal.ok`)),f=(0,t.computed)(()=>r(`videoCallConfirmationModal.generalWarning`)),p=(0,t.computed)(()=>r(`videoCallConfirmationModal.cameraPermissionMissing`)),m=(0,t.computed)(()=>r(`videoCallConfirmationModal.microphonePermissionMissing`)),h=(0,t.computed)(()=>r(`videoCallConfirmationModal.message`)),g=(0,t.computed)(()=>r(`videoCallConfirmationModal.participantMessage`)),_=(0,t.computed)(()=>r(`videoCallConfirmationModal.testMessage`)),v=(0,t.computed)(()=>r(`videoCallConfirmationModal.helpMessage`)),y=()=>a(`confirmed`);return(e,n)=>((0,t.openBlock)(),(0,t.createBlock)(CK,{id:`video-call-confirmation-modal`,title:u.value,"submit-button-title":d.value,"close-button-title":s.value,"hide-footer-submit-button":o(),onSubmit:y},{default:(0,t.withCtx)(()=>[o()?((0,t.openBlock)(),(0,t.createBlock)(xa,{key:0,variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(f.value),1),(0,t.createElementVNode)(`ul`,null,[i.isMissingCameraPermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,yY,(0,t.toDisplayString)(p.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMicrophonePermission?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,bY,(0,t.toDisplayString)(m.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingMobileActivation?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,xY,(0,t.toDisplayString)(c.value),1)):(0,t.createCommentVNode)(``,!0),i.isMissingVideoConferencingSupport?((0,t.openBlock)(),(0,t.createElementBlock)(`li`,SY,(0,t.toDisplayString)(l.value),1)):(0,t.createCommentVNode)(``,!0)])]),_:1})):i.participantName?((0,t.openBlock)(),(0,t.createElementBlock)(`p`,CY,[(0,t.createTextVNode)((0,t.toDisplayString)(g.value)+` `,1),(0,t.createElementVNode)(`b`,null,(0,t.toDisplayString)(i.participantName),1),n[0]||=(0,t.createTextVNode)(`?`,-1)])):((0,t.openBlock)(),(0,t.createElementBlock)(`p`,wY,(0,t.toDisplayString)(h.value),1)),(0,t.createElementVNode)(`p`,null,[(0,t.createElementVNode)(`a`,{href:i.videoTestUrl,target:`blank`,rel:`noopener noreferrer`},(0,t.toDisplayString)(_.value),9,TY),(0,t.createElementVNode)(`span`,null,`\xA0`+(0,t.toDisplayString)(v.value),1)])]),_:1},8,[`title`,`submit-button-title`,`close-button-title`,`hide-footer-submit-button`]))}}),DY=()=>({ResetValidation:e=>{for(let t in e.value)e.value[t].state=null},ValidationObjectIsValid:e=>{for(let t in e)if(e[t].state===!1)return!1;return!0}}),OY={class:`template change-password-template`},kY={class:`template-title`},AY={key:0},jY={key:1},MY={class:`bd-form-field`},NY={class:`bd-form-field`},PY={class:`bd-form-field`},FY={class:`bd-form-buttons`},IY=(0,t.defineComponent)({__name:`BDChangePasswordTemplate`,props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(e){let{t:n}=Ku(),{showDangerToast:r,showWarningToast:i,showSuccessToast:a}=sO(),{errorMessages:o,errorMessageText:s,MapServerErrors:c,ResetServerErrors:l}=EK(null),{ValidationObjectIsValid:u}=DY(),d=e,f=(0,t.ref)({password:``,passwordNew:``,passwordRepeat:``}),p=(0,t.ref)({password:{state:null,errorLabel:``},passwordNew:{state:null,errorLabel:``},passwordRepeat:{state:null,errorLabel:``}}),m=()=>{if(!h())return;let e=d.submitPassword(f.value);e&&e.then(()=>{a(d.successText),g()}).catch(e=>{r(d.failureText),c(e)})},h=()=>{if(f.value.passwordNew&&!/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(f.value.passwordNew))p.value.passwordNew.state=!1,p.value.passwordNew.errorLabel=d.minimalRequirementsText;else{let e=f.value.passwordRepeat===f.value.passwordNew,t=e?d.requiredText:d.incompatibleText;p.value.passwordNew.state=f.value.passwordNew!==``&&e?null:!1,p.value.passwordNew.errorLabel=t,p.value.passwordRepeat.state=f.value.passwordRepeat!==``&&e?null:!1,p.value.passwordRepeat.errorLabel=t}return p.value.password.state=f.value.password===``?!1:null,p.value.password.errorLabel=p.value.password.state?``:d.requiredText,u(p.value)},g=()=>{f.value.password===``&&f.value.passwordNew===``&&f.value.passwordRepeat===``||(f.value.password=``,f.value.passwordNew=``,f.value.passwordRepeat=``,p.value.password.state=null,p.value.passwordNew.state=null,p.value.passwordRepeat.state=null,l(),i(n(`changePasswordTemplate.toasters.reset`)))};return(n,r)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,OY,[(0,t.createVNode)(qK,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(JK,{class:`justify-content-md-center template-header`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`h1`,kY,(0,t.toDisplayString)(d.templateTitle),1)]),_:1})]),_:1}),(0,t.createVNode)(JK,{class:`justify-content-md-center`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,{xs:12,md:10,lg:7},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ra,{class:`bd-card-template`,"no-header":!0},{body:(0,t.withCtx)(()=>[(0,t.createVNode)(qK,{class:`container-fluid`},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(JK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xa,{variant:`warning`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.alertText),1)]),_:1})]),_:1})]),_:1}),(0,t.unref)(o)||(0,t.unref)(s)?((0,t.openBlock)(),(0,t.createBlock)(JK,{key:0},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(xa,{variant:`danger`},{default:(0,t.withCtx)(()=>[(0,t.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,AY,[(0,t.createElementVNode)(`ul`,null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,t.unref)(o),(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`li`,{key:n},[(0,t.createVNode)(Vn),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(e),1)]))),128))])])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,jY,(0,t.toDisplayString)((0,t.unref)(s)),1))]),_:1})]),_:1})]),_:1})):(0,t.createCommentVNode)(``,!0),(0,t.createVNode)(JK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,{class:`bd-card-form`,sm:12,md:12},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`form`,{onSubmit:(0,t.withModifiers)(m,[`prevent`]),onReset:(0,t.withModifiers)(g,[`prevent`]),class:`form`},[(0,t.createElementVNode)(`div`,MY,[(0,t.createVNode)(Lg,{modelValue:(0,t.unref)(f).password,"onUpdate:modelValue":r[0]||=e=>(0,t.unref)(f).password=e,label:e.currentPasswordLabel,state:(0,t.unref)(p).password.state,type:`password`,"invalid-feedback-text":(0,t.unref)(p).password.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,NY,[(0,t.createVNode)(Lg,{modelValue:(0,t.unref)(f).passwordNew,"onUpdate:modelValue":r[1]||=e=>(0,t.unref)(f).passwordNew=e,label:e.newPasswordLabel,state:(0,t.unref)(p).passwordNew.state,type:`password`,"invalid-feedback-text":(0,t.unref)(p).passwordNew.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,PY,[(0,t.createVNode)(Lg,{modelValue:(0,t.unref)(f).passwordRepeat,"onUpdate:modelValue":r[2]||=e=>(0,t.unref)(f).passwordRepeat=e,label:e.confirmNewPasswordLabel,state:(0,t.unref)(p).passwordRepeat.state,type:`password`,"invalid-feedback-text":(0,t.unref)(p).passwordRepeat.errorLabel},null,8,[`modelValue`,`label`,`state`,`invalid-feedback-text`])]),(0,t.createElementVNode)(`div`,FY,[(0,t.createVNode)(j,{type:`submit`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.submitButtonText),1)]),_:1}),(0,t.createVNode)(j,{type:`reset`,variant:`link`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(e.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}});function LY(...e){if(e.length>0){let t=String(e[0]);t.includes(`:error`)?console.error(...e):t.includes(`:warning`)?console.warn(...e):t.includes(`:info`)?console.info(...e):(t.includes(`:verbose`),console.debug(...e))}}function RY(e){return globalThis.process?.env?.[e]}typeof window<`u`&&window.document,typeof self==`object`&&`importScripts`in self&&typeof self.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name);var zY=RY(`DEBUG`),BY,VY=[],HY=[],UY=[];zY&&GY(zY);var WY=Object.assign(e=>YY(e),{enable:GY,enabled:KY,disable:JY,log:LY});function GY(e){BY=e,VY=[],HY=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?HY.push(e.substring(1)):VY.push(e);for(let e of UY)e.enabled=KY(e.namespace)}function KY(e){if(e.endsWith(`*`))return!0;for(let t of HY)if(qY(e,t))return!1;for(let t of VY)if(qY(e,t))return!0;return!1}function qY(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r<o&&i<a;)if(n[i]===`*`){if(s=i,i++,i===a)return!0;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else if(n[i]===e[r])i++,r++;else if(s>=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function JY(){let e=BY||``;return GY(``),e}function YY(e){let t=Object.assign(n,{enabled:KY(e),destroy:XY,log:WY.log,namespace:e,extend:ZY});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return UY.push(t),t}function XY(){let e=UY.indexOf(this);return e>=0?(UY.splice(e,1),!0):!1}function ZY(e){let t=YY(`${this.namespace}:${e}`);return t.log=this.log,t}var QY=[`verbose`,`info`,`warning`,`error`],$Y={verbose:400,info:300,warning:200,error:100};function eX(e,t){t.log=(...t)=>{e.log(...t)}}function tX(e){return QY.includes(e)}function nX(e){let t=new Set,n=RY(e.logLevelEnvVarName),r,i=WY(e.namespace);i.log=(...e)=>{WY.log(...e)};function a(e){if(e&&!tX(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${QY.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);WY.enable(n.join(`,`))}n&&(tX(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${QY.join(`, `)}.`));function o(e){return!!(r&&$Y[e.level]<=$Y[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(eX(e,r),o(r)){let e=WY.disable();WY.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return eX(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}nX({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`}).logger;var rX=nX({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`}),iX=rX.logger;function aX(e){rX.setLogLevel(e)}var oX={class:`video-call-template`},sX={key:0,class:`card`},cX={key:0,class:`permissions-denied__audio`},lX={class:`permissions-denied__audio-disabled`},uX={key:1,class:`permissions-denied__video`},dX={class:`permissions-denied__video-disabled`},fX={key:1,class:`card`},pX={class:`incoming__settings`},mX={class:`side`},hX={class:`outgoing`},gX={class:`card`},_X={key:0,class:`outgoing__video`},vX={class:`outgoing__available-cameras-count text-center`},yX={key:3,class:`permissions-denied__video`},bX={class:`permissions-denied__video-disabled`},xX={class:`settings`},SX={class:`settings__status`},CX={class:`settings__status-text`},wX={key:0,class:`settings__status-detail`},TX={class:`settings__help`},EX=[`href`],DX={href:`https://www.beterdichtbij.nl/service-contact/`,target:`_blank`,rel:`noopener noreferrer`},OX=2e3,kX={__name:`BDVideoCallTemplate`,props:{participant:{type:Object,default:null},participantRole:{type:String,default:`deelnemer`},isCallee:{type:Boolean,default:!1},videoTestUrl:{type:String,default:``}},emits:[`ready`,`start-call`,`end-call`],setup(e,{expose:i,emit:a}){let o=Object.freeze({Initializing:`initializing`,Dialing:`dialing`,Ringing:`ringing`,Answered:`answered`,Connected:`connected`,Declined:`declined`,HangedUp:`hangedUp`,DevicePermissionDenied:`devicePermissionDenied`}),s=e,c=a,{tm:l}=Ku(),u=(0,t.ref)([]),d=navigator.userAgent.indexOf(`Firefox`)>-1,f=(0,t.computed)(()=>l(`videoCallTemplate`)),p=(0,t.ref)(!1),m=(0,t.ref)(!1),h=(0,t.ref)(!1),g=(0,t.ref)(2),_=(0,t.ref)({}),v=(0,t.ref)(o.Initializing),y=(0,t.ref)(null),b=(0,t.reactive)({client:null,agent:null,deviceManager:null,incomingCall:null,call:null}),x=(0,t.ref)(null),S=(0,t.ref)(null),C=(0,t.ref)(null),w=(0,t.ref)(null),T=(0,t.ref)(0),E=(0,t.ref)(0),D=(0,t.ref)(null),O=(0,t.ref)(!1),ee=(0,t.ref)(``),te=(0,t.ref)(``),k=(0,t.ref)(null),ne=(0,t.ref)(null),re=null,ie=null,ae=null,oe=(0,t.computed)(()=>{switch(T.value){case 0:return ge.value.hasNoAvailableCamera;case 1:return ge.value.hasOneAvailableCamera;default:return ge.value.hasMultipleAvailableCameras}}),se=(0,t.computed)(()=>{let e=navigator.userAgent;return/Mobi/.test(e)&&!p.value}),ce=(0,t.computed)(()=>{let e=navigator.userAgent,t=e.indexOf(`Android`)!==-1,n=/Mobi/.test(e),r=/iPad|iPhone|iPod/.test(e)&&!window.MSStream;return!(t&&n||r)}),le=(0,t.computed)(()=>!_.value?.video&&we.value),ue=(0,t.computed)(()=>!_.value?.audio&&we.value),de=(0,t.computed)(()=>v.value===o.Declined?`incoming--declined`:`incoming--loading`);(0,t.computed)(()=>{switch(g.value){case 0:return`weak`;case 1:return`steady`;case 2:return`strong`;default:return null}}),(0,t.computed)(()=>{switch(g.value){case 0:return f.value.signalStrength.weak;case 1:return f.value.signalStrength.steady;case 2:return f.value.signalStrength.strong;default:return null}});let fe=(0,t.computed)(()=>f.value.videoCallTemplate||f.value),pe=(0,t.computed)(()=>fe.value.actions||fe.value),me=(0,t.computed)(()=>fe.value.help||fe.value),he=(0,t.computed)(()=>fe.value.permissions||fe.value),ge=(0,t.computed)(()=>fe.value.cameraAvailability||fe.value),_e=(0,t.computed)(()=>p.value?pe.value.stopSharingScreen:pe.value.shareScreen),ve=(0,t.computed)(()=>me.value.placeholderSettingsHelpTitle),ye=(0,t.computed)(()=>me.value.placeholderSettingsHelpMessage),be=(0,t.computed)(()=>v.value===o.Declined),xe=(0,t.computed)(()=>v.value===o.HangedUp),Se=(0,t.computed)(()=>v.value===o.Connected),Ce=(0,t.computed)(()=>!Se.value),we=(0,t.computed)(()=>v.value===o.DevicePermissionDenied),Te=(0,t.computed)(()=>fe.value.statusTextMessage||fe.value),Ee=(0,t.computed)(()=>fe.value.statusDetailMessage||fe.value),De=(0,t.computed)(()=>s.participantRole);function Oe(e){if(typeof e!=`string`)return e;let t=e.replaceAll(`{participantRole}`,De.value);return t&&t.charAt(0).toLocaleUpperCase()+t.slice(1)}let A=(0,t.computed)(()=>{switch(v.value){case o.Initializing:return Oe(Te.value.initializing);case o.Dialing:return Oe(Te.value.dialing);case o.Ringing:return Oe(Te.value.ringing);case o.Answered:return Oe(Te.value.answered);case o.Connected:return Oe(Te.value.connected);case o.Declined:return Oe(Te.value.videoCallDeclined);case o.HangedUp:return Oe(Te.value.videoCallHangedUp);case o.DevicePermissionDenied:return Oe(Te.value.devicePermissionDenied)}}),ke=(0,t.computed)(()=>ee.value||A.value),Ae=(0,t.computed)(()=>te.value),je=(0,t.computed)(()=>h.value?`.incoming__screenshare`:`.incoming__video`);(0,t.onMounted)(()=>{mt(),Ne(),ne.value=window.setInterval(Ue,5e3)}),(0,t.onUnmounted)(()=>{D.value&&window.clearInterval(D.value),ne.value&&window.clearInterval(ne.value),Me(),ft()});function Me(){re&&=(window.clearTimeout(re),null),ie&&=(window.clearTimeout(ie),null),ae&&=(window.clearTimeout(ae),null)}function Ne(){Me(),v.value===o.Initializing?re=window.setTimeout(()=>{v.value===o.Initializing&&(ee.value=Oe(Te.value.callNotDelivered),te.value=Oe(Ee.value.callNotDeliveredDetail))},3e4):v.value===o.Dialing?ie=window.setTimeout(()=>{v.value===o.Dialing&&(ee.value=``,te.value=Oe(Ee.value.notAnsweredDetail))},1e4):v.value===o.Connected&&(ae=window.setTimeout(()=>{v.value===o.Connected&&(te.value=Oe(Ee.value.noVideoHint))},5e3))}function Pe(e){[o.Declined,o.HangedUp,o.DevicePermissionDenied].includes(v.value)||(v.value=e,ee.value=``,te.value=``,Ne())}function Fe(){Pe(o.Declined)}function Ie(){Pe(o.Answered)}function Le(){v.value!==o.Connected&&Pe(o.Dialing)}function Re(){v.value!==o.DevicePermissionDenied&&!s.isCallee&&qe()}async function ze(){Pe(o.HangedUp),_.value.video&&ut()}function Be(e){Pe(o.HangedUp),te.value=et(e)}function Ve(){ee.value=Oe(Te.value.signalHold),te.value=Oe(Ee.value.signalHoldDetail)}function He(){k.value=new Date}function Ue(){if(!k.value||v.value===o.HangedUp)return;let e=new Date,t=new Date(k.value),n=Math.abs(e.getTime()-t.getTime()),r=Math.ceil(n/1e3);r>=40?(ee.value=Te.value.connectionIssues,te.value=Ee.value.connectionIssuesStrong,g.value=0):r>20&&(ee.value=Te.value.connectionIssues,te.value=Ee.value.connectionIssuesMedium,g.value=1)}async function We(e){b.client=(0,t.markRaw)(new n.CallClient);let i=new r.AzureCommunicationTokenCredential(e);if(b.agent=(0,t.markRaw)(await b.client.createCallAgent(i)),b.deviceManager=await b.client.getDeviceManager(),_.value=await b.deviceManager.askDevicePermission({video:!0,audio:!0}),D.value=window.setInterval(ut,5e3),!_.value.audio||!_.value.video){Pe(o.DevicePermissionDenied);return}b.agent.on(`incomingCall`,Ge),s.isCallee?c(`ready`):c(`start-call`)}async function Ge(e){if(!O.value)try{O.value=!0,b.incomingCall=e.incomingCall,await Je()}catch(e){console.log(`error occured during starting call`,e)}finally{O.value=!1}}async function Ke(){let e=await Ye();return e?{localVideoStreams:[e]}:void 0}async function qe(){try{Pe(o.Dialing);let e={videoOptions:await Ke()},t=[{communicationUserId:s.participant.videoCallIdentityId}];b.call=b.agent.startCall(t,e),Ze(),Xe()}catch(e){console.error(e)}}async function Je(){let e=await Ke();try{b.call=await b.incomingCall.accept({videoOptions:e})}catch(e){console.error(`Error occurred during accepting call`,e)}Ze(),Xe()}async function Ye(){let e=(await b.deviceManager.getCameras())[0];if(e)return new n.LocalVideoStream(e);console.error(`No camera device found on the system`)}function Xe(){b.call.on(`stateChanged`,$e),b.call.on(`localVideoStreamsUpdated`,e=>{e.added.forEach(nt),e.removed.forEach(tt)}),b.call.remoteParticipants.forEach(it),b.call.on(`remoteParticipantsUpdated`,e=>{e.added.forEach(it)}),b.call.on(`isScreenSharingOnChanged`,()=>{p.value=b.call.isScreenSharingOn})}function Ze(){y.value=b.call.feature(n.Features.UserFacingDiagnostics),y.value.media.on(`diagnosticChanged`,Qe),y.value.network.on(`diagnosticChanged`,Qe)}function Qe(e){(e.diagnostic===`networkReceiveQuality`||e.diagnostic===`networkSendQuality`)&&(e.value===n.DiagnosticQuality.Bad?(console.error(`${e.diagnostic} is bad quality`),g.value=0):e.value===n.DiagnosticQuality.Poor?(console.error(`${e.diagnostic} is poor quality`),g.value=1):g.value=2)}function $e(){switch(b.call.state){case`EarlyMedia`:Pe(o.Dialing);break;case`Ringing`:Pe(o.Ringing);break;case`Connected`:Pe(o.Connected);break;case`Disconnected`:let e=b.call.callEndReason;console.log(`Call end reason:`,e),console.log(`Code:`,e?.code),console.log(`SubCode:`,e?.subCode),ze();break}}function et(e){let t=String(e);return Oe(fe.value.endReasons?.[t]||``)}async function tt(e){if(!e||e.mediaStreamType!==`ScreenSharing`||!w.value)return;w.value.dispose();let t=document.querySelector(`.outgoing__screenshare`);t.style.display=`none`;let n=document.querySelector(`.outgoing__video`);n.style.display=`flex`}async function nt(e){if(!e||e.mediaStreamType!==`ScreenSharing`)return;w.value=await new n.VideoStreamRenderer(e).createView();let t=document.querySelector(`.outgoing__screenshare`);t.replaceChildren(w.value.target),t.style.display=`flex`;let r=document.querySelector(`.outgoing__video`);r.style.display=`none`;let i=t.querySelector(`video`);i.style.objectFit=`contain`}async function rt(e){if(e&&e.source&&x.value&&x.value.source&&x.value.source.id==e.source.id)return!0;try{S.value=new n.VideoStreamRenderer(e);let t=await S.value.createView(),r=document.querySelector(`.outgoing__video`);r.querySelector(`video`)&&(r.innerHTML=``),r.hidden=!1,r.replaceChildren(t.target)}catch{return!1}return x.value=e,!0}async function it(e){e.videoStreams.forEach(at),e.on(`videoStreamsUpdated`,e=>{e.added.forEach(at)})}async function at(e){if(e.mediaStreamType===`Video`&&(await ot(e),e.on(`isAvailableChanged`,async()=>await ot(e))),e.mediaStreamType===`ScreenSharing`&&e.on(`isAvailableChanged`,ct),e.mediaStreamType===`ScreenSharing`&&e.isAvailable){C.value=new n.VideoStreamRenderer(e);let t=await C.value.createView(),r=document.querySelector(`.incoming__screenshare`);st(!0),h.value=!0,dt(`.incoming__screenshare`),r.replaceChildren(t.target)}}async function ot(e){if(!e.isAvailable)return;C.value=new n.VideoStreamRenderer(e);let t=await C.value.createView(),r=document.querySelector(`.incoming__video`);r.hidden=!1,r.replaceChildren(t.target),dt(`.incoming__video`),st(!1)}function st(e){let t=document.querySelector(`.incoming__video`),n=document.querySelector(`.incoming__screenshare`);t.style.display=e?`none`:`block`,n.style.display=e?`flex`:`none`}function ct(){h.value=!1,st(!1)}async function lt(){ut(!0)}async function ut(e=!1){let t=b.call?.state;if(t===`Connecting`||t===`EarlyMedia`)return;let r=(await b.deviceManager.getCameras()).filter(e=>e.name!=`OBS Virtual Camera`);T.value=r.length;for(let t=0;t<T.value;t++){(e||t!=0)&&(E.value=(E.value+1)%T.value);let i=r[E.value];if(await rt(new n.LocalVideoStream(i)))break}}function dt(e){let t=document.querySelector(e);if(!t)return;let n=t.querySelector(`video`);n&&(n.style.objectFit=`contain`,n.disablePictureInPicture=!1)}async function ft(){b.call&&b.call.state!==`Disconnected`&&(await b.call.hangUp({forEveryone:!0}),await b.agent.dispose()),c(`end-call`)}function pt(){window.close()}function mt(){iX.log=(...e)=>console.log(...e),aX(`verbose`),iX.log=(...e)=>{let t=[...e];u.value=u.value.splice(1-OX).concat(t)}}function ht(){document.querySelector(je.value).querySelector(`video`).requestFullscreen()}function gt(){let e=document.querySelector(je.value).querySelector(`video`);document.pictureInPictureElement?e.exitPictureInPicture():document.pictureInPictureEnabled&&e.requestPictureInPicture()}async function _t(){b.call&&b.call.isScreenSharingOn?await b.call.stopScreenSharing():await b.call.startScreenSharing()}return i({CallDeclined:Fe,CallAnswered:Ie,CallForDataReceived:Le,CallClosedWithStatusCode:Be,CallHeartbeatReceived:He,CallSignalHoldDetected:Ve,CallStartVideoCall:Re,CallHangUp:ze,InitializeAcsConnection:We}),(e,n)=>{let r=(0,t.resolveComponent)(`BDLoader`);return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,oX,[(0,t.createVNode)(qK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(JK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(FG,{smallState:!0,contactInfo:s.participant.contact},null,8,[`contactInfo`])]),_:1})]),_:1}),(0,t.createVNode)(JK,null,{default:(0,t.withCtx)(()=>[(0,t.createVNode)(KK,{sm:`12`,lg:be.value?`12`:`8`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`incoming`,de.value])},[Ce.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,sX,[(0,t.createVNode)(r,{size:`lg`,message:A.value,stopAnimation:be.value||xe.value||we.value},null,8,[`message`,`stopAnimation`]),ue.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,cX,[(0,t.createElementVNode)(`div`,lX,[(0,t.createVNode)(Hr,{class:`icon-xl icon-state-error`})]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(he.value.permissionDeniedForAudio),1)])):(0,t.createCommentVNode)(``,!0),le.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,uX,[(0,t.createElementVNode)(`div`,dX,[(0,t.createVNode)(ua,{class:`icon-xl icon-state-error`})]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(he.value.permissionDeniedForVideo),1)])):(0,t.createCommentVNode)(``,!0),be.value||xe.value||we.value?((0,t.openBlock)(),(0,t.createBlock)(j,{key:2,variant:`primary`,class:`text-center`,onClick:pt},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(pe.value.closeWindow),1)]),_:1})):(0,t.createCommentVNode)(``,!0)])):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,fX,[n[0]||=(0,t.createElementVNode)(`div`,{class:`incoming__video`},null,-1),n[1]||=(0,t.createElementVNode)(`div`,{class:`incoming__screenshare`},null,-1),(0,t.createElementVNode)(`div`,pX,[(0,t.createVNode)(j,{variant:`primary`,class:`text-center`,onClick:ht},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ti),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(pe.value.fullScreen),1)]),_:1}),!d&&!m.value?((0,t.openBlock)(),(0,t.createBlock)(j,{key:0,variant:`primary`,class:`text-center`,onClick:gt},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ti),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(pe.value.miniPlayer),1)]),_:1})):(0,t.createCommentVNode)(``,!0)])]))],2)]),_:1},8,[`lg`]),be.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createBlock)(KK,{key:0,sm:`12`,lg:`4`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,mX,[(0,t.createElementVNode)(`div`,null,[(0,t.createElementVNode)(`div`,hX,[(0,t.createElementVNode)(`div`,gX,[we.value?(0,t.createCommentVNode)(``,!0):((0,t.openBlock)(),(0,t.createElementBlock)(`div`,_X)),n[2]||=(0,t.createElementVNode)(`div`,{class:`outgoing__screenshare`},null,-1),ce.value&&!we.value&&!m.value&&!Ce.value?((0,t.openBlock)(),(0,t.createBlock)(j,{key:1,variant:p.value?`danger`:`primary`,class:`text-center`,onClick:_t},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ti),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(_e.value),1)]),_:1},8,[`variant`])):(0,t.createCommentVNode)(``,!0),se.value?((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:2},[(0,t.createVNode)(j,{class:`text-center`,onClick:lt},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(pe.value.switchCamera),1)]),_:1}),(0,t.createElementVNode)(`p`,vX,(0,t.toDisplayString)(oe.value),1)],64)):(0,t.createCommentVNode)(``,!0),le.value?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,yX,[(0,t.createElementVNode)(`div`,bX,[(0,t.createVNode)(ua,{class:`icon-xxl icon-state-error`})]),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(he.value.permissionDeniedForVideo),1)])):(0,t.createCommentVNode)(``,!0)])]),(0,t.createElementVNode)(`div`,xX,[(0,t.createElementVNode)(`div`,SX,[(0,t.createElementVNode)(`p`,CX,(0,t.toDisplayString)(ke.value),1),Ae.value?((0,t.openBlock)(),(0,t.createElementBlock)(`small`,wX,(0,t.toDisplayString)(Ae.value),1)):(0,t.createCommentVNode)(``,!0)]),(0,t.createElementVNode)(`div`,TX,[(0,t.createElementVNode)(`p`,null,[(0,t.createElementVNode)(`b`,null,(0,t.toDisplayString)(ve.value),1)]),(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(ye.value),1),(0,t.createElementVNode)(`p`,null,[(0,t.createElementVNode)(`a`,{href:s.videoTestUrl,target:`_blank`,rel:`noopener noreferrer`},(0,t.toDisplayString)(pe.value.testCall),9,EX),n[3]||=(0,t.createTextVNode)(` • `,-1),(0,t.createElementVNode)(`a`,DX,(0,t.toDisplayString)(pe.value.serviceDesk),1)])])])]),!xe.value&&!we.value?((0,t.openBlock)(),(0,t.createBlock)(j,{key:0,variant:`danger`,class:`text-center w-100`,onClick:ft},{default:(0,t.withCtx)(()=>[(0,t.createVNode)(Ht),(0,t.createElementVNode)(`span`,null,(0,t.toDisplayString)(pe.value.endCall),1)]),_:1})):(0,t.createCommentVNode)(``,!0)])]),_:1}))]),_:1})]),_:1})])}}},AX={class:`template not-found-template`},jX={class:`center-screen`},MX={class:`container-warning`},NX=(0,t.defineComponent)({__name:`BDNotFoundTemplate`,props:{buttonText:{type:String}},emits:[`navigate`],setup(e,{emit:n}){let{t:r}=Ku(),i=e,a=n,o=(0,t.computed)(()=>i.buttonText||r(`notFoundTemplate.buttonDefault`)),s=(0,t.computed)(()=>r(`notFoundTemplate.title`)),c=(0,t.computed)(()=>r(`notFoundTemplate.description`)),l=()=>a(`navigate`);return(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(`main`,AX,[(0,t.createVNode)(qK,{class:`container-xl`},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`div`,jX,[(0,t.createElementVNode)(`div`,MX,[(0,t.createVNode)($i),(0,t.createElementVNode)(`h1`,null,(0,t.toDisplayString)(s.value),1),(0,t.createElementVNode)(`p`,null,(0,t.toDisplayString)(c.value),1),(0,t.createVNode)(j,{onClick:l,variant:`primary`,type:`button`},{default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,t.toDisplayString)(o.value),1)]),_:1})])])]),_:1})]))}});e.BDAlert=xa,e.BDArticle=wa,e.BDAssignConversationModal=ZK,e.BDAttachmentPreviewList=R_,e.BDAttachmentUploadModal=QK,e.BDBadge=Da,e.BDButton=j,e.BDCard=Ra,e.BDChangePasswordTemplate=IY,e.BDChatCloud=ov,e.BDCol=KK,e.BDCollapsableCard=Ha,e.BDConfirmationModal=$K,e.BDContainer=qK,e.BDContentLibraryModal=HJ,e.BDContentLibrarySplitButton=jh,e.BDContentLibraryTemplate=VJ,e.BDConversationToTextModal=lY,e.BDDate=Xh,e.BDDropdown=sK,e.BDDropdownItem=sv,e.BDFileUpload=dO,e.BDForm=Zh,e.BDFormCheckbox=hg,e.BDFormInput=Lg,e.BDFormInvalidFeedback=_g,e.BDFormMultipleCheckbox=hO,e.BDFormSelect=Hg,e.BDHeader=mK,e.BDImageAttachmentModal=gY,e.BDImageAttachmentPreviewList=q_,e.BDInputGroup=Gg,e.BDLink=ka,e.BDLoader=Zg,e.BDLogo=e_,e.BDMarkdownEditor=wG,e.BDMessageTemplateFormModal=vY,e.BDMobileMenu=jG,e.BDModal=CK,e.BDNotFoundTemplate=NX,e.BDPagination=s_,e.BDPhoneNumberEditModal=jK,e.BDPill=m_,e.BDPillContainer=__,e.BDPractitionerHeader=GK,e.BDProfileImage=b_,e.BDRow=JK,e.BDSessionTimeOutModal=XK,e.BDSmallConversationCard=FG,e.BDTable=WG,e.BDToast=T_,e.BDUser=YG,e.BDUserInformation=A_,e.BDVideoCallConfirmationModal=EY,e.BDVideoCallTemplate=kX,e.BDVideoCallToast=oK,e.BDZoomslider=N_,e.CopyChatMessageToClipboard=$J,e.CopyChatMessagesToClipboard=eY,e.CopyHl7MessagesToClipboard=tY,e.CreateHyperlinkParagraph=(e,t)=>`<p><a href="${e}" title="${t}" target="_blank" rel="noopener noreferrer">${t}</a></p>`,e.CreateThumbnailUri=Z_,e.IconAcademy=y,e.IconArrowDown=C,e.IconArrowUp=D,e.IconAttachment=k,e.IconBold=ae,e.IconBulletList=le,e.IconCalendar=pe,e.IconCall=_e,e.IconCallReject=xe,e.IconCardView=Te,e.IconCaretDown=A,e.IconCaretLeft=Me,e.IconCaretRight=Ie,e.IconCheck=Be,e.IconClipboard=We,e.IconClose=Je,e.IconComment=Qe,e.IconCommentActive=nt,e.IconCommentStatic=ot,e.IconCommonFileEmpty=ut,e.IconCommonFileWarning=mt,e.IconContactPerson=vt,e.IconCopy=St,e.IconDelete=Et,e.IconDoubleCheck=At,e.IconDownloadImage=Pt,e.IconEdit=Rt,e.IconEndCall=Ht,e.IconError=Kt,e.IconExternal=Xt,e.IconEyeShow=en,e.IconEyeSlash=an,e.IconFile=ln,e.IconFileAdded=pn,e.IconForward=_n,e.IconHix=xn,e.IconHyperlink=Tn,e.IconImageFileLandscape=kn,e.IconImageFileWarning=Nn,e.IconInbox=Ln,e.IconInfo=Vn,e.IconInformationCircle=Gn,e.IconItalic=Yn,e.IconListView=$n,e.IconLock=rr,e.IconLusciiEscalated=sr,e.IconLusciiLogo=dr,e.IconLusciiOpen=hr,e.IconLusciiPriorityHigh=yr,e.IconLusciiPriorityLow=Cr,e.IconLusciiPriorityMedium=Dr,e.IconMenu=jr,e.IconMessage=Fr,e.IconMessageForward=zr,e.IconMicrophoneSlash=Hr,e.IconMicrosoftTeams=Kr,e.IconMin=Xr,e.IconOrderedList=ei,e.IconPlus=ii,e.IconRefresh=ci,e.IconRemove=fi,e.IconSananetLogo=_i,e.IconService=xi,e.IconShareScreen=Ti,e.IconSingleNeutral=ki,e.IconSort=Ni,e.IconSortAsc=Li,e.IconSortDesc=Vi,e.IconSortNone=Gi,e.IconTriangleDown=Yi,e.IconTriangleExclamation=$i,e.IconUnderline=ra,e.IconVideoDisabled=ua,e.IconVideocall=sa,e.IconWarning=ma,e.IconZorgkaart=va,e.MapAttachmentsForApi=J_,e.MapToAttachmentObjects=ev,e.TransformHyperlinks=e=>{let t=/<a\b[^>]*>.*?<\/a>/gi,n=[],r;for(;(r=t.exec(e))!==null;)n.push({start:r.index,end:r.index+r[0].length});return e.replace(/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g,(e,t,r)=>n.some(e=>r>=e.start&&r<e.end)?e:`<a href="${e.startsWith(`www.`)?`http://${e}`:e}" target="_blank" rel="noopener noreferrer">${e}</a>`)},e.ValidateUrl=e=>e.startsWith(`http://`)||e.startsWith(`https://`),e.default={install:e=>{e.component(`BDAlert`,xa),e.component(`BDArticle`,wa),e.component(`BDAssignConversationModal`,ZK),e.component(`BDAttachmentPreviewList`,R_),e.component(`BDAttachmentUploadModal`,QK),e.component(`BDBadge`,Da),e.component(`BDButton`,j),e.component(`BDCard`,Ra),e.component(`BDChangePasswordTemplate`,IY),e.component(`BDChatCloud`,ov),e.component(`BDCol`,KK),e.component(`BDCollapsableCard`,Ha),e.component(`BDConfirmationModal`,$K),e.component(`BDContainer`,qK),e.component(`BDContentLibraryModal`,HJ),e.component(`BDContentLibrarySplitButton`,jh),e.component(`BDContentLibraryTemplate`,VJ),e.component(`BDConversationToTextModal`,lY),e.component(`BDDate`,Xh),e.component(`BDDropdown`,sK),e.component(`BDDropdownItem`,sv),e.component(`BDFileUpload`,dO),e.component(`BDForm`,Zh),e.component(`BDFormCheckbox`,hg),e.component(`BDFormInput`,Lg),e.component(`BDFormInvalidFeedback`,_g),e.component(`BDFormMultipleCheckbox`,hO),e.component(`BDFormSelect`,Hg),e.component(`BDHeader`,mK),e.component(`BDImageAttachmentModal`,gY),e.component(`BDImageAttachmentPreviewList`,q_),e.component(`BDInputGroup`,Gg),e.component(`BDLink`,ka),e.component(`BDLoader`,Zg),e.component(`BDLogo`,e_),e.component(`BDMarkdownEditor`,wG),e.component(`BDMessageTemplateFormModal`,vY),e.component(`BDMobileMenu`,jG),e.component(`BDModal`,CK),e.component(`BDNotFoundTemplate`,NX),e.component(`BDPagination`,s_),e.component(`BDPhoneNumberEditModal`,jK),e.component(`BDPill`,m_),e.component(`BDPillContainer`,__),e.component(`BDPractitionerHeader`,GK),e.component(`BDProfileImage`,b_),e.component(`BDRow`,JK),e.component(`BDSessionTimeOutModal`,XK),e.component(`BDSmallConversationCard`,FG),e.component(`BDTable`,WG),e.component(`BDToast`,T_),e.component(`BDUser`,YG),e.component(`BDUserInformation`,A_),e.component(`BDVideoCallConfirmationModal`,EY),e.component(`BDVideoCallTemplate`,kX),e.component(`BDVideoCallToast`,oK),e.component(`BDZoomslider`,N_),e.component(`IconAcademy`,y),e.component(`IconArrowDown`,C),e.component(`IconArrowUp`,D),e.component(`IconAttachment`,k),e.component(`IconBold`,ae),e.component(`IconBulletList`,le),e.component(`IconCalendar`,pe),e.component(`IconCall`,_e),e.component(`IconCallReject`,xe),e.component(`IconCardView`,Te),e.component(`IconCaretDown`,A),e.component(`IconCaretLeft`,Me),e.component(`IconCaretRight`,Ie),e.component(`IconCheck`,Be),e.component(`IconClipboard`,We),e.component(`IconClose`,Je),e.component(`IconComment`,Qe),e.component(`IconCommentActive`,nt),e.component(`IconCommentStatic`,ot),e.component(`IconCommonFileEmpty`,ut),e.component(`IconCommonFileWarning`,mt),e.component(`IconContactPerson`,vt),e.component(`IconCopy`,St),e.component(`IconDelete`,Et),e.component(`IconDoubleCheck`,At),e.component(`IconDownloadImage`,Pt),e.component(`IconEdit`,Rt),e.component(`IconEndCall`,Ht),e.component(`IconError`,Kt),e.component(`IconExternal`,Xt),e.component(`IconEyeShow`,en),e.component(`IconEyeSlash`,an),e.component(`IconFile`,ln),e.component(`IconFileAdded`,pn),e.component(`IconForward`,_n),e.component(`IconHix`,xn),e.component(`IconHyperlink`,Tn),e.component(`IconImageFileLandscape`,kn),e.component(`IconImageFileWarning`,Nn),e.component(`IconInbox`,Ln),e.component(`IconInfo`,Vn),e.component(`IconInformationCircle`,Gn),e.component(`IconItalic`,Yn),e.component(`IconListView`,$n),e.component(`IconLock`,rr),e.component(`IconLusciiEscalated`,sr),e.component(`IconLusciiLogo`,dr),e.component(`IconLusciiOpen`,hr),e.component(`IconLusciiPriorityHigh`,yr),e.component(`IconLusciiPriorityLow`,Cr),e.component(`IconLusciiPriorityMedium`,Dr),e.component(`IconMenu`,jr),e.component(`IconMessage`,Fr),e.component(`IconMessageForward`,zr),e.component(`IconMicrophoneSlash`,Hr),e.component(`IconMicrosoftTeams`,Kr),e.component(`IconMin`,Xr),e.component(`IconOrderedList`,ei),e.component(`IconPlus`,ii),e.component(`IconRefresh`,ci),e.component(`IconRemove`,fi),e.component(`IconSananetLogo`,_i),e.component(`IconService`,xi),e.component(`IconShareScreen`,Ti),e.component(`IconSingleNeutral`,ki),e.component(`IconSort`,Ni),e.component(`IconSortAsc`,Li),e.component(`IconSortDesc`,Vi),e.component(`IconSortNone`,Gi),e.component(`IconTriangleDown`,Yi),e.component(`IconTriangleExclamation`,$i),e.component(`IconUnderline`,ra),e.component(`IconVideoDisabled`,ua),e.component(`IconVideocall`,sa),e.component(`IconWarning`,ma),e.component(`IconZorgkaart`,va),e.directive(`bd-tooltip`,xG)}},e.getDisplayDateNumeric=Jh,e.getDisplayDateTextual=Gh,e.getDisplayDateTimeNumeric=qh,e.getDisplayDateTimeTextual=Kh,e.useModal=wK,e.usePopover=IK,e.useServerErrors=EK,e.useSessionTimeOut=YK,e.useToaster=sO,e.useValidation=DY,e.useWindow=PK,e.useZoom=uY,e.vBdTooltip=xG});
|