@beterdichtbij/component-library 0.40.1 → 0.40.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
1
  (function(ue,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(ue=typeof globalThis<"u"?globalThis:ue||self,u(ue.BDComponentLibrary={},ue.Vue))})(this,function(ue,u){"use strict";const Zn=u.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xxl:{},orderClass:{},offsetClass:{}},setup(n){const e=n,t=u.computed(()=>({col:!e.cols&&!e.xs&&!e.sm&&!e.md&&!e.lg&&!e.xxl,[`col-${e.cols}`]:e.cols,[`col-xs-${e.xs}`]:e.xs,[`col-sm-${e.sm}`]:e.sm,[`col-md-${e.md}`]:e.md,[`col-lg-${e.lg}`]:e.lg,[`col-xxl-${e.xxl}`]:e.xxl,[`${e.orderClass}`]:e.orderClass,[`${e.offsetClass}`]:e.offsetClass,[`${e.class}`]:e.class}));return(r,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(t.value)},[u.renderSlot(r.$slots,"default")],2))}}),as=u.defineComponent({__name:"BDContainer",props:{class:{default:""},fluid:{type:Boolean,default:!1}},setup(n){const e=n,t=u.computed(()=>({container:!e.fluid,"container-fluid":e.fluid===!0,[`container-${e.fluid}`]:e.fluid&&e.fluid!==!0,[e.class]:!0}));return(r,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(t.value)},[u.renderSlot(r.$slots,"default")],2))}}),Xn=u.defineComponent({__name:"BDRow",props:{class:{}},setup(n){return(e,t)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["row",e.class])},[u.renderSlot(e.$slots,"default")],2))}}),lt={XS:"xs",SM:"sm",MD:"md",LG:"lg"},Le=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},c1={},u1={class:"icon icon-academy",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"},d1=[u.createElementVNode("path",{d:"M30.6523 16.0664C31.0039 16.207 31.25 16.5234 31.25 16.875C31.25 17.2617 31.0039 17.5781 30.6523 17.7188L20.7383 21.2695C20.4922 21.3398 20.2461 21.375 20 21.375C19.7188 21.375 19.4727 21.3398 19.2266 21.2695L12.5469 18.8789C12.125 19.3359 11.8086 19.8984 11.668 20.5312C11.9141 20.707 12.125 21.0234 12.125 21.375C12.125 21.7266 11.9492 22.043 11.7031 22.2539L12.5469 27.4922C12.6172 27.8438 12.3359 28.125 12.0195 28.125H9.94531C9.62891 28.125 9.34766 27.8438 9.41797 27.4922L10.2617 22.2539C10.0156 22.043 9.875 21.7266 9.875 21.375C9.875 20.918 10.1562 20.5312 10.543 20.3555C10.6836 19.6523 11 19.0195 11.4219 18.457L9.3125 17.7188C8.96094 17.5781 8.75 17.2617 8.75 16.875C8.75 16.5234 8.96094 16.207 9.3125 16.0664L19.2266 12.5156C19.4727 12.4453 19.7188 12.375 20 12.375C20.2461 12.375 20.4922 12.4453 20.7031 12.5156L30.6523 16.0664ZM20.1758 19.6875L27.9453 16.875L20.1406 14.0977C20.0703 14.0977 19.9297 14.0625 19.7891 14.0977L12.0195 16.875L13.1445 17.2969L19.8242 15.2227C20.1055 15.1172 20.4219 15.293 20.5273 15.6094C20.5977 15.8906 20.457 16.207 20.1406 16.3125L14.9023 17.9297L19.8242 19.6875C19.8594 19.6875 20 19.7227 20.1758 19.6875ZM24.6406 21.0586L26.2578 20.4961L26.7148 24.9258C26.75 27.0703 23.3398 28.125 20 28.125C16.625 28.125 13.25 27.0703 13.25 24.9258L13.707 20.4961L15.3242 21.0586L14.9375 24.9961C14.9375 25.3828 16.6602 26.4375 20 26.4375C23.3047 26.4375 25.0625 25.3828 25.0625 24.9961L24.6406 21.0586Z"},null,-1)];function f1(n,e){return u.openBlock(),u.createElementBlock("svg",u1,d1)}const tu=Le(c1,[["render",f1]]),h1={},p1={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},m1=[u.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[u.createElementVNode("path",{d:"M12,19.5a2.3,2.3,0,0,1-1.729-.78L.46,7.568A1.847,1.847,0,0,1,3.233,5.129l8.579,9.752a.25.25,0,0,0,.376,0l8.579-9.752A1.847,1.847,0,1,1,23.54,7.568L13.732,18.716A2.31,2.31,0,0,1,12,19.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function g1(n,e){return u.openBlock(),u.createElementBlock("svg",p1,m1)}const nu=Le(h1,[["render",g1]]),y1={},v1={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},b1=[u.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[u.createElementVNode("path",{d:"M12,4.5a2.3,2.3,0,0,1,1.729.78l9.811,11.15a1.847,1.847,0,1,1-2.773,2.439L12.188,9.119a.25.25,0,0,0-.376,0L3.233,18.871A1.847,1.847,0,1,1,.46,16.432L10.268,5.284A2.31,2.31,0,0,1,12,4.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function E1(n,e){return u.openBlock(),u.createElementBlock("svg",v1,b1)}const ru=Le(y1,[["render",E1]]),C1={},S1={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},w1=[u.createElementVNode("path",{d:"M15.56 7.97l-7.135 7.135a3.91 3.91 0 0 1-5.53-5.53L10.03 2.44a2.357 2.357 0 0 1 3.333 3.334L6.22 12.907a.804.804 0 1 1-1.137-1.136l6.591-6.582a.75.75 0 0 0-1.06-1.062l-6.59 6.583a2.304 2.304 0 1 0 3.256 3.258l7.142-7.134A3.857 3.857 0 1 0 8.97 1.38L1.835 8.514a5.41 5.41 0 0 0 7.651 7.651l7.134-7.134a.75.75 0 1 0-1.06-1.06z"},null,-1)];function k1(n,e){return u.openBlock(),u.createElementBlock("svg",S1,w1)}const Qn=Le(C1,[["render",k1]]),T1={},x1={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"},A1=[u.createElementVNode("path",{d:"M8.85547 6.25781C9.21094 5.84766 9.53906 5.05469 9.59375 4.48047C9.78516 2.40234 8.17188 0.625 6.12109 0.625H0.679688C0.433594 0.625 0.242188 0.84375 0.242188 1.0625V2.375C0.242188 2.62109 0.433594 2.8125 0.679688 2.8125H1.52734V10.6875H0.679688C0.433594 10.6875 0.242188 10.9062 0.242188 11.125V12.4375C0.242188 12.6836 0.433594 12.875 0.679688 12.875H6.39453C8.33594 12.875 10.0586 11.4805 10.25 9.53906C10.3867 8.22656 9.78516 7.02344 8.85547 6.25781ZM3.71484 2.8125H6.12109C6.83203 2.8125 7.43359 3.41406 7.43359 4.125C7.43359 4.86328 6.83203 5.4375 6.12109 5.4375H3.71484V2.8125ZM6.12109 10.6875H3.71484V7.625H6.12109C6.96875 7.625 7.65234 8.33594 7.65234 9.15625C7.65234 10.0039 6.96875 10.6875 6.12109 10.6875Z"},null,-1)];function O1(n,e){return u.openBlock(),u.createElementBlock("svg",x1,A1)}const ha=Le(T1,[["render",O1]]),M1={},N1={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"},_1=[u.createElementVNode("path",{d:"M2.5 5.5H0.5C0.21875 5.5 0 5.75 0 6V8C0 8.28125 0.21875 8.5 0.5 8.5H2.5C2.75 8.5 3 8.28125 3 8V6C3 5.75 2.75 5.5 2.5 5.5ZM2.5 10.5H0.5C0.21875 10.5 0 10.75 0 11V13C0 13.2812 0.21875 13.5 0.5 13.5H2.5C2.75 13.5 3 13.2812 3 13V11C3 10.75 2.75 10.5 2.5 10.5ZM2.5 0.5H0.5C0.21875 0.5 0 0.75 0 1V3C0 3.28125 0.21875 3.5 0.5 3.5H2.5C2.75 3.5 3 3.28125 3 3V1C3 0.75 2.75 0.5 2.5 0.5ZM15.25 6.25H5.71875C5.3125 6.25 5 6.59375 5 7C5 7.4375 5.3125 7.75 5.71875 7.75H15.25C15.6562 7.75 16 7.4375 16 7C16 6.59375 15.6562 6.25 15.25 6.25ZM15.25 1.25H5.71875C5.3125 1.25 5 1.59375 5 2C5 2.375 5.3125 2.75 5.71875 2.75H15.25C15.6562 2.75 16 2.4375 16 2.03125C16 1.65625 15.6562 1.25 15.25 1.25ZM15.25 11.25H5.71875C5.3125 11.25 5 11.5938 5 12C5 12.4375 5.3125 12.75 5.71875 12.75H15.25C15.6562 12.75 16 12.4375 16 12C16 11.5938 15.6562 11.25 15.25 11.25Z"},null,-1)];function I1(n,e){return u.openBlock(),u.createElementBlock("svg",N1,_1)}const pa=Le(M1,[["render",I1]]),D1={},L1={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"},R1=[u.createElementVNode("path",{d:"M4.25 3.35H3c-.69 0-1.25.56-1.25 1.25v2.05h12.9V4.6c0-.69-.56-1.25-1.25-1.25h-1.25v.85a.75.75 0 1 1-1.5 0v-.85h-4.9v.85a.75.75 0 0 1-1.5 0v-.85zm1.5-1.5h4.9V1a.75.75 0 1 1 1.5 0v.85h1.25a2.75 2.75 0 0 1 2.75 2.75V15a2.75 2.75 0 0 1-2.75 2.75H3A2.75 2.75 0 0 1 .25 15V4.6A2.75 2.75 0 0 1 3 1.85h1.25V1a.75.75 0 0 1 1.5 0v.85zm8.9 6.3H1.75V15c0 .69.56 1.25 1.25 1.25h10.4c.69 0 1.25-.56 1.25-1.25V8.15z"},null,-1)];function B1(n,e){return u.openBlock(),u.createElementBlock("svg",L1,R1)}const ma=Le(D1,[["render",B1]]),$1={},P1={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"},F1=[u.createElementVNode("path",{d:"M21.375 0.75H2.625C1.57031 0.75 0.75 1.60938 0.75 2.625V16.375C0.75 17.4297 1.57031 18.25 2.625 18.25H21.375C22.3906 18.25 23.25 17.4297 23.25 16.375V2.625C23.25 1.60938 22.3906 0.75 21.375 0.75ZM21.375 16.375H2.625V2.625H21.375V16.375ZM8.875 9.5C10.2422 9.5 11.375 8.40625 11.375 7C11.375 5.63281 10.2422 4.5 8.875 4.5C7.46875 4.5 6.375 5.63281 6.375 7C6.375 8.40625 7.46875 9.5 8.875 9.5ZM5.35938 14.5H12.3516C12.8594 14.5 13.25 14.1875 13.25 13.7578V13.0156C13.25 11.7656 12.0391 10.75 10.5938 10.75C10.2031 10.75 9.89062 11.0625 8.875 11.0625C7.82031 11.0625 7.54688 10.75 7.11719 10.75C5.67188 10.75 4.5 11.7656 4.5 13.0156V13.7578C4.5 14.1875 4.89062 14.5 5.35938 14.5ZM14.8125 12H19.1875C19.3438 12 19.5 11.8828 19.5 11.6875V11.0625C19.5 10.9062 19.3438 10.75 19.1875 10.75H14.8125C14.6172 10.75 14.5 10.9062 14.5 11.0625V11.6875C14.5 11.8828 14.6172 12 14.8125 12ZM14.8125 9.5H19.1875C19.3438 9.5 19.5 9.38281 19.5 9.1875V8.5625C19.5 8.40625 19.3438 8.25 19.1875 8.25H14.8125C14.6172 8.25 14.5 8.40625 14.5 8.5625V9.1875C14.5 9.38281 14.6172 9.5 14.8125 9.5ZM14.8125 7H19.1875C19.3438 7 19.5 6.88281 19.5 6.6875V6.0625C19.5 5.90625 19.3438 5.75 19.1875 5.75H14.8125C14.6172 5.75 14.5 5.90625 14.5 6.0625V6.6875C14.5 6.88281 14.6172 7 14.8125 7Z",fill:"#6B758A"},null,-1)];function V1(n,e){return u.openBlock(),u.createElementBlock("svg",P1,F1)}const ou=Le($1,[["render",V1]]),z1={},H1={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"},U1=[u.createElementVNode("path",{d:"M8.828 6.207L14.632.404a1 1 0 0 1 1.414 0l.707.707a1 1 0 0 1 0 1.414L9.682 9.596a.999.999 0 0 1-.854.282.999.999 0 0 1-.853-.282L.904 2.526a1 1 0 0 1 0-1.415L1.61.404a1 1 0 0 1 1.414 0l5.803 5.803z",fill:"#3594CF"},null,-1)];function j1(n,e){return u.openBlock(),u.createElementBlock("svg",H1,U1)}const ga=Le(z1,[["render",j1]]),W1={},K1={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"},Y1=[u.createElementVNode("path",{d:"M2.276 4.897l3.27 3.27A.9.9 0 1 1 4.273 9.44L.454 5.62a.898.898 0 0 1-.259-.724.898.898 0 0 1 .26-.724L4.272.354a.9.9 0 1 1 1.273 1.273l-3.27 3.27z"},null,-1)];function G1(n,e){return u.openBlock(),u.createElementBlock("svg",K1,Y1)}const ya=Le(W1,[["render",G1]]),J1={},Z1={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"},X1=[u.createElementVNode("path",{d:"M4.324 5.703l-3.27-3.27A.9.9 0 1 1 2.327 1.16L6.146 4.98a.898.898 0 0 1 .259.724.898.898 0 0 1-.26.724l-3.818 3.819a.9.9 0 1 1-1.273-1.273l3.27-3.27z"},null,-1)];function Q1(n,e){return u.openBlock(),u.createElementBlock("svg",Z1,X1)}const va=Le(J1,[["render",Q1]]),q1={},eg={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"},tg=[u.createElementVNode("path",{d:"M6 10.586L1.707 6.293A1 1 0 0 0 .293 7.707l5 5a1 1 0 0 0 1.414 0l11-11A1 1 0 1 0 16.293.293L6 10.586z"},null,-1)];function ng(n,e){return u.openBlock(),u.createElementBlock("svg",eg,tg)}const xr=Le(q1,[["render",ng]]),rg={},og={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"},sg=[u.createElementVNode("path",{d:"M8.414 7l5.293 5.293a1 1 0 0 1-1.414 1.414L7 8.414l-5.293 5.293a1 1 0 1 1-1.414-1.414L5.586 7 .293 1.707A1 1 0 1 1 1.707.293L7 5.586 12.293.293a1 1 0 0 1 1.414 1.414L8.414 7z"},null,-1)];function ig(n,e){return u.openBlock(),u.createElementBlock("svg",og,sg)}const ls=Le(rg,[["render",ig]]),ag={},lg={class:"icon icon-comment",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},cg=[u.createElementVNode("path",{d:"M1.139 8.555a8.304 8.304 0 0 1 4.59-7.424A8.198 8.198 0 0 1 9.444.25L9.93.25c4.218.233 7.586 3.6 7.82 7.86v.445-.002a8.197 8.197 0 0 1-.88 3.715 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778a8.197 8.197 0 0 1-.742-3.429zm1.047 7.26L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.7 6.7 0 0 0 .719-3.038l.001-.405c-.19-3.454-2.949-6.213-6.362-6.402h-.446a6.703 6.703 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643z"},null,-1)];function ug(n,e){return u.openBlock(),u.createElementBlock("svg",lg,cg)}const dg=Le(ag,[["render",ug]]),fg={},hg={viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-download-link"},pg=[u.createStaticVNode('<g transform="matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"><path d="M11.250 17.250 A6.000 6.000 0 1 0 23.250 17.250 A6.000 6.000 0 1 0 11.250 17.250 Z" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 14.25L17.25 20.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L15 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L19.5 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8.25,20.25h-6a1.5,1.5,0,0,1-1.5-1.5V2.25A1.5,1.5,0,0,1,2.25.75H12.879a1.5,1.5,0,0,1,1.06.439l2.872,2.872a1.5,1.5,0,0,1,.439,1.06V8.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M5.25,5.625A.375.375,0,1,1,4.875,6a.375.375,0,0,1,.375-.375" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12.085,9.586,11.25,8.25a.749.749,0,0,0-1.238-.014l-2,2.851L6.78,10.1a.75.75,0,0,0-1.093.169L3.75,14.25h4.5" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g>',1)];function mg(n,e){return u.openBlock(),u.createElementBlock("svg",hg,pg)}const cs=Le(fg,[["render",mg]]),gg={},yg={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18"},vg=[u.createElementVNode("path",{d:"M8.967 3.528L8.94 3.5 10 2.44l.028.027L12.025.47a.75.75 0 0 1 1.06 0l4.445 4.444a.75.75 0 0 1 0 1.06L5.975 17.53a.75.75 0 0 1-.53.22H1A.75.75 0 0 1 .25 17v-4.444a.75.75 0 0 1 .22-.53l8.497-8.498zm1.06 1.06L1.75 12.866v3.384h3.384l8.278-8.278-3.384-3.384zm1.061-1.06l3.384 3.384 1.467-1.468-3.383-3.383-1.468 1.467z"},null,-1)];function bg(n,e){return u.openBlock(),u.createElementBlock("svg",yg,vg)}const su=Le(gg,[["render",bg]]),Eg={},Cg={class:"icon icon-error",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Sg=[u.createElementVNode("path",{d:"M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zm.542-7.01l.102-7.654h-1.42l.094 7.654h1.224zm-1.37 2.329c0 .22.067.401.201.546.135.144.334.216.597.216.264 0 .464-.072.6-.216a.761.761 0 0 0 .206-.546.787.787 0 0 0-.205-.553c-.137-.15-.337-.224-.6-.224-.264 0-.463.075-.598.224a.795.795 0 0 0-.201.553z"},null,-1)];function wg(n,e){return u.openBlock(),u.createElementBlock("svg",Cg,Sg)}const us=Le(Eg,[["render",wg]]),kg={},Tg={width:"30px",height:"30px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-show"},xg=[u.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0001 5.25C9.22586 5.25 6.79699 6.91121 5.12801 8.44832C4.28012 9.22922 3.59626 10.0078 3.12442 10.5906C2.88804 10.8825 2.70368 11.1268 2.57736 11.2997C2.51417 11.3862 2.46542 11.4549 2.43187 11.5029C2.41509 11.5269 2.4021 11.5457 2.393 11.559L2.38227 11.5747L2.37911 11.5794L2.10547 12.0132L2.37809 12.4191L2.37911 12.4206L2.38227 12.4253L2.393 12.441C2.4021 12.4543 2.41509 12.4731 2.43187 12.4971C2.46542 12.5451 2.51417 12.6138 2.57736 12.7003C2.70368 12.8732 2.88804 13.1175 3.12442 13.4094C3.59626 13.9922 4.28012 14.7708 5.12801 15.5517C6.79699 17.0888 9.22586 18.75 12.0001 18.75C14.7743 18.75 17.2031 17.0888 18.8721 15.5517C19.72 14.7708 20.4039 13.9922 20.8757 13.4094C21.1121 13.1175 21.2964 12.8732 21.4228 12.7003C21.4859 12.6138 21.5347 12.5451 21.5682 12.4971C21.585 12.4731 21.598 12.4543 21.6071 12.441L21.6178 12.4253L21.621 12.4206L21.6224 12.4186L21.9035 12L21.622 11.5809L21.621 11.5794L21.6178 11.5747L21.6071 11.559C21.598 11.5457 21.585 11.5269 21.5682 11.5029C21.5347 11.4549 21.4859 11.3862 21.4228 11.2997C21.2964 11.1268 21.1121 10.8825 20.8757 10.5906C20.4039 10.0078 19.72 9.22922 18.8721 8.44832C17.2031 6.91121 14.7743 5.25 12.0001 5.25ZM4.29022 12.4656C4.14684 12.2885 4.02478 12.1311 3.92575 12C4.02478 11.8689 4.14684 11.7115 4.29022 11.5344C4.72924 10.9922 5.36339 10.2708 6.14419 9.55168C7.73256 8.08879 9.80369 6.75 12.0001 6.75C14.1964 6.75 16.2676 8.08879 17.8559 9.55168C18.6367 10.2708 19.2709 10.9922 19.7099 11.5344C19.8533 11.7115 19.9753 11.8689 20.0744 12C19.9753 12.1311 19.8533 12.2885 19.7099 12.4656C19.2709 13.0078 18.6367 13.7292 17.8559 14.4483C16.2676 15.9112 14.1964 17.25 12.0001 17.25C9.80369 17.25 7.73256 15.9112 6.14419 14.4483C5.36339 13.7292 4.72924 13.0078 4.29022 12.4656ZM14.25 12C14.25 13.2426 13.2427 14.25 12 14.25C10.7574 14.25 9.75005 13.2426 9.75005 12C9.75005 10.7574 10.7574 9.75 12 9.75C13.2427 9.75 14.25 10.7574 14.25 12ZM15.75 12C15.75 14.0711 14.0711 15.75 12 15.75C9.92898 15.75 8.25005 14.0711 8.25005 12C8.25005 9.92893 9.92898 8.25 12 8.25C14.0711 8.25 15.75 9.92893 15.75 12Z",fill:"#080341"},null,-1)];function Ag(n,e){return u.openBlock(),u.createElementBlock("svg",Tg,xg)}const iu=Le(kg,[["render",Ag]]),Og={},Mg={fill:"#000000",width:"30px",height:"30px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-slash"},Ng=[u.createElementVNode("path",{d:"M18.822 22.904c-5.215 1.275-10.524-1.051-15.818-6.904 1.337-1.501 2.79-2.843 4.364-4.034l0.076-0.055c0.186-0.138 0.305-0.357 0.305-0.604 0-0.414-0.336-0.75-0.75-0.75-0.166 0-0.32 0.054-0.444 0.146l0.002-0.001c-1.91 1.447-3.588 3.024-5.086 4.761l-0.036 0.042c-0.115 0.131-0.185 0.305-0.185 0.494s0.070 0.363 0.186 0.495l-0.001-0.001c4.803 5.488 9.693 8.254 14.582 8.254 1.123-0.001 2.212-0.142 3.252-0.406l-0.092 0.020c0.332-0.082 0.573-0.377 0.573-0.729 0-0.414-0.336-0.75-0.75-0.75-0.064 0-0.125 0.008-0.184 0.023l0.005-0.001zM16.75 20c-0-0.414-0.336-0.75-0.75-0.75v0c-1.794-0.002-3.248-1.456-3.25-3.25v-0c0-0.414-0.336-0.75-0.75-0.75s-0.75 0.336-0.75 0.75v0c0.003 2.622 2.128 4.747 4.75 4.75h0c0.414-0 0.75-0.336 0.75-0.75v0zM23.565 22.503c2.701-1.672 5.010-3.665 6.965-5.967l0.034-0.042c0.116-0.131 0.186-0.304 0.186-0.494s-0.070-0.363-0.187-0.495l0.001 0.001c-6.844-7.82-13.822-10.081-20.758-6.76l-7.277-7.276c-0.135-0.131-0.32-0.212-0.523-0.212-0.414 0-0.75 0.336-0.75 0.75 0 0.203 0.081 0.388 0.213 0.523l27.999 28.001c0.136 0.136 0.324 0.22 0.531 0.22 0.415 0 0.751-0.336 0.751-0.751 0-0.207-0.084-0.395-0.22-0.531v0zM28.996 16c-1.852 2.121-4.004 3.919-6.402 5.345l-0.121 0.067-2.636-2.635c0.569-0.767 0.911-1.731 0.912-2.776v-0c-0.003-2.622-2.128-4.747-4.75-4.75h-0c-1.045 0.002-2.009 0.344-2.789 0.921l0.013-0.009-2.29-2.29c6.027-2.647 11.95-0.64 18.062 6.127zM14.301 13.239c0.486-0.307 1.077-0.489 1.711-0.489 1.788 0 3.238 1.45 3.238 3.238 0 0.634-0.182 1.225-0.497 1.724l0.008-0.013z"},null,-1)];function _g(n,e){return u.openBlock(),u.createElementBlock("svg",Mg,Ng)}const au=Le(Og,[["render",_g]]),Ig={},Dg={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 24 24",style:{"enable-background":"new 0 0 24 24"},"xml:space":"preserve",class:"icon icon-file"},Lg=[u.createElementVNode("title",null,"common-file-empty",-1),u.createElementVNode("g",null,[u.createElementVNode("path",{d:`M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883
2
2
  c0.431,0.422,0.678,1.009,0.678,1.611V21.75c0,1.241-1.009,2.25-2.25,2.25H3.023z M3.023,1.5c-0.414,0-0.75,0.336-0.75,0.75v19.5
3
3
  c0,0.414,0.336,0.75,0.75,0.75h17.954c0.414,0,0.75-0.336,0.75-0.75V5.133c0-0.201-0.082-0.397-0.226-0.537l-2.955-2.883
4
- C18.406,1.576,18.22,1.5,18.023,1.5H3.023z`})],-1)];function Rg(n,e){return u.openBlock(),u.createElementBlock("svg",Dg,Lg)}const ba=Le(Ig,[["render",Rg]]),Bg={},$g={class:"icon icon-hyperlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",viewBox:"0 0 20 20",width:"20",height:"20"},Pg=[u.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[u.createElementVNode("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"}),u.createElementVNode("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)];function Fg(n,e){return u.openBlock(),u.createElementBlock("svg",$g,Pg)}const ds=Le(Bg,[["render",Fg]]),Vg={},zg={class:"icon icon-info",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Hg=[u.createElementVNode("path",{d:"M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zm.498-4V6.075H8.143V14h1.355zM8.033 3.973c0 .22.067.403.201.55.134.146.333.22.597.22.264 0 .464-.074.6-.22a.774.774 0 0 0 .206-.55.8.8 0 0 0-.205-.556c-.137-.152-.337-.228-.6-.228-.265 0-.464.076-.598.228a.809.809 0 0 0-.201.556z"},null,-1)];function Ug(n,e){return u.openBlock(),u.createElementBlock("svg",zg,Hg)}const qn=Le(Vg,[["render",Ug]]),jg={},Wg={width:"12",height:"14",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-italic"},Kg=[u.createElementVNode("path",{d:"M12 0.75C12 1.1875 11.6562 1.5 11.25 1.5H9.125L4.53125 12.5H7.25C7.65625 12.5 8 12.8438 8 13.25C8 13.6875 7.65625 14 7.25 14H0.75C0.3125 14 0 13.6875 0 13.25C0 12.8438 0.3125 12.5 0.75 12.5H2.9375L7.53125 1.5H4.75C4.3125 1.5 4 1.1875 4 0.75C4 0.34375 4.3125 0 4.75 0H11.25C11.6562 0 12 0.34375 12 0.75Z"},null,-1)];function Yg(n,e){return u.openBlock(),u.createElementBlock("svg",Wg,Kg)}const Ea=Le(jg,[["render",Yg]]),Gg={},Jg={class:"icon icon-list-view",width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zg=[u.createElementVNode("path",{d:"M0 2.625V16.375C0 17.4297 0.820312 18.25 1.875 18.25H18.125C19.1406 18.25 20 17.4297 20 16.375V2.625C20 1.60938 19.1406 0.75 18.125 0.75H1.875C0.820312 0.75 0 1.60938 0 2.625ZM18.4375 11.375H7.69531V7.625H18.4375V11.375ZM18.4375 12.9375V16.2188C18.4375 16.4922 18.2031 16.6875 17.9688 16.6875H7.69531V12.9375H18.4375ZM1.5625 7.625H6.13281V11.375H1.5625V7.625ZM7.69531 6.0625V2.3125H17.9688C18.2031 2.3125 18.4375 2.54688 18.4375 2.78125V6.0625H7.69531ZM6.13281 2.3125V6.0625H1.5625V2.78125C1.5625 2.54688 1.75781 2.3125 2.03125 2.3125H6.13281ZM1.5625 12.9375H6.13281V16.6875H2.03125C1.75781 16.6875 1.5625 16.4922 1.5625 16.2188V12.9375Z",fill:"#394156"},null,-1)];function Xg(n,e){return u.openBlock(),u.createElementBlock("svg",Jg,Zg)}const lu=Le(Gg,[["render",Xg]]),Qg={},qg={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},e0=[u.createElementVNode("path",{d:"M1.386 2a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 0 1 0-2H18a1 1 0 0 1 0 2H1.386z"},null,-1)];function t0(n,e){return u.openBlock(),u.createElementBlock("svg",qg,e0)}const fs=Le(Qg,[["render",t0]]),n0={},r0={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},o0=[u.createElementVNode("path",{d:"M7.75 3.75H16.25C16.6562 3.75 17 3.4375 17 3C17 2.59375 16.6562 2.25 16.25 2.25H7.75C7.3125 2.25 7 2.59375 7 3C7 3.4375 7.3125 3.75 7.75 3.75ZM16.25 12.25H7.75C7.3125 12.25 7 12.5938 7 13C7 13.4375 7.3125 13.75 7.75 13.75H16.25C16.6562 13.75 17 13.4375 17 13C17 12.5938 16.6562 12.25 16.25 12.25ZM16.25 7.25H7.75C7.3125 7.25 7 7.59375 7 8C7 8.4375 7.3125 8.75 7.75 8.75H16.25C16.6562 8.75 17 8.4375 17 8C17 7.59375 16.6562 7.25 16.25 7.25ZM2.25 7H4.75C5.15625 7 5.5 6.6875 5.5 6.25C5.5 5.78125 5.15625 5.5 4.75 5.5H4.25V1.75C4.25 1.5 4.09375 1.25 3.84375 1.125C3.625 0.96875 3.34375 0.96875 3.09375 1.125L2.09375 1.6875C1.75 1.90625 1.625 2.375 1.84375 2.71875C2.03125 3.03125 2.40625 3.1875 2.75 3.0625V5.5H2.25C1.8125 5.5 1.5 5.84375 1.5 6.25C1.5 6.6875 1.8125 7 2.25 7ZM5.25 13.5H3.6875L4.84375 12.5C5.78125 11.6875 5.875 10.2812 5.09375 9.34375C4.6875 8.84375 4.125 8.5625 3.5 8.53125C2.90625 8.46875 2.28125 8.65625 1.8125 9.0625L1.4375 9.40625C1.125 9.6875 1.09375 10.1562 1.34375 10.4688C1.625 10.7812 2.09375 10.8125 2.40625 10.5625L2.8125 10.2188C2.96875 10.0625 3.1875 10 3.40625 10.0312C3.625 10.0312 3.8125 10.125 3.9375 10.3125C4.21875 10.625 4.1875 11.0938 3.84375 11.375L1.25 13.7188C1 13.9062 0.9375 14.25 1.03125 14.5312C1.15625 14.8125 1.4375 15 1.71875 15H5.25C5.65625 15 6 14.6875 6 14.2812C6 13.8438 5.65625 13.5 5.25 13.5Z"},null,-1)];function s0(n,e){return u.openBlock(),u.createElementBlock("svg",r0,o0)}const Ca=Le(n0,[["render",s0]]),i0={},a0={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},l0=[u.createElementVNode("path",{d:"M.893.893a1 1 0 0 1 1.414 0L5.5 4.085 8.693.893a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414L6.915 5.5l3.192 3.193a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0L5.5 6.915l-3.193 3.192a1 1 0 0 1-1.32.083l-.094-.083a1 1 0 0 1 0-1.414L4.085 5.5.893 2.307A1 1 0 0 1 .81.987L.893.893z"},null,-1)];function c0(n,e){return u.openBlock(),u.createElementBlock("svg",a0,l0)}const go=Le(i0,[["render",c0]]),u0={},d0={class:"icon icon-service",viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg"},f0=[u.createElementVNode("path",{d:"M1.875 10.5V12.0625C1.875 12.6094 1.44531 13 0.9375 13C0.390625 13 0 12.6094 0 12.0625V10.5C0 4.99219 4.45312 0.5 10 0.5C15.5078 0.5 20 4.99219 20 10.5V16.1641C20 18.0391 18.4375 19.6016 16.5625 19.6016L12.2266 19.5625C11.9141 20.1484 11.2891 20.5 10.625 20.5H9.375C8.32031 20.5 7.5 19.6797 7.5 18.625C7.5 17.6094 8.32031 16.75 9.375 16.75H10.625C11.2891 16.75 11.9141 17.1406 12.2266 17.6875L16.5625 17.7266C17.4219 17.7266 18.125 17.0234 18.125 16.1641V10.5C18.125 6.04688 14.4531 2.375 10 2.375C5.50781 2.375 1.875 6.04688 1.875 10.5ZM6.25 9.25C5.54688 9.25 5 9.83594 5 10.5V12.375C5 13.0781 5.54688 13.625 6.25 13.625V9.25ZM3.125 10.5C3.125 8.78125 4.49219 7.375 6.25 7.375H6.875C7.53906 7.375 8.125 7.96094 8.125 8.625V14.25C8.125 14.9531 7.53906 15.5 6.875 15.5H6.25C4.49219 15.5 3.125 14.1328 3.125 12.375V10.5ZM13.75 9.25V13.625C14.4141 13.625 15 13.0781 15 12.375V10.5C15 9.83594 14.4141 9.25 13.75 9.25ZM16.875 10.5V12.375C16.875 14.1328 15.4688 15.5 13.75 15.5H13.125C12.4219 15.5 11.875 14.9531 11.875 14.25V8.625C11.875 7.96094 12.4219 7.375 13.125 7.375H13.75C15.4688 7.375 16.875 8.78125 16.875 10.5Z"},null,-1)];function h0(n,e){return u.openBlock(),u.createElementBlock("svg",d0,f0)}const cu=Le(u0,[["render",h0]]),p0={},m0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},g0=[u.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#4D5875" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function y0(n,e){return u.openBlock(),u.createElementBlock("svg",m0,g0)}const uu=Le(p0,[["render",y0]]),v0={},b0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},E0=[u.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="#ABB0BE" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function C0(n,e){return u.openBlock(),u.createElementBlock("svg",b0,E0)}const Sa=Le(v0,[["render",C0]]),S0={},w0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},k0=[u.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="#ABB0BE" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function T0(n,e){return u.openBlock(),u.createElementBlock("svg",w0,k0)}const wa=Le(S0,[["render",T0]]),x0={},A0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},O0=[u.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#ABB0BE" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function M0(n,e){return u.openBlock(),u.createElementBlock("svg",A0,O0)}const ka=Le(x0,[["render",M0]]),N0={},_0={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I0=[u.createElementVNode("path",{d:"M38.5547 28.6992C39.7422 30.7773 38.2578 33.375 35.8086 33.375H4.11719C1.66797 33.375 0.183594 30.7773 1.29688 28.6992L17.1797 1.68359C17.8477 0.644531 18.8867 0.125 20 0.125C21.0391 0.125 22.0781 0.644531 22.7461 1.68359L38.5547 28.6992ZM4.85938 29.8125H35.0664L19.9258 4.05859L4.85938 29.8125ZM20 22.8359C21.2617 22.8359 22.3008 23.875 22.3008 25.1367C22.3008 26.3984 21.2617 27.4375 20 27.4375C18.6641 27.4375 17.625 26.3984 17.625 25.1367C17.625 23.875 18.6641 22.8359 20 22.8359ZM18.2188 11.4062C18.2188 10.4414 18.9609 9.625 20 9.625C20.9648 9.625 21.7812 10.4414 21.7812 11.4062V18.5312C21.7812 19.5703 20.9648 20.3125 20 20.3125C18.9609 20.3125 18.2188 19.5703 18.2188 18.5312V11.4062Z",fill:"#F65139"},null,-1)];function D0(n,e){return u.openBlock(),u.createElementBlock("svg",_0,I0)}const du=Le(N0,[["render",D0]]),L0={},R0={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},B0=[u.createElementVNode("path",{d:"M1.25 1.5H2V7.5C2 10.2812 4.21875 12.5 7 12.5C9.75 12.5 12 10.2812 12 7.5V1.5H12.75C13.1562 1.5 13.5 1.1875 13.5 0.75C13.5 0.34375 13.1562 0 12.75 0H9.75C9.3125 0 9 0.34375 9 0.75C9 1.1875 9.3125 1.5 9.75 1.5H10.5V7.5C10.5 9.4375 8.90625 11 7 11C5.0625 11 3.5 9.4375 3.5 7.5V1.5H4.25C4.65625 1.5 5 1.1875 5 0.75C5 0.34375 4.65625 0 4.25 0H1.25C0.8125 0 0.5 0.34375 0.5 0.75C0.5 1.1875 0.8125 1.5 1.25 1.5ZM13.25 14.5H0.75C0.3125 14.5 0 14.8438 0 15.25C0 15.6875 0.3125 16 0.75 16H13.25C13.6562 16 14 15.6875 14 15.25C14 14.8438 13.6562 14.5 13.25 14.5Z"},null,-1)];function $0(n,e){return u.openBlock(),u.createElementBlock("svg",R0,B0)}const Ta=Le(L0,[["render",$0]]),P0={},F0={xmlns:"http://www.w3.org/2000/svg",width:"23",height:"17",viewBox:"0 0 18 15",fill:"none"},V0=[u.createElementVNode("path",{d:"M6.375 7.75C4.43359 7.75 2.875 6.19141 2.875 4.25C2.875 2.33594 4.43359 0.75 6.375 0.75C8.28906 0.75 9.875 2.33594 9.875 4.25C9.875 6.19141 8.28906 7.75 6.375 7.75ZM6.375 2.0625C5.14453 2.0625 4.1875 3.04688 4.1875 4.25C4.1875 5.48047 5.14453 6.4375 6.375 6.4375C7.57812 6.4375 8.5625 5.48047 8.5625 4.25C8.5625 3.04688 7.57812 2.0625 6.375 2.0625ZM7.74219 9.0625C10.3672 9.0625 12.5 11.1953 12.5 13.8203C12.5 14.3398 12.0625 14.75 11.543 14.75H1.17969C0.660156 14.75 0.25 14.3398 0.25 13.8203C0.25 11.1953 2.35547 9.0625 4.98047 9.0625H7.74219ZM1.5625 13.4375H11.1602C10.9414 11.7422 9.51953 10.375 7.74219 10.375H4.98047C3.20312 10.375 1.75391 11.7422 1.5625 13.4375ZM13.3477 9.5C15.7812 9.5 17.75 11.4688 17.75 13.875C17.75 14.3672 17.3398 14.75 16.875 14.75H13.1016C13.2656 14.4766 13.375 14.1758 13.375 13.8203C13.375 12.0977 12.582 10.5391 11.3242 9.5H13.3477ZM12.0625 7.75C11.1875 7.75 10.4219 7.42188 9.875 6.84766C10.4219 6.13672 10.75 5.23438 10.75 4.25C10.75 3.53906 10.5312 2.85547 10.2305 2.25391C10.7227 1.87109 11.3516 1.625 12.0625 1.625C13.7305 1.625 15.125 3.01953 15.125 4.6875C15.125 6.38281 13.7305 7.75 12.0625 7.75Z",fill:"#394156"},null,-1)];function z0(n,e){return u.openBlock(),u.createElementBlock("svg",F0,V0)}const fu=Le(P0,[["render",z0]]),H0={},U0=[u.createStaticVNode('<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>',2)];function j0(n,e){return u.openBlock(),u.createElementBlock("svg",u.mergeProps({class:"bd-logo"},n.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),U0,16)}const xa=Le(H0,[["render",j0]]),hu=/^https:/i,Ar=u.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(n){const e=n,t=u.computed(()=>typeof e.to=="string"&&hu.test(e.to)?"a":typeof e.to!="string"&&typeof u.resolveComponent("router-link")!="string"?"router-link":"div"),r=u.computed(()=>{if(typeof e.to=="string"&&hu.test(e.to)){const{to:o,target:s,rel:i}=e;return{href:o,target:s,rel:i}}else{const{to:o}=e;return{to:o}}});return(o,s)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(t.value),u.mergeProps({class:"bd-link"},r.value),{default:u.withCtx(()=>[u.renderSlot(o.$slots,"default",{},()=>[u.createTextVNode(u.toDisplayString(e.text),1)])]),_:3},16))}}),hs={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light",GRAY:"gray"},W0={key:0,class:"b-d-alert-title"},yo=u.defineComponent({__name:"BDAlert",props:{variant:{default:hs.PRIMARY},title:{default:""}},setup(n){const e=n,t=u.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(t.value),role:"alert"},[r.title?(u.openBlock(),u.createElementBlock("div",W0,[u.createVNode(u.unref(qn)),u.createElementVNode("span",null,[u.createElementVNode("strong",null,u.toDisplayString(e.title),1)])])):u.createCommentVNode("",!0),u.renderSlot(r.$slots,"default")],2))}}),K0=["src","alt"],Y0=["textContent"],vo=u.defineComponent({__name:"BDProfileImage",props:{src:{default:""},username:{default:null},showFooter:{type:Boolean,default:!1},size:{default:lt.LG},linkText:{default:""}},emits:["click"],setup(n,{emit:e}){const t=n,r=u.computed(()=>`${t.username?`${t.username}'s `:""}profielfoto`),o=()=>{e("click")};return(s,i)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["bd-profile-picture rounded-circle",t.size])},[u.createElementVNode("img",{src:t.src,alt:r.value,class:"position-absolute top-0 start-0"},null,8,K0),t.showFooter?(u.openBlock(),u.createElementBlock("a",{key:0,class:"bd-profile-picture__footer position-absolute bottom-0 start-0",onClick:o,textContent:u.toDisplayString(t.linkText)},null,8,Y0)):u.createCommentVNode("",!0)],2))}});function G0(n){return u.getCurrentScope()?(u.onScopeDispose(n),!0):!1}function ps(n){return typeof n=="function"?n():u.unref(n)}const J0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Z0=n=>typeof n<"u",X0=Object.prototype.toString,Q0=n=>X0.call(n)==="[object Object]",Aa=()=>{};function q0(n,e){function t(...r){return new Promise((o,s)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(s)})}return t}function e2(n,e={}){let t,r,o=Aa;const s=l=>{clearTimeout(l),o(),o=Aa};return l=>{const a=ps(n),c=ps(e.maxWait);return t&&s(t),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(l())):new Promise((d,f)=>{o=e.rejectOnCancel?f:d,c&&!r&&(r=setTimeout(()=>{t&&s(t),r=null,d(l())},c)),t=setTimeout(()=>{r&&s(r),r=null,d(l())},a)})}}function t2(n,e=200,t={}){return q0(e2(e,t),n)}function pu(n){var e;const t=ps(n);return(e=t==null?void 0:t.$el)!=null?e:t}const n2=J0?window:void 0;function mu(...n){let e,t,r,o;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,o]=n,e=n2):[e,t,r,o]=n,!e)return Aa;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(d=>d()),s.length=0},l=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),a=u.watch(()=>[pu(e),ps(o)],([d,f])=>{if(i(),!d)return;const h=Q0(f)?{...f}:f;s.push(...t.flatMap(p=>r.map(m=>l(d,p,m,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return G0(c),c}function r2(n){return JSON.parse(JSON.stringify(n))}function o2(n,e={}){const{initialValue:t=!1,focusVisible:r=!1}=e,o=u.ref(!1),s=u.computed(()=>pu(n));mu(s,"focus",l=>{var a,c;(!r||(c=(a=l.target).matches)!=null&&c.call(a,":focus-visible"))&&(o.value=!0)}),mu(s,"blur",()=>o.value=!1);const i=u.computed({get:()=>o.value,set(l){var a,c;!l&&o.value?(a=s.value)==null||a.blur():l&&!o.value&&((c=s.value)==null||c.focus())}});return u.watch(s,()=>{i.value=t},{immediate:!0,flush:"post"}),{focused:i}}function er(n,e,t,r={}){var o,s,i;const{clone:l=!1,passive:a=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=r,p=u.getCurrentInstance(),m=t||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((i=(s=p==null?void 0:p.proxy)==null?void 0:s.$emit)==null?void 0:i.bind(p==null?void 0:p.proxy));let g=c;e||(e="modelValue"),g=g||`update:${e.toString()}`;const y=k=>l?typeof l=="function"?l(k):r2(k):k,C=()=>Z0(n[e])?y(n[e]):f,S=k=>{h?h(k)&&m(g,k):m(g,k)};if(a){const k=C(),v=u.ref(k);let A=!1;return u.watch(()=>n[e],T=>{A||(A=!0,v.value=y(T),u.nextTick(()=>A=!1))}),u.watch(v,T=>{!A&&(T!==n[e]||d)&&S(T)},{deep:d}),v}else return u.computed({get(){return C()},set(k){S(k)}})}const s2={class:"bd-zoom-slider d-flex"},i2=[u.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[u.createElementVNode("path",{d:"M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],a2=["max"],l2=[u.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[u.createElementVNode("path",{d:"M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],Oa=u.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=er(t,"modelValue",e);function o(){r.value!==0&&r.value--}function s(){r.value<t.maxValue&&r.value++}return(i,l)=>(u.openBlock(),u.createElementBlock("div",s2,[(u.openBlock(),u.createElementBlock("svg",{class:"bd-zoom-slider-min-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:o},i2)),u.withDirectives(u.createElementVNode("input",{type:"range","onUpdate:modelValue":l[0]||(l[0]=a=>u.isRef(r)?r.value=a:null),min:"0",max:i.maxValue,class:"bd-zoom-slider-input"},null,8,a2),[[u.vModelText,u.unref(r)]]),(u.openBlock(),u.createElementBlock("svg",{class:"bd-zoom-slider-plus-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:s},l2))]))}});for(var tr=256,gu=[],yu=256,ms;tr--;)gu[tr]=(tr+256).toString(16).substring(1);function vu(n){var e=0,t=n||11;if(!ms||tr+t>yu*2)for(ms="",tr=0;e<yu;e++)ms+=gu[Math.random()*256|0];return ms.substring(tr,tr+++t)}function Or(){return{uniqueIdentifier:u.ref(vu())}}const c2=["id"],u2={key:0},gs=u.defineComponent({__name:"BDCard",props:{class:{default:""},title:{default:""},noHeader:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},headerClass:{default:""},bodyClass:{default:""},id:{default:0},headerVariant:{default:"primary"}},setup(n){const e=n,{uniqueIdentifier:t}=Or(),r=t.value,o=u.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),s=u.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),i=u.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(l,a)=>(u.openBlock(),u.createElementBlock("div",{id:u.unref(r),class:u.normalizeClass(o.value)},[!l.noHeader||l.noBody?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(s.value)},[u.renderSlot(l.$slots,"header",{},()=>[l.title?(u.openBlock(),u.createElementBlock("h2",u2,u.toDisplayString(l.title),1)):u.createCommentVNode("",!0)])],2)):u.createCommentVNode("",!0),l.noBody?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(i.value)},[u.renderSlot(l.$slots,"body")],2))],10,c2))}}),d2={key:0},f2={class:"bd-collapsable-card__actions"},h2=["data-bs-target"],bu=u.defineComponent({__name:"BDCollapsableCard",props:{title:{default:"Title"},disabled:{type:Boolean,default:!1},showOn:{default:"md"},visible:{type:Boolean,default:!0}},setup(n){const e=n,{uniqueIdentifier:t}=Or(),r=t.value,o=u.computed(()=>`bd-collapsable-card__collapse-${r}`),s=u.computed(()=>({"d-block":[lt.SM,lt.MD].includes(e.showOn.toLowerCase()),"d-md-none":e.showOn.toLowerCase()==lt.SM,"d-lg-none":e.showOn.toLowerCase()==lt.MD})),i=u.computed(()=>{let a={"round-corners-sm":e.showOn.toLowerCase()==lt.SM,"round-corners-md":e.showOn.toLowerCase()==lt.MD,"is-disabled":e.disabled,"round-corners":!e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")}),l=u.computed(()=>{let a={collapse:!0,show:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!e.visible||e.disabled,"open-collapse-lg":e.visible&&[lt.SM,lt.MD].includes(e.showOn.toLowerCase()),"open-collapse-md":e.showOn.toLowerCase()==lt.SM&&e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")});return(a,c)=>(u.openBlock(),u.createBlock(gs,{class:"bd-collapsable-card",title:a.title,"header-class":i.value,"body-class":l.value},{header:u.withCtx(()=>[a.title?(u.openBlock(),u.createElementBlock("h2",d2,u.toDisplayString(a.title),1)):u.createCommentVNode("",!0),u.createElementVNode("div",f2,[u.renderSlot(a.$slots,"action"),!a.disabled&&a.visible?(u.openBlock(),u.createElementBlock("button",{key:0,class:u.normalizeClass(["btn btn-white btn-caret",s.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":"true"},[u.createVNode(u.unref(ga))],10,h2)):u.createCommentVNode("",!0)])]),body:u.withCtx(()=>[u.renderSlot(a.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var p2=Object.defineProperty,m2=(n,e,t)=>e in n?p2(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,bo=(n,e,t)=>(m2(n,typeof e!="symbol"?e+"":e,t),t);const Eu={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class Cu{constructor(e={}){bo(this,"opts",{}),bo(this,"memo",new Map);const t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...Eu,...t.tokens};for(const r of Object.values(t.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else t.tokens=Eu;Array.isArray(t.mask)&&(t.mask.length>1?t.mask=[...t.mask].sort((r,o)=>r.length-o.length):t.mask=t.mask[0]??""),t.mask===""&&(t.mask=null),this.opts=t}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const t=this.findMask(e);if(this.opts.mask==null||t==null)return!1;const r=this.process(e,t).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:typeof this.opts.mask=="function"?r>=t.length:this.opts.mask.filter(o=>r>=o.length).length===this.opts.mask.length}findMask(e){const t=this.opts.mask;if(t==null)return null;if(typeof t=="string")return t;if(typeof t=="function")return t(e);const r=this.process(e,t.slice(-1).pop()??"",!1);return t.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const t=[],r=[];return e.split("").forEach((o,s)=>{o==="!"&&e[s-1]!=="!"?r.push(s-r.length):t.push(o)}),{mask:t.join(""),escaped:r}}process(e,t,r=!0){if(t==null)return e;const o=`value=${e},mask=${t},masked=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:s,escaped:i}=this.escapeMask(t),l=[],a=this.opts.tokens!=null?this.opts.tokens:{},c=this.isReversed()?-1:1,d=this.isReversed()?"unshift":"push",f=this.isReversed()?0:s.length-1,h=this.isReversed()?()=>y>-1&&C>-1:()=>y<s.length&&C<e.length,p=k=>!this.isReversed()&&k<=f||this.isReversed()&&k>=f;let m,g=-1,y=this.isReversed()?s.length-1:0,C=this.isReversed()?e.length-1:0,S=!1;for(;h();){const k=s.charAt(y),v=a[k],A=(v==null?void 0:v.transform)!=null?v.transform(e.charAt(C)):e.charAt(C);if(!i.includes(y)&&v!=null?(A.match(v.pattern)!=null?(l[d](A),v.repeated?(g===-1?g=y:y===f&&y!==g&&(y=g-c),f===g&&(y-=c)):v.multiple&&(S=!0,y-=c),y+=c):v.multiple?S&&(y+=c,C-=c,S=!1):A===m?m=void 0:v.optional&&(y+=c,C-=c),C+=c):(r&&!this.isEager()&&l[d](k),A===k&&!this.isEager()?C+=c:m=k,this.isEager()||(y+=c)),this.isEager())for(;p(y)&&(a[s.charAt(y)]==null||i.includes(y));)r?l[d](s.charAt(y)):s.charAt(y)===e.charAt(C)&&(C+=c),y+=c}return this.memo.set(o,l.join("")),this.memo.get(o)}}const Su=n=>JSON.parse(n.replaceAll("'",'"')),wu=(n,e={})=>{const t={...e};return n.dataset.maska!=null&&n.dataset.maska!==""&&(t.mask=g2(n.dataset.maska)),n.dataset.maskaEager!=null&&(t.eager=Ma(n.dataset.maskaEager)),n.dataset.maskaReversed!=null&&(t.reversed=Ma(n.dataset.maskaReversed)),n.dataset.maskaTokensReplace!=null&&(t.tokensReplace=Ma(n.dataset.maskaTokensReplace)),n.dataset.maskaTokens!=null&&(t.tokens=y2(n.dataset.maskaTokens)),t},Ma=n=>n!==""?!!JSON.parse(n):!0,g2=n=>n.startsWith("[")&&n.endsWith("]")?Su(n):n,y2=n=>{if(n.startsWith("{")&&n.endsWith("}"))return Su(n);const e={};return n.split("|").forEach(t=>{const r=t.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};class v2{constructor(e,t={}){bo(this,"items",new Map),bo(this,"beforeinputEvent",r=>{const o=r.target,s=this.items.get(o);s.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&s.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),bo(this,"inputEvent",r=>{if(r instanceof CustomEvent&&r.type==="input"&&r.detail!=null&&typeof r.detail=="object"&&"masked"in r.detail)return;const o=r.target,s=this.items.get(o),i=o.value,l=o.selectionStart,a=o.selectionEnd;let c=i;if(s.isEager()){const d=s.masked(i),f=s.unmasked(i);f===""&&"data"in r&&r.data!=null?c=r.data:f!==s.unmasked(d)&&(c=f)}if(this.setMaskedValue(o,c),"inputType"in r&&(r.inputType.startsWith("delete")||l!=null&&l<i.length))try{o.setSelectionRange(l,a)}catch{}}),this.options=t,typeof e=="string"?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(t)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(t))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,t){const r=this.items.get(e),o=new Cu(wu(e,this.getMaskOpts(t)));return JSON.stringify(r.opts)!==JSON.stringify(o.opts)}needUpdateValue(e){const t=e.dataset.maskaValue;return t==null&&e.value!==""||t!=null&&t!==e.value}getMaskOpts(e){const{onMaska:t,preProcess:r,postProcess:o,...s}=e;return s}init(e,t){for(const r of e){const o=new Cu(wu(r,t));this.items.set(r,o),r.value!==""&&this.setMaskedValue(r,r.value),r.addEventListener("input",this.inputEvent),r.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,t){const r=this.items.get(e);this.options.preProcess!=null&&(t=this.options.preProcess(t));const o=r.masked(t),s=r.unmasked(r.isEager()?o:t),i=r.completed(t),l={masked:o,unmasked:s,completed:i};t=o,this.options.postProcess!=null&&(t=this.options.postProcess(t)),e.value=t,e.dataset.maskaValue=t,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(a=>a(l)):this.options.onMaska(l)),e.dispatchEvent(new CustomEvent("maska",{detail:l})),e.dispatchEvent(new CustomEvent("input",{detail:l}))}}const Na=new WeakMap,b2=n=>{setTimeout(()=>{var e;((e=Na.get(n))==null?void 0:e.needUpdateValue(n))===!0&&n.dispatchEvent(new CustomEvent("input"))})},E2=(n,e)=>{const t=n instanceof HTMLInputElement?n:n.querySelector("input"),r={...e.arg};if(t==null||(t==null?void 0:t.type)==="file")return;b2(t);const o=Na.get(t);if(o!=null){if(!o.needUpdateOptions(t,r))return;o.destroy()}if(e.value!=null){const s=e.value,i=l=>{s.masked=l.masked,s.unmasked=l.unmasked,s.completed=l.completed};r.onMaska=r.onMaska==null?i:Array.isArray(r.onMaska)?[...r.onMaska,i]:[r.onMaska,i]}Na.set(t,new v2(t,r))},C2=["value","type"],nr=u.defineComponent({__name:"BDFormInput",props:{modelValue:{default:""},formGroupClass:{default:void 0},type:{default:"text"},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:lt.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Or(),o=er(t,"modelValue",e),s=`__BD__FORM__LABEL__${r.value}`,i=`__BD__FORM__GROUP__${r.value}`,l=`form-input-${t.label?t.label.replace(/ /g,"-").toLowerCase():r.value}`,a=`validationFeedback${t.label?t.label.replace(/ /g,""):r.value}`,c=u.computed(()=>({[`${t.inputClass}`]:t.inputClass,"is-invalid":t.state===!1,"is-valid":t.state===!0,[`form-control-${t.size}`]:t.size})),d=u.computed(()=>({[`${t.invalidFeedbackClass}`]:t.invalidFeedbackClass,"is-invalid":t.state===!1})),f=u.computed(()=>({placeholder:t.placeholder?t.placeholder:null,readonly:t.readonly===!0,disabled:t.disabled===!0,autofocus:t.autofocus===!0,tabindex:t.tabindex?t.tabindex:null,"aria-describedby":t.state===!1&&t.invalidFeedbackText?a:null,"data-maska":t.mask})),h=t2(p=>{o.value=p.target.value},t.delayTimeMs);return(p,m)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["bd-form-input",p.formGroupClass]),id:i},[u.renderSlot(p.$slots,"label",{},()=>[p.label?(u.openBlock(),u.createElementBlock("label",{key:0,for:l,id:s,class:u.normalizeClass(["form-label",p.labelClass])},u.toDisplayString(p.label),3)):u.createCommentVNode("",!0)]),u.createElementVNode("div",{class:u.normalizeClass(p.formFieldClass)},[u.withDirectives(u.createElementVNode("input",u.mergeProps({value:p.modelValue,type:p.type,id:l,class:["form-control",c.value]},f.value,{onInput:m[0]||(m[0]=(...g)=>u.unref(h)&&u.unref(h)(...g)),onClick:m[1]||(m[1]=g=>p.$emit("click")),onBlur:m[2]||(m[2]=g=>p.$emit("blur")),onKeydown:m[3]||(m[3]=u.withKeys(g=>p.$emit("enter"),["enter"]))}),null,16,C2),[[u.unref(E2)]]),u.renderSlot(p.$slots,"default")],2),u.createVNode(u.unref(ys),{text:p.invalidFeedbackText,class:u.normalizeClass(d.value),state:p.state,id:a},null,8,["text","class","state"])],2))}}),S2={class:"input-group bd-input-group"},w2=["for"],ku=u.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(n){const e=n,t=u.useAttrs();return(r,o)=>(u.openBlock(),u.createElementBlock("fieldset",S2,[e.label?(u.openBlock(),u.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},u.toDisplayString(e.label),9,w2)):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(u.unref(t).class)},[u.renderSlot(r.$slots,"default")],2)]))}}),k2={class:"invalid-feedback bd-invalid-feedback"},ys=u.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(n){const e=n;return(t,r)=>(u.openBlock(),u.createElementBlock("div",k2,[e.state?(u.openBlock(),u.createBlock(u.unref(xr),{key:0})):(u.openBlock(),u.createBlock(u.unref(us),{key:1})),u.createTextVNode(" "+u.toDisplayString(e.text),1)]))}}),T2={key:0},x2={key:1},Tu=u.defineComponent({__name:"BDBadge",props:{variant:{default:hs.PRIMARY}},setup(n){const e=n,t=u.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(u.openBlock(),u.createElementBlock("span",{role:"status",class:u.normalizeClass(t.value)},[r.variant==="danger"?(u.openBlock(),u.createElementBlock("span",T2,[u.createVNode(u.unref(qn))])):u.createCommentVNode("",!0),r.variant==="success"?(u.openBlock(),u.createElementBlock("span",x2,[u.createVNode(u.unref(xr))])):u.createCommentVNode("",!0),u.renderSlot(r.$slots,"default")],2))}}),A2=["onSubmit","onReset"],xu=u.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(n,{emit:e}){function t(){e("submit")}function r(){e("reset")}return(o,s)=>(u.openBlock(),u.createElementBlock("form",{onSubmit:u.withModifiers(t,["prevent"]),onReset:u.withModifiers(r,["prevent"])},[u.renderSlot(o.$slots,"default")],40,A2))}}),O2={"aria-label":"Page navigation",class:"bd-pagination"},M2={class:"page-item"},N2=["data-page"],_2=["data-page"],I2={class:"page-item"},D2=["data-page"],Au=u.defineComponent({__name:"BDPagination",props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:["click","update:modelValue"],setup(n,{emit:e}){const t=n,r=er(t,"modelValue",e),o=u.ref(Math.ceil(t.totalRows/t.rowsPerPage)),s=u.ref([]);u.watch([()=>t.totalRows,()=>t.rowsPerPage],()=>{o.value=Math.ceil(t.totalRows/t.rowsPerPage),s.value=d(r.value)}),u.onMounted(()=>{s.value=d(r.value)});const i=u.computed(()=>({[`${t.class}`]:t.class,colleague:!t.isPatient})),l=f=>{const h=f.currentTarget.getAttribute("data-page"),p=Number(h);isNaN(Number(p))||(r.value=p,s.value=d(p)),e("click",p)},a=(f,h,p)=>p<=h?p:f==1?6:f<=4?5:1,c=(f,h,p)=>p<=h?0:f==p?6:f>p-4?5:1,d=f=>{const h=[],m=a(f,7,o.value),g=o.value>7&&f>4,y=o.value>7&&f<o.value-3,C=g&&y,S=c(f,7,o.value);for(let k=1;k<=m;k++)h.push(k);if(g&&h.push("..."),C)for(let k=f-1;k<=f+1;k++)h.push(k);y&&h.push("...");for(let k=1;k<=S;k++)h.push(o.value-S+k);return h};return(f,h)=>(u.openBlock(),u.createElementBlock("div",O2,[u.createElementVNode("ul",{class:u.normalizeClass(["pagination",i.value])},[u.withDirectives(u.createElementVNode("li",M2,[u.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:l,"data-page":u.unref(r)-1},[u.createVNode(u.unref(ya))],8,N2)],512),[[u.vShow,u.unref(r)>1]]),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,p=>(u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(["page-item",{active:u.unref(r)===p,disabled:typeof p=="string"}]),key:p},[u.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:l,"data-page":p},u.toDisplayString(p),9,_2)],2))),128)),u.withDirectives(u.createElementVNode("li",I2,[u.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:l,"data-page":u.unref(r)+1},[u.createVNode(u.unref(va))],8,D2)],512),[[u.vShow,u.unref(r)<o.value]])],2)]))}}),L2=["disabled"],R2=["label"],B2=["value"],$2=["value"],Ou=u.defineComponent({__name:"BDFormSelect",props:{size:{default:lt.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:""},state:{type:[Boolean,null],default:null}},emits:["update:modelValue","change","input"],setup(n,{emit:e}){const t=n,r=er(t,"modelValue",e),o=u.ref(null),{focused:s}=o2(o,{initialValue:t.autofocus}),i=u.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":t.state===!1,[`form-select-${t.size}`]:["xs","sm","lg"].includes(t.size)}));u.watch(()=>t.autofocus,d=>{d&&(s.value=!0)});const l=d=>{r.value=d.target.value;let f=c(d.target.value);e("input",f)},a=d=>{let f=c(d.target.value);e("change",f)},c=d=>{try{return JSON.parse(d)}catch{return d}};return(d,f)=>u.withDirectives((u.openBlock(),u.createElementBlock("select",{class:u.normalizeClass(i.value),"onUpdate:modelValue":f[0]||(f[0]=h=>u.isRef(r)?r.value=h:null),disabled:t.disabled,ref_key:"input",ref:o,onInput:l,onChange:a},[u.renderSlot(d.$slots,"first"),t.options&&t.options.length>0&&t.options[0].label&&t.options[0].options?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(t.options,h=>(u.openBlock(),u.createElementBlock("optgroup",{label:h.label},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(h.options,p=>(u.openBlock(),u.createElementBlock("option",{value:JSON.stringify(p.value),key:p.value},u.toDisplayString(p.text),9,B2))),128))],8,R2))),256)):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(t.options,h=>(u.openBlock(),u.createElementBlock("option",{value:h.value,key:h.value},u.toDisplayString(h.text),9,$2))),128))],42,L2)),[[u.vModelSelect,u.unref(r)]])}}),P2=["value","true-value","false-value","data-checked"],Mu=u.defineComponent({__name:"BDFormCheckbox",props:{modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Or(),o=er(t,"modelValue",e),s=`form-check-input-${r.value}`,i=u.computed(()=>["form-check","bd-form-checkbox"]),l=u.computed(()=>({"form-check-input":!0,"is-invalid":t.state===!1})),a=c=>e("change",c.target.value);return(c,d)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(i.value)},[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>u.isRef(o)?o.value=f:null),id:s,class:u.normalizeClass(l.value),type:"checkbox",value:c.value,"true-value":c.value,"false-value":c.uncheckedValue,"data-checked":u.unref(o)===c.value,onChange:a},null,42,P2),[[u.vModelCheckbox,u.unref(o)]]),u.createElementVNode("label",{class:"form-check-label",for:s},[u.renderSlot(c.$slots,"default")]),u.renderSlot(c.$slots,"last")],2))}}),F2={key:0,class:"bd-article__body"},V2={key:1},Nu=u.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=o=>e("click",{event:o,identifier:t.identifier});return(o,s)=>(u.openBlock(),u.createElementBlock("article",{class:"bd-article",onClick:r},[u.createElementVNode("header",null,[u.renderSlot(o.$slots,"header",{},()=>[u.createElementVNode("h5",null,u.toDisplayString(t.title),1)])]),t.hideBody?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",F2,[u.renderSlot(o.$slots,"default",{},()=>[u.createTextVNode(u.toDisplayString(t.text),1)])])),t.hideFooter?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("footer",V2,[u.renderSlot(o.$slots,"footer")]))]))}}),Mr={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},z2=["id"],H2={class:"toast-header"},U2=u.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),j2={class:"toast-body"},_a=u.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Mr.INFO},title:{default:""},text:{default:""}},setup(n){const e=n,t=u.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=u.computed(()=>e.variant!==Mr.SUCCESS);return(o,s)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["toast bd-toast",t.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[u.createElementVNode("div",H2,[r.value?(u.openBlock(),u.createBlock(u.unref(qn),{key:0})):(u.openBlock(),u.createBlock(u.unref(xr),{key:1})),u.createElementVNode("h5",null,u.toDisplayString(e.title),1),U2]),u.createElementVNode("div",j2,[u.createElementVNode("span",null,u.toDisplayString(e.text),1)])],10,z2))}}),$e="",vs=n=>typeof n=="string"||n instanceof String,W2={class:"bd-pill"},K2=["src"],Y2={class:"bd-pill__description"},G2=["href"],J2=["id","textContent","title"],Z2=["id","textContent","title"],bs=u.defineComponent({__name:"BDPill",props:{imgSrc:{default:$e},uri:{default:$e},uriDisplayName:{default:$e},title:{default:$e},subtitle:{default:$e},showClose:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Or(),o=u.computed(()=>t.uri),s=u.computed(()=>t.uriDisplayName!==$e?t.uriDisplayName:t.uri),i=u.computed(()=>t.imgSrc),l=u.computed(()=>t.title),a=u.computed(()=>t.subtitle),c=u.computed(()=>`bd-pill-title-${r.value}`),d=u.computed(()=>`bd-pill-subtitle-${r.value}`);return(f,h)=>(u.openBlock(),u.createElementBlock("div",W2,[u.createElementVNode("img",{src:i.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,K2),u.createElementVNode("div",Y2,[u.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[u.createVNode(u.unref(ds),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),u.createTextVNode(" "+u.toDisplayString(s.value),1)],8,G2),u.createElementVNode("span",{class:"bd-pill__title",id:c.value,textContent:u.toDisplayString(l.value),"data-bs-toggle":"tooltip",title:l.value},null,8,J2),u.createElementVNode("span",{class:"bd-pill__subtitle",id:d.value,textContent:u.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,Z2)])]))}}),Es=u.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(n,{emit:e}){const t=n,r=()=>{e("click")};return(o,s)=>(u.openBlock(),u.createElementBlock("li",u.mergeProps({class:"bd-dropdown-item"},o.$attrs),[u.createVNode(Ar,u.mergeProps({class:"dropdown-item",onClick:r},t),{default:u.withCtx(()=>[u.renderSlot(o.$slots,"default",{},()=>[u.createTextVNode(u.toDisplayString(t.text),1)])]),_:3},16)],16))}});var Ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Da(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _u={exports:{}};(function(n,e){(function(r,o){n.exports=o()})(self,function(){return function(){var t={3099:function(i){i.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},6077:function(i,l,a){var c=a(111);i.exports=function(d){if(!c(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},1223:function(i,l,a){var c=a(5112),d=a(30),f=a(3070),h=c("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:d(null)}),i.exports=function(m){p[h][m]=!0}},1530:function(i,l,a){var c=a(8710).charAt;i.exports=function(d,f,h){return f+(h?c(d,f).length:1)}},5787:function(i){i.exports=function(l,a,c){if(!(l instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return l}},9670:function(i,l,a){var c=a(111);i.exports=function(d){if(!c(d))throw TypeError(String(d)+" is not an object");return d}},4019:function(i){i.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(i,l,a){var c=a(4019),d=a(9781),f=a(7854),h=a(111),p=a(6656),m=a(648),g=a(8880),y=a(1320),C=a(3070).f,S=a(9518),k=a(7674),v=a(5112),A=a(9711),T=f.Int8Array,V=T&&T.prototype,H=f.Uint8ClampedArray,U=H&&H.prototype,B=T&&S(T),L=V&&S(V),z=Object.prototype,W=z.isPrototypeOf,j=v("toStringTag"),F=A("TYPED_ARRAY_TAG"),P=c&&!!k&&m(f.opera)!=="Opera",G=!1,D,Q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},ce=function(x){if(!h(x))return!1;var M=m(x);return M==="DataView"||p(Q,M)||p(te,M)},me=function(ve){if(!h(ve))return!1;var x=m(ve);return p(Q,x)||p(te,x)},ge=function(ve){if(me(ve))return ve;throw TypeError("Target is not a typed array")},Ce=function(ve){if(k){if(W.call(B,ve))return ve}else for(var x in Q)if(p(Q,D)){var M=f[x];if(M&&(ve===M||W.call(M,ve)))return ve}throw TypeError("Target is not a typed array constructor")},we=function(ve,x,M){if(d){if(M)for(var w in Q){var O=f[w];O&&p(O.prototype,ve)&&delete O.prototype[ve]}(!L[ve]||M)&&y(L,ve,M?x:P&&V[ve]||x)}},Te=function(ve,x,M){var w,O;if(d){if(k){if(M)for(w in Q)O=f[w],O&&p(O,ve)&&delete O[ve];if(!B[ve]||M)try{return y(B,ve,M?x:P&&T[ve]||x)}catch{}else return}for(w in Q)O=f[w],O&&(!O[ve]||M)&&y(O,ve,x)}};for(D in Q)f[D]||(P=!1);if((!P||typeof B!="function"||B===Function.prototype)&&(B=function(){throw TypeError("Incorrect invocation")},P))for(D in Q)f[D]&&k(f[D],B);if((!P||!L||L===z)&&(L=B.prototype,P))for(D in Q)f[D]&&k(f[D].prototype,L);if(P&&S(U)!==L&&k(U,L),d&&!p(L,j)){G=!0,C(L,j,{get:function(){return h(this)?this[F]:void 0}});for(D in Q)f[D]&&g(f[D],F,D)}i.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:G&&F,aTypedArray:ge,aTypedArrayConstructor:Ce,exportTypedArrayMethod:we,exportTypedArrayStaticMethod:Te,isView:ce,isTypedArray:me,TypedArray:B,TypedArrayPrototype:L}},3331:function(i,l,a){var c=a(7854),d=a(9781),f=a(4019),h=a(8880),p=a(2248),m=a(7293),g=a(5787),y=a(9958),C=a(7466),S=a(7067),k=a(1179),v=a(9518),A=a(7674),T=a(8006).f,V=a(3070).f,H=a(1285),U=a(8003),B=a(9909),L=B.get,z=B.set,W="ArrayBuffer",j="DataView",F="prototype",P="Wrong length",G="Wrong index",D=c[W],Q=D,te=c[j],ce=te&&te[F],me=Object.prototype,ge=c.RangeError,Ce=k.pack,we=k.unpack,Te=function(Z){return[Z&255]},ve=function(Z){return[Z&255,Z>>8&255]},x=function(Z){return[Z&255,Z>>8&255,Z>>16&255,Z>>24&255]},M=function(Z){return Z[3]<<24|Z[2]<<16|Z[1]<<8|Z[0]},w=function(Z){return Ce(Z,23,4)},O=function(Z){return Ce(Z,52,8)},b=function(Z,X){V(Z[F],X,{get:function(){return L(this)[X]}})},E=function(Z,X,ne,he){var Se=S(ne),_e=L(Z);if(Se+X>_e.byteLength)throw ge(G);var ze=L(_e.buffer).bytes,Ve=Se+_e.byteOffset,De=ze.slice(Ve,Ve+X);return he?De:De.reverse()},_=function(Z,X,ne,he,Se,_e){var ze=S(ne),Ve=L(Z);if(ze+X>Ve.byteLength)throw ge(G);for(var De=L(Ve.buffer).bytes,Ze=ze+Ve.byteOffset,St=he(+Se),at=0;at<X;at++)De[Ze+at]=St[_e?at:X-at-1]};if(!f)Q=function(X){g(this,Q,W);var ne=S(X);z(this,{bytes:H.call(new Array(ne),0),byteLength:ne}),d||(this.byteLength=ne)},te=function(X,ne,he){g(this,te,j),g(X,Q,j);var Se=L(X).byteLength,_e=y(ne);if(_e<0||_e>Se)throw ge("Wrong offset");if(he=he===void 0?Se-_e:C(he),_e+he>Se)throw ge(P);z(this,{buffer:X,byteLength:he,byteOffset:_e}),d||(this.buffer=X,this.byteLength=he,this.byteOffset=_e)},d&&(b(Q,"byteLength"),b(te,"buffer"),b(te,"byteLength"),b(te,"byteOffset")),p(te[F],{getInt8:function(X){return E(this,1,X)[0]<<24>>24},getUint8:function(X){return E(this,1,X)[0]},getInt16:function(X){var ne=E(this,2,X,arguments.length>1?arguments[1]:void 0);return(ne[1]<<8|ne[0])<<16>>16},getUint16:function(X){var ne=E(this,2,X,arguments.length>1?arguments[1]:void 0);return ne[1]<<8|ne[0]},getInt32:function(X){return M(E(this,4,X,arguments.length>1?arguments[1]:void 0))},getUint32:function(X){return M(E(this,4,X,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(X){return we(E(this,4,X,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(X){return we(E(this,8,X,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(X,ne){_(this,1,X,Te,ne)},setUint8:function(X,ne){_(this,1,X,Te,ne)},setInt16:function(X,ne){_(this,2,X,ve,ne,arguments.length>2?arguments[2]:void 0)},setUint16:function(X,ne){_(this,2,X,ve,ne,arguments.length>2?arguments[2]:void 0)},setInt32:function(X,ne){_(this,4,X,x,ne,arguments.length>2?arguments[2]:void 0)},setUint32:function(X,ne){_(this,4,X,x,ne,arguments.length>2?arguments[2]:void 0)},setFloat32:function(X,ne){_(this,4,X,w,ne,arguments.length>2?arguments[2]:void 0)},setFloat64:function(X,ne){_(this,8,X,O,ne,arguments.length>2?arguments[2]:void 0)}});else{if(!m(function(){D(1)})||!m(function(){new D(-1)})||m(function(){return new D,new D(1.5),new D(NaN),D.name!=W})){Q=function(X){return g(this,Q),new D(S(X))};for(var I=Q[F]=D[F],R=T(D),$=0,K;R.length>$;)(K=R[$++])in Q||h(Q,K,D[K]);I.constructor=Q}A&&v(ce)!==me&&A(ce,me);var J=new te(new Q(2)),Y=ce.setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),(J.getInt8(0)||!J.getInt8(1))&&p(ce,{setInt8:function(X,ne){Y.call(this,X,ne<<24>>24)},setUint8:function(X,ne){Y.call(this,X,ne<<24>>24)}},{unsafe:!0})}U(Q,W),U(te,j),i.exports={ArrayBuffer:Q,DataView:te}},1048:function(i,l,a){var c=a(7908),d=a(1400),f=a(7466),h=Math.min;i.exports=[].copyWithin||function(m,g){var y=c(this),C=f(y.length),S=d(m,C),k=d(g,C),v=arguments.length>2?arguments[2]:void 0,A=h((v===void 0?C:d(v,C))-k,C-S),T=1;for(k<S&&S<k+A&&(T=-1,k+=A-1,S+=A-1);A-- >0;)k in y?y[S]=y[k]:delete y[S],S+=T,k+=T;return y}},1285:function(i,l,a){var c=a(7908),d=a(1400),f=a(7466);i.exports=function(p){for(var m=c(this),g=f(m.length),y=arguments.length,C=d(y>1?arguments[1]:void 0,g),S=y>2?arguments[2]:void 0,k=S===void 0?g:d(S,g);k>C;)m[C++]=p;return m}},8533:function(i,l,a){var c=a(2092).forEach,d=a(9341),f=d("forEach");i.exports=f?[].forEach:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}},8457:function(i,l,a){var c=a(9974),d=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),g=a(1246);i.exports=function(C){var S=d(C),k=typeof this=="function"?this:Array,v=arguments.length,A=v>1?arguments[1]:void 0,T=A!==void 0,V=g(S),H=0,U,B,L,z,W,j;if(T&&(A=c(A,v>2?arguments[2]:void 0,2)),V!=null&&!(k==Array&&h(V)))for(z=V.call(S),W=z.next,B=new k;!(L=W.call(z)).done;H++)j=T?f(z,A,[L.value,H],!0):L.value,m(B,H,j);else for(U=p(S.length),B=new k(U);U>H;H++)j=T?A(S[H],H):S[H],m(B,H,j);return B.length=H,B}},1318:function(i,l,a){var c=a(5656),d=a(7466),f=a(1400),h=function(p){return function(m,g,y){var C=c(m),S=d(C.length),k=f(y,S),v;if(p&&g!=g){for(;S>k;)if(v=C[k++],v!=v)return!0}else for(;S>k;k++)if((p||k in C)&&C[k]===g)return p||k||0;return!p&&-1}};i.exports={includes:h(!0),indexOf:h(!1)}},2092:function(i,l,a){var c=a(9974),d=a(8361),f=a(7908),h=a(7466),p=a(5417),m=[].push,g=function(y){var C=y==1,S=y==2,k=y==3,v=y==4,A=y==6,T=y==7,V=y==5||A;return function(H,U,B,L){for(var z=f(H),W=d(z),j=c(U,B,3),F=h(W.length),P=0,G=L||p,D=C?G(H,F):S||T?G(H,0):void 0,Q,te;F>P;P++)if((V||P in W)&&(Q=W[P],te=j(Q,P,z),y))if(C)D[P]=te;else if(te)switch(y){case 3:return!0;case 5:return Q;case 6:return P;case 2:m.call(D,Q)}else switch(y){case 4:return!1;case 7:m.call(D,Q)}return A?-1:k||v?v:D}};i.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},6583:function(i,l,a){var c=a(5656),d=a(9958),f=a(7466),h=a(9341),p=Math.min,m=[].lastIndexOf,g=!!m&&1/[1].lastIndexOf(1,-0)<0,y=h("lastIndexOf"),C=g||!y;i.exports=C?function(k){if(g)return m.apply(this,arguments)||0;var v=c(this),A=f(v.length),T=A-1;for(arguments.length>1&&(T=p(T,d(arguments[1]))),T<0&&(T=A+T);T>=0;T--)if(T in v&&v[T]===k)return T||0;return-1}:m},1194:function(i,l,a){var c=a(7293),d=a(5112),f=a(7392),h=d("species");i.exports=function(p){return f>=51||!c(function(){var m=[],g=m.constructor={};return g[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},9341:function(i,l,a){var c=a(7293);i.exports=function(d,f){var h=[][d];return!!h&&c(function(){h.call(null,f||function(){throw 1},1)})}},3671:function(i,l,a){var c=a(3099),d=a(7908),f=a(8361),h=a(7466),p=function(m){return function(g,y,C,S){c(y);var k=d(g),v=f(k),A=h(k.length),T=m?A-1:0,V=m?-1:1;if(C<2)for(;;){if(T in v){S=v[T],T+=V;break}if(T+=V,m?T<0:A<=T)throw TypeError("Reduce of empty array with no initial value")}for(;m?T>=0:A>T;T+=V)T in v&&(S=y(S,v[T],T,k));return S}};i.exports={left:p(!1),right:p(!0)}},5417:function(i,l,a){var c=a(111),d=a(3157),f=a(5112),h=f("species");i.exports=function(p,m){var g;return d(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||d(g.prototype))?g=void 0:c(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(m===0?0:m)}},3411:function(i,l,a){var c=a(9670),d=a(9212);i.exports=function(f,h,p,m){try{return m?h(c(p)[0],p[1]):h(p)}catch(g){throw d(f),g}}},7072:function(i,l,a){var c=a(5112),d=c("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[d]=function(){return this},Array.from(p,function(){throw 2})}catch{}i.exports=function(m,g){if(!g&&!f)return!1;var y=!1;try{var C={};C[d]=function(){return{next:function(){return{done:y=!0}}}},m(C)}catch{}return y}},4326:function(i){var l={}.toString;i.exports=function(a){return l.call(a).slice(8,-1)}},648:function(i,l,a){var c=a(1694),d=a(4326),f=a(5112),h=f("toStringTag"),p=d(function(){return arguments}())=="Arguments",m=function(g,y){try{return g[y]}catch{}};i.exports=c?d:function(g){var y,C,S;return g===void 0?"Undefined":g===null?"Null":typeof(C=m(y=Object(g),h))=="string"?C:p?d(y):(S=d(y))=="Object"&&typeof y.callee=="function"?"Arguments":S}},9920:function(i,l,a){var c=a(6656),d=a(3887),f=a(1236),h=a(3070);i.exports=function(p,m){for(var g=d(m),y=h.f,C=f.f,S=0;S<g.length;S++){var k=g[S];c(p,k)||y(p,k,C(m,k))}}},8544:function(i,l,a){var c=a(7293);i.exports=!c(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},4994:function(i,l,a){var c=a(3383).IteratorPrototype,d=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};i.exports=function(g,y,C){var S=y+" Iterator";return g.prototype=d(c,{next:f(1,C)}),h(g,S,!1,!0),p[S]=m,g}},8880:function(i,l,a){var c=a(9781),d=a(3070),f=a(9114);i.exports=c?function(h,p,m){return d.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}},9114:function(i){i.exports=function(l,a){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:a}}},6135:function(i,l,a){var c=a(7593),d=a(3070),f=a(9114);i.exports=function(h,p,m){var g=c(p);g in h?d.f(h,g,f(0,m)):h[g]=m}},654:function(i,l,a){var c=a(2109),d=a(4994),f=a(9518),h=a(7674),p=a(8003),m=a(8880),g=a(1320),y=a(5112),C=a(1913),S=a(7497),k=a(3383),v=k.IteratorPrototype,A=k.BUGGY_SAFARI_ITERATORS,T=y("iterator"),V="keys",H="values",U="entries",B=function(){return this};i.exports=function(L,z,W,j,F,P,G){d(W,z,j);var D=function(x){if(x===F&&ge)return ge;if(!A&&x in ce)return ce[x];switch(x){case V:return function(){return new W(this,x)};case H:return function(){return new W(this,x)};case U:return function(){return new W(this,x)}}return function(){return new W(this)}},Q=z+" Iterator",te=!1,ce=L.prototype,me=ce[T]||ce["@@iterator"]||F&&ce[F],ge=!A&&me||D(F),Ce=z=="Array"&&ce.entries||me,we,Te,ve;if(Ce&&(we=f(Ce.call(new L)),v!==Object.prototype&&we.next&&(!C&&f(we)!==v&&(h?h(we,v):typeof we[T]!="function"&&m(we,T,B)),p(we,Q,!0,!0),C&&(S[Q]=B))),F==H&&me&&me.name!==H&&(te=!0,ge=function(){return me.call(this)}),(!C||G)&&ce[T]!==ge&&m(ce,T,ge),S[z]=ge,F)if(Te={values:D(H),keys:P?ge:D(V),entries:D(U)},G)for(ve in Te)(A||te||!(ve in ce))&&g(ce,ve,Te[ve]);else c({target:z,proto:!0,forced:A||te},Te);return Te}},9781:function(i,l,a){var c=a(7293);i.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(i,l,a){var c=a(7854),d=a(111),f=c.document,h=d(f)&&d(f.createElement);i.exports=function(p){return h?f.createElement(p):{}}},8324:function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(i,l,a){var c=a(5005);i.exports=c("navigator","userAgent")||""},7392:function(i,l,a){var c=a(7854),d=a(8113),f=c.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):d&&(m=d.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=d.match(/Chrome\/(\d+)/),m&&(g=m[1]))),i.exports=g&&+g},748:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(i,l,a){var c=a(7854),d=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),g=a(4705);i.exports=function(y,C){var S=y.target,k=y.global,v=y.stat,A,T,V,H,U,B;if(k?T=c:v?T=c[S]||p(S,{}):T=(c[S]||{}).prototype,T)for(V in C){if(U=C[V],y.noTargetGet?(B=d(T,V),H=B&&B.value):H=T[V],A=g(k?V:S+(v?".":"#")+V,y.forced),!A&&H!==void 0){if(typeof U==typeof H)continue;m(U,H)}(y.sham||H&&H.sham)&&f(U,"sham",!0),h(T,V,U,y)}}},7293:function(i){i.exports=function(l){try{return!!l()}catch{return!0}}},7007:function(i,l,a){a(4916);var c=a(1320),d=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),g=!d(function(){var v=/./;return v.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(v,"$<a>")!=="7"}),y=function(){return"a".replace(/./,"$0")==="$0"}(),C=f("replace"),S=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),k=!d(function(){var v=/(?:)/,A=v.exec;v.exec=function(){return A.apply(this,arguments)};var T="ab".split(v);return T.length!==2||T[0]!=="a"||T[1]!=="b"});i.exports=function(v,A,T,V){var H=f(v),U=!d(function(){var F={};return F[H]=function(){return 7},""[v](F)!=7}),B=U&&!d(function(){var F=!1,P=/a/;return v==="split"&&(P={},P.constructor={},P.constructor[m]=function(){return P},P.flags="",P[H]=/./[H]),P.exec=function(){return F=!0,null},P[H](""),!F});if(!U||!B||v==="replace"&&!(g&&y&&!S)||v==="split"&&!k){var L=/./[H],z=T(H,""[v],function(F,P,G,D,Q){return P.exec===h?U&&!Q?{done:!0,value:L.call(P,G,D)}:{done:!0,value:F.call(G,P,D)}:{done:!1}},{REPLACE_KEEPS_$0:y,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:S}),W=z[0],j=z[1];c(String.prototype,v,W),c(RegExp.prototype,H,A==2?function(F,P){return j.call(F,this,P)}:function(F){return j.call(F,this)})}V&&p(RegExp.prototype[H],"sham",!0)}},9974:function(i,l,a){var c=a(3099);i.exports=function(d,f,h){if(c(d),f===void 0)return d;switch(h){case 0:return function(){return d.call(f)};case 1:return function(p){return d.call(f,p)};case 2:return function(p,m){return d.call(f,p,m)};case 3:return function(p,m,g){return d.call(f,p,m,g)}}return function(){return d.apply(f,arguments)}}},5005:function(i,l,a){var c=a(857),d=a(7854),f=function(h){return typeof h=="function"?h:void 0};i.exports=function(h,p){return arguments.length<2?f(c[h])||f(d[h]):c[h]&&c[h][p]||d[h]&&d[h][p]}},1246:function(i,l,a){var c=a(648),d=a(7497),f=a(5112),h=f("iterator");i.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||d[c(p)]}},8554:function(i,l,a){var c=a(9670),d=a(1246);i.exports=function(f){var h=d(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return c(h.call(f))}},647:function(i,l,a){var c=a(7908),d=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;i.exports=function(m,g,y,C,S,k){var v=y+m.length,A=C.length,T=p;return S!==void 0&&(S=c(S),T=h),f.call(k,T,function(V,H){var U;switch(H.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,y);case"'":return g.slice(v);case"<":U=S[H.slice(1,-1)];break;default:var B=+H;if(B===0)return V;if(B>A){var L=d(B/10);return L===0?V:L<=A?C[L-1]===void 0?H.charAt(1):C[L-1]+H.charAt(1):V}U=C[B-1]}return U===void 0?"":U})}},7854:function(i,l,a){var c=function(d){return d&&d.Math==Math&&d};i.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},6656:function(i){var l={}.hasOwnProperty;i.exports=function(a,c){return l.call(a,c)}},3501:function(i){i.exports={}},490:function(i,l,a){var c=a(5005);i.exports=c("document","documentElement")},4664:function(i,l,a){var c=a(9781),d=a(7293),f=a(317);i.exports=!c&&!d(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(i){var l=Math.abs,a=Math.pow,c=Math.floor,d=Math.log,f=Math.LN2,h=function(m,g,y){var C=new Array(y),S=y*8-g-1,k=(1<<S)-1,v=k>>1,A=g===23?a(2,-24)-a(2,-77):0,T=m<0||m===0&&1/m<0?1:0,V=0,H,U,B;for(m=l(m),m!=m||m===1/0?(U=m!=m?1:0,H=k):(H=c(d(m)/f),m*(B=a(2,-H))<1&&(H--,B*=2),H+v>=1?m+=A/B:m+=A*a(2,1-v),m*B>=2&&(H++,B/=2),H+v>=k?(U=0,H=k):H+v>=1?(U=(m*B-1)*a(2,g),H=H+v):(U=m*a(2,v-1)*a(2,g),H=0));g>=8;C[V++]=U&255,U/=256,g-=8);for(H=H<<g|U,S+=g;S>0;C[V++]=H&255,H/=256,S-=8);return C[--V]|=T*128,C},p=function(m,g){var y=m.length,C=y*8-g-1,S=(1<<C)-1,k=S>>1,v=C-7,A=y-1,T=m[A--],V=T&127,H;for(T>>=7;v>0;V=V*256+m[A],A--,v-=8);for(H=V&(1<<-v)-1,V>>=-v,v+=g;v>0;H=H*256+m[A],A--,v-=8);if(V===0)V=1-k;else{if(V===S)return H?NaN:T?-1/0:1/0;H=H+a(2,g),V=V-k}return(T?-1:1)*H*a(2,V-g)};i.exports={pack:h,unpack:p}},8361:function(i,l,a){var c=a(7293),d=a(4326),f="".split;i.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return d(h)=="String"?f.call(h,""):Object(h)}:Object},9587:function(i,l,a){var c=a(111),d=a(7674);i.exports=function(f,h,p){var m,g;return d&&typeof(m=h.constructor)=="function"&&m!==p&&c(g=m.prototype)&&g!==p.prototype&&d(f,g),f}},2788:function(i,l,a){var c=a(5465),d=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(f){return d.call(f)}),i.exports=c.inspectSource},9909:function(i,l,a){var c=a(8536),d=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),g=a(6200),y=a(3501),C=d.WeakMap,S,k,v,A=function(z){return v(z)?k(z):S(z,{})},T=function(z){return function(W){var j;if(!f(W)||(j=k(W)).type!==z)throw TypeError("Incompatible receiver, "+z+" required");return j}};if(c){var V=m.state||(m.state=new C),H=V.get,U=V.has,B=V.set;S=function(z,W){return W.facade=z,B.call(V,z,W),W},k=function(z){return H.call(V,z)||{}},v=function(z){return U.call(V,z)}}else{var L=g("state");y[L]=!0,S=function(z,W){return W.facade=z,h(z,L,W),W},k=function(z){return p(z,L)?z[L]:{}},v=function(z){return p(z,L)}}i.exports={set:S,get:k,has:v,enforce:A,getterFor:T}},7659:function(i,l,a){var c=a(5112),d=a(7497),f=c("iterator"),h=Array.prototype;i.exports=function(p){return p!==void 0&&(d.Array===p||h[f]===p)}},3157:function(i,l,a){var c=a(4326);i.exports=Array.isArray||function(f){return c(f)=="Array"}},4705:function(i,l,a){var c=a(7293),d=/#|\.prototype\./,f=function(y,C){var S=p[h(y)];return S==g?!0:S==m?!1:typeof C=="function"?c(C):!!C},h=f.normalize=function(y){return String(y).replace(d,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",g=f.POLYFILL="P";i.exports=f},111:function(i){i.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},1913:function(i){i.exports=!1},7850:function(i,l,a){var c=a(111),d=a(4326),f=a(5112),h=f("match");i.exports=function(p){var m;return c(p)&&((m=p[h])!==void 0?!!m:d(p)=="RegExp")}},9212:function(i,l,a){var c=a(9670);i.exports=function(d){var f=d.return;if(f!==void 0)return c(f.call(d)).value}},3383:function(i,l,a){var c=a(7293),d=a(9518),f=a(8880),h=a(6656),p=a(5112),m=a(1913),g=p("iterator"),y=!1,C=function(){return this},S,k,v;[].keys&&(v=[].keys(),"next"in v?(k=d(d(v)),k!==Object.prototype&&(S=k)):y=!0);var A=S==null||c(function(){var T={};return S[g].call(T)!==T});A&&(S={}),(!m||A)&&!h(S,g)&&f(S,g,C),i.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:y}},7497:function(i){i.exports={}},133:function(i,l,a){var c=a(7293);i.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},590:function(i,l,a){var c=a(7293),d=a(5112),f=a(1913),h=d("iterator");i.exports=!c(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),m=p.searchParams,g="";return p.pathname="c%20d",m.forEach(function(y,C){m.delete("b"),g+=C+y}),f&&!p.toJSON||!m.sort||p.href!=="http://a/c%20d?a=1&c=3"||m.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!m[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||g!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(i,l,a){var c=a(7854),d=a(2788),f=c.WeakMap;i.exports=typeof f=="function"&&/native code/.test(d(f))},1574:function(i,l,a){var c=a(9781),d=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),g=a(8361),y=Object.assign,C=Object.defineProperty;i.exports=!y||d(function(){if(c&&y({b:1},y(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},k={},v=Symbol(),A="abcdefghijklmnopqrst";return S[v]=7,A.split("").forEach(function(T){k[T]=T}),y({},S)[v]!=7||f(y({},k)).join("")!=A})?function(k,v){for(var A=m(k),T=arguments.length,V=1,H=h.f,U=p.f;T>V;)for(var B=g(arguments[V++]),L=H?f(B).concat(H(B)):f(B),z=L.length,W=0,j;z>W;)j=L[W++],(!c||U.call(B,j))&&(A[j]=B[j]);return A}:y},30:function(i,l,a){var c=a(9670),d=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),g=a(6200),y=">",C="<",S="prototype",k="script",v=g("IE_PROTO"),A=function(){},T=function(L){return C+k+y+L+C+"/"+k+y},V=function(L){L.write(T("")),L.close();var z=L.parentWindow.Object;return L=null,z},H=function(){var L=m("iframe"),z="java"+k+":",W;return L.style.display="none",p.appendChild(L),L.src=String(z),W=L.contentWindow.document,W.open(),W.write(T("document.F=Object")),W.close(),W.F},U,B=function(){try{U=document.domain&&new ActiveXObject("htmlfile")}catch{}B=U?V(U):H();for(var L=f.length;L--;)delete B[S][f[L]];return B()};h[v]=!0,i.exports=Object.create||function(z,W){var j;return z!==null?(A[S]=c(z),j=new A,A[S]=null,j[v]=z):j=B(),W===void 0?j:d(j,W)}},6048:function(i,l,a){var c=a(9781),d=a(3070),f=a(9670),h=a(1956);i.exports=c?Object.defineProperties:function(m,g){f(m);for(var y=h(g),C=y.length,S=0,k;C>S;)d.f(m,k=y[S++],g[k]);return m}},3070:function(i,l,a){var c=a(9781),d=a(4664),f=a(9670),h=a(7593),p=Object.defineProperty;l.f=c?p:function(g,y,C){if(f(g),y=h(y,!0),f(C),d)try{return p(g,y,C)}catch{}if("get"in C||"set"in C)throw TypeError("Accessors not supported");return"value"in C&&(g[y]=C.value),g}},1236:function(i,l,a){var c=a(9781),d=a(5296),f=a(9114),h=a(5656),p=a(7593),m=a(6656),g=a(4664),y=Object.getOwnPropertyDescriptor;l.f=c?y:function(S,k){if(S=h(S),k=p(k,!0),g)try{return y(S,k)}catch{}if(m(S,k))return f(!d.f.call(S,k),S[k])}},8006:function(i,l,a){var c=a(6324),d=a(748),f=d.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(p){return c(p,f)}},5181:function(i,l){l.f=Object.getOwnPropertySymbols},9518:function(i,l,a){var c=a(6656),d=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;i.exports=h?Object.getPrototypeOf:function(g){return g=d(g),c(g,p)?g[p]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}},6324:function(i,l,a){var c=a(6656),d=a(5656),f=a(1318).indexOf,h=a(3501);i.exports=function(p,m){var g=d(p),y=0,C=[],S;for(S in g)!c(h,S)&&c(g,S)&&C.push(S);for(;m.length>y;)c(g,S=m[y++])&&(~f(C,S)||C.push(S));return C}},1956:function(i,l,a){var c=a(6324),d=a(748);i.exports=Object.keys||function(h){return c(h,d)}},5296:function(i,l){var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,d=c&&!a.call({1:2},1);l.f=d?function(h){var p=c(this,h);return!!p&&p.enumerable}:a},7674:function(i,l,a){var c=a(9670),d=a(6077);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,h={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(h,[]),f=h instanceof Array}catch{}return function(g,y){return c(g),d(y),f?p.call(g,y):g.__proto__=y,g}}():void 0)},288:function(i,l,a){var c=a(1694),d=a(648);i.exports=c?{}.toString:function(){return"[object "+d(this)+"]"}},3887:function(i,l,a){var c=a(5005),d=a(8006),f=a(5181),h=a(9670);i.exports=c("Reflect","ownKeys")||function(m){var g=d.f(h(m)),y=f.f;return y?g.concat(y(m)):g}},857:function(i,l,a){var c=a(7854);i.exports=c},2248:function(i,l,a){var c=a(1320);i.exports=function(d,f,h){for(var p in f)c(d,p,f[p],h);return d}},1320:function(i,l,a){var c=a(7854),d=a(8880),f=a(6656),h=a(3505),p=a(2788),m=a(9909),g=m.get,y=m.enforce,C=String(String).split("String");(i.exports=function(S,k,v,A){var T=A?!!A.unsafe:!1,V=A?!!A.enumerable:!1,H=A?!!A.noTargetGet:!1,U;if(typeof v=="function"&&(typeof k=="string"&&!f(v,"name")&&d(v,"name",k),U=y(v),U.source||(U.source=C.join(typeof k=="string"?k:""))),S===c){V?S[k]=v:h(k,v);return}else T?!H&&S[k]&&(V=!0):delete S[k];V?S[k]=v:d(S,k,v)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})},7651:function(i,l,a){var c=a(4326),d=a(2261);i.exports=function(f,h){var p=f.exec;if(typeof p=="function"){var m=p.call(f,h);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(c(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(f,h)}},2261:function(i,l,a){var c=a(7066),d=a(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=function(){var S=/a/,k=/b*/g;return f.call(S,"a"),f.call(k,"a"),S.lastIndex!==0||k.lastIndex!==0}(),g=d.UNSUPPORTED_Y||d.BROKEN_CARET,y=/()??/.exec("")[1]!==void 0,C=m||y||g;C&&(p=function(k){var v=this,A,T,V,H,U=g&&v.sticky,B=c.call(v),L=v.source,z=0,W=k;return U&&(B=B.replace("y",""),B.indexOf("g")===-1&&(B+="g"),W=String(k).slice(v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&k[v.lastIndex-1]!==`
4
+ C18.406,1.576,18.22,1.5,18.023,1.5H3.023z`})],-1)];function Rg(n,e){return u.openBlock(),u.createElementBlock("svg",Dg,Lg)}const ba=Le(Ig,[["render",Rg]]),Bg={},$g={class:"icon icon-hyperlink",xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",viewBox:"0 0 20 20",width:"20",height:"20"},Pg=[u.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[u.createElementVNode("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"}),u.createElementVNode("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)];function Fg(n,e){return u.openBlock(),u.createElementBlock("svg",$g,Pg)}const ds=Le(Bg,[["render",Fg]]),Vg={},zg={class:"icon icon-info",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Hg=[u.createElementVNode("path",{d:"M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zm.498-4V6.075H8.143V14h1.355zM8.033 3.973c0 .22.067.403.201.55.134.146.333.22.597.22.264 0 .464-.074.6-.22a.774.774 0 0 0 .206-.55.8.8 0 0 0-.205-.556c-.137-.152-.337-.228-.6-.228-.265 0-.464.076-.598.228a.809.809 0 0 0-.201.556z"},null,-1)];function Ug(n,e){return u.openBlock(),u.createElementBlock("svg",zg,Hg)}const qn=Le(Vg,[["render",Ug]]),jg={},Wg={width:"12",height:"14",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-italic"},Kg=[u.createElementVNode("path",{d:"M12 0.75C12 1.1875 11.6562 1.5 11.25 1.5H9.125L4.53125 12.5H7.25C7.65625 12.5 8 12.8438 8 13.25C8 13.6875 7.65625 14 7.25 14H0.75C0.3125 14 0 13.6875 0 13.25C0 12.8438 0.3125 12.5 0.75 12.5H2.9375L7.53125 1.5H4.75C4.3125 1.5 4 1.1875 4 0.75C4 0.34375 4.3125 0 4.75 0H11.25C11.6562 0 12 0.34375 12 0.75Z"},null,-1)];function Yg(n,e){return u.openBlock(),u.createElementBlock("svg",Wg,Kg)}const Ea=Le(jg,[["render",Yg]]),Gg={},Jg={class:"icon icon-list-view",width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zg=[u.createElementVNode("path",{d:"M0 2.625V16.375C0 17.4297 0.820312 18.25 1.875 18.25H18.125C19.1406 18.25 20 17.4297 20 16.375V2.625C20 1.60938 19.1406 0.75 18.125 0.75H1.875C0.820312 0.75 0 1.60938 0 2.625ZM18.4375 11.375H7.69531V7.625H18.4375V11.375ZM18.4375 12.9375V16.2188C18.4375 16.4922 18.2031 16.6875 17.9688 16.6875H7.69531V12.9375H18.4375ZM1.5625 7.625H6.13281V11.375H1.5625V7.625ZM7.69531 6.0625V2.3125H17.9688C18.2031 2.3125 18.4375 2.54688 18.4375 2.78125V6.0625H7.69531ZM6.13281 2.3125V6.0625H1.5625V2.78125C1.5625 2.54688 1.75781 2.3125 2.03125 2.3125H6.13281ZM1.5625 12.9375H6.13281V16.6875H2.03125C1.75781 16.6875 1.5625 16.4922 1.5625 16.2188V12.9375Z",fill:"#394156"},null,-1)];function Xg(n,e){return u.openBlock(),u.createElementBlock("svg",Jg,Zg)}const lu=Le(Gg,[["render",Xg]]),Qg={},qg={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},e0=[u.createElementVNode("path",{d:"M1.386 2a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 0 1 0-2H18a1 1 0 0 1 0 2H1.386z"},null,-1)];function t0(n,e){return u.openBlock(),u.createElementBlock("svg",qg,e0)}const fs=Le(Qg,[["render",t0]]),n0={},r0={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},o0=[u.createElementVNode("path",{d:"M7.75 3.75H16.25C16.6562 3.75 17 3.4375 17 3C17 2.59375 16.6562 2.25 16.25 2.25H7.75C7.3125 2.25 7 2.59375 7 3C7 3.4375 7.3125 3.75 7.75 3.75ZM16.25 12.25H7.75C7.3125 12.25 7 12.5938 7 13C7 13.4375 7.3125 13.75 7.75 13.75H16.25C16.6562 13.75 17 13.4375 17 13C17 12.5938 16.6562 12.25 16.25 12.25ZM16.25 7.25H7.75C7.3125 7.25 7 7.59375 7 8C7 8.4375 7.3125 8.75 7.75 8.75H16.25C16.6562 8.75 17 8.4375 17 8C17 7.59375 16.6562 7.25 16.25 7.25ZM2.25 7H4.75C5.15625 7 5.5 6.6875 5.5 6.25C5.5 5.78125 5.15625 5.5 4.75 5.5H4.25V1.75C4.25 1.5 4.09375 1.25 3.84375 1.125C3.625 0.96875 3.34375 0.96875 3.09375 1.125L2.09375 1.6875C1.75 1.90625 1.625 2.375 1.84375 2.71875C2.03125 3.03125 2.40625 3.1875 2.75 3.0625V5.5H2.25C1.8125 5.5 1.5 5.84375 1.5 6.25C1.5 6.6875 1.8125 7 2.25 7ZM5.25 13.5H3.6875L4.84375 12.5C5.78125 11.6875 5.875 10.2812 5.09375 9.34375C4.6875 8.84375 4.125 8.5625 3.5 8.53125C2.90625 8.46875 2.28125 8.65625 1.8125 9.0625L1.4375 9.40625C1.125 9.6875 1.09375 10.1562 1.34375 10.4688C1.625 10.7812 2.09375 10.8125 2.40625 10.5625L2.8125 10.2188C2.96875 10.0625 3.1875 10 3.40625 10.0312C3.625 10.0312 3.8125 10.125 3.9375 10.3125C4.21875 10.625 4.1875 11.0938 3.84375 11.375L1.25 13.7188C1 13.9062 0.9375 14.25 1.03125 14.5312C1.15625 14.8125 1.4375 15 1.71875 15H5.25C5.65625 15 6 14.6875 6 14.2812C6 13.8438 5.65625 13.5 5.25 13.5Z"},null,-1)];function s0(n,e){return u.openBlock(),u.createElementBlock("svg",r0,o0)}const Ca=Le(n0,[["render",s0]]),i0={},a0={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},l0=[u.createElementVNode("path",{d:"M.893.893a1 1 0 0 1 1.414 0L5.5 4.085 8.693.893a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414L6.915 5.5l3.192 3.193a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0L5.5 6.915l-3.193 3.192a1 1 0 0 1-1.32.083l-.094-.083a1 1 0 0 1 0-1.414L4.085 5.5.893 2.307A1 1 0 0 1 .81.987L.893.893z"},null,-1)];function c0(n,e){return u.openBlock(),u.createElementBlock("svg",a0,l0)}const go=Le(i0,[["render",c0]]),u0={},d0={class:"icon icon-service",viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg"},f0=[u.createElementVNode("path",{d:"M1.875 10.5V12.0625C1.875 12.6094 1.44531 13 0.9375 13C0.390625 13 0 12.6094 0 12.0625V10.5C0 4.99219 4.45312 0.5 10 0.5C15.5078 0.5 20 4.99219 20 10.5V16.1641C20 18.0391 18.4375 19.6016 16.5625 19.6016L12.2266 19.5625C11.9141 20.1484 11.2891 20.5 10.625 20.5H9.375C8.32031 20.5 7.5 19.6797 7.5 18.625C7.5 17.6094 8.32031 16.75 9.375 16.75H10.625C11.2891 16.75 11.9141 17.1406 12.2266 17.6875L16.5625 17.7266C17.4219 17.7266 18.125 17.0234 18.125 16.1641V10.5C18.125 6.04688 14.4531 2.375 10 2.375C5.50781 2.375 1.875 6.04688 1.875 10.5ZM6.25 9.25C5.54688 9.25 5 9.83594 5 10.5V12.375C5 13.0781 5.54688 13.625 6.25 13.625V9.25ZM3.125 10.5C3.125 8.78125 4.49219 7.375 6.25 7.375H6.875C7.53906 7.375 8.125 7.96094 8.125 8.625V14.25C8.125 14.9531 7.53906 15.5 6.875 15.5H6.25C4.49219 15.5 3.125 14.1328 3.125 12.375V10.5ZM13.75 9.25V13.625C14.4141 13.625 15 13.0781 15 12.375V10.5C15 9.83594 14.4141 9.25 13.75 9.25ZM16.875 10.5V12.375C16.875 14.1328 15.4688 15.5 13.75 15.5H13.125C12.4219 15.5 11.875 14.9531 11.875 14.25V8.625C11.875 7.96094 12.4219 7.375 13.125 7.375H13.75C15.4688 7.375 16.875 8.78125 16.875 10.5Z"},null,-1)];function h0(n,e){return u.openBlock(),u.createElementBlock("svg",d0,f0)}const cu=Le(u0,[["render",h0]]),p0={},m0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},g0=[u.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#4D5875" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function y0(n,e){return u.openBlock(),u.createElementBlock("svg",m0,g0)}const uu=Le(p0,[["render",y0]]),v0={},b0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},E0=[u.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="#ABB0BE" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function C0(n,e){return u.openBlock(),u.createElementBlock("svg",b0,E0)}const Sa=Le(v0,[["render",C0]]),S0={},w0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},k0=[u.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="#ABB0BE" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function T0(n,e){return u.openBlock(),u.createElementBlock("svg",w0,k0)}const wa=Le(S0,[["render",T0]]),x0={},A0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},O0=[u.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#ABB0BE" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function M0(n,e){return u.openBlock(),u.createElementBlock("svg",A0,O0)}const ka=Le(x0,[["render",M0]]),N0={},_0={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I0=[u.createElementVNode("path",{d:"M38.5547 28.6992C39.7422 30.7773 38.2578 33.375 35.8086 33.375H4.11719C1.66797 33.375 0.183594 30.7773 1.29688 28.6992L17.1797 1.68359C17.8477 0.644531 18.8867 0.125 20 0.125C21.0391 0.125 22.0781 0.644531 22.7461 1.68359L38.5547 28.6992ZM4.85938 29.8125H35.0664L19.9258 4.05859L4.85938 29.8125ZM20 22.8359C21.2617 22.8359 22.3008 23.875 22.3008 25.1367C22.3008 26.3984 21.2617 27.4375 20 27.4375C18.6641 27.4375 17.625 26.3984 17.625 25.1367C17.625 23.875 18.6641 22.8359 20 22.8359ZM18.2188 11.4062C18.2188 10.4414 18.9609 9.625 20 9.625C20.9648 9.625 21.7812 10.4414 21.7812 11.4062V18.5312C21.7812 19.5703 20.9648 20.3125 20 20.3125C18.9609 20.3125 18.2188 19.5703 18.2188 18.5312V11.4062Z",fill:"#F65139"},null,-1)];function D0(n,e){return u.openBlock(),u.createElementBlock("svg",_0,I0)}const du=Le(N0,[["render",D0]]),L0={},R0={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},B0=[u.createElementVNode("path",{d:"M1.25 1.5H2V7.5C2 10.2812 4.21875 12.5 7 12.5C9.75 12.5 12 10.2812 12 7.5V1.5H12.75C13.1562 1.5 13.5 1.1875 13.5 0.75C13.5 0.34375 13.1562 0 12.75 0H9.75C9.3125 0 9 0.34375 9 0.75C9 1.1875 9.3125 1.5 9.75 1.5H10.5V7.5C10.5 9.4375 8.90625 11 7 11C5.0625 11 3.5 9.4375 3.5 7.5V1.5H4.25C4.65625 1.5 5 1.1875 5 0.75C5 0.34375 4.65625 0 4.25 0H1.25C0.8125 0 0.5 0.34375 0.5 0.75C0.5 1.1875 0.8125 1.5 1.25 1.5ZM13.25 14.5H0.75C0.3125 14.5 0 14.8438 0 15.25C0 15.6875 0.3125 16 0.75 16H13.25C13.6562 16 14 15.6875 14 15.25C14 14.8438 13.6562 14.5 13.25 14.5Z"},null,-1)];function $0(n,e){return u.openBlock(),u.createElementBlock("svg",R0,B0)}const Ta=Le(L0,[["render",$0]]),P0={},F0={xmlns:"http://www.w3.org/2000/svg",width:"23",height:"17",viewBox:"0 0 18 15",fill:"none"},V0=[u.createElementVNode("path",{d:"M6.375 7.75C4.43359 7.75 2.875 6.19141 2.875 4.25C2.875 2.33594 4.43359 0.75 6.375 0.75C8.28906 0.75 9.875 2.33594 9.875 4.25C9.875 6.19141 8.28906 7.75 6.375 7.75ZM6.375 2.0625C5.14453 2.0625 4.1875 3.04688 4.1875 4.25C4.1875 5.48047 5.14453 6.4375 6.375 6.4375C7.57812 6.4375 8.5625 5.48047 8.5625 4.25C8.5625 3.04688 7.57812 2.0625 6.375 2.0625ZM7.74219 9.0625C10.3672 9.0625 12.5 11.1953 12.5 13.8203C12.5 14.3398 12.0625 14.75 11.543 14.75H1.17969C0.660156 14.75 0.25 14.3398 0.25 13.8203C0.25 11.1953 2.35547 9.0625 4.98047 9.0625H7.74219ZM1.5625 13.4375H11.1602C10.9414 11.7422 9.51953 10.375 7.74219 10.375H4.98047C3.20312 10.375 1.75391 11.7422 1.5625 13.4375ZM13.3477 9.5C15.7812 9.5 17.75 11.4688 17.75 13.875C17.75 14.3672 17.3398 14.75 16.875 14.75H13.1016C13.2656 14.4766 13.375 14.1758 13.375 13.8203C13.375 12.0977 12.582 10.5391 11.3242 9.5H13.3477ZM12.0625 7.75C11.1875 7.75 10.4219 7.42188 9.875 6.84766C10.4219 6.13672 10.75 5.23438 10.75 4.25C10.75 3.53906 10.5312 2.85547 10.2305 2.25391C10.7227 1.87109 11.3516 1.625 12.0625 1.625C13.7305 1.625 15.125 3.01953 15.125 4.6875C15.125 6.38281 13.7305 7.75 12.0625 7.75Z",fill:"#394156"},null,-1)];function z0(n,e){return u.openBlock(),u.createElementBlock("svg",F0,V0)}const fu=Le(P0,[["render",z0]]),H0={},U0=[u.createStaticVNode('<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>',2)];function j0(n,e){return u.openBlock(),u.createElementBlock("svg",u.mergeProps({class:"bd-logo"},n.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),U0,16)}const xa=Le(H0,[["render",j0]]),hu=/^https:/i,Ar=u.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(n){const e=n,t=u.computed(()=>typeof e.to=="string"&&hu.test(e.to)?"a":typeof e.to!="string"&&typeof u.resolveComponent("router-link")!="string"?"router-link":"div"),r=u.computed(()=>{if(typeof e.to=="string"&&hu.test(e.to)){const{to:o,target:s,rel:i}=e;return{href:o,target:s,rel:i}}else{const{to:o}=e;return{to:o}}});return(o,s)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(t.value),u.mergeProps({class:"bd-link"},r.value),{default:u.withCtx(()=>[u.renderSlot(o.$slots,"default",{},()=>[u.createTextVNode(u.toDisplayString(e.text),1)])]),_:3},16))}}),hs={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light",GRAY:"gray"},W0={key:0,class:"b-d-alert-title"},yo=u.defineComponent({__name:"BDAlert",props:{variant:{default:hs.PRIMARY},title:{default:""}},setup(n){const e=n,t=u.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(t.value),role:"alert"},[r.title?(u.openBlock(),u.createElementBlock("div",W0,[u.createVNode(u.unref(qn)),u.createElementVNode("span",null,[u.createElementVNode("strong",null,u.toDisplayString(e.title),1)])])):u.createCommentVNode("",!0),u.renderSlot(r.$slots,"default")],2))}}),K0={class:"bd-profile-picture"},Y0=["src","alt"],vo=u.defineComponent({__name:"BDProfileImage",props:{src:{default:""},username:{default:null},size:{default:lt.LG},linkText:{default:null}},emits:["click"],setup(n,{emit:e}){const t=n,r=u.computed(()=>`${t.username?`${t.username}'s `:""}profielfoto`),o=()=>{e("click")};return(s,i)=>(u.openBlock(),u.createElementBlock("div",K0,[u.createElementVNode("div",{class:u.normalizeClass(["rounded-circle",t.size])},[u.createElementVNode("img",{src:t.src,alt:r.value,class:"position-absolute top-0 start-0"},null,8,Y0)],2),t.linkText?(u.openBlock(),u.createBlock(Ye,{key:0,variant:"link",onClick:o,textContent:u.toDisplayString(t.linkText)},null,8,["textContent"])):u.createCommentVNode("",!0)]))}});function G0(n){return u.getCurrentScope()?(u.onScopeDispose(n),!0):!1}function ps(n){return typeof n=="function"?n():u.unref(n)}const J0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Z0=n=>typeof n<"u",X0=Object.prototype.toString,Q0=n=>X0.call(n)==="[object Object]",Aa=()=>{};function q0(n,e){function t(...r){return new Promise((o,s)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(s)})}return t}function e2(n,e={}){let t,r,o=Aa;const s=l=>{clearTimeout(l),o(),o=Aa};return l=>{const a=ps(n),c=ps(e.maxWait);return t&&s(t),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(l())):new Promise((d,f)=>{o=e.rejectOnCancel?f:d,c&&!r&&(r=setTimeout(()=>{t&&s(t),r=null,d(l())},c)),t=setTimeout(()=>{r&&s(r),r=null,d(l())},a)})}}function t2(n,e=200,t={}){return q0(e2(e,t),n)}function pu(n){var e;const t=ps(n);return(e=t==null?void 0:t.$el)!=null?e:t}const n2=J0?window:void 0;function mu(...n){let e,t,r,o;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,o]=n,e=n2):[e,t,r,o]=n,!e)return Aa;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(d=>d()),s.length=0},l=(d,f,h,p)=>(d.addEventListener(f,h,p),()=>d.removeEventListener(f,h,p)),a=u.watch(()=>[pu(e),ps(o)],([d,f])=>{if(i(),!d)return;const h=Q0(f)?{...f}:f;s.push(...t.flatMap(p=>r.map(m=>l(d,p,m,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),i()};return G0(c),c}function r2(n){return JSON.parse(JSON.stringify(n))}function o2(n,e={}){const{initialValue:t=!1,focusVisible:r=!1}=e,o=u.ref(!1),s=u.computed(()=>pu(n));mu(s,"focus",l=>{var a,c;(!r||(c=(a=l.target).matches)!=null&&c.call(a,":focus-visible"))&&(o.value=!0)}),mu(s,"blur",()=>o.value=!1);const i=u.computed({get:()=>o.value,set(l){var a,c;!l&&o.value?(a=s.value)==null||a.blur():l&&!o.value&&((c=s.value)==null||c.focus())}});return u.watch(s,()=>{i.value=t},{immediate:!0,flush:"post"}),{focused:i}}function er(n,e,t,r={}){var o,s,i;const{clone:l=!1,passive:a=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=r,p=u.getCurrentInstance(),m=t||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((i=(s=p==null?void 0:p.proxy)==null?void 0:s.$emit)==null?void 0:i.bind(p==null?void 0:p.proxy));let g=c;e||(e="modelValue"),g=g||`update:${e.toString()}`;const y=k=>l?typeof l=="function"?l(k):r2(k):k,C=()=>Z0(n[e])?y(n[e]):f,S=k=>{h?h(k)&&m(g,k):m(g,k)};if(a){const k=C(),v=u.ref(k);let A=!1;return u.watch(()=>n[e],T=>{A||(A=!0,v.value=y(T),u.nextTick(()=>A=!1))}),u.watch(v,T=>{!A&&(T!==n[e]||d)&&S(T)},{deep:d}),v}else return u.computed({get(){return C()},set(k){S(k)}})}const s2={class:"bd-zoom-slider d-flex"},i2=[u.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[u.createElementVNode("path",{d:"M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],a2=["max"],l2=[u.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[u.createElementVNode("path",{d:"M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],Oa=u.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=er(t,"modelValue",e);function o(){r.value!==0&&r.value--}function s(){r.value<t.maxValue&&r.value++}return(i,l)=>(u.openBlock(),u.createElementBlock("div",s2,[(u.openBlock(),u.createElementBlock("svg",{class:"bd-zoom-slider-min-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:o},i2)),u.withDirectives(u.createElementVNode("input",{type:"range","onUpdate:modelValue":l[0]||(l[0]=a=>u.isRef(r)?r.value=a:null),min:"0",max:i.maxValue,class:"bd-zoom-slider-input"},null,8,a2),[[u.vModelText,u.unref(r)]]),(u.openBlock(),u.createElementBlock("svg",{class:"bd-zoom-slider-plus-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:s},l2))]))}});for(var tr=256,gu=[],yu=256,ms;tr--;)gu[tr]=(tr+256).toString(16).substring(1);function vu(n){var e=0,t=n||11;if(!ms||tr+t>yu*2)for(ms="",tr=0;e<yu;e++)ms+=gu[Math.random()*256|0];return ms.substring(tr,tr+++t)}function Or(){return{uniqueIdentifier:u.ref(vu())}}const c2=["id"],u2={key:0},gs=u.defineComponent({__name:"BDCard",props:{class:{default:""},title:{default:""},noHeader:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},headerClass:{default:""},bodyClass:{default:""},id:{default:0},headerVariant:{default:"primary"}},setup(n){const e=n,{uniqueIdentifier:t}=Or(),r=t.value,o=u.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),s=u.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),i=u.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(l,a)=>(u.openBlock(),u.createElementBlock("div",{id:u.unref(r),class:u.normalizeClass(o.value)},[!l.noHeader||l.noBody?(u.openBlock(),u.createElementBlock("div",{key:0,class:u.normalizeClass(s.value)},[u.renderSlot(l.$slots,"header",{},()=>[l.title?(u.openBlock(),u.createElementBlock("h2",u2,u.toDisplayString(l.title),1)):u.createCommentVNode("",!0)])],2)):u.createCommentVNode("",!0),l.noBody?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",{key:1,class:u.normalizeClass(i.value)},[u.renderSlot(l.$slots,"body")],2))],10,c2))}}),d2={key:0},f2={class:"bd-collapsable-card__actions"},h2=["data-bs-target"],bu=u.defineComponent({__name:"BDCollapsableCard",props:{title:{default:"Title"},disabled:{type:Boolean,default:!1},showOn:{default:"md"},visible:{type:Boolean,default:!0}},setup(n){const e=n,{uniqueIdentifier:t}=Or(),r=t.value,o=u.computed(()=>`bd-collapsable-card__collapse-${r}`),s=u.computed(()=>({"d-block":[lt.SM,lt.MD].includes(e.showOn.toLowerCase()),"d-md-none":e.showOn.toLowerCase()==lt.SM,"d-lg-none":e.showOn.toLowerCase()==lt.MD})),i=u.computed(()=>{let a={"round-corners-sm":e.showOn.toLowerCase()==lt.SM,"round-corners-md":e.showOn.toLowerCase()==lt.MD,"is-disabled":e.disabled,"round-corners":!e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")}),l=u.computed(()=>{let a={collapse:!0,show:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!e.visible||e.disabled,"open-collapse-lg":e.visible&&[lt.SM,lt.MD].includes(e.showOn.toLowerCase()),"open-collapse-md":e.showOn.toLowerCase()==lt.SM&&e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")});return(a,c)=>(u.openBlock(),u.createBlock(gs,{class:"bd-collapsable-card",title:a.title,"header-class":i.value,"body-class":l.value},{header:u.withCtx(()=>[a.title?(u.openBlock(),u.createElementBlock("h2",d2,u.toDisplayString(a.title),1)):u.createCommentVNode("",!0),u.createElementVNode("div",f2,[u.renderSlot(a.$slots,"action"),!a.disabled&&a.visible?(u.openBlock(),u.createElementBlock("button",{key:0,class:u.normalizeClass(["btn btn-white btn-caret",s.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":"true"},[u.createVNode(u.unref(ga))],10,h2)):u.createCommentVNode("",!0)])]),body:u.withCtx(()=>[u.renderSlot(a.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var p2=Object.defineProperty,m2=(n,e,t)=>e in n?p2(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,bo=(n,e,t)=>(m2(n,typeof e!="symbol"?e+"":e,t),t);const Eu={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class Cu{constructor(e={}){bo(this,"opts",{}),bo(this,"memo",new Map);const t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...Eu,...t.tokens};for(const r of Object.values(t.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else t.tokens=Eu;Array.isArray(t.mask)&&(t.mask.length>1?t.mask=[...t.mask].sort((r,o)=>r.length-o.length):t.mask=t.mask[0]??""),t.mask===""&&(t.mask=null),this.opts=t}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const t=this.findMask(e);if(this.opts.mask==null||t==null)return!1;const r=this.process(e,t).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:typeof this.opts.mask=="function"?r>=t.length:this.opts.mask.filter(o=>r>=o.length).length===this.opts.mask.length}findMask(e){const t=this.opts.mask;if(t==null)return null;if(typeof t=="string")return t;if(typeof t=="function")return t(e);const r=this.process(e,t.slice(-1).pop()??"",!1);return t.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const t=[],r=[];return e.split("").forEach((o,s)=>{o==="!"&&e[s-1]!=="!"?r.push(s-r.length):t.push(o)}),{mask:t.join(""),escaped:r}}process(e,t,r=!0){if(t==null)return e;const o=`value=${e},mask=${t},masked=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:s,escaped:i}=this.escapeMask(t),l=[],a=this.opts.tokens!=null?this.opts.tokens:{},c=this.isReversed()?-1:1,d=this.isReversed()?"unshift":"push",f=this.isReversed()?0:s.length-1,h=this.isReversed()?()=>y>-1&&C>-1:()=>y<s.length&&C<e.length,p=k=>!this.isReversed()&&k<=f||this.isReversed()&&k>=f;let m,g=-1,y=this.isReversed()?s.length-1:0,C=this.isReversed()?e.length-1:0,S=!1;for(;h();){const k=s.charAt(y),v=a[k],A=(v==null?void 0:v.transform)!=null?v.transform(e.charAt(C)):e.charAt(C);if(!i.includes(y)&&v!=null?(A.match(v.pattern)!=null?(l[d](A),v.repeated?(g===-1?g=y:y===f&&y!==g&&(y=g-c),f===g&&(y-=c)):v.multiple&&(S=!0,y-=c),y+=c):v.multiple?S&&(y+=c,C-=c,S=!1):A===m?m=void 0:v.optional&&(y+=c,C-=c),C+=c):(r&&!this.isEager()&&l[d](k),A===k&&!this.isEager()?C+=c:m=k,this.isEager()||(y+=c)),this.isEager())for(;p(y)&&(a[s.charAt(y)]==null||i.includes(y));)r?l[d](s.charAt(y)):s.charAt(y)===e.charAt(C)&&(C+=c),y+=c}return this.memo.set(o,l.join("")),this.memo.get(o)}}const Su=n=>JSON.parse(n.replaceAll("'",'"')),wu=(n,e={})=>{const t={...e};return n.dataset.maska!=null&&n.dataset.maska!==""&&(t.mask=g2(n.dataset.maska)),n.dataset.maskaEager!=null&&(t.eager=Ma(n.dataset.maskaEager)),n.dataset.maskaReversed!=null&&(t.reversed=Ma(n.dataset.maskaReversed)),n.dataset.maskaTokensReplace!=null&&(t.tokensReplace=Ma(n.dataset.maskaTokensReplace)),n.dataset.maskaTokens!=null&&(t.tokens=y2(n.dataset.maskaTokens)),t},Ma=n=>n!==""?!!JSON.parse(n):!0,g2=n=>n.startsWith("[")&&n.endsWith("]")?Su(n):n,y2=n=>{if(n.startsWith("{")&&n.endsWith("}"))return Su(n);const e={};return n.split("|").forEach(t=>{const r=t.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};class v2{constructor(e,t={}){bo(this,"items",new Map),bo(this,"beforeinputEvent",r=>{const o=r.target,s=this.items.get(o);s.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&s.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),bo(this,"inputEvent",r=>{if(r instanceof CustomEvent&&r.type==="input"&&r.detail!=null&&typeof r.detail=="object"&&"masked"in r.detail)return;const o=r.target,s=this.items.get(o),i=o.value,l=o.selectionStart,a=o.selectionEnd;let c=i;if(s.isEager()){const d=s.masked(i),f=s.unmasked(i);f===""&&"data"in r&&r.data!=null?c=r.data:f!==s.unmasked(d)&&(c=f)}if(this.setMaskedValue(o,c),"inputType"in r&&(r.inputType.startsWith("delete")||l!=null&&l<i.length))try{o.setSelectionRange(l,a)}catch{}}),this.options=t,typeof e=="string"?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(t)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(t))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,t){const r=this.items.get(e),o=new Cu(wu(e,this.getMaskOpts(t)));return JSON.stringify(r.opts)!==JSON.stringify(o.opts)}needUpdateValue(e){const t=e.dataset.maskaValue;return t==null&&e.value!==""||t!=null&&t!==e.value}getMaskOpts(e){const{onMaska:t,preProcess:r,postProcess:o,...s}=e;return s}init(e,t){for(const r of e){const o=new Cu(wu(r,t));this.items.set(r,o),r.value!==""&&this.setMaskedValue(r,r.value),r.addEventListener("input",this.inputEvent),r.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,t){const r=this.items.get(e);this.options.preProcess!=null&&(t=this.options.preProcess(t));const o=r.masked(t),s=r.unmasked(r.isEager()?o:t),i=r.completed(t),l={masked:o,unmasked:s,completed:i};t=o,this.options.postProcess!=null&&(t=this.options.postProcess(t)),e.value=t,e.dataset.maskaValue=t,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(a=>a(l)):this.options.onMaska(l)),e.dispatchEvent(new CustomEvent("maska",{detail:l})),e.dispatchEvent(new CustomEvent("input",{detail:l}))}}const Na=new WeakMap,b2=n=>{setTimeout(()=>{var e;((e=Na.get(n))==null?void 0:e.needUpdateValue(n))===!0&&n.dispatchEvent(new CustomEvent("input"))})},E2=(n,e)=>{const t=n instanceof HTMLInputElement?n:n.querySelector("input"),r={...e.arg};if(t==null||(t==null?void 0:t.type)==="file")return;b2(t);const o=Na.get(t);if(o!=null){if(!o.needUpdateOptions(t,r))return;o.destroy()}if(e.value!=null){const s=e.value,i=l=>{s.masked=l.masked,s.unmasked=l.unmasked,s.completed=l.completed};r.onMaska=r.onMaska==null?i:Array.isArray(r.onMaska)?[...r.onMaska,i]:[r.onMaska,i]}Na.set(t,new v2(t,r))},C2=["value","type"],nr=u.defineComponent({__name:"BDFormInput",props:{modelValue:{default:""},formGroupClass:{default:void 0},type:{default:"text"},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:lt.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Or(),o=er(t,"modelValue",e),s=`__BD__FORM__LABEL__${r.value}`,i=`__BD__FORM__GROUP__${r.value}`,l=`form-input-${t.label?t.label.replace(/ /g,"-").toLowerCase():r.value}`,a=`validationFeedback${t.label?t.label.replace(/ /g,""):r.value}`,c=u.computed(()=>({[`${t.inputClass}`]:t.inputClass,"is-invalid":t.state===!1,"is-valid":t.state===!0,[`form-control-${t.size}`]:t.size})),d=u.computed(()=>({[`${t.invalidFeedbackClass}`]:t.invalidFeedbackClass,"is-invalid":t.state===!1})),f=u.computed(()=>({placeholder:t.placeholder?t.placeholder:null,readonly:t.readonly===!0,disabled:t.disabled===!0,autofocus:t.autofocus===!0,tabindex:t.tabindex?t.tabindex:null,"aria-describedby":t.state===!1&&t.invalidFeedbackText?a:null,"data-maska":t.mask})),h=t2(p=>{o.value=p.target.value},t.delayTimeMs);return(p,m)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["bd-form-input",p.formGroupClass]),id:i},[u.renderSlot(p.$slots,"label",{},()=>[p.label?(u.openBlock(),u.createElementBlock("label",{key:0,for:l,id:s,class:u.normalizeClass(["form-label",p.labelClass])},u.toDisplayString(p.label),3)):u.createCommentVNode("",!0)]),u.createElementVNode("div",{class:u.normalizeClass(p.formFieldClass)},[u.withDirectives(u.createElementVNode("input",u.mergeProps({value:p.modelValue,type:p.type,id:l,class:["form-control",c.value]},f.value,{onInput:m[0]||(m[0]=(...g)=>u.unref(h)&&u.unref(h)(...g)),onClick:m[1]||(m[1]=g=>p.$emit("click")),onBlur:m[2]||(m[2]=g=>p.$emit("blur")),onKeydown:m[3]||(m[3]=u.withKeys(g=>p.$emit("enter"),["enter"]))}),null,16,C2),[[u.unref(E2)]]),u.renderSlot(p.$slots,"default")],2),u.createVNode(u.unref(ys),{text:p.invalidFeedbackText,class:u.normalizeClass(d.value),state:p.state,id:a},null,8,["text","class","state"])],2))}}),S2={class:"input-group bd-input-group"},w2=["for"],ku=u.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(n){const e=n,t=u.useAttrs();return(r,o)=>(u.openBlock(),u.createElementBlock("fieldset",S2,[e.label?(u.openBlock(),u.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},u.toDisplayString(e.label),9,w2)):u.createCommentVNode("",!0),u.createElementVNode("div",{class:u.normalizeClass(u.unref(t).class)},[u.renderSlot(r.$slots,"default")],2)]))}}),k2={class:"invalid-feedback bd-invalid-feedback"},ys=u.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(n){const e=n;return(t,r)=>(u.openBlock(),u.createElementBlock("div",k2,[e.state?(u.openBlock(),u.createBlock(u.unref(xr),{key:0})):(u.openBlock(),u.createBlock(u.unref(us),{key:1})),u.createTextVNode(" "+u.toDisplayString(e.text),1)]))}}),T2={key:0},x2={key:1},Tu=u.defineComponent({__name:"BDBadge",props:{variant:{default:hs.PRIMARY}},setup(n){const e=n,t=u.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(u.openBlock(),u.createElementBlock("span",{role:"status",class:u.normalizeClass(t.value)},[r.variant==="danger"?(u.openBlock(),u.createElementBlock("span",T2,[u.createVNode(u.unref(qn))])):u.createCommentVNode("",!0),r.variant==="success"?(u.openBlock(),u.createElementBlock("span",x2,[u.createVNode(u.unref(xr))])):u.createCommentVNode("",!0),u.renderSlot(r.$slots,"default")],2))}}),A2=["onSubmit","onReset"],xu=u.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(n,{emit:e}){function t(){e("submit")}function r(){e("reset")}return(o,s)=>(u.openBlock(),u.createElementBlock("form",{onSubmit:u.withModifiers(t,["prevent"]),onReset:u.withModifiers(r,["prevent"])},[u.renderSlot(o.$slots,"default")],40,A2))}}),O2={"aria-label":"Page navigation",class:"bd-pagination"},M2={class:"page-item"},N2=["data-page"],_2=["data-page"],I2={class:"page-item"},D2=["data-page"],Au=u.defineComponent({__name:"BDPagination",props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:["click","update:modelValue"],setup(n,{emit:e}){const t=n,r=er(t,"modelValue",e),o=u.ref(Math.ceil(t.totalRows/t.rowsPerPage)),s=u.ref([]);u.watch([()=>t.totalRows,()=>t.rowsPerPage],()=>{o.value=Math.ceil(t.totalRows/t.rowsPerPage),s.value=d(r.value)}),u.onMounted(()=>{s.value=d(r.value)});const i=u.computed(()=>({[`${t.class}`]:t.class,colleague:!t.isPatient})),l=f=>{const h=f.currentTarget.getAttribute("data-page"),p=Number(h);isNaN(Number(p))||(r.value=p,s.value=d(p)),e("click",p)},a=(f,h,p)=>p<=h?p:f==1?6:f<=4?5:1,c=(f,h,p)=>p<=h?0:f==p?6:f>p-4?5:1,d=f=>{const h=[],m=a(f,7,o.value),g=o.value>7&&f>4,y=o.value>7&&f<o.value-3,C=g&&y,S=c(f,7,o.value);for(let k=1;k<=m;k++)h.push(k);if(g&&h.push("..."),C)for(let k=f-1;k<=f+1;k++)h.push(k);y&&h.push("...");for(let k=1;k<=S;k++)h.push(o.value-S+k);return h};return(f,h)=>(u.openBlock(),u.createElementBlock("div",O2,[u.createElementVNode("ul",{class:u.normalizeClass(["pagination",i.value])},[u.withDirectives(u.createElementVNode("li",M2,[u.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:l,"data-page":u.unref(r)-1},[u.createVNode(u.unref(ya))],8,N2)],512),[[u.vShow,u.unref(r)>1]]),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.value,p=>(u.openBlock(),u.createElementBlock("li",{class:u.normalizeClass(["page-item",{active:u.unref(r)===p,disabled:typeof p=="string"}]),key:p},[u.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:l,"data-page":p},u.toDisplayString(p),9,_2)],2))),128)),u.withDirectives(u.createElementVNode("li",I2,[u.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:l,"data-page":u.unref(r)+1},[u.createVNode(u.unref(va))],8,D2)],512),[[u.vShow,u.unref(r)<o.value]])],2)]))}}),L2=["disabled"],R2=["label"],B2=["value"],$2=["value"],Ou=u.defineComponent({__name:"BDFormSelect",props:{size:{default:lt.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:""},state:{type:[Boolean,null],default:null}},emits:["update:modelValue","change","input"],setup(n,{emit:e}){const t=n,r=er(t,"modelValue",e),o=u.ref(null),{focused:s}=o2(o,{initialValue:t.autofocus}),i=u.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":t.state===!1,[`form-select-${t.size}`]:["xs","sm","lg"].includes(t.size)}));u.watch(()=>t.autofocus,d=>{d&&(s.value=!0)});const l=d=>{r.value=d.target.value;let f=c(d.target.value);e("input",f)},a=d=>{let f=c(d.target.value);e("change",f)},c=d=>{try{return JSON.parse(d)}catch{return d}};return(d,f)=>u.withDirectives((u.openBlock(),u.createElementBlock("select",{class:u.normalizeClass(i.value),"onUpdate:modelValue":f[0]||(f[0]=h=>u.isRef(r)?r.value=h:null),disabled:t.disabled,ref_key:"input",ref:o,onInput:l,onChange:a},[u.renderSlot(d.$slots,"first"),t.options&&t.options.length>0&&t.options[0].label&&t.options[0].options?(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:0},u.renderList(t.options,h=>(u.openBlock(),u.createElementBlock("optgroup",{label:h.label},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(h.options,p=>(u.openBlock(),u.createElementBlock("option",{value:JSON.stringify(p.value),key:p.value},u.toDisplayString(p.text),9,B2))),128))],8,R2))),256)):(u.openBlock(!0),u.createElementBlock(u.Fragment,{key:1},u.renderList(t.options,h=>(u.openBlock(),u.createElementBlock("option",{value:h.value,key:h.value},u.toDisplayString(h.text),9,$2))),128))],42,L2)),[[u.vModelSelect,u.unref(r)]])}}),P2=["value","true-value","false-value","data-checked"],Mu=u.defineComponent({__name:"BDFormCheckbox",props:{modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Or(),o=er(t,"modelValue",e),s=`form-check-input-${r.value}`,i=u.computed(()=>["form-check","bd-form-checkbox"]),l=u.computed(()=>({"form-check-input":!0,"is-invalid":t.state===!1})),a=c=>e("change",c.target.value);return(c,d)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(i.value)},[u.withDirectives(u.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>u.isRef(o)?o.value=f:null),id:s,class:u.normalizeClass(l.value),type:"checkbox",value:c.value,"true-value":c.value,"false-value":c.uncheckedValue,"data-checked":u.unref(o)===c.value,onChange:a},null,42,P2),[[u.vModelCheckbox,u.unref(o)]]),u.createElementVNode("label",{class:"form-check-label",for:s},[u.renderSlot(c.$slots,"default")]),u.renderSlot(c.$slots,"last")],2))}}),F2={key:0,class:"bd-article__body"},V2={key:1},Nu=u.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=o=>e("click",{event:o,identifier:t.identifier});return(o,s)=>(u.openBlock(),u.createElementBlock("article",{class:"bd-article",onClick:r},[u.createElementVNode("header",null,[u.renderSlot(o.$slots,"header",{},()=>[u.createElementVNode("h5",null,u.toDisplayString(t.title),1)])]),t.hideBody?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",F2,[u.renderSlot(o.$slots,"default",{},()=>[u.createTextVNode(u.toDisplayString(t.text),1)])])),t.hideFooter?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("footer",V2,[u.renderSlot(o.$slots,"footer")]))]))}}),Mr={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},z2=["id"],H2={class:"toast-header"},U2=u.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),j2={class:"toast-body"},_a=u.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Mr.INFO},title:{default:""},text:{default:""}},setup(n){const e=n,t=u.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=u.computed(()=>e.variant!==Mr.SUCCESS);return(o,s)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["toast bd-toast",t.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[u.createElementVNode("div",H2,[r.value?(u.openBlock(),u.createBlock(u.unref(qn),{key:0})):(u.openBlock(),u.createBlock(u.unref(xr),{key:1})),u.createElementVNode("h5",null,u.toDisplayString(e.title),1),U2]),u.createElementVNode("div",j2,[u.createElementVNode("span",null,u.toDisplayString(e.text),1)])],10,z2))}}),$e="",vs=n=>typeof n=="string"||n instanceof String,W2={class:"bd-pill"},K2=["src"],Y2={class:"bd-pill__description"},G2=["href"],J2=["id","textContent","title"],Z2=["id","textContent","title"],bs=u.defineComponent({__name:"BDPill",props:{imgSrc:{default:$e},uri:{default:$e},uriDisplayName:{default:$e},title:{default:$e},subtitle:{default:$e},showClose:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=Or(),o=u.computed(()=>t.uri),s=u.computed(()=>t.uriDisplayName!==$e?t.uriDisplayName:t.uri),i=u.computed(()=>t.imgSrc),l=u.computed(()=>t.title),a=u.computed(()=>t.subtitle),c=u.computed(()=>`bd-pill-title-${r.value}`),d=u.computed(()=>`bd-pill-subtitle-${r.value}`);return(f,h)=>(u.openBlock(),u.createElementBlock("div",W2,[u.createElementVNode("img",{src:i.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,K2),u.createElementVNode("div",Y2,[u.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[u.createVNode(u.unref(ds),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),u.createTextVNode(" "+u.toDisplayString(s.value),1)],8,G2),u.createElementVNode("span",{class:"bd-pill__title",id:c.value,textContent:u.toDisplayString(l.value),"data-bs-toggle":"tooltip",title:l.value},null,8,J2),u.createElementVNode("span",{class:"bd-pill__subtitle",id:d.value,textContent:u.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,Z2)])]))}}),Es=u.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(n,{emit:e}){const t=n,r=()=>{e("click")};return(o,s)=>(u.openBlock(),u.createElementBlock("li",u.mergeProps({class:"bd-dropdown-item"},o.$attrs),[u.createVNode(Ar,u.mergeProps({class:"dropdown-item",onClick:r},t),{default:u.withCtx(()=>[u.renderSlot(o.$slots,"default",{},()=>[u.createTextVNode(u.toDisplayString(t.text),1)])]),_:3},16)],16))}});var Ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Da(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _u={exports:{}};(function(n,e){(function(r,o){n.exports=o()})(self,function(){return function(){var t={3099:function(i){i.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},6077:function(i,l,a){var c=a(111);i.exports=function(d){if(!c(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},1223:function(i,l,a){var c=a(5112),d=a(30),f=a(3070),h=c("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:d(null)}),i.exports=function(m){p[h][m]=!0}},1530:function(i,l,a){var c=a(8710).charAt;i.exports=function(d,f,h){return f+(h?c(d,f).length:1)}},5787:function(i){i.exports=function(l,a,c){if(!(l instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return l}},9670:function(i,l,a){var c=a(111);i.exports=function(d){if(!c(d))throw TypeError(String(d)+" is not an object");return d}},4019:function(i){i.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(i,l,a){var c=a(4019),d=a(9781),f=a(7854),h=a(111),p=a(6656),m=a(648),g=a(8880),y=a(1320),C=a(3070).f,S=a(9518),k=a(7674),v=a(5112),A=a(9711),T=f.Int8Array,V=T&&T.prototype,H=f.Uint8ClampedArray,U=H&&H.prototype,B=T&&S(T),L=V&&S(V),z=Object.prototype,W=z.isPrototypeOf,j=v("toStringTag"),F=A("TYPED_ARRAY_TAG"),P=c&&!!k&&m(f.opera)!=="Opera",G=!1,D,Q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},ce=function(x){if(!h(x))return!1;var M=m(x);return M==="DataView"||p(Q,M)||p(te,M)},me=function(ve){if(!h(ve))return!1;var x=m(ve);return p(Q,x)||p(te,x)},ge=function(ve){if(me(ve))return ve;throw TypeError("Target is not a typed array")},Ce=function(ve){if(k){if(W.call(B,ve))return ve}else for(var x in Q)if(p(Q,D)){var M=f[x];if(M&&(ve===M||W.call(M,ve)))return ve}throw TypeError("Target is not a typed array constructor")},we=function(ve,x,M){if(d){if(M)for(var w in Q){var O=f[w];O&&p(O.prototype,ve)&&delete O.prototype[ve]}(!L[ve]||M)&&y(L,ve,M?x:P&&V[ve]||x)}},Te=function(ve,x,M){var w,O;if(d){if(k){if(M)for(w in Q)O=f[w],O&&p(O,ve)&&delete O[ve];if(!B[ve]||M)try{return y(B,ve,M?x:P&&T[ve]||x)}catch{}else return}for(w in Q)O=f[w],O&&(!O[ve]||M)&&y(O,ve,x)}};for(D in Q)f[D]||(P=!1);if((!P||typeof B!="function"||B===Function.prototype)&&(B=function(){throw TypeError("Incorrect invocation")},P))for(D in Q)f[D]&&k(f[D],B);if((!P||!L||L===z)&&(L=B.prototype,P))for(D in Q)f[D]&&k(f[D].prototype,L);if(P&&S(U)!==L&&k(U,L),d&&!p(L,j)){G=!0,C(L,j,{get:function(){return h(this)?this[F]:void 0}});for(D in Q)f[D]&&g(f[D],F,D)}i.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:G&&F,aTypedArray:ge,aTypedArrayConstructor:Ce,exportTypedArrayMethod:we,exportTypedArrayStaticMethod:Te,isView:ce,isTypedArray:me,TypedArray:B,TypedArrayPrototype:L}},3331:function(i,l,a){var c=a(7854),d=a(9781),f=a(4019),h=a(8880),p=a(2248),m=a(7293),g=a(5787),y=a(9958),C=a(7466),S=a(7067),k=a(1179),v=a(9518),A=a(7674),T=a(8006).f,V=a(3070).f,H=a(1285),U=a(8003),B=a(9909),L=B.get,z=B.set,W="ArrayBuffer",j="DataView",F="prototype",P="Wrong length",G="Wrong index",D=c[W],Q=D,te=c[j],ce=te&&te[F],me=Object.prototype,ge=c.RangeError,Ce=k.pack,we=k.unpack,Te=function(Z){return[Z&255]},ve=function(Z){return[Z&255,Z>>8&255]},x=function(Z){return[Z&255,Z>>8&255,Z>>16&255,Z>>24&255]},M=function(Z){return Z[3]<<24|Z[2]<<16|Z[1]<<8|Z[0]},w=function(Z){return Ce(Z,23,4)},O=function(Z){return Ce(Z,52,8)},b=function(Z,X){V(Z[F],X,{get:function(){return L(this)[X]}})},E=function(Z,X,ne,he){var Se=S(ne),_e=L(Z);if(Se+X>_e.byteLength)throw ge(G);var ze=L(_e.buffer).bytes,Ve=Se+_e.byteOffset,De=ze.slice(Ve,Ve+X);return he?De:De.reverse()},_=function(Z,X,ne,he,Se,_e){var ze=S(ne),Ve=L(Z);if(ze+X>Ve.byteLength)throw ge(G);for(var De=L(Ve.buffer).bytes,Ze=ze+Ve.byteOffset,St=he(+Se),at=0;at<X;at++)De[Ze+at]=St[_e?at:X-at-1]};if(!f)Q=function(X){g(this,Q,W);var ne=S(X);z(this,{bytes:H.call(new Array(ne),0),byteLength:ne}),d||(this.byteLength=ne)},te=function(X,ne,he){g(this,te,j),g(X,Q,j);var Se=L(X).byteLength,_e=y(ne);if(_e<0||_e>Se)throw ge("Wrong offset");if(he=he===void 0?Se-_e:C(he),_e+he>Se)throw ge(P);z(this,{buffer:X,byteLength:he,byteOffset:_e}),d||(this.buffer=X,this.byteLength=he,this.byteOffset=_e)},d&&(b(Q,"byteLength"),b(te,"buffer"),b(te,"byteLength"),b(te,"byteOffset")),p(te[F],{getInt8:function(X){return E(this,1,X)[0]<<24>>24},getUint8:function(X){return E(this,1,X)[0]},getInt16:function(X){var ne=E(this,2,X,arguments.length>1?arguments[1]:void 0);return(ne[1]<<8|ne[0])<<16>>16},getUint16:function(X){var ne=E(this,2,X,arguments.length>1?arguments[1]:void 0);return ne[1]<<8|ne[0]},getInt32:function(X){return M(E(this,4,X,arguments.length>1?arguments[1]:void 0))},getUint32:function(X){return M(E(this,4,X,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(X){return we(E(this,4,X,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(X){return we(E(this,8,X,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(X,ne){_(this,1,X,Te,ne)},setUint8:function(X,ne){_(this,1,X,Te,ne)},setInt16:function(X,ne){_(this,2,X,ve,ne,arguments.length>2?arguments[2]:void 0)},setUint16:function(X,ne){_(this,2,X,ve,ne,arguments.length>2?arguments[2]:void 0)},setInt32:function(X,ne){_(this,4,X,x,ne,arguments.length>2?arguments[2]:void 0)},setUint32:function(X,ne){_(this,4,X,x,ne,arguments.length>2?arguments[2]:void 0)},setFloat32:function(X,ne){_(this,4,X,w,ne,arguments.length>2?arguments[2]:void 0)},setFloat64:function(X,ne){_(this,8,X,O,ne,arguments.length>2?arguments[2]:void 0)}});else{if(!m(function(){D(1)})||!m(function(){new D(-1)})||m(function(){return new D,new D(1.5),new D(NaN),D.name!=W})){Q=function(X){return g(this,Q),new D(S(X))};for(var I=Q[F]=D[F],R=T(D),$=0,K;R.length>$;)(K=R[$++])in Q||h(Q,K,D[K]);I.constructor=Q}A&&v(ce)!==me&&A(ce,me);var J=new te(new Q(2)),Y=ce.setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),(J.getInt8(0)||!J.getInt8(1))&&p(ce,{setInt8:function(X,ne){Y.call(this,X,ne<<24>>24)},setUint8:function(X,ne){Y.call(this,X,ne<<24>>24)}},{unsafe:!0})}U(Q,W),U(te,j),i.exports={ArrayBuffer:Q,DataView:te}},1048:function(i,l,a){var c=a(7908),d=a(1400),f=a(7466),h=Math.min;i.exports=[].copyWithin||function(m,g){var y=c(this),C=f(y.length),S=d(m,C),k=d(g,C),v=arguments.length>2?arguments[2]:void 0,A=h((v===void 0?C:d(v,C))-k,C-S),T=1;for(k<S&&S<k+A&&(T=-1,k+=A-1,S+=A-1);A-- >0;)k in y?y[S]=y[k]:delete y[S],S+=T,k+=T;return y}},1285:function(i,l,a){var c=a(7908),d=a(1400),f=a(7466);i.exports=function(p){for(var m=c(this),g=f(m.length),y=arguments.length,C=d(y>1?arguments[1]:void 0,g),S=y>2?arguments[2]:void 0,k=S===void 0?g:d(S,g);k>C;)m[C++]=p;return m}},8533:function(i,l,a){var c=a(2092).forEach,d=a(9341),f=d("forEach");i.exports=f?[].forEach:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}},8457:function(i,l,a){var c=a(9974),d=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),g=a(1246);i.exports=function(C){var S=d(C),k=typeof this=="function"?this:Array,v=arguments.length,A=v>1?arguments[1]:void 0,T=A!==void 0,V=g(S),H=0,U,B,L,z,W,j;if(T&&(A=c(A,v>2?arguments[2]:void 0,2)),V!=null&&!(k==Array&&h(V)))for(z=V.call(S),W=z.next,B=new k;!(L=W.call(z)).done;H++)j=T?f(z,A,[L.value,H],!0):L.value,m(B,H,j);else for(U=p(S.length),B=new k(U);U>H;H++)j=T?A(S[H],H):S[H],m(B,H,j);return B.length=H,B}},1318:function(i,l,a){var c=a(5656),d=a(7466),f=a(1400),h=function(p){return function(m,g,y){var C=c(m),S=d(C.length),k=f(y,S),v;if(p&&g!=g){for(;S>k;)if(v=C[k++],v!=v)return!0}else for(;S>k;k++)if((p||k in C)&&C[k]===g)return p||k||0;return!p&&-1}};i.exports={includes:h(!0),indexOf:h(!1)}},2092:function(i,l,a){var c=a(9974),d=a(8361),f=a(7908),h=a(7466),p=a(5417),m=[].push,g=function(y){var C=y==1,S=y==2,k=y==3,v=y==4,A=y==6,T=y==7,V=y==5||A;return function(H,U,B,L){for(var z=f(H),W=d(z),j=c(U,B,3),F=h(W.length),P=0,G=L||p,D=C?G(H,F):S||T?G(H,0):void 0,Q,te;F>P;P++)if((V||P in W)&&(Q=W[P],te=j(Q,P,z),y))if(C)D[P]=te;else if(te)switch(y){case 3:return!0;case 5:return Q;case 6:return P;case 2:m.call(D,Q)}else switch(y){case 4:return!1;case 7:m.call(D,Q)}return A?-1:k||v?v:D}};i.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},6583:function(i,l,a){var c=a(5656),d=a(9958),f=a(7466),h=a(9341),p=Math.min,m=[].lastIndexOf,g=!!m&&1/[1].lastIndexOf(1,-0)<0,y=h("lastIndexOf"),C=g||!y;i.exports=C?function(k){if(g)return m.apply(this,arguments)||0;var v=c(this),A=f(v.length),T=A-1;for(arguments.length>1&&(T=p(T,d(arguments[1]))),T<0&&(T=A+T);T>=0;T--)if(T in v&&v[T]===k)return T||0;return-1}:m},1194:function(i,l,a){var c=a(7293),d=a(5112),f=a(7392),h=d("species");i.exports=function(p){return f>=51||!c(function(){var m=[],g=m.constructor={};return g[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},9341:function(i,l,a){var c=a(7293);i.exports=function(d,f){var h=[][d];return!!h&&c(function(){h.call(null,f||function(){throw 1},1)})}},3671:function(i,l,a){var c=a(3099),d=a(7908),f=a(8361),h=a(7466),p=function(m){return function(g,y,C,S){c(y);var k=d(g),v=f(k),A=h(k.length),T=m?A-1:0,V=m?-1:1;if(C<2)for(;;){if(T in v){S=v[T],T+=V;break}if(T+=V,m?T<0:A<=T)throw TypeError("Reduce of empty array with no initial value")}for(;m?T>=0:A>T;T+=V)T in v&&(S=y(S,v[T],T,k));return S}};i.exports={left:p(!1),right:p(!0)}},5417:function(i,l,a){var c=a(111),d=a(3157),f=a(5112),h=f("species");i.exports=function(p,m){var g;return d(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||d(g.prototype))?g=void 0:c(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(m===0?0:m)}},3411:function(i,l,a){var c=a(9670),d=a(9212);i.exports=function(f,h,p,m){try{return m?h(c(p)[0],p[1]):h(p)}catch(g){throw d(f),g}}},7072:function(i,l,a){var c=a(5112),d=c("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[d]=function(){return this},Array.from(p,function(){throw 2})}catch{}i.exports=function(m,g){if(!g&&!f)return!1;var y=!1;try{var C={};C[d]=function(){return{next:function(){return{done:y=!0}}}},m(C)}catch{}return y}},4326:function(i){var l={}.toString;i.exports=function(a){return l.call(a).slice(8,-1)}},648:function(i,l,a){var c=a(1694),d=a(4326),f=a(5112),h=f("toStringTag"),p=d(function(){return arguments}())=="Arguments",m=function(g,y){try{return g[y]}catch{}};i.exports=c?d:function(g){var y,C,S;return g===void 0?"Undefined":g===null?"Null":typeof(C=m(y=Object(g),h))=="string"?C:p?d(y):(S=d(y))=="Object"&&typeof y.callee=="function"?"Arguments":S}},9920:function(i,l,a){var c=a(6656),d=a(3887),f=a(1236),h=a(3070);i.exports=function(p,m){for(var g=d(m),y=h.f,C=f.f,S=0;S<g.length;S++){var k=g[S];c(p,k)||y(p,k,C(m,k))}}},8544:function(i,l,a){var c=a(7293);i.exports=!c(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},4994:function(i,l,a){var c=a(3383).IteratorPrototype,d=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};i.exports=function(g,y,C){var S=y+" Iterator";return g.prototype=d(c,{next:f(1,C)}),h(g,S,!1,!0),p[S]=m,g}},8880:function(i,l,a){var c=a(9781),d=a(3070),f=a(9114);i.exports=c?function(h,p,m){return d.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}},9114:function(i){i.exports=function(l,a){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:a}}},6135:function(i,l,a){var c=a(7593),d=a(3070),f=a(9114);i.exports=function(h,p,m){var g=c(p);g in h?d.f(h,g,f(0,m)):h[g]=m}},654:function(i,l,a){var c=a(2109),d=a(4994),f=a(9518),h=a(7674),p=a(8003),m=a(8880),g=a(1320),y=a(5112),C=a(1913),S=a(7497),k=a(3383),v=k.IteratorPrototype,A=k.BUGGY_SAFARI_ITERATORS,T=y("iterator"),V="keys",H="values",U="entries",B=function(){return this};i.exports=function(L,z,W,j,F,P,G){d(W,z,j);var D=function(x){if(x===F&&ge)return ge;if(!A&&x in ce)return ce[x];switch(x){case V:return function(){return new W(this,x)};case H:return function(){return new W(this,x)};case U:return function(){return new W(this,x)}}return function(){return new W(this)}},Q=z+" Iterator",te=!1,ce=L.prototype,me=ce[T]||ce["@@iterator"]||F&&ce[F],ge=!A&&me||D(F),Ce=z=="Array"&&ce.entries||me,we,Te,ve;if(Ce&&(we=f(Ce.call(new L)),v!==Object.prototype&&we.next&&(!C&&f(we)!==v&&(h?h(we,v):typeof we[T]!="function"&&m(we,T,B)),p(we,Q,!0,!0),C&&(S[Q]=B))),F==H&&me&&me.name!==H&&(te=!0,ge=function(){return me.call(this)}),(!C||G)&&ce[T]!==ge&&m(ce,T,ge),S[z]=ge,F)if(Te={values:D(H),keys:P?ge:D(V),entries:D(U)},G)for(ve in Te)(A||te||!(ve in ce))&&g(ce,ve,Te[ve]);else c({target:z,proto:!0,forced:A||te},Te);return Te}},9781:function(i,l,a){var c=a(7293);i.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(i,l,a){var c=a(7854),d=a(111),f=c.document,h=d(f)&&d(f.createElement);i.exports=function(p){return h?f.createElement(p):{}}},8324:function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(i,l,a){var c=a(5005);i.exports=c("navigator","userAgent")||""},7392:function(i,l,a){var c=a(7854),d=a(8113),f=c.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):d&&(m=d.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=d.match(/Chrome\/(\d+)/),m&&(g=m[1]))),i.exports=g&&+g},748:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(i,l,a){var c=a(7854),d=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),g=a(4705);i.exports=function(y,C){var S=y.target,k=y.global,v=y.stat,A,T,V,H,U,B;if(k?T=c:v?T=c[S]||p(S,{}):T=(c[S]||{}).prototype,T)for(V in C){if(U=C[V],y.noTargetGet?(B=d(T,V),H=B&&B.value):H=T[V],A=g(k?V:S+(v?".":"#")+V,y.forced),!A&&H!==void 0){if(typeof U==typeof H)continue;m(U,H)}(y.sham||H&&H.sham)&&f(U,"sham",!0),h(T,V,U,y)}}},7293:function(i){i.exports=function(l){try{return!!l()}catch{return!0}}},7007:function(i,l,a){a(4916);var c=a(1320),d=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),g=!d(function(){var v=/./;return v.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(v,"$<a>")!=="7"}),y=function(){return"a".replace(/./,"$0")==="$0"}(),C=f("replace"),S=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),k=!d(function(){var v=/(?:)/,A=v.exec;v.exec=function(){return A.apply(this,arguments)};var T="ab".split(v);return T.length!==2||T[0]!=="a"||T[1]!=="b"});i.exports=function(v,A,T,V){var H=f(v),U=!d(function(){var F={};return F[H]=function(){return 7},""[v](F)!=7}),B=U&&!d(function(){var F=!1,P=/a/;return v==="split"&&(P={},P.constructor={},P.constructor[m]=function(){return P},P.flags="",P[H]=/./[H]),P.exec=function(){return F=!0,null},P[H](""),!F});if(!U||!B||v==="replace"&&!(g&&y&&!S)||v==="split"&&!k){var L=/./[H],z=T(H,""[v],function(F,P,G,D,Q){return P.exec===h?U&&!Q?{done:!0,value:L.call(P,G,D)}:{done:!0,value:F.call(G,P,D)}:{done:!1}},{REPLACE_KEEPS_$0:y,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:S}),W=z[0],j=z[1];c(String.prototype,v,W),c(RegExp.prototype,H,A==2?function(F,P){return j.call(F,this,P)}:function(F){return j.call(F,this)})}V&&p(RegExp.prototype[H],"sham",!0)}},9974:function(i,l,a){var c=a(3099);i.exports=function(d,f,h){if(c(d),f===void 0)return d;switch(h){case 0:return function(){return d.call(f)};case 1:return function(p){return d.call(f,p)};case 2:return function(p,m){return d.call(f,p,m)};case 3:return function(p,m,g){return d.call(f,p,m,g)}}return function(){return d.apply(f,arguments)}}},5005:function(i,l,a){var c=a(857),d=a(7854),f=function(h){return typeof h=="function"?h:void 0};i.exports=function(h,p){return arguments.length<2?f(c[h])||f(d[h]):c[h]&&c[h][p]||d[h]&&d[h][p]}},1246:function(i,l,a){var c=a(648),d=a(7497),f=a(5112),h=f("iterator");i.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||d[c(p)]}},8554:function(i,l,a){var c=a(9670),d=a(1246);i.exports=function(f){var h=d(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return c(h.call(f))}},647:function(i,l,a){var c=a(7908),d=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;i.exports=function(m,g,y,C,S,k){var v=y+m.length,A=C.length,T=p;return S!==void 0&&(S=c(S),T=h),f.call(k,T,function(V,H){var U;switch(H.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,y);case"'":return g.slice(v);case"<":U=S[H.slice(1,-1)];break;default:var B=+H;if(B===0)return V;if(B>A){var L=d(B/10);return L===0?V:L<=A?C[L-1]===void 0?H.charAt(1):C[L-1]+H.charAt(1):V}U=C[B-1]}return U===void 0?"":U})}},7854:function(i,l,a){var c=function(d){return d&&d.Math==Math&&d};i.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},6656:function(i){var l={}.hasOwnProperty;i.exports=function(a,c){return l.call(a,c)}},3501:function(i){i.exports={}},490:function(i,l,a){var c=a(5005);i.exports=c("document","documentElement")},4664:function(i,l,a){var c=a(9781),d=a(7293),f=a(317);i.exports=!c&&!d(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(i){var l=Math.abs,a=Math.pow,c=Math.floor,d=Math.log,f=Math.LN2,h=function(m,g,y){var C=new Array(y),S=y*8-g-1,k=(1<<S)-1,v=k>>1,A=g===23?a(2,-24)-a(2,-77):0,T=m<0||m===0&&1/m<0?1:0,V=0,H,U,B;for(m=l(m),m!=m||m===1/0?(U=m!=m?1:0,H=k):(H=c(d(m)/f),m*(B=a(2,-H))<1&&(H--,B*=2),H+v>=1?m+=A/B:m+=A*a(2,1-v),m*B>=2&&(H++,B/=2),H+v>=k?(U=0,H=k):H+v>=1?(U=(m*B-1)*a(2,g),H=H+v):(U=m*a(2,v-1)*a(2,g),H=0));g>=8;C[V++]=U&255,U/=256,g-=8);for(H=H<<g|U,S+=g;S>0;C[V++]=H&255,H/=256,S-=8);return C[--V]|=T*128,C},p=function(m,g){var y=m.length,C=y*8-g-1,S=(1<<C)-1,k=S>>1,v=C-7,A=y-1,T=m[A--],V=T&127,H;for(T>>=7;v>0;V=V*256+m[A],A--,v-=8);for(H=V&(1<<-v)-1,V>>=-v,v+=g;v>0;H=H*256+m[A],A--,v-=8);if(V===0)V=1-k;else{if(V===S)return H?NaN:T?-1/0:1/0;H=H+a(2,g),V=V-k}return(T?-1:1)*H*a(2,V-g)};i.exports={pack:h,unpack:p}},8361:function(i,l,a){var c=a(7293),d=a(4326),f="".split;i.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return d(h)=="String"?f.call(h,""):Object(h)}:Object},9587:function(i,l,a){var c=a(111),d=a(7674);i.exports=function(f,h,p){var m,g;return d&&typeof(m=h.constructor)=="function"&&m!==p&&c(g=m.prototype)&&g!==p.prototype&&d(f,g),f}},2788:function(i,l,a){var c=a(5465),d=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(f){return d.call(f)}),i.exports=c.inspectSource},9909:function(i,l,a){var c=a(8536),d=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),g=a(6200),y=a(3501),C=d.WeakMap,S,k,v,A=function(z){return v(z)?k(z):S(z,{})},T=function(z){return function(W){var j;if(!f(W)||(j=k(W)).type!==z)throw TypeError("Incompatible receiver, "+z+" required");return j}};if(c){var V=m.state||(m.state=new C),H=V.get,U=V.has,B=V.set;S=function(z,W){return W.facade=z,B.call(V,z,W),W},k=function(z){return H.call(V,z)||{}},v=function(z){return U.call(V,z)}}else{var L=g("state");y[L]=!0,S=function(z,W){return W.facade=z,h(z,L,W),W},k=function(z){return p(z,L)?z[L]:{}},v=function(z){return p(z,L)}}i.exports={set:S,get:k,has:v,enforce:A,getterFor:T}},7659:function(i,l,a){var c=a(5112),d=a(7497),f=c("iterator"),h=Array.prototype;i.exports=function(p){return p!==void 0&&(d.Array===p||h[f]===p)}},3157:function(i,l,a){var c=a(4326);i.exports=Array.isArray||function(f){return c(f)=="Array"}},4705:function(i,l,a){var c=a(7293),d=/#|\.prototype\./,f=function(y,C){var S=p[h(y)];return S==g?!0:S==m?!1:typeof C=="function"?c(C):!!C},h=f.normalize=function(y){return String(y).replace(d,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",g=f.POLYFILL="P";i.exports=f},111:function(i){i.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},1913:function(i){i.exports=!1},7850:function(i,l,a){var c=a(111),d=a(4326),f=a(5112),h=f("match");i.exports=function(p){var m;return c(p)&&((m=p[h])!==void 0?!!m:d(p)=="RegExp")}},9212:function(i,l,a){var c=a(9670);i.exports=function(d){var f=d.return;if(f!==void 0)return c(f.call(d)).value}},3383:function(i,l,a){var c=a(7293),d=a(9518),f=a(8880),h=a(6656),p=a(5112),m=a(1913),g=p("iterator"),y=!1,C=function(){return this},S,k,v;[].keys&&(v=[].keys(),"next"in v?(k=d(d(v)),k!==Object.prototype&&(S=k)):y=!0);var A=S==null||c(function(){var T={};return S[g].call(T)!==T});A&&(S={}),(!m||A)&&!h(S,g)&&f(S,g,C),i.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:y}},7497:function(i){i.exports={}},133:function(i,l,a){var c=a(7293);i.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},590:function(i,l,a){var c=a(7293),d=a(5112),f=a(1913),h=d("iterator");i.exports=!c(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),m=p.searchParams,g="";return p.pathname="c%20d",m.forEach(function(y,C){m.delete("b"),g+=C+y}),f&&!p.toJSON||!m.sort||p.href!=="http://a/c%20d?a=1&c=3"||m.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!m[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||g!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(i,l,a){var c=a(7854),d=a(2788),f=c.WeakMap;i.exports=typeof f=="function"&&/native code/.test(d(f))},1574:function(i,l,a){var c=a(9781),d=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),g=a(8361),y=Object.assign,C=Object.defineProperty;i.exports=!y||d(function(){if(c&&y({b:1},y(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var S={},k={},v=Symbol(),A="abcdefghijklmnopqrst";return S[v]=7,A.split("").forEach(function(T){k[T]=T}),y({},S)[v]!=7||f(y({},k)).join("")!=A})?function(k,v){for(var A=m(k),T=arguments.length,V=1,H=h.f,U=p.f;T>V;)for(var B=g(arguments[V++]),L=H?f(B).concat(H(B)):f(B),z=L.length,W=0,j;z>W;)j=L[W++],(!c||U.call(B,j))&&(A[j]=B[j]);return A}:y},30:function(i,l,a){var c=a(9670),d=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),g=a(6200),y=">",C="<",S="prototype",k="script",v=g("IE_PROTO"),A=function(){},T=function(L){return C+k+y+L+C+"/"+k+y},V=function(L){L.write(T("")),L.close();var z=L.parentWindow.Object;return L=null,z},H=function(){var L=m("iframe"),z="java"+k+":",W;return L.style.display="none",p.appendChild(L),L.src=String(z),W=L.contentWindow.document,W.open(),W.write(T("document.F=Object")),W.close(),W.F},U,B=function(){try{U=document.domain&&new ActiveXObject("htmlfile")}catch{}B=U?V(U):H();for(var L=f.length;L--;)delete B[S][f[L]];return B()};h[v]=!0,i.exports=Object.create||function(z,W){var j;return z!==null?(A[S]=c(z),j=new A,A[S]=null,j[v]=z):j=B(),W===void 0?j:d(j,W)}},6048:function(i,l,a){var c=a(9781),d=a(3070),f=a(9670),h=a(1956);i.exports=c?Object.defineProperties:function(m,g){f(m);for(var y=h(g),C=y.length,S=0,k;C>S;)d.f(m,k=y[S++],g[k]);return m}},3070:function(i,l,a){var c=a(9781),d=a(4664),f=a(9670),h=a(7593),p=Object.defineProperty;l.f=c?p:function(g,y,C){if(f(g),y=h(y,!0),f(C),d)try{return p(g,y,C)}catch{}if("get"in C||"set"in C)throw TypeError("Accessors not supported");return"value"in C&&(g[y]=C.value),g}},1236:function(i,l,a){var c=a(9781),d=a(5296),f=a(9114),h=a(5656),p=a(7593),m=a(6656),g=a(4664),y=Object.getOwnPropertyDescriptor;l.f=c?y:function(S,k){if(S=h(S),k=p(k,!0),g)try{return y(S,k)}catch{}if(m(S,k))return f(!d.f.call(S,k),S[k])}},8006:function(i,l,a){var c=a(6324),d=a(748),f=d.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(p){return c(p,f)}},5181:function(i,l){l.f=Object.getOwnPropertySymbols},9518:function(i,l,a){var c=a(6656),d=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;i.exports=h?Object.getPrototypeOf:function(g){return g=d(g),c(g,p)?g[p]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}},6324:function(i,l,a){var c=a(6656),d=a(5656),f=a(1318).indexOf,h=a(3501);i.exports=function(p,m){var g=d(p),y=0,C=[],S;for(S in g)!c(h,S)&&c(g,S)&&C.push(S);for(;m.length>y;)c(g,S=m[y++])&&(~f(C,S)||C.push(S));return C}},1956:function(i,l,a){var c=a(6324),d=a(748);i.exports=Object.keys||function(h){return c(h,d)}},5296:function(i,l){var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,d=c&&!a.call({1:2},1);l.f=d?function(h){var p=c(this,h);return!!p&&p.enumerable}:a},7674:function(i,l,a){var c=a(9670),d=a(6077);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,h={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(h,[]),f=h instanceof Array}catch{}return function(g,y){return c(g),d(y),f?p.call(g,y):g.__proto__=y,g}}():void 0)},288:function(i,l,a){var c=a(1694),d=a(648);i.exports=c?{}.toString:function(){return"[object "+d(this)+"]"}},3887:function(i,l,a){var c=a(5005),d=a(8006),f=a(5181),h=a(9670);i.exports=c("Reflect","ownKeys")||function(m){var g=d.f(h(m)),y=f.f;return y?g.concat(y(m)):g}},857:function(i,l,a){var c=a(7854);i.exports=c},2248:function(i,l,a){var c=a(1320);i.exports=function(d,f,h){for(var p in f)c(d,p,f[p],h);return d}},1320:function(i,l,a){var c=a(7854),d=a(8880),f=a(6656),h=a(3505),p=a(2788),m=a(9909),g=m.get,y=m.enforce,C=String(String).split("String");(i.exports=function(S,k,v,A){var T=A?!!A.unsafe:!1,V=A?!!A.enumerable:!1,H=A?!!A.noTargetGet:!1,U;if(typeof v=="function"&&(typeof k=="string"&&!f(v,"name")&&d(v,"name",k),U=y(v),U.source||(U.source=C.join(typeof k=="string"?k:""))),S===c){V?S[k]=v:h(k,v);return}else T?!H&&S[k]&&(V=!0):delete S[k];V?S[k]=v:d(S,k,v)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})},7651:function(i,l,a){var c=a(4326),d=a(2261);i.exports=function(f,h){var p=f.exec;if(typeof p=="function"){var m=p.call(f,h);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(c(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(f,h)}},2261:function(i,l,a){var c=a(7066),d=a(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=function(){var S=/a/,k=/b*/g;return f.call(S,"a"),f.call(k,"a"),S.lastIndex!==0||k.lastIndex!==0}(),g=d.UNSUPPORTED_Y||d.BROKEN_CARET,y=/()??/.exec("")[1]!==void 0,C=m||y||g;C&&(p=function(k){var v=this,A,T,V,H,U=g&&v.sticky,B=c.call(v),L=v.source,z=0,W=k;return U&&(B=B.replace("y",""),B.indexOf("g")===-1&&(B+="g"),W=String(k).slice(v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&k[v.lastIndex-1]!==`
5
5
  `)&&(L="(?: "+L+")",W=" "+W,z++),T=new RegExp("^(?:"+L+")",B)),y&&(T=new RegExp("^"+L+"$(?!\\s)",B)),m&&(A=v.lastIndex),V=f.call(U?T:v,W),U?V?(V.input=V.input.slice(z),V[0]=V[0].slice(z),V.index=v.lastIndex,v.lastIndex+=V[0].length):v.lastIndex=0:m&&V&&(v.lastIndex=v.global?V.index+V[0].length:A),y&&V&&V.length>1&&h.call(V[0],T,function(){for(H=1;H<arguments.length-2;H++)arguments[H]===void 0&&(V[H]=void 0)}),V}),i.exports=p},7066:function(i,l,a){var c=a(9670);i.exports=function(){var d=c(this),f="";return d.global&&(f+="g"),d.ignoreCase&&(f+="i"),d.multiline&&(f+="m"),d.dotAll&&(f+="s"),d.unicode&&(f+="u"),d.sticky&&(f+="y"),f}},2999:function(i,l,a){var c=a(7293);function d(f,h){return RegExp(f,h)}l.UNSUPPORTED_Y=c(function(){var f=d("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),l.BROKEN_CARET=c(function(){var f=d("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},4488:function(i){i.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},3505:function(i,l,a){var c=a(7854),d=a(8880);i.exports=function(f,h){try{d(c,f,h)}catch{c[f]=h}return h}},6340:function(i,l,a){var c=a(5005),d=a(3070),f=a(5112),h=a(9781),p=f("species");i.exports=function(m){var g=c(m),y=d.f;h&&g&&!g[p]&&y(g,p,{configurable:!0,get:function(){return this}})}},8003:function(i,l,a){var c=a(3070).f,d=a(6656),f=a(5112),h=f("toStringTag");i.exports=function(p,m,g){p&&!d(p=g?p:p.prototype,h)&&c(p,h,{configurable:!0,value:m})}},6200:function(i,l,a){var c=a(2309),d=a(9711),f=c("keys");i.exports=function(h){return f[h]||(f[h]=d(h))}},5465:function(i,l,a){var c=a(7854),d=a(3505),f="__core-js_shared__",h=c[f]||d(f,{});i.exports=h},2309:function(i,l,a){var c=a(1913),d=a(5465);(i.exports=function(f,h){return d[f]||(d[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:c?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(i,l,a){var c=a(9670),d=a(3099),f=a(5112),h=f("species");i.exports=function(p,m){var g=c(p).constructor,y;return g===void 0||(y=c(g)[h])==null?m:d(y)}},8710:function(i,l,a){var c=a(9958),d=a(4488),f=function(h){return function(p,m){var g=String(d(p)),y=c(m),C=g.length,S,k;return y<0||y>=C?h?"":void 0:(S=g.charCodeAt(y),S<55296||S>56319||y+1===C||(k=g.charCodeAt(y+1))<56320||k>57343?h?g.charAt(y):S:h?g.slice(y,y+2):(S-55296<<10)+(k-56320)+65536)}};i.exports={codeAt:f(!1),charAt:f(!0)}},3197:function(i){var l=2147483647,a=36,c=1,d=26,f=38,h=700,p=72,m=128,g="-",y=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,S="Overflow: input needs wider integers to process",k=a-c,v=Math.floor,A=String.fromCharCode,T=function(B){for(var L=[],z=0,W=B.length;z<W;){var j=B.charCodeAt(z++);if(j>=55296&&j<=56319&&z<W){var F=B.charCodeAt(z++);(F&64512)==56320?L.push(((j&1023)<<10)+(F&1023)+65536):(L.push(j),z--)}else L.push(j)}return L},V=function(B){return B+22+75*(B<26)},H=function(B,L,z){var W=0;for(B=z?v(B/h):B>>1,B+=v(B/L);B>k*d>>1;W+=a)B=v(B/k);return v(W+(k+1)*B/(B+f))},U=function(B){var L=[];B=T(B);var z=B.length,W=m,j=0,F=p,P,G;for(P=0;P<B.length;P++)G=B[P],G<128&&L.push(A(G));var D=L.length,Q=D;for(D&&L.push(g);Q<z;){var te=l;for(P=0;P<B.length;P++)G=B[P],G>=W&&G<te&&(te=G);var ce=Q+1;if(te-W>v((l-j)/ce))throw RangeError(S);for(j+=(te-W)*ce,W=te,P=0;P<B.length;P++){if(G=B[P],G<W&&++j>l)throw RangeError(S);if(G==W){for(var me=j,ge=a;;ge+=a){var Ce=ge<=F?c:ge>=F+d?d:ge-F;if(me<Ce)break;var we=me-Ce,Te=a-Ce;L.push(A(V(Ce+we%Te))),me=v(we/Te)}L.push(A(V(me))),F=H(j,ce,Q==D),j=0,++Q}}++j,++W}return L.join("")};i.exports=function(B){var L=[],z=B.toLowerCase().replace(C,".").split("."),W,j;for(W=0;W<z.length;W++)j=z[W],L.push(y.test(j)?"xn--"+U(j):j);return L.join(".")}},6091:function(i,l,a){var c=a(7293),d=a(1361),f="​…᠎";i.exports=function(h){return c(function(){return!!d[h]()||f[h]()!=f||d[h].name!==h})}},3111:function(i,l,a){var c=a(4488),d=a(1361),f="["+d+"]",h=RegExp("^"+f+f+"*"),p=RegExp(f+f+"*$"),m=function(g){return function(y){var C=String(c(y));return g&1&&(C=C.replace(h,"")),g&2&&(C=C.replace(p,"")),C}};i.exports={start:m(1),end:m(2),trim:m(3)}},1400:function(i,l,a){var c=a(9958),d=Math.max,f=Math.min;i.exports=function(h,p){var m=c(h);return m<0?d(m+p,0):f(m,p)}},7067:function(i,l,a){var c=a(9958),d=a(7466);i.exports=function(f){if(f===void 0)return 0;var h=c(f),p=d(h);if(h!==p)throw RangeError("Wrong length or index");return p}},5656:function(i,l,a){var c=a(8361),d=a(4488);i.exports=function(f){return c(d(f))}},9958:function(i){var l=Math.ceil,a=Math.floor;i.exports=function(c){return isNaN(c=+c)?0:(c>0?a:l)(c)}},7466:function(i,l,a){var c=a(9958),d=Math.min;i.exports=function(f){return f>0?d(c(f),9007199254740991):0}},7908:function(i,l,a){var c=a(4488);i.exports=function(d){return Object(c(d))}},4590:function(i,l,a){var c=a(3002);i.exports=function(d,f){var h=c(d);if(h%f)throw RangeError("Wrong offset");return h}},3002:function(i,l,a){var c=a(9958);i.exports=function(d){var f=c(d);if(f<0)throw RangeError("The argument can't be less than 0");return f}},7593:function(i,l,a){var c=a(111);i.exports=function(d,f){if(!c(d))return d;var h,p;if(f&&typeof(h=d.toString)=="function"&&!c(p=h.call(d))||typeof(h=d.valueOf)=="function"&&!c(p=h.call(d))||!f&&typeof(h=d.toString)=="function"&&!c(p=h.call(d)))return p;throw TypeError("Can't convert object to primitive value")}},1694:function(i,l,a){var c=a(5112),d=c("toStringTag"),f={};f[d]="z",i.exports=String(f)==="[object z]"},9843:function(i,l,a){var c=a(2109),d=a(7854),f=a(9781),h=a(3832),p=a(260),m=a(3331),g=a(5787),y=a(9114),C=a(8880),S=a(7466),k=a(7067),v=a(4590),A=a(7593),T=a(6656),V=a(648),H=a(111),U=a(30),B=a(7674),L=a(8006).f,z=a(7321),W=a(2092).forEach,j=a(6340),F=a(3070),P=a(1236),G=a(9909),D=a(9587),Q=G.get,te=G.set,ce=F.f,me=P.f,ge=Math.round,Ce=d.RangeError,we=m.ArrayBuffer,Te=m.DataView,ve=p.NATIVE_ARRAY_BUFFER_VIEWS,x=p.TYPED_ARRAY_TAG,M=p.TypedArray,w=p.TypedArrayPrototype,O=p.aTypedArrayConstructor,b=p.isTypedArray,E="BYTES_PER_ELEMENT",_="Wrong length",I=function(Z,X){for(var ne=0,he=X.length,Se=new(O(Z))(he);he>ne;)Se[ne]=X[ne++];return Se},R=function(Z,X){ce(Z,X,{get:function(){return Q(this)[X]}})},$=function(Z){var X;return Z instanceof we||(X=V(Z))=="ArrayBuffer"||X=="SharedArrayBuffer"},K=function(Z,X){return b(Z)&&typeof X!="symbol"&&X in Z&&String(+X)==String(X)},J=function(X,ne){return K(X,ne=A(ne,!0))?y(2,X[ne]):me(X,ne)},Y=function(X,ne,he){return K(X,ne=A(ne,!0))&&H(he)&&T(he,"value")&&!T(he,"get")&&!T(he,"set")&&!he.configurable&&(!T(he,"writable")||he.writable)&&(!T(he,"enumerable")||he.enumerable)?(X[ne]=he.value,X):ce(X,ne,he)};f?(ve||(P.f=J,F.f=Y,R(w,"buffer"),R(w,"byteOffset"),R(w,"byteLength"),R(w,"length")),c({target:"Object",stat:!0,forced:!ve},{getOwnPropertyDescriptor:J,defineProperty:Y}),i.exports=function(Z,X,ne){var he=Z.match(/\d+$/)[0]/8,Se=Z+(ne?"Clamped":"")+"Array",_e="get"+Z,ze="set"+Z,Ve=d[Se],De=Ve,Ze=De&&De.prototype,St={},at=function(de,fe){var xe=Q(de);return xe.view[_e](fe*he+xe.byteOffset,!0)},Gn=function(de,fe,xe){var Oe=Q(de);ne&&(xe=(xe=ge(xe))<0?0:xe>255?255:xe&255),Oe.view[ze](fe*he+Oe.byteOffset,xe,!0)},q=function(de,fe){ce(de,fe,{get:function(){return at(this,fe)},set:function(xe){return Gn(this,fe,xe)},enumerable:!0})};ve?h&&(De=X(function(de,fe,xe,Oe){return g(de,De,Se),D(function(){return H(fe)?$(fe)?Oe!==void 0?new Ve(fe,v(xe,he),Oe):xe!==void 0?new Ve(fe,v(xe,he)):new Ve(fe):b(fe)?I(De,fe):z.call(De,fe):new Ve(k(fe))}(),de,De)}),B&&B(De,M),W(L(Ve),function(de){de in De||C(De,de,Ve[de])}),De.prototype=Ze):(De=X(function(de,fe,xe,Oe){g(de,De,Se);var Ue=0,We=0,gt,yt,rt;if(!H(fe))rt=k(fe),yt=rt*he,gt=new we(yt);else if($(fe)){gt=fe,We=v(xe,he);var cn=fe.byteLength;if(Oe===void 0){if(cn%he||(yt=cn-We,yt<0))throw Ce(_)}else if(yt=S(Oe)*he,yt+We>cn)throw Ce(_);rt=yt/he}else return b(fe)?I(De,fe):z.call(De,fe);for(te(de,{buffer:gt,byteOffset:We,byteLength:yt,length:rt,view:new Te(gt)});Ue<rt;)q(de,Ue++)}),B&&B(De,M),Ze=De.prototype=U(w)),Ze.constructor!==De&&C(Ze,"constructor",De),x&&C(Ze,x,Se),St[Se]=De,c({global:!0,forced:De!=Ve,sham:!ve},St),E in De||C(De,E,he),E in Ze||C(Ze,E,he),j(Se)}):i.exports=function(){}},3832:function(i,l,a){var c=a(7854),d=a(7293),f=a(7072),h=a(260).NATIVE_ARRAY_BUFFER_VIEWS,p=c.ArrayBuffer,m=c.Int8Array;i.exports=!h||!d(function(){m(1)})||!d(function(){new m(-1)})||!f(function(g){new m,new m(null),new m(1.5),new m(g)},!0)||d(function(){return new m(new p(2),1,void 0).length!==1})},3074:function(i,l,a){var c=a(260).aTypedArrayConstructor,d=a(6707);i.exports=function(f,h){for(var p=d(f,f.constructor),m=0,g=h.length,y=new(c(p))(g);g>m;)y[m]=h[m++];return y}},7321:function(i,l,a){var c=a(7908),d=a(7466),f=a(1246),h=a(7659),p=a(9974),m=a(260).aTypedArrayConstructor;i.exports=function(y){var C=c(y),S=arguments.length,k=S>1?arguments[1]:void 0,v=k!==void 0,A=f(C),T,V,H,U,B,L;if(A!=null&&!h(A))for(B=A.call(C),L=B.next,C=[];!(U=L.call(B)).done;)C.push(U.value);for(v&&S>2&&(k=p(k,arguments[2],2)),V=d(C.length),H=new(m(this))(V),T=0;V>T;T++)H[T]=v?k(C[T],T):C[T];return H}},9711:function(i){var l=0,a=Math.random();i.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++l+a).toString(36)}},3307:function(i,l,a){var c=a(133);i.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(i,l,a){var c=a(7854),d=a(2309),f=a(6656),h=a(9711),p=a(133),m=a(3307),g=d("wks"),y=c.Symbol,C=m?y:y&&y.withoutSetter||h;i.exports=function(S){return f(g,S)||(p&&f(y,S)?g[S]=y[S]:g[S]=C("Symbol."+S)),g[S]}},1361:function(i){i.exports=`
6
- \v\f\r                 \u2028\u2029\uFEFF`},8264:function(i,l,a){var c=a(2109),d=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],g=d[p];c({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)},2222:function(i,l,a){var c=a(2109),d=a(7293),f=a(3157),h=a(111),p=a(7908),m=a(7466),g=a(6135),y=a(5417),C=a(1194),S=a(5112),k=a(7392),v=S("isConcatSpreadable"),A=9007199254740991,T="Maximum allowed index exceeded",V=k>=51||!d(function(){var L=[];return L[v]=!1,L.concat()[0]!==L}),H=C("concat"),U=function(L){if(!h(L))return!1;var z=L[v];return z!==void 0?!!z:f(L)},B=!V||!H;c({target:"Array",proto:!0,forced:B},{concat:function(z){var W=p(this),j=y(W,0),F=0,P,G,D,Q,te;for(P=-1,D=arguments.length;P<D;P++)if(te=P===-1?W:arguments[P],U(te)){if(Q=m(te.length),F+Q>A)throw TypeError(T);for(G=0;G<Q;G++,F++)G in te&&g(j,F,te[G])}else{if(F>=A)throw TypeError(T);g(j,F++,te)}return j.length=F,j}})},7327:function(i,l,a){var c=a(2109),d=a(2092).filter,f=a(1194),h=f("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})},2772:function(i,l,a){var c=a(2109),d=a(1318).indexOf,f=a(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");c({target:"Array",proto:!0,forced:p||!m},{indexOf:function(y){return p?h.apply(this,arguments)||0:d(this,y,arguments.length>1?arguments[1]:void 0)}})},6992:function(i,l,a){var c=a(5656),d=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",g=h.set,y=h.getterFor(m);i.exports=p(Array,"Array",function(C,S){g(this,{type:m,target:c(C),index:0,kind:S})},function(){var C=y(this),S=C.target,k=C.kind,v=C.index++;return!S||v>=S.length?(C.target=void 0,{value:void 0,done:!0}):k=="keys"?{value:v,done:!1}:k=="values"?{value:S[v],done:!1}:{value:[v,S[v]],done:!1}},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},1249:function(i,l,a){var c=a(2109),d=a(2092).map,f=a(1194),h=f("map");c({target:"Array",proto:!0,forced:!h},{map:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})},7042:function(i,l,a){var c=a(2109),d=a(111),f=a(3157),h=a(1400),p=a(7466),m=a(5656),g=a(6135),y=a(5112),C=a(1194),S=C("slice"),k=y("species"),v=[].slice,A=Math.max;c({target:"Array",proto:!0,forced:!S},{slice:function(V,H){var U=m(this),B=p(U.length),L=h(V,B),z=h(H===void 0?B:H,B),W,j,F;if(f(U)&&(W=U.constructor,typeof W=="function"&&(W===Array||f(W.prototype))?W=void 0:d(W)&&(W=W[k],W===null&&(W=void 0)),W===Array||W===void 0))return v.call(U,L,z);for(j=new(W===void 0?Array:W)(A(z-L,0)),F=0;L<z;L++,F++)L in U&&g(j,F,U[L]);return j.length=F,j}})},561:function(i,l,a){var c=a(2109),d=a(1400),f=a(9958),h=a(7466),p=a(7908),m=a(5417),g=a(6135),y=a(1194),C=y("splice"),S=Math.max,k=Math.min,v=9007199254740991,A="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!C},{splice:function(V,H){var U=p(this),B=h(U.length),L=d(V,B),z=arguments.length,W,j,F,P,G,D;if(z===0?W=j=0:z===1?(W=0,j=B-L):(W=z-2,j=k(S(f(H),0),B-L)),B+W-j>v)throw TypeError(A);for(F=m(U,j),P=0;P<j;P++)G=L+P,G in U&&g(F,P,U[G]);if(F.length=j,W<j){for(P=L;P<B-j;P++)G=P+j,D=P+W,G in U?U[D]=U[G]:delete U[D];for(P=B;P>B-j+W;P--)delete U[P-1]}else if(W>j)for(P=B-j;P>L;P--)G=P+j-1,D=P+W-1,G in U?U[D]=U[G]:delete U[D];for(P=0;P<W;P++)U[P+L]=arguments[P+2];return U.length=B-j+W,F}})},8309:function(i,l,a){var c=a(9781),d=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";c&&!(m in f)&&d(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})},489:function(i,l,a){var c=a(2109),d=a(7293),f=a(7908),h=a(9518),p=a(8544),m=d(function(){h(1)});c({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(y){return h(f(y))}})},1539:function(i,l,a){var c=a(1694),d=a(1320),f=a(288);c||d(Object.prototype,"toString",f,{unsafe:!0})},4916:function(i,l,a){var c=a(2109),d=a(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},9714:function(i,l,a){var c=a(1320),d=a(9670),f=a(7293),h=a(7066),p="toString",m=RegExp.prototype,g=m[p],y=f(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),C=g.name!=p;(y||C)&&c(RegExp.prototype,p,function(){var k=d(this),v=String(k.source),A=k.flags,T=String(A===void 0&&k instanceof RegExp&&!("flags"in m)?h.call(k):A);return"/"+v+"/"+T},{unsafe:!0})},8783:function(i,l,a){var c=a(8710).charAt,d=a(9909),f=a(654),h="String Iterator",p=d.set,m=d.getterFor(h);f(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var y=m(this),C=y.string,S=y.index,k;return S>=C.length?{value:void 0,done:!0}:(k=c(C,S),y.index+=k.length,{value:k,done:!1})})},4723:function(i,l,a){var c=a(7007),d=a(9670),f=a(7466),h=a(4488),p=a(1530),m=a(7651);c("match",1,function(g,y,C){return[function(k){var v=h(this),A=k==null?void 0:k[g];return A!==void 0?A.call(k,v):new RegExp(k)[g](String(v))},function(S){var k=C(y,S,this);if(k.done)return k.value;var v=d(S),A=String(this);if(!v.global)return m(v,A);var T=v.unicode;v.lastIndex=0;for(var V=[],H=0,U;(U=m(v,A))!==null;){var B=String(U[0]);V[H]=B,B===""&&(v.lastIndex=p(A,f(v.lastIndex),T)),H++}return H===0?null:V}]})},5306:function(i,l,a){var c=a(7007),d=a(9670),f=a(7466),h=a(9958),p=a(4488),m=a(1530),g=a(647),y=a(7651),C=Math.max,S=Math.min,k=function(v){return v===void 0?v:String(v)};c("replace",2,function(v,A,T,V){var H=V.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,U=V.REPLACE_KEEPS_$0,B=H?"$":"$0";return[function(z,W){var j=p(this),F=z==null?void 0:z[v];return F!==void 0?F.call(z,j,W):A.call(String(j),z,W)},function(L,z){if(!H&&U||typeof z=="string"&&z.indexOf(B)===-1){var W=T(A,L,this,z);if(W.done)return W.value}var j=d(L),F=String(this),P=typeof z=="function";P||(z=String(z));var G=j.global;if(G){var D=j.unicode;j.lastIndex=0}for(var Q=[];;){var te=y(j,F);if(te===null||(Q.push(te),!G))break;var ce=String(te[0]);ce===""&&(j.lastIndex=m(F,f(j.lastIndex),D))}for(var me="",ge=0,Ce=0;Ce<Q.length;Ce++){te=Q[Ce];for(var we=String(te[0]),Te=C(S(h(te.index),F.length),0),ve=[],x=1;x<te.length;x++)ve.push(k(te[x]));var M=te.groups;if(P){var w=[we].concat(ve,Te,F);M!==void 0&&w.push(M);var O=String(z.apply(void 0,w))}else O=g(we,F,Te,ve,M,z);Te>=ge&&(me+=F.slice(ge,Te)+O,ge=Te+we.length)}return me+F.slice(ge)}]})},3123:function(i,l,a){var c=a(7007),d=a(7850),f=a(9670),h=a(4488),p=a(6707),m=a(1530),g=a(7466),y=a(7651),C=a(2261),S=a(7293),k=[].push,v=Math.min,A=4294967295,T=!S(function(){return!RegExp(A,"y")});c("split",2,function(V,H,U){var B;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?B=function(L,z){var W=String(h(this)),j=z===void 0?A:z>>>0;if(j===0)return[];if(L===void 0)return[W];if(!d(L))return H.call(W,L,j);for(var F=[],P=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(L.sticky?"y":""),G=0,D=new RegExp(L.source,P+"g"),Q,te,ce;(Q=C.call(D,W))&&(te=D.lastIndex,!(te>G&&(F.push(W.slice(G,Q.index)),Q.length>1&&Q.index<W.length&&k.apply(F,Q.slice(1)),ce=Q[0].length,G=te,F.length>=j)));)D.lastIndex===Q.index&&D.lastIndex++;return G===W.length?(ce||!D.test(""))&&F.push(""):F.push(W.slice(G)),F.length>j?F.slice(0,j):F}:"0".split(void 0,0).length?B=function(L,z){return L===void 0&&z===0?[]:H.call(this,L,z)}:B=H,[function(z,W){var j=h(this),F=z==null?void 0:z[V];return F!==void 0?F.call(z,j,W):B.call(String(j),z,W)},function(L,z){var W=U(B,L,this,z,B!==H);if(W.done)return W.value;var j=f(L),F=String(this),P=p(j,RegExp),G=j.unicode,D=(j.ignoreCase?"i":"")+(j.multiline?"m":"")+(j.unicode?"u":"")+(T?"y":"g"),Q=new P(T?j:"^(?:"+j.source+")",D),te=z===void 0?A:z>>>0;if(te===0)return[];if(F.length===0)return y(Q,F)===null?[F]:[];for(var ce=0,me=0,ge=[];me<F.length;){Q.lastIndex=T?me:0;var Ce=y(Q,T?F:F.slice(me)),we;if(Ce===null||(we=v(g(Q.lastIndex+(T?0:me)),F.length))===ce)me=m(F,me,G);else{if(ge.push(F.slice(ce,me)),ge.length===te)return ge;for(var Te=1;Te<=Ce.length-1;Te++)if(ge.push(Ce[Te]),ge.length===te)return ge;me=ce=we}}return ge.push(F.slice(ce)),ge}]},!T)},3210:function(i,l,a){var c=a(2109),d=a(3111).trim,f=a(6091);c({target:"String",proto:!0,forced:f("trim")},{trim:function(){return d(this)}})},2990:function(i,l,a){var c=a(260),d=a(1048),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("copyWithin",function(m,g){return d.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})},8927:function(i,l,a){var c=a(260),d=a(2092).every,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("every",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},3105:function(i,l,a){var c=a(260),d=a(1285),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("fill",function(m){return d.apply(f(this),arguments)})},5035:function(i,l,a){var c=a(260),d=a(2092).filter,f=a(3074),h=c.aTypedArray,p=c.exportTypedArrayMethod;p("filter",function(g){var y=d(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,y)})},7174:function(i,l,a){var c=a(260),d=a(2092).findIndex,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("findIndex",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},4345:function(i,l,a){var c=a(260),d=a(2092).find,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("find",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},2846:function(i,l,a){var c=a(260),d=a(2092).forEach,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("forEach",function(m){d(f(this),m,arguments.length>1?arguments[1]:void 0)})},4731:function(i,l,a){var c=a(260),d=a(1318).includes,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("includes",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},7209:function(i,l,a){var c=a(260),d=a(1318).indexOf,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("indexOf",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},6319:function(i,l,a){var c=a(7854),d=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=c.Uint8Array,g=f.values,y=f.keys,C=f.entries,S=d.aTypedArray,k=d.exportTypedArrayMethod,v=m&&m.prototype[p],A=!!v&&(v.name=="values"||v.name==null),T=function(){return g.call(S(this))};k("entries",function(){return C.call(S(this))}),k("keys",function(){return y.call(S(this))}),k("values",T,!A),k(p,T,!A)},8867:function(i,l,a){var c=a(260),d=c.aTypedArray,f=c.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(d(this),arguments)})},7789:function(i,l,a){var c=a(260),d=a(6583),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("lastIndexOf",function(m){return d.apply(f(this),arguments)})},3739:function(i,l,a){var c=a(260),d=a(2092).map,f=a(6707),h=c.aTypedArray,p=c.aTypedArrayConstructor,m=c.exportTypedArrayMethod;m("map",function(y){return d(h(this),y,arguments.length>1?arguments[1]:void 0,function(C,S){return new(p(f(C,C.constructor)))(S)})})},4483:function(i,l,a){var c=a(260),d=a(3671).right,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduceRight",function(m){return d(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(i,l,a){var c=a(260),d=a(3671).left,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduce",function(m){return d(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(i,l,a){var c=a(260),d=c.aTypedArray,f=c.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=d(m).length,y=h(g/2),C=0,S;C<y;)S=m[C],m[C++]=m[--g],m[g]=S;return m})},3462:function(i,l,a){var c=a(260),d=a(7466),f=a(4590),h=a(7908),p=a(7293),m=c.aTypedArray,g=c.exportTypedArrayMethod,y=p(function(){new Int8Array(1).set({})});g("set",function(S){m(this);var k=f(arguments.length>1?arguments[1]:void 0,1),v=this.length,A=h(S),T=d(A.length),V=0;if(T+k>v)throw RangeError("Wrong length");for(;V<T;)this[k+V]=A[V++]},y)},678:function(i,l,a){var c=a(260),d=a(6707),f=a(7293),h=c.aTypedArray,p=c.aTypedArrayConstructor,m=c.exportTypedArrayMethod,g=[].slice,y=f(function(){new Int8Array(1).slice()});m("slice",function(S,k){for(var v=g.call(h(this),S,k),A=d(this,this.constructor),T=0,V=v.length,H=new(p(A))(V);V>T;)H[T]=v[T++];return H},y)},7462:function(i,l,a){var c=a(260),d=a(2092).some,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("some",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},3824:function(i,l,a){var c=a(260),d=c.aTypedArray,f=c.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(d(this),m)})},5021:function(i,l,a){var c=a(260),d=a(7466),f=a(1400),h=a(6707),p=c.aTypedArray,m=c.exportTypedArrayMethod;m("subarray",function(y,C){var S=p(this),k=S.length,v=f(y,k);return new(h(S,S.constructor))(S.buffer,S.byteOffset+v*S.BYTES_PER_ELEMENT,d((C===void 0?k:f(C,k))-v))})},2974:function(i,l,a){var c=a(7854),d=a(260),f=a(7293),h=c.Int8Array,p=d.aTypedArray,m=d.exportTypedArrayMethod,g=[].toLocaleString,y=[].slice,C=!!h&&f(function(){g.call(new h(1))}),S=f(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!f(function(){h.prototype.toLocaleString.call([1,2])});m("toLocaleString",function(){return g.apply(C?y.call(p(this)):p(this),arguments)},S)},5016:function(i,l,a){var c=a(260).exportTypedArrayMethod,d=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;d(function(){m.call({})})&&(m=function(){return g.call(this)});var y=p.toString!=m;c("toString",m,y)},2472:function(i,l,a){var c=a(9843);c("Uint8",function(d){return function(h,p,m){return d(this,h,p,m)}})},4747:function(i,l,a){var c=a(7854),d=a(8324),f=a(8533),h=a(8880);for(var p in d){var m=c[p],g=m&&m.prototype;if(g&&g.forEach!==f)try{h(g,"forEach",f)}catch{g.forEach=f}}},3948:function(i,l,a){var c=a(7854),d=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),g=p("toStringTag"),y=f.values;for(var C in d){var S=c[C],k=S&&S.prototype;if(k){if(k[m]!==y)try{h(k,m,y)}catch{k[m]=y}if(k[g]||h(k,g,C),d[C]){for(var v in f)if(k[v]!==f[v])try{h(k,v,f[v])}catch{k[v]=f[v]}}}}},1637:function(i,l,a){a(6992);var c=a(2109),d=a(5005),f=a(590),h=a(1320),p=a(2248),m=a(8003),g=a(4994),y=a(9909),C=a(5787),S=a(6656),k=a(9974),v=a(648),A=a(9670),T=a(111),V=a(30),H=a(9114),U=a(8554),B=a(1246),L=a(5112),z=d("fetch"),W=d("Headers"),j=L("iterator"),F="URLSearchParams",P=F+"Iterator",G=y.set,D=y.getterFor(F),Q=y.getterFor(P),te=/\+/g,ce=Array(4),me=function(I){return ce[I-1]||(ce[I-1]=RegExp("((?:%[\\da-f]{2}){"+I+"})","gi"))},ge=function(I){try{return decodeURIComponent(I)}catch{return I}},Ce=function(I){var R=I.replace(te," "),$=4;try{return decodeURIComponent(R)}catch{for(;$;)R=R.replace(me($--),ge);return R}},we=/[!'()~]|%20/g,Te={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(I){return Te[I]},x=function(I){return encodeURIComponent(I).replace(we,ve)},M=function(I,R){if(R)for(var $=R.split("&"),K=0,J,Y;K<$.length;)J=$[K++],J.length&&(Y=J.split("="),I.push({key:Ce(Y.shift()),value:Ce(Y.join("="))}))},w=function(I){this.entries.length=0,M(this.entries,I)},O=function(I,R){if(I<R)throw TypeError("Not enough arguments")},b=g(function(R,$){G(this,{type:P,iterator:U(D(R).entries),kind:$})},"Iterator",function(){var R=Q(this),$=R.kind,K=R.iterator.next(),J=K.value;return K.done||(K.value=$==="keys"?J.key:$==="values"?J.value:[J.key,J.value]),K}),E=function(){C(this,E,F);var R=arguments.length>0?arguments[0]:void 0,$=this,K=[],J,Y,Z,X,ne,he,Se,_e,ze;if(G($,{type:F,entries:K,updateURL:function(){},updateSearchParams:w}),R!==void 0)if(T(R))if(J=B(R),typeof J=="function")for(Y=J.call(R),Z=Y.next;!(X=Z.call(Y)).done;){if(ne=U(A(X.value)),he=ne.next,(Se=he.call(ne)).done||(_e=he.call(ne)).done||!he.call(ne).done)throw TypeError("Expected sequence with length 2");K.push({key:Se.value+"",value:_e.value+""})}else for(ze in R)S(R,ze)&&K.push({key:ze,value:R[ze]+""});else M(K,typeof R=="string"?R.charAt(0)==="?"?R.slice(1):R:R+"")},_=E.prototype;p(_,{append:function(R,$){O(arguments.length,2);var K=D(this);K.entries.push({key:R+"",value:$+""}),K.updateURL()},delete:function(I){O(arguments.length,1);for(var R=D(this),$=R.entries,K=I+"",J=0;J<$.length;)$[J].key===K?$.splice(J,1):J++;R.updateURL()},get:function(R){O(arguments.length,1);for(var $=D(this).entries,K=R+"",J=0;J<$.length;J++)if($[J].key===K)return $[J].value;return null},getAll:function(R){O(arguments.length,1);for(var $=D(this).entries,K=R+"",J=[],Y=0;Y<$.length;Y++)$[Y].key===K&&J.push($[Y].value);return J},has:function(R){O(arguments.length,1);for(var $=D(this).entries,K=R+"",J=0;J<$.length;)if($[J++].key===K)return!0;return!1},set:function(R,$){O(arguments.length,1);for(var K=D(this),J=K.entries,Y=!1,Z=R+"",X=$+"",ne=0,he;ne<J.length;ne++)he=J[ne],he.key===Z&&(Y?J.splice(ne--,1):(Y=!0,he.value=X));Y||J.push({key:Z,value:X}),K.updateURL()},sort:function(){var R=D(this),$=R.entries,K=$.slice(),J,Y,Z;for($.length=0,Z=0;Z<K.length;Z++){for(J=K[Z],Y=0;Y<Z;Y++)if($[Y].key>J.key){$.splice(Y,0,J);break}Y===Z&&$.push(J)}R.updateURL()},forEach:function(R){for(var $=D(this).entries,K=k(R,arguments.length>1?arguments[1]:void 0,3),J=0,Y;J<$.length;)Y=$[J++],K(Y.value,Y.key,this)},keys:function(){return new b(this,"keys")},values:function(){return new b(this,"values")},entries:function(){return new b(this,"entries")}},{enumerable:!0}),h(_,j,_.entries),h(_,"toString",function(){for(var R=D(this).entries,$=[],K=0,J;K<R.length;)J=R[K++],$.push(x(J.key)+"="+x(J.value));return $.join("&")},{enumerable:!0}),m(E,F),c({global:!0,forced:!f},{URLSearchParams:E}),!f&&typeof z=="function"&&typeof W=="function"&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(R){var $=[R],K,J,Y;return arguments.length>1&&(K=arguments[1],T(K)&&(J=K.body,v(J)===F&&(Y=K.headers?new W(K.headers):new W,Y.has("content-type")||Y.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),K=V(K,{body:H(0,String(J)),headers:H(0,Y)}))),$.push(K)),z.apply(this,$)}}),i.exports={URLSearchParams:E,getState:D}},285:function(i,l,a){a(8783);var c=a(2109),d=a(9781),f=a(590),h=a(7854),p=a(6048),m=a(1320),g=a(5787),y=a(6656),C=a(1574),S=a(8457),k=a(8710).codeAt,v=a(3197),A=a(8003),T=a(1637),V=a(9909),H=h.URL,U=T.URLSearchParams,B=T.getState,L=V.set,z=V.getterFor("URL"),W=Math.floor,j=Math.pow,F="Invalid authority",P="Invalid scheme",G="Invalid host",D="Invalid port",Q=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,ce=/\d/,me=/^(0x|0X)/,ge=/^[0-7]+$/,Ce=/^\d+$/,we=/^[\dA-Fa-f]+$/,Te=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ve=/[\u0000\t\u000A\u000D #/:?@[\\]]/,x=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\t\u000A\u000D]/g,w,O=function(N,re){var ee,oe,le;if(re.charAt(0)=="["){if(re.charAt(re.length-1)!="]"||(ee=E(re.slice(1,-1)),!ee))return G;N.host=ee}else if(X(N)){if(re=v(re),Te.test(re)||(ee=b(re),ee===null))return G;N.host=ee}else{if(ve.test(re))return G;for(ee="",oe=S(re),le=0;le<oe.length;le++)ee+=Y(oe[le],R);N.host=ee}},b=function(N){var re=N.split("."),ee,oe,le,Me,Ee,Fe,je;if(re.length&&re[re.length-1]==""&&re.pop(),ee=re.length,ee>4)return N;for(oe=[],le=0;le<ee;le++){if(Me=re[le],Me=="")return N;if(Ee=10,Me.length>1&&Me.charAt(0)=="0"&&(Ee=me.test(Me)?16:8,Me=Me.slice(Ee==8?1:2)),Me==="")Fe=0;else{if(!(Ee==10?Ce:Ee==8?ge:we).test(Me))return N;Fe=parseInt(Me,Ee)}oe.push(Fe)}for(le=0;le<ee;le++)if(Fe=oe[le],le==ee-1){if(Fe>=j(256,5-ee))return null}else if(Fe>255)return null;for(je=oe.pop(),le=0;le<oe.length;le++)je+=oe[le]*j(256,3-le);return je},E=function(N){var re=[0,0,0,0,0,0,0,0],ee=0,oe=null,le=0,Me,Ee,Fe,je,Ye,Ht,ie,qe=function(){return N.charAt(le)};if(qe()==":"){if(N.charAt(1)!=":")return;le+=2,ee++,oe=ee}for(;qe();){if(ee==8)return;if(qe()==":"){if(oe!==null)return;le++,ee++,oe=ee;continue}for(Me=Ee=0;Ee<4&&we.test(qe());)Me=Me*16+parseInt(qe(),16),le++,Ee++;if(qe()=="."){if(Ee==0||(le-=Ee,ee>6))return;for(Fe=0;qe();){if(je=null,Fe>0)if(qe()=="."&&Fe<4)le++;else return;if(!ce.test(qe()))return;for(;ce.test(qe());){if(Ye=parseInt(qe(),10),je===null)je=Ye;else{if(je==0)return;je=je*10+Ye}if(je>255)return;le++}re[ee]=re[ee]*256+je,Fe++,(Fe==2||Fe==4)&&ee++}if(Fe!=4)return;break}else if(qe()==":"){if(le++,!qe())return}else if(qe())return;re[ee++]=Me}if(oe!==null)for(Ht=ee-oe,ee=7;ee!=0&&Ht>0;)ie=re[ee],re[ee--]=re[oe+Ht-1],re[oe+--Ht]=ie;else if(ee!=8)return;return re},_=function(N){for(var re=null,ee=1,oe=null,le=0,Me=0;Me<8;Me++)N[Me]!==0?(le>ee&&(re=oe,ee=le),oe=null,le=0):(oe===null&&(oe=Me),++le);return le>ee&&(re=oe,ee=le),re},I=function(N){var re,ee,oe,le;if(typeof N=="number"){for(re=[],ee=0;ee<4;ee++)re.unshift(N%256),N=W(N/256);return re.join(".")}else if(typeof N=="object"){for(re="",oe=_(N),ee=0;ee<8;ee++)le&&N[ee]===0||(le&&(le=!1),oe===ee?(re+=ee?":":"::",le=!0):(re+=N[ee].toString(16),ee<7&&(re+=":")));return"["+re+"]"}return N},R={},$=C({},R,{" ":1,'"':1,"<":1,">":1,"`":1}),K=C({},$,{"#":1,"?":1,"{":1,"}":1}),J=C({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(N,re){var ee=k(N,0);return ee>32&&ee<127&&!y(re,N)?N:encodeURIComponent(N)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(N){return y(Z,N.scheme)},ne=function(N){return N.username!=""||N.password!=""},he=function(N){return!N.host||N.cannotBeABaseURL||N.scheme=="file"},Se=function(N,re){var ee;return N.length==2&&Q.test(N.charAt(0))&&((ee=N.charAt(1))==":"||!re&&ee=="|")},_e=function(N){var re;return N.length>1&&Se(N.slice(0,2))&&(N.length==2||(re=N.charAt(2))==="/"||re==="\\"||re==="?"||re==="#")},ze=function(N){var re=N.path,ee=re.length;ee&&(N.scheme!="file"||ee!=1||!Se(re[0],!0))&&re.pop()},Ve=function(N){return N==="."||N.toLowerCase()==="%2e"},De=function(N){return N=N.toLowerCase(),N===".."||N==="%2e."||N===".%2e"||N==="%2e%2e"},Ze={},St={},at={},Gn={},q={},de={},fe={},xe={},Oe={},Ue={},We={},gt={},yt={},rt={},cn={},Jn={},Mt={},Ft={},mo={},Vt={},Cn={},un=function(N,re,ee,oe){var le=ee||Ze,Me=0,Ee="",Fe=!1,je=!1,Ye=!1,Ht,ie,qe,Sn;for(ee||(N.scheme="",N.username="",N.password="",N.host=null,N.port=null,N.path=[],N.query=null,N.fragment=null,N.cannotBeABaseURL=!1,re=re.replace(x,"")),re=re.replace(M,""),Ht=S(re);Me<=Ht.length;){switch(ie=Ht[Me],le){case Ze:if(ie&&Q.test(ie))Ee+=ie.toLowerCase(),le=St;else{if(ee)return P;le=at;continue}break;case St:if(ie&&(te.test(ie)||ie=="+"||ie=="-"||ie=="."))Ee+=ie.toLowerCase();else if(ie==":"){if(ee&&(X(N)!=y(Z,Ee)||Ee=="file"&&(ne(N)||N.port!==null)||N.scheme=="file"&&!N.host))return;if(N.scheme=Ee,ee){X(N)&&Z[N.scheme]==N.port&&(N.port=null);return}Ee="",N.scheme=="file"?le=rt:X(N)&&oe&&oe.scheme==N.scheme?le=Gn:X(N)?le=xe:Ht[Me+1]=="/"?(le=q,Me++):(N.cannotBeABaseURL=!0,N.path.push(""),le=mo)}else{if(ee)return P;Ee="",le=at,Me=0;continue}break;case at:if(!oe||oe.cannotBeABaseURL&&ie!="#")return P;if(oe.cannotBeABaseURL&&ie=="#"){N.scheme=oe.scheme,N.path=oe.path.slice(),N.query=oe.query,N.fragment="",N.cannotBeABaseURL=!0,le=Cn;break}le=oe.scheme=="file"?rt:de;continue;case Gn:if(ie=="/"&&Ht[Me+1]=="/")le=Oe,Me++;else{le=de;continue}break;case q:if(ie=="/"){le=Ue;break}else{le=Ft;continue}case de:if(N.scheme=oe.scheme,ie==w)N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,N.path=oe.path.slice(),N.query=oe.query;else if(ie=="/"||ie=="\\"&&X(N))le=fe;else if(ie=="?")N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,N.path=oe.path.slice(),N.query="",le=Vt;else if(ie=="#")N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,N.path=oe.path.slice(),N.query=oe.query,N.fragment="",le=Cn;else{N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,N.path=oe.path.slice(),N.path.pop(),le=Ft;continue}break;case fe:if(X(N)&&(ie=="/"||ie=="\\"))le=Oe;else if(ie=="/")le=Ue;else{N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,le=Ft;continue}break;case xe:if(le=Oe,ie!="/"||Ee.charAt(Me+1)!="/")continue;Me++;break;case Oe:if(ie!="/"&&ie!="\\"){le=Ue;continue}break;case Ue:if(ie=="@"){Fe&&(Ee="%40"+Ee),Fe=!0,qe=S(Ee);for(var Zc=0;Zc<qe.length;Zc++){var i1=qe[Zc];if(i1==":"&&!Ye){Ye=!0;continue}var a1=Y(i1,J);Ye?N.password+=a1:N.username+=a1}Ee=""}else if(ie==w||ie=="/"||ie=="?"||ie=="#"||ie=="\\"&&X(N)){if(Fe&&Ee=="")return F;Me-=S(Ee).length+1,Ee="",le=We}else Ee+=ie;break;case We:case gt:if(ee&&N.scheme=="file"){le=Jn;continue}else if(ie==":"&&!je){if(Ee=="")return G;if(Sn=O(N,Ee),Sn)return Sn;if(Ee="",le=yt,ee==gt)return}else if(ie==w||ie=="/"||ie=="?"||ie=="#"||ie=="\\"&&X(N)){if(X(N)&&Ee=="")return G;if(ee&&Ee==""&&(ne(N)||N.port!==null))return;if(Sn=O(N,Ee),Sn)return Sn;if(Ee="",le=Mt,ee)return;continue}else ie=="["?je=!0:ie=="]"&&(je=!1),Ee+=ie;break;case yt:if(ce.test(ie))Ee+=ie;else if(ie==w||ie=="/"||ie=="?"||ie=="#"||ie=="\\"&&X(N)||ee){if(Ee!=""){var Xc=parseInt(Ee,10);if(Xc>65535)return D;N.port=X(N)&&Xc===Z[N.scheme]?null:Xc,Ee=""}if(ee)return;le=Mt;continue}else return D;break;case rt:if(N.scheme="file",ie=="/"||ie=="\\")le=cn;else if(oe&&oe.scheme=="file")if(ie==w)N.host=oe.host,N.path=oe.path.slice(),N.query=oe.query;else if(ie=="?")N.host=oe.host,N.path=oe.path.slice(),N.query="",le=Vt;else if(ie=="#")N.host=oe.host,N.path=oe.path.slice(),N.query=oe.query,N.fragment="",le=Cn;else{_e(Ht.slice(Me).join(""))||(N.host=oe.host,N.path=oe.path.slice(),ze(N)),le=Ft;continue}else{le=Ft;continue}break;case cn:if(ie=="/"||ie=="\\"){le=Jn;break}oe&&oe.scheme=="file"&&!_e(Ht.slice(Me).join(""))&&(Se(oe.path[0],!0)?N.path.push(oe.path[0]):N.host=oe.host),le=Ft;continue;case Jn:if(ie==w||ie=="/"||ie=="\\"||ie=="?"||ie=="#"){if(!ee&&Se(Ee))le=Ft;else if(Ee==""){if(N.host="",ee)return;le=Mt}else{if(Sn=O(N,Ee),Sn)return Sn;if(N.host=="localhost"&&(N.host=""),ee)return;Ee="",le=Mt}continue}else Ee+=ie;break;case Mt:if(X(N)){if(le=Ft,ie!="/"&&ie!="\\")continue}else if(!ee&&ie=="?")N.query="",le=Vt;else if(!ee&&ie=="#")N.fragment="",le=Cn;else if(ie!=w&&(le=Ft,ie!="/"))continue;break;case Ft:if(ie==w||ie=="/"||ie=="\\"&&X(N)||!ee&&(ie=="?"||ie=="#")){if(De(Ee)?(ze(N),ie!="/"&&!(ie=="\\"&&X(N))&&N.path.push("")):Ve(Ee)?ie!="/"&&!(ie=="\\"&&X(N))&&N.path.push(""):(N.scheme=="file"&&!N.path.length&&Se(Ee)&&(N.host&&(N.host=""),Ee=Ee.charAt(0)+":"),N.path.push(Ee)),Ee="",N.scheme=="file"&&(ie==w||ie=="?"||ie=="#"))for(;N.path.length>1&&N.path[0]==="";)N.path.shift();ie=="?"?(N.query="",le=Vt):ie=="#"&&(N.fragment="",le=Cn)}else Ee+=Y(ie,K);break;case mo:ie=="?"?(N.query="",le=Vt):ie=="#"?(N.fragment="",le=Cn):ie!=w&&(N.path[0]+=Y(ie,R));break;case Vt:!ee&&ie=="#"?(N.fragment="",le=Cn):ie!=w&&(ie=="'"&&X(N)?N.query+="%27":ie=="#"?N.query+="%23":N.query+=Y(ie,R));break;case Cn:ie!=w&&(N.fragment+=Y(ie,$));break}Me++}},Tr=function(re){var ee=g(this,Tr,"URL"),oe=arguments.length>1?arguments[1]:void 0,le=String(re),Me=L(ee,{type:"URL"}),Ee,Fe;if(oe!==void 0){if(oe instanceof Tr)Ee=z(oe);else if(Fe=un(Ee={},String(oe)),Fe)throw TypeError(Fe)}if(Fe=un(Me,le,null,Ee),Fe)throw TypeError(Fe);var je=Me.searchParams=new U,Ye=B(je);Ye.updateSearchParams(Me.query),Ye.updateURL=function(){Me.query=String(je)||null},d||(ee.href=fa.call(ee),ee.origin=Ym.call(ee),ee.protocol=Gm.call(ee),ee.username=Jm.call(ee),ee.password=Zm.call(ee),ee.host=Xm.call(ee),ee.hostname=Qm.call(ee),ee.port=qm.call(ee),ee.pathname=e1.call(ee),ee.search=t1.call(ee),ee.searchParams=n1.call(ee),ee.hash=r1.call(ee))},Jc=Tr.prototype,fa=function(){var N=z(this),re=N.scheme,ee=N.username,oe=N.password,le=N.host,Me=N.port,Ee=N.path,Fe=N.query,je=N.fragment,Ye=re+":";return le!==null?(Ye+="//",ne(N)&&(Ye+=ee+(oe?":"+oe:"")+"@"),Ye+=I(le),Me!==null&&(Ye+=":"+Me)):re=="file"&&(Ye+="//"),Ye+=N.cannotBeABaseURL?Ee[0]:Ee.length?"/"+Ee.join("/"):"",Fe!==null&&(Ye+="?"+Fe),je!==null&&(Ye+="#"+je),Ye},Ym=function(){var N=z(this),re=N.scheme,ee=N.port;if(re=="blob")try{return new URL(re.path[0]).origin}catch{return"null"}return re=="file"||!X(N)?"null":re+"://"+I(N.host)+(ee!==null?":"+ee:"")},Gm=function(){return z(this).scheme+":"},Jm=function(){return z(this).username},Zm=function(){return z(this).password},Xm=function(){var N=z(this),re=N.host,ee=N.port;return re===null?"":ee===null?I(re):I(re)+":"+ee},Qm=function(){var N=z(this).host;return N===null?"":I(N)},qm=function(){var N=z(this).port;return N===null?"":String(N)},e1=function(){var N=z(this),re=N.path;return N.cannotBeABaseURL?re[0]:re.length?"/"+re.join("/"):""},t1=function(){var N=z(this).query;return N?"?"+N:""},n1=function(){return z(this).searchParams},r1=function(){var N=z(this).fragment;return N?"#"+N:""},zt=function(N,re){return{get:N,set:re,configurable:!0,enumerable:!0}};if(d&&p(Jc,{href:zt(fa,function(N){var re=z(this),ee=String(N),oe=un(re,ee);if(oe)throw TypeError(oe);B(re.searchParams).updateSearchParams(re.query)}),origin:zt(Ym),protocol:zt(Gm,function(N){var re=z(this);un(re,String(N)+":",Ze)}),username:zt(Jm,function(N){var re=z(this),ee=S(String(N));if(!he(re)){re.username="";for(var oe=0;oe<ee.length;oe++)re.username+=Y(ee[oe],J)}}),password:zt(Zm,function(N){var re=z(this),ee=S(String(N));if(!he(re)){re.password="";for(var oe=0;oe<ee.length;oe++)re.password+=Y(ee[oe],J)}}),host:zt(Xm,function(N){var re=z(this);re.cannotBeABaseURL||un(re,String(N),We)}),hostname:zt(Qm,function(N){var re=z(this);re.cannotBeABaseURL||un(re,String(N),gt)}),port:zt(qm,function(N){var re=z(this);he(re)||(N=String(N),N==""?re.port=null:un(re,N,yt))}),pathname:zt(e1,function(N){var re=z(this);re.cannotBeABaseURL||(re.path=[],un(re,N+"",Mt))}),search:zt(t1,function(N){var re=z(this);N=String(N),N==""?re.query=null:(N.charAt(0)=="?"&&(N=N.slice(1)),re.query="",un(re,N,Vt)),B(re.searchParams).updateSearchParams(re.query)}),searchParams:zt(n1),hash:zt(r1,function(N){var re=z(this);if(N=String(N),N==""){re.fragment=null;return}N.charAt(0)=="#"&&(N=N.slice(1)),re.fragment="",un(re,N,Cn)})}),m(Jc,"toJSON",function(){return fa.call(this)},{enumerable:!0}),m(Jc,"toString",function(){return fa.call(this)},{enumerable:!0}),H){var o1=H.createObjectURL,s1=H.revokeObjectURL;o1&&m(Tr,"createObjectURL",function(re){return o1.apply(H,arguments)}),s1&&m(Tr,"revokeObjectURL",function(re){return s1.apply(H,arguments)})}A(Tr,"URL"),c({global:!0,forced:!f,sham:!d},{URL:Tr})}},r={};function o(i){if(r[i])return r[i].exports;var l=r[i]={exports:{}};return t[i](l,l.exports,o),l.exports}(function(){o.d=function(i,l){for(var a in l)o.o(l,a)&&!o.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:l[a]})}})(),function(){o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){o.o=function(i,l){return Object.prototype.hasOwnProperty.call(i,l)}}(),function(){o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})}}();var s={};return function(){o.r(s),o.d(s,{Dropzone:function(){return D},default:function(){return ve}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function i(x,M){var w;if(typeof Symbol>"u"||x[Symbol.iterator]==null){if(Array.isArray(x)||(w=l(x))||M&&x&&typeof x.length=="number"){w&&(x=w);var O=0,b=function(){};return{s:b,n:function(){return O>=x.length?{done:!0}:{done:!1,value:x[O++]}},e:function($){throw $},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6
+ \v\f\r                 \u2028\u2029\uFEFF`},8264:function(i,l,a){var c=a(2109),d=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],g=d[p];c({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)},2222:function(i,l,a){var c=a(2109),d=a(7293),f=a(3157),h=a(111),p=a(7908),m=a(7466),g=a(6135),y=a(5417),C=a(1194),S=a(5112),k=a(7392),v=S("isConcatSpreadable"),A=9007199254740991,T="Maximum allowed index exceeded",V=k>=51||!d(function(){var L=[];return L[v]=!1,L.concat()[0]!==L}),H=C("concat"),U=function(L){if(!h(L))return!1;var z=L[v];return z!==void 0?!!z:f(L)},B=!V||!H;c({target:"Array",proto:!0,forced:B},{concat:function(z){var W=p(this),j=y(W,0),F=0,P,G,D,Q,te;for(P=-1,D=arguments.length;P<D;P++)if(te=P===-1?W:arguments[P],U(te)){if(Q=m(te.length),F+Q>A)throw TypeError(T);for(G=0;G<Q;G++,F++)G in te&&g(j,F,te[G])}else{if(F>=A)throw TypeError(T);g(j,F++,te)}return j.length=F,j}})},7327:function(i,l,a){var c=a(2109),d=a(2092).filter,f=a(1194),h=f("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})},2772:function(i,l,a){var c=a(2109),d=a(1318).indexOf,f=a(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");c({target:"Array",proto:!0,forced:p||!m},{indexOf:function(y){return p?h.apply(this,arguments)||0:d(this,y,arguments.length>1?arguments[1]:void 0)}})},6992:function(i,l,a){var c=a(5656),d=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",g=h.set,y=h.getterFor(m);i.exports=p(Array,"Array",function(C,S){g(this,{type:m,target:c(C),index:0,kind:S})},function(){var C=y(this),S=C.target,k=C.kind,v=C.index++;return!S||v>=S.length?(C.target=void 0,{value:void 0,done:!0}):k=="keys"?{value:v,done:!1}:k=="values"?{value:S[v],done:!1}:{value:[v,S[v]],done:!1}},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")},1249:function(i,l,a){var c=a(2109),d=a(2092).map,f=a(1194),h=f("map");c({target:"Array",proto:!0,forced:!h},{map:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})},7042:function(i,l,a){var c=a(2109),d=a(111),f=a(3157),h=a(1400),p=a(7466),m=a(5656),g=a(6135),y=a(5112),C=a(1194),S=C("slice"),k=y("species"),v=[].slice,A=Math.max;c({target:"Array",proto:!0,forced:!S},{slice:function(V,H){var U=m(this),B=p(U.length),L=h(V,B),z=h(H===void 0?B:H,B),W,j,F;if(f(U)&&(W=U.constructor,typeof W=="function"&&(W===Array||f(W.prototype))?W=void 0:d(W)&&(W=W[k],W===null&&(W=void 0)),W===Array||W===void 0))return v.call(U,L,z);for(j=new(W===void 0?Array:W)(A(z-L,0)),F=0;L<z;L++,F++)L in U&&g(j,F,U[L]);return j.length=F,j}})},561:function(i,l,a){var c=a(2109),d=a(1400),f=a(9958),h=a(7466),p=a(7908),m=a(5417),g=a(6135),y=a(1194),C=y("splice"),S=Math.max,k=Math.min,v=9007199254740991,A="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!C},{splice:function(V,H){var U=p(this),B=h(U.length),L=d(V,B),z=arguments.length,W,j,F,P,G,D;if(z===0?W=j=0:z===1?(W=0,j=B-L):(W=z-2,j=k(S(f(H),0),B-L)),B+W-j>v)throw TypeError(A);for(F=m(U,j),P=0;P<j;P++)G=L+P,G in U&&g(F,P,U[G]);if(F.length=j,W<j){for(P=L;P<B-j;P++)G=P+j,D=P+W,G in U?U[D]=U[G]:delete U[D];for(P=B;P>B-j+W;P--)delete U[P-1]}else if(W>j)for(P=B-j;P>L;P--)G=P+j-1,D=P+W-1,G in U?U[D]=U[G]:delete U[D];for(P=0;P<W;P++)U[P+L]=arguments[P+2];return U.length=B-j+W,F}})},8309:function(i,l,a){var c=a(9781),d=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";c&&!(m in f)&&d(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})},489:function(i,l,a){var c=a(2109),d=a(7293),f=a(7908),h=a(9518),p=a(8544),m=d(function(){h(1)});c({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(y){return h(f(y))}})},1539:function(i,l,a){var c=a(1694),d=a(1320),f=a(288);c||d(Object.prototype,"toString",f,{unsafe:!0})},4916:function(i,l,a){var c=a(2109),d=a(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},9714:function(i,l,a){var c=a(1320),d=a(9670),f=a(7293),h=a(7066),p="toString",m=RegExp.prototype,g=m[p],y=f(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),C=g.name!=p;(y||C)&&c(RegExp.prototype,p,function(){var k=d(this),v=String(k.source),A=k.flags,T=String(A===void 0&&k instanceof RegExp&&!("flags"in m)?h.call(k):A);return"/"+v+"/"+T},{unsafe:!0})},8783:function(i,l,a){var c=a(8710).charAt,d=a(9909),f=a(654),h="String Iterator",p=d.set,m=d.getterFor(h);f(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var y=m(this),C=y.string,S=y.index,k;return S>=C.length?{value:void 0,done:!0}:(k=c(C,S),y.index+=k.length,{value:k,done:!1})})},4723:function(i,l,a){var c=a(7007),d=a(9670),f=a(7466),h=a(4488),p=a(1530),m=a(7651);c("match",1,function(g,y,C){return[function(k){var v=h(this),A=k==null?void 0:k[g];return A!==void 0?A.call(k,v):new RegExp(k)[g](String(v))},function(S){var k=C(y,S,this);if(k.done)return k.value;var v=d(S),A=String(this);if(!v.global)return m(v,A);var T=v.unicode;v.lastIndex=0;for(var V=[],H=0,U;(U=m(v,A))!==null;){var B=String(U[0]);V[H]=B,B===""&&(v.lastIndex=p(A,f(v.lastIndex),T)),H++}return H===0?null:V}]})},5306:function(i,l,a){var c=a(7007),d=a(9670),f=a(7466),h=a(9958),p=a(4488),m=a(1530),g=a(647),y=a(7651),C=Math.max,S=Math.min,k=function(v){return v===void 0?v:String(v)};c("replace",2,function(v,A,T,V){var H=V.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,U=V.REPLACE_KEEPS_$0,B=H?"$":"$0";return[function(z,W){var j=p(this),F=z==null?void 0:z[v];return F!==void 0?F.call(z,j,W):A.call(String(j),z,W)},function(L,z){if(!H&&U||typeof z=="string"&&z.indexOf(B)===-1){var W=T(A,L,this,z);if(W.done)return W.value}var j=d(L),F=String(this),P=typeof z=="function";P||(z=String(z));var G=j.global;if(G){var D=j.unicode;j.lastIndex=0}for(var Q=[];;){var te=y(j,F);if(te===null||(Q.push(te),!G))break;var ce=String(te[0]);ce===""&&(j.lastIndex=m(F,f(j.lastIndex),D))}for(var me="",ge=0,Ce=0;Ce<Q.length;Ce++){te=Q[Ce];for(var we=String(te[0]),Te=C(S(h(te.index),F.length),0),ve=[],x=1;x<te.length;x++)ve.push(k(te[x]));var M=te.groups;if(P){var w=[we].concat(ve,Te,F);M!==void 0&&w.push(M);var O=String(z.apply(void 0,w))}else O=g(we,F,Te,ve,M,z);Te>=ge&&(me+=F.slice(ge,Te)+O,ge=Te+we.length)}return me+F.slice(ge)}]})},3123:function(i,l,a){var c=a(7007),d=a(7850),f=a(9670),h=a(4488),p=a(6707),m=a(1530),g=a(7466),y=a(7651),C=a(2261),S=a(7293),k=[].push,v=Math.min,A=4294967295,T=!S(function(){return!RegExp(A,"y")});c("split",2,function(V,H,U){var B;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?B=function(L,z){var W=String(h(this)),j=z===void 0?A:z>>>0;if(j===0)return[];if(L===void 0)return[W];if(!d(L))return H.call(W,L,j);for(var F=[],P=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(L.sticky?"y":""),G=0,D=new RegExp(L.source,P+"g"),Q,te,ce;(Q=C.call(D,W))&&(te=D.lastIndex,!(te>G&&(F.push(W.slice(G,Q.index)),Q.length>1&&Q.index<W.length&&k.apply(F,Q.slice(1)),ce=Q[0].length,G=te,F.length>=j)));)D.lastIndex===Q.index&&D.lastIndex++;return G===W.length?(ce||!D.test(""))&&F.push(""):F.push(W.slice(G)),F.length>j?F.slice(0,j):F}:"0".split(void 0,0).length?B=function(L,z){return L===void 0&&z===0?[]:H.call(this,L,z)}:B=H,[function(z,W){var j=h(this),F=z==null?void 0:z[V];return F!==void 0?F.call(z,j,W):B.call(String(j),z,W)},function(L,z){var W=U(B,L,this,z,B!==H);if(W.done)return W.value;var j=f(L),F=String(this),P=p(j,RegExp),G=j.unicode,D=(j.ignoreCase?"i":"")+(j.multiline?"m":"")+(j.unicode?"u":"")+(T?"y":"g"),Q=new P(T?j:"^(?:"+j.source+")",D),te=z===void 0?A:z>>>0;if(te===0)return[];if(F.length===0)return y(Q,F)===null?[F]:[];for(var ce=0,me=0,ge=[];me<F.length;){Q.lastIndex=T?me:0;var Ce=y(Q,T?F:F.slice(me)),we;if(Ce===null||(we=v(g(Q.lastIndex+(T?0:me)),F.length))===ce)me=m(F,me,G);else{if(ge.push(F.slice(ce,me)),ge.length===te)return ge;for(var Te=1;Te<=Ce.length-1;Te++)if(ge.push(Ce[Te]),ge.length===te)return ge;me=ce=we}}return ge.push(F.slice(ce)),ge}]},!T)},3210:function(i,l,a){var c=a(2109),d=a(3111).trim,f=a(6091);c({target:"String",proto:!0,forced:f("trim")},{trim:function(){return d(this)}})},2990:function(i,l,a){var c=a(260),d=a(1048),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("copyWithin",function(m,g){return d.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})},8927:function(i,l,a){var c=a(260),d=a(2092).every,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("every",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},3105:function(i,l,a){var c=a(260),d=a(1285),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("fill",function(m){return d.apply(f(this),arguments)})},5035:function(i,l,a){var c=a(260),d=a(2092).filter,f=a(3074),h=c.aTypedArray,p=c.exportTypedArrayMethod;p("filter",function(g){var y=d(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,y)})},7174:function(i,l,a){var c=a(260),d=a(2092).findIndex,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("findIndex",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},4345:function(i,l,a){var c=a(260),d=a(2092).find,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("find",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},2846:function(i,l,a){var c=a(260),d=a(2092).forEach,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("forEach",function(m){d(f(this),m,arguments.length>1?arguments[1]:void 0)})},4731:function(i,l,a){var c=a(260),d=a(1318).includes,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("includes",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},7209:function(i,l,a){var c=a(260),d=a(1318).indexOf,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("indexOf",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},6319:function(i,l,a){var c=a(7854),d=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=c.Uint8Array,g=f.values,y=f.keys,C=f.entries,S=d.aTypedArray,k=d.exportTypedArrayMethod,v=m&&m.prototype[p],A=!!v&&(v.name=="values"||v.name==null),T=function(){return g.call(S(this))};k("entries",function(){return C.call(S(this))}),k("keys",function(){return y.call(S(this))}),k("values",T,!A),k(p,T,!A)},8867:function(i,l,a){var c=a(260),d=c.aTypedArray,f=c.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(d(this),arguments)})},7789:function(i,l,a){var c=a(260),d=a(6583),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("lastIndexOf",function(m){return d.apply(f(this),arguments)})},3739:function(i,l,a){var c=a(260),d=a(2092).map,f=a(6707),h=c.aTypedArray,p=c.aTypedArrayConstructor,m=c.exportTypedArrayMethod;m("map",function(y){return d(h(this),y,arguments.length>1?arguments[1]:void 0,function(C,S){return new(p(f(C,C.constructor)))(S)})})},4483:function(i,l,a){var c=a(260),d=a(3671).right,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduceRight",function(m){return d(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(i,l,a){var c=a(260),d=a(3671).left,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduce",function(m){return d(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(i,l,a){var c=a(260),d=c.aTypedArray,f=c.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=d(m).length,y=h(g/2),C=0,S;C<y;)S=m[C],m[C++]=m[--g],m[g]=S;return m})},3462:function(i,l,a){var c=a(260),d=a(7466),f=a(4590),h=a(7908),p=a(7293),m=c.aTypedArray,g=c.exportTypedArrayMethod,y=p(function(){new Int8Array(1).set({})});g("set",function(S){m(this);var k=f(arguments.length>1?arguments[1]:void 0,1),v=this.length,A=h(S),T=d(A.length),V=0;if(T+k>v)throw RangeError("Wrong length");for(;V<T;)this[k+V]=A[V++]},y)},678:function(i,l,a){var c=a(260),d=a(6707),f=a(7293),h=c.aTypedArray,p=c.aTypedArrayConstructor,m=c.exportTypedArrayMethod,g=[].slice,y=f(function(){new Int8Array(1).slice()});m("slice",function(S,k){for(var v=g.call(h(this),S,k),A=d(this,this.constructor),T=0,V=v.length,H=new(p(A))(V);V>T;)H[T]=v[T++];return H},y)},7462:function(i,l,a){var c=a(260),d=a(2092).some,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("some",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})},3824:function(i,l,a){var c=a(260),d=c.aTypedArray,f=c.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(d(this),m)})},5021:function(i,l,a){var c=a(260),d=a(7466),f=a(1400),h=a(6707),p=c.aTypedArray,m=c.exportTypedArrayMethod;m("subarray",function(y,C){var S=p(this),k=S.length,v=f(y,k);return new(h(S,S.constructor))(S.buffer,S.byteOffset+v*S.BYTES_PER_ELEMENT,d((C===void 0?k:f(C,k))-v))})},2974:function(i,l,a){var c=a(7854),d=a(260),f=a(7293),h=c.Int8Array,p=d.aTypedArray,m=d.exportTypedArrayMethod,g=[].toLocaleString,y=[].slice,C=!!h&&f(function(){g.call(new h(1))}),S=f(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!f(function(){h.prototype.toLocaleString.call([1,2])});m("toLocaleString",function(){return g.apply(C?y.call(p(this)):p(this),arguments)},S)},5016:function(i,l,a){var c=a(260).exportTypedArrayMethod,d=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;d(function(){m.call({})})&&(m=function(){return g.call(this)});var y=p.toString!=m;c("toString",m,y)},2472:function(i,l,a){var c=a(9843);c("Uint8",function(d){return function(h,p,m){return d(this,h,p,m)}})},4747:function(i,l,a){var c=a(7854),d=a(8324),f=a(8533),h=a(8880);for(var p in d){var m=c[p],g=m&&m.prototype;if(g&&g.forEach!==f)try{h(g,"forEach",f)}catch{g.forEach=f}}},3948:function(i,l,a){var c=a(7854),d=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),g=p("toStringTag"),y=f.values;for(var C in d){var S=c[C],k=S&&S.prototype;if(k){if(k[m]!==y)try{h(k,m,y)}catch{k[m]=y}if(k[g]||h(k,g,C),d[C]){for(var v in f)if(k[v]!==f[v])try{h(k,v,f[v])}catch{k[v]=f[v]}}}}},1637:function(i,l,a){a(6992);var c=a(2109),d=a(5005),f=a(590),h=a(1320),p=a(2248),m=a(8003),g=a(4994),y=a(9909),C=a(5787),S=a(6656),k=a(9974),v=a(648),A=a(9670),T=a(111),V=a(30),H=a(9114),U=a(8554),B=a(1246),L=a(5112),z=d("fetch"),W=d("Headers"),j=L("iterator"),F="URLSearchParams",P=F+"Iterator",G=y.set,D=y.getterFor(F),Q=y.getterFor(P),te=/\+/g,ce=Array(4),me=function(I){return ce[I-1]||(ce[I-1]=RegExp("((?:%[\\da-f]{2}){"+I+"})","gi"))},ge=function(I){try{return decodeURIComponent(I)}catch{return I}},Ce=function(I){var R=I.replace(te," "),$=4;try{return decodeURIComponent(R)}catch{for(;$;)R=R.replace(me($--),ge);return R}},we=/[!'()~]|%20/g,Te={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(I){return Te[I]},x=function(I){return encodeURIComponent(I).replace(we,ve)},M=function(I,R){if(R)for(var $=R.split("&"),K=0,J,Y;K<$.length;)J=$[K++],J.length&&(Y=J.split("="),I.push({key:Ce(Y.shift()),value:Ce(Y.join("="))}))},w=function(I){this.entries.length=0,M(this.entries,I)},O=function(I,R){if(I<R)throw TypeError("Not enough arguments")},b=g(function(R,$){G(this,{type:P,iterator:U(D(R).entries),kind:$})},"Iterator",function(){var R=Q(this),$=R.kind,K=R.iterator.next(),J=K.value;return K.done||(K.value=$==="keys"?J.key:$==="values"?J.value:[J.key,J.value]),K}),E=function(){C(this,E,F);var R=arguments.length>0?arguments[0]:void 0,$=this,K=[],J,Y,Z,X,ne,he,Se,_e,ze;if(G($,{type:F,entries:K,updateURL:function(){},updateSearchParams:w}),R!==void 0)if(T(R))if(J=B(R),typeof J=="function")for(Y=J.call(R),Z=Y.next;!(X=Z.call(Y)).done;){if(ne=U(A(X.value)),he=ne.next,(Se=he.call(ne)).done||(_e=he.call(ne)).done||!he.call(ne).done)throw TypeError("Expected sequence with length 2");K.push({key:Se.value+"",value:_e.value+""})}else for(ze in R)S(R,ze)&&K.push({key:ze,value:R[ze]+""});else M(K,typeof R=="string"?R.charAt(0)==="?"?R.slice(1):R:R+"")},_=E.prototype;p(_,{append:function(R,$){O(arguments.length,2);var K=D(this);K.entries.push({key:R+"",value:$+""}),K.updateURL()},delete:function(I){O(arguments.length,1);for(var R=D(this),$=R.entries,K=I+"",J=0;J<$.length;)$[J].key===K?$.splice(J,1):J++;R.updateURL()},get:function(R){O(arguments.length,1);for(var $=D(this).entries,K=R+"",J=0;J<$.length;J++)if($[J].key===K)return $[J].value;return null},getAll:function(R){O(arguments.length,1);for(var $=D(this).entries,K=R+"",J=[],Y=0;Y<$.length;Y++)$[Y].key===K&&J.push($[Y].value);return J},has:function(R){O(arguments.length,1);for(var $=D(this).entries,K=R+"",J=0;J<$.length;)if($[J++].key===K)return!0;return!1},set:function(R,$){O(arguments.length,1);for(var K=D(this),J=K.entries,Y=!1,Z=R+"",X=$+"",ne=0,he;ne<J.length;ne++)he=J[ne],he.key===Z&&(Y?J.splice(ne--,1):(Y=!0,he.value=X));Y||J.push({key:Z,value:X}),K.updateURL()},sort:function(){var R=D(this),$=R.entries,K=$.slice(),J,Y,Z;for($.length=0,Z=0;Z<K.length;Z++){for(J=K[Z],Y=0;Y<Z;Y++)if($[Y].key>J.key){$.splice(Y,0,J);break}Y===Z&&$.push(J)}R.updateURL()},forEach:function(R){for(var $=D(this).entries,K=k(R,arguments.length>1?arguments[1]:void 0,3),J=0,Y;J<$.length;)Y=$[J++],K(Y.value,Y.key,this)},keys:function(){return new b(this,"keys")},values:function(){return new b(this,"values")},entries:function(){return new b(this,"entries")}},{enumerable:!0}),h(_,j,_.entries),h(_,"toString",function(){for(var R=D(this).entries,$=[],K=0,J;K<R.length;)J=R[K++],$.push(x(J.key)+"="+x(J.value));return $.join("&")},{enumerable:!0}),m(E,F),c({global:!0,forced:!f},{URLSearchParams:E}),!f&&typeof z=="function"&&typeof W=="function"&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(R){var $=[R],K,J,Y;return arguments.length>1&&(K=arguments[1],T(K)&&(J=K.body,v(J)===F&&(Y=K.headers?new W(K.headers):new W,Y.has("content-type")||Y.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),K=V(K,{body:H(0,String(J)),headers:H(0,Y)}))),$.push(K)),z.apply(this,$)}}),i.exports={URLSearchParams:E,getState:D}},285:function(i,l,a){a(8783);var c=a(2109),d=a(9781),f=a(590),h=a(7854),p=a(6048),m=a(1320),g=a(5787),y=a(6656),C=a(1574),S=a(8457),k=a(8710).codeAt,v=a(3197),A=a(8003),T=a(1637),V=a(9909),H=h.URL,U=T.URLSearchParams,B=T.getState,L=V.set,z=V.getterFor("URL"),W=Math.floor,j=Math.pow,F="Invalid authority",P="Invalid scheme",G="Invalid host",D="Invalid port",Q=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,ce=/\d/,me=/^(0x|0X)/,ge=/^[0-7]+$/,Ce=/^\d+$/,we=/^[\dA-Fa-f]+$/,Te=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ve=/[\u0000\t\u000A\u000D #/:?@[\\]]/,x=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\t\u000A\u000D]/g,w,O=function(N,re){var ee,oe,le;if(re.charAt(0)=="["){if(re.charAt(re.length-1)!="]"||(ee=E(re.slice(1,-1)),!ee))return G;N.host=ee}else if(X(N)){if(re=v(re),Te.test(re)||(ee=b(re),ee===null))return G;N.host=ee}else{if(ve.test(re))return G;for(ee="",oe=S(re),le=0;le<oe.length;le++)ee+=Y(oe[le],R);N.host=ee}},b=function(N){var re=N.split("."),ee,oe,le,Me,Ee,Fe,je;if(re.length&&re[re.length-1]==""&&re.pop(),ee=re.length,ee>4)return N;for(oe=[],le=0;le<ee;le++){if(Me=re[le],Me=="")return N;if(Ee=10,Me.length>1&&Me.charAt(0)=="0"&&(Ee=me.test(Me)?16:8,Me=Me.slice(Ee==8?1:2)),Me==="")Fe=0;else{if(!(Ee==10?Ce:Ee==8?ge:we).test(Me))return N;Fe=parseInt(Me,Ee)}oe.push(Fe)}for(le=0;le<ee;le++)if(Fe=oe[le],le==ee-1){if(Fe>=j(256,5-ee))return null}else if(Fe>255)return null;for(je=oe.pop(),le=0;le<oe.length;le++)je+=oe[le]*j(256,3-le);return je},E=function(N){var re=[0,0,0,0,0,0,0,0],ee=0,oe=null,le=0,Me,Ee,Fe,je,Ge,Ht,ie,qe=function(){return N.charAt(le)};if(qe()==":"){if(N.charAt(1)!=":")return;le+=2,ee++,oe=ee}for(;qe();){if(ee==8)return;if(qe()==":"){if(oe!==null)return;le++,ee++,oe=ee;continue}for(Me=Ee=0;Ee<4&&we.test(qe());)Me=Me*16+parseInt(qe(),16),le++,Ee++;if(qe()=="."){if(Ee==0||(le-=Ee,ee>6))return;for(Fe=0;qe();){if(je=null,Fe>0)if(qe()=="."&&Fe<4)le++;else return;if(!ce.test(qe()))return;for(;ce.test(qe());){if(Ge=parseInt(qe(),10),je===null)je=Ge;else{if(je==0)return;je=je*10+Ge}if(je>255)return;le++}re[ee]=re[ee]*256+je,Fe++,(Fe==2||Fe==4)&&ee++}if(Fe!=4)return;break}else if(qe()==":"){if(le++,!qe())return}else if(qe())return;re[ee++]=Me}if(oe!==null)for(Ht=ee-oe,ee=7;ee!=0&&Ht>0;)ie=re[ee],re[ee--]=re[oe+Ht-1],re[oe+--Ht]=ie;else if(ee!=8)return;return re},_=function(N){for(var re=null,ee=1,oe=null,le=0,Me=0;Me<8;Me++)N[Me]!==0?(le>ee&&(re=oe,ee=le),oe=null,le=0):(oe===null&&(oe=Me),++le);return le>ee&&(re=oe,ee=le),re},I=function(N){var re,ee,oe,le;if(typeof N=="number"){for(re=[],ee=0;ee<4;ee++)re.unshift(N%256),N=W(N/256);return re.join(".")}else if(typeof N=="object"){for(re="",oe=_(N),ee=0;ee<8;ee++)le&&N[ee]===0||(le&&(le=!1),oe===ee?(re+=ee?":":"::",le=!0):(re+=N[ee].toString(16),ee<7&&(re+=":")));return"["+re+"]"}return N},R={},$=C({},R,{" ":1,'"':1,"<":1,">":1,"`":1}),K=C({},$,{"#":1,"?":1,"{":1,"}":1}),J=C({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(N,re){var ee=k(N,0);return ee>32&&ee<127&&!y(re,N)?N:encodeURIComponent(N)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(N){return y(Z,N.scheme)},ne=function(N){return N.username!=""||N.password!=""},he=function(N){return!N.host||N.cannotBeABaseURL||N.scheme=="file"},Se=function(N,re){var ee;return N.length==2&&Q.test(N.charAt(0))&&((ee=N.charAt(1))==":"||!re&&ee=="|")},_e=function(N){var re;return N.length>1&&Se(N.slice(0,2))&&(N.length==2||(re=N.charAt(2))==="/"||re==="\\"||re==="?"||re==="#")},ze=function(N){var re=N.path,ee=re.length;ee&&(N.scheme!="file"||ee!=1||!Se(re[0],!0))&&re.pop()},Ve=function(N){return N==="."||N.toLowerCase()==="%2e"},De=function(N){return N=N.toLowerCase(),N===".."||N==="%2e."||N===".%2e"||N==="%2e%2e"},Ze={},St={},at={},Gn={},q={},de={},fe={},xe={},Oe={},Ue={},We={},gt={},yt={},rt={},cn={},Jn={},Mt={},Ft={},mo={},Vt={},Cn={},un=function(N,re,ee,oe){var le=ee||Ze,Me=0,Ee="",Fe=!1,je=!1,Ge=!1,Ht,ie,qe,Sn;for(ee||(N.scheme="",N.username="",N.password="",N.host=null,N.port=null,N.path=[],N.query=null,N.fragment=null,N.cannotBeABaseURL=!1,re=re.replace(x,"")),re=re.replace(M,""),Ht=S(re);Me<=Ht.length;){switch(ie=Ht[Me],le){case Ze:if(ie&&Q.test(ie))Ee+=ie.toLowerCase(),le=St;else{if(ee)return P;le=at;continue}break;case St:if(ie&&(te.test(ie)||ie=="+"||ie=="-"||ie=="."))Ee+=ie.toLowerCase();else if(ie==":"){if(ee&&(X(N)!=y(Z,Ee)||Ee=="file"&&(ne(N)||N.port!==null)||N.scheme=="file"&&!N.host))return;if(N.scheme=Ee,ee){X(N)&&Z[N.scheme]==N.port&&(N.port=null);return}Ee="",N.scheme=="file"?le=rt:X(N)&&oe&&oe.scheme==N.scheme?le=Gn:X(N)?le=xe:Ht[Me+1]=="/"?(le=q,Me++):(N.cannotBeABaseURL=!0,N.path.push(""),le=mo)}else{if(ee)return P;Ee="",le=at,Me=0;continue}break;case at:if(!oe||oe.cannotBeABaseURL&&ie!="#")return P;if(oe.cannotBeABaseURL&&ie=="#"){N.scheme=oe.scheme,N.path=oe.path.slice(),N.query=oe.query,N.fragment="",N.cannotBeABaseURL=!0,le=Cn;break}le=oe.scheme=="file"?rt:de;continue;case Gn:if(ie=="/"&&Ht[Me+1]=="/")le=Oe,Me++;else{le=de;continue}break;case q:if(ie=="/"){le=Ue;break}else{le=Ft;continue}case de:if(N.scheme=oe.scheme,ie==w)N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,N.path=oe.path.slice(),N.query=oe.query;else if(ie=="/"||ie=="\\"&&X(N))le=fe;else if(ie=="?")N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,N.path=oe.path.slice(),N.query="",le=Vt;else if(ie=="#")N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,N.path=oe.path.slice(),N.query=oe.query,N.fragment="",le=Cn;else{N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,N.path=oe.path.slice(),N.path.pop(),le=Ft;continue}break;case fe:if(X(N)&&(ie=="/"||ie=="\\"))le=Oe;else if(ie=="/")le=Ue;else{N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,le=Ft;continue}break;case xe:if(le=Oe,ie!="/"||Ee.charAt(Me+1)!="/")continue;Me++;break;case Oe:if(ie!="/"&&ie!="\\"){le=Ue;continue}break;case Ue:if(ie=="@"){Fe&&(Ee="%40"+Ee),Fe=!0,qe=S(Ee);for(var Zc=0;Zc<qe.length;Zc++){var i1=qe[Zc];if(i1==":"&&!Ge){Ge=!0;continue}var a1=Y(i1,J);Ge?N.password+=a1:N.username+=a1}Ee=""}else if(ie==w||ie=="/"||ie=="?"||ie=="#"||ie=="\\"&&X(N)){if(Fe&&Ee=="")return F;Me-=S(Ee).length+1,Ee="",le=We}else Ee+=ie;break;case We:case gt:if(ee&&N.scheme=="file"){le=Jn;continue}else if(ie==":"&&!je){if(Ee=="")return G;if(Sn=O(N,Ee),Sn)return Sn;if(Ee="",le=yt,ee==gt)return}else if(ie==w||ie=="/"||ie=="?"||ie=="#"||ie=="\\"&&X(N)){if(X(N)&&Ee=="")return G;if(ee&&Ee==""&&(ne(N)||N.port!==null))return;if(Sn=O(N,Ee),Sn)return Sn;if(Ee="",le=Mt,ee)return;continue}else ie=="["?je=!0:ie=="]"&&(je=!1),Ee+=ie;break;case yt:if(ce.test(ie))Ee+=ie;else if(ie==w||ie=="/"||ie=="?"||ie=="#"||ie=="\\"&&X(N)||ee){if(Ee!=""){var Xc=parseInt(Ee,10);if(Xc>65535)return D;N.port=X(N)&&Xc===Z[N.scheme]?null:Xc,Ee=""}if(ee)return;le=Mt;continue}else return D;break;case rt:if(N.scheme="file",ie=="/"||ie=="\\")le=cn;else if(oe&&oe.scheme=="file")if(ie==w)N.host=oe.host,N.path=oe.path.slice(),N.query=oe.query;else if(ie=="?")N.host=oe.host,N.path=oe.path.slice(),N.query="",le=Vt;else if(ie=="#")N.host=oe.host,N.path=oe.path.slice(),N.query=oe.query,N.fragment="",le=Cn;else{_e(Ht.slice(Me).join(""))||(N.host=oe.host,N.path=oe.path.slice(),ze(N)),le=Ft;continue}else{le=Ft;continue}break;case cn:if(ie=="/"||ie=="\\"){le=Jn;break}oe&&oe.scheme=="file"&&!_e(Ht.slice(Me).join(""))&&(Se(oe.path[0],!0)?N.path.push(oe.path[0]):N.host=oe.host),le=Ft;continue;case Jn:if(ie==w||ie=="/"||ie=="\\"||ie=="?"||ie=="#"){if(!ee&&Se(Ee))le=Ft;else if(Ee==""){if(N.host="",ee)return;le=Mt}else{if(Sn=O(N,Ee),Sn)return Sn;if(N.host=="localhost"&&(N.host=""),ee)return;Ee="",le=Mt}continue}else Ee+=ie;break;case Mt:if(X(N)){if(le=Ft,ie!="/"&&ie!="\\")continue}else if(!ee&&ie=="?")N.query="",le=Vt;else if(!ee&&ie=="#")N.fragment="",le=Cn;else if(ie!=w&&(le=Ft,ie!="/"))continue;break;case Ft:if(ie==w||ie=="/"||ie=="\\"&&X(N)||!ee&&(ie=="?"||ie=="#")){if(De(Ee)?(ze(N),ie!="/"&&!(ie=="\\"&&X(N))&&N.path.push("")):Ve(Ee)?ie!="/"&&!(ie=="\\"&&X(N))&&N.path.push(""):(N.scheme=="file"&&!N.path.length&&Se(Ee)&&(N.host&&(N.host=""),Ee=Ee.charAt(0)+":"),N.path.push(Ee)),Ee="",N.scheme=="file"&&(ie==w||ie=="?"||ie=="#"))for(;N.path.length>1&&N.path[0]==="";)N.path.shift();ie=="?"?(N.query="",le=Vt):ie=="#"&&(N.fragment="",le=Cn)}else Ee+=Y(ie,K);break;case mo:ie=="?"?(N.query="",le=Vt):ie=="#"?(N.fragment="",le=Cn):ie!=w&&(N.path[0]+=Y(ie,R));break;case Vt:!ee&&ie=="#"?(N.fragment="",le=Cn):ie!=w&&(ie=="'"&&X(N)?N.query+="%27":ie=="#"?N.query+="%23":N.query+=Y(ie,R));break;case Cn:ie!=w&&(N.fragment+=Y(ie,$));break}Me++}},Tr=function(re){var ee=g(this,Tr,"URL"),oe=arguments.length>1?arguments[1]:void 0,le=String(re),Me=L(ee,{type:"URL"}),Ee,Fe;if(oe!==void 0){if(oe instanceof Tr)Ee=z(oe);else if(Fe=un(Ee={},String(oe)),Fe)throw TypeError(Fe)}if(Fe=un(Me,le,null,Ee),Fe)throw TypeError(Fe);var je=Me.searchParams=new U,Ge=B(je);Ge.updateSearchParams(Me.query),Ge.updateURL=function(){Me.query=String(je)||null},d||(ee.href=fa.call(ee),ee.origin=Ym.call(ee),ee.protocol=Gm.call(ee),ee.username=Jm.call(ee),ee.password=Zm.call(ee),ee.host=Xm.call(ee),ee.hostname=Qm.call(ee),ee.port=qm.call(ee),ee.pathname=e1.call(ee),ee.search=t1.call(ee),ee.searchParams=n1.call(ee),ee.hash=r1.call(ee))},Jc=Tr.prototype,fa=function(){var N=z(this),re=N.scheme,ee=N.username,oe=N.password,le=N.host,Me=N.port,Ee=N.path,Fe=N.query,je=N.fragment,Ge=re+":";return le!==null?(Ge+="//",ne(N)&&(Ge+=ee+(oe?":"+oe:"")+"@"),Ge+=I(le),Me!==null&&(Ge+=":"+Me)):re=="file"&&(Ge+="//"),Ge+=N.cannotBeABaseURL?Ee[0]:Ee.length?"/"+Ee.join("/"):"",Fe!==null&&(Ge+="?"+Fe),je!==null&&(Ge+="#"+je),Ge},Ym=function(){var N=z(this),re=N.scheme,ee=N.port;if(re=="blob")try{return new URL(re.path[0]).origin}catch{return"null"}return re=="file"||!X(N)?"null":re+"://"+I(N.host)+(ee!==null?":"+ee:"")},Gm=function(){return z(this).scheme+":"},Jm=function(){return z(this).username},Zm=function(){return z(this).password},Xm=function(){var N=z(this),re=N.host,ee=N.port;return re===null?"":ee===null?I(re):I(re)+":"+ee},Qm=function(){var N=z(this).host;return N===null?"":I(N)},qm=function(){var N=z(this).port;return N===null?"":String(N)},e1=function(){var N=z(this),re=N.path;return N.cannotBeABaseURL?re[0]:re.length?"/"+re.join("/"):""},t1=function(){var N=z(this).query;return N?"?"+N:""},n1=function(){return z(this).searchParams},r1=function(){var N=z(this).fragment;return N?"#"+N:""},zt=function(N,re){return{get:N,set:re,configurable:!0,enumerable:!0}};if(d&&p(Jc,{href:zt(fa,function(N){var re=z(this),ee=String(N),oe=un(re,ee);if(oe)throw TypeError(oe);B(re.searchParams).updateSearchParams(re.query)}),origin:zt(Ym),protocol:zt(Gm,function(N){var re=z(this);un(re,String(N)+":",Ze)}),username:zt(Jm,function(N){var re=z(this),ee=S(String(N));if(!he(re)){re.username="";for(var oe=0;oe<ee.length;oe++)re.username+=Y(ee[oe],J)}}),password:zt(Zm,function(N){var re=z(this),ee=S(String(N));if(!he(re)){re.password="";for(var oe=0;oe<ee.length;oe++)re.password+=Y(ee[oe],J)}}),host:zt(Xm,function(N){var re=z(this);re.cannotBeABaseURL||un(re,String(N),We)}),hostname:zt(Qm,function(N){var re=z(this);re.cannotBeABaseURL||un(re,String(N),gt)}),port:zt(qm,function(N){var re=z(this);he(re)||(N=String(N),N==""?re.port=null:un(re,N,yt))}),pathname:zt(e1,function(N){var re=z(this);re.cannotBeABaseURL||(re.path=[],un(re,N+"",Mt))}),search:zt(t1,function(N){var re=z(this);N=String(N),N==""?re.query=null:(N.charAt(0)=="?"&&(N=N.slice(1)),re.query="",un(re,N,Vt)),B(re.searchParams).updateSearchParams(re.query)}),searchParams:zt(n1),hash:zt(r1,function(N){var re=z(this);if(N=String(N),N==""){re.fragment=null;return}N.charAt(0)=="#"&&(N=N.slice(1)),re.fragment="",un(re,N,Cn)})}),m(Jc,"toJSON",function(){return fa.call(this)},{enumerable:!0}),m(Jc,"toString",function(){return fa.call(this)},{enumerable:!0}),H){var o1=H.createObjectURL,s1=H.revokeObjectURL;o1&&m(Tr,"createObjectURL",function(re){return o1.apply(H,arguments)}),s1&&m(Tr,"revokeObjectURL",function(re){return s1.apply(H,arguments)})}A(Tr,"URL"),c({global:!0,forced:!f,sham:!d},{URL:Tr})}},r={};function o(i){if(r[i])return r[i].exports;var l=r[i]={exports:{}};return t[i](l,l.exports,o),l.exports}(function(){o.d=function(i,l){for(var a in l)o.o(l,a)&&!o.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:l[a]})}})(),function(){o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){o.o=function(i,l){return Object.prototype.hasOwnProperty.call(i,l)}}(),function(){o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})}}();var s={};return function(){o.r(s),o.d(s,{Dropzone:function(){return D},default:function(){return ve}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function i(x,M){var w;if(typeof Symbol>"u"||x[Symbol.iterator]==null){if(Array.isArray(x)||(w=l(x))||M&&x&&typeof x.length=="number"){w&&(x=w);var O=0,b=function(){};return{s:b,n:function(){return O>=x.length?{done:!0}:{done:!1,value:x[O++]}},e:function($){throw $},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
7
7
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,_=!1,I;return{s:function(){w=x[Symbol.iterator]()},n:function(){var $=w.next();return E=$.done,$},e:function($){_=!0,I=$},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(_)throw I}}}}function l(x,M){if(x){if(typeof x=="string")return a(x,M);var w=Object.prototype.toString.call(x).slice(8,-1);if(w==="Object"&&x.constructor&&(w=x.constructor.name),w==="Map"||w==="Set")return Array.from(x);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return a(x,M)}}function a(x,M){(M==null||M>x.length)&&(M=x.length);for(var w=0,O=new Array(M);w<M;w++)O[w]=x[w];return O}function c(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")}function d(x,M){for(var w=0;w<M.length;w++){var O=M[w];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(x,O.key,O)}}function f(x,M,w){return M&&d(x.prototype,M),w&&d(x,w),x}var h=function(){function x(){c(this,x)}return f(x,[{key:"on",value:function(w,O){return this._callbacks=this._callbacks||{},this._callbacks[w]||(this._callbacks[w]=[]),this._callbacks[w].push(O),this}},{key:"emit",value:function(w){this._callbacks=this._callbacks||{};for(var O=this._callbacks[w],b=arguments.length,E=new Array(b>1?b-1:0),_=1;_<b;_++)E[_-1]=arguments[_];if(O){var I=i(O,!0),R;try{for(I.s();!(R=I.n()).done;){var $=R.value;$.apply(this,E)}}catch(K){I.e(K)}finally{I.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+w,{args:E})),this}},{key:"makeEvent",value:function(w,O){var b={bubbles:!0,cancelable:!0,detail:O};if(typeof window.CustomEvent=="function")return new CustomEvent(w,b);var E=document.createEvent("CustomEvent");return E.initCustomEvent(w,b.bubbles,b.cancelable,b.detail),E}},{key:"off",value:function(w,O){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var b=this._callbacks[w];if(!b)return this;if(arguments.length===1)return delete this._callbacks[w],this;for(var E=0;E<b.length;E++){var _=b[E];if(_===O){b.splice(E,1);break}}return this}}]),x}(),p='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',m=p;function g(x,M){var w;if(typeof Symbol>"u"||x[Symbol.iterator]==null){if(Array.isArray(x)||(w=y(x))||M&&x&&typeof x.length=="number"){w&&(x=w);var O=0,b=function(){};return{s:b,n:function(){return O>=x.length?{done:!0}:{done:!1,value:x[O++]}},e:function($){throw $},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
8
8
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,_=!1,I;return{s:function(){w=x[Symbol.iterator]()},n:function(){var $=w.next();return E=$.done,$},e:function($){_=!0,I=$},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(_)throw I}}}}function y(x,M){if(x){if(typeof x=="string")return C(x,M);var w=Object.prototype.toString.call(x).slice(8,-1);if(w==="Object"&&x.constructor&&(w=x.constructor.name),w==="Map"||w==="Set")return Array.from(x);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return C(x,M)}}function C(x,M){(M==null||M>x.length)&&(M=x.length);for(var w=0,O=new Array(M);w<M;w++)O[w]=x[w];return O}var S={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(M,w,O){if(O)return{dzuuid:O.file.upload.uuid,dzchunkindex:O.index,dztotalfilesize:O.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:O.file.upload.totalChunkCount,dzchunkbyteoffset:O.index*this.options.chunkSize}},accept:function(M,w){return w()},chunksUploaded:function(M,w){w()},fallback:function(){var M;this.element.className="".concat(this.element.className," dz-browser-not-supported");var w=g(this.element.getElementsByTagName("div"),!0),O;try{for(w.s();!(O=w.n()).done;){var b=O.value;if(/(^| )dz-message($| )/.test(b.className)){M=b,b.className="dz-message";break}}}catch(_){w.e(_)}finally{w.f()}M||(M=D.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(M));var E=M.getElementsByTagName("span")[0];return E&&(E.textContent!=null?E.textContent=this.options.dictFallbackMessage:E.innerText!=null&&(E.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(M,w,O,b){var E={srcX:0,srcY:0,srcWidth:M.width,srcHeight:M.height},_=M.width/M.height;w==null&&O==null?(w=E.srcWidth,O=E.srcHeight):w==null?w=O*_:O==null&&(O=w/_),w=Math.min(w,E.srcWidth),O=Math.min(O,E.srcHeight);var I=w/O;if(E.srcWidth>w||E.srcHeight>O)if(b==="crop")_>I?(E.srcHeight=M.height,E.srcWidth=E.srcHeight*I):(E.srcWidth=M.width,E.srcHeight=E.srcWidth/I);else if(b==="contain")_>I?O=w/_:w=O*_;else throw new Error("Unknown resizeMethod '".concat(b,"'"));return E.srcX=(M.width-E.srcWidth)/2,E.srcY=(M.height-E.srcHeight)/2,E.trgWidth=w,E.trgHeight=O,E},transformFile:function(M,w){return(this.options.resizeWidth||this.options.resizeHeight)&&M.type.match(/image.*/)?this.resizeImage(M,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,w):w(M)},previewTemplate:m,drop:function(M){return this.element.classList.remove("dz-drag-hover")},dragstart:function(M){},dragend:function(M){return this.element.classList.remove("dz-drag-hover")},dragenter:function(M){return this.element.classList.add("dz-drag-hover")},dragover:function(M){return this.element.classList.add("dz-drag-hover")},dragleave:function(M){return this.element.classList.remove("dz-drag-hover")},paste:function(M){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(M){var w=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){M.previewElement=D.createElement(this.options.previewTemplate.trim()),M.previewTemplate=M.previewElement,this.previewsContainer.appendChild(M.previewElement);var O=g(M.previewElement.querySelectorAll("[data-dz-name]"),!0),b;try{for(O.s();!(b=O.n()).done;){var E=b.value;E.textContent=M.name}}catch(Y){O.e(Y)}finally{O.f()}var _=g(M.previewElement.querySelectorAll("[data-dz-size]"),!0),I;try{for(_.s();!(I=_.n()).done;)E=I.value,E.innerHTML=this.filesize(M.size)}catch(Y){_.e(Y)}finally{_.f()}this.options.addRemoveLinks&&(M._removeLink=D.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),M.previewElement.appendChild(M._removeLink));var R=function(Z){return Z.preventDefault(),Z.stopPropagation(),M.status===D.UPLOADING?D.confirm(w.options.dictCancelUploadConfirmation,function(){return w.removeFile(M)}):w.options.dictRemoveFileConfirmation?D.confirm(w.options.dictRemoveFileConfirmation,function(){return w.removeFile(M)}):w.removeFile(M)},$=g(M.previewElement.querySelectorAll("[data-dz-remove]"),!0),K;try{for($.s();!(K=$.n()).done;){var J=K.value;J.addEventListener("click",R)}}catch(Y){$.e(Y)}finally{$.f()}}},removedfile:function(M){return M.previewElement!=null&&M.previewElement.parentNode!=null&&M.previewElement.parentNode.removeChild(M.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(M,w){if(M.previewElement){M.previewElement.classList.remove("dz-file-preview");var O=g(M.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),b;try{for(O.s();!(b=O.n()).done;){var E=b.value;E.alt=M.name,E.src=w}}catch(_){O.e(_)}finally{O.f()}return setTimeout(function(){return M.previewElement.classList.add("dz-image-preview")},1)}},error:function(M,w){if(M.previewElement){M.previewElement.classList.add("dz-error"),typeof w!="string"&&w.error&&(w=w.error);var O=g(M.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),b;try{for(O.s();!(b=O.n()).done;){var E=b.value;E.textContent=w}}catch(_){O.e(_)}finally{O.f()}}},errormultiple:function(){},processing:function(M){if(M.previewElement&&(M.previewElement.classList.add("dz-processing"),M._removeLink))return M._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(M,w,O){if(M.previewElement){var b=g(M.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),E;try{for(b.s();!(E=b.n()).done;){var _=E.value;_.nodeName==="PROGRESS"?_.value=w:_.style.width="".concat(w,"%")}}catch(I){b.e(I)}finally{b.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(M){if(M.previewElement)return M.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(M){return this.emit("error",M,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(M){if(M._removeLink&&(M._removeLink.innerHTML=this.options.dictRemoveFile),M.previewElement)return M.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},k=S;function v(x){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(w){return typeof w}:v=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},v(x)}function A(x,M){var w;if(typeof Symbol>"u"||x[Symbol.iterator]==null){if(Array.isArray(x)||(w=T(x))||M&&x&&typeof x.length=="number"){w&&(x=w);var O=0,b=function(){};return{s:b,n:function(){return O>=x.length?{done:!0}:{done:!1,value:x[O++]}},e:function($){throw $},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
9
9
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,_=!1,I;return{s:function(){w=x[Symbol.iterator]()},n:function(){var $=w.next();return E=$.done,$},e:function($){_=!0,I=$},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(_)throw I}}}}function T(x,M){if(x){if(typeof x=="string")return V(x,M);var w=Object.prototype.toString.call(x).slice(8,-1);if(w==="Object"&&x.constructor&&(w=x.constructor.name),w==="Map"||w==="Set")return Array.from(x);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return V(x,M)}}function V(x,M){(M==null||M>x.length)&&(M=x.length);for(var w=0,O=new Array(M);w<M;w++)O[w]=x[w];return O}function H(x,M){if(!(x instanceof M))throw new TypeError("Cannot call a class as a function")}function U(x,M){for(var w=0;w<M.length;w++){var O=M[w];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(x,O.key,O)}}function B(x,M,w){return M&&U(x.prototype,M),w&&U(x,w),x}function L(x,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(M&&M.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),M&&z(x,M)}function z(x,M){return z=Object.setPrototypeOf||function(O,b){return O.__proto__=b,O},z(x,M)}function W(x){var M=P();return function(){var O=G(x),b;if(M){var E=G(this).constructor;b=Reflect.construct(O,arguments,E)}else b=O.apply(this,arguments);return j(this,b)}}function j(x,M){return M&&(v(M)==="object"||typeof M=="function")?M:F(x)}function F(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function G(x){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},G(x)}var D=function(x){L(w,x);var M=W(w);function w(O,b){var E;H(this,w),E=M.call(this);var _,I;if(E.element=O,E.version=w.version,E.clickableElements=[],E.listeners=[],E.files=[],typeof E.element=="string"&&(E.element=document.querySelector(E.element)),!E.element||E.element.nodeType==null)throw new Error("Invalid dropzone element.");if(E.element.dropzone)throw new Error("Dropzone already attached.");w.instances.push(F(E)),E.element.dropzone=F(E);var R=(I=w.optionsForElement(E.element))!=null?I:{};if(E.options=w.extend({},k,R,b??{}),E.options.previewTemplate=E.options.previewTemplate.replace(/\n*/g,""),E.options.forceFallback||!w.isBrowserSupported())return j(E,E.options.fallback.call(F(E)));if(E.options.url==null&&(E.options.url=E.element.getAttribute("action")),!E.options.url)throw new Error("No URL provided.");if(E.options.acceptedFiles&&E.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(E.options.uploadMultiple&&E.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return E.options.acceptedMimeTypes&&(E.options.acceptedFiles=E.options.acceptedMimeTypes,delete E.options.acceptedMimeTypes),E.options.renameFilename!=null&&(E.options.renameFile=function($){return E.options.renameFilename.call(F(E),$.name,$)}),typeof E.options.method=="string"&&(E.options.method=E.options.method.toUpperCase()),(_=E.getExistingFallback())&&_.parentNode&&_.parentNode.removeChild(_),E.options.previewsContainer!==!1&&(E.options.previewsContainer?E.previewsContainer=w.getElement(E.options.previewsContainer,"previewsContainer"):E.previewsContainer=E.element),E.options.clickable&&(E.options.clickable===!0?E.clickableElements=[E.element]:E.clickableElements=w.getElements(E.options.clickable,"clickable")),E.init(),E}return B(w,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(b){return b.accepted}).map(function(b){return b})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(b){return!b.accepted}).map(function(b){return b})}},{key:"getFilesWithStatus",value:function(b){return this.files.filter(function(E){return E.status===b}).map(function(E){return E})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(w.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(w.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(w.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(b){return b.status===w.UPLOADING||b.status===w.QUEUED}).map(function(b){return b})}},{key:"init",value:function(){var b=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(w.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var E=function J(){b.hiddenFileInput&&b.hiddenFileInput.parentNode.removeChild(b.hiddenFileInput),b.hiddenFileInput=document.createElement("input"),b.hiddenFileInput.setAttribute("type","file"),(b.options.maxFiles===null||b.options.maxFiles>1)&&b.hiddenFileInput.setAttribute("multiple","multiple"),b.hiddenFileInput.className="dz-hidden-input",b.options.acceptedFiles!==null&&b.hiddenFileInput.setAttribute("accept",b.options.acceptedFiles),b.options.capture!==null&&b.hiddenFileInput.setAttribute("capture",b.options.capture),b.hiddenFileInput.setAttribute("tabindex","-1"),b.hiddenFileInput.style.visibility="hidden",b.hiddenFileInput.style.position="absolute",b.hiddenFileInput.style.top="0",b.hiddenFileInput.style.left="0",b.hiddenFileInput.style.height="0",b.hiddenFileInput.style.width="0",w.getElement(b.options.hiddenInputContainer,"hiddenInputContainer").appendChild(b.hiddenFileInput),b.hiddenFileInput.addEventListener("change",function(){var Y=b.hiddenFileInput.files;if(Y.length){var Z=A(Y,!0),X;try{for(Z.s();!(X=Z.n()).done;){var ne=X.value;b.addFile(ne)}}catch(he){Z.e(he)}finally{Z.f()}}b.emit("addedfiles",Y),J()})};E()}this.URL=window.URL!==null?window.URL:window.webkitURL;var _=A(this.events,!0),I;try{for(_.s();!(I=_.n()).done;){var R=I.value;this.on(R,this.options[R])}}catch(J){_.e(J)}finally{_.f()}this.on("uploadprogress",function(){return b.updateTotalUploadProgress()}),this.on("removedfile",function(){return b.updateTotalUploadProgress()}),this.on("canceled",function(J){return b.emit("complete",J)}),this.on("complete",function(J){if(b.getAddedFiles().length===0&&b.getUploadingFiles().length===0&&b.getQueuedFiles().length===0)return setTimeout(function(){return b.emit("queuecomplete")},0)});var $=function(Y){if(Y.dataTransfer.types){for(var Z=0;Z<Y.dataTransfer.types.length;Z++)if(Y.dataTransfer.types[Z]==="Files")return!0}return!1},K=function(Y){if($(Y))return Y.stopPropagation(),Y.preventDefault?Y.preventDefault():Y.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Y){return b.emit("dragstart",Y)},dragenter:function(Y){return K(Y),b.emit("dragenter",Y)},dragover:function(Y){var Z;try{Z=Y.dataTransfer.effectAllowed}catch{}return Y.dataTransfer.dropEffect=Z==="move"||Z==="linkMove"?"move":"copy",K(Y),b.emit("dragover",Y)},dragleave:function(Y){return b.emit("dragleave",Y)},drop:function(Y){return K(Y),b.drop(Y)},dragend:function(Y){return b.emit("dragend",Y)}}}],this.clickableElements.forEach(function(J){return b.listeners.push({element:J,events:{click:function(Z){return(J!==b.element||Z.target===b.element||w.elementInside(Z.target,b.element.querySelector(".dz-message")))&&b.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,w.instances.splice(w.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var b,E=0,_=0,I=this.getActiveFiles();if(I.length){var R=A(this.getActiveFiles(),!0),$;try{for(R.s();!($=R.n()).done;){var K=$.value;E+=K.upload.bytesSent,_+=K.upload.total}}catch(J){R.e(J)}finally{R.f()}b=100*E/_}else b=100;return this.emit("totaluploadprogress",b,_,E)}},{key:"_getParamName",value:function(b){return typeof this.options.paramName=="function"?this.options.paramName(b):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(b,"]"):"")}},{key:"_renameFile",value:function(b){return typeof this.options.renameFile!="function"?b.name:this.options.renameFile(b)}},{key:"getFallbackForm",value:function(){var b,E;if(b=this.getExistingFallback())return b;var _='<div class="dz-fallback">';this.options.dictFallbackText&&(_+="<p>".concat(this.options.dictFallbackText,"</p>")),_+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var I=w.createElement(_);return this.element.tagName!=="FORM"?(E=w.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),E.appendChild(I)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),E??I}},{key:"getExistingFallback",value:function(){for(var b=function(K){var J=A(K,!0),Y;try{for(J.s();!(Y=J.n()).done;){var Z=Y.value;if(/(^| )fallback($| )/.test(Z.className))return Z}}catch(X){J.e(X)}finally{J.f()}},E=0,_=["div","form"];E<_.length;E++){var I=_[E],R;if(R=b(this.element.getElementsByTagName(I)))return R}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(b){return function(){var E=[];for(var _ in b.events){var I=b.events[_];E.push(b.element.addEventListener(_,I,!1))}return E}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(b){return function(){var E=[];for(var _ in b.events){var I=b.events[_];E.push(b.element.removeEventListener(_,I,!1))}return E}()})}},{key:"disable",value:function(){var b=this;return this.clickableElements.forEach(function(E){return E.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(E){return b.cancelUpload(E)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(b){return b.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(b){var E=0,_="b";if(b>0){for(var I=["tb","gb","mb","kb","b"],R=0;R<I.length;R++){var $=I[R],K=Math.pow(this.options.filesizeBase,4-R)/10;if(b>=K){E=b/Math.pow(this.options.filesizeBase,4-R),_=$;break}}E=Math.round(10*E)/10}return"<strong>".concat(E,"</strong> ").concat(this.options.dictFileSizeUnits[_])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(b){if(b.dataTransfer){this.emit("drop",b);for(var E=[],_=0;_<b.dataTransfer.files.length;_++)E[_]=b.dataTransfer.files[_];if(E.length){var I=b.dataTransfer.items;I&&I.length&&I[0].webkitGetAsEntry!=null?this._addFilesFromItems(I):this.handleFiles(E)}this.emit("addedfiles",E)}}},{key:"paste",value:function(b){if(we(b!=null?b.clipboardData:void 0,function(_){return _.items})!=null){this.emit("paste",b);var E=b.clipboardData.items;if(E.length)return this._addFilesFromItems(E)}}},{key:"handleFiles",value:function(b){var E=A(b,!0),_;try{for(E.s();!(_=E.n()).done;){var I=_.value;this.addFile(I)}}catch(R){E.e(R)}finally{E.f()}}},{key:"_addFilesFromItems",value:function(b){var E=this;return function(){var _=[],I=A(b,!0),R;try{for(I.s();!(R=I.n()).done;){var $=R.value,K;$.webkitGetAsEntry!=null&&(K=$.webkitGetAsEntry())?K.isFile?_.push(E.addFile($.getAsFile())):K.isDirectory?_.push(E._addFilesFromDirectory(K,K.name)):_.push(void 0):$.getAsFile!=null&&($.kind==null||$.kind==="file")?_.push(E.addFile($.getAsFile())):_.push(void 0)}}catch(J){I.e(J)}finally{I.f()}return _}()}},{key:"_addFilesFromDirectory",value:function(b,E){var _=this,I=b.createReader(),R=function(J){return Te(console,"log",function(Y){return Y.log(J)})},$=function K(){return I.readEntries(function(J){if(J.length>0){var Y=A(J,!0),Z;try{for(Y.s();!(Z=Y.n()).done;){var X=Z.value;X.isFile?X.file(function(ne){if(!(_.options.ignoreHiddenFiles&&ne.name.substring(0,1)==="."))return ne.fullPath="".concat(E,"/").concat(ne.name),_.addFile(ne)}):X.isDirectory&&_._addFilesFromDirectory(X,"".concat(E,"/").concat(X.name))}}catch(ne){Y.e(ne)}finally{Y.f()}K()}return null},R)};return $()}},{key:"accept",value:function(b,E){this.options.maxFilesize&&b.size>this.options.maxFilesize*1024*1024?E(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(b.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):w.isValidFile(b,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(E(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",b)):this.options.accept.call(this,b,E):E(this.options.dictInvalidFileType)}},{key:"addFile",value:function(b){var E=this;b.upload={uuid:w.uuidv4(),progress:0,total:b.size,bytesSent:0,filename:this._renameFile(b)},this.files.push(b),b.status=w.ADDED,this.emit("addedfile",b),this._enqueueThumbnail(b),this.accept(b,function(_){_?(b.accepted=!1,E._errorProcessing([b],_)):(b.accepted=!0,E.options.autoQueue&&E.enqueueFile(b)),E._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(b){var E=A(b,!0),_;try{for(E.s();!(_=E.n()).done;){var I=_.value;this.enqueueFile(I)}}catch(R){E.e(R)}finally{E.f()}return null}},{key:"enqueueFile",value:function(b){var E=this;if(b.status===w.ADDED&&b.accepted===!0){if(b.status=w.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return E.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(b){var E=this;if(this.options.createImageThumbnails&&b.type.match(/image.*/)&&b.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(b),setTimeout(function(){return E._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var b=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var E=this._thumbnailQueue.shift();return this.createThumbnail(E,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(_){return b.emit("thumbnail",E,_),b._processingThumbnail=!1,b._processThumbnailQueue()})}}},{key:"removeFile",value:function(b){if(b.status===w.UPLOADING&&this.cancelUpload(b),this.files=Q(this.files,b),this.emit("removedfile",b),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(b){b==null&&(b=!1);var E=A(this.files.slice(),!0),_;try{for(E.s();!(_=E.n()).done;){var I=_.value;(I.status!==w.UPLOADING||b)&&this.removeFile(I)}}catch(R){E.e(R)}finally{E.f()}return null}},{key:"resizeImage",value:function(b,E,_,I,R){var $=this;return this.createThumbnail(b,E,_,I,!0,function(K,J){if(J==null)return R(b);var Y=$.options.resizeMimeType;Y==null&&(Y=b.type);var Z=J.toDataURL(Y,$.options.resizeQuality);return(Y==="image/jpeg"||Y==="image/jpg")&&(Z=ge.restore(b.dataURL,Z)),R(w.dataURItoBlob(Z))})}},{key:"createThumbnail",value:function(b,E,_,I,R,$){var K=this,J=new FileReader;J.onload=function(){if(b.dataURL=J.result,b.type==="image/svg+xml"){$!=null&&$(J.result);return}K.createThumbnailFromUrl(b,E,_,I,R,$)},J.readAsDataURL(b)}},{key:"displayExistingFile",value:function(b,E,_,I){var R=this,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",b),this.emit("complete",b),!$)this.emit("thumbnail",b,E),_&&_();else{var K=function(Y){R.emit("thumbnail",b,Y),_&&_()};b.dataURL=E,this.createThumbnailFromUrl(b,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,K,I)}}},{key:"createThumbnailFromUrl",value:function(b,E,_,I,R,$,K){var J=this,Y=document.createElement("img");return K&&(Y.crossOrigin=K),R=getComputedStyle(document.body).imageOrientation=="from-image"?!1:R,Y.onload=function(){var Z=function(ne){return ne(1)};return typeof EXIF<"u"&&EXIF!==null&&R&&(Z=function(ne){return EXIF.getData(Y,function(){return ne(EXIF.getTag(this,"Orientation"))})}),Z(function(X){b.width=Y.width,b.height=Y.height;var ne=J.options.resize.call(J,b,E,_,I),he=document.createElement("canvas"),Se=he.getContext("2d");switch(he.width=ne.trgWidth,he.height=ne.trgHeight,X>4&&(he.width=ne.trgHeight,he.height=ne.trgWidth),X){case 2:Se.translate(he.width,0),Se.scale(-1,1);break;case 3:Se.translate(he.width,he.height),Se.rotate(Math.PI);break;case 4:Se.translate(0,he.height),Se.scale(1,-1);break;case 5:Se.rotate(.5*Math.PI),Se.scale(1,-1);break;case 6:Se.rotate(.5*Math.PI),Se.translate(0,-he.width);break;case 7:Se.rotate(.5*Math.PI),Se.translate(he.height,-he.width),Se.scale(-1,1);break;case 8:Se.rotate(-.5*Math.PI),Se.translate(-he.height,0);break}me(Se,Y,ne.srcX!=null?ne.srcX:0,ne.srcY!=null?ne.srcY:0,ne.srcWidth,ne.srcHeight,ne.trgX!=null?ne.trgX:0,ne.trgY!=null?ne.trgY:0,ne.trgWidth,ne.trgHeight);var _e=he.toDataURL("image/png");if($!=null)return $(_e,he)})},$!=null&&(Y.onerror=$),Y.src=b.dataURL}},{key:"processQueue",value:function(){var b=this.options.parallelUploads,E=this.getUploadingFiles().length,_=E;if(!(E>=b)){var I=this.getQueuedFiles();if(I.length>0){if(this.options.uploadMultiple)return this.processFiles(I.slice(0,b-E));for(;_<b;){if(!I.length)return;this.processFile(I.shift()),_++}}}}},{key:"processFile",value:function(b){return this.processFiles([b])}},{key:"processFiles",value:function(b){var E=A(b,!0),_;try{for(E.s();!(_=E.n()).done;){var I=_.value;I.processing=!0,I.status=w.UPLOADING,this.emit("processing",I)}}catch(R){E.e(R)}finally{E.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",b),this.uploadFiles(b)}},{key:"_getFilesWithXhr",value:function(b){return this.files.filter(function(E){return E.xhr===b}).map(function(E){return E})}},{key:"cancelUpload",value:function(b){if(b.status===w.UPLOADING){var E=this._getFilesWithXhr(b.xhr),_=A(E,!0),I;try{for(_.s();!(I=_.n()).done;){var R=I.value;R.status=w.CANCELED}}catch(Y){_.e(Y)}finally{_.f()}typeof b.xhr<"u"&&b.xhr.abort();var $=A(E,!0),K;try{for($.s();!(K=$.n()).done;){var J=K.value;this.emit("canceled",J)}}catch(Y){$.e(Y)}finally{$.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",E)}else(b.status===w.ADDED||b.status===w.QUEUED)&&(b.status=w.CANCELED,this.emit("canceled",b),this.options.uploadMultiple&&this.emit("canceledmultiple",[b]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(b){if(typeof b=="function"){for(var E=arguments.length,_=new Array(E>1?E-1:0),I=1;I<E;I++)_[I-1]=arguments[I];return b.apply(this,_)}return b}},{key:"uploadFile",value:function(b){return this.uploadFiles([b])}},{key:"uploadFiles",value:function(b){var E=this;this._transformFiles(b,function(_){if(E.options.chunking){var I=_[0];b[0].upload.chunked=E.options.chunking&&(E.options.forceChunking||I.size>E.options.chunkSize),b[0].upload.totalChunkCount=Math.ceil(I.size/E.options.chunkSize)}if(b[0].upload.chunked){var R=b[0],$=_[0];R.upload.chunks=[];var K=function(){for(var ne=0;R.upload.chunks[ne]!==void 0;)ne++;if(!(ne>=R.upload.totalChunkCount)){var he=ne*E.options.chunkSize,Se=Math.min(he+E.options.chunkSize,$.size),_e={name:E._getParamName(0),data:$.webkitSlice?$.webkitSlice(he,Se):$.slice(he,Se),filename:R.upload.filename,chunkIndex:ne};R.upload.chunks[ne]={file:R,index:ne,dataBlock:_e,status:w.UPLOADING,progress:0,retries:0},E._uploadData(b,[_e])}};if(R.upload.finishedChunkUpload=function(X,ne){var he=!0;X.status=w.SUCCESS,X.dataBlock=null,X.xhr=null;for(var Se=0;Se<R.upload.totalChunkCount;Se++){if(R.upload.chunks[Se]===void 0)return K();R.upload.chunks[Se].status!==w.SUCCESS&&(he=!1)}he&&E.options.chunksUploaded(R,function(){E._finished(b,ne,null)})},E.options.parallelChunkUploads)for(var J=0;J<R.upload.totalChunkCount;J++)K();else K()}else{for(var Y=[],Z=0;Z<b.length;Z++)Y[Z]={name:E._getParamName(Z),data:_[Z],filename:b[Z].upload.filename};E._uploadData(b,Y)}})}},{key:"_getChunk",value:function(b,E){for(var _=0;_<b.upload.totalChunkCount;_++)if(b.upload.chunks[_]!==void 0&&b.upload.chunks[_].xhr===E)return b.upload.chunks[_]}},{key:"_uploadData",value:function(b,E){var _=this,I=new XMLHttpRequest,R=A(b,!0),$;try{for(R.s();!($=R.n()).done;){var K=$.value;K.xhr=I}}catch(fe){R.e(fe)}finally{R.f()}b[0].upload.chunked&&(b[0].upload.chunks[E[0].chunkIndex].xhr=I);var J=this.resolveOption(this.options.method,b),Y=this.resolveOption(this.options.url,b);I.open(J,Y,!0);var Z=this.resolveOption(this.options.timeout,b);Z&&(I.timeout=this.resolveOption(this.options.timeout,b)),I.withCredentials=!!this.options.withCredentials,I.onload=function(fe){_._finishedUploading(b,I,fe)},I.ontimeout=function(){_._handleUploadError(b,I,"Request timedout after ".concat(_.options.timeout/1e3," seconds"))},I.onerror=function(){_._handleUploadError(b,I)};var X=I.upload!=null?I.upload:I;X.onprogress=function(fe){return _._updateFilesUploadProgress(b,I,fe)};var ne={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&w.extend(ne,this.options.headers);for(var he in ne){var Se=ne[he];Se&&I.setRequestHeader(he,Se)}var _e=new FormData;if(this.options.params){var ze=this.options.params;typeof ze=="function"&&(ze=ze.call(this,b,I,b[0].upload.chunked?this._getChunk(b[0],I):null));for(var Ve in ze){var De=ze[Ve];if(Array.isArray(De))for(var Ze=0;Ze<De.length;Ze++)_e.append(Ve,De[Ze]);else _e.append(Ve,De)}}var St=A(b,!0),at;try{for(St.s();!(at=St.n()).done;){var Gn=at.value;this.emit("sending",Gn,I,_e)}}catch(fe){St.e(fe)}finally{St.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",b,I,_e),this._addFormElementData(_e);for(var q=0;q<E.length;q++){var de=E[q];_e.append(de.name,de.data,de.filename)}this.submitRequest(I,_e,b)}},{key:"_transformFiles",value:function(b,E){for(var _=this,I=[],R=0,$=function(Y){_.options.transformFile.call(_,b[Y],function(Z){I[Y]=Z,++R===b.length&&E(I)})},K=0;K<b.length;K++)$(K)}},{key:"_addFormElementData",value:function(b){if(this.element.tagName==="FORM"){var E=A(this.element.querySelectorAll("input, textarea, select, button"),!0),_;try{for(E.s();!(_=E.n()).done;){var I=_.value,R=I.getAttribute("name"),$=I.getAttribute("type");if($&&($=$.toLowerCase()),!(typeof R>"u"||R===null))if(I.tagName==="SELECT"&&I.hasAttribute("multiple")){var K=A(I.options,!0),J;try{for(K.s();!(J=K.n()).done;){var Y=J.value;Y.selected&&b.append(R,Y.value)}}catch(Z){K.e(Z)}finally{K.f()}}else(!$||$!=="checkbox"&&$!=="radio"||I.checked)&&b.append(R,I.value)}}catch(Z){E.e(Z)}finally{E.f()}}}},{key:"_updateFilesUploadProgress",value:function(b,E,_){if(b[0].upload.chunked){var K=b[0],J=this._getChunk(K,E);_?(J.progress=100*_.loaded/_.total,J.total=_.total,J.bytesSent=_.loaded):(J.progress=100,J.bytesSent=J.total),K.upload.progress=0,K.upload.total=0,K.upload.bytesSent=0;for(var Y=0;Y<K.upload.totalChunkCount;Y++)K.upload.chunks[Y]&&typeof K.upload.chunks[Y].progress<"u"&&(K.upload.progress+=K.upload.chunks[Y].progress,K.upload.total+=K.upload.chunks[Y].total,K.upload.bytesSent+=K.upload.chunks[Y].bytesSent);K.upload.progress=K.upload.progress/K.upload.totalChunkCount,this.emit("uploadprogress",K,K.upload.progress,K.upload.bytesSent)}else{var I=A(b,!0),R;try{for(I.s();!(R=I.n()).done;){var $=R.value;$.upload.total&&$.upload.bytesSent&&$.upload.bytesSent==$.upload.total||(_?($.upload.progress=100*_.loaded/_.total,$.upload.total=_.total,$.upload.bytesSent=_.loaded):($.upload.progress=100,$.upload.bytesSent=$.upload.total),this.emit("uploadprogress",$,$.upload.progress,$.upload.bytesSent))}}catch(Z){I.e(Z)}finally{I.f()}}}},{key:"_finishedUploading",value:function(b,E,_){var I;if(b[0].status!==w.CANCELED&&E.readyState===4){if(E.responseType!=="arraybuffer"&&E.responseType!=="blob"&&(I=E.responseText,E.getResponseHeader("content-type")&&~E.getResponseHeader("content-type").indexOf("application/json")))try{I=JSON.parse(I)}catch(R){_=R,I="Invalid JSON response from server."}this._updateFilesUploadProgress(b,E),200<=E.status&&E.status<300?b[0].upload.chunked?b[0].upload.finishedChunkUpload(this._getChunk(b[0],E),I):this._finished(b,I,_):this._handleUploadError(b,E,I)}}},{key:"_handleUploadError",value:function(b,E,_){if(b[0].status!==w.CANCELED){if(b[0].upload.chunked&&this.options.retryChunks){var I=this._getChunk(b[0],E);if(I.retries++<this.options.retryChunksLimit){this._uploadData(b,[I.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(b,_||this.options.dictResponseError.replace("{{statusCode}}",E.status),E)}}},{key:"submitRequest",value:function(b,E,_){if(b.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}b.send(E)}},{key:"_finished",value:function(b,E,_){var I=A(b,!0),R;try{for(I.s();!(R=I.n()).done;){var $=R.value;$.status=w.SUCCESS,this.emit("success",$,E,_),this.emit("complete",$)}}catch(K){I.e(K)}finally{I.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",b,E,_),this.emit("completemultiple",b)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(b,E,_){var I=A(b,!0),R;try{for(I.s();!(R=I.n()).done;){var $=R.value;$.status=w.ERROR,this.emit("error",$,E,_),this.emit("complete",$)}}catch(K){I.e(K)}finally{I.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",b,E,_),this.emit("completemultiple",b)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=h,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(b){for(var E=arguments.length,_=new Array(E>1?E-1:0),I=1;I<E;I++)_[I-1]=arguments[I];for(var R=0,$=_;R<$.length;R++){var K=$[R];for(var J in K){var Y=K[J];b[J]=Y}}return b}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(b){var E=Math.random()*16|0,_=b==="x"?E:E&3|8;return _.toString(16)})}}]),w}(h);D.initClass(),D.version="5.9.3",D.options={},D.optionsForElement=function(x){if(x.getAttribute("id"))return D.options[te(x.getAttribute("id"))]},D.instances=[],D.forElement=function(x){if(typeof x=="string"&&(x=document.querySelector(x)),(x!=null?x.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return x.dropzone},D.autoDiscover=!0,D.discover=function(){var x;if(document.querySelectorAll)x=document.querySelectorAll(".dropzone");else{x=[];var M=function(O){return function(){var b=[],E=A(O,!0),_;try{for(E.s();!(_=E.n()).done;){var I=_.value;/(^| )dropzone($| )/.test(I.className)?b.push(x.push(I)):b.push(void 0)}}catch(R){E.e(R)}finally{E.f()}return b}()};M(document.getElementsByTagName("div")),M(document.getElementsByTagName("form"))}return function(){var w=[],O=A(x,!0),b;try{for(O.s();!(b=O.n()).done;){var E=b.value;D.optionsForElement(E)!==!1?w.push(new D(E)):w.push(void 0)}}catch(_){O.e(_)}finally{O.f()}return w}()},D.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],D.isBrowserSupported=function(){var x=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))x=!1;else{D.blacklistedBrowsers!==void 0&&(D.blockedBrowsers=D.blacklistedBrowsers);var M=A(D.blockedBrowsers,!0),w;try{for(M.s();!(w=M.n()).done;){var O=w.value;if(O.test(navigator.userAgent)){x=!1;continue}}}catch(b){M.e(b)}finally{M.f()}}else x=!1;return x},D.dataURItoBlob=function(x){for(var M=atob(x.split(",")[1]),w=x.split(",")[0].split(":")[1].split(";")[0],O=new ArrayBuffer(M.length),b=new Uint8Array(O),E=0,_=M.length,I=0<=_;I?E<=_:E>=_;I?E++:E--)b[E]=M.charCodeAt(E);return new Blob([O],{type:w})};var Q=function(M,w){return M.filter(function(O){return O!==w}).map(function(O){return O})},te=function(M){return M.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};D.createElement=function(x){var M=document.createElement("div");return M.innerHTML=x,M.childNodes[0]},D.elementInside=function(x,M){if(x===M)return!0;for(;x=x.parentNode;)if(x===M)return!0;return!1},D.getElement=function(x,M){var w;if(typeof x=="string"?w=document.querySelector(x):x.nodeType!=null&&(w=x),w==null)throw new Error("Invalid `".concat(M,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},D.getElements=function(x,M){var w,O;if(x instanceof Array){O=[];try{var b=A(x,!0),E;try{for(b.s();!(E=b.n()).done;)w=E.value,O.push(this.getElement(w,M))}catch(R){b.e(R)}finally{b.f()}}catch{O=null}}else if(typeof x=="string"){O=[];var _=A(document.querySelectorAll(x),!0),I;try{for(_.s();!(I=_.n()).done;)w=I.value,O.push(w)}catch(R){_.e(R)}finally{_.f()}}else x.nodeType!=null&&(O=[x]);if(O==null||!O.length)throw new Error("Invalid `".concat(M,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return O},D.confirm=function(x,M,w){if(window.confirm(x))return M();if(w!=null)return w()},D.isValidFile=function(x,M){if(!M)return!0;M=M.split(",");var w=x.type,O=w.replace(/\/.*$/,""),b=A(M,!0),E;try{for(b.s();!(E=b.n()).done;){var _=E.value;if(_=_.trim(),_.charAt(0)==="."){if(x.name.toLowerCase().indexOf(_.toLowerCase(),x.name.length-_.length)!==-1)return!0}else if(/\/\*$/.test(_)){if(O===_.replace(/\/.*$/,""))return!0}else if(w===_)return!0}}catch(I){b.e(I)}finally{b.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(x){return this.each(function(){return new D(this,x)})}),D.ADDED="added",D.QUEUED="queued",D.ACCEPTED=D.QUEUED,D.UPLOADING="uploading",D.PROCESSING=D.UPLOADING,D.CANCELED="canceled",D.ERROR="error",D.SUCCESS="success";var ce=function(M){M.naturalWidth;var w=M.naturalHeight,O=document.createElement("canvas");O.width=1,O.height=w;var b=O.getContext("2d");b.drawImage(M,0,0);for(var E=b.getImageData(1,0,1,w),_=E.data,I=0,R=w,$=w;$>I;){var K=_[($-1)*4+3];K===0?R=$:I=$,$=R+I>>1}var J=$/w;return J===0?1:J},me=function(M,w,O,b,E,_,I,R,$,K){var J=ce(w);return M.drawImage(w,O,b,E,_,I,R,$,K/J)},ge=function(){function x(){H(this,x)}return B(x,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(w){for(var O="",b=void 0,E=void 0,_="",I=void 0,R=void 0,$=void 0,K="",J=0;b=w[J++],E=w[J++],_=w[J++],I=b>>2,R=(b&3)<<4|E>>4,$=(E&15)<<2|_>>6,K=_&63,isNaN(E)?$=K=64:isNaN(_)&&(K=64),O=O+this.KEY_STR.charAt(I)+this.KEY_STR.charAt(R)+this.KEY_STR.charAt($)+this.KEY_STR.charAt(K),b=E=_="",I=R=$=K="",J<w.length;);return O}},{key:"restore",value:function(w,O){if(!w.match("data:image/jpeg;base64,"))return O;var b=this.decode64(w.replace("data:image/jpeg;base64,","")),E=this.slice2Segments(b),_=this.exifManipulation(O,E);return"data:image/jpeg;base64,".concat(this.encode64(_))}},{key:"exifManipulation",value:function(w,O){var b=this.getExifArray(O),E=this.insertExif(w,b),_=new Uint8Array(E);return _}},{key:"getExifArray",value:function(w){for(var O=void 0,b=0;b<w.length;){if(O=w[b],O[0]===255&O[1]===225)return O;b++}return[]}},{key:"insertExif",value:function(w,O){var b=w.replace("data:image/jpeg;base64,",""),E=this.decode64(b),_=E.indexOf(255,3),I=E.slice(0,_),R=E.slice(_),$=I;return $=$.concat(O),$=$.concat(R),$}},{key:"slice2Segments",value:function(w){for(var O=0,b=[];;){var E;if(w[O]===255&w[O+1]===218)break;if(w[O]===255&w[O+1]===216)O+=2;else{E=w[O+2]*256+w[O+3];var _=O+E+2,I=w.slice(O,_);b.push(I),O=_}if(O>w.length)break}return b}},{key:"decode64",value:function(w){var O=void 0,b=void 0,E="",_=void 0,I=void 0,R=void 0,$="",K=0,J=[],Y=/[^A-Za-z0-9\+\/\=]/g;for(Y.exec(w)&&console.warn(`There were invalid base64 characters in the input text.
10
10
  Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
11
- Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");_=this.KEY_STR.indexOf(w.charAt(K++)),I=this.KEY_STR.indexOf(w.charAt(K++)),R=this.KEY_STR.indexOf(w.charAt(K++)),$=this.KEY_STR.indexOf(w.charAt(K++)),O=_<<2|I>>4,b=(I&15)<<4|R>>2,E=(R&3)<<6|$,J.push(O),R!==64&&J.push(b),$!==64&&J.push(E),O=b=E="",_=I=R=$="",K<w.length;);return J}}]),x}();ge.initClass();var Ce=function(M,w){var O=!1,b=!0,E=M.document,_=E.documentElement,I=E.addEventListener?"addEventListener":"attachEvent",R=E.addEventListener?"removeEventListener":"detachEvent",$=E.addEventListener?"":"on",K=function Y(Z){if(!(Z.type==="readystatechange"&&E.readyState!=="complete")&&((Z.type==="load"?M:E)[R]($+Z.type,Y,!1),!O&&(O=!0)))return w.call(M,Z.type||Z)},J=function Y(){try{_.doScroll("left")}catch{setTimeout(Y,50);return}return K("poll")};if(E.readyState!=="complete"){if(E.createEventObject&&_.doScroll){try{b=!M.frameElement}catch{}b&&J()}return E[I]($+"DOMContentLoaded",K,!1),E[I]($+"readystatechange",K,!1),M[I]($+"load",K,!1)}};D._autoDiscoverFunction=function(){if(D.autoDiscover)return D.discover()},Ce(window,D._autoDiscoverFunction);function we(x,M){return typeof x<"u"&&x!==null?M(x):void 0}function Te(x,M,w){if(typeof x<"u"&&x!==null&&typeof x[M]=="function")return w(x,M)}window.Dropzone=D;var ve=D}(),s}()})})(_u);var X2=_u.exports;const Iu=Da(X2),Q2={class:"fallback"},q2=u.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),ey={for:"file"},ty={class:"dz-message","data-dz-message":""},ny={id:"bd-dropzone-theme",style:{display:"none"}},ry={class:"dz-preview dz-file-preview"},oy={class:"dz-details"},sy=u.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),iy=u.createElementVNode("div",{class:"dz-filename"},[u.createElementVNode("small",{"data-dz-name":""})],-1),ay=u.createElementVNode("div",{class:"dz-progress"},[u.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[u.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),ly={class:"dz-success-mark"},cy={class:"dz-error-message text-danger"},uy=u.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Du=u.defineComponent({__name:"BDDropzone",props:{modelValue:{default:[]},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(n,{emit:e}){const t=n,r=u.computed(()=>({variant:hs.PRIMARY,size:lt.SM})),o=er(t,"modelValue",e);let s=null;Iu.autoDiscover=!1,u.watch(()=>t.modelValue,()=>{i()}),u.onMounted(()=>{document.getElementById("dropzone")&&l()});const i=()=>{s&&(s.destroy(),l())},l=()=>{var p;s=new Iu("#dropzone",{url:t.url,method:"post",acceptedFiles:t.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:t.multiple?3:1,headers:{RequestVerificationToken:t.token},dictResponseError:t.errorMessage,dictFileTooBig:t.fileSizeExceededMessage,previewTemplate:(p=document.querySelector("#bd-dropzone-theme"))==null?void 0:p.innerHTML}),s.on("error",c),s.on("success",a),s.on("removedfile",f)},a=function(p,m){var g;o.value.push({UUID:(g=p.upload)==null?void 0:g.uuid,CorrelationId:m.CorrelationId,Naam:m.Naam}),d(p)},c=function(p){d(p)},d=function(p){const m=p.name;if(!(m.endsWith(".png")||m.endsWith(".jpg")||m.endsWith(".jpeg")||m.endsWith(".gif"))){const g=p.previewElement.getElementsByClassName("icon-file"),y=p.previewElement.getElementsByClassName("dz-image");g[0].classList.remove("d-none"),y[0].classList.add("d-none")}},f=function(p){const m=o.value.findIndex(g=>{var y;return(g==null?void 0:g.UUID)===((y=p.upload)==null?void 0:y.uuid)});m!==-1&&o.value.splice(m,1)},h=u.computed(()=>t.tag??"form");return(p,m)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:u.withCtx(()=>[u.createElementVNode("div",Q2,[q2,u.createTextVNode(" test "),u.createElementVNode("label",ey,[u.createVNode(u.unref(Qn)),u.createTextVNode(" "+u.toDisplayString(t.buttonText),1)])]),u.createElementVNode("div",ty,[u.createVNode(u.unref(Je),u.normalizeProps(u.guardReactiveProps(r.value)),{default:u.withCtx(()=>[u.createVNode(u.unref(Qn)),u.createTextVNode(" "+u.toDisplayString(t.buttonText),1)]),_:1},16)])]),_:1})),u.createElementVNode("div",ny,[u.createElementVNode("div",ry,[u.createElementVNode("div",oy,[sy,u.createVNode(u.unref(ba),{"data-dz-thumbnail":"",class:"d-none"}),iy,u.createVNode(u.unref(Je),{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:u.withCtx(()=>[u.createVNode(u.unref(go))]),_:1})]),ay,u.createElementVNode("div",ly,[u.createVNode(u.unref(xr))]),u.createElementVNode("div",cy,[u.createVNode(u.unref(us)),uy])])])],64))}});function et(n){this.content=n}et.prototype={constructor:et,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,o=r.find(n),s=r.content.slice();return o==-1?s.push(t||n,e):(s[o+1]=e,t&&(s[o]=t)),new et(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new et(t)},addToStart:function(n,e){return new et([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new et(t)},addBefore:function(n,e,t){var r=this.remove(e),o=r.content.slice(),s=r.find(n);return o.splice(s==-1?o.length:s,0,e,t),new et(o)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=et.from(n),n.size?new et(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=et.from(n),n.size?new et(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=et.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}},et.from=function(n){if(n instanceof et)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new et(e)};function Lu(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let o=n.child(r),s=e.child(r);if(o==s){t+=o.nodeSize;continue}if(!o.sameMarkup(s))return t;if(o.isText&&o.text!=s.text){for(let i=0;o.text[i]==s.text[i];i++)t++;return t}if(o.content.size||s.content.size){let i=Lu(o.content,s.content,t+1);if(i!=null)return i}t+=o.nodeSize}}function Ru(n,e,t,r){for(let o=n.childCount,s=e.childCount;;){if(o==0||s==0)return o==s?null:{a:t,b:r};let i=n.child(--o),l=e.child(--s),a=i.nodeSize;if(i==l){t-=a,r-=a;continue}if(!i.sameMarkup(l))return{a:t,b:r};if(i.isText&&i.text!=l.text){let c=0,d=Math.min(i.text.length,l.text.length);for(;c<d&&i.text[i.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(i.content.size||l.content.size){let c=Ru(i.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}class ae{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,o=0,s){for(let i=0,l=0;l<t;i++){let a=this.content[i],c=l+a.nodeSize;if(c>e&&r(a,o+l,s||null,i)!==!1&&a.content.size){let d=l+1;a.nodesBetween(Math.max(0,e-d),Math.min(a.content.size,t-d),r,o+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let s="",i=!0;return this.nodesBetween(e,t,(l,a)=>{l.isText?(s+=l.text.slice(Math.max(e,a)-a,t-a),i=!r):l.isLeaf?(o?s+=typeof o=="function"?o(l):o:l.type.spec.leafText&&(s+=l.type.spec.leafText(l)),i=!r):!i&&l.isBlock&&(s+=r,i=!0)},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)o.push(e.content[s]);return new ae(o,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],o=0;if(t>e)for(let s=0,i=0;i<t;s++){let l=this.content[s],a=i+l.nodeSize;a>e&&((i<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-i),Math.min(l.text.length,t-i)):l=l.cut(Math.max(0,e-i-1),Math.min(l.content.size,t-i-1))),r.push(l),o+=l.nodeSize),i=a}return new ae(r,o)}cutByIndex(e,t){return e==t?ae.empty:e==0&&t==this.content.length?this:new ae(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let o=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new ae(o,s)}addToStart(e){return new ae([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new ae(this.content.concat(e),this.size+e.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 new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let o=this.content[t];e(o,r,t),r+=o.nodeSize}}findDiffStart(e,t=0){return Lu(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Ru(this,e,t,r)}findIndex(e,t=-1){if(e==0)return Cs(0,e);if(e==this.size)return Cs(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let s=this.child(r),i=o+s.nodeSize;if(i>=e)return i==e||t>0?Cs(r+1,i):Cs(r,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return ae.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new ae(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return ae.empty;let t,r=0;for(let o=0;o<e.length;o++){let s=e[o];r+=s.nodeSize,o&&s.isText&&e[o-1].sameMarkup(s)?(t||(t=e.slice(0,o)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new ae(t||e,r)}static from(e){if(!e)return ae.empty;if(e instanceof ae)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new ae([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}ae.empty=new ae([],0);const La={index:0,offset:0};function Cs(n,e){return La.index=n,La.offset=e,La}function Ss(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Ss(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Ss(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let Pe=class Qc{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let o=0;o<e.length;o++){let s=e[o];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,o));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||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&&Ss(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 new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Qc.none;if(e instanceof Qc)return[e];let t=e.slice();return t.sort((r,o)=>r.type.rank-o.type.rank),t}};Pe.none=[];class ws extends Error{}class ye{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=$u(this.content,e+this.openStart,t);return r&&new ye(r,this.openStart,this.openEnd)}removeBetween(e,t){return new ye(Bu(this.content,e+this.openStart,t+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(e,t){if(!t)return ye.empty;let r=t.openStart||0,o=t.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ye(ae.fromJSON(e,t.content),r,o)}static maxOpen(e,t=!0){let r=0,o=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)o++;return new ye(e,r,o)}}ye.empty=new ye(ae.empty,0,0);function Bu(n,e,t){let{index:r,offset:o}=n.findIndex(e),s=n.maybeChild(r),{index:i,offset:l}=n.findIndex(t);if(o==e||s.isText){if(l!=t&&!n.child(i).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=i)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(Bu(s.content,e-o-1,t-o-1)))}function $u(n,e,t,r){let{index:o,offset:s}=n.findIndex(e),i=n.maybeChild(o);if(s==e||i.isText)return r&&!r.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=$u(i.content,e-s-1,t);return l&&n.replaceChild(o,i.copy(l))}function dy(n,e,t){if(t.openStart>n.depth)throw new ws("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new ws("Inconsistent open depths");return Pu(n,e,t,0)}function Pu(n,e,t,r){let o=n.index(r),s=n.node(r);if(o==e.index(r)&&r<n.depth-t.openStart){let i=Pu(n,e,t,r+1);return s.copy(s.content.replaceChild(o,i))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let i=n.parent,l=i.content;return or(i,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:i,end:l}=fy(t,n);return or(s,Vu(n,i,l,e,r))}else return or(s,ks(n,e,r))}function Fu(n,e){if(!e.type.compatibleContent(n.type))throw new ws("Cannot join "+e.type.name+" onto "+n.type.name)}function Ra(n,e,t){let r=n.node(t);return Fu(r,e.node(t)),r}function rr(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function Eo(n,e,t,r){let o=(e||n).node(t),s=0,i=e?e.index(t):o.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(rr(n.nodeAfter,r),s++));for(let l=s;l<i;l++)rr(o.child(l),r);e&&e.depth==t&&e.textOffset&&rr(e.nodeBefore,r)}function or(n,e){return n.type.checkContent(e),n.copy(e)}function Vu(n,e,t,r,o){let s=n.depth>o&&Ra(n,e,o+1),i=r.depth>o&&Ra(t,r,o+1),l=[];return Eo(null,n,o,l),s&&i&&e.index(o)==t.index(o)?(Fu(s,i),rr(or(s,Vu(n,e,t,r,o+1)),l)):(s&&rr(or(s,ks(n,e,o+1)),l),Eo(e,t,o,l),i&&rr(or(i,ks(t,r,o+1)),l)),Eo(r,null,o,l),new ae(l)}function ks(n,e,t){let r=[];if(Eo(null,n,t,r),n.depth>t){let o=Ra(n,e,t+1);rr(or(o,ks(n,e,t+1)),r)}return Eo(e,null,t,r),new ae(r)}function fy(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)o=e.node(s).copy(ae.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class Co{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,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 new 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 new 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 r=this.pos-this.path[this.path.length-1],o=e.child(t);return r?e.child(t).cut(r):o}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 r=this.path[t*3],o=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)o+=r.child(s).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Pe.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),o=e.maybeChild(t);if(!r){let l=r;r=o,o=l}let s=r.marks;for(var i=0;i<s.length;i++)s[i].type.spec.inclusive===!1&&(!o||!s[i].isInSet(o.marks))&&(s=s[i--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,o=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!o||!r[s].isInSet(o.marks))&&(r=r[s--].removeFromSet(r));return r}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 r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Ts(this,e,r);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(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],o=0,s=t;for(let i=e;;){let{index:l,offset:a}=i.content.findIndex(s),c=s-a;if(r.push(i,l,o+a),!c||(i=i.child(l),i.isText))break;s=c-1,o+=a+1}return new Co(t,r,s)}static resolveCached(e,t){for(let o=0;o<Ba.length;o++){let s=Ba[o];if(s.pos==t&&s.doc==e)return s}let r=Ba[$a]=Co.resolve(e,t);return $a=($a+1)%hy,r}}let Ba=[],$a=0,hy=12;class Ts{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}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)}}const py=Object.create(null);let sr=class qc{constructor(e,t,r,o=Pe.none){this.type=e,this.attrs=t,this.marks=o,this.content=r||ae.empty}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,r,o=0){this.content.nodesBetween(e,t,r,o,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,r,o){return this.content.textBetween(e,t,r,o)}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,r){return this.type==e&&Ss(this.attrs,t||e.defaultAttrs||py)&&Pe.sameSet(this.marks,r||Pe.none)}copy(e=null){return e==this.content?this:new qc(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new qc(this.type,this.attrs,this.content,e)}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,r=!1){if(e==t)return ye.empty;let o=this.resolve(e),s=this.resolve(t),i=r?0:o.sharedDepth(t),l=o.start(i),c=o.node(i).content.cut(o.pos-l,s.pos-l);return new ye(c,o.depth-i,s.depth-i)}replace(e,t,r){return dy(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:o}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(o==e||t.isText)return t;e-=o+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let o=this.content.child(t-1);return{node:o,index:t-1,offset:r-o.nodeSize}}resolve(e){return Co.resolveCached(this,e)}resolveNoCache(e){return Co.resolve(this,e)}rangeHasMark(e,t,r){let o=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(o=!0),!o)),o}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()+")"),zu(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=ae.empty,o=0,s=r.childCount){let i=this.contentMatchAt(e).matchFragment(r,o,s),l=i&&i.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=o;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,o){if(o&&!this.type.allowsMarks(o))return!1;let s=this.contentMatchAt(e).matchType(r),i=s&&s.matchFragment(this.content,t);return i?i.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);let e=Pe.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!Pe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.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(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let o=ae.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,o,r)}};sr.prototype.text=void 0;class xs extends sr{constructor(e,t,r,o){if(super(e,t,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):zu(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(e){return e==this.marks?this:new xs(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new xs(this.type,this.attrs,e,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 zu(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ir{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new my(e,t);if(r.next==null)return ir.empty;let o=Hu(r);r.next&&r.err("Unexpected trailing text");let s=Sy(Cy(o));return wy(s,r),s}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,r=e.childCount){let o=this;for(let s=t;o&&s<r;s++)o=o.matchType(e.child(s).type);return o}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 r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let o=[this];function s(i,l){let a=i.matchFragment(e,r);if(a&&(!t||a.validEnd))return ae.from(l.map(c=>c.createAndFill()));for(let c=0;c<i.next.length;c++){let{type:d,next:f}=i.next[c];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=s(f,l.concat(d));if(h)return h}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),s=o.match;if(s.matchType(e)){let i=[];for(let l=o;l.type;l=l.via)i.push(l.type);return i.reverse()}for(let i=0;i<s.next.length;i++){let{type:l,next:a}=s.next[i];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!o.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:o}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&t(r.next[o].next)}return t(this),e.map((r,o)=>{let s=o+(r.validEnd?"*":" ")+" ";for(let i=0;i<r.next.length;i++)s+=(i?", ":"")+r.next[i].type.name+"->"+e.indexOf(r.next[i].next);return s}).join(`
11
+ Expect errors in decoding.`),w=w.replace(/[^A-Za-z0-9\+\/\=]/g,"");_=this.KEY_STR.indexOf(w.charAt(K++)),I=this.KEY_STR.indexOf(w.charAt(K++)),R=this.KEY_STR.indexOf(w.charAt(K++)),$=this.KEY_STR.indexOf(w.charAt(K++)),O=_<<2|I>>4,b=(I&15)<<4|R>>2,E=(R&3)<<6|$,J.push(O),R!==64&&J.push(b),$!==64&&J.push(E),O=b=E="",_=I=R=$="",K<w.length;);return J}}]),x}();ge.initClass();var Ce=function(M,w){var O=!1,b=!0,E=M.document,_=E.documentElement,I=E.addEventListener?"addEventListener":"attachEvent",R=E.addEventListener?"removeEventListener":"detachEvent",$=E.addEventListener?"":"on",K=function Y(Z){if(!(Z.type==="readystatechange"&&E.readyState!=="complete")&&((Z.type==="load"?M:E)[R]($+Z.type,Y,!1),!O&&(O=!0)))return w.call(M,Z.type||Z)},J=function Y(){try{_.doScroll("left")}catch{setTimeout(Y,50);return}return K("poll")};if(E.readyState!=="complete"){if(E.createEventObject&&_.doScroll){try{b=!M.frameElement}catch{}b&&J()}return E[I]($+"DOMContentLoaded",K,!1),E[I]($+"readystatechange",K,!1),M[I]($+"load",K,!1)}};D._autoDiscoverFunction=function(){if(D.autoDiscover)return D.discover()},Ce(window,D._autoDiscoverFunction);function we(x,M){return typeof x<"u"&&x!==null?M(x):void 0}function Te(x,M,w){if(typeof x<"u"&&x!==null&&typeof x[M]=="function")return w(x,M)}window.Dropzone=D;var ve=D}(),s}()})})(_u);var X2=_u.exports;const Iu=Da(X2),Q2={class:"fallback"},q2=u.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),ey={for:"file"},ty={class:"dz-message","data-dz-message":""},ny={id:"bd-dropzone-theme",style:{display:"none"}},ry={class:"dz-preview dz-file-preview"},oy={class:"dz-details"},sy=u.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),iy=u.createElementVNode("div",{class:"dz-filename"},[u.createElementVNode("small",{"data-dz-name":""})],-1),ay=u.createElementVNode("div",{class:"dz-progress"},[u.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[u.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),ly={class:"dz-success-mark"},cy={class:"dz-error-message text-danger"},uy=u.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Du=u.defineComponent({__name:"BDDropzone",props:{modelValue:{default:[]},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(n,{emit:e}){const t=n,r=u.computed(()=>({variant:hs.PRIMARY,size:lt.SM})),o=er(t,"modelValue",e);let s=null;Iu.autoDiscover=!1,u.watch(()=>t.modelValue,()=>{i()}),u.onMounted(()=>{document.getElementById("dropzone")&&l()});const i=()=>{s&&(s.destroy(),l())},l=()=>{var p;s=new Iu("#dropzone",{url:t.url,method:"post",acceptedFiles:t.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:t.multiple?3:1,headers:{RequestVerificationToken:t.token},dictResponseError:t.errorMessage,dictFileTooBig:t.fileSizeExceededMessage,previewTemplate:(p=document.querySelector("#bd-dropzone-theme"))==null?void 0:p.innerHTML}),s.on("error",c),s.on("success",a),s.on("removedfile",f)},a=function(p,m){var g;o.value.push({UUID:(g=p.upload)==null?void 0:g.uuid,CorrelationId:m.CorrelationId,Naam:m.Naam}),d(p)},c=function(p){d(p)},d=function(p){const m=p.name;if(!(m.endsWith(".png")||m.endsWith(".jpg")||m.endsWith(".jpeg")||m.endsWith(".gif"))){const g=p.previewElement.getElementsByClassName("icon-file"),y=p.previewElement.getElementsByClassName("dz-image");g[0].classList.remove("d-none"),y[0].classList.add("d-none")}},f=function(p){const m=o.value.findIndex(g=>{var y;return(g==null?void 0:g.UUID)===((y=p.upload)==null?void 0:y.uuid)});m!==-1&&o.value.splice(m,1)},h=u.computed(()=>t.tag??"form");return(p,m)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:u.withCtx(()=>[u.createElementVNode("div",Q2,[q2,u.createTextVNode(" test "),u.createElementVNode("label",ey,[u.createVNode(u.unref(Qn)),u.createTextVNode(" "+u.toDisplayString(t.buttonText),1)])]),u.createElementVNode("div",ty,[u.createVNode(u.unref(Ye),u.normalizeProps(u.guardReactiveProps(r.value)),{default:u.withCtx(()=>[u.createVNode(u.unref(Qn)),u.createTextVNode(" "+u.toDisplayString(t.buttonText),1)]),_:1},16)])]),_:1})),u.createElementVNode("div",ny,[u.createElementVNode("div",ry,[u.createElementVNode("div",oy,[sy,u.createVNode(u.unref(ba),{"data-dz-thumbnail":"",class:"d-none"}),iy,u.createVNode(u.unref(Ye),{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:u.withCtx(()=>[u.createVNode(u.unref(go))]),_:1})]),ay,u.createElementVNode("div",ly,[u.createVNode(u.unref(xr))]),u.createElementVNode("div",cy,[u.createVNode(u.unref(us)),uy])])])],64))}});function et(n){this.content=n}et.prototype={constructor:et,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,o=r.find(n),s=r.content.slice();return o==-1?s.push(t||n,e):(s[o+1]=e,t&&(s[o]=t)),new et(s)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new et(t)},addToStart:function(n,e){return new et([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new et(t)},addBefore:function(n,e,t){var r=this.remove(e),o=r.content.slice(),s=r.find(n);return o.splice(s==-1?o.length:s,0,e,t),new et(o)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=et.from(n),n.size?new et(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=et.from(n),n.size?new et(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=et.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}},et.from=function(n){if(n instanceof et)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new et(e)};function Lu(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let o=n.child(r),s=e.child(r);if(o==s){t+=o.nodeSize;continue}if(!o.sameMarkup(s))return t;if(o.isText&&o.text!=s.text){for(let i=0;o.text[i]==s.text[i];i++)t++;return t}if(o.content.size||s.content.size){let i=Lu(o.content,s.content,t+1);if(i!=null)return i}t+=o.nodeSize}}function Ru(n,e,t,r){for(let o=n.childCount,s=e.childCount;;){if(o==0||s==0)return o==s?null:{a:t,b:r};let i=n.child(--o),l=e.child(--s),a=i.nodeSize;if(i==l){t-=a,r-=a;continue}if(!i.sameMarkup(l))return{a:t,b:r};if(i.isText&&i.text!=l.text){let c=0,d=Math.min(i.text.length,l.text.length);for(;c<d&&i.text[i.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(i.content.size||l.content.size){let c=Ru(i.content,l.content,t-1,r-1);if(c)return c}t-=a,r-=a}}class ae{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,o=0,s){for(let i=0,l=0;l<t;i++){let a=this.content[i],c=l+a.nodeSize;if(c>e&&r(a,o+l,s||null,i)!==!1&&a.content.size){let d=l+1;a.nodesBetween(Math.max(0,e-d),Math.min(a.content.size,t-d),r,o+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let s="",i=!0;return this.nodesBetween(e,t,(l,a)=>{l.isText?(s+=l.text.slice(Math.max(e,a)-a,t-a),i=!r):l.isLeaf?(o?s+=typeof o=="function"?o(l):o:l.type.spec.leafText&&(s+=l.type.spec.leafText(l)),i=!r):!i&&l.isBlock&&(s+=r,i=!0)},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),s=1);s<e.content.length;s++)o.push(e.content[s]);return new ae(o,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],o=0;if(t>e)for(let s=0,i=0;i<t;s++){let l=this.content[s],a=i+l.nodeSize;a>e&&((i<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-i),Math.min(l.text.length,t-i)):l=l.cut(Math.max(0,e-i-1),Math.min(l.content.size,t-i-1))),r.push(l),o+=l.nodeSize),i=a}return new ae(r,o)}cutByIndex(e,t){return e==t?ae.empty:e==0&&t==this.content.length?this:new ae(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let o=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new ae(o,s)}addToStart(e){return new ae([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new ae(this.content.concat(e),this.size+e.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 new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let o=this.content[t];e(o,r,t),r+=o.nodeSize}}findDiffStart(e,t=0){return Lu(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Ru(this,e,t,r)}findIndex(e,t=-1){if(e==0)return Cs(0,e);if(e==this.size)return Cs(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let s=this.child(r),i=o+s.nodeSize;if(i>=e)return i==e||t>0?Cs(r+1,i):Cs(r,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return ae.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new ae(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return ae.empty;let t,r=0;for(let o=0;o<e.length;o++){let s=e[o];r+=s.nodeSize,o&&s.isText&&e[o-1].sameMarkup(s)?(t||(t=e.slice(0,o)),t[t.length-1]=s.withText(t[t.length-1].text+s.text)):t&&t.push(s)}return new ae(t||e,r)}static from(e){if(!e)return ae.empty;if(e instanceof ae)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new ae([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}ae.empty=new ae([],0);const La={index:0,offset:0};function Cs(n,e){return La.index=n,La.offset=e,La}function Ss(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Ss(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Ss(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let Pe=class Qc{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let o=0;o<e.length;o++){let s=e[o];if(this.eq(s))return e;if(this.type.excludes(s.type))t||(t=e.slice(0,o));else{if(s.type.excludes(this.type))return e;!r&&s.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||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&&Ss(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 new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Qc.none;if(e instanceof Qc)return[e];let t=e.slice();return t.sort((r,o)=>r.type.rank-o.type.rank),t}};Pe.none=[];class ws extends Error{}class ye{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=$u(this.content,e+this.openStart,t);return r&&new ye(r,this.openStart,this.openEnd)}removeBetween(e,t){return new ye(Bu(this.content,e+this.openStart,t+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(e,t){if(!t)return ye.empty;let r=t.openStart||0,o=t.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ye(ae.fromJSON(e,t.content),r,o)}static maxOpen(e,t=!0){let r=0,o=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)o++;return new ye(e,r,o)}}ye.empty=new ye(ae.empty,0,0);function Bu(n,e,t){let{index:r,offset:o}=n.findIndex(e),s=n.maybeChild(r),{index:i,offset:l}=n.findIndex(t);if(o==e||s.isText){if(l!=t&&!n.child(i).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=i)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(Bu(s.content,e-o-1,t-o-1)))}function $u(n,e,t,r){let{index:o,offset:s}=n.findIndex(e),i=n.maybeChild(o);if(s==e||i.isText)return r&&!r.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=$u(i.content,e-s-1,t);return l&&n.replaceChild(o,i.copy(l))}function dy(n,e,t){if(t.openStart>n.depth)throw new ws("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new ws("Inconsistent open depths");return Pu(n,e,t,0)}function Pu(n,e,t,r){let o=n.index(r),s=n.node(r);if(o==e.index(r)&&r<n.depth-t.openStart){let i=Pu(n,e,t,r+1);return s.copy(s.content.replaceChild(o,i))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let i=n.parent,l=i.content;return or(i,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:i,end:l}=fy(t,n);return or(s,Vu(n,i,l,e,r))}else return or(s,ks(n,e,r))}function Fu(n,e){if(!e.type.compatibleContent(n.type))throw new ws("Cannot join "+e.type.name+" onto "+n.type.name)}function Ra(n,e,t){let r=n.node(t);return Fu(r,e.node(t)),r}function rr(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function Eo(n,e,t,r){let o=(e||n).node(t),s=0,i=e?e.index(t):o.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(rr(n.nodeAfter,r),s++));for(let l=s;l<i;l++)rr(o.child(l),r);e&&e.depth==t&&e.textOffset&&rr(e.nodeBefore,r)}function or(n,e){return n.type.checkContent(e),n.copy(e)}function Vu(n,e,t,r,o){let s=n.depth>o&&Ra(n,e,o+1),i=r.depth>o&&Ra(t,r,o+1),l=[];return Eo(null,n,o,l),s&&i&&e.index(o)==t.index(o)?(Fu(s,i),rr(or(s,Vu(n,e,t,r,o+1)),l)):(s&&rr(or(s,ks(n,e,o+1)),l),Eo(e,t,o,l),i&&rr(or(i,ks(t,r,o+1)),l)),Eo(r,null,o,l),new ae(l)}function ks(n,e,t){let r=[];if(Eo(null,n,t,r),n.depth>t){let o=Ra(n,e,t+1);rr(or(o,ks(n,e,t+1)),r)}return Eo(e,null,t,r),new ae(r)}function fy(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)o=e.node(s).copy(ae.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class Co{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,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 new 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 new 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 r=this.pos-this.path[this.path.length-1],o=e.child(t);return r?e.child(t).cut(r):o}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 r=this.path[t*3],o=t==0?0:this.path[t*3-1]+1;for(let s=0;s<e;s++)o+=r.child(s).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Pe.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),o=e.maybeChild(t);if(!r){let l=r;r=o,o=l}let s=r.marks;for(var i=0;i<s.length;i++)s[i].type.spec.inclusive===!1&&(!o||!s[i].isInSet(o.marks))&&(s=s[i--].removeFromSet(s));return s}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,o=e.parent.maybeChild(e.index());for(var s=0;s<r.length;s++)r[s].type.spec.inclusive===!1&&(!o||!r[s].isInSet(o.marks))&&(r=r[s--].removeFromSet(r));return r}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 r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Ts(this,e,r);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(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],o=0,s=t;for(let i=e;;){let{index:l,offset:a}=i.content.findIndex(s),c=s-a;if(r.push(i,l,o+a),!c||(i=i.child(l),i.isText))break;s=c-1,o+=a+1}return new Co(t,r,s)}static resolveCached(e,t){for(let o=0;o<Ba.length;o++){let s=Ba[o];if(s.pos==t&&s.doc==e)return s}let r=Ba[$a]=Co.resolve(e,t);return $a=($a+1)%hy,r}}let Ba=[],$a=0,hy=12;class Ts{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}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)}}const py=Object.create(null);let sr=class qc{constructor(e,t,r,o=Pe.none){this.type=e,this.attrs=t,this.marks=o,this.content=r||ae.empty}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,r,o=0){this.content.nodesBetween(e,t,r,o,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,r,o){return this.content.textBetween(e,t,r,o)}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,r){return this.type==e&&Ss(this.attrs,t||e.defaultAttrs||py)&&Pe.sameSet(this.marks,r||Pe.none)}copy(e=null){return e==this.content?this:new qc(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new qc(this.type,this.attrs,this.content,e)}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,r=!1){if(e==t)return ye.empty;let o=this.resolve(e),s=this.resolve(t),i=r?0:o.sharedDepth(t),l=o.start(i),c=o.node(i).content.cut(o.pos-l,s.pos-l);return new ye(c,o.depth-i,s.depth-i)}replace(e,t,r){return dy(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:o}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(o==e||t.isText)return t;e-=o+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let o=this.content.child(t-1);return{node:o,index:t-1,offset:r-o.nodeSize}}resolve(e){return Co.resolveCached(this,e)}resolveNoCache(e){return Co.resolve(this,e)}rangeHasMark(e,t,r){let o=!1;return t>e&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(o=!0),!o)),o}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()+")"),zu(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=ae.empty,o=0,s=r.childCount){let i=this.contentMatchAt(e).matchFragment(r,o,s),l=i&&i.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=o;a<s;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,o){if(o&&!this.type.allowsMarks(o))return!1;let s=this.contentMatchAt(e).matchType(r),i=s&&s.matchFragment(this.content,t);return i?i.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);let e=Pe.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!Pe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.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(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let o=ae.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,o,r)}};sr.prototype.text=void 0;class xs extends sr{constructor(e,t,r,o){if(super(e,t,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):zu(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(e){return e==this.marks?this:new xs(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new xs(this.type,this.attrs,e,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 zu(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class ir{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new my(e,t);if(r.next==null)return ir.empty;let o=Hu(r);r.next&&r.err("Unexpected trailing text");let s=Sy(Cy(o));return wy(s,r),s}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,r=e.childCount){let o=this;for(let s=t;o&&s<r;s++)o=o.matchType(e.child(s).type);return o}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 r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let o=[this];function s(i,l){let a=i.matchFragment(e,r);if(a&&(!t||a.validEnd))return ae.from(l.map(c=>c.createAndFill()));for(let c=0;c<i.next.length;c++){let{type:d,next:f}=i.next[c];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=s(f,l.concat(d));if(h)return h}}return null}return s(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),s=o.match;if(s.matchType(e)){let i=[];for(let l=o;l.type;l=l.via)i.push(l.type);return i.reverse()}for(let i=0;i<s.next.length;i++){let{type:l,next:a}=s.next[i];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!o.type||a.validEnd)&&(r.push({match:l.contentMatch,type:l,via:o}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&t(r.next[o].next)}return t(this),e.map((r,o)=>{let s=o+(r.validEnd?"*":" ")+" ";for(let i=0;i<r.next.length;i++)s+=(i?", ":"")+r.next[i].type.name+"->"+e.indexOf(r.next[i].next);return s}).join(`
12
12
  `)}}ir.empty=new ir(!0);class my{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 new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Hu(n){let e=[];do e.push(gy(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function gy(n){let e=[];do e.push(yy(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function yy(n){let e=Ey(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=vy(n,e);else break;return e}function Uu(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function vy(n,e){let t=Uu(n),r=t;return n.eat(",")&&(n.next!="}"?r=Uu(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function by(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let o=[];for(let s in t){let i=t[s];i.groups.indexOf(e)>-1&&o.push(i)}return o.length==0&&n.err("No node type or group '"+e+"' found"),o}function Ey(n){if(n.eat("(")){let e=Hu(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=by(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Cy(n){let e=[[]];return o(s(n,0),t()),e;function t(){return e.push([])-1}function r(i,l,a){let c={term:a,to:l};return e[i].push(c),c}function o(i,l){i.forEach(a=>a.to=l)}function s(i,l){if(i.type=="choice")return i.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(i.type=="seq")for(let a=0;;a++){let c=s(i.exprs[a],l);if(a==i.exprs.length-1)return c;o(c,l=t())}else if(i.type=="star"){let a=t();return r(l,a),o(s(i.expr,a),a),[r(a)]}else if(i.type=="plus"){let a=t();return o(s(i.expr,l),a),o(s(i.expr,a),a),[r(a)]}else{if(i.type=="opt")return[r(l)].concat(s(i.expr,l));if(i.type=="range"){let a=l;for(let c=0;c<i.min;c++){let d=t();o(s(i.expr,a),d),a=d}if(i.max==-1)o(s(i.expr,a),a);else for(let c=i.min;c<i.max;c++){let d=t();r(a,d),o(s(i.expr,a),d),a=d}return[r(a)]}else{if(i.type=="name")return[r(l,void 0,i.value)];throw new Error("Unknown expr type")}}}}function ju(n,e){return e-n}function Wu(n,e){let t=[];return r(e),t.sort(ju);function r(o){let s=n[o];if(s.length==1&&!s[0].term)return r(s[0].to);t.push(o);for(let i=0;i<s.length;i++){let{term:l,to:a}=s[i];!l&&t.indexOf(a)==-1&&r(a)}}}function Sy(n){let e=Object.create(null);return t(Wu(n,0));function t(r){let o=[];r.forEach(i=>{n[i].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let d=0;d<o.length;d++)o[d][0]==l&&(c=o[d][1]);Wu(n,a).forEach(d=>{c||o.push([l,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let s=e[r.join(",")]=new ir(r.indexOf(n.length-1)>-1);for(let i=0;i<o.length;i++){let l=o[i][1].sort(ju);s.next.push({type:o[i][0],next:e[l.join(",")]||t(l)})}return s}}function wy(n,e){for(let t=0,r=[n];t<r.length;t++){let o=r[t],s=!o.validEnd,i=[];for(let l=0;l<o.next.length;l++){let{type:a,next:c}=o.next[l];i.push(a.name),s&&!(a.isText||a.hasRequiredAttrs())&&(s=!1),r.indexOf(c)==-1&&r.push(c)}s&&e.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Ku(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function Yu(n,e){let t=Object.create(null);for(let r in n){let o=e&&e[r];if(o===void 0){let s=n[r];if(s.hasDefault)o=s.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=o}return t}function Gu(n){let e=Object.create(null);if(n)for(let t in n)e[t]=new ky(n[t]);return e}let Ju=class l1{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Gu(r.attrs),this.defaultAttrs=Ku(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ir.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}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:Yu(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new sr(this,this.computeAttrs(e),ae.from(t),Pe.setFrom(r))}createChecked(e=null,t,r){return t=ae.from(t),this.checkContent(t),new sr(this,this.computeAttrs(e),t,Pe.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=ae.from(t),t.size){let i=this.contentMatch.fillBefore(t);if(!i)return null;t=i.append(t)}let o=this.contentMatch.matchFragment(t),s=o&&o.fillBefore(ae.empty,!0);return s?new sr(this,e,t.append(s),Pe.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}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 r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:Pe.none:e}static compile(e,t){let r=Object.create(null);e.forEach((s,i)=>r[s]=new l1(s,t,i));let o=t.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class ky{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class As{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=Gu(o.attrs),this.excluded=null;let s=Ku(this.attrs);this.instance=s?new Pe(this,s):null}create(e=null){return!e&&this.instance?this.instance:new Pe(this,Yu(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((s,i)=>r[s]=new As(s,o++,t,i)),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]}excludes(e){return this.excluded.indexOf(e)>-1}}class Ty{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let o in e)t[o]=e[o];t.nodes=et.from(e.nodes),t.marks=et.from(e.marks||{}),this.nodes=Ju.compile(this.spec.nodes,this),this.marks=As.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let s=this.nodes[o],i=s.spec.content||"",l=s.spec.marks;s.contentMatch=r[i]||(r[i]=ir.parse(i,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.markSet=l=="_"?null:l?Zu(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let o in this.marks){let s=this.marks[o],i=s.spec.excludes;s.excluded=i==null?[s]:i==""?[]:Zu(this,i.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Ju){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,o)}text(e,t){let r=this.nodes.text;return new xs(r,r.defaultAttrs,e,Pe.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return sr.fromJSON(this,e)}markFromJSON(e){return Pe.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Zu(n,e){let t=[];for(let r=0;r<e.length;r++){let o=e[r],s=n.marks[o],i=s;if(s)t.push(s);else for(let l in n.marks){let a=n.marks[l];(o=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(o)>-1)&&t.push(i=a)}if(!i)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}class Nr{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,t={}){let r=new ed(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new ed(this,t,!0);return r.addAll(e,t.from,t.to),ye.maxOpen(r.finish())}matchTag(e,t,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let s=this.tags[o];if(Oy(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||t.matchesContext(s.context))){if(s.getAttrs){let i=s.getAttrs(e);if(i===!1)continue;s.attrs=i||void 0}return s}}}matchStyle(e,t,r,o){for(let s=o?this.styles.indexOf(o)+1:0;s<this.styles.length;s++){let i=this.styles[s],l=i.style;if(!(l.indexOf(e)!=0||i.context&&!r.matchesContext(i.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(i.getAttrs){let a=i.getAttrs(t);if(a===!1)continue;i.attrs=a||void 0}return i}}}static schemaRules(e){let t=[];function r(o){let s=o.priority==null?50:o.priority,i=0;for(;i<t.length;i++){let l=t[i];if((l.priority==null?50:l.priority)<s)break}t.splice(i,0,o)}for(let o in e.marks){let s=e.marks[o].spec.parseDOM;s&&s.forEach(i=>{r(i=td(i)),i.mark||i.ignore||i.clearMark||(i.mark=o)})}for(let o in e.nodes){let s=e.nodes[o].spec.parseDOM;s&&s.forEach(i=>{r(i=td(i)),i.node||i.ignore||i.mark||(i.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Nr(e,Nr.schemaRules(e)))}}const Xu={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},xy={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Qu={ol:!0,ul:!0},Os=1,Ms=2,So=4;function qu(n,e,t){return e!=null?(e?Os:0)|(e==="full"?Ms:0):n&&n.whitespace=="pre"?Os|Ms:t&~So}class Ns{constructor(e,t,r,o,s,i,l){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=o,this.solid=s,this.options=l,this.content=[],this.activeMarks=Pe.none,this.stashMarks=[],this.match=i||(l&So?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(ae.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Os)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let t=ae.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(ae.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;t<r.length;t++){let o=r[t];(this.type?this.type.allowsMarkType(o.type):Ny(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Xu.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class ed{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let o=t.topNode,s,i=qu(null,t.preserveWhitespace,0)|(r?So:0);o?s=new Ns(o.type,o.attrs,Pe.none,Pe.none,!0,t.topMatch||o.type.contentMatch,i):r?s=new Ns(null,null,Pe.none,Pe.none,!0,null,i):s=new Ns(e.schema.topNodeType,null,Pe.none,Pe.none,!0,null,i),this.nodes=[s],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,t){let r=e.getAttribute("style");if(!r)return t();let o=this.readStyles(My(r));if(!o)return;let[s,i]=o,l=this.top;for(let a=0;a<i.length;a++)this.removePendingMark(i[a],l);for(let a=0;a<s.length;a++)this.addPendingMark(s[a]);t();for(let a=0;a<s.length;a++)this.removePendingMark(s[a],l);for(let a=0;a<i.length;a++)this.addPendingMark(i[a])}addTextNode(e){let t=e.nodeValue,r=this.top;if(r.options&Ms||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&Os)r.options&Ms?t=t.replace(/\r\n?/g,`
13
13
  `):t=t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],s=e.previousSibling;(!o||s&&s.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let r=e.nodeName.toLowerCase(),o;Qu.hasOwnProperty(r)&&this.parser.normalizeLists&&Ay(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,t));if(s?s.ignore:xy.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);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 i,l=this.top,a=this.needsBlock;if(Xu.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),i=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}s&&s.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),i&&this.sync(l),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,s,s.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
14
14
  `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=Pe.none,r=Pe.none;for(let o=0;o<e.length;o+=2)for(let s=void 0;;){let i=this.parser.matchStyle(e[o],e[o+1],this,s);if(!i)break;if(i.ignore)return null;if(i.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{i.clearMark(l)&&(r=l.addToSet(r))}):t=this.parser.schema.marks[i.mark].create(i.attrs).addToSet(t),i.consuming===!1)s=i;else break}return[t,r]}addElementByRule(e,t,r){let o,s,i;t.node?(s=this.parser.schema.nodes[t.node],s.isLeaf?this.insertNode(s.create(t.attrs))||this.leafFallback(e):o=this.enter(s,t.attrs||null,t.preserveWhitespace)):(i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i));let l=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a)}o&&this.sync(l)&&this.open--,i&&this.removePendingMark(i,l)}addAll(e,t,r){let o=t||0;for(let s=t?e.childNodes[t]:e.firstChild,i=r==null?null:e.childNodes[r];s!=i;s=s.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(s);this.findAtPoint(e,o)}findPlace(e){let t,r;for(let o=this.open;o>=0;o--){let s=this.nodes[o],i=s.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,r=s,!i.length)||s.solid)break}if(!t)return!1;this.sync(r);for(let o=0;o<t.length;o++)this.enterInner(t[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let r=t.activeMarks;for(let o=0;o<e.marks.length;o++)(!t.type||t.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r){let o=this.findPlace(e.create(t));return o&&this.enterInner(e,t,!0,r),o}enterInner(e,t=null,r=!1,o){this.closeExtra();let s=this.top;s.applyPending(e),s.match=s.match&&s.match.matchType(e);let i=qu(e,o,s.options);s.options&So&&s.content.length==0&&(i|=So),this.nodes.push(new Ns(e,t,s.activeMarks,s.pendingMarks,r,null,i)),this.open++}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;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].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,r){if(e!=t&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&t.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].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("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(o?0:1),i=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=s;a--)if(i(l-1,a))return!0;return!1}else{let d=a>0||a==0&&o?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!d||d.name!=c&&d.groups.indexOf(c)==-1)return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let t=_y(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let i=o.popFromStashMark(e);i&&o.type&&o.type.allowsMarkType(i.type)&&(o.activeMarks=i.addToSet(o.activeMarks))}if(o==t)break}}}function Ay(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Qu.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Oy(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function My(n){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,t,r=[];for(;t=e.exec(n);)r.push(t[1],t[2].trim());return r}function td(n){let e={};for(let t in n)e[t]=n[t];return e}function Ny(n,e){let t=e.schema.nodes;for(let r in t){let o=t[r];if(!o.allowsMarkType(n))continue;let s=[],i=l=>{s.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:d}=l.edge(a);if(c==e||s.indexOf(d)<0&&i(d))return!0}};if(i(o.contentMatch))return!0}}function _y(n,e){for(let t=0;t<e.length;t++)if(n.eq(e[t]))return e[t]}class Zt{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Pa(t).createDocumentFragment());let o=r,s=[];return e.forEach(i=>{if(s.length||i.marks.length){let l=0,a=0;for(;l<s.length&&a<i.marks.length;){let c=i.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(s[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<s.length;)o=s.pop()[1];for(;a<i.marks.length;){let c=i.marks[a++],d=this.serializeMark(c,i.isInline,t);d&&(s.push([c,o]),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(this.serializeNodeInner(i,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:o}=Zt.renderSpec(Pa(t),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,o)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let o=e.marks.length-1;o>=0;o--){let s=this.serializeMark(e.marks[o],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let o=this.marks[e.type.name];return o&&Zt.renderSpec(Pa(r),o(e,t))}static renderSpec(e,t,r=null){if(typeof t=="string")return{dom:e.createTextNode(t)};if(t.nodeType!=null)return{dom:t};if(t.dom&&t.dom.nodeType!=null)return t;let o=t[0],s=o.indexOf(" ");s>0&&(r=o.slice(0,s),o=o.slice(s+1));let i,l=r?e.createElementNS(r,o):e.createElement(o),a=t[1],c=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){c=2;for(let d in a)if(a[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),a[d]):l.setAttribute(d,a[d])}}for(let d=c;d<t.length;d++){let f=t[d];if(f===0){if(d<t.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:p}=Zt.renderSpec(e,f,r);if(l.appendChild(h),p){if(i)throw new RangeError("Multiple content holes");i=p}}}return{dom:l,contentDOM:i}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Zt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=nd(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return nd(e.marks)}}function nd(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Pa(n){return n.document||window.document}const rd=65535,od=Math.pow(2,16);function Iy(n,e){return n+e*od}function sd(n){return n&rd}function Dy(n){return(n-(n&rd))/od}const id=1,ad=2,_s=4,ld=8;class Fa{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&ld)>0}get deletedBefore(){return(this.delInfo&(id|_s))>0}get deletedAfter(){return(this.delInfo&(ad|_s))>0}get deletedAcross(){return(this.delInfo&_s)>0}}class wt{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&wt.empty)return wt.empty}recover(e){let t=0,r=sd(e);if(!this.inverted)for(let o=0;o<r;o++)t+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+t+Dy(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let o=0,s=this.inverted?2:1,i=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?o:0);if(a>e)break;let c=this.ranges[l+s],d=this.ranges[l+i],f=a+c;if(e<=f){let h=c?e==a?-1:e==f?1:t:t,p=a+o+(h<0?0:d);if(r)return p;let m=e==(t<0?a:f)?null:Iy(l/3,e-a),g=e==a?ad:e==f?id:_s;return(t<0?e!=a:e!=f)&&(g|=ld),new Fa(p,g,m)}o+=d-c}return r?e+o:new Fa(e+o,0,null)}touches(e,t){let r=0,o=sd(t),s=this.inverted?2:1,i=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let a=this.ranges[l]-(this.inverted?r:0);if(a>e)break;let c=this.ranges[l+s],d=a+c;if(e<=d&&l==o*3)return!0;r+=this.ranges[l+i]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,s=0;o<this.ranges.length;o+=3){let i=this.ranges[o],l=i-(this.inverted?s:0),a=i+(this.inverted?0:s),c=this.ranges[o+t],d=this.ranges[o+r];e(l,l+c,a,a+d),s+=d-c}}invert(){return new wt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?wt.empty:new wt(e<0?[0,-e,0]:[0,0,e])}}wt.empty=new wt([]);class wo{constructor(e=[],t,r=0,o=e.length){this.maps=e,this.mirror=t,this.from=r,this.to=o}slice(e=0,t=this.maps.length){return new wo(this.maps,this.mirror,e,t)}copy(){return new wo(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),t!=null&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,r=this.maps.length;t<e.maps.length;t++){let o=e.getMirror(t);this.appendMap(e.maps[t],o!=null&&o<t?r+o: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=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this.maps.length+e.maps.length;t>=0;t--){let o=e.getMirror(t);this.appendMap(e.maps[t].invert(),o!=null&&o>t?r-o-1:void 0)}}invert(){let e=new wo;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let o=0;for(let s=this.from;s<this.to;s++){let i=this.maps[s],l=i.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(s);if(a!=null&&a>s&&a<this.to){s=a,e=this.maps[a].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new Fa(e,o,null)}}const Va=Object.create(null);class ot{getMap(){return wt.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Va[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in Va)throw new RangeError("Duplicate use of step JSON ID "+e);return Va[e]=t,t.prototype.jsonID=e,t}}class Ke{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new Ke(e,null)}static fail(e){return new Ke(null,e)}static fromReplace(e,t,r,o){try{return Ke.ok(e.replace(t,r,o))}catch(s){if(s instanceof ws)return Ke.fail(s.message);throw s}}}function za(n,e,t){let r=[];for(let o=0;o<n.childCount;o++){let s=n.child(o);s.content.size&&(s=s.copy(za(s.content,e,s))),s.isInline&&(s=e(s,t,o)),r.push(s)}return ae.fromArray(r)}class wn extends ot{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),s=new ye(za(t.content,(i,l)=>!i.isAtom||!l.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),o),t.openStart,t.openEnd);return Ke.fromReplace(e,this.from,this.to,s)}invert(){return new Xt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new wn(t.pos,r.pos,this.mark)}merge(e){return e instanceof wn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new wn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new wn(t.from,t.to,e.markFromJSON(t.mark))}}ot.jsonID("addMark",wn);class Xt extends ot{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new ye(za(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return Ke.fromReplace(e,this.from,this.to,r)}invert(){return new wn(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Xt(t.pos,r.pos,this.mark)}merge(e){return e instanceof Xt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Xt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Xt(t.from,t.to,e.markFromJSON(t.mark))}}ot.jsonID("removeMark",Xt);class kn extends ot{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ke.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Ke.fromReplace(e,this.pos,this.pos+1,new ye(ae.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let o=0;o<t.marks.length;o++)if(!t.marks[o].isInSet(r))return new kn(this.pos,t.marks[o]);return new kn(this.pos,this.mark)}}return new _r(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new kn(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new kn(t.pos,e.markFromJSON(t.mark))}}ot.jsonID("addNodeMark",kn);class _r extends ot{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ke.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Ke.fromReplace(e,this.pos,this.pos+1,new ye(ae.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new kn(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new _r(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new _r(t.pos,e.markFromJSON(t.mark))}}ot.jsonID("removeNodeMark",_r);class tt extends ot{constructor(e,t,r,o=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=o}apply(e){return this.structure&&Ha(e,this.from,this.to)?Ke.fail("Structure replace would overwrite content"):Ke.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new wt([this.from,this.to-this.from,this.slice.size])}invert(e){return new tt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new tt(t.pos,Math.max(t.pos,r.pos),this.slice)}merge(e){if(!(e instanceof tt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?ye.empty:new ye(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new tt(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?ye.empty:new ye(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new tt(e.from,this.to,t,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(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new tt(t.from,t.to,ye.fromJSON(e,t.slice),!!t.structure)}}ot.jsonID("replace",tt);class Xe extends ot{constructor(e,t,r,o,s,i,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=o,this.slice=s,this.insert=i,this.structure=l}apply(e){if(this.structure&&(Ha(e,this.from,this.gapFrom)||Ha(e,this.gapTo,this.to)))return Ke.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Ke.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?Ke.fromReplace(e,this.from,this.to,r):Ke.fail("Content does not fit in gap")}getMap(){return new wt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Xe(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),s=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||o<t.pos||s>r.pos?null:new Xe(t.pos,r.pos,o,s,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(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Xe(t.from,t.to,t.gapFrom,t.gapTo,ye.fromJSON(e,t.slice),t.insert,!!t.structure)}}ot.jsonID("replaceAround",Xe);function Ha(n,e,t){let r=n.resolve(e),o=t-e,s=r.depth;for(;o>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,o--;if(o>0){let i=r.node(s).maybeChild(r.indexAfter(s));for(;o>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,o--}}return!1}function Ly(n,e,t,r){let o=[],s=[],i,l;n.doc.nodesBetween(e,t,(a,c,d)=>{if(!a.isInline)return;let f=a.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let h=Math.max(c,e),p=Math.min(c+a.nodeSize,t),m=r.addToSet(f);for(let g=0;g<f.length;g++)f[g].isInSet(m)||(i&&i.to==h&&i.mark.eq(f[g])?i.to=p:o.push(i=new Xt(h,p,f[g])));l&&l.to==h?l.to=p:s.push(l=new wn(h,p,r))}}),o.forEach(a=>n.step(a)),s.forEach(a=>n.step(a))}function Ry(n,e,t,r){let o=[],s=0;n.doc.nodesBetween(e,t,(i,l)=>{if(!i.isInline)return;s++;let a=null;if(r instanceof As){let c=i.marks,d;for(;d=r.isInSet(c);)(a||(a=[])).push(d),c=d.removeFromSet(c)}else r?r.isInSet(i.marks)&&(a=[r]):a=i.marks;if(a&&a.length){let c=Math.min(l+i.nodeSize,t);for(let d=0;d<a.length;d++){let f=a[d],h;for(let p=0;p<o.length;p++){let m=o[p];m.step==s-1&&f.eq(o[p].style)&&(h=m)}h?(h.to=c,h.step=s):o.push({style:f,from:Math.max(l,e),to:c,step:s})}}}),o.forEach(i=>n.step(new Xt(i.from,i.to,i.style)))}function By(n,e,t,r=t.contentMatch){let o=n.doc.nodeAt(e),s=[],i=e+1;for(let l=0;l<o.childCount;l++){let a=o.child(l),c=i+a.nodeSize,d=r.matchType(a.type);if(!d)s.push(new tt(i,c,ye.empty));else{r=d;for(let f=0;f<a.marks.length;f++)t.allowsMarkType(a.marks[f].type)||n.step(new Xt(i,c,a.marks[f]));if(a.isText&&!t.spec.code){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(a.text);)p||(p=new ye(ae.from(t.schema.text(" ",t.allowedMarks(a.marks))),0,0)),s.push(new tt(i+f.index,i+f.index+f[0].length,p))}}i=c}if(!r.validEnd){let l=r.fillBefore(ae.empty,!0);n.replace(i,i,new ye(l,0,0))}for(let l=s.length-1;l>=0;l--)n.step(s[l])}function $y(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Ir(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let o=n.$from.node(r),s=n.$from.index(r),i=n.$to.indexAfter(r);if(r<n.depth&&o.canReplace(s,i,t))return r;if(r==0||o.type.spec.isolating||!$y(o,s,i))break}return null}function Py(n,e,t){let{$from:r,$to:o,depth:s}=e,i=r.before(s+1),l=o.after(s+1),a=i,c=l,d=ae.empty,f=0;for(let m=s,g=!1;m>t;m--)g||r.index(m)>0?(g=!0,d=ae.from(r.node(m).copy(d)),f++):a--;let h=ae.empty,p=0;for(let m=s,g=!1;m>t;m--)g||o.after(m+1)<o.end(m)?(g=!0,h=ae.from(o.node(m).copy(h)),p++):c++;n.step(new Xe(a,c,i,l,new ye(d.append(h),f,p),d.size-f,!0))}function Ua(n,e,t=null,r=n){let o=Fy(n,e),s=o&&Vy(r,e);return s?o.map(cd).concat({type:e,attrs:t}).concat(s.map(cd)):null}function cd(n){return{type:n,attrs:null}}function Fy(n,e){let{parent:t,startIndex:r,endIndex:o}=n,s=t.contentMatchAt(r).findWrapping(e);if(!s)return null;let i=s.length?s[0]:e;return t.canReplaceWith(r,o,i)?s:null}function Vy(n,e){let{parent:t,startIndex:r,endIndex:o}=n,s=t.child(r),i=e.contentMatch.findWrapping(s.type);if(!i)return null;let a=(i.length?i[i.length-1]:e).contentMatch;for(let c=r;a&&c<o;c++)a=a.matchType(t.child(c).type);return!a||!a.validEnd?null:i}function zy(n,e,t){let r=ae.empty;for(let i=t.length-1;i>=0;i--){if(r.size){let l=t[i].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=ae.from(t[i].type.create(t[i].attrs,r))}let o=e.start,s=e.end;n.step(new Xe(o,s,o,s,new ye(r,0,0),t.length,!0))}function Hy(n,e,t,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(i,l)=>{if(i.isTextblock&&!i.hasMarkup(r,o)&&Uy(n.doc,n.mapping.slice(s).map(l),r)){n.clearIncompatible(n.mapping.slice(s).map(l,1),r);let a=n.mapping.slice(s),c=a.map(l,1),d=a.map(l+i.nodeSize,1);return n.step(new Xe(c,d,c+1,d-1,new ye(ae.from(r.create(o,null,i.marks)),0,0),1,!0)),!1}})}function Uy(n,e,t){let r=n.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,t)}function jy(n,e,t,r,o){let s=n.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");t||(t=s.type);let i=t.create(r,null,o||s.marks);if(s.isLeaf)return n.replaceWith(e,e+s.nodeSize,i);if(!t.validContent(s.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Xe(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new ye(ae.from(i),0,0),1,!0))}function Dr(n,e,t=1,r){let o=n.resolve(e),s=o.depth-t,i=r&&r[r.length-1]||o.parent;if(s<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!i.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,d=t-2;c>s;c--,d--){let f=o.node(c),h=o.index(c);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),m=r&&r[d+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[d]||f;if(!f.canReplace(h+1,f.childCount)||!g.type.validContent(p))return!1}let l=o.indexAfter(s),a=r&&r[0];return o.node(s).canReplaceWith(l,l,a?a.type:o.node(s+1).type)}function Wy(n,e,t=1,r){let o=n.doc.resolve(e),s=ae.empty,i=ae.empty;for(let l=o.depth,a=o.depth-t,c=t-1;l>a;l--,c--){s=ae.from(o.node(l).copy(s));let d=r&&r[c];i=ae.from(d?d.type.create(d.attrs,i):o.node(l).copy(i))}n.step(new tt(e,e,new ye(s.append(i),t,t),!0))}function Tn(n,e){let t=n.resolve(e),r=t.index();return ud(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function ud(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function Is(n,e,t=-1){let r=n.resolve(e);for(let o=r.depth;;o--){let s,i,l=r.index(o);if(o==r.depth?(s=r.nodeBefore,i=r.nodeAfter):t>0?(s=r.node(o+1),l++,i=r.node(o).maybeChild(l)):(s=r.node(o).maybeChild(l-1),i=r.node(o+1)),s&&!s.isTextblock&&ud(s,i)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=t<0?r.before(o):r.after(o)}}function Ky(n,e,t){let r=new tt(e-t,e+t,ye.empty,!0);n.step(r)}function Yy(n,e,t){let r=n.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),t))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let s=r.index(o);if(r.node(o).canReplaceWith(s,s,t))return r.before(o+1);if(s>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let s=r.indexAfter(o);if(r.node(o).canReplaceWith(s,s,t))return r.after(o+1);if(s<r.node(o).childCount)return null}return null}function Gy(n,e,t){let r=n.resolve(e);if(!t.content.size)return e;let o=t.content;for(let s=0;s<t.openStart;s++)o=o.firstChild.content;for(let s=1;s<=(t.openStart==0&&t.size?2:1);s++)for(let i=r.depth;i>=0;i--){let l=i==r.depth?0:r.pos<=(r.start(i+1)+r.end(i+1))/2?-1:1,a=r.index(i)+(l>0?1:0),c=r.node(i),d=!1;if(s==1)d=c.canReplace(a,a,o);else{let f=c.contentMatchAt(a).findWrapping(o.firstChild.type);d=f&&c.canReplaceWith(a,a,f[0])}if(d)return l==0?r.pos:l<0?r.before(i+1):r.after(i+1)}return null}function ja(n,e,t=e,r=ye.empty){if(e==t&&!r.size)return null;let o=n.resolve(e),s=n.resolve(t);return dd(o,s,r)?new tt(e,t,r):new Jy(o,s,r).fit()}function dd(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class Jy{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=ae.empty;for(let o=0;o<=e.depth;o++){let s=e.node(o);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=ae.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let s=this.placed,i=r.depth,l=o.depth;for(;i&&l&&s.childCount==1;)s=s.firstChild.content,i--,l--;let a=new ye(s,i,l);return e>-1?new Xe(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new tt(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let s=t.firstChild;if(t.childCount>1&&(o=0),s.type.spec.isolating&&o<=r){e=r;break}t=s.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let o,s=null;r?(s=Wa(this.unplaced.content,r-1).firstChild,o=s.content):o=this.unplaced.content;let i=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:c}=this.frontier[l],d,f=null;if(t==1&&(i?c.matchType(i.type)||(f=c.fillBefore(ae.from(i),!1)):s&&a.compatibleContent(s.type)))return{sliceDepth:r,frontierDepth:l,parent:s,inject:f};if(t==2&&i&&(d=c.findWrapping(i.type)))return{sliceDepth:r,frontierDepth:l,parent:s,wrap:d};if(s&&c.matchType(s.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=Wa(e,t);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new ye(e,t+1,Math.max(r,o.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=Wa(e,t);if(o.childCount<=1&&t>0){let s=e.size-t<=t+o.size;this.unplaced=new ye(ko(e,t-1,1),t-1,s?t-1:r)}else this.unplaced=new ye(ko(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:o,wrap:s}){for(;this.depth>t;)this.closeFrontierNode();if(s)for(let g=0;g<s.length;g++)this.openFrontierNode(s[g]);let i=this.unplaced,l=r?r.content:i.content,a=i.openStart-e,c=0,d=[],{match:f,type:h}=this.frontier[t];if(o){for(let g=0;g<o.childCount;g++)d.push(o.child(g));f=f.matchFragment(o)}let p=l.size+e-(i.content.size-i.openEnd);for(;c<l.childCount;){let g=l.child(c),y=f.matchType(g.type);if(!y)break;c++,(c>1||a==0||g.content.size)&&(f=y,d.push(fd(g.mark(h.allowedMarks(g.marks)),c==1?a:0,c==l.childCount?p:-1)))}let m=c==l.childCount;m||(p=-1),this.placed=To(this.placed,t,ae.from(d)),this.frontier[t].match=f,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,y=l;g<p;g++){let C=y.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),y=C.content}this.unplaced=m?e==0?ye.empty:new ye(ko(i.content,e-1,1),e-1,p<0?i.openEnd:e-1):new ye(ko(i.content,e,c),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Ka(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:o}=this.frontier[t],s=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=Ka(e,t,o,r,s);if(i){for(let l=t-1;l>=0;l--){let{match:a,type:c}=this.frontier[l],d=Ka(e,l,c,a,!0);if(!d||d.childCount)continue e}return{depth:t,fit:i,move:s?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=To(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let o=e.node(r),s=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,s)}return e}openFrontierNode(e,t=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=To(this.placed,this.depth,ae.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(ae.empty,!0);t.childCount&&(this.placed=To(this.placed,this.frontier.length,t))}}function ko(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(ko(n.firstChild.content,e-1,t)))}function To(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(To(n.lastChild.content,e-1,t)))}function Wa(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function fd(n,e,t){if(e<=0)return n;let r=n.content;return e>1&&(r=r.replaceChild(0,fd(r.firstChild,e-1,r.childCount==1?t-1:0))),e>0&&(r=n.type.contentMatch.fillBefore(r).append(r),t<=0&&(r=r.append(n.type.contentMatch.matchFragment(r).fillBefore(ae.empty,!0)))),n.copy(r)}function Ka(n,e,t,r,o){let s=n.node(e),i=o?n.indexAfter(e):n.index(e);if(i==s.childCount&&!t.compatibleContent(s.type))return null;let l=r.fillBefore(s.content,!0,i);return l&&!Zy(t,s.content,i)?l:null}function Zy(n,e,t){for(let r=t;r<e.childCount;r++)if(!n.allowsMarks(e.child(r).marks))return!0;return!1}function Xy(n){return n.spec.defining||n.spec.definingForContent}function Qy(n,e,t,r){if(!r.size)return n.deleteRange(e,t);let o=n.doc.resolve(e),s=n.doc.resolve(t);if(dd(o,s,r))return n.step(new tt(e,t,r));let i=pd(o,n.doc.resolve(t));i[i.length-1]==0&&i.pop();let l=-(o.depth+1);i.unshift(l);for(let h=o.depth,p=o.pos-1;h>0;h--,p--){let m=o.node(h).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;i.indexOf(h)>-1?l=h:o.before(h)==p&&i.splice(1,0,-h)}let a=i.indexOf(l),c=[],d=r.openStart;for(let h=r.content,p=0;;p++){let m=h.firstChild;if(c.push(m),p==r.openStart)break;h=m.content}for(let h=d-1;h>=0;h--){let p=c[h],m=Xy(p.type);if(m&&!p.sameMarkup(o.node(Math.abs(l)-1)))d=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+d+1)%(r.openStart+1),m=c[p];if(m)for(let g=0;g<i.length;g++){let y=i[(g+a)%i.length],C=!0;y<0&&(C=!1,y=-y);let S=o.node(y-1),k=o.index(y-1);if(S.canReplaceWith(k,k,m.type,m.marks))return n.replace(o.before(y),C?s.after(y):t,new ye(hd(r.content,0,r.openStart,p),p,r.openEnd))}}let f=n.steps.length;for(let h=i.length-1;h>=0&&(n.replace(e,t,r),!(n.steps.length>f));h--){let p=i[h];p<0||(e=o.before(p),t=s.after(p))}}function hd(n,e,t,r,o){if(e<t){let s=n.firstChild;n=n.replaceChild(0,s.copy(hd(s.content,e+1,t,r,s)))}if(e>r){let s=o.contentMatchAt(0),i=s.fillBefore(n).append(n);n=i.append(s.matchFragment(i).fillBefore(ae.empty,!0))}return n}function qy(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let o=Yy(n.doc,e,r.type);o!=null&&(e=t=o)}n.replaceRange(e,t,new ye(ae.from(r),0,0))}function ev(n,e,t){let r=n.doc.resolve(e),o=n.doc.resolve(t),s=pd(r,o);for(let i=0;i<s.length;i++){let l=s[i],a=i==s.length-1;if(a&&l==0||r.node(l).type.contentMatch.validEnd)return n.delete(r.start(l),o.end(l));if(l>0&&(a||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return n.delete(r.before(l),o.after(l))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(e-r.start(i)==r.depth-i&&t>r.end(i)&&o.end(i)-t!=o.depth-i)return n.delete(r.before(i),t);n.delete(e,t)}function pd(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let o=r;o>=0;o--){let s=n.start(o);if(s<n.pos-(n.depth-o)||e.end(o)>e.pos+(e.depth-o)||n.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(s==e.start(o)||o==n.depth&&o==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==s-1)&&t.push(o)}return t}class Lr extends ot{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ke.fail("No node at attribute step's position");let r=Object.create(null);for(let s in t.attrs)r[s]=t.attrs[s];r[this.attr]=this.value;let o=t.type.create(r,null,t.marks);return Ke.fromReplace(e,this.pos,this.pos+1,new ye(ae.from(o),0,t.isLeaf?0:1))}getMap(){return wt.empty}invert(e){return new Lr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Lr(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Lr(t.pos,t.attr,t.value)}}ot.jsonID("attr",Lr);class xo extends ot{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let o in e.attrs)t[o]=e.attrs[o];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return Ke.ok(r)}getMap(){return wt.empty}invert(e){return new xo(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new xo(t.attr,t.value)}}ot.jsonID("docAttr",xo);let Rr=class extends Error{};Rr=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t},Rr.prototype=Object.create(Error.prototype),Rr.prototype.constructor=Rr,Rr.prototype.name="TransformError";class md{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new wo}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Rr(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=ye.empty){let o=ja(this.doc,e,t,r);return o&&this.step(o),this}replaceWith(e,t,r){return this.replace(e,t,new ye(ae.from(r),0,0))}delete(e,t){return this.replace(e,t,ye.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return Qy(this,e,t,r),this}replaceRangeWith(e,t,r){return qy(this,e,t,r),this}deleteRange(e,t){return ev(this,e,t),this}lift(e,t){return Py(this,e,t),this}join(e,t=1){return Ky(this,e,t),this}wrap(e,t){return zy(this,e,t),this}setBlockType(e,t=e,r,o=null){return Hy(this,e,t,r,o),this}setNodeMarkup(e,t,r=null,o){return jy(this,e,t,r,o),this}setNodeAttribute(e,t,r){return this.step(new Lr(e,t,r)),this}setDocAttribute(e,t){return this.step(new xo(e,t)),this}addNodeMark(e,t){return this.step(new kn(e,t)),this}removeNodeMark(e,t){if(!(t instanceof Pe)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(t=t.isInSet(r.marks),!t)return this}return this.step(new _r(e,t)),this}split(e,t=1,r){return Wy(this,e,t,r),this}addMark(e,t,r){return Ly(this,e,t,r),this}removeMark(e,t,r){return Ry(this,e,t,r),this}clearIncompatible(e,t,r){return By(this,e,t,r),this}}const Ya=Object.create(null);class Re{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new tv(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=ye.empty){let r=t.content.lastChild,o=null;for(let l=0;l<t.openEnd;l++)o=r,r=r.lastChild;let s=e.steps.length,i=this.ranges;for(let l=0;l<i.length;l++){let{$from:a,$to:c}=i[l],d=e.mapping.slice(s);e.replaceRange(d.map(a.pos),d.map(c.pos),l?ye.empty:t),l==0&&vd(e,s,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:i,$to:l}=o[s],a=e.mapping.slice(r),c=a.map(i.pos),d=a.map(l.pos);s?e.deleteRange(c,d):(e.replaceRangeWith(c,d,t),vd(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let o=e.parent.inlineContent?new Be(e):Br(e.node(0),e.parent,e.pos,e.index(),t,r);if(o)return o;for(let s=e.depth-1;s>=0;s--){let i=t<0?Br(e.node(0),e.node(s),e.before(s+1),e.index(s),t,r):Br(e.node(0),e.node(s),e.after(s+1),e.index(s)+1,t,r);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Ut(e.node(0))}static atStart(e){return Br(e,e,0,0,1)||new Ut(e)}static atEnd(e){return Br(e,e,e.content.size,e.childCount,-1)||new Ut(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Ya[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in Ya)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ya[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Be.between(this.$anchor,this.$head).getBookmark()}}Re.prototype.visible=!0;class tv{constructor(e,t){this.$from=e,this.$to=t}}let gd=!1;function yd(n){!gd&&!n.parent.inlineContent&&(gd=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Be extends Re{constructor(e,t=e){yd(e),yd(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return Re.near(r);let o=e.resolve(t.map(this.anchor));return new Be(o.parent.inlineContent?o:r,r)}replace(e,t=ye.empty){if(super.replace(e,t),t==ye.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Be&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Ds(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Be(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let o=e.resolve(t);return new this(o,r==t?o:e.resolve(r))}static between(e,t,r){let o=e.pos-t.pos;if((!r||o)&&(r=o>=0?1:-1),!t.parent.inlineContent){let s=Re.findFrom(t,r,!0)||Re.findFrom(t,-r,!0);if(s)t=s.$head;else return Re.near(t,r)}return e.parent.inlineContent||(o==0?e=t:(e=(Re.findFrom(e,-r,!0)||Re.findFrom(e,r,!0)).$anchor,e.pos<t.pos!=o<0&&(e=t))),new Be(e,t)}}Re.jsonID("text",Be);class Ds{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Ds(e.map(this.anchor),e.map(this.head))}resolve(e){return Be.between(e.resolve(this.anchor),e.resolve(this.head))}}class Ae extends Re{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:o}=t.mapResult(this.anchor),s=e.resolve(o);return r?Re.near(s):new Ae(s)}content(){return new ye(ae.from(this.node),0,0)}eq(e){return e instanceof Ae&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Ga(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Ae(e.resolve(t.anchor))}static create(e,t){return new Ae(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Ae.prototype.visible=!1,Re.jsonID("node",Ae);class Ga{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new Ds(r,r):new Ga(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&Ae.isSelectable(r)?new Ae(t):Re.near(t)}}class Ut extends Re{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=ye.empty){if(t==ye.empty){e.delete(0,e.doc.content.size);let r=Re.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Ut(e)}map(e){return new Ut(e)}eq(e){return e instanceof Ut}getBookmark(){return nv}}Re.jsonID("all",Ut);const nv={map(){return this},resolve(n){return new Ut(n)}};function Br(n,e,t,r,o,s=!1){if(e.inlineContent)return Be.create(n,t);for(let i=r-(o>0?0:1);o>0?i<e.childCount:i>=0;i+=o){let l=e.child(i);if(l.isAtom){if(!s&&Ae.isSelectable(l))return Ae.create(n,t-(o<0?l.nodeSize:0))}else{let a=Br(n,l,t+o,o<0?l.childCount:0,o,s);if(a)return a}t+=l.nodeSize*o}return null}function vd(n,e,t){let r=n.steps.length-1;if(r<e)return;let o=n.steps[r];if(!(o instanceof tt||o instanceof Xe))return;let s=n.mapping.maps[r],i;s.forEach((l,a,c,d)=>{i==null&&(i=d)}),n.setSelection(Re.near(n.doc.resolve(i),t))}const bd=1,Ls=2,Ed=4;class rv extends md{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|bd)&~Ls,this.storedMarks=null,this}get selectionSet(){return(this.updated&bd)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ls,this}ensureMarks(e){return Pe.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ls)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~Ls,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Pe.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let o=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=t),r=r??t,!e)return this.deleteRange(t,r);let s=this.storedMarks;if(!s){let i=this.doc.resolve(t);s=r==t?i.marks():i.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,o.text(e,s)),this.selection.empty||this.setSelection(Re.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Ed,this}get scrolledIntoView(){return(this.updated&Ed)>0}}function Cd(n,e){return!e||!n?n:n.bind(e)}class Ao{constructor(e,t,r){this.name=e,this.init=Cd(t.init,r),this.apply=Cd(t.apply,r)}}const ov=[new Ao("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new Ao("selection",{init(n,e){return n.selection||Re.atStart(e.doc)},apply(n){return n.selection}}),new Ao("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new Ao("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class Ja{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=ov.slice(),t&&t.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new Ao(r.key,r.spec.state,r))})}}class $r{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),o=null;for(;;){let s=!1;for(let i=0;i<this.config.plugins.length;i++){let l=this.config.plugins[i];if(l.spec.appendTransaction){let a=o?o[i].n:0,c=o?o[i].state:this,d=a<t.length&&l.spec.appendTransaction.call(l,a?t.slice(a):t,c,r);if(d&&r.filterTransaction(d,i)){if(d.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<i?{state:r,n:t.length}:{state:this,n:0})}t.push(d),r=r.applyInner(d),s=!0}o&&(o[i]={state:r,n:t.length})}}if(!s)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new $r(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let s=r[o];t[s.name]=s.apply(e,this[s.name],this,t)}return t}get tr(){return new rv(this)}static create(e){let t=new Ja(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new $r(t);for(let o=0;o<t.fields.length;o++)r[t.fields[o].name]=t.fields[o].init(e,r);return r}reconfigure(e){let t=new Ja(this.schema,e.plugins),r=t.fields,o=new $r(t);for(let s=0;s<r.length;s++){let i=r[s].name;o[i]=this.hasOwnProperty(i)?this[i]:r[s].init(e,o)}return o}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],s=o.spec.state;s&&s.toJSON&&(t[r]=s.toJSON.call(o,this[o.key]))}return t}static fromJSON(e,t,r){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new Ja(e.schema,e.plugins),s=new $r(o);return o.fields.forEach(i=>{if(i.name=="doc")s.doc=sr.fromJSON(e.schema,t.doc);else if(i.name=="selection")s.selection=Re.fromJSON(s.doc,t.selection);else if(i.name=="storedMarks")t.storedMarks&&(s.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let a=r[l],c=a.spec.state;if(a.key==i.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){s[i.name]=c.fromJSON.call(a,e,t[l],s);return}}s[i.name]=i.init(e,s)}}),s}}function Sd(n,e,t){for(let r in n){let o=n[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=Sd(o,e,{})),t[r]=o}return t}class vt{constructor(e){this.spec=e,this.props={},e.props&&Sd(e.props,this,this.props),this.key=e.key?e.key.key:wd("plugin")}getState(e){return e[this.key]}}const Za=Object.create(null);function wd(n){return n in Za?n+"$"+ ++Za[n]:(Za[n]=0,n+"$")}class jt{constructor(e="key"){this.key=wd(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ct=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},Oo=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let kd=null;const dn=function(n,e,t){let r=kd||(kd=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},ar=function(n,e,t,r){return t&&(Td(n,e,t,r,-1)||Td(n,e,t,r,1))},sv=/^(img|br|input|textarea|hr)$/i;function Td(n,e,t,r,o){for(;;){if(n==t&&e==r)return!0;if(e==(o<0?0:Qt(n))){let s=n.parentNode;if(!s||s.nodeType!=1||Xa(n)||sv.test(n.nodeName)||n.contentEditable=="false")return!1;e=ct(n)+(o<0?0:1),n=s}else if(n.nodeType==1){if(n=n.childNodes[e+(o<0?-1:0)],n.contentEditable=="false")return!1;e=o<0?Qt(n):0}else return!1}}function Qt(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function iv(n,e,t){for(let r=e==0,o=e==Qt(n);r||o;){if(n==t)return!0;let s=ct(n);if(n=n.parentNode,!n)return!1;r=r&&s==0,o=o&&s==Qt(n)}}function Xa(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const Rs=function(n){return n.focusNode&&ar(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function lr(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function av(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function lv(n,e,t){if(n.caretPositionFromPoint)try{let r=n.caretPositionFromPoint(e,t);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(n.caretRangeFromPoint){let r=n.caretRangeFromPoint(e,t);if(r)return{node:r.startContainer,offset:r.startOffset}}}const qt=typeof navigator<"u"?navigator:null,xd=typeof document<"u"?document:null,xn=qt&&qt.userAgent||"",Qa=/Edge\/(\d+)/.exec(xn),Ad=/MSIE \d/.exec(xn),qa=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(xn),bt=!!(Ad||qa||Qa),An=Ad?document.documentMode:qa?+qa[1]:Qa?+Qa[1]:0,Wt=!bt&&/gecko\/(\d+)/i.test(xn);Wt&&+(/Firefox\/(\d+)/.exec(xn)||[0,0])[1];const el=!bt&&/Chrome\/(\d+)/.exec(xn),st=!!el,cv=el?+el[1]:0,ut=!bt&&!!qt&&/Apple Computer/.test(qt.vendor),Pr=ut&&(/Mobile\/\w+/.test(xn)||!!qt&&qt.maxTouchPoints>2),Nt=Pr||(qt?/Mac/.test(qt.platform):!1),uv=qt?/Win/.test(qt.platform):!1,Kt=/Android \d/.test(xn),Mo=!!xd&&"webkitFontSmoothing"in xd.documentElement.style,dv=Mo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function fv(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function fn(n,e){return typeof n=="number"?n:n[e]}function hv(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,r=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*r}}function Od(n,e,t){let r=n.someProp("scrollThreshold")||0,o=n.someProp("scrollMargin")||5,s=n.dom.ownerDocument;for(let i=t||n.dom;i;i=Oo(i)){if(i.nodeType!=1)continue;let l=i,a=l==s.body,c=a?fv(s):hv(l),d=0,f=0;if(e.top<c.top+fn(r,"top")?f=-(c.top-e.top+fn(o,"top")):e.bottom>c.bottom-fn(r,"bottom")&&(f=e.bottom-e.top>c.bottom-c.top?e.top+fn(o,"top")-c.top:e.bottom-c.bottom+fn(o,"bottom")),e.left<c.left+fn(r,"left")?d=-(c.left-e.left+fn(o,"left")):e.right>c.right-fn(r,"right")&&(d=e.right-c.right+fn(o,"right")),d||f)if(a)s.defaultView.scrollBy(d,f);else{let h=l.scrollLeft,p=l.scrollTop;f&&(l.scrollTop+=f),d&&(l.scrollLeft+=d);let m=l.scrollLeft-h,g=l.scrollTop-p;e={left:e.left-m,top:e.top-g,right:e.right-m,bottom:e.bottom-g}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(i).position))break}}function pv(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,o;for(let s=(e.left+e.right)/2,i=t+1;i<Math.min(innerHeight,e.bottom);i+=5){let l=n.root.elementFromPoint(s,i);if(!l||l==n.dom||!n.dom.contains(l))continue;let a=l.getBoundingClientRect();if(a.top>=t-20){r=l,o=a.top;break}}return{refDOM:r,refTop:o,stack:Md(n.dom)}}function Md(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=Oo(r));return e}function mv({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;Nd(t,r==0?0:r-e)}function Nd(n,e){for(let t=0;t<n.length;t++){let{dom:r,top:o,left:s}=n[t];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=s&&(r.scrollLeft=s)}}let Fr=null;function gv(n){if(n.setActive)return n.setActive();if(Fr)return n.focus(Fr);let e=Md(n);n.focus(Fr==null?{get preventScroll(){return Fr={preventScroll:!0},!0}}:void 0),Fr||(Fr=!1,Nd(e,0))}function _d(n,e){let t,r=2e8,o,s=0,i=e.top,l=e.top,a,c;for(let d=n.firstChild,f=0;d;d=d.nextSibling,f++){let h;if(d.nodeType==1)h=d.getClientRects();else if(d.nodeType==3)h=dn(d).getClientRects();else continue;for(let p=0;p<h.length;p++){let m=h[p];if(m.top<=i&&m.bottom>=l){i=Math.max(m.bottom,i),l=Math.min(m.top,l);let g=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(g<r){t=d,r=g,o=g&&t.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,d.nodeType==1&&g&&(s=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!a&&m.left<=e.left&&m.right>=e.left&&(a=d,c={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!t&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(s=f+1)}}return!t&&a&&(t=a,o=c,r=0),t&&t.nodeType==3?yv(t,o):!t||r&&t.nodeType==1?{node:n,offset:s}:_d(t,o)}function yv(n,e){let t=n.nodeValue.length,r=document.createRange();for(let o=0;o<t;o++){r.setEnd(n,o+1),r.setStart(n,o);let s=On(r,1);if(s.top!=s.bottom&&tl(e,s))return{node:n,offset:o+(e.left>=(s.left+s.right)/2?1:0)}}return{node:n,offset:0}}function tl(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function vv(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function bv(n,e,t){let{node:r,offset:o}=_d(e,t),s=-1;if(r.nodeType==1&&!r.firstChild){let i=r.getBoundingClientRect();s=i.left!=i.right&&t.left>(i.left+i.right)/2?1:-1}return n.docView.posFromDOM(r,o,s)}function Ev(n,e,t,r){let o=-1;for(let s=e,i=!1;s!=n.dom;){let l=n.docView.nearestDesc(s,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!i||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!i&&(i=!0,a.left>r.left||a.top>r.top?o=l.posBefore:(a.right<r.left||a.bottom<r.top)&&(o=l.posAfter)),!l.contentDOM&&o<0&&!l.node.isText)return(l.node.isBlock?r.top<(a.top+a.bottom)/2:r.left<(a.left+a.right)/2)?l.posBefore:l.posAfter}s=l.dom.parentNode}return o>-1?o:n.docView.posFromDOM(e,t,-1)}function Id(n,e,t){let r=n.childNodes.length;if(r&&t.top<t.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-t.top)/(t.bottom-t.top))-2)),s=o;;){let i=n.childNodes[s];if(i.nodeType==1){let l=i.getClientRects();for(let a=0;a<l.length;a++){let c=l[a];if(tl(e,c))return Id(i,e,c)}}if((s=(s+1)%r)==o)break}return n}function Cv(n,e){let t=n.dom.ownerDocument,r,o=0,s=lv(t,e.left,e.top);s&&({node:r,offset:o}=s);let i=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),l;if(!i||!n.dom.contains(i.nodeType!=1?i.parentNode:i)){let c=n.dom.getBoundingClientRect();if(!tl(e,c)||(i=Id(n.dom,e,c),!i))return null}if(ut)for(let c=i;r&&c;c=Oo(c))c.draggable&&(r=void 0);if(i=vv(i,e),r){if(Wt&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let d=r.childNodes[o],f;d.nodeName=="IMG"&&(f=d.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let c;Mo&&o&&r.nodeType==1&&(c=r.childNodes[o-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&o--,r==n.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=n.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=Ev(n,r,o,e))}l==null&&(l=bv(n,i,e));let a=n.docView.nearestDesc(i,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function Dd(n){return n.top<n.bottom||n.left<n.right}function On(n,e){let t=n.getClientRects();if(t.length){let r=t[e<0?0:t.length-1];if(Dd(r))return r}return Array.prototype.find.call(t,Dd)||n.getBoundingClientRect()}const Sv=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Ld(n,e,t){let{node:r,offset:o,atom:s}=n.docView.domFromPos(e,t<0?-1:1),i=Mo||Wt;if(r.nodeType==3)if(i&&(Sv.test(r.nodeValue)||(t<0?!o:o==r.nodeValue.length))){let a=On(dn(r,o,o),t);if(Wt&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let c=On(dn(r,o-1,o-1),-1);if(c.top==a.top){let d=On(dn(r,o,o+1),-1);if(d.top!=a.top)return No(d,d.left<c.left)}}return a}else{let a=o,c=o,d=t<0?1:-1;return t<0&&!o?(c++,d=-1):t>=0&&o==r.nodeValue.length?(a--,d=1):t<0?a--:c++,No(On(dn(r,a,c),d),d<0)}if(!n.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&o&&(t<0||o==Qt(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return nl(a.getBoundingClientRect(),!1)}if(s==null&&o<Qt(r)){let a=r.childNodes[o];if(a.nodeType==1)return nl(a.getBoundingClientRect(),!0)}return nl(r.getBoundingClientRect(),t>=0)}if(s==null&&o&&(t<0||o==Qt(r))){let a=r.childNodes[o-1],c=a.nodeType==3?dn(a,Qt(a)-(i?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(c)return No(On(c,1),!1)}if(s==null&&o<Qt(r)){let a=r.childNodes[o];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let c=a?a.nodeType==3?dn(a,0,i?0:1):a.nodeType==1?a:null:null;if(c)return No(On(c,-1),!0)}return No(On(r.nodeType==3?dn(r):r,-t),t>=0)}function No(n,e){if(n.width==0)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function nl(n,e){if(n.height==0)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function Rd(n,e,t){let r=n.state,o=n.root.activeElement;r!=e&&n.updateState(e),o!=n.dom&&n.focus();try{return t()}finally{r!=e&&n.updateState(r),o!=n.dom&&o&&o.focus()}}function wv(n,e,t){let r=e.selection,o=t=="up"?r.$from:r.$to;return Rd(n,e,()=>{let{node:s}=n.docView.domFromPos(o.pos,t=="up"?-1:1);for(;;){let l=n.docView.nearestDesc(s,!0);if(!l)break;if(l.node.isBlock){s=l.contentDOM||l.dom;break}s=l.dom.parentNode}let i=Ld(n,o.pos,1);for(let l=s.firstChild;l;l=l.nextSibling){let a;if(l.nodeType==1)a=l.getClientRects();else if(l.nodeType==3)a=dn(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;c<a.length;c++){let d=a[c];if(d.bottom>d.top+1&&(t=="up"?i.top-d.top>(d.bottom-i.top)*2:d.bottom-i.bottom>(i.bottom-d.top)*2))return!1}}return!0})}const kv=/[\u0590-\u08ac]/;function Tv(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,s=!o,i=o==r.parent.content.size,l=n.domSelection();return!kv.test(r.parent.textContent)||!l.modify?t=="left"||t=="backward"?s:i:Rd(n,e,()=>{let{focusNode:a,focusOffset:c,anchorNode:d,anchorOffset:f}=n.domSelectionRange(),h=l.caretBidiLevel;l.modify("move",t,"character");let p=r.depth?n.docView.domAfterPos(r.before()):n.dom,{focusNode:m,focusOffset:g}=n.domSelectionRange(),y=m&&!p.contains(m.nodeType==1?m:m.parentNode)||a==m&&c==g;try{l.collapse(d,f),a&&(a!=d||c!=f)&&l.extend&&l.extend(a,c)}catch{}return h!=null&&(l.caretBidiLevel=h),y})}let Bd=null,$d=null,Pd=!1;function xv(n,e,t){return Bd==e&&$d==t?Pd:(Bd=e,$d=t,Pd=t=="up"||t=="down"?wv(n,e,t):Tv(n,e,t))}const _t=0,Fd=1,cr=2,en=3;class _o{constructor(e,t,r,o){this.parent=e,this.children=t,this.dom=r,this.contentDOM=o,this.dirty=_t,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,r=this.posAtStart;;t++){let o=this.children[t];if(o==e)return r;r+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let s,i;if(e==this.contentDOM)s=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.previousSibling}for(;s&&!((i=s.pmViewDesc)&&i.parent==this);)s=s.previousSibling;return s?this.posBeforeChild(i)+i.size:this.posAtStart}else{let s,i;if(e==this.contentDOM)s=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.nextSibling}for(;s&&!((i=s.pmViewDesc)&&i.parent==this);)s=s.nextSibling;return s?this.posBeforeChild(i):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=t>ct(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let s=e;;s=s.parentNode){if(s==this.dom){o=!1;break}if(s.previousSibling)break}if(o==null&&t==e.childNodes.length)for(let s=e;;s=s.parentNode){if(s==this.dom){o=!0;break}if(s.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,o=e;o;o=o.parentNode){let s=this.getDesc(o),i;if(s&&(!t||s.node))if(r&&(i=s.nodeDOM)&&!(i.nodeType==1?i.contains(e.nodeType==1?e:e.parentNode):i==e))r=!1;else return s}}getDesc(e){let t=e.pmViewDesc;for(let r=t;r;r=r.parent)if(r==this)return t}posFromDOM(e,t,r){for(let o=e;o;o=o.parentNode){let s=this.getDesc(o);if(s)return s.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let o=this.children[t],s=r+o.size;if(r==e&&s!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<s)return o.descAt(e-r-o.border);r=s}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let s=0;r<this.children.length;r++){let i=this.children[r],l=s+i.size;if(l>e||i instanceof Hd){o=e-s;break}s=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(let s;r&&!(s=this.children[r-1]).size&&s instanceof Vd&&s.side>=0;r--);if(t<=0){let s,i=!0;for(;s=r?this.children[r-1]:null,!(!s||s.dom.parentNode==this.contentDOM);r--,i=!1);return s&&t&&i&&!s.border&&!s.domAtom?s.domFromPos(s.size,t):{node:this.contentDOM,offset:s?ct(s.dom)+1:0}}else{let s,i=!0;for(;s=r<this.children.length?this.children[r]:null,!(!s||s.dom.parentNode==this.contentDOM);r++,i=!1);return s&&i&&!s.border&&!s.domAtom?s.domFromPos(0,t):{node:this.contentDOM,offset:s?ct(s.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,s=-1;for(let i=r,l=0;;l++){let a=this.children[l],c=i+a.size;if(o==-1&&e<=c){let d=i+a.border;if(e>=d&&t<=c-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,d);e=i;for(let f=l;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=ct(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(c>t||l==this.children.length-1)){t=c;for(let d=l+1;d<this.children.length;d++){let f=this.children[d];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){s=ct(f.dom);break}t+=f.size}s==-1&&(s=this.contentDOM.childNodes.length);break}i=c}return{node:this.contentDOM,from:e,to:t,fromOffset:o,toOffset:s}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(t.nodeType!=1||r==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r,o=!1){let s=Math.min(e,t),i=Math.max(e,t);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],g=p+m.size;if(s>p&&i<g)return m.setSelection(e-p-m.border,t-p-m.border,r,o);p=g}let l=this.domFromPos(e,e?-1:1),a=t==e?l:this.domFromPos(t,t?-1:1),c=r.getSelection(),d=!1;if((Wt||ut)&&e==t){let{node:h,offset:p}=l;if(h.nodeType==3){if(d=!!(p&&h.nodeValue[p-1]==`
15
15
  `),d&&p==h.nodeValue.length)for(let m=h,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(l=a={node:g.parentNode,offset:ct(g)+1});break}let y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let m=h.childNodes[p-1];d=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Wt&&c.focusNode&&c.focusNode!=a.node&&c.focusNode.nodeType==1){let h=c.focusNode.childNodes[c.focusOffset];h&&h.contentEditable=="false"&&(o=!0)}if(!(o||d&&ut)&&ar(l.node,l.offset,c.anchorNode,c.anchorOffset)&&ar(a.node,a.offset,c.focusNode,c.focusOffset))return;let f=!1;if((c.extend||e==t)&&!d){c.collapse(l.node,l.offset);try{e!=t&&c.extend(a.node,a.offset),f=!0}catch{}}if(!f){if(e>t){let p=l;l=a,a=p}let h=document.createRange();h.setEnd(a.node,a.offset),h.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let r=0,o=0;o<this.children.length;o++){let s=this.children[o],i=r+s.size;if(r==i?e<=i&&t>=r:e<i&&t>r){let l=r+s.border,a=i-s.border;if(e>=l&&t<=a){this.dirty=e==r||t==i?cr:Fd,e==l&&t==a&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=en:s.markDirty(e-l,t-l);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?cr:en}r=i}this.dirty=cr}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=e==1?cr:Fd;t.dirty<r&&(t.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class Vd extends _o{constructor(e,t,r,o){let s,i=t.type.toDOM;if(typeof i=="function"&&(i=i(r,()=>{if(!s)return o;if(s.parent)return s.parent.posBeforeChild(s)})),!t.type.spec.raw){if(i.nodeType!=1){let l=document.createElement("span");l.appendChild(i),i=l}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,s=this}matchesWidget(e){return this.dirty==_t&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class Av extends _o{constructor(e,t,r,o){super(e,[],t,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class ur extends _o{constructor(e,t,r,o){super(e,[],r,o),this.mark=t}static create(e,t,r,o){let s=o.nodeViews[t.type.name],i=s&&s(t,o,r);return(!i||!i.dom)&&(i=Zt.renderSpec(document,t.type.spec.toDOM(t,r))),new ur(e,t,i.dom,i.contentDOM||i.dom)}parseRule(){return this.dirty&en||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=en&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=_t){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=_t}}slice(e,t,r){let o=ur.create(this.parent,this.mark,!0,r),s=this.children,i=this.size;t<i&&(s=sl(s,t,i,r)),e>0&&(s=sl(s,0,e,r));for(let l=0;l<s.length;l++)s[l].parent=o;return o.children=s,o}}class Mn extends _o{constructor(e,t,r,o,s,i,l,a,c){super(e,[],s,i),this.node=t,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,t,r,o,s,i){let l=s.nodeViews[t.type.name],a,c=l&&l(t,s,()=>{if(!a)return i;if(a.parent)return a.parent.posBeforeChild(a)},r,o),d=c&&c.dom,f=c&&c.contentDOM;if(t.isText){if(!d)d=document.createTextNode(t.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:f}=Zt.renderSpec(document,t.type.spec.toDOM(t)));!f&&!t.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),t.type.spec.draggable&&(d.draggable=!0));let h=d;return d=Wd(d,r,t),c?a=new Ov(e,t,r,o,d,f||null,h,c,s,i+1):t.isText?new Bs(e,t,r,o,d,h,s):new Mn(e,t,r,o,d,f||null,h,s,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>ae.empty)}return e}matchesNode(e,t,r){return this.dirty==_t&&e.eq(this.node)&&ol(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let r=this.node.inlineContent,o=t,s=e.composing?this.localCompositionInfo(e,t):null,i=s&&s.pos>-1?s:null,l=s&&s.pos<0,a=new Nv(this,i&&i.node,e);Dv(this.node,this.innerDeco,(c,d,f)=>{c.spec.marks?a.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!f&&a.syncToMarks(d==this.node.childCount?Pe.none:this.node.child(d).marks,r,e),a.placeWidget(c,e,o)},(c,d,f,h)=>{a.syncToMarks(c.marks,r,e);let p;a.findNodeMatch(c,d,f,h)||l&&e.state.selection.from>o&&e.state.selection.to<o+c.nodeSize&&(p=a.findIndexWithChild(s.node))>-1&&a.updateNodeAt(c,d,f,p,e)||a.updateNextNode(c,d,f,e,h,o)||a.addNode(c,d,f,e,o),o+=c.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==cr)&&(i&&this.protectLocalComposition(e,i),Ud(this.contentDOM,this.children,e),Pr&&Lv(this.dom))}localCompositionInfo(e,t){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Be)||r<t||o>t+this.node.content.size)return null;let s=e.domSelectionRange(),i=Rv(s.focusNode,s.focusOffset);if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let l=i.nodeValue,a=Bv(this.node.content,l,r-t,o-t);return a<0?null:{node:i,pos:a,text:l}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:r,text:o}){if(this.getDesc(t))return;let s=t;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let i=new Av(this,s,t,o);e.input.compositionNodes.push(i),this.children=sl(this.children,r,r+o.length,e,i)}update(e,t,r,o){return this.dirty==en||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,r,o),!0)}updateInner(e,t,r,o){this.updateOuterDeco(t),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=_t}updateOuterDeco(e){if(ol(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=jd(this.dom,this.nodeDOM,rl(this.outerDeco,this.node,t),rl(e,this.node,t)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function zd(n,e,t,r,o){Wd(r,e,n);let s=new Mn(void 0,n,e,t,r,r,r,o,0);return s.contentDOM&&s.updateChildren(o,0),s}class Bs extends Mn{constructor(e,t,r,o,s,i,l){super(e,t,r,o,s,null,i,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,r,o){return this.dirty==en||this.dirty!=_t&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=_t||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=_t,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,r){let o=this.node.cut(e,t),s=document.createTextNode(o.text);return new Bs(this.parent,o,this.outerDeco,this.innerDeco,s,s,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=en)}get domAtom(){return!1}}class Hd extends _o{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==_t&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Ov extends Mn{constructor(e,t,r,o,s,i,l,a,c,d){super(e,t,r,o,s,i,l,c,d),this.spec=a}update(e,t,r,o){if(this.dirty==en)return!1;if(this.spec.update){let s=this.spec.update(e,t,r);return s&&this.updateInner(e,t,r,o),s}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,r,o){this.spec.setSelection?this.spec.setSelection(e,t,r):super.setSelection(e,t,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Ud(n,e,t){let r=n.firstChild,o=!1;for(let s=0;s<e.length;s++){let i=e[s],l=i.dom;if(l.parentNode==n){for(;l!=r;)r=Kd(r),o=!0;r=r.nextSibling}else o=!0,n.insertBefore(l,r);if(i instanceof ur){let a=r?r.previousSibling:n.lastChild;Ud(i.contentDOM,i.children,t),r=a?a.nextSibling:n.firstChild}}for(;r;)r=Kd(r),o=!0;o&&t.trackWrites==n&&(t.trackWrites=null)}const Io=function(n){n&&(this.nodeName=n)};Io.prototype=Object.create(null);const dr=[new Io];function rl(n,e,t){if(n.length==0)return dr;let r=t?dr[0]:new Io,o=[r];for(let s=0;s<n.length;s++){let i=n[s].type.attrs;if(i){i.nodeName&&o.push(r=new Io(i.nodeName));for(let l in i){let a=i[l];a!=null&&(t&&o.length==1&&o.push(r=new Io(e.isInline?"span":"div")),l=="class"?r.class=(r.class?r.class+" ":"")+a:l=="style"?r.style=(r.style?r.style+";":"")+a:l!="nodeName"&&(r[l]=a))}}}return o}function jd(n,e,t,r){if(t==dr&&r==dr)return e;let o=e;for(let s=0;s<r.length;s++){let i=r[s],l=t[s];if(s){let a;l&&l.nodeName==i.nodeName&&o!=n&&(a=o.parentNode)&&a.nodeName.toLowerCase()==i.nodeName||(a=document.createElement(i.nodeName),a.pmIsDeco=!0,a.appendChild(o),l=dr[0]),o=a}Mv(o,l||dr[0],i)}return o}function Mv(n,e,t){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in t)&&n.removeAttribute(r);for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&t[r]!=e[r]&&n.setAttribute(r,t[r]);if(e.class!=t.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=t.class?t.class.split(" ").filter(Boolean):[];for(let s=0;s<r.length;s++)o.indexOf(r[s])==-1&&n.classList.remove(r[s]);for(let s=0;s<o.length;s++)r.indexOf(o[s])==-1&&n.classList.add(o[s]);n.classList.length==0&&n.removeAttribute("class")}if(e.style!=t.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)n.style.removeProperty(o[1])}t.style&&(n.style.cssText+=t.style)}}function Wd(n,e,t){return jd(n,n,dr,rl(e,t,n.nodeType!=1))}function ol(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].type.eq(e[t].type))return!1;return!0}function Kd(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Nv{constructor(e,t,r){this.lock=t,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=_v(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let r=e;r<t;r++)this.top.children[r].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,r){let o=0,s=this.stack.length>>1,i=Math.min(s,e.length);for(;o<i&&(o==s-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<s;)this.destroyRest(),this.top.dirty=_t,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let a=this.index;a<Math.min(this.index+3,this.top.children.length);a++){let c=this.top.children[a];if(c.matchesMark(e[s])&&!this.isLocked(c.dom)){l=a;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let a=ur.create(this.top,e[s],t,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,s++}}findNodeMatch(e,t,r,o){let s=-1,i;if(o>=this.preMatch.index&&(i=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,r))s=this.top.children.indexOf(i,this.index);else for(let l=this.index,a=Math.min(this.top.children.length,l+5);l<a;l++){let c=this.top.children[l];if(c.matchesNode(e,t,r)&&!this.preMatch.matched.has(c)){s=l;break}}return s<0?!1:(this.destroyBetween(this.index,s),this.index++,!0)}updateNodeAt(e,t,r,o,s){let i=this.top.children[o];return i.dirty==en&&i.dom==i.contentDOM&&(i.dirty=cr),i.update(e,t,r,s)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=t}}updateNextNode(e,t,r,o,s,i){for(let l=this.index;l<this.top.children.length;l++){let a=this.top.children[l];if(a instanceof Mn){let c=this.preMatch.matched.get(a);if(c!=null&&c!=s)return!1;let d=a.dom,f,h=this.isLocked(d)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=en&&ol(t,a.outerDeco));if(!h&&a.update(e,t,r,o))return this.destroyBetween(this.index,l),a.dom!=d&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(a,e,t,r,o,i)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=cr,f.updateChildren(o,i+1),f.dirty=_t),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,r,o,s,i){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content))return null;let l=Mn.create(this.top,t,r,o,s,i);if(l.contentDOM){l.children=e.children,e.children=[];for(let a of l.children)a.parent=l}return e.destroy(),l}addNode(e,t,r,o,s){let i=Mn.create(this.top,e,t,r,o,s);i.contentDOM&&i.updateChildren(o,s+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,t,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let s=new Vd(this.top,e,t,r);this.top.children.splice(this.index++,0,s),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof ur;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Bs)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((ut||st)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new Hd(this.top,[],r,null);t!=this.top?t.children.push(o):t.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function _v(n,e){let t=e,r=t.children.length,o=n.childCount,s=new Map,i=[];e:for(;o>0;){let l;for(;;)if(r){let c=t.children[r-1];if(c instanceof ur)t=c,r=c.children.length;else{l=c,r--;break}}else{if(t==e)break e;r=t.parent.children.indexOf(t),t=t.parent}let a=l.node;if(a){if(a!=n.child(o-1))break;--o,s.set(l,o),i.push(l)}}return{index:o,matched:s,matches:i.reverse()}}function Iv(n,e){return n.type.side-e.type.side}function Dv(n,e,t,r){let o=e.locals(n),s=0;if(o.length==0){for(let c=0;c<n.childCount;c++){let d=n.child(c);r(d,o,e.forChild(s,d),c),s+=d.nodeSize}return}let i=0,l=[],a=null;for(let c=0;;){let d,f;for(;i<o.length&&o[i].to==s;){let y=o[i++];y.widget&&(d?(f||(f=[d])).push(y):d=y)}if(d)if(f){f.sort(Iv);for(let y=0;y<f.length;y++)t(f[y],c,!!a)}else t(d,c,!!a);let h,p;if(a)p=-1,h=a,a=null;else if(c<n.childCount)p=c,h=n.child(c++);else break;for(let y=0;y<l.length;y++)l[y].to<=s&&l.splice(y--,1);for(;i<o.length&&o[i].from<=s&&o[i].to>s;)l.push(o[i++]);let m=s+h.nodeSize;if(h.isText){let y=m;i<o.length&&o[i].from<y&&(y=o[i].from);for(let C=0;C<l.length;C++)l[C].to<y&&(y=l[C].to);y<m&&(a=h.cut(y-s),h=h.cut(0,y-s),m=y,p=-1)}let g=h.isInline&&!h.isLeaf?l.filter(y=>!y.inline):l.slice();r(h,g,e.forChild(s,h),p),s=m}}function Lv(n){if(n.nodeName=="UL"||n.nodeName=="OL"){let e=n.style.cssText;n.style.cssText=e+"; list-style: square !important",window.getComputedStyle(n).listStyle,n.style.cssText=e}}function Rv(n,e){for(;;){if(n.nodeType==3)return n;if(n.nodeType==1&&e>0){if(n.childNodes.length>e&&n.childNodes[e].nodeType==3)return n.childNodes[e];n=n.childNodes[e-1],e=Qt(n)}else if(n.nodeType==1&&e<n.childNodes.length)n=n.childNodes[e],e=0;else return null}}function Bv(n,e,t,r){for(let o=0,s=0;o<n.childCount&&s<=r;){let i=n.child(o++),l=s;if(s+=i.nodeSize,!i.isText)continue;let a=i.text;for(;o<n.childCount;){let c=n.child(o++);if(s+=c.nodeSize,!c.isText)break;a+=c.text}if(s>=t){if(s>=r&&a.slice(r-e.length-l,r-l)==e)return r-e.length;let c=l<r?a.lastIndexOf(e,r-l-1):-1;if(c>=0&&c+e.length+l>=t)return l+c;if(t==r&&a.length>=r+e.length-l&&a.slice(r-l,r-l+e.length)==e)return r}}return-1}function sl(n,e,t,r,o){let s=[];for(let i=0,l=0;i<n.length;i++){let a=n[i],c=l,d=l+=a.size;c>=t||d<=e?s.push(a):(c<e&&s.push(a.slice(0,e-c,r)),o&&(s.push(o),o=void 0),d>t&&s.push(a.slice(t-c,a.size,r)))}return s}function il(n,e=null){let t=n.domSelectionRange(),r=n.state.doc;if(!t.focusNode)return null;let o=n.docView.nearestDesc(t.focusNode),s=o&&o.size==0,i=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(i<0)return null;let l=r.resolve(i),a,c;if(Rs(t)){for(a=l;o&&!o.node;)o=o.parent;let d=o.node;if(o&&d.isAtom&&Ae.isSelectable(d)&&o.parent&&!(d.isInline&&iv(t.focusNode,t.focusOffset,o.dom))){let f=o.posBefore;c=new Ae(i==f?l:r.resolve(f))}}else{let d=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(d<0)return null;a=r.resolve(d)}if(!c){let d=e=="pointer"||n.state.selection.head<l.pos&&!s?1:-1;c=ll(n,a,l,d)}return c}function Yd(n){return n.editable?n.hasFocus():ef(n)&&document.activeElement&&document.activeElement.contains(n.dom)}function hn(n,e=!1){let t=n.state.selection;if(Xd(n,t),!!Yd(n)){if(!e&&n.input.mouseDown&&n.input.mouseDown.allowDefault&&st){let r=n.domSelectionRange(),o=n.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&ar(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){n.input.mouseDown.delayedSelectionSync=!0,n.domObserver.setCurSelection();return}}if(n.domObserver.disconnectSelection(),n.cursorWrapper)Pv(n);else{let{anchor:r,head:o}=t,s,i;Gd&&!(t instanceof Be)&&(t.$from.parent.inlineContent||(s=Jd(n,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(i=Jd(n,t.to))),n.docView.setSelection(r,o,n.root,e),Gd&&(s&&Zd(s),i&&Zd(i)),t.visible?n.dom.classList.remove("ProseMirror-hideselection"):(n.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&$v(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const Gd=ut||st&&cv<63;function Jd(n,e){let{node:t,offset:r}=n.docView.domFromPos(e,0),o=r<t.childNodes.length?t.childNodes[r]:null,s=r?t.childNodes[r-1]:null;if(ut&&o&&o.contentEditable=="false")return al(o);if((!o||o.contentEditable=="false")&&(!s||s.contentEditable=="false")){if(o)return al(o);if(s)return al(s)}}function al(n){return n.contentEditable="true",ut&&n.draggable&&(n.draggable=!1,n.wasDraggable=!0),n}function Zd(n){n.contentEditable="false",n.wasDraggable&&(n.draggable=!0,n.wasDraggable=null)}function $v(n){let e=n.dom.ownerDocument;e.removeEventListener("selectionchange",n.input.hideSelectionGuard);let t=n.domSelectionRange(),r=t.anchorNode,o=t.anchorOffset;e.addEventListener("selectionchange",n.input.hideSelectionGuard=()=>{(t.anchorNode!=r||t.anchorOffset!=o)&&(e.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!Yd(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function Pv(n){let e=n.domSelection(),t=document.createRange(),r=n.cursorWrapper.dom,o=r.nodeName=="IMG";o?t.setEnd(r.parentNode,ct(r)+1):t.setEnd(r,0),t.collapse(!1),e.removeAllRanges(),e.addRange(t),!o&&!n.state.selection.visible&&bt&&An<=11&&(r.disabled=!0,r.disabled=!1)}function Xd(n,e){if(e instanceof Ae){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(Qd(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else Qd(n)}function Qd(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function ll(n,e,t,r){return n.someProp("createSelectionBetween",o=>o(n,e,t))||Be.between(e,t,r)}function qd(n){return n.editable&&!n.hasFocus()?!1:ef(n)}function ef(n){let e=n.domSelectionRange();if(!e.anchorNode)return!1;try{return n.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(n.editable||n.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function Fv(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return ar(e.node,e.offset,t.anchorNode,t.anchorOffset)}function cl(n,e){let{$anchor:t,$head:r}=n.selection,o=e>0?t.max(r):t.min(r),s=o.parent.inlineContent?o.depth?n.doc.resolve(e>0?o.after():o.before()):null:o;return s&&Re.findFrom(s,e)}function Nn(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function tf(n,e,t){let r=n.state.selection;if(r instanceof Be)if(t.indexOf("s")>-1){let{$head:o}=r,s=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let i=n.state.doc.resolve(o.pos+s.nodeSize*(e<0?-1:1));return Nn(n,new Be(r.$anchor,i))}else if(r.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let o=cl(n.state,e);return o&&o instanceof Ae?Nn(n,o):!1}else if(!(Nt&&t.indexOf("m")>-1)){let o=r.$head,s=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,i;if(!s||s.isText)return!1;let l=e<0?o.pos-s.nodeSize:o.pos;return s.isAtom||(i=n.docView.descAt(l))&&!i.contentDOM?Ae.isSelectable(s)?Nn(n,new Ae(e<0?n.state.doc.resolve(o.pos-s.nodeSize):o)):Mo?Nn(n,new Be(n.state.doc.resolve(e<0?l:l+s.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Ae&&r.node.isInline)return Nn(n,new Be(e>0?r.$to:r.$from));{let o=cl(n.state,e);return o?Nn(n,o):!1}}}function $s(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Do(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function Vr(n,e){return e<0?Vv(n):zv(n)}function Vv(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o,s,i=!1;for(Wt&&t.nodeType==1&&r<$s(t)&&Do(t.childNodes[r],-1)&&(i=!0);;)if(r>0){if(t.nodeType!=1)break;{let l=t.childNodes[r-1];if(Do(l,-1))o=t,s=--r;else if(l.nodeType==3)t=l,r=t.nodeValue.length;else break}}else{if(nf(t))break;{let l=t.previousSibling;for(;l&&Do(l,-1);)o=t.parentNode,s=ct(l),l=l.previousSibling;if(l)t=l,r=$s(t);else{if(t=t.parentNode,t==n.dom)break;r=0}}}i?ul(n,t,r):o&&ul(n,o,s)}function zv(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o=$s(t),s,i;for(;;)if(r<o){if(t.nodeType!=1)break;let l=t.childNodes[r];if(Do(l,1))s=t,i=++r;else break}else{if(nf(t))break;{let l=t.nextSibling;for(;l&&Do(l,1);)s=l.parentNode,i=ct(l)+1,l=l.nextSibling;if(l)t=l,r=0,o=$s(t);else{if(t=t.parentNode,t==n.dom)break;r=o=0}}}s&&ul(n,s,i)}function nf(n){let e=n.pmViewDesc;return e&&e.node&&e.node.isBlock}function Hv(n,e){for(;n&&e==n.childNodes.length&&!Xa(n);)e=ct(n)+1,n=n.parentNode;for(;n&&e<n.childNodes.length;){let t=n.childNodes[e];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=0}}function Uv(n,e){for(;n&&!e&&!Xa(n);)e=ct(n),n=n.parentNode;for(;n&&e;){let t=n.childNodes[e-1];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=n.childNodes.length}}function ul(n,e,t){if(e.nodeType!=3){let s,i;(i=Hv(e,t))?(e=i,t=0):(s=Uv(e,t))&&(e=s,t=s.nodeValue.length)}let r=n.domSelection();if(Rs(r)){let s=document.createRange();s.setEnd(e,t),s.setStart(e,t),r.removeAllRanges(),r.addRange(s)}else r.extend&&r.extend(e,t);n.domObserver.setCurSelection();let{state:o}=n;setTimeout(()=>{n.state==o&&hn(n)},50)}function rf(n,e){let t=n.state.doc.resolve(e);if(!(st||uv)&&t.parent.inlineContent){let o=n.coordsAtPos(e);if(e>t.start()){let s=n.coordsAtPos(e-1),i=(s.top+s.bottom)/2;if(i>o.top&&i<o.bottom&&Math.abs(s.left-o.left)>1)return s.left<o.left?"ltr":"rtl"}if(e<t.end()){let s=n.coordsAtPos(e+1),i=(s.top+s.bottom)/2;if(i>o.top&&i<o.bottom&&Math.abs(s.left-o.left)>1)return s.left>o.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function of(n,e,t){let r=n.state.selection;if(r instanceof Be&&!r.empty||t.indexOf("s")>-1||Nt&&t.indexOf("m")>-1)return!1;let{$from:o,$to:s}=r;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let i=cl(n.state,e);if(i&&i instanceof Ae)return Nn(n,i)}if(!o.parent.inlineContent){let i=e<0?o:s,l=r instanceof Ut?Re.near(i,e):Re.findFrom(i,e);return l?Nn(n,l):!1}return!1}function sf(n,e){if(!(n.state.selection instanceof Be))return!0;let{$head:t,$anchor:r,empty:o}=n.state.selection;if(!t.sameParent(r))return!0;if(!o)return!1;if(n.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(s&&!s.isText){let i=n.state.tr;return e<0?i.delete(t.pos-s.nodeSize,t.pos):i.delete(t.pos,t.pos+s.nodeSize),n.dispatch(i),!0}return!1}function af(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function jv(n){if(!ut||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=n.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;af(n,r,"true"),setTimeout(()=>af(n,r,"false"),20)}return!1}function Wv(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}function Kv(n,e){let t=e.keyCode,r=Wv(e);if(t==8||Nt&&t==72&&r=="c")return sf(n,-1)||Vr(n,-1);if(t==46&&!e.shiftKey||Nt&&t==68&&r=="c")return sf(n,1)||Vr(n,1);if(t==13||t==27)return!0;if(t==37||Nt&&t==66&&r=="c"){let o=t==37?rf(n,n.state.selection.from)=="ltr"?-1:1:-1;return tf(n,o,r)||Vr(n,o)}else if(t==39||Nt&&t==70&&r=="c"){let o=t==39?rf(n,n.state.selection.from)=="ltr"?1:-1:1;return tf(n,o,r)||Vr(n,o)}else{if(t==38||Nt&&t==80&&r=="c")return of(n,-1,r)||Vr(n,-1);if(t==40||Nt&&t==78&&r=="c")return jv(n)||of(n,1,r)||Vr(n,1);if(r==(Nt?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function lf(n,e){n.someProp("transformCopied",p=>{e=p(e,n)});let t=[],{content:r,openStart:o,openEnd:s}=e;for(;o>1&&s>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,s--;let p=r.firstChild;t.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let i=n.someProp("clipboardSerializer")||Zt.fromSchema(n.state.schema),l=gf(),a=l.createElement("div");a.appendChild(i.serializeFragment(r,{document:l}));let c=a.firstChild,d,f=0;for(;c&&c.nodeType==1&&(d=pf[c.nodeName.toLowerCase()]);){for(let p=d.length-1;p>=0;p--){let m=l.createElement(d[p]);for(;a.firstChild;)m.appendChild(a.firstChild);a.appendChild(m),f++}c=a.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${o} ${s}${f?` -${f}`:""} ${JSON.stringify(t)}`);let h=n.someProp("clipboardTextSerializer",p=>p(e,n))||e.content.textBetween(0,e.content.size,`
16
16
 
17
17
  `);return{dom:a,text:h}}function cf(n,e,t,r,o){let s=o.parent.type.spec.code,i,l;if(!t&&!e)return null;let a=e&&(r||s||!t);if(a){if(n.someProp("transformPastedText",h=>{e=h(e,s||r,n)}),s)return e?new ye(ae.from(n.state.schema.text(e.replace(/\r\n?/g,`
18
- `))),0,0):ye.empty;let f=n.someProp("clipboardTextParser",h=>h(e,o,r,n));if(f)l=f;else{let h=o.marks(),{schema:p}=n.state,m=Zt.fromSchema(p);i=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let y=i.appendChild(document.createElement("p"));g&&y.appendChild(m.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",f=>{t=f(t,n)}),i=Jv(t),Mo&&Zv(i);let c=i&&i.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let f=+d[3];f>0;f--){let h=i.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;i=h}if(l||(l=(n.someProp("clipboardParser")||n.someProp("domParser")||Nr.fromSchema(n.state.schema)).parseSlice(i,{preserveWhitespace:!!(a||d),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!Yv.test(h.parentNode.nodeName)?{ignore:!0}:null}})),d)l=Xv(hf(l,+d[1],+d[2]),d[4]);else if(l=ye.maxOpen(Gv(l.content,o),!0),l.openStart||l.openEnd){let f=0,h=0;for(let p=l.content.firstChild;f<l.openStart&&!p.type.spec.isolating;f++,p=p.firstChild);for(let p=l.content.lastChild;h<l.openEnd&&!p.type.spec.isolating;h++,p=p.lastChild);l=hf(l,f,h)}return n.someProp("transformPasted",f=>{l=f(l,n)}),l}const Yv=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Gv(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.index(t)),s,i=[];if(n.forEach(l=>{if(!i)return;let a=o.findWrapping(l.type),c;if(!a)return i=null;if(c=i.length&&s.length&&df(a,s,l,i[i.length-1],0))i[i.length-1]=c;else{i.length&&(i[i.length-1]=ff(i[i.length-1],s.length));let d=uf(l,a);i.push(d),o=o.matchType(d.type),s=a}}),i)return ae.from(i)}return n}function uf(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,ae.from(n));return n}function df(n,e,t,r,o){if(o<n.length&&o<e.length&&n[o]==e[o]){let s=df(n,e,t,r.lastChild,o+1);if(s)return r.copy(r.content.replaceChild(r.childCount-1,s));if(r.contentMatchAt(r.childCount).matchType(o==n.length-1?t.type:n[o+1]))return r.copy(r.content.append(ae.from(uf(t,n,o+1))))}}function ff(n,e){if(e==0)return n;let t=n.content.replaceChild(n.childCount-1,ff(n.lastChild,e-1)),r=n.contentMatchAt(n.childCount).fillBefore(ae.empty,!0);return n.copy(t.append(r))}function dl(n,e,t,r,o,s){let i=e<0?n.firstChild:n.lastChild,l=i.content;return n.childCount>1&&(s=0),o<r-1&&(l=dl(l,e,t,r,o+1,s)),o>=t&&(l=e<0?i.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(i.contentMatchAt(i.childCount).fillBefore(ae.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,i.copy(l))}function hf(n,e,t){return e<n.openStart&&(n=new ye(dl(n.content,-1,e,n.openStart,0,n.openEnd),e,n.openEnd)),t<n.openEnd&&(n=new ye(dl(n.content,1,t,n.openEnd,0,0),n.openStart,t)),n}const pf={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let mf=null;function gf(){return mf||(mf=document.implementation.createHTMLDocument("title"))}function Jv(n){let e=/^(\s*<meta [^>]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=gf().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),o;if((o=r&&pf[r[1].toLowerCase()])&&(n=o.map(s=>"<"+s+">").join("")+n+o.map(s=>"</"+s+">").reverse().join("")),t.innerHTML=n,o)for(let s=0;s<o.length;s++)t=t.querySelector(o[s])||t;return t}function Zv(n){let e=n.querySelectorAll(st?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let r=e[t];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "),r)}}function Xv(n,e){if(!n.size)return n;let t=n.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return n}let{content:o,openStart:s,openEnd:i}=n;for(let l=r.length-2;l>=0;l-=2){let a=t.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=ae.from(a.create(r[l+1],o)),s++,i++}return new ye(o,s,i)}const dt={},ft={},Qv={touchstart:!0,touchmove:!0};class qv{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function e5(n){for(let e in dt){let t=dt[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{n5(n,r)&&!hl(n,r)&&(n.editable||!(r.type in ft))&&t(n,r)},Qv[e]?{passive:!0}:void 0)}ut&&n.dom.addEventListener("input",()=>null),fl(n)}function _n(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function t5(n){n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}function fl(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>hl(n,r))})}function hl(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function n5(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function r5(n,e){!hl(n,e)&&dt[e.type]&&(n.editable||!(e.type in ft))&&dt[e.type](n,e)}ft.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!vf(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(Kt&&st&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),Pr&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let r=Date.now();n.input.lastIOSEnter=r,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==r&&(n.someProp("handleKeyDown",o=>o(n,lr(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||Kv(n,t)?t.preventDefault():_n(n,"key")},ft.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)},ft.keypress=(n,e)=>{let t=e;if(vf(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Nt&&t.metaKey)return;if(n.someProp("handleKeyPress",o=>o(n,t))){t.preventDefault();return}let r=n.state.selection;if(!(r instanceof Be)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(t.charCode);!/[\r\n]/.test(o)&&!n.someProp("handleTextInput",s=>s(n,r.$from.pos,r.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};function Ps(n){return{left:n.clientX,top:n.clientY}}function o5(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function pl(n,e,t,r,o){if(r==-1)return!1;let s=n.state.doc.resolve(r);for(let i=s.depth+1;i>0;i--)if(n.someProp(e,l=>i>s.depth?l(n,t,s.nodeAfter,s.before(i),o,!0):l(n,t,s.node(i),s.before(i),o,!1)))return!0;return!1}function zr(n,e,t){n.focused||n.focus();let r=n.state.tr.setSelection(e);t=="pointer"&&r.setMeta("pointer",!0),n.dispatch(r)}function s5(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&Ae.isSelectable(r)?(zr(n,new Ae(t),"pointer"),!0):!1}function i5(n,e){if(e==-1)return!1;let t=n.state.selection,r,o;t instanceof Ae&&(r=t.node);let s=n.state.doc.resolve(e);for(let i=s.depth+1;i>0;i--){let l=i>s.depth?s.nodeAfter:s.node(i);if(Ae.isSelectable(l)){r&&t.$from.depth>0&&i>=t.$from.depth&&s.before(t.$from.depth+1)==t.$from.pos?o=s.before(t.$from.depth):o=s.before(i);break}}return o!=null?(zr(n,Ae.create(n.state.doc,o),"pointer"),!0):!1}function a5(n,e,t,r,o){return pl(n,"handleClickOn",e,t,r)||n.someProp("handleClick",s=>s(n,e,r))||(o?i5(n,t):s5(n,t))}function l5(n,e,t,r){return pl(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",o=>o(n,e,r))}function c5(n,e,t,r){return pl(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",o=>o(n,e,r))||u5(n,t,r)}function u5(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(zr(n,Be.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let s=o.depth+1;s>0;s--){let i=s>o.depth?o.nodeAfter:o.node(s),l=o.before(s);if(i.inlineContent)zr(n,Be.create(r,l+1,l+1+i.content.size),"pointer");else if(Ae.isSelectable(i))zr(n,Ae.create(r,l),"pointer");else continue;return!0}}function ml(n){return Fs(n)}const yf=Nt?"metaKey":"ctrlKey";dt.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=ml(n),o=Date.now(),s="singleClick";o-n.input.lastClick.time<500&&o5(t,n.input.lastClick)&&!t[yf]&&(n.input.lastClick.type=="singleClick"?s="doubleClick":n.input.lastClick.type=="doubleClick"&&(s="tripleClick")),n.input.lastClick={time:o,x:t.clientX,y:t.clientY,type:s};let i=n.posAtCoords(Ps(t));i&&(s=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new d5(n,i,t,!!r)):(s=="doubleClick"?l5:c5)(n,i.pos,i.inside,t)?t.preventDefault():_n(n,"pointer"))};class d5{constructor(e,t,r,o){this.view=e,this.pos=t,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[yf],this.allowDefault=r.shiftKey;let s,i;if(t.inside>-1)s=e.state.doc.nodeAt(t.inside),i=t.inside;else{let d=e.state.doc.resolve(t.pos);s=d.parent,i=d.depth?d.before():0}const l=o?null:r.target,a=l?e.docView.nearestDesc(l,!0):null;this.target=a?a.dom:null;let{selection:c}=e.state;(r.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||c instanceof Ae&&c.from<=i&&c.to>i)&&(this.mightDrag={node:s,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Wt&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),_n(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>hn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Ps(e))),this.updateAllowDefault(e),this.allowDefault||!t?_n(this.view,"pointer"):a5(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||ut&&this.mightDrag&&!this.mightDrag.node.isAtom||st&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(zr(this.view,Re.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):_n(this.view,"pointer")}move(e){this.updateAllowDefault(e),_n(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}dt.touchstart=n=>{n.input.lastTouch=Date.now(),ml(n),_n(n,"pointer")},dt.touchmove=n=>{n.input.lastTouch=Date.now(),_n(n,"pointer")},dt.contextmenu=n=>ml(n);function vf(n,e){return n.composing?!0:ut&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const f5=Kt?5e3:-1;ft.compositionstart=ft.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:e}=n,t=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))n.markCursor=n.state.storedMarks||t.marks(),Fs(n,!0),n.markCursor=null;else if(Fs(n),Wt&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let r=n.domSelectionRange();for(let o=r.focusNode,s=r.focusOffset;o&&o.nodeType==1&&s!=0;){let i=s<0?o.lastChild:o.childNodes[s-1];if(!i)break;if(i.nodeType==3){n.domSelection().collapse(i,i.nodeValue.length);break}else o=i,s=-1}}n.input.composing=!0}bf(n,f5)},ft.compositionend=(n,e)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=e.timeStamp,n.input.compositionPendingChanges=n.domObserver.pendingRecords().length?n.input.compositionID:0,n.input.compositionPendingChanges&&Promise.resolve().then(()=>n.domObserver.flush()),n.input.compositionID++,bf(n,20))};function bf(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>Fs(n),e))}function Ef(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=h5());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function h5(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function Fs(n,e=!1){if(!(Kt&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),Ef(n),e||n.docView&&n.docView.dirty){let t=il(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}function p5(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),n.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}const Lo=bt&&An<15||Pr&&dv<604;dt.copy=ft.cut=(n,e)=>{let t=e,r=n.state.selection,o=t.type=="cut";if(r.empty)return;let s=Lo?null:t.clipboardData,i=r.content(),{dom:l,text:a}=lf(n,i);s?(t.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",a)):p5(n,l),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function m5(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function g5(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,r=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=n.input.shiftKey&&n.input.lastKeyCode!=45;setTimeout(()=>{n.focus(),r.parentNode&&r.parentNode.removeChild(r),t?Ro(n,r.value,null,o,e):Ro(n,r.textContent,r.innerHTML,o,e)},50)}function Ro(n,e,t,r,o){let s=cf(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,o,s||ye.empty)))return!0;if(!s)return!1;let i=m5(s),l=i?n.state.tr.replaceSelectionWith(i,r):n.state.tr.replaceSelection(s);return n.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Cf(n){let e=n.getData("text/plain")||n.getData("Text");if(e)return e;let t=n.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}ft.paste=(n,e)=>{let t=e;if(n.composing&&!Kt)return;let r=Lo?null:t.clipboardData,o=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&Ro(n,Cf(r),r.getData("text/html"),o,t)?t.preventDefault():g5(n,t)};class Sf{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const wf=Nt?"altKey":"ctrlKey";dt.dragstart=(n,e)=>{let t=e,r=n.input.mouseDown;if(r&&r.done(),!t.dataTransfer)return;let o=n.state.selection,s=o.empty?null:n.posAtCoords(Ps(t)),i;if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof Ae?o.to-1:o.to))){if(r&&r.mightDrag)i=Ae.create(n.state.doc,r.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let d=n.docView.nearestDesc(t.target,!0);d&&d.node.type.spec.draggable&&d!=n.docView&&(i=Ae.create(n.state.doc,d.posBefore))}}let l=(i||n.state.selection).content(),{dom:a,text:c}=lf(n,l);t.dataTransfer.clearData(),t.dataTransfer.setData(Lo?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",Lo||t.dataTransfer.setData("text/plain",c),n.dragging=new Sf(l,!t[wf],i)},dt.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)},ft.dragover=ft.dragenter=(n,e)=>e.preventDefault(),ft.drop=(n,e)=>{let t=e,r=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(Ps(t));if(!o)return;let s=n.state.doc.resolve(o.pos),i=r&&r.slice;i?n.someProp("transformPasted",m=>{i=m(i,n)}):i=cf(n,Cf(t.dataTransfer),Lo?null:t.dataTransfer.getData("text/html"),!1,s);let l=!!(r&&!t[wf]);if(n.someProp("handleDrop",m=>m(n,t,i||ye.empty,l))){t.preventDefault();return}if(!i)return;t.preventDefault();let a=i?Gy(n.state.doc,s.pos,i):s.pos;a==null&&(a=s.pos);let c=n.state.tr;if(l){let{node:m}=r;m?m.replace(c):c.deleteSelection()}let d=c.mapping.map(a),f=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,h=c.doc;if(f?c.replaceRangeWith(d,d,i.content.firstChild):c.replaceRange(d,d,i),c.doc.eq(h))return;let p=c.doc.resolve(d);if(f&&Ae.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))c.setSelection(new Ae(p));else{let m=c.mapping.map(a);c.mapping.maps[c.mapping.maps.length-1].forEach((g,y,C,S)=>m=S),c.setSelection(ll(n,p,c.doc.resolve(m)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},dt.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&hn(n)},20))},dt.blur=(n,e)=>{let t=e;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),t.relatedTarget&&n.dom.contains(t.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},dt.beforeinput=(n,e)=>{if(st&&Kt&&e.inputType=="deleteContentBackward"){n.domObserver.flushSoon();let{domChangeCount:r}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=r||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",s=>s(n,lr(8,"Backspace")))))return;let{$cursor:o}=n.state.selection;o&&o.pos>0&&n.dispatch(n.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let n in ft)dt[n]=ft[n];function Bo(n,e){if(n==e)return!0;for(let t in n)if(n[t]!==e[t])return!1;for(let t in e)if(!(t in n))return!1;return!0}class Vs{constructor(e,t){this.toDOM=e,this.spec=t||fr,this.side=this.spec.side||0}map(e,t,r,o){let{pos:s,deleted:i}=e.mapResult(t.from+o,this.side<0?-1:1);return i?null:new It(s-r,s-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Vs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Bo(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class In{constructor(e,t){this.attrs=e,this.spec=t||fr}map(e,t,r,o){let s=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-r,i=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-r;return s>=i?null:new It(s,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof In&&Bo(this.attrs,e.attrs)&&Bo(this.spec,e.spec)}static is(e){return e.type instanceof In}destroy(){}}class gl{constructor(e,t){this.attrs=e,this.spec=t||fr}map(e,t,r,o){let s=e.mapResult(t.from+o,1);if(s.deleted)return null;let i=e.mapResult(t.to+o,-1);return i.deleted||i.pos<=s.pos?null:new It(s.pos-r,i.pos-r,this)}valid(e,t){let{index:r,offset:o}=e.content.findIndex(t.from),s;return o==t.from&&!(s=e.child(r)).isText&&o+s.nodeSize==t.to}eq(e){return this==e||e instanceof gl&&Bo(this.attrs,e.attrs)&&Bo(this.spec,e.spec)}destroy(){}}class It{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new It(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new It(e,e,new Vs(t,r))}static inline(e,t,r,o){return new It(e,t,new In(r,o))}static node(e,t,r,o){return new It(e,t,new gl(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof In}get widget(){return this.type instanceof Vs}}const Hr=[],fr={};class Ge{constructor(e,t){this.local=e.length?e:Hr,this.children=t.length?t:Hr}static create(e,t){return t.length?zs(t,e,0,fr):it}find(e,t,r){let o=[];return this.findInner(e??0,t??1e9,o,0,r),o}findInner(e,t,r,o,s){for(let i=0;i<this.local.length;i++){let l=this.local[i];l.from<=t&&l.to>=e&&(!s||s(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let l=this.children[i]+1;this.children[i+2].findInner(e-l,t-l,r,o+l,s)}}map(e,t,r){return this==it||e.maps.length==0?this:this.mapInner(e,t,0,0,r||fr)}mapInner(e,t,r,o,s){let i;for(let l=0;l<this.local.length;l++){let a=this.local[l].map(e,r,o);a&&a.type.valid(t,a)?(i||(i=[])).push(a):s.onRemove&&s.onRemove(this.local[l].spec)}return this.children.length?y5(this.children,i||[],e,t,r,o,s):i?new Ge(i.sort(hr),Hr):it}add(e,t){return t.length?this==it?Ge.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let o,s=0;e.forEach((l,a)=>{let c=a+r,d;if(d=Tf(t,l,c)){for(o||(o=this.children.slice());s<o.length&&o[s]<a;)s+=3;o[s]==a?o[s+2]=o[s+2].addInner(l,d,c+1):o.splice(s,0,a,a+l.nodeSize,zs(d,l,c+1,fr)),s+=3}});let i=kf(s?xf(t):t,-r);for(let l=0;l<i.length;l++)i[l].type.valid(e,i[l])||i.splice(l--,1);return new Ge(i.length?this.local.concat(i).sort(hr):this.local,o||this.children)}remove(e){return e.length==0||this==it?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,o=this.local;for(let s=0;s<r.length;s+=3){let i,l=r[s]+t,a=r[s+1]+t;for(let d=0,f;d<e.length;d++)(f=e[d])&&f.from>l&&f.to<a&&(e[d]=null,(i||(i=[])).push(f));if(!i)continue;r==this.children&&(r=this.children.slice());let c=r[s+2].removeInner(i,l+1);c!=it?r[s+2]=c:(r.splice(s,3),s-=3)}if(o.length){for(let s=0,i;s<e.length;s++)if(i=e[s])for(let l=0;l<o.length;l++)o[l].eq(i,t)&&(o==this.local&&(o=this.local.slice()),o.splice(l--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new Ge(o,r):it}forChild(e,t){if(this==it)return this;if(t.isLeaf)return Ge.empty;let r,o;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(r=this.children[l+2]);break}let s=e+1,i=s+t.content.size;for(let l=0;l<this.local.length;l++){let a=this.local[l];if(a.from<i&&a.to>s&&a.type instanceof In){let c=Math.max(s,a.from)-s,d=Math.min(i,a.to)-s;c<d&&(o||(o=[])).push(a.copy(c,d))}}if(o){let l=new Ge(o.sort(hr),Hr);return r?new Dn([l,r]):l}return r||it}eq(e){if(this==e)return!0;if(!(e instanceof Ge)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return yl(this.localsInner(e))}localsInner(e){if(this==it)return Hr;if(e.inlineContent||!this.local.some(In.is))return this.local;let t=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof In||t.push(this.local[r]);return t}}Ge.empty=new Ge([],[]),Ge.removeOverlap=yl;const it=Ge.empty;class Dn{constructor(e){this.members=e}map(e,t){const r=this.members.map(o=>o.map(e,t,fr));return Dn.from(r)}forChild(e,t){if(t.isLeaf)return Ge.empty;let r=[];for(let o=0;o<this.members.length;o++){let s=this.members[o].forChild(e,t);s!=it&&(s instanceof Dn?r=r.concat(s.members):r.push(s))}return Dn.from(r)}eq(e){if(!(e instanceof Dn)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let o=0;o<this.members.length;o++){let s=this.members[o].localsInner(e);if(s.length)if(!t)t=s;else{r&&(t=t.slice(),r=!1);for(let i=0;i<s.length;i++)t.push(s[i])}}return t?yl(r?t:t.sort(hr)):Hr}static from(e){switch(e.length){case 0:return it;case 1:return e[0];default:return new Dn(e.every(t=>t instanceof Ge)?e:e.reduce((t,r)=>t.concat(r instanceof Ge?r:r.members),[]))}}}function y5(n,e,t,r,o,s,i){let l=n.slice();for(let c=0,d=s;c<t.maps.length;c++){let f=0;t.maps[c].forEach((h,p,m,g)=>{let y=g-m-(p-h);for(let C=0;C<l.length;C+=3){let S=l[C+1];if(S<0||h>S+d-f)continue;let k=l[C]+d-f;p>=k?l[C+1]=h<=k?-2:-1:m>=o&&y&&(l[C]+=y,l[C+1]+=y)}f+=y}),d=t.maps[c].map(d,-1)}let a=!1;for(let c=0;c<l.length;c+=3)if(l[c+1]<0){if(l[c+1]==-2){a=!0,l[c+1]=-1;continue}let d=t.map(n[c]+s),f=d-o;if(f<0||f>=r.content.size){a=!0;continue}let h=t.map(n[c+1]+s,-1),p=h-o,{index:m,offset:g}=r.content.findIndex(f),y=r.maybeChild(m);if(y&&g==f&&g+y.nodeSize==p){let C=l[c+2].mapInner(t,y,d+1,n[c]+s+1,i);C!=it?(l[c]=f,l[c+1]=p,l[c+2]=C):(l[c+1]=-2,a=!0)}else a=!0}if(a){let c=v5(l,n,e,t,o,s,i),d=zs(c,r,0,i);e=d.local;for(let f=0;f<l.length;f+=3)l[f+1]<0&&(l.splice(f,3),f-=3);for(let f=0,h=0;f<d.children.length;f+=3){let p=d.children[f];for(;h<l.length&&l[h]<p;)h+=3;l.splice(h,0,d.children[f],d.children[f+1],d.children[f+2])}}return new Ge(e.sort(hr),l)}function kf(n,e){if(!e||!n.length)return n;let t=[];for(let r=0;r<n.length;r++){let o=n[r];t.push(new It(o.from+e,o.to+e,o.type))}return t}function v5(n,e,t,r,o,s,i){function l(a,c){for(let d=0;d<a.local.length;d++){let f=a.local[d].map(r,o,c);f?t.push(f):i.onRemove&&i.onRemove(a.local[d].spec)}for(let d=0;d<a.children.length;d+=3)l(a.children[d+2],a.children[d]+c+1)}for(let a=0;a<n.length;a+=3)n[a+1]==-1&&l(n[a+2],e[a]+s+1);return t}function Tf(n,e,t){if(e.isLeaf)return null;let r=t+e.nodeSize,o=null;for(let s=0,i;s<n.length;s++)(i=n[s])&&i.from>t&&i.to<r&&((o||(o=[])).push(i),n[s]=null);return o}function xf(n){let e=[];for(let t=0;t<n.length;t++)n[t]!=null&&e.push(n[t]);return e}function zs(n,e,t,r){let o=[],s=!1;e.forEach((l,a)=>{let c=Tf(n,l,a+t);if(c){s=!0;let d=zs(c,l,t+a+1,r);d!=it&&o.push(a,a+l.nodeSize,d)}});let i=kf(s?xf(n):n,-t).sort(hr);for(let l=0;l<i.length;l++)i[l].type.valid(e,i[l])||(r.onRemove&&r.onRemove(i[l].spec),i.splice(l--,1));return i.length||o.length?new Ge(i,o):it}function hr(n,e){return n.from-e.from||n.to-e.to}function yl(n){let e=n;for(let t=0;t<e.length-1;t++){let r=e[t];if(r.from!=r.to)for(let o=t+1;o<e.length;o++){let s=e[o];if(s.from==r.from){s.to!=r.to&&(e==n&&(e=n.slice()),e[o]=s.copy(s.from,r.to),Af(e,o+1,s.copy(r.to,s.to)));continue}else{s.from<r.to&&(e==n&&(e=n.slice()),e[t]=r.copy(r.from,s.from),Af(e,o,r.copy(s.from,r.to)));break}}}return e}function Af(n,e,t){for(;e<n.length&&hr(t,n[e])>0;)e++;n.splice(e,0,t)}function vl(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=it&&e.push(r)}),n.cursorWrapper&&e.push(Ge.create(n.state.doc,[n.cursorWrapper.deco])),Dn.from(e)}const b5={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},E5=bt&&An<=11;class C5{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class S5{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new C5,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);bt&&An<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),E5&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,b5)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(qd(this.view)){if(this.suppressingSelectionUpdates)return hn(this.view);if(bt&&An<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&ar(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,r;for(let s=e.focusNode;s;s=Oo(s))t.add(s);for(let s=e.anchorNode;s;s=Oo(s))if(t.has(s)){r=s;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&qd(e)&&!this.ignoreSelectionChange(r),s=-1,i=-1,l=!1,a=[];if(e.editable)for(let d=0;d<t.length;d++){let f=this.registerMutation(t[d],a);f&&(s=s<0?f.from:Math.min(f.from,s),i=i<0?f.to:Math.max(f.to,i),f.typeOver&&(l=!0))}if(Wt&&a.length>1){let d=a.filter(f=>f.nodeName=="BR");if(d.length==2){let f=d[0],h=d[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let c=null;s<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Rs(r)&&(c=il(e))&&c.eq(Re.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,hn(e),this.currentSelection.set(r),e.scrollToSelection()):(s>-1||o)&&(s>-1&&(e.docView.markDirty(s,i),w5(e)),this.handleDOMChange(s,i,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||hn(e),this.currentSelection.set(r))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;d<e.addedNodes.length;d++)t.push(e.addedNodes[d]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,s=e.nextSibling;if(bt&&An<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:f,nextSibling:h}=e.addedNodes[d];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(s=h)}let i=o&&o.parentNode==e.target?ct(o)+1:0,l=r.localPosFromDOM(e.target,i,-1),a=s&&s.parentNode==e.target?ct(s):e.target.childNodes.length,c=r.localPosFromDOM(e.target,a,1);return{from:l,to:c}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let Of=new WeakMap,Mf=!1;function w5(n){if(!Of.has(n)&&(Of.set(n,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace)!==-1)){if(n.requiresGeckoHackNode=Wt,Mf)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Mf=!0}}function k5(n){let e;function t(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",t,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",t,!0);let r=e.startContainer,o=e.startOffset,s=e.endContainer,i=e.endOffset,l=n.domAtPos(n.state.selection.anchor);return ar(l.node,l.offset,s,i)&&([r,o,s,i]=[s,i,r,o]),{anchorNode:r,anchorOffset:o,focusNode:s,focusOffset:i}}function T5(n,e,t){let{node:r,fromOffset:o,toOffset:s,from:i,to:l}=n.docView.parseRange(e,t),a=n.domSelectionRange(),c,d=a.anchorNode;if(d&&n.dom.contains(d.nodeType==1?d:d.parentNode)&&(c=[{node:d,offset:a.anchorOffset}],Rs(a)||c.push({node:a.focusNode,offset:a.focusOffset})),st&&n.input.lastKeyCode===8)for(let y=s;y>o;y--){let C=r.childNodes[y-1],S=C.pmViewDesc;if(C.nodeName=="BR"&&!S){s=y;break}if(!S||S.size)break}let f=n.state.doc,h=n.someProp("domParser")||Nr.fromSchema(n.state.schema),p=f.resolve(i),m=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:s,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:x5,context:p});if(c&&c[0].pos!=null){let y=c[0].pos,C=c[1]&&c[1].pos;C==null&&(C=y),m={anchor:y+i,head:C+i}}return{doc:g,sel:m,from:i,to:l}}function x5(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(ut&&/^(ul|ol)$/i.test(n.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(n.parentNode.lastChild==n||ut&&/^(tr|table)$/i.test(n.parentNode.nodeName))return{ignore:!0}}else if(n.nodeName=="IMG"&&n.getAttribute("mark-placeholder"))return{ignore:!0};return null}const A5=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function O5(n,e,t,r,o){let s=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let U=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,B=il(n,U);if(B&&!n.state.selection.eq(B)){if(st&&Kt&&n.input.lastKeyCode===13&&Date.now()-100<n.input.lastKeyCodeTime&&n.someProp("handleKeyDown",z=>z(n,lr(13,"Enter"))))return;let L=n.state.tr.setSelection(B);U=="pointer"?L.setMeta("pointer",!0):U=="key"&&L.scrollIntoView(),s&&L.setMeta("composition",s),n.dispatch(L)}return}let i=n.state.doc.resolve(e),l=i.sharedDepth(t);e=i.before(l+1),t=n.state.doc.resolve(t).after(l+1);let a=n.state.selection,c=T5(n,e,t),d=n.state.doc,f=d.slice(c.from,c.to),h,p;n.input.lastKeyCode===8&&Date.now()-100<n.input.lastKeyCodeTime?(h=n.state.selection.to,p="end"):(h=n.state.selection.from,p="start"),n.input.lastKeyCode=null;let m=_5(f.content,c.doc.content,c.from,h,p);if((Pr&&n.input.lastIOSEnter>Date.now()-225||Kt)&&o.some(U=>U.nodeType==1&&!A5.test(U.nodeName))&&(!m||m.endA>=m.endB)&&n.someProp("handleKeyDown",U=>U(n,lr(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!m)if(r&&a instanceof Be&&!a.empty&&a.$head.sameParent(a.$anchor)&&!n.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(c.sel){let U=Nf(n,n.state.doc,c.sel);if(U&&!U.eq(n.state.selection)){let B=n.state.tr.setSelection(U);s&&B.setMeta("composition",s),n.dispatch(B)}}return}if(st&&n.cursorWrapper&&c.sel&&c.sel.anchor==n.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let U=m.endB-m.start;c.sel={anchor:c.sel.anchor+U,head:c.sel.anchor+U}}n.input.domChangeCount++,n.state.selection.from<n.state.selection.to&&m.start==m.endB&&n.state.selection instanceof Be&&(m.start>n.state.selection.from&&m.start<=n.state.selection.from+2&&n.state.selection.from>=c.from?m.start=n.state.selection.from:m.endA<n.state.selection.to&&m.endA>=n.state.selection.to-2&&n.state.selection.to<=c.to&&(m.endB+=n.state.selection.to-m.endA,m.endA=n.state.selection.to)),bt&&An<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let g=c.doc.resolveNoCache(m.start-c.from),y=c.doc.resolveNoCache(m.endB-c.from),C=d.resolve(m.start),S=g.sameParent(y)&&g.parent.inlineContent&&C.end()>=m.endA,k;if((Pr&&n.input.lastIOSEnter>Date.now()-225&&(!S||o.some(U=>U.nodeName=="DIV"||U.nodeName=="P"))||!S&&g.pos<c.doc.content.size&&!g.sameParent(y)&&(k=Re.findFrom(c.doc.resolve(g.pos+1),1,!0))&&k.head==y.pos)&&n.someProp("handleKeyDown",U=>U(n,lr(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>m.start&&N5(d,m.start,m.endA,g,y)&&n.someProp("handleKeyDown",U=>U(n,lr(8,"Backspace")))){Kt&&st&&n.domObserver.suppressSelectionUpdates();return}st&&Kt&&m.endB==m.start&&(n.input.lastAndroidDelete=Date.now()),Kt&&!S&&g.start()!=y.start()&&y.parentOffset==0&&g.depth==y.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,y=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{n.someProp("handleKeyDown",function(U){return U(n,lr(13,"Enter"))})},20));let v=m.start,A=m.endA,T,V,H;if(S){if(g.pos==y.pos)bt&&An<=11&&g.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>hn(n),20)),T=n.state.tr.delete(v,A),V=d.resolve(m.start).marksAcross(d.resolve(m.endA));else if(m.endA==m.endB&&(H=M5(g.parent.content.cut(g.parentOffset,y.parentOffset),C.parent.content.cut(C.parentOffset,m.endA-C.start()))))T=n.state.tr,H.type=="add"?T.addMark(v,A,H.mark):T.removeMark(v,A,H.mark);else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let U=g.parent.textBetween(g.parentOffset,y.parentOffset);if(n.someProp("handleTextInput",B=>B(n,v,A,U)))return;T=n.state.tr.insertText(U,v,A)}}if(T||(T=n.state.tr.replace(v,A,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let U=Nf(n,T.doc,c.sel);U&&!(st&&Kt&&n.composing&&U.empty&&(m.start!=m.endB||n.input.lastAndroidDelete<Date.now()-100)&&(U.head==v||U.head==T.mapping.map(A)-1)||bt&&U.empty&&U.head==v)&&T.setSelection(U)}V&&T.ensureMarks(V),s&&T.setMeta("composition",s),n.dispatch(T.scrollIntoView())}function Nf(n,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:ll(n,e.resolve(t.anchor),e.resolve(t.head))}function M5(n,e){let t=n.firstChild.marks,r=e.firstChild.marks,o=t,s=r,i,l,a;for(let d=0;d<r.length;d++)o=r[d].removeFromSet(o);for(let d=0;d<t.length;d++)s=t[d].removeFromSet(s);if(o.length==1&&s.length==0)l=o[0],i="add",a=d=>d.mark(l.addToSet(d.marks));else if(o.length==0&&s.length==1)l=s[0],i="remove",a=d=>d.mark(l.removeFromSet(d.marks));else return null;let c=[];for(let d=0;d<e.childCount;d++)c.push(a(e.child(d)));if(ae.from(c).eq(n))return{mark:l,type:i}}function N5(n,e,t,r,o){if(!r.parent.isTextblock||t-e<=o.pos-r.pos||bl(r,!0,!1)<o.pos)return!1;let s=n.resolve(e);if(s.parentOffset<s.parent.content.size||!s.parent.isTextblock)return!1;let i=n.resolve(bl(s,!0,!0));return!i.parent.isTextblock||i.pos>t||bl(i,!0,!1)<t?!1:r.parent.content.cut(r.parentOffset).eq(i.parent.content)}function bl(n,e,t){let r=n.depth,o=e?n.end():n.pos;for(;r>0&&(e||n.indexAfter(r)==n.node(r).childCount);)r--,o++,e=!1;if(t){let s=n.node(r).maybeChild(n.indexAfter(r));for(;s&&!s.isLeaf;)s=s.firstChild,o++}return o}function _5(n,e,t,r,o){let s=n.findDiffStart(e,t);if(s==null)return null;let{a:i,b:l}=n.findDiffEnd(e,t+n.size,t+e.size);if(o=="end"){let a=Math.max(0,s-Math.min(i,l));r-=i+a-s}if(i<s&&n.size<e.size){let a=r<=s&&r>=i?s-r:0;s-=a,s&&s<e.size&&_f(e.textBetween(s-1,s+1))&&(s+=a?1:-1),l=s+(l-i),i=s}else if(l<s){let a=r<=s&&r>=l?s-r:0;s-=a,s&&s<n.size&&_f(n.textBetween(s-1,s+1))&&(s+=a?1:-1),i=s+(i-l),l=s}return{start:s,endA:i,endB:l}}function _f(n){if(n.length!=2)return!1;let e=n.charCodeAt(0),t=n.charCodeAt(1);return e>=56320&&e<=57343&&t>=55296&&t<=56319}class I5{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new qv,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Bf),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Lf(this),Df(this),this.nodeViews=Rf(this),this.docView=zd(this.state.doc,If(this),vl(this),this.dom,this),this.domObserver=new S5(this,(r,o,s,i)=>O5(this,r,o,s,i)),this.domObserver.start(),e5(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&fl(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Bf),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let r in this._props)t[r]=this._props[r];t.state=this.state;for(let r in e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r;let o=this.state,s=!1,i=!1;e.storedMarks&&this.composing&&(Ef(this),i=!0),this.state=e;let l=o.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let p=Rf(this);L5(p,this.nodeViews)&&(this.nodeViews=p,s=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&fl(this),this.editable=Lf(this),Df(this);let a=vl(this),c=If(this),d=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=s||!this.docView.matchesNode(e.doc,c,a);(f||!e.selection.eq(o.selection))&&(i=!0);let h=d=="preserve"&&i&&this.dom.style.overflowAnchor==null&&pv(this);if(i){this.domObserver.stop();let p=f&&(bt||st)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&D5(o.selection,e.selection);if(f){let m=st?this.trackWrites=this.domSelectionRange().focusNode:null;(s||!this.docView.update(e.doc,c,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=zd(e.doc,c,a,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Fv(this))?hn(this,p):(Xd(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():h&&mv(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof Ae){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&Od(this,t.getBoundingClientRect(),e)}else Od(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let r=this.directPlugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let r=this.state.plugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let r=this.pluginViews[t];r.update&&r.update(this,e)}}updateDraggedNode(e,t){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let s=r.from+(this.state.doc.content.size-t.doc.content.size);(s>0&&this.state.doc.nodeAt(s))==r.node&&(o=s)}this.dragging=new Sf(e.slice,e.move,o<0?void 0:Ae.create(this.state.doc,o))}someProp(e,t){let r=this._props&&this._props[e],o;if(r!=null&&(o=t?t(r):r))return o;for(let i=0;i<this.directPlugins.length;i++){let l=this.directPlugins[i].props[e];if(l!=null&&(o=t?t(l):l))return o}let s=this.state.plugins;if(s)for(let i=0;i<s.length;i++){let l=s[i].props[e];if(l!=null&&(o=t?t(l):l))return o}}hasFocus(){if(bt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&gv(this.dom),hn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return Cv(this,e)}coordsAtPos(e,t=1){return Ld(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let o=this.docView.posFromDOM(e,t,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,t){return xv(this,t||this.state,e)}pasteHTML(e,t){return Ro(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Ro(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(t5(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],vl(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return r5(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return ut&&this.root.nodeType===11&&av(this.dom.ownerDocument)==this.dom?k5(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function If(n){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(n.editable),n.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(n.state)),t)for(let r in t)r=="class"?e.class+=" "+t[r]:r=="style"?e.style=(e.style?e.style+";":"")+t[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(t[r]))}),e.translate||(e.translate="no"),[It.node(0,n.state.doc.content.size,e)]}function Df(n){if(n.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),n.cursorWrapper={dom:e,deco:It.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function Lf(n){return!n.someProp("editable",e=>e(n.state)===!1)}function D5(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}function Rf(n){let e=Object.create(null);function t(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function L5(n,e){let t=0,r=0;for(let o in n){if(n[o]!=e[o])return!0;t++}for(let o in e)r++;return t!=r}function Bf(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Ln={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Hs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},R5=typeof navigator<"u"&&/Mac/.test(navigator.platform),B5=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),nt=0;nt<10;nt++)Ln[48+nt]=Ln[96+nt]=String(nt);for(var nt=1;nt<=24;nt++)Ln[nt+111]="F"+nt;for(var nt=65;nt<=90;nt++)Ln[nt]=String.fromCharCode(nt+32),Hs[nt]=String.fromCharCode(nt);for(var El in Ln)Hs.hasOwnProperty(El)||(Hs[El]=Ln[El]);function $5(n){var e=R5&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||B5&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Hs:Ln)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const P5=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function F5(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,o,s,i;for(let l=0;l<e.length-1;l++){let a=e[l];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))s=!0;else if(/^mod$/i.test(a))P5?i=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(t="Alt-"+t),o&&(t="Ctrl-"+t),i&&(t="Meta-"+t),s&&(t="Shift-"+t),t}function V5(n){let e=Object.create(null);for(let t in n)e[F5(t)]=n[t];return e}function Cl(n,e,t=!0){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t&&e.shiftKey&&(n="Shift-"+n),n}function z5(n){return new vt({props:{handleKeyDown:H5(n)}})}function H5(n){let e=V5(n);return function(t,r){let o=$5(r),s,i=e[Cl(o,r)];if(i&&i(t.state,t.dispatch,t))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[Cl(o,r,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(s=Ln[r.keyCode])&&s!=o){let l=e[Cl(s,r)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const U5=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function j5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}const W5=(n,e,t)=>{let r=j5(n,t);if(!r)return!1;let o=$f(r);if(!o){let i=r.blockRange(),l=i&&Ir(i);return l==null?!1:(e&&e(n.tr.lift(i,l).scrollIntoView()),!0)}let s=o.nodeBefore;if(!s.type.spec.isolating&&Vf(n,o,e))return!0;if(r.parent.content.size==0&&(Ur(s,"end")||Ae.isSelectable(s))){let i=ja(n.doc,r.before(),r.after(),ye.empty);if(i&&i.slice.size<i.to-i.from){if(e){let l=n.tr.step(i);l.setSelection(Ur(s,"end")?Re.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):Ae.create(l.doc,o.pos-s.nodeSize)),e(l.scrollIntoView())}return!0}}return s.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos-s.nodeSize,o.pos).scrollIntoView()),!0):!1};function Ur(n,e,t=!1){for(let r=n;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(t&&r.childCount!=1)return!1}return!1}const K5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):r.parentOffset>0)return!1;s=$f(r)}let i=s&&s.nodeBefore;return!i||!Ae.isSelectable(i)?!1:(e&&e(n.tr.setSelection(Ae.create(n.doc,s.pos-i.nodeSize)).scrollIntoView()),!0)};function $f(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){if(n.index(e)>0)return n.doc.resolve(n.before(e+1));if(n.node(e).type.spec.isolating)break}return null}function Y5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset<t.parent.content.size)?null:t}const G5=(n,e,t)=>{let r=Y5(n,t);if(!r)return!1;let o=Pf(r);if(!o)return!1;let s=o.nodeAfter;if(Vf(n,o,e))return!0;if(r.parent.content.size==0&&(Ur(s,"start")||Ae.isSelectable(s))){let i=ja(n.doc,r.before(),r.after(),ye.empty);if(i&&i.slice.size<i.to-i.from){if(e){let l=n.tr.step(i);l.setSelection(Ur(s,"start")?Re.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):Ae.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return s.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos,o.pos+s.nodeSize).scrollIntoView()),!0):!1},J5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):r.parentOffset<r.parent.content.size)return!1;s=Pf(r)}let i=s&&s.nodeAfter;return!i||!Ae.isSelectable(i)?!1:(e&&e(n.tr.setSelection(Ae.create(n.doc,s.pos)).scrollIntoView()),!0)};function Pf(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){let t=n.node(e);if(n.index(e)+1<t.childCount)return n.doc.resolve(n.after(e+1));if(t.type.spec.isolating)break}return null}const Z5=(n,e)=>{let t=n.selection,r=t instanceof Ae,o;if(r){if(t.node.isTextblock||!Tn(n.doc,t.from))return!1;o=t.from}else if(o=Is(n.doc,t.from,-1),o==null)return!1;if(e){let s=n.tr.join(o);r&&s.setSelection(Ae.create(s.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},X5=(n,e)=>{let t=n.selection,r;if(t instanceof Ae){if(t.node.isTextblock||!Tn(n.doc,t.to))return!1;r=t.to}else if(r=Is(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},Q5=(n,e)=>{let{$from:t,$to:r}=n.selection,o=t.blockRange(r),s=o&&Ir(o);return s==null?!1:(e&&e(n.tr.lift(o,s).scrollIntoView()),!0)},q5=(n,e)=>{let{$head:t,$anchor:r}=n.selection;return!t.parent.type.spec.code||!t.sameParent(r)?!1:(e&&e(n.tr.insertText(`
18
+ `))),0,0):ye.empty;let f=n.someProp("clipboardTextParser",h=>h(e,o,r,n));if(f)l=f;else{let h=o.marks(),{schema:p}=n.state,m=Zt.fromSchema(p);i=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let y=i.appendChild(document.createElement("p"));g&&y.appendChild(m.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",f=>{t=f(t,n)}),i=Jv(t),Mo&&Zv(i);let c=i&&i.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let f=+d[3];f>0;f--){let h=i.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;i=h}if(l||(l=(n.someProp("clipboardParser")||n.someProp("domParser")||Nr.fromSchema(n.state.schema)).parseSlice(i,{preserveWhitespace:!!(a||d),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!Yv.test(h.parentNode.nodeName)?{ignore:!0}:null}})),d)l=Xv(hf(l,+d[1],+d[2]),d[4]);else if(l=ye.maxOpen(Gv(l.content,o),!0),l.openStart||l.openEnd){let f=0,h=0;for(let p=l.content.firstChild;f<l.openStart&&!p.type.spec.isolating;f++,p=p.firstChild);for(let p=l.content.lastChild;h<l.openEnd&&!p.type.spec.isolating;h++,p=p.lastChild);l=hf(l,f,h)}return n.someProp("transformPasted",f=>{l=f(l,n)}),l}const Yv=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Gv(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.index(t)),s,i=[];if(n.forEach(l=>{if(!i)return;let a=o.findWrapping(l.type),c;if(!a)return i=null;if(c=i.length&&s.length&&df(a,s,l,i[i.length-1],0))i[i.length-1]=c;else{i.length&&(i[i.length-1]=ff(i[i.length-1],s.length));let d=uf(l,a);i.push(d),o=o.matchType(d.type),s=a}}),i)return ae.from(i)}return n}function uf(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,ae.from(n));return n}function df(n,e,t,r,o){if(o<n.length&&o<e.length&&n[o]==e[o]){let s=df(n,e,t,r.lastChild,o+1);if(s)return r.copy(r.content.replaceChild(r.childCount-1,s));if(r.contentMatchAt(r.childCount).matchType(o==n.length-1?t.type:n[o+1]))return r.copy(r.content.append(ae.from(uf(t,n,o+1))))}}function ff(n,e){if(e==0)return n;let t=n.content.replaceChild(n.childCount-1,ff(n.lastChild,e-1)),r=n.contentMatchAt(n.childCount).fillBefore(ae.empty,!0);return n.copy(t.append(r))}function dl(n,e,t,r,o,s){let i=e<0?n.firstChild:n.lastChild,l=i.content;return n.childCount>1&&(s=0),o<r-1&&(l=dl(l,e,t,r,o+1,s)),o>=t&&(l=e<0?i.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(i.contentMatchAt(i.childCount).fillBefore(ae.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,i.copy(l))}function hf(n,e,t){return e<n.openStart&&(n=new ye(dl(n.content,-1,e,n.openStart,0,n.openEnd),e,n.openEnd)),t<n.openEnd&&(n=new ye(dl(n.content,1,t,n.openEnd,0,0),n.openStart,t)),n}const pf={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let mf=null;function gf(){return mf||(mf=document.implementation.createHTMLDocument("title"))}function Jv(n){let e=/^(\s*<meta [^>]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=gf().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),o;if((o=r&&pf[r[1].toLowerCase()])&&(n=o.map(s=>"<"+s+">").join("")+n+o.map(s=>"</"+s+">").reverse().join("")),t.innerHTML=n,o)for(let s=0;s<o.length;s++)t=t.querySelector(o[s])||t;return t}function Zv(n){let e=n.querySelectorAll(st?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let r=e[t];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "),r)}}function Xv(n,e){if(!n.size)return n;let t=n.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return n}let{content:o,openStart:s,openEnd:i}=n;for(let l=r.length-2;l>=0;l-=2){let a=t.nodes[r[l]];if(!a||a.hasRequiredAttrs())break;o=ae.from(a.create(r[l+1],o)),s++,i++}return new ye(o,s,i)}const dt={},ft={},Qv={touchstart:!0,touchmove:!0};class qv{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function e5(n){for(let e in dt){let t=dt[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{n5(n,r)&&!hl(n,r)&&(n.editable||!(r.type in ft))&&t(n,r)},Qv[e]?{passive:!0}:void 0)}ut&&n.dom.addEventListener("input",()=>null),fl(n)}function _n(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function t5(n){n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}function fl(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>hl(n,r))})}function hl(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function n5(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function r5(n,e){!hl(n,e)&&dt[e.type]&&(n.editable||!(e.type in ft))&&dt[e.type](n,e)}ft.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!vf(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(Kt&&st&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),Pr&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let r=Date.now();n.input.lastIOSEnter=r,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==r&&(n.someProp("handleKeyDown",o=>o(n,lr(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||Kv(n,t)?t.preventDefault():_n(n,"key")},ft.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)},ft.keypress=(n,e)=>{let t=e;if(vf(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Nt&&t.metaKey)return;if(n.someProp("handleKeyPress",o=>o(n,t))){t.preventDefault();return}let r=n.state.selection;if(!(r instanceof Be)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(t.charCode);!/[\r\n]/.test(o)&&!n.someProp("handleTextInput",s=>s(n,r.$from.pos,r.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};function Ps(n){return{left:n.clientX,top:n.clientY}}function o5(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function pl(n,e,t,r,o){if(r==-1)return!1;let s=n.state.doc.resolve(r);for(let i=s.depth+1;i>0;i--)if(n.someProp(e,l=>i>s.depth?l(n,t,s.nodeAfter,s.before(i),o,!0):l(n,t,s.node(i),s.before(i),o,!1)))return!0;return!1}function zr(n,e,t){n.focused||n.focus();let r=n.state.tr.setSelection(e);t=="pointer"&&r.setMeta("pointer",!0),n.dispatch(r)}function s5(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&Ae.isSelectable(r)?(zr(n,new Ae(t),"pointer"),!0):!1}function i5(n,e){if(e==-1)return!1;let t=n.state.selection,r,o;t instanceof Ae&&(r=t.node);let s=n.state.doc.resolve(e);for(let i=s.depth+1;i>0;i--){let l=i>s.depth?s.nodeAfter:s.node(i);if(Ae.isSelectable(l)){r&&t.$from.depth>0&&i>=t.$from.depth&&s.before(t.$from.depth+1)==t.$from.pos?o=s.before(t.$from.depth):o=s.before(i);break}}return o!=null?(zr(n,Ae.create(n.state.doc,o),"pointer"),!0):!1}function a5(n,e,t,r,o){return pl(n,"handleClickOn",e,t,r)||n.someProp("handleClick",s=>s(n,e,r))||(o?i5(n,t):s5(n,t))}function l5(n,e,t,r){return pl(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",o=>o(n,e,r))}function c5(n,e,t,r){return pl(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",o=>o(n,e,r))||u5(n,t,r)}function u5(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(zr(n,Be.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let s=o.depth+1;s>0;s--){let i=s>o.depth?o.nodeAfter:o.node(s),l=o.before(s);if(i.inlineContent)zr(n,Be.create(r,l+1,l+1+i.content.size),"pointer");else if(Ae.isSelectable(i))zr(n,Ae.create(r,l),"pointer");else continue;return!0}}function ml(n){return Fs(n)}const yf=Nt?"metaKey":"ctrlKey";dt.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=ml(n),o=Date.now(),s="singleClick";o-n.input.lastClick.time<500&&o5(t,n.input.lastClick)&&!t[yf]&&(n.input.lastClick.type=="singleClick"?s="doubleClick":n.input.lastClick.type=="doubleClick"&&(s="tripleClick")),n.input.lastClick={time:o,x:t.clientX,y:t.clientY,type:s};let i=n.posAtCoords(Ps(t));i&&(s=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new d5(n,i,t,!!r)):(s=="doubleClick"?l5:c5)(n,i.pos,i.inside,t)?t.preventDefault():_n(n,"pointer"))};class d5{constructor(e,t,r,o){this.view=e,this.pos=t,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[yf],this.allowDefault=r.shiftKey;let s,i;if(t.inside>-1)s=e.state.doc.nodeAt(t.inside),i=t.inside;else{let d=e.state.doc.resolve(t.pos);s=d.parent,i=d.depth?d.before():0}const l=o?null:r.target,a=l?e.docView.nearestDesc(l,!0):null;this.target=a?a.dom:null;let{selection:c}=e.state;(r.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||c instanceof Ae&&c.from<=i&&c.to>i)&&(this.mightDrag={node:s,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Wt&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),_n(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>hn(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Ps(e))),this.updateAllowDefault(e),this.allowDefault||!t?_n(this.view,"pointer"):a5(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||ut&&this.mightDrag&&!this.mightDrag.node.isAtom||st&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(zr(this.view,Re.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):_n(this.view,"pointer")}move(e){this.updateAllowDefault(e),_n(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}dt.touchstart=n=>{n.input.lastTouch=Date.now(),ml(n),_n(n,"pointer")},dt.touchmove=n=>{n.input.lastTouch=Date.now(),_n(n,"pointer")},dt.contextmenu=n=>ml(n);function vf(n,e){return n.composing?!0:ut&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const f5=Kt?5e3:-1;ft.compositionstart=ft.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:e}=n,t=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))n.markCursor=n.state.storedMarks||t.marks(),Fs(n,!0),n.markCursor=null;else if(Fs(n),Wt&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let r=n.domSelectionRange();for(let o=r.focusNode,s=r.focusOffset;o&&o.nodeType==1&&s!=0;){let i=s<0?o.lastChild:o.childNodes[s-1];if(!i)break;if(i.nodeType==3){n.domSelection().collapse(i,i.nodeValue.length);break}else o=i,s=-1}}n.input.composing=!0}bf(n,f5)},ft.compositionend=(n,e)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=e.timeStamp,n.input.compositionPendingChanges=n.domObserver.pendingRecords().length?n.input.compositionID:0,n.input.compositionPendingChanges&&Promise.resolve().then(()=>n.domObserver.flush()),n.input.compositionID++,bf(n,20))};function bf(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>Fs(n),e))}function Ef(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=h5());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function h5(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function Fs(n,e=!1){if(!(Kt&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),Ef(n),e||n.docView&&n.docView.dirty){let t=il(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}function p5(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),n.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}const Lo=bt&&An<15||Pr&&dv<604;dt.copy=ft.cut=(n,e)=>{let t=e,r=n.state.selection,o=t.type=="cut";if(r.empty)return;let s=Lo?null:t.clipboardData,i=r.content(),{dom:l,text:a}=lf(n,i);s?(t.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",a)):p5(n,l),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function m5(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function g5(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,r=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=n.input.shiftKey&&n.input.lastKeyCode!=45;setTimeout(()=>{n.focus(),r.parentNode&&r.parentNode.removeChild(r),t?Ro(n,r.value,null,o,e):Ro(n,r.textContent,r.innerHTML,o,e)},50)}function Ro(n,e,t,r,o){let s=cf(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,o,s||ye.empty)))return!0;if(!s)return!1;let i=m5(s),l=i?n.state.tr.replaceSelectionWith(i,r):n.state.tr.replaceSelection(s);return n.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Cf(n){let e=n.getData("text/plain")||n.getData("Text");if(e)return e;let t=n.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}ft.paste=(n,e)=>{let t=e;if(n.composing&&!Kt)return;let r=Lo?null:t.clipboardData,o=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&Ro(n,Cf(r),r.getData("text/html"),o,t)?t.preventDefault():g5(n,t)};class Sf{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const wf=Nt?"altKey":"ctrlKey";dt.dragstart=(n,e)=>{let t=e,r=n.input.mouseDown;if(r&&r.done(),!t.dataTransfer)return;let o=n.state.selection,s=o.empty?null:n.posAtCoords(Ps(t)),i;if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof Ae?o.to-1:o.to))){if(r&&r.mightDrag)i=Ae.create(n.state.doc,r.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let d=n.docView.nearestDesc(t.target,!0);d&&d.node.type.spec.draggable&&d!=n.docView&&(i=Ae.create(n.state.doc,d.posBefore))}}let l=(i||n.state.selection).content(),{dom:a,text:c}=lf(n,l);t.dataTransfer.clearData(),t.dataTransfer.setData(Lo?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",Lo||t.dataTransfer.setData("text/plain",c),n.dragging=new Sf(l,!t[wf],i)},dt.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)},ft.dragover=ft.dragenter=(n,e)=>e.preventDefault(),ft.drop=(n,e)=>{let t=e,r=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(Ps(t));if(!o)return;let s=n.state.doc.resolve(o.pos),i=r&&r.slice;i?n.someProp("transformPasted",m=>{i=m(i,n)}):i=cf(n,Cf(t.dataTransfer),Lo?null:t.dataTransfer.getData("text/html"),!1,s);let l=!!(r&&!t[wf]);if(n.someProp("handleDrop",m=>m(n,t,i||ye.empty,l))){t.preventDefault();return}if(!i)return;t.preventDefault();let a=i?Gy(n.state.doc,s.pos,i):s.pos;a==null&&(a=s.pos);let c=n.state.tr;if(l){let{node:m}=r;m?m.replace(c):c.deleteSelection()}let d=c.mapping.map(a),f=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,h=c.doc;if(f?c.replaceRangeWith(d,d,i.content.firstChild):c.replaceRange(d,d,i),c.doc.eq(h))return;let p=c.doc.resolve(d);if(f&&Ae.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))c.setSelection(new Ae(p));else{let m=c.mapping.map(a);c.mapping.maps[c.mapping.maps.length-1].forEach((g,y,C,S)=>m=S),c.setSelection(ll(n,p,c.doc.resolve(m)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},dt.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&hn(n)},20))},dt.blur=(n,e)=>{let t=e;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),t.relatedTarget&&n.dom.contains(t.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},dt.beforeinput=(n,e)=>{if(st&&Kt&&e.inputType=="deleteContentBackward"){n.domObserver.flushSoon();let{domChangeCount:r}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=r||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",s=>s(n,lr(8,"Backspace")))))return;let{$cursor:o}=n.state.selection;o&&o.pos>0&&n.dispatch(n.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let n in ft)dt[n]=ft[n];function Bo(n,e){if(n==e)return!0;for(let t in n)if(n[t]!==e[t])return!1;for(let t in e)if(!(t in n))return!1;return!0}class Vs{constructor(e,t){this.toDOM=e,this.spec=t||fr,this.side=this.spec.side||0}map(e,t,r,o){let{pos:s,deleted:i}=e.mapResult(t.from+o,this.side<0?-1:1);return i?null:new It(s-r,s-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Vs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Bo(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class In{constructor(e,t){this.attrs=e,this.spec=t||fr}map(e,t,r,o){let s=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-r,i=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-r;return s>=i?null:new It(s,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof In&&Bo(this.attrs,e.attrs)&&Bo(this.spec,e.spec)}static is(e){return e.type instanceof In}destroy(){}}class gl{constructor(e,t){this.attrs=e,this.spec=t||fr}map(e,t,r,o){let s=e.mapResult(t.from+o,1);if(s.deleted)return null;let i=e.mapResult(t.to+o,-1);return i.deleted||i.pos<=s.pos?null:new It(s.pos-r,i.pos-r,this)}valid(e,t){let{index:r,offset:o}=e.content.findIndex(t.from),s;return o==t.from&&!(s=e.child(r)).isText&&o+s.nodeSize==t.to}eq(e){return this==e||e instanceof gl&&Bo(this.attrs,e.attrs)&&Bo(this.spec,e.spec)}destroy(){}}class It{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new It(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new It(e,e,new Vs(t,r))}static inline(e,t,r,o){return new It(e,t,new In(r,o))}static node(e,t,r,o){return new It(e,t,new gl(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof In}get widget(){return this.type instanceof Vs}}const Hr=[],fr={};class Je{constructor(e,t){this.local=e.length?e:Hr,this.children=t.length?t:Hr}static create(e,t){return t.length?zs(t,e,0,fr):it}find(e,t,r){let o=[];return this.findInner(e??0,t??1e9,o,0,r),o}findInner(e,t,r,o,s){for(let i=0;i<this.local.length;i++){let l=this.local[i];l.from<=t&&l.to>=e&&(!s||s(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let l=this.children[i]+1;this.children[i+2].findInner(e-l,t-l,r,o+l,s)}}map(e,t,r){return this==it||e.maps.length==0?this:this.mapInner(e,t,0,0,r||fr)}mapInner(e,t,r,o,s){let i;for(let l=0;l<this.local.length;l++){let a=this.local[l].map(e,r,o);a&&a.type.valid(t,a)?(i||(i=[])).push(a):s.onRemove&&s.onRemove(this.local[l].spec)}return this.children.length?y5(this.children,i||[],e,t,r,o,s):i?new Je(i.sort(hr),Hr):it}add(e,t){return t.length?this==it?Je.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let o,s=0;e.forEach((l,a)=>{let c=a+r,d;if(d=Tf(t,l,c)){for(o||(o=this.children.slice());s<o.length&&o[s]<a;)s+=3;o[s]==a?o[s+2]=o[s+2].addInner(l,d,c+1):o.splice(s,0,a,a+l.nodeSize,zs(d,l,c+1,fr)),s+=3}});let i=kf(s?xf(t):t,-r);for(let l=0;l<i.length;l++)i[l].type.valid(e,i[l])||i.splice(l--,1);return new Je(i.length?this.local.concat(i).sort(hr):this.local,o||this.children)}remove(e){return e.length==0||this==it?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,o=this.local;for(let s=0;s<r.length;s+=3){let i,l=r[s]+t,a=r[s+1]+t;for(let d=0,f;d<e.length;d++)(f=e[d])&&f.from>l&&f.to<a&&(e[d]=null,(i||(i=[])).push(f));if(!i)continue;r==this.children&&(r=this.children.slice());let c=r[s+2].removeInner(i,l+1);c!=it?r[s+2]=c:(r.splice(s,3),s-=3)}if(o.length){for(let s=0,i;s<e.length;s++)if(i=e[s])for(let l=0;l<o.length;l++)o[l].eq(i,t)&&(o==this.local&&(o=this.local.slice()),o.splice(l--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new Je(o,r):it}forChild(e,t){if(this==it)return this;if(t.isLeaf)return Je.empty;let r,o;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(r=this.children[l+2]);break}let s=e+1,i=s+t.content.size;for(let l=0;l<this.local.length;l++){let a=this.local[l];if(a.from<i&&a.to>s&&a.type instanceof In){let c=Math.max(s,a.from)-s,d=Math.min(i,a.to)-s;c<d&&(o||(o=[])).push(a.copy(c,d))}}if(o){let l=new Je(o.sort(hr),Hr);return r?new Dn([l,r]):l}return r||it}eq(e){if(this==e)return!0;if(!(e instanceof Je)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return yl(this.localsInner(e))}localsInner(e){if(this==it)return Hr;if(e.inlineContent||!this.local.some(In.is))return this.local;let t=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof In||t.push(this.local[r]);return t}}Je.empty=new Je([],[]),Je.removeOverlap=yl;const it=Je.empty;class Dn{constructor(e){this.members=e}map(e,t){const r=this.members.map(o=>o.map(e,t,fr));return Dn.from(r)}forChild(e,t){if(t.isLeaf)return Je.empty;let r=[];for(let o=0;o<this.members.length;o++){let s=this.members[o].forChild(e,t);s!=it&&(s instanceof Dn?r=r.concat(s.members):r.push(s))}return Dn.from(r)}eq(e){if(!(e instanceof Dn)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let o=0;o<this.members.length;o++){let s=this.members[o].localsInner(e);if(s.length)if(!t)t=s;else{r&&(t=t.slice(),r=!1);for(let i=0;i<s.length;i++)t.push(s[i])}}return t?yl(r?t:t.sort(hr)):Hr}static from(e){switch(e.length){case 0:return it;case 1:return e[0];default:return new Dn(e.every(t=>t instanceof Je)?e:e.reduce((t,r)=>t.concat(r instanceof Je?r:r.members),[]))}}}function y5(n,e,t,r,o,s,i){let l=n.slice();for(let c=0,d=s;c<t.maps.length;c++){let f=0;t.maps[c].forEach((h,p,m,g)=>{let y=g-m-(p-h);for(let C=0;C<l.length;C+=3){let S=l[C+1];if(S<0||h>S+d-f)continue;let k=l[C]+d-f;p>=k?l[C+1]=h<=k?-2:-1:m>=o&&y&&(l[C]+=y,l[C+1]+=y)}f+=y}),d=t.maps[c].map(d,-1)}let a=!1;for(let c=0;c<l.length;c+=3)if(l[c+1]<0){if(l[c+1]==-2){a=!0,l[c+1]=-1;continue}let d=t.map(n[c]+s),f=d-o;if(f<0||f>=r.content.size){a=!0;continue}let h=t.map(n[c+1]+s,-1),p=h-o,{index:m,offset:g}=r.content.findIndex(f),y=r.maybeChild(m);if(y&&g==f&&g+y.nodeSize==p){let C=l[c+2].mapInner(t,y,d+1,n[c]+s+1,i);C!=it?(l[c]=f,l[c+1]=p,l[c+2]=C):(l[c+1]=-2,a=!0)}else a=!0}if(a){let c=v5(l,n,e,t,o,s,i),d=zs(c,r,0,i);e=d.local;for(let f=0;f<l.length;f+=3)l[f+1]<0&&(l.splice(f,3),f-=3);for(let f=0,h=0;f<d.children.length;f+=3){let p=d.children[f];for(;h<l.length&&l[h]<p;)h+=3;l.splice(h,0,d.children[f],d.children[f+1],d.children[f+2])}}return new Je(e.sort(hr),l)}function kf(n,e){if(!e||!n.length)return n;let t=[];for(let r=0;r<n.length;r++){let o=n[r];t.push(new It(o.from+e,o.to+e,o.type))}return t}function v5(n,e,t,r,o,s,i){function l(a,c){for(let d=0;d<a.local.length;d++){let f=a.local[d].map(r,o,c);f?t.push(f):i.onRemove&&i.onRemove(a.local[d].spec)}for(let d=0;d<a.children.length;d+=3)l(a.children[d+2],a.children[d]+c+1)}for(let a=0;a<n.length;a+=3)n[a+1]==-1&&l(n[a+2],e[a]+s+1);return t}function Tf(n,e,t){if(e.isLeaf)return null;let r=t+e.nodeSize,o=null;for(let s=0,i;s<n.length;s++)(i=n[s])&&i.from>t&&i.to<r&&((o||(o=[])).push(i),n[s]=null);return o}function xf(n){let e=[];for(let t=0;t<n.length;t++)n[t]!=null&&e.push(n[t]);return e}function zs(n,e,t,r){let o=[],s=!1;e.forEach((l,a)=>{let c=Tf(n,l,a+t);if(c){s=!0;let d=zs(c,l,t+a+1,r);d!=it&&o.push(a,a+l.nodeSize,d)}});let i=kf(s?xf(n):n,-t).sort(hr);for(let l=0;l<i.length;l++)i[l].type.valid(e,i[l])||(r.onRemove&&r.onRemove(i[l].spec),i.splice(l--,1));return i.length||o.length?new Je(i,o):it}function hr(n,e){return n.from-e.from||n.to-e.to}function yl(n){let e=n;for(let t=0;t<e.length-1;t++){let r=e[t];if(r.from!=r.to)for(let o=t+1;o<e.length;o++){let s=e[o];if(s.from==r.from){s.to!=r.to&&(e==n&&(e=n.slice()),e[o]=s.copy(s.from,r.to),Af(e,o+1,s.copy(r.to,s.to)));continue}else{s.from<r.to&&(e==n&&(e=n.slice()),e[t]=r.copy(r.from,s.from),Af(e,o,r.copy(s.from,r.to)));break}}}return e}function Af(n,e,t){for(;e<n.length&&hr(t,n[e])>0;)e++;n.splice(e,0,t)}function vl(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=it&&e.push(r)}),n.cursorWrapper&&e.push(Je.create(n.state.doc,[n.cursorWrapper.deco])),Dn.from(e)}const b5={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},E5=bt&&An<=11;class C5{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class S5{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new C5,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);bt&&An<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),E5&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,b5)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(qd(this.view)){if(this.suppressingSelectionUpdates)return hn(this.view);if(bt&&An<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&ar(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,r;for(let s=e.focusNode;s;s=Oo(s))t.add(s);for(let s=e.anchorNode;s;s=Oo(s))if(t.has(s)){r=s;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&qd(e)&&!this.ignoreSelectionChange(r),s=-1,i=-1,l=!1,a=[];if(e.editable)for(let d=0;d<t.length;d++){let f=this.registerMutation(t[d],a);f&&(s=s<0?f.from:Math.min(f.from,s),i=i<0?f.to:Math.max(f.to,i),f.typeOver&&(l=!0))}if(Wt&&a.length>1){let d=a.filter(f=>f.nodeName=="BR");if(d.length==2){let f=d[0],h=d[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let c=null;s<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Rs(r)&&(c=il(e))&&c.eq(Re.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,hn(e),this.currentSelection.set(r),e.scrollToSelection()):(s>-1||o)&&(s>-1&&(e.docView.markDirty(s,i),w5(e)),this.handleDOMChange(s,i,l,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||hn(e),this.currentSelection.set(r))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;d<e.addedNodes.length;d++)t.push(e.addedNodes[d]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,s=e.nextSibling;if(bt&&An<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:f,nextSibling:h}=e.addedNodes[d];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(s=h)}let i=o&&o.parentNode==e.target?ct(o)+1:0,l=r.localPosFromDOM(e.target,i,-1),a=s&&s.parentNode==e.target?ct(s):e.target.childNodes.length,c=r.localPosFromDOM(e.target,a,1);return{from:l,to:c}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let Of=new WeakMap,Mf=!1;function w5(n){if(!Of.has(n)&&(Of.set(n,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace)!==-1)){if(n.requiresGeckoHackNode=Wt,Mf)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Mf=!0}}function k5(n){let e;function t(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",t,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",t,!0);let r=e.startContainer,o=e.startOffset,s=e.endContainer,i=e.endOffset,l=n.domAtPos(n.state.selection.anchor);return ar(l.node,l.offset,s,i)&&([r,o,s,i]=[s,i,r,o]),{anchorNode:r,anchorOffset:o,focusNode:s,focusOffset:i}}function T5(n,e,t){let{node:r,fromOffset:o,toOffset:s,from:i,to:l}=n.docView.parseRange(e,t),a=n.domSelectionRange(),c,d=a.anchorNode;if(d&&n.dom.contains(d.nodeType==1?d:d.parentNode)&&(c=[{node:d,offset:a.anchorOffset}],Rs(a)||c.push({node:a.focusNode,offset:a.focusOffset})),st&&n.input.lastKeyCode===8)for(let y=s;y>o;y--){let C=r.childNodes[y-1],S=C.pmViewDesc;if(C.nodeName=="BR"&&!S){s=y;break}if(!S||S.size)break}let f=n.state.doc,h=n.someProp("domParser")||Nr.fromSchema(n.state.schema),p=f.resolve(i),m=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:s,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:x5,context:p});if(c&&c[0].pos!=null){let y=c[0].pos,C=c[1]&&c[1].pos;C==null&&(C=y),m={anchor:y+i,head:C+i}}return{doc:g,sel:m,from:i,to:l}}function x5(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(ut&&/^(ul|ol)$/i.test(n.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(n.parentNode.lastChild==n||ut&&/^(tr|table)$/i.test(n.parentNode.nodeName))return{ignore:!0}}else if(n.nodeName=="IMG"&&n.getAttribute("mark-placeholder"))return{ignore:!0};return null}const A5=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function O5(n,e,t,r,o){let s=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let U=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,B=il(n,U);if(B&&!n.state.selection.eq(B)){if(st&&Kt&&n.input.lastKeyCode===13&&Date.now()-100<n.input.lastKeyCodeTime&&n.someProp("handleKeyDown",z=>z(n,lr(13,"Enter"))))return;let L=n.state.tr.setSelection(B);U=="pointer"?L.setMeta("pointer",!0):U=="key"&&L.scrollIntoView(),s&&L.setMeta("composition",s),n.dispatch(L)}return}let i=n.state.doc.resolve(e),l=i.sharedDepth(t);e=i.before(l+1),t=n.state.doc.resolve(t).after(l+1);let a=n.state.selection,c=T5(n,e,t),d=n.state.doc,f=d.slice(c.from,c.to),h,p;n.input.lastKeyCode===8&&Date.now()-100<n.input.lastKeyCodeTime?(h=n.state.selection.to,p="end"):(h=n.state.selection.from,p="start"),n.input.lastKeyCode=null;let m=_5(f.content,c.doc.content,c.from,h,p);if((Pr&&n.input.lastIOSEnter>Date.now()-225||Kt)&&o.some(U=>U.nodeType==1&&!A5.test(U.nodeName))&&(!m||m.endA>=m.endB)&&n.someProp("handleKeyDown",U=>U(n,lr(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!m)if(r&&a instanceof Be&&!a.empty&&a.$head.sameParent(a.$anchor)&&!n.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(c.sel){let U=Nf(n,n.state.doc,c.sel);if(U&&!U.eq(n.state.selection)){let B=n.state.tr.setSelection(U);s&&B.setMeta("composition",s),n.dispatch(B)}}return}if(st&&n.cursorWrapper&&c.sel&&c.sel.anchor==n.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let U=m.endB-m.start;c.sel={anchor:c.sel.anchor+U,head:c.sel.anchor+U}}n.input.domChangeCount++,n.state.selection.from<n.state.selection.to&&m.start==m.endB&&n.state.selection instanceof Be&&(m.start>n.state.selection.from&&m.start<=n.state.selection.from+2&&n.state.selection.from>=c.from?m.start=n.state.selection.from:m.endA<n.state.selection.to&&m.endA>=n.state.selection.to-2&&n.state.selection.to<=c.to&&(m.endB+=n.state.selection.to-m.endA,m.endA=n.state.selection.to)),bt&&An<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let g=c.doc.resolveNoCache(m.start-c.from),y=c.doc.resolveNoCache(m.endB-c.from),C=d.resolve(m.start),S=g.sameParent(y)&&g.parent.inlineContent&&C.end()>=m.endA,k;if((Pr&&n.input.lastIOSEnter>Date.now()-225&&(!S||o.some(U=>U.nodeName=="DIV"||U.nodeName=="P"))||!S&&g.pos<c.doc.content.size&&!g.sameParent(y)&&(k=Re.findFrom(c.doc.resolve(g.pos+1),1,!0))&&k.head==y.pos)&&n.someProp("handleKeyDown",U=>U(n,lr(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>m.start&&N5(d,m.start,m.endA,g,y)&&n.someProp("handleKeyDown",U=>U(n,lr(8,"Backspace")))){Kt&&st&&n.domObserver.suppressSelectionUpdates();return}st&&Kt&&m.endB==m.start&&(n.input.lastAndroidDelete=Date.now()),Kt&&!S&&g.start()!=y.start()&&y.parentOffset==0&&g.depth==y.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,y=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{n.someProp("handleKeyDown",function(U){return U(n,lr(13,"Enter"))})},20));let v=m.start,A=m.endA,T,V,H;if(S){if(g.pos==y.pos)bt&&An<=11&&g.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>hn(n),20)),T=n.state.tr.delete(v,A),V=d.resolve(m.start).marksAcross(d.resolve(m.endA));else if(m.endA==m.endB&&(H=M5(g.parent.content.cut(g.parentOffset,y.parentOffset),C.parent.content.cut(C.parentOffset,m.endA-C.start()))))T=n.state.tr,H.type=="add"?T.addMark(v,A,H.mark):T.removeMark(v,A,H.mark);else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let U=g.parent.textBetween(g.parentOffset,y.parentOffset);if(n.someProp("handleTextInput",B=>B(n,v,A,U)))return;T=n.state.tr.insertText(U,v,A)}}if(T||(T=n.state.tr.replace(v,A,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let U=Nf(n,T.doc,c.sel);U&&!(st&&Kt&&n.composing&&U.empty&&(m.start!=m.endB||n.input.lastAndroidDelete<Date.now()-100)&&(U.head==v||U.head==T.mapping.map(A)-1)||bt&&U.empty&&U.head==v)&&T.setSelection(U)}V&&T.ensureMarks(V),s&&T.setMeta("composition",s),n.dispatch(T.scrollIntoView())}function Nf(n,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:ll(n,e.resolve(t.anchor),e.resolve(t.head))}function M5(n,e){let t=n.firstChild.marks,r=e.firstChild.marks,o=t,s=r,i,l,a;for(let d=0;d<r.length;d++)o=r[d].removeFromSet(o);for(let d=0;d<t.length;d++)s=t[d].removeFromSet(s);if(o.length==1&&s.length==0)l=o[0],i="add",a=d=>d.mark(l.addToSet(d.marks));else if(o.length==0&&s.length==1)l=s[0],i="remove",a=d=>d.mark(l.removeFromSet(d.marks));else return null;let c=[];for(let d=0;d<e.childCount;d++)c.push(a(e.child(d)));if(ae.from(c).eq(n))return{mark:l,type:i}}function N5(n,e,t,r,o){if(!r.parent.isTextblock||t-e<=o.pos-r.pos||bl(r,!0,!1)<o.pos)return!1;let s=n.resolve(e);if(s.parentOffset<s.parent.content.size||!s.parent.isTextblock)return!1;let i=n.resolve(bl(s,!0,!0));return!i.parent.isTextblock||i.pos>t||bl(i,!0,!1)<t?!1:r.parent.content.cut(r.parentOffset).eq(i.parent.content)}function bl(n,e,t){let r=n.depth,o=e?n.end():n.pos;for(;r>0&&(e||n.indexAfter(r)==n.node(r).childCount);)r--,o++,e=!1;if(t){let s=n.node(r).maybeChild(n.indexAfter(r));for(;s&&!s.isLeaf;)s=s.firstChild,o++}return o}function _5(n,e,t,r,o){let s=n.findDiffStart(e,t);if(s==null)return null;let{a:i,b:l}=n.findDiffEnd(e,t+n.size,t+e.size);if(o=="end"){let a=Math.max(0,s-Math.min(i,l));r-=i+a-s}if(i<s&&n.size<e.size){let a=r<=s&&r>=i?s-r:0;s-=a,s&&s<e.size&&_f(e.textBetween(s-1,s+1))&&(s+=a?1:-1),l=s+(l-i),i=s}else if(l<s){let a=r<=s&&r>=l?s-r:0;s-=a,s&&s<n.size&&_f(n.textBetween(s-1,s+1))&&(s+=a?1:-1),i=s+(i-l),l=s}return{start:s,endA:i,endB:l}}function _f(n){if(n.length!=2)return!1;let e=n.charCodeAt(0),t=n.charCodeAt(1);return e>=56320&&e<=57343&&t>=55296&&t<=56319}class I5{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new qv,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Bf),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Lf(this),Df(this),this.nodeViews=Rf(this),this.docView=zd(this.state.doc,If(this),vl(this),this.dom,this),this.domObserver=new S5(this,(r,o,s,i)=>O5(this,r,o,s,i)),this.domObserver.start(),e5(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&fl(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Bf),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let r in this._props)t[r]=this._props[r];t.state=this.state;for(let r in e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r;let o=this.state,s=!1,i=!1;e.storedMarks&&this.composing&&(Ef(this),i=!0),this.state=e;let l=o.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let p=Rf(this);L5(p,this.nodeViews)&&(this.nodeViews=p,s=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&fl(this),this.editable=Lf(this),Df(this);let a=vl(this),c=If(this),d=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=s||!this.docView.matchesNode(e.doc,c,a);(f||!e.selection.eq(o.selection))&&(i=!0);let h=d=="preserve"&&i&&this.dom.style.overflowAnchor==null&&pv(this);if(i){this.domObserver.stop();let p=f&&(bt||st)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&D5(o.selection,e.selection);if(f){let m=st?this.trackWrites=this.domSelectionRange().focusNode:null;(s||!this.docView.update(e.doc,c,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=zd(e.doc,c,a,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Fv(this))?hn(this,p):(Xd(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():h&&mv(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof Ae){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&Od(this,t.getBoundingClientRect(),e)}else Od(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let r=this.directPlugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let r=this.state.plugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let r=this.pluginViews[t];r.update&&r.update(this,e)}}updateDraggedNode(e,t){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let s=r.from+(this.state.doc.content.size-t.doc.content.size);(s>0&&this.state.doc.nodeAt(s))==r.node&&(o=s)}this.dragging=new Sf(e.slice,e.move,o<0?void 0:Ae.create(this.state.doc,o))}someProp(e,t){let r=this._props&&this._props[e],o;if(r!=null&&(o=t?t(r):r))return o;for(let i=0;i<this.directPlugins.length;i++){let l=this.directPlugins[i].props[e];if(l!=null&&(o=t?t(l):l))return o}let s=this.state.plugins;if(s)for(let i=0;i<s.length;i++){let l=s[i].props[e];if(l!=null&&(o=t?t(l):l))return o}}hasFocus(){if(bt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&gv(this.dom),hn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return Cv(this,e)}coordsAtPos(e,t=1){return Ld(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let o=this.docView.posFromDOM(e,t,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,t){return xv(this,t||this.state,e)}pasteHTML(e,t){return Ro(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Ro(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(t5(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],vl(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return r5(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return ut&&this.root.nodeType===11&&av(this.dom.ownerDocument)==this.dom?k5(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function If(n){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(n.editable),n.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(n.state)),t)for(let r in t)r=="class"?e.class+=" "+t[r]:r=="style"?e.style=(e.style?e.style+";":"")+t[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(t[r]))}),e.translate||(e.translate="no"),[It.node(0,n.state.doc.content.size,e)]}function Df(n){if(n.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),n.cursorWrapper={dom:e,deco:It.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function Lf(n){return!n.someProp("editable",e=>e(n.state)===!1)}function D5(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}function Rf(n){let e=Object.create(null);function t(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function L5(n,e){let t=0,r=0;for(let o in n){if(n[o]!=e[o])return!0;t++}for(let o in e)r++;return t!=r}function Bf(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Ln={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Hs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},R5=typeof navigator<"u"&&/Mac/.test(navigator.platform),B5=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),nt=0;nt<10;nt++)Ln[48+nt]=Ln[96+nt]=String(nt);for(var nt=1;nt<=24;nt++)Ln[nt+111]="F"+nt;for(var nt=65;nt<=90;nt++)Ln[nt]=String.fromCharCode(nt+32),Hs[nt]=String.fromCharCode(nt);for(var El in Ln)Hs.hasOwnProperty(El)||(Hs[El]=Ln[El]);function $5(n){var e=R5&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||B5&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Hs:Ln)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const P5=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function F5(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,o,s,i;for(let l=0;l<e.length-1;l++){let a=e[l];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))s=!0;else if(/^mod$/i.test(a))P5?i=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(t="Alt-"+t),o&&(t="Ctrl-"+t),i&&(t="Meta-"+t),s&&(t="Shift-"+t),t}function V5(n){let e=Object.create(null);for(let t in n)e[F5(t)]=n[t];return e}function Cl(n,e,t=!0){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t&&e.shiftKey&&(n="Shift-"+n),n}function z5(n){return new vt({props:{handleKeyDown:H5(n)}})}function H5(n){let e=V5(n);return function(t,r){let o=$5(r),s,i=e[Cl(o,r)];if(i&&i(t.state,t.dispatch,t))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[Cl(o,r,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(s=Ln[r.keyCode])&&s!=o){let l=e[Cl(s,r)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const U5=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function j5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}const W5=(n,e,t)=>{let r=j5(n,t);if(!r)return!1;let o=$f(r);if(!o){let i=r.blockRange(),l=i&&Ir(i);return l==null?!1:(e&&e(n.tr.lift(i,l).scrollIntoView()),!0)}let s=o.nodeBefore;if(!s.type.spec.isolating&&Vf(n,o,e))return!0;if(r.parent.content.size==0&&(Ur(s,"end")||Ae.isSelectable(s))){let i=ja(n.doc,r.before(),r.after(),ye.empty);if(i&&i.slice.size<i.to-i.from){if(e){let l=n.tr.step(i);l.setSelection(Ur(s,"end")?Re.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):Ae.create(l.doc,o.pos-s.nodeSize)),e(l.scrollIntoView())}return!0}}return s.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos-s.nodeSize,o.pos).scrollIntoView()),!0):!1};function Ur(n,e,t=!1){for(let r=n;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(t&&r.childCount!=1)return!1}return!1}const K5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):r.parentOffset>0)return!1;s=$f(r)}let i=s&&s.nodeBefore;return!i||!Ae.isSelectable(i)?!1:(e&&e(n.tr.setSelection(Ae.create(n.doc,s.pos-i.nodeSize)).scrollIntoView()),!0)};function $f(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){if(n.index(e)>0)return n.doc.resolve(n.before(e+1));if(n.node(e).type.spec.isolating)break}return null}function Y5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset<t.parent.content.size)?null:t}const G5=(n,e,t)=>{let r=Y5(n,t);if(!r)return!1;let o=Pf(r);if(!o)return!1;let s=o.nodeAfter;if(Vf(n,o,e))return!0;if(r.parent.content.size==0&&(Ur(s,"start")||Ae.isSelectable(s))){let i=ja(n.doc,r.before(),r.after(),ye.empty);if(i&&i.slice.size<i.to-i.from){if(e){let l=n.tr.step(i);l.setSelection(Ur(s,"start")?Re.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):Ae.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return s.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos,o.pos+s.nodeSize).scrollIntoView()),!0):!1},J5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,s=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):r.parentOffset<r.parent.content.size)return!1;s=Pf(r)}let i=s&&s.nodeAfter;return!i||!Ae.isSelectable(i)?!1:(e&&e(n.tr.setSelection(Ae.create(n.doc,s.pos)).scrollIntoView()),!0)};function Pf(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){let t=n.node(e);if(n.index(e)+1<t.childCount)return n.doc.resolve(n.after(e+1));if(t.type.spec.isolating)break}return null}const Z5=(n,e)=>{let t=n.selection,r=t instanceof Ae,o;if(r){if(t.node.isTextblock||!Tn(n.doc,t.from))return!1;o=t.from}else if(o=Is(n.doc,t.from,-1),o==null)return!1;if(e){let s=n.tr.join(o);r&&s.setSelection(Ae.create(s.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},X5=(n,e)=>{let t=n.selection,r;if(t instanceof Ae){if(t.node.isTextblock||!Tn(n.doc,t.to))return!1;r=t.to}else if(r=Is(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},Q5=(n,e)=>{let{$from:t,$to:r}=n.selection,o=t.blockRange(r),s=o&&Ir(o);return s==null?!1:(e&&e(n.tr.lift(o,s).scrollIntoView()),!0)},q5=(n,e)=>{let{$head:t,$anchor:r}=n.selection;return!t.parent.type.spec.code||!t.sameParent(r)?!1:(e&&e(n.tr.insertText(`
19
19
  `).scrollIntoView()),!0)};function Ff(n){for(let e=0;e<n.edgeCount;e++){let{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}const e3=(n,e)=>{let{$head:t,$anchor:r}=n.selection;if(!t.parent.type.spec.code||!t.sameParent(r))return!1;let o=t.node(-1),s=t.indexAfter(-1),i=Ff(o.contentMatchAt(s));if(!i||!o.canReplaceWith(s,s,i))return!1;if(e){let l=t.after(),a=n.tr.replaceWith(l,l,i.createAndFill());a.setSelection(Re.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},t3=(n,e)=>{let t=n.selection,{$from:r,$to:o}=t;if(t instanceof Ut||r.parent.inlineContent||o.parent.inlineContent)return!1;let s=Ff(o.parent.contentMatchAt(o.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let i=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=n.tr.insert(i,s.createAndFill());l.setSelection(Be.create(l.doc,i+1)),e(l.scrollIntoView())}return!0},n3=(n,e)=>{let{$cursor:t}=n.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let s=t.before();if(Dr(n.doc,s))return e&&e(n.tr.split(s).scrollIntoView()),!0}let r=t.blockRange(),o=r&&Ir(r);return o==null?!1:(e&&e(n.tr.lift(r,o).scrollIntoView()),!0)},r3=(n,e)=>{let{$from:t,to:r}=n.selection,o,s=t.sharedDepth(r);return s==0?!1:(o=t.before(s),e&&e(n.tr.setSelection(Ae.create(n.doc,o))),!0)};function o3(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,s=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(s-1,s)?(t&&t(n.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(s,s+1)||!(o.isTextblock||Tn(n.doc,e.pos))?!1:(t&&t(n.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function Vf(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,s,i;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(o3(n,e,t))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(s=(i=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&i.matchType(s[0]||o.type).validEnd){if(t){let f=e.pos+o.nodeSize,h=ae.empty;for(let g=s.length-1;g>=0;g--)h=ae.from(s[g].create(null,h));h=ae.from(r.copy(h));let p=n.tr.step(new Xe(e.pos-1,f,e.pos,f,new ye(h,1,0),s.length,!0)),m=f+2*s.length;Tn(p.doc,m)&&p.join(m),t(p.scrollIntoView())}return!0}let a=Re.findFrom(e,1),c=a&&a.$from.blockRange(a.$to),d=c&&Ir(c);if(d!=null&&d>=e.depth)return t&&t(n.tr.lift(c,d).scrollIntoView()),!0;if(l&&Ur(o,"start",!0)&&Ur(r,"end")){let f=r,h=[];for(;h.push(f),!f.isTextblock;)f=f.lastChild;let p=o,m=1;for(;!p.isTextblock;p=p.firstChild)m++;if(f.canReplace(f.childCount,f.childCount,p.content)){if(t){let g=ae.empty;for(let C=h.length-1;C>=0;C--)g=ae.from(h[C].copy(g));let y=n.tr.step(new Xe(e.pos-h.length,e.pos+o.nodeSize,e.pos+m,e.pos+o.nodeSize-m,new ye(g,h.length,0),0,!0));t(y.scrollIntoView())}return!0}}return!1}function zf(n){return function(e,t){let r=e.selection,o=n<0?r.$from:r.$to,s=o.depth;for(;o.node(s).isInline;){if(!s)return!1;s--}return o.node(s).isTextblock?(t&&t(e.tr.setSelection(Be.create(e.doc,n<0?o.start(s):o.end(s)))),!0):!1}}const s3=zf(-1),i3=zf(1);function a3(n,e=null){return function(t,r){let{$from:o,$to:s}=t.selection,i=o.blockRange(s),l=i&&Ua(i,n,e);return l?(r&&r(t.tr.wrap(i,l).scrollIntoView()),!0):!1}}function Hf(n,e=null){return function(t,r){let o=!1;for(let s=0;s<t.selection.ranges.length&&!o;s++){let{$from:{pos:i},$to:{pos:l}}=t.selection.ranges[s];t.doc.nodesBetween(i,l,(a,c)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(n,e)))if(a.type==n)o=!0;else{let d=t.doc.resolve(c),f=d.index();o=d.parent.canReplaceWith(f,f+1,n)}})}if(!o)return!1;if(r){let s=t.tr;for(let i=0;i<t.selection.ranges.length;i++){let{$from:{pos:l},$to:{pos:a}}=t.selection.ranges[i];s.setBlockType(l,a,n,e)}r(s.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function l3(n,e=null){return function(t,r){let{$from:o,$to:s}=t.selection,i=o.blockRange(s),l=!1,a=i;if(!i)return!1;if(i.depth>=2&&o.node(i.depth-1).type.compatibleContent(n)&&i.startIndex==0){if(o.index(i.depth-1)==0)return!1;let d=t.doc.resolve(i.start-2);a=new Ts(d,d,i.depth),i.endIndex<i.parent.childCount&&(i=new Ts(o,t.doc.resolve(s.end(i.depth)),i.depth)),l=!0}let c=Ua(a,n,e,i);return c?(r&&r(c3(t.tr,i,c,l,n).scrollIntoView()),!0):!1}}function c3(n,e,t,r,o){let s=ae.empty;for(let d=t.length-1;d>=0;d--)s=ae.from(t[d].type.create(t[d].attrs,s));n.step(new Xe(e.start-(r?2:0),e.end,e.start,e.end,new ye(s,0,0),t.length,!0));let i=0;for(let d=0;d<t.length;d++)t[d].type==o&&(i=d+1);let l=t.length-i,a=e.start+t.length-(r?2:0),c=e.parent;for(let d=e.startIndex,f=e.endIndex,h=!0;d<f;d++,h=!1)!h&&Dr(n.doc,a,l)&&(n.split(a,l),a+=2*l),a+=c.child(d).nodeSize;return n}function u3(n){return function(e,t){let{$from:r,$to:o}=e.selection,s=r.blockRange(o,i=>i.childCount>0&&i.firstChild.type==n);return s?t?r.node(s.depth-1).type==n?d3(e,t,n,s):f3(e,t,s):!0:!1}}function d3(n,e,t,r){let o=n.tr,s=r.end,i=r.$to.end(r.depth);s<i&&(o.step(new Xe(s-1,i,s,i,new ye(ae.from(t.create(null,r.parent.copy())),1,0),1,!0)),r=new Ts(o.doc.resolve(r.$from.pos),o.doc.resolve(i),r.depth));const l=Ir(r);if(l==null)return!1;o.lift(r,l);let a=o.mapping.map(s,-1)-1;return Tn(o.doc,a)&&o.join(a),e(o.scrollIntoView()),!0}function f3(n,e,t){let r=n.tr,o=t.parent;for(let p=t.end,m=t.endIndex-1,g=t.startIndex;m>g;m--)p-=o.child(m).nodeSize,r.delete(p-1,p+1);let s=r.doc.resolve(t.start),i=s.nodeAfter;if(r.mapping.map(t.end)!=t.start+s.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,a=t.endIndex==o.childCount,c=s.node(-1),d=s.index(-1);if(!c.canReplace(d+(l?0:1),d+1,i.content.append(a?ae.empty:ae.from(o))))return!1;let f=s.pos,h=f+i.nodeSize;return r.step(new Xe(f-(l?1:0),h+(a?1:0),f+1,h-1,new ye((l?ae.empty:ae.from(o.copy(ae.empty))).append(a?ae.empty:ae.from(o.copy(ae.empty))),l?0:1,a?0:1),l?0:1)),e(r.scrollIntoView()),!0}function h3(n){return function(e,t){let{$from:r,$to:o}=e.selection,s=r.blockRange(o,c=>c.childCount>0&&c.firstChild.type==n);if(!s)return!1;let i=s.startIndex;if(i==0)return!1;let l=s.parent,a=l.child(i-1);if(a.type!=n)return!1;if(t){let c=a.lastChild&&a.lastChild.type==l.type,d=ae.from(c?n.create():null),f=new ye(ae.from(n.create(null,ae.from(l.type.create(null,d)))),c?3:1,0),h=s.start,p=s.end;t(e.tr.step(new Xe(h-(c?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}function Us(n){const{state:e,transaction:t}=n;let{selection:r}=t,{doc:o}=t,{storedMarks:s}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return s},get selection(){return r},get doc(){return o},get tr(){return r=t.selection,o=t.doc,s=t.storedMarks,t}}}class js{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:r}=this,{view:o}=t,{tr:s}=r,i=this.buildProps(s);return Object.fromEntries(Object.entries(e).map(([l,a])=>[l,(...d)=>{const f=a(...d)(i);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(s),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:r,editor:o,state:s}=this,{view:i}=o,l=[],a=!!e,c=e||s.tr,d=()=>(!a&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(c),l.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(r).map(([h,p])=>[h,(...g)=>{const y=this.buildProps(c,t),C=p(...g)(y);return l.push(C),f}])),run:d};return f}createCan(e){const{rawCommands:t,state:r}=this,o=!1,s=e||r.tr,i=this.buildProps(s,o);return{...Object.fromEntries(Object.entries(t).map(([a,c])=>[a,(...d)=>c(...d)({...i,dispatch:void 0})])),chain:()=>this.createChain(s,o)}}buildProps(e,t=!0){const{rawCommands:r,editor:o,state:s}=this,{view:i}=o,l={tr:e,editor:o,view:i,state:Us({state:s,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([a,c])=>[a,(...d)=>c(...d)(l)]))}};return l}}class p3{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,t)),this}off(e,t){const r=this.callbacks[e];return r&&(t?this.callbacks[e]=r.filter(o=>o!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function be(n,e,t){return n.config[e]===void 0&&n.parent?be(n.parent,e,t):typeof n.config[e]=="function"?n.config[e].bind({...t,parent:n.parent?be(n.parent,e,t):null}):n.config[e]}function Ws(n){const e=n.filter(o=>o.type==="extension"),t=n.filter(o=>o.type==="node"),r=n.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:r}}function Uf(n){const e=[],{nodeExtensions:t,markExtensions:r}=Ws(n),o=[...t,...r],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage},a=be(i,"addGlobalAttributes",l);if(!a)return;a().forEach(d=>{d.types.forEach(f=>{Object.entries(d.attributes).forEach(([h,p])=>{e.push({type:f,name:h,attribute:{...s,...p}})})})})}),o.forEach(i=>{const l={name:i.name,options:i.options,storage:i.storage},a=be(i,"addAttributes",l);if(!a)return;const c=a();Object.entries(c).forEach(([d,f])=>{const h={...s,...f};typeof(h==null?void 0:h.default)=="function"&&(h.default=h.default()),h!=null&&h.isRequired&&(h==null?void 0:h.default)===void 0&&delete h.default,e.push({type:i.name,name:d,attribute:h})})}),e}function Qe(n,e){if(typeof n=="string"){if(!e.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return e.nodes[n]}return n}function ht(...n){return n.filter(e=>!!e).reduce((e,t)=>{const r={...e};return Object.entries(t).forEach(([o,s])=>{if(!r[o]){r[o]=s;return}if(o==="class"){const l=s?s.split(" "):[],a=r[o]?r[o].split(" "):[],c=l.filter(d=>!a.includes(d));r[o]=[...a,...c].join(" ")}else o==="style"?r[o]=[r[o],s].join("; "):r[o]=s}),r},{})}function Sl(n,e){return e.filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(n.attrs)||{}:{[t.name]:n.attrs[t.name]}).reduce((t,r)=>ht(t,r),{})}function jf(n){return typeof n=="function"}function Ie(n,e=void 0,...t){return jf(n)?e?n.bind(e)(...t):n(...t):n}function m3(n={}){return Object.keys(n).length===0&&n.constructor===Object}function g3(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function Wf(n,e){return n.style?n:{...n,getAttrs:t=>{const r=n.getAttrs?n.getAttrs(t):n.attrs;if(r===!1)return!1;const o=e.reduce((s,i)=>{const l=i.attribute.parseHTML?i.attribute.parseHTML(t):g3(t.getAttribute(i.name));return l==null?s:{...s,[i.name]:l}},{});return{...r,...o}}}}function Kf(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&m3(t)?!1:t!=null))}function y3(n,e){var t;const r=Uf(n),{nodeExtensions:o,markExtensions:s}=Ws(n),i=(t=o.find(c=>be(c,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(o.map(c=>{const d=r.filter(C=>C.type===c.name),f={name:c.name,options:c.options,storage:c.storage,editor:e},h=n.reduce((C,S)=>{const k=be(S,"extendNodeSchema",f);return{...C,...k?k(c):{}}},{}),p=Kf({...h,content:Ie(be(c,"content",f)),marks:Ie(be(c,"marks",f)),group:Ie(be(c,"group",f)),inline:Ie(be(c,"inline",f)),atom:Ie(be(c,"atom",f)),selectable:Ie(be(c,"selectable",f)),draggable:Ie(be(c,"draggable",f)),code:Ie(be(c,"code",f)),defining:Ie(be(c,"defining",f)),isolating:Ie(be(c,"isolating",f)),attrs:Object.fromEntries(d.map(C=>{var S;return[C.name,{default:(S=C==null?void 0:C.attribute)===null||S===void 0?void 0:S.default}]}))}),m=Ie(be(c,"parseHTML",f));m&&(p.parseDOM=m.map(C=>Wf(C,d)));const g=be(c,"renderHTML",f);g&&(p.toDOM=C=>g({node:C,HTMLAttributes:Sl(C,d)}));const y=be(c,"renderText",f);return y&&(p.toText=y),[c.name,p]})),a=Object.fromEntries(s.map(c=>{const d=r.filter(y=>y.type===c.name),f={name:c.name,options:c.options,storage:c.storage,editor:e},h=n.reduce((y,C)=>{const S=be(C,"extendMarkSchema",f);return{...y,...S?S(c):{}}},{}),p=Kf({...h,inclusive:Ie(be(c,"inclusive",f)),excludes:Ie(be(c,"excludes",f)),group:Ie(be(c,"group",f)),spanning:Ie(be(c,"spanning",f)),code:Ie(be(c,"code",f)),attrs:Object.fromEntries(d.map(y=>{var C;return[y.name,{default:(C=y==null?void 0:y.attribute)===null||C===void 0?void 0:C.default}]}))}),m=Ie(be(c,"parseHTML",f));m&&(p.parseDOM=m.map(y=>Wf(y,d)));const g=be(c,"renderHTML",f);return g&&(p.toDOM=y=>g({mark:y,HTMLAttributes:Sl(y,d)})),[c.name,p]}));return new Ty({topNode:i,nodes:l,marks:a})}function wl(n,e){return e.nodes[n]||e.marks[n]||null}function Yf(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}const v3=(n,e=500)=>{let t="";const r=n.parentOffset;return n.parent.nodesBetween(Math.max(0,r-e),r,(o,s,i,l)=>{var a,c;const d=((c=(a=o.type.spec).toText)===null||c===void 0?void 0:c.call(a,{node:o,pos:s,parent:i,index:l}))||o.textContent||"%leaf%";t+=d.slice(0,Math.max(0,r-s))}),t};function kl(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class Gf{constructor(e){this.find=e.find,this.handler=e.handler}}const b3=(n,e)=>{if(kl(e))return e.exec(n);const t=e(n);if(!t)return null;const r=[t.text];return r.index=t.index,r.input=n,r.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(t.replaceWith)),r};function Tl(n){var e;const{editor:t,from:r,to:o,text:s,rules:i,plugin:l}=n,{view:a}=t;if(a.composing)return!1;const c=a.state.doc.resolve(r);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(h=>h.type.spec.code))return!1;let d=!1;const f=v3(c)+s;return i.forEach(h=>{if(d)return;const p=b3(f,h.find);if(!p)return;const m=a.state.tr,g=Us({state:a.state,transaction:m}),y={from:r-(p[0].length-s.length),to:o},{commands:C,chain:S,can:k}=new js({editor:t,state:g});h.handler({state:g,range:y,match:p,commands:C,chain:S,can:k})===null||!m.steps.length||(m.setMeta(l,{transform:m,from:r,to:o,text:s}),a.dispatch(m),d=!0)}),d}function E3(n){const{editor:e,rules:t}=n,r=new vt({state:{init(){return null},apply(o,s){const i=o.getMeta(r);return i||(o.selectionSet||o.docChanged?null:s)}},props:{handleTextInput(o,s,i,l){return Tl({editor:e,from:s,to:i,text:l,rules:t,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:s}=o.state.selection;s&&Tl({editor:e,from:s.pos,to:s.pos,text:"",rules:t,plugin:r})}),!1)},handleKeyDown(o,s){if(s.key!=="Enter")return!1;const{$cursor:i}=o.state.selection;return i?Tl({editor:e,from:i.pos,to:i.pos,text:`
20
20
  `,rules:t,plugin:r}):!1}},isInputRules:!0});return r}function C3(n){return typeof n=="number"}class S3{constructor(e){this.find=e.find,this.handler=e.handler}}const w3=(n,e)=>{if(kl(e))return[...n.matchAll(e)];const t=e(n);return t?t.map(r=>{const o=[r.text];return o.index=r.index,o.input=n,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function k3(n){const{editor:e,state:t,from:r,to:o,rule:s,pasteEvent:i,dropEvent:l}=n,{commands:a,chain:c,can:d}=new js({editor:e,state:t}),f=[];return t.doc.nodesBetween(r,o,(p,m)=>{if(!p.isTextblock||p.type.spec.code)return;const g=Math.max(r,m),y=Math.min(o,m+p.content.size),C=p.textBetween(g-m,y-m,void 0,"");w3(C,s.find).forEach(k=>{if(k.index===void 0)return;const v=g+k.index+1,A=v+k[0].length,T={from:t.tr.mapping.map(v),to:t.tr.mapping.map(A)},V=s.handler({state:t,range:T,match:k,commands:a,chain:c,can:d,pasteEvent:i,dropEvent:l});f.push(V)})}),f.every(p=>p!==null)}function T3(n){const{editor:e,rules:t}=n;let r=null,o=!1,s=!1,i=new ClipboardEvent("paste"),l=new DragEvent("drop");return t.map(c=>new vt({view(d){const f=h=>{var p;r=!((p=d.dom.parentElement)===null||p===void 0)&&p.contains(h.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(d,f)=>(s=r===d.dom.parentElement,l=f,!1),paste:(d,f)=>{var h;const p=(h=f.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return i=f,o=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,f,h)=>{const p=d[0],m=p.getMeta("uiEvent")==="paste"&&!o,g=p.getMeta("uiEvent")==="drop"&&!s;if(!m&&!g)return;const y=f.doc.content.findDiffStart(h.doc.content),C=f.doc.content.findDiffEnd(h.doc.content);if(!C3(y)||!C||y===C.b)return;const S=h.tr,k=Us({state:h,transaction:S});if(!(!k3({editor:e,state:k,from:Math.max(y-1,0),to:C.b-1,rule:c,pasteEvent:i,dropEvent:l})||!S.steps.length))return l=new DragEvent("drop"),i=new ClipboardEvent("paste"),S}}))}function x3(n){const e=n.filter((t,r)=>n.indexOf(t)!==r);return[...new Set(e)]}class jr{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=jr.resolve(e),this.schema=y3(this.extensions,t),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const s={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:wl(r.name,this.schema)};r.type==="mark"&&(!((o=Ie(be(r,"keepOnSplit",s)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const i=be(r,"onBeforeCreate",s);i&&this.editor.on("beforeCreate",i);const l=be(r,"onCreate",s);l&&this.editor.on("create",l);const a=be(r,"onUpdate",s);a&&this.editor.on("update",a);const c=be(r,"onSelectionUpdate",s);c&&this.editor.on("selectionUpdate",c);const d=be(r,"onTransaction",s);d&&this.editor.on("transaction",d);const f=be(r,"onFocus",s);f&&this.editor.on("focus",f);const h=be(r,"onBlur",s);h&&this.editor.on("blur",h);const p=be(r,"onDestroy",s);p&&this.editor.on("destroy",p)})}static resolve(e){const t=jr.sort(jr.flatten(e)),r=x3(t.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(t=>{const r={name:t.name,options:t.options,storage:t.storage},o=be(t,"addExtensions",r);return o?[t,...this.flatten(o())]:t}).flat(10)}static sort(e){return e.sort((r,o)=>{const s=be(r,"priority")||100,i=be(o,"priority")||100;return s>i?-1:s<i?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:wl(t.name,this.schema)},o=be(t,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,t=jr.sort([...this.extensions].reverse()),r=[],o=[],s=t.map(i=>{const l={name:i.name,options:i.options,storage:i.storage,editor:e,type:wl(i.name,this.schema)},a=[],c=be(i,"addKeyboardShortcuts",l);let d={};if(i.type==="mark"&&i.config.exitable&&(d.ArrowRight=()=>tn.handleExit({editor:e,mark:i})),c){const g=Object.fromEntries(Object.entries(c()).map(([y,C])=>[y,()=>C({editor:e})]));d={...d,...g}}const f=z5(d);a.push(f);const h=be(i,"addInputRules",l);Yf(i,e.options.enableInputRules)&&h&&r.push(...h());const p=be(i,"addPasteRules",l);Yf(i,e.options.enablePasteRules)&&p&&o.push(...p());const m=be(i,"addProseMirrorPlugins",l);if(m){const g=m();a.push(...g)}return a}).flat();return[E3({editor:e,rules:r}),...T3({editor:e,rules:o}),...s]}get attributes(){return Uf(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Ws(this.extensions);return Object.fromEntries(t.filter(r=>!!be(r,"addNodeView")).map(r=>{const o=this.attributes.filter(a=>a.type===r.name),s={name:r.name,options:r.options,storage:r.storage,editor:e,type:Qe(r.name,this.schema)},i=be(r,"addNodeView",s);if(!i)return[];const l=(a,c,d,f)=>{const h=Sl(a,o);return i()({editor:e,node:a,getPos:d,decorations:f,HTMLAttributes:h,extension:r})};return[r.name,l]}))}}function A3(n){return Object.prototype.toString.call(n).slice(8,-1)}function xl(n){return A3(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function Ks(n,e){const t={...n};return xl(n)&&xl(e)&&Object.keys(e).forEach(r=>{xl(e[r])?r in n?t[r]=Ks(n[r],e[r]):Object.assign(t,{[r]:e[r]}):Object.assign(t,{[r]:e[r]})}),t}class Dt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ie(be(this,"addOptions",{name:this.name}))),this.storage=Ie(be(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Dt(e)}configure(e={}){const t=this.extend();return t.options=Ks(this.options,e),t.storage=Ie(be(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Dt(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=Ie(be(t,"addOptions",{name:t.name})),t.storage=Ie(be(t,"addStorage",{name:t.name,options:t.options})),t}}function Jf(n,e,t){const{from:r,to:o}=e,{blockSeparator:s=`
21
21
 
@@ -123,9 +123,9 @@ img.ProseMirror-separator {
123
123
  `,A7="️",O7="‍";let Hi=null,Ui=null;function M7(n){n===void 0&&(n=[]);const e={};Et.groups=e;const t=new Et;Hi==null&&(Hi=vp(C7)),Ui==null&&(Ui=vp(S7)),pe(t,"'",Oi),pe(t,"{",Yo),pe(t,"}",Go),pe(t,"[",hi),pe(t,"]",pi),pe(t,"(",mi),pe(t,")",gi),pe(t,"<",yi),pe(t,">",vi),pe(t,"(",bi),pe(t,")",Ei),pe(t,"「",Ci),pe(t,"」",Si),pe(t,"『",wi),pe(t,"』",ki),pe(t,"<",Ti),pe(t,">",xi),pe(t,"&",Ai),pe(t,"*",Mi),pe(t,"@",Pn),pe(t,"`",_i),pe(t,"^",Ii),pe(t,":",Fn),pe(t,",",hc),pe(t,"$",Di),pe(t,".",on),pe(t,"=",Li),pe(t,"!",pc),pe(t,"-",sn),pe(t,"%",Ri),pe(t,"|",Bi),pe(t,"+",$i),pe(t,"#",Pi),pe(t,"?",Fi),pe(t,'"',mc),pe(t,"/",an),pe(t,";",gc),pe(t,"~",Jo),pe(t,"_",Vi),pe(t,"\\",Ni);const r=Lt(t,bc,dc,{[oc]:!0});Lt(r,bc,r);const o=Lt(t,ro,yn,{[sc]:!0});Lt(o,ro,o);const s=Lt(t,yc,lc,{[ic]:!0});Lt(s,ro),Lt(s,yc,s);const i=Lt(t,gp,hp,{[dp]:!0});pe(t,yp,fc,{[dp]:!0}),pe(i,yp),Lt(i,gp,i);const l=Lt(t,vc,pp,{[up]:!0});Lt(l,vc,l),pe(l,A7,l);const a=pe(l,O7);Lt(a,vc,l);const c=[[ro,o]],d=[[ro,null],[yc,s]];for(let f=0;f<Hi.length;f++)Vn(t,Hi[f],cc,yn,c);for(let f=0;f<Ui.length;f++)Vn(t,Ui[f],uc,lc,d);br(cc,{tld:!0,ascii:!0},e),br(uc,{utld:!0,alpha:!0},e),Vn(t,"file",fi,yn,c),Vn(t,"mailto",fi,yn,c),Vn(t,"http",no,yn,c),Vn(t,"https",no,yn,c),Vn(t,"ftp",no,yn,c),Vn(t,"ftps",no,yn,c),br(fi,{scheme:!0,ascii:!0},e),br(no,{slashscheme:!0,ascii:!0},e),n=n.sort((f,h)=>f[0]>h[0]?1:-1);for(let f=0;f<n.length;f++){const h=n[f][0],m=n[f][1]?{[w7]:!0}:{[k7]:!0};h.indexOf("-")>=0?m[ac]=!0:ro.test(h)?bc.test(h)?m[ui]=!0:m[sc]=!0:m[oc]=!0,fp(t,h,h,m)}return fp(t,"localhost",Ko,{ascii:!0}),t.jd=new Et(zi),{start:t,tokens:to({groups:e},mp)}}function N7(n,e){const t=_7(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=t.length,o=[];let s=0,i=0;for(;i<r;){let l=n,a=null,c=0,d=null,f=-1,h=-1;for(;i<r&&(a=l.go(t[i]));)l=a,l.accepts()?(f=0,h=0,d=l):f>=0&&(f+=t[i].length,h++),c+=t[i].length,s+=t[i].length,i++;s-=f,i-=h,c-=f,o.push({t:d.t,v:e.slice(s-c,s),s:s-c,e:s})}return o}function _7(n){const e=[],t=n.length;let r=0;for(;r<t;){let o=n.charCodeAt(r),s,i=o<55296||o>56319||r+1===t||(s=n.charCodeAt(r+1))<56320||s>57343?n[r]:n.slice(r,r+2);e.push(i),r+=i.length}return e}function Vn(n,e,t,r,o){let s;const i=e.length;for(let l=0;l<i-1;l++){const a=e[l];n.j[a]?s=n.j[a]:(s=new Et(r),s.jr=o.slice(),n.j[a]=s),n=s}return s=new Et(t),s.jr=o.slice(),n.j[e[i-1]]=s,s}function vp(n){const e=[],t=[];let r=0,o="0123456789";for(;r<n.length;){let s=0;for(;o.indexOf(n[r+s])>=0;)s++;if(s>0){e.push(t.join(""));for(let i=parseInt(n.substring(r,r+s),10);i>0;i--)t.pop();r+=s}else t.push(n[r]),r++}return e}const Zo={defaultProtocol:"http",events:null,format:bp,formatHref:bp,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Ec(n,e){e===void 0&&(e=null);let t=to({},Zo);n&&(t=to(t,n instanceof Ec?n.o:n));const r=t.ignoreTags,o=[];for(let s=0;s<r.length;s++)o.push(r[s].toUpperCase());this.o=t,e&&(this.defaultRender=e),this.ignoreTags=o}Ec.prototype={o:Zo,ignoreTags:[],defaultRender(n){return n},check(n){return this.get("validate",n.toString(),n)},get(n,e,t){const r=e!=null;let o=this.o[n];return o&&(typeof o=="object"?(o=t.t in o?o[t.t]:Zo[n],typeof o=="function"&&r&&(o=o(e,t))):typeof o=="function"&&r&&(o=o(e,t.t,t)),o)},getObj(n,e,t){let r=this.o[n];return typeof r=="function"&&e!=null&&(r=r(e,t.t,t)),r},render(n){const e=n.render(this);return(this.get("render",null,n)||this.defaultRender)(e,n.t,n)}};function bp(n){return n}function Ep(n,e){this.t="token",this.v=n,this.tk=e}Ep.prototype={isLink:!1,toString(){return this.v},toHref(n){return this.toString()},toFormattedString(n){const e=this.toString(),t=n.get("truncate",e,this),r=n.get("format",e,this);return t&&r.length>t?r.substring(0,t)+"…":r},toFormattedHref(n){return n.get("formatHref",this.toHref(n.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(n){return n===void 0&&(n=Zo.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(n),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(n){return{type:this.t,value:this.toFormattedString(n),isLink:this.isLink,href:this.toFormattedHref(n),start:this.startIndex(),end:this.endIndex()}},validate(n){return n.get("validate",this.toString(),this)},render(n){const e=this,t=this.toHref(n.get("defaultProtocol")),r=n.get("formatHref",t,this),o=n.get("tagName",t,e),s=this.toFormattedString(n),i={},l=n.get("className",t,e),a=n.get("target",t,e),c=n.get("rel",t,e),d=n.getObj("attributes",t,e),f=n.getObj("events",t,e);return i.href=r,l&&(i.class=l),a&&(i.target=a),c&&(i.rel=c),d&&to(i,d),{tagName:o,attributes:i,content:s,eventListeners:f}}};function ji(n,e){class t extends Ep{constructor(o,s){super(o,s),this.t=n}}for(const r in e)t.prototype[r]=e[r];return t.t=n,t}const Cp=ji("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Sp=ji("text"),I7=ji("nl"),Wi=ji("url",{isLink:!0,toHref(n){return n===void 0&&(n=Zo.defaultProtocol),this.hasProtocol()?this.v:`${n}://${this.v}`},hasProtocol(){const n=this.tk;return n.length>=2&&n[0].t!==Ko&&n[1].t===Fn}}),Rt=n=>new Et(n);function D7(n){let{groups:e}=n;const t=e.domain.concat([Ai,Mi,Pn,Ni,_i,Ii,Di,Li,sn,dc,Ri,Bi,$i,Pi,an,zi,Jo,Vi]),r=[Oi,Fn,hc,on,pc,Fi,mc,gc,yi,vi,Yo,Go,pi,hi,mi,gi,bi,Ei,Ci,Si,wi,ki,Ti,xi],o=[Ai,Oi,Mi,Ni,_i,Ii,Di,Li,sn,Yo,Go,Ri,Bi,$i,Pi,Fi,an,zi,Jo,Vi],s=Rt(),i=pe(s,Jo);Ne(i,o,i),Ne(i,e.domain,i);const l=Rt(),a=Rt(),c=Rt();Ne(s,e.domain,l),Ne(s,e.scheme,a),Ne(s,e.slashscheme,c),Ne(l,o,i),Ne(l,e.domain,l);const d=pe(l,Pn);pe(i,Pn,d),pe(a,Pn,d),pe(c,Pn,d);const f=pe(i,on);Ne(f,o,i),Ne(f,e.domain,i);const h=Rt();Ne(d,e.domain,h),Ne(h,e.domain,h);const p=pe(h,on);Ne(p,e.domain,h);const m=Rt(Cp);Ne(p,e.tld,m),Ne(p,e.utld,m),pe(d,Ko,m);const g=pe(h,sn);Ne(g,e.domain,h),Ne(m,e.domain,h),pe(m,on,p),pe(m,sn,g);const y=pe(m,Fn);Ne(y,e.numeric,Cp);const C=pe(l,sn),S=pe(l,on);Ne(C,e.domain,l),Ne(S,o,i),Ne(S,e.domain,l);const k=Rt(Wi);Ne(S,e.tld,k),Ne(S,e.utld,k),Ne(k,e.domain,l),Ne(k,o,i),pe(k,on,S),pe(k,sn,C),pe(k,Pn,d);const v=pe(k,Fn),A=Rt(Wi);Ne(v,e.numeric,A);const T=Rt(Wi),V=Rt();Ne(T,t,T),Ne(T,r,V),Ne(V,t,T),Ne(V,r,V),pe(k,an,T),pe(A,an,T);const H=pe(a,Fn),U=pe(c,Fn),B=pe(U,an),L=pe(B,an);Ne(a,e.domain,l),pe(a,on,S),pe(a,sn,C),Ne(c,e.domain,l),pe(c,on,S),pe(c,sn,C),Ne(H,e.domain,T),pe(H,an,T),Ne(L,e.domain,T),Ne(L,t,T),pe(L,an,T);const z=[[Yo,Go],[hi,pi],[mi,gi],[yi,vi],[bi,Ei],[Ci,Si],[wi,ki],[Ti,xi]];for(let W=0;W<z.length;W++){const[j,F]=z[W],P=pe(T,j);pe(V,j,P),pe(P,F,T);const G=Rt(Wi);Ne(P,t,G);const D=Rt();Ne(P,r),Ne(G,t,G),Ne(G,r,D),Ne(D,t,G),Ne(D,r,D),pe(G,F,T),pe(D,F,T)}return pe(s,Ko,k),pe(s,fc,I7),{start:s,tokens:mp}}function L7(n,e,t){let r=t.length,o=0,s=[],i=[];for(;o<r;){let l=n,a=null,c=null,d=0,f=null,h=-1;for(;o<r&&!(a=l.go(t[o].t));)i.push(t[o++]);for(;o<r&&(c=a||l.go(t[o].t));)a=null,l=c,l.accepts()?(h=0,f=l):h>=0&&h++,o++,d++;if(h<0)o-=d,o<r&&(i.push(t[o]),o++);else{i.length>0&&(s.push(Cc(Sp,e,i)),i=[]),o-=h,d-=h;const p=f.t,m=t.slice(o-d,o);s.push(Cc(p,e,m))}}return i.length>0&&s.push(Cc(Sp,e,i)),s}function Cc(n,e,t){const r=t[0].s,o=t[t.length-1].e,s=e.slice(r,o);return new n(s,t)}const R7=typeof console<"u"&&console&&console.warn||(()=>{}),B7="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",He={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function $7(){Et.groups={},He.scanner=null,He.parser=null,He.tokenQueue=[],He.pluginQueue=[],He.customSchemes=[],He.initialized=!1}function wp(n,e){if(e===void 0&&(e=!1),He.initialized&&R7(`linkifyjs: already initialized - will not register custom scheme "${n}" ${B7}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))throw new Error(`linkifyjs: incorrect scheme format.
124
124
  1. Must only contain digits, lowercase ASCII letters or "-"
125
125
  2. Cannot start or end with "-"
126
- 3. "-" cannot repeat`);He.customSchemes.push([n,e])}function P7(){He.scanner=M7(He.customSchemes);for(let n=0;n<He.tokenQueue.length;n++)He.tokenQueue[n][1]({scanner:He.scanner});He.parser=D7(He.scanner.tokens);for(let n=0;n<He.pluginQueue.length;n++)He.pluginQueue[n][1]({scanner:He.scanner,parser:He.parser});He.initialized=!0}function F7(n){return He.initialized||P7(),L7(He.parser.start,n,N7(He.scanner.start,n))}function Sc(n,e,t){if(e===void 0&&(e=null),t===void 0&&(t=null),e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new Ec(t),o=F7(n),s=[];for(let i=0;i<o.length;i++){const l=o[i];l.isLink&&(!e||l.t===e)&&r.check(l)&&s.push(l.toFormattedObject(r))}return s}function V7(n){return new vt({key:new jt("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),s=e.some(c=>c.getMeta("preventAutolink"));if(!o||s)return;const{tr:i}=r,l=yb(t.doc,[...e]);if(xb(l).forEach(({newRange:c})=>{const d=bb(r.doc,c,p=>p.isTextblock);let f,h;if(d.length>1?(f=d[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):d.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(f=d[0],h=r.doc.textBetween(f.pos,c.to,void 0," ")),f&&h){const p=h.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;Sc(m).filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>n.validate?n.validate(y.value):!0).forEach(y=>{Il(y.from,y.to,r.doc).some(C=>C.mark.type===n.type)||i.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),!!i.steps.length)return i}})}function z7(n){return new vt({key:new jt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,s;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=nh(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,d=(s=a==null?void 0:a.target)!==null&&s!==void 0?s:l.target;return a&&c?(e.editable&&window.open(c,d),!0):!1}}})}function H7(n){return new vt({key:new jt("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:s}=e,{selection:i}=s,{empty:l}=i;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=Sc(a).find(m=>m.isLink&&m.value===a);if(!a||!c)return!1;const d=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=d==null?void 0:d.match(f),p=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const U7=tn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){wp(n);return}wp(n.scheme,n.optionalSlashes)})},onDestroy(){$7()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Po({find:n=>Sc(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),s=/href="([^"]*)"/,i=o==null?void 0:o.match(s);return i?{href:i[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(V7({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(z7({type:this.type})),this.options.linkOnPaste&&n.push(H7({editor:this.editor,type:this.type})),n}}).extend({addAttributes(){var n;return{...(n=this.parent)==null?void 0:n.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),j7=Dt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new vt({key:new jt("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const s=n.type.createAndFill(),i=(s==null?void 0:s.sameMarkup(n))&&s.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,d=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&d){const f=[this.options.emptyNodeClass];i&&f.push(this.options.emptyEditorClass);const h=It.node(a,a+l.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Ge.create(n,o)}}})]}}),W7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,K7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,Y7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,G7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,J7=tn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Qs({find:W7,type:this.type}),Qs({find:Y7,type:this.type})]},addPasteRules(){return[Po({find:K7,type:this.type}),Po({find:G7,type:this.type})]}}),Z7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,X7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,Q7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,q7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,e8=tn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Qs({find:Z7,type:this.type}),Qs({find:Q7,type:this.type})]},addPasteRules(){return[Po({find:X7,type:this.type}),Po({find:q7,type:this.type})]}}),t8=tn.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),n8=mn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),r8=mn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),kp=tn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Zs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Tp=/^\s*([-+*])\s$/,o8=mn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(r8.name,this.editor.getAttributes(kp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=qs({find:Tp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=qs({find:Tp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(kp.name),editor:this.editor})),[n]}}),s8=mn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),xp=tn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Zs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Ap=/^(\d+)\.\s$/,i8=mn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",ht(this.options.HTMLAttributes,t),0]:["ol",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(s8.name,this.editor.getAttributes(xp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=qs({find:Ap,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=qs({find:Ap,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(xp.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),a8=mn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",ht(this.options.HTMLAttributes,n)]},renderText(){return`
127
- `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:s}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:l}=r.extensionManager,a=s||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:d})=>{if(d&&a&&i){const f=a.filter(h=>l.includes(h.type.name));c.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),wc={BASIC:"basic",FULL:"full"},l8={class:"attachment-list"},c8={class:"attachment-link"},u8={key:1,class:"attachment-no-download"},d8=["href"],Ki=u.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(u.openBlock(),u.createElementBlock("ul",l8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.files,s=>(u.openBlock(),u.createElementBlock("li",{class:"attachment-list__item",key:s.CorrelationId},[u.createElementVNode("div",c8,[r.showDelete?(u.openBlock(),u.createBlock(Je,{key:0,variant:"remove",onClick:i=>t(s),"aria-label":"verwijder"},{default:u.withCtx(()=>[u.createVNode(u.unref(go))]),_:2},1032,["onClick"])):u.createCommentVNode("",!0),r.noDownload?(u.openBlock(),u.createElementBlock("div",u8,[u.createVNode(u.unref(Qn)),u.createTextVNode(" "+u.toDisplayString(s.Naam.trim()),1)])):(u.openBlock(),u.createElementBlock("a",{key:2,href:s.downloadUrl},[u.createVNode(u.unref(Qn)),u.createTextVNode(" "+u.toDisplayString(s.Naam.trim()),1)],8,d8))])]))),128))]))}}),f8={class:"attachment-list"},h8={class:"attachment"},p8=["onClick"],m8=["src","alt"],g8=["onClick"],y8=["href"],v8={class:"btn btn-light download-button-image"},b8=["src","alt"],Yi=u.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=s=>{e("delete",s)},o=(s,i)=>{s.target&&s.target.className==="img-preview"&&e("show",i)};return(s,i)=>(u.openBlock(),u.createElementBlock("ul",f8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.files,l=>(u.openBlock(),u.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[u.createElementVNode("div",h8,[s.showDelete?(u.openBlock(),u.createBlock(Je,{key:0,variant:"remove","aria-label":"verwijder",onClick:u.withModifiers(a=>r(l),["prevent"])},{default:u.withCtx(()=>[u.createVNode(u.unref(go))]),_:2},1032,["onClick"])):u.createCommentVNode("",!0),t.noDownload?(u.openBlock(),u.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[u.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,m8)],8,p8)):(u.openBlock(),u.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(u.openBlock(),u.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[u.createElementVNode("button",v8,[u.createVNode(u.unref(cs))])],8,y8)):u.createCommentVNode("",!0),u.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,b8)],8,g8))])]))),128))]))}}),Op=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),E8=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,C8=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,S8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,w8=(n,e)=>e?Op(n):!Op(n),Gi=(n,e)=>n===void 0?void 0:n.filter(r=>w8(r,e)).map(r=>{const o=typeof r.CorrelationId=="string"?r.CorrelationId:r.CorrelationId!=null?r.CorrelationId.toString():"";return{downloadUrl:E8(r),previewUrl:C8(r),fullImageUrl:S8(r),altName:`${r.Naam}`,...r,CorrelationId:o}}),k8={key:0,class:"pills-list__wrapper"},T8={class:"pills-list__ul"},x8={class:"bd-markdown-editor__menu-bottom"},A8={key:0,class:"vr"},Mp=u.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:wc.BASIC},files:{default:void 0},pills:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=er(t,"modelValue",e),s=[v7,b7,E7,j7.configure({placeholder:t.placeholder}),a8,U7.configure({openOnClick:!1,validate:A=>/^https?:\/\//i.test(A)})];t.variant===wc.FULL&&s.push(J7,e8,t8,n8,o8,i8);const i=y7({content:o.value,extensions:s,onUpdate:({editor:A})=>{const{view:T,state:V}=A,{from:H,to:U}=T.state.selection;if(V.doc.textBetween(H-1,U,"")==" "&&A.getAttributes("link").href!=null&&A.chain().setTextSelection({from:H-1,to:U}).toggleLink({href:A.getAttributes("link").href}).setTextSelection({from:U,to:U}).run(),A.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",A.getHTML())}});u.watch(()=>t.modelValue,A=>{i.value.getHTML()!==A&&i.value.commands.setContent(A,!0,{preserveWhitespace:"full"})});const l=u.computed(()=>t.state===!1?"is-invalid":null),a=u.computed(()=>g("bold")),c=u.computed(()=>g("italic")),d=u.computed(()=>g("underline")),f=u.computed(()=>g("bulletList")),h=u.computed(()=>g("orderedList")),p=u.computed(()=>g("link")),m=u.computed(()=>t.variant===wc.FULL),g=A=>i.value&&i.value.isActive(A)?"active":null,y=u.computed(()=>t.files&&t.files.length>0?Gi(t.files,!1):null),C=u.computed(()=>t.files&&t.files.length>0?Gi(t.files,!0):null),S=A=>{e("action",{name:"delete-attachment",obj:A})},k=A=>{e("action",{name:"image-attachment",obj:A})},v=()=>{const A=i.value.getAttributes("link").href,T=window.prompt("Voeg link toe",A);if(T!==null){if(T===""){i.value.chain().focus().unsetLink().run();return}i.value.chain().focus().toggleLink({href:T}).run()}};return(A,T)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",{class:u.normalizeClass(["bd-markdown-editor",l.value])},[u.createVNode(u.unref(g7),{editor:u.unref(i)},null,8,["editor"]),A.pills?(u.openBlock(),u.createElementBlock("div",k8,[u.createElementVNode("ul",T8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(A.pills,(V,H)=>(u.openBlock(),u.createElementBlock("li",{key:H,class:"pills-list__li"},[u.createVNode(bs,u.normalizeProps(u.guardReactiveProps(V)),null,16)]))),128))])])):u.createCommentVNode("",!0),u.renderSlot(A.$slots,"default"),y.value?(u.openBlock(),u.createBlock(Ki,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:S},null,8,["files"])):u.createCommentVNode("",!0),C.value?(u.openBlock(),u.createBlock(Yi,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:S,onShow:k},null,8,["files"])):u.createCommentVNode("",!0),u.createElementVNode("div",x8,[u.createVNode(Je,{variant:"light",type:"button",onClick:r},{default:u.withCtx(()=>[u.createVNode(u.unref(Qn))]),_:1}),m.value?(u.openBlock(),u.createElementBlock("div",A8)):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Je,{key:1,variant:"light",type:"button",class:u.normalizeClass(a.value),onClick:T[0]||(T[0]=V=>u.unref(i).chain().focus().toggleBold().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(ha))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Je,{key:2,variant:"light",type:"button",class:u.normalizeClass(c.value),onClick:T[1]||(T[1]=V=>u.unref(i).chain().focus().toggleItalic().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(Ea))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Je,{key:3,variant:"light",type:"button",class:u.normalizeClass(d.value),onClick:T[2]||(T[2]=V=>u.unref(i).chain().focus().toggleUnderline().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(Ta))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Je,{key:4,variant:"light",type:"button",class:u.normalizeClass(f.value),onClick:T[3]||(T[3]=V=>u.unref(i).chain().focus().toggleBulletList().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(pa))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Je,{key:5,variant:"light",type:"button",class:u.normalizeClass(h.value),onClick:T[4]||(T[4]=V=>u.unref(i).chain().focus().toggleOrderedList().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(Ca))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Je,{key:6,variant:"light",type:"button",class:u.normalizeClass(p.value),onClick:v},{default:u.withCtx(()=>[u.createVNode(u.unref(ds))]),_:1},8,["class"])):u.createCommentVNode("",!0)])],2),u.createVNode(u.unref(ys),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),O8={class:"header"},M8=u.createElementVNode("div",null,"Menu",-1),N8={class:"icon-close-wrapper"},_8={class:"navbar"},I8={class:"nav navbar-nav w-100"},D8={class:"nav-item"},L8={class:"nav-item"},kc=u.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=u.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),s=()=>e("signout");return(i,l)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["bd-mobile-menu",r.value])},[u.createElementVNode("div",O8,[M8,u.createElementVNode("div",N8,[u.createVNode(ls,{onClick:o})])]),u.createElementVNode("nav",_8,[u.createElementVNode("ul",I8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.options,a=>(u.openBlock(),u.createElementBlock("li",D8,[u.createVNode(Ar,u.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),u.renderSlot(i.$slots,"special-options"),u.createElementVNode("li",L8,[u.createVNode(Ar,{class:"nav-link",text:"Uitloggen",onClick:s})])])])],2))}}),R8={class:"bd-user"},B8={class:"bd-user__information"},$8={class:"text-break"},P8={class:"overflow-x-hidden"},Np=u.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=u.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(u.openBlock(),u.createElementBlock("div",R8,[e.hideImage?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(vo,u.mergeProps({key:0},e.img,{size:"sm"}),null,16)),u.createElementVNode("div",B8,[u.createElementVNode("header",null,[u.createElementVNode("h5",$8,u.toDisplayString(e.name),1),u.renderSlot(r.$slots,"header-extra")]),u.createElementVNode("span",P8,u.toDisplayString(t.value),1)])]))}}),F8={class:"bd-chat-cloud-card"},V8={class:"bd-chat-cloud-card__header"},z8={class:"bd-chat-cloud-card__body"},H8=["innerHTML"],U8={class:"bd-chat-cloud-card__footer"},j8={key:0,class:"pills-list__wrapper"},W8={class:"pills-list__ul"},_p=u.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},username:{default:null},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=u.computed(()=>t.isSender?"sender":$e),o=u.computed(()=>Gi(t.files,!1)),s=u.computed(()=>Gi(t.files,!0)),i=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["bd-chat-cloud",r.value])},[u.createVNode(vo,{src:t.src,username:t.username,size:"sm"},null,8,["src","username"]),u.createElementVNode("div",F8,[u.createElementVNode("div",V8,[u.renderSlot(a.$slots,"header",{},()=>[u.createTextVNode(u.toDisplayString(a.headerTitle),1)]),u.createVNode(Je,{variant:"outline-primary-dark",size:"sm",onClick:i},{default:u.withCtx(()=>[u.createTextVNode(" kopieer ")]),_:1})]),u.createElementVNode("div",z8,[u.renderSlot(a.$slots,"body",{},()=>[u.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,H8)])]),u.createElementVNode("div",U8,[u.renderSlot(a.$slots,"footer",{},()=>[a.pills?(u.openBlock(),u.createElementBlock("div",j8,[u.createElementVNode("ul",W8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.pills,(d,f)=>(u.openBlock(),u.createElementBlock("li",{key:f,class:"pills-list__li"},[u.createVNode(bs,u.normalizeProps(u.guardReactiveProps(d)),null,16)]))),128))])])):u.createCommentVNode("",!0),o.value&&o.value.length>0?(u.openBlock(),u.createBlock(Ki,{key:1,files:o.value},null,8,["files"])):u.createCommentVNode("",!0),s.value&&s.value.length>0?(u.openBlock(),u.createBlock(Yi,{key:2,"fast-download":!0,files:s.value,onShow:l},null,8,["files"])):u.createCommentVNode("",!0)])])])],2))}}),K8=u.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=u.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},s=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},i=u.computed(()=>({"bd-table-sort":!0,active:t.active}));return u.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),s(),(l,a)=>(u.openBlock(),u.createElementBlock("th",{class:u.normalizeClass(i.value),onClick:a[0]||(a[0]=c=>{o(),s()})},[u.createElementVNode("span",null,u.toDisplayString(t.label),1),t.active&&!r.value?(u.openBlock(),u.createBlock(u.unref(Sa),{key:0})):t.active&&r.value?(u.openBlock(),u.createBlock(u.unref(wa),{key:1})):(u.openBlock(),u.createBlock(u.unref(ka),{key:2}))],2))}}),Y8={class:"bd-table"},G8={key:0,class:"table"},J8={key:1},Z8=["onClick"],X8={key:0},Q8={key:1,class:"empty-text"},Ip=u.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=u.ref(r.items),s=u.ref(r.sortBy),i=f=>s.value=f,l=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},a=f=>{o.value=o.value.sort((p,m)=>l(f,p,m)),t("sort-changed",{sortBy:f,sortDesc:!1})},c=f=>{o.value=o.value.sort((p,m)=>l(f,m,p)),t("sort-changed",{sortBy:f,sortDesc:!0})},d=()=>{o.value=r.items};return u.watch(()=>r.items,f=>{o.value=f}),e({Refresh:d}),(f,h)=>(u.openBlock(),u.createElementBlock("div",Y8,[r.items&&r.items.length>0?(u.openBlock(),u.createElementBlock("table",G8,[u.createElementVNode("thead",null,[u.createElementVNode("tr",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.fields,p=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[p.isVisible?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[p.sortable?(u.openBlock(),u.createBlock(K8,{key:0,label:p.label,active:p.key==s.value,sortDesc:r.sortDesc,onClick:m=>i(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(u.openBlock(),u.createElementBlock("th",J8,u.toDisplayString(p.label),1))],64)):u.createCommentVNode("",!0)],64))),256))])]),u.createElementVNode("tbody",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value,p=>(u.openBlock(),u.createElementBlock("tr",{class:u.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.fields,m=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[m.isVisible?(u.openBlock(),u.createElementBlock("td",X8,[f.$slots.hasOwnProperty(m.key)?u.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(p[m.key]),1)],64))])):u.createCommentVNode("",!0)],64))),256))],10,Z8))),256))])])):(u.openBlock(),u.createElementBlock("p",Q8,u.toDisplayString(r.emptyText),1))]))}});/*!
126
+ 3. "-" cannot repeat`);He.customSchemes.push([n,e])}function P7(){He.scanner=M7(He.customSchemes);for(let n=0;n<He.tokenQueue.length;n++)He.tokenQueue[n][1]({scanner:He.scanner});He.parser=D7(He.scanner.tokens);for(let n=0;n<He.pluginQueue.length;n++)He.pluginQueue[n][1]({scanner:He.scanner,parser:He.parser});He.initialized=!0}function F7(n){return He.initialized||P7(),L7(He.parser.start,n,N7(He.scanner.start,n))}function Sc(n,e,t){if(e===void 0&&(e=null),t===void 0&&(t=null),e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new Ec(t),o=F7(n),s=[];for(let i=0;i<o.length;i++){const l=o[i];l.isLink&&(!e||l.t===e)&&r.check(l)&&s.push(l.toFormattedObject(r))}return s}function V7(n){return new vt({key:new jt("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),s=e.some(c=>c.getMeta("preventAutolink"));if(!o||s)return;const{tr:i}=r,l=yb(t.doc,[...e]);if(xb(l).forEach(({newRange:c})=>{const d=bb(r.doc,c,p=>p.isTextblock);let f,h;if(d.length>1?(f=d[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):d.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(f=d[0],h=r.doc.textBetween(f.pos,c.to,void 0," ")),f&&h){const p=h.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;Sc(m).filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>n.validate?n.validate(y.value):!0).forEach(y=>{Il(y.from,y.to,r.doc).some(C=>C.mark.type===n.type)||i.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),!!i.steps.length)return i}})}function z7(n){return new vt({key:new jt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,s;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=nh(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,d=(s=a==null?void 0:a.target)!==null&&s!==void 0?s:l.target;return a&&c?(e.editable&&window.open(c,d),!0):!1}}})}function H7(n){return new vt({key:new jt("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:s}=e,{selection:i}=s,{empty:l}=i;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=Sc(a).find(m=>m.isLink&&m.value===a);if(!a||!c)return!1;const d=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=d==null?void 0:d.match(f),p=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const U7=tn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){wp(n);return}wp(n.scheme,n.optionalSlashes)})},onDestroy(){$7()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Po({find:n=>Sc(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),s=/href="([^"]*)"/,i=o==null?void 0:o.match(s);return i?{href:i[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(V7({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(z7({type:this.type})),this.options.linkOnPaste&&n.push(H7({editor:this.editor,type:this.type})),n}}).extend({addAttributes(){var n;return{...(n=this.parent)==null?void 0:n.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),j7=Dt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new vt({key:new jt("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const s=n.type.createAndFill(),i=(s==null?void 0:s.sameMarkup(n))&&s.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,d=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&d){const f=[this.options.emptyNodeClass];i&&f.push(this.options.emptyEditorClass);const h=It.node(a,a+l.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:l,pos:a,hasAnchor:c}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),Je.create(n,o)}}})]}}),W7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,K7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,Y7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,G7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,J7=tn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Qs({find:W7,type:this.type}),Qs({find:Y7,type:this.type})]},addPasteRules(){return[Po({find:K7,type:this.type}),Po({find:G7,type:this.type})]}}),Z7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,X7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,Q7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,q7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,e8=tn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Qs({find:Z7,type:this.type}),Qs({find:Q7,type:this.type})]},addPasteRules(){return[Po({find:X7,type:this.type}),Po({find:q7,type:this.type})]}}),t8=tn.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),n8=mn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),r8=mn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),kp=tn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Zs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Tp=/^\s*([-+*])\s$/,o8=mn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(r8.name,this.editor.getAttributes(kp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=qs({find:Tp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=qs({find:Tp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(kp.name),editor:this.editor})),[n]}}),s8=mn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",ht(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),xp=tn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Zs(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Ap=/^(\d+)\.\s$/,i8=mn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",ht(this.options.HTMLAttributes,t),0]:["ol",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(s8.name,this.editor.getAttributes(xp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=qs({find:Ap,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=qs({find:Ap,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(xp.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),a8=mn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",ht(this.options.HTMLAttributes,n)]},renderText(){return`
127
+ `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:s}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:l}=r.extensionManager,a=s||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:d})=>{if(d&&a&&i){const f=a.filter(h=>l.includes(h.type.name));c.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),wc={BASIC:"basic",FULL:"full"},l8={class:"attachment-list"},c8={class:"attachment-link"},u8={key:1,class:"attachment-no-download"},d8=["href"],Ki=u.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(n,{emit:e}){const t=r=>{e("delete",r)};return(r,o)=>(u.openBlock(),u.createElementBlock("ul",l8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.files,s=>(u.openBlock(),u.createElementBlock("li",{class:"attachment-list__item",key:s.CorrelationId},[u.createElementVNode("div",c8,[r.showDelete?(u.openBlock(),u.createBlock(Ye,{key:0,variant:"remove",onClick:i=>t(s),"aria-label":"verwijder"},{default:u.withCtx(()=>[u.createVNode(u.unref(go))]),_:2},1032,["onClick"])):u.createCommentVNode("",!0),r.noDownload?(u.openBlock(),u.createElementBlock("div",u8,[u.createVNode(u.unref(Qn)),u.createTextVNode(" "+u.toDisplayString(s.Naam.trim()),1)])):(u.openBlock(),u.createElementBlock("a",{key:2,href:s.downloadUrl},[u.createVNode(u.unref(Qn)),u.createTextVNode(" "+u.toDisplayString(s.Naam.trim()),1)],8,d8))])]))),128))]))}}),f8={class:"attachment-list"},h8={class:"attachment"},p8=["onClick"],m8=["src","alt"],g8=["onClick"],y8=["href"],v8={class:"btn btn-light download-button-image"},b8=["src","alt"],Yi=u.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=s=>{e("delete",s)},o=(s,i)=>{s.target&&s.target.className==="img-preview"&&e("show",i)};return(s,i)=>(u.openBlock(),u.createElementBlock("ul",f8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s.files,l=>(u.openBlock(),u.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[u.createElementVNode("div",h8,[s.showDelete?(u.openBlock(),u.createBlock(Ye,{key:0,variant:"remove","aria-label":"verwijder",onClick:u.withModifiers(a=>r(l),["prevent"])},{default:u.withCtx(()=>[u.createVNode(u.unref(go))]),_:2},1032,["onClick"])):u.createCommentVNode("",!0),t.noDownload?(u.openBlock(),u.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[u.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,m8)],8,p8)):(u.openBlock(),u.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(u.openBlock(),u.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[u.createElementVNode("button",v8,[u.createVNode(u.unref(cs))])],8,y8)):u.createCommentVNode("",!0),u.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,b8)],8,g8))])]))),128))]))}}),Op=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),E8=n=>n.DownloadUrl?n.DownloadUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlage/"+n.Id:n.FileId?`/Portaal/DownloadStandardMessageAttachment/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+n.CorrelationId,C8=n=>n.ThumbnailUrl?n.ThumbnailUrl:n.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:n.url?n.url:n.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+n.Id:n.StandardAttachmentId||n.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${n.StandardAttachmentId}/${n.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+n.CorrelationId,S8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,w8=(n,e)=>e?Op(n):!Op(n),Gi=(n,e)=>n===void 0?void 0:n.filter(r=>w8(r,e)).map(r=>{const o=typeof r.CorrelationId=="string"?r.CorrelationId:r.CorrelationId!=null?r.CorrelationId.toString():"";return{downloadUrl:E8(r),previewUrl:C8(r),fullImageUrl:S8(r),altName:`${r.Naam}`,...r,CorrelationId:o}}),k8={key:0,class:"pills-list__wrapper"},T8={class:"pills-list__ul"},x8={class:"bd-markdown-editor__menu-bottom"},A8={key:0,class:"vr"},Mp=u.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:wc.BASIC},files:{default:void 0},pills:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(n,{emit:e}){const t=n,r=()=>{e("upload")},o=er(t,"modelValue",e),s=[v7,b7,E7,j7.configure({placeholder:t.placeholder}),a8,U7.configure({openOnClick:!1,validate:A=>/^https?:\/\//i.test(A)})];t.variant===wc.FULL&&s.push(J7,e8,t8,n8,o8,i8);const i=y7({content:o.value,extensions:s,onUpdate:({editor:A})=>{const{view:T,state:V}=A,{from:H,to:U}=T.state.selection;if(V.doc.textBetween(H-1,U,"")==" "&&A.getAttributes("link").href!=null&&A.chain().setTextSelection({from:H-1,to:U}).toggleLink({href:A.getAttributes("link").href}).setTextSelection({from:U,to:U}).run(),A.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",A.getHTML())}});u.watch(()=>t.modelValue,A=>{i.value.getHTML()!==A&&i.value.commands.setContent(A,!0,{preserveWhitespace:"full"})});const l=u.computed(()=>t.state===!1?"is-invalid":null),a=u.computed(()=>g("bold")),c=u.computed(()=>g("italic")),d=u.computed(()=>g("underline")),f=u.computed(()=>g("bulletList")),h=u.computed(()=>g("orderedList")),p=u.computed(()=>g("link")),m=u.computed(()=>t.variant===wc.FULL),g=A=>i.value&&i.value.isActive(A)?"active":null,y=u.computed(()=>t.files&&t.files.length>0?Gi(t.files,!1):null),C=u.computed(()=>t.files&&t.files.length>0?Gi(t.files,!0):null),S=A=>{e("action",{name:"delete-attachment",obj:A})},k=A=>{e("action",{name:"image-attachment",obj:A})},v=()=>{const A=i.value.getAttributes("link").href,T=window.prompt("Voeg link toe",A);if(T!==null){if(T===""){i.value.chain().focus().unsetLink().run();return}i.value.chain().focus().toggleLink({href:T}).run()}};return(A,T)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",{class:u.normalizeClass(["bd-markdown-editor",l.value])},[u.createVNode(u.unref(g7),{editor:u.unref(i)},null,8,["editor"]),A.pills?(u.openBlock(),u.createElementBlock("div",k8,[u.createElementVNode("ul",T8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(A.pills,(V,H)=>(u.openBlock(),u.createElementBlock("li",{key:H,class:"pills-list__li"},[u.createVNode(bs,u.normalizeProps(u.guardReactiveProps(V)),null,16)]))),128))])])):u.createCommentVNode("",!0),u.renderSlot(A.$slots,"default"),y.value?(u.openBlock(),u.createBlock(Ki,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:S},null,8,["files"])):u.createCommentVNode("",!0),C.value?(u.openBlock(),u.createBlock(Yi,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:S,onShow:k},null,8,["files"])):u.createCommentVNode("",!0),u.createElementVNode("div",x8,[u.createVNode(Ye,{variant:"light",type:"button",onClick:r},{default:u.withCtx(()=>[u.createVNode(u.unref(Qn))]),_:1}),m.value?(u.openBlock(),u.createElementBlock("div",A8)):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Ye,{key:1,variant:"light",type:"button",class:u.normalizeClass(a.value),onClick:T[0]||(T[0]=V=>u.unref(i).chain().focus().toggleBold().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(ha))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Ye,{key:2,variant:"light",type:"button",class:u.normalizeClass(c.value),onClick:T[1]||(T[1]=V=>u.unref(i).chain().focus().toggleItalic().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(Ea))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Ye,{key:3,variant:"light",type:"button",class:u.normalizeClass(d.value),onClick:T[2]||(T[2]=V=>u.unref(i).chain().focus().toggleUnderline().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(Ta))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Ye,{key:4,variant:"light",type:"button",class:u.normalizeClass(f.value),onClick:T[3]||(T[3]=V=>u.unref(i).chain().focus().toggleBulletList().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(pa))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Ye,{key:5,variant:"light",type:"button",class:u.normalizeClass(h.value),onClick:T[4]||(T[4]=V=>u.unref(i).chain().focus().toggleOrderedList().run())},{default:u.withCtx(()=>[u.createVNode(u.unref(Ca))]),_:1},8,["class"])):u.createCommentVNode("",!0),m.value?(u.openBlock(),u.createBlock(Ye,{key:6,variant:"light",type:"button",class:u.normalizeClass(p.value),onClick:v},{default:u.withCtx(()=>[u.createVNode(u.unref(ds))]),_:1},8,["class"])):u.createCommentVNode("",!0)])],2),u.createVNode(u.unref(ys),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),O8={class:"header"},M8=u.createElementVNode("div",null,"Menu",-1),N8={class:"icon-close-wrapper"},_8={class:"navbar"},I8={class:"nav navbar-nav w-100"},D8={class:"nav-item"},L8={class:"nav-item"},kc=u.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=u.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),s=()=>e("signout");return(i,l)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["bd-mobile-menu",r.value])},[u.createElementVNode("div",O8,[M8,u.createElementVNode("div",N8,[u.createVNode(ls,{onClick:o})])]),u.createElementVNode("nav",_8,[u.createElementVNode("ul",I8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.options,a=>(u.openBlock(),u.createElementBlock("li",D8,[u.createVNode(Ar,u.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),u.renderSlot(i.$slots,"special-options"),u.createElementVNode("li",L8,[u.createVNode(Ar,{class:"nav-link",text:"Uitloggen",onClick:s})])])])],2))}}),R8={class:"bd-user"},B8={class:"bd-user__information"},$8={class:"text-break"},P8={class:"overflow-x-hidden"},Np=u.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(n){const e=n,t=u.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(u.openBlock(),u.createElementBlock("div",R8,[e.hideImage?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(vo,u.mergeProps({key:0},e.img,{size:"sm"}),null,16)),u.createElementVNode("div",B8,[u.createElementVNode("header",null,[u.createElementVNode("h5",$8,u.toDisplayString(e.name),1),u.renderSlot(r.$slots,"header-extra")]),u.createElementVNode("span",P8,u.toDisplayString(t.value),1)])]))}}),F8={class:"bd-chat-cloud-card"},V8={class:"bd-chat-cloud-card__header"},z8={class:"bd-chat-cloud-card__body"},H8=["innerHTML"],U8={class:"bd-chat-cloud-card__footer"},j8={key:0,class:"pills-list__wrapper"},W8={class:"pills-list__ul"},_p=u.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},username:{default:null},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=u.computed(()=>t.isSender?"sender":$e),o=u.computed(()=>Gi(t.files,!1)),s=u.computed(()=>Gi(t.files,!0)),i=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["bd-chat-cloud",r.value])},[u.createVNode(vo,{src:t.src,username:t.username,size:"sm"},null,8,["src","username"]),u.createElementVNode("div",F8,[u.createElementVNode("div",V8,[u.renderSlot(a.$slots,"header",{},()=>[u.createTextVNode(u.toDisplayString(a.headerTitle),1)]),u.createVNode(Ye,{variant:"outline-primary-dark",size:"sm",onClick:i},{default:u.withCtx(()=>[u.createTextVNode(" kopieer ")]),_:1})]),u.createElementVNode("div",z8,[u.renderSlot(a.$slots,"body",{},()=>[u.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,H8)])]),u.createElementVNode("div",U8,[u.renderSlot(a.$slots,"footer",{},()=>[a.pills?(u.openBlock(),u.createElementBlock("div",j8,[u.createElementVNode("ul",W8,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.pills,(d,f)=>(u.openBlock(),u.createElementBlock("li",{key:f,class:"pills-list__li"},[u.createVNode(bs,u.normalizeProps(u.guardReactiveProps(d)),null,16)]))),128))])])):u.createCommentVNode("",!0),o.value&&o.value.length>0?(u.openBlock(),u.createBlock(Ki,{key:1,files:o.value},null,8,["files"])):u.createCommentVNode("",!0),s.value&&s.value.length>0?(u.openBlock(),u.createBlock(Yi,{key:2,"fast-download":!0,files:s.value,onShow:l},null,8,["files"])):u.createCommentVNode("",!0)])])])],2))}}),K8=u.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=u.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},s=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},i=u.computed(()=>({"bd-table-sort":!0,active:t.active}));return u.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),s(),(l,a)=>(u.openBlock(),u.createElementBlock("th",{class:u.normalizeClass(i.value),onClick:a[0]||(a[0]=c=>{o(),s()})},[u.createElementVNode("span",null,u.toDisplayString(t.label),1),t.active&&!r.value?(u.openBlock(),u.createBlock(u.unref(Sa),{key:0})):t.active&&r.value?(u.openBlock(),u.createBlock(u.unref(wa),{key:1})):(u.openBlock(),u.createBlock(u.unref(ka),{key:2}))],2))}}),Y8={class:"bd-table"},G8={key:0,class:"table"},J8={key:1},Z8=["onClick"],X8={key:0},Q8={key:1,class:"empty-text"},Ip=u.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(n,{expose:e,emit:t}){const r=n,o=u.ref(r.items),s=u.ref(r.sortBy),i=f=>s.value=f,l=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},a=f=>{o.value=o.value.sort((p,m)=>l(f,p,m)),t("sort-changed",{sortBy:f,sortDesc:!1})},c=f=>{o.value=o.value.sort((p,m)=>l(f,m,p)),t("sort-changed",{sortBy:f,sortDesc:!0})},d=()=>{o.value=r.items};return u.watch(()=>r.items,f=>{o.value=f}),e({Refresh:d}),(f,h)=>(u.openBlock(),u.createElementBlock("div",Y8,[r.items&&r.items.length>0?(u.openBlock(),u.createElementBlock("table",G8,[u.createElementVNode("thead",null,[u.createElementVNode("tr",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.fields,p=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[p.isVisible?(u.openBlock(),u.createElementBlock(u.Fragment,{key:0},[p.sortable?(u.openBlock(),u.createBlock(K8,{key:0,label:p.label,active:p.key==s.value,sortDesc:r.sortDesc,onClick:m=>i(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(u.openBlock(),u.createElementBlock("th",J8,u.toDisplayString(p.label),1))],64)):u.createCommentVNode("",!0)],64))),256))])]),u.createElementVNode("tbody",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.value,p=>(u.openBlock(),u.createElementBlock("tr",{class:u.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(n.fields,m=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[m.isVisible?(u.openBlock(),u.createElementBlock("td",X8,[f.$slots.hasOwnProperty(m.key)?u.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(u.openBlock(),u.createElementBlock(u.Fragment,{key:1},[u.createTextVNode(u.toDisplayString(p[m.key]),1)],64))])):u.createCommentVNode("",!0)],64))),256))],10,Z8))),256))])])):(u.openBlock(),u.createElementBlock("p",Q8,u.toDisplayString(r.emptyText),1))]))}});/*!
128
128
  * Bootstrap v5.3.0 (https://getbootstrap.com/)
129
129
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
130
130
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
131
- */const zn=new Map,Tc={set(n,e,t){zn.has(n)||zn.set(n,new Map);const r=zn.get(n);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(n,e){return zn.has(n)&&zn.get(n).get(e)||null},remove(n,e){if(!zn.has(n))return;const t=zn.get(n);t.delete(e),t.size===0&&zn.delete(n)}},q8=1e6,e4=1e3,xc="transitionend",Dp=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),t4=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),n4=n=>{do n+=Math.floor(Math.random()*q8);while(document.getElementById(n));return n},r4=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*e4)},Lp=n=>{n.dispatchEvent(new Event(xc))},vn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),Hn=n=>vn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Dp(n)):null,oo=n=>{if(!vn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Un=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Rp=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?Rp(n.parentNode):null},Ji=()=>{},Xo=n=>{n.offsetHeight},Bp=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ac=[],o4=n=>{document.readyState==="loading"?(Ac.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Ac)e()}),Ac.push(n)):n()},Bt=()=>document.documentElement.dir==="rtl",$t=n=>{o4(()=>{const e=Bp();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},Ct=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,$p=(n,e,t=!0)=>{if(!t){Ct(n);return}const r=5,o=r4(e)+r;let s=!1;const i=({target:l})=>{l===e&&(s=!0,e.removeEventListener(xc,i),Ct(n))};e.addEventListener(xc,i),setTimeout(()=>{s||Lp(e)},o)},Oc=(n,e,t,r)=>{const o=n.length;let s=n.indexOf(e);return s===-1?!t&&r?n[o-1]:n[0]:(s+=t?1:-1,r&&(s=(s+o)%o),n[Math.max(0,Math.min(s,o-1))])},s4=/[^.]*(?=\..*)\.|.*/,i4=/\..*/,a4=/::\d+$/,Mc={};let Pp=1;const Fp={mouseenter:"mouseover",mouseleave:"mouseout"},l4=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Vp(n,e){return e&&`${e}::${Pp++}`||n.uidEvent||Pp++}function zp(n){const e=Vp(n);return n.uidEvent=e,Mc[e]=Mc[e]||{},Mc[e]}function c4(n,e){return function t(r){return _c(r,{delegateTarget:n}),t.oneOff&&se.off(n,r.type,e),e.apply(n,[r])}}function u4(n,e,t){return function r(o){const s=n.querySelectorAll(e);for(let{target:i}=o;i&&i!==this;i=i.parentNode)for(const l of s)if(l===i)return _c(o,{delegateTarget:i}),r.oneOff&&se.off(n,o.type,e,t),t.apply(i,[o])}}function Hp(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Up(n,e,t){const r=typeof e=="string",o=r?t:e||t;let s=Wp(n);return l4.has(s)||(s=n),[r,o,s]}function jp(n,e,t,r,o){if(typeof e!="string"||!n)return;let[s,i,l]=Up(e,t,r);e in Fp&&(i=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(i));const a=zp(n),c=a[l]||(a[l]={}),d=Hp(c,i,s?t:null);if(d){d.oneOff=d.oneOff&&o;return}const f=Vp(i,e.replace(s4,"")),h=s?u4(n,t,i):c4(n,i);h.delegationSelector=s?t:null,h.callable=i,h.oneOff=o,h.uidEvent=f,c[f]=h,n.addEventListener(l,h,s)}function Nc(n,e,t,r,o){const s=Hp(e[t],r,o);s&&(n.removeEventListener(t,s,!!o),delete e[t][s.uidEvent])}function d4(n,e,t,r){const o=e[t]||{};for(const[s,i]of Object.entries(o))s.includes(r)&&Nc(n,e,t,i.callable,i.delegationSelector)}function Wp(n){return n=n.replace(i4,""),Fp[n]||n}const se={on(n,e,t,r){jp(n,e,t,r,!1)},one(n,e,t,r){jp(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,s,i]=Up(e,t,r),l=i!==e,a=zp(n),c=a[i]||{},d=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(c).length)return;Nc(n,a,i,s,o?t:null);return}if(d)for(const f of Object.keys(a))d4(n,a,f,e.slice(1));for(const[f,h]of Object.entries(c)){const p=f.replace(a4,"");(!l||e.includes(p))&&Nc(n,a,i,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Bp(),o=Wp(e),s=e!==o;let i=null,l=!0,a=!0,c=!1;s&&r&&(i=r.Event(e,t),r(n).trigger(i),l=!i.isPropagationStopped(),a=!i.isImmediatePropagationStopped(),c=i.isDefaultPrevented());const d=_c(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&d.preventDefault(),a&&n.dispatchEvent(d),d.defaultPrevented&&i&&i.preventDefault(),d}};function _c(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch{Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function Kp(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Ic(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const bn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${Ic(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${Ic(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Kp(n.dataset[r])}return e},getDataAttribute(n,e){return Kp(n.getAttribute(`data-bs-${Ic(e)}`))}};class Qo{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=vn(t)?bn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vn(t)?bn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const s=e[r],i=vn(s)?"element":t4(s);if(!new RegExp(o).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${o}".`)}}}const f4="5.3.0";class Jt extends Qo{constructor(e,t){super(),e=Hn(e),e&&(this._element=e,this._config=this._getConfig(t),Tc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Tc.remove(this._element,this.constructor.DATA_KEY),se.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){$p(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Tc.get(Hn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return f4}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Dc=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return Dp(e)},ke={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Un(t)&&oo(t))},getSelectorFromElement(n){const e=Dc(n);return e&&ke.findOne(e)?e:null},getElementFromSelector(n){const e=Dc(n);return e?ke.findOne(e):null},getMultipleElementsFromSelector(n){const e=Dc(n);return e?ke.find(e):[]}},Zi=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;se.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Un(this))return;const s=ke.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(s)[e]()})},h4="alert",Yp=".bs.alert",p4=`close${Yp}`,m4=`closed${Yp}`,g4="fade",y4="show";class Xi extends Jt{static get NAME(){return h4}close(){if(se.trigger(this._element,p4).defaultPrevented)return;this._element.classList.remove(y4);const t=this._element.classList.contains(g4);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),se.trigger(this._element,m4),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Xi.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Zi(Xi,"close"),$t(Xi);const v4="button",b4=".bs.button",E4=".data-api",C4="active",Gp='[data-bs-toggle="button"]',S4=`click${b4}${E4}`;class Qi extends Jt{static get NAME(){return v4}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(C4))}static jQueryInterface(e){return this.each(function(){const t=Qi.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}se.on(document,S4,Gp,n=>{n.preventDefault();const e=n.target.closest(Gp);Qi.getOrCreateInstance(e).toggle()}),$t(Qi);const w4="swipe",so=".bs.swipe",k4=`touchstart${so}`,T4=`touchmove${so}`,x4=`touchend${so}`,A4=`pointerdown${so}`,O4=`pointerup${so}`,M4="touch",N4="pen",_4="pointer-event",I4=40,D4={endCallback:null,leftCallback:null,rightCallback:null},L4={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class qi extends Qo{constructor(e,t){super(),this._element=e,!(!e||!qi.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return D4}static get DefaultType(){return L4}static get NAME(){return w4}dispose(){se.off(this._element,so)}_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(),Ct(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=I4)return;const t=e/this._deltaX;this._deltaX=0,t&&Ct(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(se.on(this._element,A4,e=>this._start(e)),se.on(this._element,O4,e=>this._end(e)),this._element.classList.add(_4)):(se.on(this._element,k4,e=>this._start(e)),se.on(this._element,T4,e=>this._move(e)),se.on(this._element,x4,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===N4||e.pointerType===M4)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const R4="carousel",jn=".bs.carousel",Jp=".data-api",B4="ArrowLeft",$4="ArrowRight",P4=500,qo="next",io="prev",ao="left",ea="right",F4=`slide${jn}`,Lc=`slid${jn}`,V4=`keydown${jn}`,z4=`mouseenter${jn}`,H4=`mouseleave${jn}`,U4=`dragstart${jn}`,j4=`load${jn}${Jp}`,W4=`click${jn}${Jp}`,Zp="carousel",ta="active",K4="slide",Y4="carousel-item-end",G4="carousel-item-start",J4="carousel-item-next",Z4="carousel-item-prev",Xp=".active",Qp=".carousel-item",X4=Xp+Qp,Q4=".carousel-item img",q4=".carousel-indicators",eC="[data-bs-slide], [data-bs-slide-to]",tC='[data-bs-ride="carousel"]',nC={[B4]:ea,[$4]:ao},rC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},oC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class es extends Jt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ke.findOne(q4,this._element),this._addEventListeners(),this._config.ride===Zp&&this.cycle()}static get Default(){return rC}static get DefaultType(){return oC}static get NAME(){return R4}next(){this._slide(qo)}nextWhenVisible(){!document.hidden&&oo(this._element)&&this.next()}prev(){this._slide(io)}pause(){this._isSliding&&Lp(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){se.one(this._element,Lc,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){se.one(this._element,Lc,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?qo:io;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&se.on(this._element,V4,e=>this._keydown(e)),this._config.pause==="hover"&&(se.on(this._element,z4,()=>this.pause()),se.on(this._element,H4,()=>this._maybeEnableCycle())),this._config.touch&&qi.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ke.find(Q4,this._element))se.on(r,U4,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(ao)),rightCallback:()=>this._slide(this._directionToOrder(ea)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),P4+this._config.interval))}};this._swipeHelper=new qi(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=nC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ke.findOne(Xp,this._indicatorsElement);t.classList.remove(ta),t.removeAttribute("aria-current");const r=ke.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(ta),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===qo,s=t||Oc(this._getItems(),r,o,this._config.wrap);if(s===r)return;const i=this._getItemIndex(s),l=p=>se.trigger(this._element,p,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:i});if(l(F4).defaultPrevented||!r||!s)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=s;const d=o?G4:Y4,f=o?J4:Z4;s.classList.add(f),Xo(s),r.classList.add(d),s.classList.add(d);const h=()=>{s.classList.remove(d,f),s.classList.add(ta),r.classList.remove(ta,f,d),this._isSliding=!1,l(Lc)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(K4)}_getActive(){return ke.findOne(X4,this._element)}_getItems(){return ke.find(Qp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Bt()?e===ao?io:qo:e===ao?qo:io}_orderToDirection(e){return Bt()?e===io?ao:ea:e===io?ea:ao}static jQueryInterface(e){return this.each(function(){const t=es.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}se.on(document,W4,eC,function(n){const e=ke.getElementFromSelector(this);if(!e||!e.classList.contains(Zp))return;n.preventDefault();const t=es.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(bn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()}),se.on(window,j4,()=>{const n=ke.find(tC);for(const e of n)es.getOrCreateInstance(e)}),$t(es);const sC="collapse",ts=".bs.collapse",iC=".data-api",aC=`show${ts}`,lC=`shown${ts}`,cC=`hide${ts}`,uC=`hidden${ts}`,dC=`click${ts}${iC}`,Rc="show",lo="collapse",na="collapsing",fC="collapsed",hC=`:scope .${lo} .${lo}`,pC="collapse-horizontal",mC="width",gC="height",yC=".collapse.show, .collapse.collapsing",Bc='[data-bs-toggle="collapse"]',vC={parent:null,toggle:!0},bC={parent:"(null|element)",toggle:"boolean"};class ns extends Jt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ke.find(Bc);for(const o of r){const s=ke.getSelectorFromElement(o),i=ke.find(s).filter(l=>l===this._element);s!==null&&i.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return vC}static get DefaultType(){return bC}static get NAME(){return sC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(yC).filter(l=>l!==this._element).map(l=>ns.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||se.trigger(this._element,aC).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(lo),this._element.classList.add(na),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(na),this._element.classList.add(lo,Rc),this._element.style[r]="",se.trigger(this._element,lC)},i=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||se.trigger(this._element,cC).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Xo(this._element),this._element.classList.add(na),this._element.classList.remove(lo,Rc);for(const o of this._triggerArray){const s=ke.getElementFromSelector(o);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(na),this._element.classList.add(lo),se.trigger(this._element,uC)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Rc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Hn(e.parent),e}_getDimension(){return this._element.classList.contains(pC)?mC:gC}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Bc);for(const t of e){const r=ke.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ke.find(hC,this._config.parent);return ke.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(fC,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=ns.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}se.on(document,dC,Bc,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ke.getMultipleElementsFromSelector(this))ns.getOrCreateInstance(e,{toggle:!1}).toggle()}),$t(ns);const qp="dropdown",Er=".bs.dropdown",$c=".data-api",EC="Escape",em="Tab",CC="ArrowUp",tm="ArrowDown",SC=2,wC=`hide${Er}`,kC=`hidden${Er}`,TC=`show${Er}`,xC=`shown${Er}`,nm=`click${Er}${$c}`,rm=`keydown${Er}${$c}`,AC=`keyup${Er}${$c}`,co="show",OC="dropup",MC="dropend",NC="dropstart",_C="dropup-center",IC="dropdown-center",Cr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',DC=`${Cr}.${co}`,ra=".dropdown-menu",LC=".navbar",RC=".navbar-nav",BC=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",$C=Bt()?"top-end":"top-start",PC=Bt()?"top-start":"top-end",FC=Bt()?"bottom-end":"bottom-start",VC=Bt()?"bottom-start":"bottom-end",zC=Bt()?"left-start":"right-start",HC=Bt()?"right-start":"left-start",UC="top",jC="bottom",WC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},KC={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ln extends Jt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ke.next(this._element,ra)[0]||ke.prev(this._element,ra)[0]||ke.findOne(ra,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return WC}static get DefaultType(){return KC}static get NAME(){return qp}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Un(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!se.trigger(this._element,TC,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(RC))for(const r of[].concat(...document.body.children))se.on(r,"mouseover",Ji);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(co),this._element.classList.add(co),se.trigger(this._element,xC,e)}}hide(){if(Un(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!se.trigger(this._element,wC,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))se.off(r,"mouseover",Ji);this._popper&&this._popper.destroy(),this._menu.classList.remove(co),this._element.classList.remove(co),this._element.setAttribute("aria-expanded","false"),bn.removeDataAttribute(this._menu,"popper"),se.trigger(this._element,kC,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${qp.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Fh>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vn(this._config.reference)?e=Hn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=ai(e,this._menu,t)}_isShown(){return this._menu.classList.contains(co)}_getPlacement(){const e=this._parent;if(e.classList.contains(MC))return zC;if(e.classList.contains(NC))return HC;if(e.classList.contains(_C))return UC;if(e.classList.contains(IC))return jC;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(OC)?t?PC:$C:t?VC:FC}_detectNavbar(){return this._element.closest(LC)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(bn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Ct(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ke.find(BC,this._menu).filter(o=>oo(o));r.length&&Oc(r,t,e===tm,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=ln.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===SC||e.type==="keyup"&&e.key!==em)return;const t=ke.find(DC);for(const r of t){const o=ln.getInstance(r);if(!o||o._config.autoClose===!1)continue;const s=e.composedPath(),i=s.includes(o._menu);if(s.includes(o._element)||o._config.autoClose==="inside"&&!i||o._config.autoClose==="outside"&&i||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===em||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:o._element};e.type==="click"&&(l.clickEvent=e),o._completeHide(l)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===EC,o=[CC,tm].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const s=this.matches(Cr)?this:ke.prev(this,Cr)[0]||ke.next(this,Cr)[0]||ke.findOne(Cr,e.delegateTarget.parentNode),i=ln.getOrCreateInstance(s);if(o){e.stopPropagation(),i.show(),i._selectMenuItem(e);return}i._isShown()&&(e.stopPropagation(),i.hide(),s.focus())}}se.on(document,rm,Cr,ln.dataApiKeydownHandler),se.on(document,rm,ra,ln.dataApiKeydownHandler),se.on(document,nm,ln.clearMenus),se.on(document,AC,ln.clearMenus),se.on(document,nm,Cr,function(n){n.preventDefault(),ln.getOrCreateInstance(this).toggle()}),$t(ln);const om="backdrop",YC="fade",sm="show",im=`mousedown.bs.${om}`,GC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},JC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class am extends Qo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return GC}static get DefaultType(){return JC}static get NAME(){return om}show(e){if(!this._config.isVisible){Ct(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Xo(t),t.classList.add(sm),this._emulateAnimation(()=>{Ct(e)})}hide(e){if(!this._config.isVisible){Ct(e);return}this._getElement().classList.remove(sm),this._emulateAnimation(()=>{this.dispose(),Ct(e)})}dispose(){this._isAppended&&(se.off(this._element,im),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(YC),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Hn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),se.on(e,im,()=>{Ct(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){$p(e,this._getElement(),this._config.isAnimated)}}const ZC="focustrap",oa=".bs.focustrap",XC=`focusin${oa}`,QC=`keydown.tab${oa}`,qC="Tab",e6="forward",lm="backward",t6={autofocus:!0,trapElement:null},n6={autofocus:"boolean",trapElement:"element"};class cm extends Qo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return t6}static get DefaultType(){return n6}static get NAME(){return ZC}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),se.off(document,oa),se.on(document,XC,e=>this._handleFocusin(e)),se.on(document,QC,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,se.off(document,oa))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ke.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===lm?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===qC&&(this._lastTabNavDirection=e.shiftKey?lm:e6)}}const um=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",dm=".sticky-top",sa="padding-right",fm="margin-right";class Pc{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,sa,t=>t+e),this._setElementAttributes(um,sa,t=>t+e),this._setElementAttributes(dm,fm,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,sa),this._resetElementAttributes(um,sa),this._resetElementAttributes(dm,fm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),s=i=>{if(i!==this._element&&window.innerWidth>i.clientWidth+o)return;this._saveInitialAttribute(i,t);const l=window.getComputedStyle(i).getPropertyValue(t);i.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&bn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const s=bn.getDataAttribute(o,t);if(s===null){o.style.removeProperty(t);return}bn.removeDataAttribute(o,t),o.style.setProperty(t,s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(vn(e)){t(e);return}for(const r of ke.find(e,this._element))t(r)}}const r6="modal",Pt=".bs.modal",o6=".data-api",s6="Escape",i6=`hide${Pt}`,a6=`hidePrevented${Pt}`,hm=`hidden${Pt}`,pm=`show${Pt}`,l6=`shown${Pt}`,c6=`resize${Pt}`,u6=`click.dismiss${Pt}`,d6=`mousedown.dismiss${Pt}`,f6=`keydown.dismiss${Pt}`,h6=`click${Pt}${o6}`,mm="modal-open",p6="fade",gm="show",Fc="modal-static",m6=".modal.show",g6=".modal-dialog",y6=".modal-body",v6='[data-bs-toggle="modal"]',b6={backdrop:!0,focus:!0,keyboard:!0},E6={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Wn extends Jt{constructor(e,t){super(e,t),this._dialog=ke.findOne(g6,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Pc,this._addEventListeners()}static get Default(){return b6}static get DefaultType(){return E6}static get NAME(){return r6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||se.trigger(this._element,pm,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(mm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||se.trigger(this._element,i6).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(gm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){se.off(window,Pt),se.off(this._dialog,Pt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new am({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new cm({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ke.findOne(y6,this._dialog);t&&(t.scrollTop=0),Xo(this._element),this._element.classList.add(gm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,se.trigger(this._element,l6,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){se.on(this._element,f6,e=>{if(e.key===s6){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),se.on(window,c6,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),se.on(this._element,d6,e=>{se.one(this._element,u6,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(mm),this._resetAdjustments(),this._scrollBar.reset(),se.trigger(this._element,hm)})}_isAnimated(){return this._element.classList.contains(p6)}_triggerBackdropTransition(){if(se.trigger(this._element,a6).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Fc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Fc),this._queueCallback(()=>{this._element.classList.remove(Fc),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=Bt()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Bt()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=Wn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}se.on(document,h6,v6,function(n){const e=ke.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),se.one(e,pm,o=>{o.defaultPrevented||se.one(e,hm,()=>{oo(this)&&this.focus()})});const t=ke.findOne(m6);t&&Wn.getInstance(t).hide(),Wn.getOrCreateInstance(e).toggle(this)}),Zi(Wn),$t(Wn);const C6="offcanvas",En=".bs.offcanvas",ym=".data-api",S6=`load${En}${ym}`,w6="Escape",vm="show",bm="showing",Em="hiding",k6="offcanvas-backdrop",Cm=".offcanvas.show",T6=`show${En}`,x6=`shown${En}`,A6=`hide${En}`,Sm=`hidePrevented${En}`,wm=`hidden${En}`,O6=`resize${En}`,M6=`click${En}${ym}`,N6=`keydown.dismiss${En}`,_6='[data-bs-toggle="offcanvas"]',I6={backdrop:!0,keyboard:!0,scroll:!1},D6={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Kn extends Jt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return I6}static get DefaultType(){return D6}static get NAME(){return C6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||se.trigger(this._element,T6,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Pc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(bm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(vm),this._element.classList.remove(bm),se.trigger(this._element,x6,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||se.trigger(this._element,A6).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Em),this._backdrop.hide();const t=()=>{this._element.classList.remove(vm,Em),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Pc().reset(),se.trigger(this._element,wm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){se.trigger(this._element,Sm);return}this.hide()},t=!!this._config.backdrop;return new am({className:k6,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new cm({trapElement:this._element})}_addEventListeners(){se.on(this._element,N6,e=>{if(e.key===w6){if(this._config.keyboard){this.hide();return}se.trigger(this._element,Sm)}})}static jQueryInterface(e){return this.each(function(){const t=Kn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}se.on(document,M6,_6,function(n){const e=ke.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Un(this))return;se.one(e,wm,()=>{oo(this)&&this.focus()});const t=ke.findOne(Cm);t&&t!==e&&Kn.getInstance(t).hide(),Kn.getOrCreateInstance(e).toggle(this)}),se.on(window,S6,()=>{for(const n of ke.find(Cm))Kn.getOrCreateInstance(n).show()}),se.on(window,O6,()=>{for(const n of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Kn.getOrCreateInstance(n).hide()}),Zi(Kn),$t(Kn);const km={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},L6=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),R6=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,B6=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?L6.has(t)?!!R6.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function $6(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),s=[].concat(...o.body.querySelectorAll("*"));for(const i of s){const l=i.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){i.remove();continue}const a=[].concat(...i.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const d of a)B6(d,c)||i.removeAttribute(d.nodeName)}return o.body.innerHTML}const P6="TemplateFactory",F6={allowList:km,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},V6={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},z6={entry:"(string|element|function|null)",selector:"(string|element)"};class H6 extends Qo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return F6}static get DefaultType(){return V6}static get NAME(){return P6}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,s]of Object.entries(this._config.content))this._setContent(e,s,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},z6)}_setContent(e,t,r){const o=ke.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(vn(t)){this._putElementInTemplate(Hn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?$6(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ct(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const U6="tooltip",j6=new Set(["sanitize","allowList","sanitizeFn"]),Vc="fade",W6="modal",ia="show",K6=".tooltip-inner",Tm=`.${W6}`,xm="hide.bs.modal",rs="hover",zc="focus",Y6="click",G6="manual",J6="hide",Z6="hidden",X6="show",Q6="shown",q6="inserted",eS="click",tS="focusin",nS="focusout",rS="mouseenter",oS="mouseleave",sS={AUTO:"auto",TOP:"top",RIGHT:Bt()?"left":"right",BOTTOM:"bottom",LEFT:Bt()?"right":"left"},iS={allowList:km,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"},aS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Sr extends Jt{constructor(e,t){if(typeof Fh>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return iS}static get DefaultType(){return aS}static get NAME(){return U6}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),se.off(this._element.closest(Tm),xm,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=se.trigger(this._element,this.constructor.eventName(X6)),r=(Rp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(o),se.trigger(this._element,this.constructor.eventName(q6))),this._popper=this._createPopper(o),o.classList.add(ia),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))se.on(l,"mouseover",Ji);const i=()=>{se.trigger(this._element,this.constructor.eventName(Q6)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||se.trigger(this._element,this.constructor.eventName(J6)).defaultPrevented)return;if(this._getTipElement().classList.remove(ia),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))se.off(o,"mouseover",Ji);this._activeTrigger[Y6]=!1,this._activeTrigger[zc]=!1,this._activeTrigger[rs]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),se.trigger(this._element,this.constructor.eventName(Z6)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Vc,ia),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=n4(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Vc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new H6({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[K6]: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(Vc)}_isShown(){return this.tip&&this.tip.classList.contains(ia)}_createPopper(e){const t=Ct(this._config.placement,[this,e,this._element]),r=sS[t.toUpperCase()];return ai(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ct(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...Ct(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")se.on(this._element,this.constructor.eventName(eS),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==G6){const r=t===rs?this.constructor.eventName(rS):this.constructor.eventName(tS),o=t===rs?this.constructor.eventName(oS):this.constructor.eventName(nS);se.on(this._element,r,this._config.selector,s=>{const i=this._initializeOnDelegatedTarget(s);i._activeTrigger[s.type==="focusin"?zc:rs]=!0,i._enter()}),se.on(this._element,o,this._config.selector,s=>{const i=this._initializeOnDelegatedTarget(s);i._activeTrigger[s.type==="focusout"?zc:rs]=i._element.contains(s.relatedTarget),i._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},se.on(this._element.closest(Tm),xm,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=bn.getDataAttributes(this._element);for(const r of Object.keys(t))j6.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Hn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Sr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(Sr);const lS="popover",cS=".popover-header",uS=".popover-body",dS={...Sr.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"},fS={...Sr.DefaultType,content:"(null|string|element|function)"};class uo extends Sr{static get Default(){return dS}static get DefaultType(){return fS}static get NAME(){return lS}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[cS]:this._getTitle(),[uS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=uo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(uo);const hS="scrollspy",Hc=".bs.scrollspy",pS=".data-api",mS=`activate${Hc}`,Am=`click${Hc}`,gS=`load${Hc}${pS}`,yS="dropdown-item",fo="active",vS='[data-bs-spy="scroll"]',Uc="[href]",bS=".nav, .list-group",Om=".nav-link",ES=`${Om}, .nav-item > ${Om}, .list-group-item`,CS=".dropdown",SS=".dropdown-toggle",wS={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},kS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class aa extends Jt{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 wS}static get DefaultType(){return kS}static get NAME(){return hS}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Hn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(se.off(this._config.target,Am),se.on(this._config.target,Am,Uc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=i=>this._targetLinks.get(`#${i.target.id}`),r=i=>{this._previousScrollData.visibleEntryTop=i.target.offsetTop,this._process(t(i))},o=(this._rootElement||document.documentElement).scrollTop,s=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const l=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&l){if(r(i),!o)return;continue}!s&&!l&&r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ke.find(Uc,this._config.target);for(const t of e){if(!t.hash||Un(t))continue;const r=ke.findOne(decodeURI(t.hash),this._element);oo(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(fo),this._activateParents(e),se.trigger(this._element,mS,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(yS)){ke.findOne(SS,e.closest(CS)).classList.add(fo);return}for(const t of ke.parents(e,bS))for(const r of ke.prev(t,ES))r.classList.add(fo)}_clearActiveClass(e){e.classList.remove(fo);const t=ke.find(`${Uc}.${fo}`,e);for(const r of t)r.classList.remove(fo)}static jQueryInterface(e){return this.each(function(){const t=aa.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}se.on(window,gS,()=>{for(const n of ke.find(vS))aa.getOrCreateInstance(n)}),$t(aa);const TS="tab",wr=".bs.tab",xS=`hide${wr}`,AS=`hidden${wr}`,OS=`show${wr}`,MS=`shown${wr}`,NS=`click${wr}`,_S=`keydown${wr}`,IS=`load${wr}`,DS="ArrowLeft",Mm="ArrowRight",LS="ArrowUp",Nm="ArrowDown",kr="active",_m="fade",jc="show",RS="dropdown",BS=".dropdown-toggle",$S=".dropdown-menu",Wc=":not(.dropdown-toggle)",PS='.list-group, .nav, [role="tablist"]',FS=".nav-item, .list-group-item",VS=`.nav-link${Wc}, .list-group-item${Wc}, [role="tab"]${Wc}`,Im='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Kc=`${VS}, ${Im}`,zS=`.${kr}[data-bs-toggle="tab"], .${kr}[data-bs-toggle="pill"], .${kr}[data-bs-toggle="list"]`;class ho extends Jt{constructor(e){super(e),this._parent=this._element.closest(PS),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),se.on(this._element,_S,t=>this._keydown(t)))}static get NAME(){return TS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?se.trigger(t,xS,{relatedTarget:e}):null;se.trigger(e,OS,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(kr),this._activate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(jc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),se.trigger(e,MS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(_m))}_deactivate(e,t){if(!e)return;e.classList.remove(kr),e.blur(),this._deactivate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(jc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),se.trigger(e,AS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(_m))}_keydown(e){if(![DS,Mm,LS,Nm].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Mm,Nm].includes(e.key),r=Oc(this._getChildren().filter(o=>!Un(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),ho.getOrCreateInstance(r).show())}_getChildren(){return ke.find(Kc,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ke.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(RS))return;const o=(s,i)=>{const l=ke.findOne(s,r);l&&l.classList.toggle(i,t)};o(BS,kr),o($S,jc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(kr)}_getInnerElement(e){return e.matches(Kc)?e:ke.findOne(Kc,e)}_getOuterElement(e){return e.closest(FS)||e}static jQueryInterface(e){return this.each(function(){const t=ho.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}se.on(document,NS,Im,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Un(this)&&ho.getOrCreateInstance(this).show()}),se.on(window,IS,()=>{for(const n of ke.find(zS))ho.getOrCreateInstance(n)}),$t(ho);const HS="toast",Yn=".bs.toast",US=`mouseover${Yn}`,jS=`mouseout${Yn}`,WS=`focusin${Yn}`,KS=`focusout${Yn}`,YS=`hide${Yn}`,GS=`hidden${Yn}`,JS=`show${Yn}`,ZS=`shown${Yn}`,XS="fade",Dm="hide",la="show",ca="showing",QS={animation:"boolean",autohide:"boolean",delay:"number"},qS={animation:!0,autohide:!0,delay:5e3};class ss extends Jt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return qS}static get DefaultType(){return QS}static get NAME(){return HS}show(){if(se.trigger(this._element,JS).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(XS);const t=()=>{this._element.classList.remove(ca),se.trigger(this._element,ZS),this._maybeScheduleHide()};this._element.classList.remove(Dm),Xo(this._element),this._element.classList.add(la,ca),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||se.trigger(this._element,YS).defaultPrevented)return;const t=()=>{this._element.classList.add(Dm),this._element.classList.remove(ca,la),se.trigger(this._element,GS)};this._element.classList.add(ca),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(la),super.dispose()}isShown(){return this._element.classList.contains(la)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){se.on(this._element,US,e=>this._onInteraction(e,!0)),se.on(this._element,jS,e=>this._onInteraction(e,!1)),se.on(this._element,WS,e=>this._onInteraction(e,!0)),se.on(this._element,KS,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=ss.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Zi(ss),$t(ss);function ua(n=void 0){const e=l=>s("Succesvol",l,Mr.SUCCESS),t=l=>s("Waarschuwing",l,Mr.WARNING),r=l=>s("Informatie",l,Mr.INFO),o=l=>s("Mislukt",l,Mr.DANGER);function s(l,a,c){const d=`toast-${vu()}`,f={id:d,variant:c,title:l,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=u.h(_a,f),g=u.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${d}`);y&&(ss.getOrCreateInstance(y,n).show(),i(y))}function i(l){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const c=new MutationObserver(a),d={attributes:!0};c.observe(l,d)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const ew=n=>Array.isArray(n)&&n.length>0,{showDangerToast:tw}=ua();function Yc(n){const e=u.ref(null),t=(a,c="serverErrors")=>{var f;let d=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?d=a.response.data.filter(h=>vs(h.ErrorMessage)&&h.ErrorMessage!==$e):a.response.data.ErrorMessage?d=[a.response.data.ErrorMessage]:d=null,vs(c))e.value=d;else if(Array.isArray(c)){let h=e.value;for(let p=0;p<c.length;p++)p===c.length-1?h[c[p]]=d:h=h[c[p]]}r(a),i(e)},r=a=>{if(n==null)return;const d=new URL(a.request.responseURL).pathname;if(d in n.error){const f=n.error[d];f&&tw(f)}},o=u.ref(null),s=u.ref(""),i=a=>{ew(a.value)?o.value=a.value.map(c=>vs(c)?c:c.ErrorMessage):vs(a.value)&&(s.value=a.value)};function l(){e.value=null,o.value=null,s.value=$e}return{serverErrors:e,errorMessages:o,errorMessageText:s,MapErrors:i,MapServerErrors:t,ResetServerErrors:l}}const Lm=()=>({ResetValidation:t=>{for(const r in t.value)t.value[r].state=null},ValidationObjectIsValid:t=>{for(let r in t)if(t[r].state===!1)return!1;return!0}}),nw={class:"template change-password-template"},rw={class:"template-title"},ow={key:0},sw={key:1},iw=["onSubmit","onReset"],aw={class:"bd-form-field"},lw={class:"bd-form-field"},cw={class:"bd-form-field"},uw={class:"bd-form-buttons"},Rm=u.defineComponent({__name:"BDChangePasswordTemplate",props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(n){const e=n,{showDangerToast:t,showSuccessToast:r}=ua(),{errorMessages:o,errorMessageText:s,MapServerErrors:i,ResetServerErrors:l}=Yc(null),{ValidationObjectIsValid:a}=Lm();let c=u.ref({password:$e,passwordNew:$e,passwordRepeat:$e}),d=u.ref({password:{state:null,errorLabel:$e},passwordNew:{state:null,errorLabel:$e},passwordRepeat:{state:null,errorLabel:$e}});const f=()=>{if(!h())return;const g=e.submitPassword(c.value);g&&g.then(()=>{r(e.successText),p()}).catch(y=>{t(e.failureText),i(y)})},h=()=>{const m=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;if(c.value.passwordNew&&!m.test(c.value.passwordNew))d.value.passwordNew.state=!1,d.value.passwordNew.errorLabel=e.minimalRequirementsText;else{const g=c.value.passwordRepeat===c.value.passwordNew,y=g?e.requiredText:e.incompatibleText;d.value.passwordNew.state=c.value.passwordNew!==$e&&g?null:!1,d.value.passwordNew.errorLabel=y,d.value.passwordRepeat.state=c.value.passwordRepeat!==$e&&g?null:!1,d.value.passwordRepeat.errorLabel=y}return d.value.password.state=c.value.password!==$e?null:!1,d.value.password.errorLabel=d.value.password.state?$e:e.requiredText,a(d.value)},p=()=>{c.value.password=$e,c.value.passwordNew=$e,c.value.passwordRepeat=$e,d.value.password.state=null,d.value.passwordNew.state=null,d.value.passwordRepeat.state=null,l()};return(m,g)=>(u.openBlock(),u.createElementBlock("main",nw,[u.createVNode(as,{class:"container-xl"},{default:u.withCtx(()=>[u.createVNode(Xn,{class:"justify-content-md-center template-header"},{default:u.withCtx(()=>[u.createVNode(Zn,{xs:12,md:10,lg:7},{default:u.withCtx(()=>[u.createElementVNode("h1",rw,u.toDisplayString(e.templateTitle),1)]),_:1})]),_:1}),u.createVNode(Xn,{class:"justify-content-md-center"},{default:u.withCtx(()=>[u.createVNode(Zn,{xs:12,md:10,lg:7},{default:u.withCtx(()=>[u.createVNode(gs,{class:"bd-card-template","no-header":!0},{body:u.withCtx(()=>[u.createVNode(as,{class:"container-fluid"},{default:u.withCtx(()=>[u.createVNode(Xn,null,{default:u.withCtx(()=>[u.createVNode(Zn,null,{default:u.withCtx(()=>[u.createVNode(yo,{variant:"warning"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(m.alertText),1)]),_:1})]),_:1})]),_:1}),u.unref(o)||u.unref(s)?(u.openBlock(),u.createBlock(Xn,{key:0},{default:u.withCtx(()=>[u.createVNode(Zn,null,{default:u.withCtx(()=>[u.createVNode(yo,{variant:"danger"},{default:u.withCtx(()=>[u.unref(o)?(u.openBlock(),u.createElementBlock("div",ow,[u.createElementVNode("ul",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(o),(y,C)=>(u.openBlock(),u.createElementBlock("li",{key:C},[u.createVNode(qn),u.createElementVNode("span",null,u.toDisplayString(y),1)]))),128))])])):(u.openBlock(),u.createElementBlock("div",sw,u.toDisplayString(u.unref(s)),1))]),_:1})]),_:1})]),_:1})):u.createCommentVNode("",!0),u.createVNode(Xn,null,{default:u.withCtx(()=>[u.createVNode(Zn,{class:"bd-card-form",sm:12,md:12},{default:u.withCtx(()=>[u.createElementVNode("form",{onSubmit:u.withModifiers(f,["prevent"]),onReset:u.withModifiers(p,["prevent"]),class:"form"},[u.createElementVNode("div",aw,[u.createVNode(nr,{modelValue:u.unref(c).password,"onUpdate:modelValue":g[0]||(g[0]=y=>u.unref(c).password=y),label:m.currentPasswordLabel,state:u.unref(d).password.state,type:"password","invalid-feedback-text":u.unref(d).password.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),u.createElementVNode("div",lw,[u.createVNode(nr,{modelValue:u.unref(c).passwordNew,"onUpdate:modelValue":g[1]||(g[1]=y=>u.unref(c).passwordNew=y),label:m.newPasswordLabel,state:u.unref(d).passwordNew.state,type:"password","invalid-feedback-text":u.unref(d).passwordNew.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),u.createElementVNode("div",cw,[u.createVNode(nr,{modelValue:u.unref(c).passwordRepeat,"onUpdate:modelValue":g[2]||(g[2]=y=>u.unref(c).passwordRepeat=y),label:m.confirmNewPasswordLabel,state:u.unref(d).passwordRepeat.state,type:"password","invalid-feedback-text":u.unref(d).passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),u.createElementVNode("div",uw,[u.createVNode(Je,{type:"submit"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(m.submitButtonText),1)]),_:1}),u.createVNode(Je,{type:"reset",variant:"link"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(m.cancelButtonText),1)]),_:1})])],40,iw)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),Gc=u.defineComponent({__name:"BDDropdown",props:{size:{default:lt.MD},variant:{default:hs.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=Or(),r=`__BD__DROPDOWN__${t.value}`,o=u.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),s=u.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),i=u.computed(()=>({"aria-labelledby":r})),l=u.ref(),a=u.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(d,f)=>(u.openBlock(),u.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=u.withModifiers(()=>{},["stop"]))},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.toggleTag),u.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:u.withCtx(()=>[u.createElementVNode("span",null,u.toDisplayString(e.text),1)]),_:1},16)),u.createElementVNode("ul",u.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",s.value]},i.value,{onClick:c}),[u.renderSlot(d.$slots,"default")],16)]))}}),dw={class:"row bd-header"},fw={class:"col logo-mix"},hw=["src","alt"],pw=u.createElementVNode("div",null,"Menu",-1),mw={key:0,class:"col header-options"},gw={class:"col bd-btn-settings"},yw="sm",Bm=u.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=u.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=u.ref(void 0),s=()=>e("click"),i=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,d)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("nav",dw,[u.createElementVNode("div",fw,[u.createVNode(xa,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:s}),t.organizationLogoSrc?(u.openBlock(),u.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,hw)):u.createCommentVNode("",!0)]),u.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[pw,u.createVNode(fs)]),t.headerOptions&&t.headerOptions.length!==0?(u.openBlock(),u.createElementBlock("div",mw,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.headerOptions,f=>(u.openBlock(),u.createBlock(Je,{class:"btn-header",to:f.to},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(f.text),1)]),_:2},1032,["to"]))),256))])):u.createCommentVNode("",!0),u.createElementVNode("div",gw,[u.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(u.openBlock(),u.createBlock(vo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:yw},null,8,["src","alt"])):u.createCommentVNode("",!0),u.createVNode(Gc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.dropdownOptions,(f,h)=>(u.openBlock(),u.createBlock(Es,u.mergeProps({key:h},f),null,16))),128)),u.createVNode(Es,{text:"Uitloggen",onClick:i})]),_:1},8,["text"])])]),u.createVNode(kc,{active:o.value,options:r.value,onHide:a,onSignout:i},{"special-options":u.withCtx(()=>[u.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),vw={class:"modal-dialog"},bw={class:"modal-content"},Ew={class:"modal-header"},Cw={class:"modal-title"},Sw=["src"],ww=u.createElementVNode("span",null,"Sluiten",-1),kw={class:"modal-body"},Tw={key:0,class:"modal-footer"},xw=["disabled"],is=u.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:"lg"}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=u.computed(()=>`modal bd-modal modal-${t.size}`),o=()=>e("submit"),s=()=>e("cancel");return(i,l)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(r.value),tabindex:"-1"},[u.createElementVNode("div",vw,[u.createElementVNode("div",bw,[u.createElementVNode("div",Ew,[u.createElementVNode("h2",Cw,[t.titleImage?(u.openBlock(),u.createElementBlock("img",{key:0,src:t.titleImage,class:"title-image",alt:""},null,8,Sw)):u.createCommentVNode("",!0),u.createElementVNode("span",null,u.toDisplayString(t.title),1)]),u.renderSlot(i.$slots,"modal-header-space-between"),t.hideCloseButton?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:s},[ww,u.createVNode(u.unref(ls))]))]),u.createElementVNode("div",kw,[u.renderSlot(i.$slots,"default")]),i.hideFooter?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",Tw,[t.hideFooterSubmitButton?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:o},u.toDisplayString(t.submitButtonTitle),9,xw)),u.renderSlot(i.$slots,"buttons"),t.hideFooterCancelButton?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:s,"aria-label":"Annuleren"},u.toDisplayString(t.closeButtonTitle),1))]))])])],2))}}),da=n=>{const e=u.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value=Wn.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(n);if(o instanceof HTMLElement){const s=Wn.getInstance(o);s&&s.hide()}}}};function $m(){const n=u.ref(0),e=u.ref(!0),t=u.ref(null),r=u.ref({top:0,left:0,x:0,y:0}),o=u.computed(()=>n.value>0?`zoom-${n.value}`:"");return{zoom:n,mouseDown:e,imageHolderRef:t,pos:r,SetZoom:o,OnMouseDown:a=>{if(!t.value)return;r.value.left=t.value.scrollLeft,r.value.top=t.value.scrollTop;const c=document.querySelector("#image-attachment-modal"),d=document.querySelector(".image-preview-image-holder");c&&(c.style.cursor="grabbing"),d&&(d.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const c=a.clientX-r.value.x,d=a.clientY-r.value.y;t.value&&(t.value.scrollTop=r.value.top-d,t.value.scrollLeft=r.value.left-c)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),c=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),c&&c.style&&(c.style.cursor="grab"),e.value=!1}}}const Aw=["src","alt"],Ow={key:0,class:"show-spinner"},Mw={class:"spinner-border text-primary",role:"status"},Nw={class:"visually-hidden"},_w=["href"],Pm=u.defineComponent({__name:"BDImageAttachmentModal",props:["loadingText","downloadText"],setup(n,{expose:e}){const t=n,{showModal:r}=da("image-attachment-modal"),{zoom:o,imageHolderRef:s,SetZoom:i,OnMouseDown:l,OnMouseMove:a,OnMouseUp:c}=$m(),d=u.ref(!0),f=u.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:$e,altName:$e,downloadUrl:$e,fullImageUrl:$e,previewUrl:$e});e({Show:g=>{f.value=g,o.value=0,r()}});const p=()=>{d.value=!1},m=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:$e,altName:$e,downloadUrl:$e,fullImageUrl:$e,previewUrl:$e}};return(g,y)=>(u.openBlock(),u.createBlock(is,{id:"image-attachment-modal",class:u.normalizeClass(u.unref($e)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:m},{default:u.withCtx(()=>[u.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:s,onMousedown:y[0]||(y[0]=(...C)=>u.unref(l)&&u.unref(l)(...C)),onMousemove:y[1]||(y[1]=(...C)=>u.unref(a)&&u.unref(a)(...C)),onMouseup:y[2]||(y[2]=(...C)=>u.unref(c)&&u.unref(c)(...C))},[f.value?(u.openBlock(),u.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:u.normalizeClass(["image-preview-modal",u.unref(i)]),onLoad:p,draggable:!1},null,42,Aw)):u.createCommentVNode("",!0)],544),d.value?(u.openBlock(),u.createElementBlock("div",Ow,[u.createElementVNode("div",Mw,[u.createElementVNode("span",Nw,u.toDisplayString(t.loadingText),1)])])):u.createCommentVNode("",!0),u.createVNode(Oa,{modelValue:u.unref(o),"onUpdate:modelValue":y[3]||(y[3]=C=>u.isRef(o)?o.value=C:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),u.createElementVNode("a",{href:f.value.downloadUrl},[u.createVNode(Je,{variant:"primary",class:"download-image"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.downloadText),1)]),_:1})],8,_w)]),_:1},8,["class","title"]))}}),Iw={key:0},Dw={key:1},Lw={class:"bd-form-field"},Rw={class:"bd-form-field"},Fm=u.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(n,{expose:e,emit:t}){const r=n,{showSuccessToast:o,showWarningToast:s}=ua(),{serverErrors:i,errorMessages:l,errorMessageText:a,MapServerErrors:c,ResetServerErrors:d}=Yc(null),{closeModal:f}=da("phone-number-edit-modal");let h=$e;const p=u.ref(),m=u.ref(null),g=u.ref(),y=u.ref(),C=u.ref(null),S=u.computed(()=>y.value==null||y.value==""),k=()=>{if(m.value=null,d(),!p.value||p.value==h){m.value=!1;return}const U={newPhonenumber:p.value};r.startPhoneNumberUpdate(U).then(A).catch(c)},v=()=>{if(!y.value){C.value=!1;return}const U={requestIdentifier:g.value,token:y.value};r.confirmPhoneNumberUpdate(U).then(T).catch(c)},A=U=>{m.value=null,o(r.confirmationCodeSentText),g.value=U.data.RequestIdentifier},T=()=>{t("setPhoneNumber",p.value),o(r.editSuccessText),f(),m.value=null,C.value=null},V=U=>{h=U,p.value=h,m.value=null,g.value=void 0,y.value=void 0,C.value=null},H=()=>{V(h),d(),s(r.editCanceledText)};return e({Reset:V}),(U,B)=>(u.openBlock(),u.createBlock(is,{id:"phone-number-edit-modal",class:u.normalizeClass(u.unref($e)),title:r.modalTitle,submitButtonTitle:r.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":S.value,serverErrors:u.unref(i),errorMessages:u.unref(l),errorMessageText:u.unref(a),onSubmit:v,onCancel:H},{default:u.withCtx(()=>[u.unref(a)||u.unref(l)?(u.openBlock(),u.createBlock(yo,{key:0,variant:"danger"},{default:u.withCtx(()=>[u.unref(l)?(u.openBlock(),u.createElementBlock("div",Iw,[u.createElementVNode("ul",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(l),(L,z)=>(u.openBlock(),u.createElementBlock("li",{key:z},[u.createVNode(qn),u.createElementVNode("span",null,u.toDisplayString(L),1)]))),128))])])):(u.openBlock(),u.createElementBlock("div",Dw,u.toDisplayString(u.unref(a)),1))]),_:1})):u.createCommentVNode("",!0),u.createElementVNode("div",Lw,[u.createVNode(nr,{id:"form-input-phone-number",label:r.phoneNumberLabel,modelValue:p.value,"onUpdate:modelValue":B[0]||(B[0]=L=>p.value=L),state:m.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":r.phoneNumberUnchangedText},{default:u.withCtx(()=>[u.createVNode(Je,{type:"button",onClick:k},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.sendConfirmationCodeText),1)]),_:1})]),_:1},8,["label","modelValue","state","invalid-feedback-text"])]),u.createElementVNode("div",Rw,[g.value?(u.openBlock(),u.createBlock(nr,{key:0,label:r.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":B[1]||(B[1]=L=>y.value=L),state:C.value,"invalid-feedback-text":r.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):u.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}});var Vm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Ia,function(){var t=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",c="day",d="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var F=["th","st","nd","rd"],P=j%100;return"["+j+(F[(P-20)%10]||F[P]||F[0])+"]"}},k=function(j,F,P){var G=String(j);return!G||G.length>=F?j:""+Array(F+1-G.length).join(P)+j},v={s:k,z:function(j){var F=-j.utcOffset(),P=Math.abs(F),G=Math.floor(P/60),D=P%60;return(F<=0?"+":"-")+k(G,2,"0")+":"+k(D,2,"0")},m:function j(F,P){if(F.date()<P.date())return-j(P,F);var G=12*(P.year()-F.year())+(P.month()-F.month()),D=F.clone().add(G,f),Q=P-D<0,te=F.clone().add(G+(Q?-1:1),f);return+(-(G+(P-D)/(Q?D-te:te-D))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:f,y:p,w:d,d:c,D:m,h:a,m:l,s:i,ms:s,Q:h}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},A="en",T={};T[A]=S;var V="$isDayjsObject",H=function(j){return j instanceof z||!(!j||!j[V])},U=function j(F,P,G){var D;if(!F)return A;if(typeof F=="string"){var Q=F.toLowerCase();T[Q]&&(D=Q),P&&(T[Q]=P,D=Q);var te=F.split("-");if(!D&&te.length>1)return j(te[0])}else{var ce=F.name;T[ce]=F,D=ce}return!G&&D&&(A=D),D||!G&&A},B=function(j,F){if(H(j))return j.clone();var P=typeof F=="object"?F:{};return P.date=j,P.args=arguments,new z(P)},L=v;L.l=U,L.i=H,L.w=function(j,F){return B(j,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var z=function(){function j(P){this.$L=U(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[V]=!0}var F=j.prototype;return F.parse=function(P){this.$d=function(G){var D=G.date,Q=G.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var te=D.match(y);if(te){var ce=te[2]-1||0,me=(te[7]||"0").substring(0,3);return Q?new Date(Date.UTC(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,me)):new Date(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,me)}}return new Date(D)}(P),this.init()},F.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function(P,G){var D=B(P);return this.startOf(G)<=D&&D<=this.endOf(G)},F.isAfter=function(P,G){return B(P)<this.startOf(G)},F.isBefore=function(P,G){return this.endOf(G)<B(P)},F.$g=function(P,G,D){return L.u(P)?this[G]:this.set(D,P)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(P,G){var D=this,Q=!!L.u(G)||G,te=L.p(P),ce=function(M,w){var O=L.w(D.$u?Date.UTC(D.$y,w,M):new Date(D.$y,w,M),D);return Q?O:O.endOf(c)},me=function(M,w){return L.w(D.toDate()[M].apply(D.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(w)),D)},ge=this.$W,Ce=this.$M,we=this.$D,Te="set"+(this.$u?"UTC":"");switch(te){case p:return Q?ce(1,0):ce(31,11);case f:return Q?ce(1,Ce):ce(0,Ce+1);case d:var ve=this.$locale().weekStart||0,x=(ge<ve?ge+7:ge)-ve;return ce(Q?we-x:we+(6-x),Ce);case c:case m:return me(Te+"Hours",0);case a:return me(Te+"Minutes",1);case l:return me(Te+"Seconds",2);case i:return me(Te+"Milliseconds",3);default:return this.clone()}},F.endOf=function(P){return this.startOf(P,!1)},F.$set=function(P,G){var D,Q=L.p(P),te="set"+(this.$u?"UTC":""),ce=(D={},D[c]=te+"Date",D[m]=te+"Date",D[f]=te+"Month",D[p]=te+"FullYear",D[a]=te+"Hours",D[l]=te+"Minutes",D[i]=te+"Seconds",D[s]=te+"Milliseconds",D)[Q],me=Q===c?this.$D+(G-this.$W):G;if(Q===f||Q===p){var ge=this.clone().set(m,1);ge.$d[ce](me),ge.init(),this.$d=ge.set(m,Math.min(this.$D,ge.daysInMonth())).$d}else ce&&this.$d[ce](me);return this.init(),this},F.set=function(P,G){return this.clone().$set(P,G)},F.get=function(P){return this[L.p(P)]()},F.add=function(P,G){var D,Q=this;P=Number(P);var te=L.p(G),ce=function(Ce){var we=B(Q);return L.w(we.date(we.date()+Math.round(Ce*P)),Q)};if(te===f)return this.set(f,this.$M+P);if(te===p)return this.set(p,this.$y+P);if(te===c)return ce(1);if(te===d)return ce(7);var me=(D={},D[l]=r,D[a]=o,D[i]=t,D)[te]||1,ge=this.$d.getTime()+P*me;return L.w(ge,this)},F.subtract=function(P,G){return this.add(-1*P,G)},F.format=function(P){var G=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var Q=P||"YYYY-MM-DDTHH:mm:ssZ",te=L.z(this),ce=this.$H,me=this.$m,ge=this.$M,Ce=D.weekdays,we=D.months,Te=D.meridiem,ve=function(w,O,b,E){return w&&(w[O]||w(G,Q))||b[O].slice(0,E)},x=function(w){return L.s(ce%12||12,w,"0")},M=Te||function(w,O,b){var E=w<12?"AM":"PM";return b?E.toLowerCase():E};return Q.replace(C,function(w,O){return O||function(b){switch(b){case"YY":return String(G.$y).slice(-2);case"YYYY":return L.s(G.$y,4,"0");case"M":return ge+1;case"MM":return L.s(ge+1,2,"0");case"MMM":return ve(D.monthsShort,ge,we,3);case"MMMM":return ve(we,ge);case"D":return G.$D;case"DD":return L.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return ve(D.weekdaysMin,G.$W,Ce,2);case"ddd":return ve(D.weekdaysShort,G.$W,Ce,3);case"dddd":return Ce[G.$W];case"H":return String(ce);case"HH":return L.s(ce,2,"0");case"h":return x(1);case"hh":return x(2);case"a":return M(ce,me,!0);case"A":return M(ce,me,!1);case"m":return String(me);case"mm":return L.s(me,2,"0");case"s":return String(G.$s);case"ss":return L.s(G.$s,2,"0");case"SSS":return L.s(G.$ms,3,"0");case"Z":return te}return null}(w)||te.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(P,G,D){var Q,te=this,ce=L.p(G),me=B(P),ge=(me.utcOffset()-this.utcOffset())*r,Ce=this-me,we=function(){return L.m(te,me)};switch(ce){case p:Q=we()/12;break;case f:Q=we();break;case h:Q=we()/3;break;case d:Q=(Ce-ge)/6048e5;break;case c:Q=(Ce-ge)/864e5;break;case a:Q=Ce/o;break;case l:Q=Ce/r;break;case i:Q=Ce/t;break;default:Q=Ce}return D?Q:L.a(Q)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return T[this.$L]},F.locale=function(P,G){if(!P)return this.$L;var D=this.clone(),Q=U(P,G,!0);return Q&&(D.$L=Q),D},F.clone=function(){return L.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},j}(),W=z.prototype;return B.prototype=W,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(j){W[j[1]]=function(F){return this.$g(F,j[0],j[1])}}),B.extend=function(j,F){return j.$i||(j(F,z,B),j.$i=!0),B},B.locale=U,B.isDayjs=H,B.unix=function(j){return B(1e3*j)},B.en=T[A],B.Ls=T,B.p={},B})})(Vm);var zm=Vm.exports;const po=Da(zm),Hm=(n,e,t,r,o,s)=>{const i=u.ref(null),l=u.ref(null),a=u.ref(!1),c=u.ref(null),{showModal:d,closeModal:f}=da("session-time-out-modal"),h=u.computed(()=>i.value&&n?n-(i.value+1):0),p=u.computed(()=>l.value?60-l.value:0),m=u.computed(()=>a.value),g=()=>{c.value=setInterval(C,1e3),r(c.value)},y=()=>{c.value&&clearInterval(c.value)},C=()=>{i.value=po().diff(t(),"m"),l.value=po().subtract(i.value,"m").diff(t(),"s");const H=n??Number.MAX_SAFE_INTEGER,U=e??0;i.value>=H?(a.value=!0,d(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=S):i.value>=H-U?d():f()},S=H=>{H.stopPropagation(),v()},k=()=>{o(),y(),i.value=null,l.value=null,g()},v=()=>{y(),i.value=null,l.value=null,localStorage.removeItem("session-timeout"),s()},A=()=>{a.value?v():k()},T=()=>{v()},V=()=>{a.value?v():f()};return u.onMounted(()=>{const H=document.getElementById("session-time-out-modal");H&&H.addEventListener("hidden.bs.modal",A),y(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:T,OnSubmit:V}},Um=u.defineComponent({__name:"BDSessionTimeOutModal",props:["expiredTitle","expiredMessage","expiredButtonText","almostExpiredTitle","almostExpiredMessage","almostExpiredButtonText","almostExpiredCancelButtonText","threshold","warningThreshold","getTime","setTaskId","setNewTime","logout"],setup(n){const e=n,{IsExpired:t,Minutes:r,Seconds:o,OnLogOut:s,OnSubmit:i}=Hm(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),l=u.computed(()=>t.value?e.expiredTitle:e.almostExpiredTitle),a=u.computed(()=>t.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),c=u.computed(()=>t.value?e.expiredButtonText:e.almostExpiredButtonText);return(d,f)=>(u.openBlock(),u.createBlock(is,{id:"session-time-out-modal",title:l.value,"hide-close-button":!0,"hide-footer-cancel-button":u.unref(t),"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":c.value,size:"md",onSubmit:u.unref(i),onCancel:u.unref(s)},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(a.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}});function jm(){const n=()=>new Promise(t=>{if(document.readyState==="complete")return t();window.addEventListener("load",()=>t(),{once:!0})});return{OnWindowLoaded:t=>{u.onMounted(()=>n().then(t))}}}function Bw(n){const{OnWindowLoaded:e}=jm();let t;const r=()=>{t=document.addEventListener("click",s=>{if(!s||!s.target)return;let i=null;if(s.target instanceof Element&&(i=s.target.closest(".popover")),i)return;const l=uo.getInstance(n.value);l&&l.hide()})};u.onMounted(r),e(()=>new uo(n.value)),u.onUnmounted(()=>{const s=uo.getInstance(n.value);s&&s.dispose(),t&&document.removeEventListener("click",t)})}const Wm={mounted:n=>{new Sr(n)}};var $w={exports:{}};(function(n,e){(function(t,r){n.exports=r(zm)})(Ia,function(t){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(t),s={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(i){return"["+i+(i===1||i===8||i>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(s,null,!0),s})})($w);var Km={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Ia,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,a={},c=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(C){this[y]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var S=C.match(/([+-]|\d\d)/g),k=60*S[1]+(+S[2]||0);return k===0?0:S[0]==="+"?-k:k}(y)}],h=function(y){var C=a[y];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(y,C){var S,k=a.meridiem;if(k){for(var v=1;v<=24;v+=1)if(y.indexOf(k(v,0,C))>-1){S=v>12;break}}else S=y===(C?"pm":"PM");return S},m={A:[l,function(y){this.afternoon=p(y,!1)}],a:[l,function(y){this.afternoon=p(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[s,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[s,d("day")],Do:[l,function(y){var C=a.ordinal,S=y.match(/\d+/);if(this.day=S[0],C)for(var k=1;k<=31;k+=1)C(k).replace(/\[|\]/g,"")===y&&(this.day=k)}],w:[i,d("week")],ww:[s,d("week")],M:[i,d("month")],MM:[s,d("month")],MMM:[l,function(y){var C=h("months"),S=(h("monthsShort")||C.map(function(k){return k.slice(0,3)})).indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(y){var C=h("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,d("year")],YY:[s,function(y){this.year=c(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(y){var C,S;C=y,S=a&&a.formats;for(var k=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(B,L,z){var W=z&&z.toUpperCase();return L||S[z]||t[z]||S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,F,P){return F||P.slice(1)})})).match(r),v=k.length,A=0;A<v;A+=1){var T=k[A],V=m[T],H=V&&V[0],U=V&&V[1];k[A]=U?{regex:H,parser:U}:T.replace(/^\[|\]$/g,"")}return function(B){for(var L={},z=0,W=0;z<v;z+=1){var j=k[z];if(typeof j=="string")W+=j.length;else{var F=j.regex,P=j.parser,G=B.slice(W),D=F.exec(G)[0];P.call(L,D),B=B.replace(D,"")}}return function(Q){var te=Q.afternoon;if(te!==void 0){var ce=Q.hours;te?ce<12&&(Q.hours+=12):ce===12&&(Q.hours=0),delete Q.afternoon}}(L),L}}return function(y,C,S){S.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var k=C.prototype,v=k.parse;k.parse=function(A){var T=A.date,V=A.utc,H=A.args;this.$u=V;var U=H[1];if(typeof U=="string"){var B=H[2]===!0,L=H[3]===!0,z=B||L,W=H[2];L&&(W=H[2]),a=this.$locale(),!B&&W&&(a=S.Ls[W]),this.$d=function(G,D,Q,te){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*G);var ce=g(D)(G),me=ce.year,ge=ce.month,Ce=ce.day,we=ce.hours,Te=ce.minutes,ve=ce.seconds,x=ce.milliseconds,M=ce.zone,w=ce.week,O=new Date,b=Ce||(me||ge?1:O.getDate()),E=me||O.getFullYear(),_=0;me&&!ge||(_=ge>0?ge-1:O.getMonth());var I,R=we||0,$=Te||0,K=ve||0,J=x||0;return M?new Date(Date.UTC(E,_,b,R,$,K,J+60*M.offset*1e3)):Q?new Date(Date.UTC(E,_,b,R,$,K,J)):(I=new Date(E,_,b,R,$,K,J),w&&(I=te(I).week(w).toDate()),I)}catch{return new Date("")}}(T,U,V,S),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),z&&T!=this.format(U)&&(this.$d=new Date("")),a={}}else if(U instanceof Array)for(var j=U.length,F=1;F<=j;F+=1){H[1]=U[F-1];var P=S.apply(this,H);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}F===j&&(this.$d=new Date(""))}else v.call(this,A)}}})})(Km);var Pw=Km.exports;const Fw=Da(Pw);po.extend(Fw),po.locale("nl");function Vw(n,e=po().startOf("day")){const t="DD-MM-YYYY",r=po(n,t);if(r.isSame(e))return"vandaag";const s=e.subtract(1,"day");if(r.isSame(s))return"gister";const l=e.subtract(2,"day");if(r.isSame(l))return"eergister";const c=e.subtract(7,"day");if(r.isAfter(c)){const h="dddd";return r.format(h)}if(r.year()==e.year()){const h="D MMM";return r.format(h)}return r.format(t)}const zw={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},Je=u.defineComponent({__name:"BDButton",props:{size:{default:lt.MD},variant:{default:zw.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=u.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=u.computed(()=>t.to?Ar:"button"),s=u.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),i=l=>{e("click",l)};return(l,a)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(o.value),u.mergeProps({class:["bd-btn",r.value]},s.value,{onClick:i}),{default:u.withCtx(()=>[u.renderSlot(l.$slots,"default",{},()=>[u.createTextVNode(u.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),Hw={install:n=>{n.component("BDCol",Zn),n.component("BDContainer",as),n.component("BDRow",Xn),n.component("BDButton",Je),n.component("BDLogo",xa),n.component("BDLink",Ar),n.component("BDDropdownItem",Es),n.component("BDDropdown",Gc),n.component("BDAlert",yo),n.component("BDProfileImage",vo),n.component("BDZoomslider",Oa),n.component("BDCard",gs),n.component("BDCollapsableCard",bu),n.component("BDFormInput",nr),n.component("BDInputGroup",ku),n.component("BDFormInvalidFeedback",ys),n.component("BDBadge",Tu),n.component("BDForm",xu),n.component("BDPagination",Au),n.component("BDDropzone",Du),n.component("BDMarkdownEditor",Mp),n.component("BDModal",is),n.component("BDFormSelect",Ou),n.component("BDUser",Np),n.component("BDArticle",Nu),n.component("BDFormCheckbox",Mu),n.component("BDToast",_a),n.component("BDAttachmentPreviewList",Ki),n.component("BDImageAttachmentPreviewList",Yi),n.component("BDHeader",Bm),n.component("BDMobileMenu",kc),n.component("BDChatCloud",_p),n.component("BDTable",Ip),n.component("BDChangePasswordTemplate",Rm),n.component("BDPill",bs),n.component("BDImageAttachmentModal",Pm),n.component("BDPhoneNumberEditModal",Fm),n.component("BDSessionTimeOutModal",Um),n.component("IconAcademy",tu),n.component("IconArrowDown",nu),n.component("IconArrowUp",ru),n.component("IconAttachment",Qn),n.component("IconBold",ha),n.component("IconBulletList",pa),n.component("IconCalendar",ma),n.component("IconCalendar",ma),n.component("IconCardView",ou),n.component("IconCaretDown",ga),n.component("IconCaretLeft",ya),n.component("IconCaretRight",va),n.component("IconCheck",xr),n.component("IconClose",ls),n.component("IconComment",dg),n.component("IconDownloadImage",cs),n.component("IconDownloadImage",cs),n.component("IconEdit",su),n.component("IconError",us),n.component("IconEyeShow",iu),n.component("IconEyeSlash",au),n.component("IconFile",ba),n.component("IconHyperlink",ds),n.component("IconInfo",qn),n.component("IconItalic",Ea),n.component("IconListView",lu),n.component("IconMenu",fs),n.component("IconMenu",fs),n.component("IconOrderedList",Ca),n.component("IconRemove",go),n.component("IconService",cu),n.component("IconSort",uu),n.component("IconSortAsc",Sa),n.component("IconSortDesc",wa),n.component("IconSortNone",ka),n.component("IconTriangleExclamation",du),n.component("IconUnderline",Ta),n.component("IconContactPerson",fu),n.directive("vBDTooltip",Wm)}};ue.BDAlert=yo,ue.BDArticle=Nu,ue.BDAttachmentPreviewList=Ki,ue.BDBadge=Tu,ue.BDButton=Je,ue.BDCard=gs,ue.BDChangePasswordTemplate=Rm,ue.BDChatCloud=_p,ue.BDCol=Zn,ue.BDCollapsableCard=bu,ue.BDContainer=as,ue.BDDropdown=Gc,ue.BDDropdownItem=Es,ue.BDDropzone=Du,ue.BDForm=xu,ue.BDFormCheckbox=Mu,ue.BDFormInput=nr,ue.BDFormInvalidFeedback=ys,ue.BDFormSelect=Ou,ue.BDHeader=Bm,ue.BDImageAttachmentModal=Pm,ue.BDImageAttachmentPreviewList=Yi,ue.BDInputGroup=ku,ue.BDLink=Ar,ue.BDLogo=xa,ue.BDMarkdownEditor=Mp,ue.BDMobileMenu=kc,ue.BDModal=is,ue.BDPagination=Au,ue.BDPhoneNumberEditModal=Fm,ue.BDPill=bs,ue.BDProfileImage=vo,ue.BDRow=Xn,ue.BDSessionTimeOutModal=Um,ue.BDTable=Ip,ue.BDToast=_a,ue.BDUser=Np,ue.BDZoomslider=Oa,ue.IconAcademy=tu,ue.IconArrowDown=nu,ue.IconArrowUp=ru,ue.IconAttachment=Qn,ue.IconBold=ha,ue.IconBulletList=pa,ue.IconCalendar=ma,ue.IconCardView=ou,ue.IconCaretDown=ga,ue.IconCaretLeft=ya,ue.IconCaretRight=va,ue.IconCheck=xr,ue.IconClose=ls,ue.IconContactPerson=fu,ue.IconDownloadImage=cs,ue.IconEdit=su,ue.IconError=us,ue.IconEyeShow=iu,ue.IconEyeSlash=au,ue.IconFile=ba,ue.IconHyperlink=ds,ue.IconInfo=qn,ue.IconItalic=Ea,ue.IconListView=lu,ue.IconMenu=fs,ue.IconOrderedList=Ca,ue.IconRemove=go,ue.IconService=cu,ue.IconSort=uu,ue.IconSortAsc=Sa,ue.IconSortDesc=wa,ue.IconSortNone=ka,ue.IconTriangleExclamation=du,ue.IconUnderline=Ta,ue.default=Hw,ue.getDisplayDate=Vw,ue.useModal=da,ue.usePopover=Bw,ue.useServerErrors=Yc,ue.useSessionTimeOut=Hm,ue.useToaster=ua,ue.useValidation=Lm,ue.useWindow=jm,ue.useZoom=$m,ue.vBdTooltip=Wm,Object.defineProperties(ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
131
+ */const zn=new Map,Tc={set(n,e,t){zn.has(n)||zn.set(n,new Map);const r=zn.get(n);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(n,e){return zn.has(n)&&zn.get(n).get(e)||null},remove(n,e){if(!zn.has(n))return;const t=zn.get(n);t.delete(e),t.size===0&&zn.delete(n)}},q8=1e6,e4=1e3,xc="transitionend",Dp=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),t4=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),n4=n=>{do n+=Math.floor(Math.random()*q8);while(document.getElementById(n));return n},r4=n=>{if(!n)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(n);const r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*e4)},Lp=n=>{n.dispatchEvent(new Event(xc))},vn=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),Hn=n=>vn(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(Dp(n)):null,oo=n=>{if(!vn(n)||n.getClientRects().length===0)return!1;const e=getComputedStyle(n).getPropertyValue("visibility")==="visible",t=n.closest("details:not([open])");if(!t)return e;if(t!==n){const r=n.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},Un=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Rp=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const e=n.getRootNode();return e instanceof ShadowRoot?e:null}return n instanceof ShadowRoot?n:n.parentNode?Rp(n.parentNode):null},Ji=()=>{},Xo=n=>{n.offsetHeight},Bp=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ac=[],o4=n=>{document.readyState==="loading"?(Ac.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Ac)e()}),Ac.push(n)):n()},Bt=()=>document.documentElement.dir==="rtl",$t=n=>{o4(()=>{const e=Bp();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},Ct=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,$p=(n,e,t=!0)=>{if(!t){Ct(n);return}const r=5,o=r4(e)+r;let s=!1;const i=({target:l})=>{l===e&&(s=!0,e.removeEventListener(xc,i),Ct(n))};e.addEventListener(xc,i),setTimeout(()=>{s||Lp(e)},o)},Oc=(n,e,t,r)=>{const o=n.length;let s=n.indexOf(e);return s===-1?!t&&r?n[o-1]:n[0]:(s+=t?1:-1,r&&(s=(s+o)%o),n[Math.max(0,Math.min(s,o-1))])},s4=/[^.]*(?=\..*)\.|.*/,i4=/\..*/,a4=/::\d+$/,Mc={};let Pp=1;const Fp={mouseenter:"mouseover",mouseleave:"mouseout"},l4=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Vp(n,e){return e&&`${e}::${Pp++}`||n.uidEvent||Pp++}function zp(n){const e=Vp(n);return n.uidEvent=e,Mc[e]=Mc[e]||{},Mc[e]}function c4(n,e){return function t(r){return _c(r,{delegateTarget:n}),t.oneOff&&se.off(n,r.type,e),e.apply(n,[r])}}function u4(n,e,t){return function r(o){const s=n.querySelectorAll(e);for(let{target:i}=o;i&&i!==this;i=i.parentNode)for(const l of s)if(l===i)return _c(o,{delegateTarget:i}),r.oneOff&&se.off(n,o.type,e,t),t.apply(i,[o])}}function Hp(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Up(n,e,t){const r=typeof e=="string",o=r?t:e||t;let s=Wp(n);return l4.has(s)||(s=n),[r,o,s]}function jp(n,e,t,r,o){if(typeof e!="string"||!n)return;let[s,i,l]=Up(e,t,r);e in Fp&&(i=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(i));const a=zp(n),c=a[l]||(a[l]={}),d=Hp(c,i,s?t:null);if(d){d.oneOff=d.oneOff&&o;return}const f=Vp(i,e.replace(s4,"")),h=s?u4(n,t,i):c4(n,i);h.delegationSelector=s?t:null,h.callable=i,h.oneOff=o,h.uidEvent=f,c[f]=h,n.addEventListener(l,h,s)}function Nc(n,e,t,r,o){const s=Hp(e[t],r,o);s&&(n.removeEventListener(t,s,!!o),delete e[t][s.uidEvent])}function d4(n,e,t,r){const o=e[t]||{};for(const[s,i]of Object.entries(o))s.includes(r)&&Nc(n,e,t,i.callable,i.delegationSelector)}function Wp(n){return n=n.replace(i4,""),Fp[n]||n}const se={on(n,e,t,r){jp(n,e,t,r,!1)},one(n,e,t,r){jp(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,s,i]=Up(e,t,r),l=i!==e,a=zp(n),c=a[i]||{},d=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(c).length)return;Nc(n,a,i,s,o?t:null);return}if(d)for(const f of Object.keys(a))d4(n,a,f,e.slice(1));for(const[f,h]of Object.entries(c)){const p=f.replace(a4,"");(!l||e.includes(p))&&Nc(n,a,i,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Bp(),o=Wp(e),s=e!==o;let i=null,l=!0,a=!0,c=!1;s&&r&&(i=r.Event(e,t),r(n).trigger(i),l=!i.isPropagationStopped(),a=!i.isImmediatePropagationStopped(),c=i.isDefaultPrevented());const d=_c(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&d.preventDefault(),a&&n.dispatchEvent(d),d.defaultPrevented&&i&&i.preventDefault(),d}};function _c(n,e={}){for(const[t,r]of Object.entries(e))try{n[t]=r}catch{Object.defineProperty(n,t,{configurable:!0,get(){return r}})}return n}function Kp(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Ic(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const bn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${Ic(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${Ic(e)}`)},getDataAttributes(n){if(!n)return{};const e={},t=Object.keys(n.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Kp(n.dataset[r])}return e},getDataAttribute(n,e){return Kp(n.getAttribute(`data-bs-${Ic(e)}`))}};class Qo{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=vn(t)?bn.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vn(t)?bn.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const s=e[r],i=vn(s)?"element":t4(s);if(!new RegExp(o).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${o}".`)}}}const f4="5.3.0";class Jt extends Qo{constructor(e,t){super(),e=Hn(e),e&&(this._element=e,this._config=this._getConfig(t),Tc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Tc.remove(this._element,this.constructor.DATA_KEY),se.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){$p(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Tc.get(Hn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return f4}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Dc=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return Dp(e)},ke={find(n,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,n))},findOne(n,e=document.documentElement){return Element.prototype.querySelector.call(e,n)},children(n,e){return[].concat(...n.children).filter(t=>t.matches(e))},parents(n,e){const t=[];let r=n.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(n,e){let t=n.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(n,e){let t=n.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(n){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,n).filter(t=>!Un(t)&&oo(t))},getSelectorFromElement(n){const e=Dc(n);return e&&ke.findOne(e)?e:null},getElementFromSelector(n){const e=Dc(n);return e?ke.findOne(e):null},getMultipleElementsFromSelector(n){const e=Dc(n);return e?ke.find(e):[]}},Zi=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;se.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Un(this))return;const s=ke.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(s)[e]()})},h4="alert",Yp=".bs.alert",p4=`close${Yp}`,m4=`closed${Yp}`,g4="fade",y4="show";class Xi extends Jt{static get NAME(){return h4}close(){if(se.trigger(this._element,p4).defaultPrevented)return;this._element.classList.remove(y4);const t=this._element.classList.contains(g4);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),se.trigger(this._element,m4),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Xi.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Zi(Xi,"close"),$t(Xi);const v4="button",b4=".bs.button",E4=".data-api",C4="active",Gp='[data-bs-toggle="button"]',S4=`click${b4}${E4}`;class Qi extends Jt{static get NAME(){return v4}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(C4))}static jQueryInterface(e){return this.each(function(){const t=Qi.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}se.on(document,S4,Gp,n=>{n.preventDefault();const e=n.target.closest(Gp);Qi.getOrCreateInstance(e).toggle()}),$t(Qi);const w4="swipe",so=".bs.swipe",k4=`touchstart${so}`,T4=`touchmove${so}`,x4=`touchend${so}`,A4=`pointerdown${so}`,O4=`pointerup${so}`,M4="touch",N4="pen",_4="pointer-event",I4=40,D4={endCallback:null,leftCallback:null,rightCallback:null},L4={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class qi extends Qo{constructor(e,t){super(),this._element=e,!(!e||!qi.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return D4}static get DefaultType(){return L4}static get NAME(){return w4}dispose(){se.off(this._element,so)}_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(),Ct(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=I4)return;const t=e/this._deltaX;this._deltaX=0,t&&Ct(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(se.on(this._element,A4,e=>this._start(e)),se.on(this._element,O4,e=>this._end(e)),this._element.classList.add(_4)):(se.on(this._element,k4,e=>this._start(e)),se.on(this._element,T4,e=>this._move(e)),se.on(this._element,x4,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===N4||e.pointerType===M4)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const R4="carousel",jn=".bs.carousel",Jp=".data-api",B4="ArrowLeft",$4="ArrowRight",P4=500,qo="next",io="prev",ao="left",ea="right",F4=`slide${jn}`,Lc=`slid${jn}`,V4=`keydown${jn}`,z4=`mouseenter${jn}`,H4=`mouseleave${jn}`,U4=`dragstart${jn}`,j4=`load${jn}${Jp}`,W4=`click${jn}${Jp}`,Zp="carousel",ta="active",K4="slide",Y4="carousel-item-end",G4="carousel-item-start",J4="carousel-item-next",Z4="carousel-item-prev",Xp=".active",Qp=".carousel-item",X4=Xp+Qp,Q4=".carousel-item img",q4=".carousel-indicators",eC="[data-bs-slide], [data-bs-slide-to]",tC='[data-bs-ride="carousel"]',nC={[B4]:ea,[$4]:ao},rC={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},oC={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class es extends Jt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ke.findOne(q4,this._element),this._addEventListeners(),this._config.ride===Zp&&this.cycle()}static get Default(){return rC}static get DefaultType(){return oC}static get NAME(){return R4}next(){this._slide(qo)}nextWhenVisible(){!document.hidden&&oo(this._element)&&this.next()}prev(){this._slide(io)}pause(){this._isSliding&&Lp(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){se.one(this._element,Lc,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){se.one(this._element,Lc,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?qo:io;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&se.on(this._element,V4,e=>this._keydown(e)),this._config.pause==="hover"&&(se.on(this._element,z4,()=>this.pause()),se.on(this._element,H4,()=>this._maybeEnableCycle())),this._config.touch&&qi.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ke.find(Q4,this._element))se.on(r,U4,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(ao)),rightCallback:()=>this._slide(this._directionToOrder(ea)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),P4+this._config.interval))}};this._swipeHelper=new qi(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=nC[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=ke.findOne(Xp,this._indicatorsElement);t.classList.remove(ta),t.removeAttribute("aria-current");const r=ke.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(ta),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const r=this._getActive(),o=e===qo,s=t||Oc(this._getItems(),r,o,this._config.wrap);if(s===r)return;const i=this._getItemIndex(s),l=p=>se.trigger(this._element,p,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:i});if(l(F4).defaultPrevented||!r||!s)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=s;const d=o?G4:Y4,f=o?J4:Z4;s.classList.add(f),Xo(s),r.classList.add(d),s.classList.add(d);const h=()=>{s.classList.remove(d,f),s.classList.add(ta),r.classList.remove(ta,f,d),this._isSliding=!1,l(Lc)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(K4)}_getActive(){return ke.findOne(X4,this._element)}_getItems(){return ke.find(Qp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Bt()?e===ao?io:qo:e===ao?qo:io}_orderToDirection(e){return Bt()?e===io?ao:ea:e===io?ea:ao}static jQueryInterface(e){return this.each(function(){const t=es.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}se.on(document,W4,eC,function(n){const e=ke.getElementFromSelector(this);if(!e||!e.classList.contains(Zp))return;n.preventDefault();const t=es.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(bn.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()}),se.on(window,j4,()=>{const n=ke.find(tC);for(const e of n)es.getOrCreateInstance(e)}),$t(es);const sC="collapse",ts=".bs.collapse",iC=".data-api",aC=`show${ts}`,lC=`shown${ts}`,cC=`hide${ts}`,uC=`hidden${ts}`,dC=`click${ts}${iC}`,Rc="show",lo="collapse",na="collapsing",fC="collapsed",hC=`:scope .${lo} .${lo}`,pC="collapse-horizontal",mC="width",gC="height",yC=".collapse.show, .collapse.collapsing",Bc='[data-bs-toggle="collapse"]',vC={parent:null,toggle:!0},bC={parent:"(null|element)",toggle:"boolean"};class ns extends Jt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ke.find(Bc);for(const o of r){const s=ke.getSelectorFromElement(o),i=ke.find(s).filter(l=>l===this._element);s!==null&&i.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return vC}static get DefaultType(){return bC}static get NAME(){return sC}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(yC).filter(l=>l!==this._element).map(l=>ns.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||se.trigger(this._element,aC).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(lo),this._element.classList.add(na),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(na),this._element.classList.add(lo,Rc),this._element.style[r]="",se.trigger(this._element,lC)},i=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown()||se.trigger(this._element,cC).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Xo(this._element),this._element.classList.add(na),this._element.classList.remove(lo,Rc);for(const o of this._triggerArray){const s=ke.getElementFromSelector(o);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(na),this._element.classList.add(lo),se.trigger(this._element,uC)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Rc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Hn(e.parent),e}_getDimension(){return this._element.classList.contains(pC)?mC:gC}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Bc);for(const t of e){const r=ke.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ke.find(hC,this._config.parent);return ke.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const r of e)r.classList.toggle(fC,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const r=ns.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}se.on(document,dC,Bc,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ke.getMultipleElementsFromSelector(this))ns.getOrCreateInstance(e,{toggle:!1}).toggle()}),$t(ns);const qp="dropdown",Er=".bs.dropdown",$c=".data-api",EC="Escape",em="Tab",CC="ArrowUp",tm="ArrowDown",SC=2,wC=`hide${Er}`,kC=`hidden${Er}`,TC=`show${Er}`,xC=`shown${Er}`,nm=`click${Er}${$c}`,rm=`keydown${Er}${$c}`,AC=`keyup${Er}${$c}`,co="show",OC="dropup",MC="dropend",NC="dropstart",_C="dropup-center",IC="dropdown-center",Cr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',DC=`${Cr}.${co}`,ra=".dropdown-menu",LC=".navbar",RC=".navbar-nav",BC=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",$C=Bt()?"top-end":"top-start",PC=Bt()?"top-start":"top-end",FC=Bt()?"bottom-end":"bottom-start",VC=Bt()?"bottom-start":"bottom-end",zC=Bt()?"left-start":"right-start",HC=Bt()?"right-start":"left-start",UC="top",jC="bottom",WC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},KC={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ln extends Jt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ke.next(this._element,ra)[0]||ke.prev(this._element,ra)[0]||ke.findOne(ra,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return WC}static get DefaultType(){return KC}static get NAME(){return qp}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Un(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!se.trigger(this._element,TC,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(RC))for(const r of[].concat(...document.body.children))se.on(r,"mouseover",Ji);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(co),this._element.classList.add(co),se.trigger(this._element,xC,e)}}hide(){if(Un(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!se.trigger(this._element,wC,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))se.off(r,"mouseover",Ji);this._popper&&this._popper.destroy(),this._menu.classList.remove(co),this._element.classList.remove(co),this._element.setAttribute("aria-expanded","false"),bn.removeDataAttribute(this._menu,"popper"),se.trigger(this._element,kC,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vn(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${qp.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Fh>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vn(this._config.reference)?e=Hn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=ai(e,this._menu,t)}_isShown(){return this._menu.classList.contains(co)}_getPlacement(){const e=this._parent;if(e.classList.contains(MC))return zC;if(e.classList.contains(NC))return HC;if(e.classList.contains(_C))return UC;if(e.classList.contains(IC))return jC;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(OC)?t?PC:$C:t?VC:FC}_detectNavbar(){return this._element.closest(LC)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(bn.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Ct(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ke.find(BC,this._menu).filter(o=>oo(o));r.length&&Oc(r,t,e===tm,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=ln.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===SC||e.type==="keyup"&&e.key!==em)return;const t=ke.find(DC);for(const r of t){const o=ln.getInstance(r);if(!o||o._config.autoClose===!1)continue;const s=e.composedPath(),i=s.includes(o._menu);if(s.includes(o._element)||o._config.autoClose==="inside"&&!i||o._config.autoClose==="outside"&&i||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===em||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:o._element};e.type==="click"&&(l.clickEvent=e),o._completeHide(l)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),r=e.key===EC,o=[CC,tm].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const s=this.matches(Cr)?this:ke.prev(this,Cr)[0]||ke.next(this,Cr)[0]||ke.findOne(Cr,e.delegateTarget.parentNode),i=ln.getOrCreateInstance(s);if(o){e.stopPropagation(),i.show(),i._selectMenuItem(e);return}i._isShown()&&(e.stopPropagation(),i.hide(),s.focus())}}se.on(document,rm,Cr,ln.dataApiKeydownHandler),se.on(document,rm,ra,ln.dataApiKeydownHandler),se.on(document,nm,ln.clearMenus),se.on(document,AC,ln.clearMenus),se.on(document,nm,Cr,function(n){n.preventDefault(),ln.getOrCreateInstance(this).toggle()}),$t(ln);const om="backdrop",YC="fade",sm="show",im=`mousedown.bs.${om}`,GC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},JC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class am extends Qo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return GC}static get DefaultType(){return JC}static get NAME(){return om}show(e){if(!this._config.isVisible){Ct(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Xo(t),t.classList.add(sm),this._emulateAnimation(()=>{Ct(e)})}hide(e){if(!this._config.isVisible){Ct(e);return}this._getElement().classList.remove(sm),this._emulateAnimation(()=>{this.dispose(),Ct(e)})}dispose(){this._isAppended&&(se.off(this._element,im),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(YC),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Hn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),se.on(e,im,()=>{Ct(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){$p(e,this._getElement(),this._config.isAnimated)}}const ZC="focustrap",oa=".bs.focustrap",XC=`focusin${oa}`,QC=`keydown.tab${oa}`,qC="Tab",e6="forward",lm="backward",t6={autofocus:!0,trapElement:null},n6={autofocus:"boolean",trapElement:"element"};class cm extends Qo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return t6}static get DefaultType(){return n6}static get NAME(){return ZC}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),se.off(document,oa),se.on(document,XC,e=>this._handleFocusin(e)),se.on(document,QC,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,se.off(document,oa))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const r=ke.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===lm?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===qC&&(this._lastTabNavDirection=e.shiftKey?lm:e6)}}const um=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",dm=".sticky-top",sa="padding-right",fm="margin-right";class Pc{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,sa,t=>t+e),this._setElementAttributes(um,sa,t=>t+e),this._setElementAttributes(dm,fm,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,sa),this._resetElementAttributes(um,sa),this._resetElementAttributes(dm,fm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),s=i=>{if(i!==this._element&&window.innerWidth>i.clientWidth+o)return;this._saveInitialAttribute(i,t);const l=window.getComputedStyle(i).getPropertyValue(t);i.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&bn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const s=bn.getDataAttribute(o,t);if(s===null){o.style.removeProperty(t);return}bn.removeDataAttribute(o,t),o.style.setProperty(t,s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(vn(e)){t(e);return}for(const r of ke.find(e,this._element))t(r)}}const r6="modal",Pt=".bs.modal",o6=".data-api",s6="Escape",i6=`hide${Pt}`,a6=`hidePrevented${Pt}`,hm=`hidden${Pt}`,pm=`show${Pt}`,l6=`shown${Pt}`,c6=`resize${Pt}`,u6=`click.dismiss${Pt}`,d6=`mousedown.dismiss${Pt}`,f6=`keydown.dismiss${Pt}`,h6=`click${Pt}${o6}`,mm="modal-open",p6="fade",gm="show",Fc="modal-static",m6=".modal.show",g6=".modal-dialog",y6=".modal-body",v6='[data-bs-toggle="modal"]',b6={backdrop:!0,focus:!0,keyboard:!0},E6={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Wn extends Jt{constructor(e,t){super(e,t),this._dialog=ke.findOne(g6,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Pc,this._addEventListeners()}static get Default(){return b6}static get DefaultType(){return E6}static get NAME(){return r6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||se.trigger(this._element,pm,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(mm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||se.trigger(this._element,i6).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(gm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){se.off(window,Pt),se.off(this._dialog,Pt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new am({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new cm({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=ke.findOne(y6,this._dialog);t&&(t.scrollTop=0),Xo(this._element),this._element.classList.add(gm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,se.trigger(this._element,l6,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){se.on(this._element,f6,e=>{if(e.key===s6){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),se.on(window,c6,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),se.on(this._element,d6,e=>{se.one(this._element,u6,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(mm),this._resetAdjustments(),this._scrollBar.reset(),se.trigger(this._element,hm)})}_isAnimated(){return this._element.classList.contains(p6)}_triggerBackdropTransition(){if(se.trigger(this._element,a6).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Fc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Fc),this._queueCallback(()=>{this._element.classList.remove(Fc),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=Bt()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Bt()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=Wn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}se.on(document,h6,v6,function(n){const e=ke.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),se.one(e,pm,o=>{o.defaultPrevented||se.one(e,hm,()=>{oo(this)&&this.focus()})});const t=ke.findOne(m6);t&&Wn.getInstance(t).hide(),Wn.getOrCreateInstance(e).toggle(this)}),Zi(Wn),$t(Wn);const C6="offcanvas",En=".bs.offcanvas",ym=".data-api",S6=`load${En}${ym}`,w6="Escape",vm="show",bm="showing",Em="hiding",k6="offcanvas-backdrop",Cm=".offcanvas.show",T6=`show${En}`,x6=`shown${En}`,A6=`hide${En}`,Sm=`hidePrevented${En}`,wm=`hidden${En}`,O6=`resize${En}`,M6=`click${En}${ym}`,N6=`keydown.dismiss${En}`,_6='[data-bs-toggle="offcanvas"]',I6={backdrop:!0,keyboard:!0,scroll:!1},D6={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Kn extends Jt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return I6}static get DefaultType(){return D6}static get NAME(){return C6}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||se.trigger(this._element,T6,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Pc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(bm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(vm),this._element.classList.remove(bm),se.trigger(this._element,x6,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||se.trigger(this._element,A6).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Em),this._backdrop.hide();const t=()=>{this._element.classList.remove(vm,Em),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Pc().reset(),se.trigger(this._element,wm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){se.trigger(this._element,Sm);return}this.hide()},t=!!this._config.backdrop;return new am({className:k6,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new cm({trapElement:this._element})}_addEventListeners(){se.on(this._element,N6,e=>{if(e.key===w6){if(this._config.keyboard){this.hide();return}se.trigger(this._element,Sm)}})}static jQueryInterface(e){return this.each(function(){const t=Kn.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}se.on(document,M6,_6,function(n){const e=ke.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Un(this))return;se.one(e,wm,()=>{oo(this)&&this.focus()});const t=ke.findOne(Cm);t&&t!==e&&Kn.getInstance(t).hide(),Kn.getOrCreateInstance(e).toggle(this)}),se.on(window,S6,()=>{for(const n of ke.find(Cm))Kn.getOrCreateInstance(n).show()}),se.on(window,O6,()=>{for(const n of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Kn.getOrCreateInstance(n).hide()}),Zi(Kn),$t(Kn);const km={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},L6=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),R6=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,B6=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?L6.has(t)?!!R6.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function $6(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),s=[].concat(...o.body.querySelectorAll("*"));for(const i of s){const l=i.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){i.remove();continue}const a=[].concat(...i.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const d of a)B6(d,c)||i.removeAttribute(d.nodeName)}return o.body.innerHTML}const P6="TemplateFactory",F6={allowList:km,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},V6={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},z6={entry:"(string|element|function|null)",selector:"(string|element)"};class H6 extends Qo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return F6}static get DefaultType(){return V6}static get NAME(){return P6}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,s]of Object.entries(this._config.content))this._setContent(e,s,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},z6)}_setContent(e,t,r){const o=ke.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(vn(t)){this._putElementInTemplate(Hn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?$6(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ct(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const U6="tooltip",j6=new Set(["sanitize","allowList","sanitizeFn"]),Vc="fade",W6="modal",ia="show",K6=".tooltip-inner",Tm=`.${W6}`,xm="hide.bs.modal",rs="hover",zc="focus",Y6="click",G6="manual",J6="hide",Z6="hidden",X6="show",Q6="shown",q6="inserted",eS="click",tS="focusin",nS="focusout",rS="mouseenter",oS="mouseleave",sS={AUTO:"auto",TOP:"top",RIGHT:Bt()?"left":"right",BOTTOM:"bottom",LEFT:Bt()?"right":"left"},iS={allowList:km,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"},aS={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Sr extends Jt{constructor(e,t){if(typeof Fh>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return iS}static get DefaultType(){return aS}static get NAME(){return U6}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),se.off(this._element.closest(Tm),xm,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=se.trigger(this._element,this.constructor.eventName(X6)),r=(Rp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(o),se.trigger(this._element,this.constructor.eventName(q6))),this._popper=this._createPopper(o),o.classList.add(ia),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))se.on(l,"mouseover",Ji);const i=()=>{se.trigger(this._element,this.constructor.eventName(Q6)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||se.trigger(this._element,this.constructor.eventName(J6)).defaultPrevented)return;if(this._getTipElement().classList.remove(ia),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))se.off(o,"mouseover",Ji);this._activeTrigger[Y6]=!1,this._activeTrigger[zc]=!1,this._activeTrigger[rs]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),se.trigger(this._element,this.constructor.eventName(Z6)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Vc,ia),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=n4(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Vc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new H6({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[K6]: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(Vc)}_isShown(){return this.tip&&this.tip.classList.contains(ia)}_createPopper(e){const t=Ct(this._config.placement,[this,e,this._element]),r=sS[t.toUpperCase()];return ai(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ct(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...Ct(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")se.on(this._element,this.constructor.eventName(eS),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==G6){const r=t===rs?this.constructor.eventName(rS):this.constructor.eventName(tS),o=t===rs?this.constructor.eventName(oS):this.constructor.eventName(nS);se.on(this._element,r,this._config.selector,s=>{const i=this._initializeOnDelegatedTarget(s);i._activeTrigger[s.type==="focusin"?zc:rs]=!0,i._enter()}),se.on(this._element,o,this._config.selector,s=>{const i=this._initializeOnDelegatedTarget(s);i._activeTrigger[s.type==="focusout"?zc:rs]=i._element.contains(s.relatedTarget),i._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},se.on(this._element.closest(Tm),xm,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=bn.getDataAttributes(this._element);for(const r of Object.keys(t))j6.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Hn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Sr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(Sr);const lS="popover",cS=".popover-header",uS=".popover-body",dS={...Sr.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"},fS={...Sr.DefaultType,content:"(null|string|element|function)"};class uo extends Sr{static get Default(){return dS}static get DefaultType(){return fS}static get NAME(){return lS}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[cS]:this._getTitle(),[uS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=uo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(uo);const hS="scrollspy",Hc=".bs.scrollspy",pS=".data-api",mS=`activate${Hc}`,Am=`click${Hc}`,gS=`load${Hc}${pS}`,yS="dropdown-item",fo="active",vS='[data-bs-spy="scroll"]',Uc="[href]",bS=".nav, .list-group",Om=".nav-link",ES=`${Om}, .nav-item > ${Om}, .list-group-item`,CS=".dropdown",SS=".dropdown-toggle",wS={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},kS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class aa extends Jt{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 wS}static get DefaultType(){return kS}static get NAME(){return hS}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Hn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(se.off(this._config.target,Am),se.on(this._config.target,Am,Uc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=i=>this._targetLinks.get(`#${i.target.id}`),r=i=>{this._previousScrollData.visibleEntryTop=i.target.offsetTop,this._process(t(i))},o=(this._rootElement||document.documentElement).scrollTop,s=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const l=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&l){if(r(i),!o)return;continue}!s&&!l&&r(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ke.find(Uc,this._config.target);for(const t of e){if(!t.hash||Un(t))continue;const r=ke.findOne(decodeURI(t.hash),this._element);oo(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(fo),this._activateParents(e),se.trigger(this._element,mS,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(yS)){ke.findOne(SS,e.closest(CS)).classList.add(fo);return}for(const t of ke.parents(e,bS))for(const r of ke.prev(t,ES))r.classList.add(fo)}_clearActiveClass(e){e.classList.remove(fo);const t=ke.find(`${Uc}.${fo}`,e);for(const r of t)r.classList.remove(fo)}static jQueryInterface(e){return this.each(function(){const t=aa.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}se.on(window,gS,()=>{for(const n of ke.find(vS))aa.getOrCreateInstance(n)}),$t(aa);const TS="tab",wr=".bs.tab",xS=`hide${wr}`,AS=`hidden${wr}`,OS=`show${wr}`,MS=`shown${wr}`,NS=`click${wr}`,_S=`keydown${wr}`,IS=`load${wr}`,DS="ArrowLeft",Mm="ArrowRight",LS="ArrowUp",Nm="ArrowDown",kr="active",_m="fade",jc="show",RS="dropdown",BS=".dropdown-toggle",$S=".dropdown-menu",Wc=":not(.dropdown-toggle)",PS='.list-group, .nav, [role="tablist"]',FS=".nav-item, .list-group-item",VS=`.nav-link${Wc}, .list-group-item${Wc}, [role="tab"]${Wc}`,Im='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Kc=`${VS}, ${Im}`,zS=`.${kr}[data-bs-toggle="tab"], .${kr}[data-bs-toggle="pill"], .${kr}[data-bs-toggle="list"]`;class ho extends Jt{constructor(e){super(e),this._parent=this._element.closest(PS),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),se.on(this._element,_S,t=>this._keydown(t)))}static get NAME(){return TS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?se.trigger(t,xS,{relatedTarget:e}):null;se.trigger(e,OS,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(kr),this._activate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(jc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),se.trigger(e,MS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(_m))}_deactivate(e,t){if(!e)return;e.classList.remove(kr),e.blur(),this._deactivate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(jc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),se.trigger(e,AS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(_m))}_keydown(e){if(![DS,Mm,LS,Nm].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Mm,Nm].includes(e.key),r=Oc(this._getChildren().filter(o=>!Un(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),ho.getOrCreateInstance(r).show())}_getChildren(){return ke.find(Kc,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=ke.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const r=this._getOuterElement(e);if(!r.classList.contains(RS))return;const o=(s,i)=>{const l=ke.findOne(s,r);l&&l.classList.toggle(i,t)};o(BS,kr),o($S,jc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(kr)}_getInnerElement(e){return e.matches(Kc)?e:ke.findOne(Kc,e)}_getOuterElement(e){return e.closest(FS)||e}static jQueryInterface(e){return this.each(function(){const t=ho.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}se.on(document,NS,Im,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Un(this)&&ho.getOrCreateInstance(this).show()}),se.on(window,IS,()=>{for(const n of ke.find(zS))ho.getOrCreateInstance(n)}),$t(ho);const HS="toast",Yn=".bs.toast",US=`mouseover${Yn}`,jS=`mouseout${Yn}`,WS=`focusin${Yn}`,KS=`focusout${Yn}`,YS=`hide${Yn}`,GS=`hidden${Yn}`,JS=`show${Yn}`,ZS=`shown${Yn}`,XS="fade",Dm="hide",la="show",ca="showing",QS={animation:"boolean",autohide:"boolean",delay:"number"},qS={animation:!0,autohide:!0,delay:5e3};class ss extends Jt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return qS}static get DefaultType(){return QS}static get NAME(){return HS}show(){if(se.trigger(this._element,JS).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(XS);const t=()=>{this._element.classList.remove(ca),se.trigger(this._element,ZS),this._maybeScheduleHide()};this._element.classList.remove(Dm),Xo(this._element),this._element.classList.add(la,ca),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||se.trigger(this._element,YS).defaultPrevented)return;const t=()=>{this._element.classList.add(Dm),this._element.classList.remove(ca,la),se.trigger(this._element,GS)};this._element.classList.add(ca),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(la),super.dispose()}isShown(){return this._element.classList.contains(la)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){se.on(this._element,US,e=>this._onInteraction(e,!0)),se.on(this._element,jS,e=>this._onInteraction(e,!1)),se.on(this._element,WS,e=>this._onInteraction(e,!0)),se.on(this._element,KS,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=ss.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Zi(ss),$t(ss);function ua(n=void 0){const e=l=>s("Succesvol",l,Mr.SUCCESS),t=l=>s("Waarschuwing",l,Mr.WARNING),r=l=>s("Informatie",l,Mr.INFO),o=l=>s("Mislukt",l,Mr.DANGER);function s(l,a,c){const d=`toast-${vu()}`,f={id:d,variant:c,title:l,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=u.h(_a,f),g=u.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${d}`);y&&(ss.getOrCreateInstance(y,n).show(),i(y))}function i(l){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const c=new MutationObserver(a),d={attributes:!0};c.observe(l,d)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const ew=n=>Array.isArray(n)&&n.length>0,{showDangerToast:tw}=ua();function Yc(n){const e=u.ref(null),t=(a,c="serverErrors")=>{var f;let d=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?d=a.response.data.filter(h=>vs(h.ErrorMessage)&&h.ErrorMessage!==$e):a.response.data.ErrorMessage?d=[a.response.data.ErrorMessage]:d=null,vs(c))e.value=d;else if(Array.isArray(c)){let h=e.value;for(let p=0;p<c.length;p++)p===c.length-1?h[c[p]]=d:h=h[c[p]]}r(a),i(e)},r=a=>{if(n==null)return;const d=new URL(a.request.responseURL).pathname;if(d in n.error){const f=n.error[d];f&&tw(f)}},o=u.ref(null),s=u.ref(""),i=a=>{ew(a.value)?o.value=a.value.map(c=>vs(c)?c:c.ErrorMessage):vs(a.value)&&(s.value=a.value)};function l(){e.value=null,o.value=null,s.value=$e}return{serverErrors:e,errorMessages:o,errorMessageText:s,MapErrors:i,MapServerErrors:t,ResetServerErrors:l}}const Lm=()=>({ResetValidation:t=>{for(const r in t.value)t.value[r].state=null},ValidationObjectIsValid:t=>{for(let r in t)if(t[r].state===!1)return!1;return!0}}),nw={class:"template change-password-template"},rw={class:"template-title"},ow={key:0},sw={key:1},iw=["onSubmit","onReset"],aw={class:"bd-form-field"},lw={class:"bd-form-field"},cw={class:"bd-form-field"},uw={class:"bd-form-buttons"},Rm=u.defineComponent({__name:"BDChangePasswordTemplate",props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(n){const e=n,{showDangerToast:t,showSuccessToast:r}=ua(),{errorMessages:o,errorMessageText:s,MapServerErrors:i,ResetServerErrors:l}=Yc(null),{ValidationObjectIsValid:a}=Lm();let c=u.ref({password:$e,passwordNew:$e,passwordRepeat:$e}),d=u.ref({password:{state:null,errorLabel:$e},passwordNew:{state:null,errorLabel:$e},passwordRepeat:{state:null,errorLabel:$e}});const f=()=>{if(!h())return;const g=e.submitPassword(c.value);g&&g.then(()=>{r(e.successText),p()}).catch(y=>{t(e.failureText),i(y)})},h=()=>{const m=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;if(c.value.passwordNew&&!m.test(c.value.passwordNew))d.value.passwordNew.state=!1,d.value.passwordNew.errorLabel=e.minimalRequirementsText;else{const g=c.value.passwordRepeat===c.value.passwordNew,y=g?e.requiredText:e.incompatibleText;d.value.passwordNew.state=c.value.passwordNew!==$e&&g?null:!1,d.value.passwordNew.errorLabel=y,d.value.passwordRepeat.state=c.value.passwordRepeat!==$e&&g?null:!1,d.value.passwordRepeat.errorLabel=y}return d.value.password.state=c.value.password!==$e?null:!1,d.value.password.errorLabel=d.value.password.state?$e:e.requiredText,a(d.value)},p=()=>{c.value.password=$e,c.value.passwordNew=$e,c.value.passwordRepeat=$e,d.value.password.state=null,d.value.passwordNew.state=null,d.value.passwordRepeat.state=null,l()};return(m,g)=>(u.openBlock(),u.createElementBlock("main",nw,[u.createVNode(as,{class:"container-xl"},{default:u.withCtx(()=>[u.createVNode(Xn,{class:"justify-content-md-center template-header"},{default:u.withCtx(()=>[u.createVNode(Zn,{xs:12,md:10,lg:7},{default:u.withCtx(()=>[u.createElementVNode("h1",rw,u.toDisplayString(e.templateTitle),1)]),_:1})]),_:1}),u.createVNode(Xn,{class:"justify-content-md-center"},{default:u.withCtx(()=>[u.createVNode(Zn,{xs:12,md:10,lg:7},{default:u.withCtx(()=>[u.createVNode(gs,{class:"bd-card-template","no-header":!0},{body:u.withCtx(()=>[u.createVNode(as,{class:"container-fluid"},{default:u.withCtx(()=>[u.createVNode(Xn,null,{default:u.withCtx(()=>[u.createVNode(Zn,null,{default:u.withCtx(()=>[u.createVNode(yo,{variant:"warning"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(m.alertText),1)]),_:1})]),_:1})]),_:1}),u.unref(o)||u.unref(s)?(u.openBlock(),u.createBlock(Xn,{key:0},{default:u.withCtx(()=>[u.createVNode(Zn,null,{default:u.withCtx(()=>[u.createVNode(yo,{variant:"danger"},{default:u.withCtx(()=>[u.unref(o)?(u.openBlock(),u.createElementBlock("div",ow,[u.createElementVNode("ul",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(o),(y,C)=>(u.openBlock(),u.createElementBlock("li",{key:C},[u.createVNode(qn),u.createElementVNode("span",null,u.toDisplayString(y),1)]))),128))])])):(u.openBlock(),u.createElementBlock("div",sw,u.toDisplayString(u.unref(s)),1))]),_:1})]),_:1})]),_:1})):u.createCommentVNode("",!0),u.createVNode(Xn,null,{default:u.withCtx(()=>[u.createVNode(Zn,{class:"bd-card-form",sm:12,md:12},{default:u.withCtx(()=>[u.createElementVNode("form",{onSubmit:u.withModifiers(f,["prevent"]),onReset:u.withModifiers(p,["prevent"]),class:"form"},[u.createElementVNode("div",aw,[u.createVNode(nr,{modelValue:u.unref(c).password,"onUpdate:modelValue":g[0]||(g[0]=y=>u.unref(c).password=y),label:m.currentPasswordLabel,state:u.unref(d).password.state,type:"password","invalid-feedback-text":u.unref(d).password.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),u.createElementVNode("div",lw,[u.createVNode(nr,{modelValue:u.unref(c).passwordNew,"onUpdate:modelValue":g[1]||(g[1]=y=>u.unref(c).passwordNew=y),label:m.newPasswordLabel,state:u.unref(d).passwordNew.state,type:"password","invalid-feedback-text":u.unref(d).passwordNew.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),u.createElementVNode("div",cw,[u.createVNode(nr,{modelValue:u.unref(c).passwordRepeat,"onUpdate:modelValue":g[2]||(g[2]=y=>u.unref(c).passwordRepeat=y),label:m.confirmNewPasswordLabel,state:u.unref(d).passwordRepeat.state,type:"password","invalid-feedback-text":u.unref(d).passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),u.createElementVNode("div",uw,[u.createVNode(Ye,{type:"submit"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(m.submitButtonText),1)]),_:1}),u.createVNode(Ye,{type:"reset",variant:"link"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(m.cancelButtonText),1)]),_:1})])],40,iw)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),Gc=u.defineComponent({__name:"BDDropdown",props:{size:{default:lt.MD},variant:{default:hs.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(n){const e=n,{uniqueIdentifier:t}=Or(),r=`__BD__DROPDOWN__${t.value}`,o=u.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),s=u.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),i=u.computed(()=>({"aria-labelledby":r})),l=u.ref(),a=u.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(d,f)=>(u.openBlock(),u.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=u.withModifiers(()=>{},["stop"]))},[(u.openBlock(),u.createBlock(u.resolveDynamicComponent(e.toggleTag),u.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:u.withCtx(()=>[u.createElementVNode("span",null,u.toDisplayString(e.text),1)]),_:1},16)),u.createElementVNode("ul",u.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",s.value]},i.value,{onClick:c}),[u.renderSlot(d.$slots,"default")],16)]))}}),dw={class:"row bd-header"},fw={class:"col logo-mix"},hw=["src","alt"],pw=u.createElementVNode("div",null,"Menu",-1),mw={key:0,class:"col header-options"},gw={class:"col bd-btn-settings"},Bm=u.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=u.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=u.ref(void 0),s=()=>e("click"),i=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,d)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("nav",dw,[u.createElementVNode("div",fw,[u.createVNode(xa,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:s}),t.organizationLogoSrc?(u.openBlock(),u.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,hw)):u.createCommentVNode("",!0)]),u.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[pw,u.createVNode(fs)]),t.headerOptions&&t.headerOptions.length!==0?(u.openBlock(),u.createElementBlock("div",mw,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.headerOptions,f=>(u.openBlock(),u.createBlock(Ye,{class:"btn-header",to:f.to},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(f.text),1)]),_:2},1032,["to"]))),256))])):u.createCommentVNode("",!0),u.createElementVNode("div",gw,[u.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(u.openBlock(),u.createBlock(vo,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:"sm"},null,8,["src","alt"])):u.createCommentVNode("",!0),u.createVNode(Gc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:u.withCtx(()=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.dropdownOptions,(f,h)=>(u.openBlock(),u.createBlock(Es,u.mergeProps({key:h},f),null,16))),128)),u.createVNode(Es,{text:"Uitloggen",onClick:i})]),_:1},8,["text"])])]),u.createVNode(kc,{active:o.value,options:r.value,onHide:a,onSignout:i},{"special-options":u.withCtx(()=>[u.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),yw={class:"modal-dialog"},vw={class:"modal-content"},bw={class:"modal-header"},Ew={class:"modal-title"},Cw=["src"],Sw=u.createElementVNode("span",null,"Sluiten",-1),ww={class:"modal-body"},kw={key:0,class:"modal-footer"},Tw=["disabled"],is=u.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:"lg"}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=u.computed(()=>`modal bd-modal modal-${t.size}`),o=()=>e("submit"),s=()=>e("cancel");return(i,l)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(r.value),tabindex:"-1"},[u.createElementVNode("div",yw,[u.createElementVNode("div",vw,[u.createElementVNode("div",bw,[u.createElementVNode("h2",Ew,[t.titleImage?(u.openBlock(),u.createElementBlock("img",{key:0,src:t.titleImage,class:"title-image",alt:""},null,8,Cw)):u.createCommentVNode("",!0),u.createElementVNode("span",null,u.toDisplayString(t.title),1)]),u.renderSlot(i.$slots,"modal-header-space-between"),t.hideCloseButton?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:s},[Sw,u.createVNode(u.unref(ls))]))]),u.createElementVNode("div",ww,[u.renderSlot(i.$slots,"default")]),i.hideFooter?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("div",kw,[t.hideFooterSubmitButton?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:o},u.toDisplayString(t.submitButtonTitle),9,Tw)),u.renderSlot(i.$slots,"buttons"),t.hideFooterCancelButton?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:s,"aria-label":"Annuleren"},u.toDisplayString(t.closeButtonTitle),1))]))])])],2))}}),da=n=>{const e=u.ref(null);return{showModal:()=>{const o=document.getElementById(n);o instanceof HTMLElement?(e.value=Wn.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${n}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(n);if(o instanceof HTMLElement){const s=Wn.getInstance(o);s&&s.hide()}}}};function $m(){const n=u.ref(0),e=u.ref(!0),t=u.ref(null),r=u.ref({top:0,left:0,x:0,y:0}),o=u.computed(()=>n.value>0?`zoom-${n.value}`:"");return{zoom:n,mouseDown:e,imageHolderRef:t,pos:r,SetZoom:o,OnMouseDown:a=>{if(!t.value)return;r.value.left=t.value.scrollLeft,r.value.top=t.value.scrollTop;const c=document.querySelector("#image-attachment-modal"),d=document.querySelector(".image-preview-image-holder");c&&(c.style.cursor="grabbing"),d&&(d.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const c=a.clientX-r.value.x,d=a.clientY-r.value.y;t.value&&(t.value.scrollTop=r.value.top-d,t.value.scrollLeft=r.value.left-c)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),c=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),c&&c.style&&(c.style.cursor="grab"),e.value=!1}}}const xw=["src","alt"],Aw={key:0,class:"show-spinner"},Ow={class:"spinner-border text-primary",role:"status"},Mw={class:"visually-hidden"},Nw=["href"],Pm=u.defineComponent({__name:"BDImageAttachmentModal",props:["loadingText","downloadText"],setup(n,{expose:e}){const t=n,{showModal:r}=da("image-attachment-modal"),{zoom:o,imageHolderRef:s,SetZoom:i,OnMouseDown:l,OnMouseMove:a,OnMouseUp:c}=$m(),d=u.ref(!0),f=u.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:$e,altName:$e,downloadUrl:$e,fullImageUrl:$e,previewUrl:$e});e({Show:g=>{f.value=g,o.value=0,r()}});const p=()=>{d.value=!1},m=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:$e,altName:$e,downloadUrl:$e,fullImageUrl:$e,previewUrl:$e}};return(g,y)=>(u.openBlock(),u.createBlock(is,{id:"image-attachment-modal",class:u.normalizeClass(u.unref($e)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:m},{default:u.withCtx(()=>[u.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:s,onMousedown:y[0]||(y[0]=(...C)=>u.unref(l)&&u.unref(l)(...C)),onMousemove:y[1]||(y[1]=(...C)=>u.unref(a)&&u.unref(a)(...C)),onMouseup:y[2]||(y[2]=(...C)=>u.unref(c)&&u.unref(c)(...C))},[f.value?(u.openBlock(),u.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:u.normalizeClass(["image-preview-modal",u.unref(i)]),onLoad:p,draggable:!1},null,42,xw)):u.createCommentVNode("",!0)],544),d.value?(u.openBlock(),u.createElementBlock("div",Aw,[u.createElementVNode("div",Ow,[u.createElementVNode("span",Mw,u.toDisplayString(t.loadingText),1)])])):u.createCommentVNode("",!0),u.createVNode(Oa,{modelValue:u.unref(o),"onUpdate:modelValue":y[3]||(y[3]=C=>u.isRef(o)?o.value=C:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),u.createElementVNode("a",{href:f.value.downloadUrl},[u.createVNode(Ye,{variant:"primary",class:"download-image"},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(t.downloadText),1)]),_:1})],8,Nw)]),_:1},8,["class","title"]))}}),_w={key:0},Iw={key:1},Dw={class:"bd-form-field"},Lw={class:"bd-form-field"},Fm=u.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(n,{expose:e,emit:t}){const r=n,{showSuccessToast:o,showWarningToast:s}=ua(),{serverErrors:i,errorMessages:l,errorMessageText:a,MapServerErrors:c,ResetServerErrors:d}=Yc(null),{closeModal:f}=da("phone-number-edit-modal");let h=$e;const p=u.ref(),m=u.ref(null),g=u.ref(),y=u.ref(),C=u.ref(null),S=u.computed(()=>y.value==null||y.value==""),k=()=>{if(m.value=null,d(),!p.value||p.value==h){m.value=!1;return}const U={newPhonenumber:p.value};r.startPhoneNumberUpdate(U).then(A).catch(c)},v=()=>{if(!y.value){C.value=!1;return}const U={requestIdentifier:g.value,token:y.value};r.confirmPhoneNumberUpdate(U).then(T).catch(c)},A=U=>{m.value=null,o(r.confirmationCodeSentText),g.value=U.data.RequestIdentifier},T=()=>{t("setPhoneNumber",p.value),o(r.editSuccessText),f(),m.value=null,C.value=null},V=U=>{h=U,p.value=h,m.value=null,g.value=void 0,y.value=void 0,C.value=null},H=()=>{V(h),d(),s(r.editCanceledText)};return e({Reset:V}),(U,B)=>(u.openBlock(),u.createBlock(is,{id:"phone-number-edit-modal",class:u.normalizeClass(u.unref($e)),title:r.modalTitle,submitButtonTitle:r.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":S.value,serverErrors:u.unref(i),errorMessages:u.unref(l),errorMessageText:u.unref(a),onSubmit:v,onCancel:H},{default:u.withCtx(()=>[u.unref(a)||u.unref(l)?(u.openBlock(),u.createBlock(yo,{key:0,variant:"danger"},{default:u.withCtx(()=>[u.unref(l)?(u.openBlock(),u.createElementBlock("div",_w,[u.createElementVNode("ul",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(l),(L,z)=>(u.openBlock(),u.createElementBlock("li",{key:z},[u.createVNode(qn),u.createElementVNode("span",null,u.toDisplayString(L),1)]))),128))])])):(u.openBlock(),u.createElementBlock("div",Iw,u.toDisplayString(u.unref(a)),1))]),_:1})):u.createCommentVNode("",!0),u.createElementVNode("div",Dw,[u.createVNode(nr,{id:"form-input-phone-number",label:r.phoneNumberLabel,modelValue:p.value,"onUpdate:modelValue":B[0]||(B[0]=L=>p.value=L),state:m.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":r.phoneNumberUnchangedText},{default:u.withCtx(()=>[u.createVNode(Ye,{type:"button",onClick:k},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(r.sendConfirmationCodeText),1)]),_:1})]),_:1},8,["label","modelValue","state","invalid-feedback-text"])]),u.createElementVNode("div",Lw,[g.value?(u.openBlock(),u.createBlock(nr,{key:0,label:r.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":B[1]||(B[1]=L=>y.value=L),state:C.value,"invalid-feedback-text":r.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):u.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}});var Vm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Ia,function(){var t=1e3,r=6e4,o=36e5,s="millisecond",i="second",l="minute",a="hour",c="day",d="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var F=["th","st","nd","rd"],P=j%100;return"["+j+(F[(P-20)%10]||F[P]||F[0])+"]"}},k=function(j,F,P){var G=String(j);return!G||G.length>=F?j:""+Array(F+1-G.length).join(P)+j},v={s:k,z:function(j){var F=-j.utcOffset(),P=Math.abs(F),G=Math.floor(P/60),D=P%60;return(F<=0?"+":"-")+k(G,2,"0")+":"+k(D,2,"0")},m:function j(F,P){if(F.date()<P.date())return-j(P,F);var G=12*(P.year()-F.year())+(P.month()-F.month()),D=F.clone().add(G,f),Q=P-D<0,te=F.clone().add(G+(Q?-1:1),f);return+(-(G+(P-D)/(Q?D-te:te-D))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:f,y:p,w:d,d:c,D:m,h:a,m:l,s:i,ms:s,Q:h}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},A="en",T={};T[A]=S;var V="$isDayjsObject",H=function(j){return j instanceof z||!(!j||!j[V])},U=function j(F,P,G){var D;if(!F)return A;if(typeof F=="string"){var Q=F.toLowerCase();T[Q]&&(D=Q),P&&(T[Q]=P,D=Q);var te=F.split("-");if(!D&&te.length>1)return j(te[0])}else{var ce=F.name;T[ce]=F,D=ce}return!G&&D&&(A=D),D||!G&&A},B=function(j,F){if(H(j))return j.clone();var P=typeof F=="object"?F:{};return P.date=j,P.args=arguments,new z(P)},L=v;L.l=U,L.i=H,L.w=function(j,F){return B(j,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var z=function(){function j(P){this.$L=U(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[V]=!0}var F=j.prototype;return F.parse=function(P){this.$d=function(G){var D=G.date,Q=G.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var te=D.match(y);if(te){var ce=te[2]-1||0,me=(te[7]||"0").substring(0,3);return Q?new Date(Date.UTC(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,me)):new Date(te[1],ce,te[3]||1,te[4]||0,te[5]||0,te[6]||0,me)}}return new Date(D)}(P),this.init()},F.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function(P,G){var D=B(P);return this.startOf(G)<=D&&D<=this.endOf(G)},F.isAfter=function(P,G){return B(P)<this.startOf(G)},F.isBefore=function(P,G){return this.endOf(G)<B(P)},F.$g=function(P,G,D){return L.u(P)?this[G]:this.set(D,P)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(P,G){var D=this,Q=!!L.u(G)||G,te=L.p(P),ce=function(M,w){var O=L.w(D.$u?Date.UTC(D.$y,w,M):new Date(D.$y,w,M),D);return Q?O:O.endOf(c)},me=function(M,w){return L.w(D.toDate()[M].apply(D.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(w)),D)},ge=this.$W,Ce=this.$M,we=this.$D,Te="set"+(this.$u?"UTC":"");switch(te){case p:return Q?ce(1,0):ce(31,11);case f:return Q?ce(1,Ce):ce(0,Ce+1);case d:var ve=this.$locale().weekStart||0,x=(ge<ve?ge+7:ge)-ve;return ce(Q?we-x:we+(6-x),Ce);case c:case m:return me(Te+"Hours",0);case a:return me(Te+"Minutes",1);case l:return me(Te+"Seconds",2);case i:return me(Te+"Milliseconds",3);default:return this.clone()}},F.endOf=function(P){return this.startOf(P,!1)},F.$set=function(P,G){var D,Q=L.p(P),te="set"+(this.$u?"UTC":""),ce=(D={},D[c]=te+"Date",D[m]=te+"Date",D[f]=te+"Month",D[p]=te+"FullYear",D[a]=te+"Hours",D[l]=te+"Minutes",D[i]=te+"Seconds",D[s]=te+"Milliseconds",D)[Q],me=Q===c?this.$D+(G-this.$W):G;if(Q===f||Q===p){var ge=this.clone().set(m,1);ge.$d[ce](me),ge.init(),this.$d=ge.set(m,Math.min(this.$D,ge.daysInMonth())).$d}else ce&&this.$d[ce](me);return this.init(),this},F.set=function(P,G){return this.clone().$set(P,G)},F.get=function(P){return this[L.p(P)]()},F.add=function(P,G){var D,Q=this;P=Number(P);var te=L.p(G),ce=function(Ce){var we=B(Q);return L.w(we.date(we.date()+Math.round(Ce*P)),Q)};if(te===f)return this.set(f,this.$M+P);if(te===p)return this.set(p,this.$y+P);if(te===c)return ce(1);if(te===d)return ce(7);var me=(D={},D[l]=r,D[a]=o,D[i]=t,D)[te]||1,ge=this.$d.getTime()+P*me;return L.w(ge,this)},F.subtract=function(P,G){return this.add(-1*P,G)},F.format=function(P){var G=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var Q=P||"YYYY-MM-DDTHH:mm:ssZ",te=L.z(this),ce=this.$H,me=this.$m,ge=this.$M,Ce=D.weekdays,we=D.months,Te=D.meridiem,ve=function(w,O,b,E){return w&&(w[O]||w(G,Q))||b[O].slice(0,E)},x=function(w){return L.s(ce%12||12,w,"0")},M=Te||function(w,O,b){var E=w<12?"AM":"PM";return b?E.toLowerCase():E};return Q.replace(C,function(w,O){return O||function(b){switch(b){case"YY":return String(G.$y).slice(-2);case"YYYY":return L.s(G.$y,4,"0");case"M":return ge+1;case"MM":return L.s(ge+1,2,"0");case"MMM":return ve(D.monthsShort,ge,we,3);case"MMMM":return ve(we,ge);case"D":return G.$D;case"DD":return L.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return ve(D.weekdaysMin,G.$W,Ce,2);case"ddd":return ve(D.weekdaysShort,G.$W,Ce,3);case"dddd":return Ce[G.$W];case"H":return String(ce);case"HH":return L.s(ce,2,"0");case"h":return x(1);case"hh":return x(2);case"a":return M(ce,me,!0);case"A":return M(ce,me,!1);case"m":return String(me);case"mm":return L.s(me,2,"0");case"s":return String(G.$s);case"ss":return L.s(G.$s,2,"0");case"SSS":return L.s(G.$ms,3,"0");case"Z":return te}return null}(w)||te.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(P,G,D){var Q,te=this,ce=L.p(G),me=B(P),ge=(me.utcOffset()-this.utcOffset())*r,Ce=this-me,we=function(){return L.m(te,me)};switch(ce){case p:Q=we()/12;break;case f:Q=we();break;case h:Q=we()/3;break;case d:Q=(Ce-ge)/6048e5;break;case c:Q=(Ce-ge)/864e5;break;case a:Q=Ce/o;break;case l:Q=Ce/r;break;case i:Q=Ce/t;break;default:Q=Ce}return D?Q:L.a(Q)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return T[this.$L]},F.locale=function(P,G){if(!P)return this.$L;var D=this.clone(),Q=U(P,G,!0);return Q&&(D.$L=Q),D},F.clone=function(){return L.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},j}(),W=z.prototype;return B.prototype=W,[["$ms",s],["$s",i],["$m",l],["$H",a],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(j){W[j[1]]=function(F){return this.$g(F,j[0],j[1])}}),B.extend=function(j,F){return j.$i||(j(F,z,B),j.$i=!0),B},B.locale=U,B.isDayjs=H,B.unix=function(j){return B(1e3*j)},B.en=T[A],B.Ls=T,B.p={},B})})(Vm);var zm=Vm.exports;const po=Da(zm),Hm=(n,e,t,r,o,s)=>{const i=u.ref(null),l=u.ref(null),a=u.ref(!1),c=u.ref(null),{showModal:d,closeModal:f}=da("session-time-out-modal"),h=u.computed(()=>i.value&&n?n-(i.value+1):0),p=u.computed(()=>l.value?60-l.value:0),m=u.computed(()=>a.value),g=()=>{c.value=setInterval(C,1e3),r(c.value)},y=()=>{c.value&&clearInterval(c.value)},C=()=>{i.value=po().diff(t(),"m"),l.value=po().subtract(i.value,"m").diff(t(),"s");const H=n??Number.MAX_SAFE_INTEGER,U=e??0;i.value>=H?(a.value=!0,d(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=S):i.value>=H-U?d():f()},S=H=>{H.stopPropagation(),v()},k=()=>{o(),y(),i.value=null,l.value=null,g()},v=()=>{y(),i.value=null,l.value=null,localStorage.removeItem("session-timeout"),s()},A=()=>{a.value?v():k()},T=()=>{v()},V=()=>{a.value?v():f()};return u.onMounted(()=>{const H=document.getElementById("session-time-out-modal");H&&H.addEventListener("hidden.bs.modal",A),y(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:T,OnSubmit:V}},Um=u.defineComponent({__name:"BDSessionTimeOutModal",props:["expiredTitle","expiredMessage","expiredButtonText","almostExpiredTitle","almostExpiredMessage","almostExpiredButtonText","almostExpiredCancelButtonText","threshold","warningThreshold","getTime","setTaskId","setNewTime","logout"],setup(n){const e=n,{IsExpired:t,Minutes:r,Seconds:o,OnLogOut:s,OnSubmit:i}=Hm(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),l=u.computed(()=>t.value?e.expiredTitle:e.almostExpiredTitle),a=u.computed(()=>t.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),c=u.computed(()=>t.value?e.expiredButtonText:e.almostExpiredButtonText);return(d,f)=>(u.openBlock(),u.createBlock(is,{id:"session-time-out-modal",title:l.value,"hide-close-button":!0,"hide-footer-cancel-button":u.unref(t),"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":c.value,size:"md",onSubmit:u.unref(i),onCancel:u.unref(s)},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(a.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}});function jm(){const n=()=>new Promise(t=>{if(document.readyState==="complete")return t();window.addEventListener("load",()=>t(),{once:!0})});return{OnWindowLoaded:t=>{u.onMounted(()=>n().then(t))}}}function Rw(n){const{OnWindowLoaded:e}=jm();let t;const r=()=>{t=document.addEventListener("click",s=>{if(!s||!s.target)return;let i=null;if(s.target instanceof Element&&(i=s.target.closest(".popover")),i)return;const l=uo.getInstance(n.value);l&&l.hide()})};u.onMounted(r),e(()=>new uo(n.value)),u.onUnmounted(()=>{const s=uo.getInstance(n.value);s&&s.dispose(),t&&document.removeEventListener("click",t)})}const Wm={mounted:n=>{new Sr(n)}};var Bw={exports:{}};(function(n,e){(function(t,r){n.exports=r(zm)})(Ia,function(t){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(t),s={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(i){return"["+i+(i===1||i===8||i>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(s,null,!0),s})})(Bw);var Km={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Ia,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,s=/\d\d/,i=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,a={},c=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(C){this[y]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var S=C.match(/([+-]|\d\d)/g),k=60*S[1]+(+S[2]||0);return k===0?0:S[0]==="+"?-k:k}(y)}],h=function(y){var C=a[y];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(y,C){var S,k=a.meridiem;if(k){for(var v=1;v<=24;v+=1)if(y.indexOf(k(v,0,C))>-1){S=v>12;break}}else S=y===(C?"pm":"PM");return S},m={A:[l,function(y){this.afternoon=p(y,!1)}],a:[l,function(y){this.afternoon=p(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[s,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[i,d("seconds")],ss:[i,d("seconds")],m:[i,d("minutes")],mm:[i,d("minutes")],H:[i,d("hours")],h:[i,d("hours")],HH:[i,d("hours")],hh:[i,d("hours")],D:[i,d("day")],DD:[s,d("day")],Do:[l,function(y){var C=a.ordinal,S=y.match(/\d+/);if(this.day=S[0],C)for(var k=1;k<=31;k+=1)C(k).replace(/\[|\]/g,"")===y&&(this.day=k)}],w:[i,d("week")],ww:[s,d("week")],M:[i,d("month")],MM:[s,d("month")],MMM:[l,function(y){var C=h("months"),S=(h("monthsShort")||C.map(function(k){return k.slice(0,3)})).indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[l,function(y){var C=h("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,d("year")],YY:[s,function(y){this.year=c(y)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(y){var C,S;C=y,S=a&&a.formats;for(var k=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(B,L,z){var W=z&&z.toUpperCase();return L||S[z]||t[z]||S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(j,F,P){return F||P.slice(1)})})).match(r),v=k.length,A=0;A<v;A+=1){var T=k[A],V=m[T],H=V&&V[0],U=V&&V[1];k[A]=U?{regex:H,parser:U}:T.replace(/^\[|\]$/g,"")}return function(B){for(var L={},z=0,W=0;z<v;z+=1){var j=k[z];if(typeof j=="string")W+=j.length;else{var F=j.regex,P=j.parser,G=B.slice(W),D=F.exec(G)[0];P.call(L,D),B=B.replace(D,"")}}return function(Q){var te=Q.afternoon;if(te!==void 0){var ce=Q.hours;te?ce<12&&(Q.hours+=12):ce===12&&(Q.hours=0),delete Q.afternoon}}(L),L}}return function(y,C,S){S.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var k=C.prototype,v=k.parse;k.parse=function(A){var T=A.date,V=A.utc,H=A.args;this.$u=V;var U=H[1];if(typeof U=="string"){var B=H[2]===!0,L=H[3]===!0,z=B||L,W=H[2];L&&(W=H[2]),a=this.$locale(),!B&&W&&(a=S.Ls[W]),this.$d=function(G,D,Q,te){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*G);var ce=g(D)(G),me=ce.year,ge=ce.month,Ce=ce.day,we=ce.hours,Te=ce.minutes,ve=ce.seconds,x=ce.milliseconds,M=ce.zone,w=ce.week,O=new Date,b=Ce||(me||ge?1:O.getDate()),E=me||O.getFullYear(),_=0;me&&!ge||(_=ge>0?ge-1:O.getMonth());var I,R=we||0,$=Te||0,K=ve||0,J=x||0;return M?new Date(Date.UTC(E,_,b,R,$,K,J+60*M.offset*1e3)):Q?new Date(Date.UTC(E,_,b,R,$,K,J)):(I=new Date(E,_,b,R,$,K,J),w&&(I=te(I).week(w).toDate()),I)}catch{return new Date("")}}(T,U,V,S),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),z&&T!=this.format(U)&&(this.$d=new Date("")),a={}}else if(U instanceof Array)for(var j=U.length,F=1;F<=j;F+=1){H[1]=U[F-1];var P=S.apply(this,H);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}F===j&&(this.$d=new Date(""))}else v.call(this,A)}}})})(Km);var $w=Km.exports;const Pw=Da($w);po.extend(Pw),po.locale("nl");function Fw(n,e=po().startOf("day")){const t="DD-MM-YYYY",r=po(n,t);if(r.isSame(e))return"vandaag";const s=e.subtract(1,"day");if(r.isSame(s))return"gister";const l=e.subtract(2,"day");if(r.isSame(l))return"eergister";const c=e.subtract(7,"day");if(r.isAfter(c)){const h="dddd";return r.format(h)}if(r.year()==e.year()){const h="D MMM";return r.format(h)}return r.format(t)}const Vw={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove"},Ye=u.defineComponent({__name:"BDButton",props:{size:{default:lt.MD},variant:{default:Vw.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(n,{emit:e}){const t=n,r=u.computed(()=>({btn:!0,[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:!0,"d-grid":t.blockElement&&typeof t.to=="string",[`${t.class}`]:t.class,disabled:t.disabled})),o=u.computed(()=>t.to?Ar:"button"),s=u.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),i=l=>{e("click",l)};return(l,a)=>(u.openBlock(),u.createBlock(u.resolveDynamicComponent(o.value),u.mergeProps({class:["bd-btn",r.value]},s.value,{onClick:i}),{default:u.withCtx(()=>[u.renderSlot(l.$slots,"default",{},()=>[u.createTextVNode(u.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),zw={install:n=>{n.component("BDCol",Zn),n.component("BDContainer",as),n.component("BDRow",Xn),n.component("BDButton",Ye),n.component("BDLogo",xa),n.component("BDLink",Ar),n.component("BDDropdownItem",Es),n.component("BDDropdown",Gc),n.component("BDAlert",yo),n.component("BDProfileImage",vo),n.component("BDZoomslider",Oa),n.component("BDCard",gs),n.component("BDCollapsableCard",bu),n.component("BDFormInput",nr),n.component("BDInputGroup",ku),n.component("BDFormInvalidFeedback",ys),n.component("BDBadge",Tu),n.component("BDForm",xu),n.component("BDPagination",Au),n.component("BDDropzone",Du),n.component("BDMarkdownEditor",Mp),n.component("BDModal",is),n.component("BDFormSelect",Ou),n.component("BDUser",Np),n.component("BDArticle",Nu),n.component("BDFormCheckbox",Mu),n.component("BDToast",_a),n.component("BDAttachmentPreviewList",Ki),n.component("BDImageAttachmentPreviewList",Yi),n.component("BDHeader",Bm),n.component("BDMobileMenu",kc),n.component("BDChatCloud",_p),n.component("BDTable",Ip),n.component("BDChangePasswordTemplate",Rm),n.component("BDPill",bs),n.component("BDImageAttachmentModal",Pm),n.component("BDPhoneNumberEditModal",Fm),n.component("BDSessionTimeOutModal",Um),n.component("IconAcademy",tu),n.component("IconArrowDown",nu),n.component("IconArrowUp",ru),n.component("IconAttachment",Qn),n.component("IconBold",ha),n.component("IconBulletList",pa),n.component("IconCalendar",ma),n.component("IconCalendar",ma),n.component("IconCardView",ou),n.component("IconCaretDown",ga),n.component("IconCaretLeft",ya),n.component("IconCaretRight",va),n.component("IconCheck",xr),n.component("IconClose",ls),n.component("IconComment",dg),n.component("IconDownloadImage",cs),n.component("IconDownloadImage",cs),n.component("IconEdit",su),n.component("IconError",us),n.component("IconEyeShow",iu),n.component("IconEyeSlash",au),n.component("IconFile",ba),n.component("IconHyperlink",ds),n.component("IconInfo",qn),n.component("IconItalic",Ea),n.component("IconListView",lu),n.component("IconMenu",fs),n.component("IconMenu",fs),n.component("IconOrderedList",Ca),n.component("IconRemove",go),n.component("IconService",cu),n.component("IconSort",uu),n.component("IconSortAsc",Sa),n.component("IconSortDesc",wa),n.component("IconSortNone",ka),n.component("IconTriangleExclamation",du),n.component("IconUnderline",Ta),n.component("IconContactPerson",fu),n.directive("vBDTooltip",Wm)}};ue.BDAlert=yo,ue.BDArticle=Nu,ue.BDAttachmentPreviewList=Ki,ue.BDBadge=Tu,ue.BDButton=Ye,ue.BDCard=gs,ue.BDChangePasswordTemplate=Rm,ue.BDChatCloud=_p,ue.BDCol=Zn,ue.BDCollapsableCard=bu,ue.BDContainer=as,ue.BDDropdown=Gc,ue.BDDropdownItem=Es,ue.BDDropzone=Du,ue.BDForm=xu,ue.BDFormCheckbox=Mu,ue.BDFormInput=nr,ue.BDFormInvalidFeedback=ys,ue.BDFormSelect=Ou,ue.BDHeader=Bm,ue.BDImageAttachmentModal=Pm,ue.BDImageAttachmentPreviewList=Yi,ue.BDInputGroup=ku,ue.BDLink=Ar,ue.BDLogo=xa,ue.BDMarkdownEditor=Mp,ue.BDMobileMenu=kc,ue.BDModal=is,ue.BDPagination=Au,ue.BDPhoneNumberEditModal=Fm,ue.BDPill=bs,ue.BDProfileImage=vo,ue.BDRow=Xn,ue.BDSessionTimeOutModal=Um,ue.BDTable=Ip,ue.BDToast=_a,ue.BDUser=Np,ue.BDZoomslider=Oa,ue.IconAcademy=tu,ue.IconArrowDown=nu,ue.IconArrowUp=ru,ue.IconAttachment=Qn,ue.IconBold=ha,ue.IconBulletList=pa,ue.IconCalendar=ma,ue.IconCardView=ou,ue.IconCaretDown=ga,ue.IconCaretLeft=ya,ue.IconCaretRight=va,ue.IconCheck=xr,ue.IconClose=ls,ue.IconContactPerson=fu,ue.IconDownloadImage=cs,ue.IconEdit=su,ue.IconError=us,ue.IconEyeShow=iu,ue.IconEyeSlash=au,ue.IconFile=ba,ue.IconHyperlink=ds,ue.IconInfo=qn,ue.IconItalic=Ea,ue.IconListView=lu,ue.IconMenu=fs,ue.IconOrderedList=Ca,ue.IconRemove=go,ue.IconService=cu,ue.IconSort=uu,ue.IconSortAsc=Sa,ue.IconSortDesc=wa,ue.IconSortNone=ka,ue.IconTriangleExclamation=du,ue.IconUnderline=Ta,ue.default=zw,ue.getDisplayDate=Fw,ue.useModal=da,ue.usePopover=Rw,ue.useServerErrors=Yc,ue.useSessionTimeOut=Hm,ue.useToaster=ua,ue.useValidation=Lm,ue.useWindow=jm,ue.useZoom=$m,ue.vBdTooltip=Wm,Object.defineProperties(ue,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});