@beterdichtbij/component-library 0.35.2 → 0.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bd-component-lib.cjs.js +29 -29
- package/dist/bd-component-lib.es.js +3562 -3438
- package/dist/bd-component-lib.umd.js +31 -31
- package/dist/components/organisms/BDImageAttachmentModal/BDImageAttachmentModal.vue.d.ts +11 -0
- package/dist/components/organisms/BDImageAttachmentModal/BDImageAttachmentModal.vue.d.ts.map +1 -0
- package/dist/composables/useZoom.d.ts +15 -0
- package/dist/index.d.ts +4 -2
- package/dist/scss/_modal.scss +93 -0
- package/dist/scss/_table.scss +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
(function(he,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(he=typeof globalThis<"u"?globalThis:he||self,d(he.BDComponentLibrary={},he.Vue))})(this,function(he,d){"use strict";const Zn=d.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xxl:{},orderClass:{},offsetClass:{}},setup(n){const e=n,t=d.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)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(t.value)},[d.renderSlot(r.$slots,"default")],2))}}),ni=d.defineComponent({__name:"BDContainer",props:{class:{default:""},fluid:{type:Boolean,default:!1}},setup(n){const e=n,t=d.computed(()=>({container:!e.fluid,"container-fluid":e.fluid===!0,[`container-${e.fluid}`]:e.fluid&&e.fluid!==!0,[e.class]:!0}));return(r,o)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(t.value)},[d.renderSlot(r.$slots,"default")],2))}}),Xn=d.defineComponent({__name:"BDRow",props:{class:{}},setup(n){return(e,t)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["row",e.class])},[d.renderSlot(e.$slots,"default")],2))}}),at={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},e1={},t1={class:"icon icon-academy",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"},n1=[d.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 r1(n,e){return d.openBlock(),d.createElementBlock("svg",t1,n1)}const Zc=Le(e1,[["render",r1]]),o1={},i1={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},s1=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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 a1(n,e){return d.openBlock(),d.createElementBlock("svg",i1,s1)}const Xc=Le(o1,[["render",a1]]),l1={},c1={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},u1=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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 d1(n,e){return d.openBlock(),d.createElementBlock("svg",c1,u1)}const Qc=Le(l1,[["render",d1]]),f1={},h1={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},p1=[d.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 m1(n,e){return d.openBlock(),d.createElementBlock("svg",h1,p1)}const Qn=Le(f1,[["render",m1]]),g1={},y1={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"},v1=[d.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 b1(n,e){return d.openBlock(),d.createElementBlock("svg",y1,v1)}const ca=Le(g1,[["render",b1]]),E1={},C1={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"},S1=[d.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 w1(n,e){return d.openBlock(),d.createElementBlock("svg",C1,S1)}const ua=Le(E1,[["render",w1]]),k1={},T1={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"},A1=[d.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 x1(n,e){return d.openBlock(),d.createElementBlock("svg",T1,A1)}const da=Le(k1,[["render",x1]]),O1={},M1={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"},_1=[d.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 N1(n,e){return d.openBlock(),d.createElementBlock("svg",M1,_1)}const qc=Le(O1,[["render",N1]]),I1={},D1={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"},L1=[d.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 R1(n,e){return d.openBlock(),d.createElementBlock("svg",D1,L1)}const fa=Le(I1,[["render",R1]]),B1={},$1={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"},P1=[d.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 F1(n,e){return d.openBlock(),d.createElementBlock("svg",$1,P1)}const ha=Le(B1,[["render",F1]]),V1={},z1={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"},H1=[d.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 U1(n,e){return d.openBlock(),d.createElementBlock("svg",z1,H1)}const pa=Le(V1,[["render",U1]]),j1={},W1={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"},K1=[d.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 Y1(n,e){return d.openBlock(),d.createElementBlock("svg",W1,K1)}const kr=Le(j1,[["render",Y1]]),G1={},J1={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"},Z1=[d.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 X1(n,e){return d.openBlock(),d.createElementBlock("svg",J1,Z1)}const ri=Le(G1,[["render",X1]]),Q1={},q1={class:"icon icon-comment",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},eg=[d.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 tg(n,e){return d.openBlock(),d.createElementBlock("svg",q1,eg)}const ng=Le(Q1,[["render",tg]]),rg={},og={viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-download-link"},ig=[d.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 sg(n,e){return d.openBlock(),d.createElementBlock("svg",og,ig)}const oi=Le(rg,[["render",sg]]),ag={},lg={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18"},cg=[d.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 ug(n,e){return d.openBlock(),d.createElementBlock("svg",lg,cg)}const eu=Le(ag,[["render",ug]]),dg={},fg={class:"icon icon-error",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},hg=[d.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 pg(n,e){return d.openBlock(),d.createElementBlock("svg",fg,hg)}const ii=Le(dg,[["render",pg]]),mg={},gg={width:"30px",height:"30px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-show"},yg=[d.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 vg(n,e){return d.openBlock(),d.createElementBlock("svg",gg,yg)}const tu=Le(mg,[["render",vg]]),bg={},Eg={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"},Cg=[d.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 Sg(n,e){return d.openBlock(),d.createElementBlock("svg",Eg,Cg)}const nu=Le(bg,[["render",Sg]]),wg={},kg={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"},Tg=[d.createElementVNode("title",null,"common-file-empty",-1),d.createElementVNode("g",null,[d.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
|
|
1
|
+
(function(fe,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(fe=typeof globalThis<"u"?globalThis:fe||self,d(fe.BDComponentLibrary={},fe.Vue))})(this,function(fe,d){"use strict";const Zn=d.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xxl:{},orderClass:{},offsetClass:{}},setup(n){const e=n,t=d.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)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(t.value)},[d.renderSlot(r.$slots,"default")],2))}}),ni=d.defineComponent({__name:"BDContainer",props:{class:{default:""},fluid:{type:Boolean,default:!1}},setup(n){const e=n,t=d.computed(()=>({container:!e.fluid,"container-fluid":e.fluid===!0,[`container-${e.fluid}`]:e.fluid&&e.fluid!==!0,[e.class]:!0}));return(r,o)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(t.value)},[d.renderSlot(r.$slots,"default")],2))}}),Xn=d.defineComponent({__name:"BDRow",props:{class:{}},setup(n){return(e,t)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["row",e.class])},[d.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},r1={},o1={class:"icon icon-academy",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"},i1=[d.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 s1(n,e){return d.openBlock(),d.createElementBlock("svg",o1,i1)}const Qc=Le(r1,[["render",s1]]),a1={},l1={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},c1=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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 u1(n,e){return d.openBlock(),d.createElementBlock("svg",l1,c1)}const qc=Le(a1,[["render",u1]]),d1={},f1={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},h1=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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 p1(n,e){return d.openBlock(),d.createElementBlock("svg",f1,h1)}const eu=Le(d1,[["render",p1]]),m1={},g1={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},y1=[d.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 v1(n,e){return d.openBlock(),d.createElementBlock("svg",g1,y1)}const Qn=Le(m1,[["render",v1]]),b1={},E1={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"},C1=[d.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 S1(n,e){return d.openBlock(),d.createElementBlock("svg",E1,C1)}const ca=Le(b1,[["render",S1]]),w1={},k1={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"},T1=[d.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 A1(n,e){return d.openBlock(),d.createElementBlock("svg",k1,T1)}const ua=Le(w1,[["render",A1]]),x1={},O1={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"},M1=[d.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 N1(n,e){return d.openBlock(),d.createElementBlock("svg",O1,M1)}const da=Le(x1,[["render",N1]]),_1={},I1={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"},D1=[d.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 L1(n,e){return d.openBlock(),d.createElementBlock("svg",I1,D1)}const tu=Le(_1,[["render",L1]]),R1={},B1={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"},$1=[d.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 P1(n,e){return d.openBlock(),d.createElementBlock("svg",B1,$1)}const fa=Le(R1,[["render",P1]]),F1={},V1={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"},z1=[d.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 H1(n,e){return d.openBlock(),d.createElementBlock("svg",V1,z1)}const ha=Le(F1,[["render",H1]]),U1={},j1={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"},W1=[d.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 K1(n,e){return d.openBlock(),d.createElementBlock("svg",j1,W1)}const pa=Le(U1,[["render",K1]]),Y1={},G1={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"},J1=[d.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 Z1(n,e){return d.openBlock(),d.createElementBlock("svg",G1,J1)}const kr=Le(Y1,[["render",Z1]]),X1={},Q1={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"},q1=[d.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 eg(n,e){return d.openBlock(),d.createElementBlock("svg",Q1,q1)}const ri=Le(X1,[["render",eg]]),tg={},ng={class:"icon icon-comment",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},rg=[d.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 og(n,e){return d.openBlock(),d.createElementBlock("svg",ng,rg)}const ig=Le(tg,[["render",og]]),sg={},ag={viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-download-link"},lg=[d.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 cg(n,e){return d.openBlock(),d.createElementBlock("svg",ag,lg)}const oi=Le(sg,[["render",cg]]),ug={},dg={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18"},fg=[d.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 hg(n,e){return d.openBlock(),d.createElementBlock("svg",dg,fg)}const nu=Le(ug,[["render",hg]]),pg={},mg={class:"icon icon-error",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},gg=[d.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 yg(n,e){return d.openBlock(),d.createElementBlock("svg",mg,gg)}const ii=Le(pg,[["render",yg]]),vg={},bg={width:"30px",height:"30px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-show"},Eg=[d.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 Cg(n,e){return d.openBlock(),d.createElementBlock("svg",bg,Eg)}const ru=Le(vg,[["render",Cg]]),Sg={},wg={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"},kg=[d.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 Tg(n,e){return d.openBlock(),d.createElementBlock("svg",wg,kg)}const ou=Le(Sg,[["render",Tg]]),Ag={},xg={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"},Og=[d.createElementVNode("title",null,"common-file-empty",-1),d.createElementVNode("g",null,[d.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 Ag(n,e){return d.openBlock(),d.createElementBlock("svg",kg,Tg)}const ma=Le(wg,[["render",Ag]]),xg={},Og={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"},Mg=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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"}),d.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 _g(n,e){return d.openBlock(),d.createElementBlock("svg",Og,Mg)}const si=Le(xg,[["render",_g]]),Ng={},Ig={class:"icon icon-info",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Dg=[d.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 Lg(n,e){return d.openBlock(),d.createElementBlock("svg",Ig,Dg)}const Tr=Le(Ng,[["render",Lg]]),Rg={},Bg={width:"12",height:"14",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-italic"},$g=[d.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 Pg(n,e){return d.openBlock(),d.createElementBlock("svg",Bg,$g)}const ga=Le(Rg,[["render",Pg]]),Fg={},Vg={class:"icon icon-list-view",width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zg=[d.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 Hg(n,e){return d.openBlock(),d.createElementBlock("svg",Vg,zg)}const ru=Le(Fg,[["render",Hg]]),Ug={},jg={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},Wg=[d.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 Kg(n,e){return d.openBlock(),d.createElementBlock("svg",jg,Wg)}const ai=Le(Ug,[["render",Kg]]),Yg={},Gg={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},Jg=[d.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 Zg(n,e){return d.openBlock(),d.createElementBlock("svg",Gg,Jg)}const ya=Le(Yg,[["render",Zg]]),Xg={},Qg={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},qg=[d.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 e0(n,e){return d.openBlock(),d.createElementBlock("svg",Qg,qg)}const ho=Le(Xg,[["render",e0]]),t0={},n0={class:"icon icon-service",viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg"},r0=[d.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 o0(n,e){return d.openBlock(),d.createElementBlock("svg",n0,r0)}const ou=Le(t0,[["render",o0]]),i0={},s0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},a0=[d.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 l0(n,e){return d.openBlock(),d.createElementBlock("svg",s0,a0)}const iu=Le(i0,[["render",l0]]),c0={},u0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},d0=[d.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 f0(n,e){return d.openBlock(),d.createElementBlock("svg",u0,d0)}const va=Le(c0,[["render",f0]]),h0={},p0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},m0=[d.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 g0(n,e){return d.openBlock(),d.createElementBlock("svg",p0,m0)}const ba=Le(h0,[["render",g0]]),y0={},v0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},b0=[d.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 E0(n,e){return d.openBlock(),d.createElementBlock("svg",v0,b0)}const Ea=Le(y0,[["render",E0]]),C0={},S0={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w0=[d.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 k0(n,e){return d.openBlock(),d.createElementBlock("svg",S0,w0)}const su=Le(C0,[["render",k0]]),T0={},A0={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},x0=[d.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 O0(n,e){return d.openBlock(),d.createElementBlock("svg",A0,x0)}const Ca=Le(T0,[["render",O0]]),M0={},_0={xmlns:"http://www.w3.org/2000/svg",width:"23",height:"17",viewBox:"0 0 18 15",fill:"none"},N0=[d.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 I0(n,e){return d.openBlock(),d.createElementBlock("svg",_0,N0)}const au=Le(M0,[["render",I0]]),D0={},L0=[d.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 R0(n,e){return d.openBlock(),d.createElementBlock("svg",d.mergeProps({class:"bd-logo"},n.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),L0,16)}const Sa=Le(D0,[["render",R0]]),lu=/^https:/i,Ar=d.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(n){const e=n,t=d.computed(()=>typeof e.to=="string"&&lu.test(e.to)?"a":typeof e.to!="string"&&typeof d.resolveComponent("router-link")!="string"?"router-link":"div"),r=d.computed(()=>{if(typeof e.to=="string"&&lu.test(e.to)){const{to:o,target:i,rel:s}=e;return{href:o,target:i,rel:s}}else{const{to:o}=e;return{to:o}}});return(o,i)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(t.value),d.mergeProps({class:"bd-link"},r.value),{default:d.withCtx(()=>[d.renderSlot(o.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(e.text),1)])]),_:3},16))}}),li={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light",GRAY:"gray"},B0={key:0,class:"b-d-alert-title"},ci=d.defineComponent({__name:"BDAlert",props:{variant:{default:li.PRIMARY},title:{default:""}},setup(n){const e=n,t=d.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(t.value),role:"alert"},[r.title?(d.openBlock(),d.createElementBlock("div",B0,[d.createVNode(d.unref(Tr)),d.createElementVNode("span",null,[d.createElementVNode("strong",null,d.toDisplayString(e.title),1)])])):d.createCommentVNode("",!0),d.renderSlot(r.$slots,"default")],2))}}),$0=["src","alt"],P0=["textContent"],po=d.defineComponent({__name:"BDProfileImage",props:{showFooter:{type:Boolean,default:!1},size:{default:at.LG},linkText:{default:""},src:{default:""},alt:{default:""}},emits:["click"],setup(n,{emit:e}){const t=()=>{e("click")};return(r,o)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-profile-picture rounded-circle",r.size])},[d.createElementVNode("img",{src:r.src,alt:r.alt,class:"position-absolute top-0 start-0"},null,8,$0),r.showFooter?(d.openBlock(),d.createElementBlock("a",{key:0,class:"bd-profile-picture__footer position-absolute bottom-0 start-0",onClick:t,textContent:d.toDisplayString(r.linkText)},null,8,P0)):d.createCommentVNode("",!0)],2))}});function F0(n){return d.getCurrentScope()?(d.onScopeDispose(n),!0):!1}function ui(n){return typeof n=="function"?n():d.unref(n)}const V0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const z0=n=>typeof n<"u",H0=Object.prototype.toString,U0=n=>H0.call(n)==="[object Object]",wa=()=>{};function j0(n,e){function t(...r){return new Promise((o,i)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return t}function W0(n,e={}){let t,r,o=wa;const i=l=>{clearTimeout(l),o(),o=wa};return l=>{const a=ui(n),c=ui(e.maxWait);return t&&i(t),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((u,f)=>{o=e.rejectOnCancel?f:u,c&&!r&&(r=setTimeout(()=>{t&&i(t),r=null,u(l())},c)),t=setTimeout(()=>{r&&i(r),r=null,u(l())},a)})}}function K0(n,e=200,t={}){return j0(W0(e,t),n)}function cu(n){var e;const t=ui(n);return(e=t==null?void 0:t.$el)!=null?e:t}const Y0=V0?window:void 0;function uu(...n){let e,t,r,o;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,o]=n,e=Y0):[e,t,r,o]=n,!e)return wa;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h,p)=>(u.addEventListener(f,h,p),()=>u.removeEventListener(f,h,p)),a=d.watch(()=>[cu(e),ui(o)],([u,f])=>{if(s(),!u)return;const h=U0(f)?{...f}:f;i.push(...t.flatMap(p=>r.map(m=>l(u,p,m,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return F0(c),c}function G0(n){return JSON.parse(JSON.stringify(n))}function J0(n,e={}){const{initialValue:t=!1,focusVisible:r=!1}=e,o=d.ref(!1),i=d.computed(()=>cu(n));uu(i,"focus",l=>{var a,c;(!r||(c=(a=l.target).matches)!=null&&c.call(a,":focus-visible"))&&(o.value=!0)}),uu(i,"blur",()=>o.value=!1);const s=d.computed({get:()=>o.value,set(l){var a,c;!l&&o.value?(a=i.value)==null||a.blur():l&&!o.value&&((c=i.value)==null||c.focus())}});return d.watch(i,()=>{s.value=t},{immediate:!0,flush:"post"}),{focused:s}}function qn(n,e,t,r={}){var o,i,s;const{clone:l=!1,passive:a=!1,eventName:c,deep:u=!1,defaultValue:f,shouldEmit:h}=r,p=d.getCurrentInstance(),m=t||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((s=(i=p==null?void 0:p.proxy)==null?void 0:i.$emit)==null?void 0:s.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):G0(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(),b=d.ref(k);let M=!1;return d.watch(()=>n[e],T=>{M||(M=!0,b.value=y(T),d.nextTick(()=>M=!1))}),d.watch(b,T=>{!M&&(T!==n[e]||u)&&S(T)},{deep:u}),b}else return d.computed({get(){return C()},set(k){S(k)}})}const Z0={class:"bd-zoom-slider d-flex"},X0=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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)],Q0=["max"],q0=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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)],du=d.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=qn(t,"modelValue",e);function o(){r.value!==0&&r.value--}function i(){r.value<t.maxValue&&r.value++}return(s,l)=>(d.openBlock(),d.createElementBlock("div",Z0,[(d.openBlock(),d.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},X0)),d.withDirectives(d.createElementVNode("input",{type:"range","onUpdate:modelValue":l[0]||(l[0]=a=>d.isRef(r)?r.value=a:null),min:"0",max:s.maxValue,class:"bd-zoom-slider-input"},null,8,Q0),[[d.vModelText,d.unref(r)]]),(d.openBlock(),d.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:i},q0))]))}});for(var er=256,fu=[],hu=256,di;er--;)fu[er]=(er+256).toString(16).substring(1);function pu(n){var e=0,t=n||11;if(!di||er+t>hu*2)for(di="",er=0;e<hu;e++)di+=fu[Math.random()*256|0];return di.substring(er,er+++t)}function xr(){return{uniqueIdentifier:d.ref(pu())}}const e2=["id"],t2={key:0},fi=d.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}=xr(),r=t.value,o=d.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),i=d.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),s=d.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(l,a)=>(d.openBlock(),d.createElementBlock("div",{id:d.unref(r),class:d.normalizeClass(o.value)},[!l.noHeader||l.noBody?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(i.value)},[d.renderSlot(l.$slots,"header",{},()=>[l.title?(d.openBlock(),d.createElementBlock("h2",t2,d.toDisplayString(l.title),1)):d.createCommentVNode("",!0)])],2)):d.createCommentVNode("",!0),l.noBody?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",{key:1,class:d.normalizeClass(s.value)},[d.renderSlot(l.$slots,"body")],2))],10,e2))}}),n2={key:0},r2={class:"bd-collapsable-card__actions"},o2=["data-bs-target"],mu=d.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}=xr(),r=t.value,o=d.computed(()=>`bd-collapsable-card__collapse-${r}`),i=d.computed(()=>({"d-block":[at.SM,at.MD].includes(e.showOn.toLowerCase()),"d-md-none":e.showOn.toLowerCase()==at.SM,"d-lg-none":e.showOn.toLowerCase()==at.MD})),s=d.computed(()=>{let a={"round-corners-sm":e.showOn.toLowerCase()==at.SM,"round-corners-md":e.showOn.toLowerCase()==at.MD,"is-disabled":e.disabled,"round-corners":!e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")}),l=d.computed(()=>{let a={collapse:!0,show:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!e.visible||e.disabled,"open-collapse-lg":e.visible&&[at.SM,at.MD].includes(e.showOn.toLowerCase()),"open-collapse-md":e.showOn.toLowerCase()==at.SM&&e.visible};return Object.keys(a).filter(c=>a[c]).join(" ")});return(a,c)=>(d.openBlock(),d.createBlock(fi,{class:"bd-collapsable-card",title:a.title,"header-class":s.value,"body-class":l.value},{header:d.withCtx(()=>[a.title?(d.openBlock(),d.createElementBlock("h2",n2,d.toDisplayString(a.title),1)):d.createCommentVNode("",!0),d.createElementVNode("div",r2,[d.renderSlot(a.$slots,"action"),!a.disabled&&a.visible?(d.openBlock(),d.createElementBlock("button",{key:0,class:d.normalizeClass(["btn btn-white btn-caret",i.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":"true"},[d.createVNode(d.unref(fa))],10,o2)):d.createCommentVNode("",!0)])]),body:d.withCtx(()=>[d.renderSlot(a.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var i2=Object.defineProperty,s2=(n,e,t)=>e in n?i2(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,mo=(n,e,t)=>(s2(n,typeof e!="symbol"?e+"":e,t),t);const gu={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class yu{constructor(e={}){mo(this,"opts",{}),mo(this,"memo",new Map);const t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...gu,...t.tokens};for(const r of Object.values(t.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else t.tokens=gu;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,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-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:i,escaped:s}=this.escapeMask(t),l=[],a=this.opts.tokens!=null?this.opts.tokens:{},c=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>y>-1&&C>-1:()=>y<i.length&&C<e.length,p=k=>!this.isReversed()&&k<=f||this.isReversed()&&k>=f;let m,g=-1,y=this.isReversed()?i.length-1:0,C=this.isReversed()?e.length-1:0,S=!1;for(;h();){const k=i.charAt(y),b=a[k],M=(b==null?void 0:b.transform)!=null?b.transform(e.charAt(C)):e.charAt(C);if(!s.includes(y)&&b!=null?(M.match(b.pattern)!=null?(l[u](M),b.repeated?(g===-1?g=y:y===f&&y!==g&&(y=g-c),f===g&&(y-=c)):b.multiple&&(S=!0,y-=c),y+=c):b.multiple?S&&(y+=c,C-=c,S=!1):M===m?m=void 0:b.optional&&(y+=c,C-=c),C+=c):(r&&!this.isEager()&&l[u](k),M===k&&!this.isEager()?C+=c:m=k,this.isEager()||(y+=c)),this.isEager())for(;p(y)&&(a[i.charAt(y)]==null||s.includes(y));)r?l[u](i.charAt(y)):i.charAt(y)===e.charAt(C)&&(C+=c),y+=c}return this.memo.set(o,l.join("")),this.memo.get(o)}}const vu=n=>JSON.parse(n.replaceAll("'",'"')),bu=(n,e={})=>{const t={...e};return n.dataset.maska!=null&&n.dataset.maska!==""&&(t.mask=a2(n.dataset.maska)),n.dataset.maskaEager!=null&&(t.eager=ka(n.dataset.maskaEager)),n.dataset.maskaReversed!=null&&(t.reversed=ka(n.dataset.maskaReversed)),n.dataset.maskaTokensReplace!=null&&(t.tokensReplace=ka(n.dataset.maskaTokensReplace)),n.dataset.maskaTokens!=null&&(t.tokens=l2(n.dataset.maskaTokens)),t},ka=n=>n!==""?!!JSON.parse(n):!0,a2=n=>n.startsWith("[")&&n.endsWith("]")?vu(n):n,l2=n=>{if(n.startsWith("{")&&n.endsWith("}"))return vu(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 c2{constructor(e,t={}){mo(this,"items",new Map),mo(this,"beforeinputEvent",r=>{const o=r.target,i=this.items.get(o);i.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&i.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),mo(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,i=this.items.get(o),s=o.value,l=o.selectionStart,a=o.selectionEnd;let c=s;if(i.isEager()){const u=i.masked(s),f=i.unmasked(s);f===""&&"data"in r&&r.data!=null?c=r.data:f!==i.unmasked(u)&&(c=f)}if(this.setMaskedValue(o,c),"inputType"in r&&(r.inputType.startsWith("delete")||l!=null&&l<s.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 yu(bu(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,...i}=e;return i}init(e,t){for(const r of e){const o=new yu(bu(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),i=r.unmasked(r.isEager()?o:t),s=r.completed(t),l={masked:o,unmasked:i,completed:s};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 Ta=new WeakMap,u2=n=>{setTimeout(()=>{var e;((e=Ta.get(n))==null?void 0:e.needUpdateValue(n))===!0&&n.dispatchEvent(new CustomEvent("input"))})},d2=(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;u2(t);const o=Ta.get(t);if(o!=null){if(!o.needUpdateOptions(t,r))return;o.destroy()}if(e.value!=null){const i=e.value,s=l=>{i.masked=l.masked,i.unmasked=l.unmasked,i.completed=l.completed};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}Ta.set(t,new c2(t,r))},f2=["value","type"],go=d.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:at.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}=xr(),o=qn(t,"modelValue",e),i=`__BD__FORM__LABEL__${r.value}`,s=`__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=d.computed(()=>({[`${t.inputClass}`]:t.inputClass,"is-invalid":t.state===!1,"is-valid":t.state===!0,[`form-control-${t.size}`]:t.size})),u=d.computed(()=>({[`${t.invalidFeedbackClass}`]:t.invalidFeedbackClass,"is-invalid":t.state===!1})),f=d.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=K0(p=>{o.value=p.target.value},t.delayTimeMs);return(p,m)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-form-input",p.formGroupClass]),id:s},[d.renderSlot(p.$slots,"label",{},()=>[p.label?(d.openBlock(),d.createElementBlock("label",{key:0,for:l,id:i,class:d.normalizeClass(["form-label",p.labelClass])},d.toDisplayString(p.label),3)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:d.normalizeClass(p.formFieldClass)},[d.withDirectives(d.createElementVNode("input",d.mergeProps({value:p.modelValue,type:p.type,id:l,class:["form-control",c.value]},f.value,{onInput:m[0]||(m[0]=(...g)=>d.unref(h)&&d.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]=d.withKeys(g=>p.$emit("enter"),["enter"]))}),null,16,f2),[[d.unref(d2)]]),d.renderSlot(p.$slots,"default")],2),d.createVNode(d.unref(hi),{text:p.invalidFeedbackText,class:d.normalizeClass(u.value),state:p.state,id:a},null,8,["text","class","state"])],2))}}),h2={class:"input-group bd-input-group"},p2=["for"],Eu=d.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(n){const e=n,t=d.useAttrs();return(r,o)=>(d.openBlock(),d.createElementBlock("fieldset",h2,[e.label?(d.openBlock(),d.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},d.toDisplayString(e.label),9,p2)):d.createCommentVNode("",!0),d.createElementVNode("div",{class:d.normalizeClass(d.unref(t).class)},[d.renderSlot(r.$slots,"default")],2)]))}}),m2={class:"invalid-feedback bd-invalid-feedback"},hi=d.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(n){const e=n;return(t,r)=>(d.openBlock(),d.createElementBlock("div",m2,[e.state?(d.openBlock(),d.createBlock(d.unref(kr),{key:0})):(d.openBlock(),d.createBlock(d.unref(ii),{key:1})),d.createTextVNode(" "+d.toDisplayString(e.text),1)]))}}),g2={key:0},y2={key:1},Cu=d.defineComponent({__name:"BDBadge",props:{variant:{default:li.PRIMARY}},setup(n){const e=n,t=d.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(d.openBlock(),d.createElementBlock("span",{role:"status",class:d.normalizeClass(t.value)},[r.variant==="danger"?(d.openBlock(),d.createElementBlock("span",g2,[d.createVNode(d.unref(Tr))])):d.createCommentVNode("",!0),r.variant==="success"?(d.openBlock(),d.createElementBlock("span",y2,[d.createVNode(d.unref(kr))])):d.createCommentVNode("",!0),d.renderSlot(r.$slots,"default")],2))}}),v2=["onSubmit","onReset"],Su=d.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(n,{emit:e}){function t(){e("submit")}function r(){e("reset")}return(o,i)=>(d.openBlock(),d.createElementBlock("form",{onSubmit:d.withModifiers(t,["prevent"]),onReset:d.withModifiers(r,["prevent"])},[d.renderSlot(o.$slots,"default")],40,v2))}}),b2={"aria-label":"Page navigation",class:"bd-pagination"},E2={class:"page-item"},C2=["data-page"],S2=["data-page"],w2={class:"page-item"},k2=["data-page"],wu=d.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=qn(t,"modelValue",e),o=d.ref(Math.ceil(t.totalRows/t.rowsPerPage)),i=d.ref([]);d.watch([()=>t.totalRows,()=>t.rowsPerPage],()=>{o.value=Math.ceil(t.totalRows/t.rowsPerPage),i.value=u(r.value)}),d.onMounted(()=>{i.value=u(r.value)});const s=d.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,i.value=u(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,u=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)=>(d.openBlock(),d.createElementBlock("div",b2,[d.createElementVNode("ul",{class:d.normalizeClass(["pagination",s.value])},[d.withDirectives(d.createElementVNode("li",E2,[d.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:l,"data-page":d.unref(r)-1},[d.createVNode(d.unref(ha))],8,C2)],512),[[d.vShow,d.unref(r)>1]]),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.value,p=>(d.openBlock(),d.createElementBlock("li",{class:d.normalizeClass(["page-item",{active:d.unref(r)===p,disabled:typeof p=="string"}]),key:p},[d.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:l,"data-page":p},d.toDisplayString(p),9,S2)],2))),128)),d.withDirectives(d.createElementVNode("li",w2,[d.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:l,"data-page":d.unref(r)+1},[d.createVNode(d.unref(pa))],8,k2)],512),[[d.vShow,d.unref(r)<o.value]])],2)]))}}),T2=["disabled"],A2=["label"],x2=["value"],O2=["value"],ku=d.defineComponent({__name:"BDFormSelect",props:{size:{default:at.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=qn(t,"modelValue",e),o=d.ref(null),{focused:i}=J0(o,{initialValue:t.autofocus}),s=d.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":t.state===!1,[`form-select-${t.size}`]:["xs","sm","lg"].includes(t.size)}));d.watch(()=>t.autofocus,u=>{u&&(i.value=!0)});const l=u=>{r.value=u.target.value;let f=c(u.target.value);e("input",f)},a=u=>{let f=c(u.target.value);e("change",f)},c=u=>{try{return JSON.parse(u)}catch{return u}};return(u,f)=>d.withDirectives((d.openBlock(),d.createElementBlock("select",{class:d.normalizeClass(s.value),"onUpdate:modelValue":f[0]||(f[0]=h=>d.isRef(r)?r.value=h:null),disabled:t.disabled,ref_key:"input",ref:o,onInput:l,onChange:a},[d.renderSlot(u.$slots,"first"),t.options&&t.options.length>0&&t.options[0].label&&t.options[0].options?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:0},d.renderList(t.options,h=>(d.openBlock(),d.createElementBlock("optgroup",{label:h.label},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(h.options,p=>(d.openBlock(),d.createElementBlock("option",{value:JSON.stringify(p.value),key:p.value},d.toDisplayString(p.text),9,x2))),128))],8,A2))),256)):(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(t.options,h=>(d.openBlock(),d.createElementBlock("option",{value:h.value,key:h.value},d.toDisplayString(h.text),9,O2))),128))],42,T2)),[[d.vModelSelect,d.unref(r)]])}}),M2=["value","true-value","false-value","data-checked"],Tu=d.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}=xr(),o=qn(t,"modelValue",e),i=`form-check-input-${r.value}`,s=d.computed(()=>["form-check","bd-form-checkbox"]),l=d.computed(()=>({"form-check-input":!0,"is-invalid":t.state===!1})),a=c=>e("change",c.target.value);return(c,u)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(s.value)},[d.withDirectives(d.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>d.isRef(o)?o.value=f:null),id:i,class:d.normalizeClass(l.value),type:"checkbox",value:c.value,"true-value":c.value,"false-value":c.uncheckedValue,"data-checked":d.unref(o)===c.value,onChange:a},null,42,M2),[[d.vModelCheckbox,d.unref(o)]]),d.createElementVNode("label",{class:"form-check-label",for:i},[d.renderSlot(c.$slots,"default")]),d.renderSlot(c.$slots,"last")],2))}}),_2={key:0,class:"bd-article__body"},N2={key:1},Au=d.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,i)=>(d.openBlock(),d.createElementBlock("article",{class:"bd-article",onClick:r},[d.createElementVNode("header",null,[d.renderSlot(o.$slots,"header",{},()=>[d.createElementVNode("h5",null,d.toDisplayString(t.title),1)])]),t.hideBody?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",_2,[d.renderSlot(o.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])])),t.hideFooter?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("footer",N2,[d.renderSlot(o.$slots,"footer")]))]))}}),Or={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},I2=["id"],D2={class:"toast-header"},L2=d.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),R2={class:"toast-body"},Aa=d.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Or.INFO},title:{default:""},text:{default:""}},setup(n){const e=n,t=d.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=d.computed(()=>e.variant!==Or.SUCCESS);return(o,i)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["toast bd-toast",t.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[d.createElementVNode("div",D2,[r.value?(d.openBlock(),d.createBlock(d.unref(Tr),{key:0})):(d.openBlock(),d.createBlock(d.unref(kr),{key:1})),d.createElementVNode("h5",null,d.toDisplayString(e.title),1),L2]),d.createElementVNode("div",R2,[d.createElementVNode("span",null,d.toDisplayString(e.text),1)])],10,I2))}}),un="",pi=n=>typeof n=="string"||n instanceof String,B2={class:"bd-pill"},$2=["src"],P2={class:"bd-pill__description"},F2=["href"],V2=["id","textContent","title"],z2=["id","textContent","title"],mi=d.defineComponent({__name:"BDPill",props:{imgSrc:{default:un},uri:{default:un},uriDisplayName:{default:un},title:{default:un},subtitle:{default:un},showClose:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=xr(),o=d.computed(()=>t.uri),i=d.computed(()=>t.uriDisplayName!==un?t.uriDisplayName:t.uri),s=d.computed(()=>t.imgSrc),l=d.computed(()=>t.title),a=d.computed(()=>t.subtitle),c=d.computed(()=>`bd-pill-title-${r.value}`),u=d.computed(()=>`bd-pill-subtitle-${r.value}`);return(f,h)=>(d.openBlock(),d.createElementBlock("div",B2,[d.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,$2),d.createElementVNode("div",P2,[d.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[d.createVNode(d.unref(si),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),d.createTextVNode(" "+d.toDisplayString(i.value),1)],8,F2),d.createElementVNode("span",{class:"bd-pill__title",id:c.value,textContent:d.toDisplayString(l.value),"data-bs-toggle":"tooltip",title:l.value},null,8,V2),d.createElementVNode("span",{class:"bd-pill__subtitle",id:u.value,textContent:d.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,z2)])]))}}),gi=d.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,i)=>(d.openBlock(),d.createElementBlock("li",d.mergeProps({class:"bd-dropdown-item"},o.$attrs),[d.createVNode(Ar,d.mergeProps({class:"dropdown-item",onClick:r},t),{default:d.withCtx(()=>[d.renderSlot(o.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])]),_:3},16)],16))}});var xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var xu={exports:{}};(function(n,e){(function(r,o){n.exports=o()})(self,function(){return function(){var t={3099:function(s){s.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},6077:function(s,l,a){var c=a(111);s.exports=function(u){if(!c(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(s,l,a){var c=a(5112),u=a(30),f=a(3070),h=c("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:u(null)}),s.exports=function(m){p[h][m]=!0}},1530:function(s,l,a){var c=a(8710).charAt;s.exports=function(u,f,h){return f+(h?c(u,f).length:1)}},5787:function(s){s.exports=function(l,a,c){if(!(l instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return l}},9670:function(s,l,a){var c=a(111);s.exports=function(u){if(!c(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(s,l,a){var c=a(4019),u=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),b=a(5112),M=a(9711),T=f.Int8Array,z=T&&T.prototype,U=f.Uint8ClampedArray,j=U&&U.prototype,P=T&&S(T),L=z&&S(z),V=Object.prototype,W=V.isPrototypeOf,H=b("toStringTag"),F=M("TYPED_ARRAY_TAG"),$=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(A){if(!h(A))return!1;var O=m(A);return O==="DataView"||p(Q,O)||p(te,O)},me=function(ve){if(!h(ve))return!1;var A=m(ve);return p(Q,A)||p(te,A)},ge=function(ve){if(me(ve))return ve;throw TypeError("Target is not a typed array")},Ce=function(ve){if(k){if(W.call(P,ve))return ve}else for(var A in Q)if(p(Q,D)){var O=f[A];if(O&&(ve===O||W.call(O,ve)))return ve}throw TypeError("Target is not a typed array constructor")},we=function(ve,A,O){if(u){if(O)for(var w in Q){var x=f[w];x&&p(x.prototype,ve)&&delete x.prototype[ve]}(!L[ve]||O)&&y(L,ve,O?A:$&&z[ve]||A)}},Te=function(ve,A,O){var w,x;if(u){if(k){if(O)for(w in Q)x=f[w],x&&p(x,ve)&&delete x[ve];if(!P[ve]||O)try{return y(P,ve,O?A:$&&T[ve]||A)}catch{}else return}for(w in Q)x=f[w],x&&(!x[ve]||O)&&y(x,ve,A)}};for(D in Q)f[D]||($=!1);if((!$||typeof P!="function"||P===Function.prototype)&&(P=function(){throw TypeError("Incorrect invocation")},$))for(D in Q)f[D]&&k(f[D],P);if((!$||!L||L===V)&&(L=P.prototype,$))for(D in Q)f[D]&&k(f[D].prototype,L);if($&&S(j)!==L&&k(j,L),u&&!p(L,H)){G=!0,C(L,H,{get:function(){return h(this)?this[F]:void 0}});for(D in Q)f[D]&&g(f[D],F,D)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:G&&F,aTypedArray:ge,aTypedArrayConstructor:Ce,exportTypedArrayMethod:we,exportTypedArrayStaticMethod:Te,isView:ce,isTypedArray:me,TypedArray:P,TypedArrayPrototype:L}},3331:function(s,l,a){var c=a(7854),u=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),b=a(9518),M=a(7674),T=a(8006).f,z=a(3070).f,U=a(1285),j=a(8003),P=a(9909),L=P.get,V=P.set,W="ArrayBuffer",H="DataView",F="prototype",$="Wrong length",G="Wrong index",D=c[W],Q=D,te=c[H],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]},A=function(Z){return[Z&255,Z>>8&255,Z>>16&255,Z>>24&255]},O=function(Z){return Z[3]<<24|Z[2]<<16|Z[1]<<8|Z[0]},w=function(Z){return Ce(Z,23,4)},x=function(Z){return Ce(Z,52,8)},v=function(Z,X){z(Z[F],X,{get:function(){return L(this)[X]}})},E=function(Z,X,ne,fe){var Se=S(ne),Ne=L(Z);if(Se+X>Ne.byteLength)throw ge(G);var Ve=L(Ne.buffer).bytes,Fe=Se+Ne.byteOffset,De=Ve.slice(Fe,Fe+X);return fe?De:De.reverse()},N=function(Z,X,ne,fe,Se,Ne){var Ve=S(ne),Fe=L(Z);if(Ve+X>Fe.byteLength)throw ge(G);for(var De=L(Fe.buffer).bytes,Ge=Ve+Fe.byteOffset,Ct=fe(+Se),st=0;st<X;st++)De[Ge+st]=Ct[Ne?st:X-st-1]};if(!f)Q=function(X){g(this,Q,W);var ne=S(X);V(this,{bytes:U.call(new Array(ne),0),byteLength:ne}),u||(this.byteLength=ne)},te=function(X,ne,fe){g(this,te,H),g(X,Q,H);var Se=L(X).byteLength,Ne=y(ne);if(Ne<0||Ne>Se)throw ge("Wrong offset");if(fe=fe===void 0?Se-Ne:C(fe),Ne+fe>Se)throw ge($);V(this,{buffer:X,byteLength:fe,byteOffset:Ne}),u||(this.buffer=X,this.byteLength=fe,this.byteOffset=Ne)},u&&(v(Q,"byteLength"),v(te,"buffer"),v(te,"byteLength"),v(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 O(E(this,4,X,arguments.length>1?arguments[1]:void 0))},getUint32:function(X){return O(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){N(this,1,X,Te,ne)},setUint8:function(X,ne){N(this,1,X,Te,ne)},setInt16:function(X,ne){N(this,2,X,ve,ne,arguments.length>2?arguments[2]:void 0)},setUint16:function(X,ne){N(this,2,X,ve,ne,arguments.length>2?arguments[2]:void 0)},setInt32:function(X,ne){N(this,4,X,A,ne,arguments.length>2?arguments[2]:void 0)},setUint32:function(X,ne){N(this,4,X,A,ne,arguments.length>2?arguments[2]:void 0)},setFloat32:function(X,ne){N(this,4,X,w,ne,arguments.length>2?arguments[2]:void 0)},setFloat64:function(X,ne){N(this,8,X,x,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),B=0,K;R.length>B;)(K=R[B++])in Q||h(Q,K,D[K]);I.constructor=Q}M&&b(ce)!==me&&M(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})}j(Q,W),j(te,H),s.exports={ArrayBuffer:Q,DataView:te}},1048:function(s,l,a){var c=a(7908),u=a(1400),f=a(7466),h=Math.min;s.exports=[].copyWithin||function(m,g){var y=c(this),C=f(y.length),S=u(m,C),k=u(g,C),b=arguments.length>2?arguments[2]:void 0,M=h((b===void 0?C:u(b,C))-k,C-S),T=1;for(k<S&&S<k+M&&(T=-1,k+=M-1,S+=M-1);M-- >0;)k in y?y[S]=y[k]:delete y[S],S+=T,k+=T;return y}},1285:function(s,l,a){var c=a(7908),u=a(1400),f=a(7466);s.exports=function(p){for(var m=c(this),g=f(m.length),y=arguments.length,C=u(y>1?arguments[1]:void 0,g),S=y>2?arguments[2]:void 0,k=S===void 0?g:u(S,g);k>C;)m[C++]=p;return m}},8533:function(s,l,a){var c=a(2092).forEach,u=a(9341),f=u("forEach");s.exports=f?[].forEach:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}},8457:function(s,l,a){var c=a(9974),u=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),g=a(1246);s.exports=function(C){var S=u(C),k=typeof this=="function"?this:Array,b=arguments.length,M=b>1?arguments[1]:void 0,T=M!==void 0,z=g(S),U=0,j,P,L,V,W,H;if(T&&(M=c(M,b>2?arguments[2]:void 0,2)),z!=null&&!(k==Array&&h(z)))for(V=z.call(S),W=V.next,P=new k;!(L=W.call(V)).done;U++)H=T?f(V,M,[L.value,U],!0):L.value,m(P,U,H);else for(j=p(S.length),P=new k(j);j>U;U++)H=T?M(S[U],U):S[U],m(P,U,H);return P.length=U,P}},1318:function(s,l,a){var c=a(5656),u=a(7466),f=a(1400),h=function(p){return function(m,g,y){var C=c(m),S=u(C.length),k=f(y,S),b;if(p&&g!=g){for(;S>k;)if(b=C[k++],b!=b)return!0}else for(;S>k;k++)if((p||k in C)&&C[k]===g)return p||k||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}},2092:function(s,l,a){var c=a(9974),u=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,b=y==4,M=y==6,T=y==7,z=y==5||M;return function(U,j,P,L){for(var V=f(U),W=u(V),H=c(j,P,3),F=h(W.length),$=0,G=L||p,D=C?G(U,F):S||T?G(U,0):void 0,Q,te;F>$;$++)if((z||$ in W)&&(Q=W[$],te=H(Q,$,V),y))if(C)D[$]=te;else if(te)switch(y){case 3:return!0;case 5:return Q;case 6:return $;case 2:m.call(D,Q)}else switch(y){case 4:return!1;case 7:m.call(D,Q)}return M?-1:k||b?b:D}};s.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(s,l,a){var c=a(5656),u=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;s.exports=C?function(k){if(g)return m.apply(this,arguments)||0;var b=c(this),M=f(b.length),T=M-1;for(arguments.length>1&&(T=p(T,u(arguments[1]))),T<0&&(T=M+T);T>=0;T--)if(T in b&&b[T]===k)return T||0;return-1}:m},1194:function(s,l,a){var c=a(7293),u=a(5112),f=a(7392),h=u("species");s.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(s,l,a){var c=a(7293);s.exports=function(u,f){var h=[][u];return!!h&&c(function(){h.call(null,f||function(){throw 1},1)})}},3671:function(s,l,a){var c=a(3099),u=a(7908),f=a(8361),h=a(7466),p=function(m){return function(g,y,C,S){c(y);var k=u(g),b=f(k),M=h(k.length),T=m?M-1:0,z=m?-1:1;if(C<2)for(;;){if(T in b){S=b[T],T+=z;break}if(T+=z,m?T<0:M<=T)throw TypeError("Reduce of empty array with no initial value")}for(;m?T>=0:M>T;T+=z)T in b&&(S=y(S,b[T],T,k));return S}};s.exports={left:p(!1),right:p(!0)}},5417:function(s,l,a){var c=a(111),u=a(3157),f=a(5112),h=f("species");s.exports=function(p,m){var g;return u(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||u(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(s,l,a){var c=a(9670),u=a(9212);s.exports=function(f,h,p,m){try{return m?h(c(p)[0],p[1]):h(p)}catch(g){throw u(f),g}}},7072:function(s,l,a){var c=a(5112),u=c("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[u]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,g){if(!g&&!f)return!1;var y=!1;try{var C={};C[u]=function(){return{next:function(){return{done:y=!0}}}},m(C)}catch{}return y}},4326:function(s){var l={}.toString;s.exports=function(a){return l.call(a).slice(8,-1)}},648:function(s,l,a){var c=a(1694),u=a(4326),f=a(5112),h=f("toStringTag"),p=u(function(){return arguments}())=="Arguments",m=function(g,y){try{return g[y]}catch{}};s.exports=c?u:function(g){var y,C,S;return g===void 0?"Undefined":g===null?"Null":typeof(C=m(y=Object(g),h))=="string"?C:p?u(y):(S=u(y))=="Object"&&typeof y.callee=="function"?"Arguments":S}},9920:function(s,l,a){var c=a(6656),u=a(3887),f=a(1236),h=a(3070);s.exports=function(p,m){for(var g=u(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(s,l,a){var c=a(7293);s.exports=!c(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(s,l,a){var c=a(3383).IteratorPrototype,u=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};s.exports=function(g,y,C){var S=y+" Iterator";return g.prototype=u(c,{next:f(1,C)}),h(g,S,!1,!0),p[S]=m,g}},8880:function(s,l,a){var c=a(9781),u=a(3070),f=a(9114);s.exports=c?function(h,p,m){return u.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}},9114:function(s){s.exports=function(l,a){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:a}}},6135:function(s,l,a){var c=a(7593),u=a(3070),f=a(9114);s.exports=function(h,p,m){var g=c(p);g in h?u.f(h,g,f(0,m)):h[g]=m}},654:function(s,l,a){var c=a(2109),u=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),b=k.IteratorPrototype,M=k.BUGGY_SAFARI_ITERATORS,T=y("iterator"),z="keys",U="values",j="entries",P=function(){return this};s.exports=function(L,V,W,H,F,$,G){u(W,V,H);var D=function(A){if(A===F&&ge)return ge;if(!M&&A in ce)return ce[A];switch(A){case z:return function(){return new W(this,A)};case U:return function(){return new W(this,A)};case j:return function(){return new W(this,A)}}return function(){return new W(this)}},Q=V+" Iterator",te=!1,ce=L.prototype,me=ce[T]||ce["@@iterator"]||F&&ce[F],ge=!M&&me||D(F),Ce=V=="Array"&&ce.entries||me,we,Te,ve;if(Ce&&(we=f(Ce.call(new L)),b!==Object.prototype&&we.next&&(!C&&f(we)!==b&&(h?h(we,b):typeof we[T]!="function"&&m(we,T,P)),p(we,Q,!0,!0),C&&(S[Q]=P))),F==U&&me&&me.name!==U&&(te=!0,ge=function(){return me.call(this)}),(!C||G)&&ce[T]!==ge&&m(ce,T,ge),S[V]=ge,F)if(Te={values:D(U),keys:$?ge:D(z),entries:D(j)},G)for(ve in Te)(M||te||!(ve in ce))&&g(ce,ve,Te[ve]);else c({target:V,proto:!0,forced:M||te},Te);return Te}},9781:function(s,l,a){var c=a(7293);s.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(s,l,a){var c=a(7854),u=a(111),f=c.document,h=u(f)&&u(f.createElement);s.exports=function(p){return h?f.createElement(p):{}}},8324:function(s){s.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(s,l,a){var c=a(5005);s.exports=c("navigator","userAgent")||""},7392:function(s,l,a){var c=a(7854),u=a(8113),f=c.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(g=m[1]))),s.exports=g&&+g},748:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(s,l,a){var c=a(7854),u=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),g=a(4705);s.exports=function(y,C){var S=y.target,k=y.global,b=y.stat,M,T,z,U,j,P;if(k?T=c:b?T=c[S]||p(S,{}):T=(c[S]||{}).prototype,T)for(z in C){if(j=C[z],y.noTargetGet?(P=u(T,z),U=P&&P.value):U=T[z],M=g(k?z:S+(b?".":"#")+z,y.forced),!M&&U!==void 0){if(typeof j==typeof U)continue;m(j,U)}(y.sham||U&&U.sham)&&f(j,"sham",!0),h(T,z,j,y)}}},7293:function(s){s.exports=function(l){try{return!!l()}catch{return!0}}},7007:function(s,l,a){a(4916);var c=a(1320),u=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),g=!u(function(){var b=/./;return b.exec=function(){var M=[];return M.groups={a:"7"},M},"".replace(b,"$<a>")!=="7"}),y=function(){return"a".replace(/./,"$0")==="$0"}(),C=f("replace"),S=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),k=!u(function(){var b=/(?:)/,M=b.exec;b.exec=function(){return M.apply(this,arguments)};var T="ab".split(b);return T.length!==2||T[0]!=="a"||T[1]!=="b"});s.exports=function(b,M,T,z){var U=f(b),j=!u(function(){var F={};return F[U]=function(){return 7},""[b](F)!=7}),P=j&&!u(function(){var F=!1,$=/a/;return b==="split"&&($={},$.constructor={},$.constructor[m]=function(){return $},$.flags="",$[U]=/./[U]),$.exec=function(){return F=!0,null},$[U](""),!F});if(!j||!P||b==="replace"&&!(g&&y&&!S)||b==="split"&&!k){var L=/./[U],V=T(U,""[b],function(F,$,G,D,Q){return $.exec===h?j&&!Q?{done:!0,value:L.call($,G,D)}:{done:!0,value:F.call(G,$,D)}:{done:!1}},{REPLACE_KEEPS_$0:y,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:S}),W=V[0],H=V[1];c(String.prototype,b,W),c(RegExp.prototype,U,M==2?function(F,$){return H.call(F,this,$)}:function(F){return H.call(F,this)})}z&&p(RegExp.prototype[U],"sham",!0)}},9974:function(s,l,a){var c=a(3099);s.exports=function(u,f,h){if(c(u),f===void 0)return u;switch(h){case 0:return function(){return u.call(f)};case 1:return function(p){return u.call(f,p)};case 2:return function(p,m){return u.call(f,p,m)};case 3:return function(p,m,g){return u.call(f,p,m,g)}}return function(){return u.apply(f,arguments)}}},5005:function(s,l,a){var c=a(857),u=a(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(c[h])||f(u[h]):c[h]&&c[h][p]||u[h]&&u[h][p]}},1246:function(s,l,a){var c=a(648),u=a(7497),f=a(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||u[c(p)]}},8554:function(s,l,a){var c=a(9670),u=a(1246);s.exports=function(f){var h=u(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return c(h.call(f))}},647:function(s,l,a){var c=a(7908),u=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,g,y,C,S,k){var b=y+m.length,M=C.length,T=p;return S!==void 0&&(S=c(S),T=h),f.call(k,T,function(z,U){var j;switch(U.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,y);case"'":return g.slice(b);case"<":j=S[U.slice(1,-1)];break;default:var P=+U;if(P===0)return z;if(P>M){var L=u(P/10);return L===0?z:L<=M?C[L-1]===void 0?U.charAt(1):C[L-1]+U.charAt(1):z}j=C[P-1]}return j===void 0?"":j})}},7854:function(s,l,a){var c=function(u){return u&&u.Math==Math&&u};s.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(s){var l={}.hasOwnProperty;s.exports=function(a,c){return l.call(a,c)}},3501:function(s){s.exports={}},490:function(s,l,a){var c=a(5005);s.exports=c("document","documentElement")},4664:function(s,l,a){var c=a(9781),u=a(7293),f=a(317);s.exports=!c&&!u(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(s){var l=Math.abs,a=Math.pow,c=Math.floor,u=Math.log,f=Math.LN2,h=function(m,g,y){var C=new Array(y),S=y*8-g-1,k=(1<<S)-1,b=k>>1,M=g===23?a(2,-24)-a(2,-77):0,T=m<0||m===0&&1/m<0?1:0,z=0,U,j,P;for(m=l(m),m!=m||m===1/0?(j=m!=m?1:0,U=k):(U=c(u(m)/f),m*(P=a(2,-U))<1&&(U--,P*=2),U+b>=1?m+=M/P:m+=M*a(2,1-b),m*P>=2&&(U++,P/=2),U+b>=k?(j=0,U=k):U+b>=1?(j=(m*P-1)*a(2,g),U=U+b):(j=m*a(2,b-1)*a(2,g),U=0));g>=8;C[z++]=j&255,j/=256,g-=8);for(U=U<<g|j,S+=g;S>0;C[z++]=U&255,U/=256,S-=8);return C[--z]|=T*128,C},p=function(m,g){var y=m.length,C=y*8-g-1,S=(1<<C)-1,k=S>>1,b=C-7,M=y-1,T=m[M--],z=T&127,U;for(T>>=7;b>0;z=z*256+m[M],M--,b-=8);for(U=z&(1<<-b)-1,z>>=-b,b+=g;b>0;U=U*256+m[M],M--,b-=8);if(z===0)z=1-k;else{if(z===S)return U?NaN:T?-1/0:1/0;U=U+a(2,g),z=z-k}return(T?-1:1)*U*a(2,z-g)};s.exports={pack:h,unpack:p}},8361:function(s,l,a){var c=a(7293),u=a(4326),f="".split;s.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?f.call(h,""):Object(h)}:Object},9587:function(s,l,a){var c=a(111),u=a(7674);s.exports=function(f,h,p){var m,g;return u&&typeof(m=h.constructor)=="function"&&m!==p&&c(g=m.prototype)&&g!==p.prototype&&u(f,g),f}},2788:function(s,l,a){var c=a(5465),u=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(f){return u.call(f)}),s.exports=c.inspectSource},9909:function(s,l,a){var c=a(8536),u=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),g=a(6200),y=a(3501),C=u.WeakMap,S,k,b,M=function(V){return b(V)?k(V):S(V,{})},T=function(V){return function(W){var H;if(!f(W)||(H=k(W)).type!==V)throw TypeError("Incompatible receiver, "+V+" required");return H}};if(c){var z=m.state||(m.state=new C),U=z.get,j=z.has,P=z.set;S=function(V,W){return W.facade=V,P.call(z,V,W),W},k=function(V){return U.call(z,V)||{}},b=function(V){return j.call(z,V)}}else{var L=g("state");y[L]=!0,S=function(V,W){return W.facade=V,h(V,L,W),W},k=function(V){return p(V,L)?V[L]:{}},b=function(V){return p(V,L)}}s.exports={set:S,get:k,has:b,enforce:M,getterFor:T}},7659:function(s,l,a){var c=a(5112),u=a(7497),f=c("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(u.Array===p||h[f]===p)}},3157:function(s,l,a){var c=a(4326);s.exports=Array.isArray||function(f){return c(f)=="Array"}},4705:function(s,l,a){var c=a(7293),u=/#|\.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(u,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",g=f.POLYFILL="P";s.exports=f},111:function(s){s.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},1913:function(s){s.exports=!1},7850:function(s,l,a){var c=a(111),u=a(4326),f=a(5112),h=f("match");s.exports=function(p){var m;return c(p)&&((m=p[h])!==void 0?!!m:u(p)=="RegExp")}},9212:function(s,l,a){var c=a(9670);s.exports=function(u){var f=u.return;if(f!==void 0)return c(f.call(u)).value}},3383:function(s,l,a){var c=a(7293),u=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,b;[].keys&&(b=[].keys(),"next"in b?(k=u(u(b)),k!==Object.prototype&&(S=k)):y=!0);var M=S==null||c(function(){var T={};return S[g].call(T)!==T});M&&(S={}),(!m||M)&&!h(S,g)&&f(S,g,C),s.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:y}},7497:function(s){s.exports={}},133:function(s,l,a){var c=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},590:function(s,l,a){var c=a(7293),u=a(5112),f=a(1913),h=u("iterator");s.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(s,l,a){var c=a(7854),u=a(2788),f=c.WeakMap;s.exports=typeof f=="function"&&/native code/.test(u(f))},1574:function(s,l,a){var c=a(9781),u=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),g=a(8361),y=Object.assign,C=Object.defineProperty;s.exports=!y||u(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={},b=Symbol(),M="abcdefghijklmnopqrst";return S[b]=7,M.split("").forEach(function(T){k[T]=T}),y({},S)[b]!=7||f(y({},k)).join("")!=M})?function(k,b){for(var M=m(k),T=arguments.length,z=1,U=h.f,j=p.f;T>z;)for(var P=g(arguments[z++]),L=U?f(P).concat(U(P)):f(P),V=L.length,W=0,H;V>W;)H=L[W++],(!c||j.call(P,H))&&(M[H]=P[H]);return M}:y},30:function(s,l,a){var c=a(9670),u=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),g=a(6200),y=">",C="<",S="prototype",k="script",b=g("IE_PROTO"),M=function(){},T=function(L){return C+k+y+L+C+"/"+k+y},z=function(L){L.write(T("")),L.close();var V=L.parentWindow.Object;return L=null,V},U=function(){var L=m("iframe"),V="java"+k+":",W;return L.style.display="none",p.appendChild(L),L.src=String(V),W=L.contentWindow.document,W.open(),W.write(T("document.F=Object")),W.close(),W.F},j,P=function(){try{j=document.domain&&new ActiveXObject("htmlfile")}catch{}P=j?z(j):U();for(var L=f.length;L--;)delete P[S][f[L]];return P()};h[b]=!0,s.exports=Object.create||function(V,W){var H;return V!==null?(M[S]=c(V),H=new M,M[S]=null,H[b]=V):H=P(),W===void 0?H:u(H,W)}},6048:function(s,l,a){var c=a(9781),u=a(3070),f=a(9670),h=a(1956);s.exports=c?Object.defineProperties:function(m,g){f(m);for(var y=h(g),C=y.length,S=0,k;C>S;)u.f(m,k=y[S++],g[k]);return m}},3070:function(s,l,a){var c=a(9781),u=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),u)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(s,l,a){var c=a(9781),u=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(!u.f.call(S,k),S[k])}},8006:function(s,l,a){var c=a(6324),u=a(748),f=u.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(p){return c(p,f)}},5181:function(s,l){l.f=Object.getOwnPropertySymbols},9518:function(s,l,a){var c=a(6656),u=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=u(g),c(g,p)?g[p]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}},6324:function(s,l,a){var c=a(6656),u=a(5656),f=a(1318).indexOf,h=a(3501);s.exports=function(p,m){var g=u(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(s,l,a){var c=a(6324),u=a(748);s.exports=Object.keys||function(h){return c(h,u)}},5296:function(s,l){var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u=c&&!a.call({1:2},1);l.f=u?function(h){var p=c(this,h);return!!p&&p.enumerable}:a},7674:function(s,l,a){var c=a(9670),u=a(6077);s.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),u(y),f?p.call(g,y):g.__proto__=y,g}}():void 0)},288:function(s,l,a){var c=a(1694),u=a(648);s.exports=c?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(s,l,a){var c=a(5005),u=a(8006),f=a(5181),h=a(9670);s.exports=c("Reflect","ownKeys")||function(m){var g=u.f(h(m)),y=f.f;return y?g.concat(y(m)):g}},857:function(s,l,a){var c=a(7854);s.exports=c},2248:function(s,l,a){var c=a(1320);s.exports=function(u,f,h){for(var p in f)c(u,p,f[p],h);return u}},1320:function(s,l,a){var c=a(7854),u=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");(s.exports=function(S,k,b,M){var T=M?!!M.unsafe:!1,z=M?!!M.enumerable:!1,U=M?!!M.noTargetGet:!1,j;if(typeof b=="function"&&(typeof k=="string"&&!f(b,"name")&&u(b,"name",k),j=y(b),j.source||(j.source=C.join(typeof k=="string"?k:""))),S===c){z?S[k]=b:h(k,b);return}else T?!U&&S[k]&&(z=!0):delete S[k];z?S[k]=b:u(S,k,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})},7651:function(s,l,a){var c=a(4326),u=a(2261);s.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 u.call(f,h)}},2261:function(s,l,a){var c=a(7066),u=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=u.UNSUPPORTED_Y||u.BROKEN_CARET,y=/()??/.exec("")[1]!==void 0,C=m||y||g;C&&(p=function(k){var b=this,M,T,z,U,j=g&&b.sticky,P=c.call(b),L=b.source,V=0,W=k;return j&&(P=P.replace("y",""),P.indexOf("g")===-1&&(P+="g"),W=String(k).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&k[b.lastIndex-1]!==`
|
|
5
|
-
`)&&(L="(?: "+L+")",W=" "+W,V++),T=new RegExp("^(?:"+L+")",P)),y&&(T=new RegExp("^"+L+"$(?!\\s)",P)),m&&(M=b.lastIndex),z=f.call(j?T:b,W),j?z?(z.input=z.input.slice(V),z[0]=z[0].slice(V),z.index=b.lastIndex,b.lastIndex+=z[0].length):b.lastIndex=0:m&&z&&(b.lastIndex=b.global?z.index+z[0].length:M),y&&z&&z.length>1&&h.call(z[0],T,function(){for(U=1;U<arguments.length-2;U++)arguments[U]===void 0&&(z[U]=void 0)}),z}),s.exports=p},7066:function(s,l,a){var c=a(9670);s.exports=function(){var u=c(this),f="";return u.global&&(f+="g"),u.ignoreCase&&(f+="i"),u.multiline&&(f+="m"),u.dotAll&&(f+="s"),u.unicode&&(f+="u"),u.sticky&&(f+="y"),f}},2999:function(s,l,a){var c=a(7293);function u(f,h){return RegExp(f,h)}l.UNSUPPORTED_Y=c(function(){var f=u("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),l.BROKEN_CARET=c(function(){var f=u("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},4488:function(s){s.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},3505:function(s,l,a){var c=a(7854),u=a(8880);s.exports=function(f,h){try{u(c,f,h)}catch{c[f]=h}return h}},6340:function(s,l,a){var c=a(5005),u=a(3070),f=a(5112),h=a(9781),p=f("species");s.exports=function(m){var g=c(m),y=u.f;h&&g&&!g[p]&&y(g,p,{configurable:!0,get:function(){return this}})}},8003:function(s,l,a){var c=a(3070).f,u=a(6656),f=a(5112),h=f("toStringTag");s.exports=function(p,m,g){p&&!u(p=g?p:p.prototype,h)&&c(p,h,{configurable:!0,value:m})}},6200:function(s,l,a){var c=a(2309),u=a(9711),f=c("keys");s.exports=function(h){return f[h]||(f[h]=u(h))}},5465:function(s,l,a){var c=a(7854),u=a(3505),f="__core-js_shared__",h=c[f]||u(f,{});s.exports=h},2309:function(s,l,a){var c=a(1913),u=a(5465);(s.exports=function(f,h){return u[f]||(u[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:c?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(s,l,a){var c=a(9670),u=a(3099),f=a(5112),h=f("species");s.exports=function(p,m){var g=c(p).constructor,y;return g===void 0||(y=c(g)[h])==null?m:u(y)}},8710:function(s,l,a){var c=a(9958),u=a(4488),f=function(h){return function(p,m){var g=String(u(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)}};s.exports={codeAt:f(!1),charAt:f(!0)}},3197:function(s){var l=2147483647,a=36,c=1,u=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,b=Math.floor,M=String.fromCharCode,T=function(P){for(var L=[],V=0,W=P.length;V<W;){var H=P.charCodeAt(V++);if(H>=55296&&H<=56319&&V<W){var F=P.charCodeAt(V++);(F&64512)==56320?L.push(((H&1023)<<10)+(F&1023)+65536):(L.push(H),V--)}else L.push(H)}return L},z=function(P){return P+22+75*(P<26)},U=function(P,L,V){var W=0;for(P=V?b(P/h):P>>1,P+=b(P/L);P>k*u>>1;W+=a)P=b(P/k);return b(W+(k+1)*P/(P+f))},j=function(P){var L=[];P=T(P);var V=P.length,W=m,H=0,F=p,$,G;for($=0;$<P.length;$++)G=P[$],G<128&&L.push(M(G));var D=L.length,Q=D;for(D&&L.push(g);Q<V;){var te=l;for($=0;$<P.length;$++)G=P[$],G>=W&&G<te&&(te=G);var ce=Q+1;if(te-W>b((l-H)/ce))throw RangeError(S);for(H+=(te-W)*ce,W=te,$=0;$<P.length;$++){if(G=P[$],G<W&&++H>l)throw RangeError(S);if(G==W){for(var me=H,ge=a;;ge+=a){var Ce=ge<=F?c:ge>=F+u?u:ge-F;if(me<Ce)break;var we=me-Ce,Te=a-Ce;L.push(M(z(Ce+we%Te))),me=b(we/Te)}L.push(M(z(me))),F=U(H,ce,Q==D),H=0,++Q}}++H,++W}return L.join("")};s.exports=function(P){var L=[],V=P.toLowerCase().replace(C,".").split("."),W,H;for(W=0;W<V.length;W++)H=V[W],L.push(y.test(H)?"xn--"+j(H):H);return L.join(".")}},6091:function(s,l,a){var c=a(7293),u=a(1361),f="
";s.exports=function(h){return c(function(){return!!u[h]()||f[h]()!=f||u[h].name!==h})}},3111:function(s,l,a){var c=a(4488),u=a(1361),f="["+u+"]",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}};s.exports={start:m(1),end:m(2),trim:m(3)}},1400:function(s,l,a){var c=a(9958),u=Math.max,f=Math.min;s.exports=function(h,p){var m=c(h);return m<0?u(m+p,0):f(m,p)}},7067:function(s,l,a){var c=a(9958),u=a(7466);s.exports=function(f){if(f===void 0)return 0;var h=c(f),p=u(h);if(h!==p)throw RangeError("Wrong length or index");return p}},5656:function(s,l,a){var c=a(8361),u=a(4488);s.exports=function(f){return c(u(f))}},9958:function(s){var l=Math.ceil,a=Math.floor;s.exports=function(c){return isNaN(c=+c)?0:(c>0?a:l)(c)}},7466:function(s,l,a){var c=a(9958),u=Math.min;s.exports=function(f){return f>0?u(c(f),9007199254740991):0}},7908:function(s,l,a){var c=a(4488);s.exports=function(u){return Object(c(u))}},4590:function(s,l,a){var c=a(3002);s.exports=function(u,f){var h=c(u);if(h%f)throw RangeError("Wrong offset");return h}},3002:function(s,l,a){var c=a(9958);s.exports=function(u){var f=c(u);if(f<0)throw RangeError("The argument can't be less than 0");return f}},7593:function(s,l,a){var c=a(111);s.exports=function(u,f){if(!c(u))return u;var h,p;if(f&&typeof(h=u.toString)=="function"&&!c(p=h.call(u))||typeof(h=u.valueOf)=="function"&&!c(p=h.call(u))||!f&&typeof(h=u.toString)=="function"&&!c(p=h.call(u)))return p;throw TypeError("Can't convert object to primitive value")}},1694:function(s,l,a){var c=a(5112),u=c("toStringTag"),f={};f[u]="z",s.exports=String(f)==="[object z]"},9843:function(s,l,a){var c=a(2109),u=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),b=a(4590),M=a(7593),T=a(6656),z=a(648),U=a(111),j=a(30),P=a(7674),L=a(8006).f,V=a(7321),W=a(2092).forEach,H=a(6340),F=a(3070),$=a(1236),G=a(9909),D=a(9587),Q=G.get,te=G.set,ce=F.f,me=$.f,ge=Math.round,Ce=u.RangeError,we=m.ArrayBuffer,Te=m.DataView,ve=p.NATIVE_ARRAY_BUFFER_VIEWS,A=p.TYPED_ARRAY_TAG,O=p.TypedArray,w=p.TypedArrayPrototype,x=p.aTypedArrayConstructor,v=p.isTypedArray,E="BYTES_PER_ELEMENT",
|
|
6
|
-
\v\f\r \u2028\u2029\uFEFF`},8264:function(s,l,a){var c=a(2109),u=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],g=u[p];c({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)},2222:function(s,l,a){var c=a(2109),u=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),b=S("isConcatSpreadable"),M=9007199254740991,T="Maximum allowed index exceeded",z=k>=51||!u(function(){var L=[];return L[b]=!1,L.concat()[0]!==L}),U=C("concat"),j=function(L){if(!h(L))return!1;var V=L[b];return V!==void 0?!!V:f(L)},P=!z||!U;c({target:"Array",proto:!0,forced:P},{concat:function(V){var W=p(this),H=y(W,0),F=0,$,G,D,Q,te;for($=-1,D=arguments.length;$<D;$++)if(te=$===-1?W:arguments[$],j(te)){if(Q=m(te.length),F+Q>M)throw TypeError(T);for(G=0;G<Q;G++,F++)G in te&&g(H,F,te[G])}else{if(F>=M)throw TypeError(T);g(H,F++,te)}return H.length=F,H}})},7327:function(s,l,a){var c=a(2109),u=a(2092).filter,f=a(1194),h=f("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},2772:function(s,l,a){var c=a(2109),u=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:u(this,y,arguments.length>1?arguments[1]:void 0)}})},6992:function(s,l,a){var c=a(5656),u=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",g=h.set,y=h.getterFor(m);s.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,b=C.index++;return!S||b>=S.length?(C.target=void 0,{value:void 0,done:!0}):k=="keys"?{value:b,done:!1}:k=="values"?{value:S[b],done:!1}:{value:[b,S[b]],done:!1}},"values"),f.Arguments=f.Array,u("keys"),u("values"),u("entries")},1249:function(s,l,a){var c=a(2109),u=a(2092).map,f=a(1194),h=f("map");c({target:"Array",proto:!0,forced:!h},{map:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},7042:function(s,l,a){var c=a(2109),u=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"),b=[].slice,M=Math.max;c({target:"Array",proto:!0,forced:!S},{slice:function(z,U){var j=m(this),P=p(j.length),L=h(z,P),V=h(U===void 0?P:U,P),W,H,F;if(f(j)&&(W=j.constructor,typeof W=="function"&&(W===Array||f(W.prototype))?W=void 0:u(W)&&(W=W[k],W===null&&(W=void 0)),W===Array||W===void 0))return b.call(j,L,V);for(H=new(W===void 0?Array:W)(M(V-L,0)),F=0;L<V;L++,F++)L in j&&g(H,F,j[L]);return H.length=F,H}})},561:function(s,l,a){var c=a(2109),u=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,b=9007199254740991,M="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!C},{splice:function(z,U){var j=p(this),P=h(j.length),L=u(z,P),V=arguments.length,W,H,F,$,G,D;if(V===0?W=H=0:V===1?(W=0,H=P-L):(W=V-2,H=k(S(f(U),0),P-L)),P+W-H>b)throw TypeError(M);for(F=m(j,H),$=0;$<H;$++)G=L+$,G in j&&g(F,$,j[G]);if(F.length=H,W<H){for($=L;$<P-H;$++)G=$+H,D=$+W,G in j?j[D]=j[G]:delete j[D];for($=P;$>P-H+W;$--)delete j[$-1]}else if(W>H)for($=P-H;$>L;$--)G=$+H-1,D=$+W-1,G in j?j[D]=j[G]:delete j[D];for($=0;$<W;$++)j[$+L]=arguments[$+2];return j.length=P-H+W,F}})},8309:function(s,l,a){var c=a(9781),u=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";c&&!(m in f)&&u(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})},489:function(s,l,a){var c=a(2109),u=a(7293),f=a(7908),h=a(9518),p=a(8544),m=u(function(){h(1)});c({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(y){return h(f(y))}})},1539:function(s,l,a){var c=a(1694),u=a(1320),f=a(288);c||u(Object.prototype,"toString",f,{unsafe:!0})},4916:function(s,l,a){var c=a(2109),u=a(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(s,l,a){var c=a(1320),u=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=u(this),b=String(k.source),M=k.flags,T=String(M===void 0&&k instanceof RegExp&&!("flags"in m)?h.call(k):M);return"/"+b+"/"+T},{unsafe:!0})},8783:function(s,l,a){var c=a(8710).charAt,u=a(9909),f=a(654),h="String Iterator",p=u.set,m=u.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(s,l,a){var c=a(7007),u=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 b=h(this),M=k==null?void 0:k[g];return M!==void 0?M.call(k,b):new RegExp(k)[g](String(b))},function(S){var k=C(y,S,this);if(k.done)return k.value;var b=u(S),M=String(this);if(!b.global)return m(b,M);var T=b.unicode;b.lastIndex=0;for(var z=[],U=0,j;(j=m(b,M))!==null;){var P=String(j[0]);z[U]=P,P===""&&(b.lastIndex=p(M,f(b.lastIndex),T)),U++}return U===0?null:z}]})},5306:function(s,l,a){var c=a(7007),u=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(b){return b===void 0?b:String(b)};c("replace",2,function(b,M,T,z){var U=z.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,j=z.REPLACE_KEEPS_$0,P=U?"$":"$0";return[function(V,W){var H=p(this),F=V==null?void 0:V[b];return F!==void 0?F.call(V,H,W):M.call(String(H),V,W)},function(L,V){if(!U&&j||typeof V=="string"&&V.indexOf(P)===-1){var W=T(M,L,this,V);if(W.done)return W.value}var H=u(L),F=String(this),$=typeof V=="function";$||(V=String(V));var G=H.global;if(G){var D=H.unicode;H.lastIndex=0}for(var Q=[];;){var te=y(H,F);if(te===null||(Q.push(te),!G))break;var ce=String(te[0]);ce===""&&(H.lastIndex=m(F,f(H.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=[],A=1;A<te.length;A++)ve.push(k(te[A]));var O=te.groups;if($){var w=[we].concat(ve,Te,F);O!==void 0&&w.push(O);var x=String(V.apply(void 0,w))}else x=g(we,F,Te,ve,O,V);Te>=ge&&(me+=F.slice(ge,Te)+x,ge=Te+we.length)}return me+F.slice(ge)}]})},3123:function(s,l,a){var c=a(7007),u=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,b=Math.min,M=4294967295,T=!S(function(){return!RegExp(M,"y")});c("split",2,function(z,U,j){var P;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?P=function(L,V){var W=String(h(this)),H=V===void 0?M:V>>>0;if(H===0)return[];if(L===void 0)return[W];if(!u(L))return U.call(W,L,H);for(var F=[],$=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(L.sticky?"y":""),G=0,D=new RegExp(L.source,$+"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>=H)));)D.lastIndex===Q.index&&D.lastIndex++;return G===W.length?(ce||!D.test(""))&&F.push(""):F.push(W.slice(G)),F.length>H?F.slice(0,H):F}:"0".split(void 0,0).length?P=function(L,V){return L===void 0&&V===0?[]:U.call(this,L,V)}:P=U,[function(V,W){var H=h(this),F=V==null?void 0:V[z];return F!==void 0?F.call(V,H,W):P.call(String(H),V,W)},function(L,V){var W=j(P,L,this,V,P!==U);if(W.done)return W.value;var H=f(L),F=String(this),$=p(H,RegExp),G=H.unicode,D=(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")+(T?"y":"g"),Q=new $(T?H:"^(?:"+H.source+")",D),te=V===void 0?M:V>>>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=b(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(s,l,a){var c=a(2109),u=a(3111).trim,f=a(6091);c({target:"String",proto:!0,forced:f("trim")},{trim:function(){return u(this)}})},2990:function(s,l,a){var c=a(260),u=a(1048),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("copyWithin",function(m,g){return u.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})},8927:function(s,l,a){var c=a(260),u=a(2092).every,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("every",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3105:function(s,l,a){var c=a(260),u=a(1285),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("fill",function(m){return u.apply(f(this),arguments)})},5035:function(s,l,a){var c=a(260),u=a(2092).filter,f=a(3074),h=c.aTypedArray,p=c.exportTypedArrayMethod;p("filter",function(g){var y=u(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,y)})},7174:function(s,l,a){var c=a(260),u=a(2092).findIndex,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("findIndex",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4345:function(s,l,a){var c=a(260),u=a(2092).find,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("find",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},2846:function(s,l,a){var c=a(260),u=a(2092).forEach,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("forEach",function(m){u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4731:function(s,l,a){var c=a(260),u=a(1318).includes,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("includes",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},7209:function(s,l,a){var c=a(260),u=a(1318).indexOf,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("indexOf",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},6319:function(s,l,a){var c=a(7854),u=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=c.Uint8Array,g=f.values,y=f.keys,C=f.entries,S=u.aTypedArray,k=u.exportTypedArrayMethod,b=m&&m.prototype[p],M=!!b&&(b.name=="values"||b.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,!M),k(p,T,!M)},8867:function(s,l,a){var c=a(260),u=c.aTypedArray,f=c.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(u(this),arguments)})},7789:function(s,l,a){var c=a(260),u=a(6583),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("lastIndexOf",function(m){return u.apply(f(this),arguments)})},3739:function(s,l,a){var c=a(260),u=a(2092).map,f=a(6707),h=c.aTypedArray,p=c.aTypedArrayConstructor,m=c.exportTypedArrayMethod;m("map",function(y){return u(h(this),y,arguments.length>1?arguments[1]:void 0,function(C,S){return new(p(f(C,C.constructor)))(S)})})},4483:function(s,l,a){var c=a(260),u=a(3671).right,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduceRight",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(s,l,a){var c=a(260),u=a(3671).left,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduce",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(s,l,a){var c=a(260),u=c.aTypedArray,f=c.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=u(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(s,l,a){var c=a(260),u=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),b=this.length,M=h(S),T=u(M.length),z=0;if(T+k>b)throw RangeError("Wrong length");for(;z<T;)this[k+z]=M[z++]},y)},678:function(s,l,a){var c=a(260),u=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 b=g.call(h(this),S,k),M=u(this,this.constructor),T=0,z=b.length,U=new(p(M))(z);z>T;)U[T]=b[T++];return U},y)},7462:function(s,l,a){var c=a(260),u=a(2092).some,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("some",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3824:function(s,l,a){var c=a(260),u=c.aTypedArray,f=c.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(u(this),m)})},5021:function(s,l,a){var c=a(260),u=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,b=f(y,k);return new(h(S,S.constructor))(S.buffer,S.byteOffset+b*S.BYTES_PER_ELEMENT,u((C===void 0?k:f(C,k))-b))})},2974:function(s,l,a){var c=a(7854),u=a(260),f=a(7293),h=c.Int8Array,p=u.aTypedArray,m=u.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(s,l,a){var c=a(260).exportTypedArrayMethod,u=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;u(function(){m.call({})})&&(m=function(){return g.call(this)});var y=p.toString!=m;c("toString",m,y)},2472:function(s,l,a){var c=a(9843);c("Uint8",function(u){return function(h,p,m){return u(this,h,p,m)}})},4747:function(s,l,a){var c=a(7854),u=a(8324),f=a(8533),h=a(8880);for(var p in u){var m=c[p],g=m&&m.prototype;if(g&&g.forEach!==f)try{h(g,"forEach",f)}catch{g.forEach=f}}},3948:function(s,l,a){var c=a(7854),u=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),g=p("toStringTag"),y=f.values;for(var C in u){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),u[C]){for(var b in f)if(k[b]!==f[b])try{h(k,b,f[b])}catch{k[b]=f[b]}}}}},1637:function(s,l,a){a(6992);var c=a(2109),u=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),b=a(648),M=a(9670),T=a(111),z=a(30),U=a(9114),j=a(8554),P=a(1246),L=a(5112),V=u("fetch"),W=u("Headers"),H=L("iterator"),F="URLSearchParams",$=F+"Iterator",G=y.set,D=y.getterFor(F),Q=y.getterFor($),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," "),B=4;try{return decodeURIComponent(R)}catch{for(;B;)R=R.replace(me(B--),ge);return R}},we=/[!'()~]|%20/g,Te={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(I){return Te[I]},A=function(I){return encodeURIComponent(I).replace(we,ve)},O=function(I,R){if(R)for(var B=R.split("&"),K=0,J,Y;K<B.length;)J=B[K++],J.length&&(Y=J.split("="),I.push({key:Ce(Y.shift()),value:Ce(Y.join("="))}))},w=function(I){this.entries.length=0,O(this.entries,I)},x=function(I,R){if(I<R)throw TypeError("Not enough arguments")},v=g(function(R,B){G(this,{type:$,iterator:j(D(R).entries),kind:B})},"Iterator",function(){var R=Q(this),B=R.kind,K=R.iterator.next(),J=K.value;return K.done||(K.value=B==="keys"?J.key:B==="values"?J.value:[J.key,J.value]),K}),E=function(){C(this,E,F);var R=arguments.length>0?arguments[0]:void 0,B=this,K=[],J,Y,Z,X,ne,fe,Se,Ne,Ve;if(G(B,{type:F,entries:K,updateURL:function(){},updateSearchParams:w}),R!==void 0)if(T(R))if(J=P(R),typeof J=="function")for(Y=J.call(R),Z=Y.next;!(X=Z.call(Y)).done;){if(ne=j(M(X.value)),fe=ne.next,(Se=fe.call(ne)).done||(Ne=fe.call(ne)).done||!fe.call(ne).done)throw TypeError("Expected sequence with length 2");K.push({key:Se.value+"",value:Ne.value+""})}else for(Ve in R)S(R,Ve)&&K.push({key:Ve,value:R[Ve]+""});else O(K,typeof R=="string"?R.charAt(0)==="?"?R.slice(1):R:R+"")},N=E.prototype;p(N,{append:function(R,B){x(arguments.length,2);var K=D(this);K.entries.push({key:R+"",value:B+""}),K.updateURL()},delete:function(I){x(arguments.length,1);for(var R=D(this),B=R.entries,K=I+"",J=0;J<B.length;)B[J].key===K?B.splice(J,1):J++;R.updateURL()},get:function(R){x(arguments.length,1);for(var B=D(this).entries,K=R+"",J=0;J<B.length;J++)if(B[J].key===K)return B[J].value;return null},getAll:function(R){x(arguments.length,1);for(var B=D(this).entries,K=R+"",J=[],Y=0;Y<B.length;Y++)B[Y].key===K&&J.push(B[Y].value);return J},has:function(R){x(arguments.length,1);for(var B=D(this).entries,K=R+"",J=0;J<B.length;)if(B[J++].key===K)return!0;return!1},set:function(R,B){x(arguments.length,1);for(var K=D(this),J=K.entries,Y=!1,Z=R+"",X=B+"",ne=0,fe;ne<J.length;ne++)fe=J[ne],fe.key===Z&&(Y?J.splice(ne--,1):(Y=!0,fe.value=X));Y||J.push({key:Z,value:X}),K.updateURL()},sort:function(){var R=D(this),B=R.entries,K=B.slice(),J,Y,Z;for(B.length=0,Z=0;Z<K.length;Z++){for(J=K[Z],Y=0;Y<Z;Y++)if(B[Y].key>J.key){B.splice(Y,0,J);break}Y===Z&&B.push(J)}R.updateURL()},forEach:function(R){for(var B=D(this).entries,K=k(R,arguments.length>1?arguments[1]:void 0,3),J=0,Y;J<B.length;)Y=B[J++],K(Y.value,Y.key,this)},keys:function(){return new v(this,"keys")},values:function(){return new v(this,"values")},entries:function(){return new v(this,"entries")}},{enumerable:!0}),h(N,H,N.entries),h(N,"toString",function(){for(var R=D(this).entries,B=[],K=0,J;K<R.length;)J=R[K++],B.push(A(J.key)+"="+A(J.value));return B.join("&")},{enumerable:!0}),m(E,F),c({global:!0,forced:!f},{URLSearchParams:E}),!f&&typeof V=="function"&&typeof W=="function"&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(R){var B=[R],K,J,Y;return arguments.length>1&&(K=arguments[1],T(K)&&(J=K.body,b(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=z(K,{body:U(0,String(J)),headers:U(0,Y)}))),B.push(K)),V.apply(this,B)}}),s.exports={URLSearchParams:E,getState:D}},285:function(s,l,a){a(8783);var c=a(2109),u=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,b=a(3197),M=a(8003),T=a(1637),z=a(9909),U=h.URL,j=T.URLSearchParams,P=T.getState,L=z.set,V=z.getterFor("URL"),W=Math.floor,H=Math.pow,F="Invalid authority",$="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 #/:?@[\\]]/,A=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,O=/[\t\u000A\u000D]/g,w,x=function(_,re){var ee,oe,le;if(re.charAt(0)=="["){if(re.charAt(re.length-1)!="]"||(ee=E(re.slice(1,-1)),!ee))return G;_.host=ee}else if(X(_)){if(re=b(re),Te.test(re)||(ee=v(re),ee===null))return G;_.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);_.host=ee}},v=function(_){var re=_.split("."),ee,oe,le,Me,Ee,Pe,Ue;if(re.length&&re[re.length-1]==""&&re.pop(),ee=re.length,ee>4)return _;for(oe=[],le=0;le<ee;le++){if(Me=re[le],Me=="")return _;if(Ee=10,Me.length>1&&Me.charAt(0)=="0"&&(Ee=me.test(Me)?16:8,Me=Me.slice(Ee==8?1:2)),Me==="")Pe=0;else{if(!(Ee==10?Ce:Ee==8?ge:we).test(Me))return _;Pe=parseInt(Me,Ee)}oe.push(Pe)}for(le=0;le<ee;le++)if(Pe=oe[le],le==ee-1){if(Pe>=H(256,5-ee))return null}else if(Pe>255)return null;for(Ue=oe.pop(),le=0;le<oe.length;le++)Ue+=oe[le]*H(256,3-le);return Ue},E=function(_){var re=[0,0,0,0,0,0,0,0],ee=0,oe=null,le=0,Me,Ee,Pe,Ue,Ke,zt,se,Xe=function(){return _.charAt(le)};if(Xe()==":"){if(_.charAt(1)!=":")return;le+=2,ee++,oe=ee}for(;Xe();){if(ee==8)return;if(Xe()==":"){if(oe!==null)return;le++,ee++,oe=ee;continue}for(Me=Ee=0;Ee<4&&we.test(Xe());)Me=Me*16+parseInt(Xe(),16),le++,Ee++;if(Xe()=="."){if(Ee==0||(le-=Ee,ee>6))return;for(Pe=0;Xe();){if(Ue=null,Pe>0)if(Xe()=="."&&Pe<4)le++;else return;if(!ce.test(Xe()))return;for(;ce.test(Xe());){if(Ke=parseInt(Xe(),10),Ue===null)Ue=Ke;else{if(Ue==0)return;Ue=Ue*10+Ke}if(Ue>255)return;le++}re[ee]=re[ee]*256+Ue,Pe++,(Pe==2||Pe==4)&&ee++}if(Pe!=4)return;break}else if(Xe()==":"){if(le++,!Xe())return}else if(Xe())return;re[ee++]=Me}if(oe!==null)for(zt=ee-oe,ee=7;ee!=0&&zt>0;)se=re[ee],re[ee--]=re[oe+zt-1],re[oe+--zt]=se;else if(ee!=8)return;return re},N=function(_){for(var re=null,ee=1,oe=null,le=0,Me=0;Me<8;Me++)_[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(_){var re,ee,oe,le;if(typeof _=="number"){for(re=[],ee=0;ee<4;ee++)re.unshift(_%256),_=W(_/256);return re.join(".")}else if(typeof _=="object"){for(re="",oe=N(_),ee=0;ee<8;ee++)le&&_[ee]===0||(le&&(le=!1),oe===ee?(re+=ee?":":"::",le=!0):(re+=_[ee].toString(16),ee<7&&(re+=":")));return"["+re+"]"}return _},R={},B=C({},R,{" ":1,'"':1,"<":1,">":1,"`":1}),K=C({},B,{"#":1,"?":1,"{":1,"}":1}),J=C({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(_,re){var ee=k(_,0);return ee>32&&ee<127&&!y(re,_)?_:encodeURIComponent(_)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(_){return y(Z,_.scheme)},ne=function(_){return _.username!=""||_.password!=""},fe=function(_){return!_.host||_.cannotBeABaseURL||_.scheme=="file"},Se=function(_,re){var ee;return _.length==2&&Q.test(_.charAt(0))&&((ee=_.charAt(1))==":"||!re&&ee=="|")},Ne=function(_){var re;return _.length>1&&Se(_.slice(0,2))&&(_.length==2||(re=_.charAt(2))==="/"||re==="\\"||re==="?"||re==="#")},Ve=function(_){var re=_.path,ee=re.length;ee&&(_.scheme!="file"||ee!=1||!Se(re[0],!0))&&re.pop()},Fe=function(_){return _==="."||_.toLowerCase()==="%2e"},De=function(_){return _=_.toLowerCase(),_===".."||_==="%2e."||_===".%2e"||_==="%2e%2e"},Ge={},Ct={},st={},Gn={},q={},ue={},de={},Ae={},Oe={},He={},je={},mt={},gt={},nt={},ln={},Jn={},Ot={},Pt={},fo={},Ft={},Cn={},cn=function(_,re,ee,oe){var le=ee||Ge,Me=0,Ee="",Pe=!1,Ue=!1,Ke=!1,zt,se,Xe,Sn;for(ee||(_.scheme="",_.username="",_.password="",_.host=null,_.port=null,_.path=[],_.query=null,_.fragment=null,_.cannotBeABaseURL=!1,re=re.replace(A,"")),re=re.replace(O,""),zt=S(re);Me<=zt.length;){switch(se=zt[Me],le){case Ge:if(se&&Q.test(se))Ee+=se.toLowerCase(),le=Ct;else{if(ee)return $;le=st;continue}break;case Ct:if(se&&(te.test(se)||se=="+"||se=="-"||se=="."))Ee+=se.toLowerCase();else if(se==":"){if(ee&&(X(_)!=y(Z,Ee)||Ee=="file"&&(ne(_)||_.port!==null)||_.scheme=="file"&&!_.host))return;if(_.scheme=Ee,ee){X(_)&&Z[_.scheme]==_.port&&(_.port=null);return}Ee="",_.scheme=="file"?le=nt:X(_)&&oe&&oe.scheme==_.scheme?le=Gn:X(_)?le=Ae:zt[Me+1]=="/"?(le=q,Me++):(_.cannotBeABaseURL=!0,_.path.push(""),le=fo)}else{if(ee)return $;Ee="",le=st,Me=0;continue}break;case st:if(!oe||oe.cannotBeABaseURL&&se!="#")return $;if(oe.cannotBeABaseURL&&se=="#"){_.scheme=oe.scheme,_.path=oe.path.slice(),_.query=oe.query,_.fragment="",_.cannotBeABaseURL=!0,le=Cn;break}le=oe.scheme=="file"?nt:ue;continue;case Gn:if(se=="/"&&zt[Me+1]=="/")le=Oe,Me++;else{le=ue;continue}break;case q:if(se=="/"){le=He;break}else{le=Pt;continue}case ue:if(_.scheme=oe.scheme,se==w)_.username=oe.username,_.password=oe.password,_.host=oe.host,_.port=oe.port,_.path=oe.path.slice(),_.query=oe.query;else if(se=="/"||se=="\\"&&X(_))le=de;else if(se=="?")_.username=oe.username,_.password=oe.password,_.host=oe.host,_.port=oe.port,_.path=oe.path.slice(),_.query="",le=Ft;else if(se=="#")_.username=oe.username,_.password=oe.password,_.host=oe.host,_.port=oe.port,_.path=oe.path.slice(),_.query=oe.query,_.fragment="",le=Cn;else{_.username=oe.username,_.password=oe.password,_.host=oe.host,_.port=oe.port,_.path=oe.path.slice(),_.path.pop(),le=Pt;continue}break;case de:if(X(_)&&(se=="/"||se=="\\"))le=Oe;else if(se=="/")le=He;else{_.username=oe.username,_.password=oe.password,_.host=oe.host,_.port=oe.port,le=Pt;continue}break;case Ae:if(le=Oe,se!="/"||Ee.charAt(Me+1)!="/")continue;Me++;break;case Oe:if(se!="/"&&se!="\\"){le=He;continue}break;case He:if(se=="@"){Pe&&(Ee="%40"+Ee),Pe=!0,Xe=S(Ee);for(var Wc=0;Wc<Xe.length;Wc++){var Xm=Xe[Wc];if(Xm==":"&&!Ke){Ke=!0;continue}var Qm=Y(Xm,J);Ke?_.password+=Qm:_.username+=Qm}Ee=""}else if(se==w||se=="/"||se=="?"||se=="#"||se=="\\"&&X(_)){if(Pe&&Ee=="")return F;Me-=S(Ee).length+1,Ee="",le=je}else Ee+=se;break;case je:case mt:if(ee&&_.scheme=="file"){le=Jn;continue}else if(se==":"&&!Ue){if(Ee=="")return G;if(Sn=x(_,Ee),Sn)return Sn;if(Ee="",le=gt,ee==mt)return}else if(se==w||se=="/"||se=="?"||se=="#"||se=="\\"&&X(_)){if(X(_)&&Ee=="")return G;if(ee&&Ee==""&&(ne(_)||_.port!==null))return;if(Sn=x(_,Ee),Sn)return Sn;if(Ee="",le=Ot,ee)return;continue}else se=="["?Ue=!0:se=="]"&&(Ue=!1),Ee+=se;break;case gt:if(ce.test(se))Ee+=se;else if(se==w||se=="/"||se=="?"||se=="#"||se=="\\"&&X(_)||ee){if(Ee!=""){var Kc=parseInt(Ee,10);if(Kc>65535)return D;_.port=X(_)&&Kc===Z[_.scheme]?null:Kc,Ee=""}if(ee)return;le=Ot;continue}else return D;break;case nt:if(_.scheme="file",se=="/"||se=="\\")le=ln;else if(oe&&oe.scheme=="file")if(se==w)_.host=oe.host,_.path=oe.path.slice(),_.query=oe.query;else if(se=="?")_.host=oe.host,_.path=oe.path.slice(),_.query="",le=Ft;else if(se=="#")_.host=oe.host,_.path=oe.path.slice(),_.query=oe.query,_.fragment="",le=Cn;else{Ne(zt.slice(Me).join(""))||(_.host=oe.host,_.path=oe.path.slice(),Ve(_)),le=Pt;continue}else{le=Pt;continue}break;case ln:if(se=="/"||se=="\\"){le=Jn;break}oe&&oe.scheme=="file"&&!Ne(zt.slice(Me).join(""))&&(Se(oe.path[0],!0)?_.path.push(oe.path[0]):_.host=oe.host),le=Pt;continue;case Jn:if(se==w||se=="/"||se=="\\"||se=="?"||se=="#"){if(!ee&&Se(Ee))le=Pt;else if(Ee==""){if(_.host="",ee)return;le=Ot}else{if(Sn=x(_,Ee),Sn)return Sn;if(_.host=="localhost"&&(_.host=""),ee)return;Ee="",le=Ot}continue}else Ee+=se;break;case Ot:if(X(_)){if(le=Pt,se!="/"&&se!="\\")continue}else if(!ee&&se=="?")_.query="",le=Ft;else if(!ee&&se=="#")_.fragment="",le=Cn;else if(se!=w&&(le=Pt,se!="/"))continue;break;case Pt:if(se==w||se=="/"||se=="\\"&&X(_)||!ee&&(se=="?"||se=="#")){if(De(Ee)?(Ve(_),se!="/"&&!(se=="\\"&&X(_))&&_.path.push("")):Fe(Ee)?se!="/"&&!(se=="\\"&&X(_))&&_.path.push(""):(_.scheme=="file"&&!_.path.length&&Se(Ee)&&(_.host&&(_.host=""),Ee=Ee.charAt(0)+":"),_.path.push(Ee)),Ee="",_.scheme=="file"&&(se==w||se=="?"||se=="#"))for(;_.path.length>1&&_.path[0]==="";)_.path.shift();se=="?"?(_.query="",le=Ft):se=="#"&&(_.fragment="",le=Cn)}else Ee+=Y(se,K);break;case fo:se=="?"?(_.query="",le=Ft):se=="#"?(_.fragment="",le=Cn):se!=w&&(_.path[0]+=Y(se,R));break;case Ft:!ee&&se=="#"?(_.fragment="",le=Cn):se!=w&&(se=="'"&&X(_)?_.query+="%27":se=="#"?_.query+="%23":_.query+=Y(se,R));break;case Cn:se!=w&&(_.fragment+=Y(se,B));break}Me++}},wr=function(re){var ee=g(this,wr,"URL"),oe=arguments.length>1?arguments[1]:void 0,le=String(re),Me=L(ee,{type:"URL"}),Ee,Pe;if(oe!==void 0){if(oe instanceof wr)Ee=V(oe);else if(Pe=cn(Ee={},String(oe)),Pe)throw TypeError(Pe)}if(Pe=cn(Me,le,null,Ee),Pe)throw TypeError(Pe);var Ue=Me.searchParams=new j,Ke=P(Ue);Ke.updateSearchParams(Me.query),Ke.updateURL=function(){Me.query=String(Ue)||null},u||(ee.href=la.call(ee),ee.origin=Pm.call(ee),ee.protocol=Fm.call(ee),ee.username=Vm.call(ee),ee.password=zm.call(ee),ee.host=Hm.call(ee),ee.hostname=Um.call(ee),ee.port=jm.call(ee),ee.pathname=Wm.call(ee),ee.search=Km.call(ee),ee.searchParams=Ym.call(ee),ee.hash=Gm.call(ee))},jc=wr.prototype,la=function(){var _=V(this),re=_.scheme,ee=_.username,oe=_.password,le=_.host,Me=_.port,Ee=_.path,Pe=_.query,Ue=_.fragment,Ke=re+":";return le!==null?(Ke+="//",ne(_)&&(Ke+=ee+(oe?":"+oe:"")+"@"),Ke+=I(le),Me!==null&&(Ke+=":"+Me)):re=="file"&&(Ke+="//"),Ke+=_.cannotBeABaseURL?Ee[0]:Ee.length?"/"+Ee.join("/"):"",Pe!==null&&(Ke+="?"+Pe),Ue!==null&&(Ke+="#"+Ue),Ke},Pm=function(){var _=V(this),re=_.scheme,ee=_.port;if(re=="blob")try{return new URL(re.path[0]).origin}catch{return"null"}return re=="file"||!X(_)?"null":re+"://"+I(_.host)+(ee!==null?":"+ee:"")},Fm=function(){return V(this).scheme+":"},Vm=function(){return V(this).username},zm=function(){return V(this).password},Hm=function(){var _=V(this),re=_.host,ee=_.port;return re===null?"":ee===null?I(re):I(re)+":"+ee},Um=function(){var _=V(this).host;return _===null?"":I(_)},jm=function(){var _=V(this).port;return _===null?"":String(_)},Wm=function(){var _=V(this),re=_.path;return _.cannotBeABaseURL?re[0]:re.length?"/"+re.join("/"):""},Km=function(){var _=V(this).query;return _?"?"+_:""},Ym=function(){return V(this).searchParams},Gm=function(){var _=V(this).fragment;return _?"#"+_:""},Vt=function(_,re){return{get:_,set:re,configurable:!0,enumerable:!0}};if(u&&p(jc,{href:Vt(la,function(_){var re=V(this),ee=String(_),oe=cn(re,ee);if(oe)throw TypeError(oe);P(re.searchParams).updateSearchParams(re.query)}),origin:Vt(Pm),protocol:Vt(Fm,function(_){var re=V(this);cn(re,String(_)+":",Ge)}),username:Vt(Vm,function(_){var re=V(this),ee=S(String(_));if(!fe(re)){re.username="";for(var oe=0;oe<ee.length;oe++)re.username+=Y(ee[oe],J)}}),password:Vt(zm,function(_){var re=V(this),ee=S(String(_));if(!fe(re)){re.password="";for(var oe=0;oe<ee.length;oe++)re.password+=Y(ee[oe],J)}}),host:Vt(Hm,function(_){var re=V(this);re.cannotBeABaseURL||cn(re,String(_),je)}),hostname:Vt(Um,function(_){var re=V(this);re.cannotBeABaseURL||cn(re,String(_),mt)}),port:Vt(jm,function(_){var re=V(this);fe(re)||(_=String(_),_==""?re.port=null:cn(re,_,gt))}),pathname:Vt(Wm,function(_){var re=V(this);re.cannotBeABaseURL||(re.path=[],cn(re,_+"",Ot))}),search:Vt(Km,function(_){var re=V(this);_=String(_),_==""?re.query=null:(_.charAt(0)=="?"&&(_=_.slice(1)),re.query="",cn(re,_,Ft)),P(re.searchParams).updateSearchParams(re.query)}),searchParams:Vt(Ym),hash:Vt(Gm,function(_){var re=V(this);if(_=String(_),_==""){re.fragment=null;return}_.charAt(0)=="#"&&(_=_.slice(1)),re.fragment="",cn(re,_,Cn)})}),m(jc,"toJSON",function(){return la.call(this)},{enumerable:!0}),m(jc,"toString",function(){return la.call(this)},{enumerable:!0}),U){var Jm=U.createObjectURL,Zm=U.revokeObjectURL;Jm&&m(wr,"createObjectURL",function(re){return Jm.apply(U,arguments)}),Zm&&m(wr,"revokeObjectURL",function(re){return Zm.apply(U,arguments)})}M(wr,"URL"),c({global:!0,forced:!f,sham:!u},{URL:wr})}},r={};function o(s){if(r[s])return r[s].exports;var l=r[s]={exports:{}};return t[s](l,l.exports,o),l.exports}(function(){o.d=function(s,l){for(var a in l)o.o(l,a)&&!o.o(s,a)&&Object.defineProperty(s,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(s,l){return Object.prototype.hasOwnProperty.call(s,l)}}(),function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var i={};return function(){o.r(i),o.d(i,{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 s(A,O){var w;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(w=l(A))||O&&A&&typeof A.length=="number"){w&&(A=w);var x=0,v=function(){};return{s:v,n:function(){return x>=A.length?{done:!0}:{done:!1,value:A[x++]}},e:function(B){throw B},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
7
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,
|
|
8
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,
|
|
9
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,N=!1,I;return{s:function(){w=A[Symbol.iterator]()},n:function(){var B=w.next();return E=B.done,B},e:function(B){N=!0,I=B},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(N)throw I}}}}function T(A,O){if(A){if(typeof A=="string")return z(A,O);var w=Object.prototype.toString.call(A).slice(8,-1);if(w==="Object"&&A.constructor&&(w=A.constructor.name),w==="Map"||w==="Set")return Array.from(A);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return z(A,O)}}function z(A,O){(O==null||O>A.length)&&(O=A.length);for(var w=0,x=new Array(O);w<O;w++)x[w]=A[w];return x}function U(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}function j(A,O){for(var w=0;w<O.length;w++){var x=O[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}function P(A,O,w){return O&&j(A.prototype,O),w&&j(A,w),A}function L(A,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(O&&O.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),O&&V(A,O)}function V(A,O){return V=Object.setPrototypeOf||function(x,v){return x.__proto__=v,x},V(A,O)}function W(A){var O=$();return function(){var x=G(A),v;if(O){var E=G(this).constructor;v=Reflect.construct(x,arguments,E)}else v=x.apply(this,arguments);return H(this,v)}}function H(A,O){return O&&(b(O)==="object"||typeof O=="function")?O:F(A)}function F(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function $(){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(A){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},G(A)}var D=function(A){L(w,A);var O=W(w);function w(x,v){var E;U(this,w),E=O.call(this);var N,I;if(E.element=x,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,v??{}),E.options.previewTemplate=E.options.previewTemplate.replace(/\n*/g,""),E.options.forceFallback||!w.isBrowserSupported())return H(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(B){return E.options.renameFilename.call(F(E),B.name,B)}),typeof E.options.method=="string"&&(E.options.method=E.options.method.toUpperCase()),(N=E.getExistingFallback())&&N.parentNode&&N.parentNode.removeChild(N),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 P(w,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(v){return v.accepted}).map(function(v){return v})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(v){return!v.accepted}).map(function(v){return v})}},{key:"getFilesWithStatus",value:function(v){return this.files.filter(function(E){return E.status===v}).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(v){return v.status===w.UPLOADING||v.status===w.QUEUED}).map(function(v){return v})}},{key:"init",value:function(){var v=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(){v.hiddenFileInput&&v.hiddenFileInput.parentNode.removeChild(v.hiddenFileInput),v.hiddenFileInput=document.createElement("input"),v.hiddenFileInput.setAttribute("type","file"),(v.options.maxFiles===null||v.options.maxFiles>1)&&v.hiddenFileInput.setAttribute("multiple","multiple"),v.hiddenFileInput.className="dz-hidden-input",v.options.acceptedFiles!==null&&v.hiddenFileInput.setAttribute("accept",v.options.acceptedFiles),v.options.capture!==null&&v.hiddenFileInput.setAttribute("capture",v.options.capture),v.hiddenFileInput.setAttribute("tabindex","-1"),v.hiddenFileInput.style.visibility="hidden",v.hiddenFileInput.style.position="absolute",v.hiddenFileInput.style.top="0",v.hiddenFileInput.style.left="0",v.hiddenFileInput.style.height="0",v.hiddenFileInput.style.width="0",w.getElement(v.options.hiddenInputContainer,"hiddenInputContainer").appendChild(v.hiddenFileInput),v.hiddenFileInput.addEventListener("change",function(){var Y=v.hiddenFileInput.files;if(Y.length){var Z=M(Y,!0),X;try{for(Z.s();!(X=Z.n()).done;){var ne=X.value;v.addFile(ne)}}catch(fe){Z.e(fe)}finally{Z.f()}}v.emit("addedfiles",Y),J()})};E()}this.URL=window.URL!==null?window.URL:window.webkitURL;var N=M(this.events,!0),I;try{for(N.s();!(I=N.n()).done;){var R=I.value;this.on(R,this.options[R])}}catch(J){N.e(J)}finally{N.f()}this.on("uploadprogress",function(){return v.updateTotalUploadProgress()}),this.on("removedfile",function(){return v.updateTotalUploadProgress()}),this.on("canceled",function(J){return v.emit("complete",J)}),this.on("complete",function(J){if(v.getAddedFiles().length===0&&v.getUploadingFiles().length===0&&v.getQueuedFiles().length===0)return setTimeout(function(){return v.emit("queuecomplete")},0)});var B=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(B(Y))return Y.stopPropagation(),Y.preventDefault?Y.preventDefault():Y.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Y){return v.emit("dragstart",Y)},dragenter:function(Y){return K(Y),v.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),v.emit("dragover",Y)},dragleave:function(Y){return v.emit("dragleave",Y)},drop:function(Y){return K(Y),v.drop(Y)},dragend:function(Y){return v.emit("dragend",Y)}}}],this.clickableElements.forEach(function(J){return v.listeners.push({element:J,events:{click:function(Z){return(J!==v.element||Z.target===v.element||w.elementInside(Z.target,v.element.querySelector(".dz-message")))&&v.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 v,E=0,N=0,I=this.getActiveFiles();if(I.length){var R=M(this.getActiveFiles(),!0),B;try{for(R.s();!(B=R.n()).done;){var K=B.value;E+=K.upload.bytesSent,N+=K.upload.total}}catch(J){R.e(J)}finally{R.f()}v=100*E/N}else v=100;return this.emit("totaluploadprogress",v,N,E)}},{key:"_getParamName",value:function(v){return typeof this.options.paramName=="function"?this.options.paramName(v):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(v,"]"):"")}},{key:"_renameFile",value:function(v){return typeof this.options.renameFile!="function"?v.name:this.options.renameFile(v)}},{key:"getFallbackForm",value:function(){var v,E;if(v=this.getExistingFallback())return v;var N='<div class="dz-fallback">';this.options.dictFallbackText&&(N+="<p>".concat(this.options.dictFallbackText,"</p>")),N+='<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(N);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 v=function(K){var J=M(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,N=["div","form"];E<N.length;E++){var I=N[E],R;if(R=v(this.element.getElementsByTagName(I)))return R}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(v){return function(){var E=[];for(var N in v.events){var I=v.events[N];E.push(v.element.addEventListener(N,I,!1))}return E}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(v){return function(){var E=[];for(var N in v.events){var I=v.events[N];E.push(v.element.removeEventListener(N,I,!1))}return E}()})}},{key:"disable",value:function(){var v=this;return this.clickableElements.forEach(function(E){return E.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(E){return v.cancelUpload(E)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(v){return v.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(v){var E=0,N="b";if(v>0){for(var I=["tb","gb","mb","kb","b"],R=0;R<I.length;R++){var B=I[R],K=Math.pow(this.options.filesizeBase,4-R)/10;if(v>=K){E=v/Math.pow(this.options.filesizeBase,4-R),N=B;break}}E=Math.round(10*E)/10}return"<strong>".concat(E,"</strong> ").concat(this.options.dictFileSizeUnits[N])}},{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(v){if(v.dataTransfer){this.emit("drop",v);for(var E=[],N=0;N<v.dataTransfer.files.length;N++)E[N]=v.dataTransfer.files[N];if(E.length){var I=v.dataTransfer.items;I&&I.length&&I[0].webkitGetAsEntry!=null?this._addFilesFromItems(I):this.handleFiles(E)}this.emit("addedfiles",E)}}},{key:"paste",value:function(v){if(we(v!=null?v.clipboardData:void 0,function(N){return N.items})!=null){this.emit("paste",v);var E=v.clipboardData.items;if(E.length)return this._addFilesFromItems(E)}}},{key:"handleFiles",value:function(v){var E=M(v,!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value;this.addFile(I)}}catch(R){E.e(R)}finally{E.f()}}},{key:"_addFilesFromItems",value:function(v){var E=this;return function(){var N=[],I=M(v,!0),R;try{for(I.s();!(R=I.n()).done;){var B=R.value,K;B.webkitGetAsEntry!=null&&(K=B.webkitGetAsEntry())?K.isFile?N.push(E.addFile(B.getAsFile())):K.isDirectory?N.push(E._addFilesFromDirectory(K,K.name)):N.push(void 0):B.getAsFile!=null&&(B.kind==null||B.kind==="file")?N.push(E.addFile(B.getAsFile())):N.push(void 0)}}catch(J){I.e(J)}finally{I.f()}return N}()}},{key:"_addFilesFromDirectory",value:function(v,E){var N=this,I=v.createReader(),R=function(J){return Te(console,"log",function(Y){return Y.log(J)})},B=function K(){return I.readEntries(function(J){if(J.length>0){var Y=M(J,!0),Z;try{for(Y.s();!(Z=Y.n()).done;){var X=Z.value;X.isFile?X.file(function(ne){if(!(N.options.ignoreHiddenFiles&&ne.name.substring(0,1)==="."))return ne.fullPath="".concat(E,"/").concat(ne.name),N.addFile(ne)}):X.isDirectory&&N._addFilesFromDirectory(X,"".concat(E,"/").concat(X.name))}}catch(ne){Y.e(ne)}finally{Y.f()}K()}return null},R)};return B()}},{key:"accept",value:function(v,E){this.options.maxFilesize&&v.size>this.options.maxFilesize*1024*1024?E(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(v.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):w.isValidFile(v,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",v)):this.options.accept.call(this,v,E):E(this.options.dictInvalidFileType)}},{key:"addFile",value:function(v){var E=this;v.upload={uuid:w.uuidv4(),progress:0,total:v.size,bytesSent:0,filename:this._renameFile(v)},this.files.push(v),v.status=w.ADDED,this.emit("addedfile",v),this._enqueueThumbnail(v),this.accept(v,function(N){N?(v.accepted=!1,E._errorProcessing([v],N)):(v.accepted=!0,E.options.autoQueue&&E.enqueueFile(v)),E._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(v){var E=M(v,!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value;this.enqueueFile(I)}}catch(R){E.e(R)}finally{E.f()}return null}},{key:"enqueueFile",value:function(v){var E=this;if(v.status===w.ADDED&&v.accepted===!0){if(v.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(v){var E=this;if(this.options.createImageThumbnails&&v.type.match(/image.*/)&&v.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(v),setTimeout(function(){return E._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var v=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(N){return v.emit("thumbnail",E,N),v._processingThumbnail=!1,v._processThumbnailQueue()})}}},{key:"removeFile",value:function(v){if(v.status===w.UPLOADING&&this.cancelUpload(v),this.files=Q(this.files,v),this.emit("removedfile",v),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(v){v==null&&(v=!1);var E=M(this.files.slice(),!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value;(I.status!==w.UPLOADING||v)&&this.removeFile(I)}}catch(R){E.e(R)}finally{E.f()}return null}},{key:"resizeImage",value:function(v,E,N,I,R){var B=this;return this.createThumbnail(v,E,N,I,!0,function(K,J){if(J==null)return R(v);var Y=B.options.resizeMimeType;Y==null&&(Y=v.type);var Z=J.toDataURL(Y,B.options.resizeQuality);return(Y==="image/jpeg"||Y==="image/jpg")&&(Z=ge.restore(v.dataURL,Z)),R(w.dataURItoBlob(Z))})}},{key:"createThumbnail",value:function(v,E,N,I,R,B){var K=this,J=new FileReader;J.onload=function(){if(v.dataURL=J.result,v.type==="image/svg+xml"){B!=null&&B(J.result);return}K.createThumbnailFromUrl(v,E,N,I,R,B)},J.readAsDataURL(v)}},{key:"displayExistingFile",value:function(v,E,N,I){var R=this,B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",v),this.emit("complete",v),!B)this.emit("thumbnail",v,E),N&&N();else{var K=function(Y){R.emit("thumbnail",v,Y),N&&N()};v.dataURL=E,this.createThumbnailFromUrl(v,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,K,I)}}},{key:"createThumbnailFromUrl",value:function(v,E,N,I,R,B,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){v.width=Y.width,v.height=Y.height;var ne=J.options.resize.call(J,v,E,N,I),fe=document.createElement("canvas"),Se=fe.getContext("2d");switch(fe.width=ne.trgWidth,fe.height=ne.trgHeight,X>4&&(fe.width=ne.trgHeight,fe.height=ne.trgWidth),X){case 2:Se.translate(fe.width,0),Se.scale(-1,1);break;case 3:Se.translate(fe.width,fe.height),Se.rotate(Math.PI);break;case 4:Se.translate(0,fe.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,-fe.width);break;case 7:Se.rotate(.5*Math.PI),Se.translate(fe.height,-fe.width),Se.scale(-1,1);break;case 8:Se.rotate(-.5*Math.PI),Se.translate(-fe.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 Ne=fe.toDataURL("image/png");if(B!=null)return B(Ne,fe)})},B!=null&&(Y.onerror=B),Y.src=v.dataURL}},{key:"processQueue",value:function(){var v=this.options.parallelUploads,E=this.getUploadingFiles().length,N=E;if(!(E>=v)){var I=this.getQueuedFiles();if(I.length>0){if(this.options.uploadMultiple)return this.processFiles(I.slice(0,v-E));for(;N<v;){if(!I.length)return;this.processFile(I.shift()),N++}}}}},{key:"processFile",value:function(v){return this.processFiles([v])}},{key:"processFiles",value:function(v){var E=M(v,!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.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",v),this.uploadFiles(v)}},{key:"_getFilesWithXhr",value:function(v){return this.files.filter(function(E){return E.xhr===v}).map(function(E){return E})}},{key:"cancelUpload",value:function(v){if(v.status===w.UPLOADING){var E=this._getFilesWithXhr(v.xhr),N=M(E,!0),I;try{for(N.s();!(I=N.n()).done;){var R=I.value;R.status=w.CANCELED}}catch(Y){N.e(Y)}finally{N.f()}typeof v.xhr<"u"&&v.xhr.abort();var B=M(E,!0),K;try{for(B.s();!(K=B.n()).done;){var J=K.value;this.emit("canceled",J)}}catch(Y){B.e(Y)}finally{B.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",E)}else(v.status===w.ADDED||v.status===w.QUEUED)&&(v.status=w.CANCELED,this.emit("canceled",v),this.options.uploadMultiple&&this.emit("canceledmultiple",[v]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(v){if(typeof v=="function"){for(var E=arguments.length,N=new Array(E>1?E-1:0),I=1;I<E;I++)N[I-1]=arguments[I];return v.apply(this,N)}return v}},{key:"uploadFile",value:function(v){return this.uploadFiles([v])}},{key:"uploadFiles",value:function(v){var E=this;this._transformFiles(v,function(N){if(E.options.chunking){var I=N[0];v[0].upload.chunked=E.options.chunking&&(E.options.forceChunking||I.size>E.options.chunkSize),v[0].upload.totalChunkCount=Math.ceil(I.size/E.options.chunkSize)}if(v[0].upload.chunked){var R=v[0],B=N[0];R.upload.chunks=[];var K=function(){for(var ne=0;R.upload.chunks[ne]!==void 0;)ne++;if(!(ne>=R.upload.totalChunkCount)){var fe=ne*E.options.chunkSize,Se=Math.min(fe+E.options.chunkSize,B.size),Ne={name:E._getParamName(0),data:B.webkitSlice?B.webkitSlice(fe,Se):B.slice(fe,Se),filename:R.upload.filename,chunkIndex:ne};R.upload.chunks[ne]={file:R,index:ne,dataBlock:Ne,status:w.UPLOADING,progress:0,retries:0},E._uploadData(v,[Ne])}};if(R.upload.finishedChunkUpload=function(X,ne){var fe=!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&&(fe=!1)}fe&&E.options.chunksUploaded(R,function(){E._finished(v,ne,null)})},E.options.parallelChunkUploads)for(var J=0;J<R.upload.totalChunkCount;J++)K();else K()}else{for(var Y=[],Z=0;Z<v.length;Z++)Y[Z]={name:E._getParamName(Z),data:N[Z],filename:v[Z].upload.filename};E._uploadData(v,Y)}})}},{key:"_getChunk",value:function(v,E){for(var N=0;N<v.upload.totalChunkCount;N++)if(v.upload.chunks[N]!==void 0&&v.upload.chunks[N].xhr===E)return v.upload.chunks[N]}},{key:"_uploadData",value:function(v,E){var N=this,I=new XMLHttpRequest,R=M(v,!0),B;try{for(R.s();!(B=R.n()).done;){var K=B.value;K.xhr=I}}catch(de){R.e(de)}finally{R.f()}v[0].upload.chunked&&(v[0].upload.chunks[E[0].chunkIndex].xhr=I);var J=this.resolveOption(this.options.method,v),Y=this.resolveOption(this.options.url,v);I.open(J,Y,!0);var Z=this.resolveOption(this.options.timeout,v);Z&&(I.timeout=this.resolveOption(this.options.timeout,v)),I.withCredentials=!!this.options.withCredentials,I.onload=function(de){N._finishedUploading(v,I,de)},I.ontimeout=function(){N._handleUploadError(v,I,"Request timedout after ".concat(N.options.timeout/1e3," seconds"))},I.onerror=function(){N._handleUploadError(v,I)};var X=I.upload!=null?I.upload:I;X.onprogress=function(de){return N._updateFilesUploadProgress(v,I,de)};var ne={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&w.extend(ne,this.options.headers);for(var fe in ne){var Se=ne[fe];Se&&I.setRequestHeader(fe,Se)}var Ne=new FormData;if(this.options.params){var Ve=this.options.params;typeof Ve=="function"&&(Ve=Ve.call(this,v,I,v[0].upload.chunked?this._getChunk(v[0],I):null));for(var Fe in Ve){var De=Ve[Fe];if(Array.isArray(De))for(var Ge=0;Ge<De.length;Ge++)Ne.append(Fe,De[Ge]);else Ne.append(Fe,De)}}var Ct=M(v,!0),st;try{for(Ct.s();!(st=Ct.n()).done;){var Gn=st.value;this.emit("sending",Gn,I,Ne)}}catch(de){Ct.e(de)}finally{Ct.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",v,I,Ne),this._addFormElementData(Ne);for(var q=0;q<E.length;q++){var ue=E[q];Ne.append(ue.name,ue.data,ue.filename)}this.submitRequest(I,Ne,v)}},{key:"_transformFiles",value:function(v,E){for(var N=this,I=[],R=0,B=function(Y){N.options.transformFile.call(N,v[Y],function(Z){I[Y]=Z,++R===v.length&&E(I)})},K=0;K<v.length;K++)B(K)}},{key:"_addFormElementData",value:function(v){if(this.element.tagName==="FORM"){var E=M(this.element.querySelectorAll("input, textarea, select, button"),!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value,R=I.getAttribute("name"),B=I.getAttribute("type");if(B&&(B=B.toLowerCase()),!(typeof R>"u"||R===null))if(I.tagName==="SELECT"&&I.hasAttribute("multiple")){var K=M(I.options,!0),J;try{for(K.s();!(J=K.n()).done;){var Y=J.value;Y.selected&&v.append(R,Y.value)}}catch(Z){K.e(Z)}finally{K.f()}}else(!B||B!=="checkbox"&&B!=="radio"||I.checked)&&v.append(R,I.value)}}catch(Z){E.e(Z)}finally{E.f()}}}},{key:"_updateFilesUploadProgress",value:function(v,E,N){if(v[0].upload.chunked){var K=v[0],J=this._getChunk(K,E);N?(J.progress=100*N.loaded/N.total,J.total=N.total,J.bytesSent=N.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=M(v,!0),R;try{for(I.s();!(R=I.n()).done;){var B=R.value;B.upload.total&&B.upload.bytesSent&&B.upload.bytesSent==B.upload.total||(N?(B.upload.progress=100*N.loaded/N.total,B.upload.total=N.total,B.upload.bytesSent=N.loaded):(B.upload.progress=100,B.upload.bytesSent=B.upload.total),this.emit("uploadprogress",B,B.upload.progress,B.upload.bytesSent))}}catch(Z){I.e(Z)}finally{I.f()}}}},{key:"_finishedUploading",value:function(v,E,N){var I;if(v[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){N=R,I="Invalid JSON response from server."}this._updateFilesUploadProgress(v,E),200<=E.status&&E.status<300?v[0].upload.chunked?v[0].upload.finishedChunkUpload(this._getChunk(v[0],E),I):this._finished(v,I,N):this._handleUploadError(v,E,I)}}},{key:"_handleUploadError",value:function(v,E,N){if(v[0].status!==w.CANCELED){if(v[0].upload.chunked&&this.options.retryChunks){var I=this._getChunk(v[0],E);if(I.retries++<this.options.retryChunksLimit){this._uploadData(v,[I.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(v,N||this.options.dictResponseError.replace("{{statusCode}}",E.status),E)}}},{key:"submitRequest",value:function(v,E,N){if(v.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}v.send(E)}},{key:"_finished",value:function(v,E,N){var I=M(v,!0),R;try{for(I.s();!(R=I.n()).done;){var B=R.value;B.status=w.SUCCESS,this.emit("success",B,E,N),this.emit("complete",B)}}catch(K){I.e(K)}finally{I.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",v,E,N),this.emit("completemultiple",v)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(v,E,N){var I=M(v,!0),R;try{for(I.s();!(R=I.n()).done;){var B=R.value;B.status=w.ERROR,this.emit("error",B,E,N),this.emit("complete",B)}}catch(K){I.e(K)}finally{I.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",v,E,N),this.emit("completemultiple",v)),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(v){for(var E=arguments.length,N=new Array(E>1?E-1:0),I=1;I<E;I++)N[I-1]=arguments[I];for(var R=0,B=N;R<B.length;R++){var K=B[R];for(var J in K){var Y=K[J];v[J]=Y}}return v}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(v){var E=Math.random()*16|0,N=v==="x"?E:E&3|8;return N.toString(16)})}}]),w}(h);D.initClass(),D.version="5.9.3",D.options={},D.optionsForElement=function(A){if(A.getAttribute("id"))return D.options[te(A.getAttribute("id"))]},D.instances=[],D.forElement=function(A){if(typeof A=="string"&&(A=document.querySelector(A)),(A!=null?A.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 A.dropzone},D.autoDiscover=!0,D.discover=function(){var A;if(document.querySelectorAll)A=document.querySelectorAll(".dropzone");else{A=[];var O=function(x){return function(){var v=[],E=M(x,!0),N;try{for(E.s();!(N=E.n()).done;){var I=N.value;/(^| )dropzone($| )/.test(I.className)?v.push(A.push(I)):v.push(void 0)}}catch(R){E.e(R)}finally{E.f()}return v}()};O(document.getElementsByTagName("div")),O(document.getElementsByTagName("form"))}return function(){var w=[],x=M(A,!0),v;try{for(x.s();!(v=x.n()).done;){var E=v.value;D.optionsForElement(E)!==!1?w.push(new D(E)):w.push(void 0)}}catch(N){x.e(N)}finally{x.f()}return w}()},D.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],D.isBrowserSupported=function(){var A=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))A=!1;else{D.blacklistedBrowsers!==void 0&&(D.blockedBrowsers=D.blacklistedBrowsers);var O=M(D.blockedBrowsers,!0),w;try{for(O.s();!(w=O.n()).done;){var x=w.value;if(x.test(navigator.userAgent)){A=!1;continue}}}catch(v){O.e(v)}finally{O.f()}}else A=!1;return A},D.dataURItoBlob=function(A){for(var O=atob(A.split(",")[1]),w=A.split(",")[0].split(":")[1].split(";")[0],x=new ArrayBuffer(O.length),v=new Uint8Array(x),E=0,N=O.length,I=0<=N;I?E<=N:E>=N;I?E++:E--)v[E]=O.charCodeAt(E);return new Blob([x],{type:w})};var Q=function(O,w){return O.filter(function(x){return x!==w}).map(function(x){return x})},te=function(O){return O.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};D.createElement=function(A){var O=document.createElement("div");return O.innerHTML=A,O.childNodes[0]},D.elementInside=function(A,O){if(A===O)return!0;for(;A=A.parentNode;)if(A===O)return!0;return!1},D.getElement=function(A,O){var w;if(typeof A=="string"?w=document.querySelector(A):A.nodeType!=null&&(w=A),w==null)throw new Error("Invalid `".concat(O,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},D.getElements=function(A,O){var w,x;if(A instanceof Array){x=[];try{var v=M(A,!0),E;try{for(v.s();!(E=v.n()).done;)w=E.value,x.push(this.getElement(w,O))}catch(R){v.e(R)}finally{v.f()}}catch{x=null}}else if(typeof A=="string"){x=[];var N=M(document.querySelectorAll(A),!0),I;try{for(N.s();!(I=N.n()).done;)w=I.value,x.push(w)}catch(R){N.e(R)}finally{N.f()}}else A.nodeType!=null&&(x=[A]);if(x==null||!x.length)throw new Error("Invalid `".concat(O,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return x},D.confirm=function(A,O,w){if(window.confirm(A))return O();if(w!=null)return w()},D.isValidFile=function(A,O){if(!O)return!0;O=O.split(",");var w=A.type,x=w.replace(/\/.*$/,""),v=M(O,!0),E;try{for(v.s();!(E=v.n()).done;){var N=E.value;if(N=N.trim(),N.charAt(0)==="."){if(A.name.toLowerCase().indexOf(N.toLowerCase(),A.name.length-N.length)!==-1)return!0}else if(/\/\*$/.test(N)){if(x===N.replace(/\/.*$/,""))return!0}else if(w===N)return!0}}catch(I){v.e(I)}finally{v.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(A){return this.each(function(){return new D(this,A)})}),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(O){O.naturalWidth;var w=O.naturalHeight,x=document.createElement("canvas");x.width=1,x.height=w;var v=x.getContext("2d");v.drawImage(O,0,0);for(var E=v.getImageData(1,0,1,w),N=E.data,I=0,R=w,B=w;B>I;){var K=N[(B-1)*4+3];K===0?R=B:I=B,B=R+I>>1}var J=B/w;return J===0?1:J},me=function(O,w,x,v,E,N,I,R,B,K){var J=ce(w);return O.drawImage(w,x,v,E,N,I,R,B,K/J)},ge=function(){function A(){U(this,A)}return P(A,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(w){for(var x="",v=void 0,E=void 0,N="",I=void 0,R=void 0,B=void 0,K="",J=0;v=w[J++],E=w[J++],N=w[J++],I=v>>2,R=(v&3)<<4|E>>4,B=(E&15)<<2|N>>6,K=N&63,isNaN(E)?B=K=64:isNaN(N)&&(K=64),x=x+this.KEY_STR.charAt(I)+this.KEY_STR.charAt(R)+this.KEY_STR.charAt(B)+this.KEY_STR.charAt(K),v=E=N="",I=R=B=K="",J<w.length;);return x}},{key:"restore",value:function(w,x){if(!w.match("data:image/jpeg;base64,"))return x;var v=this.decode64(w.replace("data:image/jpeg;base64,","")),E=this.slice2Segments(v),N=this.exifManipulation(x,E);return"data:image/jpeg;base64,".concat(this.encode64(N))}},{key:"exifManipulation",value:function(w,x){var v=this.getExifArray(x),E=this.insertExif(w,v),N=new Uint8Array(E);return N}},{key:"getExifArray",value:function(w){for(var x=void 0,v=0;v<w.length;){if(x=w[v],x[0]===255&x[1]===225)return x;v++}return[]}},{key:"insertExif",value:function(w,x){var v=w.replace("data:image/jpeg;base64,",""),E=this.decode64(v),N=E.indexOf(255,3),I=E.slice(0,N),R=E.slice(N),B=I;return B=B.concat(x),B=B.concat(R),B}},{key:"slice2Segments",value:function(w){for(var x=0,v=[];;){var E;if(w[x]===255&w[x+1]===218)break;if(w[x]===255&w[x+1]===216)x+=2;else{E=w[x+2]*256+w[x+3];var N=x+E+2,I=w.slice(x,N);v.push(I),x=N}if(x>w.length)break}return v}},{key:"decode64",value:function(w){var x=void 0,v=void 0,E="",N=void 0,I=void 0,R=void 0,B="",K=0,J=[],Y=/[^A-Za-z0-9\+\/\=]/g;for(Y.exec(w)&&console.warn(`There were invalid base64 characters in the input text.
|
|
4
|
+
C18.406,1.576,18.22,1.5,18.023,1.5H3.023z`})],-1)];function Mg(n,e){return d.openBlock(),d.createElementBlock("svg",xg,Og)}const ma=Le(Ag,[["render",Mg]]),Ng={},_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"},Ig=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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"}),d.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 Dg(n,e){return d.openBlock(),d.createElementBlock("svg",_g,Ig)}const si=Le(Ng,[["render",Dg]]),Lg={},Rg={class:"icon icon-info",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Bg=[d.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 $g(n,e){return d.openBlock(),d.createElementBlock("svg",Rg,Bg)}const Tr=Le(Lg,[["render",$g]]),Pg={},Fg={width:"12",height:"14",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-italic"},Vg=[d.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 zg(n,e){return d.openBlock(),d.createElementBlock("svg",Fg,Vg)}const ga=Le(Pg,[["render",zg]]),Hg={},Ug={class:"icon icon-list-view",width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jg=[d.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 Wg(n,e){return d.openBlock(),d.createElementBlock("svg",Ug,jg)}const iu=Le(Hg,[["render",Wg]]),Kg={},Yg={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},Gg=[d.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 Jg(n,e){return d.openBlock(),d.createElementBlock("svg",Yg,Gg)}const ai=Le(Kg,[["render",Jg]]),Zg={},Xg={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},Qg=[d.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 qg(n,e){return d.openBlock(),d.createElementBlock("svg",Xg,Qg)}const ya=Le(Zg,[["render",qg]]),e0={},t0={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},n0=[d.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 r0(n,e){return d.openBlock(),d.createElementBlock("svg",t0,n0)}const ho=Le(e0,[["render",r0]]),o0={},i0={class:"icon icon-service",viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg"},s0=[d.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 a0(n,e){return d.openBlock(),d.createElementBlock("svg",i0,s0)}const su=Le(o0,[["render",a0]]),l0={},c0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},u0=[d.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 d0(n,e){return d.openBlock(),d.createElementBlock("svg",c0,u0)}const au=Le(l0,[["render",d0]]),f0={},h0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},p0=[d.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 m0(n,e){return d.openBlock(),d.createElementBlock("svg",h0,p0)}const va=Le(f0,[["render",m0]]),g0={},y0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},v0=[d.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 b0(n,e){return d.openBlock(),d.createElementBlock("svg",y0,v0)}const ba=Le(g0,[["render",b0]]),E0={},C0={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},S0=[d.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 w0(n,e){return d.openBlock(),d.createElementBlock("svg",C0,S0)}const Ea=Le(E0,[["render",w0]]),k0={},T0={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},A0=[d.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 x0(n,e){return d.openBlock(),d.createElementBlock("svg",T0,A0)}const lu=Le(k0,[["render",x0]]),O0={},M0={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},N0=[d.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 d.openBlock(),d.createElementBlock("svg",M0,N0)}const Ca=Le(O0,[["render",_0]]),I0={},D0={xmlns:"http://www.w3.org/2000/svg",width:"23",height:"17",viewBox:"0 0 18 15",fill:"none"},L0=[d.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 R0(n,e){return d.openBlock(),d.createElementBlock("svg",D0,L0)}const cu=Le(I0,[["render",R0]]),B0={},$0=[d.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 P0(n,e){return d.openBlock(),d.createElementBlock("svg",d.mergeProps({class:"bd-logo"},n.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),$0,16)}const Sa=Le(B0,[["render",P0]]),uu=/^https:/i,Ar=d.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(n){const e=n,t=d.computed(()=>typeof e.to=="string"&&uu.test(e.to)?"a":typeof e.to!="string"&&typeof d.resolveComponent("router-link")!="string"?"router-link":"div"),r=d.computed(()=>{if(typeof e.to=="string"&&uu.test(e.to)){const{to:o,target:i,rel:s}=e;return{href:o,target:i,rel:s}}else{const{to:o}=e;return{to:o}}});return(o,i)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(t.value),d.mergeProps({class:"bd-link"},r.value),{default:d.withCtx(()=>[d.renderSlot(o.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(e.text),1)])]),_:3},16))}}),li={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light",GRAY:"gray"},F0={key:0,class:"b-d-alert-title"},ci=d.defineComponent({__name:"BDAlert",props:{variant:{default:li.PRIMARY},title:{default:""}},setup(n){const e=n,t=d.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(t.value),role:"alert"},[r.title?(d.openBlock(),d.createElementBlock("div",F0,[d.createVNode(d.unref(Tr)),d.createElementVNode("span",null,[d.createElementVNode("strong",null,d.toDisplayString(e.title),1)])])):d.createCommentVNode("",!0),d.renderSlot(r.$slots,"default")],2))}}),V0=["src","alt"],z0=["textContent"],po=d.defineComponent({__name:"BDProfileImage",props:{showFooter:{type:Boolean,default:!1},size:{default:lt.LG},linkText:{default:""},src:{default:""},alt:{default:""}},emits:["click"],setup(n,{emit:e}){const t=()=>{e("click")};return(r,o)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-profile-picture rounded-circle",r.size])},[d.createElementVNode("img",{src:r.src,alt:r.alt,class:"position-absolute top-0 start-0"},null,8,V0),r.showFooter?(d.openBlock(),d.createElementBlock("a",{key:0,class:"bd-profile-picture__footer position-absolute bottom-0 start-0",onClick:t,textContent:d.toDisplayString(r.linkText)},null,8,z0)):d.createCommentVNode("",!0)],2))}});function H0(n){return d.getCurrentScope()?(d.onScopeDispose(n),!0):!1}function ui(n){return typeof n=="function"?n():d.unref(n)}const U0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const j0=n=>typeof n<"u",W0=Object.prototype.toString,K0=n=>W0.call(n)==="[object Object]",wa=()=>{};function Y0(n,e){function t(...r){return new Promise((o,i)=>{Promise.resolve(n(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return t}function G0(n,e={}){let t,r,o=wa;const i=l=>{clearTimeout(l),o(),o=wa};return l=>{const a=ui(n),c=ui(e.maxWait);return t&&i(t),a<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(l())):new Promise((u,f)=>{o=e.rejectOnCancel?f:u,c&&!r&&(r=setTimeout(()=>{t&&i(t),r=null,u(l())},c)),t=setTimeout(()=>{r&&i(r),r=null,u(l())},a)})}}function J0(n,e=200,t={}){return Y0(G0(e,t),n)}function du(n){var e;const t=ui(n);return(e=t==null?void 0:t.$el)!=null?e:t}const Z0=U0?window:void 0;function fu(...n){let e,t,r,o;if(typeof n[0]=="string"||Array.isArray(n[0])?([t,r,o]=n,e=Z0):[e,t,r,o]=n,!e)return wa;Array.isArray(t)||(t=[t]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},l=(u,f,h,p)=>(u.addEventListener(f,h,p),()=>u.removeEventListener(f,h,p)),a=d.watch(()=>[du(e),ui(o)],([u,f])=>{if(s(),!u)return;const h=K0(f)?{...f}:f;i.push(...t.flatMap(p=>r.map(m=>l(u,p,m,h))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return H0(c),c}function X0(n){return JSON.parse(JSON.stringify(n))}function Q0(n,e={}){const{initialValue:t=!1,focusVisible:r=!1}=e,o=d.ref(!1),i=d.computed(()=>du(n));fu(i,"focus",l=>{var a,c;(!r||(c=(a=l.target).matches)!=null&&c.call(a,":focus-visible"))&&(o.value=!0)}),fu(i,"blur",()=>o.value=!1);const s=d.computed({get:()=>o.value,set(l){var a,c;!l&&o.value?(a=i.value)==null||a.blur():l&&!o.value&&((c=i.value)==null||c.focus())}});return d.watch(i,()=>{s.value=t},{immediate:!0,flush:"post"}),{focused:s}}function qn(n,e,t,r={}){var o,i,s;const{clone:l=!1,passive:a=!1,eventName:c,deep:u=!1,defaultValue:f,shouldEmit:h}=r,p=d.getCurrentInstance(),m=t||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((s=(i=p==null?void 0:p.proxy)==null?void 0:i.$emit)==null?void 0:s.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):X0(k):k,C=()=>j0(n[e])?y(n[e]):f,S=k=>{h?h(k)&&m(g,k):m(g,k)};if(a){const k=C(),b=d.ref(k);let M=!1;return d.watch(()=>n[e],T=>{M||(M=!0,b.value=y(T),d.nextTick(()=>M=!1))}),d.watch(b,T=>{!M&&(T!==n[e]||u)&&S(T)},{deep:u}),b}else return d.computed({get(){return C()},set(k){S(k)}})}const q0={class:"bd-zoom-slider d-flex"},e2=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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)],t2=["max"],n2=[d.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[d.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)],ka=d.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,r=qn(t,"modelValue",e);function o(){r.value!==0&&r.value--}function i(){r.value<t.maxValue&&r.value++}return(s,l)=>(d.openBlock(),d.createElementBlock("div",q0,[(d.openBlock(),d.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},e2)),d.withDirectives(d.createElementVNode("input",{type:"range","onUpdate:modelValue":l[0]||(l[0]=a=>d.isRef(r)?r.value=a:null),min:"0",max:s.maxValue,class:"bd-zoom-slider-input"},null,8,t2),[[d.vModelText,d.unref(r)]]),(d.openBlock(),d.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:i},n2))]))}});for(var er=256,hu=[],pu=256,di;er--;)hu[er]=(er+256).toString(16).substring(1);function mu(n){var e=0,t=n||11;if(!di||er+t>pu*2)for(di="",er=0;e<pu;e++)di+=hu[Math.random()*256|0];return di.substring(er,er+++t)}function xr(){return{uniqueIdentifier:d.ref(mu())}}const r2=["id"],o2={key:0},fi=d.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}=xr(),r=t.value,o=d.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),i=d.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),s=d.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(l,a)=>(d.openBlock(),d.createElementBlock("div",{id:d.unref(r),class:d.normalizeClass(o.value)},[!l.noHeader||l.noBody?(d.openBlock(),d.createElementBlock("div",{key:0,class:d.normalizeClass(i.value)},[d.renderSlot(l.$slots,"header",{},()=>[l.title?(d.openBlock(),d.createElementBlock("h2",o2,d.toDisplayString(l.title),1)):d.createCommentVNode("",!0)])],2)):d.createCommentVNode("",!0),l.noBody?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",{key:1,class:d.normalizeClass(s.value)},[d.renderSlot(l.$slots,"body")],2))],10,r2))}}),i2={key:0},s2={class:"bd-collapsable-card__actions"},a2=["data-bs-target"],gu=d.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}=xr(),r=t.value,o=d.computed(()=>`bd-collapsable-card__collapse-${r}`),i=d.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})),s=d.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=d.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)=>(d.openBlock(),d.createBlock(fi,{class:"bd-collapsable-card",title:a.title,"header-class":s.value,"body-class":l.value},{header:d.withCtx(()=>[a.title?(d.openBlock(),d.createElementBlock("h2",i2,d.toDisplayString(a.title),1)):d.createCommentVNode("",!0),d.createElementVNode("div",s2,[d.renderSlot(a.$slots,"action"),!a.disabled&&a.visible?(d.openBlock(),d.createElementBlock("button",{key:0,class:d.normalizeClass(["btn btn-white btn-caret",i.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":"true"},[d.createVNode(d.unref(fa))],10,a2)):d.createCommentVNode("",!0)])]),body:d.withCtx(()=>[d.renderSlot(a.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var l2=Object.defineProperty,c2=(n,e,t)=>e in n?l2(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,mo=(n,e,t)=>(c2(n,typeof e!="symbol"?e+"":e,t),t);const yu={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class vu{constructor(e={}){mo(this,"opts",{}),mo(this,"memo",new Map);const t={...e};if(t.tokens!=null){t.tokens=t.tokensReplace?{...t.tokens}:{...yu,...t.tokens};for(const r of Object.values(t.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else t.tokens=yu;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,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-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:i,escaped:s}=this.escapeMask(t),l=[],a=this.opts.tokens!=null?this.opts.tokens:{},c=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>y>-1&&C>-1:()=>y<i.length&&C<e.length,p=k=>!this.isReversed()&&k<=f||this.isReversed()&&k>=f;let m,g=-1,y=this.isReversed()?i.length-1:0,C=this.isReversed()?e.length-1:0,S=!1;for(;h();){const k=i.charAt(y),b=a[k],M=(b==null?void 0:b.transform)!=null?b.transform(e.charAt(C)):e.charAt(C);if(!s.includes(y)&&b!=null?(M.match(b.pattern)!=null?(l[u](M),b.repeated?(g===-1?g=y:y===f&&y!==g&&(y=g-c),f===g&&(y-=c)):b.multiple&&(S=!0,y-=c),y+=c):b.multiple?S&&(y+=c,C-=c,S=!1):M===m?m=void 0:b.optional&&(y+=c,C-=c),C+=c):(r&&!this.isEager()&&l[u](k),M===k&&!this.isEager()?C+=c:m=k,this.isEager()||(y+=c)),this.isEager())for(;p(y)&&(a[i.charAt(y)]==null||s.includes(y));)r?l[u](i.charAt(y)):i.charAt(y)===e.charAt(C)&&(C+=c),y+=c}return this.memo.set(o,l.join("")),this.memo.get(o)}}const bu=n=>JSON.parse(n.replaceAll("'",'"')),Eu=(n,e={})=>{const t={...e};return n.dataset.maska!=null&&n.dataset.maska!==""&&(t.mask=u2(n.dataset.maska)),n.dataset.maskaEager!=null&&(t.eager=Ta(n.dataset.maskaEager)),n.dataset.maskaReversed!=null&&(t.reversed=Ta(n.dataset.maskaReversed)),n.dataset.maskaTokensReplace!=null&&(t.tokensReplace=Ta(n.dataset.maskaTokensReplace)),n.dataset.maskaTokens!=null&&(t.tokens=d2(n.dataset.maskaTokens)),t},Ta=n=>n!==""?!!JSON.parse(n):!0,u2=n=>n.startsWith("[")&&n.endsWith("]")?bu(n):n,d2=n=>{if(n.startsWith("{")&&n.endsWith("}"))return bu(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 f2{constructor(e,t={}){mo(this,"items",new Map),mo(this,"beforeinputEvent",r=>{const o=r.target,i=this.items.get(o);i.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&i.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),mo(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,i=this.items.get(o),s=o.value,l=o.selectionStart,a=o.selectionEnd;let c=s;if(i.isEager()){const u=i.masked(s),f=i.unmasked(s);f===""&&"data"in r&&r.data!=null?c=r.data:f!==i.unmasked(u)&&(c=f)}if(this.setMaskedValue(o,c),"inputType"in r&&(r.inputType.startsWith("delete")||l!=null&&l<s.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 vu(Eu(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,...i}=e;return i}init(e,t){for(const r of e){const o=new vu(Eu(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),i=r.unmasked(r.isEager()?o:t),s=r.completed(t),l={masked:o,unmasked:i,completed:s};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 Aa=new WeakMap,h2=n=>{setTimeout(()=>{var e;((e=Aa.get(n))==null?void 0:e.needUpdateValue(n))===!0&&n.dispatchEvent(new CustomEvent("input"))})},p2=(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;h2(t);const o=Aa.get(t);if(o!=null){if(!o.needUpdateOptions(t,r))return;o.destroy()}if(e.value!=null){const i=e.value,s=l=>{i.masked=l.masked,i.unmasked=l.unmasked,i.completed=l.completed};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}Aa.set(t,new f2(t,r))},m2=["value","type"],go=d.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}=xr(),o=qn(t,"modelValue",e),i=`__BD__FORM__LABEL__${r.value}`,s=`__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=d.computed(()=>({[`${t.inputClass}`]:t.inputClass,"is-invalid":t.state===!1,"is-valid":t.state===!0,[`form-control-${t.size}`]:t.size})),u=d.computed(()=>({[`${t.invalidFeedbackClass}`]:t.invalidFeedbackClass,"is-invalid":t.state===!1})),f=d.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=J0(p=>{o.value=p.target.value},t.delayTimeMs);return(p,m)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-form-input",p.formGroupClass]),id:s},[d.renderSlot(p.$slots,"label",{},()=>[p.label?(d.openBlock(),d.createElementBlock("label",{key:0,for:l,id:i,class:d.normalizeClass(["form-label",p.labelClass])},d.toDisplayString(p.label),3)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:d.normalizeClass(p.formFieldClass)},[d.withDirectives(d.createElementVNode("input",d.mergeProps({value:p.modelValue,type:p.type,id:l,class:["form-control",c.value]},f.value,{onInput:m[0]||(m[0]=(...g)=>d.unref(h)&&d.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]=d.withKeys(g=>p.$emit("enter"),["enter"]))}),null,16,m2),[[d.unref(p2)]]),d.renderSlot(p.$slots,"default")],2),d.createVNode(d.unref(hi),{text:p.invalidFeedbackText,class:d.normalizeClass(u.value),state:p.state,id:a},null,8,["text","class","state"])],2))}}),g2={class:"input-group bd-input-group"},y2=["for"],Cu=d.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(n){const e=n,t=d.useAttrs();return(r,o)=>(d.openBlock(),d.createElementBlock("fieldset",g2,[e.label?(d.openBlock(),d.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},d.toDisplayString(e.label),9,y2)):d.createCommentVNode("",!0),d.createElementVNode("div",{class:d.normalizeClass(d.unref(t).class)},[d.renderSlot(r.$slots,"default")],2)]))}}),v2={class:"invalid-feedback bd-invalid-feedback"},hi=d.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(n){const e=n;return(t,r)=>(d.openBlock(),d.createElementBlock("div",v2,[e.state?(d.openBlock(),d.createBlock(d.unref(kr),{key:0})):(d.openBlock(),d.createBlock(d.unref(ii),{key:1})),d.createTextVNode(" "+d.toDisplayString(e.text),1)]))}}),b2={key:0},E2={key:1},Su=d.defineComponent({__name:"BDBadge",props:{variant:{default:li.PRIMARY}},setup(n){const e=n,t=d.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(d.openBlock(),d.createElementBlock("span",{role:"status",class:d.normalizeClass(t.value)},[r.variant==="danger"?(d.openBlock(),d.createElementBlock("span",b2,[d.createVNode(d.unref(Tr))])):d.createCommentVNode("",!0),r.variant==="success"?(d.openBlock(),d.createElementBlock("span",E2,[d.createVNode(d.unref(kr))])):d.createCommentVNode("",!0),d.renderSlot(r.$slots,"default")],2))}}),C2=["onSubmit","onReset"],wu=d.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(n,{emit:e}){function t(){e("submit")}function r(){e("reset")}return(o,i)=>(d.openBlock(),d.createElementBlock("form",{onSubmit:d.withModifiers(t,["prevent"]),onReset:d.withModifiers(r,["prevent"])},[d.renderSlot(o.$slots,"default")],40,C2))}}),S2={"aria-label":"Page navigation",class:"bd-pagination"},w2={class:"page-item"},k2=["data-page"],T2=["data-page"],A2={class:"page-item"},x2=["data-page"],ku=d.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=qn(t,"modelValue",e),o=d.ref(Math.ceil(t.totalRows/t.rowsPerPage)),i=d.ref([]);d.watch([()=>t.totalRows,()=>t.rowsPerPage],()=>{o.value=Math.ceil(t.totalRows/t.rowsPerPage),i.value=u(r.value)}),d.onMounted(()=>{i.value=u(r.value)});const s=d.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,i.value=u(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,u=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)=>(d.openBlock(),d.createElementBlock("div",S2,[d.createElementVNode("ul",{class:d.normalizeClass(["pagination",s.value])},[d.withDirectives(d.createElementVNode("li",w2,[d.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:l,"data-page":d.unref(r)-1},[d.createVNode(d.unref(ha))],8,k2)],512),[[d.vShow,d.unref(r)>1]]),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.value,p=>(d.openBlock(),d.createElementBlock("li",{class:d.normalizeClass(["page-item",{active:d.unref(r)===p,disabled:typeof p=="string"}]),key:p},[d.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:l,"data-page":p},d.toDisplayString(p),9,T2)],2))),128)),d.withDirectives(d.createElementVNode("li",A2,[d.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:l,"data-page":d.unref(r)+1},[d.createVNode(d.unref(pa))],8,x2)],512),[[d.vShow,d.unref(r)<o.value]])],2)]))}}),O2=["disabled"],M2=["label"],N2=["value"],_2=["value"],Tu=d.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=qn(t,"modelValue",e),o=d.ref(null),{focused:i}=Q0(o,{initialValue:t.autofocus}),s=d.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":t.state===!1,[`form-select-${t.size}`]:["xs","sm","lg"].includes(t.size)}));d.watch(()=>t.autofocus,u=>{u&&(i.value=!0)});const l=u=>{r.value=u.target.value;let f=c(u.target.value);e("input",f)},a=u=>{let f=c(u.target.value);e("change",f)},c=u=>{try{return JSON.parse(u)}catch{return u}};return(u,f)=>d.withDirectives((d.openBlock(),d.createElementBlock("select",{class:d.normalizeClass(s.value),"onUpdate:modelValue":f[0]||(f[0]=h=>d.isRef(r)?r.value=h:null),disabled:t.disabled,ref_key:"input",ref:o,onInput:l,onChange:a},[d.renderSlot(u.$slots,"first"),t.options&&t.options.length>0&&t.options[0].label&&t.options[0].options?(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:0},d.renderList(t.options,h=>(d.openBlock(),d.createElementBlock("optgroup",{label:h.label},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(h.options,p=>(d.openBlock(),d.createElementBlock("option",{value:JSON.stringify(p.value),key:p.value},d.toDisplayString(p.text),9,N2))),128))],8,M2))),256)):(d.openBlock(!0),d.createElementBlock(d.Fragment,{key:1},d.renderList(t.options,h=>(d.openBlock(),d.createElementBlock("option",{value:h.value,key:h.value},d.toDisplayString(h.text),9,_2))),128))],42,O2)),[[d.vModelSelect,d.unref(r)]])}}),I2=["value","true-value","false-value","data-checked"],Au=d.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}=xr(),o=qn(t,"modelValue",e),i=`form-check-input-${r.value}`,s=d.computed(()=>["form-check","bd-form-checkbox"]),l=d.computed(()=>({"form-check-input":!0,"is-invalid":t.state===!1})),a=c=>e("change",c.target.value);return(c,u)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(s.value)},[d.withDirectives(d.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>d.isRef(o)?o.value=f:null),id:i,class:d.normalizeClass(l.value),type:"checkbox",value:c.value,"true-value":c.value,"false-value":c.uncheckedValue,"data-checked":d.unref(o)===c.value,onChange:a},null,42,I2),[[d.vModelCheckbox,d.unref(o)]]),d.createElementVNode("label",{class:"form-check-label",for:i},[d.renderSlot(c.$slots,"default")]),d.renderSlot(c.$slots,"last")],2))}}),D2={key:0,class:"bd-article__body"},L2={key:1},xu=d.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,i)=>(d.openBlock(),d.createElementBlock("article",{class:"bd-article",onClick:r},[d.createElementVNode("header",null,[d.renderSlot(o.$slots,"header",{},()=>[d.createElementVNode("h5",null,d.toDisplayString(t.title),1)])]),t.hideBody?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",D2,[d.renderSlot(o.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])])),t.hideFooter?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("footer",L2,[d.renderSlot(o.$slots,"footer")]))]))}}),Or={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},R2=["id"],B2={class:"toast-header"},$2=d.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),P2={class:"toast-body"},xa=d.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Or.INFO},title:{default:""},text:{default:""}},setup(n){const e=n,t=d.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=d.computed(()=>e.variant!==Or.SUCCESS);return(o,i)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["toast bd-toast",t.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[d.createElementVNode("div",B2,[r.value?(d.openBlock(),d.createBlock(d.unref(Tr),{key:0})):(d.openBlock(),d.createBlock(d.unref(kr),{key:1})),d.createElementVNode("h5",null,d.toDisplayString(e.title),1),$2]),d.createElementVNode("div",P2,[d.createElementVNode("span",null,d.toDisplayString(e.text),1)])],10,R2))}}),We="",pi=n=>typeof n=="string"||n instanceof String,F2={class:"bd-pill"},V2=["src"],z2={class:"bd-pill__description"},H2=["href"],U2=["id","textContent","title"],j2=["id","textContent","title"],mi=d.defineComponent({__name:"BDPill",props:{imgSrc:{default:We},uri:{default:We},uriDisplayName:{default:We},title:{default:We},subtitle:{default:We},showClose:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:e}){const t=n,{uniqueIdentifier:r}=xr(),o=d.computed(()=>t.uri),i=d.computed(()=>t.uriDisplayName!==We?t.uriDisplayName:t.uri),s=d.computed(()=>t.imgSrc),l=d.computed(()=>t.title),a=d.computed(()=>t.subtitle),c=d.computed(()=>`bd-pill-title-${r.value}`),u=d.computed(()=>`bd-pill-subtitle-${r.value}`);return(f,h)=>(d.openBlock(),d.createElementBlock("div",F2,[d.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,V2),d.createElementVNode("div",z2,[d.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[d.createVNode(d.unref(si),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),d.createTextVNode(" "+d.toDisplayString(i.value),1)],8,H2),d.createElementVNode("span",{class:"bd-pill__title",id:c.value,textContent:d.toDisplayString(l.value),"data-bs-toggle":"tooltip",title:l.value},null,8,U2),d.createElementVNode("span",{class:"bd-pill__subtitle",id:u.value,textContent:d.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,j2)])]))}}),gi=d.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,i)=>(d.openBlock(),d.createElementBlock("li",d.mergeProps({class:"bd-dropdown-item"},o.$attrs),[d.createVNode(Ar,d.mergeProps({class:"dropdown-item",onClick:r},t),{default:d.withCtx(()=>[d.renderSlot(o.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])]),_:3},16)],16))}});var Oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ma(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ou={exports:{}};(function(n,e){(function(r,o){n.exports=o()})(self,function(){return function(){var t={3099:function(s){s.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},6077:function(s,l,a){var c=a(111);s.exports=function(u){if(!c(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(s,l,a){var c=a(5112),u=a(30),f=a(3070),h=c("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:u(null)}),s.exports=function(m){p[h][m]=!0}},1530:function(s,l,a){var c=a(8710).charAt;s.exports=function(u,f,h){return f+(h?c(u,f).length:1)}},5787:function(s){s.exports=function(l,a,c){if(!(l instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return l}},9670:function(s,l,a){var c=a(111);s.exports=function(u){if(!c(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(s,l,a){var c=a(4019),u=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),b=a(5112),M=a(9711),T=f.Int8Array,z=T&&T.prototype,U=f.Uint8ClampedArray,j=U&&U.prototype,P=T&&S(T),L=z&&S(z),V=Object.prototype,W=V.isPrototypeOf,H=b("toStringTag"),F=M("TYPED_ARRAY_TAG"),$=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(A){if(!h(A))return!1;var O=m(A);return O==="DataView"||p(Q,O)||p(te,O)},me=function(ve){if(!h(ve))return!1;var A=m(ve);return p(Q,A)||p(te,A)},ge=function(ve){if(me(ve))return ve;throw TypeError("Target is not a typed array")},Ce=function(ve){if(k){if(W.call(P,ve))return ve}else for(var A in Q)if(p(Q,D)){var O=f[A];if(O&&(ve===O||W.call(O,ve)))return ve}throw TypeError("Target is not a typed array constructor")},we=function(ve,A,O){if(u){if(O)for(var w in Q){var x=f[w];x&&p(x.prototype,ve)&&delete x.prototype[ve]}(!L[ve]||O)&&y(L,ve,O?A:$&&z[ve]||A)}},Te=function(ve,A,O){var w,x;if(u){if(k){if(O)for(w in Q)x=f[w],x&&p(x,ve)&&delete x[ve];if(!P[ve]||O)try{return y(P,ve,O?A:$&&T[ve]||A)}catch{}else return}for(w in Q)x=f[w],x&&(!x[ve]||O)&&y(x,ve,A)}};for(D in Q)f[D]||($=!1);if((!$||typeof P!="function"||P===Function.prototype)&&(P=function(){throw TypeError("Incorrect invocation")},$))for(D in Q)f[D]&&k(f[D],P);if((!$||!L||L===V)&&(L=P.prototype,$))for(D in Q)f[D]&&k(f[D].prototype,L);if($&&S(j)!==L&&k(j,L),u&&!p(L,H)){G=!0,C(L,H,{get:function(){return h(this)?this[F]:void 0}});for(D in Q)f[D]&&g(f[D],F,D)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:G&&F,aTypedArray:ge,aTypedArrayConstructor:Ce,exportTypedArrayMethod:we,exportTypedArrayStaticMethod:Te,isView:ce,isTypedArray:me,TypedArray:P,TypedArrayPrototype:L}},3331:function(s,l,a){var c=a(7854),u=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),b=a(9518),M=a(7674),T=a(8006).f,z=a(3070).f,U=a(1285),j=a(8003),P=a(9909),L=P.get,V=P.set,W="ArrayBuffer",H="DataView",F="prototype",$="Wrong length",G="Wrong index",D=c[W],Q=D,te=c[H],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]},A=function(Z){return[Z&255,Z>>8&255,Z>>16&255,Z>>24&255]},O=function(Z){return Z[3]<<24|Z[2]<<16|Z[1]<<8|Z[0]},w=function(Z){return Ce(Z,23,4)},x=function(Z){return Ce(Z,52,8)},v=function(Z,X){z(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 Ve=L(_e.buffer).bytes,Fe=Se+_e.byteOffset,De=Ve.slice(Fe,Fe+X);return he?De:De.reverse()},_=function(Z,X,ne,he,Se,_e){var Ve=S(ne),Fe=L(Z);if(Ve+X>Fe.byteLength)throw ge(G);for(var De=L(Fe.buffer).bytes,Je=Ve+Fe.byteOffset,St=he(+Se),at=0;at<X;at++)De[Je+at]=St[_e?at:X-at-1]};if(!f)Q=function(X){g(this,Q,W);var ne=S(X);V(this,{bytes:U.call(new Array(ne),0),byteLength:ne}),u||(this.byteLength=ne)},te=function(X,ne,he){g(this,te,H),g(X,Q,H);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($);V(this,{buffer:X,byteLength:he,byteOffset:_e}),u||(this.buffer=X,this.byteLength=he,this.byteOffset=_e)},u&&(v(Q,"byteLength"),v(te,"buffer"),v(te,"byteLength"),v(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 O(E(this,4,X,arguments.length>1?arguments[1]:void 0))},getUint32:function(X){return O(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,A,ne,arguments.length>2?arguments[2]:void 0)},setUint32:function(X,ne){_(this,4,X,A,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,x,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),B=0,K;R.length>B;)(K=R[B++])in Q||h(Q,K,D[K]);I.constructor=Q}M&&b(ce)!==me&&M(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})}j(Q,W),j(te,H),s.exports={ArrayBuffer:Q,DataView:te}},1048:function(s,l,a){var c=a(7908),u=a(1400),f=a(7466),h=Math.min;s.exports=[].copyWithin||function(m,g){var y=c(this),C=f(y.length),S=u(m,C),k=u(g,C),b=arguments.length>2?arguments[2]:void 0,M=h((b===void 0?C:u(b,C))-k,C-S),T=1;for(k<S&&S<k+M&&(T=-1,k+=M-1,S+=M-1);M-- >0;)k in y?y[S]=y[k]:delete y[S],S+=T,k+=T;return y}},1285:function(s,l,a){var c=a(7908),u=a(1400),f=a(7466);s.exports=function(p){for(var m=c(this),g=f(m.length),y=arguments.length,C=u(y>1?arguments[1]:void 0,g),S=y>2?arguments[2]:void 0,k=S===void 0?g:u(S,g);k>C;)m[C++]=p;return m}},8533:function(s,l,a){var c=a(2092).forEach,u=a(9341),f=u("forEach");s.exports=f?[].forEach:function(p){return c(this,p,arguments.length>1?arguments[1]:void 0)}},8457:function(s,l,a){var c=a(9974),u=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),g=a(1246);s.exports=function(C){var S=u(C),k=typeof this=="function"?this:Array,b=arguments.length,M=b>1?arguments[1]:void 0,T=M!==void 0,z=g(S),U=0,j,P,L,V,W,H;if(T&&(M=c(M,b>2?arguments[2]:void 0,2)),z!=null&&!(k==Array&&h(z)))for(V=z.call(S),W=V.next,P=new k;!(L=W.call(V)).done;U++)H=T?f(V,M,[L.value,U],!0):L.value,m(P,U,H);else for(j=p(S.length),P=new k(j);j>U;U++)H=T?M(S[U],U):S[U],m(P,U,H);return P.length=U,P}},1318:function(s,l,a){var c=a(5656),u=a(7466),f=a(1400),h=function(p){return function(m,g,y){var C=c(m),S=u(C.length),k=f(y,S),b;if(p&&g!=g){for(;S>k;)if(b=C[k++],b!=b)return!0}else for(;S>k;k++)if((p||k in C)&&C[k]===g)return p||k||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}},2092:function(s,l,a){var c=a(9974),u=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,b=y==4,M=y==6,T=y==7,z=y==5||M;return function(U,j,P,L){for(var V=f(U),W=u(V),H=c(j,P,3),F=h(W.length),$=0,G=L||p,D=C?G(U,F):S||T?G(U,0):void 0,Q,te;F>$;$++)if((z||$ in W)&&(Q=W[$],te=H(Q,$,V),y))if(C)D[$]=te;else if(te)switch(y){case 3:return!0;case 5:return Q;case 6:return $;case 2:m.call(D,Q)}else switch(y){case 4:return!1;case 7:m.call(D,Q)}return M?-1:k||b?b:D}};s.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(s,l,a){var c=a(5656),u=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;s.exports=C?function(k){if(g)return m.apply(this,arguments)||0;var b=c(this),M=f(b.length),T=M-1;for(arguments.length>1&&(T=p(T,u(arguments[1]))),T<0&&(T=M+T);T>=0;T--)if(T in b&&b[T]===k)return T||0;return-1}:m},1194:function(s,l,a){var c=a(7293),u=a(5112),f=a(7392),h=u("species");s.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(s,l,a){var c=a(7293);s.exports=function(u,f){var h=[][u];return!!h&&c(function(){h.call(null,f||function(){throw 1},1)})}},3671:function(s,l,a){var c=a(3099),u=a(7908),f=a(8361),h=a(7466),p=function(m){return function(g,y,C,S){c(y);var k=u(g),b=f(k),M=h(k.length),T=m?M-1:0,z=m?-1:1;if(C<2)for(;;){if(T in b){S=b[T],T+=z;break}if(T+=z,m?T<0:M<=T)throw TypeError("Reduce of empty array with no initial value")}for(;m?T>=0:M>T;T+=z)T in b&&(S=y(S,b[T],T,k));return S}};s.exports={left:p(!1),right:p(!0)}},5417:function(s,l,a){var c=a(111),u=a(3157),f=a(5112),h=f("species");s.exports=function(p,m){var g;return u(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||u(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(s,l,a){var c=a(9670),u=a(9212);s.exports=function(f,h,p,m){try{return m?h(c(p)[0],p[1]):h(p)}catch(g){throw u(f),g}}},7072:function(s,l,a){var c=a(5112),u=c("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[u]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,g){if(!g&&!f)return!1;var y=!1;try{var C={};C[u]=function(){return{next:function(){return{done:y=!0}}}},m(C)}catch{}return y}},4326:function(s){var l={}.toString;s.exports=function(a){return l.call(a).slice(8,-1)}},648:function(s,l,a){var c=a(1694),u=a(4326),f=a(5112),h=f("toStringTag"),p=u(function(){return arguments}())=="Arguments",m=function(g,y){try{return g[y]}catch{}};s.exports=c?u:function(g){var y,C,S;return g===void 0?"Undefined":g===null?"Null":typeof(C=m(y=Object(g),h))=="string"?C:p?u(y):(S=u(y))=="Object"&&typeof y.callee=="function"?"Arguments":S}},9920:function(s,l,a){var c=a(6656),u=a(3887),f=a(1236),h=a(3070);s.exports=function(p,m){for(var g=u(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(s,l,a){var c=a(7293);s.exports=!c(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(s,l,a){var c=a(3383).IteratorPrototype,u=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};s.exports=function(g,y,C){var S=y+" Iterator";return g.prototype=u(c,{next:f(1,C)}),h(g,S,!1,!0),p[S]=m,g}},8880:function(s,l,a){var c=a(9781),u=a(3070),f=a(9114);s.exports=c?function(h,p,m){return u.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}},9114:function(s){s.exports=function(l,a){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:a}}},6135:function(s,l,a){var c=a(7593),u=a(3070),f=a(9114);s.exports=function(h,p,m){var g=c(p);g in h?u.f(h,g,f(0,m)):h[g]=m}},654:function(s,l,a){var c=a(2109),u=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),b=k.IteratorPrototype,M=k.BUGGY_SAFARI_ITERATORS,T=y("iterator"),z="keys",U="values",j="entries",P=function(){return this};s.exports=function(L,V,W,H,F,$,G){u(W,V,H);var D=function(A){if(A===F&&ge)return ge;if(!M&&A in ce)return ce[A];switch(A){case z:return function(){return new W(this,A)};case U:return function(){return new W(this,A)};case j:return function(){return new W(this,A)}}return function(){return new W(this)}},Q=V+" Iterator",te=!1,ce=L.prototype,me=ce[T]||ce["@@iterator"]||F&&ce[F],ge=!M&&me||D(F),Ce=V=="Array"&&ce.entries||me,we,Te,ve;if(Ce&&(we=f(Ce.call(new L)),b!==Object.prototype&&we.next&&(!C&&f(we)!==b&&(h?h(we,b):typeof we[T]!="function"&&m(we,T,P)),p(we,Q,!0,!0),C&&(S[Q]=P))),F==U&&me&&me.name!==U&&(te=!0,ge=function(){return me.call(this)}),(!C||G)&&ce[T]!==ge&&m(ce,T,ge),S[V]=ge,F)if(Te={values:D(U),keys:$?ge:D(z),entries:D(j)},G)for(ve in Te)(M||te||!(ve in ce))&&g(ce,ve,Te[ve]);else c({target:V,proto:!0,forced:M||te},Te);return Te}},9781:function(s,l,a){var c=a(7293);s.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(s,l,a){var c=a(7854),u=a(111),f=c.document,h=u(f)&&u(f.createElement);s.exports=function(p){return h?f.createElement(p):{}}},8324:function(s){s.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(s,l,a){var c=a(5005);s.exports=c("navigator","userAgent")||""},7392:function(s,l,a){var c=a(7854),u=a(8113),f=c.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(g=m[1]))),s.exports=g&&+g},748:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(s,l,a){var c=a(7854),u=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),g=a(4705);s.exports=function(y,C){var S=y.target,k=y.global,b=y.stat,M,T,z,U,j,P;if(k?T=c:b?T=c[S]||p(S,{}):T=(c[S]||{}).prototype,T)for(z in C){if(j=C[z],y.noTargetGet?(P=u(T,z),U=P&&P.value):U=T[z],M=g(k?z:S+(b?".":"#")+z,y.forced),!M&&U!==void 0){if(typeof j==typeof U)continue;m(j,U)}(y.sham||U&&U.sham)&&f(j,"sham",!0),h(T,z,j,y)}}},7293:function(s){s.exports=function(l){try{return!!l()}catch{return!0}}},7007:function(s,l,a){a(4916);var c=a(1320),u=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),g=!u(function(){var b=/./;return b.exec=function(){var M=[];return M.groups={a:"7"},M},"".replace(b,"$<a>")!=="7"}),y=function(){return"a".replace(/./,"$0")==="$0"}(),C=f("replace"),S=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),k=!u(function(){var b=/(?:)/,M=b.exec;b.exec=function(){return M.apply(this,arguments)};var T="ab".split(b);return T.length!==2||T[0]!=="a"||T[1]!=="b"});s.exports=function(b,M,T,z){var U=f(b),j=!u(function(){var F={};return F[U]=function(){return 7},""[b](F)!=7}),P=j&&!u(function(){var F=!1,$=/a/;return b==="split"&&($={},$.constructor={},$.constructor[m]=function(){return $},$.flags="",$[U]=/./[U]),$.exec=function(){return F=!0,null},$[U](""),!F});if(!j||!P||b==="replace"&&!(g&&y&&!S)||b==="split"&&!k){var L=/./[U],V=T(U,""[b],function(F,$,G,D,Q){return $.exec===h?j&&!Q?{done:!0,value:L.call($,G,D)}:{done:!0,value:F.call(G,$,D)}:{done:!1}},{REPLACE_KEEPS_$0:y,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:S}),W=V[0],H=V[1];c(String.prototype,b,W),c(RegExp.prototype,U,M==2?function(F,$){return H.call(F,this,$)}:function(F){return H.call(F,this)})}z&&p(RegExp.prototype[U],"sham",!0)}},9974:function(s,l,a){var c=a(3099);s.exports=function(u,f,h){if(c(u),f===void 0)return u;switch(h){case 0:return function(){return u.call(f)};case 1:return function(p){return u.call(f,p)};case 2:return function(p,m){return u.call(f,p,m)};case 3:return function(p,m,g){return u.call(f,p,m,g)}}return function(){return u.apply(f,arguments)}}},5005:function(s,l,a){var c=a(857),u=a(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(c[h])||f(u[h]):c[h]&&c[h][p]||u[h]&&u[h][p]}},1246:function(s,l,a){var c=a(648),u=a(7497),f=a(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||u[c(p)]}},8554:function(s,l,a){var c=a(9670),u=a(1246);s.exports=function(f){var h=u(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return c(h.call(f))}},647:function(s,l,a){var c=a(7908),u=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,g,y,C,S,k){var b=y+m.length,M=C.length,T=p;return S!==void 0&&(S=c(S),T=h),f.call(k,T,function(z,U){var j;switch(U.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,y);case"'":return g.slice(b);case"<":j=S[U.slice(1,-1)];break;default:var P=+U;if(P===0)return z;if(P>M){var L=u(P/10);return L===0?z:L<=M?C[L-1]===void 0?U.charAt(1):C[L-1]+U.charAt(1):z}j=C[P-1]}return j===void 0?"":j})}},7854:function(s,l,a){var c=function(u){return u&&u.Math==Math&&u};s.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(s){var l={}.hasOwnProperty;s.exports=function(a,c){return l.call(a,c)}},3501:function(s){s.exports={}},490:function(s,l,a){var c=a(5005);s.exports=c("document","documentElement")},4664:function(s,l,a){var c=a(9781),u=a(7293),f=a(317);s.exports=!c&&!u(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(s){var l=Math.abs,a=Math.pow,c=Math.floor,u=Math.log,f=Math.LN2,h=function(m,g,y){var C=new Array(y),S=y*8-g-1,k=(1<<S)-1,b=k>>1,M=g===23?a(2,-24)-a(2,-77):0,T=m<0||m===0&&1/m<0?1:0,z=0,U,j,P;for(m=l(m),m!=m||m===1/0?(j=m!=m?1:0,U=k):(U=c(u(m)/f),m*(P=a(2,-U))<1&&(U--,P*=2),U+b>=1?m+=M/P:m+=M*a(2,1-b),m*P>=2&&(U++,P/=2),U+b>=k?(j=0,U=k):U+b>=1?(j=(m*P-1)*a(2,g),U=U+b):(j=m*a(2,b-1)*a(2,g),U=0));g>=8;C[z++]=j&255,j/=256,g-=8);for(U=U<<g|j,S+=g;S>0;C[z++]=U&255,U/=256,S-=8);return C[--z]|=T*128,C},p=function(m,g){var y=m.length,C=y*8-g-1,S=(1<<C)-1,k=S>>1,b=C-7,M=y-1,T=m[M--],z=T&127,U;for(T>>=7;b>0;z=z*256+m[M],M--,b-=8);for(U=z&(1<<-b)-1,z>>=-b,b+=g;b>0;U=U*256+m[M],M--,b-=8);if(z===0)z=1-k;else{if(z===S)return U?NaN:T?-1/0:1/0;U=U+a(2,g),z=z-k}return(T?-1:1)*U*a(2,z-g)};s.exports={pack:h,unpack:p}},8361:function(s,l,a){var c=a(7293),u=a(4326),f="".split;s.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?f.call(h,""):Object(h)}:Object},9587:function(s,l,a){var c=a(111),u=a(7674);s.exports=function(f,h,p){var m,g;return u&&typeof(m=h.constructor)=="function"&&m!==p&&c(g=m.prototype)&&g!==p.prototype&&u(f,g),f}},2788:function(s,l,a){var c=a(5465),u=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(f){return u.call(f)}),s.exports=c.inspectSource},9909:function(s,l,a){var c=a(8536),u=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),g=a(6200),y=a(3501),C=u.WeakMap,S,k,b,M=function(V){return b(V)?k(V):S(V,{})},T=function(V){return function(W){var H;if(!f(W)||(H=k(W)).type!==V)throw TypeError("Incompatible receiver, "+V+" required");return H}};if(c){var z=m.state||(m.state=new C),U=z.get,j=z.has,P=z.set;S=function(V,W){return W.facade=V,P.call(z,V,W),W},k=function(V){return U.call(z,V)||{}},b=function(V){return j.call(z,V)}}else{var L=g("state");y[L]=!0,S=function(V,W){return W.facade=V,h(V,L,W),W},k=function(V){return p(V,L)?V[L]:{}},b=function(V){return p(V,L)}}s.exports={set:S,get:k,has:b,enforce:M,getterFor:T}},7659:function(s,l,a){var c=a(5112),u=a(7497),f=c("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(u.Array===p||h[f]===p)}},3157:function(s,l,a){var c=a(4326);s.exports=Array.isArray||function(f){return c(f)=="Array"}},4705:function(s,l,a){var c=a(7293),u=/#|\.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(u,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",g=f.POLYFILL="P";s.exports=f},111:function(s){s.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},1913:function(s){s.exports=!1},7850:function(s,l,a){var c=a(111),u=a(4326),f=a(5112),h=f("match");s.exports=function(p){var m;return c(p)&&((m=p[h])!==void 0?!!m:u(p)=="RegExp")}},9212:function(s,l,a){var c=a(9670);s.exports=function(u){var f=u.return;if(f!==void 0)return c(f.call(u)).value}},3383:function(s,l,a){var c=a(7293),u=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,b;[].keys&&(b=[].keys(),"next"in b?(k=u(u(b)),k!==Object.prototype&&(S=k)):y=!0);var M=S==null||c(function(){var T={};return S[g].call(T)!==T});M&&(S={}),(!m||M)&&!h(S,g)&&f(S,g,C),s.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:y}},7497:function(s){s.exports={}},133:function(s,l,a){var c=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},590:function(s,l,a){var c=a(7293),u=a(5112),f=a(1913),h=u("iterator");s.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(s,l,a){var c=a(7854),u=a(2788),f=c.WeakMap;s.exports=typeof f=="function"&&/native code/.test(u(f))},1574:function(s,l,a){var c=a(9781),u=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),g=a(8361),y=Object.assign,C=Object.defineProperty;s.exports=!y||u(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={},b=Symbol(),M="abcdefghijklmnopqrst";return S[b]=7,M.split("").forEach(function(T){k[T]=T}),y({},S)[b]!=7||f(y({},k)).join("")!=M})?function(k,b){for(var M=m(k),T=arguments.length,z=1,U=h.f,j=p.f;T>z;)for(var P=g(arguments[z++]),L=U?f(P).concat(U(P)):f(P),V=L.length,W=0,H;V>W;)H=L[W++],(!c||j.call(P,H))&&(M[H]=P[H]);return M}:y},30:function(s,l,a){var c=a(9670),u=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),g=a(6200),y=">",C="<",S="prototype",k="script",b=g("IE_PROTO"),M=function(){},T=function(L){return C+k+y+L+C+"/"+k+y},z=function(L){L.write(T("")),L.close();var V=L.parentWindow.Object;return L=null,V},U=function(){var L=m("iframe"),V="java"+k+":",W;return L.style.display="none",p.appendChild(L),L.src=String(V),W=L.contentWindow.document,W.open(),W.write(T("document.F=Object")),W.close(),W.F},j,P=function(){try{j=document.domain&&new ActiveXObject("htmlfile")}catch{}P=j?z(j):U();for(var L=f.length;L--;)delete P[S][f[L]];return P()};h[b]=!0,s.exports=Object.create||function(V,W){var H;return V!==null?(M[S]=c(V),H=new M,M[S]=null,H[b]=V):H=P(),W===void 0?H:u(H,W)}},6048:function(s,l,a){var c=a(9781),u=a(3070),f=a(9670),h=a(1956);s.exports=c?Object.defineProperties:function(m,g){f(m);for(var y=h(g),C=y.length,S=0,k;C>S;)u.f(m,k=y[S++],g[k]);return m}},3070:function(s,l,a){var c=a(9781),u=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),u)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(s,l,a){var c=a(9781),u=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(!u.f.call(S,k),S[k])}},8006:function(s,l,a){var c=a(6324),u=a(748),f=u.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(p){return c(p,f)}},5181:function(s,l){l.f=Object.getOwnPropertySymbols},9518:function(s,l,a){var c=a(6656),u=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=u(g),c(g,p)?g[p]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}},6324:function(s,l,a){var c=a(6656),u=a(5656),f=a(1318).indexOf,h=a(3501);s.exports=function(p,m){var g=u(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(s,l,a){var c=a(6324),u=a(748);s.exports=Object.keys||function(h){return c(h,u)}},5296:function(s,l){var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u=c&&!a.call({1:2},1);l.f=u?function(h){var p=c(this,h);return!!p&&p.enumerable}:a},7674:function(s,l,a){var c=a(9670),u=a(6077);s.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),u(y),f?p.call(g,y):g.__proto__=y,g}}():void 0)},288:function(s,l,a){var c=a(1694),u=a(648);s.exports=c?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(s,l,a){var c=a(5005),u=a(8006),f=a(5181),h=a(9670);s.exports=c("Reflect","ownKeys")||function(m){var g=u.f(h(m)),y=f.f;return y?g.concat(y(m)):g}},857:function(s,l,a){var c=a(7854);s.exports=c},2248:function(s,l,a){var c=a(1320);s.exports=function(u,f,h){for(var p in f)c(u,p,f[p],h);return u}},1320:function(s,l,a){var c=a(7854),u=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");(s.exports=function(S,k,b,M){var T=M?!!M.unsafe:!1,z=M?!!M.enumerable:!1,U=M?!!M.noTargetGet:!1,j;if(typeof b=="function"&&(typeof k=="string"&&!f(b,"name")&&u(b,"name",k),j=y(b),j.source||(j.source=C.join(typeof k=="string"?k:""))),S===c){z?S[k]=b:h(k,b);return}else T?!U&&S[k]&&(z=!0):delete S[k];z?S[k]=b:u(S,k,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})},7651:function(s,l,a){var c=a(4326),u=a(2261);s.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 u.call(f,h)}},2261:function(s,l,a){var c=a(7066),u=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=u.UNSUPPORTED_Y||u.BROKEN_CARET,y=/()??/.exec("")[1]!==void 0,C=m||y||g;C&&(p=function(k){var b=this,M,T,z,U,j=g&&b.sticky,P=c.call(b),L=b.source,V=0,W=k;return j&&(P=P.replace("y",""),P.indexOf("g")===-1&&(P+="g"),W=String(k).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&k[b.lastIndex-1]!==`
|
|
5
|
+
`)&&(L="(?: "+L+")",W=" "+W,V++),T=new RegExp("^(?:"+L+")",P)),y&&(T=new RegExp("^"+L+"$(?!\\s)",P)),m&&(M=b.lastIndex),z=f.call(j?T:b,W),j?z?(z.input=z.input.slice(V),z[0]=z[0].slice(V),z.index=b.lastIndex,b.lastIndex+=z[0].length):b.lastIndex=0:m&&z&&(b.lastIndex=b.global?z.index+z[0].length:M),y&&z&&z.length>1&&h.call(z[0],T,function(){for(U=1;U<arguments.length-2;U++)arguments[U]===void 0&&(z[U]=void 0)}),z}),s.exports=p},7066:function(s,l,a){var c=a(9670);s.exports=function(){var u=c(this),f="";return u.global&&(f+="g"),u.ignoreCase&&(f+="i"),u.multiline&&(f+="m"),u.dotAll&&(f+="s"),u.unicode&&(f+="u"),u.sticky&&(f+="y"),f}},2999:function(s,l,a){var c=a(7293);function u(f,h){return RegExp(f,h)}l.UNSUPPORTED_Y=c(function(){var f=u("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),l.BROKEN_CARET=c(function(){var f=u("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},4488:function(s){s.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},3505:function(s,l,a){var c=a(7854),u=a(8880);s.exports=function(f,h){try{u(c,f,h)}catch{c[f]=h}return h}},6340:function(s,l,a){var c=a(5005),u=a(3070),f=a(5112),h=a(9781),p=f("species");s.exports=function(m){var g=c(m),y=u.f;h&&g&&!g[p]&&y(g,p,{configurable:!0,get:function(){return this}})}},8003:function(s,l,a){var c=a(3070).f,u=a(6656),f=a(5112),h=f("toStringTag");s.exports=function(p,m,g){p&&!u(p=g?p:p.prototype,h)&&c(p,h,{configurable:!0,value:m})}},6200:function(s,l,a){var c=a(2309),u=a(9711),f=c("keys");s.exports=function(h){return f[h]||(f[h]=u(h))}},5465:function(s,l,a){var c=a(7854),u=a(3505),f="__core-js_shared__",h=c[f]||u(f,{});s.exports=h},2309:function(s,l,a){var c=a(1913),u=a(5465);(s.exports=function(f,h){return u[f]||(u[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:c?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(s,l,a){var c=a(9670),u=a(3099),f=a(5112),h=f("species");s.exports=function(p,m){var g=c(p).constructor,y;return g===void 0||(y=c(g)[h])==null?m:u(y)}},8710:function(s,l,a){var c=a(9958),u=a(4488),f=function(h){return function(p,m){var g=String(u(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)}};s.exports={codeAt:f(!1),charAt:f(!0)}},3197:function(s){var l=2147483647,a=36,c=1,u=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,b=Math.floor,M=String.fromCharCode,T=function(P){for(var L=[],V=0,W=P.length;V<W;){var H=P.charCodeAt(V++);if(H>=55296&&H<=56319&&V<W){var F=P.charCodeAt(V++);(F&64512)==56320?L.push(((H&1023)<<10)+(F&1023)+65536):(L.push(H),V--)}else L.push(H)}return L},z=function(P){return P+22+75*(P<26)},U=function(P,L,V){var W=0;for(P=V?b(P/h):P>>1,P+=b(P/L);P>k*u>>1;W+=a)P=b(P/k);return b(W+(k+1)*P/(P+f))},j=function(P){var L=[];P=T(P);var V=P.length,W=m,H=0,F=p,$,G;for($=0;$<P.length;$++)G=P[$],G<128&&L.push(M(G));var D=L.length,Q=D;for(D&&L.push(g);Q<V;){var te=l;for($=0;$<P.length;$++)G=P[$],G>=W&&G<te&&(te=G);var ce=Q+1;if(te-W>b((l-H)/ce))throw RangeError(S);for(H+=(te-W)*ce,W=te,$=0;$<P.length;$++){if(G=P[$],G<W&&++H>l)throw RangeError(S);if(G==W){for(var me=H,ge=a;;ge+=a){var Ce=ge<=F?c:ge>=F+u?u:ge-F;if(me<Ce)break;var we=me-Ce,Te=a-Ce;L.push(M(z(Ce+we%Te))),me=b(we/Te)}L.push(M(z(me))),F=U(H,ce,Q==D),H=0,++Q}}++H,++W}return L.join("")};s.exports=function(P){var L=[],V=P.toLowerCase().replace(C,".").split("."),W,H;for(W=0;W<V.length;W++)H=V[W],L.push(y.test(H)?"xn--"+j(H):H);return L.join(".")}},6091:function(s,l,a){var c=a(7293),u=a(1361),f="
";s.exports=function(h){return c(function(){return!!u[h]()||f[h]()!=f||u[h].name!==h})}},3111:function(s,l,a){var c=a(4488),u=a(1361),f="["+u+"]",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}};s.exports={start:m(1),end:m(2),trim:m(3)}},1400:function(s,l,a){var c=a(9958),u=Math.max,f=Math.min;s.exports=function(h,p){var m=c(h);return m<0?u(m+p,0):f(m,p)}},7067:function(s,l,a){var c=a(9958),u=a(7466);s.exports=function(f){if(f===void 0)return 0;var h=c(f),p=u(h);if(h!==p)throw RangeError("Wrong length or index");return p}},5656:function(s,l,a){var c=a(8361),u=a(4488);s.exports=function(f){return c(u(f))}},9958:function(s){var l=Math.ceil,a=Math.floor;s.exports=function(c){return isNaN(c=+c)?0:(c>0?a:l)(c)}},7466:function(s,l,a){var c=a(9958),u=Math.min;s.exports=function(f){return f>0?u(c(f),9007199254740991):0}},7908:function(s,l,a){var c=a(4488);s.exports=function(u){return Object(c(u))}},4590:function(s,l,a){var c=a(3002);s.exports=function(u,f){var h=c(u);if(h%f)throw RangeError("Wrong offset");return h}},3002:function(s,l,a){var c=a(9958);s.exports=function(u){var f=c(u);if(f<0)throw RangeError("The argument can't be less than 0");return f}},7593:function(s,l,a){var c=a(111);s.exports=function(u,f){if(!c(u))return u;var h,p;if(f&&typeof(h=u.toString)=="function"&&!c(p=h.call(u))||typeof(h=u.valueOf)=="function"&&!c(p=h.call(u))||!f&&typeof(h=u.toString)=="function"&&!c(p=h.call(u)))return p;throw TypeError("Can't convert object to primitive value")}},1694:function(s,l,a){var c=a(5112),u=c("toStringTag"),f={};f[u]="z",s.exports=String(f)==="[object z]"},9843:function(s,l,a){var c=a(2109),u=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),b=a(4590),M=a(7593),T=a(6656),z=a(648),U=a(111),j=a(30),P=a(7674),L=a(8006).f,V=a(7321),W=a(2092).forEach,H=a(6340),F=a(3070),$=a(1236),G=a(9909),D=a(9587),Q=G.get,te=G.set,ce=F.f,me=$.f,ge=Math.round,Ce=u.RangeError,we=m.ArrayBuffer,Te=m.DataView,ve=p.NATIVE_ARRAY_BUFFER_VIEWS,A=p.TYPED_ARRAY_TAG,O=p.TypedArray,w=p.TypedArrayPrototype,x=p.aTypedArrayConstructor,v=p.isTypedArray,E="BYTES_PER_ELEMENT",_="Wrong length",I=function(Z,X){for(var ne=0,he=X.length,Se=new(x(Z))(he);he>ne;)Se[ne]=X[ne++];return Se},R=function(Z,X){ce(Z,X,{get:function(){return Q(this)[X]}})},B=function(Z){var X;return Z instanceof we||(X=z(Z))=="ArrayBuffer"||X=="SharedArrayBuffer"},K=function(Z,X){return v(Z)&&typeof X!="symbol"&&X in Z&&String(+X)==String(X)},J=function(X,ne){return K(X,ne=M(ne,!0))?y(2,X[ne]):me(X,ne)},Y=function(X,ne,he){return K(X,ne=M(ne,!0))&&U(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||($.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}),s.exports=function(Z,X,ne){var he=Z.match(/\d+$/)[0]/8,Se=Z+(ne?"Clamped":"")+"Array",_e="get"+Z,Ve="set"+Z,Fe=u[Se],De=Fe,Je=De&&De.prototype,St={},at=function(ue,de){var Ae=Q(ue);return Ae.view[_e](de*he+Ae.byteOffset,!0)},Gn=function(ue,de,Ae){var Oe=Q(ue);ne&&(Ae=(Ae=ge(Ae))<0?0:Ae>255?255:Ae&255),Oe.view[Ve](de*he+Oe.byteOffset,Ae,!0)},q=function(ue,de){ce(ue,de,{get:function(){return at(this,de)},set:function(Ae){return Gn(this,de,Ae)},enumerable:!0})};ve?h&&(De=X(function(ue,de,Ae,Oe){return g(ue,De,Se),D(function(){return U(de)?B(de)?Oe!==void 0?new Fe(de,b(Ae,he),Oe):Ae!==void 0?new Fe(de,b(Ae,he)):new Fe(de):v(de)?I(De,de):V.call(De,de):new Fe(k(de))}(),ue,De)}),P&&P(De,O),W(L(Fe),function(ue){ue in De||C(De,ue,Fe[ue])}),De.prototype=Je):(De=X(function(ue,de,Ae,Oe){g(ue,De,Se);var He=0,je=0,gt,yt,rt;if(!U(de))rt=k(de),yt=rt*he,gt=new we(yt);else if(B(de)){gt=de,je=b(Ae,he);var cn=de.byteLength;if(Oe===void 0){if(cn%he||(yt=cn-je,yt<0))throw Ce(_)}else if(yt=S(Oe)*he,yt+je>cn)throw Ce(_);rt=yt/he}else return v(de)?I(De,de):V.call(De,de);for(te(ue,{buffer:gt,byteOffset:je,byteLength:yt,length:rt,view:new Te(gt)});He<rt;)q(ue,He++)}),P&&P(De,O),Je=De.prototype=j(w)),Je.constructor!==De&&C(Je,"constructor",De),A&&C(Je,A,Se),St[Se]=De,c({global:!0,forced:De!=Fe,sham:!ve},St),E in De||C(De,E,he),E in Je||C(Je,E,he),H(Se)}):s.exports=function(){}},3832:function(s,l,a){var c=a(7854),u=a(7293),f=a(7072),h=a(260).NATIVE_ARRAY_BUFFER_VIEWS,p=c.ArrayBuffer,m=c.Int8Array;s.exports=!h||!u(function(){m(1)})||!u(function(){new m(-1)})||!f(function(g){new m,new m(null),new m(1.5),new m(g)},!0)||u(function(){return new m(new p(2),1,void 0).length!==1})},3074:function(s,l,a){var c=a(260).aTypedArrayConstructor,u=a(6707);s.exports=function(f,h){for(var p=u(f,f.constructor),m=0,g=h.length,y=new(c(p))(g);g>m;)y[m]=h[m++];return y}},7321:function(s,l,a){var c=a(7908),u=a(7466),f=a(1246),h=a(7659),p=a(9974),m=a(260).aTypedArrayConstructor;s.exports=function(y){var C=c(y),S=arguments.length,k=S>1?arguments[1]:void 0,b=k!==void 0,M=f(C),T,z,U,j,P,L;if(M!=null&&!h(M))for(P=M.call(C),L=P.next,C=[];!(j=L.call(P)).done;)C.push(j.value);for(b&&S>2&&(k=p(k,arguments[2],2)),z=u(C.length),U=new(m(this))(z),T=0;z>T;T++)U[T]=b?k(C[T],T):C[T];return U}},9711:function(s){var l=0,a=Math.random();s.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++l+a).toString(36)}},3307:function(s,l,a){var c=a(133);s.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(s,l,a){var c=a(7854),u=a(2309),f=a(6656),h=a(9711),p=a(133),m=a(3307),g=u("wks"),y=c.Symbol,C=m?y:y&&y.withoutSetter||h;s.exports=function(S){return f(g,S)||(p&&f(y,S)?g[S]=y[S]:g[S]=C("Symbol."+S)),g[S]}},1361:function(s){s.exports=`
|
|
6
|
+
\v\f\r \u2028\u2029\uFEFF`},8264:function(s,l,a){var c=a(2109),u=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],g=u[p];c({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)},2222:function(s,l,a){var c=a(2109),u=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),b=S("isConcatSpreadable"),M=9007199254740991,T="Maximum allowed index exceeded",z=k>=51||!u(function(){var L=[];return L[b]=!1,L.concat()[0]!==L}),U=C("concat"),j=function(L){if(!h(L))return!1;var V=L[b];return V!==void 0?!!V:f(L)},P=!z||!U;c({target:"Array",proto:!0,forced:P},{concat:function(V){var W=p(this),H=y(W,0),F=0,$,G,D,Q,te;for($=-1,D=arguments.length;$<D;$++)if(te=$===-1?W:arguments[$],j(te)){if(Q=m(te.length),F+Q>M)throw TypeError(T);for(G=0;G<Q;G++,F++)G in te&&g(H,F,te[G])}else{if(F>=M)throw TypeError(T);g(H,F++,te)}return H.length=F,H}})},7327:function(s,l,a){var c=a(2109),u=a(2092).filter,f=a(1194),h=f("filter");c({target:"Array",proto:!0,forced:!h},{filter:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},2772:function(s,l,a){var c=a(2109),u=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:u(this,y,arguments.length>1?arguments[1]:void 0)}})},6992:function(s,l,a){var c=a(5656),u=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",g=h.set,y=h.getterFor(m);s.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,b=C.index++;return!S||b>=S.length?(C.target=void 0,{value:void 0,done:!0}):k=="keys"?{value:b,done:!1}:k=="values"?{value:S[b],done:!1}:{value:[b,S[b]],done:!1}},"values"),f.Arguments=f.Array,u("keys"),u("values"),u("entries")},1249:function(s,l,a){var c=a(2109),u=a(2092).map,f=a(1194),h=f("map");c({target:"Array",proto:!0,forced:!h},{map:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},7042:function(s,l,a){var c=a(2109),u=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"),b=[].slice,M=Math.max;c({target:"Array",proto:!0,forced:!S},{slice:function(z,U){var j=m(this),P=p(j.length),L=h(z,P),V=h(U===void 0?P:U,P),W,H,F;if(f(j)&&(W=j.constructor,typeof W=="function"&&(W===Array||f(W.prototype))?W=void 0:u(W)&&(W=W[k],W===null&&(W=void 0)),W===Array||W===void 0))return b.call(j,L,V);for(H=new(W===void 0?Array:W)(M(V-L,0)),F=0;L<V;L++,F++)L in j&&g(H,F,j[L]);return H.length=F,H}})},561:function(s,l,a){var c=a(2109),u=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,b=9007199254740991,M="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!C},{splice:function(z,U){var j=p(this),P=h(j.length),L=u(z,P),V=arguments.length,W,H,F,$,G,D;if(V===0?W=H=0:V===1?(W=0,H=P-L):(W=V-2,H=k(S(f(U),0),P-L)),P+W-H>b)throw TypeError(M);for(F=m(j,H),$=0;$<H;$++)G=L+$,G in j&&g(F,$,j[G]);if(F.length=H,W<H){for($=L;$<P-H;$++)G=$+H,D=$+W,G in j?j[D]=j[G]:delete j[D];for($=P;$>P-H+W;$--)delete j[$-1]}else if(W>H)for($=P-H;$>L;$--)G=$+H-1,D=$+W-1,G in j?j[D]=j[G]:delete j[D];for($=0;$<W;$++)j[$+L]=arguments[$+2];return j.length=P-H+W,F}})},8309:function(s,l,a){var c=a(9781),u=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";c&&!(m in f)&&u(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})},489:function(s,l,a){var c=a(2109),u=a(7293),f=a(7908),h=a(9518),p=a(8544),m=u(function(){h(1)});c({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(y){return h(f(y))}})},1539:function(s,l,a){var c=a(1694),u=a(1320),f=a(288);c||u(Object.prototype,"toString",f,{unsafe:!0})},4916:function(s,l,a){var c=a(2109),u=a(2261);c({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(s,l,a){var c=a(1320),u=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=u(this),b=String(k.source),M=k.flags,T=String(M===void 0&&k instanceof RegExp&&!("flags"in m)?h.call(k):M);return"/"+b+"/"+T},{unsafe:!0})},8783:function(s,l,a){var c=a(8710).charAt,u=a(9909),f=a(654),h="String Iterator",p=u.set,m=u.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(s,l,a){var c=a(7007),u=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 b=h(this),M=k==null?void 0:k[g];return M!==void 0?M.call(k,b):new RegExp(k)[g](String(b))},function(S){var k=C(y,S,this);if(k.done)return k.value;var b=u(S),M=String(this);if(!b.global)return m(b,M);var T=b.unicode;b.lastIndex=0;for(var z=[],U=0,j;(j=m(b,M))!==null;){var P=String(j[0]);z[U]=P,P===""&&(b.lastIndex=p(M,f(b.lastIndex),T)),U++}return U===0?null:z}]})},5306:function(s,l,a){var c=a(7007),u=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(b){return b===void 0?b:String(b)};c("replace",2,function(b,M,T,z){var U=z.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,j=z.REPLACE_KEEPS_$0,P=U?"$":"$0";return[function(V,W){var H=p(this),F=V==null?void 0:V[b];return F!==void 0?F.call(V,H,W):M.call(String(H),V,W)},function(L,V){if(!U&&j||typeof V=="string"&&V.indexOf(P)===-1){var W=T(M,L,this,V);if(W.done)return W.value}var H=u(L),F=String(this),$=typeof V=="function";$||(V=String(V));var G=H.global;if(G){var D=H.unicode;H.lastIndex=0}for(var Q=[];;){var te=y(H,F);if(te===null||(Q.push(te),!G))break;var ce=String(te[0]);ce===""&&(H.lastIndex=m(F,f(H.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=[],A=1;A<te.length;A++)ve.push(k(te[A]));var O=te.groups;if($){var w=[we].concat(ve,Te,F);O!==void 0&&w.push(O);var x=String(V.apply(void 0,w))}else x=g(we,F,Te,ve,O,V);Te>=ge&&(me+=F.slice(ge,Te)+x,ge=Te+we.length)}return me+F.slice(ge)}]})},3123:function(s,l,a){var c=a(7007),u=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,b=Math.min,M=4294967295,T=!S(function(){return!RegExp(M,"y")});c("split",2,function(z,U,j){var P;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?P=function(L,V){var W=String(h(this)),H=V===void 0?M:V>>>0;if(H===0)return[];if(L===void 0)return[W];if(!u(L))return U.call(W,L,H);for(var F=[],$=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(L.sticky?"y":""),G=0,D=new RegExp(L.source,$+"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>=H)));)D.lastIndex===Q.index&&D.lastIndex++;return G===W.length?(ce||!D.test(""))&&F.push(""):F.push(W.slice(G)),F.length>H?F.slice(0,H):F}:"0".split(void 0,0).length?P=function(L,V){return L===void 0&&V===0?[]:U.call(this,L,V)}:P=U,[function(V,W){var H=h(this),F=V==null?void 0:V[z];return F!==void 0?F.call(V,H,W):P.call(String(H),V,W)},function(L,V){var W=j(P,L,this,V,P!==U);if(W.done)return W.value;var H=f(L),F=String(this),$=p(H,RegExp),G=H.unicode,D=(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")+(T?"y":"g"),Q=new $(T?H:"^(?:"+H.source+")",D),te=V===void 0?M:V>>>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=b(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(s,l,a){var c=a(2109),u=a(3111).trim,f=a(6091);c({target:"String",proto:!0,forced:f("trim")},{trim:function(){return u(this)}})},2990:function(s,l,a){var c=a(260),u=a(1048),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("copyWithin",function(m,g){return u.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})},8927:function(s,l,a){var c=a(260),u=a(2092).every,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("every",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3105:function(s,l,a){var c=a(260),u=a(1285),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("fill",function(m){return u.apply(f(this),arguments)})},5035:function(s,l,a){var c=a(260),u=a(2092).filter,f=a(3074),h=c.aTypedArray,p=c.exportTypedArrayMethod;p("filter",function(g){var y=u(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,y)})},7174:function(s,l,a){var c=a(260),u=a(2092).findIndex,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("findIndex",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4345:function(s,l,a){var c=a(260),u=a(2092).find,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("find",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},2846:function(s,l,a){var c=a(260),u=a(2092).forEach,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("forEach",function(m){u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4731:function(s,l,a){var c=a(260),u=a(1318).includes,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("includes",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},7209:function(s,l,a){var c=a(260),u=a(1318).indexOf,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("indexOf",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},6319:function(s,l,a){var c=a(7854),u=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=c.Uint8Array,g=f.values,y=f.keys,C=f.entries,S=u.aTypedArray,k=u.exportTypedArrayMethod,b=m&&m.prototype[p],M=!!b&&(b.name=="values"||b.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,!M),k(p,T,!M)},8867:function(s,l,a){var c=a(260),u=c.aTypedArray,f=c.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(u(this),arguments)})},7789:function(s,l,a){var c=a(260),u=a(6583),f=c.aTypedArray,h=c.exportTypedArrayMethod;h("lastIndexOf",function(m){return u.apply(f(this),arguments)})},3739:function(s,l,a){var c=a(260),u=a(2092).map,f=a(6707),h=c.aTypedArray,p=c.aTypedArrayConstructor,m=c.exportTypedArrayMethod;m("map",function(y){return u(h(this),y,arguments.length>1?arguments[1]:void 0,function(C,S){return new(p(f(C,C.constructor)))(S)})})},4483:function(s,l,a){var c=a(260),u=a(3671).right,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduceRight",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(s,l,a){var c=a(260),u=a(3671).left,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("reduce",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(s,l,a){var c=a(260),u=c.aTypedArray,f=c.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=u(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(s,l,a){var c=a(260),u=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),b=this.length,M=h(S),T=u(M.length),z=0;if(T+k>b)throw RangeError("Wrong length");for(;z<T;)this[k+z]=M[z++]},y)},678:function(s,l,a){var c=a(260),u=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 b=g.call(h(this),S,k),M=u(this,this.constructor),T=0,z=b.length,U=new(p(M))(z);z>T;)U[T]=b[T++];return U},y)},7462:function(s,l,a){var c=a(260),u=a(2092).some,f=c.aTypedArray,h=c.exportTypedArrayMethod;h("some",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3824:function(s,l,a){var c=a(260),u=c.aTypedArray,f=c.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(u(this),m)})},5021:function(s,l,a){var c=a(260),u=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,b=f(y,k);return new(h(S,S.constructor))(S.buffer,S.byteOffset+b*S.BYTES_PER_ELEMENT,u((C===void 0?k:f(C,k))-b))})},2974:function(s,l,a){var c=a(7854),u=a(260),f=a(7293),h=c.Int8Array,p=u.aTypedArray,m=u.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(s,l,a){var c=a(260).exportTypedArrayMethod,u=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;u(function(){m.call({})})&&(m=function(){return g.call(this)});var y=p.toString!=m;c("toString",m,y)},2472:function(s,l,a){var c=a(9843);c("Uint8",function(u){return function(h,p,m){return u(this,h,p,m)}})},4747:function(s,l,a){var c=a(7854),u=a(8324),f=a(8533),h=a(8880);for(var p in u){var m=c[p],g=m&&m.prototype;if(g&&g.forEach!==f)try{h(g,"forEach",f)}catch{g.forEach=f}}},3948:function(s,l,a){var c=a(7854),u=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),g=p("toStringTag"),y=f.values;for(var C in u){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),u[C]){for(var b in f)if(k[b]!==f[b])try{h(k,b,f[b])}catch{k[b]=f[b]}}}}},1637:function(s,l,a){a(6992);var c=a(2109),u=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),b=a(648),M=a(9670),T=a(111),z=a(30),U=a(9114),j=a(8554),P=a(1246),L=a(5112),V=u("fetch"),W=u("Headers"),H=L("iterator"),F="URLSearchParams",$=F+"Iterator",G=y.set,D=y.getterFor(F),Q=y.getterFor($),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," "),B=4;try{return decodeURIComponent(R)}catch{for(;B;)R=R.replace(me(B--),ge);return R}},we=/[!'()~]|%20/g,Te={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ve=function(I){return Te[I]},A=function(I){return encodeURIComponent(I).replace(we,ve)},O=function(I,R){if(R)for(var B=R.split("&"),K=0,J,Y;K<B.length;)J=B[K++],J.length&&(Y=J.split("="),I.push({key:Ce(Y.shift()),value:Ce(Y.join("="))}))},w=function(I){this.entries.length=0,O(this.entries,I)},x=function(I,R){if(I<R)throw TypeError("Not enough arguments")},v=g(function(R,B){G(this,{type:$,iterator:j(D(R).entries),kind:B})},"Iterator",function(){var R=Q(this),B=R.kind,K=R.iterator.next(),J=K.value;return K.done||(K.value=B==="keys"?J.key:B==="values"?J.value:[J.key,J.value]),K}),E=function(){C(this,E,F);var R=arguments.length>0?arguments[0]:void 0,B=this,K=[],J,Y,Z,X,ne,he,Se,_e,Ve;if(G(B,{type:F,entries:K,updateURL:function(){},updateSearchParams:w}),R!==void 0)if(T(R))if(J=P(R),typeof J=="function")for(Y=J.call(R),Z=Y.next;!(X=Z.call(Y)).done;){if(ne=j(M(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(Ve in R)S(R,Ve)&&K.push({key:Ve,value:R[Ve]+""});else O(K,typeof R=="string"?R.charAt(0)==="?"?R.slice(1):R:R+"")},_=E.prototype;p(_,{append:function(R,B){x(arguments.length,2);var K=D(this);K.entries.push({key:R+"",value:B+""}),K.updateURL()},delete:function(I){x(arguments.length,1);for(var R=D(this),B=R.entries,K=I+"",J=0;J<B.length;)B[J].key===K?B.splice(J,1):J++;R.updateURL()},get:function(R){x(arguments.length,1);for(var B=D(this).entries,K=R+"",J=0;J<B.length;J++)if(B[J].key===K)return B[J].value;return null},getAll:function(R){x(arguments.length,1);for(var B=D(this).entries,K=R+"",J=[],Y=0;Y<B.length;Y++)B[Y].key===K&&J.push(B[Y].value);return J},has:function(R){x(arguments.length,1);for(var B=D(this).entries,K=R+"",J=0;J<B.length;)if(B[J++].key===K)return!0;return!1},set:function(R,B){x(arguments.length,1);for(var K=D(this),J=K.entries,Y=!1,Z=R+"",X=B+"",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),B=R.entries,K=B.slice(),J,Y,Z;for(B.length=0,Z=0;Z<K.length;Z++){for(J=K[Z],Y=0;Y<Z;Y++)if(B[Y].key>J.key){B.splice(Y,0,J);break}Y===Z&&B.push(J)}R.updateURL()},forEach:function(R){for(var B=D(this).entries,K=k(R,arguments.length>1?arguments[1]:void 0,3),J=0,Y;J<B.length;)Y=B[J++],K(Y.value,Y.key,this)},keys:function(){return new v(this,"keys")},values:function(){return new v(this,"values")},entries:function(){return new v(this,"entries")}},{enumerable:!0}),h(_,H,_.entries),h(_,"toString",function(){for(var R=D(this).entries,B=[],K=0,J;K<R.length;)J=R[K++],B.push(A(J.key)+"="+A(J.value));return B.join("&")},{enumerable:!0}),m(E,F),c({global:!0,forced:!f},{URLSearchParams:E}),!f&&typeof V=="function"&&typeof W=="function"&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(R){var B=[R],K,J,Y;return arguments.length>1&&(K=arguments[1],T(K)&&(J=K.body,b(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=z(K,{body:U(0,String(J)),headers:U(0,Y)}))),B.push(K)),V.apply(this,B)}}),s.exports={URLSearchParams:E,getState:D}},285:function(s,l,a){a(8783);var c=a(2109),u=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,b=a(3197),M=a(8003),T=a(1637),z=a(9909),U=h.URL,j=T.URLSearchParams,P=T.getState,L=z.set,V=z.getterFor("URL"),W=Math.floor,H=Math.pow,F="Invalid authority",$="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 #/:?@[\\]]/,A=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,O=/[\t\u000A\u000D]/g,w,x=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=b(re),Te.test(re)||(ee=v(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}},v=function(N){var re=N.split("."),ee,oe,le,Me,Ee,Pe,Ue;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==="")Pe=0;else{if(!(Ee==10?Ce:Ee==8?ge:we).test(Me))return N;Pe=parseInt(Me,Ee)}oe.push(Pe)}for(le=0;le<ee;le++)if(Pe=oe[le],le==ee-1){if(Pe>=H(256,5-ee))return null}else if(Pe>255)return null;for(Ue=oe.pop(),le=0;le<oe.length;le++)Ue+=oe[le]*H(256,3-le);return Ue},E=function(N){var re=[0,0,0,0,0,0,0,0],ee=0,oe=null,le=0,Me,Ee,Pe,Ue,Ye,Ht,se,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(Pe=0;qe();){if(Ue=null,Pe>0)if(qe()=="."&&Pe<4)le++;else return;if(!ce.test(qe()))return;for(;ce.test(qe());){if(Ye=parseInt(qe(),10),Ue===null)Ue=Ye;else{if(Ue==0)return;Ue=Ue*10+Ye}if(Ue>255)return;le++}re[ee]=re[ee]*256+Ue,Pe++,(Pe==2||Pe==4)&&ee++}if(Pe!=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;)se=re[ee],re[ee--]=re[oe+Ht-1],re[oe+--Ht]=se;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={},B=C({},R,{" ":1,'"':1,"<":1,">":1,"`":1}),K=C({},B,{"#":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==="#")},Ve=function(N){var re=N.path,ee=re.length;ee&&(N.scheme!="file"||ee!=1||!Se(re[0],!0))&&re.pop()},Fe=function(N){return N==="."||N.toLowerCase()==="%2e"},De=function(N){return N=N.toLowerCase(),N===".."||N==="%2e."||N===".%2e"||N==="%2e%2e"},Je={},St={},at={},Gn={},q={},ue={},de={},Ae={},Oe={},He={},je={},gt={},yt={},rt={},cn={},Jn={},Mt={},Ft={},fo={},Vt={},Cn={},un=function(N,re,ee,oe){var le=ee||Je,Me=0,Ee="",Pe=!1,Ue=!1,Ye=!1,Ht,se,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(A,"")),re=re.replace(O,""),Ht=S(re);Me<=Ht.length;){switch(se=Ht[Me],le){case Je:if(se&&Q.test(se))Ee+=se.toLowerCase(),le=St;else{if(ee)return $;le=at;continue}break;case St:if(se&&(te.test(se)||se=="+"||se=="-"||se=="."))Ee+=se.toLowerCase();else if(se==":"){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=Ae:Ht[Me+1]=="/"?(le=q,Me++):(N.cannotBeABaseURL=!0,N.path.push(""),le=fo)}else{if(ee)return $;Ee="",le=at,Me=0;continue}break;case at:if(!oe||oe.cannotBeABaseURL&&se!="#")return $;if(oe.cannotBeABaseURL&&se=="#"){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:ue;continue;case Gn:if(se=="/"&&Ht[Me+1]=="/")le=Oe,Me++;else{le=ue;continue}break;case q:if(se=="/"){le=He;break}else{le=Ft;continue}case ue:if(N.scheme=oe.scheme,se==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(se=="/"||se=="\\"&&X(N))le=de;else if(se=="?")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(se=="#")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 de:if(X(N)&&(se=="/"||se=="\\"))le=Oe;else if(se=="/")le=He;else{N.username=oe.username,N.password=oe.password,N.host=oe.host,N.port=oe.port,le=Ft;continue}break;case Ae:if(le=Oe,se!="/"||Ee.charAt(Me+1)!="/")continue;Me++;break;case Oe:if(se!="/"&&se!="\\"){le=He;continue}break;case He:if(se=="@"){Pe&&(Ee="%40"+Ee),Pe=!0,qe=S(Ee);for(var Yc=0;Yc<qe.length;Yc++){var e1=qe[Yc];if(e1==":"&&!Ye){Ye=!0;continue}var t1=Y(e1,J);Ye?N.password+=t1:N.username+=t1}Ee=""}else if(se==w||se=="/"||se=="?"||se=="#"||se=="\\"&&X(N)){if(Pe&&Ee=="")return F;Me-=S(Ee).length+1,Ee="",le=je}else Ee+=se;break;case je:case gt:if(ee&&N.scheme=="file"){le=Jn;continue}else if(se==":"&&!Ue){if(Ee=="")return G;if(Sn=x(N,Ee),Sn)return Sn;if(Ee="",le=yt,ee==gt)return}else if(se==w||se=="/"||se=="?"||se=="#"||se=="\\"&&X(N)){if(X(N)&&Ee=="")return G;if(ee&&Ee==""&&(ne(N)||N.port!==null))return;if(Sn=x(N,Ee),Sn)return Sn;if(Ee="",le=Mt,ee)return;continue}else se=="["?Ue=!0:se=="]"&&(Ue=!1),Ee+=se;break;case yt:if(ce.test(se))Ee+=se;else if(se==w||se=="/"||se=="?"||se=="#"||se=="\\"&&X(N)||ee){if(Ee!=""){var Gc=parseInt(Ee,10);if(Gc>65535)return D;N.port=X(N)&&Gc===Z[N.scheme]?null:Gc,Ee=""}if(ee)return;le=Mt;continue}else return D;break;case rt:if(N.scheme="file",se=="/"||se=="\\")le=cn;else if(oe&&oe.scheme=="file")if(se==w)N.host=oe.host,N.path=oe.path.slice(),N.query=oe.query;else if(se=="?")N.host=oe.host,N.path=oe.path.slice(),N.query="",le=Vt;else if(se=="#")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(),Ve(N)),le=Ft;continue}else{le=Ft;continue}break;case cn:if(se=="/"||se=="\\"){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(se==w||se=="/"||se=="\\"||se=="?"||se=="#"){if(!ee&&Se(Ee))le=Ft;else if(Ee==""){if(N.host="",ee)return;le=Mt}else{if(Sn=x(N,Ee),Sn)return Sn;if(N.host=="localhost"&&(N.host=""),ee)return;Ee="",le=Mt}continue}else Ee+=se;break;case Mt:if(X(N)){if(le=Ft,se!="/"&&se!="\\")continue}else if(!ee&&se=="?")N.query="",le=Vt;else if(!ee&&se=="#")N.fragment="",le=Cn;else if(se!=w&&(le=Ft,se!="/"))continue;break;case Ft:if(se==w||se=="/"||se=="\\"&&X(N)||!ee&&(se=="?"||se=="#")){if(De(Ee)?(Ve(N),se!="/"&&!(se=="\\"&&X(N))&&N.path.push("")):Fe(Ee)?se!="/"&&!(se=="\\"&&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"&&(se==w||se=="?"||se=="#"))for(;N.path.length>1&&N.path[0]==="";)N.path.shift();se=="?"?(N.query="",le=Vt):se=="#"&&(N.fragment="",le=Cn)}else Ee+=Y(se,K);break;case fo:se=="?"?(N.query="",le=Vt):se=="#"?(N.fragment="",le=Cn):se!=w&&(N.path[0]+=Y(se,R));break;case Vt:!ee&&se=="#"?(N.fragment="",le=Cn):se!=w&&(se=="'"&&X(N)?N.query+="%27":se=="#"?N.query+="%23":N.query+=Y(se,R));break;case Cn:se!=w&&(N.fragment+=Y(se,B));break}Me++}},wr=function(re){var ee=g(this,wr,"URL"),oe=arguments.length>1?arguments[1]:void 0,le=String(re),Me=L(ee,{type:"URL"}),Ee,Pe;if(oe!==void 0){if(oe instanceof wr)Ee=V(oe);else if(Pe=un(Ee={},String(oe)),Pe)throw TypeError(Pe)}if(Pe=un(Me,le,null,Ee),Pe)throw TypeError(Pe);var Ue=Me.searchParams=new j,Ye=P(Ue);Ye.updateSearchParams(Me.query),Ye.updateURL=function(){Me.query=String(Ue)||null},u||(ee.href=la.call(ee),ee.origin=zm.call(ee),ee.protocol=Hm.call(ee),ee.username=Um.call(ee),ee.password=jm.call(ee),ee.host=Wm.call(ee),ee.hostname=Km.call(ee),ee.port=Ym.call(ee),ee.pathname=Gm.call(ee),ee.search=Jm.call(ee),ee.searchParams=Zm.call(ee),ee.hash=Xm.call(ee))},Kc=wr.prototype,la=function(){var N=V(this),re=N.scheme,ee=N.username,oe=N.password,le=N.host,Me=N.port,Ee=N.path,Pe=N.query,Ue=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("/"):"",Pe!==null&&(Ye+="?"+Pe),Ue!==null&&(Ye+="#"+Ue),Ye},zm=function(){var N=V(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:"")},Hm=function(){return V(this).scheme+":"},Um=function(){return V(this).username},jm=function(){return V(this).password},Wm=function(){var N=V(this),re=N.host,ee=N.port;return re===null?"":ee===null?I(re):I(re)+":"+ee},Km=function(){var N=V(this).host;return N===null?"":I(N)},Ym=function(){var N=V(this).port;return N===null?"":String(N)},Gm=function(){var N=V(this),re=N.path;return N.cannotBeABaseURL?re[0]:re.length?"/"+re.join("/"):""},Jm=function(){var N=V(this).query;return N?"?"+N:""},Zm=function(){return V(this).searchParams},Xm=function(){var N=V(this).fragment;return N?"#"+N:""},zt=function(N,re){return{get:N,set:re,configurable:!0,enumerable:!0}};if(u&&p(Kc,{href:zt(la,function(N){var re=V(this),ee=String(N),oe=un(re,ee);if(oe)throw TypeError(oe);P(re.searchParams).updateSearchParams(re.query)}),origin:zt(zm),protocol:zt(Hm,function(N){var re=V(this);un(re,String(N)+":",Je)}),username:zt(Um,function(N){var re=V(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(jm,function(N){var re=V(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(Wm,function(N){var re=V(this);re.cannotBeABaseURL||un(re,String(N),je)}),hostname:zt(Km,function(N){var re=V(this);re.cannotBeABaseURL||un(re,String(N),gt)}),port:zt(Ym,function(N){var re=V(this);he(re)||(N=String(N),N==""?re.port=null:un(re,N,yt))}),pathname:zt(Gm,function(N){var re=V(this);re.cannotBeABaseURL||(re.path=[],un(re,N+"",Mt))}),search:zt(Jm,function(N){var re=V(this);N=String(N),N==""?re.query=null:(N.charAt(0)=="?"&&(N=N.slice(1)),re.query="",un(re,N,Vt)),P(re.searchParams).updateSearchParams(re.query)}),searchParams:zt(Zm),hash:zt(Xm,function(N){var re=V(this);if(N=String(N),N==""){re.fragment=null;return}N.charAt(0)=="#"&&(N=N.slice(1)),re.fragment="",un(re,N,Cn)})}),m(Kc,"toJSON",function(){return la.call(this)},{enumerable:!0}),m(Kc,"toString",function(){return la.call(this)},{enumerable:!0}),U){var Qm=U.createObjectURL,qm=U.revokeObjectURL;Qm&&m(wr,"createObjectURL",function(re){return Qm.apply(U,arguments)}),qm&&m(wr,"revokeObjectURL",function(re){return qm.apply(U,arguments)})}M(wr,"URL"),c({global:!0,forced:!f,sham:!u},{URL:wr})}},r={};function o(s){if(r[s])return r[s].exports;var l=r[s]={exports:{}};return t[s](l,l.exports,o),l.exports}(function(){o.d=function(s,l){for(var a in l)o.o(l,a)&&!o.o(s,a)&&Object.defineProperty(s,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(s,l){return Object.prototype.hasOwnProperty.call(s,l)}}(),function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var i={};return function(){o.r(i),o.d(i,{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 s(A,O){var w;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(w=l(A))||O&&A&&typeof A.length=="number"){w&&(A=w);var x=0,v=function(){};return{s:v,n:function(){return x>=A.length?{done:!0}:{done:!1,value:A[x++]}},e:function(B){throw B},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,_=!1,I;return{s:function(){w=A[Symbol.iterator]()},n:function(){var B=w.next();return E=B.done,B},e:function(B){_=!0,I=B},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(_)throw I}}}}function l(A,O){if(A){if(typeof A=="string")return a(A,O);var w=Object.prototype.toString.call(A).slice(8,-1);if(w==="Object"&&A.constructor&&(w=A.constructor.name),w==="Map"||w==="Set")return Array.from(A);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return a(A,O)}}function a(A,O){(O==null||O>A.length)&&(O=A.length);for(var w=0,x=new Array(O);w<O;w++)x[w]=A[w];return x}function c(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}function u(A,O){for(var w=0;w<O.length;w++){var x=O[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}function f(A,O,w){return O&&u(A.prototype,O),w&&u(A,w),A}var h=function(){function A(){c(this,A)}return f(A,[{key:"on",value:function(w,x){return this._callbacks=this._callbacks||{},this._callbacks[w]||(this._callbacks[w]=[]),this._callbacks[w].push(x),this}},{key:"emit",value:function(w){this._callbacks=this._callbacks||{};for(var x=this._callbacks[w],v=arguments.length,E=new Array(v>1?v-1:0),_=1;_<v;_++)E[_-1]=arguments[_];if(x){var I=s(x,!0),R;try{for(I.s();!(R=I.n()).done;){var B=R.value;B.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,x){var v={bubbles:!0,cancelable:!0,detail:x};if(typeof window.CustomEvent=="function")return new CustomEvent(w,v);var E=document.createEvent("CustomEvent");return E.initCustomEvent(w,v.bubbles,v.cancelable,v.detail),E}},{key:"off",value:function(w,x){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var v=this._callbacks[w];if(!v)return this;if(arguments.length===1)return delete this._callbacks[w],this;for(var E=0;E<v.length;E++){var _=v[E];if(_===x){v.splice(E,1);break}}return this}}]),A}(),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(A,O){var w;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(w=y(A))||O&&A&&typeof A.length=="number"){w&&(A=w);var x=0,v=function(){};return{s:v,n:function(){return x>=A.length?{done:!0}:{done:!1,value:A[x++]}},e:function(B){throw B},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,_=!1,I;return{s:function(){w=A[Symbol.iterator]()},n:function(){var B=w.next();return E=B.done,B},e:function(B){_=!0,I=B},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(_)throw I}}}}function y(A,O){if(A){if(typeof A=="string")return C(A,O);var w=Object.prototype.toString.call(A).slice(8,-1);if(w==="Object"&&A.constructor&&(w=A.constructor.name),w==="Map"||w==="Set")return Array.from(A);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return C(A,O)}}function C(A,O){(O==null||O>A.length)&&(O=A.length);for(var w=0,x=new Array(O);w<O;w++)x[w]=A[w];return x}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(O,w,x){if(x)return{dzuuid:x.file.upload.uuid,dzchunkindex:x.index,dztotalfilesize:x.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:x.file.upload.totalChunkCount,dzchunkbyteoffset:x.index*this.options.chunkSize}},accept:function(O,w){return w()},chunksUploaded:function(O,w){w()},fallback:function(){var O;this.element.className="".concat(this.element.className," dz-browser-not-supported");var w=g(this.element.getElementsByTagName("div"),!0),x;try{for(w.s();!(x=w.n()).done;){var v=x.value;if(/(^| )dz-message($| )/.test(v.className)){O=v,v.className="dz-message";break}}}catch(_){w.e(_)}finally{w.f()}O||(O=D.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(O));var E=O.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(O,w,x,v){var E={srcX:0,srcY:0,srcWidth:O.width,srcHeight:O.height},_=O.width/O.height;w==null&&x==null?(w=E.srcWidth,x=E.srcHeight):w==null?w=x*_:x==null&&(x=w/_),w=Math.min(w,E.srcWidth),x=Math.min(x,E.srcHeight);var I=w/x;if(E.srcWidth>w||E.srcHeight>x)if(v==="crop")_>I?(E.srcHeight=O.height,E.srcWidth=E.srcHeight*I):(E.srcWidth=O.width,E.srcHeight=E.srcWidth/I);else if(v==="contain")_>I?x=w/_:w=x*_;else throw new Error("Unknown resizeMethod '".concat(v,"'"));return E.srcX=(O.width-E.srcWidth)/2,E.srcY=(O.height-E.srcHeight)/2,E.trgWidth=w,E.trgHeight=x,E},transformFile:function(O,w){return(this.options.resizeWidth||this.options.resizeHeight)&&O.type.match(/image.*/)?this.resizeImage(O,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,w):w(O)},previewTemplate:m,drop:function(O){return this.element.classList.remove("dz-drag-hover")},dragstart:function(O){},dragend:function(O){return this.element.classList.remove("dz-drag-hover")},dragenter:function(O){return this.element.classList.add("dz-drag-hover")},dragover:function(O){return this.element.classList.add("dz-drag-hover")},dragleave:function(O){return this.element.classList.remove("dz-drag-hover")},paste:function(O){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(O){var w=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){O.previewElement=D.createElement(this.options.previewTemplate.trim()),O.previewTemplate=O.previewElement,this.previewsContainer.appendChild(O.previewElement);var x=g(O.previewElement.querySelectorAll("[data-dz-name]"),!0),v;try{for(x.s();!(v=x.n()).done;){var E=v.value;E.textContent=O.name}}catch(Y){x.e(Y)}finally{x.f()}var _=g(O.previewElement.querySelectorAll("[data-dz-size]"),!0),I;try{for(_.s();!(I=_.n()).done;)E=I.value,E.innerHTML=this.filesize(O.size)}catch(Y){_.e(Y)}finally{_.f()}this.options.addRemoveLinks&&(O._removeLink=D.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),O.previewElement.appendChild(O._removeLink));var R=function(Z){return Z.preventDefault(),Z.stopPropagation(),O.status===D.UPLOADING?D.confirm(w.options.dictCancelUploadConfirmation,function(){return w.removeFile(O)}):w.options.dictRemoveFileConfirmation?D.confirm(w.options.dictRemoveFileConfirmation,function(){return w.removeFile(O)}):w.removeFile(O)},B=g(O.previewElement.querySelectorAll("[data-dz-remove]"),!0),K;try{for(B.s();!(K=B.n()).done;){var J=K.value;J.addEventListener("click",R)}}catch(Y){B.e(Y)}finally{B.f()}}},removedfile:function(O){return O.previewElement!=null&&O.previewElement.parentNode!=null&&O.previewElement.parentNode.removeChild(O.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(O,w){if(O.previewElement){O.previewElement.classList.remove("dz-file-preview");var x=g(O.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),v;try{for(x.s();!(v=x.n()).done;){var E=v.value;E.alt=O.name,E.src=w}}catch(_){x.e(_)}finally{x.f()}return setTimeout(function(){return O.previewElement.classList.add("dz-image-preview")},1)}},error:function(O,w){if(O.previewElement){O.previewElement.classList.add("dz-error"),typeof w!="string"&&w.error&&(w=w.error);var x=g(O.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),v;try{for(x.s();!(v=x.n()).done;){var E=v.value;E.textContent=w}}catch(_){x.e(_)}finally{x.f()}}},errormultiple:function(){},processing:function(O){if(O.previewElement&&(O.previewElement.classList.add("dz-processing"),O._removeLink))return O._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(O,w,x){if(O.previewElement){var v=g(O.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),E;try{for(v.s();!(E=v.n()).done;){var _=E.value;_.nodeName==="PROGRESS"?_.value=w:_.style.width="".concat(w,"%")}}catch(I){v.e(I)}finally{v.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(O){if(O.previewElement)return O.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(O){return this.emit("error",O,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(O){if(O._removeLink&&(O._removeLink.innerHTML=this.options.dictRemoveFile),O.previewElement)return O.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},k=S;function b(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(w){return typeof w}:b=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},b(A)}function M(A,O){var w;if(typeof Symbol>"u"||A[Symbol.iterator]==null){if(Array.isArray(A)||(w=T(A))||O&&A&&typeof A.length=="number"){w&&(A=w);var x=0,v=function(){};return{s:v,n:function(){return x>=A.length?{done:!0}:{done:!1,value:A[x++]}},e:function(B){throw B},f:v}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
9
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,_=!1,I;return{s:function(){w=A[Symbol.iterator]()},n:function(){var B=w.next();return E=B.done,B},e:function(B){_=!0,I=B},f:function(){try{!E&&w.return!=null&&w.return()}finally{if(_)throw I}}}}function T(A,O){if(A){if(typeof A=="string")return z(A,O);var w=Object.prototype.toString.call(A).slice(8,-1);if(w==="Object"&&A.constructor&&(w=A.constructor.name),w==="Map"||w==="Set")return Array.from(A);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return z(A,O)}}function z(A,O){(O==null||O>A.length)&&(O=A.length);for(var w=0,x=new Array(O);w<O;w++)x[w]=A[w];return x}function U(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}function j(A,O){for(var w=0;w<O.length;w++){var x=O[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(A,x.key,x)}}function P(A,O,w){return O&&j(A.prototype,O),w&&j(A,w),A}function L(A,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(O&&O.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),O&&V(A,O)}function V(A,O){return V=Object.setPrototypeOf||function(x,v){return x.__proto__=v,x},V(A,O)}function W(A){var O=$();return function(){var x=G(A),v;if(O){var E=G(this).constructor;v=Reflect.construct(x,arguments,E)}else v=x.apply(this,arguments);return H(this,v)}}function H(A,O){return O&&(b(O)==="object"||typeof O=="function")?O:F(A)}function F(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function $(){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(A){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},G(A)}var D=function(A){L(w,A);var O=W(w);function w(x,v){var E;U(this,w),E=O.call(this);var _,I;if(E.element=x,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,v??{}),E.options.previewTemplate=E.options.previewTemplate.replace(/\n*/g,""),E.options.forceFallback||!w.isBrowserSupported())return H(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(B){return E.options.renameFilename.call(F(E),B.name,B)}),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 P(w,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(v){return v.accepted}).map(function(v){return v})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(v){return!v.accepted}).map(function(v){return v})}},{key:"getFilesWithStatus",value:function(v){return this.files.filter(function(E){return E.status===v}).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(v){return v.status===w.UPLOADING||v.status===w.QUEUED}).map(function(v){return v})}},{key:"init",value:function(){var v=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(){v.hiddenFileInput&&v.hiddenFileInput.parentNode.removeChild(v.hiddenFileInput),v.hiddenFileInput=document.createElement("input"),v.hiddenFileInput.setAttribute("type","file"),(v.options.maxFiles===null||v.options.maxFiles>1)&&v.hiddenFileInput.setAttribute("multiple","multiple"),v.hiddenFileInput.className="dz-hidden-input",v.options.acceptedFiles!==null&&v.hiddenFileInput.setAttribute("accept",v.options.acceptedFiles),v.options.capture!==null&&v.hiddenFileInput.setAttribute("capture",v.options.capture),v.hiddenFileInput.setAttribute("tabindex","-1"),v.hiddenFileInput.style.visibility="hidden",v.hiddenFileInput.style.position="absolute",v.hiddenFileInput.style.top="0",v.hiddenFileInput.style.left="0",v.hiddenFileInput.style.height="0",v.hiddenFileInput.style.width="0",w.getElement(v.options.hiddenInputContainer,"hiddenInputContainer").appendChild(v.hiddenFileInput),v.hiddenFileInput.addEventListener("change",function(){var Y=v.hiddenFileInput.files;if(Y.length){var Z=M(Y,!0),X;try{for(Z.s();!(X=Z.n()).done;){var ne=X.value;v.addFile(ne)}}catch(he){Z.e(he)}finally{Z.f()}}v.emit("addedfiles",Y),J()})};E()}this.URL=window.URL!==null?window.URL:window.webkitURL;var _=M(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 v.updateTotalUploadProgress()}),this.on("removedfile",function(){return v.updateTotalUploadProgress()}),this.on("canceled",function(J){return v.emit("complete",J)}),this.on("complete",function(J){if(v.getAddedFiles().length===0&&v.getUploadingFiles().length===0&&v.getQueuedFiles().length===0)return setTimeout(function(){return v.emit("queuecomplete")},0)});var B=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(B(Y))return Y.stopPropagation(),Y.preventDefault?Y.preventDefault():Y.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Y){return v.emit("dragstart",Y)},dragenter:function(Y){return K(Y),v.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),v.emit("dragover",Y)},dragleave:function(Y){return v.emit("dragleave",Y)},drop:function(Y){return K(Y),v.drop(Y)},dragend:function(Y){return v.emit("dragend",Y)}}}],this.clickableElements.forEach(function(J){return v.listeners.push({element:J,events:{click:function(Z){return(J!==v.element||Z.target===v.element||w.elementInside(Z.target,v.element.querySelector(".dz-message")))&&v.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 v,E=0,_=0,I=this.getActiveFiles();if(I.length){var R=M(this.getActiveFiles(),!0),B;try{for(R.s();!(B=R.n()).done;){var K=B.value;E+=K.upload.bytesSent,_+=K.upload.total}}catch(J){R.e(J)}finally{R.f()}v=100*E/_}else v=100;return this.emit("totaluploadprogress",v,_,E)}},{key:"_getParamName",value:function(v){return typeof this.options.paramName=="function"?this.options.paramName(v):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(v,"]"):"")}},{key:"_renameFile",value:function(v){return typeof this.options.renameFile!="function"?v.name:this.options.renameFile(v)}},{key:"getFallbackForm",value:function(){var v,E;if(v=this.getExistingFallback())return v;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 v=function(K){var J=M(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=v(this.element.getElementsByTagName(I)))return R}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(v){return function(){var E=[];for(var _ in v.events){var I=v.events[_];E.push(v.element.addEventListener(_,I,!1))}return E}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(v){return function(){var E=[];for(var _ in v.events){var I=v.events[_];E.push(v.element.removeEventListener(_,I,!1))}return E}()})}},{key:"disable",value:function(){var v=this;return this.clickableElements.forEach(function(E){return E.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(E){return v.cancelUpload(E)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(v){return v.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(v){var E=0,_="b";if(v>0){for(var I=["tb","gb","mb","kb","b"],R=0;R<I.length;R++){var B=I[R],K=Math.pow(this.options.filesizeBase,4-R)/10;if(v>=K){E=v/Math.pow(this.options.filesizeBase,4-R),_=B;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(v){if(v.dataTransfer){this.emit("drop",v);for(var E=[],_=0;_<v.dataTransfer.files.length;_++)E[_]=v.dataTransfer.files[_];if(E.length){var I=v.dataTransfer.items;I&&I.length&&I[0].webkitGetAsEntry!=null?this._addFilesFromItems(I):this.handleFiles(E)}this.emit("addedfiles",E)}}},{key:"paste",value:function(v){if(we(v!=null?v.clipboardData:void 0,function(_){return _.items})!=null){this.emit("paste",v);var E=v.clipboardData.items;if(E.length)return this._addFilesFromItems(E)}}},{key:"handleFiles",value:function(v){var E=M(v,!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(v){var E=this;return function(){var _=[],I=M(v,!0),R;try{for(I.s();!(R=I.n()).done;){var B=R.value,K;B.webkitGetAsEntry!=null&&(K=B.webkitGetAsEntry())?K.isFile?_.push(E.addFile(B.getAsFile())):K.isDirectory?_.push(E._addFilesFromDirectory(K,K.name)):_.push(void 0):B.getAsFile!=null&&(B.kind==null||B.kind==="file")?_.push(E.addFile(B.getAsFile())):_.push(void 0)}}catch(J){I.e(J)}finally{I.f()}return _}()}},{key:"_addFilesFromDirectory",value:function(v,E){var _=this,I=v.createReader(),R=function(J){return Te(console,"log",function(Y){return Y.log(J)})},B=function K(){return I.readEntries(function(J){if(J.length>0){var Y=M(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 B()}},{key:"accept",value:function(v,E){this.options.maxFilesize&&v.size>this.options.maxFilesize*1024*1024?E(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(v.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):w.isValidFile(v,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",v)):this.options.accept.call(this,v,E):E(this.options.dictInvalidFileType)}},{key:"addFile",value:function(v){var E=this;v.upload={uuid:w.uuidv4(),progress:0,total:v.size,bytesSent:0,filename:this._renameFile(v)},this.files.push(v),v.status=w.ADDED,this.emit("addedfile",v),this._enqueueThumbnail(v),this.accept(v,function(_){_?(v.accepted=!1,E._errorProcessing([v],_)):(v.accepted=!0,E.options.autoQueue&&E.enqueueFile(v)),E._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(v){var E=M(v,!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(v){var E=this;if(v.status===w.ADDED&&v.accepted===!0){if(v.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(v){var E=this;if(this.options.createImageThumbnails&&v.type.match(/image.*/)&&v.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(v),setTimeout(function(){return E._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var v=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 v.emit("thumbnail",E,_),v._processingThumbnail=!1,v._processThumbnailQueue()})}}},{key:"removeFile",value:function(v){if(v.status===w.UPLOADING&&this.cancelUpload(v),this.files=Q(this.files,v),this.emit("removedfile",v),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(v){v==null&&(v=!1);var E=M(this.files.slice(),!0),_;try{for(E.s();!(_=E.n()).done;){var I=_.value;(I.status!==w.UPLOADING||v)&&this.removeFile(I)}}catch(R){E.e(R)}finally{E.f()}return null}},{key:"resizeImage",value:function(v,E,_,I,R){var B=this;return this.createThumbnail(v,E,_,I,!0,function(K,J){if(J==null)return R(v);var Y=B.options.resizeMimeType;Y==null&&(Y=v.type);var Z=J.toDataURL(Y,B.options.resizeQuality);return(Y==="image/jpeg"||Y==="image/jpg")&&(Z=ge.restore(v.dataURL,Z)),R(w.dataURItoBlob(Z))})}},{key:"createThumbnail",value:function(v,E,_,I,R,B){var K=this,J=new FileReader;J.onload=function(){if(v.dataURL=J.result,v.type==="image/svg+xml"){B!=null&&B(J.result);return}K.createThumbnailFromUrl(v,E,_,I,R,B)},J.readAsDataURL(v)}},{key:"displayExistingFile",value:function(v,E,_,I){var R=this,B=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",v),this.emit("complete",v),!B)this.emit("thumbnail",v,E),_&&_();else{var K=function(Y){R.emit("thumbnail",v,Y),_&&_()};v.dataURL=E,this.createThumbnailFromUrl(v,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,K,I)}}},{key:"createThumbnailFromUrl",value:function(v,E,_,I,R,B,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){v.width=Y.width,v.height=Y.height;var ne=J.options.resize.call(J,v,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(B!=null)return B(_e,he)})},B!=null&&(Y.onerror=B),Y.src=v.dataURL}},{key:"processQueue",value:function(){var v=this.options.parallelUploads,E=this.getUploadingFiles().length,_=E;if(!(E>=v)){var I=this.getQueuedFiles();if(I.length>0){if(this.options.uploadMultiple)return this.processFiles(I.slice(0,v-E));for(;_<v;){if(!I.length)return;this.processFile(I.shift()),_++}}}}},{key:"processFile",value:function(v){return this.processFiles([v])}},{key:"processFiles",value:function(v){var E=M(v,!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",v),this.uploadFiles(v)}},{key:"_getFilesWithXhr",value:function(v){return this.files.filter(function(E){return E.xhr===v}).map(function(E){return E})}},{key:"cancelUpload",value:function(v){if(v.status===w.UPLOADING){var E=this._getFilesWithXhr(v.xhr),_=M(E,!0),I;try{for(_.s();!(I=_.n()).done;){var R=I.value;R.status=w.CANCELED}}catch(Y){_.e(Y)}finally{_.f()}typeof v.xhr<"u"&&v.xhr.abort();var B=M(E,!0),K;try{for(B.s();!(K=B.n()).done;){var J=K.value;this.emit("canceled",J)}}catch(Y){B.e(Y)}finally{B.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",E)}else(v.status===w.ADDED||v.status===w.QUEUED)&&(v.status=w.CANCELED,this.emit("canceled",v),this.options.uploadMultiple&&this.emit("canceledmultiple",[v]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(v){if(typeof v=="function"){for(var E=arguments.length,_=new Array(E>1?E-1:0),I=1;I<E;I++)_[I-1]=arguments[I];return v.apply(this,_)}return v}},{key:"uploadFile",value:function(v){return this.uploadFiles([v])}},{key:"uploadFiles",value:function(v){var E=this;this._transformFiles(v,function(_){if(E.options.chunking){var I=_[0];v[0].upload.chunked=E.options.chunking&&(E.options.forceChunking||I.size>E.options.chunkSize),v[0].upload.totalChunkCount=Math.ceil(I.size/E.options.chunkSize)}if(v[0].upload.chunked){var R=v[0],B=_[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,B.size),_e={name:E._getParamName(0),data:B.webkitSlice?B.webkitSlice(he,Se):B.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(v,[_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(v,ne,null)})},E.options.parallelChunkUploads)for(var J=0;J<R.upload.totalChunkCount;J++)K();else K()}else{for(var Y=[],Z=0;Z<v.length;Z++)Y[Z]={name:E._getParamName(Z),data:_[Z],filename:v[Z].upload.filename};E._uploadData(v,Y)}})}},{key:"_getChunk",value:function(v,E){for(var _=0;_<v.upload.totalChunkCount;_++)if(v.upload.chunks[_]!==void 0&&v.upload.chunks[_].xhr===E)return v.upload.chunks[_]}},{key:"_uploadData",value:function(v,E){var _=this,I=new XMLHttpRequest,R=M(v,!0),B;try{for(R.s();!(B=R.n()).done;){var K=B.value;K.xhr=I}}catch(de){R.e(de)}finally{R.f()}v[0].upload.chunked&&(v[0].upload.chunks[E[0].chunkIndex].xhr=I);var J=this.resolveOption(this.options.method,v),Y=this.resolveOption(this.options.url,v);I.open(J,Y,!0);var Z=this.resolveOption(this.options.timeout,v);Z&&(I.timeout=this.resolveOption(this.options.timeout,v)),I.withCredentials=!!this.options.withCredentials,I.onload=function(de){_._finishedUploading(v,I,de)},I.ontimeout=function(){_._handleUploadError(v,I,"Request timedout after ".concat(_.options.timeout/1e3," seconds"))},I.onerror=function(){_._handleUploadError(v,I)};var X=I.upload!=null?I.upload:I;X.onprogress=function(de){return _._updateFilesUploadProgress(v,I,de)};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 Ve=this.options.params;typeof Ve=="function"&&(Ve=Ve.call(this,v,I,v[0].upload.chunked?this._getChunk(v[0],I):null));for(var Fe in Ve){var De=Ve[Fe];if(Array.isArray(De))for(var Je=0;Je<De.length;Je++)_e.append(Fe,De[Je]);else _e.append(Fe,De)}}var St=M(v,!0),at;try{for(St.s();!(at=St.n()).done;){var Gn=at.value;this.emit("sending",Gn,I,_e)}}catch(de){St.e(de)}finally{St.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",v,I,_e),this._addFormElementData(_e);for(var q=0;q<E.length;q++){var ue=E[q];_e.append(ue.name,ue.data,ue.filename)}this.submitRequest(I,_e,v)}},{key:"_transformFiles",value:function(v,E){for(var _=this,I=[],R=0,B=function(Y){_.options.transformFile.call(_,v[Y],function(Z){I[Y]=Z,++R===v.length&&E(I)})},K=0;K<v.length;K++)B(K)}},{key:"_addFormElementData",value:function(v){if(this.element.tagName==="FORM"){var E=M(this.element.querySelectorAll("input, textarea, select, button"),!0),_;try{for(E.s();!(_=E.n()).done;){var I=_.value,R=I.getAttribute("name"),B=I.getAttribute("type");if(B&&(B=B.toLowerCase()),!(typeof R>"u"||R===null))if(I.tagName==="SELECT"&&I.hasAttribute("multiple")){var K=M(I.options,!0),J;try{for(K.s();!(J=K.n()).done;){var Y=J.value;Y.selected&&v.append(R,Y.value)}}catch(Z){K.e(Z)}finally{K.f()}}else(!B||B!=="checkbox"&&B!=="radio"||I.checked)&&v.append(R,I.value)}}catch(Z){E.e(Z)}finally{E.f()}}}},{key:"_updateFilesUploadProgress",value:function(v,E,_){if(v[0].upload.chunked){var K=v[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=M(v,!0),R;try{for(I.s();!(R=I.n()).done;){var B=R.value;B.upload.total&&B.upload.bytesSent&&B.upload.bytesSent==B.upload.total||(_?(B.upload.progress=100*_.loaded/_.total,B.upload.total=_.total,B.upload.bytesSent=_.loaded):(B.upload.progress=100,B.upload.bytesSent=B.upload.total),this.emit("uploadprogress",B,B.upload.progress,B.upload.bytesSent))}}catch(Z){I.e(Z)}finally{I.f()}}}},{key:"_finishedUploading",value:function(v,E,_){var I;if(v[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(v,E),200<=E.status&&E.status<300?v[0].upload.chunked?v[0].upload.finishedChunkUpload(this._getChunk(v[0],E),I):this._finished(v,I,_):this._handleUploadError(v,E,I)}}},{key:"_handleUploadError",value:function(v,E,_){if(v[0].status!==w.CANCELED){if(v[0].upload.chunked&&this.options.retryChunks){var I=this._getChunk(v[0],E);if(I.retries++<this.options.retryChunksLimit){this._uploadData(v,[I.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(v,_||this.options.dictResponseError.replace("{{statusCode}}",E.status),E)}}},{key:"submitRequest",value:function(v,E,_){if(v.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}v.send(E)}},{key:"_finished",value:function(v,E,_){var I=M(v,!0),R;try{for(I.s();!(R=I.n()).done;){var B=R.value;B.status=w.SUCCESS,this.emit("success",B,E,_),this.emit("complete",B)}}catch(K){I.e(K)}finally{I.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",v,E,_),this.emit("completemultiple",v)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(v,E,_){var I=M(v,!0),R;try{for(I.s();!(R=I.n()).done;){var B=R.value;B.status=w.ERROR,this.emit("error",B,E,_),this.emit("complete",B)}}catch(K){I.e(K)}finally{I.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",v,E,_),this.emit("completemultiple",v)),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(v){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,B=_;R<B.length;R++){var K=B[R];for(var J in K){var Y=K[J];v[J]=Y}}return v}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(v){var E=Math.random()*16|0,_=v==="x"?E:E&3|8;return _.toString(16)})}}]),w}(h);D.initClass(),D.version="5.9.3",D.options={},D.optionsForElement=function(A){if(A.getAttribute("id"))return D.options[te(A.getAttribute("id"))]},D.instances=[],D.forElement=function(A){if(typeof A=="string"&&(A=document.querySelector(A)),(A!=null?A.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 A.dropzone},D.autoDiscover=!0,D.discover=function(){var A;if(document.querySelectorAll)A=document.querySelectorAll(".dropzone");else{A=[];var O=function(x){return function(){var v=[],E=M(x,!0),_;try{for(E.s();!(_=E.n()).done;){var I=_.value;/(^| )dropzone($| )/.test(I.className)?v.push(A.push(I)):v.push(void 0)}}catch(R){E.e(R)}finally{E.f()}return v}()};O(document.getElementsByTagName("div")),O(document.getElementsByTagName("form"))}return function(){var w=[],x=M(A,!0),v;try{for(x.s();!(v=x.n()).done;){var E=v.value;D.optionsForElement(E)!==!1?w.push(new D(E)):w.push(void 0)}}catch(_){x.e(_)}finally{x.f()}return w}()},D.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],D.isBrowserSupported=function(){var A=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))A=!1;else{D.blacklistedBrowsers!==void 0&&(D.blockedBrowsers=D.blacklistedBrowsers);var O=M(D.blockedBrowsers,!0),w;try{for(O.s();!(w=O.n()).done;){var x=w.value;if(x.test(navigator.userAgent)){A=!1;continue}}}catch(v){O.e(v)}finally{O.f()}}else A=!1;return A},D.dataURItoBlob=function(A){for(var O=atob(A.split(",")[1]),w=A.split(",")[0].split(":")[1].split(";")[0],x=new ArrayBuffer(O.length),v=new Uint8Array(x),E=0,_=O.length,I=0<=_;I?E<=_:E>=_;I?E++:E--)v[E]=O.charCodeAt(E);return new Blob([x],{type:w})};var Q=function(O,w){return O.filter(function(x){return x!==w}).map(function(x){return x})},te=function(O){return O.replace(/[\-_](\w)/g,function(w){return w.charAt(1).toUpperCase()})};D.createElement=function(A){var O=document.createElement("div");return O.innerHTML=A,O.childNodes[0]},D.elementInside=function(A,O){if(A===O)return!0;for(;A=A.parentNode;)if(A===O)return!0;return!1},D.getElement=function(A,O){var w;if(typeof A=="string"?w=document.querySelector(A):A.nodeType!=null&&(w=A),w==null)throw new Error("Invalid `".concat(O,"` option provided. Please provide a CSS selector or a plain HTML element."));return w},D.getElements=function(A,O){var w,x;if(A instanceof Array){x=[];try{var v=M(A,!0),E;try{for(v.s();!(E=v.n()).done;)w=E.value,x.push(this.getElement(w,O))}catch(R){v.e(R)}finally{v.f()}}catch{x=null}}else if(typeof A=="string"){x=[];var _=M(document.querySelectorAll(A),!0),I;try{for(_.s();!(I=_.n()).done;)w=I.value,x.push(w)}catch(R){_.e(R)}finally{_.f()}}else A.nodeType!=null&&(x=[A]);if(x==null||!x.length)throw new Error("Invalid `".concat(O,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return x},D.confirm=function(A,O,w){if(window.confirm(A))return O();if(w!=null)return w()},D.isValidFile=function(A,O){if(!O)return!0;O=O.split(",");var w=A.type,x=w.replace(/\/.*$/,""),v=M(O,!0),E;try{for(v.s();!(E=v.n()).done;){var _=E.value;if(_=_.trim(),_.charAt(0)==="."){if(A.name.toLowerCase().indexOf(_.toLowerCase(),A.name.length-_.length)!==-1)return!0}else if(/\/\*$/.test(_)){if(x===_.replace(/\/.*$/,""))return!0}else if(w===_)return!0}}catch(I){v.e(I)}finally{v.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(A){return this.each(function(){return new D(this,A)})}),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(O){O.naturalWidth;var w=O.naturalHeight,x=document.createElement("canvas");x.width=1,x.height=w;var v=x.getContext("2d");v.drawImage(O,0,0);for(var E=v.getImageData(1,0,1,w),_=E.data,I=0,R=w,B=w;B>I;){var K=_[(B-1)*4+3];K===0?R=B:I=B,B=R+I>>1}var J=B/w;return J===0?1:J},me=function(O,w,x,v,E,_,I,R,B,K){var J=ce(w);return O.drawImage(w,x,v,E,_,I,R,B,K/J)},ge=function(){function A(){U(this,A)}return P(A,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(w){for(var x="",v=void 0,E=void 0,_="",I=void 0,R=void 0,B=void 0,K="",J=0;v=w[J++],E=w[J++],_=w[J++],I=v>>2,R=(v&3)<<4|E>>4,B=(E&15)<<2|_>>6,K=_&63,isNaN(E)?B=K=64:isNaN(_)&&(K=64),x=x+this.KEY_STR.charAt(I)+this.KEY_STR.charAt(R)+this.KEY_STR.charAt(B)+this.KEY_STR.charAt(K),v=E=_="",I=R=B=K="",J<w.length;);return x}},{key:"restore",value:function(w,x){if(!w.match("data:image/jpeg;base64,"))return x;var v=this.decode64(w.replace("data:image/jpeg;base64,","")),E=this.slice2Segments(v),_=this.exifManipulation(x,E);return"data:image/jpeg;base64,".concat(this.encode64(_))}},{key:"exifManipulation",value:function(w,x){var v=this.getExifArray(x),E=this.insertExif(w,v),_=new Uint8Array(E);return _}},{key:"getExifArray",value:function(w){for(var x=void 0,v=0;v<w.length;){if(x=w[v],x[0]===255&x[1]===225)return x;v++}return[]}},{key:"insertExif",value:function(w,x){var v=w.replace("data:image/jpeg;base64,",""),E=this.decode64(v),_=E.indexOf(255,3),I=E.slice(0,_),R=E.slice(_),B=I;return B=B.concat(x),B=B.concat(R),B}},{key:"slice2Segments",value:function(w){for(var x=0,v=[];;){var E;if(w[x]===255&w[x+1]===218)break;if(w[x]===255&w[x+1]===216)x+=2;else{E=w[x+2]*256+w[x+3];var _=x+E+2,I=w.slice(x,_);v.push(I),x=_}if(x>w.length)break}return v}},{key:"decode64",value:function(w){var x=void 0,v=void 0,E="",_=void 0,I=void 0,R=void 0,B="",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,"");N=this.KEY_STR.indexOf(w.charAt(K++)),I=this.KEY_STR.indexOf(w.charAt(K++)),R=this.KEY_STR.indexOf(w.charAt(K++)),B=this.KEY_STR.indexOf(w.charAt(K++)),x=N<<2|I>>4,v=(I&15)<<4|R>>2,E=(R&3)<<6|B,J.push(x),R!==64&&J.push(v),B!==64&&J.push(E),x=v=E="",N=I=R=B="",K<w.length;);return J}}]),A}();ge.initClass();var Ce=function(O,w){var x=!1,v=!0,E=O.document,N=E.documentElement,I=E.addEventListener?"addEventListener":"attachEvent",R=E.addEventListener?"removeEventListener":"detachEvent",B=E.addEventListener?"":"on",K=function Y(Z){if(!(Z.type==="readystatechange"&&E.readyState!=="complete")&&((Z.type==="load"?O:E)[R](B+Z.type,Y,!1),!x&&(x=!0)))return w.call(O,Z.type||Z)},J=function Y(){try{N.doScroll("left")}catch{setTimeout(Y,50);return}return K("poll")};if(E.readyState!=="complete"){if(E.createEventObject&&N.doScroll){try{v=!O.frameElement}catch{}v&&J()}return E[I](B+"DOMContentLoaded",K,!1),E[I](B+"readystatechange",K,!1),O[I](B+"load",K,!1)}};D._autoDiscoverFunction=function(){if(D.autoDiscover)return D.discover()},Ce(window,D._autoDiscoverFunction);function we(A,O){return typeof A<"u"&&A!==null?O(A):void 0}function Te(A,O,w){if(typeof A<"u"&&A!==null&&typeof A[O]=="function")return w(A,O)}window.Dropzone=D;var ve=D}(),i}()})})(xu);var H2=xu.exports;const Ou=Oa(H2),U2={class:"fallback"},j2=d.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),W2={for:"file"},K2={class:"dz-message","data-dz-message":""},Y2={id:"bd-dropzone-theme",style:{display:"none"}},G2={class:"dz-preview dz-file-preview"},J2={class:"dz-details"},Z2=d.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),X2=d.createElementVNode("div",{class:"dz-filename"},[d.createElementVNode("small",{"data-dz-name":""})],-1),Q2=d.createElementVNode("div",{class:"dz-progress"},[d.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[d.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),q2={class:"dz-success-mark"},ey={class:"dz-error-message text-danger"},ty=d.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Mu=d.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=d.computed(()=>({variant:li.PRIMARY,size:at.SM})),o=qn(t,"modelValue",e);let i=null;Ou.autoDiscover=!1,d.watch(()=>t.modelValue,()=>{s()}),d.onMounted(()=>{document.getElementById("dropzone")&&l()});const s=()=>{i&&(i.destroy(),l())},l=()=>{var p;i=new Ou("#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}),i.on("error",c),i.on("success",a),i.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}),u(p)},c=function(p){u(p)},u=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=d.computed(()=>t.tag??"form");return(p,m)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:d.withCtx(()=>[d.createElementVNode("div",U2,[j2,d.createTextVNode(" test "),d.createElementVNode("label",W2,[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(t.buttonText),1)])]),d.createElementVNode("div",K2,[d.createVNode(d.unref(tt),d.normalizeProps(d.guardReactiveProps(r.value)),{default:d.withCtx(()=>[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(t.buttonText),1)]),_:1},16)])]),_:1})),d.createElementVNode("div",Y2,[d.createElementVNode("div",G2,[d.createElementVNode("div",J2,[Z2,d.createVNode(d.unref(ma),{"data-dz-thumbnail":"",class:"d-none"}),X2,d.createVNode(d.unref(tt),{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:1})]),Q2,d.createElementVNode("div",q2,[d.createVNode(d.unref(kr))]),d.createElementVNode("div",ey,[d.createVNode(d.unref(ii)),ty])])])],64))}});function Qe(n){this.content=n}Qe.prototype={constructor:Qe,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),i=r.content.slice();return o==-1?i.push(t||n,e):(i[o+1]=e,t&&(i[o]=t)),new Qe(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Qe(t)},addToStart:function(n,e){return new Qe([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new Qe(t)},addBefore:function(n,e,t){var r=this.remove(e),o=r.content.slice(),i=r.find(n);return o.splice(i==-1?o.length:i,0,e,t),new Qe(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=Qe.from(n),n.size?new Qe(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=Qe.from(n),n.size?new Qe(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=Qe.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}},Qe.from=function(n){if(n instanceof Qe)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Qe(e)};function _u(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),i=e.child(r);if(o==i){t+=o.nodeSize;continue}if(!o.sameMarkup(i))return t;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)t++;return t}if(o.content.size||i.content.size){let s=_u(o.content,i.content,t+1);if(s!=null)return s}t+=o.nodeSize}}function Nu(n,e,t,r){for(let o=n.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:t,b:r};let s=n.child(--o),l=e.child(--i),a=s.nodeSize;if(s==l){t-=a,r-=a;continue}if(!s.sameMarkup(l))return{a:t,b:r};if(s.isText&&s.text!=l.text){let c=0,u=Math.min(s.text.length,l.text.length);for(;c<u&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(s.content.size||l.content.size){let c=Nu(s.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,i){for(let s=0,l=0;l<t;s++){let a=this.content[s],c=l+a.nodeSize;if(c>e&&r(a,o+l,i||null,s)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,o+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let i="",s=!0;return this.nodesBetween(e,t,(l,a)=>{l.isText?(i+=l.text.slice(Math.max(e,a)-a,t-a),s=!r):l.isLeaf?(o?i+=typeof o=="function"?o(l):o:l.type.spec.leafText&&(i+=l.type.spec.leafText(l)),s=!r):!s&&l.isBlock&&(i+=r,s=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);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 i=0,s=0;s<t;i++){let l=this.content[i],a=s+l.nodeSize;a>e&&((s<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,t-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,t-s-1))),r.push(l),o+=l.nodeSize),s=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(),i=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new ae(o,i)}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 _u(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Nu(this,e,t,r)}findIndex(e,t=-1){if(e==0)return yi(0,e);if(e==this.size)return yi(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 i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||t>0?yi(r+1,s):yi(r,o);o=s}}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 i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(t||(t=e.slice(0,o)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}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 Ma={index:0,offset:0};function yi(n,e){return Ma.index=n,Ma.offset=e,Ma}function vi(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(!vi(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!vi(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let $e=class Yc{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(i)}}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&&vi(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 Yc.none;if(e instanceof Yc)return[e];let t=e.slice();return t.sort((r,o)=>r.type.rank-o.type.rank),t}};$e.none=[];class bi 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=Du(this.content,e+this.openStart,t);return r&&new ye(r,this.openStart,this.openEnd)}removeBetween(e,t){return new ye(Iu(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 i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)o++;return new ye(e,r,o)}}ye.empty=new ye(ae.empty,0,0);function Iu(n,e,t){let{index:r,offset:o}=n.findIndex(e),i=n.maybeChild(r),{index:s,offset:l}=n.findIndex(t);if(o==e||i.isText){if(l!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(Iu(i.content,e-o-1,t-o-1)))}function Du(n,e,t,r){let{index:o,offset:i}=n.findIndex(e),s=n.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=Du(s.content,e-i-1,t);return l&&n.replaceChild(o,s.copy(l))}function ny(n,e,t){if(t.openStart>n.depth)throw new bi("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new bi("Inconsistent open depths");return Lu(n,e,t,0)}function Lu(n,e,t,r){let o=n.index(r),i=n.node(r);if(o==e.index(r)&&r<n.depth-t.openStart){let s=Lu(n,e,t,r+1);return i.copy(i.content.replaceChild(o,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let s=n.parent,l=s.content;return nr(s,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=ry(t,n);return nr(i,Bu(n,s,l,e,r))}else return nr(i,Ei(n,e,r))}function Ru(n,e){if(!e.type.compatibleContent(n.type))throw new bi("Cannot join "+e.type.name+" onto "+n.type.name)}function _a(n,e,t){let r=n.node(t);return Ru(r,e.node(t)),r}function tr(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 yo(n,e,t,r){let o=(e||n).node(t),i=0,s=e?e.index(t):o.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(tr(n.nodeAfter,r),i++));for(let l=i;l<s;l++)tr(o.child(l),r);e&&e.depth==t&&e.textOffset&&tr(e.nodeBefore,r)}function nr(n,e){return n.type.checkContent(e),n.copy(e)}function Bu(n,e,t,r,o){let i=n.depth>o&&_a(n,e,o+1),s=r.depth>o&&_a(t,r,o+1),l=[];return yo(null,n,o,l),i&&s&&e.index(o)==t.index(o)?(Ru(i,s),tr(nr(i,Bu(n,e,t,r,o+1)),l)):(i&&tr(nr(i,Ei(n,e,o+1)),l),yo(e,t,o,l),s&&tr(nr(s,Ei(t,r,o+1)),l)),yo(r,null,o,l),new ae(l)}function Ei(n,e,t){let r=[];if(yo(null,n,t,r),n.depth>t){let o=_a(n,e,t+1);tr(nr(o,Ei(n,e,t+1)),r)}return yo(e,null,t,r),new ae(r)}function ry(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)o=e.node(i).copy(ae.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class vo{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 i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return $e.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 i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}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 i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].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 Ci(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,i=t;for(let s=e;;){let{index:l,offset:a}=s.content.findIndex(i),c=i-a;if(r.push(s,l,o+a),!c||(s=s.child(l),s.isText))break;i=c-1,o+=a+1}return new vo(t,r,i)}static resolveCached(e,t){for(let o=0;o<Na.length;o++){let i=Na[o];if(i.pos==t&&i.doc==e)return i}let r=Na[Ia]=vo.resolve(e,t);return Ia=(Ia+1)%oy,r}}let Na=[],Ia=0,oy=12;class Ci{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 iy=Object.create(null);let rr=class Gc{constructor(e,t,r,o=$e.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&&vi(this.attrs,t||e.defaultAttrs||iy)&&$e.sameSet(this.marks,r||$e.none)}copy(e=null){return e==this.content?this:new Gc(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Gc(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),i=this.resolve(t),s=r?0:o.sharedDepth(t),l=o.start(s),c=o.node(s).content.cut(o.pos-l,i.pos-l);return new ye(c,o.depth-s,i.depth-s)}replace(e,t,r){return ny(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 vo.resolveCached(this,e)}resolveNoCache(e){return vo.resolve(this,e)}rangeHasMark(e,t,r){let o=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.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()+")"),$u(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,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),l=s&&s.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=o;a<i;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 i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,t);return s?s.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=$e.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!$e.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)}};rr.prototype.text=void 0;class Si extends rr{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):$u(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 Si(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Si(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 $u(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class or{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new sy(e,t);if(r.next==null)return or.empty;let o=Pu(r);r.next&&r.err("Unexpected trailing text");let i=hy(fy(o));return py(i,r),i}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 i=t;o&&i<r;i++)o=o.matchType(e.child(i).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 i(s,l){let a=s.matchFragment(e,r);if(a&&(!t||a.validEnd))return ae.from(l.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:f}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=i(f,l.concat(u));if(h)return h}}return null}return i(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(),i=o.match;if(i.matchType(e)){let s=[];for(let l=o;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:l,next:a}=i.next[s];!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 i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
|
|
12
|
-
`)}}or.empty=new or(!0);class sy{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 Pu(n){let e=[];do e.push(ay(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function ay(n){let e=[];do e.push(ly(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function ly(n){let e=dy(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=cy(n,e);else break;return e}function Fu(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function cy(n,e){let t=Fu(n),r=t;return n.eat(",")&&(n.next!="}"?r=Fu(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function uy(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let o=[];for(let i in t){let s=t[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&n.err("No node type or group '"+e+"' found"),o}function dy(n){if(n.eat("(")){let e=Pu(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=uy(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 fy(n){let e=[[]];return o(i(n,0),t()),e;function t(){return e.push([])-1}function r(s,l,a){let c={term:a,to:l};return e[s].push(c),c}function o(s,l){s.forEach(a=>a.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(s.type=="seq")for(let a=0;;a++){let c=i(s.exprs[a],l);if(a==s.exprs.length-1)return c;o(c,l=t())}else if(s.type=="star"){let a=t();return r(l,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=t();return o(i(s.expr,l),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let c=0;c<s.min;c++){let u=t();o(i(s.expr,a),u),a=u}if(s.max==-1)o(i(s.expr,a),a);else for(let c=s.min;c<s.max;c++){let u=t();r(a,u),o(i(s.expr,a),u),a=u}return[r(a)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Vu(n,e){return e-n}function zu(n,e){let t=[];return r(e),t.sort(Vu);function r(o){let i=n[o];if(i.length==1&&!i[0].term)return r(i[0].to);t.push(o);for(let s=0;s<i.length;s++){let{term:l,to:a}=i[s];!l&&t.indexOf(a)==-1&&r(a)}}}function hy(n){let e=Object.create(null);return t(zu(n,0));function t(r){let o=[];r.forEach(s=>{n[s].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<o.length;u++)o[u][0]==l&&(c=o[u][1]);zu(n,a).forEach(u=>{c||o.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[r.join(",")]=new or(r.indexOf(n.length-1)>-1);for(let s=0;s<o.length;s++){let l=o[s][1].sort(Vu);i.next.push({type:o[s][0],next:e[l.join(",")]||t(l)})}return i}}function py(n,e){for(let t=0,r=[n];t<r.length;t++){let o=r[t],i=!o.validEnd,s=[];for(let l=0;l<o.next.length;l++){let{type:a,next:c}=o.next[l];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Hu(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 Uu(n,e){let t=Object.create(null);for(let r in n){let o=e&&e[r];if(o===void 0){let i=n[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=o}return t}function ju(n){let e=Object.create(null);if(n)for(let t in n)e[t]=new my(n[t]);return e}let Wu=class qm{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=ju(r.attrs),this.defaultAttrs=Hu(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==or.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:Uu(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new rr(this,this.computeAttrs(e),ae.from(t),$e.setFrom(r))}createChecked(e=null,t,r){return t=ae.from(t),this.checkContent(t),new rr(this,this.computeAttrs(e),t,$e.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=ae.from(t),t.size){let s=this.contentMatch.fillBefore(t);if(!s)return null;t=s.append(t)}let o=this.contentMatch.matchFragment(t),i=o&&o.fillBefore(ae.empty,!0);return i?new rr(this,e,t.append(i),$e.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:$e.none:e}static compile(e,t){let r=Object.create(null);e.forEach((i,s)=>r[i]=new qm(i,t,s));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 i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class my{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class wi{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=ju(o.attrs),this.excluded=null;let i=Hu(this.attrs);this.instance=i?new $e(this,i):null}create(e=null){return!e&&this.instance?this.instance:new $e(this,Uu(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new wi(i,o++,t,s)),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 gy{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let o in e)t[o]=e[o];t.nodes=Qe.from(e.nodes),t.marks=Qe.from(e.marks||{}),this.nodes=Wu.compile(this.spec.nodes,this),this.marks=wi.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 i=this.nodes[o],s=i.spec.content||"",l=i.spec.marks;i.contentMatch=r[s]||(r[s]=or.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=l=="_"?null:l?Ku(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Ku(this,s.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 Wu){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 Si(r,r.defaultAttrs,e,$e.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return rr.fromJSON(this,e)}markFromJSON(e){return $e.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Ku(n,e){let t=[];for(let r=0;r<e.length;r++){let o=e[r],i=n.marks[o],s=i;if(i)t.push(i);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(s=a)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}class Mr{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 Zu(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Zu(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 i=this.tags[o];if(by(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,t,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(s.getAttrs){let a=s.getAttrs(t);if(a===!1)continue;s.attrs=a||void 0}return s}}}static schemaRules(e){let t=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s<t.length;s++){let l=t[s];if((l.priority==null?50:l.priority)<i)break}t.splice(s,0,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=Xu(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=Xu(s)),s.node||s.ignore||s.mark||(s.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Mr(e,Mr.schemaRules(e)))}}const Yu={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},yy={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Gu={ol:!0,ul:!0},ki=1,Ti=2,bo=4;function Ju(n,e,t){return e!=null?(e?ki:0)|(e==="full"?Ti:0):n&&n.whitespace=="pre"?ki|Ti:t&~bo}class Ai{constructor(e,t,r,o,i,s,l){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=l,this.content=[],this.activeMarks=$e.none,this.stashMarks=[],this.match=s||(l&bo?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&ki)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.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):Cy(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&&!Yu.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Zu{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let o=t.topNode,i,s=Ju(null,t.preserveWhitespace,0)|(r?bo:0);o?i=new Ai(o.type,o.attrs,$e.none,$e.none,!0,t.topMatch||o.type.contentMatch,s):r?i=new Ai(null,null,$e.none,$e.none,!0,null,s):i=new Ai(e.schema.topNodeType,null,$e.none,$e.none,!0,null,s),this.nodes=[i],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(Ey(r));if(!o)return;let[i,s]=o,l=this.top;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]);t();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])}addTextNode(e){let t=e.nodeValue,r=this.top;if(r.options&Ti||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&ki)r.options&Ti?t=t.replace(/\r\n?/g,`
|
|
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],i=e.previousSibling;(!o||i&&i.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;
|
|
14
|
-
`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=$e.none,r=$e.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{s.clearMark(l)&&(r=l.addToSet(r))}):t=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(t),s.consuming===!1)i=s;else break}return[t,r]}addElementByRule(e,t,r){let o,i,s;t.node?(i=this.parser.schema.nodes[t.node],i.isLeaf?this.insertNode(i.create(t.attrs))||this.leafFallback(e):o=this.enter(i,t.attrs||null,t.preserveWhitespace)):(s=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(s));let l=this.top;if(i&&i.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--,s&&this.removePendingMark(s,l)}addAll(e,t,r){let o=t||0;for(let i=t?e.childNodes[t]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let t,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!t||t.length>s.length)&&(t=s,r=i,!s.length)||i.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 i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=Ju(e,o,i.options);i.options&bo&&i.content.length==0&&(s|=bo),this.nodes.push(new Ai(e,t,i.activeMarks,i.pendingMarks,r,null,s)),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),i=-(r?r.depth+1:0)+(o?0:1),s=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return!0;return!1}else{let u=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;a--}}return!0};return s(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=Sy(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 s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==t)break}}}function vy(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Gu.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function by(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Ey(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 Xu(n){let e={};for(let t in n)e[t]=n[t];return e}function Cy(n,e){let t=e.schema.nodes;for(let r in t){let o=t[r];if(!o.allowsMarkType(n))continue;let i=[],s=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}function Sy(n,e){for(let t=0;t<e.length;t++)if(n.eq(e[t]))return e[t]}class Jt{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Da(t).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let l=0,a=0;for(;l<i.length&&a<s.marks.length;){let c=s.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<i.length;)o=i.pop()[1];for(;a<s.marks.length;){let c=s.marks[a++],u=this.serializeMark(c,s.isInline,t);u&&(i.push([c,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:o}=Jt.renderSpec(Da(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 i=this.serializeMark(e.marks[o],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let o=this.marks[e.type.name];return o&&Jt.renderSpec(Da(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],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,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 u in a)if(a[u]!=null){let f=u.indexOf(" ");f>0?l.setAttributeNS(u.slice(0,f),u.slice(f+1),a[u]):l.setAttribute(u,a[u])}}for(let u=c;u<t.length;u++){let f=t[u];if(f===0){if(u<t.length-1||u>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}=Jt.renderSpec(e,f,r);if(l.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:l,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Jt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Qu(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Qu(e.marks)}}function Qu(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Da(n){return n.document||window.document}const qu=65535,ed=Math.pow(2,16);function wy(n,e){return n+e*ed}function td(n){return n&qu}function ky(n){return(n-(n&qu))/ed}const nd=1,rd=2,xi=4,od=8;class La{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&od)>0}get deletedBefore(){return(this.delInfo&(nd|xi))>0}get deletedAfter(){return(this.delInfo&(rd|xi))>0}get deletedAcross(){return(this.delInfo&xi)>0}}class St{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&St.empty)return St.empty}recover(e){let t=0,r=td(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+ky(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,i=this.inverted?2:1,s=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+i],u=this.ranges[l+s],f=a+c;if(e<=f){let h=c?e==a?-1:e==f?1:t:t,p=a+o+(h<0?0:u);if(r)return p;let m=e==(t<0?a:f)?null:wy(l/3,e-a),g=e==a?rd:e==f?nd:xi;return(t<0?e!=a:e!=f)&&(g|=od),new La(p,g,m)}o+=u-c}return r?e+o:new La(e+o,0,null)}touches(e,t){let r=0,o=td(t),i=this.inverted?2:1,s=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+i],u=a+c;if(e<=u&&l==o*3)return!0;r+=this.ranges[l+s]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],l=s-(this.inverted?i:0),a=s+(this.inverted?0:i),c=this.ranges[o+t],u=this.ranges[o+r];e(l,l+c,a,a+u),i+=u-c}}invert(){return new St(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?St.empty:new St(e<0?[0,-e,0]:[0,0,e])}}St.empty=new St([]);class Eo{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 Eo(this.maps,this.mirror,e,t)}copy(){return new Eo(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 Eo;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 i=this.from;i<this.to;i++){let s=this.maps[i],l=s.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this.maps[a].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new La(e,o,null)}}const Ra=Object.create(null);class rt{getMap(){return St.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Ra[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 Ra)throw new RangeError("Duplicate use of step JSON ID "+e);return Ra[e]=t,t.prototype.jsonID=e,t}}class We{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new We(e,null)}static fail(e){return new We(null,e)}static fromReplace(e,t,r,o){try{return We.ok(e.replace(t,r,o))}catch(i){if(i instanceof bi)return We.fail(i.message);throw i}}}function Ba(n,e,t){let r=[];for(let o=0;o<n.childCount;o++){let i=n.child(o);i.content.size&&(i=i.copy(Ba(i.content,e,i))),i.isInline&&(i=e(i,t,o)),r.push(i)}return ae.fromArray(r)}class wn extends rt{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)),i=new ye(Ba(t.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),t.openStart,t.openEnd);return We.fromReplace(e,this.from,this.to,i)}invert(){return new Zt(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))}}rt.jsonID("addMark",wn);class Zt extends rt{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(Ba(t.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),t.openStart,t.openEnd);return We.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 Zt(t.pos,r.pos,this.mark)}merge(e){return e instanceof Zt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Zt(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 Zt(t.from,t.to,e.markFromJSON(t.mark))}}rt.jsonID("removeMark",Zt);class kn extends rt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return We.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return We.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))}}rt.jsonID("addNodeMark",kn);class _r extends rt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return We.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return We.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))}}rt.jsonID("removeNodeMark",_r);class qe extends rt{constructor(e,t,r,o=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=o}apply(e){return this.structure&&$a(e,this.from,this.to)?We.fail("Structure replace would overwrite content"):We.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new St([this.from,this.to-this.from,this.slice.size])}invert(e){return new qe(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 qe(t.pos,Math.max(t.pos,r.pos),this.slice)}merge(e){if(!(e instanceof qe)||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 qe(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 qe(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 qe(t.from,t.to,ye.fromJSON(e,t.slice),!!t.structure)}}rt.jsonID("replace",qe);class Je extends rt{constructor(e,t,r,o,i,s,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=l}apply(e){if(this.structure&&($a(e,this.from,this.gapFrom)||$a(e,this.gapTo,this.to)))return We.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return We.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?We.fromReplace(e,this.from,this.to,r):We.fail("Content does not fit in gap")}getMap(){return new St([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 Je(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),i=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||o<t.pos||i>r.pos?null:new Je(t.pos,r.pos,o,i,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 Je(t.from,t.to,t.gapFrom,t.gapTo,ye.fromJSON(e,t.slice),t.insert,!!t.structure)}}rt.jsonID("replaceAround",Je);function $a(n,e,t){let r=n.resolve(e),o=t-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function Ty(n,e,t,r){let o=[],i=[],s,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let f=a.marks;if(!r.isInSet(f)&&u.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)||(s&&s.to==h&&s.mark.eq(f[g])?s.to=p:o.push(s=new Zt(h,p,f[g])));l&&l.to==h?l.to=p:i.push(l=new wn(h,p,r))}}),o.forEach(a=>n.step(a)),i.forEach(a=>n.step(a))}function Ay(n,e,t,r){let o=[],i=0;n.doc.nodesBetween(e,t,(s,l)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof wi){let c=s.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let c=Math.min(l+s.nodeSize,t);for(let u=0;u<a.length;u++){let f=a[u],h;for(let p=0;p<o.length;p++){let m=o[p];m.step==i-1&&f.eq(o[p].style)&&(h=m)}h?(h.to=c,h.step=i):o.push({style:f,from:Math.max(l,e),to:c,step:i})}}}),o.forEach(s=>n.step(new Zt(s.from,s.to,s.style)))}function xy(n,e,t,r=t.contentMatch){let o=n.doc.nodeAt(e),i=[],s=e+1;for(let l=0;l<o.childCount;l++){let a=o.child(l),c=s+a.nodeSize,u=r.matchType(a.type);if(!u)i.push(new qe(s,c,ye.empty));else{r=u;for(let f=0;f<a.marks.length;f++)t.allowsMarkType(a.marks[f].type)||n.step(new Zt(s,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)),i.push(new qe(s+f.index,s+f.index+f[0].length,p))}}s=c}if(!r.validEnd){let l=r.fillBefore(ae.empty,!0);n.replace(s,s,new ye(l,0,0))}for(let l=i.length-1;l>=0;l--)n.step(i[l])}function Oy(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Nr(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let o=n.$from.node(r),i=n.$from.index(r),s=n.$to.indexAfter(r);if(r<n.depth&&o.canReplace(i,s,t))return r;if(r==0||o.type.spec.isolating||!Oy(o,i,s))break}return null}function My(n,e,t){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),l=o.after(i+1),a=s,c=l,u=ae.empty,f=0;for(let m=i,g=!1;m>t;m--)g||r.index(m)>0?(g=!0,u=ae.from(r.node(m).copy(u)),f++):a--;let h=ae.empty,p=0;for(let m=i,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 Je(a,c,s,l,new ye(u.append(h),f,p),u.size-f,!0))}function Pa(n,e,t=null,r=n){let o=_y(n,e),i=o&&Ny(r,e);return i?o.map(id).concat({type:e,attrs:t}).concat(i.map(id)):null}function id(n){return{type:n,attrs:null}}function _y(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return t.canReplaceWith(r,o,s)?i:null}function Ny(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:e).contentMatch;for(let c=r;a&&c<o;c++)a=a.matchType(t.child(c).type);return!a||!a.validEnd?null:s}function Iy(n,e,t){let r=ae.empty;for(let s=t.length-1;s>=0;s--){if(r.size){let l=t[s].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[s].type.create(t[s].attrs,r))}let o=e.start,i=e.end;n.step(new Je(o,i,o,i,new ye(r,0,0),t.length,!0))}function Dy(n,e,t,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(e,t,(s,l)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&Ly(n.doc,n.mapping.slice(i).map(l),r)){n.clearIncompatible(n.mapping.slice(i).map(l,1),r);let a=n.mapping.slice(i),c=a.map(l,1),u=a.map(l+s.nodeSize,1);return n.step(new Je(c,u,c+1,u-1,new ye(ae.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function Ly(n,e,t){let r=n.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,t)}function Ry(n,e,t,r,o){let i=n.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let s=t.create(r,null,o||i.marks);if(i.isLeaf)return n.replaceWith(e,e+i.nodeSize,s);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Je(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new ye(ae.from(s),0,0),1,!0))}function Ir(n,e,t=1,r){let o=n.resolve(e),i=o.depth-t,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,u=t-2;c>i;c--,u--){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[u+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[u]||f;if(!f.canReplace(h+1,f.childCount)||!g.type.validContent(p))return!1}let l=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(l,l,a?a.type:o.node(i+1).type)}function By(n,e,t=1,r){let o=n.doc.resolve(e),i=ae.empty,s=ae.empty;for(let l=o.depth,a=o.depth-t,c=t-1;l>a;l--,c--){i=ae.from(o.node(l).copy(i));let u=r&&r[c];s=ae.from(u?u.type.create(u.attrs,s):o.node(l).copy(s))}n.step(new qe(e,e,new ye(i.append(s),t,t),!0))}function Tn(n,e){let t=n.resolve(e),r=t.index();return sd(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function sd(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function Oi(n,e,t=-1){let r=n.resolve(e);for(let o=r.depth;;o--){let i,s,l=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):t>0?(i=r.node(o+1),l++,s=r.node(o).maybeChild(l)):(i=r.node(o).maybeChild(l-1),s=r.node(o+1)),i&&!i.isTextblock&&sd(i,s)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=t<0?r.before(o):r.after(o)}}function $y(n,e,t){let r=new qe(e-t,e+t,ye.empty,!0);n.step(r)}function Py(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 i=r.index(o);if(r.node(o).canReplaceWith(i,i,t))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,t))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function Fy(n,e,t){let r=n.resolve(e);if(!t.content.size)return e;let o=t.content;for(let i=0;i<t.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(t.openStart==0&&t.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),c=r.node(s),u=!1;if(i==1)u=c.canReplace(a,a,o);else{let f=c.contentMatchAt(a).findWrapping(o.firstChild.type);u=f&&c.canReplaceWith(a,a,f[0])}if(u)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function Fa(n,e,t=e,r=ye.empty){if(e==t&&!r.size)return null;let o=n.resolve(e),i=n.resolve(t);return ad(o,i,r)?new qe(e,t,r):new Vy(o,i,r).fit()}function ad(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class Vy{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 i=e.node(o);this.frontier.push({type:i.type,match:i.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 i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new ye(i,s,l);return e>-1?new Je(r.pos,e,this.$to.pos,this.$to.end(),a,t):a.size||r.pos!=this.$to.pos?new qe(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 i=t.firstChild;if(t.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=Va(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:c}=this.frontier[l],u,f=null;if(t==1&&(s?c.matchType(s.type)||(f=c.fillBefore(ae.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:l,parent:i,inject:f};if(t==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:l,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=Va(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=Va(e,t);if(o.childCount<=1&&t>0){let i=e.size-t<=t+o.size;this.unplaced=new ye(Co(e,t-1,1),t-1,i?t-1:r)}else this.unplaced=new ye(Co(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:o,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,l=r?r.content:s.content,a=s.openStart-e,c=0,u=[],{match:f,type:h}=this.frontier[t];if(o){for(let g=0;g<o.childCount;g++)u.push(o.child(g));f=f.matchFragment(o)}let p=l.size+e-(s.content.size-s.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,u.push(ld(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=So(this.placed,t,ae.from(u)),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(Co(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new ye(Co(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!za(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],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=za(e,t,o,r,i);if(s){for(let l=t-1;l>=0;l--){let{match:a,type:c}=this.frontier[l],u=za(e,l,c,a,!0);if(!u||u.childCount)continue e}return{depth:t,fit:s,move:i?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=So(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,t=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=So(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=So(this.placed,this.frontier.length,t))}}function Co(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(Co(n.firstChild.content,e-1,t)))}function So(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(So(n.lastChild.content,e-1,t)))}function Va(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function ld(n,e,t){if(e<=0)return n;let r=n.content;return e>1&&(r=r.replaceChild(0,ld(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 za(n,e,t,r,o){let i=n.node(e),s=o?n.indexAfter(e):n.index(e);if(s==i.childCount&&!t.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,s);return l&&!zy(t,i.content,s)?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 Hy(n){return n.spec.defining||n.spec.definingForContent}function Uy(n,e,t,r){if(!r.size)return n.deleteRange(e,t);let o=n.doc.resolve(e),i=n.doc.resolve(t);if(ad(o,i,r))return n.step(new qe(e,t,r));let s=ud(o,n.doc.resolve(t));s[s.length-1]==0&&s.pop();let l=-(o.depth+1);s.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;s.indexOf(h)>-1?l=h:o.before(h)==p&&s.splice(1,0,-h)}let a=s.indexOf(l),c=[],u=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=u-1;h>=0;h--){let p=c[h],m=Hy(p.type);if(m&&!p.sameMarkup(o.node(Math.abs(l)-1)))u=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+u+1)%(r.openStart+1),m=c[p];if(m)for(let g=0;g<s.length;g++){let y=s[(g+a)%s.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?i.after(y):t,new ye(cd(r.content,0,r.openStart,p),p,r.openEnd))}}let f=n.steps.length;for(let h=s.length-1;h>=0&&(n.replace(e,t,r),!(n.steps.length>f));h--){let p=s[h];p<0||(e=o.before(p),t=i.after(p))}}function cd(n,e,t,r,o){if(e<t){let i=n.firstChild;n=n.replaceChild(0,i.copy(cd(i.content,e+1,t,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(n).append(n);n=s.append(i.matchFragment(s).fillBefore(ae.empty,!0))}return n}function jy(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let o=Py(n.doc,e,r.type);o!=null&&(e=t=o)}n.replaceRange(e,t,new ye(ae.from(r),0,0))}function Wy(n,e,t){let r=n.doc.resolve(e),o=n.doc.resolve(t),i=ud(r,o);for(let s=0;s<i.length;s++){let l=i[s],a=s==i.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 s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&t>r.end(s)&&o.end(s)-t!=o.depth-s)return n.delete(r.before(s),t);n.delete(e,t)}function ud(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let o=r;o>=0;o--){let i=n.start(o);if(i<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;(i==e.start(o)||o==n.depth&&o==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&t.push(o)}return t}class Dr extends rt{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 We.fail("No node at attribute step's position");let r=Object.create(null);for(let i in t.attrs)r[i]=t.attrs[i];r[this.attr]=this.value;let o=t.type.create(r,null,t.marks);return We.fromReplace(e,this.pos,this.pos+1,new ye(ae.from(o),0,t.isLeaf?0:1))}getMap(){return St.empty}invert(e){return new Dr(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 Dr(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 Dr(t.pos,t.attr,t.value)}}rt.jsonID("attr",Dr);class wo extends rt{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 We.ok(r)}getMap(){return St.empty}invert(e){return new wo(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 wo(t.attr,t.value)}}rt.jsonID("docAttr",wo);let Lr=class extends Error{};Lr=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t},Lr.prototype=Object.create(Error.prototype),Lr.prototype.constructor=Lr,Lr.prototype.name="TransformError";class dd{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Eo}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Lr(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=Fa(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 Uy(this,e,t,r),this}replaceRangeWith(e,t,r){return jy(this,e,t,r),this}deleteRange(e,t){return Wy(this,e,t),this}lift(e,t){return My(this,e,t),this}join(e,t=1){return $y(this,e,t),this}wrap(e,t){return Iy(this,e,t),this}setBlockType(e,t=e,r,o=null){return Dy(this,e,t,r,o),this}setNodeMarkup(e,t,r=null,o){return Ry(this,e,t,r,o),this}setNodeAttribute(e,t,r){return this.step(new Dr(e,t,r)),this}setDocAttribute(e,t){return this.step(new wo(e,t)),this}addNodeMark(e,t){return this.step(new kn(e,t)),this}removeNodeMark(e,t){if(!(t instanceof $e)){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 By(this,e,t,r),this}addMark(e,t,r){return Ty(this,e,t,r),this}removeMark(e,t,r){return Ay(this,e,t,r),this}clearIncompatible(e,t,r){return xy(this,e,t,r),this}}const Ha=Object.create(null);class Re{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new Ky(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 i=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:c}=s[l],u=e.mapping.slice(i);e.replaceRange(u.map(a.pos),u.map(c.pos),l?ye.empty:t),l==0&&pd(e,i,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,o=this.ranges;for(let i=0;i<o.length;i++){let{$from:s,$to:l}=o[i],a=e.mapping.slice(r),c=a.map(s.pos),u=a.map(l.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),pd(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let o=e.parent.inlineContent?new Be(e):Rr(e.node(0),e.parent,e.pos,e.index(),t,r);if(o)return o;for(let i=e.depth-1;i>=0;i--){let s=t<0?Rr(e.node(0),e.node(i),e.before(i+1),e.index(i),t,r):Rr(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,r);if(s)return s}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Ht(e.node(0))}static atStart(e){return Rr(e,e,0,0,1)||new Ht(e)}static atEnd(e){return Rr(e,e,e.content.size,e.childCount,-1)||new Ht(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Ha[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 Ha)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ha[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Be.between(this.$anchor,this.$head).getBookmark()}}Re.prototype.visible=!0;class Ky{constructor(e,t){this.$from=e,this.$to=t}}let fd=!1;function hd(n){!fd&&!n.parent.inlineContent&&(fd=!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){hd(e),hd(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 Mi(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 i=Re.findFrom(t,r,!0)||Re.findFrom(t,-r,!0);if(i)t=i.$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 Mi{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Mi(e.map(this.anchor),e.map(this.head))}resolve(e){return Be.between(e.resolve(this.anchor),e.resolve(this.head))}}class xe 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),i=e.resolve(o);return r?Re.near(i):new xe(i)}content(){return new ye(ae.from(this.node),0,0)}eq(e){return e instanceof xe&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Ua(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new xe(e.resolve(t.anchor))}static create(e,t){return new xe(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}xe.prototype.visible=!1,Re.jsonID("node",xe);class Ua{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new Mi(r,r):new Ua(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&xe.isSelectable(r)?new xe(t):Re.near(t)}}class Ht 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 Ht(e)}map(e){return new Ht(e)}eq(e){return e instanceof Ht}getBookmark(){return Yy}}Re.jsonID("all",Ht);const Yy={map(){return this},resolve(n){return new Ht(n)}};function Rr(n,e,t,r,o,i=!1){if(e.inlineContent)return Be.create(n,t);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let l=e.child(s);if(l.isAtom){if(!i&&xe.isSelectable(l))return xe.create(n,t-(o<0?l.nodeSize:0))}else{let a=Rr(n,l,t+o,o<0?l.childCount:0,o,i);if(a)return a}t+=l.nodeSize*o}return null}function pd(n,e,t){let r=n.steps.length-1;if(r<e)return;let o=n.steps[r];if(!(o instanceof qe||o instanceof Je))return;let i=n.mapping.maps[r],s;i.forEach((l,a,c,u)=>{s==null&&(s=u)}),n.setSelection(Re.near(n.doc.resolve(s),t))}const md=1,_i=2,gd=4;class Gy extends dd{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|md)&~_i,this.storedMarks=null,this}get selectionSet(){return(this.updated&md)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=_i,this}ensureMarks(e){return $e.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&_i)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~_i,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)||$e.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 i=this.storedMarks;if(!i){let s=this.doc.resolve(t);i=r==t?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,o.text(e,i)),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|=gd,this}get scrolledIntoView(){return(this.updated&gd)>0}}function yd(n,e){return!e||!n?n:n.bind(e)}class ko{constructor(e,t,r){this.name=e,this.init=yd(t.init,r),this.apply=yd(t.apply,r)}}const Jy=[new ko("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new ko("selection",{init(n,e){return n.selection||Re.atStart(e.doc)},apply(n){return n.selection}}),new ko("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new ko("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=Jy.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 ko(r.key,r.spec.state,r))})}}class Br{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 i=!1;for(let s=0;s<this.config.plugins.length;s++){let l=this.config.plugins[s];if(l.spec.appendTransaction){let a=o?o[s].n:0,c=o?o[s].state:this,u=a<t.length&&l.spec.appendTransaction.call(l,a?t.slice(a):t,c,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<s?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),i=!0}o&&(o[s]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Br(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let i=r[o];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new Gy(this)}static create(e){let t=new ja(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Br(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 Br(t);for(let i=0;i<r.length;i++){let s=r[i].name;o[s]=this.hasOwnProperty(s)?this[s]:r[i].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],i=o.spec.state;i&&i.toJSON&&(t[r]=i.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),i=new Br(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=rr.fromJSON(e.schema,t.doc);else if(s.name=="selection")i.selection=Re.fromJSON(i.doc,t.selection);else if(s.name=="storedMarks")t.storedMarks&&(i.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==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){i[s.name]=c.fromJSON.call(a,e,t[l],i);return}}i[s.name]=s.init(e,i)}}),i}}function vd(n,e,t){for(let r in n){let o=n[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=vd(o,e,{})),t[r]=o}return t}class yt{constructor(e){this.spec=e,this.props={},e.props&&vd(e.props,this,this.props),this.key=e.key?e.key.key:bd("plugin")}getState(e){return e[this.key]}}const Wa=Object.create(null);function bd(n){return n in Wa?n+"$"+ ++Wa[n]:(Wa[n]=0,n+"$")}class Ut{constructor(e="key"){this.key=bd(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const lt=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},To=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let Ed=null;const dn=function(n,e,t){let r=Ed||(Ed=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},ir=function(n,e,t,r){return t&&(Cd(n,e,t,r,-1)||Cd(n,e,t,r,1))},Zy=/^(img|br|input|textarea|hr)$/i;function Cd(n,e,t,r,o){for(;;){if(n==t&&e==r)return!0;if(e==(o<0?0:Xt(n))){let i=n.parentNode;if(!i||i.nodeType!=1||Ka(n)||Zy.test(n.nodeName)||n.contentEditable=="false")return!1;e=lt(n)+(o<0?0:1),n=i}else if(n.nodeType==1){if(n=n.childNodes[e+(o<0?-1:0)],n.contentEditable=="false")return!1;e=o<0?Xt(n):0}else return!1}}function Xt(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Xy(n,e,t){for(let r=e==0,o=e==Xt(n);r||o;){if(n==t)return!0;let i=lt(n);if(n=n.parentNode,!n)return!1;r=r&&i==0,o=o&&i==Xt(n)}}function Ka(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 Ni=function(n){return n.focusNode&&ir(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function sr(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function Qy(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function qy(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,Sd=typeof document<"u"?document:null,An=Qt&&Qt.userAgent||"",Ya=/Edge\/(\d+)/.exec(An),wd=/MSIE \d/.exec(An),Ga=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(An),vt=!!(wd||Ga||Ya),xn=wd?document.documentMode:Ga?+Ga[1]:Ya?+Ya[1]:0,jt=!vt&&/gecko\/(\d+)/i.test(An);jt&&+(/Firefox\/(\d+)/.exec(An)||[0,0])[1];const Ja=!vt&&/Chrome\/(\d+)/.exec(An),ot=!!Ja,ev=Ja?+Ja[1]:0,ct=!vt&&!!Qt&&/Apple Computer/.test(Qt.vendor),$r=ct&&(/Mobile\/\w+/.test(An)||!!Qt&&Qt.maxTouchPoints>2),Mt=$r||(Qt?/Mac/.test(Qt.platform):!1),tv=Qt?/Win/.test(Qt.platform):!1,Wt=/Android \d/.test(An),Ao=!!Sd&&"webkitFontSmoothing"in Sd.documentElement.style,nv=Ao?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function rv(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 ov(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 kd(n,e,t){let r=n.someProp("scrollThreshold")||0,o=n.someProp("scrollMargin")||5,i=n.dom.ownerDocument;for(let s=t||n.dom;s;s=To(s)){if(s.nodeType!=1)continue;let l=s,a=l==i.body,c=a?rv(i):ov(l),u=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")?u=-(c.left-e.left+fn(o,"left")):e.right>c.right-fn(r,"right")&&(u=e.right-c.right+fn(o,"right")),u||f)if(a)i.defaultView.scrollBy(u,f);else{let h=l.scrollLeft,p=l.scrollTop;f&&(l.scrollTop+=f),u&&(l.scrollLeft+=u);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(s).position))break}}function iv(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=t+1;s<Math.min(innerHeight,e.bottom);s+=5){let l=n.root.elementFromPoint(i,s);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:Td(n.dom)}}function Td(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=To(r));return e}function sv({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;Ad(t,r==0?0:r-e)}function Ad(n,e){for(let t=0;t<n.length;t++){let{dom:r,top:o,left:i}=n[t];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let Pr=null;function av(n){if(n.setActive)return n.setActive();if(Pr)return n.focus(Pr);let e=Td(n);n.focus(Pr==null?{get preventScroll(){return Pr={preventScroll:!0},!0}}:void 0),Pr||(Pr=!1,Ad(e,0))}function xd(n,e){let t,r=2e8,o,i=0,s=e.top,l=e.top,a,c;for(let u=n.firstChild,f=0;u;u=u.nextSibling,f++){let h;if(u.nodeType==1)h=u.getClientRects();else if(u.nodeType==3)h=dn(u).getClientRects();else continue;for(let p=0;p<h.length;p++){let m=h[p];if(m.top<=s&&m.bottom>=l){s=Math.max(m.bottom,s),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=u,r=g,o=g&&t.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,u.nodeType==1&&g&&(i=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=u,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)&&(i=f+1)}}return!t&&a&&(t=a,o=c,r=0),t&&t.nodeType==3?lv(t,o):!t||r&&t.nodeType==1?{node:n,offset:i}:xd(t,o)}function lv(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 i=On(r,1);if(i.top!=i.bottom&&Za(e,i))return{node:n,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:n,offset:0}}function Za(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function cv(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function uv(n,e,t){let{node:r,offset:o}=xd(e,t),i=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();i=s.left!=s.right&&t.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(r,o,i)}function dv(n,e,t,r){let o=-1;for(let i=e,s=!1;i!=n.dom;){let l=n.docView.nearestDesc(i,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!s||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!s&&(s=!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}i=l.dom.parentNode}return o>-1?o:n.docView.posFromDOM(e,t,-1)}function Od(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)),i=o;;){let s=n.childNodes[i];if(s.nodeType==1){let l=s.getClientRects();for(let a=0;a<l.length;a++){let c=l[a];if(Za(e,c))return Od(s,e,c)}}if((i=(i+1)%r)==o)break}return n}function fv(n,e){let t=n.dom.ownerDocument,r,o=0,i=qy(t,e.left,e.top);i&&({node:r,offset:o}=i);let s=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),l;if(!s||!n.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=n.dom.getBoundingClientRect();if(!Za(e,c)||(s=Od(n.dom,e,c),!s))return null}if(ct)for(let c=s;r&&c;c=To(c))c.draggable&&(r=void 0);if(s=cv(s,e),r){if(jt&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let u=r.childNodes[o],f;u.nodeName=="IMG"&&(f=u.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let c;Ao&&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=dv(n,r,o,e))}l==null&&(l=uv(n,s,e));let a=n.docView.nearestDesc(s,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function Md(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(Md(r))return r}return Array.prototype.find.call(t,Md)||n.getBoundingClientRect()}const hv=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function _d(n,e,t){let{node:r,offset:o,atom:i}=n.docView.domFromPos(e,t<0?-1:1),s=Ao||jt;if(r.nodeType==3)if(s&&(hv.test(r.nodeValue)||(t<0?!o:o==r.nodeValue.length))){let a=On(dn(r,o,o),t);if(jt&&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 u=On(dn(r,o,o+1),-1);if(u.top!=a.top)return xo(u,u.left<c.left)}}return a}else{let a=o,c=o,u=t<0?1:-1;return t<0&&!o?(c++,u=-1):t>=0&&o==r.nodeValue.length?(a--,u=1):t<0?a--:c++,xo(On(dn(r,a,c),u),u<0)}if(!n.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(t<0||o==Xt(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return Xa(a.getBoundingClientRect(),!1)}if(i==null&&o<Xt(r)){let a=r.childNodes[o];if(a.nodeType==1)return Xa(a.getBoundingClientRect(),!0)}return Xa(r.getBoundingClientRect(),t>=0)}if(i==null&&o&&(t<0||o==Xt(r))){let a=r.childNodes[o-1],c=a.nodeType==3?dn(a,Xt(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(c)return xo(On(c,1),!1)}if(i==null&&o<Xt(r)){let a=r.childNodes[o];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let c=a?a.nodeType==3?dn(a,0,s?0:1):a.nodeType==1?a:null:null;if(c)return xo(On(c,-1),!0)}return xo(On(r.nodeType==3?dn(r):r,-t),t>=0)}function xo(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 Xa(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 Nd(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 pv(n,e,t){let r=e.selection,o=t=="up"?r.$from:r.$to;return Nd(n,e,()=>{let{node:i}=n.docView.domFromPos(o.pos,t=="up"?-1:1);for(;;){let l=n.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=_d(n,o.pos,1);for(let l=i.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 u=a[c];if(u.bottom>u.top+1&&(t=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const mv=/[\u0590-\u08ac]/;function gv(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,l=n.domSelection();return!mv.test(r.parent.textContent)||!l.modify?t=="left"||t=="backward"?i:s:Nd(n,e,()=>{let{focusNode:a,focusOffset:c,anchorNode:u,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(u,f),a&&(a!=u||c!=f)&&l.extend&&l.extend(a,c)}catch{}return h!=null&&(l.caretBidiLevel=h),y})}let Id=null,Dd=null,Ld=!1;function yv(n,e,t){return Id==e&&Dd==t?Ld:(Id=e,Dd=t,Ld=t=="up"||t=="down"?pv(n,e,t):gv(n,e,t))}const _t=0,Rd=1,ar=2,qt=3;class Oo{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 i,s;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=t>lt(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 i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&t==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.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 i=this.getDesc(o),s;if(i&&(!t||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}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 i=this.getDesc(o);if(i)return i.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let o=this.children[t],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],l=i+s.size;if(l>e||s instanceof Pd){o=e-i;break}i=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof Bd&&i.side>=0;r--);if(t<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&t&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,t):{node:this.contentDOM,offset:i?lt(i.dom)+1:0}}else{let i,s=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,t):{node:this.contentDOM,offset:i?lt(i.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,i=-1;for(let s=r,l=0;;l++){let a=this.children[l],c=s+a.size;if(o==-1&&e<=c){let u=s+a.border;if(e>=u&&t<=c-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,u);e=s;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=lt(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 u=l+1;u<this.children.length;u++){let f=this.children[u];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=lt(f.dom);break}t+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:t,fromOffset:o,toOffset:i}}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 i=Math.min(e,t),s=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(i>p&&s<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(),u=!1;if((jt||ct)&&e==t){let{node:h,offset:p}=l;if(h.nodeType==3){if(u=!!(p&&h.nodeValue[p-1]==`
|
|
15
|
-
`),u&&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:lt(g)+1});break}let y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let m=h.childNodes[p-1];u=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(jt&&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||u&&ct)&&ir(l.node,l.offset,c.anchorNode,c.anchorOffset)&&ir(a.node,a.offset,c.focusNode,c.focusOffset))return;let f=!1;if((c.extend||e==t)&&!u){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 i=this.children[o],s=r+i.size;if(r==s?e<=s&&t>=r:e<s&&t>r){let l=r+i.border,a=s-i.border;if(e>=l&&t<=a){this.dirty=e==r||t==s?ar:Rd,e==l&&t==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=qt:i.markDirty(e-l,t-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?ar:qt}r=s}this.dirty=ar}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=e==1?ar:Rd;t.dirty<r&&(t.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class Bd extends Oo{constructor(e,t,r,o){let i,s=t.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=t,this.widget=t,i=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 vv extends Oo{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 lr extends Oo{constructor(e,t,r,o){super(e,[],r,o),this.mark=t}static create(e,t,r,o){let i=o.nodeViews[t.type.name],s=i&&i(t,o,r);return(!s||!s.dom)&&(s=Jt.renderSpec(document,t.type.spec.toDOM(t,r))),new lr(e,t,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&qt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=qt&&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=lr.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;t<s&&(i=el(i,t,s,r)),e>0&&(i=el(i,0,e,r));for(let l=0;l<i.length;l++)i[l].parent=o;return o.children=i,o}}class Mn extends Oo{constructor(e,t,r,o,i,s,l,a,c){super(e,[],i,s),this.node=t,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,t,r,o,i,s){let l=i.nodeViews[t.type.name],a,c=l&&l(t,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),u=c&&c.dom,f=c&&c.contentDOM;if(t.isText){if(!u)u=document.createTextNode(t.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=Jt.renderSpec(document,t.type.spec.toDOM(t)));!f&&!t.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let h=u;return u=zd(u,r,t),c?a=new bv(e,t,r,o,u,f||null,h,c,i,s+1):t.isText?new Ii(e,t,r,o,u,h,i):new Mn(e,t,r,o,u,f||null,h,i,s+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)&&qa(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,i=e.composing?this.localCompositionInfo(e,t):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,a=new Cv(this,s&&s.node,e);kv(this.node,this.innerDeco,(c,u,f)=>{c.spec.marks?a.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!f&&a.syncToMarks(u==this.node.childCount?$e.none:this.node.child(u).marks,r,e),a.placeWidget(c,e,o)},(c,u,f,h)=>{a.syncToMarks(c.marks,r,e);let p;a.findNodeMatch(c,u,f,h)||l&&e.state.selection.from>o&&e.state.selection.to<o+c.nodeSize&&(p=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(c,u,f,p,e)||a.updateNextNode(c,u,f,e,h,o)||a.addNode(c,u,f,e,o),o+=c.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==ar)&&(s&&this.protectLocalComposition(e,s),Fd(this.contentDOM,this.children,e),$r&&Tv(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 i=e.domSelectionRange(),s=Av(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let l=s.nodeValue,a=xv(this.node.content,l,r-t,o-t);return a<0?null:{node:s,pos:a,text:l}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:r,text:o}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new vv(this,i,t,o);e.input.compositionNodes.push(s),this.children=el(this.children,r,r+o.length,e,s)}update(e,t,r,o){return this.dirty==qt||!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(qa(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Vd(this.dom,this.nodeDOM,Qa(this.outerDeco,this.node,t),Qa(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 $d(n,e,t,r,o){zd(r,e,n);let i=new Mn(void 0,n,e,t,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class Ii extends Mn{constructor(e,t,r,o,i,s,l){super(e,t,r,o,i,null,s,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==qt||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),i=document.createTextNode(o.text);return new Ii(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=qt)}get domAtom(){return!1}}class Pd extends Oo{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 bv extends Mn{constructor(e,t,r,o,i,s,l,a,c,u){super(e,t,r,o,i,s,l,c,u),this.spec=a}update(e,t,r,o){if(this.dirty==qt)return!1;if(this.spec.update){let i=this.spec.update(e,t,r);return i&&this.updateInner(e,t,r,o),i}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 Fd(n,e,t){let r=n.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],l=s.dom;if(l.parentNode==n){for(;l!=r;)r=Hd(r),o=!0;r=r.nextSibling}else o=!0,n.insertBefore(l,r);if(s instanceof lr){let a=r?r.previousSibling:n.lastChild;Fd(s.contentDOM,s.children,t),r=a?a.nextSibling:n.firstChild}}for(;r;)r=Hd(r),o=!0;o&&t.trackWrites==n&&(t.trackWrites=null)}const Mo=function(n){n&&(this.nodeName=n)};Mo.prototype=Object.create(null);const cr=[new Mo];function Qa(n,e,t){if(n.length==0)return cr;let r=t?cr[0]:new Mo,o=[r];for(let i=0;i<n.length;i++){let s=n[i].type.attrs;if(s){s.nodeName&&o.push(r=new Mo(s.nodeName));for(let l in s){let a=s[l];a!=null&&(t&&o.length==1&&o.push(r=new Mo(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 Vd(n,e,t,r){if(t==cr&&r==cr)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],l=t[i];if(i){let a;l&&l.nodeName==s.nodeName&&o!=n&&(a=o.parentNode)&&a.nodeName.toLowerCase()==s.nodeName||(a=document.createElement(s.nodeName),a.pmIsDeco=!0,a.appendChild(o),l=cr[0]),o=a}Ev(o,l||cr[0],s)}return o}function Ev(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 i=0;i<r.length;i++)o.indexOf(r[i])==-1&&n.classList.remove(r[i]);for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&n.classList.add(o[i]);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 zd(n,e,t){return Vd(n,n,cr,Qa(e,t,n.nodeType!=1))}function qa(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 Hd(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class Cv{constructor(e,t,r){this.lock=t,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Sv(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,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=_t,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<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[i])&&!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=lr.create(this.top,e[i],t,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,t,r))i=this.top.children.indexOf(s,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)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,r,o,i){let s=this.top.children[o];return s.dirty==qt&&s.dom==s.contentDOM&&(s.dirty=ar),s.update(e,t,r,i)?(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,i,s){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!=i)return!1;let u=a.dom,f,h=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=qt&&qa(t,a.outerDeco));if(!h&&a.update(e,t,r,o))return this.destroyBetween(this.index,l),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(a,e,t,r,o,s)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=ar,f.updateChildren(o,s+1),f.dirty=_t),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,r,o,i,s){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,i,s);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,i){let s=Mn.create(this.top,e,t,r,o,i);s.contentDOM&&s.updateChildren(o,i+1),this.top.children.splice(this.index++,0,s),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 i=new Bd(this.top,e,t,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof lr;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Ii)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((ct||ot)&&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 Pd(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 Sv(n,e){let t=e,r=t.children.length,o=n.childCount,i=new Map,s=[];e:for(;o>0;){let l;for(;;)if(r){let c=t.children[r-1];if(c instanceof lr)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,i.set(l,o),s.push(l)}}return{index:o,matched:i,matches:s.reverse()}}function wv(n,e){return n.type.side-e.type.side}function kv(n,e,t,r){let o=e.locals(n),i=0;if(o.length==0){for(let c=0;c<n.childCount;c++){let u=n.child(c);r(u,o,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,l=[],a=null;for(let c=0;;){let u,f;for(;s<o.length&&o[s].to==i;){let y=o[s++];y.widget&&(u?(f||(f=[u])).push(y):u=y)}if(u)if(f){f.sort(wv);for(let y=0;y<f.length;y++)t(f[y],c,!!a)}else t(u,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<=i&&l.splice(y--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)l.push(o[s++]);let m=i+h.nodeSize;if(h.isText){let y=m;s<o.length&&o[s].from<y&&(y=o[s].from);for(let C=0;C<l.length;C++)l[C].to<y&&(y=l[C].to);y<m&&(a=h.cut(y-i),h=h.cut(0,y-i),m=y,p=-1)}let g=h.isInline&&!h.isLeaf?l.filter(y=>!y.inline):l.slice();r(h,g,e.forChild(i,h),p),i=m}}function Tv(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 Av(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=Xt(n)}else if(n.nodeType==1&&e<n.childNodes.length)n=n.childNodes[e],e=0;else return null}}function xv(n,e,t,r){for(let o=0,i=0;o<n.childCount&&i<=r;){let s=n.child(o++),l=i;if(i+=s.nodeSize,!s.isText)continue;let a=s.text;for(;o<n.childCount;){let c=n.child(o++);if(i+=c.nodeSize,!c.isText)break;a+=c.text}if(i>=t){if(i>=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 el(n,e,t,r,o){let i=[];for(let s=0,l=0;s<n.length;s++){let a=n[s],c=l,u=l+=a.size;c>=t||u<=e?i.push(a):(c<e&&i.push(a.slice(0,e-c,r)),o&&(i.push(o),o=void 0),u>t&&i.push(a.slice(t-c,a.size,r)))}return i}function tl(n,e=null){let t=n.domSelectionRange(),r=n.state.doc;if(!t.focusNode)return null;let o=n.docView.nearestDesc(t.focusNode),i=o&&o.size==0,s=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(s<0)return null;let l=r.resolve(s),a,c;if(Ni(t)){for(a=l;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&xe.isSelectable(u)&&o.parent&&!(u.isInline&&Xy(t.focusNode,t.focusOffset,o.dom))){let f=o.posBefore;c=new xe(s==f?l:r.resolve(f))}}else{let u=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(u<0)return null;a=r.resolve(u)}if(!c){let u=e=="pointer"||n.state.selection.head<l.pos&&!i?1:-1;c=rl(n,a,l,u)}return c}function Ud(n){return n.editable?n.hasFocus():Zd(n)&&document.activeElement&&document.activeElement.contains(n.dom)}function hn(n,e=!1){let t=n.state.selection;if(Yd(n,t),!!Ud(n)){if(!e&&n.input.mouseDown&&n.input.mouseDown.allowDefault&&ot){let r=n.domSelectionRange(),o=n.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&ir(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){n.input.mouseDown.delayedSelectionSync=!0,n.domObserver.setCurSelection();return}}if(n.domObserver.disconnectSelection(),n.cursorWrapper)Mv(n);else{let{anchor:r,head:o}=t,i,s;jd&&!(t instanceof Be)&&(t.$from.parent.inlineContent||(i=Wd(n,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(s=Wd(n,t.to))),n.docView.setSelection(r,o,n.root,e),jd&&(i&&Kd(i),s&&Kd(s)),t.visible?n.dom.classList.remove("ProseMirror-hideselection"):(n.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Ov(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const jd=ct||ot&&ev<63;function Wd(n,e){let{node:t,offset:r}=n.docView.domFromPos(e,0),o=r<t.childNodes.length?t.childNodes[r]:null,i=r?t.childNodes[r-1]:null;if(ct&&o&&o.contentEditable=="false")return nl(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return nl(o);if(i)return nl(i)}}function nl(n){return n.contentEditable="true",ct&&n.draggable&&(n.draggable=!1,n.wasDraggable=!0),n}function Kd(n){n.contentEditable="false",n.wasDraggable&&(n.draggable=!0,n.wasDraggable=null)}function Ov(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(()=>{(!Ud(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function Mv(n){let e=n.domSelection(),t=document.createRange(),r=n.cursorWrapper.dom,o=r.nodeName=="IMG";o?t.setEnd(r.parentNode,lt(r)+1):t.setEnd(r,0),t.collapse(!1),e.removeAllRanges(),e.addRange(t),!o&&!n.state.selection.visible&&vt&&xn<=11&&(r.disabled=!0,r.disabled=!1)}function Yd(n,e){if(e instanceof xe){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(Gd(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else Gd(n)}function Gd(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function rl(n,e,t,r){return n.someProp("createSelectionBetween",o=>o(n,e,t))||Be.between(e,t,r)}function Jd(n){return n.editable&&!n.hasFocus()?!1:Zd(n)}function Zd(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 _v(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return ir(e.node,e.offset,t.anchorNode,t.anchorOffset)}function ol(n,e){let{$anchor:t,$head:r}=n.selection,o=e>0?t.max(r):t.min(r),i=o.parent.inlineContent?o.depth?n.doc.resolve(e>0?o.after():o.before()):null:o;return i&&Re.findFrom(i,e)}function _n(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function Xd(n,e,t){let r=n.state.selection;if(r instanceof Be)if(t.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=n.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return _n(n,new Be(r.$anchor,s))}else if(r.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let o=ol(n.state,e);return o&&o instanceof xe?_n(n,o):!1}else if(!(Mt&&t.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let l=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=n.docView.descAt(l))&&!s.contentDOM?xe.isSelectable(i)?_n(n,new xe(e<0?n.state.doc.resolve(o.pos-i.nodeSize):o)):Ao?_n(n,new Be(n.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof xe&&r.node.isInline)return _n(n,new Be(e>0?r.$to:r.$from));{let o=ol(n.state,e);return o?_n(n,o):!1}}}function Di(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function _o(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function Fr(n,e){return e<0?Nv(n):Iv(n)}function Nv(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o,i,s=!1;for(jt&&t.nodeType==1&&r<Di(t)&&_o(t.childNodes[r],-1)&&(s=!0);;)if(r>0){if(t.nodeType!=1)break;{let l=t.childNodes[r-1];if(_o(l,-1))o=t,i=--r;else if(l.nodeType==3)t=l,r=t.nodeValue.length;else break}}else{if(Qd(t))break;{let l=t.previousSibling;for(;l&&_o(l,-1);)o=t.parentNode,i=lt(l),l=l.previousSibling;if(l)t=l,r=Di(t);else{if(t=t.parentNode,t==n.dom)break;r=0}}}s?il(n,t,r):o&&il(n,o,i)}function Iv(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o=Di(t),i,s;for(;;)if(r<o){if(t.nodeType!=1)break;let l=t.childNodes[r];if(_o(l,1))i=t,s=++r;else break}else{if(Qd(t))break;{let l=t.nextSibling;for(;l&&_o(l,1);)i=l.parentNode,s=lt(l)+1,l=l.nextSibling;if(l)t=l,r=0,o=Di(t);else{if(t=t.parentNode,t==n.dom)break;r=o=0}}}i&&il(n,i,s)}function Qd(n){let e=n.pmViewDesc;return e&&e.node&&e.node.isBlock}function Dv(n,e){for(;n&&e==n.childNodes.length&&!Ka(n);)e=lt(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 Lv(n,e){for(;n&&!e&&!Ka(n);)e=lt(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 il(n,e,t){if(e.nodeType!=3){let i,s;(s=Dv(e,t))?(e=s,t=0):(i=Lv(e,t))&&(e=i,t=i.nodeValue.length)}let r=n.domSelection();if(Ni(r)){let i=document.createRange();i.setEnd(e,t),i.setStart(e,t),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,t);n.domObserver.setCurSelection();let{state:o}=n;setTimeout(()=>{n.state==o&&hn(n)},50)}function qd(n,e){let t=n.state.doc.resolve(e);if(!(ot||tv)&&t.parent.inlineContent){let o=n.coordsAtPos(e);if(e>t.start()){let i=n.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left<o.left?"ltr":"rtl"}if(e<t.end()){let i=n.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function ef(n,e,t){let r=n.state.selection;if(r instanceof Be&&!r.empty||t.indexOf("s")>-1||Mt&&t.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let s=ol(n.state,e);if(s&&s instanceof xe)return _n(n,s)}if(!o.parent.inlineContent){let s=e<0?o:i,l=r instanceof Ht?Re.near(s,e):Re.findFrom(s,e);return l?_n(n,l):!1}return!1}function tf(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 i=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(i&&!i.isText){let s=n.state.tr;return e<0?s.delete(t.pos-i.nodeSize,t.pos):s.delete(t.pos,t.pos+i.nodeSize),n.dispatch(s),!0}return!1}function nf(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function Rv(n){if(!ct||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;nf(n,r,"true"),setTimeout(()=>nf(n,r,"false"),20)}return!1}function Bv(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}function $v(n,e){let t=e.keyCode,r=Bv(e);if(t==8||Mt&&t==72&&r=="c")return tf(n,-1)||Fr(n,-1);if(t==46&&!e.shiftKey||Mt&&t==68&&r=="c")return tf(n,1)||Fr(n,1);if(t==13||t==27)return!0;if(t==37||Mt&&t==66&&r=="c"){let o=t==37?qd(n,n.state.selection.from)=="ltr"?-1:1:-1;return Xd(n,o,r)||Fr(n,o)}else if(t==39||Mt&&t==70&&r=="c"){let o=t==39?qd(n,n.state.selection.from)=="ltr"?1:-1:1;return Xd(n,o,r)||Fr(n,o)}else{if(t==38||Mt&&t==80&&r=="c")return ef(n,-1,r)||Fr(n,-1);if(t==40||Mt&&t==78&&r=="c")return Rv(n)||ef(n,1,r)||Fr(n,1);if(r==(Mt?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function rf(n,e){n.someProp("transformCopied",p=>{e=p(e,n)});let t=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let p=r.firstChild;t.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let s=n.someProp("clipboardSerializer")||Jt.fromSchema(n.state.schema),l=ff(),a=l.createElement("div");a.appendChild(s.serializeFragment(r,{document:l}));let c=a.firstChild,u,f=0;for(;c&&c.nodeType==1&&(u=uf[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let m=l.createElement(u[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} ${i}${f?` -${f}`:""} ${JSON.stringify(t)}`);let h=n.someProp("clipboardTextSerializer",p=>p(e,n))||e.content.textBetween(0,e.content.size,`
|
|
16
|
-
|
|
17
|
-
`);return{dom:a,text:h}}function
|
|
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=Jt.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let y=s.appendChild(document.createElement("p"));g&&y.appendChild(m.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",f=>{t=f(t,n)}),s=Vv(t),Ao&&zv(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(l||(l=(n.someProp("clipboardParser")||n.someProp("domParser")||Mr.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!Pv.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)l=Hv(cf(l,+u[1],+u[2]),u[4]);else if(l=ye.maxOpen(Fv(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=cf(l,f,h)}return n.someProp("transformPasted",f=>{l=f(l,n)}),l}const Pv=/^(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 Fv(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)),i,s=[];if(n.forEach(l=>{if(!s)return;let a=o.findWrapping(l.type),c;if(!a)return s=null;if(c=s.length&&i.length&&af(a,i,l,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=lf(s[s.length-1],i.length));let u=sf(l,a);s.push(u),o=o.matchType(u.type),i=a}}),s)return ae.from(s)}return n}function sf(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,ae.from(n));return n}function af(n,e,t,r,o){if(o<n.length&&o<e.length&&n[o]==e[o]){let i=af(n,e,t,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==n.length-1?t.type:n[o+1]))return r.copy(r.content.append(ae.from(sf(t,n,o+1))))}}function lf(n,e){if(e==0)return n;let t=n.content.replaceChild(n.childCount-1,lf(n.lastChild,e-1)),r=n.contentMatchAt(n.childCount).fillBefore(ae.empty,!0);return n.copy(t.append(r))}function sl(n,e,t,r,o,i){let s=e<0?n.firstChild:n.lastChild,l=s.content;return n.childCount>1&&(i=0),o<r-1&&(l=sl(l,e,t,r,o+1,i)),o>=t&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(ae.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,s.copy(l))}function cf(n,e,t){return e<n.openStart&&(n=new ye(sl(n.content,-1,e,n.openStart,0,n.openEnd),e,n.openEnd)),t<n.openEnd&&(n=new ye(sl(n.content,1,t,n.openEnd,0,0),n.openStart,t)),n}const uf={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 df=null;function ff(){return df||(df=document.implementation.createHTMLDocument("title"))}function Vv(n){let e=/^(\s*<meta [^>]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=ff().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),o;if((o=r&&uf[r[1].toLowerCase()])&&(n=o.map(i=>"<"+i+">").join("")+n+o.map(i=>"</"+i+">").reverse().join("")),t.innerHTML=n,o)for(let i=0;i<o.length;i++)t=t.querySelector(o[i])||t;return t}function zv(n){let e=n.querySelectorAll(ot?"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 Hv(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:i,openEnd:s}=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)),i++,s++}return new ye(o,i,s)}const ut={},dt={},Uv={touchstart:!0,touchmove:!0};class jv{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 Wv(n){for(let e in ut){let t=ut[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{Yv(n,r)&&!ll(n,r)&&(n.editable||!(r.type in dt))&&t(n,r)},Uv[e]?{passive:!0}:void 0)}ct&&n.dom.addEventListener("input",()=>null),al(n)}function Nn(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function Kv(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 al(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>ll(n,r))})}function ll(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function Yv(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 Gv(n,e){!ll(n,e)&&ut[e.type]&&(n.editable||!(e.type in dt))&&ut[e.type](n,e)}dt.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!pf(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(Wt&&ot&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),$r&&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,sr(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||$v(n,t)?t.preventDefault():Nn(n,"key")},dt.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)},dt.keypress=(n,e)=>{let t=e;if(pf(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Mt&&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",i=>i(n,r.$from.pos,r.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};function Li(n){return{left:n.clientX,top:n.clientY}}function Jv(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function cl(n,e,t,r,o){if(r==-1)return!1;let i=n.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(n.someProp(e,l=>s>i.depth?l(n,t,i.nodeAfter,i.before(s),o,!0):l(n,t,i.node(s),i.before(s),o,!1)))return!0;return!1}function Vr(n,e,t){n.focused||n.focus();let r=n.state.tr.setSelection(e);t=="pointer"&&r.setMeta("pointer",!0),n.dispatch(r)}function Zv(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&xe.isSelectable(r)?(Vr(n,new xe(t),"pointer"),!0):!1}function Xv(n,e){if(e==-1)return!1;let t=n.state.selection,r,o;t instanceof xe&&(r=t.node);let i=n.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(xe.isSelectable(l)){r&&t.$from.depth>0&&s>=t.$from.depth&&i.before(t.$from.depth+1)==t.$from.pos?o=i.before(t.$from.depth):o=i.before(s);break}}return o!=null?(Vr(n,xe.create(n.state.doc,o),"pointer"),!0):!1}function Qv(n,e,t,r,o){return cl(n,"handleClickOn",e,t,r)||n.someProp("handleClick",i=>i(n,e,r))||(o?Xv(n,t):Zv(n,t))}function qv(n,e,t,r){return cl(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",o=>o(n,e,r))}function e5(n,e,t,r){return cl(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",o=>o(n,e,r))||t5(n,t,r)}function t5(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(Vr(n,Be.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),l=o.before(i);if(s.inlineContent)Vr(n,Be.create(r,l+1,l+1+s.content.size),"pointer");else if(xe.isSelectable(s))Vr(n,xe.create(r,l),"pointer");else continue;return!0}}function ul(n){return Ri(n)}const hf=Mt?"metaKey":"ctrlKey";ut.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=ul(n),o=Date.now(),i="singleClick";o-n.input.lastClick.time<500&&Jv(t,n.input.lastClick)&&!t[hf]&&(n.input.lastClick.type=="singleClick"?i="doubleClick":n.input.lastClick.type=="doubleClick"&&(i="tripleClick")),n.input.lastClick={time:o,x:t.clientX,y:t.clientY,type:i};let s=n.posAtCoords(Li(t));s&&(i=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new n5(n,s,t,!!r)):(i=="doubleClick"?qv:e5)(n,s.pos,s.inside,t)?t.preventDefault():Nn(n,"pointer"))};class n5{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[hf],this.allowDefault=r.shiftKey;let i,s;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),s=t.inside;else{let u=e.state.doc.resolve(t.pos);i=u.parent,s=u.depth?u.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&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof xe&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&jt&&!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)),Nn(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(Li(e))),this.updateAllowDefault(e),this.allowDefault||!t?Nn(this.view,"pointer"):Qv(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||ct&&this.mightDrag&&!this.mightDrag.node.isAtom||ot&&!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)?(Vr(this.view,Re.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Nn(this.view,"pointer")}move(e){this.updateAllowDefault(e),Nn(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)}}ut.touchstart=n=>{n.input.lastTouch=Date.now(),ul(n),Nn(n,"pointer")},ut.touchmove=n=>{n.input.lastTouch=Date.now(),Nn(n,"pointer")},ut.contextmenu=n=>ul(n);function pf(n,e){return n.composing?!0:ct&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const r5=Wt?5e3:-1;dt.compositionstart=dt.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(),Ri(n,!0),n.markCursor=null;else if(Ri(n),jt&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let r=n.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){n.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}n.input.composing=!0}mf(n,r5)},dt.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++,mf(n,20))};function mf(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>Ri(n),e))}function gf(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=o5());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function o5(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function Ri(n,e=!1){if(!(Wt&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),gf(n),e||n.docView&&n.docView.dirty){let t=tl(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}function i5(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 No=vt&&xn<15||$r&&nv<604;ut.copy=dt.cut=(n,e)=>{let t=e,r=n.state.selection,o=t.type=="cut";if(r.empty)return;let i=No?null:t.clipboardData,s=r.content(),{dom:l,text:a}=rf(n,s);i?(t.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",a)):i5(n,l),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function s5(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function a5(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?Io(n,r.value,null,o,e):Io(n,r.textContent,r.innerHTML,o,e)},50)}function Io(n,e,t,r,o){let i=of(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,o,i||ye.empty)))return!0;if(!i)return!1;let s=s5(i),l=s?n.state.tr.replaceSelectionWith(s,r):n.state.tr.replaceSelection(i);return n.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function yf(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," "):""}dt.paste=(n,e)=>{let t=e;if(n.composing&&!Wt)return;let r=No?null:t.clipboardData,o=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&Io(n,yf(r),r.getData("text/html"),o,t)?t.preventDefault():a5(n,t)};class vf{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const bf=Mt?"altKey":"ctrlKey";ut.dragstart=(n,e)=>{let t=e,r=n.input.mouseDown;if(r&&r.done(),!t.dataTransfer)return;let o=n.state.selection,i=o.empty?null:n.posAtCoords(Li(t)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof xe?o.to-1:o.to))){if(r&&r.mightDrag)s=xe.create(n.state.doc,r.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let u=n.docView.nearestDesc(t.target,!0);u&&u.node.type.spec.draggable&&u!=n.docView&&(s=xe.create(n.state.doc,u.posBefore))}}let l=(s||n.state.selection).content(),{dom:a,text:c}=rf(n,l);t.dataTransfer.clearData(),t.dataTransfer.setData(No?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",No||t.dataTransfer.setData("text/plain",c),n.dragging=new vf(l,!t[bf],s)},ut.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)},dt.dragover=dt.dragenter=(n,e)=>e.preventDefault(),dt.drop=(n,e)=>{let t=e,r=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let o=n.posAtCoords(Li(t));if(!o)return;let i=n.state.doc.resolve(o.pos),s=r&&r.slice;s?n.someProp("transformPasted",m=>{s=m(s,n)}):s=of(n,yf(t.dataTransfer),No?null:t.dataTransfer.getData("text/html"),!1,i);let l=!!(r&&!t[bf]);if(n.someProp("handleDrop",m=>m(n,t,s||ye.empty,l))){t.preventDefault();return}if(!s)return;t.preventDefault();let a=s?Fy(n.state.doc,i.pos,s):i.pos;a==null&&(a=i.pos);let c=n.state.tr;if(l){let{node:m}=r;m?m.replace(c):c.deleteSelection()}let u=c.mapping.map(a),f=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=c.doc;if(f?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let p=c.doc.resolve(u);if(f&&xe.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new xe(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(rl(n,p,c.doc.resolve(m)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},ut.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))},ut.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)},ut.beforeinput=(n,e)=>{if(ot&&Wt&&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",i=>i(n,sr(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 dt)ut[n]=dt[n];function Do(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 Bi{constructor(e,t){this.toDOM=e,this.spec=t||ur,this.side=this.spec.side||0}map(e,t,r,o){let{pos:i,deleted:s}=e.mapResult(t.from+o,this.side<0?-1:1);return s?null:new Nt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Bi&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Do(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class In{constructor(e,t){this.attrs=e,this.spec=t||ur}map(e,t,r,o){let i=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new Nt(i,s,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof In&&Do(this.attrs,e.attrs)&&Do(this.spec,e.spec)}static is(e){return e.type instanceof In}destroy(){}}class dl{constructor(e,t){this.attrs=e,this.spec=t||ur}map(e,t,r,o){let i=e.mapResult(t.from+o,1);if(i.deleted)return null;let s=e.mapResult(t.to+o,-1);return s.deleted||s.pos<=i.pos?null:new Nt(i.pos-r,s.pos-r,this)}valid(e,t){let{index:r,offset:o}=e.content.findIndex(t.from),i;return o==t.from&&!(i=e.child(r)).isText&&o+i.nodeSize==t.to}eq(e){return this==e||e instanceof dl&&Do(this.attrs,e.attrs)&&Do(this.spec,e.spec)}destroy(){}}class Nt{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new Nt(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 Nt(e,e,new Bi(t,r))}static inline(e,t,r,o){return new Nt(e,t,new In(r,o))}static node(e,t,r,o){return new Nt(e,t,new dl(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof In}get widget(){return this.type instanceof Bi}}const zr=[],ur={};class Ye{constructor(e,t){this.local=e.length?e:zr,this.children=t.length?t:zr}static create(e,t){return t.length?$i(t,e,0,ur):it}find(e,t,r){let o=[];return this.findInner(e??0,t??1e9,o,0,r),o}findInner(e,t,r,o,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=t&&l.to>=e&&(!i||i(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){let l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,r,o+l,i)}}map(e,t,r){return this==it||e.maps.length==0?this:this.mapInner(e,t,0,0,r||ur)}mapInner(e,t,r,o,i){let s;for(let l=0;l<this.local.length;l++){let a=this.local[l].map(e,r,o);a&&a.type.valid(t,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?l5(this.children,s||[],e,t,r,o,i):s?new Ye(s.sort(dr),zr):it}add(e,t){return t.length?this==it?Ye.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let o,i=0;e.forEach((l,a)=>{let c=a+r,u;if(u=Cf(t,l,c)){for(o||(o=this.children.slice());i<o.length&&o[i]<a;)i+=3;o[i]==a?o[i+2]=o[i+2].addInner(l,u,c+1):o.splice(i,0,a,a+l.nodeSize,$i(u,l,c+1,ur)),i+=3}});let s=Ef(i?Sf(t):t,-r);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||s.splice(l--,1);return new Ye(s.length?this.local.concat(s).sort(dr):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 i=0;i<r.length;i+=3){let s,l=r[i]+t,a=r[i+1]+t;for(let u=0,f;u<e.length;u++)(f=e[u])&&f.from>l&&f.to<a&&(e[u]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let c=r[i+2].removeInner(s,l+1);c!=it?r[i+2]=c:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let l=0;l<o.length;l++)o[l].eq(s,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 Ye(o,r):it}forChild(e,t){if(this==it)return this;if(t.isLeaf)return Ye.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 i=e+1,s=i+t.content.size;for(let l=0;l<this.local.length;l++){let a=this.local[l];if(a.from<s&&a.to>i&&a.type instanceof In){let c=Math.max(i,a.from)-i,u=Math.min(s,a.to)-i;c<u&&(o||(o=[])).push(a.copy(c,u))}}if(o){let l=new Ye(o.sort(dr),zr);return r?new Dn([l,r]):l}return r||it}eq(e){if(this==e)return!0;if(!(e instanceof Ye)||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 fl(this.localsInner(e))}localsInner(e){if(this==it)return zr;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}}Ye.empty=new Ye([],[]),Ye.removeOverlap=fl;const it=Ye.empty;class Dn{constructor(e){this.members=e}map(e,t){const r=this.members.map(o=>o.map(e,t,ur));return Dn.from(r)}forChild(e,t){if(t.isLeaf)return Ye.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,t);i!=it&&(i instanceof Dn?r=r.concat(i.members):r.push(i))}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 i=this.members[o].localsInner(e);if(i.length)if(!t)t=i;else{r&&(t=t.slice(),r=!1);for(let s=0;s<i.length;s++)t.push(i[s])}}return t?fl(r?t:t.sort(dr)):zr}static from(e){switch(e.length){case 0:return it;case 1:return e[0];default:return new Dn(e.every(t=>t instanceof Ye)?e:e.reduce((t,r)=>t.concat(r instanceof Ye?r:r.members),[]))}}}function l5(n,e,t,r,o,i,s){let l=n.slice();for(let c=0,u=i;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+u-f)continue;let k=l[C]+u-f;p>=k?l[C+1]=h<=k?-2:-1:m>=o&&y&&(l[C]+=y,l[C+1]+=y)}f+=y}),u=t.maps[c].map(u,-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 u=t.map(n[c]+i),f=u-o;if(f<0||f>=r.content.size){a=!0;continue}let h=t.map(n[c+1]+i,-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,u+1,n[c]+i+1,s);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=c5(l,n,e,t,o,i,s),u=$i(c,r,0,s);e=u.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<u.children.length;f+=3){let p=u.children[f];for(;h<l.length&&l[h]<p;)h+=3;l.splice(h,0,u.children[f],u.children[f+1],u.children[f+2])}}return new Ye(e.sort(dr),l)}function Ef(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 Nt(o.from+e,o.to+e,o.type))}return t}function c5(n,e,t,r,o,i,s){function l(a,c){for(let u=0;u<a.local.length;u++){let f=a.local[u].map(r,o,c);f?t.push(f):s.onRemove&&s.onRemove(a.local[u].spec)}for(let u=0;u<a.children.length;u+=3)l(a.children[u+2],a.children[u]+c+1)}for(let a=0;a<n.length;a+=3)n[a+1]==-1&&l(n[a+2],e[a]+i+1);return t}function Cf(n,e,t){if(e.isLeaf)return null;let r=t+e.nodeSize,o=null;for(let i=0,s;i<n.length;i++)(s=n[i])&&s.from>t&&s.to<r&&((o||(o=[])).push(s),n[i]=null);return o}function Sf(n){let e=[];for(let t=0;t<n.length;t++)n[t]!=null&&e.push(n[t]);return e}function $i(n,e,t,r){let o=[],i=!1;e.forEach((l,a)=>{let c=Cf(n,l,a+t);if(c){i=!0;let u=$i(c,l,t+a+1,r);u!=it&&o.push(a,a+l.nodeSize,u)}});let s=Ef(i?Sf(n):n,-t).sort(dr);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||(r.onRemove&&r.onRemove(s[l].spec),s.splice(l--,1));return s.length||o.length?new Ye(s,o):it}function dr(n,e){return n.from-e.from||n.to-e.to}function fl(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 i=e[o];if(i.from==r.from){i.to!=r.to&&(e==n&&(e=n.slice()),e[o]=i.copy(i.from,r.to),wf(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==n&&(e=n.slice()),e[t]=r.copy(r.from,i.from),wf(e,o,r.copy(i.from,r.to)));break}}}return e}function wf(n,e,t){for(;e<n.length&&dr(t,n[e])>0;)e++;n.splice(e,0,t)}function hl(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=it&&e.push(r)}),n.cursorWrapper&&e.push(Ye.create(n.state.doc,[n.cursorWrapper.deco])),Dn.from(e)}const u5={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},d5=vt&&xn<=11;class f5{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 h5{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new f5,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]);vt&&xn<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),d5&&(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,u5)),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(Jd(this.view)){if(this.suppressingSelectionUpdates)return hn(this.view);if(vt&&xn<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&ir(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 i=e.focusNode;i;i=To(i))t.add(i);for(let i=e.anchorNode;i;i=To(i))if(t.has(i)){r=i;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)&&Jd(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,l=!1,a=[];if(e.editable)for(let u=0;u<t.length;u++){let f=this.registerMutation(t[u],a);f&&(i=i<0?f.from:Math.min(f.from,i),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(l=!0))}if(jt&&a.length>1){let u=a.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],h=u[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let c=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Ni(r)&&(c=tl(e))&&c.eq(Re.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,hn(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),p5(e)),this.handleDOMChange(i,s,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 u=0;u<e.addedNodes.length;u++)t.push(e.addedNodes[u]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(vt&&xn<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:f,nextSibling:h}=e.addedNodes[u];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?lt(o)+1:0,l=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?lt(i):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 kf=new WeakMap,Tf=!1;function p5(n){if(!kf.has(n)&&(kf.set(n,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace)!==-1)){if(n.requiresGeckoHackNode=jt,Tf)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."),Tf=!0}}function m5(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,i=e.endContainer,s=e.endOffset,l=n.domAtPos(n.state.selection.anchor);return ir(l.node,l.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function g5(n,e,t){let{node:r,fromOffset:o,toOffset:i,from:s,to:l}=n.docView.parseRange(e,t),a=n.domSelectionRange(),c,u=a.anchorNode;if(u&&n.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:a.anchorOffset}],Ni(a)||c.push({node:a.focusNode,offset:a.focusOffset})),ot&&n.input.lastKeyCode===8)for(let y=i;y>o;y--){let C=r.childNodes[y-1],S=C.pmViewDesc;if(C.nodeName=="BR"&&!S){i=y;break}if(!S||S.size)break}let f=n.state.doc,h=n.someProp("domParser")||Mr.fromSchema(n.state.schema),p=f.resolve(s),m=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:y5,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+s,head:C+s}}return{doc:g,sel:m,from:s,to:l}}function y5(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(ct&&/^(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||ct&&/^(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 v5=/^(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 b5(n,e,t,r,o){let i=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let j=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,P=tl(n,j);if(P&&!n.state.selection.eq(P)){if(ot&&Wt&&n.input.lastKeyCode===13&&Date.now()-100<n.input.lastKeyCodeTime&&n.someProp("handleKeyDown",V=>V(n,sr(13,"Enter"))))return;let L=n.state.tr.setSelection(P);j=="pointer"?L.setMeta("pointer",!0):j=="key"&&L.scrollIntoView(),i&&L.setMeta("composition",i),n.dispatch(L)}return}let s=n.state.doc.resolve(e),l=s.sharedDepth(t);e=s.before(l+1),t=n.state.doc.resolve(t).after(l+1);let a=n.state.selection,c=g5(n,e,t),u=n.state.doc,f=u.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=S5(f.content,c.doc.content,c.from,h,p);if(($r&&n.input.lastIOSEnter>Date.now()-225||Wt)&&o.some(j=>j.nodeType==1&&!v5.test(j.nodeName))&&(!m||m.endA>=m.endB)&&n.someProp("handleKeyDown",j=>j(n,sr(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 j=Af(n,n.state.doc,c.sel);if(j&&!j.eq(n.state.selection)){let P=n.state.tr.setSelection(j);i&&P.setMeta("composition",i),n.dispatch(P)}}return}if(ot&&n.cursorWrapper&&c.sel&&c.sel.anchor==n.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let j=m.endB-m.start;c.sel={anchor:c.sel.anchor+j,head:c.sel.anchor+j}}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)),vt&&xn<=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=u.resolve(m.start),S=g.sameParent(y)&&g.parent.inlineContent&&C.end()>=m.endA,k;if(($r&&n.input.lastIOSEnter>Date.now()-225&&(!S||o.some(j=>j.nodeName=="DIV"||j.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",j=>j(n,sr(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>m.start&&C5(u,m.start,m.endA,g,y)&&n.someProp("handleKeyDown",j=>j(n,sr(8,"Backspace")))){Wt&&ot&&n.domObserver.suppressSelectionUpdates();return}ot&&Wt&&m.endB==m.start&&(n.input.lastAndroidDelete=Date.now()),Wt&&!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(j){return j(n,sr(13,"Enter"))})},20));let b=m.start,M=m.endA,T,z,U;if(S){if(g.pos==y.pos)vt&&xn<=11&&g.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>hn(n),20)),T=n.state.tr.delete(b,M),z=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(U=E5(g.parent.content.cut(g.parentOffset,y.parentOffset),C.parent.content.cut(C.parentOffset,m.endA-C.start()))))T=n.state.tr,U.type=="add"?T.addMark(b,M,U.mark):T.removeMark(b,M,U.mark);else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let j=g.parent.textBetween(g.parentOffset,y.parentOffset);if(n.someProp("handleTextInput",P=>P(n,b,M,j)))return;T=n.state.tr.insertText(j,b,M)}}if(T||(T=n.state.tr.replace(b,M,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let j=Af(n,T.doc,c.sel);j&&!(ot&&Wt&&n.composing&&j.empty&&(m.start!=m.endB||n.input.lastAndroidDelete<Date.now()-100)&&(j.head==b||j.head==T.mapping.map(M)-1)||vt&&j.empty&&j.head==b)&&T.setSelection(j)}z&&T.ensureMarks(z),i&&T.setMeta("composition",i),n.dispatch(T.scrollIntoView())}function Af(n,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:rl(n,e.resolve(t.anchor),e.resolve(t.head))}function E5(n,e){let t=n.firstChild.marks,r=e.firstChild.marks,o=t,i=r,s,l,a;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<t.length;u++)i=t[u].removeFromSet(i);if(o.length==1&&i.length==0)l=o[0],s="add",a=u=>u.mark(l.addToSet(u.marks));else if(o.length==0&&i.length==1)l=i[0],s="remove",a=u=>u.mark(l.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(a(e.child(u)));if(ae.from(c).eq(n))return{mark:l,type:s}}function C5(n,e,t,r,o){if(!r.parent.isTextblock||t-e<=o.pos-r.pos||pl(r,!0,!1)<o.pos)return!1;let i=n.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=n.resolve(pl(i,!0,!0));return!s.parent.isTextblock||s.pos>t||pl(s,!0,!1)<t?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function pl(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 i=n.node(r).maybeChild(n.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function S5(n,e,t,r,o){let i=n.findDiffStart(e,t);if(i==null)return null;let{a:s,b:l}=n.findDiffEnd(e,t+n.size,t+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,l));r-=s+a-i}if(s<i&&n.size<e.size){let a=r<=i&&r>=s?i-r:0;i-=a,i&&i<e.size&&xf(e.textBetween(i-1,i+1))&&(i+=a?1:-1),l=i+(l-s),s=i}else if(l<i){let a=r<=i&&r>=l?i-r:0;i-=a,i&&i<n.size&&xf(n.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}function xf(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 w5{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 jv,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(If),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=_f(this),Mf(this),this.nodeViews=Nf(this),this.docView=$d(this.state.doc,Of(this),hl(this),this.dom,this),this.domObserver=new h5(this,(r,o,i,s)=>b5(this,r,o,i,s)),this.domObserver.start(),Wv(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&&al(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(If),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,i=!1,s=!1;e.storedMarks&&this.composing&&(gf(this),s=!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=Nf(this);T5(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&al(this),this.editable=_f(this),Mf(this);let a=hl(this),c=Of(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,c,a);(f||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&iv(this);if(s){this.domObserver.stop();let p=f&&(vt||ot)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&k5(o.selection,e.selection);if(f){let m=ot?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,c,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=$d(e.doc,c,a,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&_v(this))?hn(this,p):(Yd(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),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&sv(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof xe){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&kd(this,t.getBoundingClientRect(),e)}else kd(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 i=r.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new vf(e.slice,e.move,o<0?void 0:xe.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 s=0;s<this.directPlugins.length;s++){let l=this.directPlugins[s].props[e];if(l!=null&&(o=t?t(l):l))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let l=i[s].props[e];if(l!=null&&(o=t?t(l):l))return o}}hasFocus(){if(vt){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&&av(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 fv(this,e)}coordsAtPos(e,t=1){return _d(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 yv(this,t||this.state,e)}pasteHTML(e,t){return Io(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Io(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(Kv(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],hl(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 Gv(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return ct&&this.root.nodeType===11&&Qy(this.dom.ownerDocument)==this.dom?m5(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Of(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"),[Nt.node(0,n.state.doc.content.size,e)]}function Mf(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:Nt.widget(n.state.selection.head,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function _f(n){return!n.someProp("editable",e=>e(n.state)===!1)}function k5(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 Nf(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 T5(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 If(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:"'"},Pi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},A5=typeof navigator<"u"&&/Mac/.test(navigator.platform),x5=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),et=0;et<10;et++)Ln[48+et]=Ln[96+et]=String(et);for(var et=1;et<=24;et++)Ln[et+111]="F"+et;for(var et=65;et<=90;et++)Ln[et]=String.fromCharCode(et+32),Pi[et]=String.fromCharCode(et);for(var ml in Ln)Pi.hasOwnProperty(ml)||(Pi[ml]=Ln[ml]);function O5(n){var e=A5&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||x5&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Pi: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 M5=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function _5(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,o,i,s;for(let l=0;l<e.length-1;l++){let a=e[l];if(/^(cmd|meta|m)$/i.test(a))s=!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))i=!0;else if(/^mod$/i.test(a))M5?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(t="Alt-"+t),o&&(t="Ctrl-"+t),s&&(t="Meta-"+t),i&&(t="Shift-"+t),t}function N5(n){let e=Object.create(null);for(let t in n)e[_5(t)]=n[t];return e}function gl(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 I5(n){return new yt({props:{handleKeyDown:D5(n)}})}function D5(n){let e=N5(n);return function(t,r){let o=O5(r),i,s=e[gl(o,r)];if(s&&s(t.state,t.dispatch,t))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[gl(o,r,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=Ln[r.keyCode])&&i!=o){let l=e[gl(i,r)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const L5=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function R5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}const B5=(n,e,t)=>{let r=R5(n,t);if(!r)return!1;let o=Df(r);if(!o){let s=r.blockRange(),l=s&&Nr(s);return l==null?!1:(e&&e(n.tr.lift(s,l).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&Bf(n,o,e))return!0;if(r.parent.content.size==0&&(Hr(i,"end")||xe.isSelectable(i))){let s=Fa(n.doc,r.before(),r.after(),ye.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=n.tr.step(s);l.setSelection(Hr(i,"end")?Re.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):xe.create(l.doc,o.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1};function Hr(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 $5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):r.parentOffset>0)return!1;i=Df(r)}let s=i&&i.nodeBefore;return!s||!xe.isSelectable(s)?!1:(e&&e(n.tr.setSelection(xe.create(n.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function Df(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 P5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset<t.parent.content.size)?null:t}const F5=(n,e,t)=>{let r=P5(n,t);if(!r)return!1;let o=Lf(r);if(!o)return!1;let i=o.nodeAfter;if(Bf(n,o,e))return!0;if(r.parent.content.size==0&&(Hr(i,"start")||xe.isSelectable(i))){let s=Fa(n.doc,r.before(),r.after(),ye.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=n.tr.step(s);l.setSelection(Hr(i,"start")?Re.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):xe.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},V5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):r.parentOffset<r.parent.content.size)return!1;i=Lf(r)}let s=i&&i.nodeAfter;return!s||!xe.isSelectable(s)?!1:(e&&e(n.tr.setSelection(xe.create(n.doc,i.pos)).scrollIntoView()),!0)};function Lf(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 xe,o;if(r){if(t.node.isTextblock||!Tn(n.doc,t.from))return!1;o=t.from}else if(o=Oi(n.doc,t.from,-1),o==null)return!1;if(e){let i=n.tr.join(o);r&&i.setSelection(xe.create(i.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},H5=(n,e)=>{let t=n.selection,r;if(t instanceof xe){if(t.node.isTextblock||!Tn(n.doc,t.to))return!1;r=t.to}else if(r=Oi(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},U5=(n,e)=>{let{$from:t,$to:r}=n.selection,o=t.blockRange(r),i=o&&Nr(o);return i==null?!1:(e&&e(n.tr.lift(o,i).scrollIntoView()),!0)},j5=(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
|
-
`).scrollIntoView()),!0)};function Rf(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 W5=(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),i=t.indexAfter(-1),s=Rf(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=t.after(),a=n.tr.replaceWith(l,l,s.createAndFill());a.setSelection(Re.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},K5=(n,e)=>{let t=n.selection,{$from:r,$to:o}=t;if(t instanceof Ht||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=Rf(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=n.tr.insert(s,i.createAndFill());l.setSelection(Be.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},Y5=(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 i=t.before();if(Ir(n.doc,i))return e&&e(n.tr.split(i).scrollIntoView()),!0}let r=t.blockRange(),o=r&&Nr(r);return o==null?!1:(e&&e(n.tr.lift(r,o).scrollIntoView()),!0)},G5=(n,e)=>{let{$from:t,to:r}=n.selection,o,i=t.sharedDepth(r);return i==0?!1:(o=t.before(i),e&&e(n.tr.setSelection(xe.create(n.doc,o))),!0)};function J5(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(t&&t(n.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+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 Bf(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(J5(n,e,t))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(t){let f=e.pos+o.nodeSize,h=ae.empty;for(let g=i.length-1;g>=0;g--)h=ae.from(i[g].create(null,h));h=ae.from(r.copy(h));let p=n.tr.step(new Je(e.pos-1,f,e.pos,f,new ye(h,1,0),i.length,!0)),m=f+2*i.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),u=c&&Nr(c);if(u!=null&&u>=e.depth)return t&&t(n.tr.lift(c,u).scrollIntoView()),!0;if(l&&Hr(o,"start",!0)&&Hr(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 Je(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 $f(n){return function(e,t){let r=e.selection,o=n<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(t&&t(e.tr.setSelection(Be.create(e.doc,n<0?o.start(i):o.end(i)))),!0):!1}}const Z5=$f(-1),X5=$f(1);function Q5(n,e=null){return function(t,r){let{$from:o,$to:i}=t.selection,s=o.blockRange(i),l=s&&Pa(s,n,e);return l?(r&&r(t.tr.wrap(s,l).scrollIntoView()),!0):!1}}function Pf(n,e=null){return function(t,r){let o=!1;for(let i=0;i<t.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:l}}=t.selection.ranges[i];t.doc.nodesBetween(s,l,(a,c)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(n,e)))if(a.type==n)o=!0;else{let u=t.doc.resolve(c),f=u.index();o=u.parent.canReplaceWith(f,f+1,n)}})}if(!o)return!1;if(r){let i=t.tr;for(let s=0;s<t.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:a}}=t.selection.ranges[s];i.setBlockType(l,a,n,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function q5(n,e=null){return function(t,r){let{$from:o,$to:i}=t.selection,s=o.blockRange(i),l=!1,a=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(n)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let u=t.doc.resolve(s.start-2);a=new Ci(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new Ci(o,t.doc.resolve(i.end(s.depth)),s.depth)),l=!0}let c=Pa(a,n,e,s);return c?(r&&r(e3(t.tr,s,c,l,n).scrollIntoView()),!0):!1}}function e3(n,e,t,r,o){let i=ae.empty;for(let u=t.length-1;u>=0;u--)i=ae.from(t[u].type.create(t[u].attrs,i));n.step(new Je(e.start-(r?2:0),e.end,e.start,e.end,new ye(i,0,0),t.length,!0));let s=0;for(let u=0;u<t.length;u++)t[u].type==o&&(s=u+1);let l=t.length-s,a=e.start+t.length-(r?2:0),c=e.parent;for(let u=e.startIndex,f=e.endIndex,h=!0;u<f;u++,h=!1)!h&&Ir(n.doc,a,l)&&(n.split(a,l),a+=2*l),a+=c.child(u).nodeSize;return n}function t3(n){return function(e,t){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==n);return i?t?r.node(i.depth-1).type==n?n3(e,t,n,i):r3(e,t,i):!0:!1}}function n3(n,e,t,r){let o=n.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new Je(i-1,s,i,s,new ye(ae.from(t.create(null,r.parent.copy())),1,0),1,!0)),r=new Ci(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const l=Nr(r);if(l==null)return!1;o.lift(r,l);let a=o.mapping.map(i,-1)-1;return Tn(o.doc,a)&&o.join(a),e(o.scrollIntoView()),!0}function r3(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 i=r.doc.resolve(t.start),s=i.nodeAfter;if(r.mapping.map(t.end)!=t.start+i.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,a=t.endIndex==o.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(l?0:1),u+1,s.content.append(a?ae.empty:ae.from(o))))return!1;let f=i.pos,h=f+s.nodeSize;return r.step(new Je(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 o3(n){return function(e,t){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,c=>c.childCount>0&&c.firstChild.type==n);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let l=i.parent,a=l.child(s-1);if(a.type!=n)return!1;if(t){let c=a.lastChild&&a.lastChild.type==l.type,u=ae.from(c?n.create():null),f=new ye(ae.from(n.create(null,ae.from(l.type.create(null,u)))),c?3:1,0),h=i.start,p=i.end;t(e.tr.step(new Je(h-(c?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}function Fi(n){const{state:e,transaction:t}=n;let{selection:r}=t,{doc:o}=t,{storedMarks:i}=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 i},get selection(){return r},get doc(){return o},get tr(){return r=t.selection,o=t.doc,i=t.storedMarks,t}}}class Vi{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:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,a])=>[l,(...u)=>{const f=a(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l=[],a=!!e,c=e||i.tr,u=()=>(!a&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.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:u};return f}createCan(e){const{rawCommands:t,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(t).map(([a,c])=>[a,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,t=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l={tr:e,editor:o,view:s,state:Fi({state:i,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,(...u)=>c(...u)(l)]))}};return l}}class i3{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 zi(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 Ff(n){const e=[],{nodeExtensions:t,markExtensions:r}=zi(n),o=[...t,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},a=be(s,"addGlobalAttributes",l);if(!a)return;a().forEach(u=>{u.types.forEach(f=>{Object.entries(u.attributes).forEach(([h,p])=>{e.push({type:f,name:h,attribute:{...i,...p}})})})})}),o.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},a=be(s,"addAttributes",l);if(!a)return;const c=a();Object.entries(c).forEach(([u,f])=>{const h={...i,...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:s.name,name:u,attribute:h})})}),e}function Ze(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 ft(...n){return n.filter(e=>!!e).reduce((e,t)=>{const r={...e};return Object.entries(t).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const l=i?i.split(" "):[],a=r[o]?r[o].split(" "):[],c=l.filter(u=>!a.includes(u));r[o]=[...a,...c].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function yl(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)=>ft(t,r),{})}function Vf(n){return typeof n=="function"}function Ie(n,e=void 0,...t){return Vf(n)?e?n.bind(e)(...t):n(...t):n}function s3(n={}){return Object.keys(n).length===0&&n.constructor===Object}function a3(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function zf(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((i,s)=>{const l=s.attribute.parseHTML?s.attribute.parseHTML(t):a3(t.getAttribute(s.name));return l==null?i:{...i,[s.name]:l}},{});return{...r,...o}}}}function Hf(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&s3(t)?!1:t!=null))}function l3(n,e){var t;const r=Ff(n),{nodeExtensions:o,markExtensions:i}=zi(n),s=(t=o.find(c=>be(c,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(o.map(c=>{const u=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=Hf({...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(u.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=>zf(C,u)));const g=be(c,"renderHTML",f);g&&(p.toDOM=C=>g({node:C,HTMLAttributes:yl(C,u)}));const y=be(c,"renderText",f);return y&&(p.toText=y),[c.name,p]})),a=Object.fromEntries(i.map(c=>{const u=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=Hf({...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(u.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=>zf(y,u)));const g=be(c,"renderHTML",f);return g&&(p.toDOM=y=>g({mark:y,HTMLAttributes:yl(y,u)})),[c.name,p]}));return new gy({topNode:s,nodes:l,marks:a})}function vl(n,e){return e.nodes[n]||e.marks[n]||null}function Uf(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}const c3=(n,e=500)=>{let t="";const r=n.parentOffset;return n.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,l)=>{var a,c;const u=((c=(a=o.type.spec).toText)===null||c===void 0?void 0:c.call(a,{node:o,pos:i,parent:s,index:l}))||o.textContent||"%leaf%";t+=u.slice(0,Math.max(0,r-i))}),t};function bl(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class jf{constructor(e){this.find=e.find,this.handler=e.handler}}const u3=(n,e)=>{if(bl(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 El(n){var e;const{editor:t,from:r,to:o,text:i,rules:s,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 u=!1;const f=c3(c)+i;return s.forEach(h=>{if(u)return;const p=u3(f,h.find);if(!p)return;const m=a.state.tr,g=Fi({state:a.state,transaction:m}),y={from:r-(p[0].length-i.length),to:o},{commands:C,chain:S,can:k}=new Vi({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:i}),a.dispatch(m),u=!0)}),u}function d3(n){const{editor:e,rules:t}=n,r=new yt({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,l){return El({editor:e,from:i,to:s,text:l,rules:t,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&El({editor:e,from:i.pos,to:i.pos,text:"",rules:t,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?El({editor:e,from:s.pos,to:s.pos,text:`
|
|
20
|
-
`,rules:t,plugin:r}):!1}},isInputRules:!0});return r}function
|
|
21
|
-
|
|
22
|
-
`,textSerializers:s={}}=t||{};let l="",a=!0;return n.nodesBetween(r,o,(c,u,f,h)=>{var p;const m=s==null?void 0:s[c.type.name];m?(c.isBlock&&!a&&(l+=i,a=!0),f&&(l+=m({node:c,pos:u,parent:f,index:h,range:e}))):c.isText?(l+=(p=c==null?void 0:c.text)===null||p===void 0?void 0:p.slice(Math.max(r,u)-u,o-u),a=!1):c.isBlock&&!a&&(l+=i,a=!0)}),l}function Kf(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const b3=It.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new yt({key:new Ut("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),l=Math.max(...i.map(u=>u.$to.pos)),a=Kf(t);return Wf(r,{from:s,to:l},{textSerializers:a})}}})]}}),E3=()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),C3=(n=!1)=>({commands:e})=>e.setContent("",n),S3=()=>({state:n,tr:e,dispatch:t})=>{const{selection:r}=e,{ranges:o}=r;return t&&o.forEach(({$from:i,$to:s})=>{n.doc.nodesBetween(i.pos,s.pos,(l,a)=>{if(l.type.isText)return;const{doc:c,mapping:u}=e,f=c.resolve(u.map(a)),h=c.resolve(u.map(a+l.nodeSize)),p=f.blockRange(h);if(!p)return;const m=Nr(p);if(l.type.isTextblock){const{defaultType:g}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(p.start,g)}(m||m===0)&&e.lift(p,m)})}),!0},w3=n=>e=>n(e),k3=()=>({state:n,dispatch:e})=>K5(n,e),T3=(n,e)=>({editor:t,tr:r})=>{const{state:o}=t,i=o.doc.slice(n.from,n.to);r.deleteRange(n.from,n.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new Be(r.doc.resolve(s-1))),!0},A3=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,r=t.$anchor.node();if(r.content.size>0)return!1;const o=n.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const l=o.before(i),a=o.after(i);n.delete(l,a).scrollIntoView()}return!0}return!1},x3=n=>({tr:e,state:t,dispatch:r})=>{const o=Ze(n,t.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const a=i.before(s),c=i.after(s);e.delete(a,c).scrollIntoView()}return!0}return!1},O3=n=>({tr:e,dispatch:t})=>{const{from:r,to:o}=n;return t&&e.delete(r,o),!0},M3=()=>({state:n,dispatch:e})=>L5(n,e),_3=()=>({commands:n})=>n.keyboardShortcut("Enter"),N3=()=>({state:n,dispatch:e})=>W5(n,e);function Ui(n,e,t={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>t.strict?e[o]===n[o]:bl(e[o])?e[o].test(n[o]):e[o]===n[o]):!0}function Sl(n,e,t={}){return n.find(r=>r.type===e&&Ui(r.attrs,t))}function I3(n,e,t={}){return!!Sl(n,e,t)}function wl(n,e,t={}){if(!n||!e)return;let r=n.parent.childAfter(n.parentOffset);if(n.parentOffset===r.offset&&r.offset!==0&&(r=n.parent.childBefore(n.parentOffset)),!r.node)return;const o=Sl([...r.node.marks],e,t);if(!o)return;let i=r.index,s=n.start()+r.offset,l=i+1,a=s+r.node.nodeSize;for(Sl([...r.node.marks],e,t);i>0&&o.isInSet(n.parent.child(i-1).marks);)i-=1,s-=n.parent.child(i).nodeSize;for(;l<n.parent.childCount&&I3([...n.parent.child(l).marks],e,t);)a+=n.parent.child(l).nodeSize,l+=1;return{from:s,to:a}}function Rn(n,e){if(typeof n=="string"){if(!e.marks[n])throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);return e.marks[n]}return n}const D3=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const i=Rn(n,r.schema),{doc:s,selection:l}=t,{$from:a,from:c,to:u}=l;if(o){const f=wl(a,i,e);if(f&&f.from<=c&&f.to>=u){const h=Be.create(s,f.from,f.to);t.setSelection(h)}}return!0},L3=n=>e=>{const t=typeof n=="function"?n(e):n;for(let r=0;r<t.length;r+=1)if(t[r](e))return!0;return!1};function kl(n){return n instanceof Be}function pn(n=0,e=0,t=0){return Math.min(Math.max(n,e),t)}function Yf(n,e=null){if(!e)return null;const t=Re.atStart(n),r=Re.atEnd(n);if(e==="start"||e===!0)return t;if(e==="end")return r;const o=t.from,i=r.to;return e==="all"?Be.create(n,pn(0,o,i),pn(n.content.size,o,i)):Be.create(n,pn(e,o,i),pn(e,o,i))}function Tl(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const R3=(n=null,e={})=>({editor:t,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{Tl()&&r.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(r.hasFocus()&&n===null||n===!1)return!0;if(i&&n===null&&!kl(t.state.selection))return s(),!0;const l=Yf(o.doc,n)||t.state.selection,a=t.state.selection.eq(l);return i&&(a||o.setSelection(l),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},B3=(n,e)=>t=>n.every((r,o)=>e(r,{...t,index:o})),$3=(n,e)=>({tr:t,commands:r})=>r.insertContentAt({from:t.selection.from,to:t.selection.to},n,e);function Gf(n){const e=`<body>${n}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function ji(n,e,t){if(t={slice:!0,parseOptions:{},...t},typeof n=="object"&&n!==null)try{return Array.isArray(n)&&n.length>0?ae.fromArray(n.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(n)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",r),ji("",e,t)}if(typeof n=="string"){const r=Mr.fromSchema(e);return t.slice?r.parseSlice(Gf(n),t.parseOptions).content:r.parse(Gf(n),t.parseOptions)}return ji("",e,t)}function P3(n,e,t){const r=n.steps.length-1;if(r<e)return;const o=n.steps[r];if(!(o instanceof qe||o instanceof Je))return;const i=n.mapping.maps[r];let s=0;i.forEach((l,a,c,u)=>{s===0&&(s=u)}),n.setSelection(Re.near(n.doc.resolve(s),t))}const F3=n=>n.toString().startsWith("<"),V3=(n,e,t)=>({tr:r,dispatch:o,editor:i})=>{if(o){t={parseOptions:{},updateSelection:!0,...t};const s=ji(e,i.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions}});if(s.toString()==="<>")return!0;let{from:l,to:a}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},c=!0,u=!0;if((F3(s)?s:[s]).forEach(h=>{h.check(),c=c?h.isText&&h.marks.length===0:!1,u=u?h.isBlock:!1}),l===a&&u){const{parent:h}=r.doc.resolve(l);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(l-=1,a+=1)}c?Array.isArray(e)?r.insertText(e.map(h=>h.text||"").join(""),l,a):typeof e=="object"&&e&&e.text?r.insertText(e.text,l,a):r.insertText(e,l,a):r.replaceWith(l,a,s),t.updateSelection&&P3(r,r.steps.length-1,-1)}return!0},z3=()=>({state:n,dispatch:e})=>z5(n,e),H3=()=>({state:n,dispatch:e})=>H5(n,e),U3=()=>({state:n,dispatch:e})=>B5(n,e),j3=()=>({state:n,dispatch:e})=>F5(n,e),W3=()=>({tr:n,state:e,dispatch:t})=>{try{const r=Oi(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},K3=()=>({state:n,dispatch:e,tr:t})=>{try{const r=Oi(n.doc,n.selection.$from.pos,1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}};function Jf(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Y3(n){const e=n.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let r,o,i,s;for(let l=0;l<e.length-1;l+=1){const a=e[l];if(/^(cmd|meta|m)$/i.test(a))s=!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))i=!0;else if(/^mod$/i.test(a))Tl()||Jf()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(t=`Alt-${t}`),o&&(t=`Ctrl-${t}`),s&&(t=`Meta-${t}`),i&&(t=`Shift-${t}`),t}const G3=n=>({editor:e,view:t,tr:r,dispatch:o})=>{const i=Y3(n).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,l))});return a==null||a.steps.forEach(c=>{const u=c.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function Lo(n,e,t={}){const{from:r,to:o,empty:i}=n.selection,s=e?Ze(e,n.schema):null,l=[];n.doc.nodesBetween(r,o,(f,h)=>{if(f.isText)return;const p=Math.max(r,h),m=Math.min(o,h+f.nodeSize);l.push({node:f,from:p,to:m})});const a=o-r,c=l.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>Ui(f.node.attrs,t,{strict:!1}));return i?!!c.length:c.reduce((f,h)=>f+h.to-h.from,0)>=a}const J3=(n,e={})=>({state:t,dispatch:r})=>{const o=Ze(n,t.schema);return Lo(t,o,e)?U5(t,r):!1},Z3=()=>({state:n,dispatch:e})=>Y5(n,e),X3=n=>({state:e,dispatch:t})=>{const r=Ze(n,e.schema);return t3(r)(e,t)},Q3=()=>({state:n,dispatch:e})=>j5(n,e);function Wi(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function Zf(n,e){const t=typeof e=="string"?[e]:e;return Object.keys(n).reduce((r,o)=>(t.includes(o)||(r[o]=n[o]),r),{})}const q3=(n,e)=>({tr:t,state:r,dispatch:o})=>{let i=null,s=null;const l=Wi(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(i=Ze(n,r.schema)),l==="mark"&&(s=Rn(n,r.schema)),o&&t.selection.ranges.forEach(a=>{r.doc.nodesBetween(a.$from.pos,a.$to.pos,(c,u)=>{i&&i===c.type&&t.setNodeMarkup(u,void 0,Zf(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(f=>{s===f.type&&t.addMark(u,u+c.nodeSize,s.create(Zf(f.attrs,e)))})})}),!0):!1},eb=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),tb=()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),nb=()=>({state:n,dispatch:e})=>$5(n,e),rb=()=>({state:n,dispatch:e})=>V5(n,e),ob=()=>({state:n,dispatch:e})=>G5(n,e),ib=()=>({state:n,dispatch:e})=>X5(n,e),sb=()=>({state:n,dispatch:e})=>Z5(n,e);function Xf(n,e,t={}){return ji(n,e,{slice:!1,parseOptions:t})}const ab=(n,e=!1,t={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,l=Xf(n,o.schema,t);return i&&r.replaceWith(0,s.content.size,l).setMeta("preventUpdate",!e),!0};function Ki(n,e){const t=Rn(e,n.schema),{from:r,to:o,empty:i}=n.selection,s=[];i?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(r,o,a=>{s.push(...a.marks)});const l=s.find(a=>a.type.name===t.name);return l?{...l.attrs}:{}}function lb(n,e){const t=new dd(n);return e.forEach(r=>{r.steps.forEach(o=>{t.step(o)})}),t}function cb(n){for(let e=0;e<n.edgeCount;e+=1){const{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function ub(n,e,t){const r=[];return n.nodesBetween(e.from,e.to,(o,i)=>{t(o)&&r.push({node:o,pos:i})}),r}function db(n,e){for(let t=n.depth;t>0;t-=1){const r=n.node(t);if(e(r))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:r}}}function Al(n){return e=>db(e.$from,n)}function fb(n,e){const t=Jt.fromSchema(e).serializeFragment(n),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(t),o.innerHTML}function hb(n,e){const t={from:0,to:n.content.size};return Wf(n,t,e)}function pb(n,e){const t=Ze(e,n.schema),{from:r,to:o}=n.selection,i=[];n.doc.nodesBetween(r,o,l=>{i.push(l)});const s=i.reverse().find(l=>l.type.name===t.name);return s?{...s.attrs}:{}}function Qf(n,e){const t=Wi(typeof e=="string"?e:e.name,n.schema);return t==="node"?pb(n,e):t==="mark"?Ki(n,e):{}}function mb(n,e=JSON.stringify){const t={};return n.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(t,o)?!1:t[o]=!0})}function gb(n){const e=mb(n);return e.length===1?e:e.filter((t,r)=>!e.filter((i,s)=>s!==r).some(i=>t.oldRange.from>=i.oldRange.from&&t.oldRange.to<=i.oldRange.to&&t.newRange.from>=i.newRange.from&&t.newRange.to<=i.newRange.to))}function yb(n){const{mapping:e,steps:t}=n,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((l,a)=>{s.push({from:l,to:a})});else{const{from:l,to:a}=t[i];if(l===void 0||a===void 0)return;s.push({from:l,to:a})}s.forEach(({from:l,to:a})=>{const c=e.slice(i).map(l,-1),u=e.slice(i).map(a),f=e.invert().map(c,-1),h=e.invert().map(u);r.push({oldRange:{from:f,to:h},newRange:{from:c,to:u}})})}),gb(r)}function xl(n,e,t){const r=[];return n===e?t.resolve(n).marks().forEach(o=>{const i=t.resolve(n-1),s=wl(i,o.type);s&&r.push({mark:o,...s})}):t.nodesBetween(n,e,(o,i)=>{r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function Yi(n,e,t){return Object.fromEntries(Object.entries(t).filter(([r])=>{const o=n.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function Ol(n,e,t={}){const{empty:r,ranges:o}=n.selection,i=e?Rn(e,n.schema):null;if(r)return!!(n.storedMarks||n.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>Ui(f.attrs,t,{strict:!1}));let s=0;const l=[];if(o.forEach(({$from:f,$to:h})=>{const p=f.pos,m=h.pos;n.doc.nodesBetween(p,m,(g,y)=>{if(!g.isText&&!g.marks.length)return;const C=Math.max(p,y),S=Math.min(m,y+g.nodeSize),k=S-C;s+=k,l.push(...g.marks.map(b=>({mark:b,from:C,to:S})))})}),s===0)return!1;const a=l.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>Ui(f.mark.attrs,t,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),c=l.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(a>0?a+c:a)>=s}function vb(n,e,t={}){if(!e)return Lo(n,null,t)||Ol(n,null,t);const r=Wi(e,n.schema);return r==="node"?Lo(n,e,t):r==="mark"?Ol(n,e,t):!1}function qf(n,e){const{nodeExtensions:t}=zi(e),r=t.find(s=>s.name===n);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=Ie(be(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function bb(n){var e;const t=(e=n.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=n.toJSON();return JSON.stringify(t)===JSON.stringify(r)}function Eb(n){return n instanceof xe}function eh(n,e,t){const o=n.state.doc.content.size,i=pn(e,0,o),s=pn(t,0,o),l=n.coordsAtPos(i),a=n.coordsAtPos(s,-1),c=Math.min(l.top,a.top),u=Math.max(l.bottom,a.bottom),f=Math.min(l.left,a.left),h=Math.max(l.right,a.right),p=h-f,m=u-c,C={top:c,bottom:u,left:f,right:h,width:p,height:m,x:f,y:c};return{...C,toJSON:()=>C}}function Cb(n,e,t){var r;const{selection:o}=e;let i=null;if(kl(o)&&(i=o.$cursor),i){const l=(r=n.storedMarks)!==null&&r!==void 0?r:i.marks();return!!t.isInSet(l)||!l.some(a=>a.type.excludes(t))}const{ranges:s}=o;return s.some(({$from:l,$to:a})=>{let c=l.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(t):!1;return n.doc.nodesBetween(l.pos,a.pos,(u,f,h)=>{if(c)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(t),m=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));c=p&&m}return!c}),c})}const Sb=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const{selection:i}=t,{empty:s,ranges:l}=i,a=Rn(n,r.schema);if(o)if(s){const c=Ki(r,a);t.addStoredMark(a.create({...c,...e}))}else l.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;r.doc.nodesBetween(u,f,(h,p)=>{const m=Math.max(p,u),g=Math.min(p+h.nodeSize,f);h.marks.find(C=>C.type===a)?h.marks.forEach(C=>{a===C.type&&t.addMark(m,g,a.create({...C.attrs,...e}))}):t.addMark(m,g,a.create(e))})});return Cb(r,t,a)},wb=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),kb=(n,e={})=>({state:t,dispatch:r,chain:o})=>{const i=Ze(n,t.schema);return i.isTextblock?o().command(({commands:s})=>Pf(i,e)(t)?!0:s.clearNodes()).command(({state:s})=>Pf(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Tb=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,o=pn(n,0,r.content.size),i=xe.create(r,o);e.setSelection(i)}return!0},Ab=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,{from:o,to:i}=typeof n=="number"?{from:n,to:n}:n,s=Be.atStart(r).from,l=Be.atEnd(r).to,a=pn(o,s,l),c=pn(i,s,l),u=Be.create(r,a,c);e.setSelection(u)}return!0},xb=n=>({state:e,dispatch:t})=>{const r=Ze(n,e.schema);return o3(r)(e,t)};function th(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const r=t.filter(o=>e==null?void 0:e.includes(o.type.name));n.tr.ensureMarks(r)}}const Ob=({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:l,$to:a}=i,c=o.extensionManager.attributes,u=Yi(c,l.node().type.name,l.node().attrs);if(i instanceof xe&&i.node.isBlock)return!l.parentOffset||!Ir(s,l.pos)?!1:(r&&(n&&th(t,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const f=a.parentOffset===a.parent.content.size;i instanceof Be&&e.deleteSelection();const h=l.depth===0?void 0:cb(l.node(-1).contentMatchAt(l.indexAfter(-1)));let p=f&&h?[{type:h,attrs:u}]:void 0,m=Ir(e.doc,e.mapping.map(l.pos),1,p);if(!p&&!m&&Ir(e.doc,e.mapping.map(l.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:u}]:void 0),m&&(e.split(e.mapping.map(l.pos),1,p),h&&!f&&!l.parentOffset&&l.parent.type!==h)){const g=e.mapping.map(l.before()),y=e.doc.resolve(g);l.node(-1).canReplaceWith(y.index(),y.index()+1,h)&&e.setNodeMarkup(e.mapping.map(l.before()),h)}n&&th(t,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},Mb=n=>({tr:e,state:t,dispatch:r,editor:o})=>{var i;const s=Ze(n,t.schema),{$from:l,$to:a}=t.selection,c=t.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(a))return!1;const u=l.node(-1);if(u.type!==s)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let y=ae.empty;const C=l.index(-1)?1:l.index(-2)?2:3;for(let z=l.depth-C;z>=l.depth-3;z-=1)y=ae.from(l.node(z).copy(y));const S=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,k=Yi(f,l.node().type.name,l.node().attrs),b=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(k))||void 0;y=y.append(ae.from(s.createAndFill(null,b)||void 0));const M=l.before(l.depth-(C-1));e.replace(M,l.after(-S),new ye(y,4-C,0));let T=-1;e.doc.nodesBetween(M,e.doc.content.size,(z,U)=>{if(T>-1)return!1;z.isTextblock&&z.content.size===0&&(T=U+1)}),T>-1&&e.setSelection(Be.near(e.doc.resolve(T))),e.scrollIntoView()}return!0}const h=a.pos===l.end()?u.contentMatchAt(0).defaultType:null,p=Yi(f,u.type.name,u.attrs),m=Yi(f,l.node().type.name,l.node().attrs);e.delete(l.pos,a.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:m}]:[{type:s,attrs:p}];if(!Ir(e.doc,l.pos,2))return!1;if(r){const{selection:y,storedMarks:C}=t,{splittableMarks:S}=o.extensionManager,k=C||y.$to.parentOffset&&y.$from.marks();if(e.split(l.pos,2,g).scrollIntoView(),!k||!r)return!0;const b=k.filter(M=>S.includes(M.type.name));e.ensureMarks(b)}return!0},Ml=(n,e)=>{const t=Al(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&Tn(n.doc,t.pos)&&n.join(t.pos),!0},_l=(n,e)=>{const t=Al(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(t.start).after(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&Tn(n.doc,r)&&n.join(r),!0};var _b=Object.freeze({__proto__:null,blur:E3,clearContent:C3,clearNodes:S3,command:w3,createParagraphNear:k3,cut:T3,deleteCurrentNode:A3,deleteNode:x3,deleteRange:O3,deleteSelection:M3,enter:_3,exitCode:N3,extendMarkRange:D3,first:L3,focus:R3,forEach:B3,insertContent:$3,insertContentAt:V3,joinUp:z3,joinDown:H3,joinBackward:U3,joinForward:j3,joinItemBackward:W3,joinItemForward:K3,keyboardShortcut:G3,lift:J3,liftEmptyBlock:Z3,liftListItem:X3,newlineInCode:Q3,resetAttributes:q3,scrollIntoView:eb,selectAll:tb,selectNodeBackward:nb,selectNodeForward:rb,selectParentNode:ob,selectTextblockEnd:ib,selectTextblockStart:sb,setContent:ab,setMark:Sb,setMeta:wb,setNode:kb,setNodeSelection:Tb,setTextSelection:Ab,sinkListItem:xb,splitBlock:Ob,splitListItem:Mb,toggleList:(n,e,t,r={})=>({editor:o,tr:i,state:s,dispatch:l,chain:a,commands:c,can:u})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=Ze(n,s.schema),m=Ze(e,s.schema),{selection:g,storedMarks:y}=s,{$from:C,$to:S}=g,k=C.blockRange(S),b=y||g.$to.parentOffset&&g.$from.marks();if(!k)return!1;const M=Al(T=>qf(T.type.name,f))(g);if(k.depth>=1&&M&&k.depth-M.depth<=1){if(M.node.type===p)return c.liftListItem(m);if(qf(M.node.type.name,f)&&p.validContent(M.node.content)&&l)return a().command(()=>(i.setNodeMarkup(M.pos,p),!0)).command(()=>Ml(i,p)).command(()=>_l(i,p)).run()}return!t||!b||!l?a().command(()=>u().wrapInList(p,r)?!0:c.clearNodes()).wrapInList(p,r).command(()=>Ml(i,p)).command(()=>_l(i,p)).run():a().command(()=>{const T=u().wrapInList(p,r),z=b.filter(U=>h.includes(U.type.name));return i.ensureMarks(z),T?!0:c.clearNodes()}).wrapInList(p,r).command(()=>Ml(i,p)).command(()=>_l(i,p)).run()},toggleMark:(n,e={},t={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=t,s=Rn(n,r.schema);return Ol(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},toggleNode:(n,e,t={})=>({state:r,commands:o})=>{const i=Ze(n,r.schema),s=Ze(e,r.schema);return Lo(r,i,t)?o.setNode(s):o.setNode(i,t)},toggleWrap:(n,e={})=>({state:t,commands:r})=>{const o=Ze(n,t.schema);return Lo(t,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let r=0;r<t.length;r+=1){const o=t[r];let i;if(o.spec.isInputRules&&(i=o.getState(n))){if(e){const s=n.tr,l=i.transform;for(let a=l.steps.length-1;a>=0;a-=1)s.step(l.steps[a].invert(l.docs[a]));if(i.text){const a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,n.schema.text(i.text,a))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:r,ranges:o}=t;return r||e&&o.forEach(i=>{n.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(n,e={})=>({tr:t,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:l}=t,a=Rn(n,r.schema),{$from:c,empty:u,ranges:f}=l;if(!o)return!0;if(u&&s){let{from:h,to:p}=l;const m=(i=c.marks().find(y=>y.type===a))===null||i===void 0?void 0:i.attrs,g=wl(c,a,m);g&&(h=g.from,p=g.to),t.removeMark(h,p,a)}else f.forEach(h=>{t.removeMark(h.$from.pos,h.$to.pos,a)});return t.removeStoredMark(a),!0},updateAttributes:(n,e={})=>({tr:t,state:r,dispatch:o})=>{let i=null,s=null;const l=Wi(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(i=Ze(n,r.schema)),l==="mark"&&(s=Rn(n,r.schema)),o&&t.selection.ranges.forEach(a=>{const c=a.$from.pos,u=a.$to.pos;r.doc.nodesBetween(c,u,(f,h)=>{i&&i===f.type&&t.setNodeMarkup(h,void 0,{...f.attrs,...e}),s&&f.marks.length&&f.marks.forEach(p=>{if(s===p.type){const m=Math.max(h,c),g=Math.min(h+f.nodeSize,u);t.addMark(m,g,s.create({...p.attrs,...e}))}})})}),!0):!1},wrapIn:(n,e={})=>({state:t,dispatch:r})=>{const o=Ze(n,t.schema);return Q5(o,e)(t,r)},wrapInList:(n,e={})=>({state:t,dispatch:r})=>{const o=Ze(n,t.schema);return q5(o,e)(t,r)}});const Nb=It.create({name:"commands",addCommands(){return{..._b}}}),Ib=It.create({name:"editable",addProseMirrorPlugins(){return[new yt({key:new Ut("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Db=It.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new yt({key:new Ut("focusEvents"),props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const r=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,t)=>{n.isFocused=!1;const r=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),Lb=It.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{const{selection:a,doc:c}=l,{empty:u,$anchor:f}=a,{pos:h,parent:p}=f,m=f.parent.isTextblock?l.doc.resolve(h-1):f,g=m.parent.type.spec.isolating,y=f.pos-f.parentOffset,C=g&&m.parent.childCount===1?y===f.pos:Re.atStart(c).from===h;return!u||!C||!p.type.isTextblock||p.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Tl()||Jf()?i:o},addProseMirrorPlugins(){return[new yt({key:new Ut("clearDocument"),appendTransaction:(n,e,t)=>{if(!(n.some(m=>m.docChanged)&&!e.doc.eq(t.doc)))return;const{empty:o,from:i,to:s}=e.selection,l=Re.atStart(e.doc).from,a=Re.atEnd(e.doc).to;if(o||!(i===l&&s===a)||!(t.doc.textBetween(0,t.doc.content.size," "," ").length===0))return;const f=t.tr,h=Fi({state:t,transaction:f}),{commands:p}=new Vi({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),Rb=It.create({name:"tabindex",addProseMirrorPlugins(){return[new yt({key:new Ut("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Bb=Object.freeze({__proto__:null,ClipboardTextSerializer:b3,Commands:Nb,Editable:Ib,FocusEvents:Db,Keymap:Lb,Tabindex:Rb});const $b=`.ProseMirror {
|
|
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++)),B=this.KEY_STR.indexOf(w.charAt(K++)),x=_<<2|I>>4,v=(I&15)<<4|R>>2,E=(R&3)<<6|B,J.push(x),R!==64&&J.push(v),B!==64&&J.push(E),x=v=E="",_=I=R=B="",K<w.length;);return J}}]),A}();ge.initClass();var Ce=function(O,w){var x=!1,v=!0,E=O.document,_=E.documentElement,I=E.addEventListener?"addEventListener":"attachEvent",R=E.addEventListener?"removeEventListener":"detachEvent",B=E.addEventListener?"":"on",K=function Y(Z){if(!(Z.type==="readystatechange"&&E.readyState!=="complete")&&((Z.type==="load"?O:E)[R](B+Z.type,Y,!1),!x&&(x=!0)))return w.call(O,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{v=!O.frameElement}catch{}v&&J()}return E[I](B+"DOMContentLoaded",K,!1),E[I](B+"readystatechange",K,!1),O[I](B+"load",K,!1)}};D._autoDiscoverFunction=function(){if(D.autoDiscover)return D.discover()},Ce(window,D._autoDiscoverFunction);function we(A,O){return typeof A<"u"&&A!==null?O(A):void 0}function Te(A,O,w){if(typeof A<"u"&&A!==null&&typeof A[O]=="function")return w(A,O)}window.Dropzone=D;var ve=D}(),i}()})})(Ou);var W2=Ou.exports;const Mu=Ma(W2),K2={class:"fallback"},Y2=d.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),G2={for:"file"},J2={class:"dz-message","data-dz-message":""},Z2={id:"bd-dropzone-theme",style:{display:"none"}},X2={class:"dz-preview dz-file-preview"},Q2={class:"dz-details"},q2=d.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),ey=d.createElementVNode("div",{class:"dz-filename"},[d.createElementVNode("small",{"data-dz-name":""})],-1),ty=d.createElementVNode("div",{class:"dz-progress"},[d.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[d.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),ny={class:"dz-success-mark"},ry={class:"dz-error-message text-danger"},oy=d.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Nu=d.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=d.computed(()=>({variant:li.PRIMARY,size:lt.SM})),o=qn(t,"modelValue",e);let i=null;Mu.autoDiscover=!1,d.watch(()=>t.modelValue,()=>{s()}),d.onMounted(()=>{document.getElementById("dropzone")&&l()});const s=()=>{i&&(i.destroy(),l())},l=()=>{var p;i=new Mu("#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}),i.on("error",c),i.on("success",a),i.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}),u(p)},c=function(p){u(p)},u=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=d.computed(()=>t.tag??"form");return(p,m)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:d.withCtx(()=>[d.createElementVNode("div",K2,[Y2,d.createTextVNode(" test "),d.createElementVNode("label",G2,[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(t.buttonText),1)])]),d.createElementVNode("div",J2,[d.createVNode(d.unref(Qe),d.normalizeProps(d.guardReactiveProps(r.value)),{default:d.withCtx(()=>[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(t.buttonText),1)]),_:1},16)])]),_:1})),d.createElementVNode("div",Z2,[d.createElementVNode("div",X2,[d.createElementVNode("div",Q2,[q2,d.createVNode(d.unref(ma),{"data-dz-thumbnail":"",class:"d-none"}),ey,d.createVNode(d.unref(Qe),{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:1})]),ty,d.createElementVNode("div",ny,[d.createVNode(d.unref(kr))]),d.createElementVNode("div",ry,[d.createVNode(d.unref(ii)),oy])])])],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),i=r.content.slice();return o==-1?i.push(t||n,e):(i[o+1]=e,t&&(i[o]=t)),new et(i)},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(),i=r.find(n);return o.splice(i==-1?o.length:i,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 _u(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),i=e.child(r);if(o==i){t+=o.nodeSize;continue}if(!o.sameMarkup(i))return t;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)t++;return t}if(o.content.size||i.content.size){let s=_u(o.content,i.content,t+1);if(s!=null)return s}t+=o.nodeSize}}function Iu(n,e,t,r){for(let o=n.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:t,b:r};let s=n.child(--o),l=e.child(--i),a=s.nodeSize;if(s==l){t-=a,r-=a;continue}if(!s.sameMarkup(l))return{a:t,b:r};if(s.isText&&s.text!=l.text){let c=0,u=Math.min(s.text.length,l.text.length);for(;c<u&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(s.content.size||l.content.size){let c=Iu(s.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,i){for(let s=0,l=0;l<t;s++){let a=this.content[s],c=l+a.nodeSize;if(c>e&&r(a,o+l,i||null,s)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,o+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let i="",s=!0;return this.nodesBetween(e,t,(l,a)=>{l.isText?(i+=l.text.slice(Math.max(e,a)-a,t-a),s=!r):l.isLeaf?(o?i+=typeof o=="function"?o(l):o:l.type.spec.leafText&&(i+=l.type.spec.leafText(l)),s=!r):!s&&l.isBlock&&(i+=r,s=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(o[o.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);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 i=0,s=0;s<t;i++){let l=this.content[i],a=s+l.nodeSize;a>e&&((s<e||a>t)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,t-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,t-s-1))),r.push(l),o+=l.nodeSize),s=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(),i=this.size+t.nodeSize-r.nodeSize;return o[e]=t,new ae(o,i)}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 _u(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return Iu(this,e,t,r)}findIndex(e,t=-1){if(e==0)return yi(0,e);if(e==this.size)return yi(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 i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||t>0?yi(r+1,s):yi(r,o);o=s}}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 i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(t||(t=e.slice(0,o)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}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 Na={index:0,offset:0};function yi(n,e){return Na.index=n,Na.offset=e,Na}function vi(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(!vi(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!vi(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let $e=class Jc{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(i)}}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&&vi(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 Jc.none;if(e instanceof Jc)return[e];let t=e.slice();return t.sort((r,o)=>r.type.rank-o.type.rank),t}};$e.none=[];class bi 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=Lu(this.content,e+this.openStart,t);return r&&new ye(r,this.openStart,this.openEnd)}removeBetween(e,t){return new ye(Du(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 i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)o++;return new ye(e,r,o)}}ye.empty=new ye(ae.empty,0,0);function Du(n,e,t){let{index:r,offset:o}=n.findIndex(e),i=n.maybeChild(r),{index:s,offset:l}=n.findIndex(t);if(o==e||i.isText){if(l!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(r,i.copy(Du(i.content,e-o-1,t-o-1)))}function Lu(n,e,t,r){let{index:o,offset:i}=n.findIndex(e),s=n.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let l=Lu(s.content,e-i-1,t);return l&&n.replaceChild(o,s.copy(l))}function iy(n,e,t){if(t.openStart>n.depth)throw new bi("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new bi("Inconsistent open depths");return Ru(n,e,t,0)}function Ru(n,e,t,r){let o=n.index(r),i=n.node(r);if(o==e.index(r)&&r<n.depth-t.openStart){let s=Ru(n,e,t,r+1);return i.copy(i.content.replaceChild(o,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let s=n.parent,l=s.content;return nr(s,l.cut(0,n.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=sy(t,n);return nr(i,$u(n,s,l,e,r))}else return nr(i,Ei(n,e,r))}function Bu(n,e){if(!e.type.compatibleContent(n.type))throw new bi("Cannot join "+e.type.name+" onto "+n.type.name)}function _a(n,e,t){let r=n.node(t);return Bu(r,e.node(t)),r}function tr(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 yo(n,e,t,r){let o=(e||n).node(t),i=0,s=e?e.index(t):o.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(tr(n.nodeAfter,r),i++));for(let l=i;l<s;l++)tr(o.child(l),r);e&&e.depth==t&&e.textOffset&&tr(e.nodeBefore,r)}function nr(n,e){return n.type.checkContent(e),n.copy(e)}function $u(n,e,t,r,o){let i=n.depth>o&&_a(n,e,o+1),s=r.depth>o&&_a(t,r,o+1),l=[];return yo(null,n,o,l),i&&s&&e.index(o)==t.index(o)?(Bu(i,s),tr(nr(i,$u(n,e,t,r,o+1)),l)):(i&&tr(nr(i,Ei(n,e,o+1)),l),yo(e,t,o,l),s&&tr(nr(s,Ei(t,r,o+1)),l)),yo(r,null,o,l),new ae(l)}function Ei(n,e,t){let r=[];if(yo(null,n,t,r),n.depth>t){let o=_a(n,e,t+1);tr(nr(o,Ei(n,e,t+1)),r)}return yo(e,null,t,r),new ae(r)}function sy(n,e){let t=e.depth-n.openStart,o=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)o=e.node(i).copy(ae.from(o));return{start:o.resolveNoCache(n.openStart+t),end:o.resolveNoCache(o.content.size-n.openEnd-t)}}class vo{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 i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return $e.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 i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}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 i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].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 Ci(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,i=t;for(let s=e;;){let{index:l,offset:a}=s.content.findIndex(i),c=i-a;if(r.push(s,l,o+a),!c||(s=s.child(l),s.isText))break;i=c-1,o+=a+1}return new vo(t,r,i)}static resolveCached(e,t){for(let o=0;o<Ia.length;o++){let i=Ia[o];if(i.pos==t&&i.doc==e)return i}let r=Ia[Da]=vo.resolve(e,t);return Da=(Da+1)%ay,r}}let Ia=[],Da=0,ay=12;class Ci{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 ly=Object.create(null);let rr=class Zc{constructor(e,t,r,o=$e.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&&vi(this.attrs,t||e.defaultAttrs||ly)&&$e.sameSet(this.marks,r||$e.none)}copy(e=null){return e==this.content?this:new Zc(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Zc(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),i=this.resolve(t),s=r?0:o.sharedDepth(t),l=o.start(s),c=o.node(s).content.cut(o.pos-l,i.pos-l);return new ye(c,o.depth-s,i.depth-s)}replace(e,t,r){return iy(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 vo.resolveCached(this,e)}resolveNoCache(e){return vo.resolve(this,e)}rangeHasMark(e,t,r){let o=!1;return t>e&&this.nodesBetween(e,t,i=>(r.isInSet(i.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()+")"),Pu(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,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),l=s&&s.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=o;a<i;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 i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,t);return s?s.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=$e.none;for(let t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!$e.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)}};rr.prototype.text=void 0;class Si extends rr{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):Pu(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 Si(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Si(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 Pu(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class or{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new cy(e,t);if(r.next==null)return or.empty;let o=Fu(r);r.next&&r.err("Unexpected trailing text");let i=gy(my(o));return yy(i,r),i}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 i=t;o&&i<r;i++)o=o.matchType(e.child(i).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 i(s,l){let a=s.matchFragment(e,r);if(a&&(!t||a.validEnd))return ae.from(l.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:f}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=i(f,l.concat(u));if(h)return h}}return null}return i(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(),i=o.match;if(i.matchType(e)){let s=[];for(let l=o;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:l,next:a}=i.next[s];!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 i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
|
|
12
|
+
`)}}or.empty=new or(!0);class cy{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 Fu(n){let e=[];do e.push(uy(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function uy(n){let e=[];do e.push(dy(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function dy(n){let e=py(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=fy(n,e);else break;return e}function Vu(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function fy(n,e){let t=Vu(n),r=t;return n.eat(",")&&(n.next!="}"?r=Vu(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function hy(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let o=[];for(let i in t){let s=t[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&n.err("No node type or group '"+e+"' found"),o}function py(n){if(n.eat("(")){let e=Fu(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=hy(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 my(n){let e=[[]];return o(i(n,0),t()),e;function t(){return e.push([])-1}function r(s,l,a){let c={term:a,to:l};return e[s].push(c),c}function o(s,l){s.forEach(a=>a.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((a,c)=>a.concat(i(c,l)),[]);if(s.type=="seq")for(let a=0;;a++){let c=i(s.exprs[a],l);if(a==s.exprs.length-1)return c;o(c,l=t())}else if(s.type=="star"){let a=t();return r(l,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=t();return o(i(s.expr,l),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(l)].concat(i(s.expr,l));if(s.type=="range"){let a=l;for(let c=0;c<s.min;c++){let u=t();o(i(s.expr,a),u),a=u}if(s.max==-1)o(i(s.expr,a),a);else for(let c=s.min;c<s.max;c++){let u=t();r(a,u),o(i(s.expr,a),u),a=u}return[r(a)]}else{if(s.type=="name")return[r(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function zu(n,e){return e-n}function Hu(n,e){let t=[];return r(e),t.sort(zu);function r(o){let i=n[o];if(i.length==1&&!i[0].term)return r(i[0].to);t.push(o);for(let s=0;s<i.length;s++){let{term:l,to:a}=i[s];!l&&t.indexOf(a)==-1&&r(a)}}}function gy(n){let e=Object.create(null);return t(Hu(n,0));function t(r){let o=[];r.forEach(s=>{n[s].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u<o.length;u++)o[u][0]==l&&(c=o[u][1]);Hu(n,a).forEach(u=>{c||o.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[r.join(",")]=new or(r.indexOf(n.length-1)>-1);for(let s=0;s<o.length;s++){let l=o[s][1].sort(zu);i.next.push({type:o[s][0],next:e[l.join(",")]||t(l)})}return i}}function yy(n,e){for(let t=0,r=[n];t<r.length;t++){let o=r[t],i=!o.validEnd,s=[];for(let l=0;l<o.next.length;l++){let{type:a,next:c}=o.next[l];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(c)==-1&&r.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Uu(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 ju(n,e){let t=Object.create(null);for(let r in n){let o=e&&e[r];if(o===void 0){let i=n[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=o}return t}function Wu(n){let e=Object.create(null);if(n)for(let t in n)e[t]=new vy(n[t]);return e}let Ku=class n1{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=Wu(r.attrs),this.defaultAttrs=Uu(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==or.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:ju(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new rr(this,this.computeAttrs(e),ae.from(t),$e.setFrom(r))}createChecked(e=null,t,r){return t=ae.from(t),this.checkContent(t),new rr(this,this.computeAttrs(e),t,$e.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=ae.from(t),t.size){let s=this.contentMatch.fillBefore(t);if(!s)return null;t=s.append(t)}let o=this.contentMatch.matchFragment(t),i=o&&o.fillBefore(ae.empty,!0);return i?new rr(this,e,t.append(i),$e.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:$e.none:e}static compile(e,t){let r=Object.create(null);e.forEach((i,s)=>r[i]=new n1(i,t,s));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 i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class vy{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class wi{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=Wu(o.attrs),this.excluded=null;let i=Uu(this.attrs);this.instance=i?new $e(this,i):null}create(e=null){return!e&&this.instance?this.instance:new $e(this,ju(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new wi(i,o++,t,s)),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 by{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=Ku.compile(this.spec.nodes,this),this.marks=wi.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 i=this.nodes[o],s=i.spec.content||"",l=i.spec.marks;i.contentMatch=r[s]||(r[s]=or.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=l=="_"?null:l?Yu(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Yu(this,s.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 Ku){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 Si(r,r.defaultAttrs,e,$e.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return rr.fromJSON(this,e)}markFromJSON(e){return $e.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Yu(n,e){let t=[];for(let r=0;r<e.length;r++){let o=e[r],i=n.marks[o],s=i;if(i)t.push(i);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(s=a)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}class Mr{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 Xu(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Xu(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 i=this.tags[o];if(Sy(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,t,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(s.getAttrs){let a=s.getAttrs(t);if(a===!1)continue;s.attrs=a||void 0}return s}}}static schemaRules(e){let t=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s<t.length;s++){let l=t[s];if((l.priority==null?50:l.priority)<i)break}t.splice(s,0,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=Qu(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=Qu(s)),s.node||s.ignore||s.mark||(s.node=o)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Mr(e,Mr.schemaRules(e)))}}const Gu={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},Ey={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Ju={ol:!0,ul:!0},ki=1,Ti=2,bo=4;function Zu(n,e,t){return e!=null?(e?ki:0)|(e==="full"?Ti:0):n&&n.whitespace=="pre"?ki|Ti:t&~bo}class Ai{constructor(e,t,r,o,i,s,l){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=l,this.content=[],this.activeMarks=$e.none,this.stashMarks=[],this.match=s||(l&bo?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&ki)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.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):ky(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&&!Gu.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Xu{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let o=t.topNode,i,s=Zu(null,t.preserveWhitespace,0)|(r?bo:0);o?i=new Ai(o.type,o.attrs,$e.none,$e.none,!0,t.topMatch||o.type.contentMatch,s):r?i=new Ai(null,null,$e.none,$e.none,!0,null,s):i=new Ai(e.schema.topNodeType,null,$e.none,$e.none,!0,null,s),this.nodes=[i],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(wy(r));if(!o)return;let[i,s]=o,l=this.top;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]);t();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])}addTextNode(e){let t=e.nodeValue,r=this.top;if(r.options&Ti||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(r.options&ki)r.options&Ti?t=t.replace(/\r\n?/g,`
|
|
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],i=e.previousSibling;(!o||i&&i.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;Ju.hasOwnProperty(r)&&this.parser.normalizeLists&&Cy(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,t));if(i?i.ignore:Ey.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,l=this.top,a=this.needsBlock;if(Gu.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),s=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(l),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
14
|
+
`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=$e.none,r=$e.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{s.clearMark(l)&&(r=l.addToSet(r))}):t=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(t),s.consuming===!1)i=s;else break}return[t,r]}addElementByRule(e,t,r){let o,i,s;t.node?(i=this.parser.schema.nodes[t.node],i.isLeaf?this.insertNode(i.create(t.attrs))||this.leafFallback(e):o=this.enter(i,t.attrs||null,t.preserveWhitespace)):(s=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(s));let l=this.top;if(i&&i.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--,s&&this.removePendingMark(s,l)}addAll(e,t,r){let o=t||0;for(let i=t?e.childNodes[t]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let t,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!t||t.length>s.length)&&(t=s,r=i,!s.length)||i.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 i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=Zu(e,o,i.options);i.options&bo&&i.content.length==0&&(s|=bo),this.nodes.push(new Ai(e,t,i.activeMarks,i.pendingMarks,r,null,s)),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),i=-(r?r.depth+1:0)+(o?0:1),s=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=i;a--)if(s(l-1,a))return!0;return!1}else{let u=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;a--}}return!0};return s(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=Ty(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 s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==t)break}}}function Cy(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Ju.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Sy(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function wy(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 Qu(n){let e={};for(let t in n)e[t]=n[t];return e}function ky(n,e){let t=e.schema.nodes;for(let r in t){let o=t[r];if(!o.allowsMarkType(n))continue;let i=[],s=l=>{i.push(l);for(let a=0;a<l.edgeCount;a++){let{type:c,next:u}=l.edge(a);if(c==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}function Ty(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=La(t).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let l=0,a=0;for(;l<i.length&&a<s.marks.length;){let c=s.marks[a];if(!this.marks[c.type.name]){a++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,a++}for(;l<i.length;)o=i.pop()[1];for(;a<s.marks.length;){let c=s.marks[a++],u=this.serializeMark(c,s.isInline,t);u&&(i.push([c,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:o}=Zt.renderSpec(La(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 i=this.serializeMark(e.marks[o],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let o=this.marks[e.type.name];return o&&Zt.renderSpec(La(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],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,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 u in a)if(a[u]!=null){let f=u.indexOf(" ");f>0?l.setAttributeNS(u.slice(0,f),u.slice(f+1),a[u]):l.setAttribute(u,a[u])}}for(let u=c;u<t.length;u++){let f=t[u];if(f===0){if(u<t.length-1||u>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(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:l,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Zt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=qu(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return qu(e.marks)}}function qu(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function La(n){return n.document||window.document}const ed=65535,td=Math.pow(2,16);function Ay(n,e){return n+e*td}function nd(n){return n&ed}function xy(n){return(n-(n&ed))/td}const rd=1,od=2,xi=4,id=8;class Ra{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&id)>0}get deletedBefore(){return(this.delInfo&(rd|xi))>0}get deletedAfter(){return(this.delInfo&(od|xi))>0}get deletedAcross(){return(this.delInfo&xi)>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=nd(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+xy(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,i=this.inverted?2:1,s=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+i],u=this.ranges[l+s],f=a+c;if(e<=f){let h=c?e==a?-1:e==f?1:t:t,p=a+o+(h<0?0:u);if(r)return p;let m=e==(t<0?a:f)?null:Ay(l/3,e-a),g=e==a?od:e==f?rd:xi;return(t<0?e!=a:e!=f)&&(g|=id),new Ra(p,g,m)}o+=u-c}return r?e+o:new Ra(e+o,0,null)}touches(e,t){let r=0,o=nd(t),i=this.inverted?2:1,s=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+i],u=a+c;if(e<=u&&l==o*3)return!0;r+=this.ranges[l+s]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],l=s-(this.inverted?i:0),a=s+(this.inverted?0:i),c=this.ranges[o+t],u=this.ranges[o+r];e(l,l+c,a,a+u),i+=u-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 Eo{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 Eo(this.maps,this.mirror,e,t)}copy(){return new Eo(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 Eo;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 i=this.from;i<this.to;i++){let s=this.maps[i],l=s.mapResult(e,t);if(l.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this.maps[a].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new Ra(e,o,null)}}const Ba=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=Ba[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 Ba)throw new RangeError("Duplicate use of step JSON ID "+e);return Ba[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(i){if(i instanceof bi)return Ke.fail(i.message);throw i}}}function $a(n,e,t){let r=[];for(let o=0;o<n.childCount;o++){let i=n.child(o);i.content.size&&(i=i.copy($a(i.content,e,i))),i.isInline&&(i=e(i,t,o)),r.push(i)}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)),i=new ye($a(t.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),t.openStart,t.openEnd);return Ke.fromReplace(e,this.from,this.to,i)}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($a(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 Nr(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 Nr 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 Nr(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 Nr(t.pos,e.markFromJSON(t.mark))}}ot.jsonID("removeNodeMark",Nr);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&&Pa(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 Ze extends ot{constructor(e,t,r,o,i,s,l=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=l}apply(e){if(this.structure&&(Pa(e,this.from,this.gapFrom)||Pa(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 Ze(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),i=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||o<t.pos||i>r.pos?null:new Ze(t.pos,r.pos,o,i,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 Ze(t.from,t.to,t.gapFrom,t.gapTo,ye.fromJSON(e,t.slice),t.insert,!!t.structure)}}ot.jsonID("replaceAround",Ze);function Pa(n,e,t){let r=n.resolve(e),o=t-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function Oy(n,e,t,r){let o=[],i=[],s,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let f=a.marks;if(!r.isInSet(f)&&u.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)||(s&&s.to==h&&s.mark.eq(f[g])?s.to=p:o.push(s=new Xt(h,p,f[g])));l&&l.to==h?l.to=p:i.push(l=new wn(h,p,r))}}),o.forEach(a=>n.step(a)),i.forEach(a=>n.step(a))}function My(n,e,t,r){let o=[],i=0;n.doc.nodesBetween(e,t,(s,l)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof wi){let c=s.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let c=Math.min(l+s.nodeSize,t);for(let u=0;u<a.length;u++){let f=a[u],h;for(let p=0;p<o.length;p++){let m=o[p];m.step==i-1&&f.eq(o[p].style)&&(h=m)}h?(h.to=c,h.step=i):o.push({style:f,from:Math.max(l,e),to:c,step:i})}}}),o.forEach(s=>n.step(new Xt(s.from,s.to,s.style)))}function Ny(n,e,t,r=t.contentMatch){let o=n.doc.nodeAt(e),i=[],s=e+1;for(let l=0;l<o.childCount;l++){let a=o.child(l),c=s+a.nodeSize,u=r.matchType(a.type);if(!u)i.push(new tt(s,c,ye.empty));else{r=u;for(let f=0;f<a.marks.length;f++)t.allowsMarkType(a.marks[f].type)||n.step(new Xt(s,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)),i.push(new tt(s+f.index,s+f.index+f[0].length,p))}}s=c}if(!r.validEnd){let l=r.fillBefore(ae.empty,!0);n.replace(s,s,new ye(l,0,0))}for(let l=i.length-1;l>=0;l--)n.step(i[l])}function _y(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function _r(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let o=n.$from.node(r),i=n.$from.index(r),s=n.$to.indexAfter(r);if(r<n.depth&&o.canReplace(i,s,t))return r;if(r==0||o.type.spec.isolating||!_y(o,i,s))break}return null}function Iy(n,e,t){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),l=o.after(i+1),a=s,c=l,u=ae.empty,f=0;for(let m=i,g=!1;m>t;m--)g||r.index(m)>0?(g=!0,u=ae.from(r.node(m).copy(u)),f++):a--;let h=ae.empty,p=0;for(let m=i,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 Ze(a,c,s,l,new ye(u.append(h),f,p),u.size-f,!0))}function Fa(n,e,t=null,r=n){let o=Dy(n,e),i=o&&Ly(r,e);return i?o.map(sd).concat({type:e,attrs:t}).concat(i.map(sd)):null}function sd(n){return{type:n,attrs:null}}function Dy(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return t.canReplaceWith(r,o,s)?i:null}function Ly(n,e){let{parent:t,startIndex:r,endIndex:o}=n,i=t.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:e).contentMatch;for(let c=r;a&&c<o;c++)a=a.matchType(t.child(c).type);return!a||!a.validEnd?null:s}function Ry(n,e,t){let r=ae.empty;for(let s=t.length-1;s>=0;s--){if(r.size){let l=t[s].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[s].type.create(t[s].attrs,r))}let o=e.start,i=e.end;n.step(new Ze(o,i,o,i,new ye(r,0,0),t.length,!0))}function By(n,e,t,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(e,t,(s,l)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&$y(n.doc,n.mapping.slice(i).map(l),r)){n.clearIncompatible(n.mapping.slice(i).map(l,1),r);let a=n.mapping.slice(i),c=a.map(l,1),u=a.map(l+s.nodeSize,1);return n.step(new Ze(c,u,c+1,u-1,new ye(ae.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function $y(n,e,t){let r=n.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,t)}function Py(n,e,t,r,o){let i=n.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let s=t.create(r,null,o||i.marks);if(i.isLeaf)return n.replaceWith(e,e+i.nodeSize,s);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Ze(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new ye(ae.from(s),0,0),1,!0))}function Ir(n,e,t=1,r){let o=n.resolve(e),i=o.depth-t,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,u=t-2;c>i;c--,u--){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[u+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[u]||f;if(!f.canReplace(h+1,f.childCount)||!g.type.validContent(p))return!1}let l=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(l,l,a?a.type:o.node(i+1).type)}function Fy(n,e,t=1,r){let o=n.doc.resolve(e),i=ae.empty,s=ae.empty;for(let l=o.depth,a=o.depth-t,c=t-1;l>a;l--,c--){i=ae.from(o.node(l).copy(i));let u=r&&r[c];s=ae.from(u?u.type.create(u.attrs,s):o.node(l).copy(s))}n.step(new tt(e,e,new ye(i.append(s),t,t),!0))}function Tn(n,e){let t=n.resolve(e),r=t.index();return ad(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function ad(n,e){return!!(n&&e&&!n.isLeaf&&n.canAppend(e))}function Oi(n,e,t=-1){let r=n.resolve(e);for(let o=r.depth;;o--){let i,s,l=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):t>0?(i=r.node(o+1),l++,s=r.node(o).maybeChild(l)):(i=r.node(o).maybeChild(l-1),s=r.node(o+1)),i&&!i.isTextblock&&ad(i,s)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=t<0?r.before(o):r.after(o)}}function Vy(n,e,t){let r=new tt(e-t,e+t,ye.empty,!0);n.step(r)}function zy(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 i=r.index(o);if(r.node(o).canReplaceWith(i,i,t))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,t))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function Hy(n,e,t){let r=n.resolve(e);if(!t.content.size)return e;let o=t.content;for(let i=0;i<t.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(t.openStart==0&&t.size?2:1);i++)for(let s=r.depth;s>=0;s--){let l=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(l>0?1:0),c=r.node(s),u=!1;if(i==1)u=c.canReplace(a,a,o);else{let f=c.contentMatchAt(a).findWrapping(o.firstChild.type);u=f&&c.canReplaceWith(a,a,f[0])}if(u)return l==0?r.pos:l<0?r.before(s+1):r.after(s+1)}return null}function Va(n,e,t=e,r=ye.empty){if(e==t&&!r.size)return null;let o=n.resolve(e),i=n.resolve(t);return ld(o,i,r)?new tt(e,t,r):new Uy(o,i,r).fit()}function ld(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class Uy{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 i=e.node(o);this.frontier.push({type:i.type,match:i.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 i=this.placed,s=r.depth,l=o.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let a=new ye(i,s,l);return e>-1?new Ze(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 i=t.firstChild;if(t.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=za(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:a,match:c}=this.frontier[l],u,f=null;if(t==1&&(s?c.matchType(s.type)||(f=c.fillBefore(ae.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:l,parent:i,inject:f};if(t==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:l,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,o=za(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=za(e,t);if(o.childCount<=1&&t>0){let i=e.size-t<=t+o.size;this.unplaced=new ye(Co(e,t-1,1),t-1,i?t-1:r)}else this.unplaced=new ye(Co(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:o,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,l=r?r.content:s.content,a=s.openStart-e,c=0,u=[],{match:f,type:h}=this.frontier[t];if(o){for(let g=0;g<o.childCount;g++)u.push(o.child(g));f=f.matchFragment(o)}let p=l.size+e-(s.content.size-s.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,u.push(cd(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=So(this.placed,t,ae.from(u)),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(Co(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new ye(Co(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Ha(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],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=Ha(e,t,o,r,i);if(s){for(let l=t-1;l>=0;l--){let{match:a,type:c}=this.frontier[l],u=Ha(e,l,c,a,!0);if(!u||u.childCount)continue e}return{depth:t,fit:s,move:i?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=So(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,t=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=So(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=So(this.placed,this.frontier.length,t))}}function Co(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(Co(n.firstChild.content,e-1,t)))}function So(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(So(n.lastChild.content,e-1,t)))}function za(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function cd(n,e,t){if(e<=0)return n;let r=n.content;return e>1&&(r=r.replaceChild(0,cd(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 Ha(n,e,t,r,o){let i=n.node(e),s=o?n.indexAfter(e):n.index(e);if(s==i.childCount&&!t.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,s);return l&&!jy(t,i.content,s)?l:null}function jy(n,e,t){for(let r=t;r<e.childCount;r++)if(!n.allowsMarks(e.child(r).marks))return!0;return!1}function Wy(n){return n.spec.defining||n.spec.definingForContent}function Ky(n,e,t,r){if(!r.size)return n.deleteRange(e,t);let o=n.doc.resolve(e),i=n.doc.resolve(t);if(ld(o,i,r))return n.step(new tt(e,t,r));let s=dd(o,n.doc.resolve(t));s[s.length-1]==0&&s.pop();let l=-(o.depth+1);s.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;s.indexOf(h)>-1?l=h:o.before(h)==p&&s.splice(1,0,-h)}let a=s.indexOf(l),c=[],u=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=u-1;h>=0;h--){let p=c[h],m=Wy(p.type);if(m&&!p.sameMarkup(o.node(Math.abs(l)-1)))u=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+u+1)%(r.openStart+1),m=c[p];if(m)for(let g=0;g<s.length;g++){let y=s[(g+a)%s.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?i.after(y):t,new ye(ud(r.content,0,r.openStart,p),p,r.openEnd))}}let f=n.steps.length;for(let h=s.length-1;h>=0&&(n.replace(e,t,r),!(n.steps.length>f));h--){let p=s[h];p<0||(e=o.before(p),t=i.after(p))}}function ud(n,e,t,r,o){if(e<t){let i=n.firstChild;n=n.replaceChild(0,i.copy(ud(i.content,e+1,t,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(n).append(n);n=s.append(i.matchFragment(s).fillBefore(ae.empty,!0))}return n}function Yy(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let o=zy(n.doc,e,r.type);o!=null&&(e=t=o)}n.replaceRange(e,t,new ye(ae.from(r),0,0))}function Gy(n,e,t){let r=n.doc.resolve(e),o=n.doc.resolve(t),i=dd(r,o);for(let s=0;s<i.length;s++){let l=i[s],a=s==i.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 s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&t>r.end(s)&&o.end(s)-t!=o.depth-s)return n.delete(r.before(s),t);n.delete(e,t)}function dd(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let o=r;o>=0;o--){let i=n.start(o);if(i<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;(i==e.start(o)||o==n.depth&&o==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&t.push(o)}return t}class Dr 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 i in t.attrs)r[i]=t.attrs[i];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 Dr(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 Dr(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 Dr(t.pos,t.attr,t.value)}}ot.jsonID("attr",Dr);class wo 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 wo(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 wo(t.attr,t.value)}}ot.jsonID("docAttr",wo);let Lr=class extends Error{};Lr=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t},Lr.prototype=Object.create(Error.prototype),Lr.prototype.constructor=Lr,Lr.prototype.name="TransformError";class fd{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Eo}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Lr(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=Va(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 Ky(this,e,t,r),this}replaceRangeWith(e,t,r){return Yy(this,e,t,r),this}deleteRange(e,t){return Gy(this,e,t),this}lift(e,t){return Iy(this,e,t),this}join(e,t=1){return Vy(this,e,t),this}wrap(e,t){return Ry(this,e,t),this}setBlockType(e,t=e,r,o=null){return By(this,e,t,r,o),this}setNodeMarkup(e,t,r=null,o){return Py(this,e,t,r,o),this}setNodeAttribute(e,t,r){return this.step(new Dr(e,t,r)),this}setDocAttribute(e,t){return this.step(new wo(e,t)),this}addNodeMark(e,t){return this.step(new kn(e,t)),this}removeNodeMark(e,t){if(!(t instanceof $e)){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 Nr(e,t)),this}split(e,t=1,r){return Fy(this,e,t,r),this}addMark(e,t,r){return Oy(this,e,t,r),this}removeMark(e,t,r){return My(this,e,t,r),this}clearIncompatible(e,t,r){return Ny(this,e,t,r),this}}const Ua=Object.create(null);class Re{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new Jy(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 i=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:a,$to:c}=s[l],u=e.mapping.slice(i);e.replaceRange(u.map(a.pos),u.map(c.pos),l?ye.empty:t),l==0&&md(e,i,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,o=this.ranges;for(let i=0;i<o.length;i++){let{$from:s,$to:l}=o[i],a=e.mapping.slice(r),c=a.map(s.pos),u=a.map(l.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),md(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let o=e.parent.inlineContent?new Be(e):Rr(e.node(0),e.parent,e.pos,e.index(),t,r);if(o)return o;for(let i=e.depth-1;i>=0;i--){let s=t<0?Rr(e.node(0),e.node(i),e.before(i+1),e.index(i),t,r):Rr(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,r);if(s)return s}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 Rr(e,e,0,0,1)||new Ut(e)}static atEnd(e){return Rr(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=Ua[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 Ua)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ua[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Be.between(this.$anchor,this.$head).getBookmark()}}Re.prototype.visible=!0;class Jy{constructor(e,t){this.$from=e,this.$to=t}}let hd=!1;function pd(n){!hd&&!n.parent.inlineContent&&(hd=!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){pd(e),pd(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 Mi(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 i=Re.findFrom(t,r,!0)||Re.findFrom(t,-r,!0);if(i)t=i.$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 Mi{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Mi(e.map(this.anchor),e.map(this.head))}resolve(e){return Be.between(e.resolve(this.anchor),e.resolve(this.head))}}class xe 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),i=e.resolve(o);return r?Re.near(i):new xe(i)}content(){return new ye(ae.from(this.node),0,0)}eq(e){return e instanceof xe&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new ja(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new xe(e.resolve(t.anchor))}static create(e,t){return new xe(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}xe.prototype.visible=!1,Re.jsonID("node",xe);class ja{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new Mi(r,r):new ja(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&xe.isSelectable(r)?new xe(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 Zy}}Re.jsonID("all",Ut);const Zy={map(){return this},resolve(n){return new Ut(n)}};function Rr(n,e,t,r,o,i=!1){if(e.inlineContent)return Be.create(n,t);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let l=e.child(s);if(l.isAtom){if(!i&&xe.isSelectable(l))return xe.create(n,t-(o<0?l.nodeSize:0))}else{let a=Rr(n,l,t+o,o<0?l.childCount:0,o,i);if(a)return a}t+=l.nodeSize*o}return null}function md(n,e,t){let r=n.steps.length-1;if(r<e)return;let o=n.steps[r];if(!(o instanceof tt||o instanceof Ze))return;let i=n.mapping.maps[r],s;i.forEach((l,a,c,u)=>{s==null&&(s=u)}),n.setSelection(Re.near(n.doc.resolve(s),t))}const gd=1,Ni=2,yd=4;class Xy extends fd{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|gd)&~Ni,this.storedMarks=null,this}get selectionSet(){return(this.updated&gd)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ni,this}ensureMarks(e){return $e.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&Ni)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~Ni,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)||$e.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 i=this.storedMarks;if(!i){let s=this.doc.resolve(t);i=r==t?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,o.text(e,i)),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|=yd,this}get scrolledIntoView(){return(this.updated&yd)>0}}function vd(n,e){return!e||!n?n:n.bind(e)}class ko{constructor(e,t,r){this.name=e,this.init=vd(t.init,r),this.apply=vd(t.apply,r)}}const Qy=[new ko("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new ko("selection",{init(n,e){return n.selection||Re.atStart(e.doc)},apply(n){return n.selection}}),new ko("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new ko("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class Wa{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Qy.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 ko(r.key,r.spec.state,r))})}}class Br{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 i=!1;for(let s=0;s<this.config.plugins.length;s++){let l=this.config.plugins[s];if(l.spec.appendTransaction){let a=o?o[s].n:0,c=o?o[s].state:this,u=a<t.length&&l.spec.appendTransaction.call(l,a?t.slice(a):t,c,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<s?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),i=!0}o&&(o[s]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Br(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let i=r[o];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new Xy(this)}static create(e){let t=new Wa(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Br(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 Wa(this.schema,e.plugins),r=t.fields,o=new Br(t);for(let i=0;i<r.length;i++){let s=r[i].name;o[s]=this.hasOwnProperty(s)?this[s]:r[i].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],i=o.spec.state;i&&i.toJSON&&(t[r]=i.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 Wa(e.schema,e.plugins),i=new Br(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=rr.fromJSON(e.schema,t.doc);else if(s.name=="selection")i.selection=Re.fromJSON(i.doc,t.selection);else if(s.name=="storedMarks")t.storedMarks&&(i.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==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){i[s.name]=c.fromJSON.call(a,e,t[l],i);return}}i[s.name]=s.init(e,i)}}),i}}function bd(n,e,t){for(let r in n){let o=n[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=bd(o,e,{})),t[r]=o}return t}class vt{constructor(e){this.spec=e,this.props={},e.props&&bd(e.props,this,this.props),this.key=e.key?e.key.key:Ed("plugin")}getState(e){return e[this.key]}}const Ka=Object.create(null);function Ed(n){return n in Ka?n+"$"+ ++Ka[n]:(Ka[n]=0,n+"$")}class jt{constructor(e="key"){this.key=Ed(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},To=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let Cd=null;const dn=function(n,e,t){let r=Cd||(Cd=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},ir=function(n,e,t,r){return t&&(Sd(n,e,t,r,-1)||Sd(n,e,t,r,1))},qy=/^(img|br|input|textarea|hr)$/i;function Sd(n,e,t,r,o){for(;;){if(n==t&&e==r)return!0;if(e==(o<0?0:Qt(n))){let i=n.parentNode;if(!i||i.nodeType!=1||Ya(n)||qy.test(n.nodeName)||n.contentEditable=="false")return!1;e=ct(n)+(o<0?0:1),n=i}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 ev(n,e,t){for(let r=e==0,o=e==Qt(n);r||o;){if(n==t)return!0;let i=ct(n);if(n=n.parentNode,!n)return!1;r=r&&i==0,o=o&&i==Qt(n)}}function Ya(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 _i=function(n){return n.focusNode&&ir(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function sr(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function tv(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function nv(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,wd=typeof document<"u"?document:null,An=qt&&qt.userAgent||"",Ga=/Edge\/(\d+)/.exec(An),kd=/MSIE \d/.exec(An),Ja=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(An),bt=!!(kd||Ja||Ga),xn=kd?document.documentMode:Ja?+Ja[1]:Ga?+Ga[1]:0,Wt=!bt&&/gecko\/(\d+)/i.test(An);Wt&&+(/Firefox\/(\d+)/.exec(An)||[0,0])[1];const Za=!bt&&/Chrome\/(\d+)/.exec(An),it=!!Za,rv=Za?+Za[1]:0,ut=!bt&&!!qt&&/Apple Computer/.test(qt.vendor),$r=ut&&(/Mobile\/\w+/.test(An)||!!qt&&qt.maxTouchPoints>2),Nt=$r||(qt?/Mac/.test(qt.platform):!1),ov=qt?/Win/.test(qt.platform):!1,Kt=/Android \d/.test(An),Ao=!!wd&&"webkitFontSmoothing"in wd.documentElement.style,iv=Ao?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function sv(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 av(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 Td(n,e,t){let r=n.someProp("scrollThreshold")||0,o=n.someProp("scrollMargin")||5,i=n.dom.ownerDocument;for(let s=t||n.dom;s;s=To(s)){if(s.nodeType!=1)continue;let l=s,a=l==i.body,c=a?sv(i):av(l),u=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")?u=-(c.left-e.left+fn(o,"left")):e.right>c.right-fn(r,"right")&&(u=e.right-c.right+fn(o,"right")),u||f)if(a)i.defaultView.scrollBy(u,f);else{let h=l.scrollLeft,p=l.scrollTop;f&&(l.scrollTop+=f),u&&(l.scrollLeft+=u);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(s).position))break}}function lv(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=t+1;s<Math.min(innerHeight,e.bottom);s+=5){let l=n.root.elementFromPoint(i,s);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:Ad(n.dom)}}function Ad(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=To(r));return e}function cv({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;xd(t,r==0?0:r-e)}function xd(n,e){for(let t=0;t<n.length;t++){let{dom:r,top:o,left:i}=n[t];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let Pr=null;function uv(n){if(n.setActive)return n.setActive();if(Pr)return n.focus(Pr);let e=Ad(n);n.focus(Pr==null?{get preventScroll(){return Pr={preventScroll:!0},!0}}:void 0),Pr||(Pr=!1,xd(e,0))}function Od(n,e){let t,r=2e8,o,i=0,s=e.top,l=e.top,a,c;for(let u=n.firstChild,f=0;u;u=u.nextSibling,f++){let h;if(u.nodeType==1)h=u.getClientRects();else if(u.nodeType==3)h=dn(u).getClientRects();else continue;for(let p=0;p<h.length;p++){let m=h[p];if(m.top<=s&&m.bottom>=l){s=Math.max(m.bottom,s),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=u,r=g,o=g&&t.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,u.nodeType==1&&g&&(i=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=u,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)&&(i=f+1)}}return!t&&a&&(t=a,o=c,r=0),t&&t.nodeType==3?dv(t,o):!t||r&&t.nodeType==1?{node:n,offset:i}:Od(t,o)}function dv(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 i=On(r,1);if(i.top!=i.bottom&&Xa(e,i))return{node:n,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:n,offset:0}}function Xa(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function fv(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function hv(n,e,t){let{node:r,offset:o}=Od(e,t),i=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();i=s.left!=s.right&&t.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(r,o,i)}function pv(n,e,t,r){let o=-1;for(let i=e,s=!1;i!=n.dom;){let l=n.docView.nearestDesc(i,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!s||!l.contentDOM)){let a=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!s&&(s=!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}i=l.dom.parentNode}return o>-1?o:n.docView.posFromDOM(e,t,-1)}function Md(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)),i=o;;){let s=n.childNodes[i];if(s.nodeType==1){let l=s.getClientRects();for(let a=0;a<l.length;a++){let c=l[a];if(Xa(e,c))return Md(s,e,c)}}if((i=(i+1)%r)==o)break}return n}function mv(n,e){let t=n.dom.ownerDocument,r,o=0,i=nv(t,e.left,e.top);i&&({node:r,offset:o}=i);let s=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),l;if(!s||!n.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=n.dom.getBoundingClientRect();if(!Xa(e,c)||(s=Md(n.dom,e,c),!s))return null}if(ut)for(let c=s;r&&c;c=To(c))c.draggable&&(r=void 0);if(s=fv(s,e),r){if(Wt&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let u=r.childNodes[o],f;u.nodeName=="IMG"&&(f=u.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let c;Ao&&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=pv(n,r,o,e))}l==null&&(l=hv(n,s,e));let a=n.docView.nearestDesc(s,!0);return{pos:l,inside:a?a.posAtStart-a.border:-1}}function Nd(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(Nd(r))return r}return Array.prototype.find.call(t,Nd)||n.getBoundingClientRect()}const gv=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function _d(n,e,t){let{node:r,offset:o,atom:i}=n.docView.domFromPos(e,t<0?-1:1),s=Ao||Wt;if(r.nodeType==3)if(s&&(gv.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 u=On(dn(r,o,o+1),-1);if(u.top!=a.top)return xo(u,u.left<c.left)}}return a}else{let a=o,c=o,u=t<0?1:-1;return t<0&&!o?(c++,u=-1):t>=0&&o==r.nodeValue.length?(a--,u=1):t<0?a--:c++,xo(On(dn(r,a,c),u),u<0)}if(!n.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(t<0||o==Qt(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return Qa(a.getBoundingClientRect(),!1)}if(i==null&&o<Qt(r)){let a=r.childNodes[o];if(a.nodeType==1)return Qa(a.getBoundingClientRect(),!0)}return Qa(r.getBoundingClientRect(),t>=0)}if(i==null&&o&&(t<0||o==Qt(r))){let a=r.childNodes[o-1],c=a.nodeType==3?dn(a,Qt(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(c)return xo(On(c,1),!1)}if(i==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,s?0:1):a.nodeType==1?a:null:null;if(c)return xo(On(c,-1),!0)}return xo(On(r.nodeType==3?dn(r):r,-t),t>=0)}function xo(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 Qa(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 Id(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 yv(n,e,t){let r=e.selection,o=t=="up"?r.$from:r.$to;return Id(n,e,()=>{let{node:i}=n.docView.domFromPos(o.pos,t=="up"?-1:1);for(;;){let l=n.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=_d(n,o.pos,1);for(let l=i.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 u=a[c];if(u.bottom>u.top+1&&(t=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const vv=/[\u0590-\u08ac]/;function bv(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,l=n.domSelection();return!vv.test(r.parent.textContent)||!l.modify?t=="left"||t=="backward"?i:s:Id(n,e,()=>{let{focusNode:a,focusOffset:c,anchorNode:u,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(u,f),a&&(a!=u||c!=f)&&l.extend&&l.extend(a,c)}catch{}return h!=null&&(l.caretBidiLevel=h),y})}let Dd=null,Ld=null,Rd=!1;function Ev(n,e,t){return Dd==e&&Ld==t?Rd:(Dd=e,Ld=t,Rd=t=="up"||t=="down"?yv(n,e,t):bv(n,e,t))}const _t=0,Bd=1,ar=2,en=3;class Oo{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 i,s;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):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 i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&t==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.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 i=this.getDesc(o),s;if(i&&(!t||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}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 i=this.getDesc(o);if(i)return i.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let o=this.children[t],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],l=i+s.size;if(l>e||s instanceof Fd){o=e-i;break}i=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,t);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof $d&&i.side>=0;r--);if(t<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&t&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,t):{node:this.contentDOM,offset:i?ct(i.dom)+1:0}}else{let i,s=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,t):{node:this.contentDOM,offset:i?ct(i.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,i=-1;for(let s=r,l=0;;l++){let a=this.children[l],c=s+a.size;if(o==-1&&e<=c){let u=s+a.border;if(e>=u&&t<=c-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,u);e=s;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 u=l+1;u<this.children.length;u++){let f=this.children[u];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=ct(f.dom);break}t+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:t,fromOffset:o,toOffset:i}}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 i=Math.min(e,t),s=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(i>p&&s<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(),u=!1;if((Wt||ut)&&e==t){let{node:h,offset:p}=l;if(h.nodeType==3){if(u=!!(p&&h.nodeValue[p-1]==`
|
|
15
|
+
`),u&&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];u=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||u&&ut)&&ir(l.node,l.offset,c.anchorNode,c.anchorOffset)&&ir(a.node,a.offset,c.focusNode,c.focusOffset))return;let f=!1;if((c.extend||e==t)&&!u){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 i=this.children[o],s=r+i.size;if(r==s?e<=s&&t>=r:e<s&&t>r){let l=r+i.border,a=s-i.border;if(e>=l&&t<=a){this.dirty=e==r||t==s?ar:Bd,e==l&&t==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=en:i.markDirty(e-l,t-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?ar:en}r=s}this.dirty=ar}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=e==1?ar:Bd;t.dirty<r&&(t.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class $d extends Oo{constructor(e,t,r,o){let i,s=t.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=t,this.widget=t,i=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 Cv extends Oo{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 lr extends Oo{constructor(e,t,r,o){super(e,[],r,o),this.mark=t}static create(e,t,r,o){let i=o.nodeViews[t.type.name],s=i&&i(t,o,r);return(!s||!s.dom)&&(s=Zt.renderSpec(document,t.type.spec.toDOM(t,r))),new lr(e,t,s.dom,s.contentDOM||s.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=lr.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;t<s&&(i=tl(i,t,s,r)),e>0&&(i=tl(i,0,e,r));for(let l=0;l<i.length;l++)i[l].parent=o;return o.children=i,o}}class Mn extends Oo{constructor(e,t,r,o,i,s,l,a,c){super(e,[],i,s),this.node=t,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=l}static create(e,t,r,o,i,s){let l=i.nodeViews[t.type.name],a,c=l&&l(t,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),u=c&&c.dom,f=c&&c.contentDOM;if(t.isText){if(!u)u=document.createTextNode(t.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=Zt.renderSpec(document,t.type.spec.toDOM(t)));!f&&!t.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let h=u;return u=Hd(u,r,t),c?a=new Sv(e,t,r,o,u,f||null,h,c,i,s+1):t.isText?new Ii(e,t,r,o,u,h,i):new Mn(e,t,r,o,u,f||null,h,i,s+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)&&el(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,i=e.composing?this.localCompositionInfo(e,t):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,a=new kv(this,s&&s.node,e);xv(this.node,this.innerDeco,(c,u,f)=>{c.spec.marks?a.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!f&&a.syncToMarks(u==this.node.childCount?$e.none:this.node.child(u).marks,r,e),a.placeWidget(c,e,o)},(c,u,f,h)=>{a.syncToMarks(c.marks,r,e);let p;a.findNodeMatch(c,u,f,h)||l&&e.state.selection.from>o&&e.state.selection.to<o+c.nodeSize&&(p=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(c,u,f,p,e)||a.updateNextNode(c,u,f,e,h,o)||a.addNode(c,u,f,e,o),o+=c.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==ar)&&(s&&this.protectLocalComposition(e,s),Vd(this.contentDOM,this.children,e),$r&&Ov(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 i=e.domSelectionRange(),s=Mv(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let l=s.nodeValue,a=Nv(this.node.content,l,r-t,o-t);return a<0?null:{node:s,pos:a,text:l}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:r,text:o}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new Cv(this,i,t,o);e.input.compositionNodes.push(s),this.children=tl(this.children,r,r+o.length,e,s)}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(el(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=zd(this.dom,this.nodeDOM,qa(this.outerDeco,this.node,t),qa(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 Pd(n,e,t,r,o){Hd(r,e,n);let i=new Mn(void 0,n,e,t,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class Ii extends Mn{constructor(e,t,r,o,i,s,l){super(e,t,r,o,i,null,s,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),i=document.createTextNode(o.text);return new Ii(this.parent,o,this.outerDeco,this.innerDeco,i,i,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 Fd extends Oo{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 Sv extends Mn{constructor(e,t,r,o,i,s,l,a,c,u){super(e,t,r,o,i,s,l,c,u),this.spec=a}update(e,t,r,o){if(this.dirty==en)return!1;if(this.spec.update){let i=this.spec.update(e,t,r);return i&&this.updateInner(e,t,r,o),i}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 Vd(n,e,t){let r=n.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],l=s.dom;if(l.parentNode==n){for(;l!=r;)r=Ud(r),o=!0;r=r.nextSibling}else o=!0,n.insertBefore(l,r);if(s instanceof lr){let a=r?r.previousSibling:n.lastChild;Vd(s.contentDOM,s.children,t),r=a?a.nextSibling:n.firstChild}}for(;r;)r=Ud(r),o=!0;o&&t.trackWrites==n&&(t.trackWrites=null)}const Mo=function(n){n&&(this.nodeName=n)};Mo.prototype=Object.create(null);const cr=[new Mo];function qa(n,e,t){if(n.length==0)return cr;let r=t?cr[0]:new Mo,o=[r];for(let i=0;i<n.length;i++){let s=n[i].type.attrs;if(s){s.nodeName&&o.push(r=new Mo(s.nodeName));for(let l in s){let a=s[l];a!=null&&(t&&o.length==1&&o.push(r=new Mo(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 zd(n,e,t,r){if(t==cr&&r==cr)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],l=t[i];if(i){let a;l&&l.nodeName==s.nodeName&&o!=n&&(a=o.parentNode)&&a.nodeName.toLowerCase()==s.nodeName||(a=document.createElement(s.nodeName),a.pmIsDeco=!0,a.appendChild(o),l=cr[0]),o=a}wv(o,l||cr[0],s)}return o}function wv(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 i=0;i<r.length;i++)o.indexOf(r[i])==-1&&n.classList.remove(r[i]);for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&n.classList.add(o[i]);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 Hd(n,e,t){return zd(n,n,cr,qa(e,t,n.nodeType!=1))}function el(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 Ud(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class kv{constructor(e,t,r){this.lock=t,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Tv(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,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=_t,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<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[i])&&!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=lr.create(this.top,e[i],t,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,t,r))i=this.top.children.indexOf(s,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)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,r,o,i){let s=this.top.children[o];return s.dirty==en&&s.dom==s.contentDOM&&(s.dirty=ar),s.update(e,t,r,i)?(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,i,s){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!=i)return!1;let u=a.dom,f,h=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=en&&el(t,a.outerDeco));if(!h&&a.update(e,t,r,o))return this.destroyBetween(this.index,l),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(a,e,t,r,o,s)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=ar,f.updateChildren(o,s+1),f.dirty=_t),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,r,o,i,s){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,i,s);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,i){let s=Mn.create(this.top,e,t,r,o,i);s.contentDOM&&s.updateChildren(o,i+1),this.top.children.splice(this.index++,0,s),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 i=new $d(this.top,e,t,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof lr;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Ii)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((ut||it)&&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 Fd(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 Tv(n,e){let t=e,r=t.children.length,o=n.childCount,i=new Map,s=[];e:for(;o>0;){let l;for(;;)if(r){let c=t.children[r-1];if(c instanceof lr)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,i.set(l,o),s.push(l)}}return{index:o,matched:i,matches:s.reverse()}}function Av(n,e){return n.type.side-e.type.side}function xv(n,e,t,r){let o=e.locals(n),i=0;if(o.length==0){for(let c=0;c<n.childCount;c++){let u=n.child(c);r(u,o,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,l=[],a=null;for(let c=0;;){let u,f;for(;s<o.length&&o[s].to==i;){let y=o[s++];y.widget&&(u?(f||(f=[u])).push(y):u=y)}if(u)if(f){f.sort(Av);for(let y=0;y<f.length;y++)t(f[y],c,!!a)}else t(u,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<=i&&l.splice(y--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)l.push(o[s++]);let m=i+h.nodeSize;if(h.isText){let y=m;s<o.length&&o[s].from<y&&(y=o[s].from);for(let C=0;C<l.length;C++)l[C].to<y&&(y=l[C].to);y<m&&(a=h.cut(y-i),h=h.cut(0,y-i),m=y,p=-1)}let g=h.isInline&&!h.isLeaf?l.filter(y=>!y.inline):l.slice();r(h,g,e.forChild(i,h),p),i=m}}function Ov(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 Mv(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 Nv(n,e,t,r){for(let o=0,i=0;o<n.childCount&&i<=r;){let s=n.child(o++),l=i;if(i+=s.nodeSize,!s.isText)continue;let a=s.text;for(;o<n.childCount;){let c=n.child(o++);if(i+=c.nodeSize,!c.isText)break;a+=c.text}if(i>=t){if(i>=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 tl(n,e,t,r,o){let i=[];for(let s=0,l=0;s<n.length;s++){let a=n[s],c=l,u=l+=a.size;c>=t||u<=e?i.push(a):(c<e&&i.push(a.slice(0,e-c,r)),o&&(i.push(o),o=void 0),u>t&&i.push(a.slice(t-c,a.size,r)))}return i}function nl(n,e=null){let t=n.domSelectionRange(),r=n.state.doc;if(!t.focusNode)return null;let o=n.docView.nearestDesc(t.focusNode),i=o&&o.size==0,s=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(s<0)return null;let l=r.resolve(s),a,c;if(_i(t)){for(a=l;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&xe.isSelectable(u)&&o.parent&&!(u.isInline&&ev(t.focusNode,t.focusOffset,o.dom))){let f=o.posBefore;c=new xe(s==f?l:r.resolve(f))}}else{let u=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(u<0)return null;a=r.resolve(u)}if(!c){let u=e=="pointer"||n.state.selection.head<l.pos&&!i?1:-1;c=ol(n,a,l,u)}return c}function jd(n){return n.editable?n.hasFocus():Xd(n)&&document.activeElement&&document.activeElement.contains(n.dom)}function hn(n,e=!1){let t=n.state.selection;if(Gd(n,t),!!jd(n)){if(!e&&n.input.mouseDown&&n.input.mouseDown.allowDefault&&it){let r=n.domSelectionRange(),o=n.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&ir(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){n.input.mouseDown.delayedSelectionSync=!0,n.domObserver.setCurSelection();return}}if(n.domObserver.disconnectSelection(),n.cursorWrapper)Iv(n);else{let{anchor:r,head:o}=t,i,s;Wd&&!(t instanceof Be)&&(t.$from.parent.inlineContent||(i=Kd(n,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(s=Kd(n,t.to))),n.docView.setSelection(r,o,n.root,e),Wd&&(i&&Yd(i),s&&Yd(s)),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 Wd=ut||it&&rv<63;function Kd(n,e){let{node:t,offset:r}=n.docView.domFromPos(e,0),o=r<t.childNodes.length?t.childNodes[r]:null,i=r?t.childNodes[r-1]:null;if(ut&&o&&o.contentEditable=="false")return rl(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return rl(o);if(i)return rl(i)}}function rl(n){return n.contentEditable="true",ut&&n.draggable&&(n.draggable=!1,n.wasDraggable=!0),n}function Yd(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(()=>{(!jd(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function Iv(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&&xn<=11&&(r.disabled=!0,r.disabled=!1)}function Gd(n,e){if(e instanceof xe){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(Jd(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else Jd(n)}function Jd(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function ol(n,e,t,r){return n.someProp("createSelectionBetween",o=>o(n,e,t))||Be.between(e,t,r)}function Zd(n){return n.editable&&!n.hasFocus()?!1:Xd(n)}function Xd(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 Dv(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return ir(e.node,e.offset,t.anchorNode,t.anchorOffset)}function il(n,e){let{$anchor:t,$head:r}=n.selection,o=e>0?t.max(r):t.min(r),i=o.parent.inlineContent?o.depth?n.doc.resolve(e>0?o.after():o.before()):null:o;return i&&Re.findFrom(i,e)}function Nn(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function Qd(n,e,t){let r=n.state.selection;if(r instanceof Be)if(t.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=n.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return Nn(n,new Be(r.$anchor,s))}else if(r.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let o=il(n.state,e);return o&&o instanceof xe?Nn(n,o):!1}else if(!(Nt&&t.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let l=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=n.docView.descAt(l))&&!s.contentDOM?xe.isSelectable(i)?Nn(n,new xe(e<0?n.state.doc.resolve(o.pos-i.nodeSize):o)):Ao?Nn(n,new Be(n.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof xe&&r.node.isInline)return Nn(n,new Be(e>0?r.$to:r.$from));{let o=il(n.state,e);return o?Nn(n,o):!1}}}function Di(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function No(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function Fr(n,e){return e<0?Lv(n):Rv(n)}function Lv(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o,i,s=!1;for(Wt&&t.nodeType==1&&r<Di(t)&&No(t.childNodes[r],-1)&&(s=!0);;)if(r>0){if(t.nodeType!=1)break;{let l=t.childNodes[r-1];if(No(l,-1))o=t,i=--r;else if(l.nodeType==3)t=l,r=t.nodeValue.length;else break}}else{if(qd(t))break;{let l=t.previousSibling;for(;l&&No(l,-1);)o=t.parentNode,i=ct(l),l=l.previousSibling;if(l)t=l,r=Di(t);else{if(t=t.parentNode,t==n.dom)break;r=0}}}s?sl(n,t,r):o&&sl(n,o,i)}function Rv(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let o=Di(t),i,s;for(;;)if(r<o){if(t.nodeType!=1)break;let l=t.childNodes[r];if(No(l,1))i=t,s=++r;else break}else{if(qd(t))break;{let l=t.nextSibling;for(;l&&No(l,1);)i=l.parentNode,s=ct(l)+1,l=l.nextSibling;if(l)t=l,r=0,o=Di(t);else{if(t=t.parentNode,t==n.dom)break;r=o=0}}}i&&sl(n,i,s)}function qd(n){let e=n.pmViewDesc;return e&&e.node&&e.node.isBlock}function Bv(n,e){for(;n&&e==n.childNodes.length&&!Ya(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 $v(n,e){for(;n&&!e&&!Ya(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 sl(n,e,t){if(e.nodeType!=3){let i,s;(s=Bv(e,t))?(e=s,t=0):(i=$v(e,t))&&(e=i,t=i.nodeValue.length)}let r=n.domSelection();if(_i(r)){let i=document.createRange();i.setEnd(e,t),i.setStart(e,t),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,t);n.domObserver.setCurSelection();let{state:o}=n;setTimeout(()=>{n.state==o&&hn(n)},50)}function ef(n,e){let t=n.state.doc.resolve(e);if(!(it||ov)&&t.parent.inlineContent){let o=n.coordsAtPos(e);if(e>t.start()){let i=n.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left<o.left?"ltr":"rtl"}if(e<t.end()){let i=n.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function tf(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:i}=r;if(!o.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let s=il(n.state,e);if(s&&s instanceof xe)return Nn(n,s)}if(!o.parent.inlineContent){let s=e<0?o:i,l=r instanceof Ut?Re.near(s,e):Re.findFrom(s,e);return l?Nn(n,l):!1}return!1}function nf(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 i=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(i&&!i.isText){let s=n.state.tr;return e<0?s.delete(t.pos-i.nodeSize,t.pos):s.delete(t.pos,t.pos+i.nodeSize),n.dispatch(s),!0}return!1}function rf(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function Pv(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;rf(n,r,"true"),setTimeout(()=>rf(n,r,"false"),20)}return!1}function Fv(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}function Vv(n,e){let t=e.keyCode,r=Fv(e);if(t==8||Nt&&t==72&&r=="c")return nf(n,-1)||Fr(n,-1);if(t==46&&!e.shiftKey||Nt&&t==68&&r=="c")return nf(n,1)||Fr(n,1);if(t==13||t==27)return!0;if(t==37||Nt&&t==66&&r=="c"){let o=t==37?ef(n,n.state.selection.from)=="ltr"?-1:1:-1;return Qd(n,o,r)||Fr(n,o)}else if(t==39||Nt&&t==70&&r=="c"){let o=t==39?ef(n,n.state.selection.from)=="ltr"?1:-1:1;return Qd(n,o,r)||Fr(n,o)}else{if(t==38||Nt&&t==80&&r=="c")return tf(n,-1,r)||Fr(n,-1);if(t==40||Nt&&t==78&&r=="c")return Pv(n)||tf(n,1,r)||Fr(n,1);if(r==(Nt?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function of(n,e){n.someProp("transformCopied",p=>{e=p(e,n)});let t=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let p=r.firstChild;t.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let s=n.someProp("clipboardSerializer")||Zt.fromSchema(n.state.schema),l=hf(),a=l.createElement("div");a.appendChild(s.serializeFragment(r,{document:l}));let c=a.firstChild,u,f=0;for(;c&&c.nodeType==1&&(u=df[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let m=l.createElement(u[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} ${i}${f?` -${f}`:""} ${JSON.stringify(t)}`);let h=n.someProp("clipboardTextSerializer",p=>p(e,n))||e.content.textBetween(0,e.content.size,`
|
|
16
|
+
|
|
17
|
+
`);return{dom:a,text:h}}function sf(n,e,t,r,o){let i=o.parent.type.spec.code,s,l;if(!t&&!e)return null;let a=e&&(r||i||!t);if(a){if(n.someProp("transformPastedText",h=>{e=h(e,i||r,n)}),i)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);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let y=s.appendChild(document.createElement("p"));g&&y.appendChild(m.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",f=>{t=f(t,n)}),s=Uv(t),Ao&&jv(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(l||(l=(n.someProp("clipboardParser")||n.someProp("domParser")||Mr.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!zv.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)l=Wv(uf(l,+u[1],+u[2]),u[4]);else if(l=ye.maxOpen(Hv(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=uf(l,f,h)}return n.someProp("transformPasted",f=>{l=f(l,n)}),l}const zv=/^(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 Hv(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)),i,s=[];if(n.forEach(l=>{if(!s)return;let a=o.findWrapping(l.type),c;if(!a)return s=null;if(c=s.length&&i.length&&lf(a,i,l,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=cf(s[s.length-1],i.length));let u=af(l,a);s.push(u),o=o.matchType(u.type),i=a}}),s)return ae.from(s)}return n}function af(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,ae.from(n));return n}function lf(n,e,t,r,o){if(o<n.length&&o<e.length&&n[o]==e[o]){let i=lf(n,e,t,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==n.length-1?t.type:n[o+1]))return r.copy(r.content.append(ae.from(af(t,n,o+1))))}}function cf(n,e){if(e==0)return n;let t=n.content.replaceChild(n.childCount-1,cf(n.lastChild,e-1)),r=n.contentMatchAt(n.childCount).fillBefore(ae.empty,!0);return n.copy(t.append(r))}function al(n,e,t,r,o,i){let s=e<0?n.firstChild:n.lastChild,l=s.content;return n.childCount>1&&(i=0),o<r-1&&(l=al(l,e,t,r,o+1,i)),o>=t&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(ae.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,s.copy(l))}function uf(n,e,t){return e<n.openStart&&(n=new ye(al(n.content,-1,e,n.openStart,0,n.openEnd),e,n.openEnd)),t<n.openEnd&&(n=new ye(al(n.content,1,t,n.openEnd,0,0),n.openStart,t)),n}const df={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 ff=null;function hf(){return ff||(ff=document.implementation.createHTMLDocument("title"))}function Uv(n){let e=/^(\s*<meta [^>]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=hf().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),o;if((o=r&&df[r[1].toLowerCase()])&&(n=o.map(i=>"<"+i+">").join("")+n+o.map(i=>"</"+i+">").reverse().join("")),t.innerHTML=n,o)for(let i=0;i<o.length;i++)t=t.querySelector(o[i])||t;return t}function jv(n){let e=n.querySelectorAll(it?"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 Wv(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:i,openEnd:s}=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)),i++,s++}return new ye(o,i,s)}const dt={},ft={},Kv={touchstart:!0,touchmove:!0};class Yv{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 Gv(n){for(let e in dt){let t=dt[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{Zv(n,r)&&!cl(n,r)&&(n.editable||!(r.type in ft))&&t(n,r)},Kv[e]?{passive:!0}:void 0)}ut&&n.dom.addEventListener("input",()=>null),ll(n)}function _n(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function Jv(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 ll(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>cl(n,r))})}function cl(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function Zv(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 Xv(n,e){!cl(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,!mf(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(Kt&&it&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),$r&&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,sr(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||Vv(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(mf(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",i=>i(n,r.$from.pos,r.$to.pos,o))&&n.dispatch(n.state.tr.insertText(o).scrollIntoView()),t.preventDefault()}};function Li(n){return{left:n.clientX,top:n.clientY}}function Qv(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function ul(n,e,t,r,o){if(r==-1)return!1;let i=n.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(n.someProp(e,l=>s>i.depth?l(n,t,i.nodeAfter,i.before(s),o,!0):l(n,t,i.node(s),i.before(s),o,!1)))return!0;return!1}function Vr(n,e,t){n.focused||n.focus();let r=n.state.tr.setSelection(e);t=="pointer"&&r.setMeta("pointer",!0),n.dispatch(r)}function qv(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&xe.isSelectable(r)?(Vr(n,new xe(t),"pointer"),!0):!1}function e5(n,e){if(e==-1)return!1;let t=n.state.selection,r,o;t instanceof xe&&(r=t.node);let i=n.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(xe.isSelectable(l)){r&&t.$from.depth>0&&s>=t.$from.depth&&i.before(t.$from.depth+1)==t.$from.pos?o=i.before(t.$from.depth):o=i.before(s);break}}return o!=null?(Vr(n,xe.create(n.state.doc,o),"pointer"),!0):!1}function t5(n,e,t,r,o){return ul(n,"handleClickOn",e,t,r)||n.someProp("handleClick",i=>i(n,e,r))||(o?e5(n,t):qv(n,t))}function n5(n,e,t,r){return ul(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",o=>o(n,e,r))}function r5(n,e,t,r){return ul(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",o=>o(n,e,r))||o5(n,t,r)}function o5(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(Vr(n,Be.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),l=o.before(i);if(s.inlineContent)Vr(n,Be.create(r,l+1,l+1+s.content.size),"pointer");else if(xe.isSelectable(s))Vr(n,xe.create(r,l),"pointer");else continue;return!0}}function dl(n){return Ri(n)}const pf=Nt?"metaKey":"ctrlKey";dt.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=dl(n),o=Date.now(),i="singleClick";o-n.input.lastClick.time<500&&Qv(t,n.input.lastClick)&&!t[pf]&&(n.input.lastClick.type=="singleClick"?i="doubleClick":n.input.lastClick.type=="doubleClick"&&(i="tripleClick")),n.input.lastClick={time:o,x:t.clientX,y:t.clientY,type:i};let s=n.posAtCoords(Li(t));s&&(i=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new i5(n,s,t,!!r)):(i=="doubleClick"?n5:r5)(n,s.pos,s.inside,t)?t.preventDefault():_n(n,"pointer"))};class i5{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[pf],this.allowDefault=r.shiftKey;let i,s;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),s=t.inside;else{let u=e.state.doc.resolve(t.pos);i=u.parent,s=u.depth?u.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&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof xe&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,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(Li(e))),this.updateAllowDefault(e),this.allowDefault||!t?_n(this.view,"pointer"):t5(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||ut&&this.mightDrag&&!this.mightDrag.node.isAtom||it&&!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)?(Vr(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(),dl(n),_n(n,"pointer")},dt.touchmove=n=>{n.input.lastTouch=Date.now(),_n(n,"pointer")},dt.contextmenu=n=>dl(n);function mf(n,e){return n.composing?!0:ut&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const s5=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(),Ri(n,!0),n.markCursor=null;else if(Ri(n),Wt&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let r=n.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){n.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}n.input.composing=!0}gf(n,s5)},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++,gf(n,20))};function gf(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>Ri(n),e))}function yf(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=a5());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function a5(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function Ri(n,e=!1){if(!(Kt&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),yf(n),e||n.docView&&n.docView.dirty){let t=nl(n);return t&&!t.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(t)):n.updateState(n.state),!0}return!1}}function l5(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 _o=bt&&xn<15||$r&&iv<604;dt.copy=ft.cut=(n,e)=>{let t=e,r=n.state.selection,o=t.type=="cut";if(r.empty)return;let i=_o?null:t.clipboardData,s=r.content(),{dom:l,text:a}=of(n,s);i?(t.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",a)):l5(n,l),o&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function c5(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function u5(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?Io(n,r.value,null,o,e):Io(n,r.textContent,r.innerHTML,o,e)},50)}function Io(n,e,t,r,o){let i=sf(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,o,i||ye.empty)))return!0;if(!i)return!1;let s=c5(i),l=s?n.state.tr.replaceSelectionWith(s,r):n.state.tr.replaceSelection(i);return n.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function vf(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=_o?null:t.clipboardData,o=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&Io(n,vf(r),r.getData("text/html"),o,t)?t.preventDefault():u5(n,t)};class bf{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const Ef=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,i=o.empty?null:n.posAtCoords(Li(t)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof xe?o.to-1:o.to))){if(r&&r.mightDrag)s=xe.create(n.state.doc,r.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let u=n.docView.nearestDesc(t.target,!0);u&&u.node.type.spec.draggable&&u!=n.docView&&(s=xe.create(n.state.doc,u.posBefore))}}let l=(s||n.state.selection).content(),{dom:a,text:c}=of(n,l);t.dataTransfer.clearData(),t.dataTransfer.setData(_o?"Text":"text/html",a.innerHTML),t.dataTransfer.effectAllowed="copyMove",_o||t.dataTransfer.setData("text/plain",c),n.dragging=new bf(l,!t[Ef],s)},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(Li(t));if(!o)return;let i=n.state.doc.resolve(o.pos),s=r&&r.slice;s?n.someProp("transformPasted",m=>{s=m(s,n)}):s=sf(n,vf(t.dataTransfer),_o?null:t.dataTransfer.getData("text/html"),!1,i);let l=!!(r&&!t[Ef]);if(n.someProp("handleDrop",m=>m(n,t,s||ye.empty,l))){t.preventDefault();return}if(!s)return;t.preventDefault();let a=s?Hy(n.state.doc,i.pos,s):i.pos;a==null&&(a=i.pos);let c=n.state.tr;if(l){let{node:m}=r;m?m.replace(c):c.deleteSelection()}let u=c.mapping.map(a),f=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=c.doc;if(f?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let p=c.doc.resolve(u);if(f&&xe.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new xe(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(ol(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(it&&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",i=>i(n,sr(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 Do(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 Bi{constructor(e,t){this.toDOM=e,this.spec=t||ur,this.side=this.spec.side||0}map(e,t,r,o){let{pos:i,deleted:s}=e.mapResult(t.from+o,this.side<0?-1:1);return s?null:new It(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Bi&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Do(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class In{constructor(e,t){this.attrs=e,this.spec=t||ur}map(e,t,r,o){let i=e.map(t.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(t.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new It(i,s,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof In&&Do(this.attrs,e.attrs)&&Do(this.spec,e.spec)}static is(e){return e.type instanceof In}destroy(){}}class fl{constructor(e,t){this.attrs=e,this.spec=t||ur}map(e,t,r,o){let i=e.mapResult(t.from+o,1);if(i.deleted)return null;let s=e.mapResult(t.to+o,-1);return s.deleted||s.pos<=i.pos?null:new It(i.pos-r,s.pos-r,this)}valid(e,t){let{index:r,offset:o}=e.content.findIndex(t.from),i;return o==t.from&&!(i=e.child(r)).isText&&o+i.nodeSize==t.to}eq(e){return this==e||e instanceof fl&&Do(this.attrs,e.attrs)&&Do(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 Bi(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 fl(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof In}get widget(){return this.type instanceof Bi}}const zr=[],ur={};class Ge{constructor(e,t){this.local=e.length?e:zr,this.children=t.length?t:zr}static create(e,t){return t.length?$i(t,e,0,ur):st}find(e,t,r){let o=[];return this.findInner(e??0,t??1e9,o,0,r),o}findInner(e,t,r,o,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=t&&l.to>=e&&(!i||i(l.spec))&&r.push(l.copy(l.from+o,l.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){let l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,r,o+l,i)}}map(e,t,r){return this==st||e.maps.length==0?this:this.mapInner(e,t,0,0,r||ur)}mapInner(e,t,r,o,i){let s;for(let l=0;l<this.local.length;l++){let a=this.local[l].map(e,r,o);a&&a.type.valid(t,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?d5(this.children,s||[],e,t,r,o,i):s?new Ge(s.sort(dr),zr):st}add(e,t){return t.length?this==st?Ge.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let o,i=0;e.forEach((l,a)=>{let c=a+r,u;if(u=Sf(t,l,c)){for(o||(o=this.children.slice());i<o.length&&o[i]<a;)i+=3;o[i]==a?o[i+2]=o[i+2].addInner(l,u,c+1):o.splice(i,0,a,a+l.nodeSize,$i(u,l,c+1,ur)),i+=3}});let s=Cf(i?wf(t):t,-r);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||s.splice(l--,1);return new Ge(s.length?this.local.concat(s).sort(dr):this.local,o||this.children)}remove(e){return e.length==0||this==st?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,l=r[i]+t,a=r[i+1]+t;for(let u=0,f;u<e.length;u++)(f=e[u])&&f.from>l&&f.to<a&&(e[u]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let c=r[i+2].removeInner(s,l+1);c!=st?r[i+2]=c:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let l=0;l<o.length;l++)o[l].eq(s,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):st}forChild(e,t){if(this==st)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 i=e+1,s=i+t.content.size;for(let l=0;l<this.local.length;l++){let a=this.local[l];if(a.from<s&&a.to>i&&a.type instanceof In){let c=Math.max(i,a.from)-i,u=Math.min(s,a.to)-i;c<u&&(o||(o=[])).push(a.copy(c,u))}}if(o){let l=new Ge(o.sort(dr),zr);return r?new Dn([l,r]):l}return r||st}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 hl(this.localsInner(e))}localsInner(e){if(this==st)return zr;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=hl;const st=Ge.empty;class Dn{constructor(e){this.members=e}map(e,t){const r=this.members.map(o=>o.map(e,t,ur));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 i=this.members[o].forChild(e,t);i!=st&&(i instanceof Dn?r=r.concat(i.members):r.push(i))}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 i=this.members[o].localsInner(e);if(i.length)if(!t)t=i;else{r&&(t=t.slice(),r=!1);for(let s=0;s<i.length;s++)t.push(i[s])}}return t?hl(r?t:t.sort(dr)):zr}static from(e){switch(e.length){case 0:return st;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 d5(n,e,t,r,o,i,s){let l=n.slice();for(let c=0,u=i;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+u-f)continue;let k=l[C]+u-f;p>=k?l[C+1]=h<=k?-2:-1:m>=o&&y&&(l[C]+=y,l[C+1]+=y)}f+=y}),u=t.maps[c].map(u,-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 u=t.map(n[c]+i),f=u-o;if(f<0||f>=r.content.size){a=!0;continue}let h=t.map(n[c+1]+i,-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,u+1,n[c]+i+1,s);C!=st?(l[c]=f,l[c+1]=p,l[c+2]=C):(l[c+1]=-2,a=!0)}else a=!0}if(a){let c=f5(l,n,e,t,o,i,s),u=$i(c,r,0,s);e=u.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<u.children.length;f+=3){let p=u.children[f];for(;h<l.length&&l[h]<p;)h+=3;l.splice(h,0,u.children[f],u.children[f+1],u.children[f+2])}}return new Ge(e.sort(dr),l)}function Cf(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 f5(n,e,t,r,o,i,s){function l(a,c){for(let u=0;u<a.local.length;u++){let f=a.local[u].map(r,o,c);f?t.push(f):s.onRemove&&s.onRemove(a.local[u].spec)}for(let u=0;u<a.children.length;u+=3)l(a.children[u+2],a.children[u]+c+1)}for(let a=0;a<n.length;a+=3)n[a+1]==-1&&l(n[a+2],e[a]+i+1);return t}function Sf(n,e,t){if(e.isLeaf)return null;let r=t+e.nodeSize,o=null;for(let i=0,s;i<n.length;i++)(s=n[i])&&s.from>t&&s.to<r&&((o||(o=[])).push(s),n[i]=null);return o}function wf(n){let e=[];for(let t=0;t<n.length;t++)n[t]!=null&&e.push(n[t]);return e}function $i(n,e,t,r){let o=[],i=!1;e.forEach((l,a)=>{let c=Sf(n,l,a+t);if(c){i=!0;let u=$i(c,l,t+a+1,r);u!=st&&o.push(a,a+l.nodeSize,u)}});let s=Cf(i?wf(n):n,-t).sort(dr);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||(r.onRemove&&r.onRemove(s[l].spec),s.splice(l--,1));return s.length||o.length?new Ge(s,o):st}function dr(n,e){return n.from-e.from||n.to-e.to}function hl(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 i=e[o];if(i.from==r.from){i.to!=r.to&&(e==n&&(e=n.slice()),e[o]=i.copy(i.from,r.to),kf(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==n&&(e=n.slice()),e[t]=r.copy(r.from,i.from),kf(e,o,r.copy(i.from,r.to)));break}}}return e}function kf(n,e,t){for(;e<n.length&&dr(t,n[e])>0;)e++;n.splice(e,0,t)}function pl(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=st&&e.push(r)}),n.cursorWrapper&&e.push(Ge.create(n.state.doc,[n.cursorWrapper.deco])),Dn.from(e)}const h5={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},p5=bt&&xn<=11;class m5{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 g5{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new m5,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&&xn<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),p5&&(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,h5)),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(Zd(this.view)){if(this.suppressingSelectionUpdates)return hn(this.view);if(bt&&xn<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&ir(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 i=e.focusNode;i;i=To(i))t.add(i);for(let i=e.anchorNode;i;i=To(i))if(t.has(i)){r=i;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)&&Zd(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,l=!1,a=[];if(e.editable)for(let u=0;u<t.length;u++){let f=this.registerMutation(t[u],a);f&&(i=i<0?f.from:Math.min(f.from,i),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(l=!0))}if(Wt&&a.length>1){let u=a.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],h=u[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let c=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&_i(r)&&(c=nl(e))&&c.eq(Re.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,hn(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),y5(e)),this.handleDOMChange(i,s,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 u=0;u<e.addedNodes.length;u++)t.push(e.addedNodes[u]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(bt&&xn<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:f,nextSibling:h}=e.addedNodes[u];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?ct(o)+1:0,l=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?ct(i):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 Tf=new WeakMap,Af=!1;function y5(n){if(!Tf.has(n)&&(Tf.set(n,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace)!==-1)){if(n.requiresGeckoHackNode=Wt,Af)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."),Af=!0}}function v5(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,i=e.endContainer,s=e.endOffset,l=n.domAtPos(n.state.selection.anchor);return ir(l.node,l.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function b5(n,e,t){let{node:r,fromOffset:o,toOffset:i,from:s,to:l}=n.docView.parseRange(e,t),a=n.domSelectionRange(),c,u=a.anchorNode;if(u&&n.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:a.anchorOffset}],_i(a)||c.push({node:a.focusNode,offset:a.focusOffset})),it&&n.input.lastKeyCode===8)for(let y=i;y>o;y--){let C=r.childNodes[y-1],S=C.pmViewDesc;if(C.nodeName=="BR"&&!S){i=y;break}if(!S||S.size)break}let f=n.state.doc,h=n.someProp("domParser")||Mr.fromSchema(n.state.schema),p=f.resolve(s),m=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:E5,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+s,head:C+s}}return{doc:g,sel:m,from:s,to:l}}function E5(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 C5=/^(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 S5(n,e,t,r,o){let i=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let j=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,P=nl(n,j);if(P&&!n.state.selection.eq(P)){if(it&&Kt&&n.input.lastKeyCode===13&&Date.now()-100<n.input.lastKeyCodeTime&&n.someProp("handleKeyDown",V=>V(n,sr(13,"Enter"))))return;let L=n.state.tr.setSelection(P);j=="pointer"?L.setMeta("pointer",!0):j=="key"&&L.scrollIntoView(),i&&L.setMeta("composition",i),n.dispatch(L)}return}let s=n.state.doc.resolve(e),l=s.sharedDepth(t);e=s.before(l+1),t=n.state.doc.resolve(t).after(l+1);let a=n.state.selection,c=b5(n,e,t),u=n.state.doc,f=u.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=T5(f.content,c.doc.content,c.from,h,p);if(($r&&n.input.lastIOSEnter>Date.now()-225||Kt)&&o.some(j=>j.nodeType==1&&!C5.test(j.nodeName))&&(!m||m.endA>=m.endB)&&n.someProp("handleKeyDown",j=>j(n,sr(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 j=xf(n,n.state.doc,c.sel);if(j&&!j.eq(n.state.selection)){let P=n.state.tr.setSelection(j);i&&P.setMeta("composition",i),n.dispatch(P)}}return}if(it&&n.cursorWrapper&&c.sel&&c.sel.anchor==n.cursorWrapper.deco.from&&c.sel.head==c.sel.anchor){let j=m.endB-m.start;c.sel={anchor:c.sel.anchor+j,head:c.sel.anchor+j}}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&&xn<=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=u.resolve(m.start),S=g.sameParent(y)&&g.parent.inlineContent&&C.end()>=m.endA,k;if(($r&&n.input.lastIOSEnter>Date.now()-225&&(!S||o.some(j=>j.nodeName=="DIV"||j.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",j=>j(n,sr(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>m.start&&k5(u,m.start,m.endA,g,y)&&n.someProp("handleKeyDown",j=>j(n,sr(8,"Backspace")))){Kt&&it&&n.domObserver.suppressSelectionUpdates();return}it&&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(j){return j(n,sr(13,"Enter"))})},20));let b=m.start,M=m.endA,T,z,U;if(S){if(g.pos==y.pos)bt&&xn<=11&&g.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>hn(n),20)),T=n.state.tr.delete(b,M),z=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(U=w5(g.parent.content.cut(g.parentOffset,y.parentOffset),C.parent.content.cut(C.parentOffset,m.endA-C.start()))))T=n.state.tr,U.type=="add"?T.addMark(b,M,U.mark):T.removeMark(b,M,U.mark);else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let j=g.parent.textBetween(g.parentOffset,y.parentOffset);if(n.someProp("handleTextInput",P=>P(n,b,M,j)))return;T=n.state.tr.insertText(j,b,M)}}if(T||(T=n.state.tr.replace(b,M,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let j=xf(n,T.doc,c.sel);j&&!(it&&Kt&&n.composing&&j.empty&&(m.start!=m.endB||n.input.lastAndroidDelete<Date.now()-100)&&(j.head==b||j.head==T.mapping.map(M)-1)||bt&&j.empty&&j.head==b)&&T.setSelection(j)}z&&T.ensureMarks(z),i&&T.setMeta("composition",i),n.dispatch(T.scrollIntoView())}function xf(n,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:ol(n,e.resolve(t.anchor),e.resolve(t.head))}function w5(n,e){let t=n.firstChild.marks,r=e.firstChild.marks,o=t,i=r,s,l,a;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<t.length;u++)i=t[u].removeFromSet(i);if(o.length==1&&i.length==0)l=o[0],s="add",a=u=>u.mark(l.addToSet(u.marks));else if(o.length==0&&i.length==1)l=i[0],s="remove",a=u=>u.mark(l.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(a(e.child(u)));if(ae.from(c).eq(n))return{mark:l,type:s}}function k5(n,e,t,r,o){if(!r.parent.isTextblock||t-e<=o.pos-r.pos||ml(r,!0,!1)<o.pos)return!1;let i=n.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=n.resolve(ml(i,!0,!0));return!s.parent.isTextblock||s.pos>t||ml(s,!0,!1)<t?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function ml(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 i=n.node(r).maybeChild(n.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function T5(n,e,t,r,o){let i=n.findDiffStart(e,t);if(i==null)return null;let{a:s,b:l}=n.findDiffEnd(e,t+n.size,t+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,l));r-=s+a-i}if(s<i&&n.size<e.size){let a=r<=i&&r>=s?i-r:0;i-=a,i&&i<e.size&&Of(e.textBetween(i-1,i+1))&&(i+=a?1:-1),l=i+(l-s),s=i}else if(l<i){let a=r<=i&&r>=l?i-r:0;i-=a,i&&i<n.size&&Of(n.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}function Of(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 A5{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 Yv,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Df),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=_f(this),Nf(this),this.nodeViews=If(this),this.docView=Pd(this.state.doc,Mf(this),pl(this),this.dom,this),this.domObserver=new g5(this,(r,o,i,s)=>S5(this,r,o,i,s)),this.domObserver.start(),Gv(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&&ll(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Df),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,i=!1,s=!1;e.storedMarks&&this.composing&&(yf(this),s=!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=If(this);O5(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&ll(this),this.editable=_f(this),Nf(this);let a=pl(this),c=Mf(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,c,a);(f||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&lv(this);if(s){this.domObserver.stop();let p=f&&(bt||it)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&x5(o.selection,e.selection);if(f){let m=it?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,c,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Pd(e.doc,c,a,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Dv(this))?hn(this,p):(Gd(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),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&cv(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof xe){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&Td(this,t.getBoundingClientRect(),e)}else Td(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 i=r.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new bf(e.slice,e.move,o<0?void 0:xe.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 s=0;s<this.directPlugins.length;s++){let l=this.directPlugins[s].props[e];if(l!=null&&(o=t?t(l):l))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let l=i[s].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&&uv(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 mv(this,e)}coordsAtPos(e,t=1){return _d(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 Ev(this,t||this.state,e)}pasteHTML(e,t){return Io(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Io(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(Jv(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],pl(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 Xv(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&&tv(this.dom.ownerDocument)==this.dom?v5(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function Mf(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 Nf(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 _f(n){return!n.someProp("editable",e=>e(n.state)===!1)}function x5(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 If(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 O5(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 Df(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:"'"},Pi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},M5=typeof navigator<"u"&&/Mac/.test(navigator.platform),N5=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),Pi[nt]=String.fromCharCode(nt);for(var gl in Ln)Pi.hasOwnProperty(gl)||(Pi[gl]=Ln[gl]);function _5(n){var e=M5&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||N5&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Pi: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 I5=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function D5(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,o,i,s;for(let l=0;l<e.length-1;l++){let a=e[l];if(/^(cmd|meta|m)$/i.test(a))s=!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))i=!0;else if(/^mod$/i.test(a))I5?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(t="Alt-"+t),o&&(t="Ctrl-"+t),s&&(t="Meta-"+t),i&&(t="Shift-"+t),t}function L5(n){let e=Object.create(null);for(let t in n)e[D5(t)]=n[t];return e}function yl(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 R5(n){return new vt({props:{handleKeyDown:B5(n)}})}function B5(n){let e=L5(n);return function(t,r){let o=_5(r),i,s=e[yl(o,r)];if(s&&s(t.state,t.dispatch,t))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let l=e[yl(o,r,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=Ln[r.keyCode])&&i!=o){let l=e[yl(i,r)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const $5=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function P5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}const F5=(n,e,t)=>{let r=P5(n,t);if(!r)return!1;let o=Lf(r);if(!o){let s=r.blockRange(),l=s&&_r(s);return l==null?!1:(e&&e(n.tr.lift(s,l).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&$f(n,o,e))return!0;if(r.parent.content.size==0&&(Hr(i,"end")||xe.isSelectable(i))){let s=Va(n.doc,r.before(),r.after(),ye.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=n.tr.step(s);l.setSelection(Hr(i,"end")?Re.findFrom(l.doc.resolve(l.mapping.map(o.pos,-1)),-1):xe.create(l.doc,o.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1};function Hr(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 V5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):r.parentOffset>0)return!1;i=Lf(r)}let s=i&&i.nodeBefore;return!s||!xe.isSelectable(s)?!1:(e&&e(n.tr.setSelection(xe.create(n.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function Lf(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 z5(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset<t.parent.content.size)?null:t}const H5=(n,e,t)=>{let r=z5(n,t);if(!r)return!1;let o=Rf(r);if(!o)return!1;let i=o.nodeAfter;if($f(n,o,e))return!0;if(r.parent.content.size==0&&(Hr(i,"start")||xe.isSelectable(i))){let s=Va(n.doc,r.before(),r.after(),ye.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=n.tr.step(s);l.setSelection(Hr(i,"start")?Re.findFrom(l.doc.resolve(l.mapping.map(o.pos)),1):xe.create(l.doc,l.mapping.map(o.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(n.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},U5=(n,e,t)=>{let{$head:r,empty:o}=n.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):r.parentOffset<r.parent.content.size)return!1;i=Rf(r)}let s=i&&i.nodeAfter;return!s||!xe.isSelectable(s)?!1:(e&&e(n.tr.setSelection(xe.create(n.doc,i.pos)).scrollIntoView()),!0)};function Rf(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 j5=(n,e)=>{let t=n.selection,r=t instanceof xe,o;if(r){if(t.node.isTextblock||!Tn(n.doc,t.from))return!1;o=t.from}else if(o=Oi(n.doc,t.from,-1),o==null)return!1;if(e){let i=n.tr.join(o);r&&i.setSelection(xe.create(i.doc,o-n.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},W5=(n,e)=>{let t=n.selection,r;if(t instanceof xe){if(t.node.isTextblock||!Tn(n.doc,t.to))return!1;r=t.to}else if(r=Oi(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},K5=(n,e)=>{let{$from:t,$to:r}=n.selection,o=t.blockRange(r),i=o&&_r(o);return i==null?!1:(e&&e(n.tr.lift(o,i).scrollIntoView()),!0)},Y5=(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
|
+
`).scrollIntoView()),!0)};function Bf(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 G5=(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),i=t.indexAfter(-1),s=Bf(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let l=t.after(),a=n.tr.replaceWith(l,l,s.createAndFill());a.setSelection(Re.near(a.doc.resolve(l),1)),e(a.scrollIntoView())}return!0},J5=(n,e)=>{let t=n.selection,{$from:r,$to:o}=t;if(t instanceof Ut||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=Bf(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,l=n.tr.insert(s,i.createAndFill());l.setSelection(Be.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},Z5=(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 i=t.before();if(Ir(n.doc,i))return e&&e(n.tr.split(i).scrollIntoView()),!0}let r=t.blockRange(),o=r&&_r(r);return o==null?!1:(e&&e(n.tr.lift(r,o).scrollIntoView()),!0)},X5=(n,e)=>{let{$from:t,to:r}=n.selection,o,i=t.sharedDepth(r);return i==0?!1:(o=t.before(i),e&&e(n.tr.setSelection(xe.create(n.doc,o))),!0)};function Q5(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(t&&t(n.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+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 $f(n,e,t){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(Q5(n,e,t))return!0;let l=e.parent.canReplace(e.index(),e.index()+1);if(l&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(t){let f=e.pos+o.nodeSize,h=ae.empty;for(let g=i.length-1;g>=0;g--)h=ae.from(i[g].create(null,h));h=ae.from(r.copy(h));let p=n.tr.step(new Ze(e.pos-1,f,e.pos,f,new ye(h,1,0),i.length,!0)),m=f+2*i.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),u=c&&_r(c);if(u!=null&&u>=e.depth)return t&&t(n.tr.lift(c,u).scrollIntoView()),!0;if(l&&Hr(o,"start",!0)&&Hr(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 Ze(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 Pf(n){return function(e,t){let r=e.selection,o=n<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(t&&t(e.tr.setSelection(Be.create(e.doc,n<0?o.start(i):o.end(i)))),!0):!1}}const q5=Pf(-1),e3=Pf(1);function t3(n,e=null){return function(t,r){let{$from:o,$to:i}=t.selection,s=o.blockRange(i),l=s&&Fa(s,n,e);return l?(r&&r(t.tr.wrap(s,l).scrollIntoView()),!0):!1}}function Ff(n,e=null){return function(t,r){let o=!1;for(let i=0;i<t.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:l}}=t.selection.ranges[i];t.doc.nodesBetween(s,l,(a,c)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(n,e)))if(a.type==n)o=!0;else{let u=t.doc.resolve(c),f=u.index();o=u.parent.canReplaceWith(f,f+1,n)}})}if(!o)return!1;if(r){let i=t.tr;for(let s=0;s<t.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:a}}=t.selection.ranges[s];i.setBlockType(l,a,n,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function n3(n,e=null){return function(t,r){let{$from:o,$to:i}=t.selection,s=o.blockRange(i),l=!1,a=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(n)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let u=t.doc.resolve(s.start-2);a=new Ci(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new Ci(o,t.doc.resolve(i.end(s.depth)),s.depth)),l=!0}let c=Fa(a,n,e,s);return c?(r&&r(r3(t.tr,s,c,l,n).scrollIntoView()),!0):!1}}function r3(n,e,t,r,o){let i=ae.empty;for(let u=t.length-1;u>=0;u--)i=ae.from(t[u].type.create(t[u].attrs,i));n.step(new Ze(e.start-(r?2:0),e.end,e.start,e.end,new ye(i,0,0),t.length,!0));let s=0;for(let u=0;u<t.length;u++)t[u].type==o&&(s=u+1);let l=t.length-s,a=e.start+t.length-(r?2:0),c=e.parent;for(let u=e.startIndex,f=e.endIndex,h=!0;u<f;u++,h=!1)!h&&Ir(n.doc,a,l)&&(n.split(a,l),a+=2*l),a+=c.child(u).nodeSize;return n}function o3(n){return function(e,t){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==n);return i?t?r.node(i.depth-1).type==n?i3(e,t,n,i):s3(e,t,i):!0:!1}}function i3(n,e,t,r){let o=n.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new Ze(i-1,s,i,s,new ye(ae.from(t.create(null,r.parent.copy())),1,0),1,!0)),r=new Ci(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const l=_r(r);if(l==null)return!1;o.lift(r,l);let a=o.mapping.map(i,-1)-1;return Tn(o.doc,a)&&o.join(a),e(o.scrollIntoView()),!0}function s3(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 i=r.doc.resolve(t.start),s=i.nodeAfter;if(r.mapping.map(t.end)!=t.start+i.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,a=t.endIndex==o.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(l?0:1),u+1,s.content.append(a?ae.empty:ae.from(o))))return!1;let f=i.pos,h=f+s.nodeSize;return r.step(new Ze(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 a3(n){return function(e,t){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,c=>c.childCount>0&&c.firstChild.type==n);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let l=i.parent,a=l.child(s-1);if(a.type!=n)return!1;if(t){let c=a.lastChild&&a.lastChild.type==l.type,u=ae.from(c?n.create():null),f=new ye(ae.from(n.create(null,ae.from(l.type.create(null,u)))),c?3:1,0),h=i.start,p=i.end;t(e.tr.step(new Ze(h-(c?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}function Fi(n){const{state:e,transaction:t}=n;let{selection:r}=t,{doc:o}=t,{storedMarks:i}=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 i},get selection(){return r},get doc(){return o},get tr(){return r=t.selection,o=t.doc,i=t.storedMarks,t}}}class Vi{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:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,a])=>[l,(...u)=>{const f=a(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l=[],a=!!e,c=e||i.tr,u=()=>(!a&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.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:u};return f}createCan(e){const{rawCommands:t,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(t).map(([a,c])=>[a,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,t=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,l={tr:e,editor:o,view:s,state:Fi({state:i,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,(...u)=>c(...u)(l)]))}};return l}}class l3{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 zi(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 Vf(n){const e=[],{nodeExtensions:t,markExtensions:r}=zi(n),o=[...t,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},a=be(s,"addGlobalAttributes",l);if(!a)return;a().forEach(u=>{u.types.forEach(f=>{Object.entries(u.attributes).forEach(([h,p])=>{e.push({type:f,name:h,attribute:{...i,...p}})})})})}),o.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},a=be(s,"addAttributes",l);if(!a)return;const c=a();Object.entries(c).forEach(([u,f])=>{const h={...i,...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:s.name,name:u,attribute:h})})}),e}function Xe(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,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const l=i?i.split(" "):[],a=r[o]?r[o].split(" "):[],c=l.filter(u=>!a.includes(u));r[o]=[...a,...c].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function vl(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 zf(n){return typeof n=="function"}function Ie(n,e=void 0,...t){return zf(n)?e?n.bind(e)(...t):n(...t):n}function c3(n={}){return Object.keys(n).length===0&&n.constructor===Object}function u3(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function Hf(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((i,s)=>{const l=s.attribute.parseHTML?s.attribute.parseHTML(t):u3(t.getAttribute(s.name));return l==null?i:{...i,[s.name]:l}},{});return{...r,...o}}}}function Uf(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&c3(t)?!1:t!=null))}function d3(n,e){var t;const r=Vf(n),{nodeExtensions:o,markExtensions:i}=zi(n),s=(t=o.find(c=>be(c,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(o.map(c=>{const u=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=Uf({...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(u.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=>Hf(C,u)));const g=be(c,"renderHTML",f);g&&(p.toDOM=C=>g({node:C,HTMLAttributes:vl(C,u)}));const y=be(c,"renderText",f);return y&&(p.toText=y),[c.name,p]})),a=Object.fromEntries(i.map(c=>{const u=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=Uf({...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(u.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=>Hf(y,u)));const g=be(c,"renderHTML",f);return g&&(p.toDOM=y=>g({mark:y,HTMLAttributes:vl(y,u)})),[c.name,p]}));return new by({topNode:s,nodes:l,marks:a})}function bl(n,e){return e.nodes[n]||e.marks[n]||null}function jf(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}const f3=(n,e=500)=>{let t="";const r=n.parentOffset;return n.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,l)=>{var a,c;const u=((c=(a=o.type.spec).toText)===null||c===void 0?void 0:c.call(a,{node:o,pos:i,parent:s,index:l}))||o.textContent||"%leaf%";t+=u.slice(0,Math.max(0,r-i))}),t};function El(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class Wf{constructor(e){this.find=e.find,this.handler=e.handler}}const h3=(n,e)=>{if(El(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 Cl(n){var e;const{editor:t,from:r,to:o,text:i,rules:s,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 u=!1;const f=f3(c)+i;return s.forEach(h=>{if(u)return;const p=h3(f,h.find);if(!p)return;const m=a.state.tr,g=Fi({state:a.state,transaction:m}),y={from:r-(p[0].length-i.length),to:o},{commands:C,chain:S,can:k}=new Vi({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:i}),a.dispatch(m),u=!0)}),u}function p3(n){const{editor:e,rules:t}=n,r=new vt({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,l){return Cl({editor:e,from:i,to:s,text:l,rules:t,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&Cl({editor:e,from:i.pos,to:i.pos,text:"",rules:t,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?Cl({editor:e,from:s.pos,to:s.pos,text:`
|
|
20
|
+
`,rules:t,plugin:r}):!1}},isInputRules:!0});return r}function m3(n){return typeof n=="number"}class g3{constructor(e){this.find=e.find,this.handler=e.handler}}const y3=(n,e)=>{if(El(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 v3(n){const{editor:e,state:t,from:r,to:o,rule:i,pasteEvent:s,dropEvent:l}=n,{commands:a,chain:c,can:u}=new Vi({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,"");y3(C,i.find).forEach(k=>{if(k.index===void 0)return;const b=g+k.index+1,M=b+k[0].length,T={from:t.tr.mapping.map(b),to:t.tr.mapping.map(M)},z=i.handler({state:t,range:T,match:k,commands:a,chain:c,can:u,pasteEvent:s,dropEvent:l});f.push(z)})}),f.every(p=>p!==null)}function b3(n){const{editor:e,rules:t}=n;let r=null,o=!1,i=!1,s=new ClipboardEvent("paste"),l=new DragEvent("drop");return t.map(c=>new vt({view(u){const f=h=>{var p;r=!((p=u.dom.parentElement)===null||p===void 0)&&p.contains(h.target)?u.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(u,f)=>(i=r===u.dom.parentElement,l=f,!1),paste:(u,f)=>{var h;const p=(h=f.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return s=f,o=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(u,f,h)=>{const p=u[0],m=p.getMeta("uiEvent")==="paste"&&!o,g=p.getMeta("uiEvent")==="drop"&&!i;if(!m&&!g)return;const y=f.doc.content.findDiffStart(h.doc.content),C=f.doc.content.findDiffEnd(h.doc.content);if(!m3(y)||!C||y===C.b)return;const S=h.tr,k=Fi({state:h,transaction:S});if(!(!v3({editor:e,state:k,from:Math.max(y-1,0),to:C.b-1,rule:c,pasteEvent:s,dropEvent:l})||!S.steps.length))return l=new DragEvent("drop"),s=new ClipboardEvent("paste"),S}}))}function E3(n){const e=n.filter((t,r)=>n.indexOf(t)!==r);return[...new Set(e)]}class Ur{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Ur.resolve(e),this.schema=d3(this.extensions,t),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:bl(r.name,this.schema)};r.type==="mark"&&(!((o=Ie(be(r,"keepOnSplit",i)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=be(r,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const l=be(r,"onCreate",i);l&&this.editor.on("create",l);const a=be(r,"onUpdate",i);a&&this.editor.on("update",a);const c=be(r,"onSelectionUpdate",i);c&&this.editor.on("selectionUpdate",c);const u=be(r,"onTransaction",i);u&&this.editor.on("transaction",u);const f=be(r,"onFocus",i);f&&this.editor.on("focus",f);const h=be(r,"onBlur",i);h&&this.editor.on("blur",h);const p=be(r,"onDestroy",i);p&&this.editor.on("destroy",p)})}static resolve(e){const t=Ur.sort(Ur.flatten(e)),r=E3(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 i=be(r,"priority")||100,s=be(o,"priority")||100;return i>s?-1:i<s?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:bl(t.name,this.schema)},o=be(t,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,t=Ur.sort([...this.extensions].reverse()),r=[],o=[],i=t.map(s=>{const l={name:s.name,options:s.options,storage:s.storage,editor:e,type:bl(s.name,this.schema)},a=[],c=be(s,"addKeyboardShortcuts",l);let u={};if(s.type==="mark"&&s.config.exitable&&(u.ArrowRight=()=>tn.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([y,C])=>[y,()=>C({editor:e})]));u={...u,...g}}const f=R5(u);a.push(f);const h=be(s,"addInputRules",l);jf(s,e.options.enableInputRules)&&h&&r.push(...h());const p=be(s,"addPasteRules",l);jf(s,e.options.enablePasteRules)&&p&&o.push(...p());const m=be(s,"addProseMirrorPlugins",l);if(m){const g=m();a.push(...g)}return a}).flat();return[p3({editor:e,rules:r}),...b3({editor:e,rules:o}),...i]}get attributes(){return Vf(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=zi(this.extensions);return Object.fromEntries(t.filter(r=>!!be(r,"addNodeView")).map(r=>{const o=this.attributes.filter(a=>a.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:e,type:Xe(r.name,this.schema)},s=be(r,"addNodeView",i);if(!s)return[];const l=(a,c,u,f)=>{const h=vl(a,o);return s()({editor:e,node:a,getPos:u,decorations:f,HTMLAttributes:h,extension:r})};return[r.name,l]}))}}function C3(n){return Object.prototype.toString.call(n).slice(8,-1)}function Sl(n){return C3(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function Hi(n,e){const t={...n};return Sl(n)&&Sl(e)&&Object.keys(e).forEach(r=>{Sl(e[r])?r in n?t[r]=Hi(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=Hi(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 Kf(n,e,t){const{from:r,to:o}=e,{blockSeparator:i=`
|
|
21
|
+
|
|
22
|
+
`,textSerializers:s={}}=t||{};let l="",a=!0;return n.nodesBetween(r,o,(c,u,f,h)=>{var p;const m=s==null?void 0:s[c.type.name];m?(c.isBlock&&!a&&(l+=i,a=!0),f&&(l+=m({node:c,pos:u,parent:f,index:h,range:e}))):c.isText?(l+=(p=c==null?void 0:c.text)===null||p===void 0?void 0:p.slice(Math.max(r,u)-u,o-u),a=!1):c.isBlock&&!a&&(l+=i,a=!0)}),l}function Yf(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const S3=Dt.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new vt({key:new jt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),l=Math.max(...i.map(u=>u.$to.pos)),a=Yf(t);return Kf(r,{from:s,to:l},{textSerializers:a})}}})]}}),w3=()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),k3=(n=!1)=>({commands:e})=>e.setContent("",n),T3=()=>({state:n,tr:e,dispatch:t})=>{const{selection:r}=e,{ranges:o}=r;return t&&o.forEach(({$from:i,$to:s})=>{n.doc.nodesBetween(i.pos,s.pos,(l,a)=>{if(l.type.isText)return;const{doc:c,mapping:u}=e,f=c.resolve(u.map(a)),h=c.resolve(u.map(a+l.nodeSize)),p=f.blockRange(h);if(!p)return;const m=_r(p);if(l.type.isTextblock){const{defaultType:g}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(p.start,g)}(m||m===0)&&e.lift(p,m)})}),!0},A3=n=>e=>n(e),x3=()=>({state:n,dispatch:e})=>J5(n,e),O3=(n,e)=>({editor:t,tr:r})=>{const{state:o}=t,i=o.doc.slice(n.from,n.to);r.deleteRange(n.from,n.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new Be(r.doc.resolve(s-1))),!0},M3=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,r=t.$anchor.node();if(r.content.size>0)return!1;const o=n.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const l=o.before(i),a=o.after(i);n.delete(l,a).scrollIntoView()}return!0}return!1},N3=n=>({tr:e,state:t,dispatch:r})=>{const o=Xe(n,t.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const a=i.before(s),c=i.after(s);e.delete(a,c).scrollIntoView()}return!0}return!1},_3=n=>({tr:e,dispatch:t})=>{const{from:r,to:o}=n;return t&&e.delete(r,o),!0},I3=()=>({state:n,dispatch:e})=>$5(n,e),D3=()=>({commands:n})=>n.keyboardShortcut("Enter"),L3=()=>({state:n,dispatch:e})=>G5(n,e);function Ui(n,e,t={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>t.strict?e[o]===n[o]:El(e[o])?e[o].test(n[o]):e[o]===n[o]):!0}function wl(n,e,t={}){return n.find(r=>r.type===e&&Ui(r.attrs,t))}function R3(n,e,t={}){return!!wl(n,e,t)}function kl(n,e,t={}){if(!n||!e)return;let r=n.parent.childAfter(n.parentOffset);if(n.parentOffset===r.offset&&r.offset!==0&&(r=n.parent.childBefore(n.parentOffset)),!r.node)return;const o=wl([...r.node.marks],e,t);if(!o)return;let i=r.index,s=n.start()+r.offset,l=i+1,a=s+r.node.nodeSize;for(wl([...r.node.marks],e,t);i>0&&o.isInSet(n.parent.child(i-1).marks);)i-=1,s-=n.parent.child(i).nodeSize;for(;l<n.parent.childCount&&R3([...n.parent.child(l).marks],e,t);)a+=n.parent.child(l).nodeSize,l+=1;return{from:s,to:a}}function Rn(n,e){if(typeof n=="string"){if(!e.marks[n])throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);return e.marks[n]}return n}const B3=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const i=Rn(n,r.schema),{doc:s,selection:l}=t,{$from:a,from:c,to:u}=l;if(o){const f=kl(a,i,e);if(f&&f.from<=c&&f.to>=u){const h=Be.create(s,f.from,f.to);t.setSelection(h)}}return!0},$3=n=>e=>{const t=typeof n=="function"?n(e):n;for(let r=0;r<t.length;r+=1)if(t[r](e))return!0;return!1};function Tl(n){return n instanceof Be}function pn(n=0,e=0,t=0){return Math.min(Math.max(n,e),t)}function Gf(n,e=null){if(!e)return null;const t=Re.atStart(n),r=Re.atEnd(n);if(e==="start"||e===!0)return t;if(e==="end")return r;const o=t.from,i=r.to;return e==="all"?Be.create(n,pn(0,o,i),pn(n.content.size,o,i)):Be.create(n,pn(e,o,i),pn(e,o,i))}function Al(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const P3=(n=null,e={})=>({editor:t,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{Al()&&r.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(r.hasFocus()&&n===null||n===!1)return!0;if(i&&n===null&&!Tl(t.state.selection))return s(),!0;const l=Gf(o.doc,n)||t.state.selection,a=t.state.selection.eq(l);return i&&(a||o.setSelection(l),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},F3=(n,e)=>t=>n.every((r,o)=>e(r,{...t,index:o})),V3=(n,e)=>({tr:t,commands:r})=>r.insertContentAt({from:t.selection.from,to:t.selection.to},n,e);function Jf(n){const e=`<body>${n}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function ji(n,e,t){if(t={slice:!0,parseOptions:{},...t},typeof n=="object"&&n!==null)try{return Array.isArray(n)&&n.length>0?ae.fromArray(n.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(n)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",r),ji("",e,t)}if(typeof n=="string"){const r=Mr.fromSchema(e);return t.slice?r.parseSlice(Jf(n),t.parseOptions).content:r.parse(Jf(n),t.parseOptions)}return ji("",e,t)}function z3(n,e,t){const r=n.steps.length-1;if(r<e)return;const o=n.steps[r];if(!(o instanceof tt||o instanceof Ze))return;const i=n.mapping.maps[r];let s=0;i.forEach((l,a,c,u)=>{s===0&&(s=u)}),n.setSelection(Re.near(n.doc.resolve(s),t))}const H3=n=>n.toString().startsWith("<"),U3=(n,e,t)=>({tr:r,dispatch:o,editor:i})=>{if(o){t={parseOptions:{},updateSelection:!0,...t};const s=ji(e,i.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions}});if(s.toString()==="<>")return!0;let{from:l,to:a}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},c=!0,u=!0;if((H3(s)?s:[s]).forEach(h=>{h.check(),c=c?h.isText&&h.marks.length===0:!1,u=u?h.isBlock:!1}),l===a&&u){const{parent:h}=r.doc.resolve(l);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(l-=1,a+=1)}c?Array.isArray(e)?r.insertText(e.map(h=>h.text||"").join(""),l,a):typeof e=="object"&&e&&e.text?r.insertText(e.text,l,a):r.insertText(e,l,a):r.replaceWith(l,a,s),t.updateSelection&&z3(r,r.steps.length-1,-1)}return!0},j3=()=>({state:n,dispatch:e})=>j5(n,e),W3=()=>({state:n,dispatch:e})=>W5(n,e),K3=()=>({state:n,dispatch:e})=>F5(n,e),Y3=()=>({state:n,dispatch:e})=>H5(n,e),G3=()=>({tr:n,state:e,dispatch:t})=>{try{const r=Oi(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},J3=()=>({state:n,dispatch:e,tr:t})=>{try{const r=Oi(n.doc,n.selection.$from.pos,1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}};function Zf(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Z3(n){const e=n.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let r,o,i,s;for(let l=0;l<e.length-1;l+=1){const a=e[l];if(/^(cmd|meta|m)$/i.test(a))s=!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))i=!0;else if(/^mod$/i.test(a))Al()||Zf()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(t=`Alt-${t}`),o&&(t=`Ctrl-${t}`),s&&(t=`Meta-${t}`),i&&(t=`Shift-${t}`),t}const X3=n=>({editor:e,view:t,tr:r,dispatch:o})=>{const i=Z3(n).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,l))});return a==null||a.steps.forEach(c=>{const u=c.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function Lo(n,e,t={}){const{from:r,to:o,empty:i}=n.selection,s=e?Xe(e,n.schema):null,l=[];n.doc.nodesBetween(r,o,(f,h)=>{if(f.isText)return;const p=Math.max(r,h),m=Math.min(o,h+f.nodeSize);l.push({node:f,from:p,to:m})});const a=o-r,c=l.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>Ui(f.node.attrs,t,{strict:!1}));return i?!!c.length:c.reduce((f,h)=>f+h.to-h.from,0)>=a}const Q3=(n,e={})=>({state:t,dispatch:r})=>{const o=Xe(n,t.schema);return Lo(t,o,e)?K5(t,r):!1},q3=()=>({state:n,dispatch:e})=>Z5(n,e),eb=n=>({state:e,dispatch:t})=>{const r=Xe(n,e.schema);return o3(r)(e,t)},tb=()=>({state:n,dispatch:e})=>Y5(n,e);function Wi(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function Xf(n,e){const t=typeof e=="string"?[e]:e;return Object.keys(n).reduce((r,o)=>(t.includes(o)||(r[o]=n[o]),r),{})}const nb=(n,e)=>({tr:t,state:r,dispatch:o})=>{let i=null,s=null;const l=Wi(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(i=Xe(n,r.schema)),l==="mark"&&(s=Rn(n,r.schema)),o&&t.selection.ranges.forEach(a=>{r.doc.nodesBetween(a.$from.pos,a.$to.pos,(c,u)=>{i&&i===c.type&&t.setNodeMarkup(u,void 0,Xf(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(f=>{s===f.type&&t.addMark(u,u+c.nodeSize,s.create(Xf(f.attrs,e)))})})}),!0):!1},rb=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),ob=()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),ib=()=>({state:n,dispatch:e})=>V5(n,e),sb=()=>({state:n,dispatch:e})=>U5(n,e),ab=()=>({state:n,dispatch:e})=>X5(n,e),lb=()=>({state:n,dispatch:e})=>e3(n,e),cb=()=>({state:n,dispatch:e})=>q5(n,e);function Qf(n,e,t={}){return ji(n,e,{slice:!1,parseOptions:t})}const ub=(n,e=!1,t={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,l=Qf(n,o.schema,t);return i&&r.replaceWith(0,s.content.size,l).setMeta("preventUpdate",!e),!0};function Ki(n,e){const t=Rn(e,n.schema),{from:r,to:o,empty:i}=n.selection,s=[];i?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(r,o,a=>{s.push(...a.marks)});const l=s.find(a=>a.type.name===t.name);return l?{...l.attrs}:{}}function db(n,e){const t=new fd(n);return e.forEach(r=>{r.steps.forEach(o=>{t.step(o)})}),t}function fb(n){for(let e=0;e<n.edgeCount;e+=1){const{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function hb(n,e,t){const r=[];return n.nodesBetween(e.from,e.to,(o,i)=>{t(o)&&r.push({node:o,pos:i})}),r}function pb(n,e){for(let t=n.depth;t>0;t-=1){const r=n.node(t);if(e(r))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:r}}}function xl(n){return e=>pb(e.$from,n)}function mb(n,e){const t=Zt.fromSchema(e).serializeFragment(n),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(t),o.innerHTML}function gb(n,e){const t={from:0,to:n.content.size};return Kf(n,t,e)}function yb(n,e){const t=Xe(e,n.schema),{from:r,to:o}=n.selection,i=[];n.doc.nodesBetween(r,o,l=>{i.push(l)});const s=i.reverse().find(l=>l.type.name===t.name);return s?{...s.attrs}:{}}function qf(n,e){const t=Wi(typeof e=="string"?e:e.name,n.schema);return t==="node"?yb(n,e):t==="mark"?Ki(n,e):{}}function vb(n,e=JSON.stringify){const t={};return n.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(t,o)?!1:t[o]=!0})}function bb(n){const e=vb(n);return e.length===1?e:e.filter((t,r)=>!e.filter((i,s)=>s!==r).some(i=>t.oldRange.from>=i.oldRange.from&&t.oldRange.to<=i.oldRange.to&&t.newRange.from>=i.newRange.from&&t.newRange.to<=i.newRange.to))}function Eb(n){const{mapping:e,steps:t}=n,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((l,a)=>{s.push({from:l,to:a})});else{const{from:l,to:a}=t[i];if(l===void 0||a===void 0)return;s.push({from:l,to:a})}s.forEach(({from:l,to:a})=>{const c=e.slice(i).map(l,-1),u=e.slice(i).map(a),f=e.invert().map(c,-1),h=e.invert().map(u);r.push({oldRange:{from:f,to:h},newRange:{from:c,to:u}})})}),bb(r)}function Ol(n,e,t){const r=[];return n===e?t.resolve(n).marks().forEach(o=>{const i=t.resolve(n-1),s=kl(i,o.type);s&&r.push({mark:o,...s})}):t.nodesBetween(n,e,(o,i)=>{r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function Yi(n,e,t){return Object.fromEntries(Object.entries(t).filter(([r])=>{const o=n.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function Ml(n,e,t={}){const{empty:r,ranges:o}=n.selection,i=e?Rn(e,n.schema):null;if(r)return!!(n.storedMarks||n.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>Ui(f.attrs,t,{strict:!1}));let s=0;const l=[];if(o.forEach(({$from:f,$to:h})=>{const p=f.pos,m=h.pos;n.doc.nodesBetween(p,m,(g,y)=>{if(!g.isText&&!g.marks.length)return;const C=Math.max(p,y),S=Math.min(m,y+g.nodeSize),k=S-C;s+=k,l.push(...g.marks.map(b=>({mark:b,from:C,to:S})))})}),s===0)return!1;const a=l.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>Ui(f.mark.attrs,t,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),c=l.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(a>0?a+c:a)>=s}function Cb(n,e,t={}){if(!e)return Lo(n,null,t)||Ml(n,null,t);const r=Wi(e,n.schema);return r==="node"?Lo(n,e,t):r==="mark"?Ml(n,e,t):!1}function eh(n,e){const{nodeExtensions:t}=zi(e),r=t.find(s=>s.name===n);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=Ie(be(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function Sb(n){var e;const t=(e=n.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=n.toJSON();return JSON.stringify(t)===JSON.stringify(r)}function wb(n){return n instanceof xe}function th(n,e,t){const o=n.state.doc.content.size,i=pn(e,0,o),s=pn(t,0,o),l=n.coordsAtPos(i),a=n.coordsAtPos(s,-1),c=Math.min(l.top,a.top),u=Math.max(l.bottom,a.bottom),f=Math.min(l.left,a.left),h=Math.max(l.right,a.right),p=h-f,m=u-c,C={top:c,bottom:u,left:f,right:h,width:p,height:m,x:f,y:c};return{...C,toJSON:()=>C}}function kb(n,e,t){var r;const{selection:o}=e;let i=null;if(Tl(o)&&(i=o.$cursor),i){const l=(r=n.storedMarks)!==null&&r!==void 0?r:i.marks();return!!t.isInSet(l)||!l.some(a=>a.type.excludes(t))}const{ranges:s}=o;return s.some(({$from:l,$to:a})=>{let c=l.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(t):!1;return n.doc.nodesBetween(l.pos,a.pos,(u,f,h)=>{if(c)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(t),m=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));c=p&&m}return!c}),c})}const Tb=(n,e={})=>({tr:t,state:r,dispatch:o})=>{const{selection:i}=t,{empty:s,ranges:l}=i,a=Rn(n,r.schema);if(o)if(s){const c=Ki(r,a);t.addStoredMark(a.create({...c,...e}))}else l.forEach(c=>{const u=c.$from.pos,f=c.$to.pos;r.doc.nodesBetween(u,f,(h,p)=>{const m=Math.max(p,u),g=Math.min(p+h.nodeSize,f);h.marks.find(C=>C.type===a)?h.marks.forEach(C=>{a===C.type&&t.addMark(m,g,a.create({...C.attrs,...e}))}):t.addMark(m,g,a.create(e))})});return kb(r,t,a)},Ab=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),xb=(n,e={})=>({state:t,dispatch:r,chain:o})=>{const i=Xe(n,t.schema);return i.isTextblock?o().command(({commands:s})=>Ff(i,e)(t)?!0:s.clearNodes()).command(({state:s})=>Ff(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Ob=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,o=pn(n,0,r.content.size),i=xe.create(r,o);e.setSelection(i)}return!0},Mb=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,{from:o,to:i}=typeof n=="number"?{from:n,to:n}:n,s=Be.atStart(r).from,l=Be.atEnd(r).to,a=pn(o,s,l),c=pn(i,s,l),u=Be.create(r,a,c);e.setSelection(u)}return!0},Nb=n=>({state:e,dispatch:t})=>{const r=Xe(n,e.schema);return a3(r)(e,t)};function nh(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const r=t.filter(o=>e==null?void 0:e.includes(o.type.name));n.tr.ensureMarks(r)}}const _b=({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:l,$to:a}=i,c=o.extensionManager.attributes,u=Yi(c,l.node().type.name,l.node().attrs);if(i instanceof xe&&i.node.isBlock)return!l.parentOffset||!Ir(s,l.pos)?!1:(r&&(n&&nh(t,o.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;if(r){const f=a.parentOffset===a.parent.content.size;i instanceof Be&&e.deleteSelection();const h=l.depth===0?void 0:fb(l.node(-1).contentMatchAt(l.indexAfter(-1)));let p=f&&h?[{type:h,attrs:u}]:void 0,m=Ir(e.doc,e.mapping.map(l.pos),1,p);if(!p&&!m&&Ir(e.doc,e.mapping.map(l.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:u}]:void 0),m&&(e.split(e.mapping.map(l.pos),1,p),h&&!f&&!l.parentOffset&&l.parent.type!==h)){const g=e.mapping.map(l.before()),y=e.doc.resolve(g);l.node(-1).canReplaceWith(y.index(),y.index()+1,h)&&e.setNodeMarkup(e.mapping.map(l.before()),h)}n&&nh(t,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},Ib=n=>({tr:e,state:t,dispatch:r,editor:o})=>{var i;const s=Xe(n,t.schema),{$from:l,$to:a}=t.selection,c=t.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(a))return!1;const u=l.node(-1);if(u.type!==s)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let y=ae.empty;const C=l.index(-1)?1:l.index(-2)?2:3;for(let z=l.depth-C;z>=l.depth-3;z-=1)y=ae.from(l.node(z).copy(y));const S=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,k=Yi(f,l.node().type.name,l.node().attrs),b=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(k))||void 0;y=y.append(ae.from(s.createAndFill(null,b)||void 0));const M=l.before(l.depth-(C-1));e.replace(M,l.after(-S),new ye(y,4-C,0));let T=-1;e.doc.nodesBetween(M,e.doc.content.size,(z,U)=>{if(T>-1)return!1;z.isTextblock&&z.content.size===0&&(T=U+1)}),T>-1&&e.setSelection(Be.near(e.doc.resolve(T))),e.scrollIntoView()}return!0}const h=a.pos===l.end()?u.contentMatchAt(0).defaultType:null,p=Yi(f,u.type.name,u.attrs),m=Yi(f,l.node().type.name,l.node().attrs);e.delete(l.pos,a.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:m}]:[{type:s,attrs:p}];if(!Ir(e.doc,l.pos,2))return!1;if(r){const{selection:y,storedMarks:C}=t,{splittableMarks:S}=o.extensionManager,k=C||y.$to.parentOffset&&y.$from.marks();if(e.split(l.pos,2,g).scrollIntoView(),!k||!r)return!0;const b=k.filter(M=>S.includes(M.type.name));e.ensureMarks(b)}return!0},Nl=(n,e)=>{const t=xl(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&Tn(n.doc,t.pos)&&n.join(t.pos),!0},_l=(n,e)=>{const t=xl(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(t.start).after(t.depth);if(r===void 0)return!0;const o=n.doc.nodeAt(r);return t.node.type===(o==null?void 0:o.type)&&Tn(n.doc,r)&&n.join(r),!0};var Db=Object.freeze({__proto__:null,blur:w3,clearContent:k3,clearNodes:T3,command:A3,createParagraphNear:x3,cut:O3,deleteCurrentNode:M3,deleteNode:N3,deleteRange:_3,deleteSelection:I3,enter:D3,exitCode:L3,extendMarkRange:B3,first:$3,focus:P3,forEach:F3,insertContent:V3,insertContentAt:U3,joinUp:j3,joinDown:W3,joinBackward:K3,joinForward:Y3,joinItemBackward:G3,joinItemForward:J3,keyboardShortcut:X3,lift:Q3,liftEmptyBlock:q3,liftListItem:eb,newlineInCode:tb,resetAttributes:nb,scrollIntoView:rb,selectAll:ob,selectNodeBackward:ib,selectNodeForward:sb,selectParentNode:ab,selectTextblockEnd:lb,selectTextblockStart:cb,setContent:ub,setMark:Tb,setMeta:Ab,setNode:xb,setNodeSelection:Ob,setTextSelection:Mb,sinkListItem:Nb,splitBlock:_b,splitListItem:Ib,toggleList:(n,e,t,r={})=>({editor:o,tr:i,state:s,dispatch:l,chain:a,commands:c,can:u})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=Xe(n,s.schema),m=Xe(e,s.schema),{selection:g,storedMarks:y}=s,{$from:C,$to:S}=g,k=C.blockRange(S),b=y||g.$to.parentOffset&&g.$from.marks();if(!k)return!1;const M=xl(T=>eh(T.type.name,f))(g);if(k.depth>=1&&M&&k.depth-M.depth<=1){if(M.node.type===p)return c.liftListItem(m);if(eh(M.node.type.name,f)&&p.validContent(M.node.content)&&l)return a().command(()=>(i.setNodeMarkup(M.pos,p),!0)).command(()=>Nl(i,p)).command(()=>_l(i,p)).run()}return!t||!b||!l?a().command(()=>u().wrapInList(p,r)?!0:c.clearNodes()).wrapInList(p,r).command(()=>Nl(i,p)).command(()=>_l(i,p)).run():a().command(()=>{const T=u().wrapInList(p,r),z=b.filter(U=>h.includes(U.type.name));return i.ensureMarks(z),T?!0:c.clearNodes()}).wrapInList(p,r).command(()=>Nl(i,p)).command(()=>_l(i,p)).run()},toggleMark:(n,e={},t={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=t,s=Rn(n,r.schema);return Ml(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},toggleNode:(n,e,t={})=>({state:r,commands:o})=>{const i=Xe(n,r.schema),s=Xe(e,r.schema);return Lo(r,i,t)?o.setNode(s):o.setNode(i,t)},toggleWrap:(n,e={})=>({state:t,commands:r})=>{const o=Xe(n,t.schema);return Lo(t,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let r=0;r<t.length;r+=1){const o=t[r];let i;if(o.spec.isInputRules&&(i=o.getState(n))){if(e){const s=n.tr,l=i.transform;for(let a=l.steps.length-1;a>=0;a-=1)s.step(l.steps[a].invert(l.docs[a]));if(i.text){const a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,n.schema.text(i.text,a))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:r,ranges:o}=t;return r||e&&o.forEach(i=>{n.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(n,e={})=>({tr:t,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:l}=t,a=Rn(n,r.schema),{$from:c,empty:u,ranges:f}=l;if(!o)return!0;if(u&&s){let{from:h,to:p}=l;const m=(i=c.marks().find(y=>y.type===a))===null||i===void 0?void 0:i.attrs,g=kl(c,a,m);g&&(h=g.from,p=g.to),t.removeMark(h,p,a)}else f.forEach(h=>{t.removeMark(h.$from.pos,h.$to.pos,a)});return t.removeStoredMark(a),!0},updateAttributes:(n,e={})=>({tr:t,state:r,dispatch:o})=>{let i=null,s=null;const l=Wi(typeof n=="string"?n:n.name,r.schema);return l?(l==="node"&&(i=Xe(n,r.schema)),l==="mark"&&(s=Rn(n,r.schema)),o&&t.selection.ranges.forEach(a=>{const c=a.$from.pos,u=a.$to.pos;r.doc.nodesBetween(c,u,(f,h)=>{i&&i===f.type&&t.setNodeMarkup(h,void 0,{...f.attrs,...e}),s&&f.marks.length&&f.marks.forEach(p=>{if(s===p.type){const m=Math.max(h,c),g=Math.min(h+f.nodeSize,u);t.addMark(m,g,s.create({...p.attrs,...e}))}})})}),!0):!1},wrapIn:(n,e={})=>({state:t,dispatch:r})=>{const o=Xe(n,t.schema);return t3(o,e)(t,r)},wrapInList:(n,e={})=>({state:t,dispatch:r})=>{const o=Xe(n,t.schema);return n3(o,e)(t,r)}});const Lb=Dt.create({name:"commands",addCommands(){return{...Db}}}),Rb=Dt.create({name:"editable",addProseMirrorPlugins(){return[new vt({key:new jt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Bb=Dt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new vt({key:new jt("focusEvents"),props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const r=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,t)=>{n.isFocused=!1;const r=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),$b=Dt.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{const{selection:a,doc:c}=l,{empty:u,$anchor:f}=a,{pos:h,parent:p}=f,m=f.parent.isTextblock?l.doc.resolve(h-1):f,g=m.parent.type.spec.isolating,y=f.pos-f.parentOffset,C=g&&m.parent.childCount===1?y===f.pos:Re.atStart(c).from===h;return!u||!C||!p.type.isTextblock||p.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Al()||Zf()?i:o},addProseMirrorPlugins(){return[new vt({key:new jt("clearDocument"),appendTransaction:(n,e,t)=>{if(!(n.some(m=>m.docChanged)&&!e.doc.eq(t.doc)))return;const{empty:o,from:i,to:s}=e.selection,l=Re.atStart(e.doc).from,a=Re.atEnd(e.doc).to;if(o||!(i===l&&s===a)||!(t.doc.textBetween(0,t.doc.content.size," "," ").length===0))return;const f=t.tr,h=Fi({state:t,transaction:f}),{commands:p}=new Vi({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),Pb=Dt.create({name:"tabindex",addProseMirrorPlugins(){return[new vt({key:new jt("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Fb=Object.freeze({__proto__:null,ClipboardTextSerializer:S3,Commands:Lb,Editable:Rb,FocusEvents:Bb,Keymap:$b,Tabindex:Pb});const Vb=`.ProseMirror {
|
|
23
23
|
position: relative;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -93,39 +93,39 @@ img.ProseMirror-separator {
|
|
|
93
93
|
|
|
94
94
|
.tippy-box[data-animation=fade][data-state=hidden] {
|
|
95
95
|
opacity: 0
|
|
96
|
-
}`;function
|
|
96
|
+
}`;function zb(n,e,t){const r=document.querySelector(`style[data-tiptap-style${t?`-${t}`:""}]`);if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${t?`-${t}`:""}`,""),o.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(o),o}let Hb=class extends l3{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=zb(Vb,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const r=zf(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const t=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(t))});this.view.updateState(r)}createExtensionManager(){const t=[...this.options.enableCoreExtensions?Object.values(Fb):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new Ur(t,this)}createCommandManager(){this.commandManager=new Vi({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=Qf(this.options.content,this.schema,this.options.parseOptions),t=Gf(e,this.options.autofocus);this.view=new A5(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Br.create({doc:e,selection:t||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(s)});return}const t=this.state.apply(e),r=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),i=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return qf(this.state,e)}isActive(e,t){const r=typeof e=="string"?e:null,o=typeof e=="string"?t:e;return Cb(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return mb(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=`
|
|
97
97
|
|
|
98
|
-
`,textSerializers:r={}}=e||{};return hb(this.state.doc,{blockSeparator:t,textSerializers:{...Kf(this.schema),...r}})}get isEmpty(){return bb(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}};function Gi(n){return new jf({find:n.find,handler:({state:e,range:t,match:r})=>{const o=Ie(n.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],l=r[0];if(s){const a=l.search(/\S/),c=t.from+l.indexOf(s),u=c+s.length;if(xl(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>c).length)return null;u<t.to&&i.delete(u,t.to),c>t.from&&i.delete(t.from+a,c);const h=t.from+a+s.length;i.addMark(t.from+a,h,n.type.create(o||{})),i.removeStoredMark(n.type)}}})}function Ji(n){return new jf({find:n.find,handler:({state:e,range:t,match:r,chain:o})=>{const i=Ie(n.getAttributes,void 0,r)||{},s=e.tr.delete(t.from,t.to),a=s.doc.resolve(t.from).blockRange(),c=a&&Pa(a,n.type,i);if(!c)return null;if(s.wrap(a,c),n.keepMarks&&n.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=n.editor.extensionManager,m=h||f.$to.parentOffset&&f.$from.marks();if(m){const g=m.filter(y=>p.includes(y.type.name));s.ensureMarks(g)}}if(n.keepAttributes){const f=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,i).run()}const u=s.doc.resolve(t.from-1).nodeBefore;u&&u.type===n.type&&Tn(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,u))&&s.join(t.from-1)}})}class en{constructor(e={}){this.type="mark",this.name="mark",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 en(e)}configure(e={}){const t=this.extend();return t.options=Hi(this.options,e),t.storage=Ie(be(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new en(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}static handleExit({editor:e,mark:t}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===t.name))return!1;const a=s.find(c=>(c==null?void 0:c.type.name)===t.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}let mn=class Jc{constructor(e={}){this.type="node",this.name="node",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 Jc(e)}configure(e={}){const t=this.extend();return t.options=Hi(this.options,e),t.storage=Ie(be(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Jc(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 Ro(n){return new h3({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:o})=>{const i=Ie(n.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,l=r[r.length-1],a=r[0];let c=t.to;if(l){const u=a.search(/\S/),f=t.from+a.indexOf(l),h=f+l.length;if(xl(t.from,t.to,e.doc).filter(m=>m.mark.type.excluded.find(y=>y===n.type&&y!==m.mark.type)).filter(m=>m.to>f).length)return null;h<t.to&&s.delete(h,t.to),f>t.from&&s.delete(t.from+u,f),c=t.from+u+l.length,s.addMark(t.from+u,c,n.type.create(i||{})),s.removeStoredMark(n.type)}}})}var ht="top",wt="bottom",kt="right",pt="left",Bo="auto",jr=[ht,wt,kt,pt],fr="start",Wr="end",nh="clippingParents",Nl="viewport",Kr="popper",rh="reference",Il=jr.reduce(function(n,e){return n.concat([e+"-"+fr,e+"-"+Wr])},[]),Dl=[].concat(jr,[Bo]).reduce(function(n,e){return n.concat([e,e+"-"+fr,e+"-"+Wr])},[]),oh="beforeRead",ih="read",sh="afterRead",ah="beforeMain",lh="main",ch="afterMain",uh="beforeWrite",dh="write",fh="afterWrite",Zi=[oh,ih,sh,ah,lh,ch,uh,dh,fh];function tn(n){return n?(n.nodeName||"").toLowerCase():null}function Tt(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function hr(n){var e=Tt(n).Element;return n instanceof e||n instanceof Element}function At(n){var e=Tt(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Ll(n){if(typeof ShadowRoot>"u")return!1;var e=Tt(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Vb(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];!At(i)||!tn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function zb(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=s.reduce(function(a,c){return a[c]="",a},{});!At(o)||!tn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const Xi={name:"applyStyles",enabled:!0,phase:"write",fn:Vb,effect:zb,requires:["computeStyles"]};function Kt(n){return n.split("-")[0]}var pr=Math.max,Qi=Math.min,Yr=Math.round;function Rl(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function hh(){return!/^((?!chrome|android).)*safari/i.test(Rl())}function Gr(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),o=1,i=1;e&&At(n)&&(o=n.offsetWidth>0&&Yr(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&Yr(r.height)/n.offsetHeight||1);var s=hr(n)?Tt(n):window,l=s.visualViewport,a=!hh()&&t,c=(r.left+(a&&l?l.offsetLeft:0))/o,u=(r.top+(a&&l?l.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function Bl(n){var e=Gr(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function ph(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Ll(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Yt(n){return Tt(n).getComputedStyle(n)}function Hb(n){return["table","td","th"].indexOf(tn(n))>=0}function Bn(n){return((hr(n)?n.ownerDocument:n.document)||window.document).documentElement}function qi(n){return tn(n)==="html"?n:n.assignedSlot||n.parentNode||(Ll(n)?n.host:null)||Bn(n)}function mh(n){return!At(n)||Yt(n).position==="fixed"?null:n.offsetParent}function Ub(n){var e=/firefox/i.test(Rl()),t=/Trident/i.test(Rl());if(t&&At(n)){var r=Yt(n);if(r.position==="fixed")return null}var o=qi(n);for(Ll(o)&&(o=o.host);At(o)&&["html","body"].indexOf(tn(o))<0;){var i=Yt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function $o(n){for(var e=Tt(n),t=mh(n);t&&Hb(t)&&Yt(t).position==="static";)t=mh(t);return t&&(tn(t)==="html"||tn(t)==="body"&&Yt(t).position==="static")?e:t||Ub(n)||e}function $l(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Po(n,e,t){return pr(n,Qi(e,t))}function jb(n,e,t){var r=Po(n,e,t);return r>t?t:r}function gh(){return{top:0,right:0,bottom:0,left:0}}function yh(n){return Object.assign({},gh(),n)}function vh(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var Wb=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,yh(typeof e!="number"?e:vh(e,jr))};function Kb(n){var e,t=n.state,r=n.name,o=n.options,i=t.elements.arrow,s=t.modifiersData.popperOffsets,l=Kt(t.placement),a=$l(l),c=[pt,kt].indexOf(l)>=0,u=c?"height":"width";if(!(!i||!s)){var f=Wb(o.padding,t),h=Bl(i),p=a==="y"?ht:pt,m=a==="y"?wt:kt,g=t.rects.reference[u]+t.rects.reference[a]-s[a]-t.rects.popper[u],y=s[a]-t.rects.reference[a],C=$o(i),S=C?a==="y"?C.clientHeight||0:C.clientWidth||0:0,k=g/2-y/2,b=f[p],M=S-h[u]-f[m],T=S/2-h[u]/2+k,z=Po(b,T,M),U=a;t.modifiersData[r]=(e={},e[U]=z,e.centerOffset=z-T,e)}}function Yb(n){var e=n.state,t=n.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(At(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!ph(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}const bh={name:"arrow",enabled:!0,phase:"main",fn:Kb,effect:Yb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jr(n){return n.split("-")[1]}var Gb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jb(n,e){var t=n.x,r=n.y,o=e.devicePixelRatio||1;return{x:Yr(t*o)/o||0,y:Yr(r*o)/o||0}}function Eh(n){var e,t=n.popper,r=n.popperRect,o=n.placement,i=n.variation,s=n.offsets,l=n.position,a=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,f=n.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,g=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var C=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),k=pt,b=ht,M=window;if(c){var T=$o(t),z="clientHeight",U="clientWidth";if(T===Tt(t)&&(T=Bn(t),Yt(T).position!=="static"&&l==="absolute"&&(z="scrollHeight",U="scrollWidth")),T=T,o===ht||(o===pt||o===kt)&&i===Wr){b=wt;var j=f&&T===M&&M.visualViewport?M.visualViewport.height:T[z];g-=j-r.height,g*=a?1:-1}if(o===pt||(o===ht||o===wt)&&i===Wr){k=kt;var P=f&&T===M&&M.visualViewport?M.visualViewport.width:T[U];p-=P-r.width,p*=a?1:-1}}var L=Object.assign({position:l},c&&Gb),V=u===!0?Jb({x:p,y:g},Tt(t)):{x:p,y:g};if(p=V.x,g=V.y,a){var W;return Object.assign({},L,(W={},W[b]=S?"0":"",W[k]=C?"0":"",W.transform=(M.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",W))}return Object.assign({},L,(e={},e[b]=S?g+"px":"",e[k]=C?p+"px":"",e.transform="",e))}function Zb(n){var e=n.state,t=n.options,r=t.gpuAcceleration,o=r===void 0?!0:r,i=t.adaptive,s=i===void 0?!0:i,l=t.roundOffsets,a=l===void 0?!0:l;if(process.env.NODE_ENV!=="production"){var c=Yt(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(f){return c.indexOf(f)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
98
|
+
`,textSerializers:r={}}=e||{};return gb(this.state.doc,{blockSeparator:t,textSerializers:{...Yf(this.schema),...r}})}get isEmpty(){return Sb(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}};function Gi(n){return new Wf({find:n.find,handler:({state:e,range:t,match:r})=>{const o=Ie(n.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],l=r[0];if(s){const a=l.search(/\S/),c=t.from+l.indexOf(s),u=c+s.length;if(Ol(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>c).length)return null;u<t.to&&i.delete(u,t.to),c>t.from&&i.delete(t.from+a,c);const h=t.from+a+s.length;i.addMark(t.from+a,h,n.type.create(o||{})),i.removeStoredMark(n.type)}}})}function Ji(n){return new Wf({find:n.find,handler:({state:e,range:t,match:r,chain:o})=>{const i=Ie(n.getAttributes,void 0,r)||{},s=e.tr.delete(t.from,t.to),a=s.doc.resolve(t.from).blockRange(),c=a&&Fa(a,n.type,i);if(!c)return null;if(s.wrap(a,c),n.keepMarks&&n.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=n.editor.extensionManager,m=h||f.$to.parentOffset&&f.$from.marks();if(m){const g=m.filter(y=>p.includes(y.type.name));s.ensureMarks(g)}}if(n.keepAttributes){const f=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,i).run()}const u=s.doc.resolve(t.from-1).nodeBefore;u&&u.type===n.type&&Tn(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,u))&&s.join(t.from-1)}})}class tn{constructor(e={}){this.type="mark",this.name="mark",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 tn(e)}configure(e={}){const t=this.extend();return t.options=Hi(this.options,e),t.storage=Ie(be(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new tn(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}static handleExit({editor:e,mark:t}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===t.name))return!1;const a=s.find(c=>(c==null?void 0:c.type.name)===t.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}let mn=class Xc{constructor(e={}){this.type="node",this.name="node",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 Xc(e)}configure(e={}){const t=this.extend();return t.options=Hi(this.options,e),t.storage=Ie(be(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new Xc(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 Ro(n){return new g3({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:o})=>{const i=Ie(n.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,l=r[r.length-1],a=r[0];let c=t.to;if(l){const u=a.search(/\S/),f=t.from+a.indexOf(l),h=f+l.length;if(Ol(t.from,t.to,e.doc).filter(m=>m.mark.type.excluded.find(y=>y===n.type&&y!==m.mark.type)).filter(m=>m.to>f).length)return null;h<t.to&&s.delete(h,t.to),f>t.from&&s.delete(t.from+u,f),c=t.from+u+l.length,s.addMark(t.from+u,c,n.type.create(i||{})),s.removeStoredMark(n.type)}}})}var pt="top",kt="bottom",Tt="right",mt="left",Bo="auto",jr=[pt,kt,Tt,mt],fr="start",Wr="end",rh="clippingParents",Il="viewport",Kr="popper",oh="reference",Dl=jr.reduce(function(n,e){return n.concat([e+"-"+fr,e+"-"+Wr])},[]),Ll=[].concat(jr,[Bo]).reduce(function(n,e){return n.concat([e,e+"-"+fr,e+"-"+Wr])},[]),ih="beforeRead",sh="read",ah="afterRead",lh="beforeMain",ch="main",uh="afterMain",dh="beforeWrite",fh="write",hh="afterWrite",Zi=[ih,sh,ah,lh,ch,uh,dh,fh,hh];function nn(n){return n?(n.nodeName||"").toLowerCase():null}function At(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function hr(n){var e=At(n).Element;return n instanceof e||n instanceof Element}function xt(n){var e=At(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Rl(n){if(typeof ShadowRoot>"u")return!1;var e=At(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Ub(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];!xt(i)||!nn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function jb(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=s.reduce(function(a,c){return a[c]="",a},{});!xt(o)||!nn(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const Xi={name:"applyStyles",enabled:!0,phase:"write",fn:Ub,effect:jb,requires:["computeStyles"]};function Yt(n){return n.split("-")[0]}var pr=Math.max,Qi=Math.min,Yr=Math.round;function Bl(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ph(){return!/^((?!chrome|android).)*safari/i.test(Bl())}function Gr(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),o=1,i=1;e&&xt(n)&&(o=n.offsetWidth>0&&Yr(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&Yr(r.height)/n.offsetHeight||1);var s=hr(n)?At(n):window,l=s.visualViewport,a=!ph()&&t,c=(r.left+(a&&l?l.offsetLeft:0))/o,u=(r.top+(a&&l?l.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function $l(n){var e=Gr(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function mh(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Rl(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gt(n){return At(n).getComputedStyle(n)}function Wb(n){return["table","td","th"].indexOf(nn(n))>=0}function Bn(n){return((hr(n)?n.ownerDocument:n.document)||window.document).documentElement}function qi(n){return nn(n)==="html"?n:n.assignedSlot||n.parentNode||(Rl(n)?n.host:null)||Bn(n)}function gh(n){return!xt(n)||Gt(n).position==="fixed"?null:n.offsetParent}function Kb(n){var e=/firefox/i.test(Bl()),t=/Trident/i.test(Bl());if(t&&xt(n)){var r=Gt(n);if(r.position==="fixed")return null}var o=qi(n);for(Rl(o)&&(o=o.host);xt(o)&&["html","body"].indexOf(nn(o))<0;){var i=Gt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function $o(n){for(var e=At(n),t=gh(n);t&&Wb(t)&&Gt(t).position==="static";)t=gh(t);return t&&(nn(t)==="html"||nn(t)==="body"&&Gt(t).position==="static")?e:t||Kb(n)||e}function Pl(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Po(n,e,t){return pr(n,Qi(e,t))}function Yb(n,e,t){var r=Po(n,e,t);return r>t?t:r}function yh(){return{top:0,right:0,bottom:0,left:0}}function vh(n){return Object.assign({},yh(),n)}function bh(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var Gb=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vh(typeof e!="number"?e:bh(e,jr))};function Jb(n){var e,t=n.state,r=n.name,o=n.options,i=t.elements.arrow,s=t.modifiersData.popperOffsets,l=Yt(t.placement),a=Pl(l),c=[mt,Tt].indexOf(l)>=0,u=c?"height":"width";if(!(!i||!s)){var f=Gb(o.padding,t),h=$l(i),p=a==="y"?pt:mt,m=a==="y"?kt:Tt,g=t.rects.reference[u]+t.rects.reference[a]-s[a]-t.rects.popper[u],y=s[a]-t.rects.reference[a],C=$o(i),S=C?a==="y"?C.clientHeight||0:C.clientWidth||0:0,k=g/2-y/2,b=f[p],M=S-h[u]-f[m],T=S/2-h[u]/2+k,z=Po(b,T,M),U=a;t.modifiersData[r]=(e={},e[U]=z,e.centerOffset=z-T,e)}}function Zb(n){var e=n.state,t=n.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(xt(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!mh(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}const Eh={name:"arrow",enabled:!0,phase:"main",fn:Jb,effect:Zb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jr(n){return n.split("-")[1]}var Xb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qb(n,e){var t=n.x,r=n.y,o=e.devicePixelRatio||1;return{x:Yr(t*o)/o||0,y:Yr(r*o)/o||0}}function Ch(n){var e,t=n.popper,r=n.popperRect,o=n.placement,i=n.variation,s=n.offsets,l=n.position,a=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,f=n.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,g=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var C=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),k=mt,b=pt,M=window;if(c){var T=$o(t),z="clientHeight",U="clientWidth";if(T===At(t)&&(T=Bn(t),Gt(T).position!=="static"&&l==="absolute"&&(z="scrollHeight",U="scrollWidth")),T=T,o===pt||(o===mt||o===Tt)&&i===Wr){b=kt;var j=f&&T===M&&M.visualViewport?M.visualViewport.height:T[z];g-=j-r.height,g*=a?1:-1}if(o===mt||(o===pt||o===kt)&&i===Wr){k=Tt;var P=f&&T===M&&M.visualViewport?M.visualViewport.width:T[U];p-=P-r.width,p*=a?1:-1}}var L=Object.assign({position:l},c&&Xb),V=u===!0?Qb({x:p,y:g},At(t)):{x:p,y:g};if(p=V.x,g=V.y,a){var W;return Object.assign({},L,(W={},W[b]=S?"0":"",W[k]=C?"0":"",W.transform=(M.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",W))}return Object.assign({},L,(e={},e[b]=S?g+"px":"",e[k]=C?p+"px":"",e.transform="",e))}function qb(n){var e=n.state,t=n.options,r=t.gpuAcceleration,o=r===void 0?!0:r,i=t.adaptive,s=i===void 0?!0:i,l=t.roundOffsets,a=l===void 0?!0:l;if(process.env.NODE_ENV!=="production"){var c=Gt(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(f){return c.indexOf(f)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
99
99
|
|
|
100
100
|
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
101
101
|
|
|
102
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:Kt(e.placement),variation:Jr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Eh(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Eh(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Pl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zb,data:{}};var es={passive:!0};function Xb(n){var e=n.state,t=n.instance,r=n.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=Tt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",t.update,es)}),l&&a.addEventListener("resize",t.update,es),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",t.update,es)}),l&&a.removeEventListener("resize",t.update,es)}}const Fl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xb,data:{}};var Qb={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(n){return n.replace(/left|right|bottom|top/g,function(e){return Qb[e]})}var qb={start:"end",end:"start"};function Ch(n){return n.replace(/start|end/g,function(e){return qb[e]})}function Vl(n){var e=Tt(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function zl(n){return Gr(Bn(n)).left+Vl(n).scrollLeft}function eE(n,e){var t=Tt(n),r=Bn(n),o=t.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var c=hh();(c||!c&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+zl(n),y:a}}function tE(n){var e,t=Bn(n),r=Vl(n),o=(e=n.ownerDocument)==null?void 0:e.body,i=pr(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=pr(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+zl(n),a=-r.scrollTop;return Yt(o||t).direction==="rtl"&&(l+=pr(t.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function Hl(n){var e=Yt(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function Sh(n){return["html","body","#document"].indexOf(tn(n))>=0?n.ownerDocument.body:At(n)&&Hl(n)?n:Sh(qi(n))}function Fo(n,e){var t;e===void 0&&(e=[]);var r=Sh(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),i=Tt(r),s=o?[i].concat(i.visualViewport||[],Hl(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(Fo(qi(s)))}function Ul(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function nE(n,e){var t=Gr(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function wh(n,e,t){return e===Nl?Ul(eE(n,t)):hr(e)?nE(e,t):Ul(tE(Bn(n)))}function rE(n){var e=Fo(qi(n)),t=["absolute","fixed"].indexOf(Yt(n).position)>=0,r=t&&At(n)?$o(n):n;return hr(r)?e.filter(function(o){return hr(o)&&ph(o,r)&&tn(o)!=="body"}):[]}function oE(n,e,t,r){var o=e==="clippingParents"?rE(n):[].concat(e),i=[].concat(o,[t]),s=i[0],l=i.reduce(function(a,c){var u=wh(n,c,r);return a.top=pr(u.top,a.top),a.right=Qi(u.right,a.right),a.bottom=Qi(u.bottom,a.bottom),a.left=pr(u.left,a.left),a},wh(n,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function kh(n){var e=n.reference,t=n.element,r=n.placement,o=r?Kt(r):null,i=r?Jr(r):null,s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,a;switch(o){case ht:a={x:s,y:e.y-t.height};break;case wt:a={x:s,y:e.y+e.height};break;case kt:a={x:e.x+e.width,y:l};break;case pt:a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}var c=o?$l(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case fr:a[c]=a[c]-(e[u]/2-t[u]/2);break;case Wr:a[c]=a[c]+(e[u]/2-t[u]/2);break}}return a}function Zr(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,i=t.strategy,s=i===void 0?n.strategy:i,l=t.boundary,a=l===void 0?nh:l,c=t.rootBoundary,u=c===void 0?Nl:c,f=t.elementContext,h=f===void 0?Kr:f,p=t.altBoundary,m=p===void 0?!1:p,g=t.padding,y=g===void 0?0:g,C=yh(typeof y!="number"?y:vh(y,jr)),S=h===Kr?rh:Kr,k=n.rects.popper,b=n.elements[m?S:h],M=oE(hr(b)?b:b.contextElement||Bn(n.elements.popper),a,u,s),T=Gr(n.elements.reference),z=kh({reference:T,element:k,strategy:"absolute",placement:o}),U=Ul(Object.assign({},k,z)),j=h===Kr?U:T,P={top:M.top-j.top+C.top,bottom:j.bottom-M.bottom+C.bottom,left:M.left-j.left+C.left,right:j.right-M.right+C.right},L=n.modifiersData.offset;if(h===Kr&&L){var V=L[o];Object.keys(P).forEach(function(W){var H=[kt,wt].indexOf(W)>=0?1:-1,F=[ht,wt].indexOf(W)>=0?"y":"x";P[W]+=V[F]*H})}return P}function iE(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,i=t.rootBoundary,s=t.padding,l=t.flipVariations,a=t.allowedAutoPlacements,c=a===void 0?Dl:a,u=Jr(r),f=u?l?Il:Il.filter(function(m){return Jr(m)===u}):jr,h=f.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=f,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=h.reduce(function(m,g){return m[g]=Zr(n,{placement:g,boundary:o,rootBoundary:i,padding:s})[Kt(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function sE(n){if(Kt(n)===Bo)return[];var e=ts(n);return[Ch(n),e,Ch(e)]}function aE(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!0:s,a=t.fallbackPlacements,c=t.padding,u=t.boundary,f=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,m=p===void 0?!0:p,g=t.allowedAutoPlacements,y=e.options.placement,C=Kt(y),S=C===y,k=a||(S||!m?[ts(y)]:sE(y)),b=[y].concat(k).reduce(function(Ce,we){return Ce.concat(Kt(we)===Bo?iE(e,{placement:we,boundary:u,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:g}):we)},[]),M=e.rects.reference,T=e.rects.popper,z=new Map,U=!0,j=b[0],P=0;P<b.length;P++){var L=b[P],V=Kt(L),W=Jr(L)===fr,H=[ht,wt].indexOf(V)>=0,F=H?"width":"height",$=Zr(e,{placement:L,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),G=H?W?kt:pt:W?wt:ht;M[F]>T[F]&&(G=ts(G));var D=ts(G),Q=[];if(i&&Q.push($[V]<=0),l&&Q.push($[G]<=0,$[D]<=0),Q.every(function(Ce){return Ce})){j=L,U=!1;break}z.set(L,Q)}if(U)for(var te=m?3:1,ce=function(we){var Te=b.find(function(ve){var A=z.get(ve);if(A)return A.slice(0,we).every(function(O){return O})});if(Te)return j=Te,"break"},me=te;me>0;me--){var ge=ce(me);if(ge==="break")break}e.placement!==j&&(e.modifiersData[r]._skip=!0,e.placement=j,e.reset=!0)}}const Th={name:"flip",enabled:!0,phase:"main",fn:aE,requiresIfExists:["offset"],data:{_skip:!1}};function Ah(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function xh(n){return[ht,kt,wt,pt].some(function(e){return n[e]>=0})}function lE(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Zr(e,{elementContext:"reference"}),l=Zr(e,{altBoundary:!0}),a=Ah(s,r),c=Ah(l,o,i),u=xh(a),f=xh(c);e.modifiersData[t]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Oh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lE};function cE(n,e,t){var r=Kt(n),o=[pt,ht].indexOf(r)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[pt,kt].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function uE(n){var e=n.state,t=n.options,r=n.name,o=t.offset,i=o===void 0?[0,0]:o,s=Dl.reduce(function(u,f){return u[f]=cE(f,e.rects,i),u},{}),l=s[e.placement],a=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const Mh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uE};function dE(n){var e=n.state,t=n.name;e.modifiersData[t]=kh({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const jl={name:"popperOffsets",enabled:!0,phase:"read",fn:dE,data:{}};function fE(n){return n==="x"?"y":"x"}function hE(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!1:s,a=t.boundary,c=t.rootBoundary,u=t.altBoundary,f=t.padding,h=t.tether,p=h===void 0?!0:h,m=t.tetherOffset,g=m===void 0?0:m,y=Zr(e,{boundary:a,rootBoundary:c,padding:f,altBoundary:u}),C=Kt(e.placement),S=Jr(e.placement),k=!S,b=$l(C),M=fE(b),T=e.modifiersData.popperOffsets,z=e.rects.reference,U=e.rects.popper,j=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,P=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(T){if(i){var W,H=b==="y"?ht:pt,F=b==="y"?wt:kt,$=b==="y"?"height":"width",G=T[b],D=G+y[H],Q=G-y[F],te=p?-U[$]/2:0,ce=S===fr?z[$]:U[$],me=S===fr?-U[$]:-z[$],ge=e.elements.arrow,Ce=p&&ge?Bl(ge):{width:0,height:0},we=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:gh(),Te=we[H],ve=we[F],A=Po(0,z[$],Ce[$]),O=k?z[$]/2-te-A-Te-P.mainAxis:ce-A-Te-P.mainAxis,w=k?-z[$]/2+te+A+ve+P.mainAxis:me+A+ve+P.mainAxis,x=e.elements.arrow&&$o(e.elements.arrow),v=x?b==="y"?x.clientTop||0:x.clientLeft||0:0,E=(W=L==null?void 0:L[b])!=null?W:0,N=G+O-E-v,I=G+w-E,R=Po(p?Qi(D,N):D,G,p?pr(Q,I):Q);T[b]=R,V[b]=R-G}if(l){var B,K=b==="x"?ht:pt,J=b==="x"?wt:kt,Y=T[M],Z=M==="y"?"height":"width",X=Y+y[K],ne=Y-y[J],fe=[ht,pt].indexOf(C)!==-1,Se=(B=L==null?void 0:L[M])!=null?B:0,Ne=fe?X:Y-z[Z]-U[Z]-Se+P.altAxis,Ve=fe?Y+z[Z]+U[Z]-Se-P.altAxis:ne,Fe=p&&fe?jb(Ne,Y,Ve):Po(p?Ne:X,Y,p?Ve:ne);T[M]=Fe,V[M]=Fe-Y}e.modifiersData[r]=V}}const _h={name:"preventOverflow",enabled:!0,phase:"main",fn:hE,requiresIfExists:["offset"]};function pE(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function mE(n){return n===Tt(n)||!At(n)?Vl(n):pE(n)}function gE(n){var e=n.getBoundingClientRect(),t=Yr(e.width)/n.offsetWidth||1,r=Yr(e.height)/n.offsetHeight||1;return t!==1||r!==1}function yE(n,e,t){t===void 0&&(t=!1);var r=At(e),o=At(e)&&gE(e),i=Bn(e),s=Gr(n,o,t),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!t)&&((tn(e)!=="body"||Hl(i))&&(l=mE(e)),At(e)?(a=Gr(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=zl(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function vE(n){var e=new Map,t=new Set,r=[];n.forEach(function(i){e.set(i.name,i)});function o(i){t.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!t.has(l)){var a=e.get(l);a&&o(a)}}),r.push(i)}return n.forEach(function(i){t.has(i.name)||o(i)}),r}function bE(n){var e=vE(n);return Zi.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function EE(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function $n(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return[].concat(t).reduce(function(o,i){return o.replace(/%s/,i)},n)}var mr='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',CE='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Nh=["name","enabled","phase","fn","effect","requires","options"];function SE(n){n.forEach(function(e){[].concat(Object.keys(e),Nh).filter(function(t,r,o){return o.indexOf(t)===r}).forEach(function(t){switch(t){case"name":typeof e.name!="string"&&console.error($n(mr,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error($n(mr,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Zi.indexOf(e.phase)<0&&console.error($n(mr,e.name,'"phase"',"either "+Zi.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error($n(mr,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error($n(mr,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error($n(mr,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error($n(mr,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Nh.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+t+'" was provided.')}e.requires&&e.requires.forEach(function(r){n.find(function(o){return o.name===r})==null&&console.error($n(CE,String(e.name),r,r))})})})}function wE(n,e){var t=new Set;return n.filter(function(r){var o=e(r);if(!t.has(o))return t.add(o),!0})}function kE(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var Ih="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",TE="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Dh={placement:"bottom",modifiers:[],strategy:"absolute"};function Lh(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ns(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,i=o===void 0?Dh:o;return function(l,a,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dh,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},f=[],h=!1,p={state:u,setOptions:function(C){var S=typeof C=="function"?C(u.options):C;g(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:hr(l)?Fo(l):l.contextElement?Fo(l.contextElement):[],popper:Fo(a)};var k=bE(kE([].concat(r,u.options.modifiers)));if(u.orderedModifiers=k.filter(function(L){return L.enabled}),process.env.NODE_ENV!=="production"){var b=wE([].concat(k,u.options.modifiers),function(L){var V=L.name;return V});if(SE(b),Kt(u.options.placement)===Bo){var M=u.orderedModifiers.find(function(L){var V=L.name;return V==="flip"});M||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var T=Yt(a),z=T.marginTop,U=T.marginRight,j=T.marginBottom,P=T.marginLeft;[z,U,j,P].some(function(L){return parseFloat(L)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),p.update()},forceUpdate:function(){if(!h){var C=u.elements,S=C.reference,k=C.popper;if(!Lh(S,k)){process.env.NODE_ENV!=="production"&&console.error(Ih);return}u.rects={reference:yE(S,$o(k),u.options.strategy==="fixed"),popper:Bl(k)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L){return u.modifiersData[L.name]=Object.assign({},L.data)});for(var b=0,M=0;M<u.orderedModifiers.length;M++){if(process.env.NODE_ENV!=="production"&&(b+=1,b>100)){console.error(TE);break}if(u.reset===!0){u.reset=!1,M=-1;continue}var T=u.orderedModifiers[M],z=T.fn,U=T.options,j=U===void 0?{}:U,P=T.name;typeof z=="function"&&(u=z({state:u,options:j,name:P,instance:p})||u)}}},update:EE(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){g(),h=!0}};if(!Lh(l,a))return process.env.NODE_ENV!=="production"&&console.error(Ih),p;p.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var C=y.name,S=y.options,k=S===void 0?{}:S,b=y.effect;if(typeof b=="function"){var M=b({state:u,name:C,instance:p,options:k}),T=function(){};f.push(M||T)}})}function g(){f.forEach(function(y){return y()}),f=[]}return p}}var AE=ns(),xE=[Fl,jl,Pl,Xi],OE=ns({defaultModifiers:xE}),ME=[Fl,jl,Pl,Xi,Mh,Th,_h,bh,Oh],rs=ns({defaultModifiers:ME});const Rh=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ch,afterRead:sh,afterWrite:fh,applyStyles:Xi,arrow:bh,auto:Bo,basePlacements:jr,beforeMain:ah,beforeRead:oh,beforeWrite:uh,bottom:wt,clippingParents:nh,computeStyles:Pl,createPopper:rs,createPopperBase:AE,createPopperLite:OE,detectOverflow:Zr,end:Wr,eventListeners:Fl,flip:Th,hide:Oh,left:pt,main:lh,modifierPhases:Zi,offset:Mh,placements:Dl,popper:Kr,popperGenerator:ns,popperOffsets:jl,preventOverflow:_h,read:ih,reference:rh,right:kt,start:fr,top:ht,variationPlacements:Il,viewport:Nl,write:dh},Symbol.toStringTag,{value:"Module"}));var _E="tippy-box",Bh="tippy-content",NE="tippy-backdrop",$h="tippy-arrow",Ph="tippy-svg-arrow",gr={passive:!0,capture:!0},Fh=function(){return document.body};function IE(n,e){return{}.hasOwnProperty.call(n,e)}function Wl(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function Kl(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function Vh(n,e){return typeof n=="function"?n.apply(void 0,e):n}function zh(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function DE(n,e){var t=Object.assign({},n);return e.forEach(function(r){delete t[r]}),t}function LE(n){return n.split(/\s+/).filter(Boolean)}function Xr(n){return[].concat(n)}function Hh(n,e){n.indexOf(e)===-1&&n.push(e)}function RE(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function BE(n){return n.split("-")[0]}function is(n){return[].slice.call(n)}function Uh(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Vo(){return document.createElement("div")}function zo(n){return["Element","Fragment"].some(function(e){return Kl(n,e)})}function $E(n){return Kl(n,"NodeList")}function PE(n){return Kl(n,"MouseEvent")}function FE(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function VE(n){return zo(n)?[n]:$E(n)?is(n):Array.isArray(n)?n:is(document.querySelectorAll(n))}function Yl(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function jh(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function zE(n){var e,t=Xr(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function HE(n,e){var t=e.clientX,r=e.clientY;return n.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,a=l.interactiveBorder,c=BE(s.placement),u=s.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,g=i.top-r+f>a,y=r-i.bottom-h>a,C=i.left-t+p>a,S=t-i.right-m>a;return g||y||C||S})}function Gl(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){n[r](o,t)})}function Wh(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var nn={isTouch:!1},Kh=0;function UE(){nn.isTouch||(nn.isTouch=!0,window.performance&&document.addEventListener("mousemove",Yh))}function Yh(){var n=performance.now();n-Kh<20&&(nn.isTouch=!1,document.removeEventListener("mousemove",Yh)),Kh=n}function jE(){var n=document.activeElement;if(FE(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function WE(){document.addEventListener("touchstart",UE,gr),window.addEventListener("blur",jE)}var KE=typeof window<"u"&&typeof document<"u",YE=KE?!!window.msCrypto:!1;function Qr(n){var e=n==="destroy"?"n already-":" ";return[n+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Gh(n){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return n.replace(e," ").replace(t,"").trim()}function GE(n){return Gh(`
|
|
102
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:Yt(e.placement),variation:Jr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ch(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ch(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Fl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qb,data:{}};var es={passive:!0};function eE(n){var e=n.state,t=n.instance,r=n.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,l=s===void 0?!0:s,a=At(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",t.update,es)}),l&&a.addEventListener("resize",t.update,es),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",t.update,es)}),l&&a.removeEventListener("resize",t.update,es)}}const Vl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:eE,data:{}};var tE={left:"right",right:"left",bottom:"top",top:"bottom"};function ts(n){return n.replace(/left|right|bottom|top/g,function(e){return tE[e]})}var nE={start:"end",end:"start"};function Sh(n){return n.replace(/start|end/g,function(e){return nE[e]})}function zl(n){var e=At(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function Hl(n){return Gr(Bn(n)).left+zl(n).scrollLeft}function rE(n,e){var t=At(n),r=Bn(n),o=t.visualViewport,i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;var c=ph();(c||!c&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l+Hl(n),y:a}}function oE(n){var e,t=Bn(n),r=zl(n),o=(e=n.ownerDocument)==null?void 0:e.body,i=pr(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=pr(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Hl(n),a=-r.scrollTop;return Gt(o||t).direction==="rtl"&&(l+=pr(t.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:a}}function Ul(n){var e=Gt(n),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function wh(n){return["html","body","#document"].indexOf(nn(n))>=0?n.ownerDocument.body:xt(n)&&Ul(n)?n:wh(qi(n))}function Fo(n,e){var t;e===void 0&&(e=[]);var r=wh(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),i=At(r),s=o?[i].concat(i.visualViewport||[],Ul(r)?r:[]):r,l=e.concat(s);return o?l:l.concat(Fo(qi(s)))}function jl(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function iE(n,e){var t=Gr(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function kh(n,e,t){return e===Il?jl(rE(n,t)):hr(e)?iE(e,t):jl(oE(Bn(n)))}function sE(n){var e=Fo(qi(n)),t=["absolute","fixed"].indexOf(Gt(n).position)>=0,r=t&&xt(n)?$o(n):n;return hr(r)?e.filter(function(o){return hr(o)&&mh(o,r)&&nn(o)!=="body"}):[]}function aE(n,e,t,r){var o=e==="clippingParents"?sE(n):[].concat(e),i=[].concat(o,[t]),s=i[0],l=i.reduce(function(a,c){var u=kh(n,c,r);return a.top=pr(u.top,a.top),a.right=Qi(u.right,a.right),a.bottom=Qi(u.bottom,a.bottom),a.left=pr(u.left,a.left),a},kh(n,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Th(n){var e=n.reference,t=n.element,r=n.placement,o=r?Yt(r):null,i=r?Jr(r):null,s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,a;switch(o){case pt:a={x:s,y:e.y-t.height};break;case kt:a={x:s,y:e.y+e.height};break;case Tt:a={x:e.x+e.width,y:l};break;case mt:a={x:e.x-t.width,y:l};break;default:a={x:e.x,y:e.y}}var c=o?Pl(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case fr:a[c]=a[c]-(e[u]/2-t[u]/2);break;case Wr:a[c]=a[c]+(e[u]/2-t[u]/2);break}}return a}function Zr(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?n.placement:r,i=t.strategy,s=i===void 0?n.strategy:i,l=t.boundary,a=l===void 0?rh:l,c=t.rootBoundary,u=c===void 0?Il:c,f=t.elementContext,h=f===void 0?Kr:f,p=t.altBoundary,m=p===void 0?!1:p,g=t.padding,y=g===void 0?0:g,C=vh(typeof y!="number"?y:bh(y,jr)),S=h===Kr?oh:Kr,k=n.rects.popper,b=n.elements[m?S:h],M=aE(hr(b)?b:b.contextElement||Bn(n.elements.popper),a,u,s),T=Gr(n.elements.reference),z=Th({reference:T,element:k,strategy:"absolute",placement:o}),U=jl(Object.assign({},k,z)),j=h===Kr?U:T,P={top:M.top-j.top+C.top,bottom:j.bottom-M.bottom+C.bottom,left:M.left-j.left+C.left,right:j.right-M.right+C.right},L=n.modifiersData.offset;if(h===Kr&&L){var V=L[o];Object.keys(P).forEach(function(W){var H=[Tt,kt].indexOf(W)>=0?1:-1,F=[pt,kt].indexOf(W)>=0?"y":"x";P[W]+=V[F]*H})}return P}function lE(n,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,i=t.rootBoundary,s=t.padding,l=t.flipVariations,a=t.allowedAutoPlacements,c=a===void 0?Ll:a,u=Jr(r),f=u?l?Dl:Dl.filter(function(m){return Jr(m)===u}):jr,h=f.filter(function(m){return c.indexOf(m)>=0});h.length===0&&(h=f,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=h.reduce(function(m,g){return m[g]=Zr(n,{placement:g,boundary:o,rootBoundary:i,padding:s})[Yt(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function cE(n){if(Yt(n)===Bo)return[];var e=ts(n);return[Sh(n),e,Sh(e)]}function uE(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!0:s,a=t.fallbackPlacements,c=t.padding,u=t.boundary,f=t.rootBoundary,h=t.altBoundary,p=t.flipVariations,m=p===void 0?!0:p,g=t.allowedAutoPlacements,y=e.options.placement,C=Yt(y),S=C===y,k=a||(S||!m?[ts(y)]:cE(y)),b=[y].concat(k).reduce(function(Ce,we){return Ce.concat(Yt(we)===Bo?lE(e,{placement:we,boundary:u,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:g}):we)},[]),M=e.rects.reference,T=e.rects.popper,z=new Map,U=!0,j=b[0],P=0;P<b.length;P++){var L=b[P],V=Yt(L),W=Jr(L)===fr,H=[pt,kt].indexOf(V)>=0,F=H?"width":"height",$=Zr(e,{placement:L,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),G=H?W?Tt:mt:W?kt:pt;M[F]>T[F]&&(G=ts(G));var D=ts(G),Q=[];if(i&&Q.push($[V]<=0),l&&Q.push($[G]<=0,$[D]<=0),Q.every(function(Ce){return Ce})){j=L,U=!1;break}z.set(L,Q)}if(U)for(var te=m?3:1,ce=function(we){var Te=b.find(function(ve){var A=z.get(ve);if(A)return A.slice(0,we).every(function(O){return O})});if(Te)return j=Te,"break"},me=te;me>0;me--){var ge=ce(me);if(ge==="break")break}e.placement!==j&&(e.modifiersData[r]._skip=!0,e.placement=j,e.reset=!0)}}const Ah={name:"flip",enabled:!0,phase:"main",fn:uE,requiresIfExists:["offset"],data:{_skip:!1}};function xh(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Oh(n){return[pt,Tt,kt,mt].some(function(e){return n[e]>=0})}function dE(n){var e=n.state,t=n.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=Zr(e,{elementContext:"reference"}),l=Zr(e,{altBoundary:!0}),a=xh(s,r),c=xh(l,o,i),u=Oh(a),f=Oh(c);e.modifiersData[t]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Mh={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dE};function fE(n,e,t){var r=Yt(n),o=[mt,pt].indexOf(r)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[mt,Tt].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function hE(n){var e=n.state,t=n.options,r=n.name,o=t.offset,i=o===void 0?[0,0]:o,s=Ll.reduce(function(u,f){return u[f]=fE(f,e.rects,i),u},{}),l=s[e.placement],a=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const Nh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hE};function pE(n){var e=n.state,t=n.name;e.modifiersData[t]=Th({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Wl={name:"popperOffsets",enabled:!0,phase:"read",fn:pE,data:{}};function mE(n){return n==="x"?"y":"x"}function gE(n){var e=n.state,t=n.options,r=n.name,o=t.mainAxis,i=o===void 0?!0:o,s=t.altAxis,l=s===void 0?!1:s,a=t.boundary,c=t.rootBoundary,u=t.altBoundary,f=t.padding,h=t.tether,p=h===void 0?!0:h,m=t.tetherOffset,g=m===void 0?0:m,y=Zr(e,{boundary:a,rootBoundary:c,padding:f,altBoundary:u}),C=Yt(e.placement),S=Jr(e.placement),k=!S,b=Pl(C),M=mE(b),T=e.modifiersData.popperOffsets,z=e.rects.reference,U=e.rects.popper,j=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,P=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(T){if(i){var W,H=b==="y"?pt:mt,F=b==="y"?kt:Tt,$=b==="y"?"height":"width",G=T[b],D=G+y[H],Q=G-y[F],te=p?-U[$]/2:0,ce=S===fr?z[$]:U[$],me=S===fr?-U[$]:-z[$],ge=e.elements.arrow,Ce=p&&ge?$l(ge):{width:0,height:0},we=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:yh(),Te=we[H],ve=we[F],A=Po(0,z[$],Ce[$]),O=k?z[$]/2-te-A-Te-P.mainAxis:ce-A-Te-P.mainAxis,w=k?-z[$]/2+te+A+ve+P.mainAxis:me+A+ve+P.mainAxis,x=e.elements.arrow&&$o(e.elements.arrow),v=x?b==="y"?x.clientTop||0:x.clientLeft||0:0,E=(W=L==null?void 0:L[b])!=null?W:0,_=G+O-E-v,I=G+w-E,R=Po(p?Qi(D,_):D,G,p?pr(Q,I):Q);T[b]=R,V[b]=R-G}if(l){var B,K=b==="x"?pt:mt,J=b==="x"?kt:Tt,Y=T[M],Z=M==="y"?"height":"width",X=Y+y[K],ne=Y-y[J],he=[pt,mt].indexOf(C)!==-1,Se=(B=L==null?void 0:L[M])!=null?B:0,_e=he?X:Y-z[Z]-U[Z]-Se+P.altAxis,Ve=he?Y+z[Z]+U[Z]-Se-P.altAxis:ne,Fe=p&&he?Yb(_e,Y,Ve):Po(p?_e:X,Y,p?Ve:ne);T[M]=Fe,V[M]=Fe-Y}e.modifiersData[r]=V}}const _h={name:"preventOverflow",enabled:!0,phase:"main",fn:gE,requiresIfExists:["offset"]};function yE(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function vE(n){return n===At(n)||!xt(n)?zl(n):yE(n)}function bE(n){var e=n.getBoundingClientRect(),t=Yr(e.width)/n.offsetWidth||1,r=Yr(e.height)/n.offsetHeight||1;return t!==1||r!==1}function EE(n,e,t){t===void 0&&(t=!1);var r=xt(e),o=xt(e)&&bE(e),i=Bn(e),s=Gr(n,o,t),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!t)&&((nn(e)!=="body"||Ul(i))&&(l=vE(e)),xt(e)?(a=Gr(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=Hl(i))),{x:s.left+l.scrollLeft-a.x,y:s.top+l.scrollTop-a.y,width:s.width,height:s.height}}function CE(n){var e=new Map,t=new Set,r=[];n.forEach(function(i){e.set(i.name,i)});function o(i){t.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!t.has(l)){var a=e.get(l);a&&o(a)}}),r.push(i)}return n.forEach(function(i){t.has(i.name)||o(i)}),r}function SE(n){var e=CE(n);return Zi.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function wE(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function $n(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];return[].concat(t).reduce(function(o,i){return o.replace(/%s/,i)},n)}var mr='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',kE='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Ih=["name","enabled","phase","fn","effect","requires","options"];function TE(n){n.forEach(function(e){[].concat(Object.keys(e),Ih).filter(function(t,r,o){return o.indexOf(t)===r}).forEach(function(t){switch(t){case"name":typeof e.name!="string"&&console.error($n(mr,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error($n(mr,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Zi.indexOf(e.phase)<0&&console.error($n(mr,e.name,'"phase"',"either "+Zi.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error($n(mr,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error($n(mr,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error($n(mr,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error($n(mr,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Ih.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+t+'" was provided.')}e.requires&&e.requires.forEach(function(r){n.find(function(o){return o.name===r})==null&&console.error($n(kE,String(e.name),r,r))})})})}function AE(n,e){var t=new Set;return n.filter(function(r){var o=e(r);if(!t.has(o))return t.add(o),!0})}function xE(n){var e=n.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var Dh="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",OE="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Lh={placement:"bottom",modifiers:[],strategy:"absolute"};function Rh(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ns(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,i=o===void 0?Lh:o;return function(l,a,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lh,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},f=[],h=!1,p={state:u,setOptions:function(C){var S=typeof C=="function"?C(u.options):C;g(),u.options=Object.assign({},i,u.options,S),u.scrollParents={reference:hr(l)?Fo(l):l.contextElement?Fo(l.contextElement):[],popper:Fo(a)};var k=SE(xE([].concat(r,u.options.modifiers)));if(u.orderedModifiers=k.filter(function(L){return L.enabled}),process.env.NODE_ENV!=="production"){var b=AE([].concat(k,u.options.modifiers),function(L){var V=L.name;return V});if(TE(b),Yt(u.options.placement)===Bo){var M=u.orderedModifiers.find(function(L){var V=L.name;return V==="flip"});M||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var T=Gt(a),z=T.marginTop,U=T.marginRight,j=T.marginBottom,P=T.marginLeft;[z,U,j,P].some(function(L){return parseFloat(L)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),p.update()},forceUpdate:function(){if(!h){var C=u.elements,S=C.reference,k=C.popper;if(!Rh(S,k)){process.env.NODE_ENV!=="production"&&console.error(Dh);return}u.rects={reference:EE(S,$o(k),u.options.strategy==="fixed"),popper:$l(k)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(L){return u.modifiersData[L.name]=Object.assign({},L.data)});for(var b=0,M=0;M<u.orderedModifiers.length;M++){if(process.env.NODE_ENV!=="production"&&(b+=1,b>100)){console.error(OE);break}if(u.reset===!0){u.reset=!1,M=-1;continue}var T=u.orderedModifiers[M],z=T.fn,U=T.options,j=U===void 0?{}:U,P=T.name;typeof z=="function"&&(u=z({state:u,options:j,name:P,instance:p})||u)}}},update:wE(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){g(),h=!0}};if(!Rh(l,a))return process.env.NODE_ENV!=="production"&&console.error(Dh),p;p.setOptions(c).then(function(y){!h&&c.onFirstUpdate&&c.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var C=y.name,S=y.options,k=S===void 0?{}:S,b=y.effect;if(typeof b=="function"){var M=b({state:u,name:C,instance:p,options:k}),T=function(){};f.push(M||T)}})}function g(){f.forEach(function(y){return y()}),f=[]}return p}}var ME=ns(),NE=[Vl,Wl,Fl,Xi],_E=ns({defaultModifiers:NE}),IE=[Vl,Wl,Fl,Xi,Nh,Ah,_h,Eh,Mh],rs=ns({defaultModifiers:IE});const Bh=Object.freeze(Object.defineProperty({__proto__:null,afterMain:uh,afterRead:ah,afterWrite:hh,applyStyles:Xi,arrow:Eh,auto:Bo,basePlacements:jr,beforeMain:lh,beforeRead:ih,beforeWrite:dh,bottom:kt,clippingParents:rh,computeStyles:Fl,createPopper:rs,createPopperBase:ME,createPopperLite:_E,detectOverflow:Zr,end:Wr,eventListeners:Vl,flip:Ah,hide:Mh,left:mt,main:ch,modifierPhases:Zi,offset:Nh,placements:Ll,popper:Kr,popperGenerator:ns,popperOffsets:Wl,preventOverflow:_h,read:sh,reference:oh,right:Tt,start:fr,top:pt,variationPlacements:Dl,viewport:Il,write:fh},Symbol.toStringTag,{value:"Module"}));var DE="tippy-box",$h="tippy-content",LE="tippy-backdrop",Ph="tippy-arrow",Fh="tippy-svg-arrow",gr={passive:!0,capture:!0},Vh=function(){return document.body};function RE(n,e){return{}.hasOwnProperty.call(n,e)}function Kl(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function Yl(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function zh(n,e){return typeof n=="function"?n.apply(void 0,e):n}function Hh(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function BE(n,e){var t=Object.assign({},n);return e.forEach(function(r){delete t[r]}),t}function $E(n){return n.split(/\s+/).filter(Boolean)}function Xr(n){return[].concat(n)}function Uh(n,e){n.indexOf(e)===-1&&n.push(e)}function PE(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function FE(n){return n.split("-")[0]}function is(n){return[].slice.call(n)}function jh(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Vo(){return document.createElement("div")}function zo(n){return["Element","Fragment"].some(function(e){return Yl(n,e)})}function VE(n){return Yl(n,"NodeList")}function zE(n){return Yl(n,"MouseEvent")}function HE(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function UE(n){return zo(n)?[n]:VE(n)?is(n):Array.isArray(n)?n:is(document.querySelectorAll(n))}function Gl(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function Wh(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function jE(n){var e,t=Xr(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function WE(n,e){var t=e.clientX,r=e.clientY;return n.every(function(o){var i=o.popperRect,s=o.popperState,l=o.props,a=l.interactiveBorder,c=FE(s.placement),u=s.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,h=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,m=c==="left"?u.right.x:0,g=i.top-r+f>a,y=r-i.bottom-h>a,C=i.left-t+p>a,S=t-i.right-m>a;return g||y||C||S})}function Jl(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){n[r](o,t)})}function Kh(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var rn={isTouch:!1},Yh=0;function KE(){rn.isTouch||(rn.isTouch=!0,window.performance&&document.addEventListener("mousemove",Gh))}function Gh(){var n=performance.now();n-Yh<20&&(rn.isTouch=!1,document.removeEventListener("mousemove",Gh)),Yh=n}function YE(){var n=document.activeElement;if(HE(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function GE(){document.addEventListener("touchstart",KE,gr),window.addEventListener("blur",YE)}var JE=typeof window<"u"&&typeof document<"u",ZE=JE?!!window.msCrypto:!1;function Qr(n){var e=n==="destroy"?"n already-":" ";return[n+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Jh(n){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return n.replace(e," ").replace(t,"").trim()}function XE(n){return Jh(`
|
|
103
103
|
%ctippy.js
|
|
104
104
|
|
|
105
|
-
%c`+
|
|
105
|
+
%c`+Jh(n)+`
|
|
106
106
|
|
|
107
107
|
%c👷 This is a development-only message. It will be removed in production.
|
|
108
|
-
`)}function
|
|
108
|
+
`)}function Zh(n){return[XE(n),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Ho;process.env.NODE_ENV!=="production"&&QE();function QE(){Ho=new Set}function gn(n,e){if(n&&!Ho.has(e)){var t;Ho.add(e),(t=console).warn.apply(t,Zh(e))}}function Zl(n,e){if(n&&!Ho.has(e)){var t;Ho.add(e),(t=console).error.apply(t,Zh(e))}}function qE(n){var e=!n,t=Object.prototype.toString.call(n)==="[object Object]"&&!n.addEventListener;Zl(e,["tippy() was passed","`"+String(n)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Zl(t,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Xh={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},e7={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ot=Object.assign({appendTo:Vh,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Xh,e7),t7=Object.keys(Ot),n7=function(e){process.env.NODE_ENV!=="production"&&ep(e,[]);var t=Object.keys(e);t.forEach(function(r){Ot[r]=e[r]})};function Qh(n){var e=n.plugins||[],t=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var l;r[i]=n[i]!==void 0?n[i]:(l=Ot[i])!=null?l:s}return r},{});return Object.assign({},n,t)}function r7(n,e){var t=e?Object.keys(Qh(Object.assign({},Ot,{plugins:e}))):t7,r=t.reduce(function(o,i){var s=(n.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function qh(n,e){var t=Object.assign({},e,{content:zh(e.content,[n])},e.ignoreAttributes?{}:r7(n,e.plugins));return t.aria=Object.assign({},Ot.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}function ep(n,e){n===void 0&&(n={}),e===void 0&&(e=[]);var t=Object.keys(n);t.forEach(function(r){var o=BE(Ot,Object.keys(Xh)),i=!RE(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),gn(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
109
109
|
|
|
110
110
|
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
111
|
-
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var
|
|
111
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var o7=function(){return"innerHTML"};function Xl(n,e){n[o7()]=e}function tp(n){var e=Vo();return n===!0?e.className=Ph:(e.className=Fh,zo(n)?e.appendChild(n):Xl(e,n)),e}function np(n,e){zo(e.content)?(Xl(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Xl(n,e.content):n.textContent=e.content)}function Ql(n){var e=n.firstElementChild,t=is(e.children);return{box:e,content:t.find(function(r){return r.classList.contains($h)}),arrow:t.find(function(r){return r.classList.contains(Ph)||r.classList.contains(Fh)}),backdrop:t.find(function(r){return r.classList.contains(LE)})}}function rp(n){var e=Vo(),t=Vo();t.className=DE,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=Vo();r.className=$h,r.setAttribute("data-state","hidden"),np(r,n.props),e.appendChild(t),t.appendChild(r),o(n.props,n.props);function o(i,s){var l=Ql(e),a=l.box,c=l.content,u=l.arrow;s.theme?a.setAttribute("data-theme",s.theme):a.removeAttribute("data-theme"),typeof s.animation=="string"?a.setAttribute("data-animation",s.animation):a.removeAttribute("data-animation"),s.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?a.setAttribute("role",s.role):a.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&np(c,n.props),s.arrow?u?i.arrow!==s.arrow&&(a.removeChild(u),a.appendChild(tp(s.arrow))):a.appendChild(tp(s.arrow)):u&&a.removeChild(u)}return{popper:e,onUpdate:o}}rp.$$tippy=!0;var i7=1,ss=[],ql=[];function s7(n,e){var t=qh(n,Object.assign({},Ot,Qh(jh(e)))),r,o,i,s=!1,l=!1,a=!1,c=!1,u,f,h,p=[],m=Hh(_,t.interactiveDebounce),g,y=i7++,C=null,S=PE(t.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},b={id:y,reference:n,popper:Vo(),popperInstance:C,props:t,state:k,plugins:S,clearDelayTimeouts:_e,setProps:Ve,setContent:Fe,show:De,hide:Je,hideWithInteractivity:St,enable:he,disable:Se,unmount:at,destroy:Gn};if(!t.render)return process.env.NODE_ENV!=="production"&&Zl(!0,"render() function has not been supplied."),b;var M=t.render(b),T=M.popper,z=M.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+b.id,b.popper=T,n._tippy=b,T._tippy=b;var U=S.map(function(q){return q.fn(b)}),j=n.hasAttribute("aria-expanded");return x(),te(),G(),D("onCreate",[b]),t.showOnCreate&&X(),T.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&H().addEventListener("mousemove",m)}),b;function P(){var q=b.props.touch;return Array.isArray(q)?q:[q,0]}function L(){return P()[0]==="hold"}function V(){var q;return!!((q=b.props.render)!=null&&q.$$tippy)}function W(){return g||n}function H(){var q=W().parentNode;return q?jE(q):document}function F(){return Ql(T)}function $(q){return b.state.isMounted&&!b.state.isVisible||rn.isTouch||u&&u.type==="focus"?0:Kl(b.props.delay,q?0:1,Ot.delay)}function G(q){q===void 0&&(q=!1),T.style.pointerEvents=b.props.interactive&&!q?"":"none",T.style.zIndex=""+b.props.zIndex}function D(q,ue,de){if(de===void 0&&(de=!0),U.forEach(function(Oe){Oe[q]&&Oe[q].apply(Oe,ue)}),de){var Ae;(Ae=b.props)[q].apply(Ae,ue)}}function Q(){var q=b.props.aria;if(q.content){var ue="aria-"+q.content,de=T.id,Ae=Xr(b.props.triggerTarget||n);Ae.forEach(function(Oe){var He=Oe.getAttribute(ue);if(b.state.isVisible)Oe.setAttribute(ue,He?He+" "+de:de);else{var je=He&&He.replace(de,"").trim();je?Oe.setAttribute(ue,je):Oe.removeAttribute(ue)}})}}function te(){if(!(j||!b.props.aria.expanded)){var q=Xr(b.props.triggerTarget||n);q.forEach(function(ue){b.props.interactive?ue.setAttribute("aria-expanded",b.state.isVisible&&ue===W()?"true":"false"):ue.removeAttribute("aria-expanded")})}}function ce(){H().removeEventListener("mousemove",m),ss=ss.filter(function(q){return q!==m})}function me(q){if(!(rn.isTouch&&(a||q.type==="mousedown"))){var ue=q.composedPath&&q.composedPath()[0]||q.target;if(!(b.props.interactive&&Kh(T,ue))){if(Xr(b.props.triggerTarget||n).some(function(de){return Kh(de,ue)})){if(rn.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[b,q]);b.props.hideOnClick===!0&&(b.clearDelayTimeouts(),b.hide(),l=!0,setTimeout(function(){l=!1}),b.state.isMounted||Te())}}}function ge(){a=!0}function Ce(){a=!1}function we(){var q=H();q.addEventListener("mousedown",me,!0),q.addEventListener("touchend",me,gr),q.addEventListener("touchstart",Ce,gr),q.addEventListener("touchmove",ge,gr)}function Te(){var q=H();q.removeEventListener("mousedown",me,!0),q.removeEventListener("touchend",me,gr),q.removeEventListener("touchstart",Ce,gr),q.removeEventListener("touchmove",ge,gr)}function ve(q,ue){O(q,function(){!b.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&ue()})}function A(q,ue){O(q,ue)}function O(q,ue){var de=F().box;function Ae(Oe){Oe.target===de&&(Jl(de,"remove",Ae),ue())}if(q===0)return ue();Jl(de,"remove",f),Jl(de,"add",Ae),f=Ae}function w(q,ue,de){de===void 0&&(de=!1);var Ae=Xr(b.props.triggerTarget||n);Ae.forEach(function(Oe){Oe.addEventListener(q,ue,de),p.push({node:Oe,eventType:q,handler:ue,options:de})})}function x(){L()&&(w("touchstart",E,{passive:!0}),w("touchend",I,{passive:!0})),$E(b.props.trigger).forEach(function(q){if(q!=="manual")switch(w(q,E),q){case"mouseenter":w("mouseleave",I);break;case"focus":w(ZE?"focusout":"blur",R);break;case"focusin":w("focusout",R);break}})}function v(){p.forEach(function(q){var ue=q.node,de=q.eventType,Ae=q.handler,Oe=q.options;ue.removeEventListener(de,Ae,Oe)}),p=[]}function E(q){var ue,de=!1;if(!(!b.state.isEnabled||B(q)||l)){var Ae=((ue=u)==null?void 0:ue.type)==="focus";u=q,g=q.currentTarget,te(),!b.state.isVisible&&zE(q)&&ss.forEach(function(Oe){return Oe(q)}),q.type==="click"&&(b.props.trigger.indexOf("mouseenter")<0||s)&&b.props.hideOnClick!==!1&&b.state.isVisible?de=!0:X(q),q.type==="click"&&(s=!de),de&&!Ae&&ne(q)}}function _(q){var ue=q.target,de=W().contains(ue)||T.contains(ue);if(!(q.type==="mousemove"&&de)){var Ae=Z().concat(T).map(function(Oe){var He,je=Oe._tippy,gt=(He=je.popperInstance)==null?void 0:He.state;return gt?{popperRect:Oe.getBoundingClientRect(),popperState:gt,props:t}:null}).filter(Boolean);WE(Ae,q)&&(ce(),ne(q))}}function I(q){var ue=B(q)||b.props.trigger.indexOf("click")>=0&&s;if(!ue){if(b.props.interactive){b.hideWithInteractivity(q);return}ne(q)}}function R(q){b.props.trigger.indexOf("focusin")<0&&q.target!==W()||b.props.interactive&&q.relatedTarget&&T.contains(q.relatedTarget)||ne(q)}function B(q){return rn.isTouch?L()!==q.type.indexOf("touch")>=0:!1}function K(){J();var q=b.props,ue=q.popperOptions,de=q.placement,Ae=q.offset,Oe=q.getReferenceClientRect,He=q.moveTransition,je=V()?Ql(T).arrow:null,gt=Oe?{getBoundingClientRect:Oe,contextElement:Oe.contextElement||W()}:n,yt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Jn){var Mt=Jn.state;if(V()){var Ft=F(),fo=Ft.box;["placement","reference-hidden","escaped"].forEach(function(Vt){Vt==="placement"?fo.setAttribute("data-placement",Mt.placement):Mt.attributes.popper["data-popper-"+Vt]?fo.setAttribute("data-"+Vt,""):fo.removeAttribute("data-"+Vt)}),Mt.attributes.popper={}}}},rt=[{name:"offset",options:{offset:Ae}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!He}},yt];V()&&je&&rt.push({name:"arrow",options:{element:je,padding:3}}),rt.push.apply(rt,(ue==null?void 0:ue.modifiers)||[]),b.popperInstance=rs(gt,T,Object.assign({},ue,{placement:de,onFirstUpdate:h,modifiers:rt}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Y(){var q=b.props.appendTo,ue,de=W();b.props.interactive&&q===Vh||q==="parent"?ue=de.parentNode:ue=zh(q,[de]),ue.contains(T)||ue.appendChild(T),b.state.isMounted=!0,K(),process.env.NODE_ENV!=="production"&&gn(b.props.interactive&&q===Ot.appendTo&&de.nextElementSibling!==T,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
112
112
|
|
|
113
113
|
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
114
114
|
|
|
115
115
|
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
116
116
|
|
|
117
|
-
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Z(){return is(T.querySelectorAll("[data-tippy-root]"))}function X(q){b.clearDelayTimeouts(),q&&D("onTrigger",[b,q]),we();var ue=$(!0),de=P(),Ae=de[0],Oe=de[1];
|
|
117
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Z(){return is(T.querySelectorAll("[data-tippy-root]"))}function X(q){b.clearDelayTimeouts(),q&&D("onTrigger",[b,q]),we();var ue=$(!0),de=P(),Ae=de[0],Oe=de[1];rn.isTouch&&Ae==="hold"&&Oe&&(ue=Oe),ue?r=setTimeout(function(){b.show()},ue):b.show()}function ne(q){if(b.clearDelayTimeouts(),D("onUntrigger",[b,q]),!b.state.isVisible){Te();return}if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(q.type)>=0&&s)){var ue=$(!1);ue?o=setTimeout(function(){b.state.isVisible&&b.hide()},ue):i=requestAnimationFrame(function(){b.hide()})}}function he(){b.state.isEnabled=!0}function Se(){b.hide(),b.state.isEnabled=!1}function _e(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function Ve(q){if(process.env.NODE_ENV!=="production"&&gn(b.state.isDestroyed,Qr("setProps")),!b.state.isDestroyed){D("onBeforeUpdate",[b,q]),v();var ue=b.props,de=qh(n,Object.assign({},ue,jh(q),{ignoreAttributes:!0}));b.props=de,x(),ue.interactiveDebounce!==de.interactiveDebounce&&(ce(),m=Hh(_,de.interactiveDebounce)),ue.triggerTarget&&!de.triggerTarget?Xr(ue.triggerTarget).forEach(function(Ae){Ae.removeAttribute("aria-expanded")}):de.triggerTarget&&n.removeAttribute("aria-expanded"),te(),G(),z&&z(ue,de),b.popperInstance&&(K(),Z().forEach(function(Ae){requestAnimationFrame(Ae._tippy.popperInstance.forceUpdate)})),D("onAfterUpdate",[b,q])}}function Fe(q){b.setProps({content:q})}function De(){process.env.NODE_ENV!=="production"&&gn(b.state.isDestroyed,Qr("show"));var q=b.state.isVisible,ue=b.state.isDestroyed,de=!b.state.isEnabled,Ae=rn.isTouch&&!b.props.touch,Oe=Kl(b.props.duration,0,Ot.duration);if(!(q||ue||de||Ae)&&!W().hasAttribute("disabled")&&(D("onShow",[b],!1),b.props.onShow(b)!==!1)){if(b.state.isVisible=!0,V()&&(T.style.visibility="visible"),G(),we(),b.state.isMounted||(T.style.transition="none"),V()){var He=F(),je=He.box,gt=He.content;Gl([je,gt],0)}h=function(){var rt;if(!(!b.state.isVisible||c)){if(c=!0,T.offsetHeight,T.style.transition=b.props.moveTransition,V()&&b.props.animation){var cn=F(),Jn=cn.box,Mt=cn.content;Gl([Jn,Mt],Oe),Wh([Jn,Mt],"visible")}Q(),te(),Uh(ql,b),(rt=b.popperInstance)==null||rt.forceUpdate(),D("onMount",[b]),b.props.animation&&V()&&A(Oe,function(){b.state.isShown=!0,D("onShown",[b])})}},Y()}}function Je(){process.env.NODE_ENV!=="production"&&gn(b.state.isDestroyed,Qr("hide"));var q=!b.state.isVisible,ue=b.state.isDestroyed,de=!b.state.isEnabled,Ae=Kl(b.props.duration,1,Ot.duration);if(!(q||ue||de)&&(D("onHide",[b],!1),b.props.onHide(b)!==!1)){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,s=!1,V()&&(T.style.visibility="hidden"),ce(),Te(),G(!0),V()){var Oe=F(),He=Oe.box,je=Oe.content;b.props.animation&&(Gl([He,je],Ae),Wh([He,je],"hidden"))}Q(),te(),b.props.animation?V()&&ve(Ae,b.unmount):b.unmount()}}function St(q){process.env.NODE_ENV!=="production"&&gn(b.state.isDestroyed,Qr("hideWithInteractivity")),H().addEventListener("mousemove",m),Uh(ss,m),m(q)}function at(){process.env.NODE_ENV!=="production"&&gn(b.state.isDestroyed,Qr("unmount")),b.state.isVisible&&b.hide(),b.state.isMounted&&(J(),Z().forEach(function(q){q._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),ql=ql.filter(function(q){return q!==b}),b.state.isMounted=!1,D("onHidden",[b]))}function Gn(){process.env.NODE_ENV!=="production"&&gn(b.state.isDestroyed,Qr("destroy")),!b.state.isDestroyed&&(b.clearDelayTimeouts(),b.unmount(),v(),delete n._tippy,b.state.isDestroyed=!0,D("onDestroy",[b]))}}function qr(n,e){e===void 0&&(e={});var t=Ot.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(qE(n),ep(e,t)),GE();var r=Object.assign({},e,{plugins:t}),o=UE(n);if(process.env.NODE_ENV!=="production"){var i=zo(r.content),s=o.length>1;gn(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
118
118
|
|
|
119
119
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
120
120
|
|
|
121
121
|
`,`1) content: element.innerHTML
|
|
122
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(a,c){var u=c&&r7(c,r);return u&&a.push(u),a},[]);return zo(n)?l[0]:l}qr.defaultProps=xt,qr.setDefaultProps=qE,qr.currentInput=nn,Object.assign({},Xi,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),qr.setDefaultProps({render:np});class o7{constructor({editor:e,element:t,view:r,tippyOptions:o={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:l,state:a,from:c,to:u})=>{const{doc:f,selection:h}=a,{empty:p}=h,m=!f.textBetween(c,u).length&&kl(a.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||p||m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var a;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,a)=>{const c=!(a!=null&&a.selection.eq(l.state.selection)),u=!(a!=null&&a.doc.eq(l.state.doc));!c&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,c,u,a)},this.updateDelay))},this.updateHandler=(l,a,c,u)=>{var f,h,p;const{state:m,composing:g}=l,{selection:y}=m;if(g||!a&&!c)return;this.createTooltip();const{ranges:S}=y,k=Math.min(...S.map(T=>T.$from.pos)),b=Math.max(...S.map(T=>T.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:l,state:m,oldState:u,from:k,to:b}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(Eb(m.selection)){let T=l.nodeDOM(k);const z=T.dataset.nodeViewWrapper?T:T.querySelector("[data-node-view-wrapper]");if(z&&(T=z.firstChild),T)return T.getBoundingClientRect()}return eh(l,k,b)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=qr(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,t);return}const i=!(t!=null&&t.selection.eq(e.state.selection)),s=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,i,s,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const rp=n=>new yt({key:typeof n.pluginKey=="string"?new Ut(n.pluginKey):n.pluginKey,view:e=>new o7({view:e,...n})});It.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[rp({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class i7{constructor({editor:e,element:t,view:r,tippyOptions:o={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:l})=>{const{selection:a}=l,{$anchor:c,empty:u}=a,f=c.depth===1,h=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent;return!(!s.hasFocus()||!u||!f||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var l;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=r,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=qr(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var r,o,i;const{state:s}=e,{doc:l,selection:a}=s,{from:c,to:u}=a;if(t&&t.doc.eq(l)&&t.selection.eq(a))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:t}))){this.hide();return}(o=this.tippy)===null||o===void 0||o.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>eh(e,c,u))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const op=n=>new yt({key:typeof n.pluginKey=="string"?new Ut(n.pluginKey):n.pluginKey,view:e=>new i7({view:e,...n})});It.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[op({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),d.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=d.ref(null);return d.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:i,shouldShow:s,tippyOptions:l}=n;o.registerPlugin(rp({updateDelay:r,editor:o,element:t.value,pluginKey:i,shouldShow:s,tippyOptions:l}))}),d.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return d.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function ip(n){return d.customRef((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class s7 extends Fb{constructor(e={}){return super(e),this.vueRenderers=d.reactive(new Map),this.contentComponent=null,this.reactiveState=ip(this.view.state),this.reactiveExtensionStorage=ip(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),d.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const a7=d.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=d.ref(),t=d.getCurrentInstance();return d.watchEffect(()=>{const r=n.editor;r&&r.options.element&&e.value&&d.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=d.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),d.onBeforeUnmount(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const t=d.h(d.Teleport,{to:e.teleportElement,key:e.id},d.h(e.component,{ref:e.id,...e.props}));n.push(t)}),d.h("div",{ref:e=>{this.rootEl=e}},...n)}});d.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=d.ref(null);return d.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:i,shouldShow:s}=n;o.registerPlugin(op({pluginKey:r,editor:o,element:t.value,tippyOptions:i,shouldShow:s}))}),d.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return d.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}}),d.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return d.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),d.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var n,e;return d.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))}});const l7=(n={})=>{const e=d.shallowRef();return d.onMounted(()=>{e.value=new s7(n)}),d.onBeforeUnmount(()=>{var t;(t=e.value)===null||t===void 0||t.destroy()}),e},c7=mn.create({name:"doc",topNode:!0,content:"block+"}),u7=mn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",ft(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),d7=mn.create({name:"text",group:"inline"}),f7="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",h7="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",eo=(n,e)=>{for(const t in e)n[t]=e[t];return n},ql="numeric",ec="ascii",tc="alpha",as="asciinumeric",ls="alphanumeric",nc="domain",sp="emoji",p7="scheme",m7="slashscheme",ap="whitespace";function g7(n,e){return n in e||(e[n]=[]),e[n]}function yr(n,e,t){e[ql]&&(e[as]=!0,e[ls]=!0),e[ec]&&(e[as]=!0,e[tc]=!0),e[as]&&(e[ls]=!0),e[tc]&&(e[ls]=!0),e[ls]&&(e[nc]=!0),e[sp]&&(e[nc]=!0);for(const r in e){const o=g7(r,t);o.indexOf(n)<0&&o.push(n)}}function y7(n,e){const t={};for(const r in e)e[r].indexOf(n)>=0&&(t[r]=!0);return t}function bt(n){n===void 0&&(n=null),this.j={},this.jr=[],this.jd=null,this.t=n}bt.groups={},bt.prototype={accepts(){return!!this.t},go(n){const e=this,t=e.j[n];if(t)return t;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(n))return i}return e.jd},has(n,e){return e===void 0&&(e=!1),e?n in this.j:!!this.go(n)},ta(n,e,t,r){for(let o=0;o<n.length;o++)this.tt(n[o],e,t,r)},tr(n,e,t,r){r=r||bt.groups;let o;return e&&e.j?o=e:(o=new bt(e),t&&r&&yr(e,t,r)),this.jr.push([n,o]),o},ts(n,e,t,r){let o=this;const i=n.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(n[s]);return o.tt(n[i-1],e,t,r)},tt(n,e,t,r){r=r||bt.groups;const o=this;if(e&&e.j)return o.j[n]=e,e;const i=e;let s,l=o.go(n);if(l?(s=new bt,eo(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new bt,i){if(r)if(s.t&&typeof s.t=="string"){const a=eo(y7(s.t,r),t);yr(i,a,r)}else t&&yr(i,t,r);s.t=i}return o.j[n]=s,s}};const _e=(n,e,t,r,o)=>n.ta(e,t,r,o),Dt=(n,e,t,r,o)=>n.tr(e,t,r,o),lp=(n,e,t,r,o)=>n.ts(e,t,r,o),pe=(n,e,t,r,o)=>n.tt(e,t,r,o),yn="WORD",rc="UWORD",Uo="LOCALHOST",oc="TLD",ic="UTLD",cs="SCHEME",to="SLASH_SCHEME",sc="NUM",cp="WS",ac="NL",jo="OPENBRACE",Wo="CLOSEBRACE",us="OPENBRACKET",ds="CLOSEBRACKET",fs="OPENPAREN",hs="CLOSEPAREN",ps="OPENANGLEBRACKET",ms="CLOSEANGLEBRACKET",gs="FULLWIDTHLEFTPAREN",ys="FULLWIDTHRIGHTPAREN",vs="LEFTCORNERBRACKET",bs="RIGHTCORNERBRACKET",Es="LEFTWHITECORNERBRACKET",Cs="RIGHTWHITECORNERBRACKET",Ss="FULLWIDTHLESSTHAN",ws="FULLWIDTHGREATERTHAN",ks="AMPERSAND",Ts="APOSTROPHE",As="ASTERISK",Pn="AT",xs="BACKSLASH",Os="BACKTICK",Ms="CARET",Fn="COLON",lc="COMMA",_s="DOLLAR",rn="DOT",Ns="EQUALS",cc="EXCLAMATION",on="HYPHEN",Is="PERCENT",Ds="PIPE",Ls="PLUS",Rs="POUND",Bs="QUERY",uc="QUOTE",dc="SEMI",sn="SLASH",Ko="TILDE",$s="UNDERSCORE",up="EMOJI",Ps="SYM";var dp=Object.freeze({__proto__:null,WORD:yn,UWORD:rc,LOCALHOST:Uo,TLD:oc,UTLD:ic,SCHEME:cs,SLASH_SCHEME:to,NUM:sc,WS:cp,NL:ac,OPENBRACE:jo,CLOSEBRACE:Wo,OPENBRACKET:us,CLOSEBRACKET:ds,OPENPAREN:fs,CLOSEPAREN:hs,OPENANGLEBRACKET:ps,CLOSEANGLEBRACKET:ms,FULLWIDTHLEFTPAREN:gs,FULLWIDTHRIGHTPAREN:ys,LEFTCORNERBRACKET:vs,RIGHTCORNERBRACKET:bs,LEFTWHITECORNERBRACKET:Es,RIGHTWHITECORNERBRACKET:Cs,FULLWIDTHLESSTHAN:Ss,FULLWIDTHGREATERTHAN:ws,AMPERSAND:ks,APOSTROPHE:Ts,ASTERISK:As,AT:Pn,BACKSLASH:xs,BACKTICK:Os,CARET:Ms,COLON:Fn,COMMA:lc,DOLLAR:_s,DOT:rn,EQUALS:Ns,EXCLAMATION:cc,HYPHEN:on,PERCENT:Is,PIPE:Ds,PLUS:Ls,POUND:Rs,QUERY:Bs,QUOTE:uc,SEMI:dc,SLASH:sn,TILDE:Ko,UNDERSCORE:$s,EMOJI:up,SYM:Ps});const no=/[a-z]/,fc=/\p{L}/u,hc=/\p{Emoji}/u,pc=/\d/,fp=/\s/,hp=`
|
|
123
|
-
`,
|
|
122
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=o.reduce(function(a,c){var u=c&&s7(c,r);return u&&a.push(u),a},[]);return zo(n)?l[0]:l}qr.defaultProps=Ot,qr.setDefaultProps=n7,qr.currentInput=rn,Object.assign({},Xi,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),qr.setDefaultProps({render:rp});class a7{constructor({editor:e,element:t,view:r,tippyOptions:o={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:l,state:a,from:c,to:u})=>{const{doc:f,selection:h}=a,{empty:p}=h,m=!f.textBetween(c,u).length&&Tl(a.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||p||m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var a;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(l.relatedTarget))||this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,a)=>{const c=!(a!=null&&a.selection.eq(l.state.selection)),u=!(a!=null&&a.doc.eq(l.state.doc));!c&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,c,u,a)},this.updateDelay))},this.updateHandler=(l,a,c,u)=>{var f,h,p;const{state:m,composing:g}=l,{selection:y}=m;if(g||!a&&!c)return;this.createTooltip();const{ranges:S}=y,k=Math.min(...S.map(T=>T.$from.pos)),b=Math.max(...S.map(T=>T.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:l,state:m,oldState:u,from:k,to:b}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(wb(m.selection)){let T=l.nodeDOM(k);const z=T.dataset.nodeViewWrapper?T:T.querySelector("[data-node-view-wrapper]");if(z&&(T=z.firstChild),T)return T.getBoundingClientRect()}return th(l,k,b)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=qr(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,t);return}const i=!(t!=null&&t.selection.eq(e.state.selection)),s=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,i,s,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const op=n=>new vt({key:typeof n.pluginKey=="string"?new jt(n.pluginKey):n.pluginKey,view:e=>new a7({view:e,...n})});Dt.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[op({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class l7{constructor({editor:e,element:t,view:r,tippyOptions:o={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:l})=>{const{selection:a}=l,{$anchor:c,empty:u}=a,f=c.depth===1,h=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent;return!(!s.hasFocus()||!u||!f||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var l;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=r,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=qr(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var r,o,i;const{state:s}=e,{doc:l,selection:a}=s,{from:c,to:u}=a;if(t&&t.doc.eq(l)&&t.selection.eq(a))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:t}))){this.hide();return}(o=this.tippy)===null||o===void 0||o.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>th(e,c,u))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const ip=n=>new vt({key:typeof n.pluginKey=="string"?new jt(n.pluginKey):n.pluginKey,view:e=>new l7({view:e,...n})});Dt.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[ip({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),d.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=d.ref(null);return d.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:i,shouldShow:s,tippyOptions:l}=n;o.registerPlugin(op({updateDelay:r,editor:o,element:t.value,pluginKey:i,shouldShow:s,tippyOptions:l}))}),d.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return d.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function sp(n){return d.customRef((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class c7 extends Hb{constructor(e={}){return super(e),this.vueRenderers=d.reactive(new Map),this.contentComponent=null,this.reactiveState=sp(this.view.state),this.reactiveExtensionStorage=sp(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),d.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const u7=d.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=d.ref(),t=d.getCurrentInstance();return d.watchEffect(()=>{const r=n.editor;r&&r.options.element&&e.value&&d.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=d.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),d.onBeforeUnmount(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const t=d.h(d.Teleport,{to:e.teleportElement,key:e.id},d.h(e.component,{ref:e.id,...e.props}));n.push(t)}),d.h("div",{ref:e=>{this.rootEl=e}},...n)}});d.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=d.ref(null);return d.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:i,shouldShow:s}=n;o.registerPlugin(ip({pluginKey:r,editor:o,element:t.value,tippyOptions:i,shouldShow:s}))}),d.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=n;o.unregisterPlugin(r)}),()=>{var r;return d.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}}),d.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return d.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),d.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var n,e;return d.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))}});const d7=(n={})=>{const e=d.shallowRef();return d.onMounted(()=>{e.value=new c7(n)}),d.onBeforeUnmount(()=>{var t;(t=e.value)===null||t===void 0||t.destroy()}),e},f7=mn.create({name:"doc",topNode:!0,content:"block+"}),h7=mn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",ht(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),p7=mn.create({name:"text",group:"inline"}),m7="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",g7="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",eo=(n,e)=>{for(const t in e)n[t]=e[t];return n},ec="numeric",tc="ascii",nc="alpha",as="asciinumeric",ls="alphanumeric",rc="domain",ap="emoji",y7="scheme",v7="slashscheme",lp="whitespace";function b7(n,e){return n in e||(e[n]=[]),e[n]}function yr(n,e,t){e[ec]&&(e[as]=!0,e[ls]=!0),e[tc]&&(e[as]=!0,e[nc]=!0),e[as]&&(e[ls]=!0),e[nc]&&(e[ls]=!0),e[ls]&&(e[rc]=!0),e[ap]&&(e[rc]=!0);for(const r in e){const o=b7(r,t);o.indexOf(n)<0&&o.push(n)}}function E7(n,e){const t={};for(const r in e)e[r].indexOf(n)>=0&&(t[r]=!0);return t}function Et(n){n===void 0&&(n=null),this.j={},this.jr=[],this.jd=null,this.t=n}Et.groups={},Et.prototype={accepts(){return!!this.t},go(n){const e=this,t=e.j[n];if(t)return t;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(n))return i}return e.jd},has(n,e){return e===void 0&&(e=!1),e?n in this.j:!!this.go(n)},ta(n,e,t,r){for(let o=0;o<n.length;o++)this.tt(n[o],e,t,r)},tr(n,e,t,r){r=r||Et.groups;let o;return e&&e.j?o=e:(o=new Et(e),t&&r&&yr(e,t,r)),this.jr.push([n,o]),o},ts(n,e,t,r){let o=this;const i=n.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(n[s]);return o.tt(n[i-1],e,t,r)},tt(n,e,t,r){r=r||Et.groups;const o=this;if(e&&e.j)return o.j[n]=e,e;const i=e;let s,l=o.go(n);if(l?(s=new Et,eo(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new Et,i){if(r)if(s.t&&typeof s.t=="string"){const a=eo(E7(s.t,r),t);yr(i,a,r)}else t&&yr(i,t,r);s.t=i}return o.j[n]=s,s}};const Ne=(n,e,t,r,o)=>n.ta(e,t,r,o),Lt=(n,e,t,r,o)=>n.tr(e,t,r,o),cp=(n,e,t,r,o)=>n.ts(e,t,r,o),pe=(n,e,t,r,o)=>n.tt(e,t,r,o),yn="WORD",oc="UWORD",Uo="LOCALHOST",ic="TLD",sc="UTLD",cs="SCHEME",to="SLASH_SCHEME",ac="NUM",up="WS",lc="NL",jo="OPENBRACE",Wo="CLOSEBRACE",us="OPENBRACKET",ds="CLOSEBRACKET",fs="OPENPAREN",hs="CLOSEPAREN",ps="OPENANGLEBRACKET",ms="CLOSEANGLEBRACKET",gs="FULLWIDTHLEFTPAREN",ys="FULLWIDTHRIGHTPAREN",vs="LEFTCORNERBRACKET",bs="RIGHTCORNERBRACKET",Es="LEFTWHITECORNERBRACKET",Cs="RIGHTWHITECORNERBRACKET",Ss="FULLWIDTHLESSTHAN",ws="FULLWIDTHGREATERTHAN",ks="AMPERSAND",Ts="APOSTROPHE",As="ASTERISK",Pn="AT",xs="BACKSLASH",Os="BACKTICK",Ms="CARET",Fn="COLON",cc="COMMA",Ns="DOLLAR",on="DOT",_s="EQUALS",uc="EXCLAMATION",sn="HYPHEN",Is="PERCENT",Ds="PIPE",Ls="PLUS",Rs="POUND",Bs="QUERY",dc="QUOTE",fc="SEMI",an="SLASH",Ko="TILDE",$s="UNDERSCORE",dp="EMOJI",Ps="SYM";var fp=Object.freeze({__proto__:null,WORD:yn,UWORD:oc,LOCALHOST:Uo,TLD:ic,UTLD:sc,SCHEME:cs,SLASH_SCHEME:to,NUM:ac,WS:up,NL:lc,OPENBRACE:jo,CLOSEBRACE:Wo,OPENBRACKET:us,CLOSEBRACKET:ds,OPENPAREN:fs,CLOSEPAREN:hs,OPENANGLEBRACKET:ps,CLOSEANGLEBRACKET:ms,FULLWIDTHLEFTPAREN:gs,FULLWIDTHRIGHTPAREN:ys,LEFTCORNERBRACKET:vs,RIGHTCORNERBRACKET:bs,LEFTWHITECORNERBRACKET:Es,RIGHTWHITECORNERBRACKET:Cs,FULLWIDTHLESSTHAN:Ss,FULLWIDTHGREATERTHAN:ws,AMPERSAND:ks,APOSTROPHE:Ts,ASTERISK:As,AT:Pn,BACKSLASH:xs,BACKTICK:Os,CARET:Ms,COLON:Fn,COMMA:cc,DOLLAR:Ns,DOT:on,EQUALS:_s,EXCLAMATION:uc,HYPHEN:sn,PERCENT:Is,PIPE:Ds,PLUS:Ls,POUND:Rs,QUERY:Bs,QUOTE:dc,SEMI:fc,SLASH:an,TILDE:Ko,UNDERSCORE:$s,EMOJI:dp,SYM:Ps});const no=/[a-z]/,hc=/\p{L}/u,pc=/\p{Emoji}/u,mc=/\d/,hp=/\s/,pp=`
|
|
123
|
+
`,C7="️",S7="";let Fs=null,Vs=null;function w7(n){n===void 0&&(n=[]);const e={};Et.groups=e;const t=new Et;Fs==null&&(Fs=mp(m7)),Vs==null&&(Vs=mp(g7)),pe(t,"'",Ts),pe(t,"{",jo),pe(t,"}",Wo),pe(t,"[",us),pe(t,"]",ds),pe(t,"(",fs),pe(t,")",hs),pe(t,"<",ps),pe(t,">",ms),pe(t,"(",gs),pe(t,")",ys),pe(t,"「",vs),pe(t,"」",bs),pe(t,"『",Es),pe(t,"』",Cs),pe(t,"<",Ss),pe(t,">",ws),pe(t,"&",ks),pe(t,"*",As),pe(t,"@",Pn),pe(t,"`",Os),pe(t,"^",Ms),pe(t,":",Fn),pe(t,",",cc),pe(t,"$",Ns),pe(t,".",on),pe(t,"=",_s),pe(t,"!",uc),pe(t,"-",sn),pe(t,"%",Is),pe(t,"|",Ds),pe(t,"+",Ls),pe(t,"#",Rs),pe(t,"?",Bs),pe(t,'"',dc),pe(t,"/",an),pe(t,";",fc),pe(t,"~",Ko),pe(t,"_",$s),pe(t,"\\",xs);const r=Lt(t,mc,ac,{[ec]:!0});Lt(r,mc,r);const o=Lt(t,no,yn,{[tc]:!0});Lt(o,no,o);const i=Lt(t,hc,oc,{[nc]:!0});Lt(i,no),Lt(i,hc,i);const s=Lt(t,hp,up,{[lp]:!0});pe(t,pp,lc,{[lp]:!0}),pe(s,pp),Lt(s,hp,s);const l=Lt(t,pc,dp,{[ap]:!0});Lt(l,pc,l),pe(l,C7,l);const a=pe(l,S7);Lt(a,pc,l);const c=[[no,o]],u=[[no,null],[hc,i]];for(let f=0;f<Fs.length;f++)Vn(t,Fs[f],ic,yn,c);for(let f=0;f<Vs.length;f++)Vn(t,Vs[f],sc,oc,u);yr(ic,{tld:!0,ascii:!0},e),yr(sc,{utld:!0,alpha:!0},e),Vn(t,"file",cs,yn,c),Vn(t,"mailto",cs,yn,c),Vn(t,"http",to,yn,c),Vn(t,"https",to,yn,c),Vn(t,"ftp",to,yn,c),Vn(t,"ftps",to,yn,c),yr(cs,{scheme:!0,ascii:!0},e),yr(to,{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]?{[y7]:!0}:{[v7]:!0};h.indexOf("-")>=0?m[rc]=!0:no.test(h)?mc.test(h)?m[as]=!0:m[tc]=!0:m[ec]=!0,cp(t,h,h,m)}return cp(t,"localhost",Uo,{ascii:!0}),t.jd=new Et(Ps),{start:t,tokens:eo({groups:e},fp)}}function k7(n,e){const t=T7(e.replace(/[A-Z]/g,l=>l.toLowerCase())),r=t.length,o=[];let i=0,s=0;for(;s<r;){let l=n,a=null,c=0,u=null,f=-1,h=-1;for(;s<r&&(a=l.go(t[s]));)l=a,l.accepts()?(f=0,h=0,u=l):f>=0&&(f+=t[s].length,h++),c+=t[s].length,i+=t[s].length,s++;i-=f,s-=h,c-=f,o.push({t:u.t,v:e.slice(i-c,i),s:i-c,e:i})}return o}function T7(n){const e=[],t=n.length;let r=0;for(;r<t;){let o=n.charCodeAt(r),i,s=o<55296||o>56319||r+1===t||(i=n.charCodeAt(r+1))<56320||i>57343?n[r]:n.slice(r,r+2);e.push(s),r+=s.length}return e}function Vn(n,e,t,r,o){let i;const s=e.length;for(let l=0;l<s-1;l++){const a=e[l];n.j[a]?i=n.j[a]:(i=new Et(r),i.jr=o.slice(),n.j[a]=i),n=i}return i=new Et(t),i.jr=o.slice(),n.j[e[s-1]]=i,i}function mp(n){const e=[],t=[];let r=0,o="0123456789";for(;r<n.length;){let i=0;for(;o.indexOf(n[r+i])>=0;)i++;if(i>0){e.push(t.join(""));for(let s=parseInt(n.substring(r,r+i),10);s>0;s--)t.pop();r+=i}else t.push(n[r]),r++}return e}const Yo={defaultProtocol:"http",events:null,format:gp,formatHref:gp,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function gc(n,e){e===void 0&&(e=null);let t=eo({},Yo);n&&(t=eo(t,n instanceof gc?n.o:n));const r=t.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=t,e&&(this.defaultRender=e),this.ignoreTags=o}gc.prototype={o:Yo,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]:Yo[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 gp(n){return n}function yp(n,e){this.t="token",this.v=n,this.tk=e}yp.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=Yo.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),i=this.toFormattedString(n),s={},l=n.get("className",t,e),a=n.get("target",t,e),c=n.get("rel",t,e),u=n.getObj("attributes",t,e),f=n.getObj("events",t,e);return s.href=r,l&&(s.class=l),a&&(s.target=a),c&&(s.rel=c),u&&eo(s,u),{tagName:o,attributes:s,content:i,eventListeners:f}}};function zs(n,e){class t extends yp{constructor(o,i){super(o,i),this.t=n}}for(const r in e)t.prototype[r]=e[r];return t.t=n,t}const vp=zs("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),bp=zs("text"),A7=zs("nl"),Hs=zs("url",{isLink:!0,toHref(n){return n===void 0&&(n=Yo.defaultProtocol),this.hasProtocol()?this.v:`${n}://${this.v}`},hasProtocol(){const n=this.tk;return n.length>=2&&n[0].t!==Uo&&n[1].t===Fn}}),Rt=n=>new Et(n);function x7(n){let{groups:e}=n;const t=e.domain.concat([ks,As,Pn,xs,Os,Ms,Ns,_s,sn,ac,Is,Ds,Ls,Rs,an,Ps,Ko,$s]),r=[Ts,Fn,cc,on,uc,Bs,dc,fc,ps,ms,jo,Wo,ds,us,fs,hs,gs,ys,vs,bs,Es,Cs,Ss,ws],o=[ks,Ts,As,xs,Os,Ms,Ns,_s,sn,jo,Wo,Is,Ds,Ls,Rs,Bs,an,Ps,Ko,$s],i=Rt(),s=pe(i,Ko);Ne(s,o,s),Ne(s,e.domain,s);const l=Rt(),a=Rt(),c=Rt();Ne(i,e.domain,l),Ne(i,e.scheme,a),Ne(i,e.slashscheme,c),Ne(l,o,s),Ne(l,e.domain,l);const u=pe(l,Pn);pe(s,Pn,u),pe(a,Pn,u),pe(c,Pn,u);const f=pe(s,on);Ne(f,o,s),Ne(f,e.domain,s);const h=Rt();Ne(u,e.domain,h),Ne(h,e.domain,h);const p=pe(h,on);Ne(p,e.domain,h);const m=Rt(vp);Ne(p,e.tld,m),Ne(p,e.utld,m),pe(u,Uo,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,vp);const C=pe(l,sn),S=pe(l,on);Ne(C,e.domain,l),Ne(S,o,s),Ne(S,e.domain,l);const k=Rt(Hs);Ne(S,e.tld,k),Ne(S,e.utld,k),Ne(k,e.domain,l),Ne(k,o,s),pe(k,on,S),pe(k,sn,C),pe(k,Pn,u);const b=pe(k,Fn),M=Rt(Hs);Ne(b,e.numeric,M);const T=Rt(Hs),z=Rt();Ne(T,t,T),Ne(T,r,z),Ne(z,t,T),Ne(z,r,z),pe(k,an,T),pe(M,an,T);const U=pe(a,Fn),j=pe(c,Fn),P=pe(j,an),L=pe(P,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(U,e.domain,T),pe(U,an,T),Ne(L,e.domain,T),Ne(L,t,T),pe(L,an,T);const V=[[jo,Wo],[us,ds],[fs,hs],[ps,ms],[gs,ys],[vs,bs],[Es,Cs],[Ss,ws]];for(let W=0;W<V.length;W++){const[H,F]=V[W],$=pe(T,H);pe(z,H,$),pe($,F,T);const G=Rt(Hs);Ne($,t,G);const D=Rt();Ne($,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(i,Uo,k),pe(i,lc,A7),{start:i,tokens:fp}}function O7(n,e,t){let r=t.length,o=0,i=[],s=[];for(;o<r;){let l=n,a=null,c=null,u=0,f=null,h=-1;for(;o<r&&!(a=l.go(t[o].t));)s.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++,u++;if(h<0)o-=u,o<r&&(s.push(t[o]),o++);else{s.length>0&&(i.push(yc(bp,e,s)),s=[]),o-=h,u-=h;const p=f.t,m=t.slice(o-u,o);i.push(yc(p,e,m))}}return s.length>0&&i.push(yc(bp,e,s)),i}function yc(n,e,t){const r=t[0].s,o=t[t.length-1].e,i=e.slice(r,o);return new n(i,t)}const M7=typeof console<"u"&&console&&console.warn||(()=>{}),N7="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ze={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function _7(){Et.groups={},ze.scanner=null,ze.parser=null,ze.tokenQueue=[],ze.pluginQueue=[],ze.customSchemes=[],ze.initialized=!1}function Ep(n,e){if(e===void 0&&(e=!1),ze.initialized&&M7(`linkifyjs: already initialized - will not register custom scheme "${n}" ${N7}`),!/^[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`);ze.customSchemes.push([n,e])}function M7(){ze.scanner=E7(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=k7(ze.scanner.tokens);for(let n=0;n<ze.pluginQueue.length;n++)ze.pluginQueue[n][1]({scanner:ze.scanner,parser:ze.parser});ze.initialized=!0}function _7(n){return ze.initialized||M7(),T7(ze.parser.start,n,C7(ze.scanner.start,n))}function yc(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 mc(t),o=_7(n),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function N7(n){return new yt({key:new Ut("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=lb(t.doc,[...e]);if(yb(l).forEach(({newRange:c})=>{const u=ub(r.doc,c,p=>p.isTextblock);let f,h;if(u.length>1?(f=u[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(f=u[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;yc(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=>{xl(y.from,y.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function I7(n){return new yt({key:new Ut("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=Qf(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function D7(n){return new yt({key:new Ut("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=yc(a).find(m=>m.isLink&&m.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=u==null?void 0:u.match(f),p=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const L7=en.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){bp(n);return}bp(n.scheme,n.optionalSlashes)})},onDestroy(){O7()},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",ft(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[Ro({find:n=>yc(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(N7({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(I7({type:this.type})),this.options.linkOnPaste&&n.push(D7({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})}}}}),R7=It.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new yt({key:new Ut("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!t)return null;const i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];s&&f.push(this.options.emptyEditorClass);const h=Nt.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}),Ye.create(n,o)}}})]}}),B7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,$7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,P7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,F7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,V7=en.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",ft(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[Gi({find:B7,type:this.type}),Gi({find:P7,type:this.type})]},addPasteRules(){return[Ro({find:$7,type:this.type}),Ro({find:F7,type:this.type})]}}),z7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,H7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,U7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,j7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,W7=en.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",ft(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[Gi({find:z7,type:this.type}),Gi({find:U7,type:this.type})]},addPasteRules(){return[Ro({find:H7,type:this.type}),Ro({find:j7,type:this.type})]}}),K7=en.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",ft(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()}}}),Y7=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",ft(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)}}}),G7=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",ft(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)}}}),Ep=en.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ft(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Ki(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Cp=/^\s*([-+*])\s$/,J7=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",ft(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(G7.name,this.editor.getAttributes(Ep.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Ji({find:Cp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ji({find:Cp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Ep.name),editor:this.editor})),[n]}}),Z7=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",ft(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)}}}),Sp=en.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",ft(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=Ki(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),wp=/^(\d+)\.\s$/,X7=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",ft(this.options.HTMLAttributes,t),0]:["ol",ft(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(Z7.name,this.editor.getAttributes(Sp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Ji({find:wp,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=Ji({find:wp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Sp.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),Q7=mn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",ft(this.options.HTMLAttributes,n)]},renderText(){return`
|
|
127
|
-
`},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:o,storedMarks:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const 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()}}}),vc={BASIC:"basic",FULL:"full"},q7={class:"attachment-list"},e8={class:"attachment-link"},t8={key:1,class:"attachment-no-download"},n8=["href"],Us=d.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)=>(d.openBlock(),d.createElementBlock("ul",q7,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.files,i=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[d.createElementVNode("div",e8,[r.showDelete?(d.openBlock(),d.createBlock(tt,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),r.noDownload?(d.openBlock(),d.createElementBlock("div",t8,[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(i.Naam.trim()),1)])):(d.openBlock(),d.createElementBlock("a",{key:2,href:i.downloadUrl},[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(i.Naam.trim()),1)],8,n8))])]))),128))]))}}),r8={class:"attachment-list"},o8={class:"attachment"},i8=["onClick"],s8=["src","alt"],a8=["onClick"],l8=["href"],c8={class:"btn btn-light download-button-image"},u8=["src","alt"],js=d.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(d.openBlock(),d.createElementBlock("ul",r8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.files,l=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[d.createElementVNode("div",o8,[i.showDelete?(d.openBlock(),d.createBlock(tt,{key:0,variant:"remove","aria-label":"verwijder",onClick:d.withModifiers(a=>r(l),["prevent"])},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),t.noDownload?(d.openBlock(),d.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[d.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,s8)],8,i8)):(d.openBlock(),d.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(d.openBlock(),d.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[d.createElementVNode("button",c8,[d.createVNode(d.unref(oi))])],8,l8)):d.createCommentVNode("",!0),d.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,u8)],8,a8))])]))),128))]))}}),kp=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),d8=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,f8=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,h8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,p8=(n,e)=>e?kp(n):!kp(n),Ws=(n,e)=>n===void 0?void 0:n.filter(r=>p8(r,e)).map(r=>{const o=typeof r.CorrelationId=="string"?r.CorrelationId:r.CorrelationId!==void 0?r.CorrelationId.toString():"";return{downloadUrl:d8(r),previewUrl:f8(r),fullImageUrl:h8(r),altName:`${r.Naam}`,...r,CorrelationId:o}}),m8={key:0,class:"pills-list__wrapper"},g8={class:"pills-list__ul"},y8={class:"bd-markdown-editor__menu-bottom"},v8={key:0,class:"vr"},Tp=d.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:vc.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=qn(t,"modelValue",e),i=[c7,u7,d7,R7.configure({placeholder:t.placeholder}),Q7,L7.configure({openOnClick:!1,validate:M=>/^https?:\/\//i.test(M)})];t.variant===vc.FULL&&i.push(V7,W7,K7,Y7,J7,X7);const s=l7({content:o.value,extensions:i,onUpdate:({editor:M})=>{const{view:T,state:z}=M,{from:U,to:j}=T.state.selection;if(z.doc.textBetween(U-1,j,"")==" "&&M.getAttributes("link").href!=null&&M.chain().setTextSelection({from:U-1,to:j}).toggleLink({href:M.getAttributes("link").href}).setTextSelection({from:j,to:j}).run(),M.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",M.getHTML())}});d.watch(()=>t.modelValue,M=>{s.value.getHTML()!==M&&s.value.commands.setContent(M,!0,{preserveWhitespace:"full"})});const l=d.computed(()=>t.state===!1?"is-invalid":null),a=d.computed(()=>g("bold")),c=d.computed(()=>g("italic")),u=d.computed(()=>g("underline")),f=d.computed(()=>g("bulletList")),h=d.computed(()=>g("orderedList")),p=d.computed(()=>g("link")),m=d.computed(()=>t.variant===vc.FULL),g=M=>s.value&&s.value.isActive(M)?"active":null,y=d.computed(()=>t.files&&t.files.length>0?Ws(t.files,!1):null),C=d.computed(()=>t.files&&t.files.length>0?Ws(t.files,!0):null),S=M=>{e("action",{name:"delete-attachment",obj:M})},k=M=>{e("action",{name:"image-attachment",obj:M})},b=()=>{const M=s.value.getAttributes("link").href,T=window.prompt("Voeg link toe",M);if(T!==null){if(T===""){s.value.chain().focus().unsetLink().run();return}s.value.chain().focus().toggleLink({href:T}).run()}};return(M,T)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:d.normalizeClass(["bd-markdown-editor",l.value])},[d.createVNode(d.unref(a7),{editor:d.unref(s)},null,8,["editor"]),M.pills?(d.openBlock(),d.createElementBlock("div",m8,[d.createElementVNode("ul",g8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(M.pills,(z,U)=>(d.openBlock(),d.createElementBlock("li",{key:U,class:"pills-list__li"},[d.createVNode(mi,d.normalizeProps(d.guardReactiveProps(z)),null,16)]))),128))])])):d.createCommentVNode("",!0),d.renderSlot(M.$slots,"default"),y.value?(d.openBlock(),d.createBlock(Us,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:S},null,8,["files"])):d.createCommentVNode("",!0),C.value?(d.openBlock(),d.createBlock(js,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:S,onShow:k},null,8,["files"])):d.createCommentVNode("",!0),d.createElementVNode("div",y8,[d.createVNode(tt,{variant:"light",type:"button",onClick:r},{default:d.withCtx(()=>[d.createVNode(d.unref(Qn))]),_:1}),m.value?(d.openBlock(),d.createElementBlock("div",v8)):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(tt,{key:1,variant:"light",type:"button",class:d.normalizeClass(a.value),onClick:T[0]||(T[0]=z=>d.unref(s).chain().focus().toggleBold().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ca))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(tt,{key:2,variant:"light",type:"button",class:d.normalizeClass(c.value),onClick:T[1]||(T[1]=z=>d.unref(s).chain().focus().toggleItalic().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ga))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(tt,{key:3,variant:"light",type:"button",class:d.normalizeClass(u.value),onClick:T[2]||(T[2]=z=>d.unref(s).chain().focus().toggleUnderline().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Ca))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(tt,{key:4,variant:"light",type:"button",class:d.normalizeClass(f.value),onClick:T[3]||(T[3]=z=>d.unref(s).chain().focus().toggleBulletList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ua))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(tt,{key:5,variant:"light",type:"button",class:d.normalizeClass(h.value),onClick:T[4]||(T[4]=z=>d.unref(s).chain().focus().toggleOrderedList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ya))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(tt,{key:6,variant:"light",type:"button",class:d.normalizeClass(p.value),onClick:b},{default:d.withCtx(()=>[d.createVNode(d.unref(si))]),_:1},8,["class"])):d.createCommentVNode("",!0)])],2),d.createVNode(d.unref(hi),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),b8={class:"header"},E8=d.createElementVNode("div",null,"Menu",-1),C8={class:"icon-close-wrapper"},S8={class:"navbar"},w8={class:"nav navbar-nav w-100"},k8={class:"nav-item"},T8={class:"nav-item"},bc=d.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-mobile-menu",r.value])},[d.createElementVNode("div",b8,[E8,d.createElementVNode("div",C8,[d.createVNode(ri,{onClick:o})])]),d.createElementVNode("nav",S8,[d.createElementVNode("ul",w8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.options,a=>(d.openBlock(),d.createElementBlock("li",k8,[d.createVNode(Ar,d.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),d.renderSlot(s.$slots,"special-options"),d.createElementVNode("li",T8,[d.createVNode(Ar,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),A8={class:"bd-user"},x8={class:"bd-user__information"},O8={class:"text-break"},M8={class:"overflow-x-hidden"},Ap=d.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=d.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(d.openBlock(),d.createElementBlock("div",A8,[e.hideImage?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(po,d.mergeProps({key:0},e.img,{size:"sm"}),null,16)),d.createElementVNode("div",x8,[d.createElementVNode("header",null,[d.createElementVNode("h5",O8,d.toDisplayString(e.name),1),d.renderSlot(r.$slots,"header-extra")]),d.createElementVNode("span",M8,d.toDisplayString(t.value),1)])]))}}),_8={class:"bd-chat-cloud-card"},N8={class:"bd-chat-cloud-card__header"},I8={class:"bd-chat-cloud-card__body"},D8=["innerHTML"],L8={class:"bd-chat-cloud-card__footer"},R8={key:0,class:"pills-list__wrapper"},B8={class:"pills-list__ul"},xp=d.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=d.computed(()=>t.isSender?"sender":un),o=d.computed(()=>Ws(t.files,!1)),i=d.computed(()=>Ws(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-chat-cloud",r.value])},[d.createVNode(po,{src:t.src,size:"sm"},null,8,["src"]),d.createElementVNode("div",_8,[d.createElementVNode("div",N8,[d.renderSlot(a.$slots,"header",{},()=>[d.createTextVNode(d.toDisplayString(a.headerTitle),1)]),d.createVNode(tt,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:d.withCtx(()=>[d.createTextVNode(" kopieer ")]),_:1})]),d.createElementVNode("div",I8,[d.renderSlot(a.$slots,"body",{},()=>[d.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,D8)])]),d.createElementVNode("div",L8,[d.renderSlot(a.$slots,"footer",{},()=>[a.pills?(d.openBlock(),d.createElementBlock("div",R8,[d.createElementVNode("ul",B8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(a.pills,(u,f)=>(d.openBlock(),d.createElementBlock("li",{key:f,class:"pills-list__li"},[d.createVNode(mi,d.normalizeProps(d.guardReactiveProps(u)),null,16)]))),128))])])):d.createCommentVNode("",!0),o.value&&o.value.length>0?(d.openBlock(),d.createBlock(Us,{key:1,files:o.value},null,8,["files"])):d.createCommentVNode("",!0),i.value&&i.value.length>0?(d.openBlock(),d.createBlock(js,{key:2,"fast-download":!0,files:i.value,onShow:l},null,8,["files"])):d.createCommentVNode("",!0)])])])],2))}}),$8=d.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=d.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=d.computed(()=>({"bd-table-sort":!0,active:t.active}));return d.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(d.openBlock(),d.createElementBlock("th",{class:d.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[d.createElementVNode("span",null,d.toDisplayString(t.label),1),t.active&&!r.value?(d.openBlock(),d.createBlock(d.unref(va),{key:0})):t.active&&r.value?(d.openBlock(),d.createBlock(d.unref(ba),{key:1})):(d.openBlock(),d.createBlock(d.unref(Ea),{key:2}))],2))}}),P8={class:"bd-table"},F8={key:0,class:"table"},V8={key:1},z8=["onClick"],H8={key:0},U8={key:1,class:"empty-text"},Op=d.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=d.ref(r.items),i=d.ref(r.sortBy),s=f=>i.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})},u=()=>{o.value=r.items};return d.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(d.openBlock(),d.createElementBlock("div",P8,[r.items&&r.items.length>0?(d.openBlock(),d.createElementBlock("table",F8,[d.createElementVNode("thead",null,[d.createElementVNode("tr",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.fields,p=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[p.isVisible?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[p.sortable?(d.openBlock(),d.createBlock($8,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(d.openBlock(),d.createElementBlock("th",V8,d.toDisplayString(p.label),1))],64)):d.createCommentVNode("",!0)],64))),256))])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.value,p=>(d.openBlock(),d.createElementBlock("tr",{class:d.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.fields,m=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[m.isVisible?(d.openBlock(),d.createElementBlock("td",H8,[f.$slots.hasOwnProperty(m.key)?d.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode(d.toDisplayString(p[m.key]),1)],64))])):d.createCommentVNode("",!0)],64))),256))],10,z8))),256))])])):(d.openBlock(),d.createElementBlock("p",U8,d.toDisplayString(r.emptyText),1))]))}}),Ec=d.defineComponent({__name:"BDDropdown",props:{size:{default:at.MD},variant:{default:li.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}=xr(),r=`__BD__DROPDOWN__${t.value}`,o=d.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=d.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=d.computed(()=>({"aria-labelledby":r})),l=d.ref(),a=d.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(d.openBlock(),d.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=d.withModifiers(()=>{},["stop"]))},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.toggleTag),d.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(e.text),1)]),_:1},16)),d.createElementVNode("ul",d.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[d.renderSlot(u.$slots,"default")],16)]))}}),j8={class:"row bd-header"},W8={class:"col logo-mix"},K8=["src","alt"],Y8=d.createElementVNode("div",null,"Menu",-1),G8={key:0,class:"col header-options"},J8={class:"col bd-btn-settings"},Z8="sm",Mp=d.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=d.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("nav",j8,[d.createElementVNode("div",W8,[d.createVNode(Sa,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(d.openBlock(),d.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,K8)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[Y8,d.createVNode(ai)]),t.headerOptions&&t.headerOptions.length!==0?(d.openBlock(),d.createElementBlock("div",G8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.headerOptions,f=>(d.openBlock(),d.createBlock(tt,{class:"btn-header",to:f.to},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(f.text),1)]),_:2},1032,["to"]))),256))])):d.createCommentVNode("",!0),d.createElementVNode("div",J8,[d.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(d.openBlock(),d.createBlock(po,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:Z8},null,8,["src","alt"])):d.createCommentVNode("",!0),d.createVNode(Ec,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.dropdownOptions,(f,h)=>(d.openBlock(),d.createBlock(gi,d.mergeProps({key:h},f),null,16))),128)),d.createVNode(gi,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),d.createVNode(bc,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":d.withCtx(()=>[d.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),X8={class:"modal bd-modal modal-lg",tabindex:"-1"},Q8={class:"modal-dialog"},q8={class:"modal-content"},e4={class:"modal-header"},t4={class:"modal-title"},n4=["src"],r4=d.createElementVNode("span",null,"Sluiten",-1),o4={class:"modal-body"},i4={key:0,class:"modal-footer"},s4=["disabled"],_p=d.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},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>e("submit"),o=()=>e("cancel");return(i,s)=>(d.openBlock(),d.createElementBlock("div",X8,[d.createElementVNode("div",Q8,[d.createElementVNode("div",q8,[d.createElementVNode("div",e4,[d.createElementVNode("h2",t4,[t.titleImage?(d.openBlock(),d.createElementBlock("img",{key:0,src:t.titleImage,class:"title-image",alt:""},null,8,n4)):d.createCommentVNode("",!0),d.createElementVNode("span",null,d.toDisplayString(t.title),1)]),d.renderSlot(i.$slots,"modal-header-space-between"),d.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[r4,d.createVNode(d.unref(ri))])]),d.createElementVNode("div",o4,[d.renderSlot(i.$slots,"default")]),i.hideFooter?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",i4,[t.hideFooterSubmitButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},d.toDisplayString(t.submitButtonTitle),9,s4)),d.renderSlot(i.$slots,"buttons"),t.hideFooterCancelButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},d.toDisplayString(t.closeButtonTitle),1))]))])])]))}}),a4={class:"template change-password-template"},l4={class:"template-title"},c4={key:0},u4={key:1},d4=["onSubmit","onReset"],f4={class:"bd-form-field"},h4={class:"bd-form-field"},p4={class:"bd-form-field"},m4={class:"bd-form-buttons"},Np=d.defineComponent({__name:"BDChangePasswordTemplate",props:{data:{},validation:{},serverErrors:{},errorMessages:{},errorMessageText:{},title:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{}},emits:["submit","reset"],setup(n,{emit:e}){const t=()=>e("submit"),r=()=>e("reset");return(o,i)=>(d.openBlock(),d.createElementBlock("main",a4,[d.createVNode(ni,{class:"container-xl"},{default:d.withCtx(()=>[d.createVNode(Xn,{class:"justify-content-md-center template-header"},{default:d.withCtx(()=>[d.createVNode(Zn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createElementVNode("h2",l4,d.toDisplayString(o.title),1)]),_:1})]),_:1}),d.createVNode(Xn,{class:"justify-content-md-center"},{default:d.withCtx(()=>[d.createVNode(Zn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createVNode(fi,{class:"bd-card-template",noHeader:!0},{body:d.withCtx(()=>[d.createVNode(ni,{class:"container-fluid"},{default:d.withCtx(()=>[d.createVNode(Xn,null,{default:d.withCtx(()=>[d.createVNode(Zn,null,{default:d.withCtx(()=>[d.createVNode(ci,{variant:"warning"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.alertText),1)]),_:1})]),_:1})]),_:1}),o.errorMessages||o.errorMessageText?(d.openBlock(),d.createBlock(Xn,{key:0},{default:d.withCtx(()=>[d.createVNode(Zn,null,{default:d.withCtx(()=>[d.createVNode(ci,{variant:"danger"},{default:d.withCtx(()=>[o.errorMessages?(d.openBlock(),d.createElementBlock("div",c4,[d.createElementVNode("ul",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.errorMessages,(s,l)=>(d.openBlock(),d.createElementBlock("li",{key:l},[d.createVNode(Tr),d.createTextVNode(" "+d.toDisplayString(s),1)]))),128))])])):(d.openBlock(),d.createElementBlock("div",u4,d.toDisplayString(o.errorMessageText),1))]),_:1})]),_:1})]),_:1})):d.createCommentVNode("",!0),d.createVNode(Xn,null,{default:d.withCtx(()=>[d.createVNode(Zn,{class:"bd-card-form",sm:12,md:12},{default:d.withCtx(()=>[d.createElementVNode("form",{onSubmit:d.withModifiers(t,["prevent"]),onReset:d.withModifiers(r,["prevent"]),class:"form"},[d.createElementVNode("div",f4,[d.createVNode(go,{modelValue:o.data.password,"onUpdate:modelValue":i[0]||(i[0]=s=>o.data.password=s),label:o.currentPasswordLabel,state:o.validation.password.state,type:"password",invalidFeedbackText:o.validation.password.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",h4,[d.createVNode(go,{modelValue:o.data.passwordNew,"onUpdate:modelValue":i[1]||(i[1]=s=>o.data.passwordNew=s),label:o.newPasswordLabel,state:o.validation.passwordNew.state,type:"password",invalidFeedbackText:o.validation.passwordNew.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",p4,[d.createVNode(go,{modelValue:o.data.passwordRepeat,"onUpdate:modelValue":i[2]||(i[2]=s=>o.data.passwordRepeat=s),label:o.confirmNewPasswordLabel,state:o.validation.passwordRepeat.state,type:"password",invalidFeedbackText:o.validation.passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",m4,[d.createVNode(tt,{type:"submit"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.submitButtonText),1)]),_:1}),d.createVNode(tt,{type:"reset",variant:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.cancelButtonText),1)]),_:1})])],40,d4)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}});/*!
|
|
126
|
+
3. "-" cannot repeat`);ze.customSchemes.push([n,e])}function I7(){ze.scanner=w7(ze.customSchemes);for(let n=0;n<ze.tokenQueue.length;n++)ze.tokenQueue[n][1]({scanner:ze.scanner});ze.parser=x7(ze.scanner.tokens);for(let n=0;n<ze.pluginQueue.length;n++)ze.pluginQueue[n][1]({scanner:ze.scanner,parser:ze.parser});ze.initialized=!0}function D7(n){return ze.initialized||I7(),O7(ze.parser.start,n,k7(ze.scanner.start,n))}function vc(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 gc(t),o=D7(n),i=[];for(let s=0;s<o.length;s++){const l=o[s];l.isLink&&(!e||l.t===e)&&r.check(l)&&i.push(l.toFormattedObject(r))}return i}function L7(n){return new vt({key:new jt("autolink"),appendTransaction:(e,t,r)=>{const o=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,l=db(t.doc,[...e]);if(Eb(l).forEach(({newRange:c})=>{const u=hb(r.doc,c,p=>p.isTextblock);let f,h;if(u.length>1?(f=u[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(f=u[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;vc(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=>{Ol(y.from,y.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function R7(n){return new vt({key:new jt("handleClickLink"),props:{handleClick:(e,t,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const l=qf(e.state,n.type.name),a=r.target,c=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:l.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:l.target;return a&&c?(e.editable&&window.open(c,u),!0):!1}}})}function B7(n){return new vt({key:new jt("handlePasteLink"),props:{handlePaste:(e,t,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:l}=s;if(l)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const c=vc(a).find(m=>m.isLink&&m.value===a);if(!a||!c)return!1;const u=(o=t.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=u==null?void 0:u.match(f),p=h?h[1]:c.href;return n.editor.commands.setMark(n.type,{href:p}),!0}}})}const $7=tn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){Ep(n);return}Ep(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[Ro({find:n=>vc(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(n,e)=>{var t,r;const o=(t=e==null?void 0:e.clipboardData)===null||t===void 0?void 0:t.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=n.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(L7({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(R7({type:this.type})),this.options.linkOnPaste&&n.push(B7({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})}}}}),P7=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 i=n.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(n))&&i.content.findDiffStart(n.content)===null;return n.descendants((l,a)=>{const c=r>=a&&r<=a+l.nodeSize,u=!l.isLeaf&&!l.childCount;if((c||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];s&&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)}}})]}}),F7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,V7=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,z7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,H7=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,U7=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[Gi({find:F7,type:this.type}),Gi({find:z7,type:this.type})]},addPasteRules(){return[Ro({find:V7,type:this.type}),Ro({find:H7,type:this.type})]}}),j7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,W7=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,K7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,Y7=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,G7=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[Gi({find:j7,type:this.type}),Gi({find:K7,type:this.type})]},addPasteRules(){return[Ro({find:W7,type:this.type}),Ro({find:Y7,type:this.type})]}}),J7=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()}}}),Z7=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)}}}),X7=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)}}}),Cp=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=Ki(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Sp=/^\s*([-+*])\s$/,Q7=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(X7.name,this.editor.getAttributes(Cp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Ji({find:Sp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ji({find:Sp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Cp.name),editor:this.editor})),[n]}}),q7=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)}}}),wp=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=Ki(n,this.type);return Object.entries(t).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),kp=/^(\d+)\.\s$/,e8=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(q7.name,this.editor.getAttributes(wp.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Ji({find:kp,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=Ji({find:kp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(wp.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),t8=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:i}=t;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&a&&s){const 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()}}}),bc={BASIC:"basic",FULL:"full"},n8={class:"attachment-list"},r8={class:"attachment-link"},o8={key:1,class:"attachment-no-download"},i8=["href"],Us=d.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)=>(d.openBlock(),d.createElementBlock("ul",n8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.files,i=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[d.createElementVNode("div",r8,[r.showDelete?(d.openBlock(),d.createBlock(Qe,{key:0,variant:"remove",onClick:s=>t(i),"aria-label":"verwijder"},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),r.noDownload?(d.openBlock(),d.createElementBlock("div",o8,[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(i.Naam.trim()),1)])):(d.openBlock(),d.createElementBlock("a",{key:2,href:i.downloadUrl},[d.createVNode(d.unref(Qn)),d.createTextVNode(" "+d.toDisplayString(i.Naam.trim()),1)],8,i8))])]))),128))]))}}),s8={class:"attachment-list"},a8={class:"attachment"},l8=["onClick"],c8=["src","alt"],u8=["onClick"],d8=["href"],f8={class:"btn btn-light download-button-image"},h8=["src","alt"],js=d.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(n,{emit:e}){const t=n,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(d.openBlock(),d.createElementBlock("ul",s8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.files,l=>(d.openBlock(),d.createElementBlock("li",{class:"attachment-list__item",key:l.CorrelationId},[d.createElementVNode("div",a8,[i.showDelete?(d.openBlock(),d.createBlock(Qe,{key:0,variant:"remove","aria-label":"verwijder",onClick:d.withModifiers(a=>r(l),["prevent"])},{default:d.withCtx(()=>[d.createVNode(d.unref(ho))]),_:2},1032,["onClick"])):d.createCommentVNode("",!0),t.noDownload?(d.openBlock(),d.createElementBlock("div",{key:1,onClick:a=>o(a,l)},[d.createElementVNode("img",{src:l.previewUrl,class:"img-preview",alt:l.altName,loading:"lazy"},null,8,c8)],8,l8)):(d.openBlock(),d.createElementBlock("div",{key:2,onClick:a=>o(a,l)},[t.fastDownload?(d.openBlock(),d.createElementBlock("a",{key:0,href:l.downloadUrl,class:"download-link"},[d.createElementVNode("button",f8,[d.createVNode(d.unref(oi))])],8,d8)):d.createCommentVNode("",!0),d.createElementVNode("img",{src:l.previewUrl,alt:l.altName,class:"img-preview",loading:"lazy"},null,8,h8)],8,u8))])]))),128))]))}}),Tp=n=>n.Naam.toLowerCase().endsWith(".png")||n.Naam.toLowerCase().endsWith(".jpg")||n.Naam.toLowerCase().endsWith(".jpeg")||n.Naam.toLowerCase().endsWith(".gif"),p8=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,m8=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,g8=n=>n.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${n.conversationId}&fileMetadataId=${n.identifier}`:null,y8=(n,e)=>e?Tp(n):!Tp(n),Ws=(n,e)=>n===void 0?void 0:n.filter(r=>y8(r,e)).map(r=>{const o=typeof r.CorrelationId=="string"?r.CorrelationId:r.CorrelationId!==void 0?r.CorrelationId.toString():"";return{downloadUrl:p8(r),previewUrl:m8(r),fullImageUrl:g8(r),altName:`${r.Naam}`,...r,CorrelationId:o}}),v8={key:0,class:"pills-list__wrapper"},b8={class:"pills-list__ul"},E8={class:"bd-markdown-editor__menu-bottom"},C8={key:0,class:"vr"},Ap=d.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:bc.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=qn(t,"modelValue",e),i=[f7,h7,p7,P7.configure({placeholder:t.placeholder}),t8,$7.configure({openOnClick:!1,validate:M=>/^https?:\/\//i.test(M)})];t.variant===bc.FULL&&i.push(U7,G7,J7,Z7,Q7,e8);const s=d7({content:o.value,extensions:i,onUpdate:({editor:M})=>{const{view:T,state:z}=M,{from:U,to:j}=T.state.selection;if(z.doc.textBetween(U-1,j,"")==" "&&M.getAttributes("link").href!=null&&M.chain().setTextSelection({from:U-1,to:j}).toggleLink({href:M.getAttributes("link").href}).setTextSelection({from:j,to:j}).run(),M.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",M.getHTML())}});d.watch(()=>t.modelValue,M=>{s.value.getHTML()!==M&&s.value.commands.setContent(M,!0,{preserveWhitespace:"full"})});const l=d.computed(()=>t.state===!1?"is-invalid":null),a=d.computed(()=>g("bold")),c=d.computed(()=>g("italic")),u=d.computed(()=>g("underline")),f=d.computed(()=>g("bulletList")),h=d.computed(()=>g("orderedList")),p=d.computed(()=>g("link")),m=d.computed(()=>t.variant===bc.FULL),g=M=>s.value&&s.value.isActive(M)?"active":null,y=d.computed(()=>t.files&&t.files.length>0?Ws(t.files,!1):null),C=d.computed(()=>t.files&&t.files.length>0?Ws(t.files,!0):null),S=M=>{e("action",{name:"delete-attachment",obj:M})},k=M=>{e("action",{name:"image-attachment",obj:M})},b=()=>{const M=s.value.getAttributes("link").href,T=window.prompt("Voeg link toe",M);if(T!==null){if(T===""){s.value.chain().focus().unsetLink().run();return}s.value.chain().focus().toggleLink({href:T}).run()}};return(M,T)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",{class:d.normalizeClass(["bd-markdown-editor",l.value])},[d.createVNode(d.unref(u7),{editor:d.unref(s)},null,8,["editor"]),M.pills?(d.openBlock(),d.createElementBlock("div",v8,[d.createElementVNode("ul",b8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(M.pills,(z,U)=>(d.openBlock(),d.createElementBlock("li",{key:U,class:"pills-list__li"},[d.createVNode(mi,d.normalizeProps(d.guardReactiveProps(z)),null,16)]))),128))])])):d.createCommentVNode("",!0),d.renderSlot(M.$slots,"default"),y.value?(d.openBlock(),d.createBlock(Us,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:S},null,8,["files"])):d.createCommentVNode("",!0),C.value?(d.openBlock(),d.createBlock(js,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:S,onShow:k},null,8,["files"])):d.createCommentVNode("",!0),d.createElementVNode("div",E8,[d.createVNode(Qe,{variant:"light",type:"button",onClick:r},{default:d.withCtx(()=>[d.createVNode(d.unref(Qn))]),_:1}),m.value?(d.openBlock(),d.createElementBlock("div",C8)):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:1,variant:"light",type:"button",class:d.normalizeClass(a.value),onClick:T[0]||(T[0]=z=>d.unref(s).chain().focus().toggleBold().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ca))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:2,variant:"light",type:"button",class:d.normalizeClass(c.value),onClick:T[1]||(T[1]=z=>d.unref(s).chain().focus().toggleItalic().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ga))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:3,variant:"light",type:"button",class:d.normalizeClass(u.value),onClick:T[2]||(T[2]=z=>d.unref(s).chain().focus().toggleUnderline().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(Ca))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:4,variant:"light",type:"button",class:d.normalizeClass(f.value),onClick:T[3]||(T[3]=z=>d.unref(s).chain().focus().toggleBulletList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ua))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:5,variant:"light",type:"button",class:d.normalizeClass(h.value),onClick:T[4]||(T[4]=z=>d.unref(s).chain().focus().toggleOrderedList().run())},{default:d.withCtx(()=>[d.createVNode(d.unref(ya))]),_:1},8,["class"])):d.createCommentVNode("",!0),m.value?(d.openBlock(),d.createBlock(Qe,{key:6,variant:"light",type:"button",class:d.normalizeClass(p.value),onClick:b},{default:d.withCtx(()=>[d.createVNode(d.unref(si))]),_:1},8,["class"])):d.createCommentVNode("",!0)])],2),d.createVNode(d.unref(hi),{text:t.errorText,state:t.state},null,8,["text","state"])],64))}}),S8={class:"header"},w8=d.createElementVNode("div",null,"Menu",-1),k8={class:"icon-close-wrapper"},T8={class:"navbar"},A8={class:"nav navbar-nav w-100"},x8={class:"nav-item"},O8={class:"nav-item"},Ec=d.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>({active:t.active===!0,inactive:t.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,l)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-mobile-menu",r.value])},[d.createElementVNode("div",S8,[w8,d.createElementVNode("div",k8,[d.createVNode(ri,{onClick:o})])]),d.createElementVNode("nav",T8,[d.createElementVNode("ul",A8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.options,a=>(d.openBlock(),d.createElementBlock("li",x8,[d.createVNode(Ar,d.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),d.renderSlot(s.$slots,"special-options"),d.createElementVNode("li",O8,[d.createVNode(Ar,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),M8={class:"bd-user"},N8={class:"bd-user__information"},_8={class:"text-break"},I8={class:"overflow-x-hidden"},xp=d.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=d.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(d.openBlock(),d.createElementBlock("div",M8,[e.hideImage?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(po,d.mergeProps({key:0},e.img,{size:"sm"}),null,16)),d.createElementVNode("div",N8,[d.createElementVNode("header",null,[d.createElementVNode("h5",_8,d.toDisplayString(e.name),1),d.renderSlot(r.$slots,"header-extra")]),d.createElementVNode("span",I8,d.toDisplayString(t.value),1)])]))}}),D8={class:"bd-chat-cloud-card"},L8={class:"bd-chat-cloud-card__header"},R8={class:"bd-chat-cloud-card__body"},B8=["innerHTML"],$8={class:"bd-chat-cloud-card__footer"},P8={key:0,class:"pills-list__wrapper"},F8={class:"pills-list__ul"},Op=d.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},AltProfileImage:{default:""},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(n,{emit:e}){const t=n,r=d.computed(()=>t.isSender?"sender":We),o=d.computed(()=>Ws(t.files,!1)),i=d.computed(()=>Ws(t.files,!0)),s=()=>{e("action","copy-message")},l=a=>{e("show-attachment",a)};return(a,c)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["bd-chat-cloud",r.value])},[d.createVNode(po,{src:t.src,size:"sm"},null,8,["src"]),d.createElementVNode("div",D8,[d.createElementVNode("div",L8,[d.renderSlot(a.$slots,"header",{},()=>[d.createTextVNode(d.toDisplayString(a.headerTitle),1)]),d.createVNode(Qe,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:d.withCtx(()=>[d.createTextVNode(" kopieer ")]),_:1})]),d.createElementVNode("div",R8,[d.renderSlot(a.$slots,"body",{},()=>[d.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:t.message},null,8,B8)])]),d.createElementVNode("div",$8,[d.renderSlot(a.$slots,"footer",{},()=>[a.pills?(d.openBlock(),d.createElementBlock("div",P8,[d.createElementVNode("ul",F8,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(a.pills,(u,f)=>(d.openBlock(),d.createElementBlock("li",{key:f,class:"pills-list__li"},[d.createVNode(mi,d.normalizeProps(d.guardReactiveProps(u)),null,16)]))),128))])])):d.createCommentVNode("",!0),o.value&&o.value.length>0?(d.openBlock(),d.createBlock(Us,{key:1,files:o.value},null,8,["files"])):d.createCommentVNode("",!0),i.value&&i.value.length>0?(d.openBlock(),d.createBlock(js,{key:2,"fast-download":!0,files:i.value,onShow:l},null,8,["files"])):d.createCommentVNode("",!0)])])])],2))}}),V8=d.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(n,{emit:e}){const t=n,r=d.ref(t.sortDesc),o=()=>{t.active&&(r.value=!r.value)},i=()=>{if(!t.active)return;const l=r.value?"sortDesc":"sortAsc";e(l)},s=d.computed(()=>({"bd-table-sort":!0,active:t.active}));return d.watch(()=>t.active,(l,a)=>{l&&!a&&(r.value=!1,e("sortAsc"))}),i(),(l,a)=>(d.openBlock(),d.createElementBlock("th",{class:d.normalizeClass(s.value),onClick:a[0]||(a[0]=c=>{o(),i()})},[d.createElementVNode("span",null,d.toDisplayString(t.label),1),t.active&&!r.value?(d.openBlock(),d.createBlock(d.unref(va),{key:0})):t.active&&r.value?(d.openBlock(),d.createBlock(d.unref(ba),{key:1})):(d.openBlock(),d.createBlock(d.unref(Ea),{key:2}))],2))}}),z8={class:"bd-table"},H8={key:0,class:"table"},U8={key:1},j8=["onClick"],W8={key:0},K8={key:1,class:"empty-text"},Mp=d.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=d.ref(r.items),i=d.ref(r.sortBy),s=f=>i.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})},u=()=>{o.value=r.items};return d.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(d.openBlock(),d.createElementBlock("div",z8,[r.items&&r.items.length>0?(d.openBlock(),d.createElementBlock("table",H8,[d.createElementVNode("thead",null,[d.createElementVNode("tr",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(r.fields,p=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[p.isVisible?(d.openBlock(),d.createElementBlock(d.Fragment,{key:0},[p.sortable?(d.openBlock(),d.createBlock(V8,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>c(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(d.openBlock(),d.createElementBlock("th",U8,d.toDisplayString(p.label),1))],64)):d.createCommentVNode("",!0)],64))),256))])]),d.createElementVNode("tbody",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.value,p=>(d.openBlock(),d.createElementBlock("tr",{class:d.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>t("row-click",p)},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(n.fields,m=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[m.isVisible?(d.openBlock(),d.createElementBlock("td",W8,[f.$slots.hasOwnProperty(m.key)?d.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(d.openBlock(),d.createElementBlock(d.Fragment,{key:1},[d.createTextVNode(d.toDisplayString(p[m.key]),1)],64))])):d.createCommentVNode("",!0)],64))),256))],10,j8))),256))])])):(d.openBlock(),d.createElementBlock("p",K8,d.toDisplayString(r.emptyText),1))]))}}),Y8={class:"template change-password-template"},G8={class:"template-title"},J8={key:0},Z8={key:1},X8=["onSubmit","onReset"],Q8={class:"bd-form-field"},q8={class:"bd-form-field"},e4={class:"bd-form-field"},t4={class:"bd-form-buttons"},Np=d.defineComponent({__name:"BDChangePasswordTemplate",props:{data:{},validation:{},serverErrors:{},errorMessages:{},errorMessageText:{},title:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{}},emits:["submit","reset"],setup(n,{emit:e}){const t=()=>e("submit"),r=()=>e("reset");return(o,i)=>(d.openBlock(),d.createElementBlock("main",Y8,[d.createVNode(ni,{class:"container-xl"},{default:d.withCtx(()=>[d.createVNode(Xn,{class:"justify-content-md-center template-header"},{default:d.withCtx(()=>[d.createVNode(Zn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createElementVNode("h2",G8,d.toDisplayString(o.title),1)]),_:1})]),_:1}),d.createVNode(Xn,{class:"justify-content-md-center"},{default:d.withCtx(()=>[d.createVNode(Zn,{xs:12,md:10,lg:7},{default:d.withCtx(()=>[d.createVNode(fi,{class:"bd-card-template",noHeader:!0},{body:d.withCtx(()=>[d.createVNode(ni,{class:"container-fluid"},{default:d.withCtx(()=>[d.createVNode(Xn,null,{default:d.withCtx(()=>[d.createVNode(Zn,null,{default:d.withCtx(()=>[d.createVNode(ci,{variant:"warning"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.alertText),1)]),_:1})]),_:1})]),_:1}),o.errorMessages||o.errorMessageText?(d.openBlock(),d.createBlock(Xn,{key:0},{default:d.withCtx(()=>[d.createVNode(Zn,null,{default:d.withCtx(()=>[d.createVNode(ci,{variant:"danger"},{default:d.withCtx(()=>[o.errorMessages?(d.openBlock(),d.createElementBlock("div",J8,[d.createElementVNode("ul",null,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o.errorMessages,(s,l)=>(d.openBlock(),d.createElementBlock("li",{key:l},[d.createVNode(Tr),d.createTextVNode(" "+d.toDisplayString(s),1)]))),128))])])):(d.openBlock(),d.createElementBlock("div",Z8,d.toDisplayString(o.errorMessageText),1))]),_:1})]),_:1})]),_:1})):d.createCommentVNode("",!0),d.createVNode(Xn,null,{default:d.withCtx(()=>[d.createVNode(Zn,{class:"bd-card-form",sm:12,md:12},{default:d.withCtx(()=>[d.createElementVNode("form",{onSubmit:d.withModifiers(t,["prevent"]),onReset:d.withModifiers(r,["prevent"]),class:"form"},[d.createElementVNode("div",Q8,[d.createVNode(go,{modelValue:o.data.password,"onUpdate:modelValue":i[0]||(i[0]=s=>o.data.password=s),label:o.currentPasswordLabel,state:o.validation.password.state,type:"password",invalidFeedbackText:o.validation.password.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",q8,[d.createVNode(go,{modelValue:o.data.passwordNew,"onUpdate:modelValue":i[1]||(i[1]=s=>o.data.passwordNew=s),label:o.newPasswordLabel,state:o.validation.passwordNew.state,type:"password",invalidFeedbackText:o.validation.passwordNew.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",e4,[d.createVNode(go,{modelValue:o.data.passwordRepeat,"onUpdate:modelValue":i[2]||(i[2]=s=>o.data.passwordRepeat=s),label:o.confirmNewPasswordLabel,state:o.validation.passwordRepeat.state,type:"password",invalidFeedbackText:o.validation.passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalidFeedbackText"])]),d.createElementVNode("div",t4,[d.createVNode(Qe,{type:"submit"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.submitButtonText),1)]),_:1}),d.createVNode(Qe,{type:"reset",variant:"link"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(o.cancelButtonText),1)]),_:1})])],40,X8)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),Cc=d.defineComponent({__name:"BDDropdown",props:{size:{default:lt.MD},variant:{default:li.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}=xr(),r=`__BD__DROPDOWN__${t.value}`,o=d.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=d.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=d.computed(()=>({"aria-labelledby":r})),l=d.ref(),a=d.ref(),c=()=>{l.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(d.openBlock(),d.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=d.withModifiers(()=>{},["stop"]))},[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.toggleTag),d.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:d.withCtx(()=>[d.createElementVNode("span",null,d.toDisplayString(e.text),1)]),_:1},16)),d.createElementVNode("ul",d.mergeProps({ref_key:"dropdownMenu",ref:l,class:["dropdown-menu",i.value]},s.value,{onClick:c}),[d.renderSlot(u.$slots,"default")],16)]))}}),n4={class:"row bd-header"},r4={class:"col logo-mix"},o4=["src","alt"],i4=d.createElementVNode("div",null,"Menu",-1),s4={key:0,class:"col header-options"},a4={class:"col bd-btn-settings"},l4="sm",_p=d.defineComponent({__name:"BDHeader",props:{dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},organizationLogoAlt:{}},emits:["click","signout"],setup(n,{emit:e}){const t=n,r=d.computed(()=>{let c=[];return t.headerOptions&&(c=c.concat(t.headerOptions)),t.dropdownOptions&&(c=c.concat(t.dropdownOptions)),c}),o=d.ref(void 0),i=()=>e("click"),s=()=>e("signout"),l=()=>o.value=!0,a=()=>o.value=!1;return(c,u)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("nav",n4,[d.createElementVNode("div",r4,[d.createVNode(Sa,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:i}),t.organizationLogoSrc?(d.openBlock(),d.createElementBlock("img",{key:0,class:"logo organization-logo",src:t.organizationLogoSrc,alt:t.organizationLogoAlt},null,8,o4)):d.createCommentVNode("",!0)]),d.createElementVNode("div",{class:"col bd-hamburger",onClick:l},[i4,d.createVNode(ai)]),t.headerOptions&&t.headerOptions.length!==0?(d.openBlock(),d.createElementBlock("div",s4,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.headerOptions,f=>(d.openBlock(),d.createBlock(Qe,{class:"btn-header",to:f.to},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(f.text),1)]),_:2},1032,["to"]))),256))])):d.createCommentVNode("",!0),d.createElementVNode("div",a4,[d.renderSlot(c.$slots,"profile-side"),t.profileImageSrc?(d.openBlock(),d.createBlock(po,{key:0,src:t.profileImageSrc,alt:t.profileImageAlt,size:l4},null,8,["src","alt"])):d.createCommentVNode("",!0),d.createVNode(Cc,{text:t.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:d.withCtx(()=>[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(t.dropdownOptions,(f,h)=>(d.openBlock(),d.createBlock(gi,d.mergeProps({key:h},f),null,16))),128)),d.createVNode(gi,{text:"Uitloggen",onClick:s})]),_:1},8,["text"])])]),d.createVNode(Ec,{active:o.value,options:r.value,onHide:a,onSignout:s},{"special-options":d.withCtx(()=>[d.renderSlot(c.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"])],64))}}),c4={class:"modal bd-modal modal-lg",tabindex:"-1"},u4={class:"modal-dialog"},d4={class:"modal-content"},f4={class:"modal-header"},h4={class:"modal-title"},p4=["src"],m4=d.createElementVNode("span",null,"Sluiten",-1),g4={class:"modal-body"},y4={key:0,class:"modal-footer"},v4=["disabled"],Sc=d.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},disableSubmitButton:{type:Boolean,default:!1}},emits:["submit","cancel"],setup(n,{emit:e}){const t=n,r=()=>e("submit"),o=()=>e("cancel");return(i,s)=>(d.openBlock(),d.createElementBlock("div",c4,[d.createElementVNode("div",u4,[d.createElementVNode("div",d4,[d.createElementVNode("div",f4,[d.createElementVNode("h2",h4,[t.titleImage?(d.openBlock(),d.createElementBlock("img",{key:0,src:t.titleImage,class:"title-image",alt:""},null,8,p4)):d.createCommentVNode("",!0),d.createElementVNode("span",null,d.toDisplayString(t.title),1)]),d.renderSlot(i.$slots,"modal-header-space-between"),d.createElementVNode("button",{type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:o},[m4,d.createVNode(d.unref(ri))])]),d.createElementVNode("div",g4,[d.renderSlot(i.$slots,"default")]),i.hideFooter?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",y4,[t.hideFooterSubmitButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:t.disableSubmitButton,onClick:r},d.toDisplayString(t.submitButtonTitle),9,v4)),d.renderSlot(i.$slots,"buttons"),t.hideFooterCancelButton?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:o,"aria-label":"Annuleren"},d.toDisplayString(t.closeButtonTitle),1))]))])])]))}});/*!
|
|
128
128
|
* Bootstrap v5.3.0 (https://getbootstrap.com/)
|
|
129
129
|
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
130
130
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
131
|
-
*/const zn=new Map,Cc={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)}},g4=1e6,y4=1e3,Sc="transitionend",Ip=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),v4=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),b4=n=>{do n+=Math.floor(Math.random()*g4);while(document.getElementById(n));return n},E4=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))*y4)},Dp=n=>{n.dispatchEvent(new Event(Sc))},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(Ip(n)):null,ro=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",Lp=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?Lp(n.parentNode):null},Ks=()=>{},Go=n=>{n.offsetHeight},Rp=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,wc=[],C4=n=>{document.readyState==="loading"?(wc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of wc)e()}),wc.push(n)):n()},Rt=()=>document.documentElement.dir==="rtl",Bt=n=>{C4(()=>{const e=Rp();if(e){const t=n.NAME,r=e.fn[t];e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=r,n.jQueryInterface)}})},Et=(n,e=[],t=n)=>typeof n=="function"?n(...e):t,Bp=(n,e,t=!0)=>{if(!t){Et(n);return}const r=5,o=E4(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(Sc,s),Et(n))};e.addEventListener(Sc,s),setTimeout(()=>{i||Dp(e)},o)},kc=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},S4=/[^.]*(?=\..*)\.|.*/,w4=/\..*/,k4=/::\d+$/,Tc={};let $p=1;const Pp={mouseenter:"mouseover",mouseleave:"mouseout"},T4=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 Fp(n,e){return e&&`${e}::${$p++}`||n.uidEvent||$p++}function Vp(n){const e=Fp(n);return n.uidEvent=e,Tc[e]=Tc[e]||{},Tc[e]}function A4(n,e){return function t(r){return xc(r,{delegateTarget:n}),t.oneOff&&ie.off(n,r.type,e),e.apply(n,[r])}}function x4(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return xc(o,{delegateTarget:s}),r.oneOff&&ie.off(n,o.type,e,t),t.apply(s,[o])}}function zp(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Hp(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=jp(n);return T4.has(i)||(i=n),[r,o,i]}function Up(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=Hp(e,t,r);e in Pp&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=Vp(n),c=a[l]||(a[l]={}),u=zp(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const f=Fp(s,e.replace(S4,"")),h=i?x4(n,t,s):A4(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=f,c[f]=h,n.addEventListener(l,h,i)}function Ac(n,e,t,r,o){const i=zp(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function O4(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Ac(n,e,t,s.callable,s.delegationSelector)}function jp(n){return n=n.replace(w4,""),Pp[n]||n}const ie={on(n,e,t,r){Up(n,e,t,r,!1)},one(n,e,t,r){Up(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=Hp(e,t,r),l=s!==e,a=Vp(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;Ac(n,a,s,i,o?t:null);return}if(u)for(const f of Object.keys(a))O4(n,a,f,e.slice(1));for(const[f,h]of Object.entries(c)){const p=f.replace(k4,"");(!l||e.includes(p))&&Ac(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Rp(),o=jp(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=xc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function xc(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 Wp(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 Oc(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const bn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${Oc(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${Oc(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]=Wp(n.dataset[r])}return e},getDataAttribute(n,e){return Wp(n.getAttribute(`data-bs-${Oc(e)}`))}};class Jo{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=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 i=e[r],s=vn(i)?"element":v4(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const M4="5.3.0";class Gt extends Jo{constructor(e,t){super(),e=Hn(e),e&&(this._element=e,this._config=this._getConfig(t),Cc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Cc.remove(this._element,this.constructor.DATA_KEY),ie.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Bp(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Cc.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 M4}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Mc=n=>{let e=n.getAttribute("data-bs-target");if(!e||e==="#"){let t=n.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return Ip(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)&&ro(t))},getSelectorFromElement(n){const e=Mc(n);return e&&ke.findOne(e)?e:null},getElementFromSelector(n){const e=Mc(n);return e?ke.findOne(e):null},getMultipleElementsFromSelector(n){const e=Mc(n);return e?ke.find(e):[]}},Ys=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ie.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Un(this))return;const i=ke.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},_4="alert",Kp=".bs.alert",N4=`close${Kp}`,I4=`closed${Kp}`,D4="fade",L4="show";class Gs extends Gt{static get NAME(){return _4}close(){if(ie.trigger(this._element,N4).defaultPrevented)return;this._element.classList.remove(L4);const t=this._element.classList.contains(D4);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ie.trigger(this._element,I4),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Gs.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)}})}}Ys(Gs,"close"),Bt(Gs);const R4="button",B4=".bs.button",$4=".data-api",P4="active",Yp='[data-bs-toggle="button"]',F4=`click${B4}${$4}`;class Js extends Gt{static get NAME(){return R4}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(P4))}static jQueryInterface(e){return this.each(function(){const t=Js.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ie.on(document,F4,Yp,n=>{n.preventDefault();const e=n.target.closest(Yp);Js.getOrCreateInstance(e).toggle()}),Bt(Js);const V4="swipe",oo=".bs.swipe",z4=`touchstart${oo}`,H4=`touchmove${oo}`,U4=`touchend${oo}`,j4=`pointerdown${oo}`,W4=`pointerup${oo}`,K4="touch",Y4="pen",G4="pointer-event",J4=40,Z4={endCallback:null,leftCallback:null,rightCallback:null},X4={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Zs extends Jo{constructor(e,t){super(),this._element=e,!(!e||!Zs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Z4}static get DefaultType(){return X4}static get NAME(){return V4}dispose(){ie.off(this._element,oo)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Et(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=J4)return;const t=e/this._deltaX;this._deltaX=0,t&&Et(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ie.on(this._element,j4,e=>this._start(e)),ie.on(this._element,W4,e=>this._end(e)),this._element.classList.add(G4)):(ie.on(this._element,z4,e=>this._start(e)),ie.on(this._element,H4,e=>this._move(e)),ie.on(this._element,U4,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Y4||e.pointerType===K4)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Q4="carousel",jn=".bs.carousel",Gp=".data-api",q4="ArrowLeft",e6="ArrowRight",t6=500,Zo="next",io="prev",so="left",Xs="right",n6=`slide${jn}`,_c=`slid${jn}`,r6=`keydown${jn}`,o6=`mouseenter${jn}`,i6=`mouseleave${jn}`,s6=`dragstart${jn}`,a6=`load${jn}${Gp}`,l6=`click${jn}${Gp}`,Jp="carousel",Qs="active",c6="slide",u6="carousel-item-end",d6="carousel-item-start",f6="carousel-item-next",h6="carousel-item-prev",Zp=".active",Xp=".carousel-item",p6=Zp+Xp,m6=".carousel-item img",g6=".carousel-indicators",y6="[data-bs-slide], [data-bs-slide-to]",v6='[data-bs-ride="carousel"]',b6={[q4]:Xs,[e6]:so},E6={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},C6={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xo extends Gt{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(g6,this._element),this._addEventListeners(),this._config.ride===Jp&&this.cycle()}static get Default(){return E6}static get DefaultType(){return C6}static get NAME(){return Q4}next(){this._slide(Zo)}nextWhenVisible(){!document.hidden&&ro(this._element)&&this.next()}prev(){this._slide(io)}pause(){this._isSliding&&Dp(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){ie.one(this._element,_c,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ie.one(this._element,_c,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Zo: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&&ie.on(this._element,r6,e=>this._keydown(e)),this._config.pause==="hover"&&(ie.on(this._element,o6,()=>this.pause()),ie.on(this._element,i6,()=>this._maybeEnableCycle())),this._config.touch&&Zs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ke.find(m6,this._element))ie.on(r,s6,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(so)),rightCallback:()=>this._slide(this._directionToOrder(Xs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),t6+this._config.interval))}};this._swipeHelper=new Zs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=b6[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(Zp,this._indicatorsElement);t.classList.remove(Qs),t.removeAttribute("aria-current");const r=ke.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Qs),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===Zo,i=t||kc(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=p=>ie.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(n6).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?d6:u6,f=o?f6:h6;i.classList.add(f),Go(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(Qs),r.classList.remove(Qs,f,u),this._isSliding=!1,l(_c)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(c6)}_getActive(){return ke.findOne(p6,this._element)}_getItems(){return ke.find(Xp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Rt()?e===so?io:Zo:e===so?Zo:io}_orderToDirection(e){return Rt()?e===io?so:Xs:e===io?Xs:so}static jQueryInterface(e){return this.each(function(){const t=Xo.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]()}})}}ie.on(document,l6,y6,function(n){const e=ke.getElementFromSelector(this);if(!e||!e.classList.contains(Jp))return;n.preventDefault();const t=Xo.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()}),ie.on(window,a6,()=>{const n=ke.find(v6);for(const e of n)Xo.getOrCreateInstance(e)}),Bt(Xo);const S6="collapse",Qo=".bs.collapse",w6=".data-api",k6=`show${Qo}`,T6=`shown${Qo}`,A6=`hide${Qo}`,x6=`hidden${Qo}`,O6=`click${Qo}${w6}`,Nc="show",ao="collapse",qs="collapsing",M6="collapsed",_6=`:scope .${ao} .${ao}`,N6="collapse-horizontal",I6="width",D6="height",L6=".collapse.show, .collapse.collapsing",Ic='[data-bs-toggle="collapse"]',R6={parent:null,toggle:!0},B6={parent:"(null|element)",toggle:"boolean"};class qo extends Gt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ke.find(Ic);for(const o of r){const i=ke.getSelectorFromElement(o),s=ke.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return R6}static get DefaultType(){return B6}static get NAME(){return S6}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(L6).filter(l=>l!==this._element).map(l=>qo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ie.trigger(this._element,k6).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(ao),this._element.classList.add(qs),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(qs),this._element.classList.add(ao,Nc),this._element.style[r]="",ie.trigger(this._element,T6)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ie.trigger(this._element,A6).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Go(this._element),this._element.classList.add(qs),this._element.classList.remove(ao,Nc);for(const o of this._triggerArray){const i=ke.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(qs),this._element.classList.add(ao),ie.trigger(this._element,x6)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Nc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Hn(e.parent),e}_getDimension(){return this._element.classList.contains(N6)?I6:D6}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Ic);for(const t of e){const r=ke.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ke.find(_6,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(M6,!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=qo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ie.on(document,O6,Ic,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ke.getMultipleElementsFromSelector(this))qo.getOrCreateInstance(e,{toggle:!1}).toggle()}),Bt(qo);const Qp="dropdown",vr=".bs.dropdown",Dc=".data-api",$6="Escape",qp="Tab",P6="ArrowUp",em="ArrowDown",F6=2,V6=`hide${vr}`,z6=`hidden${vr}`,H6=`show${vr}`,U6=`shown${vr}`,tm=`click${vr}${Dc}`,nm=`keydown${vr}${Dc}`,j6=`keyup${vr}${Dc}`,lo="show",W6="dropup",K6="dropend",Y6="dropstart",G6="dropup-center",J6="dropdown-center",br='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Z6=`${br}.${lo}`,ea=".dropdown-menu",X6=".navbar",Q6=".navbar-nav",q6=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",eC=Rt()?"top-end":"top-start",tC=Rt()?"top-start":"top-end",nC=Rt()?"bottom-end":"bottom-start",rC=Rt()?"bottom-start":"bottom-end",oC=Rt()?"left-start":"right-start",iC=Rt()?"right-start":"left-start",sC="top",aC="bottom",lC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},cC={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class an extends Gt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ke.next(this._element,ea)[0]||ke.prev(this._element,ea)[0]||ke.findOne(ea,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return lC}static get DefaultType(){return cC}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(!ie.trigger(this._element,H6,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Q6))for(const r of[].concat(...document.body.children))ie.on(r,"mouseover",Ks);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(lo),this._element.classList.add(lo),ie.trigger(this._element,U6,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(!ie.trigger(this._element,V6,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ie.off(r,"mouseover",Ks);this._popper&&this._popper.destroy(),this._menu.classList.remove(lo),this._element.classList.remove(lo),this._element.setAttribute("aria-expanded","false"),bn.removeDataAttribute(this._menu,"popper"),ie.trigger(this._element,z6,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 Rh>"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=rs(e,this._menu,t)}_isShown(){return this._menu.classList.contains(lo)}_getPlacement(){const e=this._parent;if(e.classList.contains(K6))return oC;if(e.classList.contains(Y6))return iC;if(e.classList.contains(G6))return sC;if(e.classList.contains(J6))return aC;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(W6)?t?tC:eC:t?rC:nC}_detectNavbar(){return this._element.closest(X6)!==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,...Et(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const r=ke.find(q6,this._menu).filter(o=>ro(o));r.length&&kc(r,t,e===em,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=an.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===F6||e.type==="keyup"&&e.key!==qp)return;const t=ke.find(Z6);for(const r of t){const o=an.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===qp||/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===$6,o=[P6,em].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(br)?this:ke.prev(this,br)[0]||ke.next(this,br)[0]||ke.findOne(br,e.delegateTarget.parentNode),s=an.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ie.on(document,nm,br,an.dataApiKeydownHandler),ie.on(document,nm,ea,an.dataApiKeydownHandler),ie.on(document,tm,an.clearMenus),ie.on(document,j6,an.clearMenus),ie.on(document,tm,br,function(n){n.preventDefault(),an.getOrCreateInstance(this).toggle()}),Bt(an);const rm="backdrop",uC="fade",om="show",im=`mousedown.bs.${rm}`,dC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},fC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class sm extends Jo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return dC}static get DefaultType(){return fC}static get NAME(){return rm}show(e){if(!this._config.isVisible){Et(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Go(t),t.classList.add(om),this._emulateAnimation(()=>{Et(e)})}hide(e){if(!this._config.isVisible){Et(e);return}this._getElement().classList.remove(om),this._emulateAnimation(()=>{this.dispose(),Et(e)})}dispose(){this._isAppended&&(ie.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(uC),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),ie.on(e,im,()=>{Et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Bp(e,this._getElement(),this._config.isAnimated)}}const hC="focustrap",ta=".bs.focustrap",pC=`focusin${ta}`,mC=`keydown.tab${ta}`,gC="Tab",yC="forward",am="backward",vC={autofocus:!0,trapElement:null},bC={autofocus:"boolean",trapElement:"element"};class lm extends Jo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return vC}static get DefaultType(){return bC}static get NAME(){return hC}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ie.off(document,ta),ie.on(document,pC,e=>this._handleFocusin(e)),ie.on(document,mC,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ie.off(document,ta))}_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===am?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===gC&&(this._lastTabNavDirection=e.shiftKey?am:yC)}}const cm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",um=".sticky-top",na="padding-right",dm="margin-right";class Lc{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,na,t=>t+e),this._setElementAttributes(cm,na,t=>t+e),this._setElementAttributes(um,dm,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,na),this._resetElementAttributes(cm,na),this._resetElementAttributes(um,dm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&bn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=bn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}bn.removeDataAttribute(o,t),o.style.setProperty(t,i)};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 EC="modal",$t=".bs.modal",CC=".data-api",SC="Escape",wC=`hide${$t}`,kC=`hidePrevented${$t}`,fm=`hidden${$t}`,hm=`show${$t}`,TC=`shown${$t}`,AC=`resize${$t}`,xC=`click.dismiss${$t}`,OC=`mousedown.dismiss${$t}`,MC=`keydown.dismiss${$t}`,_C=`click${$t}${CC}`,pm="modal-open",NC="fade",mm="show",Rc="modal-static",IC=".modal.show",DC=".modal-dialog",LC=".modal-body",RC='[data-bs-toggle="modal"]',BC={backdrop:!0,focus:!0,keyboard:!0},$C={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Wn extends Gt{constructor(e,t){super(e,t),this._dialog=ke.findOne(DC,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Lc,this._addEventListeners()}static get Default(){return BC}static get DefaultType(){return $C}static get NAME(){return EC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ie.trigger(this._element,hm,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(pm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ie.trigger(this._element,wC).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(mm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ie.off(window,$t),ie.off(this._dialog,$t),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new sm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new lm({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(LC,this._dialog);t&&(t.scrollTop=0),Go(this._element),this._element.classList.add(mm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ie.trigger(this._element,TC,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ie.on(this._element,MC,e=>{if(e.key===SC){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ie.on(window,AC,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ie.on(this._element,OC,e=>{ie.one(this._element,xC,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(pm),this._resetAdjustments(),this._scrollBar.reset(),ie.trigger(this._element,fm)})}_isAnimated(){return this._element.classList.contains(NC)}_triggerBackdropTransition(){if(ie.trigger(this._element,kC).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Rc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Rc),this._queueCallback(()=>{this._element.classList.remove(Rc),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){const o=Rt()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){const o=Rt()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const r=Wn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}}ie.on(document,_C,RC,function(n){const e=ke.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ie.one(e,hm,o=>{o.defaultPrevented||ie.one(e,fm,()=>{ro(this)&&this.focus()})});const t=ke.findOne(IC);t&&Wn.getInstance(t).hide(),Wn.getOrCreateInstance(e).toggle(this)}),Ys(Wn),Bt(Wn);const PC="offcanvas",En=".bs.offcanvas",gm=".data-api",FC=`load${En}${gm}`,VC="Escape",ym="show",vm="showing",bm="hiding",zC="offcanvas-backdrop",Em=".offcanvas.show",HC=`show${En}`,UC=`shown${En}`,jC=`hide${En}`,Cm=`hidePrevented${En}`,Sm=`hidden${En}`,WC=`resize${En}`,KC=`click${En}${gm}`,YC=`keydown.dismiss${En}`,GC='[data-bs-toggle="offcanvas"]',JC={backdrop:!0,keyboard:!0,scroll:!1},ZC={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Kn extends Gt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return JC}static get DefaultType(){return ZC}static get NAME(){return PC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ie.trigger(this._element,HC,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Lc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(vm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ym),this._element.classList.remove(vm),ie.trigger(this._element,UC,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ie.trigger(this._element,jC).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(bm),this._backdrop.hide();const t=()=>{this._element.classList.remove(ym,bm),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Lc().reset(),ie.trigger(this._element,Sm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ie.trigger(this._element,Cm);return}this.hide()},t=!!this._config.backdrop;return new sm({className:zC,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new lm({trapElement:this._element})}_addEventListeners(){ie.on(this._element,YC,e=>{if(e.key===VC){if(this._config.keyboard){this.hide();return}ie.trigger(this._element,Cm)}})}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)}})}}ie.on(document,KC,GC,function(n){const e=ke.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Un(this))return;ie.one(e,Sm,()=>{ro(this)&&this.focus()});const t=ke.findOne(Em);t&&t!==e&&Kn.getInstance(t).hide(),Kn.getOrCreateInstance(e).toggle(this)}),ie.on(window,FC,()=>{for(const n of ke.find(Em))Kn.getOrCreateInstance(n).show()}),ie.on(window,WC,()=>{for(const n of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Kn.getOrCreateInstance(n).hide()}),Ys(Kn),Bt(Kn);const wm={"*":["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:[]},XC=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),QC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,qC=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?XC.has(t)?!!QC.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function eS(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)qC(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const tS="TemplateFactory",nS={allowList:wm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},rS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},oS={entry:"(string|element|function|null)",selector:"(string|element)"};class iS extends Jo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return nS}static get DefaultType(){return rS}static get NAME(){return tS}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},oS)}_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?eS(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Et(e,[this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}}const sS="tooltip",aS=new Set(["sanitize","allowList","sanitizeFn"]),Bc="fade",lS="modal",ra="show",cS=".tooltip-inner",km=`.${lS}`,Tm="hide.bs.modal",ei="hover",$c="focus",uS="click",dS="manual",fS="hide",hS="hidden",pS="show",mS="shown",gS="inserted",yS="click",vS="focusin",bS="focusout",ES="mouseenter",CS="mouseleave",SS={AUTO:"auto",TOP:"top",RIGHT:Rt()?"left":"right",BOTTOM:"bottom",LEFT:Rt()?"right":"left"},wS={allowList:wm,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"},kS={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 Er extends Gt{constructor(e,t){if(typeof Rh>"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 wS}static get DefaultType(){return kS}static get NAME(){return sS}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),ie.off(this._element.closest(km),Tm,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=ie.trigger(this._element,this.constructor.eventName(pS)),r=(Lp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ie.trigger(this._element,this.constructor.eventName(gS))),this._popper=this._createPopper(o),o.classList.add(ra),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ie.on(l,"mouseover",Ks);const s=()=>{ie.trigger(this._element,this.constructor.eventName(mS)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ie.trigger(this._element,this.constructor.eventName(fS)).defaultPrevented)return;if(this._getTipElement().classList.remove(ra),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ie.off(o,"mouseover",Ks);this._activeTrigger[uS]=!1,this._activeTrigger[$c]=!1,this._activeTrigger[ei]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ie.trigger(this._element,this.constructor.eventName(hS)))};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(Bc,ra),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=b4(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Bc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new iS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[cS]: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(Bc)}_isShown(){return this.tip&&this.tip.classList.contains(ra)}_createPopper(e){const t=Et(this._config.placement,[this,e,this._element]),r=SS[t.toUpperCase()];return rs(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Et(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...Et(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")ie.on(this._element,this.constructor.eventName(yS),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==dS){const r=t===ei?this.constructor.eventName(ES):this.constructor.eventName(vS),o=t===ei?this.constructor.eventName(CS):this.constructor.eventName(bS);ie.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?$c:ei]=!0,s._enter()}),ie.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?$c:ei]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ie.on(this._element.closest(km),Tm,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))aS.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=Er.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Bt(Er);const TS="popover",AS=".popover-header",xS=".popover-body",OS={...Er.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"},MS={...Er.DefaultType,content:"(null|string|element|function)"};class Pc extends Er{static get Default(){return OS}static get DefaultType(){return MS}static get NAME(){return TS}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[AS]:this._getTitle(),[xS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Pc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}Bt(Pc);const _S="scrollspy",Fc=".bs.scrollspy",NS=".data-api",IS=`activate${Fc}`,Am=`click${Fc}`,DS=`load${Fc}${NS}`,LS="dropdown-item",co="active",RS='[data-bs-spy="scroll"]',Vc="[href]",BS=".nav, .list-group",xm=".nav-link",$S=`${xm}, .nav-item > ${xm}, .list-group-item`,PS=".dropdown",FS=".dropdown-toggle",VS={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},zS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class oa extends Gt{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 VS}static get DefaultType(){return zS}static get NAME(){return _S}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&&(ie.off(this._config.target,Am),ie.on(this._config.target,Am,Vc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ke.find(Vc,this._config.target);for(const t of e){if(!t.hash||Un(t))continue;const r=ke.findOne(decodeURI(t.hash),this._element);ro(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(co),this._activateParents(e),ie.trigger(this._element,IS,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(LS)){ke.findOne(FS,e.closest(PS)).classList.add(co);return}for(const t of ke.parents(e,BS))for(const r of ke.prev(t,$S))r.classList.add(co)}_clearActiveClass(e){e.classList.remove(co);const t=ke.find(`${Vc}.${co}`,e);for(const r of t)r.classList.remove(co)}static jQueryInterface(e){return this.each(function(){const t=oa.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]()}})}}ie.on(window,DS,()=>{for(const n of ke.find(RS))oa.getOrCreateInstance(n)}),Bt(oa);const HS="tab",Cr=".bs.tab",US=`hide${Cr}`,jS=`hidden${Cr}`,WS=`show${Cr}`,KS=`shown${Cr}`,YS=`click${Cr}`,GS=`keydown${Cr}`,JS=`load${Cr}`,ZS="ArrowLeft",Om="ArrowRight",XS="ArrowUp",Mm="ArrowDown",Sr="active",_m="fade",zc="show",QS="dropdown",qS=".dropdown-toggle",ew=".dropdown-menu",Hc=":not(.dropdown-toggle)",tw='.list-group, .nav, [role="tablist"]',nw=".nav-item, .list-group-item",rw=`.nav-link${Hc}, .list-group-item${Hc}, [role="tab"]${Hc}`,Nm='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Uc=`${rw}, ${Nm}`,ow=`.${Sr}[data-bs-toggle="tab"], .${Sr}[data-bs-toggle="pill"], .${Sr}[data-bs-toggle="list"]`;class uo extends Gt{constructor(e){super(e),this._parent=this._element.closest(tw),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ie.on(this._element,GS,t=>this._keydown(t)))}static get NAME(){return HS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ie.trigger(t,US,{relatedTarget:e}):null;ie.trigger(e,WS,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Sr),this._activate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(zc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ie.trigger(e,KS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(_m))}_deactivate(e,t){if(!e)return;e.classList.remove(Sr),e.blur(),this._deactivate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(zc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ie.trigger(e,jS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(_m))}_keydown(e){if(![ZS,Om,XS,Mm].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Om,Mm].includes(e.key),r=kc(this._getChildren().filter(o=>!Un(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),uo.getOrCreateInstance(r).show())}_getChildren(){return ke.find(Uc,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(QS))return;const o=(i,s)=>{const l=ke.findOne(i,r);l&&l.classList.toggle(s,t)};o(qS,Sr),o(ew,zc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(Sr)}_getInnerElement(e){return e.matches(Uc)?e:ke.findOne(Uc,e)}_getOuterElement(e){return e.closest(nw)||e}static jQueryInterface(e){return this.each(function(){const t=uo.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ie.on(document,YS,Nm,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Un(this)&&uo.getOrCreateInstance(this).show()}),ie.on(window,JS,()=>{for(const n of ke.find(ow))uo.getOrCreateInstance(n)}),Bt(uo);const iw="toast",Yn=".bs.toast",sw=`mouseover${Yn}`,aw=`mouseout${Yn}`,lw=`focusin${Yn}`,cw=`focusout${Yn}`,uw=`hide${Yn}`,dw=`hidden${Yn}`,fw=`show${Yn}`,hw=`shown${Yn}`,pw="fade",Im="hide",ia="show",sa="showing",mw={animation:"boolean",autohide:"boolean",delay:"number"},gw={animation:!0,autohide:!0,delay:5e3};class ti extends Gt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return gw}static get DefaultType(){return mw}static get NAME(){return iw}show(){if(ie.trigger(this._element,fw).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(pw);const t=()=>{this._element.classList.remove(sa),ie.trigger(this._element,hw),this._maybeScheduleHide()};this._element.classList.remove(Im),Go(this._element),this._element.classList.add(ia,sa),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ie.trigger(this._element,uw).defaultPrevented)return;const t=()=>{this._element.classList.add(Im),this._element.classList.remove(sa,ia),ie.trigger(this._element,dw)};this._element.classList.add(sa),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ia),super.dispose()}isShown(){return this._element.classList.contains(ia)}_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(){ie.on(this._element,sw,e=>this._onInteraction(e,!0)),ie.on(this._element,aw,e=>this._onInteraction(e,!1)),ie.on(this._element,lw,e=>this._onInteraction(e,!0)),ie.on(this._element,cw,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=ti.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Ys(ti),Bt(ti);const yw=n=>{const e=d.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 i=Wn.getInstance(o);i&&i.hide()}}}};function Dm(n=void 0){const e=l=>i("Succesvol",l,Or.SUCCESS),t=l=>i("Waarschuwing",l,Or.WARNING),r=l=>i("Informatie",l,Or.INFO),o=l=>i("Mislukt",l,Or.DANGER);function i(l,a,c){const u=`toast-${pu()}`,f={id:u,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=d.h(Aa,f),g=d.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(ti.getOrCreateInstance(y,n).show(),s(y))}function s(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),u={attributes:!0};c.observe(l,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const vw=n=>Array.isArray(n)&&n.length>0,{showDangerToast:bw}=Dm();function Ew(n){const e=d.ref(null),t=(a,c="serverErrors")=>{var f;let u=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?u=a.response.data.filter(h=>pi(h.ErrorMessage)&&h.ErrorMessage!==un):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,pi(c))e.value=u;else if(Array.isArray(c)){let h=e.value;for(let p=0;p<c.length;p++)p===c.length-1?h[c[p]]=u:h=h[c[p]]}r(a),s(e)},r=a=>{const u=new URL(a.request.responseURL).pathname;if(u in n.error){const f=n.error[u];f&&bw(f)}},o=d.ref(null),i=d.ref(""),s=a=>{vw(a.value)?o.value=a.value.map(c=>pi(c)?c:c.ErrorMessage):pi(a.value)&&(i.value=a.value)};function l(){e.value=null,o.value=null,i.value=un}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:t,ResetServerErrors:l}}const Cw=()=>({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}}),Lm={mounted:n=>{new Er(n)}};var Rm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(xa,function(){var t=1e3,r=6e4,o=36e5,i="millisecond",s="second",l="minute",a="hour",c="day",u="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(H){var F=["th","st","nd","rd"],$=H%100;return"["+H+(F[($-20)%10]||F[$]||F[0])+"]"}},k=function(H,F,$){var G=String(H);return!G||G.length>=F?H:""+Array(F+1-G.length).join($)+H},b={s:k,z:function(H){var F=-H.utcOffset(),$=Math.abs(F),G=Math.floor($/60),D=$%60;return(F<=0?"+":"-")+k(G,2,"0")+":"+k(D,2,"0")},m:function H(F,$){if(F.date()<$.date())return-H($,F);var G=12*($.year()-F.year())+($.month()-F.month()),D=F.clone().add(G,f),Q=$-D<0,te=F.clone().add(G+(Q?-1:1),f);return+(-(G+($-D)/(Q?D-te:te-D))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:f,y:p,w:u,d:c,D:m,h:a,m:l,s,ms:i,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},M="en",T={};T[M]=S;var z="$isDayjsObject",U=function(H){return H instanceof V||!(!H||!H[z])},j=function H(F,$,G){var D;if(!F)return M;if(typeof F=="string"){var Q=F.toLowerCase();T[Q]&&(D=Q),$&&(T[Q]=$,D=Q);var te=F.split("-");if(!D&&te.length>1)return H(te[0])}else{var ce=F.name;T[ce]=F,D=ce}return!G&&D&&(M=D),D||!G&&M},P=function(H,F){if(U(H))return H.clone();var $=typeof F=="object"?F:{};return $.date=H,$.args=arguments,new V($)},L=b;L.l=j,L.i=U,L.w=function(H,F){return P(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var V=function(){function H($){this.$L=j($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[z]=!0}var F=H.prototype;return F.parse=function($){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)}($),this.init()},F.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function($,G){var D=P($);return this.startOf(G)<=D&&D<=this.endOf(G)},F.isAfter=function($,G){return P($)<this.startOf(G)},F.isBefore=function($,G){return this.endOf(G)<P($)},F.$g=function($,G,D){return L.u($)?this[G]:this.set(D,$)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function($,G){var D=this,Q=!!L.u(G)||G,te=L.p($),ce=function(O,w){var x=L.w(D.$u?Date.UTC(D.$y,w,O):new Date(D.$y,w,O),D);return Q?x:x.endOf(c)},me=function(O,w){return L.w(D.toDate()[O].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 u:var ve=this.$locale().weekStart||0,A=(ge<ve?ge+7:ge)-ve;return ce(Q?we-A:we+(6-A),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 s:return me(Te+"Milliseconds",3);default:return this.clone()}},F.endOf=function($){return this.startOf($,!1)},F.$set=function($,G){var D,Q=L.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[s]=te+"Seconds",D[i]=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($,G){return this.clone().$set($,G)},F.get=function($){return this[L.p($)]()},F.add=function($,G){var D,Q=this;$=Number($);var te=L.p(G),ce=function(Ce){var we=P(Q);return L.w(we.date(we.date()+Math.round(Ce*$)),Q)};if(te===f)return this.set(f,this.$M+$);if(te===p)return this.set(p,this.$y+$);if(te===c)return ce(1);if(te===u)return ce(7);var me=(D={},D[l]=r,D[a]=o,D[s]=t,D)[te]||1,ge=this.$d.getTime()+$*me;return L.w(ge,this)},F.subtract=function($,G){return this.add(-1*$,G)},F.format=function($){var G=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var Q=$||"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,x,v,E){return w&&(w[x]||w(G,Q))||v[x].slice(0,E)},A=function(w){return L.s(ce%12||12,w,"0")},O=Te||function(w,x,v){var E=w<12?"AM":"PM";return v?E.toLowerCase():E};return Q.replace(C,function(w,x){return x||function(v){switch(v){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 A(1);case"hh":return A(2);case"a":return O(ce,me,!0);case"A":return O(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($,G,D){var Q,te=this,ce=L.p(G),me=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 u: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 s: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($,G){if(!$)return this.$L;var D=this.clone(),Q=j($,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()},H}(),W=V.prototype;return P.prototype=W,[["$ms",i],["$s",s],["$m",l],["$H",a],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(H){W[H[1]]=function(F){return this.$g(F,H[0],H[1])}}),P.extend=function(H,F){return H.$i||(H(F,V,P),H.$i=!0),P},P.locale=j,P.isDayjs=U,P.unix=function(H){return P(1e3*H)},P.en=T[M],P.Ls=T,P.p={},P})})(Rm);var Bm=Rm.exports;const aa=Oa(Bm);var Sw={exports:{}};(function(n,e){(function(t,r){n.exports=r(Bm)})(xa,function(t){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(t),i={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(s){return"["+s+(s===1||s===8||s>=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(i,null,!0),i})})(Sw);var $m={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(xa,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/,i=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,a={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=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 b=1;b<=24;b+=1)if(y.indexOf(k(b,0,C))>-1){S=b>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:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("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:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("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+/,u("year")],YY:[i,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("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(P,L,V){var W=V&&V.toUpperCase();return L||S[V]||t[V]||S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,F,$){return F||$.slice(1)})})).match(r),b=k.length,M=0;M<b;M+=1){var T=k[M],z=m[T],U=z&&z[0],j=z&&z[1];k[M]=j?{regex:U,parser:j}:T.replace(/^\[|\]$/g,"")}return function(P){for(var L={},V=0,W=0;V<b;V+=1){var H=k[V];if(typeof H=="string")W+=H.length;else{var F=H.regex,$=H.parser,G=P.slice(W),D=F.exec(G)[0];$.call(L,D),P=P.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,b=k.parse;k.parse=function(M){var T=M.date,z=M.utc,U=M.args;this.$u=z;var j=U[1];if(typeof j=="string"){var P=U[2]===!0,L=U[3]===!0,V=P||L,W=U[2];L&&(W=U[2]),a=this.$locale(),!P&&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,A=ce.milliseconds,O=ce.zone,w=ce.week,x=new Date,v=Ce||(me||ge?1:x.getDate()),E=me||x.getFullYear(),N=0;me&&!ge||(N=ge>0?ge-1:x.getMonth());var I,R=we||0,B=Te||0,K=ve||0,J=A||0;return O?new Date(Date.UTC(E,N,v,R,B,K,J+60*O.offset*1e3)):Q?new Date(Date.UTC(E,N,v,R,B,K,J)):(I=new Date(E,N,v,R,B,K,J),w&&(I=te(I).week(w).toDate()),I)}catch{return new Date("")}}(T,j,z,S),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),V&&T!=this.format(j)&&(this.$d=new Date("")),a={}}else if(j instanceof Array)for(var H=j.length,F=1;F<=H;F+=1){U[1]=j[F-1];var $=S.apply(this,U);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}F===H&&(this.$d=new Date(""))}else b.call(this,M)}}})})($m);var ww=$m.exports;const kw=Oa(ww);aa.extend(kw),aa.locale("nl");function Tw(n,e=aa().startOf("day")){const t="DD-MM-YYYY",r=aa(n,t);if(r.isSame(e))return"vandaag";const i=e.subtract(1,"day");if(r.isSame(i))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 Aw={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"},tt=d.defineComponent({__name:"BDButton",props:{size:{default:at.MD},variant:{default:Aw.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=d.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=d.computed(()=>t.to?Ar:"button"),i=d.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=l=>{e("click",l)};return(l,a)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(o.value),d.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:d.withCtx(()=>[d.renderSlot(l.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),xw={install:n=>{n.component("BDCol",Zn),n.component("BDContainer",ni),n.component("BDRow",Xn),n.component("BDButton",tt),n.component("BDLogo",Sa),n.component("BDLink",Ar),n.component("BDDropdownItem",gi),n.component("BDDropdown",Ec),n.component("BDAlert",ci),n.component("BDProfileImage",po),n.component("BDZoomslider",du),n.component("BDCard",fi),n.component("BDCollapsableCard",mu),n.component("BDFormInput",go),n.component("BDInputGroup",Eu),n.component("BDFormInvalidFeedback",hi),n.component("BDBadge",Cu),n.component("BDForm",Su),n.component("BDPagination",wu),n.component("BDDropzone",Mu),n.component("BDMarkdownEditor",Tp),n.component("BDModal",_p),n.component("BDFormSelect",ku),n.component("BDUser",Ap),n.component("BDArticle",Au),n.component("BDFormCheckbox",Tu),n.component("BDToast",Aa),n.component("BDAttachmentPreviewList",Us),n.component("BDImageAttachmentPreviewList",js),n.component("BDHeader",Mp),n.component("BDMobileMenu",bc),n.component("BDChatCloud",xp),n.component("BDTable",Op),n.component("BDChangePasswordTemplate",Np),n.component("BDPill",mi),n.component("IconAcademy",Zc),n.component("IconArrowDown",Xc),n.component("IconArrowUp",Qc),n.component("IconAttachment",Qn),n.component("IconBold",ca),n.component("IconBulletList",ua),n.component("IconCalendar",da),n.component("IconCalendar",da),n.component("IconCardView",qc),n.component("IconCaretDown",fa),n.component("IconCaretLeft",ha),n.component("IconCaretRight",pa),n.component("IconCheck",kr),n.component("IconClose",ri),n.component("IconComment",ng),n.component("IconDownloadImage",oi),n.component("IconDownloadImage",oi),n.component("IconEdit",eu),n.component("IconError",ii),n.component("IconEyeShow",tu),n.component("IconEyeSlash",nu),n.component("IconFile",ma),n.component("IconHyperlink",si),n.component("IconInfo",Tr),n.component("IconItalic",ga),n.component("IconListView",ru),n.component("IconMenu",ai),n.component("IconMenu",ai),n.component("IconOrderedList",ya),n.component("IconRemove",ho),n.component("IconService",ou),n.component("IconSort",iu),n.component("IconSortAsc",va),n.component("IconSortDesc",ba),n.component("IconSortNone",Ea),n.component("IconTriangleExclamation",su),n.component("IconUnderline",Ca),n.component("IconContactPerson",au),n.directive("vBDTooltip",Lm)}};he.BDAlert=ci,he.BDArticle=Au,he.BDAttachmentPreviewList=Us,he.BDBadge=Cu,he.BDButton=tt,he.BDCard=fi,he.BDChangePasswordTemplate=Np,he.BDChatCloud=xp,he.BDCol=Zn,he.BDCollapsableCard=mu,he.BDContainer=ni,he.BDDropdown=Ec,he.BDDropdownItem=gi,he.BDDropzone=Mu,he.BDForm=Su,he.BDFormCheckbox=Tu,he.BDFormInput=go,he.BDFormInvalidFeedback=hi,he.BDFormSelect=ku,he.BDHeader=Mp,he.BDImageAttachmentPreviewList=js,he.BDInputGroup=Eu,he.BDLink=Ar,he.BDLogo=Sa,he.BDMarkdownEditor=Tp,he.BDMobileMenu=bc,he.BDModal=_p,he.BDPagination=wu,he.BDPill=mi,he.BDProfileImage=po,he.BDRow=Xn,he.BDTable=Op,he.BDToast=Aa,he.BDUser=Ap,he.BDZoomslider=du,he.IconAcademy=Zc,he.IconArrowDown=Xc,he.IconArrowUp=Qc,he.IconAttachment=Qn,he.IconBold=ca,he.IconBulletList=ua,he.IconCalendar=da,he.IconCardView=qc,he.IconCaretDown=fa,he.IconCaretLeft=ha,he.IconCaretRight=pa,he.IconCheck=kr,he.IconClose=ri,he.IconContactPerson=au,he.IconDownloadImage=oi,he.IconEdit=eu,he.IconError=ii,he.IconEyeShow=tu,he.IconEyeSlash=nu,he.IconFile=ma,he.IconHyperlink=si,he.IconInfo=Tr,he.IconItalic=ga,he.IconListView=ru,he.IconMenu=ai,he.IconOrderedList=ya,he.IconRemove=ho,he.IconService=ou,he.IconSort=iu,he.IconSortAsc=va,he.IconSortDesc=ba,he.IconSortNone=Ea,he.IconTriangleExclamation=su,he.IconUnderline=Ca,he.default=xw,he.getDisplayDate=Tw,he.useModal=yw,he.useServerErrors=Ew,he.useToaster=Dm,he.useValidation=Cw,he.vBdTooltip=Lm,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
131
|
+
*/const zn=new Map,wc={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)}},b4=1e6,E4=1e3,kc="transitionend",Ip=n=>(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),n),C4=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),S4=n=>{do n+=Math.floor(Math.random()*b4);while(document.getElementById(n));return n},w4=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)},Dp=n=>{n.dispatchEvent(new Event(kc))},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(Ip(n)):null,ro=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",Lp=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?Lp(n.parentNode):null},Ks=()=>{},Go=n=>{n.offsetHeight},Rp=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Tc=[],k4=n=>{document.readyState==="loading"?(Tc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Tc)e()}),Tc.push(n)):n()},Bt=()=>document.documentElement.dir==="rtl",$t=n=>{k4(()=>{const e=Rp();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,Bp=(n,e,t=!0)=>{if(!t){Ct(n);return}const r=5,o=w4(e)+r;let i=!1;const s=({target:l})=>{l===e&&(i=!0,e.removeEventListener(kc,s),Ct(n))};e.addEventListener(kc,s),setTimeout(()=>{i||Dp(e)},o)},Ac=(n,e,t,r)=>{const o=n.length;let i=n.indexOf(e);return i===-1?!t&&r?n[o-1]:n[0]:(i+=t?1:-1,r&&(i=(i+o)%o),n[Math.max(0,Math.min(i,o-1))])},T4=/[^.]*(?=\..*)\.|.*/,A4=/\..*/,x4=/::\d+$/,xc={};let $p=1;const Pp={mouseenter:"mouseover",mouseleave:"mouseout"},O4=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 Fp(n,e){return e&&`${e}::${$p++}`||n.uidEvent||$p++}function Vp(n){const e=Fp(n);return n.uidEvent=e,xc[e]=xc[e]||{},xc[e]}function M4(n,e){return function t(r){return Mc(r,{delegateTarget:n}),t.oneOff&&ie.off(n,r.type,e),e.apply(n,[r])}}function N4(n,e,t){return function r(o){const i=n.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const l of i)if(l===s)return Mc(o,{delegateTarget:s}),r.oneOff&&ie.off(n,o.type,e,t),t.apply(s,[o])}}function zp(n,e,t=null){return Object.values(n).find(r=>r.callable===e&&r.delegationSelector===t)}function Hp(n,e,t){const r=typeof e=="string",o=r?t:e||t;let i=jp(n);return O4.has(i)||(i=n),[r,o,i]}function Up(n,e,t,r,o){if(typeof e!="string"||!n)return;let[i,s,l]=Hp(e,t,r);e in Pp&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=Vp(n),c=a[l]||(a[l]={}),u=zp(c,s,i?t:null);if(u){u.oneOff=u.oneOff&&o;return}const f=Fp(s,e.replace(T4,"")),h=i?N4(n,t,s):M4(n,s);h.delegationSelector=i?t:null,h.callable=s,h.oneOff=o,h.uidEvent=f,c[f]=h,n.addEventListener(l,h,i)}function Oc(n,e,t,r,o){const i=zp(e[t],r,o);i&&(n.removeEventListener(t,i,!!o),delete e[t][i.uidEvent])}function _4(n,e,t,r){const o=e[t]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Oc(n,e,t,s.callable,s.delegationSelector)}function jp(n){return n=n.replace(A4,""),Pp[n]||n}const ie={on(n,e,t,r){Up(n,e,t,r,!1)},one(n,e,t,r){Up(n,e,t,r,!0)},off(n,e,t,r){if(typeof e!="string"||!n)return;const[o,i,s]=Hp(e,t,r),l=s!==e,a=Vp(n),c=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(c).length)return;Oc(n,a,s,i,o?t:null);return}if(u)for(const f of Object.keys(a))_4(n,a,f,e.slice(1));for(const[f,h]of Object.entries(c)){const p=f.replace(x4,"");(!l||e.includes(p))&&Oc(n,a,s,h.callable,h.delegationSelector)}},trigger(n,e,t){if(typeof e!="string"||!n)return null;const r=Rp(),o=jp(e),i=e!==o;let s=null,l=!0,a=!0,c=!1;i&&r&&(s=r.Event(e,t),r(n).trigger(s),l=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),c=s.isDefaultPrevented());const u=Mc(new Event(e,{bubbles:l,cancelable:!0}),t);return c&&u.preventDefault(),a&&n.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Mc(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 Wp(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 Nc(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const bn={setDataAttribute(n,e,t){n.setAttribute(`data-bs-${Nc(e)}`,t)},removeDataAttribute(n,e){n.removeAttribute(`data-bs-${Nc(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]=Wp(n.dataset[r])}return e},getDataAttribute(n,e){return Wp(n.getAttribute(`data-bs-${Nc(e)}`))}};class Jo{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const r=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 i=e[r],s=vn(i)?"element":C4(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const I4="5.3.0";class Jt extends Jo{constructor(e,t){super(),e=Hn(e),e&&(this._element=e,this._config=this._getConfig(t),wc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){wc.remove(this._element,this.constructor.DATA_KEY),ie.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Bp(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return wc.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 I4}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 _c=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 Ip(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)&&ro(t))},getSelectorFromElement(n){const e=_c(n);return e&&ke.findOne(e)?e:null},getElementFromSelector(n){const e=_c(n);return e?ke.findOne(e):null},getMultipleElementsFromSelector(n){const e=_c(n);return e?ke.find(e):[]}},Ys=(n,e="hide")=>{const t=`click.dismiss${n.EVENT_KEY}`,r=n.NAME;ie.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Un(this))return;const i=ke.getElementFromSelector(this)||this.closest(`.${r}`);n.getOrCreateInstance(i)[e]()})},D4="alert",Kp=".bs.alert",L4=`close${Kp}`,R4=`closed${Kp}`,B4="fade",$4="show";class Gs extends Jt{static get NAME(){return D4}close(){if(ie.trigger(this._element,L4).defaultPrevented)return;this._element.classList.remove($4);const t=this._element.classList.contains(B4);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),ie.trigger(this._element,R4),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Gs.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)}})}}Ys(Gs,"close"),$t(Gs);const P4="button",F4=".bs.button",V4=".data-api",z4="active",Yp='[data-bs-toggle="button"]',H4=`click${F4}${V4}`;class Js extends Jt{static get NAME(){return P4}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(z4))}static jQueryInterface(e){return this.each(function(){const t=Js.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}ie.on(document,H4,Yp,n=>{n.preventDefault();const e=n.target.closest(Yp);Js.getOrCreateInstance(e).toggle()}),$t(Js);const U4="swipe",oo=".bs.swipe",j4=`touchstart${oo}`,W4=`touchmove${oo}`,K4=`touchend${oo}`,Y4=`pointerdown${oo}`,G4=`pointerup${oo}`,J4="touch",Z4="pen",X4="pointer-event",Q4=40,q4={endCallback:null,leftCallback:null,rightCallback:null},e6={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Zs extends Jo{constructor(e,t){super(),this._element=e,!(!e||!Zs.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return q4}static get DefaultType(){return e6}static get NAME(){return U4}dispose(){ie.off(this._element,oo)}_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<=Q4)return;const t=e/this._deltaX;this._deltaX=0,t&&Ct(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ie.on(this._element,Y4,e=>this._start(e)),ie.on(this._element,G4,e=>this._end(e)),this._element.classList.add(X4)):(ie.on(this._element,j4,e=>this._start(e)),ie.on(this._element,W4,e=>this._move(e)),ie.on(this._element,K4,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Z4||e.pointerType===J4)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const t6="carousel",jn=".bs.carousel",Gp=".data-api",n6="ArrowLeft",r6="ArrowRight",o6=500,Zo="next",io="prev",so="left",Xs="right",i6=`slide${jn}`,Ic=`slid${jn}`,s6=`keydown${jn}`,a6=`mouseenter${jn}`,l6=`mouseleave${jn}`,c6=`dragstart${jn}`,u6=`load${jn}${Gp}`,d6=`click${jn}${Gp}`,Jp="carousel",Qs="active",f6="slide",h6="carousel-item-end",p6="carousel-item-start",m6="carousel-item-next",g6="carousel-item-prev",Zp=".active",Xp=".carousel-item",y6=Zp+Xp,v6=".carousel-item img",b6=".carousel-indicators",E6="[data-bs-slide], [data-bs-slide-to]",C6='[data-bs-ride="carousel"]',S6={[n6]:Xs,[r6]:so},w6={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},k6={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xo 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(b6,this._element),this._addEventListeners(),this._config.ride===Jp&&this.cycle()}static get Default(){return w6}static get DefaultType(){return k6}static get NAME(){return t6}next(){this._slide(Zo)}nextWhenVisible(){!document.hidden&&ro(this._element)&&this.next()}prev(){this._slide(io)}pause(){this._isSliding&&Dp(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){ie.one(this._element,Ic,()=>this.cycle());return}this.cycle()}}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){ie.one(this._element,Ic,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Zo: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&&ie.on(this._element,s6,e=>this._keydown(e)),this._config.pause==="hover"&&(ie.on(this._element,a6,()=>this.pause()),ie.on(this._element,l6,()=>this._maybeEnableCycle())),this._config.touch&&Zs.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of ke.find(v6,this._element))ie.on(r,c6,o=>o.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(so)),rightCallback:()=>this._slide(this._directionToOrder(Xs)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),o6+this._config.interval))}};this._swipeHelper=new Zs(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=S6[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(Zp,this._indicatorsElement);t.classList.remove(Qs),t.removeAttribute("aria-current");const r=ke.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Qs),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===Zo,i=t||Ac(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),l=p=>ie.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(l(i6).defaultPrevented||!r||!i)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?p6:h6,f=o?m6:g6;i.classList.add(f),Go(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(Qs),r.classList.remove(Qs,f,u),this._isSliding=!1,l(Ic)};this._queueCallback(h,r,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains(f6)}_getActive(){return ke.findOne(y6,this._element)}_getItems(){return ke.find(Xp,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Bt()?e===so?io:Zo:e===so?Zo:io}_orderToDirection(e){return Bt()?e===io?so:Xs:e===io?Xs:so}static jQueryInterface(e){return this.each(function(){const t=Xo.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]()}})}}ie.on(document,d6,E6,function(n){const e=ke.getElementFromSelector(this);if(!e||!e.classList.contains(Jp))return;n.preventDefault();const t=Xo.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()}),ie.on(window,u6,()=>{const n=ke.find(C6);for(const e of n)Xo.getOrCreateInstance(e)}),$t(Xo);const T6="collapse",Qo=".bs.collapse",A6=".data-api",x6=`show${Qo}`,O6=`shown${Qo}`,M6=`hide${Qo}`,N6=`hidden${Qo}`,_6=`click${Qo}${A6}`,Dc="show",ao="collapse",qs="collapsing",I6="collapsed",D6=`:scope .${ao} .${ao}`,L6="collapse-horizontal",R6="width",B6="height",$6=".collapse.show, .collapse.collapsing",Lc='[data-bs-toggle="collapse"]',P6={parent:null,toggle:!0},F6={parent:"(null|element)",toggle:"boolean"};class qo extends Jt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const r=ke.find(Lc);for(const o of r){const i=ke.getSelectorFromElement(o),s=ke.find(i).filter(l=>l===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return P6}static get DefaultType(){return F6}static get NAME(){return T6}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren($6).filter(l=>l!==this._element).map(l=>qo.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ie.trigger(this._element,x6).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(ao),this._element.classList.add(qs),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(qs),this._element.classList.add(ao,Dc),this._element.style[r]="",ie.trigger(this._element,O6)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||ie.trigger(this._element,M6).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Go(this._element),this._element.classList.add(qs),this._element.classList.remove(ao,Dc);for(const o of this._triggerArray){const i=ke.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(qs),this._element.classList.add(ao),ie.trigger(this._element,N6)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Dc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Hn(e.parent),e}_getDimension(){return this._element.classList.contains(L6)?R6:B6}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Lc);for(const t of e){const r=ke.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){const t=ke.find(D6,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(I6,!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=qo.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ie.on(document,_6,Lc,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const e of ke.getMultipleElementsFromSelector(this))qo.getOrCreateInstance(e,{toggle:!1}).toggle()}),$t(qo);const Qp="dropdown",vr=".bs.dropdown",Rc=".data-api",V6="Escape",qp="Tab",z6="ArrowUp",em="ArrowDown",H6=2,U6=`hide${vr}`,j6=`hidden${vr}`,W6=`show${vr}`,K6=`shown${vr}`,tm=`click${vr}${Rc}`,nm=`keydown${vr}${Rc}`,Y6=`keyup${vr}${Rc}`,lo="show",G6="dropup",J6="dropend",Z6="dropstart",X6="dropup-center",Q6="dropdown-center",br='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',q6=`${br}.${lo}`,ea=".dropdown-menu",eC=".navbar",tC=".navbar-nav",nC=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",rC=Bt()?"top-end":"top-start",oC=Bt()?"top-start":"top-end",iC=Bt()?"bottom-end":"bottom-start",sC=Bt()?"bottom-start":"bottom-end",aC=Bt()?"left-start":"right-start",lC=Bt()?"right-start":"left-start",cC="top",uC="bottom",dC={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},fC={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,ea)[0]||ke.prev(this._element,ea)[0]||ke.findOne(ea,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return dC}static get DefaultType(){return fC}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(!ie.trigger(this._element,W6,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(tC))for(const r of[].concat(...document.body.children))ie.on(r,"mouseover",Ks);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(lo),this._element.classList.add(lo),ie.trigger(this._element,K6,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(!ie.trigger(this._element,U6,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ie.off(r,"mouseover",Ks);this._popper&&this._popper.destroy(),this._menu.classList.remove(lo),this._element.classList.remove(lo),this._element.setAttribute("aria-expanded","false"),bn.removeDataAttribute(this._menu,"popper"),ie.trigger(this._element,j6,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 Bh>"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=rs(e,this._menu,t)}_isShown(){return this._menu.classList.contains(lo)}_getPlacement(){const e=this._parent;if(e.classList.contains(J6))return aC;if(e.classList.contains(Z6))return lC;if(e.classList.contains(X6))return cC;if(e.classList.contains(Q6))return uC;const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(G6)?t?oC:rC:t?sC:iC}_detectNavbar(){return this._element.closest(eC)!==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(nC,this._menu).filter(o=>ro(o));r.length&&Ac(r,t,e===em,!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===H6||e.type==="keyup"&&e.key!==qp)return;const t=ke.find(q6);for(const r of t){const o=ln.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===qp||/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===V6,o=[z6,em].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();const i=this.matches(br)?this:ke.prev(this,br)[0]||ke.next(this,br)[0]||ke.findOne(br,e.delegateTarget.parentNode),s=ln.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ie.on(document,nm,br,ln.dataApiKeydownHandler),ie.on(document,nm,ea,ln.dataApiKeydownHandler),ie.on(document,tm,ln.clearMenus),ie.on(document,Y6,ln.clearMenus),ie.on(document,tm,br,function(n){n.preventDefault(),ln.getOrCreateInstance(this).toggle()}),$t(ln);const rm="backdrop",hC="fade",om="show",im=`mousedown.bs.${rm}`,pC={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},mC={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class sm extends Jo{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return pC}static get DefaultType(){return mC}static get NAME(){return rm}show(e){if(!this._config.isVisible){Ct(e);return}this._append();const t=this._getElement();this._config.isAnimated&&Go(t),t.classList.add(om),this._emulateAnimation(()=>{Ct(e)})}hide(e){if(!this._config.isVisible){Ct(e);return}this._getElement().classList.remove(om),this._emulateAnimation(()=>{this.dispose(),Ct(e)})}dispose(){this._isAppended&&(ie.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(hC),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),ie.on(e,im,()=>{Ct(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Bp(e,this._getElement(),this._config.isAnimated)}}const gC="focustrap",ta=".bs.focustrap",yC=`focusin${ta}`,vC=`keydown.tab${ta}`,bC="Tab",EC="forward",am="backward",CC={autofocus:!0,trapElement:null},SC={autofocus:"boolean",trapElement:"element"};class lm extends Jo{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return CC}static get DefaultType(){return SC}static get NAME(){return gC}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ie.off(document,ta),ie.on(document,yC,e=>this._handleFocusin(e)),ie.on(document,vC,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ie.off(document,ta))}_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===am?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===bC&&(this._lastTabNavDirection=e.shiftKey?am:EC)}}const cm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",um=".sticky-top",na="padding-right",dm="margin-right";class Bc{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,na,t=>t+e),this._setElementAttributes(cm,na,t=>t+e),this._setElementAttributes(um,dm,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,na),this._resetElementAttributes(cm,na),this._resetElementAttributes(um,dm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,t);const l=window.getComputedStyle(s).getPropertyValue(t);s.style.setProperty(t,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,t){const r=e.style.getPropertyValue(t);r&&bn.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){const r=o=>{const i=bn.getDataAttribute(o,t);if(i===null){o.style.removeProperty(t);return}bn.removeDataAttribute(o,t),o.style.setProperty(t,i)};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 wC="modal",Pt=".bs.modal",kC=".data-api",TC="Escape",AC=`hide${Pt}`,xC=`hidePrevented${Pt}`,fm=`hidden${Pt}`,hm=`show${Pt}`,OC=`shown${Pt}`,MC=`resize${Pt}`,NC=`click.dismiss${Pt}`,_C=`mousedown.dismiss${Pt}`,IC=`keydown.dismiss${Pt}`,DC=`click${Pt}${kC}`,pm="modal-open",LC="fade",mm="show",$c="modal-static",RC=".modal.show",BC=".modal-dialog",$C=".modal-body",PC='[data-bs-toggle="modal"]',FC={backdrop:!0,focus:!0,keyboard:!0},VC={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Wn extends Jt{constructor(e,t){super(e,t),this._dialog=ke.findOne(BC,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Bc,this._addEventListeners()}static get Default(){return FC}static get DefaultType(){return VC}static get NAME(){return wC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ie.trigger(this._element,hm,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(pm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ie.trigger(this._element,AC).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(mm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ie.off(window,Pt),ie.off(this._dialog,Pt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new sm({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new lm({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($C,this._dialog);t&&(t.scrollTop=0),Go(this._element),this._element.classList.add(mm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ie.trigger(this._element,OC,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ie.on(this._element,IC,e=>{if(e.key===TC){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ie.on(window,MC,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ie.on(this._element,_C,e=>{ie.one(this._element,NC,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(pm),this._resetAdjustments(),this._scrollBar.reset(),ie.trigger(this._element,fm)})}_isAnimated(){return this._element.classList.contains(LC)}_triggerBackdropTransition(){if(ie.trigger(this._element,xC).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains($c)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add($c),this._queueCallback(()=>{this._element.classList.remove($c),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)}})}}ie.on(document,DC,PC,function(n){const e=ke.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),ie.one(e,hm,o=>{o.defaultPrevented||ie.one(e,fm,()=>{ro(this)&&this.focus()})});const t=ke.findOne(RC);t&&Wn.getInstance(t).hide(),Wn.getOrCreateInstance(e).toggle(this)}),Ys(Wn),$t(Wn);const zC="offcanvas",En=".bs.offcanvas",gm=".data-api",HC=`load${En}${gm}`,UC="Escape",ym="show",vm="showing",bm="hiding",jC="offcanvas-backdrop",Em=".offcanvas.show",WC=`show${En}`,KC=`shown${En}`,YC=`hide${En}`,Cm=`hidePrevented${En}`,Sm=`hidden${En}`,GC=`resize${En}`,JC=`click${En}${gm}`,ZC=`keydown.dismiss${En}`,XC='[data-bs-toggle="offcanvas"]',QC={backdrop:!0,keyboard:!0,scroll:!1},qC={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 QC}static get DefaultType(){return qC}static get NAME(){return zC}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ie.trigger(this._element,WC,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Bc().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(vm);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ym),this._element.classList.remove(vm),ie.trigger(this._element,KC,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ie.trigger(this._element,YC).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(bm),this._backdrop.hide();const t=()=>{this._element.classList.remove(ym,bm),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Bc().reset(),ie.trigger(this._element,Sm)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ie.trigger(this._element,Cm);return}this.hide()},t=!!this._config.backdrop;return new sm({className:jC,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new lm({trapElement:this._element})}_addEventListeners(){ie.on(this._element,ZC,e=>{if(e.key===UC){if(this._config.keyboard){this.hide();return}ie.trigger(this._element,Cm)}})}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)}})}}ie.on(document,JC,XC,function(n){const e=ke.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Un(this))return;ie.one(e,Sm,()=>{ro(this)&&this.focus()});const t=ke.findOne(Em);t&&t!==e&&Kn.getInstance(t).hide(),Kn.getOrCreateInstance(e).toggle(this)}),ie.on(window,HC,()=>{for(const n of ke.find(Em))Kn.getOrCreateInstance(n).show()}),ie.on(window,GC,()=>{for(const n of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&Kn.getOrCreateInstance(n).hide()}),Ys(Kn),$t(Kn);const wm={"*":["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:[]},eS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),tS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,nS=(n,e)=>{const t=n.nodeName.toLowerCase();return e.includes(t)?eS.has(t)?!!tS.test(n.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function rS(n,e,t){if(!n.length)return n;if(t&&typeof t=="function")return t(n);const o=new window.DOMParser().parseFromString(n,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const l=s.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){s.remove();continue}const a=[].concat(...s.attributes),c=[].concat(e["*"]||[],e[l]||[]);for(const u of a)nS(u,c)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const oS="TemplateFactory",iS={allowList:wm,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},sS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},aS={entry:"(string|element|function|null)",selector:"(string|element)"};class lS extends Jo{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return iS}static get DefaultType(){return sS}static get NAME(){return oS}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},aS)}_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?rS(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 cS="tooltip",uS=new Set(["sanitize","allowList","sanitizeFn"]),Pc="fade",dS="modal",ra="show",fS=".tooltip-inner",km=`.${dS}`,Tm="hide.bs.modal",ei="hover",Fc="focus",hS="click",pS="manual",mS="hide",gS="hidden",yS="show",vS="shown",bS="inserted",ES="click",CS="focusin",SS="focusout",wS="mouseenter",kS="mouseleave",TS={AUTO:"auto",TOP:"top",RIGHT:Bt()?"left":"right",BOTTOM:"bottom",LEFT:Bt()?"right":"left"},AS={allowList:wm,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"},xS={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 Er extends Jt{constructor(e,t){if(typeof Bh>"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 AS}static get DefaultType(){return xS}static get NAME(){return cS}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),ie.off(this._element.closest(km),Tm,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=ie.trigger(this._element,this.constructor.eventName(yS)),r=(Lp(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),ie.trigger(this._element,this.constructor.eventName(bS))),this._popper=this._createPopper(o),o.classList.add(ra),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ie.on(l,"mouseover",Ks);const s=()=>{ie.trigger(this._element,this.constructor.eventName(vS)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ie.trigger(this._element,this.constructor.eventName(mS)).defaultPrevented)return;if(this._getTipElement().classList.remove(ra),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ie.off(o,"mouseover",Ks);this._activeTrigger[hS]=!1,this._activeTrigger[Fc]=!1,this._activeTrigger[ei]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ie.trigger(this._element,this.constructor.eventName(gS)))};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(Pc,ra),t.classList.add(`bs-${this.constructor.NAME}-auto`);const r=S4(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Pc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new lS({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[fS]: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(Pc)}_isShown(){return this.tip&&this.tip.classList.contains(ra)}_createPopper(e){const t=Ct(this._config.placement,[this,e,this._element]),r=TS[t.toUpperCase()];return rs(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")ie.on(this._element,this.constructor.eventName(ES),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(t!==pS){const r=t===ei?this.constructor.eventName(wS):this.constructor.eventName(CS),o=t===ei?this.constructor.eventName(kS):this.constructor.eventName(SS);ie.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Fc:ei]=!0,s._enter()}),ie.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Fc:ei]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ie.on(this._element.closest(km),Tm,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))uS.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=Er.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(Er);const OS="popover",MS=".popover-header",NS=".popover-body",_S={...Er.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"},IS={...Er.DefaultType,content:"(null|string|element|function)"};class Vc extends Er{static get Default(){return _S}static get DefaultType(){return IS}static get NAME(){return OS}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[MS]:this._getTitle(),[NS]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Vc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}}$t(Vc);const DS="scrollspy",zc=".bs.scrollspy",LS=".data-api",RS=`activate${zc}`,Am=`click${zc}`,BS=`load${zc}${LS}`,$S="dropdown-item",co="active",PS='[data-bs-spy="scroll"]',Hc="[href]",FS=".nav, .list-group",xm=".nav-link",VS=`${xm}, .nav-item > ${xm}, .list-group-item`,zS=".dropdown",HS=".dropdown-toggle",US={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},jS={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class oa 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 US}static get DefaultType(){return jS}static get NAME(){return DS}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&&(ie.off(this._config.target,Am),ie.on(this._config.target,Am,Hc,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(t(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(s));continue}const l=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&l){if(r(s),!o)return;continue}!i&&!l&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ke.find(Hc,this._config.target);for(const t of e){if(!t.hash||Un(t))continue;const r=ke.findOne(decodeURI(t.hash),this._element);ro(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(co),this._activateParents(e),ie.trigger(this._element,RS,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains($S)){ke.findOne(HS,e.closest(zS)).classList.add(co);return}for(const t of ke.parents(e,FS))for(const r of ke.prev(t,VS))r.classList.add(co)}_clearActiveClass(e){e.classList.remove(co);const t=ke.find(`${Hc}.${co}`,e);for(const r of t)r.classList.remove(co)}static jQueryInterface(e){return this.each(function(){const t=oa.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]()}})}}ie.on(window,BS,()=>{for(const n of ke.find(PS))oa.getOrCreateInstance(n)}),$t(oa);const WS="tab",Cr=".bs.tab",KS=`hide${Cr}`,YS=`hidden${Cr}`,GS=`show${Cr}`,JS=`shown${Cr}`,ZS=`click${Cr}`,XS=`keydown${Cr}`,QS=`load${Cr}`,qS="ArrowLeft",Om="ArrowRight",ew="ArrowUp",Mm="ArrowDown",Sr="active",Nm="fade",Uc="show",tw="dropdown",nw=".dropdown-toggle",rw=".dropdown-menu",jc=":not(.dropdown-toggle)",ow='.list-group, .nav, [role="tablist"]',iw=".nav-item, .list-group-item",sw=`.nav-link${jc}, .list-group-item${jc}, [role="tab"]${jc}`,_m='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Wc=`${sw}, ${_m}`,aw=`.${Sr}[data-bs-toggle="tab"], .${Sr}[data-bs-toggle="pill"], .${Sr}[data-bs-toggle="list"]`;class uo extends Jt{constructor(e){super(e),this._parent=this._element.closest(ow),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ie.on(this._element,XS,t=>this._keydown(t)))}static get NAME(){return WS}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),r=t?ie.trigger(t,KS,{relatedTarget:e}):null;ie.trigger(e,GS,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Sr),this._activate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Uc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ie.trigger(e,JS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Nm))}_deactivate(e,t){if(!e)return;e.classList.remove(Sr),e.blur(),this._deactivate(ke.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Uc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ie.trigger(e,YS,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Nm))}_keydown(e){if(![qS,Om,ew,Mm].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[Om,Mm].includes(e.key),r=Ac(this._getChildren().filter(o=>!Un(o)),e.target,t,!0);r&&(r.focus({preventScroll:!0}),uo.getOrCreateInstance(r).show())}_getChildren(){return ke.find(Wc,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(tw))return;const o=(i,s)=>{const l=ke.findOne(i,r);l&&l.classList.toggle(s,t)};o(nw,Sr),o(rw,Uc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(Sr)}_getInnerElement(e){return e.matches(Wc)?e:ke.findOne(Wc,e)}_getOuterElement(e){return e.closest(iw)||e}static jQueryInterface(e){return this.each(function(){const t=uo.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}ie.on(document,ZS,_m,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!Un(this)&&uo.getOrCreateInstance(this).show()}),ie.on(window,QS,()=>{for(const n of ke.find(aw))uo.getOrCreateInstance(n)}),$t(uo);const lw="toast",Yn=".bs.toast",cw=`mouseover${Yn}`,uw=`mouseout${Yn}`,dw=`focusin${Yn}`,fw=`focusout${Yn}`,hw=`hide${Yn}`,pw=`hidden${Yn}`,mw=`show${Yn}`,gw=`shown${Yn}`,yw="fade",Im="hide",ia="show",sa="showing",vw={animation:"boolean",autohide:"boolean",delay:"number"},bw={animation:!0,autohide:!0,delay:5e3};class ti extends Jt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return bw}static get DefaultType(){return vw}static get NAME(){return lw}show(){if(ie.trigger(this._element,mw).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(yw);const t=()=>{this._element.classList.remove(sa),ie.trigger(this._element,gw),this._maybeScheduleHide()};this._element.classList.remove(Im),Go(this._element),this._element.classList.add(ia,sa),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||ie.trigger(this._element,hw).defaultPrevented)return;const t=()=>{this._element.classList.add(Im),this._element.classList.remove(sa,ia),ie.trigger(this._element,pw)};this._element.classList.add(sa),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ia),super.dispose()}isShown(){return this._element.classList.contains(ia)}_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(){ie.on(this._element,cw,e=>this._onInteraction(e,!0)),ie.on(this._element,uw,e=>this._onInteraction(e,!1)),ie.on(this._element,dw,e=>this._onInteraction(e,!0)),ie.on(this._element,fw,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=ti.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}Ys(ti),$t(ti);const Dm=n=>{const e=d.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 i=Wn.getInstance(o);i&&i.hide()}}}};function Lm(){const n=d.ref(0),e=d.ref(!0),t=d.ref(null),r=d.ref({top:0,left:0,x:0,y:0}),o=d.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"),u=document.querySelector(".image-preview-image-holder");c&&(c.style.cursor="grabbing"),u&&(u.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,u=a.clientY-r.value.y;t.value&&(t.value.scrollTop=r.value.top-u,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 Ew=["src","alt"],Cw={key:0,class:"show-spinner"},Sw={class:"spinner-border text-primary",role:"status"},ww={class:"visually-hidden"},kw=["href"],Rm=d.defineComponent({__name:"BDImageAttachmentModal",props:["loadingText","downloadText"],setup(n,{expose:e}){const t=n,{showModal:r}=Dm("image-attachment-modal"),{zoom:o,imageHolderRef:i,SetZoom:s,OnMouseDown:l,OnMouseMove:a,OnMouseUp:c}=Lm(),u=d.ref(!0),f=d.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We});e({Show:g=>{f.value=g,o.value=0,r()}});const p=()=>{u.value=!1},m=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:We,altName:We,downloadUrl:We,fullImageUrl:We,previewUrl:We}};return(g,y)=>(d.openBlock(),d.createBlock(Sc,{id:"image-attachment-modal",class:d.normalizeClass(d.unref(We)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:m},{default:d.withCtx(()=>[d.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:i,onMousedown:y[0]||(y[0]=(...C)=>d.unref(l)&&d.unref(l)(...C)),onMousemove:y[1]||(y[1]=(...C)=>d.unref(a)&&d.unref(a)(...C)),onMouseup:y[2]||(y[2]=(...C)=>d.unref(c)&&d.unref(c)(...C))},[f.value?(d.openBlock(),d.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:d.normalizeClass(["image-preview-modal",d.unref(s)]),onLoad:p,draggable:!1},null,42,Ew)):d.createCommentVNode("",!0)],544),u.value?(d.openBlock(),d.createElementBlock("div",Cw,[d.createElementVNode("div",Sw,[d.createElementVNode("span",ww,d.toDisplayString(t.loadingText),1)])])):d.createCommentVNode("",!0),d.createVNode(ka,{modelValue:d.unref(o),"onUpdate:modelValue":y[3]||(y[3]=C=>d.isRef(o)?o.value=C:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),d.createElementVNode("a",{href:f.value.downloadUrl},[d.createVNode(Qe,{variant:"primary",class:"download-image"},{default:d.withCtx(()=>[d.createTextVNode(d.toDisplayString(t.downloadText),1)]),_:1})],8,kw)]),_:1},8,["class","title"]))}});function Bm(n=void 0){const e=l=>i("Succesvol",l,Or.SUCCESS),t=l=>i("Waarschuwing",l,Or.WARNING),r=l=>i("Informatie",l,Or.INFO),o=l=>i("Mislukt",l,Or.DANGER);function i(l,a,c){const u=`toast-${mu()}`,f={id:u,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=d.h(xa,f),g=d.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(ti.getOrCreateInstance(y,n).show(),s(y))}function s(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),u={attributes:!0};c.observe(l,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:t,showDangerToast:o}}const Tw=n=>Array.isArray(n)&&n.length>0,{showDangerToast:Aw}=Bm();function xw(n){const e=d.ref(null),t=(a,c="serverErrors")=>{var f;let u=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?u=a.response.data.filter(h=>pi(h.ErrorMessage)&&h.ErrorMessage!==We):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,pi(c))e.value=u;else if(Array.isArray(c)){let h=e.value;for(let p=0;p<c.length;p++)p===c.length-1?h[c[p]]=u:h=h[c[p]]}r(a),s(e)},r=a=>{const u=new URL(a.request.responseURL).pathname;if(u in n.error){const f=n.error[u];f&&Aw(f)}},o=d.ref(null),i=d.ref(""),s=a=>{Tw(a.value)?o.value=a.value.map(c=>pi(c)?c:c.ErrorMessage):pi(a.value)&&(i.value=a.value)};function l(){e.value=null,o.value=null,i.value=We}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:t,ResetServerErrors:l}}const Ow=()=>({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}}),$m={mounted:n=>{new Er(n)}};var Pm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Oa,function(){var t=1e3,r=6e4,o=36e5,i="millisecond",s="second",l="minute",a="hour",c="day",u="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(H){var F=["th","st","nd","rd"],$=H%100;return"["+H+(F[($-20)%10]||F[$]||F[0])+"]"}},k=function(H,F,$){var G=String(H);return!G||G.length>=F?H:""+Array(F+1-G.length).join($)+H},b={s:k,z:function(H){var F=-H.utcOffset(),$=Math.abs(F),G=Math.floor($/60),D=$%60;return(F<=0?"+":"-")+k(G,2,"0")+":"+k(D,2,"0")},m:function H(F,$){if(F.date()<$.date())return-H($,F);var G=12*($.year()-F.year())+($.month()-F.month()),D=F.clone().add(G,f),Q=$-D<0,te=F.clone().add(G+(Q?-1:1),f);return+(-(G+($-D)/(Q?D-te:te-D))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:f,y:p,w:u,d:c,D:m,h:a,m:l,s,ms:i,Q:h}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},M="en",T={};T[M]=S;var z="$isDayjsObject",U=function(H){return H instanceof V||!(!H||!H[z])},j=function H(F,$,G){var D;if(!F)return M;if(typeof F=="string"){var Q=F.toLowerCase();T[Q]&&(D=Q),$&&(T[Q]=$,D=Q);var te=F.split("-");if(!D&&te.length>1)return H(te[0])}else{var ce=F.name;T[ce]=F,D=ce}return!G&&D&&(M=D),D||!G&&M},P=function(H,F){if(U(H))return H.clone();var $=typeof F=="object"?F:{};return $.date=H,$.args=arguments,new V($)},L=b;L.l=j,L.i=U,L.w=function(H,F){return P(H,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var V=function(){function H($){this.$L=j($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[z]=!0}var F=H.prototype;return F.parse=function($){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)}($),this.init()},F.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},F.$utils=function(){return L},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function($,G){var D=P($);return this.startOf(G)<=D&&D<=this.endOf(G)},F.isAfter=function($,G){return P($)<this.startOf(G)},F.isBefore=function($,G){return this.endOf(G)<P($)},F.$g=function($,G,D){return L.u($)?this[G]:this.set(D,$)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function($,G){var D=this,Q=!!L.u(G)||G,te=L.p($),ce=function(O,w){var x=L.w(D.$u?Date.UTC(D.$y,w,O):new Date(D.$y,w,O),D);return Q?x:x.endOf(c)},me=function(O,w){return L.w(D.toDate()[O].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 u:var ve=this.$locale().weekStart||0,A=(ge<ve?ge+7:ge)-ve;return ce(Q?we-A:we+(6-A),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 s:return me(Te+"Milliseconds",3);default:return this.clone()}},F.endOf=function($){return this.startOf($,!1)},F.$set=function($,G){var D,Q=L.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[s]=te+"Seconds",D[i]=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($,G){return this.clone().$set($,G)},F.get=function($){return this[L.p($)]()},F.add=function($,G){var D,Q=this;$=Number($);var te=L.p(G),ce=function(Ce){var we=P(Q);return L.w(we.date(we.date()+Math.round(Ce*$)),Q)};if(te===f)return this.set(f,this.$M+$);if(te===p)return this.set(p,this.$y+$);if(te===c)return ce(1);if(te===u)return ce(7);var me=(D={},D[l]=r,D[a]=o,D[s]=t,D)[te]||1,ge=this.$d.getTime()+$*me;return L.w(ge,this)},F.subtract=function($,G){return this.add(-1*$,G)},F.format=function($){var G=this,D=this.$locale();if(!this.isValid())return D.invalidDate||g;var Q=$||"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,x,v,E){return w&&(w[x]||w(G,Q))||v[x].slice(0,E)},A=function(w){return L.s(ce%12||12,w,"0")},O=Te||function(w,x,v){var E=w<12?"AM":"PM";return v?E.toLowerCase():E};return Q.replace(C,function(w,x){return x||function(v){switch(v){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 A(1);case"hh":return A(2);case"a":return O(ce,me,!0);case"A":return O(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($,G,D){var Q,te=this,ce=L.p(G),me=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 u: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 s: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($,G){if(!$)return this.$L;var D=this.clone(),Q=j($,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()},H}(),W=V.prototype;return P.prototype=W,[["$ms",i],["$s",s],["$m",l],["$H",a],["$W",c],["$M",f],["$y",p],["$D",m]].forEach(function(H){W[H[1]]=function(F){return this.$g(F,H[0],H[1])}}),P.extend=function(H,F){return H.$i||(H(F,V,P),H.$i=!0),P},P.locale=j,P.isDayjs=U,P.unix=function(H){return P(1e3*H)},P.en=T[M],P.Ls=T,P.p={},P})})(Pm);var Fm=Pm.exports;const aa=Ma(Fm);var Mw={exports:{}};(function(n,e){(function(t,r){n.exports=r(Fm)})(Oa,function(t){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(t),i={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(s){return"["+s+(s===1||s===8||s>=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(i,null,!0),i})})(Mw);var Vm={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Oa,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/,i=/\d\d/,s=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,a={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=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 b=1;b<=24;b+=1)if(y.indexOf(k(b,0,C))>-1){S=b>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:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("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:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("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+/,u("year")],YY:[i,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("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(P,L,V){var W=V&&V.toUpperCase();return L||S[V]||t[V]||S[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,F,$){return F||$.slice(1)})})).match(r),b=k.length,M=0;M<b;M+=1){var T=k[M],z=m[T],U=z&&z[0],j=z&&z[1];k[M]=j?{regex:U,parser:j}:T.replace(/^\[|\]$/g,"")}return function(P){for(var L={},V=0,W=0;V<b;V+=1){var H=k[V];if(typeof H=="string")W+=H.length;else{var F=H.regex,$=H.parser,G=P.slice(W),D=F.exec(G)[0];$.call(L,D),P=P.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,b=k.parse;k.parse=function(M){var T=M.date,z=M.utc,U=M.args;this.$u=z;var j=U[1];if(typeof j=="string"){var P=U[2]===!0,L=U[3]===!0,V=P||L,W=U[2];L&&(W=U[2]),a=this.$locale(),!P&&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,A=ce.milliseconds,O=ce.zone,w=ce.week,x=new Date,v=Ce||(me||ge?1:x.getDate()),E=me||x.getFullYear(),_=0;me&&!ge||(_=ge>0?ge-1:x.getMonth());var I,R=we||0,B=Te||0,K=ve||0,J=A||0;return O?new Date(Date.UTC(E,_,v,R,B,K,J+60*O.offset*1e3)):Q?new Date(Date.UTC(E,_,v,R,B,K,J)):(I=new Date(E,_,v,R,B,K,J),w&&(I=te(I).week(w).toDate()),I)}catch{return new Date("")}}(T,j,z,S),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),V&&T!=this.format(j)&&(this.$d=new Date("")),a={}}else if(j instanceof Array)for(var H=j.length,F=1;F<=H;F+=1){U[1]=j[F-1];var $=S.apply(this,U);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}F===H&&(this.$d=new Date(""))}else b.call(this,M)}}})})(Vm);var Nw=Vm.exports;const _w=Ma(Nw);aa.extend(_w),aa.locale("nl");function Iw(n,e=aa().startOf("day")){const t="DD-MM-YYYY",r=aa(n,t);if(r.isSame(e))return"vandaag";const i=e.subtract(1,"day");if(r.isSame(i))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 Dw={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"},Qe=d.defineComponent({__name:"BDButton",props:{size:{default:lt.MD},variant:{default:Dw.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=d.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=d.computed(()=>t.to?Ar:"button"),i=d.computed(()=>{const l={};return t.to?(l.to=t.to,l.role="button"):l.type="submit",l}),s=l=>{e("click",l)};return(l,a)=>(d.openBlock(),d.createBlock(d.resolveDynamicComponent(o.value),d.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:d.withCtx(()=>[d.renderSlot(l.$slots,"default",{},()=>[d.createTextVNode(d.toDisplayString(t.text),1)])]),_:3},16,["class"]))}}),Lw={install:n=>{n.component("BDCol",Zn),n.component("BDContainer",ni),n.component("BDRow",Xn),n.component("BDButton",Qe),n.component("BDLogo",Sa),n.component("BDLink",Ar),n.component("BDDropdownItem",gi),n.component("BDDropdown",Cc),n.component("BDAlert",ci),n.component("BDProfileImage",po),n.component("BDZoomslider",ka),n.component("BDCard",fi),n.component("BDCollapsableCard",gu),n.component("BDFormInput",go),n.component("BDInputGroup",Cu),n.component("BDFormInvalidFeedback",hi),n.component("BDBadge",Su),n.component("BDForm",wu),n.component("BDPagination",ku),n.component("BDDropzone",Nu),n.component("BDMarkdownEditor",Ap),n.component("BDModal",Sc),n.component("BDFormSelect",Tu),n.component("BDUser",xp),n.component("BDArticle",xu),n.component("BDFormCheckbox",Au),n.component("BDToast",xa),n.component("BDAttachmentPreviewList",Us),n.component("BDImageAttachmentPreviewList",js),n.component("BDHeader",_p),n.component("BDMobileMenu",Ec),n.component("BDChatCloud",Op),n.component("BDTable",Mp),n.component("BDChangePasswordTemplate",Np),n.component("BDPill",mi),n.component("BDImageAttachmentModal",Rm),n.component("IconAcademy",Qc),n.component("IconArrowDown",qc),n.component("IconArrowUp",eu),n.component("IconAttachment",Qn),n.component("IconBold",ca),n.component("IconBulletList",ua),n.component("IconCalendar",da),n.component("IconCalendar",da),n.component("IconCardView",tu),n.component("IconCaretDown",fa),n.component("IconCaretLeft",ha),n.component("IconCaretRight",pa),n.component("IconCheck",kr),n.component("IconClose",ri),n.component("IconComment",ig),n.component("IconDownloadImage",oi),n.component("IconDownloadImage",oi),n.component("IconEdit",nu),n.component("IconError",ii),n.component("IconEyeShow",ru),n.component("IconEyeSlash",ou),n.component("IconFile",ma),n.component("IconHyperlink",si),n.component("IconInfo",Tr),n.component("IconItalic",ga),n.component("IconListView",iu),n.component("IconMenu",ai),n.component("IconMenu",ai),n.component("IconOrderedList",ya),n.component("IconRemove",ho),n.component("IconService",su),n.component("IconSort",au),n.component("IconSortAsc",va),n.component("IconSortDesc",ba),n.component("IconSortNone",Ea),n.component("IconTriangleExclamation",lu),n.component("IconUnderline",Ca),n.component("IconContactPerson",cu),n.directive("vBDTooltip",$m)}};fe.BDAlert=ci,fe.BDArticle=xu,fe.BDAttachmentPreviewList=Us,fe.BDBadge=Su,fe.BDButton=Qe,fe.BDCard=fi,fe.BDChangePasswordTemplate=Np,fe.BDChatCloud=Op,fe.BDCol=Zn,fe.BDCollapsableCard=gu,fe.BDContainer=ni,fe.BDDropdown=Cc,fe.BDDropdownItem=gi,fe.BDDropzone=Nu,fe.BDForm=wu,fe.BDFormCheckbox=Au,fe.BDFormInput=go,fe.BDFormInvalidFeedback=hi,fe.BDFormSelect=Tu,fe.BDHeader=_p,fe.BDImageAttachmentModal=Rm,fe.BDImageAttachmentPreviewList=js,fe.BDInputGroup=Cu,fe.BDLink=Ar,fe.BDLogo=Sa,fe.BDMarkdownEditor=Ap,fe.BDMobileMenu=Ec,fe.BDModal=Sc,fe.BDPagination=ku,fe.BDPill=mi,fe.BDProfileImage=po,fe.BDRow=Xn,fe.BDTable=Mp,fe.BDToast=xa,fe.BDUser=xp,fe.BDZoomslider=ka,fe.IconAcademy=Qc,fe.IconArrowDown=qc,fe.IconArrowUp=eu,fe.IconAttachment=Qn,fe.IconBold=ca,fe.IconBulletList=ua,fe.IconCalendar=da,fe.IconCardView=tu,fe.IconCaretDown=fa,fe.IconCaretLeft=ha,fe.IconCaretRight=pa,fe.IconCheck=kr,fe.IconClose=ri,fe.IconContactPerson=cu,fe.IconDownloadImage=oi,fe.IconEdit=nu,fe.IconError=ii,fe.IconEyeShow=ru,fe.IconEyeSlash=ou,fe.IconFile=ma,fe.IconHyperlink=si,fe.IconInfo=Tr,fe.IconItalic=ga,fe.IconListView=iu,fe.IconMenu=ai,fe.IconOrderedList=ya,fe.IconRemove=ho,fe.IconService=su,fe.IconSort=au,fe.IconSortAsc=va,fe.IconSortDesc=ba,fe.IconSortNone=Ea,fe.IconTriangleExclamation=lu,fe.IconUnderline=Ca,fe.default=Lw,fe.getDisplayDate=Iw,fe.useModal=Dm,fe.useServerErrors=xw,fe.useToaster=Bm,fe.useValidation=Ow,fe.useZoom=Lm,fe.vBdTooltip=$m,Object.defineProperties(fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|