@26lights/orcha 0.42.236 → 0.42.238

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/orcha.cjs.js CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";var l0=Object.defineProperty;var c0=(t,e,n)=>e in t?l0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var j=(t,e,n)=>(c0(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),Go=require("vue-router"),Vn=require("vuedraggable");const u0=r.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.unref(Go.RouterView),r.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),ee=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},d0={},f0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p0(t,e){return r.openBlock(),r.createElementBlock("svg",f0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const m0=ee(d0,[["render",p0]]),h0={},g0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v0(t,e){return r.openBlock(),r.createElementBlock("svg",g0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const y0=ee(h0,[["render",v0]]),_0={},C0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b0(t,e){return r.openBlock(),r.createElementBlock("svg",C0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const k0=ee(_0,[["render",b0]]),w0={},E0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S0(t,e){return r.openBlock(),r.createElementBlock("svg",E0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const x0=ee(w0,[["render",S0]]),A0={},T0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N0(t,e){return r.openBlock(),r.createElementBlock("svg",T0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const D0=ee(A0,[["render",N0]]),$0={},B0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M0(t,e){return r.openBlock(),r.createElementBlock("svg",B0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const L0=ee($0,[["render",M0]]),O0={},V0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I0(t,e){return r.openBlock(),r.createElementBlock("svg",V0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const P0=ee(O0,[["render",I0]]),F0={},R0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z0(t,e){return r.openBlock(),r.createElementBlock("svg",R0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const U0=ee(F0,[["render",z0]]),H0={},q0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j0(t,e){return r.openBlock(),r.createElementBlock("svg",q0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const W0=ee(H0,[["render",j0]]),Z0={},K0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G0(t,e){return r.openBlock(),r.createElementBlock("svg",K0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const Y0=ee(Z0,[["render",G0]]),J0={},X0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q0(t,e){return r.openBlock(),r.createElementBlock("svg",X0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const ev=ee(J0,[["render",Q0]]),tv={},nv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ov(t,e){return r.openBlock(),r.createElementBlock("svg",nv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const rv=ee(tv,[["render",ov]]),iv={},sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function av(t,e){return r.openBlock(),r.createElementBlock("svg",sv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const lv=ee(iv,[["render",av]]),cv={},uv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dv(t,e){return r.openBlock(),r.createElementBlock("svg",uv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const fv=ee(cv,[["render",dv]]),pv={},mv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hv(t,e){return r.openBlock(),r.createElementBlock("svg",mv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const gv=ee(pv,[["render",hv]]),vv={},yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _v(t,e){return r.openBlock(),r.createElementBlock("svg",yv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const Cv=ee(vv,[["render",_v]]),bv={},kv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wv(t,e){return r.openBlock(),r.createElementBlock("svg",kv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const Ev=ee(bv,[["render",wv]]),Sv={},xv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Av(t,e){return r.openBlock(),r.createElementBlock("svg",xv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const Tv=ee(Sv,[["render",Av]]),Nv={},Dv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $v(t,e){return r.openBlock(),r.createElementBlock("svg",Dv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const Bv=ee(Nv,[["render",$v]]),Mv={},Lv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ov(t,e){return r.openBlock(),r.createElementBlock("svg",Lv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const Vv=ee(Mv,[["render",Ov]]),Iv={},Pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fv(t,e){return r.openBlock(),r.createElementBlock("svg",Pv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const Rv=ee(Iv,[["render",Fv]]),zv={},Uv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hv(t,e){return r.openBlock(),r.createElementBlock("svg",Uv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const qv=ee(zv,[["render",Hv]]),jv={},Wv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zv(t,e){return r.openBlock(),r.createElementBlock("svg",Wv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const Kv=ee(jv,[["render",Zv]]),Gv={},Yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jv(t,e){return r.openBlock(),r.createElementBlock("svg",Yv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const Xv=ee(Gv,[["render",Jv]]),Qv={},e2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t2(t,e){return r.openBlock(),r.createElementBlock("svg",e2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const n2=ee(Qv,[["render",t2]]),o2={},r2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i2(t,e){return r.openBlock(),r.createElementBlock("svg",r2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const s2=ee(o2,[["render",i2]]),a2={},l2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c2(t,e){return r.openBlock(),r.createElementBlock("svg",l2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z",fill:"black"},null,-1),r.createElementVNode("path",{d:"M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z",fill:"black"},null,-1)])])}const u2=ee(a2,[["render",c2]]),d2={},f2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p2(t,e){return r.openBlock(),r.createElementBlock("svg",f2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const m2=ee(d2,[["render",p2]]),h2={},g2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v2(t,e){return r.openBlock(),r.createElementBlock("svg",g2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const y2=ee(h2,[["render",v2]]),_2={},C2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b2(t,e){return r.openBlock(),r.createElementBlock("svg",C2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const k2=ee(_2,[["render",b2]]),w2={},E2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S2(t,e){return r.openBlock(),r.createElementBlock("svg",E2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const x2=ee(w2,[["render",S2]]),A2={},T2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N2(t,e){return r.openBlock(),r.createElementBlock("svg",T2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const D2=ee(A2,[["render",N2]]),$2={},B2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M2(t,e){return r.openBlock(),r.createElementBlock("svg",B2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const L2=ee($2,[["render",M2]]),O2={},V2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I2(t,e){return r.openBlock(),r.createElementBlock("svg",V2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const P2=ee(O2,[["render",I2]]),F2={},R2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z2(t,e){return r.openBlock(),r.createElementBlock("svg",R2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const U2=ee(F2,[["render",z2]]),H2={},q2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j2(t,e){return r.openBlock(),r.createElementBlock("svg",q2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const W2=ee(H2,[["render",j2]]),Z2={},K2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G2(t,e){return r.openBlock(),r.createElementBlock("svg",K2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const Y2=ee(Z2,[["render",G2]]),J2={},X2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q2(t,e){return r.openBlock(),r.createElementBlock("svg",X2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const ey=ee(J2,[["render",Q2]]),ty={},ny={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oy(t,e){return r.openBlock(),r.createElementBlock("svg",ny,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const ry=ee(ty,[["render",oy]]),iy={},sy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ay(t,e){return r.openBlock(),r.createElementBlock("svg",sy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const ly=ee(iy,[["render",ay]]),cy={},uy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dy(t,e){return r.openBlock(),r.createElementBlock("svg",uy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const fy=ee(cy,[["render",dy]]),py=r.defineComponent({name:"LoadingIcon"});const my={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hy(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("svg",my,[...e[0]||(e[0]=[r.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),r.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),r.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const gy=ee(py,[["render",hy],["__scopeId","data-v-ad6da4a9"]]),vy={},yy={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function _y(t,e){return r.openBlock(),r.createElementBlock("svg",yy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const Cy=ee(vy,[["render",_y]]),by={},ky={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wy(t,e){return r.openBlock(),r.createElementBlock("svg",ky,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const Ey=ee(by,[["render",wy]]),Sy={},xy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ay(t,e){return r.openBlock(),r.createElementBlock("svg",xy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const Ty=ee(Sy,[["render",Ay]]),Ny={},Dy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $y(t,e){return r.openBlock(),r.createElementBlock("svg",Dy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const By=ee(Ny,[["render",$y]]),My={},Ly={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Oy(t,e){return r.openBlock(),r.createElementBlock("svg",Ly,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const Vy=ee(My,[["render",Oy]]),Iy={},Py={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fy(t,e){return r.openBlock(),r.createElementBlock("svg",Py,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const Ry=ee(Iy,[["render",Fy]]),zy={},Uy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hy(t,e){return r.openBlock(),r.createElementBlock("svg",Uy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const qy=ee(zy,[["render",Hy]]),jy={},Wy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zy(t,e){return r.openBlock(),r.createElementBlock("svg",Wy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const Ky=ee(jy,[["render",Zy]]),Gy={},Yy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jy(t,e){return r.openBlock(),r.createElementBlock("svg",Yy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const Xy=ee(Gy,[["render",Jy]]),Qy={},e_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t_(t,e){return r.openBlock(),r.createElementBlock("svg",e_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const n_=ee(Qy,[["render",t_]]),o_={},r_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i_(t,e){return r.openBlock(),r.createElementBlock("svg",r_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const s_=ee(o_,[["render",i_]]),a_={},l_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c_(t,e){return r.openBlock(),r.createElementBlock("svg",l_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const u_=ee(a_,[["render",c_]]),d_={},f_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p_(t,e){return r.openBlock(),r.createElementBlock("svg",f_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const m_=ee(d_,[["render",p_]]),h_={},g_={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v_(t,e){return r.openBlock(),r.createElementBlock("svg",g_,[...e[0]||(e[0]=[r.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const y_=ee(h_,[["render",v_]]),__={},C_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b_(t,e){return r.openBlock(),r.createElementBlock("svg",C_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const k_=ee(__,[["render",b_]]),w_={},E_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S_(t,e){return r.openBlock(),r.createElementBlock("svg",E_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const x_=ee(w_,[["render",S_]]),A_={},T_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N_(t,e){return r.openBlock(),r.createElementBlock("svg",T_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const D_=ee(A_,[["render",N_]]),$_={},B_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M_(t,e){return r.openBlock(),r.createElementBlock("svg",B_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const L_=ee($_,[["render",M_]]),O_={},V_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I_(t,e){return r.openBlock(),r.createElementBlock("svg",V_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const P_=ee(O_,[["render",I_]]),F_={},R_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z_(t,e){return r.openBlock(),r.createElementBlock("svg",R_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const U_=ee(F_,[["render",z_]]),H_={},q_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j_(t,e){return r.openBlock(),r.createElementBlock("svg",q_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const W_=ee(H_,[["render",j_]]),Z_={},K_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G_(t,e){return r.openBlock(),r.createElementBlock("svg",K_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const Y_=ee(Z_,[["render",G_]]),J_={},X_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q_(t,e){return r.openBlock(),r.createElementBlock("svg",X_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const e3=ee(J_,[["render",Q_]]),t3={},n3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o3(t,e){return r.openBlock(),r.createElementBlock("svg",n3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const r3=ee(t3,[["render",o3]]),i3={},s3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a3(t,e){return r.openBlock(),r.createElementBlock("svg",s3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const l3=ee(i3,[["render",a3]]),c3={},u3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d3(t,e){return r.openBlock(),r.createElementBlock("svg",u3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const f3=ee(c3,[["render",d3]]),p3={},m3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h3(t,e){return r.openBlock(),r.createElementBlock("svg",m3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const g3=ee(p3,[["render",h3]]),v3={},y3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _3(t,e){return r.openBlock(),r.createElementBlock("svg",y3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const C3=ee(v3,[["render",_3]]),b3=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:m0,AccountCircle:y0,AccountTreeOutlineRounded:k0,AccountTreeRounded:x0,Add:D0,AddBoxOutlineRounded:L0,ArchiveOutlineRounded:P0,ArrowBackRounded:U0,ArrowDropDownRounded:W0,ArrowForwardRounded:Y0,AssignmentOutlineRounded:ev,AttachFileRounded:rv,CalendarTodayOutlineRounded:lv,CancelRounded:fv,ChatOutline:gv,CheckBoxOutlineBlank:Cv,CheckBoxOutlineBlankSharp:Ev,CheckBoxOutlineRounded:Tv,CheckSmallRounded:Bv,ChecklistRounded:Vv,ChevronLeft:Rv,ChevronRight:qv,CloseRounded:Kv,ContactsOutlineRounded:Xv,ContentCopyOutline:n2,DeleteOutlineRounded:s2,DownloadRounded:u2,DragIndicator:m2,EditDocumentRounded:y2,EditOutline:k2,ErrorOutlineRounded:x2,FilterListRounded:D2,FlagRounded:L2,FlowsheetOutlineRounded:P2,GifBox:U2,GroupsOutline:W2,HomeOutlineRounded:Y2,ImageRounded:ey,Info:ry,KeyboardArrowDown:ly,KeyboardArrowUp:fy,Loading:gy,Lock:Cy,LogoutRounded:Ey,Menu:Ty,MoreHoriz:By,MoreTimeRounded:Vy,MoreVert:Ry,MountainFlagOutlineRounded:qy,PersonAddOutlineRounded:Ky,PictureAsPdfRounded:Xy,RadioButtonChecked:n_,RadioButtonCheckedOutline:s_,RadioButtonUnchecked:u_,RemoveRounded:m_,SearchRounded:y_,SelectCheckBox:k_,SendRounded:x_,Settings:D_,SlideshowRounded:L_,Target:P_,TaskOutlineRounded:U_,TextSnippetRounded:W_,TimerOutline:Y_,ViewComfyAltRounded:e3,ViewCompactAltRounded:r3,ViewTimelineRounded:l3,WarningOutlineRounded:f3,WarningRounded:g3,WaterfallChartRounded:C3},Symbol.toStringTag,{value:"Module"})),k3={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Na={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Qc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},w3={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Qc,...w3});const kp={ROUND:"round",ROUNDED:"rounded"},E3={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ke=r.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Na.MD}},setup(t){const e=t,n=r.computed(()=>b3[e.name]);return(o,i)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:r.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const S3=["type"],x3={key:0,class:"ao-button__label"},de=r.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>k3.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Na.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>kp.ROUNDED}},setup(t){const e=t,n=r.computed(()=>e.size),o=r.computed(()=>e.isLoading?"Loading":e.iconName);return(i,s)=>(r.openBlock(),r.createElementBlock("button",{type:t.type,class:r.normalizeClass(["ao-button",`ao-button--${t.variant}`,t.color?`ao-button--${t.color}`:"",`ao-button--${t.corners}`,t.footer?"ao-button--footer":"",t.size?`ao-button--${t.size}`:"",t.iconName&&t.iconPosition?`ao-button--icon-${t.iconPosition}`:"",i.$attrs.disabled?"ao-button--is-disabled":""])},[r.renderSlot(i.$slots,"default",{},()=>[t.label?(r.openBlock(),r.createElementBlock("span",x3,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0)]),o.value?(r.openBlock(),r.createBlock(ke,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):r.createCommentVNode("",!0)],10,S3))}});function A3(t){const e=r.ref(!1),n=r.ref(""),o=r.computed(()=>"value"in t.value?"value":"innerHTML"),i=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await r.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await r.nextTick(()=>{c(d,u)})};return r.watch(e,async c=>{await r.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:i,onUpdate:l,onDiscard:a}}const ht=r.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(t,{emit:e}){const n=r.ref(null),o=t,i=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=A3(n),u=r.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=r.computed(()=>o.isEditable?s.value?{change:p,click:C=>C.stopPropagation(),blur:m}:{click:v,focus:v}:{}),p=l((C,y)=>{const _=y.target.value;i("update:title",_)}),f=c(),m=async()=>{s.value&&a(!1)},h=()=>{i("toggle-is-editing",!1)},v=C=>{C.stopPropagation(),s.value||a(!0)};return r.watch(()=>o.isEditable,C=>{C||f()}),(C,y)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.value),r.mergeProps({id:t.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${t.level}`,{[`ao-title--${t.color}`]:!!t.color,"ao-title--editable":t.isEditable,"ao-field__input ao-title--editing":r.unref(s),"ao-title--readonly":!r.unref(s)}],type:r.unref(s)?"text":null,value:r.unref(s)?t.title:null,tabindex:"0",onKeyup:r.withKeys(h,["enter"])},r.toHandlers(d.value),{onKeydown:r.withKeys(r.unref(f),["esc"])}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const T3={key:0,class:"ao-card-horiz__drag ao-card__drag"},N3={class:"ao-card-horiz__header"},D3={key:0,class:"ao-card-horiz__avatar"},$3={class:"ao-card-horiz__title-group"},B3={key:0,class:"ao-card-horiz__subtitle"},M3={key:1,class:"ao-card-horiz__header"},L3={key:1,class:"ao-card-horiz__body"},O3={key:2,class:"ao-card-horiz__footer"},V3={key:3,class:"ao-card-horiz__secondary"},wp=r.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(t,{emit:e}){const n=e,o=i=>{n("update:title",i)};return(i,s)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:r.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:r.withCtx(()=>[t.isDraggable?(r.openBlock(),r.createElementBlock("div",T3,[r.createVNode(ke,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):r.createCommentVNode("",!0),r.createElementVNode("div",N3,[t.icon?(r.openBlock(),r.createElementBlock("div",D3,[r.createVNode(ke,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):r.createCommentVNode("",!0),r.createElementVNode("div",$3,[r.createVNode(ht,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),r.renderSlot(i.$slots,"subtitle",{},()=>[t.subtitle?(r.openBlock(),r.createElementBlock("span",B3,r.toDisplayString(t.subtitle),1)):r.createCommentVNode("",!0)])]),i.$slots.header?(r.openBlock(),r.createElementBlock("div",M3,[r.renderSlot(i.$slots,"header")])):r.createCommentVNode("",!0)]),i.$slots.default?(r.openBlock(),r.createElementBlock("div",L3,[r.renderSlot(i.$slots,"default")])):r.createCommentVNode("",!0),i.$slots.footer?(r.openBlock(),r.createElementBlock("div",O3,[r.renderSlot(i.$slots,"footer")])):r.createCommentVNode("",!0),i.$slots.secondary?(r.openBlock(),r.createElementBlock("div",V3,[r.renderSlot(i.$slots,"secondary")])):r.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Ii=r.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=r.computed(()=>e.clickable?"button":"span"),o=r.computed(()=>n.value==="button"?{type:"button"}:{});return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-tag",t.color?`ao-tag--${t.color}`:"",t.clickable?"ao-tag--clickable":"",t.closable?"ao-tag--closable":"",t.variant?`ao-tag--${t.variant}`:""]),style:r.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),r.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>i.$emit("click",a))}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.variant===r.unref(E3).SOLID_ICON&&t.iconName?(r.openBlock(),r.createBlock(ke,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):r.createCommentVNode("",!0)]),_:1},16)),t.closable?(r.openBlock(),r.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>i.$emit("close",a))},[r.createVNode(ke,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):r.createCommentVNode("",!0)],6))}});const Pi={todo:"todo",done:"done",archived:"archived"},I3={months:"months",weeks:"weeks",days:"days"},P3={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},Ep={BEFORE:"before",AFTER:"after"},Sp={START:"start",end:"end"},xp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},qe={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var Ap=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(Ap||{});const F3={add:"add",remove:"remove",moved:"moved"};var Tp=(t=>(t.HOURS="hours",t.DAYS="days",t))(Tp||{});const ln={project:"projectId",assignee:"assigneeId",sprint:"sprintId",milestone:"milestoneId"};function Js(t){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Js(t)}function Gn(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function nt(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Tt(t){nt(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Js(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function R3(t,e){nt(2,arguments);var n=Tt(t).getTime(),o=Gn(e);return new Date(n+o)}var z3={};function Qi(){return z3}function Fi(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function Sd(t){nt(1,arguments);var e=Tt(t);return e.setHours(0,0,0,0),e}var U3=864e5;function H3(t,e){nt(2,arguments);var n=Sd(t),o=Sd(e),i=n.getTime()-Fi(n),s=o.getTime()-Fi(o);return Math.round((i-s)/U3)}function q3(t,e){nt(2,arguments);var n=Tt(t),o=Tt(e),i=n.getTime()-o.getTime();return i<0?-1:i>0?1:i}var Np=6e4,Dp=36e5;function j3(t){return nt(1,arguments),t instanceof Date||Js(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function $p(t){if(nt(1,arguments),!j3(t)&&typeof t!="number")return!1;var e=Tt(t);return!isNaN(Number(e))}function dc(t,e){nt(2,arguments);var n=Gn(e);return R3(t,-n)}var W3=864e5;function Z3(t){nt(1,arguments);var e=Tt(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),i=n-o;return Math.floor(i/W3)+1}function Xs(t){nt(1,arguments);var e=1,n=Tt(t),o=n.getUTCDay(),i=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Bp(t){nt(1,arguments);var e=Tt(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var i=Xs(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Xs(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function K3(t){nt(1,arguments);var e=Bp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Xs(n);return o}var G3=6048e5;function Y3(t){nt(1,arguments);var e=Tt(t),n=Xs(e).getTime()-K3(e).getTime();return Math.round(n/G3)+1}function Qs(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Qi(),p=Gn((n=(o=(i=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tt(t),m=f.getUTCDay(),h=(m<p?7:0)+m-p;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Mp(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Tt(t),p=d.getUTCFullYear(),f=Qi(),m=Gn((n=(o=(i=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(p+1,0,m),h.setUTCHours(0,0,0,0);var v=Qs(h,e),C=new Date(0);C.setUTCFullYear(p,0,m),C.setUTCHours(0,0,0,0);var y=Qs(C,e);return d.getTime()>=v.getTime()?p+1:d.getTime()>=y.getTime()?p:p-1}function J3(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Qi(),p=Gn((n=(o=(i=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=Mp(t,e),m=new Date(0);m.setUTCFullYear(f,0,p),m.setUTCHours(0,0,0,0);var h=Qs(m,e);return h}var X3=6048e5;function Q3(t,e){nt(1,arguments);var n=Tt(t),o=Qs(n,e).getTime()-J3(n,e).getTime();return Math.round(o/X3)+1}function Oe(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var e5={y:function(e,n){var o=e.getUTCFullYear(),i=o>0?o:1-o;return Oe(n==="yy"?i%100:i,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Oe(o+1,2)},d:function(e,n){return Oe(e.getUTCDate(),n.length)},a:function(e,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h:function(e,n){return Oe(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Oe(e.getUTCHours(),n.length)},m:function(e,n){return Oe(e.getUTCMinutes(),n.length)},s:function(e,n){return Oe(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,i=e.getUTCMilliseconds(),s=Math.floor(i*Math.pow(10,o-3));return Oe(s,n.length)}};const ao=e5;var hr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},t5={G:function(e,n,o){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(i,{width:"abbreviated"});case"GGGGG":return o.era(i,{width:"narrow"});case"GGGG":default:return o.era(i,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var i=e.getUTCFullYear(),s=i>0?i:1-i;return o.ordinalNumber(s,{unit:"year"})}return ao.y(e,n)},Y:function(e,n,o,i){var s=Mp(e,i),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Oe(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Oe(a,n.length)},R:function(e,n){var o=Bp(e);return Oe(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Oe(o,n.length)},Q:function(e,n,o){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Oe(i,2);case"Qo":return o.ordinalNumber(i,{unit:"quarter"});case"QQQ":return o.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,o){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Oe(i,2);case"qo":return o.ordinalNumber(i,{unit:"quarter"});case"qqq":return o.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,o){var i=e.getUTCMonth();switch(n){case"M":case"MM":return ao.M(e,n);case"Mo":return o.ordinalNumber(i+1,{unit:"month"});case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,o){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Oe(i+1,2);case"Lo":return o.ordinalNumber(i+1,{unit:"month"});case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,o,i){var s=Q3(e,i);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Oe(s,n.length)},I:function(e,n,o){var i=Y3(e);return n==="Io"?o.ordinalNumber(i,{unit:"week"}):Oe(i,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):ao.d(e,n)},D:function(e,n,o){var i=Z3(e);return n==="Do"?o.ordinalNumber(i,{unit:"dayOfYear"}):Oe(i,n.length)},E:function(e,n,o){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(i,{width:"short",context:"formatting"});case"EEEE":default:return o.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,o,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Oe(a,2);case"eo":return o.ordinalNumber(a,{unit:"day"});case"eee":return o.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(s,{width:"short",context:"formatting"});case"eeee":default:return o.day(s,{width:"wide",context:"formatting"})}},c:function(e,n,o,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Oe(a,n.length);case"co":return o.ordinalNumber(a,{unit:"day"});case"ccc":return o.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(s,{width:"narrow",context:"standalone"});case"cccccc":return o.day(s,{width:"short",context:"standalone"});case"cccc":default:return o.day(s,{width:"wide",context:"standalone"})}},i:function(e,n,o){var i=e.getUTCDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return Oe(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(i,{width:"short",context:"formatting"});case"iiii":default:return o.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,o){var i=e.getUTCHours(),s=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,o){var i=e.getUTCHours(),s;switch(i===12?s=hr.noon:i===0?s=hr.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,o){var i=e.getUTCHours(),s;switch(i>=17?s=hr.evening:i>=12?s=hr.afternoon:i>=4?s=hr.morning:s=hr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),o.ordinalNumber(i,{unit:"hour"})}return ao.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ao.H(e,n)},K:function(e,n,o){var i=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},k:function(e,n,o){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?o.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ao.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ao.s(e,n)},S:function(e,n){return ao.S(e,n)},X:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Ad(a);case"XXXX":case"XX":return Oo(a);case"XXXXX":case"XXX":default:return Oo(a,":")}},x:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Ad(a);case"xxxx":case"xx":return Oo(a);case"xxxxx":case"xxx":default:return Oo(a,":")}},O:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+xd(a,":");case"OOOO":default:return"GMT"+Oo(a,":")}},z:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+xd(a,":");case"zzzz":default:return"GMT"+Oo(a,":")}},t:function(e,n,o,i){var s=i._originalDate||e,a=Math.floor(s.getTime()/1e3);return Oe(a,n.length)},T:function(e,n,o,i){var s=i._originalDate||e,a=s.getTime();return Oe(a,n.length)}};function xd(t,e){var n=t>0?"-":"+",o=Math.abs(t),i=Math.floor(o/60),s=o%60;if(s===0)return n+String(i);var a=e||"";return n+String(i)+a+Oe(s,2)}function Ad(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Oe(Math.abs(t)/60,2)}return Oo(t,e)}function Oo(t,e){var n=e||"",o=t>0?"-":"+",i=Math.abs(t),s=Oe(Math.floor(i/60),2),a=Oe(i%60,2);return o+s+n+a}const n5=t5;var Td=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Lp=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},o5=function(e,n){var o=e.match(/(P+)(p+)?/)||[],i=o[1],s=o[2];if(!s)return Td(e,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Td(i,n)).replace("{{time}}",Lp(s,n))},r5={p:Lp,P:o5};const i5=r5;var s5=["D","DD"],a5=["YY","YYYY"];function l5(t){return s5.indexOf(t)!==-1}function c5(t){return a5.indexOf(t)!==-1}function Nd(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var u5={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},d5=function(e,n,o){var i,s=u5[e];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+i:i+" ago":i};const f5=d5;function kl(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,o=t.formats[n]||t.formats[t.defaultWidth];return o}}var p5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},m5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},h5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g5={date:kl({formats:p5,defaultWidth:"full"}),time:kl({formats:m5,defaultWidth:"full"}),dateTime:kl({formats:h5,defaultWidth:"full"})};const v5=g5;var y5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_5=function(e,n,o,i){return y5[e]};const C5=_5;function fi(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",i;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return i[u]}}var b5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},k5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},w5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},E5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},S5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},x5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},A5=function(e,n){var o=Number(e),i=o%100;if(i>20||i<10)switch(i%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},T5={ordinalNumber:A5,era:fi({values:b5,defaultWidth:"wide"}),quarter:fi({values:k5,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:fi({values:w5,defaultWidth:"wide"}),day:fi({values:E5,defaultWidth:"wide"}),dayPeriod:fi({values:S5,defaultWidth:"wide",formattingValues:x5,defaultFormattingWidth:"wide"})};const N5=T5;function pi(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,i=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?$5(l,function(p){return p.test(a)}):D5(l,function(p){return p.test(a)}),u;u=t.valueCallback?t.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(a.length);return{value:u,rest:d}}}function D5(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function $5(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function B5(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.match(t.matchPattern);if(!o)return null;var i=o[0],s=e.match(t.parsePattern);if(!s)return null;var a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var l=e.slice(i.length);return{value:a,rest:l}}}var M5=/^(\d+)(th|st|nd|rd)?/i,L5=/\d+/i,O5={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},V5={any:[/^b/i,/^(a|c)/i]},I5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},P5={any:[/1/i,/2/i,/3/i,/4/i]},F5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},R5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},z5={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},U5={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},H5={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},q5={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},j5={ordinalNumber:B5({matchPattern:M5,parsePattern:L5,valueCallback:function(e){return parseInt(e,10)}}),era:pi({matchPatterns:O5,defaultMatchWidth:"wide",parsePatterns:V5,defaultParseWidth:"any"}),quarter:pi({matchPatterns:I5,defaultMatchWidth:"wide",parsePatterns:P5,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:pi({matchPatterns:F5,defaultMatchWidth:"wide",parsePatterns:R5,defaultParseWidth:"any"}),day:pi({matchPatterns:z5,defaultMatchWidth:"wide",parsePatterns:U5,defaultParseWidth:"any"}),dayPeriod:pi({matchPatterns:H5,defaultMatchWidth:"any",parsePatterns:q5,defaultParseWidth:"any"})};const W5=j5;var Z5={code:"en-US",formatDistance:f5,formatLong:v5,formatRelative:C5,localize:N5,match:W5,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Op=Z5;var K5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,G5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Y5=/^'([^]*?)'?$/,J5=/''/g,X5=/[a-zA-Z]/;function Vp(t,e,n){var o,i,s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b;nt(2,arguments);var w=String(e),k=Qi(),x=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&o!==void 0?o:Op,S=Gn((s=(a=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(p=k.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=Gn((m=(h=(v=(C=n==null?void 0:n.weekStartsOn)!==null&&C!==void 0?C:n==null||(y=n.locale)===null||y===void 0||(g=y.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&v!==void 0?v:k.weekStartsOn)!==null&&h!==void 0?h:(_=k.locale)===null||_===void 0||(b=_.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&m!==void 0?m:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var N=Tt(t);if(!$p(N))throw new RangeError("Invalid time value");var I=Fi(N),A=dc(N,I),M={firstWeekContainsDate:S,weekStartsOn:E,locale:x,_originalDate:N},D=w.match(G5).map(function($){var B=$[0];if(B==="p"||B==="P"){var P=i5[B];return P($,x.formatLong)}return $}).join("").match(K5).map(function($){if($==="''")return"'";var B=$[0];if(B==="'")return Q5($);var P=n5[B];if(P)return!(n!=null&&n.useAdditionalWeekYearTokens)&&c5($)&&Nd($,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&l5($)&&Nd($,e,String(t)),P(A,$,x.localize,M);if(B.match(X5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return $}).join("");return D}function Q5(t){var e=t.match(Y5);return e?e[1].replace(J5,"'"):t}function eC(t,e,n){var o,i,s,a,l,c,u,d,p,f;nt(2,arguments);var m=Tt(t),h=Tt(e),v=Qi(),C=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:v.locale)!==null&&o!==void 0?o:Op,y=Gn((s=(a=(l=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:v.weekStartsOn)!==null&&a!==void 0?a:(p=v.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&s!==void 0?s:0);if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");if(!C.formatRelative)throw new RangeError("locale must contain formatRelative property");var g=H3(m,h);if(isNaN(g))throw new RangeError("Invalid time value");var _;g<-6?_="other":g<-1?_="lastWeek":g<0?_="yesterday":g<1?_="today":g<2?_="tomorrow":g<7?_="nextWeek":_="other";var b=dc(m,Fi(m)),w=dc(h,Fi(h)),k=C.formatRelative(_,b,w,{locale:C,weekStartsOn:y});return Vp(m,k,{locale:C,weekStartsOn:y})}function Ri(t,e){var n;nt(1,arguments);var o=Gn((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(o!==2&&o!==1&&o!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=rC(t),s;if(i.date){var a=iC(i.date,o);s=sC(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(i.time&&(c=aC(i.time),isNaN(c)))return new Date(NaN);if(i.timezone){if(u=lC(i.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return new Date(l+c+u)}var xs={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},tC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,nC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,oC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function rC(t){var e={},n=t.split(xs.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],xs.timeZoneDelimiter.test(e.date)&&(e.date=t.split(xs.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var i=xs.timezone.exec(o);i?(e.time=o.replace(i[1],""),e.timezone=i[1]):e.time=o}return e}function iC(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var i=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function sC(t,e){if(e===null)return new Date(NaN);var n=t.match(tC);if(!n)return new Date(NaN);var o=!!n[4],i=mi(n[1]),s=mi(n[2])-1,a=mi(n[3]),l=mi(n[4]),c=mi(n[5])-1;if(o)return pC(e,l,c)?cC(e,l,c):new Date(NaN);var u=new Date(0);return!dC(e,s,a)||!fC(e,i)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(i,a)),u)}function mi(t){return t?parseInt(t):1}function aC(t){var e=t.match(nC);if(!e)return NaN;var n=wl(e[1]),o=wl(e[2]),i=wl(e[3]);return mC(n,o,i)?n*Dp+o*Np+i*1e3:NaN}function wl(t){return t&&parseFloat(t.replace(",","."))||0}function lC(t){if(t==="Z")return 0;var e=t.match(oC);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return hC(o,i)?n*(o*Dp+i*Np):NaN}function cC(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var i=o.getUTCDay()||7,s=(e-1)*7+n+1-i;return o.setUTCDate(o.getUTCDate()+s),o}var uC=[31,null,31,30,31,30,31,31,30,31,30,31];function Ip(t){return t%400===0||t%4===0&&t%100!==0}function dC(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(uC[e]||(Ip(t)?29:28))}function fC(t,e){return e>=1&&e<=(Ip(t)?366:365)}function pC(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function mC(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function hC(t,e){return e>=0&&e<=59}var $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gC(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function vC(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(e,i);return new s}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return t[o]}})}),n}var Xe={},Pp={},hi={},es={},jr={},Da={};Object.defineProperty(Da,"__esModule",{value:!0});Da.lexoHelper=void 0;Da.lexoHelper={arrayCopy:yC};function yC(t,e,n,o,i){let s=o;const a=e+i;for(let l=e;l<a;l++)n[s]=t[l],++s}var ts={};Object.defineProperty(ts,"__esModule",{value:!0});class _C{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}ts.default=_C;Object.defineProperty(jr,"__esModule",{value:!0});jr.LexoInteger=void 0;const As=Da,CC=ts;class ye{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,i=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),i=-1);const s=new Array(o.length);let a=s.length-1;for(let l=0;a>=0;++l)s[l]=n.toDigit(o.charAt(a)),--a;return ye.make(n,i,s)}static zero(e){return new ye(e,0,ye.ZERO_MAG)}static one(e){return ye.make(e,1,ye.ONE_MAG)}static make(e,n,o){let i;for(i=o.length;i>0&&o[i-1]===0;--i);if(i===0)return ye.zero(e);if(i===o.length)return new ye(e,n,o);const s=new Array(i).fill(0);return As.lexoHelper.arrayCopy(o,0,s,0,i),new ye(e,n,s)}static add(e,n,o){const i=Math.max(n.length,o.length),s=new Array(i).fill(0);let a=0;for(let l=0;l<i;++l){const c=l<n.length?n[l]:0,u=l<o.length?o[l]:0;let d=c+u+a;for(a=0;d>=e.getBase();d-=e.getBase())++a;s[l]=d}return ye.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return As.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const i=ye.complement(e,o,n.length),s=ye.add(e,n,i);return s[s.length-1]=0,ye.add(e,s,ye.ONE_MAG)}static multiply(e,n,o){const i=new Array(n.length+o.length).fill(0);for(let s=0;s<n.length;++s)for(let a=0;a<o.length;++a){const l=s+a;for(i[l]+=n[s]*o[a];i[l]>=e.getBase();i[l]-=e.getBase())++i[l+1]}return i}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const i=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)i[s]=e.getBase()-1-n[s];return i}static compare(e,n){if(e.length<n.length)return-1;if(e.length>n.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<n[o])return-1;if(e[o]>n[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const n=ye.add(this.sys,this.mag,e.mag);return ye.make(this.sys,this.sign,n)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const n=ye.compare(this.mag,e.mag);return n===0?ye.zero(this.sys):n<0?ye.make(this.sys,this.sign===-1?1:-1,ye.subtract(this.sys,e.mag,this.mag)):ye.make(this.sys,this.sign===-1?-1:1,ye.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?ye.make(this.sys,1,e.mag):ye.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?ye.make(this.sys,1,this.mag):ye.make(this.sys,-1,this.mag);const n=ye.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?ye.make(this.sys,1,n):ye.make(this.sys,-1,n)}negate(){return this.isZero()?this:ye.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const n=new Array(this.mag.length+e).fill(0);return As.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),ye.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return ye.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return As.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),ye.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return ye.make(this.sys,this.sign,ye.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const n=ye.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?ye.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new CC.default,n=this.mag,o=n.length;for(let i=0;i<o;++i){const s=n[i];e.insert(0,this.sys.toChar(s))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}jr.LexoInteger=ye;ye.ZERO_MAG=[0];ye.ONE_MAG=[1];ye.NEGATIVE_SIGN=-1;ye.ZERO_SIGN=0;ye.POSITIVE_SIGN=1;Object.defineProperty(es,"__esModule",{value:!0});es.LexoDecimal=void 0;const gi=jr,bC=ts;class Zt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Zt.make(gi.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Zt.make(gi.LexoInteger.parse(e,n),0);const i=e.substring(0,o)+e.substring(o+1);return Zt.make(gi.LexoInteger.parse(i,n),e.length-1-o)}static from(e){return Zt.make(e,0)}static make(e,n){if(e.isZero())return new Zt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const i=e.shiftRight(o),s=n-o;return new Zt(i,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,i=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)i=i.shiftLeft(),++s;return Zt.make(n.add(i),o)}subtract(e){let n=this.mag,o=this.sig,i=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)i=i.shiftLeft(),++s;return Zt.make(n.subtract(i),o)}multiply(e){return Zt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(gi.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let i=this.mag.shiftRight(o);return n&&(i=i.add(gi.LexoInteger.one(i.getSystem()))),Zt.make(i,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new bC.default(e),o=n[0],i=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(i&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),i&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}es.LexoDecimal=Zt;var Ts={},Dd;function Fp(){if(Dd)return Ts;Dd=1,Object.defineProperty(Ts,"__esModule",{value:!0});const t=jr,e=zp();class n{constructor(i){this.value=t.LexoInteger.parse(i,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new n("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new n("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new n("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[n.BUCKET_0,n.BUCKET_1,n.BUCKET_2]),this._VALUES}static max(){return n.VALUES[n.VALUES.length-1]}static from(i){const s=t.LexoInteger.parse(i,e.LexoRank.NUMERAL_SYSTEM),a=n.VALUES,l=a.length;for(let c=0;c<l;++c){const u=a[c];if(u.value.equals(s))return u}throw new Error("Unknown bucket: "+i)}static resolve(i){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(i.toString())))return c}throw new Error("No bucket found with id "+i)}format(){return this.value.format()}next(){return this.equals(n.BUCKET_0)?n.BUCKET_1:this.equals(n.BUCKET_1)?n.BUCKET_2:this.equals(n.BUCKET_2)?n.BUCKET_0:n.BUCKET_2}prev(){return this.equals(n.BUCKET_0)?n.BUCKET_2:this.equals(n.BUCKET_1)?n.BUCKET_0:this.equals(n.BUCKET_2)?n.BUCKET_1:n.BUCKET_0}equals(i){return this===i?!0:i?this.value.equals(i.value):!1}}return Ts.default=n,Ts}var eu={},Rp={};Object.defineProperty(Rp,"__esModule",{value:!0});var $a={};Object.defineProperty($a,"__esModule",{value:!0});$a.LexoNumeralSystem10=void 0;class kC{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}$a.LexoNumeralSystem10=kC;var Ba={};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.LexoNumeralSystem36=void 0;class wC{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Ba.LexoNumeralSystem36=wC;var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0});Ma.LexoNumeralSystem64=void 0;class EC{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Ma.LexoNumeralSystem64=EC;(function(t){var e=$t&&$t.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=$t&&$t.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Rp,t),n($a,t),n(Ba,t),n(Ma,t)})(eu);var $d;function zp(){if($d)return hi;$d=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.LexoRank=void 0;const t=es,e=Fp(),n=ts,o=eu;class i{constructor(a,l){this.value=a.format()+"|"+i.formatDecimal(l),this.bucket=a,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new o.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=t.LexoDecimal.parse("0",i.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",i.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",i.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=i.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",i.NUMERAL_SYSTEM).subtract(i.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=i.between(i.MIN_DECIMAL,i.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",i.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(i.NUMERAL_SYSTEM.toChar(i.NUMERAL_SYSTEM.getBase()-2)+"00000",i.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return i.from(e.default.BUCKET_0,i.MIN_DECIMAL)}static middle(){const a=i.min();return a.between(i.max(a.bucket))}static max(a=e.default.BUCKET_0){return i.from(a,i.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?i.from(a,i.INITIAL_MIN_DECIMAL):i.from(a,i.INITIAL_MAX_DECIMAL)}static between(a,l){if(a.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=a,u=l,d;if(a.getScale()<l.getScale()){if(d=l.setScale(a.getScale(),!1),a.compareTo(d)>=0)return i.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return i.mid(a,l);c=d}let p;for(let h=c.getScale();h>0;u=p){const v=h-1,C=c.setScale(v,!0);if(p=u.setScale(v,!1),C.compareTo(p)===0)return i.checkMid(a,l,C);if(C.compareTo(p)>0)break;h=v,c=C}let f=i.middleInternal(a,l,c,u),m;for(let h=f.getScale();h>0;h=m){m=h-1;const v=f.setScale(m);if(a.compareTo(v)>=0||v.compareTo(l)>=0)break;f=v}return f}static parse(a){const l=a.split("|"),c=e.default.from(l[0]),u=t.LexoDecimal.parse(l[1],i.NUMERAL_SYSTEM);return new i(c,u)}static from(a,l){if(l.getSystem().getBase()!==i.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new i(a,l)}static middleInternal(a,l,c,u){const d=i.mid(c,u);return i.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?i.mid(a,l):c}static mid(a,l){const u=a.add(l).multiply(t.LexoDecimal.half(a.getSystem())),d=a.getScale()>l.getScale()?a.getScale():l.getScale();if(u.getScale()>d){const p=u.setScale(d,!1);if(p.compareTo(a)>0)return p;const f=u.setScale(d,!0);if(f.compareTo(l)<0)return f}return u}static formatDecimal(a){const l=a.format(),c=new n.default(l);let u=l.indexOf(i.NUMERAL_SYSTEM.getRadixPointChar());const d=i.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(i.NUMERAL_SYSTEM.getRadixPointChar()));u<6;)c.insert(0,d),++u;for(;c[c.length-1]===d;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new i(this.bucket,i.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(i.EIGHT_DECIMAL);return c.compareTo(i.MIN_DECIMAL)<=0&&(c=i.between(i.MIN_DECIMAL,this.decimal)),new i(this.bucket,c)}genNext(){if(this.isMin())return new i(this.bucket,i.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(i.EIGHT_DECIMAL);return c.compareTo(i.MAX_DECIMAL)>=0&&(c=i.between(this.decimal,i.MAX_DECIMAL)),new i(this.bucket,c)}between(a){if(!this.bucket.equals(a.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(a.decimal);if(l>0)return new i(this.bucket,i.between(a.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+a+" this.decimal="+this.decimal+" other.decimal="+a.decimal);return new i(this.bucket,i.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return i.from(this.bucket.next(),this.decimal)}inPrevBucket(){return i.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(i.MIN_DECIMAL)}isMax(){return this.decimal.equals(i.MAX_DECIMAL)}format(){return this.value}equals(a){return this===a?!0:a?this.value===a.value:!1}toString(){return this.value}compareTo(a){return this===a?0:a?this.value.localeCompare(a.value):1}}return hi.LexoRank=i,hi}(function(t){var e=$t&&$t.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=$t&&$t.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(zp(),t),n(Fp(),t),n(es,t),n(jr,t)})(Pp);(function(t){var e=$t&&$t.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=$t&&$t.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Pp,t),n(eu,t)})(Xe);const Ei=60,SC=8,Bd=Ei*SC;function La(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Bd),i=Math.floor(t%Bd/Ei);if(o>0&&i>0)return`${o}d ${i}h`;if(o>0)return`${o}d`;{const s=t%Ei;return s>0?`${i}h ${s}m`:`${i}h`}}else{const o=Math.floor(t/Ei),i=t%Ei;return o>0&&i>0?`${o}h ${i}m`:o>0?`${o}h`:`${i}m`}}function Up(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.activities)==null?void 0:o.length)??0)},0))??0}function xC(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.milestones)==null?void 0:o.length)??0)},0))??0}function AC(t){return(t==null?void 0:t.reduce((e,n)=>{var i;const o=(i=n.milestones)!=null&&i.length?Up(n.milestones):0;return e+o},0))??0}function TC(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function ns(t,e){if(t.moved)return Br(e,t.moved.newIndex)}function Br(t,e){if(e===0)if(t.length>1){const n=t[e+1];return Xe.LexoRank.parse(n.rank).genPrev().format()}else return Xe.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return Xe.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return Xe.LexoRank.parse(o.rank).between(Xe.LexoRank.parse(n.rank)).format()}}function os(t){if(t.length===0)return Xe.LexoRank.middle().format();const e=t[0];return Xe.LexoRank.parse(e.rank).genPrev().format()}function tu(t,e){if(e===0)return[];let n;if(t.length===0)n=Xe.LexoRank.middle();else{const i=t[t.length-1];n=Xe.LexoRank.parse(i.rank).genNext()}const o=[];for(let i=0;i<e;i++)o.push(n.format()),n=n.genNext();return o}function Mr(t,e="dd/MM/yyyy"){if(!t)return"";const n=Ri(t);return $p(n)?Vp(n,e):""}function nu(t,e){return t.status.id===e.id}function NC(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!nu(n,e))}function DC(t,e){return{...t,status:NC(t,e)?Pi.done:Pi.todo}}const Hp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function $C(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${i}, ${s}, ${e})`}function BC(t,e=.15){var n;if(t.startsWith("#"))return $C(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(i=>i.trim());if(o&&o.length>=3){const[i,s,a]=o;return`rgba(${i}, ${s}, ${a}, ${e})`}}return t}function qp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function Md(t,e){const n=e.filter(i=>i.firstName||i.lastName).map(i=>({id:i.id,name:qp(i)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(i=>i[1]);return Array.from(new Set(n.filter(i=>o.includes(i.name)).map(i=>i.id)))}const MC=["title"],LC={key:0,className:"ao-avatar__initials"},OC=["src"],Xt=r.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Na.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=TC(n.userName),a=l=>{o("close",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",{role:"img",class:r.normalizeClass(i.value),title:t.userName},[t.avatarUrl?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",LC,r.toDisplayString(r.unref(s)),1)),t.avatarUrl?(r.openBlock(),r.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,OC)):r.createCommentVNode("",!0),t.isClosable?(r.openBlock(),r.createBlock(de,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:r.withModifiers(a,["stop"])},null,8,["color"])):r.createCommentVNode("",!0)],10,MC))}});const VC={class:"ao-card-template__subitems"},IC={class:"ao-card-template__subitem"},PC={class:"ao-card-template__subitem-number"},FC={class:"ao-card-template__subitem"},RC={class:"ao-card-template__subitem"},zC={class:"ao-card-template__body"},UC={class:"ao-card-template__col ao-card-template__col--phases"},HC={class:"ao-card-template__col-title"},qC={class:"ao-card-template__col-label"},jC={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},WC={class:"ao-card-template__footer"},ZC={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},KC={class:"ao-card-template__col-title"},GC={class:"ao-card-template__col-label"},YC={class:"ao-card-template__col-body"},JC={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},XC={class:"ao-card-template__col-title"},QC={class:"ao-card-template__col-label"},eb={class:"ao-card-template__col-body"},tb={class:"ao-card-template-item__secondary"},El=5,nb=r.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,i=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=r.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,El))??[]}),l=r.computed(()=>n.phases&&n.phases.length>El?n.phases.length-El:0);return(c,u)=>(r.openBlock(),r.createBlock(wp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":i},r.createSlots({subtitle:r.withCtx(()=>[r.createElementVNode("ul",VC,[r.createElementVNode("li",IC,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",PC,r.toDisplayString(t.milestones),1)]),r.createElementVNode("li",FC,[r.createVNode(ke,{name:"TaskOutlineRounded",size:"sm"}),r.createElementVNode("span",RC,r.toDisplayString(t.activities),1)])])]),default:r.withCtx(()=>[r.createElementVNode("div",zC,[r.createElementVNode("div",UC,[r.createElementVNode("div",HC,[r.createVNode(ke,{name:"WaterfallChartRounded",size:"sm"}),r.createElementVNode("span",qC,r.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(r.openBlock(),r.createElementBlock("ul",jC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,d=>(r.openBlock(),r.createBlock(Ii,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(r.openBlock(),r.createBlock(Ii,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)])])]),secondary:r.withCtx(()=>[r.createElementVNode("div",tb,[r.createVNode(de,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=r.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:r.withCtx(()=>[r.createElementVNode("div",WC,[t.updatedAt?(r.openBlock(),r.createElementBlock("div",ZC,[r.createElementVNode("div",KC,[r.createElementVNode("span",GC,r.toDisplayString(c.$t("template.updatedAt.label")),1)]),r.createElementVNode("div",YC,[r.createElementVNode("span",null,r.toDisplayString(t.updatedAt),1)])])):r.createCommentVNode("",!0),t.updatedBy?(r.openBlock(),r.createElementBlock("div",JC,[r.createElementVNode("div",XC,[r.createElementVNode("span",QC,r.toDisplayString(c.$t("template.updatedBy.label")),1)]),r.createElementVNode("div",eb,[r.createVNode(Xt,{"user-name":t.updatedBy},null,8,["user-name"])])])):r.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const ob={class:"ao-page-header"},rb={class:"ao-page-header-main"},ib={key:0,class:"ao-page-header-secondary"},rs=r.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",ob,[r.createElementVNode("div",rb,[t.canGoBack?(r.openBlock(),r.createBlock(de,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(r.openBlock(),r.createElementBlock("div",ib,[r.renderSlot(e.$slots,"secondary")])):r.createCommentVNode("",!0)]))}});const sb=["type"],ab={key:0,class:"ao-button-card__label"},Eo=r.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Qc.BLACK},size:{default:()=>Na.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>kp.ROUNDED}},setup(t){const e=t,n=r.computed(()=>e.size),o=r.computed(()=>e.isLoading?"Loading":e.iconName);return(i,s)=>(r.openBlock(),r.createElementBlock("button",{type:t.type,class:r.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,i.$attrs.disabled?"ao-button-card--is-disabled":""])},[r.renderSlot(i.$slots,"default",{},()=>[t.label?(r.openBlock(),r.createElementBlock("span",ab,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0)]),o.value?(r.openBlock(),r.createBlock(ke,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):r.createCommentVNode("",!0)],10,sb))}});const lb={class:"ao-card-template-item__footer"},cb={key:0,class:"ao-card-template-item__subitem"},ub={class:"ao-card-template-item__subitem-number"},db={class:"ao-card-template-item__secondary"},ou=r.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(t,{emit:e}){const n=e,o=l=>{n("update:title",l)},i=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(r.openBlock(),r.createBlock(wp,{"onUpdate:title":o},{footer:r.withCtx(()=>[r.createElementVNode("ul",lb,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(i,u=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:u},[l.$props[u]?(r.openBlock(),r.createElementBlock("li",cb,[r.createVNode(ke,{name:s[u],size:"sm"},null,8,["name"]),r.createElementVNode("span",ub,r.toDisplayString(l.$props[u]),1)])):r.createCommentVNode("",!0)],64))),64))])]),secondary:r.withCtx(()=>[r.createElementVNode("div",db,[r.createVNode(de,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:r.withModifiers(a,["stop"])})])]),_:1}))}});const fb=r.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=r.computed(()=>{var i;return(i=e.milestones)==null?void 0:i.length}),o=r.computed(()=>e.milestones?Up(e.milestones):0);return(i,s)=>(r.openBlock(),r.createBlock(ou,r.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},i.$attrs),{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),pb=r.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=r.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,i)=>(r.openBlock(),r.createBlock(ou,{activities:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),mb={class:"ao-list__footer"},hb=r.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("addMilestone",{phaseId:n.phase.id})},s=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},a=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const u=ns(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(r.openBlock(),r.createBlock(r.unref(Vn),{key:0,"model-value":t.phase.milestones,class:"ao-templates__list",title:c.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:l},{header:r.withCtx(()=>[r.createVNode(ht,{title:"Milestones",level:3,class:"ao-list__title"})]),item:r.withCtx(({element:d})=>[(r.openBlock(),r.createBlock(pb,{id:d.id,key:d.id,title:d.name,activities:d.activities,"is-active":t.milestoneId===d.id,"is-draggable":!0,"onUpdate:title":p=>a({id:d.id,name:p}),onClick:p=>c.$router.push({params:{milestoneId:d.id}}),onRemove:()=>s(d.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:r.withCtx(()=>[r.createElementVNode("div",mb,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),gb=r.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=r.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,i)=>(r.openBlock(),r.createBlock(ou,{tasks:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),vb={class:"ao-list__footer"},yb=r.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=ns(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(r.openBlock(),r.createBlock(r.unref(Vn),{key:0,"model-value":t.milestone.activities,title:c.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:l},{header:r.withCtx(()=>[r.createVNode(ht,{title:"Activities",level:3,class:"ao-list__title"})]),item:r.withCtx(({element:d})=>[(r.openBlock(),r.createBlock(gb,{id:d.id,key:d.id,title:d.name,tasks:d.tasks,"is-active":t.activityId===d.id,"is-draggable":!0,"onUpdate:title":p=>s({id:d.id,name:p}),onClick:p=>c.$router.push({params:{activityId:d.id}}),onRemove:()=>a(d.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:r.withCtx(()=>[r.createElementVNode("div",vb,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),_b={class:"ao-modal"},Cb={key:0,class:"ao-modal__header"},bb={class:"ao-modal__header-meta"},kb={class:"ao-modal__title-group"},wb={class:"ao-modal__body"},Eb={key:1,class:"ao-modal__footer"},Oa=r.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),r.createElementVNode("div",_b,[e.$slots.header?(r.openBlock(),r.createElementBlock("div",Cb,[r.createElementVNode("div",bb,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),r.createElementVNode("header",kb,[r.renderSlot(e.$slots,"header")])])):r.createCommentVNode("",!0),r.createElementVNode("div",wb,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",Eb,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])],2))}});const zi=Math.min,Kt=Math.max,ea=Math.round,Ns=Math.floor,_o=t=>({x:t,y:t}),Sb={left:"right",right:"left",bottom:"top",top:"bottom"},xb={start:"end",end:"start"};function ru(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function Va(t){return t.split("-")[1]}function Ab(t){return t==="x"?"y":"x"}function jp(t){return t==="y"?"height":"width"}function iu(t){return["top","bottom"].includes(Lr(t))?"y":"x"}function Wp(t){return Ab(iu(t))}function Tb(t,e,n){n===void 0&&(n=!1);const o=Va(t),i=Wp(t),s=jp(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=ta(a)),[a,ta(a)]}function Nb(t){const e=ta(t);return[fc(t),e,fc(e)]}function fc(t){return t.replace(/start|end/g,e=>xb[e])}function Db(t,e,n){const o=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:a;default:return[]}}function $b(t,e,n,o){const i=Va(t);let s=Db(Lr(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(fc)))),s}function ta(t){return t.replace(/left|right|bottom|top/g,e=>Sb[e])}function Bb(t){return{top:0,right:0,bottom:0,left:0,...t}}function Mb(t){return typeof t!="number"?Bb(t):{top:t,right:t,bottom:t,left:t}}function na(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ld(t,e,n){let{reference:o,floating:i}=t;const s=iu(e),a=Wp(e),l=jp(a),c=Lr(e),u=s==="y",d=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,f=o[l]/2-i[l]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-i.width,y:p};break;default:m={x:o.x,y:o.y}}switch(Va(e)){case"start":m[a]-=f*(n&&u?-1:1);break;case"end":m[a]+=f*(n&&u?-1:1);break}return m}const Lb=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:p}=Ld(u,o,c),f=o,m={},h=0;for(let v=0;v<l.length;v++){const{name:C,fn:y}=l[v],{x:g,y:_,data:b,reset:w}=await y({x:d,y:p,initialPlacement:o,placement:f,strategy:i,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=g??d,p=_??p,m={...m,[C]:{...m[C],...b}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):w.rects),{x:d,y:p}=Ld(u,f,c)),v=-1;continue}}return{x:d,y:p,placement:f,strategy:i,middlewareData:m}};async function Zp(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:m=0}=ru(e,t),h=Mb(m),C=l[f?p==="floating"?"reference":"floating":p],y=na(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(C)))==null||n?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),g=p==="floating"?{...a.floating,x:o,y:i}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},w=na(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:_,strategy:c}):g);return{top:(y.top-w.top+h.top)/b.y,bottom:(w.bottom-y.bottom+h.bottom)/b.y,left:(y.left-w.left+h.left)/b.x,right:(w.right-y.right+h.right)/b.x}}const Ob=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...C}=ru(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Lr(i),g=Lr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=f||(g||!v?[ta(l)]:Nb(l));!f&&h!=="none"&&b.push(...$b(l,v,h,_));const w=[l,...b],k=await Zp(e,C),x=[];let S=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&x.push(k[y]),p){const A=Tb(i,a,_);x.push(k[A[0]],k[A[1]])}if(S=[...S,{placement:i,overflows:x}],!x.every(A=>A<=0)){var E,N;const A=(((E=s.flip)==null?void 0:E.index)||0)+1,M=w[A];if(M)return{data:{index:A,overflows:S},reset:{placement:M}};let D=(N=S.filter($=>$.overflows[0]<=0).sort(($,B)=>$.overflows[1]-B.overflows[1])[0])==null?void 0:N.placement;if(!D)switch(m){case"bestFit":{var I;const $=(I=S.map(B=>[B.placement,B.overflows.filter(P=>P>0).reduce((P,L)=>P+L,0)]).sort((B,P)=>B[1]-P[1])[0])==null?void 0:I[0];$&&(D=$);break}case"initialPlacement":D=l;break}if(i!==D)return{reset:{placement:D}}}return{}}}},Vb=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:s}=e,{apply:a=()=>{},...l}=ru(t,e),c=await Zp(e,l),u=Lr(n),d=Va(n),p=iu(n)==="y",{width:f,height:m}=o.floating;let h,v;u==="top"||u==="bottom"?(h=u,v=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=u,h=d==="end"?"top":"bottom");const C=m-c[h],y=f-c[v],g=!e.middlewareData.shift;let _=C,b=y;if(p){const k=f-c.left-c.right;b=d||g?zi(y,k):k}else{const k=m-c.top-c.bottom;_=d||g?zi(C,k):k}if(g&&!d){const k=Kt(c.left,0),x=Kt(c.right,0),S=Kt(c.top,0),E=Kt(c.bottom,0);p?b=f-2*(k!==0||x!==0?k+x:Kt(c.left,c.right)):_=m-2*(S!==0||E!==0?S+E:Kt(c.top,c.bottom))}await a({...e,availableWidth:b,availableHeight:_});const w=await i.getDimensions(s.floating);return f!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function Co(t){return Kp(t)?(t.nodeName||"").toLowerCase():"#document"}function Ut(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function eo(t){var e;return(e=(Kp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kp(t){return t instanceof Node||t instanceof Ut(t).Node}function Yn(t){return t instanceof Element||t instanceof Ut(t).Element}function Bn(t){return t instanceof HTMLElement||t instanceof Ut(t).HTMLElement}function Od(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ut(t).ShadowRoot}function is(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=tn(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ib(t){return["table","td","th"].includes(Co(t))}function su(t){const e=au(),n=tn(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Pb(t){let e=Or(t);for(;Bn(e)&&!Ia(e);){if(su(e))return e;e=Or(e)}return null}function au(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ia(t){return["html","body","#document"].includes(Co(t))}function tn(t){return Ut(t).getComputedStyle(t)}function Pa(t){return Yn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Or(t){if(Co(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Od(t)&&t.host||eo(t);return Od(e)?e.host:e}function Gp(t){const e=Or(t);return Ia(e)?t.ownerDocument?t.ownerDocument.body:t.body:Bn(e)&&is(e)?e:Gp(e)}function Ui(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Gp(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=Ut(i);return s?e.concat(a,a.visualViewport||[],is(i)?i:[],a.frameElement&&n?Ui(a.frameElement):[]):e.concat(i,Ui(i))}function Yp(t){const e=tn(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=Bn(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,l=ea(n)!==s||ea(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function lu(t){return Yn(t)?t:t.contextElement}function Sr(t){const e=lu(t);if(!Bn(e))return _o(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Yp(e);let a=(s?ea(n.width):n.width)/o,l=(s?ea(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Fb=_o(0);function Jp(t){const e=Ut(t);return!au()||!e.visualViewport?Fb:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Rb(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ut(t)?!1:e}function Yo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=lu(t);let a=_o(1);e&&(o?Yn(o)&&(a=Sr(o)):a=Sr(t));const l=Rb(s,n,o)?Jp(s):_o(0);let c=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(s){const f=Ut(s),m=o&&Yn(o)?Ut(o):o;let h=f.frameElement;for(;h&&o&&m!==f;){const v=Sr(h),C=h.getBoundingClientRect(),y=tn(h),g=C.left+(h.clientLeft+parseFloat(y.paddingLeft))*v.x,_=C.top+(h.clientTop+parseFloat(y.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,p*=v.y,c+=g,u+=_,h=Ut(h).frameElement}}return na({width:d,height:p,x:c,y:u})}function zb(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=Bn(n),s=eo(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=_o(1);const c=_o(0);if((i||!i&&o!=="fixed")&&((Co(n)!=="body"||is(s))&&(a=Pa(n)),Bn(n))){const u=Yo(n);l=Sr(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}}function Ub(t){return Array.from(t.getClientRects())}function Xp(t){return Yo(eo(t)).left+Pa(t).scrollLeft}function Hb(t){const e=eo(t),n=Pa(t),o=t.ownerDocument.body,i=Kt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Kt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Xp(t);const l=-n.scrollTop;return tn(o).direction==="rtl"&&(a+=Kt(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:l}}function qb(t,e){const n=Ut(t),o=eo(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;const u=au();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l,y:c}}function jb(t,e){const n=Yo(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=Bn(t)?Sr(t):_o(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Vd(t,e,n){let o;if(e==="viewport")o=qb(t,n);else if(e==="document")o=Hb(eo(t));else if(Yn(e))o=jb(e,n);else{const i=Jp(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return na(o)}function Qp(t,e){const n=Or(t);return n===e||!Yn(n)||Ia(n)?!1:tn(n).position==="fixed"||Qp(n,e)}function Wb(t,e){const n=e.get(t);if(n)return n;let o=Ui(t,[],!1).filter(l=>Yn(l)&&Co(l)!=="body"),i=null;const s=tn(t).position==="fixed";let a=s?Or(t):t;for(;Yn(a)&&!Ia(a);){const l=tn(a),c=su(a);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||is(a)&&!c&&Qp(t,a))?o=o.filter(d=>d!==a):i=l,a=Or(a)}return e.set(t,o),o}function Zb(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?Wb(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const p=Vd(e,d,i);return u.top=Kt(p.top,u.top),u.right=zi(p.right,u.right),u.bottom=zi(p.bottom,u.bottom),u.left=Kt(p.left,u.left),u},Vd(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Kb(t){return Yp(t)}function Gb(t,e,n){const o=Bn(e),i=eo(e),s=n==="fixed",a=Yo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=_o(0);if(o||!o&&!s)if((Co(e)!=="body"||is(i))&&(l=Pa(e)),o){const u=Yo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=Xp(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Id(t,e){return!Bn(t)||tn(t).position==="fixed"?null:e?e(t):t.offsetParent}function em(t,e){const n=Ut(t);if(!Bn(t))return n;let o=Id(t,e);for(;o&&Ib(o)&&tn(o).position==="static";)o=Id(o,e);return o&&(Co(o)==="html"||Co(o)==="body"&&tn(o).position==="static"&&!su(o))?n:o||Pb(t)||n}const Yb=async function(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||em,s=this.getDimensions;return{reference:Gb(e,await i(n),o),floating:{x:0,y:0,...await s(n)}}};function Jb(t){return tn(t).direction==="rtl"}const Xb={convertOffsetParentRelativeRectToViewportRelativeRect:zb,getDocumentElement:eo,getClippingRect:Zb,getOffsetParent:em,getElementRects:Yb,getClientRects:Ub,getDimensions:Kb,getScale:Sr,isElement:Yn,isRTL:Jb};function Qb(t,e){let n=null,o;const i=eo(t);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:p,height:f}=t.getBoundingClientRect();if(l||e(),!p||!f)return;const m=Ns(d),h=Ns(i.clientWidth-(u+p)),v=Ns(i.clientHeight-(d+f)),C=Ns(u),g={rootMargin:-m+"px "+-h+"px "+-v+"px "+-C+"px",threshold:Kt(0,zi(1,c))||1};let _=!0;function b(w){const k=w[0].intersectionRatio;if(k!==c){if(!_)return a();k?a(!1,k):o=setTimeout(()=>{a(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,g)}n.observe(t)}return a(!0),s}function e7(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=lu(t),d=i||s?[...u?Ui(u):[],...Ui(e)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=u&&l?Qb(u,n):null;let f=-1,m=null;a&&(m=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let h,v=c?Yo(t):null;c&&C();function C(){const y=Yo(t);v&&(y.x!==v.x||y.y!==v.y||y.width!==v.width||y.height!==v.height)&&n(),v=y,h=requestAnimationFrame(C)}return n(),()=>{d.forEach(y=>{i&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),p&&p(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const t7=(t,e,n)=>{const o=new Map,i={platform:Xb,...n},s={...i.platform,_c:o};return Lb(t,e,{...i,platform:s})},n7=t=>{const e=r.ref(!1),n=r.ref(),o=r.ref(),i=r.ref(0);function s(){const p=r.unref(t.appendTo);return p?typeof p=="string"?document.getElementById(p)??document.body:p:document.getElementById("floatingElements")??document.body}const a=s(),l=r.ref(()=>{});function c(p){p.relatedTarget&&o.value&&o.value.contains(p.relatedTarget)||t.multiselect.value.deactivate()}function u(){const p=t.multiselect.value.$el,f=p.querySelector(".multiselect-dropdown");if(!f||!p||e.value===!0)return;o.value=f,n.value=p,getComputedStyle(f).getPropertyValue("display")==="none"&&(f.style.display="flex"),i.value=f.offsetHeight,f.style.removeProperty("display"),Object.assign(f.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),a.appendChild(f),t.multiselect.value.handleFocusOut=c;const h=e7(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||t7(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[Ob({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),Vb({apply({availableWidth:p,availableHeight:f,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${i.value}px`,width:`${h.reference.width}px`,maxWidth:`${p}px`,maxHeight:`${f}px`})}})]}).then(({x:p,y:f})=>{Object.assign(o.value.style,{left:`${p}px`,top:`${f}px`})})}r.onMounted(()=>{u()}),r.onBeforeUnmount(()=>{l.value()}),r.onUnmounted(()=>{l.value()})};function En(t){return[null,void 0].indexOf(t)!==-1}function o7(t,e,n){const{object:o,valueProp:i,mode:s}=r.toRefs(t),a=r.getCurrentInstance().proxy,l=n.iv,c=(p,f=!0)=>{l.value=d(p);const m=u(p);e.emit("change",m,a),f&&(e.emit("input",m),e.emit("update:modelValue",m))},u=p=>o.value||En(p)?p:Array.isArray(p)?p.map(f=>f[i.value]):p[i.value],d=p=>En(p)?s.value==="single"?{}:[]:p;return{update:c}}function r7(t,e){const{value:n,modelValue:o,mode:i,valueProp:s}=r.toRefs(t),a=r.ref(i.value!=="single"?[]:{}),l=r.computed(()=>o&&o.value!==void 0?o.value:n.value),c=r.computed(()=>i.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=r.computed(()=>i.value!=="single"?a.value.map(d=>d[s.value]).join(","):a.value[s.value]);return{iv:a,internalValue:a,ev:l,externalValue:l,textValue:u,plainValue:c}}function i7(t,e,n){const{regex:o}=r.toRefs(t),i=r.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=r.ref(null),c=()=>{l.value=""},u=f=>{l.value=f.target.value},d=f=>{if(o&&o.value){let m=o.value;typeof m=="string"&&(m=new RegExp(m)),f.key.match(m)||f.preventDefault()}},p=f=>{if(o&&o.value){let h=(f.clipboardData||window.clipboardData).getData("Text"),v=o.value;typeof v=="string"&&(v=new RegExp(v)),h.split("").every(C=>!!C.match(v))||f.preventDefault()}e.emit("paste",f,i)};return r.watch(l,f=>{!s.value&&f&&a(),e.emit("search-change",f,i)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:p}}function s7(t,e,n){const{groupSelect:o,mode:i,groups:s,disabledProp:a}=r.toRefs(t),l=r.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(i.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Sl(t,e=!0){return e?String(t).toLowerCase().trim():String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function a7(t){return Object.prototype.toString.call(t)==="[object Object]"}function l7(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,i){return o===n[i]})}function c7(t,e,n){const{options:o,mode:i,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:p,appendNewOption:f,multipleLabel:m,object:h,loading:v,delay:C,resolveOnLoad:y,minChars:g,filterResults:_,clearOnSearch:b,clearOnSelect:w,valueProp:k,allowAbsent:x,groupLabel:S,canDeselect:E,max:N,strict:I,closeOnSelect:A,closeOnDeselect:M,groups:D,reverse:$,infinite:B,groupOptions:P,groupHideEmpty:L,groupSelect:R,onCreate:Y,disabledProp:ae,searchStart:oe,searchFilter:Ne}=r.toRefs(t),ce=r.getCurrentInstance().proxy,ne=n.iv,H=n.ev,z=n.search,re=n.clearSearch,Ee=n.update,ze=n.pointer,we=n.setPointer,Ce=n.clearPointer,_t=n.focus,U=n.deactivate,ie=n.close,he=n.localize,pe=r.ref([]),Ze=r.ref([]),De=r.ref(!1),$e=r.ref(null),Fe=r.ref(B.value&&a.value===-1?10:a.value),Ge=r.computed(()=>c.value||u.value||!1),Ye=r.computed(()=>p.value!==void 0?p.value:f.value!==void 0?f.value:!0),Me=r.computed(()=>{if(D.value){let V=Lt.value||[],J=[];return V.forEach(be=>{si(be[P.value]).forEach(Ue=>{J.push(Object.assign({},Ue,be[ae.value]?{[ae.value]:!0}:{}))})}),J}else{let V=si(Ze.value||[]);return pe.value.length&&(V=V.concat(pe.value)),V}}),Ct=r.computed(()=>{let V=Me.value;return $.value&&(V=V.reverse()),W.value.length&&(V=W.value.concat(V)),ii(V)}),it=r.computed(()=>{let V=Ct.value;return Fe.value>0&&(V=V.slice(0,Fe.value)),V}),Lt=r.computed(()=>{if(!D.value)return[];let V=[],J=Ze.value||[];return pe.value.length&&V.push({[S.value]:" ",[P.value]:[...pe.value],__CREATE__:!0}),V.concat(J)}),rn=r.computed(()=>{let V=[...Lt.value].map(J=>({...J}));return W.value.length&&(V[0]&&V[0].__CREATE__?V[0][P.value]=[...W.value,...V[0][P.value]]:V=[{[S.value]:" ",[P.value]:[...W.value],__CREATE__:!0}].concat(V)),V}),Cn=r.computed(()=>{if(!D.value)return[];let V=rn.value;return Do((V||[]).map((J,be)=>{const Ue=si(J[P.value]);return{...J,index:be,group:!0,[P.value]:ii(Ue,!1).map(Fn=>Object.assign({},Fn,J[ae.value]?{[ae.value]:!0}:{})),__VISIBLE__:ii(Ue).map(Fn=>Object.assign({},Fn,J[ae.value]?{[ae.value]:!0}:{}))}}))}),bn=r.computed(()=>{switch(i.value){case"single":return!En(ne.value[k.value]);case"multiple":case"tags":return!En(ne.value)&&ne.value.length>0}}),kn=r.computed(()=>m!==void 0&&m.value!==void 0?m.value(ne.value,ce):ne.value&&ne.value.length>1?`${ne.value.length} options selected`:"1 option selected"),no=r.computed(()=>!Me.value.length&&!De.value&&!W.value.length),O=r.computed(()=>Me.value.length>0&&it.value.length==0&&(z.value&&D.value||!D.value)),W=r.computed(()=>Ge.value===!1||!z.value?[]:Cs(z.value)!==-1?[]:[{[k.value]:z.value,[le.value[0]]:z.value,[d.value]:z.value,__CREATE__:!0}]),le=r.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),Je=r.computed(()=>{switch(i.value){case"single":return null;case"multiple":case"tags":return[]}}),Ot=r.computed(()=>v.value||De.value),bt=V=>{switch(typeof V!="object"&&(V=Pt(V)),i.value){case"single":Ee(V);break;case"multiple":case"tags":Ee(ne.value.concat(V));break}e.emit("select",Et(V),V,ce)},ve=V=>{switch(typeof V!="object"&&(V=Pt(V)),i.value){case"single":ni();break;case"tags":case"multiple":Ee(Array.isArray(V)?ne.value.filter(J=>V.map(be=>be[k.value]).indexOf(J[k.value])===-1):ne.value.filter(J=>J[k.value]!=V[k.value]));break}e.emit("deselect",Et(V),V,ce)},Et=V=>h.value?V:V[k.value],oo=V=>{ve(V)},ys=(V,J)=>{if(J.button!==0){J.preventDefault();return}oo(V)},ni=()=>{Ee(Je.value),e.emit("clear",ce)},Vt=V=>{if(V.group!==void 0)return i.value==="single"?!1:_s(V[P.value])&&V[P.value].length;switch(i.value){case"single":return!En(ne.value)&&ne.value[k.value]==V[k.value];case"tags":case"multiple":return!En(ne.value)&&ne.value.map(J=>J[k.value]).indexOf(V[k.value])!==-1}},fr=V=>V[ae.value]===!0,ro=()=>N===void 0||N.value===-1||!bn.value&&N.value>0?!1:ne.value.length>=N.value,pr=V=>{if(!fr(V)){if(Y&&Y.value&&!Vt(V)&&V.__CREATE__&&(V={...V},delete V.__CREATE__,V=Y.value(V,ce),V instanceof Promise)){De.value=!0,V.then(J=>{De.value=!1,It(J)});return}It(V)}},It=V=>{switch(V.__CREATE__&&(V={...V},delete V.__CREATE__),i.value){case"single":if(V&&Vt(V)){E.value&&ve(V),M.value&&(Ce(),ie());return}V&&No(V),w.value&&re(),A.value&&(Ce(),ie()),V&&bt(V);break;case"multiple":if(V&&Vt(V)){ve(V),M.value&&(Ce(),ie());return}if(ro()){e.emit("max",ce);return}V&&(No(V),bt(V)),w.value&&re(),l.value&&Ce(),A.value&&ie();break;case"tags":if(V&&Vt(V)){ve(V),M.value&&(Ce(),ie());return}if(ro()){e.emit("max",ce);return}V&&No(V),w.value&&re(),V&&bt(V),l.value&&Ce(),A.value&&ie();break}A.value||_t()},io=V=>{if(!(fr(V)||i.value==="single"||!R.value)){switch(i.value){case"multiple":case"tags":vl(V[P.value])?ve(V[P.value]):bt(V[P.value].filter(J=>ne.value.map(be=>be[k.value]).indexOf(J[k.value])===-1).filter(J=>!J[ae.value]).filter((J,be)=>ne.value.length+1+be<=N.value||N.value===-1)),l.value&&ze.value&&we(Cn.value.filter(J=>!J[ae.value])[ze.value.index]);break}A.value&&U()}},No=V=>{Pt(V[k.value])===void 0&&Ge.value&&(e.emit("tag",V[k.value],ce),e.emit("option",V[k.value],ce),e.emit("create",V[k.value],ce),Ye.value&&yl(V),re())},oi=()=>{i.value!=="single"&&bt(it.value.filter(V=>!V.disabled&&!Vt(V)))},vl=V=>V.find(J=>!Vt(J)&&!J[ae.value])===void 0,_s=V=>V.find(J=>!Vt(J))===void 0,Pt=V=>Me.value[Me.value.map(J=>String(J[k.value])).indexOf(String(V))],Cs=V=>Me.value.findIndex(J=>le.value.some(be=>(parseInt(J[be])==J[be]?parseInt(J[be]):J[be])===(parseInt(V)==V?parseInt(V):V))),ri=V=>["tags","multiple"].indexOf(i.value)!==-1&&l.value&&Vt(V),yl=V=>{pe.value.push(V)},Do=V=>L.value?V.filter(J=>z.value?J.__VISIBLE__.length:J[P.value].length):V.filter(J=>z.value?J.__VISIBLE__.length:!0),ii=(V,J=!0)=>{let be=V;if(z.value&&_.value){let Ue=Ne.value;Ue||(Ue=(Fn,an,ci)=>le.value.some(Rn=>{let ks=Sl(he(Fn[Rn]),I.value);return oe.value?ks.startsWith(Sl(an,I.value)):ks.indexOf(Sl(an,I.value))!==-1})),be=be.filter(Fn=>Ue(Fn,z.value,ce))}return l.value&&J&&(be=be.filter(Ue=>!ri(Ue))),be},si=V=>{let J=V;return a7(J)&&(J=Object.keys(J).map(be=>{let Ue=J[be];return{[k.value]:be,[le.value[0]]:Ue,[d.value]:Ue}})),J=J.map(be=>typeof be=="object"?be:{[k.value]:be,[le.value[0]]:be,[d.value]:be}),J},Ve=()=>{En(H.value)||(ne.value=so(H.value))},sn=V=>(De.value=!0,new Promise((J,be)=>{o.value(z.value,ce).then(Ue=>{Ze.value=Ue||[],typeof V=="function"&&V(Ue),De.value=!1}).catch(Ue=>{console.error(Ue),Ze.value=[],De.value=!1}).finally(()=>{J()})})),ai=()=>{if(bn.value)if(i.value==="single"){let V=Pt(ne.value[k.value]);if(V!==void 0){let J=V[d.value];ne.value[d.value]=J,h.value&&(H.value[d.value]=J)}}else ne.value.forEach((V,J)=>{let be=Pt(ne.value[J][k.value]);if(be!==void 0){let Ue=be[d.value];ne.value[J][d.value]=Ue,h.value&&(H.value[J][d.value]=Ue)}})},bs=V=>{sn(V)},so=V=>En(V)?i.value==="single"?{}:[]:h.value?V:i.value==="single"?Pt(V)||(x.value?{[d.value]:V,[k.value]:V,[le.value[0]]:V}:{}):V.filter(J=>!!Pt(J)||x.value).map(J=>Pt(J)||{[d.value]:J,[k.value]:J,[le.value[0]]:J}),li=()=>{$e.value=r.watch(z,V=>{V.length<g.value||!V&&g.value!==0||(De.value=!0,b.value&&(Ze.value=[]),setTimeout(()=>{V==z.value&&o.value(z.value,ce).then(J=>{(V==z.value||!z.value)&&(Ze.value=J,ze.value=it.value.filter(be=>be[ae.value]!==!0)[0]||null,De.value=!1)}).catch(J=>{console.error(J)})},C.value))},{flush:"sync"})};if(i.value!=="single"&&!En(H.value)&&!Array.isArray(H.value))throw new Error(`v-model must be an array when using "${i.value}" mode`);return o&&typeof o.value=="function"?y.value?sn(Ve):h.value==!0&&Ve():(Ze.value=o.value,Ve()),C.value>-1&&li(),r.watch(C,(V,J)=>{$e.value&&$e.value(),V>=0&&li()}),r.watch(H,V=>{if(En(V)){Ee(so(V),!1);return}switch(i.value){case"single":(h.value?V[k.value]!=ne.value[k.value]:V!=ne.value[k.value])&&Ee(so(V),!1);break;case"multiple":case"tags":l7(h.value?V.map(J=>J[k.value]):V,ne.value.map(J=>J[k.value]))||Ee(so(V),!1);break}},{deep:!0}),r.watch(o,(V,J)=>{typeof t.options=="function"?y.value&&(!J||V&&V.toString()!==J.toString())&&sn():(Ze.value=t.options,Object.keys(ne.value).length||Ve(),ai())}),r.watch(d,ai),r.watch(a,(V,J)=>{Fe.value=B.value&&V===-1?10:V}),{pfo:Ct,fo:it,filteredOptions:it,hasSelected:bn,multipleLabelText:kn,eo:Me,extendedOptions:Me,eg:Lt,extendedGroups:Lt,fg:Cn,filteredGroups:Cn,noOptions:no,noResults:O,resolving:De,busy:Ot,offset:Fe,select:bt,deselect:ve,remove:oo,selectAll:oi,clear:ni,isSelected:Vt,isDisabled:fr,isMax:ro,getOption:Pt,handleOptionClick:pr,handleGroupClick:io,handleTagRemove:ys,refreshOptions:bs,resolveOptions:sn,refreshLabels:ai}}function u7(t,e,n){const{valueProp:o,showOptions:i,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:p}=r.toRefs(t),f=n.fo,m=n.fg,h=n.handleOptionClick,v=n.handleGroupClick,C=n.search,y=n.pointer,g=n.setPointer,_=n.clearPointer,b=n.multiselect,w=n.isOpen,k=r.computed(()=>f.value.filter(H=>!H[d.value])),x=r.computed(()=>m.value.filter(H=>!H[d.value])),S=r.computed(()=>c.value!=="single"&&u.value),E=r.computed(()=>y.value&&y.value.group),N=r.computed(()=>ce(y.value)),I=r.computed(()=>{const H=E.value?y.value:ce(y.value),z=x.value.map(Ee=>Ee[a.value]).indexOf(H[a.value]);let re=x.value[z-1];return re===void 0&&(re=M.value),re}),A=r.computed(()=>{let H=x.value.map(z=>z.label).indexOf(E.value?y.value[a.value]:ce(y.value)[a.value])+1;return x.value.length<=H&&(H=0),x.value[H]}),M=r.computed(()=>[...x.value].slice(-1)[0]),D=r.computed(()=>y.value.__VISIBLE__.filter(H=>!H[d.value])[0]),$=r.computed(()=>{const H=N.value.__VISIBLE__.filter(z=>!z[d.value]);return H[H.map(z=>z[o.value]).indexOf(y.value[o.value])-1]}),B=r.computed(()=>{const H=ce(y.value).__VISIBLE__.filter(z=>!z[d.value]);return H[H.map(z=>z[o.value]).indexOf(y.value[o.value])+1]}),P=r.computed(()=>[...I.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),L=r.computed(()=>[...M.value.__VISIBLE__.filter(H=>!H[d.value])].slice(-1)[0]),R=H=>y.value&&(!H.group&&y.value[o.value]===H[o.value]||H.group!==void 0&&y.value[a.value]===H[a.value])?!0:void 0,Y=()=>{g(k.value[0]||null)},ae=()=>{!y.value||y.value[d.value]===!0||(E.value?v(y.value):h(y.value))},oe=()=>{if(y.value===null)g((l.value&&S.value?x.value[0].__CREATE__?k.value[0]:x.value[0]:k.value[0])||null);else if(l.value&&S.value){let H=E.value?D.value:B.value;H===void 0&&(H=A.value,H.__CREATE__&&(H=H[p.value][0])),g(H||null)}else{let H=k.value.map(z=>z[o.value]).indexOf(y.value[o.value])+1;k.value.length<=H&&(H=0),g(k.value[H]||null)}r.nextTick(()=>{ne()})},Ne=()=>{if(y.value===null){let H=k.value[k.value.length-1];l.value&&S.value&&(H=L.value,H===void 0&&(H=M.value)),g(H||null)}else if(l.value&&S.value){let H=E.value?P.value:$.value;H===void 0&&(H=E.value?I.value:N.value,H.__CREATE__&&(H=P.value,H===void 0&&(H=I.value))),g(H||null)}else{let H=k.value.map(z=>z[o.value]).indexOf(y.value[o.value])-1;H<0&&(H=k.value.length-1),g(k.value[H]||null)}r.nextTick(()=>{ne()})},ce=H=>x.value.find(z=>z.__VISIBLE__.map(re=>re[o.value]).indexOf(H[o.value])!==-1),ne=()=>{let H=b.value.querySelector("[data-pointed]");if(!H)return;let z=H.parentElement.parentElement;l.value&&(z=E.value?H.parentElement.parentElement.parentElement:H.parentElement.parentElement.parentElement.parentElement),H.offsetTop+H.offsetHeight>z.clientHeight+z.scrollTop&&(z.scrollTop=H.offsetTop+H.offsetHeight-z.clientHeight),H.offsetTop<z.scrollTop&&(z.scrollTop=H.offsetTop)};return r.watch(C,H=>{s.value&&(H.length&&i.value?Y():_())}),r.watch(w,H=>{if(H){let z=b.value.querySelectorAll("[data-selected]")[0];if(!z)return;let re=z.parentElement.parentElement;r.nextTick(()=>{re.scrollTop>0||(re.scrollTop=z.offsetTop)})}}),{pointer:y,canPointGroups:S,isPointed:R,setPointerFirst:Y,selectPointer:ae,forwardPointer:oe,backwardPointer:Ne}}function Ht(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Jo(t){var e=Ht(t).Element;return t instanceof e||t instanceof Element}function Qt(t){var e=Ht(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function cu(t){if(typeof ShadowRoot>"u")return!1;var e=Ht(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var qo=Math.max,oa=Math.min,Vr=Math.round;function pc(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function tm(){return!/^((?!chrome|android).)*safari/i.test(pc())}function Ir(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),i=1,s=1;e&&Qt(t)&&(i=t.offsetWidth>0&&Vr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Vr(o.height)/t.offsetHeight||1);var a=Jo(t)?Ht(t):window,l=a.visualViewport,c=!tm()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/i,d=(o.top+(c&&l?l.offsetTop:0))/s,p=o.width/i,f=o.height/s;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function uu(t){var e=Ht(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function d7(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function f7(t){return t===Ht(t)||!Qt(t)?uu(t):d7(t)}function Mn(t){return t?(t.nodeName||"").toLowerCase():null}function So(t){return((Jo(t)?t.ownerDocument:t.document)||window.document).documentElement}function du(t){return Ir(So(t)).left+uu(t).scrollLeft}function Jn(t){return Ht(t).getComputedStyle(t)}function fu(t){var e=Jn(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function p7(t){var e=t.getBoundingClientRect(),n=Vr(e.width)/t.offsetWidth||1,o=Vr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function m7(t,e,n){n===void 0&&(n=!1);var o=Qt(e),i=Qt(e)&&p7(e),s=So(e),a=Ir(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Mn(e)!=="body"||fu(s))&&(l=f7(e)),Qt(e)?(c=Ir(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=du(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function nm(t){var e=Ir(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Fa(t){return Mn(t)==="html"?t:t.assignedSlot||t.parentNode||(cu(t)?t.host:null)||So(t)}function om(t){return["html","body","#document"].indexOf(Mn(t))>=0?t.ownerDocument.body:Qt(t)&&fu(t)?t:om(Fa(t))}function Ni(t,e){var n;e===void 0&&(e=[]);var o=om(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Ht(o),a=i?[s].concat(s.visualViewport||[],fu(o)?o:[]):o,l=e.concat(a);return i?l:l.concat(Ni(Fa(a)))}function h7(t){return["table","td","th"].indexOf(Mn(t))>=0}function Pd(t){return!Qt(t)||Jn(t).position==="fixed"?null:t.offsetParent}function g7(t){var e=/firefox/i.test(pc()),n=/Trident/i.test(pc());if(n&&Qt(t)){var o=Jn(t);if(o.position==="fixed")return null}var i=Fa(t);for(cu(i)&&(i=i.host);Qt(i)&&["html","body"].indexOf(Mn(i))<0;){var s=Jn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ra(t){for(var e=Ht(t),n=Pd(t);n&&h7(n)&&Jn(n).position==="static";)n=Pd(n);return n&&(Mn(n)==="html"||Mn(n)==="body"&&Jn(n).position==="static")?e:n||g7(t)||e}var dn="top",Ln="bottom",bo="right",Zn="left",pu="auto",za=[dn,Ln,bo,Zn],Pr="start",Hi="end",v7="clippingParents",rm="viewport",vi="popper",y7="reference",Fd=za.reduce(function(t,e){return t.concat([e+"-"+Pr,e+"-"+Hi])},[]),_7=[].concat(za,[pu]).reduce(function(t,e){return t.concat([e,e+"-"+Pr,e+"-"+Hi])},[]),C7="beforeRead",b7="read",k7="afterRead",w7="beforeMain",E7="main",S7="afterMain",x7="beforeWrite",A7="write",T7="afterWrite",N7=[C7,b7,k7,w7,E7,S7,x7,A7,T7];function D7(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&i(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),o}function $7(t){var e=D7(t);return N7.reduce(function(n,o){return n.concat(e.filter(function(i){return i.phase===o}))},[])}function B7(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function M7(t){var e=t.reduce(function(n,o){var i=n[o.name];return n[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function L7(t,e){var n=Ht(t),o=So(t),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var u=tm();(u||!u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+du(t),y:c}}function O7(t){var e,n=So(t),o=uu(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=qo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=qo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-o.scrollLeft+du(t),c=-o.scrollTop;return Jn(i||n).direction==="rtl"&&(l+=qo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function V7(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&cu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function mc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function I7(t,e){var n=Ir(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Rd(t,e,n){return e===rm?mc(L7(t,n)):Jo(e)?I7(e,n):mc(O7(So(t)))}function P7(t){var e=Ni(Fa(t)),n=["absolute","fixed"].indexOf(Jn(t).position)>=0,o=n&&Qt(t)?Ra(t):t;return Jo(o)?e.filter(function(i){return Jo(i)&&V7(i,o)&&Mn(i)!=="body"}):[]}function F7(t,e,n,o){var i=e==="clippingParents"?P7(t):[].concat(e),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(c,u){var d=Rd(t,u,o);return c.top=qo(d.top,c.top),c.right=oa(d.right,c.right),c.bottom=oa(d.bottom,c.bottom),c.left=qo(d.left,c.left),c},Rd(t,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ho(t){return t.split("-")[0]}function Fr(t){return t.split("-")[1]}function im(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function sm(t){var e=t.reference,n=t.element,o=t.placement,i=o?ho(o):null,s=o?Fr(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(i){case dn:c={x:a,y:e.y-n.height};break;case Ln:c={x:a,y:e.y+e.height};break;case bo:c={x:e.x+e.width,y:l};break;case Zn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=i?im(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Pr:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Hi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function am(){return{top:0,right:0,bottom:0,left:0}}function R7(t){return Object.assign({},am(),t)}function z7(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function mu(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?v7:l,u=n.rootBoundary,d=u===void 0?rm:u,p=n.elementContext,f=p===void 0?vi:p,m=n.altBoundary,h=m===void 0?!1:m,v=n.padding,C=v===void 0?0:v,y=R7(typeof C!="number"?C:z7(C,za)),g=f===vi?y7:vi,_=t.rects.popper,b=t.elements[h?g:f],w=F7(Jo(b)?b:b.contextElement||So(t.elements.popper),c,d,a),k=Ir(t.elements.reference),x=sm({reference:k,element:_,strategy:"absolute",placement:i}),S=mc(Object.assign({},_,x)),E=f===vi?S:k,N={top:w.top-E.top+y.top,bottom:E.bottom-w.bottom+y.bottom,left:w.left-E.left+y.left,right:E.right-w.right+y.right},I=t.modifiersData.offset;if(f===vi&&I){var A=I[i];Object.keys(N).forEach(function(M){var D=[bo,Ln].indexOf(M)>=0?1:-1,$=[dn,Ln].indexOf(M)>=0?"y":"x";N[M]+=A[$]*D})}return N}var zd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ud(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function U7(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?zd:i;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},zd,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],f=!1,m={state:d,setOptions:function(y){var g=typeof y=="function"?y(d.options):y;v(),d.options=Object.assign({},s,d.options,g),d.scrollParents={reference:Jo(l)?Ni(l):l.contextElement?Ni(l.contextElement):[],popper:Ni(c)};var _=$7(M7([].concat(o,d.options.modifiers)));return d.orderedModifiers=_.filter(function(b){return b.enabled}),h(),m.update()},forceUpdate:function(){if(!f){var y=d.elements,g=y.reference,_=y.popper;if(Ud(g,_)){d.rects={reference:m7(g,Ra(_),d.options.strategy==="fixed"),popper:nm(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var w=d.orderedModifiers[b],k=w.fn,x=w.options,S=x===void 0?{}:x,E=w.name;typeof k=="function"&&(d=k({state:d,options:S,name:E,instance:m})||d)}}}},update:B7(function(){return new Promise(function(C){m.forceUpdate(),C(d)})}),destroy:function(){v(),f=!0}};if(!Ud(l,c))return m;m.setOptions(u).then(function(C){!f&&u.onFirstUpdate&&u.onFirstUpdate(C)});function h(){d.orderedModifiers.forEach(function(C){var y=C.name,g=C.options,_=g===void 0?{}:g,b=C.effect;if(typeof b=="function"){var w=b({state:d,name:y,instance:m,options:_}),k=function(){};p.push(w||k)}})}function v(){p.forEach(function(C){return C()}),p=[]}return m}}var Ds={passive:!0};function H7(t){var e=t.state,n=t.instance,o=t.options,i=o.scroll,s=i===void 0?!0:i,a=o.resize,l=a===void 0?!0:a,c=Ht(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ds)}),l&&c.addEventListener("resize",n.update,Ds),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ds)}),l&&c.removeEventListener("resize",n.update,Ds)}}var q7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H7,data:{}};function j7(t){var e=t.state,n=t.name;e.modifiersData[n]=sm({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var W7={name:"popperOffsets",enabled:!0,phase:"read",fn:j7,data:{}},Z7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K7(t,e){var n=t.x,o=t.y,i=e.devicePixelRatio||1;return{x:Vr(n*i)/i||0,y:Vr(o*i)/i||0}}function Hd(t){var e,n=t.popper,o=t.popperRect,i=t.placement,s=t.variation,a=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=a.x,m=f===void 0?0:f,h=a.y,v=h===void 0?0:h,C=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=C.x,v=C.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),_=Zn,b=dn,w=window;if(u){var k=Ra(n),x="clientHeight",S="clientWidth";if(k===Ht(n)&&(k=So(n),Jn(k).position!=="static"&&l==="absolute"&&(x="scrollHeight",S="scrollWidth")),k=k,i===dn||(i===Zn||i===bo)&&s===Hi){b=Ln;var E=p&&k===w&&w.visualViewport?w.visualViewport.height:k[x];v-=E-o.height,v*=c?1:-1}if(i===Zn||(i===dn||i===Ln)&&s===Hi){_=bo;var N=p&&k===w&&w.visualViewport?w.visualViewport.width:k[S];m-=N-o.width,m*=c?1:-1}}var I=Object.assign({position:l},u&&Z7),A=d===!0?K7({x:m,y:v},Ht(n)):{x:m,y:v};if(m=A.x,v=A.y,c){var M;return Object.assign({},I,(M={},M[b]=g?"0":"",M[_]=y?"0":"",M.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",M))}return Object.assign({},I,(e={},e[b]=g?v+"px":"",e[_]=y?m+"px":"",e.transform="",e))}function G7(t){var e=t.state,n=t.options,o=n.gpuAcceleration,i=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:ho(e.placement),variation:Fr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Hd(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Hd(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Y7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:G7,data:{}};function J7(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!Qt(s)||!Mn(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function X7(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var i=e.elements[o],s=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Qt(i)||!Mn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}var Q7={name:"applyStyles",enabled:!0,phase:"write",fn:J7,effect:X7,requires:["computeStyles"]},ek=[q7,W7,Y7,Q7],tk=U7({defaultModifiers:ek});function nk(t){return t==="x"?"y":"x"}function js(t,e,n){return qo(t,oa(e,n))}function ok(t,e,n){var o=js(t,e,n);return o>n?n:o}function rk(t){var e=t.state,n=t.options,o=t.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,m=f===void 0?!0:f,h=n.tetherOffset,v=h===void 0?0:h,C=mu(e,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),y=ho(e.placement),g=Fr(e.placement),_=!g,b=im(y),w=nk(b),k=e.modifiersData.popperOffsets,x=e.rects.reference,S=e.rects.popper,E=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,N=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(k){if(s){var M,D=b==="y"?dn:Zn,$=b==="y"?Ln:bo,B=b==="y"?"height":"width",P=k[b],L=P+C[D],R=P-C[$],Y=m?-S[B]/2:0,ae=g===Pr?x[B]:S[B],oe=g===Pr?-S[B]:-x[B],Ne=e.elements.arrow,ce=m&&Ne?nm(Ne):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:am(),H=ne[D],z=ne[$],re=js(0,x[B],ce[B]),Ee=_?x[B]/2-Y-re-H-N.mainAxis:ae-re-H-N.mainAxis,ze=_?-x[B]/2+Y+re+z+N.mainAxis:oe+re+z+N.mainAxis,we=e.elements.arrow&&Ra(e.elements.arrow),Ce=we?b==="y"?we.clientTop||0:we.clientLeft||0:0,_t=(M=I==null?void 0:I[b])!=null?M:0,U=P+Ee-_t-Ce,ie=P+ze-_t,he=js(m?oa(L,U):L,P,m?qo(R,ie):R);k[b]=he,A[b]=he-P}if(l){var pe,Ze=b==="x"?dn:Zn,De=b==="x"?Ln:bo,$e=k[w],Fe=w==="y"?"height":"width",Ge=$e+C[Ze],Ye=$e-C[De],Me=[dn,Zn].indexOf(y)!==-1,Ct=(pe=I==null?void 0:I[w])!=null?pe:0,it=Me?Ge:$e-x[Fe]-S[Fe]-Ct+N.altAxis,Lt=Me?$e+x[Fe]+S[Fe]-Ct-N.altAxis:Ye,rn=m&&Me?ok(it,$e,Lt):js(m?it:Ge,$e,m?Lt:Ye);k[w]=rn,A[w]=rn-$e}e.modifiersData[o]=A}}var ik={name:"preventOverflow",enabled:!0,phase:"main",fn:rk,requiresIfExists:["offset"]},sk={left:"right",right:"left",bottom:"top",top:"bottom"};function Ws(t){return t.replace(/left|right|bottom|top/g,function(e){return sk[e]})}var ak={start:"end",end:"start"};function qd(t){return t.replace(/start|end/g,function(e){return ak[e]})}function lk(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?_7:c,d=Fr(o),p=d?l?Fd:Fd.filter(function(h){return Fr(h)===d}):za,f=p.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=p);var m=f.reduce(function(h,v){return h[v]=mu(t,{placement:v,boundary:i,rootBoundary:s,padding:a})[ho(v)],h},{});return Object.keys(m).sort(function(h,v){return m[h]-m[v]})}function ck(t){if(ho(t)===pu)return[];var e=Ws(t);return[qd(t),e,qd(e)]}function uk(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,v=n.allowedAutoPlacements,C=e.options.placement,y=ho(C),g=y===C,_=c||(g||!h?[Ws(C)]:ck(C)),b=[C].concat(_).reduce(function(ce,ne){return ce.concat(ho(ne)===pu?lk(e,{placement:ne,boundary:d,rootBoundary:p,padding:u,flipVariations:h,allowedAutoPlacements:v}):ne)},[]),w=e.rects.reference,k=e.rects.popper,x=new Map,S=!0,E=b[0],N=0;N<b.length;N++){var I=b[N],A=ho(I),M=Fr(I)===Pr,D=[dn,Ln].indexOf(A)>=0,$=D?"width":"height",B=mu(e,{placement:I,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),P=D?M?bo:Zn:M?Ln:dn;w[$]>k[$]&&(P=Ws(P));var L=Ws(P),R=[];if(s&&R.push(B[A]<=0),l&&R.push(B[P]<=0,B[L]<=0),R.every(function(ce){return ce})){E=I,S=!1;break}x.set(I,R)}if(S)for(var Y=h?3:1,ae=function(ne){var H=b.find(function(z){var re=x.get(z);if(re)return re.slice(0,ne).every(function(Ee){return Ee})});if(H)return E=H,"break"},oe=Y;oe>0;oe--){var Ne=ae(oe);if(Ne==="break")break}e.placement!==E&&(e.modifiersData[o]._skip=!0,e.placement=E,e.reset=!0)}}var dk={name:"flip",enabled:!0,phase:"main",fn:uk,requiresIfExists:["offset"],data:{_skip:!1}};function fk(t,e,n){const{disabled:o,appendTo:i,appendToBody:s,openDirection:a}=r.toRefs(t),l=r.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=r.ref(!1),p=r.ref(null),f=r.ref(null),m=r.computed(()=>i.value||s.value),h=r.computed(()=>a.value==="top"&&f.value==="bottom"||a.value==="bottom"&&f.value!=="top"?"bottom":"top"),v=()=>{d.value||o.value||(d.value=!0,e.emit("open",l),m.value&&r.nextTick(()=>{y()}))},C=()=>{d.value&&(d.value=!1,e.emit("close",l))},y=()=>{if(!p.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));p.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?_:b)*-1]}}]})),p.value.update()},g=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return r.onMounted(()=>{m.value&&(p.value=tk(c.value,u.value,{strategy:g(c.value)?"fixed":void 0,placement:a.value,modifiers:[ik,dk,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){f.value=_.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!p.value||(p.value.destroy(),p.value=null)}),{popper:p,isOpen:d,open:v,close:C,placement:h,updatePopper:y}}function pk(t,e,n){const{searchable:o,disabled:i,clearOnBlur:s}=r.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,p=n.wrapper,f=n.tags,m=r.ref(!1),h=r.ref(!1),v=r.computed(()=>o.value||i.value?-1:0),C=()=>{o.value&&a.value.blur(),p.value.blur()},y=()=>{o.value&&!i.value&&a.value.focus()},g=(S=!0)=>{i.value||(m.value=!0,S&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),s.value&&u())},1)};return{tabindex:v,isActive:m,mouseClicked:h,blur:C,focus:y,activate:g,deactivate:_,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||g(h.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),C()},handleMousedown:S=>{h.value=!0,d.value&&(S.target.isEqualNode(p.value)||S.target.isEqualNode(f.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(p.value)||document.activeElement.isEqualNode(a.value))&&g(),setTimeout(()=>{h.value=!1},0)}}}function mk(t,e,n){const{mode:o,addTagOn:i,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:p,createOption:f,reverse:m}=r.toRefs(t),h=r.getCurrentInstance().proxy,v=n.iv,C=n.update,y=n.deselect,g=n.search,_=n.setPointer,b=n.selectPointer,w=n.backwardPointer,k=n.forwardPointer,x=n.multiselect,S=n.wrapper,E=n.tags,N=n.isOpen,I=n.open,A=n.blur,M=n.fo,D=r.computed(()=>p.value||f.value||!1),$=r.computed(()=>i.value!==void 0?i.value:d.value!==void 0?d.value:["enter"]),B=()=>{o.value==="tags"&&!l.value&&D.value&&a.value&&!u.value&&_(M.value[M.value.map(R=>R[c.value]).indexOf(g.value)])};return{handleKeydown:R=>{e.emit("keydown",R,h);let Y,ae;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(R.key)!==-1&&o.value==="tags"&&(Y=[...x.value.querySelectorAll("[data-tags] > *")].filter(oe=>oe!==E.value),ae=Y.findIndex(oe=>oe===document.activeElement)),R.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(g.value)===-1||v.value.length===0)return;let oe=v.value.filter(Ne=>!Ne.disabled&&Ne.remove!==!1);oe.length&&y(oe[oe.length-1]);break;case"Enter":if(R.preventDefault(),R.keyCode===229)return;if(ae!==-1&&ae!==void 0){C([...v.value].filter((Ne,ce)=>ce!==ae)),ae===Y.length-1&&(Y.length-1?Y[Y.length-2].focus():a.value?E.value.querySelector("input").focus():S.value.focus());return}if($.value.indexOf("enter")===-1&&D.value)return;B(),b();break;case" ":if(!D.value&&!a.value){R.preventDefault(),B(),b();return}if(!D.value)return!1;if($.value.indexOf("space")===-1&&D.value)return;R.preventDefault(),B(),b();break;case"Tab":case";":case",":if($.value.indexOf(R.key.toLowerCase())===-1||!D.value)return;B(),b(),R.preventDefault();break;case"Escape":A();break;case"ArrowUp":if(R.preventDefault(),!l.value)return;N.value||I(),w();break;case"ArrowDown":if(R.preventDefault(),!l.value)return;N.value||I(),k();break;case"ArrowLeft":if(a.value&&E.value&&E.value.querySelector("input").selectionStart||R.shiftKey||o.value!=="tags"||!v.value||!v.value.length)return;R.preventDefault(),ae===-1?Y[Y.length-1].focus():ae>0&&Y[ae-1].focus();break;case"ArrowRight":if(ae===-1||R.shiftKey||o.value!=="tags"||!v.value||!v.value.length)return;R.preventDefault(),Y.length>ae+1?Y[ae+1].focus():a.value?E.value.querySelector("input").focus():a.value||S.value.focus();break}},handleKeyup:R=>{e.emit("keyup",R,h)},preparePointer:B}}function hk(t,e,n){const{classes:o,disabled:i,showOptions:s,breakTags:a}=r.toRefs(t),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,p=n.isActive,f=n.canPointGroups,m=n.resolving,h=n.fo,v=n.placement,C=r.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value})),y=r.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:r.computed(()=>{const _=C.value;return{container:[_.container].concat(i.value?_.containerDisabled:[]).concat(y.value&&v.value==="top"?_.containerOpenTop:[]).concat(y.value&&v.value!=="top"?_.containerOpen:[]).concat(p.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(i.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,a.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(v.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!y.value?_.dropdownHidden:[]),options:[_.options].concat(v.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:b=>{let w=[_.groupLabel];return c(b)?w.push(u(b)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(b)&&f.value?w.push(d(b)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(b)&&w.push(_.groupLabelDisabled),f.value&&w.push(_.groupLabelPointable),w},groupOptions:_.groupOptions,option:(b,w)=>{let k=[_.option];return c(b)?k.push(u(b)?_.optionSelectedPointed:_.optionPointed):u(b)?k.push(d(b)?_.optionSelectedDisabled:_.optionSelected):(d(b)||w&&d(w))&&k.push(_.optionDisabled),k},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:y}}function gk(t,e,n){const{limit:o,infinite:i}=r.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=r.ref(null),p=r.ref(null),f=r.computed(()=>a.value<c.value.length),m=v=>{const{isIntersecting:C,target:y}=v[0];if(C){const g=y.offsetParent,_=g.scrollTop;a.value+=o.value==-1?10:o.value,r.nextTick(()=>{g.scrollTop=_})}},h=()=>{s.value&&a.value<c.value.length?d.value.observe(p.value):!s.value&&d.value&&d.value.disconnect()};return r.watch(s,()=>{i.value&&h()}),r.watch(l,()=>{i.value&&(a.value=o.value,h())},{flush:"post"}),r.watch(u,()=>{i.value&&h()},{immediate:!1,flush:"post"}),r.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:f,infiniteLoader:p}}function vk(t,e,n){const{placeholder:o,id:i,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(t),p=n.pointer,f=n.iv,m=n.hasSelected,h=n.multipleLabelText,v=r.ref(null),C=r.computed(()=>{let A=[];return i&&i.value&&A.push(i.value),A.push("assist"),A.join("-")}),y=r.computed(()=>{let A=[];return i&&i.value&&A.push(i.value),A.push("multiselect-options"),A.join("-")}),g=r.computed(()=>{let A=[];if(i&&i.value&&A.push(i.value),p.value)return A.push(p.value.group?"multiselect-group":"multiselect-option"),A.push(p.value.group?p.value.index:p.value[s.value]),A.join("-")}),_=r.computed(()=>o.value),b=r.computed(()=>l.value!=="single"),w=r.computed(()=>{let A="";return l.value==="single"&&m.value&&(A+=f.value[a.value]),l.value==="multiple"&&m.value&&(A+=h.value),l.value==="tags"&&m.value&&(A+=f.value.map(M=>M[a.value]).join(", ")),A}),k=r.computed(()=>{let A={...u.value};return d.value&&(A["aria-labelledby"]=A["aria-labelledby"]?`${C.value} ${A["aria-labelledby"]}`:C.value,w.value&&A["aria-label"]&&(A["aria-label"]=`${w.value}, ${A["aria-label"]}`)),A}),x=A=>{let M=[];return i&&i.value&&M.push(i.value),M.push("multiselect-option"),M.push(A[s.value]),M.join("-")},S=A=>{let M=[];return i&&i.value&&M.push(i.value),M.push("multiselect-group"),M.push(A.index),M.join("-")},E=A=>{let M=[];return M.push(A),M.join(" ")},N=A=>{let M=[];return M.push(A),M.join(" ")},I=A=>`${A} ❎`;return r.onMounted(()=>{if(i&&i.value&&document&&document.querySelector){let A=document.querySelector(`[for="${i.value}"]`);v.value=A?A.innerText:null}}),{arias:k,ariaLabel:w,ariaAssist:C,ariaControls:y,ariaPlaceholder:_,ariaMultiselectable:b,ariaActiveDescendant:g,ariaOptionId:x,ariaOptionLabel:E,ariaGroupId:S,ariaGroupLabel:N,ariaTagLabel:I}}function yk(t,e,n){const{locale:o,fallbackLocale:i}=r.toRefs(t);return{localize:a=>!a||typeof a!="object"?a:a&&a[o.value]?a[o.value]:a&&o.value&&a[o.value.toUpperCase()]?a[o.value.toUpperCase()]:a&&a[i.value]?a[i.value]:a&&i.value&&a[i.value.toUpperCase()]?a[i.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function _k(t,e,n){const o=r.ref(null),i=r.ref(null),s=r.ref(null),a=r.ref(null),l=r.ref(null);return{multiselect:o,wrapper:i,tags:s,input:a,dropdown:l}}function Ck(t,e,n,o={}){return n.forEach(i=>{i&&(o={...o,...i(t,e,o)})}),o}var uo={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return Ck(t,e,[_k,yk,r7,s7,fk,i7,o7,pk,c7,gk,u7,mk,hk,vk])},beforeMount(){var t,e;((e=(t=this.$root.constructor)==null?void 0:t.version)!=null&&e.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const bk=["id","dir"],kk=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],wk=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Ek=["onKeyup","aria-label"],Sk=["onClick"],xk=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Ak=["innerHTML"],Tk=["id"],Nk=["id"],Dk=["id","aria-label","aria-selected"],$k=["data-pointed","onMouseenter","onMousedown"],Bk=["innerHTML"],Mk=["aria-label"],Lk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Ok=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Vk=["innerHTML"],Ik=["innerHTML"],Pk=["value"],Fk=["name","value"],Rk=["name","value"],zk=["id"];function Uk(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",{ref:"multiselect",class:r.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...a)=>t.handleFocusIn&&t.handleFocusIn(...a)),onFocusout:e[11]||(e[11]=(...a)=>t.handleFocusOut&&t.handleFocusOut(...a)),onKeyup:e[12]||(e[12]=(...a)=>t.handleKeyup&&t.handleKeyup(...a)),onKeydown:e[13]||(e[13]=(...a)=>t.handleKeydown&&t.handleKeydown(...a))},[r.createElementVNode("div",r.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...a)=>t.handleMousedown&&t.handleMousedown(...a)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[r.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[1]||(e[1]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[2]||(e[2]=r.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,wk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(t.classList.tags),"data-tags":""},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.iv,(a,l,c)=>r.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:r.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagWrapper)},r.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(t.classList.tagRemove),onClick:r.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,Sk)):r.createCommentVNode("v-if",!0)],42,Ek))])),256)),r.createElementVNode("div",{class:r.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[r.createCommentVNode(" Used for measuring search width "),r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagsSearchCopy)},r.toDisplayString(t.search),3),r.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[4]||(e[4]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[5]||(e[5]=r.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,xk)):r.createCommentVNode("v-if",!0)],2)],2)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?r.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.singleLabel)},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.singleLabelText)},r.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?r.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,Ak)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?r.renderSlot(t.$slots,"placeholder",{key:4},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},r.toDisplayString(n.placeholder),3)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Spinner "),n.loading||t.resolving?r.renderSlot(t.$slots,"spinner",{key:5},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?r.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[r.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:r.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=r.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.clearIcon)},null,2)],34)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Caret "),n.caret&&n.showOptions?r.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0)],16,kk),r.createCommentVNode(" Options "),(r.openBlock(),r.createBlock(r.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[r.createElementVNode("div",{id:`${n.id}-dropdown`,class:r.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[r.renderSlot(t.$slots,"beforelist",{options:t.fo}),r.createElementVNode("ul",{class:r.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(t.fg,(a,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.group),key:c,id:t.ariaGroupId(a),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),"aria-selected":t.isSelected(a),role:"option"},[a.__CREATE__?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:r.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[r.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[r.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,Bk)])],42,$k)),r.createElementVNode("ul",{class:r.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.__VISIBLE__,(u,d,p)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.option(u,a)),"data-pointed":t.isPointed(u),"data-selected":t.isSelected(u)||void 0,key:p,onMouseenter:f=>t.setPointer(u),onMousedown:r.withModifiers(f=>t.handleOptionClick(u),["prevent"]),id:t.ariaOptionId(u),"aria-selected":t.isSelected(u),"aria-label":t.ariaOptionLabel(t.localize(u[n.label])),role:"option"},[r.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[r.createElementVNode("span",null,r.toDisplayString(t.localize(u[n.label])),1)])],42,Lk))),128))],10,Mk)],10,Dk))),128)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(t.fo,(a,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.option(a)),"data-pointed":t.isPointed(a),"data-selected":t.isSelected(a)||void 0,key:c,onMouseenter:u=>t.setPointer(a),onMousedown:r.withModifiers(u=>t.handleOptionClick(a),["prevent"]),id:t.ariaOptionId(a),"aria-selected":t.isSelected(a),"aria-label":t.ariaOptionLabel(t.localize(a[n.label])),role:"option"},[r.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[r.createElementVNode("span",null,r.toDisplayString(t.localize(a[n.label])),1)])],42,Ok))),128))],10,Nk),t.noOptions?r.renderSlot(t.$slots,"nooptions",{key:0},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,Vk)]):r.createCommentVNode("v-if",!0),t.noResults?r.renderSlot(t.$slots,"noresults",{key:1},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,Ik)]):r.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[r.renderSlot(t.$slots,"infinite",{},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):r.createCommentVNode("v-if",!0),r.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,Tk)],8,["to","disabled"])),r.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(r.openBlock(),r.createElementBlock("input",{key:0,class:r.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,Pk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Native input support "),n.nativeSupport?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n.mode=="single"?(r.openBlock(),r.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,Fk)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(t.plainValue,(a,l)=>(r.openBlock(),r.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,Rk))),128))],64)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},r.toDisplayString(t.ariaLabel),11,zk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(t.classList.spacer)},null,2)],42,bk)}uo.render=Uk;uo.__file="src/Multiselect.vue";const dt=r.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean,default:!1},appendTo:{default:void 0},closeOnSelect:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0}},setup(t){const e=t,n=r.toRef(()=>e.appendTo),o=r.ref();return e.detached&&n7({multiselect:o,appendTo:n.value}),(i,s)=>(r.openBlock(),r.createBlock(r.unref(uo),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect","close-on-select":e.closeOnSelect,"clear-on-select":e.clearOnSelect},r.createSlots({_:2},[r.renderList(i.$slots,(a,l)=>({name:l,fn:r.withCtx(c=>[r.renderSlot(i.$slots,l,r.normalizeProps(r.guardReactiveProps(c??{})))])}))]),1032,["close-on-select","clear-on-select"]))}});var jd;function yt(){const t=Hk(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function Hk(){const t=r.getCurrentInstance();if(!t)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return t}r.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let i,s=0;for(;(i=jd.exec(n))!==null;){o.push(n.substring(s,i.index));const a=e[i[1]];a?o.push(...a()):o.push(i[0]),s=jd.lastIndex}return o.push(n.substring(s)),o}}});async function Kn(t,e){if(e&&t&&t.length-e.length===1){const n=new Set(e.map(l=>l.id)),o=t.filter(l=>!n.has(l.id));if(o.length!==1)return;const i=o[0].id;await r.nextTick();const s=document.getElementById(i);s==null||s.focus(),await r.nextTick();const a=document.getElementById(i);a==null||a.select()}}const qk={class:"ao-tasks__list"},jk=["id","value","readonly","onChange","onKeydown"],Wk={class:"ao-tasks__list-footer"},Zk=r.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.ref(null);let a=null,l=null;const c=_=>{_.style.height="auto",_.style.height=`${_.scrollHeight}px`},u=_=>{c(_.target)},d=()=>{var _;(_=s.value)==null||_.querySelectorAll(".ao-subtask__field").forEach(c)},p=()=>{l!==null&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{d(),l=null})};r.watch(()=>o.tasks,(_,b)=>{Kn(_,b),p()},{deep:!0}),r.onMounted(()=>{p(),s.value&&(a=new ResizeObserver(()=>{p()}),a.observe(s.value))}),r.onBeforeUnmount(()=>{a==null||a.disconnect(),l!==null&&cancelAnimationFrame(l)});const f=r.computed(()=>{var _;return((_=o.users)==null?void 0:_.map(b=>({label:`${b.firstName} ${b.lastName}`,value:b.id,avatar:b.avatarUrl})))??[]}),m=()=>{const _=o.tasks.length;i("add",{name:n("task.defaultName",{idx:_+1}),activityId:o.activityId})},h=(_,b)=>{const w=_.target;i("update",{id:b,name:w.value})},v=(_,b)=>{o.isEditable&&i("update",{id:_,isDone:b})},C=_=>{i("delete",{id:_})},y=(_,b)=>{i("update",{id:b,assigneeId:_[0]??null})},g=_=>{_.target.blur()};return(_,b)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tasksRoot",ref:s,class:"ao-tasks"},[r.createElementVNode("ul",qk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tasks,w=>{var k,x;return r.openBlock(),r.createElementBlock("li",{key:w.id,class:"ao-subtask"},[((k=t.isCheckable)==null?void 0:k.call(t,w))??!1?(r.openBlock(),r.createBlock(de,{key:0,class:"ao-subtask__check","icon-name":w.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>v(w.id,!w.isDone)},null,8,["icon-name","disabled","onClick"])):r.createCommentVNode("",!0),r.createElementVNode("textarea",{id:w.id,value:w.name,readonly:!t.isEditable,class:r.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":w.isDone}]),rows:"1",onInput:u,onChange:S=>h(S,w.id),onKeydown:r.withKeys(r.withModifiers(g,["prevent"]),["enter"])},null,42,jk),!t.isTemplate&&t.users?(r.openBlock(),r.createBlock(dt,{key:1,value:(x=w.assignee)!=null&&x.id?[w.assignee.id]:[],options:f.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:_.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,detached:"","append-to":"body",onChange:S=>y(S,w.id)},{tag:r.withCtx(({option:S,handleTagRemove:E})=>[r.createVNode(Xt,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:N=>E(S,N)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):r.createCommentVNode("",!0),t.isEditable?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>C(w.id)},null,8,["onClick"])):r.createCommentVNode("",!0)])}),128))]),r.createElementVNode("div",Wk,[t.isEditable?(r.openBlock(),r.createBlock(de,{key:0,label:_.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:m},null,8,["label"])):r.createCommentVNode("",!0)])],512))}});const Kk={class:"ao-files__placeholder"},Gk={key:0,class:"ao-files__list"},Yk=["onClick"],Jk={class:"ao-file__title"},Xk={class:"ao-file__actions"},Qk={key:0},e9={class:"ao-files__input"},t9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},n9={class:"ao-button__label"},o9={class:"ao-files__dropzone"},r9={class:"ao-files__dropzone-label"},i9=r.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove","preview"],setup(t,{emit:e}){const n=e,o=t,i=r.ref(!1),s=["dragenter","dragover","dragleave","drop"];function a(m){n("remove",m)}function l(m){if(!m.url)return;const h=document.createElement("a");h.href=m.url,h.download=m.name,h.target="_blank",h.rel="noopener noreferrer",document.body.appendChild(h),h.click(),h.remove()}function c(m){const h=m.target,v=Array.from(h.files??[]);v.length&&n("add",v),h.value=""}function u(m){m.preventDefault()}r.onMounted(()=>{s.forEach(m=>{document.body.addEventListener(m,u)})}),r.onUnmounted(()=>{s.forEach(m=>{document.body.removeEventListener(m,u)})});function d(){o.isEditable&&(i.value=!0)}function p(){i.value=!1}r.watch(i,m=>{n("toggleIsDropActive",m)});function f(m){var v;if(p(),!o.isEditable)return;const h=Array.from(((v=m.dataTransfer)==null?void 0:v.files)??[]);h.length&&n("add",h)}return(m,h)=>{var v;return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:r.withModifiers(f,["prevent"]),onDragenter:r.withModifiers(d,["prevent"]),onDragover:r.withModifiers(d,["prevent"]),onDragleave:r.withModifiers(p,["prevent"])},[r.renderSlot(m.$slots,"default",{},()=>[r.createElementVNode("span",Kk,r.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(v=t.attachments)!=null&&v.length||t.isEditable?(r.openBlock(),r.createElementBlock("ul",Gk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.attachments,(C,y)=>(r.openBlock(),r.createElementBlock("li",{key:C.id,class:"ao-file"},[r.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:g=>n("preview",y)},[r.createVNode(ke,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Jk,r.toDisplayString(C.name),1)],8,Yk),r.createElementVNode("div",Xk,[r.createVNode(de,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:r.withModifiers(g=>l(C),["stop"])},null,8,["onClick"]),t.isEditable?(r.openBlock(),r.createBlock(de,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:r.withModifiers(g=>a(C),["stop"])},null,8,["onClick"])):r.createCommentVNode("",!0)])]))),128)),t.isEditable?(r.openBlock(),r.createElementBlock("li",Qk,[r.createElementVNode("label",e9,[r.createElementVNode("div",t9,[r.createVNode(ke,{name:"Add",size:"sm"}),r.createElementVNode("span",n9,r.toDisplayString(m.$t("activity.attachment.button.resting")),1)]),r.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:c},null,32)])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("div",o9,[r.createElementVNode("span",r9,r.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[r.vShow,i.value]])],34)}}});var Be={};const s9="Á",a9="á",l9="Ă",c9="ă",u9="∾",d9="∿",f9="∾̳",p9="Â",m9="â",h9="´",g9="А",v9="а",y9="Æ",_9="æ",C9="⁡",b9="𝔄",k9="𝔞",w9="À",E9="à",S9="ℵ",x9="ℵ",A9="Α",T9="α",N9="Ā",D9="ā",$9="⨿",B9="&",M9="&",L9="⩕",O9="⩓",V9="∧",I9="⩜",P9="⩘",F9="⩚",R9="∠",z9="⦤",U9="∠",H9="⦨",q9="⦩",j9="⦪",W9="⦫",Z9="⦬",K9="⦭",G9="⦮",Y9="⦯",J9="∡",X9="∟",Q9="⊾",e8="⦝",t8="∢",n8="Å",o8="⍼",r8="Ą",i8="ą",s8="𝔸",a8="𝕒",l8="⩯",c8="≈",u8="⩰",d8="≊",f8="≋",p8="'",m8="⁡",h8="≈",g8="≊",v8="Å",y8="å",_8="𝒜",C8="𝒶",b8="≔",k8="*",w8="≈",E8="≍",S8="Ã",x8="ã",A8="Ä",T8="ä",N8="∳",D8="⨑",$8="≌",B8="϶",M8="‵",L8="∽",O8="⋍",V8="∖",I8="⫧",P8="⊽",F8="⌅",R8="⌆",z8="⌅",U8="⎵",H8="⎶",q8="≌",j8="Б",W8="б",Z8="„",K8="∵",G8="∵",Y8="∵",J8="⦰",X8="϶",Q8="ℬ",e4="ℬ",t4="Β",n4="β",o4="ℶ",r4="≬",i4="𝔅",s4="𝔟",a4="⋂",l4="◯",c4="⋃",u4="⨀",d4="⨁",f4="⨂",p4="⨆",m4="★",h4="▽",g4="△",v4="⨄",y4="⋁",_4="⋀",C4="⤍",b4="⧫",k4="▪",w4="▴",E4="▾",S4="◂",x4="▸",A4="␣",T4="▒",N4="░",D4="▓",$4="█",B4="=⃥",M4="≡⃥",L4="⫭",O4="⌐",V4="𝔹",I4="𝕓",P4="⊥",F4="⊥",R4="⋈",z4="⧉",U4="┐",H4="╕",q4="╖",j4="╗",W4="┌",Z4="╒",K4="╓",G4="╔",Y4="─",J4="═",X4="┬",Q4="╤",e6="╥",t6="╦",n6="┴",o6="╧",r6="╨",i6="╩",s6="⊟",a6="⊞",l6="⊠",c6="┘",u6="╛",d6="╜",f6="╝",p6="└",m6="╘",h6="╙",g6="╚",v6="│",y6="║",_6="┼",C6="╪",b6="╫",k6="╬",w6="┤",E6="╡",S6="╢",x6="╣",A6="├",T6="╞",N6="╟",D6="╠",$6="‵",B6="˘",M6="˘",L6="¦",O6="𝒷",V6="ℬ",I6="⁏",P6="∽",F6="⋍",R6="⧅",z6="\\",U6="⟈",H6="•",q6="•",j6="≎",W6="⪮",Z6="≏",K6="≎",G6="≏",Y6="Ć",J6="ć",X6="⩄",Q6="⩉",ew="⩋",tw="∩",nw="⋒",ow="⩇",rw="⩀",iw="ⅅ",sw="∩︀",aw="⁁",lw="ˇ",cw="ℭ",uw="⩍",dw="Č",fw="č",pw="Ç",mw="ç",hw="Ĉ",gw="ĉ",vw="∰",yw="⩌",_w="⩐",Cw="Ċ",bw="ċ",kw="¸",ww="¸",Ew="⦲",Sw="¢",xw="·",Aw="·",Tw="𝔠",Nw="ℭ",Dw="Ч",$w="ч",Bw="✓",Mw="✓",Lw="Χ",Ow="χ",Vw="ˆ",Iw="≗",Pw="↺",Fw="↻",Rw="⊛",zw="⊚",Uw="⊝",Hw="⊙",qw="®",jw="Ⓢ",Ww="⊖",Zw="⊕",Kw="⊗",Gw="○",Yw="⧃",Jw="≗",Xw="⨐",Qw="⫯",eE="⧂",tE="∲",nE="”",oE="’",rE="♣",iE="♣",sE=":",aE="∷",lE="⩴",cE="≔",uE="≔",dE=",",fE="@",pE="∁",mE="∘",hE="∁",gE="ℂ",vE="≅",yE="⩭",_E="≡",CE="∮",bE="∯",kE="∮",wE="𝕔",EE="ℂ",SE="∐",xE="∐",AE="©",TE="©",NE="℗",DE="∳",$E="↵",BE="✗",ME="⨯",LE="𝒞",OE="𝒸",VE="⫏",IE="⫑",PE="⫐",FE="⫒",RE="⋯",zE="⤸",UE="⤵",HE="⋞",qE="⋟",jE="↶",WE="⤽",ZE="⩈",KE="⩆",GE="≍",YE="∪",JE="⋓",XE="⩊",QE="⊍",eS="⩅",tS="∪︀",nS="↷",oS="⤼",rS="⋞",iS="⋟",sS="⋎",aS="⋏",lS="¤",cS="↶",uS="↷",dS="⋎",fS="⋏",pS="∲",mS="∱",hS="⌭",gS="†",vS="‡",yS="ℸ",_S="↓",CS="↡",bS="⇓",kS="‐",wS="⫤",ES="⊣",SS="⤏",xS="˝",AS="Ď",TS="ď",NS="Д",DS="д",$S="‡",BS="⇊",MS="ⅅ",LS="ⅆ",OS="⤑",VS="⩷",IS="°",PS="∇",FS="Δ",RS="δ",zS="⦱",US="⥿",HS="𝔇",qS="𝔡",jS="⥥",WS="⇃",ZS="⇂",KS="´",GS="˙",YS="˝",JS="`",XS="˜",QS="⋄",ex="⋄",tx="⋄",nx="♦",ox="♦",rx="¨",ix="ⅆ",sx="ϝ",ax="⋲",lx="÷",cx="÷",ux="⋇",dx="⋇",fx="Ђ",px="ђ",mx="⌞",hx="⌍",gx="$",vx="𝔻",yx="𝕕",_x="¨",Cx="˙",bx="⃜",kx="≐",wx="≑",Ex="≐",Sx="∸",xx="∔",Ax="⊡",Tx="⌆",Nx="∯",Dx="¨",$x="⇓",Bx="⇐",Mx="⇔",Lx="⫤",Ox="⟸",Vx="⟺",Ix="⟹",Px="⇒",Fx="⊨",Rx="⇑",zx="⇕",Ux="∥",Hx="⤓",qx="↓",jx="↓",Wx="⇓",Zx="⇵",Kx="̑",Gx="⇊",Yx="⇃",Jx="⇂",Xx="⥐",Qx="⥞",eA="⥖",tA="↽",nA="⥟",oA="⥗",rA="⇁",iA="↧",sA="⊤",aA="⤐",lA="⌟",cA="⌌",uA="𝒟",dA="𝒹",fA="Ѕ",pA="ѕ",mA="⧶",hA="Đ",gA="đ",vA="⋱",yA="▿",_A="▾",CA="⇵",bA="⥯",kA="⦦",wA="Џ",EA="џ",SA="⟿",xA="É",AA="é",TA="⩮",NA="Ě",DA="ě",$A="Ê",BA="ê",MA="≖",LA="≕",OA="Э",VA="э",IA="⩷",PA="Ė",FA="ė",RA="≑",zA="ⅇ",UA="≒",HA="𝔈",qA="𝔢",jA="⪚",WA="È",ZA="è",KA="⪖",GA="⪘",YA="⪙",JA="∈",XA="⏧",QA="ℓ",eT="⪕",tT="⪗",nT="Ē",oT="ē",rT="∅",iT="∅",sT="◻",aT="∅",lT="▫",cT=" ",uT=" ",dT=" ",fT="Ŋ",pT="ŋ",mT=" ",hT="Ę",gT="ę",vT="𝔼",yT="𝕖",_T="⋕",CT="⧣",bT="⩱",kT="ε",wT="Ε",ET="ε",ST="ϵ",xT="≖",AT="≕",TT="≂",NT="⪖",DT="⪕",$T="⩵",BT="=",MT="≂",LT="≟",OT="⇌",VT="≡",IT="⩸",PT="⧥",FT="⥱",RT="≓",zT="ℯ",UT="ℰ",HT="≐",qT="⩳",jT="≂",WT="Η",ZT="η",KT="Ð",GT="ð",YT="Ë",JT="ë",XT="€",QT="!",eN="∃",tN="∃",nN="ℰ",oN="ⅇ",rN="ⅇ",iN="≒",sN="Ф",aN="ф",lN="♀",cN="ffi",uN="ff",dN="ffl",fN="𝔉",pN="𝔣",mN="fi",hN="◼",gN="▪",vN="fj",yN="♭",_N="fl",CN="▱",bN="ƒ",kN="𝔽",wN="𝕗",EN="∀",SN="∀",xN="⋔",AN="⫙",TN="ℱ",NN="⨍",DN="½",$N="⅓",BN="¼",MN="⅕",LN="⅙",ON="⅛",VN="⅔",IN="⅖",PN="¾",FN="⅗",RN="⅜",zN="⅘",UN="⅚",HN="⅝",qN="⅞",jN="⁄",WN="⌢",ZN="𝒻",KN="ℱ",GN="ǵ",YN="Γ",JN="γ",XN="Ϝ",QN="ϝ",eD="⪆",tD="Ğ",nD="ğ",oD="Ģ",rD="Ĝ",iD="ĝ",sD="Г",aD="г",lD="Ġ",cD="ġ",uD="≥",dD="≧",fD="⪌",pD="⋛",mD="≥",hD="≧",gD="⩾",vD="⪩",yD="⩾",_D="⪀",CD="⪂",bD="⪄",kD="⋛︀",wD="⪔",ED="𝔊",SD="𝔤",xD="≫",AD="⋙",TD="⋙",ND="ℷ",DD="Ѓ",$D="ѓ",BD="⪥",MD="≷",LD="⪒",OD="⪤",VD="⪊",ID="⪊",PD="⪈",FD="≩",RD="⪈",zD="≩",UD="⋧",HD="𝔾",qD="𝕘",jD="`",WD="≥",ZD="⋛",KD="≧",GD="⪢",YD="≷",JD="⩾",XD="≳",QD="𝒢",e$="ℊ",t$="≳",n$="⪎",o$="⪐",r$="⪧",i$="⩺",s$=">",a$=">",l$="≫",c$="⋗",u$="⦕",d$="⩼",f$="⪆",p$="⥸",m$="⋗",h$="⋛",g$="⪌",v$="≷",y$="≳",_$="≩︀",C$="≩︀",b$="ˇ",k$=" ",w$="½",E$="ℋ",S$="Ъ",x$="ъ",A$="⥈",T$="↔",N$="⇔",D$="↭",$$="^",B$="ℏ",M$="Ĥ",L$="ĥ",O$="♥",V$="♥",I$="…",P$="⊹",F$="𝔥",R$="ℌ",z$="ℋ",U$="⤥",H$="⤦",q$="⇿",j$="∻",W$="↩",Z$="↪",K$="𝕙",G$="ℍ",Y$="―",J$="─",X$="𝒽",Q$="ℋ",eB="ℏ",tB="Ħ",nB="ħ",oB="≎",rB="≏",iB="⁃",sB="‐",aB="Í",lB="í",cB="⁣",uB="Î",dB="î",fB="И",pB="и",mB="İ",hB="Е",gB="е",vB="¡",yB="⇔",_B="𝔦",CB="ℑ",bB="Ì",kB="ì",wB="ⅈ",EB="⨌",SB="∭",xB="⧜",AB="℩",TB="IJ",NB="ij",DB="Ī",$B="ī",BB="ℑ",MB="ⅈ",LB="ℐ",OB="ℑ",VB="ı",IB="ℑ",PB="⊷",FB="Ƶ",RB="⇒",zB="℅",UB="∞",HB="⧝",qB="ı",jB="⊺",WB="∫",ZB="∬",KB="ℤ",GB="∫",YB="⊺",JB="⋂",XB="⨗",QB="⨼",eM="⁣",tM="⁢",nM="Ё",oM="ё",rM="Į",iM="į",sM="𝕀",aM="𝕚",lM="Ι",cM="ι",uM="⨼",dM="¿",fM="𝒾",pM="ℐ",mM="∈",hM="⋵",gM="⋹",vM="⋴",yM="⋳",_M="∈",CM="⁢",bM="Ĩ",kM="ĩ",wM="І",EM="і",SM="Ï",xM="ï",AM="Ĵ",TM="ĵ",NM="Й",DM="й",$M="𝔍",BM="𝔧",MM="ȷ",LM="𝕁",OM="𝕛",VM="𝒥",IM="𝒿",PM="Ј",FM="ј",RM="Є",zM="є",UM="Κ",HM="κ",qM="ϰ",jM="Ķ",WM="ķ",ZM="К",KM="к",GM="𝔎",YM="𝔨",JM="ĸ",XM="Х",QM="х",eL="Ќ",tL="ќ",nL="𝕂",oL="𝕜",rL="𝒦",iL="𝓀",sL="⇚",aL="Ĺ",lL="ĺ",cL="⦴",uL="ℒ",dL="Λ",fL="λ",pL="⟨",mL="⟪",hL="⦑",gL="⟨",vL="⪅",yL="ℒ",_L="«",CL="⇤",bL="⤟",kL="←",wL="↞",EL="⇐",SL="⤝",xL="↩",AL="↫",TL="⤹",NL="⥳",DL="↢",$L="⤙",BL="⤛",ML="⪫",LL="⪭",OL="⪭︀",VL="⤌",IL="⤎",PL="❲",FL="{",RL="[",zL="⦋",UL="⦏",HL="⦍",qL="Ľ",jL="ľ",WL="Ļ",ZL="ļ",KL="⌈",GL="{",YL="Л",JL="л",XL="⤶",QL="“",eO="„",tO="⥧",nO="⥋",oO="↲",rO="≤",iO="≦",sO="⟨",aO="⇤",lO="←",cO="←",uO="⇐",dO="⇆",fO="↢",pO="⌈",mO="⟦",hO="⥡",gO="⥙",vO="⇃",yO="⌊",_O="↽",CO="↼",bO="⇇",kO="↔",wO="↔",EO="⇔",SO="⇆",xO="⇋",AO="↭",TO="⥎",NO="↤",DO="⊣",$O="⥚",BO="⋋",MO="⧏",LO="⊲",OO="⊴",VO="⥑",IO="⥠",PO="⥘",FO="↿",RO="⥒",zO="↼",UO="⪋",HO="⋚",qO="≤",jO="≦",WO="⩽",ZO="⪨",KO="⩽",GO="⩿",YO="⪁",JO="⪃",XO="⋚︀",QO="⪓",eV="⪅",tV="⋖",nV="⋚",oV="⪋",rV="⋚",iV="≦",sV="≶",aV="≶",lV="⪡",cV="≲",uV="⩽",dV="≲",fV="⥼",pV="⌊",mV="𝔏",hV="𝔩",gV="≶",vV="⪑",yV="⥢",_V="↽",CV="↼",bV="⥪",kV="▄",wV="Љ",EV="љ",SV="⇇",xV="≪",AV="⋘",TV="⌞",NV="⇚",DV="⥫",$V="◺",BV="Ŀ",MV="ŀ",LV="⎰",OV="⎰",VV="⪉",IV="⪉",PV="⪇",FV="≨",RV="⪇",zV="≨",UV="⋦",HV="⟬",qV="⇽",jV="⟦",WV="⟵",ZV="⟵",KV="⟸",GV="⟷",YV="⟷",JV="⟺",XV="⟼",QV="⟶",eI="⟶",tI="⟹",nI="↫",oI="↬",rI="⦅",iI="𝕃",sI="𝕝",aI="⨭",lI="⨴",cI="∗",uI="_",dI="↙",fI="↘",pI="◊",mI="◊",hI="⧫",gI="(",vI="⦓",yI="⇆",_I="⌟",CI="⇋",bI="⥭",kI="‎",wI="⊿",EI="‹",SI="𝓁",xI="ℒ",AI="↰",TI="↰",NI="≲",DI="⪍",$I="⪏",BI="[",MI="‘",LI="‚",OI="Ł",VI="ł",II="⪦",PI="⩹",FI="<",RI="<",zI="≪",UI="⋖",HI="⋋",qI="⋉",jI="⥶",WI="⩻",ZI="◃",KI="⊴",GI="◂",YI="⦖",JI="⥊",XI="⥦",QI="≨︀",eP="≨︀",tP="¯",nP="♂",oP="✠",rP="✠",iP="↦",sP="↦",aP="↧",lP="↤",cP="↥",uP="▮",dP="⨩",fP="М",pP="м",mP="—",hP="∺",gP="∡",vP=" ",yP="ℳ",_P="𝔐",CP="𝔪",bP="℧",kP="µ",wP="*",EP="⫰",SP="∣",xP="·",AP="⊟",TP="−",NP="∸",DP="⨪",$P="∓",BP="⫛",MP="…",LP="∓",OP="⊧",VP="𝕄",IP="𝕞",PP="∓",FP="𝓂",RP="ℳ",zP="∾",UP="Μ",HP="μ",qP="⊸",jP="⊸",WP="∇",ZP="Ń",KP="ń",GP="∠⃒",YP="≉",JP="⩰̸",XP="≋̸",QP="ʼn",eF="≉",tF="♮",nF="ℕ",oF="♮",rF=" ",iF="≎̸",sF="≏̸",aF="⩃",lF="Ň",cF="ň",uF="Ņ",dF="ņ",fF="≇",pF="⩭̸",mF="⩂",hF="Н",gF="н",vF="–",yF="⤤",_F="↗",CF="⇗",bF="↗",kF="≠",wF="≐̸",EF="​",SF="​",xF="​",AF="​",TF="≢",NF="⤨",DF="≂̸",$F="≫",BF="≪",MF=`
1
+ "use strict";var l0=Object.defineProperty;var c0=(t,e,n)=>e in t?l0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var j=(t,e,n)=>(c0(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),Go=require("vue-router"),Vn=require("vuedraggable");const u0=r.defineComponent({__name:"AoTemplates",props:{templates:{}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.unref(Go.RouterView),r.mergeProps({templates:t.templates},e.$attrs),null,16,["templates"]))}}),ee=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},d0={},f0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p0(t,e){return r.openBlock(),r.createElementBlock("svg",f0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",fill:"black"},null,-1)])])}const m0=ee(d0,[["render",p0]]),h0={},g0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v0(t,e){return r.openBlock(),r.createElementBlock("svg",g0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5.85 17.1C6.7 16.45 7.65 15.9373 8.7 15.562C9.75 15.1867 10.85 14.9993 12 15C13.15 15 14.25 15.1877 15.3 15.563C16.35 15.9383 17.3 16.4507 18.15 17.1C18.7333 16.4167 19.1877 15.6417 19.513 14.775C19.8383 13.9083 20.0007 12.9833 20 12C20 9.78333 19.221 7.89567 17.663 6.337C16.105 4.77833 14.2173 3.99933 12 4C9.78333 4 7.89567 4.779 6.337 6.337C4.77833 7.895 3.99933 9.78267 4 12C4 12.9833 4.16267 13.9083 4.488 14.775C4.81333 15.6417 5.26733 16.4167 5.85 17.1ZM12 13C11.0167 13 10.1873 12.6627 9.512 11.988C8.83667 11.3133 8.49933 10.484 8.5 9.5C8.5 8.51667 8.83733 7.68733 9.512 7.012C10.1867 6.33667 11.016 5.99933 12 6C12.9833 6 13.8127 6.33733 14.488 7.012C15.1633 7.68667 15.5007 8.516 15.5 9.5C15.5 10.4833 15.1627 11.3127 14.488 11.988C13.8133 12.6633 12.984 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const y0=ee(h0,[["render",v0]]),_0={},C0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b0(t,e){return r.openBlock(),r.createElementBlock("svg",C0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17ZM17 9H20V5H17V9ZM17 19H20V15H17V19ZM4 9H7V5H4V9Z",fill:"black"},null,-1)])])}const k0=ee(_0,[["render",b0]]),w0={},E0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S0(t,e){return r.openBlock(),r.createElementBlock("svg",E0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M17 21C16.45 21 15.979 20.804 15.587 20.412C15.195 20.02 14.9993 19.5493 15 19V18H13C12.45 18 11.979 17.804 11.587 17.412C11.195 17.02 10.9993 16.5493 11 16V8H9V9C9 9.55 8.804 10.021 8.412 10.413C8.02 10.805 7.54934 11.0007 7 11H4C3.45 11 2.979 10.804 2.587 10.412C2.195 10.02 1.99934 9.54934 2 9V5C2 4.45 2.196 3.979 2.588 3.587C2.98 3.195 3.45067 2.99934 4 3H7C7.55 3 8.021 3.196 8.413 3.588C8.805 3.98 9.00067 4.45067 9 5V6H15V5C15 4.45 15.196 3.979 15.588 3.587C15.98 3.195 16.4507 2.99934 17 3H20C20.55 3 21.021 3.196 21.413 3.588C21.805 3.98 22.0007 4.45067 22 5V9C22 9.55 21.804 10.021 21.412 10.413C21.02 10.805 20.5493 11.0007 20 11H17C16.45 11 15.979 10.804 15.587 10.412C15.195 10.02 14.9993 9.54934 15 9V8H13V16H15V15C15 14.45 15.196 13.979 15.588 13.587C15.98 13.195 16.4507 12.9993 17 13H20C20.55 13 21.021 13.196 21.413 13.588C21.805 13.98 22.0007 14.4507 22 15V19C22 19.55 21.804 20.021 21.412 20.413C21.02 20.805 20.5493 21.0007 20 21H17Z",fill:"black"},null,-1)])])}const x0=ee(w0,[["render",S0]]),A0={},T0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N0(t,e){return r.openBlock(),r.createElementBlock("svg",T0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"black"},null,-1)])])}const D0=ee(A0,[["render",N0]]),$0={},B0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M0(t,e){return r.openBlock(),r.createElementBlock("svg",B0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.9043 16.5207 13 16.2833 13 16V13H16C16.2833 13 16.5207 12.904 16.712 12.712C16.904 12.5207 17 12.2833 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.5207 11.0957 16.2833 11 16 11H13V8C13 7.71667 12.9043 7.479 12.713 7.287C12.521 7.09567 12.2833 7 12 7C11.7167 7 11.4793 7.09567 11.288 7.287C11.096 7.479 11 7.71667 11 8V11H8C7.71667 11 7.479 11.0957 7.287 11.287C7.09567 11.479 7 11.7167 7 12C7 12.2833 7.09567 12.5207 7.287 12.712C7.479 12.904 7.71667 13 8 13H11V16C11 16.2833 11.096 16.5207 11.288 16.712C11.4793 16.904 11.7167 17 12 17ZM5 21C4.45 21 3.979 20.8043 3.587 20.413C3.19567 20.021 3 19.55 3 19V5C3 4.45 3.19567 3.979 3.587 3.587C3.979 3.19567 4.45 3 5 3H19C19.55 3 20.021 3.19567 20.413 3.587C20.8043 3.979 21 4.45 21 5V19C21 19.55 20.8043 20.021 20.413 20.413C20.021 20.8043 19.55 21 19 21H5ZM5 19H19V5H5V19ZM5 19V5V19Z",fill:"black"},null,-1)])])}const L0=ee($0,[["render",M0]]),O0={},V0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I0(t,e){return r.openBlock(),r.createElementBlock("svg",V0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V6.50001C3 6.25001 3.04167 6.02501 3.125 5.82501C3.20834 5.62501 3.31667 5.43334 3.45 5.25001L4.85 3.55001C4.98333 3.36667 5.15 3.22901 5.35 3.13701C5.55 3.04501 5.76667 2.99934 6 3.00001H18C18.2333 3.00001 18.45 3.04567 18.65 3.13701C18.85 3.22834 19.0167 3.36601 19.15 3.55001L20.55 5.25001C20.6833 5.43334 20.7917 5.62501 20.875 5.82501C20.9583 6.02501 21 6.25001 21 6.50001V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5.4 6.00001H18.6L17.75 5.00001H6.25L5.4 6.00001ZM5 19H19V8.00001H5V19ZM12 17.575C12.1333 17.575 12.2583 17.554 12.375 17.512C12.4917 17.47 12.6 17.3993 12.7 17.3L15.3 14.7C15.4833 14.5167 15.575 14.2833 15.575 14C15.575 13.7167 15.4833 13.4833 15.3 13.3C15.1167 13.1167 14.8833 13.025 14.6 13.025C14.3167 13.025 14.0833 13.1167 13.9 13.3L13 14.2V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99934 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14.2L10.1 13.3C9.91667 13.1167 9.68333 13.025 9.4 13.025C9.11667 13.025 8.88334 13.1167 8.7 13.3C8.51667 13.4833 8.425 13.7167 8.425 14C8.425 14.2833 8.51667 14.5167 8.7 14.7L11.3 17.3C11.4 17.4 11.5083 17.4707 11.625 17.512C11.7417 17.5533 11.8667 17.5743 12 17.575Z",fill:"black"},null,-1)])])}const P0=ee(O0,[["render",I0]]),F0={},R0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z0(t,e){return r.openBlock(),r.createElementBlock("svg",R0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.875 19.3001L4.275 12.7001C4.175 12.6001 4.104 12.4917 4.062 12.3751C4.02067 12.2584 4 12.1334 4 12.0001C4 11.8667 4.02067 11.7417 4.062 11.6251C4.104 11.5084 4.175 11.4001 4.275 11.3001L10.875 4.70008C11.0583 4.51675 11.2873 4.42075 11.562 4.41208C11.8373 4.40408 12.075 4.50008 12.275 4.70008C12.475 4.88342 12.5793 5.11242 12.588 5.38708C12.596 5.66242 12.5 5.90008 12.3 6.10008L7.4 11.0001H18.575C18.8583 11.0001 19.096 11.0957 19.288 11.2871C19.4793 11.4791 19.575 11.7167 19.575 12.0001C19.575 12.2834 19.4793 12.5207 19.288 12.7121C19.096 12.9041 18.8583 13.0001 18.575 13.0001H7.4L12.3 17.9001C12.4833 18.0834 12.5793 18.3167 12.588 18.6001C12.596 18.8834 12.5 19.1167 12.3 19.3001C12.1167 19.5001 11.8833 19.6001 11.6 19.6001C11.3167 19.6001 11.075 19.5001 10.875 19.3001V19.3001Z",fill:"black"},null,-1)])])}const U0=ee(F0,[["render",z0]]),H0={},q0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j0(t,e){return r.openBlock(),r.createElementBlock("svg",q0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",fill:"black"},null,-1)])])}const W0=ee(H0,[["render",j0]]),Z0={},K0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G0(t,e){return r.openBlock(),r.createElementBlock("svg",K0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",fill:"black"},null,-1)])])}const Y0=ee(Z0,[["render",G0]]),J0={},X0={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q0(t,e){return r.openBlock(),r.createElementBlock("svg",X0,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8 17H13C13.2833 17 13.521 16.904 13.713 16.712C13.905 16.52 14.0007 16.2827 14 16C14 15.7167 13.904 15.479 13.712 15.287C13.52 15.095 13.2827 14.9993 13 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H16C16.2833 9 16.521 8.904 16.713 8.712C16.905 8.52 17.0007 8.28267 17 8C17 7.71667 16.904 7.479 16.712 7.287C16.52 7.095 16.2827 6.99933 16 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71733 7 8C7 8.28333 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9ZM5 19H19V5H5V19ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99933 5 3H9.2C9.41667 2.4 9.77934 1.91667 10.288 1.55C10.7967 1.18333 11.3673 1 12 1C12.6333 1 13.2043 1.18333 13.713 1.55C14.2217 1.91667 14.584 2.4 14.8 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM12 4.25C12.2167 4.25 12.3957 4.179 12.537 4.037C12.6783 3.895 12.7493 3.716 12.75 3.5C12.75 3.28333 12.679 3.10433 12.537 2.963C12.395 2.82167 12.216 2.75067 12 2.75C11.7833 2.75 11.6043 2.821 11.463 2.963C11.3217 3.105 11.2507 3.284 11.25 3.5C11.25 3.71667 11.321 3.89567 11.463 4.037C11.605 4.17833 11.784 4.24933 12 4.25Z",fill:"black"},null,-1)])])}const ev=ee(J0,[["render",Q0]]),tv={},nv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ov(t,e){return r.openBlock(),r.createElementBlock("svg",nv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11.5 22C9.96667 22 8.66667 21.4667 7.6 20.4C6.53333 19.3333 6 18.0333 6 16.5V6C6 4.9 6.39167 3.95833 7.175 3.175C7.95833 2.39167 8.9 2 10 2C11.1 2 12.0417 2.39167 12.825 3.175C13.6083 3.95833 14 4.9 14 6V15.5C14 16.2 13.7583 16.7917 13.275 17.275C12.7917 17.7583 12.2 18 11.5 18C10.8 18 10.2083 17.7583 9.725 17.275C9.24167 16.7917 9 16.2 9 15.5V6.75C9 6.53333 9.071 6.35433 9.213 6.213C9.355 6.07167 9.534 6.00067 9.75 6C9.96667 6 10.1457 6.071 10.287 6.213C10.4283 6.355 10.4993 6.534 10.5 6.75V15.5C10.5 15.7833 10.596 16.021 10.788 16.213C10.98 16.405 11.2173 16.5007 11.5 16.5C11.7833 16.5 12.021 16.404 12.213 16.212C12.405 16.02 12.5007 15.7827 12.5 15.5V6C12.5 5.3 12.2583 4.70833 11.775 4.225C11.2917 3.74167 10.7 3.5 10 3.5C9.3 3.5 8.70833 3.74167 8.225 4.225C7.74167 4.70833 7.5 5.3 7.5 6V16.5C7.5 17.6 7.89167 18.5417 8.675 19.325C9.45833 20.1083 10.4 20.5 11.5 20.5C12.6 20.5 13.5417 20.1083 14.325 19.325C15.1083 18.5417 15.5 17.6 15.5 16.5V6.75C15.5 6.53333 15.571 6.35433 15.713 6.213C15.855 6.07167 16.034 6.00067 16.25 6C16.4667 6 16.6457 6.071 16.787 6.213C16.9283 6.355 16.9993 6.534 17 6.75V16.5C17 18.0333 16.4667 19.3333 15.4 20.4C14.3333 21.4667 13.0333 22 11.5 22Z",fill:"black"},null,-1)])])}const rv=ee(tv,[["render",ov]]),iv={},sv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function av(t,e){return r.openBlock(),r.createElementBlock("svg",sv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6C3 5.45 3.196 4.979 3.588 4.587C3.98 4.195 4.45067 3.99933 5 4H6V2.975C6 2.69167 6.096 2.45833 6.288 2.275C6.48 2.09167 6.71734 2 7 2C7.28334 2 7.521 2.096 7.713 2.288C7.905 2.48 8.00067 2.71733 8 3V4H16V2.975C16 2.69167 16.096 2.45833 16.288 2.275C16.48 2.09167 16.7173 2 17 2C17.2833 2 17.521 2.096 17.713 2.288C17.905 2.48 18.0007 2.71733 18 3V4H19C19.55 4 20.021 4.196 20.413 4.588C20.805 4.98 21.0007 5.45067 21 6V20C21 20.55 20.804 21.021 20.412 21.413C20.02 21.805 19.5493 22.0007 19 22H5ZM5 20H19V10H5V20ZM5 8H19V6H5V8Z",fill:"black"},null,-1)])])}const lv=ee(iv,[["render",av]]),cv={},uv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dv(t,e){return r.openBlock(),r.createElementBlock("svg",uv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13.4L14.9 16.3C15.0833 16.4833 15.3167 16.575 15.6 16.575C15.8833 16.575 16.1167 16.4833 16.3 16.3C16.4833 16.1167 16.575 15.8833 16.575 15.6C16.575 15.3167 16.4833 15.0833 16.3 14.9L13.4 12L16.3 9.1C16.4833 8.91667 16.575 8.68333 16.575 8.4C16.575 8.11667 16.4833 7.88333 16.3 7.7C16.1167 7.51667 15.8833 7.425 15.6 7.425C15.3167 7.425 15.0833 7.51667 14.9 7.7L12 10.6L9.1 7.7C8.91667 7.51667 8.68333 7.425 8.4 7.425C8.11667 7.425 7.88333 7.51667 7.7 7.7C7.51667 7.88333 7.425 8.11667 7.425 8.4C7.425 8.68333 7.51667 8.91667 7.7 9.1L10.6 12L7.7 14.9C7.51667 15.0833 7.425 15.3167 7.425 15.6C7.425 15.8833 7.51667 16.1167 7.7 16.3C7.88333 16.4833 8.11667 16.575 8.4 16.575C8.68333 16.575 8.91667 16.4833 9.1 16.3L12 13.4ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const fv=ee(cv,[["render",dv]]),pv={},mv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hv(t,e){return r.openBlock(),r.createElementBlock("svg",mv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 14H14V12H6V14ZM6 11H18V9H6V11ZM6 8H18V6H6V8ZM2 22V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H6L2 22ZM4 17.175L5.175 16H20V4H4V17.175Z",fill:"black"},null,-1)])])}const gv=ee(pv,[["render",hv]]),vv={},yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _v(t,e){return r.openBlock(),r.createElementBlock("svg",yv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const Cv=ee(vv,[["render",_v]]),bv={},kv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wv(t,e){return r.openBlock(),r.createElementBlock("svg",kv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const Ev=ee(bv,[["render",wv]]),Sv={},xv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Av(t,e){return r.openBlock(),r.createElementBlock("svg",xv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.6 13.4L8.45 11.25C8.26667 11.0667 8.03334 10.975 7.75 10.975C7.46667 10.975 7.23334 11.0667 7.05 11.25C6.86667 11.4333 6.775 11.6667 6.775 11.95C6.775 12.2333 6.86667 12.4667 7.05 12.65L9.9 15.5C10.1 15.7 10.3333 15.8 10.6 15.8C10.8667 15.8 11.1 15.7 11.3 15.5L16.95 9.85C17.1333 9.66667 17.225 9.43333 17.225 9.15C17.225 8.86667 17.1333 8.63334 16.95 8.45C16.7667 8.26667 16.5333 8.175 16.25 8.175C15.9667 8.175 15.7333 8.26667 15.55 8.45L10.6 13.4ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM5 19H19V5H5V19Z",fill:"black"},null,-1)])])}const Tv=ee(Sv,[["render",Av]]),Nv={},Dv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $v(t,e){return r.openBlock(),r.createElementBlock("svg",Dv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",fill:"black"},null,-1)])])}const Bv=ee(Nv,[["render",$v]]),Mv={},Lv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ov(t,e){return r.openBlock(),r.createElementBlock("svg",Lv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",fill:"black"},null,-1)])])}const Vv=ee(Mv,[["render",Ov]]),Iv={},Pv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fv(t,e){return r.openBlock(),r.createElementBlock("svg",Pv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M14 18L8 12L14 6L15.4 7.4L10.8 12L15.4 16.6L14 18Z",fill:"black"},null,-1)])])}const Rv=ee(Iv,[["render",Fv]]),zv={},Uv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hv(t,e){return r.openBlock(),r.createElementBlock("svg",Uv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9.4 18L8 16.6L12.6 12L8 7.4L9.4 6L15.4 12L9.4 18Z",fill:"black"},null,-1)])])}const qv=ee(zv,[["render",Hv]]),jv={},Wv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zv(t,e){return r.openBlock(),r.createElementBlock("svg",Wv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 13.4L7.10005 18.3C6.91672 18.4834 6.68338 18.575 6.40005 18.575C6.11672 18.575 5.88338 18.4834 5.70005 18.3C5.51672 18.1167 5.42505 17.8834 5.42505 17.6C5.42505 17.3167 5.51672 17.0834 5.70005 16.9L10.6 12L5.70005 7.10005C5.51672 6.91672 5.42505 6.68338 5.42505 6.40005C5.42505 6.11672 5.51672 5.88338 5.70005 5.70005C5.88338 5.51672 6.11672 5.42505 6.40005 5.42505C6.68338 5.42505 6.91672 5.51672 7.10005 5.70005L12 10.6L16.9 5.70005C17.0834 5.51672 17.3167 5.42505 17.6 5.42505C17.8834 5.42505 18.1167 5.51672 18.3 5.70005C18.4834 5.88338 18.575 6.11672 18.575 6.40005C18.575 6.68338 18.4834 6.91672 18.3 7.10005L13.4 12L18.3 16.9C18.4834 17.0834 18.575 17.3167 18.575 17.6C18.575 17.8834 18.4834 18.1167 18.3 18.3C18.1167 18.4834 17.8834 18.575 17.6 18.575C17.3167 18.575 17.0834 18.4834 16.9 18.3L12 13.4Z",fill:"black"},null,-1)])])}const Kv=ee(jv,[["render",Zv]]),Gv={},Yv={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jv(t,e){return r.openBlock(),r.createElementBlock("svg",Yv,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 23C4.71667 23 4.479 22.904 4.287 22.712C4.095 22.52 3.99934 22.2827 4 22C4 21.7167 4.096 21.479 4.288 21.287C4.48 21.095 4.71734 20.9993 5 21H19C19.2833 21 19.521 21.096 19.713 21.288C19.905 21.48 20.0007 21.7173 20 22C20 22.2833 19.904 22.521 19.712 22.713C19.52 22.905 19.2827 23.0007 19 23H5ZM5 3C4.71667 3 4.479 2.904 4.287 2.712C4.095 2.52 3.99934 2.28267 4 2C4 1.71667 4.096 1.479 4.288 1.287C4.48 1.095 4.71734 0.999337 5 1H19C19.2833 1 19.521 1.096 19.713 1.288C19.905 1.48 20.0007 1.71734 20 2C20 2.28334 19.904 2.521 19.712 2.713C19.52 2.905 19.2827 3.00067 19 3H5ZM12 13C12.8333 13 13.5417 12.7083 14.125 12.125C14.7083 11.5417 15 10.8333 15 10C15 9.16667 14.7083 8.45834 14.125 7.875C13.5417 7.29167 12.8333 7 12 7C11.1667 7 10.4583 7.29167 9.875 7.875C9.29167 8.45834 9 9.16667 9 10C9 10.8333 9.29167 11.5417 9.875 12.125C10.4583 12.7083 11.1667 13 12 13ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4ZM5.75 18C6.5 17.0667 7.40834 16.3333 8.475 15.8C9.54167 15.2667 10.7167 15 12 15C13.2833 15 14.4583 15.2667 15.525 15.8C16.5917 16.3333 17.5 17.0667 18.25 18H20V6H4V18H5.75ZM8.7 18H15.3C14.8167 17.6667 14.2957 17.4167 13.737 17.25C13.1783 17.0833 12.5993 17 12 17C11.4 17 10.8207 17.0833 10.262 17.25C9.70334 17.4167 9.18267 17.6667 8.7 18ZM12 11C11.7167 11 11.479 10.904 11.287 10.712C11.095 10.52 10.9993 10.2827 11 10C11 9.71667 11.096 9.479 11.288 9.287C11.48 9.095 11.7173 8.99934 12 9C12.2833 9 12.521 9.096 12.713 9.288C12.905 9.48 13.0007 9.71734 13 10C13 10.2833 12.904 10.521 12.712 10.713C12.52 10.905 12.2827 11.0007 12 11Z",fill:"black"},null,-1)])])}const Xv=ee(Gv,[["render",Jv]]),Qv={},e2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t2(t,e){return r.openBlock(),r.createElementBlock("svg",e2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 22C4.45 22 3.979 21.804 3.587 21.412C3.195 21.02 2.99934 20.5493 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.979 17.804 7.587 17.412C7.195 17.02 6.99934 16.5493 7 16V4C7 3.45 7.196 2.979 7.588 2.587C7.98 2.195 8.45067 1.99934 9 2H18C18.55 2 19.021 2.196 19.413 2.588C19.805 2.98 20.0007 3.45067 20 4V16C20 16.55 19.804 17.021 19.412 17.413C19.02 17.805 18.5493 18.0007 18 18H9ZM9 16H18V4H9V16Z",fill:"black"},null,-1)])])}const n2=ee(Qv,[["render",t2]]),o2={},r2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i2(t,e){return r.openBlock(),r.createElementBlock("svg",r2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7 21C6.45 21 5.979 20.804 5.587 20.412C5.195 20.02 4.99934 19.5493 5 19V6C4.71667 6 4.479 5.904 4.287 5.712C4.095 5.52 3.99934 5.28267 4 5C4 4.71667 4.096 4.479 4.288 4.287C4.48 4.095 4.71734 3.99934 5 4H9C9 3.71667 9.096 3.479 9.288 3.287C9.48 3.095 9.71734 2.99934 10 3H14C14.2833 3 14.521 3.096 14.713 3.288C14.905 3.48 15.0007 3.71734 15 4H19C19.2833 4 19.521 4.096 19.713 4.288C19.905 4.48 20.0007 4.71734 20 5C20 5.28334 19.904 5.521 19.712 5.713C19.52 5.905 19.2827 6.00067 19 6V19C19 19.55 18.804 20.021 18.412 20.413C18.02 20.805 17.5493 21.0007 17 21H7ZM7 6V19H17V6H7ZM9 16C9 16.2833 9.096 16.521 9.288 16.713C9.48 16.905 9.71734 17.0007 10 17C10.2833 17 10.521 16.904 10.713 16.712C10.905 16.52 11.0007 16.2827 11 16V9C11 8.71667 10.904 8.479 10.712 8.287C10.52 8.095 10.2827 7.99934 10 8C9.71667 8 9.479 8.096 9.287 8.288C9.095 8.48 8.99934 8.71734 9 9V16ZM13 16C13 16.2833 13.096 16.521 13.288 16.713C13.48 16.905 13.7173 17.0007 14 17C14.2833 17 14.521 16.904 14.713 16.712C14.905 16.52 15.0007 16.2827 15 16V9C15 8.71667 14.904 8.479 14.712 8.287C14.52 8.095 14.2827 7.99934 14 8C13.7167 8 13.479 8.096 13.287 8.288C13.095 8.48 12.9993 8.71734 13 9V16Z",fill:"black"},null,-1)])])}const s2=ee(o2,[["render",i2]]),a2={},l2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c2(t,e){return r.openBlock(),r.createElementBlock("svg",l2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z",fill:"black"},null,-1),r.createElementVNode("path",{d:"M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z",fill:"black"},null,-1)])])}const u2=ee(a2,[["render",c2]]),d2={},f2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p2(t,e){return r.openBlock(),r.createElementBlock("svg",f2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9 20C8.45 20 7.97933 19.8043 7.588 19.413C7.196 19.021 7 18.55 7 18C7 17.45 7.196 16.979 7.588 16.587C7.97933 16.1957 8.45 16 9 16C9.55 16 10.021 16.1957 10.413 16.587C10.8043 16.979 11 17.45 11 18C11 18.55 10.8043 19.021 10.413 19.413C10.021 19.8043 9.55 20 9 20ZM15 20C14.45 20 13.9793 19.8043 13.588 19.413C13.196 19.021 13 18.55 13 18C13 17.45 13.196 16.979 13.588 16.587C13.9793 16.1957 14.45 16 15 16C15.55 16 16.021 16.1957 16.413 16.587C16.8043 16.979 17 17.45 17 18C17 18.55 16.8043 19.021 16.413 19.413C16.021 19.8043 15.55 20 15 20ZM9 14C8.45 14 7.97933 13.804 7.588 13.412C7.196 13.0207 7 12.55 7 12C7 11.45 7.196 10.979 7.588 10.587C7.97933 10.1957 8.45 10 9 10C9.55 10 10.021 10.1957 10.413 10.587C10.8043 10.979 11 11.45 11 12C11 12.55 10.8043 13.0207 10.413 13.412C10.021 13.804 9.55 14 9 14ZM15 14C14.45 14 13.9793 13.804 13.588 13.412C13.196 13.0207 13 12.55 13 12C13 11.45 13.196 10.979 13.588 10.587C13.9793 10.1957 14.45 10 15 10C15.55 10 16.021 10.1957 16.413 10.587C16.8043 10.979 17 11.45 17 12C17 12.55 16.8043 13.0207 16.413 13.412C16.021 13.804 15.55 14 15 14ZM9 8C8.45 8 7.97933 7.804 7.588 7.412C7.196 7.02067 7 6.55 7 6C7 5.45 7.196 4.97933 7.588 4.588C7.97933 4.196 8.45 4 9 4C9.55 4 10.021 4.196 10.413 4.588C10.8043 4.97933 11 5.45 11 6C11 6.55 10.8043 7.02067 10.413 7.412C10.021 7.804 9.55 8 9 8ZM15 8C14.45 8 13.9793 7.804 13.588 7.412C13.196 7.02067 13 6.55 13 6C13 5.45 13.196 4.97933 13.588 4.588C13.9793 4.196 14.45 4 15 4C15.55 4 16.021 4.196 16.413 4.588C16.8043 4.97933 17 5.45 17 6C17 6.55 16.8043 7.02067 16.413 7.412C16.021 7.804 15.55 8 15 8Z",fill:"black"},null,-1)])])}const m2=ee(d2,[["render",p2]]),h2={},g2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v2(t,e){return r.openBlock(),r.createElementBlock("svg",g2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",fill:"black"},null,-1)])])}const y2=ee(h2,[["render",v2]]),_2={},C2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b2(t,e){return r.openBlock(),r.createElementBlock("svg",C2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",fill:"black"},null,-1)])])}const k2=ee(_2,[["render",b2]]),w2={},E2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S2(t,e){return r.openBlock(),r.createElementBlock("svg",E2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C12.2833 17 12.521 16.904 12.713 16.712C12.905 16.52 13.0007 16.2827 13 16C13 15.7167 12.904 15.479 12.712 15.287C12.52 15.095 12.2827 14.9993 12 15C11.7167 15 11.479 15.096 11.287 15.288C11.095 15.48 10.9993 15.7173 11 16C11 16.2833 11.096 16.521 11.288 16.713C11.48 16.905 11.7173 17.0007 12 17ZM12 13C12.2833 13 12.521 12.904 12.713 12.712C12.905 12.52 13.0007 12.2827 13 12V8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8V12C11 12.2833 11.096 12.521 11.288 12.713C11.48 12.905 11.7173 13.0007 12 13ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const x2=ee(w2,[["render",S2]]),A2={},T2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N2(t,e){return r.openBlock(),r.createElementBlock("svg",T2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 18C10.7167 18 10.479 17.904 10.287 17.712C10.095 17.52 9.99934 17.2827 10 17C10 16.7167 10.096 16.479 10.288 16.287C10.48 16.095 10.7173 15.9993 11 16H13C13.2833 16 13.521 16.096 13.713 16.288C13.905 16.48 14.0007 16.7173 14 17C14 17.2833 13.904 17.521 13.712 17.713C13.52 17.905 13.2827 18.0007 13 18H11ZM4 8C3.71667 8 3.479 7.904 3.287 7.712C3.095 7.52 2.99934 7.28267 3 7C3 6.71667 3.096 6.479 3.288 6.287C3.48 6.095 3.71734 5.99934 4 6H20C20.2833 6 20.521 6.096 20.713 6.288C20.905 6.48 21.0007 6.71734 21 7C21 7.28334 20.904 7.521 20.712 7.713C20.52 7.905 20.2827 8.00067 20 8H4ZM7 13C6.71667 13 6.479 12.904 6.287 12.712C6.095 12.52 5.99934 12.2827 6 12C6 11.7167 6.096 11.479 6.288 11.287C6.48 11.095 6.71734 10.9993 7 11H17C17.2833 11 17.521 11.096 17.713 11.288C17.905 11.48 18.0007 11.7173 18 12C18 12.2833 17.904 12.521 17.712 12.713C17.52 12.905 17.2827 13.0007 17 13H7Z",fill:"black"},null,-1)])])}const D2=ee(A2,[["render",N2]]),$2={},B2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M2(t,e){return r.openBlock(),r.createElementBlock("svg",B2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 21C5.71667 21 5.479 20.904 5.287 20.712C5.095 20.52 4.99934 20.2827 5 20V5C5 4.71667 5.096 4.479 5.288 4.287C5.48 4.095 5.71734 3.99934 6 4H13.175C13.4083 4 13.6167 4.075 13.8 4.225C13.9833 4.375 14.1 4.56667 14.15 4.8L14.4 6H19C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71734 20 7V15C20 15.2833 19.904 15.521 19.712 15.713C19.52 15.905 19.2827 16.0007 19 16H13.825C13.5917 16 13.3833 15.925 13.2 15.775C13.0167 15.625 12.9 15.4333 12.85 15.2L12.6 14H7V20C7 20.2833 6.904 20.521 6.712 20.713C6.52 20.905 6.28267 21.0007 6 21Z",fill:"black"},null,-1)])])}const L2=ee($2,[["render",M2]]),O2={},V2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I2(t,e){return r.openBlock(),r.createElementBlock("svg",V2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M4 12V18V6V12ZM14 21C14.2833 21 14.521 20.904 14.713 20.712C14.905 20.52 15.0007 20.2827 15 20C15 19.7167 14.904 19.479 14.712 19.287C14.52 19.095 14.2827 18.9993 14 19C13.7167 19 13.479 19.096 13.287 19.288C13.095 19.48 12.9993 19.7173 13 20C13 20.2833 13.096 20.521 13.288 20.713C13.48 20.905 13.7173 21.0007 14 21ZM20 11C20.2833 11 20.521 10.904 20.713 10.712C20.905 10.52 21.0007 10.2827 21 10C21 9.71667 20.904 9.479 20.712 9.287C20.52 9.095 20.2827 8.99934 20 9C19.7167 9 19.479 9.096 19.287 9.288C19.095 9.48 18.9993 9.71734 19 10C19 10.2833 19.096 10.521 19.288 10.713C19.48 10.905 19.7173 11.0007 20 11ZM10 11C10.2833 11 10.521 10.904 10.713 10.712C10.905 10.52 11.0007 10.2827 11 10C11 9.71667 10.904 9.479 10.712 9.287C10.52 9.095 10.2827 8.99934 10 9H7C6.71667 9 6.479 9.096 6.287 9.288C6.095 9.48 5.99934 9.71734 6 10C6 10.2833 6.096 10.521 6.288 10.713C6.48 10.905 6.71734 11.0007 7 11H10ZM10 15C10.2833 15 10.521 14.904 10.713 14.712C10.905 14.52 11.0007 14.2827 11 14C11 13.7167 10.904 13.479 10.712 13.287C10.52 13.095 10.2827 12.9993 10 13H7C6.71667 13 6.479 13.096 6.287 13.288C6.095 13.48 5.99934 13.7173 6 14C6 14.2833 6.096 14.521 6.288 14.713C6.48 14.905 6.71734 15.0007 7 15H10ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6H4V18H9V20H4ZM14 23C13.1667 23 12.4583 22.7083 11.875 22.125C11.2917 21.5417 11 20.8333 11 20C11 19.35 11.1877 18.7667 11.563 18.25C11.9383 17.7333 12.4173 17.375 13 17.175V15C13 14.7167 13.096 14.479 13.288 14.287C13.48 14.095 13.7173 13.9993 14 14H19V12.825C18.4167 12.625 17.9373 12.2667 17.562 11.75C17.1867 11.2333 16.9993 10.65 17 10C17 9.16667 17.2917 8.45833 17.875 7.875C18.4583 7.29167 19.1667 7 20 7C20.8333 7 21.5417 7.29167 22.125 7.875C22.7083 8.45833 23 9.16667 23 10C23 10.65 22.8123 11.2333 22.437 11.75C22.0617 12.2667 21.5827 12.625 21 12.825V15C21 15.2833 20.904 15.521 20.712 15.713C20.52 15.905 20.2827 16.0007 20 16H15V17.175C15.5833 17.375 16.0627 17.7333 16.438 18.25C16.8133 18.7667 17.0007 19.35 17 20C17 20.8333 16.7083 21.5417 16.125 22.125C15.5417 22.7083 14.8333 23 14 23Z",fill:"black"},null,-1)])])}const P2=ee(O2,[["render",I2]]),F2={},R2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z2(t,e){return r.openBlock(),r.createElementBlock("svg",R2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.5 14H9.5C9.78334 14 10.021 13.904 10.213 13.712C10.405 13.52 10.5007 13.2827 10.5 13V12H9.5V13H8.5V11H10.5C10.5 10.7167 10.404 10.479 10.212 10.287C10.02 10.095 9.78267 9.99934 9.5 10H8.5C8.21667 10 7.979 10.096 7.787 10.288C7.595 10.48 7.49934 10.7173 7.5 11V13C7.5 13.2833 7.596 13.521 7.788 13.713C7.98 13.905 8.21734 14.0007 8.5 14ZM11.5 14H12.5V10H11.5V14ZM13.5 14H14.5V12.5H16V11.5H14.5V11H16.5V10H13.5V14ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const U2=ee(F2,[["render",z2]]),H2={},q2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j2(t,e){return r.openBlock(),r.createElementBlock("svg",q2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",fill:"black"},null,-1)])])}const W2=ee(H2,[["render",j2]]),Z2={},K2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G2(t,e){return r.openBlock(),r.createElementBlock("svg",K2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 19H9V13H15V19H18V10L12 5.5L6 10V19ZM6 21C5.45 21 4.979 20.804 4.587 20.412C4.195 20.02 3.99934 19.5493 4 19V10C4 9.68333 4.071 9.38333 4.213 9.1C4.355 8.81667 4.55067 8.58333 4.8 8.4L10.8 3.9C10.9833 3.76667 11.175 3.66667 11.375 3.6C11.575 3.53333 11.7833 3.5 12 3.5C12.2167 3.5 12.425 3.53333 12.625 3.6C12.825 3.66667 13.0167 3.76667 13.2 3.9L19.2 8.4C19.45 8.58333 19.646 8.81667 19.788 9.1C19.93 9.38333 20.0007 9.68333 20 10V19C20 19.55 19.804 20.021 19.412 20.413C19.02 20.805 18.5493 21.0007 18 21H13V15H11V21H6Z",fill:"black"},null,-1)])])}const Y2=ee(Z2,[["render",G2]]),J2={},X2={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q2(t,e){return r.openBlock(),r.createElementBlock("svg",X2,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",fill:"black"},null,-1)])])}const ey=ee(J2,[["render",Q2]]),ty={},ny={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oy(t,e){return r.openBlock(),r.createElementBlock("svg",ny,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const ry=ee(ty,[["render",oy]]),iy={},sy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ay(t,e){return r.openBlock(),r.createElementBlock("svg",sy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"black"},null,-1)])])}const ly=ee(iy,[["render",ay]]),cy={},uy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function dy(t,e){return r.openBlock(),r.createElementBlock("svg",uy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7.4 15.4L6 14L12 8L18 14L16.6 15.4L12 10.8L7.4 15.4Z",fill:"black"},null,-1)])])}const fy=ee(cy,[["render",dy]]),py=r.defineComponent({name:"LoadingIcon"});const my={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function hy(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("svg",my,[...e[0]||(e[0]=[r.createElementVNode("circle",{class:"dot dot--1",cx:"6",cy:"12",r:"2"},null,-1),r.createElementVNode("circle",{class:"dot dot--2",cx:"12",cy:"12",r:"2"},null,-1),r.createElementVNode("circle",{class:"dot dot--3",cx:"18",cy:"12",r:"2"},null,-1)])])}const gy=ee(py,[["render",hy],["__scopeId","data-v-ad6da4a9"]]),vy={},yy={xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 -960 960 960",width:"24"};function _y(t,e){return r.openBlock(),r.createElementBlock("svg",yy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm0-80h480v-400H240v400Zm240-120q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80ZM240-160v-400 400Z"},null,-1)])])}const Cy=ee(vy,[["render",_y]]),by={},ky={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wy(t,e){return r.openBlock(),r.createElementBlock("svg",ky,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M15.325 16.275C15.1417 16.0583 15.05 15.8127 15.05 15.538C15.05 15.2633 15.1417 15.034 15.325 14.85L17.175 13H10C9.71667 13 9.479 12.904 9.287 12.712C9.095 12.52 8.99934 12.2827 9 12C9 11.7167 9.096 11.479 9.288 11.287C9.48 11.095 9.71734 10.9993 10 11H17.175L15.325 9.15C15.125 8.95 15.025 8.71234 15.025 8.437C15.025 8.16167 15.125 7.92434 15.325 7.725C15.5083 7.525 15.7377 7.425 16.013 7.425C16.2883 7.425 16.5173 7.51667 16.7 7.7L20.3 11.3C20.4 11.4 20.471 11.5083 20.513 11.625C20.555 11.7417 20.5757 11.8667 20.575 12C20.575 12.1333 20.5543 12.2583 20.513 12.375C20.4717 12.4917 20.4007 12.6 20.3 12.7L16.7 16.3C16.4833 16.5167 16.2457 16.6127 15.987 16.588C15.7283 16.5633 15.5077 16.459 15.325 16.275ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H11C11.2833 3 11.521 3.096 11.713 3.288C11.905 3.48 12.0007 3.71734 12 4C12 4.28334 11.904 4.521 11.712 4.713C11.52 4.905 11.2827 5.00067 11 5H5V19H11C11.2833 19 11.521 19.096 11.713 19.288C11.905 19.48 12.0007 19.7173 12 20C12 20.2833 11.904 20.521 11.712 20.713C11.52 20.905 11.2827 21.0007 11 21H5Z",fill:"black"},null,-1)])])}const Ey=ee(by,[["render",wy]]),Sy={},xy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ay(t,e){return r.openBlock(),r.createElementBlock("svg",xy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M3 18V16H21V18H3ZM3 13V11H21V13H3ZM3 8V6H21V8H3Z",fill:"black"},null,-1)])])}const Ty=ee(Sy,[["render",Ay]]),Ny={},Dy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function $y(t,e){return r.openBlock(),r.createElementBlock("svg",Dy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",fill:"black"},null,-1)])])}const By=ee(Ny,[["render",$y]]),My={},Ly={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Oy(t,e){return r.openBlock(),r.createElementBlock("svg",Ly,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M11 21C9.75 21 8.57933 20.7667 7.488 20.3C6.396 19.8333 5.44167 19.1917 4.625 18.375C3.80833 17.5583 3.16667 16.604 2.7 15.512C2.23333 14.4207 2 13.25 2 12C2 9.48333 2.871 7.354 4.613 5.612C6.35433 3.87067 8.48333 3 11 3C11.2167 3 11.425 3.00833 11.625 3.025C11.825 3.04167 12.025 3.06667 12.225 3.1C12.4417 3.13333 12.625 3.24567 12.775 3.437C12.925 3.629 13 3.84167 13 4.075C13 4.40833 12.8877 4.66233 12.663 4.837C12.4377 5.01233 12.15 5.08333 11.8 5.05C11.6667 5.03333 11.5333 5.02067 11.4 5.012C11.2667 5.004 11.1333 5 11 5C9.03333 5 7.375 5.675 6.025 7.025C4.675 8.375 4 10.0333 4 12C4 13.9667 4.675 15.625 6.025 16.975C7.375 18.325 9.03333 19 11 19C12.95 19 14.596 18.3333 15.938 17C17.2793 15.6667 17.9667 14.025 18 12.075H18.013H18C18 11.7917 18.096 11.5417 18.288 11.325C18.4793 11.1083 18.7167 11 19 11C19.2667 11 19.5 11.0957 19.7 11.287C19.9 11.479 20 11.7 20 11.95V12C20 14.5167 19.129 16.6457 17.387 18.387C15.6457 20.129 13.5167 21 11 21ZM19 9C18.7167 9 18.4793 8.904 18.288 8.712C18.096 8.52067 18 8.28333 18 8V6H16C15.7167 6 15.4793 5.90433 15.288 5.713C15.096 5.521 15 5.28333 15 5C15 4.71667 15.096 4.479 15.288 4.287C15.4793 4.09567 15.7167 4 16 4H18V2C18 1.71667 18.096 1.479 18.288 1.287C18.4793 1.09567 18.7167 1 19 1C19.2833 1 19.5207 1.09567 19.712 1.287C19.904 1.479 20 1.71667 20 2V4H22C22.2833 4 22.5207 4.09567 22.712 4.287C22.904 4.479 23 4.71667 23 5C23 5.28333 22.904 5.521 22.712 5.713C22.5207 5.90433 22.2833 6 22 6H20V8C20 8.28333 19.904 8.52067 19.712 8.712C19.5207 8.904 19.2833 9 19 9ZM13.1 15.5L10.3 12.7C10.2 12.6 10.125 12.4873 10.075 12.362C10.025 12.2373 10 12.1083 10 11.975V8C10 7.71667 10.096 7.479 10.288 7.287C10.4793 7.09567 10.7167 7 11 7C11.2833 7 11.521 7.09567 11.713 7.287C11.9043 7.479 12 7.71667 12 8V11.6L14.5 14.1C14.6833 14.2833 14.775 14.5167 14.775 14.8C14.775 15.0833 14.6833 15.3167 14.5 15.5C14.3167 15.6833 14.0833 15.775 13.8 15.775C13.5167 15.775 13.2833 15.6833 13.1 15.5V15.5Z",fill:"black"},null,-1)])])}const Vy=ee(My,[["render",Oy]]),Iy={},Py={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fy(t,e){return r.openBlock(),r.createElementBlock("svg",Py,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",fill:"black"},null,-1)])])}const Ry=ee(Iy,[["render",Fy]]),zy={},Uy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Hy(t,e){return r.openBlock(),r.createElementBlock("svg",Uy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.70002 12.925L10.075 13.85L11.55 13.1C11.6834 13.0167 11.8334 12.975 12 12.975C12.1667 12.975 12.3167 13.0167 12.45 13.1L13.925 13.85L15.25 12.975L14.25 11H9.65002L8.70002 12.925ZM5.22502 20H18.75L16.15 14.775L14.55 15.85C14.4 15.95 14.2377 16.0043 14.063 16.013C13.8884 16.0217 13.7174 15.984 13.55 15.9L12 15.125L10.45 15.9C10.2834 15.9833 10.1124 16.0167 9.93702 16C9.76169 15.9833 9.59936 15.925 9.45002 15.825L7.80002 14.75L5.22502 20ZM3.60002 22C3.21669 22 2.92936 21.8417 2.73802 21.525C2.54669 21.2083 2.53402 20.8833 2.70002 20.55L7.85002 10.125C8.01669 9.79167 8.26269 9.52067 8.58802 9.312C8.91336 9.10334 9.26736 8.99934 9.65002 9H11V3C11 2.71667 11.096 2.479 11.288 2.287C11.48 2.095 11.7174 1.99934 12 2H17.2C17.3834 2 17.525 2.07934 17.625 2.238C17.725 2.39667 17.7334 2.559 17.65 2.725L17.1 3.775C17.0667 3.85834 17.05 3.93334 17.05 4C17.05 4.06667 17.0667 4.14167 17.1 4.225L17.65 5.275C17.7334 5.44167 17.725 5.604 17.625 5.762C17.525 5.92 17.3834 5.99934 17.2 6H13V9H14.25C14.6334 9 14.9834 9.1 15.3 9.3C15.6167 9.5 15.8667 9.76667 16.05 10.1L21.275 20.55C21.4417 20.8833 21.4294 21.2083 21.238 21.525C21.0467 21.8417 20.759 22 20.375 22H3.60002Z",fill:"black"},null,-1)])])}const qy=ee(zy,[["render",Hy]]),jy={},Wy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zy(t,e){return r.openBlock(),r.createElementBlock("svg",Wy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",fill:"black"},null,-1)])])}const Ky=ee(jy,[["render",Zy]]),Gy={},Yy={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jy(t,e){return r.openBlock(),r.createElementBlock("svg",Yy,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10 10.5H11C11.2833 10.5 11.521 10.404 11.713 10.212C11.905 10.02 12.0007 9.78267 12 9.5V8.5C12 8.21667 11.904 7.979 11.712 7.787C11.52 7.595 11.2827 7.49934 11 7.5H9.5C9.36667 7.5 9.25 7.55 9.15 7.65C9.05 7.75 9 7.86667 9 8V12C9 12.1333 9.05 12.25 9.15 12.35C9.25 12.45 9.36667 12.5 9.5 12.5C9.63334 12.5 9.75 12.45 9.85 12.35C9.95 12.25 10 12.1333 10 12V10.5ZM10 9.5V8.5H11V9.5H10ZM15 12.5C15.2833 12.5 15.521 12.404 15.713 12.212C15.905 12.02 16.0007 11.7827 16 11.5V8.5C16 8.21667 15.904 7.979 15.712 7.787C15.52 7.595 15.2827 7.49934 15 7.5H13.5C13.3667 7.5 13.25 7.55 13.15 7.65C13.05 7.75 13 7.86667 13 8V12C13 12.1333 13.05 12.25 13.15 12.35C13.25 12.45 13.3667 12.5 13.5 12.5H15ZM14 11.5V8.5H15V11.5H14ZM18 10.5H18.5C18.6333 10.5 18.75 10.45 18.85 10.35C18.95 10.25 19 10.1333 19 10C19 9.86667 18.95 9.75 18.85 9.65C18.75 9.55 18.6333 9.5 18.5 9.5H18V8.5H18.5C18.6333 8.5 18.75 8.45 18.85 8.35C18.95 8.25 19 8.13334 19 8C19 7.86667 18.95 7.75 18.85 7.65C18.75 7.55 18.6333 7.5 18.5 7.5H17.5C17.3667 7.5 17.25 7.55 17.15 7.65C17.05 7.75 17 7.86667 17 8V12C17 12.1333 17.05 12.25 17.15 12.35C17.25 12.45 17.3667 12.5 17.5 12.5C17.6333 12.5 17.75 12.45 17.85 12.35C17.95 12.25 18 12.1333 18 12V10.5ZM8 18C7.45 18 6.979 17.804 6.587 17.412C6.195 17.02 5.99934 16.5493 6 16V4C6 3.45 6.196 2.979 6.588 2.587C6.98 2.195 7.45067 1.99934 8 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V16C22 16.55 21.804 17.021 21.412 17.413C21.02 17.805 20.5493 18.0007 20 18H8ZM4 22C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V7C2 6.71667 2.096 6.479 2.288 6.287C2.48 6.095 2.71734 5.99934 3 6C3.28334 6 3.521 6.096 3.713 6.288C3.905 6.48 4.00067 6.71734 4 7V20H17C17.2833 20 17.521 20.096 17.713 20.288C17.905 20.48 18.0007 20.7173 18 21C18 21.2833 17.904 21.521 17.712 21.713C17.52 21.905 17.2827 22.0007 17 22H4Z",fill:"black"},null,-1)])])}const Xy=ee(Gy,[["render",Jy]]),Qy={},e_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function t_(t,e){return r.openBlock(),r.createElementBlock("svg",e_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",fill:"black"},null,-1)])])}const n_=ee(Qy,[["render",t_]]),o_={},r_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function i_(t,e){return r.openBlock(),r.createElementBlock("svg",r_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 17C13.3833 17 14.5627 16.5123 15.538 15.537C16.5133 14.5617 17.0007 13.3827 17 12C17 10.6167 16.5123 9.43733 15.537 8.462C14.5617 7.48667 13.3827 6.99933 12 7C10.6167 7 9.43733 7.48767 8.462 8.463C7.48667 9.43833 6.99933 10.6173 7 12C7 13.3833 7.48767 14.5627 8.463 15.538C9.43833 16.5133 10.6173 17.0007 12 17ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"black"},null,-1)])])}const s_=ee(o_,[["render",i_]]),a_={},l_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function c_(t,e){return r.openBlock(),r.createElementBlock("svg",l_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 20C9.76667 20 7.875 19.225 6.325 17.675C4.775 16.125 4 14.2333 4 12C4 9.76667 4.775 7.875 6.325 6.325C7.875 4.775 9.76667 4 12 4C14.2333 4 16.125 4.775 17.675 6.325C19.225 7.875 20 9.76667 20 12C20 14.2333 19.225 16.125 17.675 17.675C16.125 19.225 14.2333 20 12 20Z",fill:"black"},null,-1)])])}const u_=ee(a_,[["render",c_]]),d_={},f_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function p_(t,e){return r.openBlock(),r.createElementBlock("svg",f_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M6 13C5.71667 13 5.479 12.904 5.287 12.712C5.095 12.52 4.99934 12.2827 5 12C5 11.7167 5.096 11.479 5.288 11.287C5.48 11.095 5.71734 10.9993 6 11H18C18.2833 11 18.521 11.096 18.713 11.288C18.905 11.48 19.0007 11.7173 19 12C19 12.2833 18.904 12.521 18.712 12.713C18.52 12.905 18.2827 13.0007 18 13H6Z",fill:"black"},null,-1)])])}const m_=ee(d_,[["render",p_]]),h_={},g_={width:"26",height:"29",viewBox:"0 0 26 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function v_(t,e){return r.openBlock(),r.createElementBlock("svg",g_,[...e[0]||(e[0]=[r.createStaticVNode('<g filter="url(#filter0_d_2030_169)"><path d="M19.9 20.3L14.3 14.7C13.8 15.1 13.225 15.4167 12.575 15.65C11.925 15.8833 11.2333 16 10.5 16C8.68333 16 7.146 15.3707 5.888 14.112C4.63 12.8533 4.00067 11.316 4 9.5C4 7.68333 4.62933 6.146 5.888 4.888C7.14667 3.63 8.684 3.00067 10.5 3C12.3167 3 13.854 3.62933 15.112 4.888C16.37 6.14667 16.9993 7.684 17 9.5C17 10.2333 16.8833 10.925 16.65 11.575C16.4167 12.225 16.1 12.8 15.7 13.3L21.325 18.925C21.5083 19.1083 21.6 19.3333 21.6 19.6C21.6 19.8667 21.5 20.1 21.3 20.3C21.1167 20.4833 20.8833 20.575 20.6 20.575C20.3167 20.575 20.0833 20.4833 19.9 20.3ZM10.5 14C11.75 14 12.8127 13.5623 13.688 12.687C14.5633 11.8117 15.0007 10.7493 15 9.5C15 8.25 14.5623 7.18733 13.687 6.312C12.8117 5.43667 11.7493 4.99933 10.5 5C9.25 5 8.18733 5.43767 7.312 6.313C6.43667 7.18833 5.99933 8.25067 6 9.5C6 10.75 6.43767 11.8127 7.313 12.688C8.18833 13.5633 9.25067 14.0007 10.5 14Z" fill="black"></path></g><defs><filter id="filter0_d_2030_169" x="-3" y="0" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="4"></feOffset><feGaussianBlur stdDeviation="2"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2030_169"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2030_169" result="shape"></feBlend></filter></defs>',2)])])}const y_=ee(h_,[["render",v_]]),__={},C_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function b_(t,e){return r.openBlock(),r.createElementBlock("svg",C_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",fill:"black"},null,-1)])])}const k_=ee(__,[["render",b_]]),w_={},E_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function S_(t,e){return r.openBlock(),r.createElementBlock("svg",E_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.4 19.4251C4.06667 19.5584 3.75 19.5291 3.45 19.3371C3.15 19.1457 3 18.8667 3 18.5001V14.7751C3 14.5417 3.06667 14.3334 3.2 14.1501C3.33333 13.9667 3.51667 13.8501 3.75 13.8001L11 12.0001L3.75 10.2001C3.51667 10.1501 3.33333 10.0334 3.2 9.85006C3.06667 9.66672 3 9.45839 3 9.22506V5.50006C3 5.13339 3.15 4.85406 3.45 4.66206C3.75 4.47072 4.06667 4.44172 4.4 4.57506L19.8 11.0751C20.2167 11.2584 20.425 11.5667 20.425 12.0001C20.425 12.4334 20.2167 12.7417 19.8 12.9251L4.4 19.4251Z",fill:"black"},null,-1)])])}const x_=ee(w_,[["render",S_]]),A_={},T_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function N_(t,e){return r.openBlock(),r.createElementBlock("svg",T_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",fill:"black"},null,-1)])])}const D_=ee(A_,[["render",N_]]),$_={},B_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M_(t,e){return r.openBlock(),r.createElementBlock("svg",B_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M15.85 12.425C16 12.325 16.075 12.1833 16.075 12C16.075 11.8167 16 11.675 15.85 11.575L10.275 8C10.1083 7.88334 9.93734 7.875 9.762 7.975C9.58667 8.075 9.49934 8.225 9.5 8.425V15.575C9.5 15.775 9.58767 15.925 9.763 16.025C9.93833 16.125 10.109 16.1167 10.275 16L15.85 12.425ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const L_=ee($_,[["render",M_]]),O_={},V_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function I_(t,e){return r.openBlock(),r.createElementBlock("svg",V_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12 18C10.3333 18 8.91667 17.4167 7.75 16.25C6.58333 15.0833 6 13.6667 6 12C6 10.3333 6.58333 8.91667 7.75 7.75C8.91667 6.58333 10.3333 6 12 6C13.6667 6 15.0833 6.58333 16.25 7.75C17.4167 8.91667 18 10.3333 18 12C18 13.6667 17.4167 15.0833 16.25 16.25C15.0833 17.4167 13.6667 18 12 18ZM12 16C13.1 16 14.0417 15.6083 14.825 14.825C15.6083 14.0417 16 13.1 16 12C16 10.9 15.6083 9.95833 14.825 9.175C14.0417 8.39167 13.1 8 12 8C10.9 8 9.95833 8.39167 9.175 9.175C8.39167 9.95833 8 10.9 8 12C8 13.1 8.39167 14.0417 9.175 14.825C9.95833 15.6083 10.9 16 12 16ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99933 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99933 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14Z",fill:"black"},null,-1)])])}const P_=ee(O_,[["render",I_]]),F_={},R_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function z_(t,e){return r.openBlock(),r.createElementBlock("svg",R_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M10.925 15.125L9.525 13.725C9.425 13.625 9.31667 13.55 9.2 13.5C9.08334 13.45 8.96267 13.425 8.838 13.425C8.71267 13.425 8.58767 13.45 8.463 13.5C8.33834 13.55 8.22567 13.625 8.125 13.725C7.925 13.925 7.825 14.1627 7.825 14.438C7.825 14.7133 7.925 14.9507 8.125 15.15L10.25 17.3C10.35 17.4 10.4583 17.471 10.575 17.513C10.6917 17.555 10.8167 17.5757 10.95 17.575C11.0833 17.575 11.2083 17.554 11.325 17.512C11.4417 17.47 11.55 17.3993 11.65 17.3L15.875 13.075C16.075 12.875 16.175 12.6333 16.175 12.35C16.175 12.0667 16.075 11.825 15.875 11.625C15.675 11.425 15.4333 11.325 15.15 11.325C14.8667 11.325 14.625 11.425 14.425 11.625L10.925 15.125ZM6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V20C20 20.55 19.804 21.021 19.412 21.413C19.02 21.805 18.5493 22.0007 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.479 8.904 13.287 8.712C13.095 8.52 12.9993 8.28267 13 8Z",fill:"black"},null,-1)])])}const U_=ee(F_,[["render",z_]]),H_={},q_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function j_(t,e){return r.openBlock(),r.createElementBlock("svg",q_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H14.175C14.4417 3 14.696 3.05 14.938 3.15C15.18 3.25 15.3923 3.39167 15.575 3.575L20.425 8.425C20.6083 8.60834 20.75 8.821 20.85 9.063C20.95 9.305 21 9.559 21 9.825V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM8 17H16C16.2833 17 16.521 16.904 16.713 16.712C16.905 16.52 17.0007 16.2827 17 16C17 15.7167 16.904 15.479 16.712 15.287C16.52 15.095 16.2827 14.9993 16 15H8C7.71667 15 7.479 15.096 7.287 15.288C7.095 15.48 6.99934 15.7173 7 16C7 16.2833 7.096 16.521 7.288 16.713C7.48 16.905 7.71734 17.0007 8 17ZM8 13H16C16.2833 13 16.521 12.904 16.713 12.712C16.905 12.52 17.0007 12.2827 17 12C17 11.7167 16.904 11.479 16.712 11.287C16.52 11.095 16.2827 10.9993 16 11H8C7.71667 11 7.479 11.096 7.287 11.288C7.095 11.48 6.99934 11.7173 7 12C7 12.2833 7.096 12.521 7.288 12.713C7.48 12.905 7.71734 13.0007 8 13ZM8 9H13C13.2833 9 13.521 8.904 13.713 8.712C13.905 8.52 14.0007 8.28267 14 8C14 7.71667 13.904 7.479 13.712 7.287C13.52 7.095 13.2827 6.99934 13 7H8C7.71667 7 7.479 7.096 7.287 7.288C7.095 7.48 6.99934 7.71734 7 8C7 8.28334 7.096 8.521 7.288 8.713C7.48 8.905 7.71734 9.00067 8 9Z",fill:"black"},null,-1)])])}const W_=ee(H_,[["render",j_]]),Z_={},K_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function G_(t,e){return r.openBlock(),r.createElementBlock("svg",K_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M9 3V1H15V3H9ZM11 14H13V8H11V14ZM12 22C10.7667 22 9.604 21.7623 8.512 21.287C7.42 20.8117 6.466 20.166 5.65 19.35C4.83333 18.5333 4.18733 17.579 3.712 16.487C3.23667 15.395 2.99933 14.2327 3 13C3 11.7667 3.23767 10.604 3.713 9.512C4.18833 8.42 4.834 7.466 5.65 6.65C6.46667 5.83333 7.421 5.18733 8.513 4.712C9.605 4.23667 10.7673 3.99933 12 4C13.0333 4 14.025 4.16667 14.975 4.5C15.925 4.83333 16.8167 5.31667 17.65 5.95L19.05 4.55L20.45 5.95L19.05 7.35C19.6833 8.18333 20.1667 9.075 20.5 10.025C20.8333 10.975 21 11.9667 21 13C21 14.2333 20.7623 15.396 20.287 16.488C19.8117 17.58 19.166 18.534 18.35 19.35C17.5333 20.1667 16.579 20.8127 15.487 21.288C14.395 21.7633 13.2327 22.0007 12 22ZM12 20C13.9333 20 15.5833 19.3167 16.95 17.95C18.3167 16.5833 19 14.9333 19 13C19 11.0667 18.3167 9.41667 16.95 8.05C15.5833 6.68333 13.9333 6 12 6C10.0667 6 8.41667 6.68333 7.05 8.05C5.68333 9.41667 5 11.0667 5 13C5 14.9333 5.68333 16.5833 7.05 17.95C8.41667 19.3167 10.0667 20 12 20Z",fill:"black"},null,-1)])])}const Y_=ee(Z_,[["render",G_]]),J_={},X_={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Q_(t,e){return r.openBlock(),r.createElementBlock("svg",X_,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8 10H4C3.45 10 2.979 9.804 2.587 9.412C2.195 9.02 1.99934 8.54934 2 8V4C2 3.45 2.196 2.979 2.588 2.587C2.98 2.195 3.45067 1.99934 4 2H8C8.55 2 9.021 2.196 9.413 2.588C9.805 2.98 10.0007 3.45067 10 4V8C10 8.55 9.804 9.021 9.412 9.413C9.02 9.805 8.54934 10.0007 8 10ZM8 22H4C3.45 22 2.979 21.804 2.587 21.412C2.195 21.02 1.99934 20.5493 2 20V16C2 15.45 2.196 14.979 2.588 14.587C2.98 14.195 3.45067 13.9993 4 14H8C8.55 14 9.021 14.196 9.413 14.588C9.805 14.98 10.0007 15.4507 10 16V20C10 20.55 9.804 21.021 9.412 21.413C9.02 21.805 8.54934 22.0007 8 22ZM20 10H16C15.45 10 14.979 9.804 14.587 9.412C14.195 9.02 13.9993 8.54934 14 8V4C14 3.45 14.196 2.979 14.588 2.587C14.98 2.195 15.4507 1.99934 16 2H20C20.55 2 21.021 2.196 21.413 2.588C21.805 2.98 22.0007 3.45067 22 4V8C22 8.55 21.804 9.021 21.412 9.413C21.02 9.805 20.5493 10.0007 20 10ZM20 22H16C15.45 22 14.979 21.804 14.587 21.412C14.195 21.02 13.9993 20.5493 14 20V16C14 15.45 14.196 14.979 14.588 14.587C14.98 14.195 15.4507 13.9993 16 14H20C20.55 14 21.021 14.196 21.413 14.588C21.805 14.98 22.0007 15.4507 22 16V20C22 20.55 21.804 21.021 21.412 21.413C21.02 21.805 20.5493 22.0007 20 22Z",fill:"black"},null,-1)])])}const e3=ee(J_,[["render",Q_]]),t3={},n3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function o3(t,e){return r.openBlock(),r.createElementBlock("svg",n3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",fill:"black"},null,-1)])])}const r3=ee(t3,[["render",o3]]),i3={},s3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function a3(t,e){return r.openBlock(),r.createElementBlock("svg",s3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M7 17H11C11.2833 17 11.521 16.904 11.713 16.712C11.905 16.52 12.0007 16.2827 12 16C12 15.7167 11.904 15.479 11.712 15.287C11.52 15.095 11.2827 14.9993 11 15H7C6.71667 15 6.479 15.096 6.287 15.288C6.095 15.48 5.99934 15.7173 6 16C6 16.2833 6.096 16.521 6.288 16.713C6.48 16.905 6.71734 17.0007 7 17ZM10 13H14C14.2833 13 14.521 12.904 14.713 12.712C14.905 12.52 15.0007 12.2827 15 12C15 11.7167 14.904 11.479 14.712 11.287C14.52 11.095 14.2827 10.9993 14 11H10C9.71667 11 9.479 11.096 9.287 11.288C9.095 11.48 8.99934 11.7173 9 12C9 12.2833 9.096 12.521 9.288 12.713C9.48 12.905 9.71734 13.0007 10 13ZM13 9H17C17.2833 9 17.521 8.904 17.713 8.712C17.905 8.52 18.0007 8.28267 18 8C18 7.71667 17.904 7.479 17.712 7.287C17.52 7.095 17.2827 6.99934 17 7H13C12.7167 7 12.479 7.096 12.287 7.288C12.095 7.48 11.9993 7.71734 12 8C12 8.28334 12.096 8.521 12.288 8.713C12.48 8.905 12.7173 9.00067 13 9ZM5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5Z",fill:"black"},null,-1)])])}const l3=ee(i3,[["render",a3]]),c3={},u3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function d3(t,e){return r.openBlock(),r.createElementBlock("svg",u3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",fill:"black"},null,-1)])])}const f3=ee(c3,[["render",d3]]),p3={},m3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function h3(t,e){return r.openBlock(),r.createElementBlock("svg",m3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M2.72505 21C2.34172 21 2.05838 20.8333 1.87505 20.5C1.69172 20.1667 1.69172 19.8333 1.87505 19.5L11.125 3.5C11.3084 3.16667 11.6 3 12 3C12.4 3 12.6917 3.16667 12.875 3.5L22.125 19.5C22.3084 19.8333 22.3084 20.1667 22.125 20.5C21.9417 20.8333 21.6584 21 21.275 21H2.72505ZM12 10C11.7167 10 11.4794 10.0957 11.288 10.287C11.096 10.479 11 10.7167 11 11V14C11 14.2833 11.096 14.5207 11.288 14.712C11.4794 14.904 11.7167 15 12 15C12.2834 15 12.521 14.904 12.713 14.712C12.9044 14.5207 13 14.2833 13 14V11C13 10.7167 12.9044 10.479 12.713 10.287C12.521 10.0957 12.2834 10 12 10ZM12 18C12.2834 18 12.521 17.904 12.713 17.712C12.9044 17.5207 13 17.2833 13 17C13 16.7167 12.9044 16.4793 12.713 16.288C12.521 16.096 12.2834 16 12 16C11.7167 16 11.4794 16.096 11.288 16.288C11.096 16.4793 11 16.7167 11 17C11 17.2833 11.096 17.5207 11.288 17.712C11.4794 17.904 11.7167 18 12 18Z",fill:"black"},null,-1)])])}const g3=ee(p3,[["render",h3]]),v3={},y3={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _3(t,e){return r.openBlock(),r.createElementBlock("svg",y3,[...e[0]||(e[0]=[r.createElementVNode("path",{d:"M19.5 20C19.0833 20 18.729 19.854 18.437 19.562C18.145 19.27 17.9993 18.916 18 18.5V5.5C18 5.08334 18.146 4.729 18.438 4.437C18.73 4.145 19.084 3.99934 19.5 4C19.9167 4 20.271 4.146 20.563 4.438C20.855 4.73 21.0007 5.084 21 5.5V18.5C21 18.9167 20.854 19.271 20.562 19.563C20.27 19.855 19.916 20.0007 19.5 20ZM4.5 20C4.08334 20 3.729 19.854 3.437 19.562C3.145 19.27 2.99934 18.916 3 18.5V14.5C3 14.0833 3.146 13.729 3.438 13.437C3.73 13.145 4.084 12.9993 4.5 13C4.91667 13 5.271 13.146 5.563 13.438C5.855 13.73 6.00067 14.084 6 14.5V18.5C6 18.9167 5.854 19.271 5.562 19.563C5.27 19.855 4.916 20.0007 4.5 20ZM15.5 7C15.0833 7 14.729 6.854 14.437 6.562C14.145 6.27 13.9993 5.916 14 5.5C14 5.08334 14.146 4.729 14.438 4.437C14.73 4.145 15.084 3.99934 15.5 4C15.9167 4 16.271 4.146 16.563 4.438C16.855 4.73 17.0007 5.084 17 5.5C17 5.91667 16.854 6.271 16.562 6.563C16.27 6.855 15.916 7.00067 15.5 7ZM11.5 9C11.0833 9 10.729 8.854 10.437 8.562C10.145 8.27 9.99934 7.916 10 7.5V6.5C10 6.08334 10.146 5.729 10.438 5.437C10.73 5.145 11.084 4.99934 11.5 5C11.9167 5 12.271 5.146 12.563 5.438C12.855 5.73 13.0007 6.084 13 6.5V7.5C13 7.91667 12.854 8.271 12.562 8.563C12.27 8.855 11.916 9.00067 11.5 9ZM8.5 14C8.08334 14 7.729 13.854 7.437 13.562C7.145 13.27 6.99934 12.916 7 12.5V11.5C7 11.0833 7.146 10.729 7.438 10.437C7.73 10.145 8.084 9.99934 8.5 10C8.91667 10 9.271 10.146 9.563 10.438C9.855 10.73 10.0007 11.084 10 11.5V12.5C10 12.9167 9.854 13.271 9.562 13.563C9.27 13.855 8.916 14.0007 8.5 14Z",fill:"black"},null,-1)])])}const C3=ee(v3,[["render",_3]]),b3=Object.freeze(Object.defineProperty({__proto__:null,AccountBoxSharp:m0,AccountCircle:y0,AccountTreeOutlineRounded:k0,AccountTreeRounded:x0,Add:D0,AddBoxOutlineRounded:L0,ArchiveOutlineRounded:P0,ArrowBackRounded:U0,ArrowDropDownRounded:W0,ArrowForwardRounded:Y0,AssignmentOutlineRounded:ev,AttachFileRounded:rv,CalendarTodayOutlineRounded:lv,CancelRounded:fv,ChatOutline:gv,CheckBoxOutlineBlank:Cv,CheckBoxOutlineBlankSharp:Ev,CheckBoxOutlineRounded:Tv,CheckSmallRounded:Bv,ChecklistRounded:Vv,ChevronLeft:Rv,ChevronRight:qv,CloseRounded:Kv,ContactsOutlineRounded:Xv,ContentCopyOutline:n2,DeleteOutlineRounded:s2,DownloadRounded:u2,DragIndicator:m2,EditDocumentRounded:y2,EditOutline:k2,ErrorOutlineRounded:x2,FilterListRounded:D2,FlagRounded:L2,FlowsheetOutlineRounded:P2,GifBox:U2,GroupsOutline:W2,HomeOutlineRounded:Y2,ImageRounded:ey,Info:ry,KeyboardArrowDown:ly,KeyboardArrowUp:fy,Loading:gy,Lock:Cy,LogoutRounded:Ey,Menu:Ty,MoreHoriz:By,MoreTimeRounded:Vy,MoreVert:Ry,MountainFlagOutlineRounded:qy,PersonAddOutlineRounded:Ky,PictureAsPdfRounded:Xy,RadioButtonChecked:n_,RadioButtonCheckedOutline:s_,RadioButtonUnchecked:u_,RemoveRounded:m_,SearchRounded:y_,SelectCheckBox:k_,SendRounded:x_,Settings:D_,SlideshowRounded:L_,Target:P_,TaskOutlineRounded:U_,TextSnippetRounded:W_,TimerOutline:Y_,ViewComfyAltRounded:e3,ViewCompactAltRounded:r3,ViewTimelineRounded:l3,WarningOutlineRounded:f3,WarningRounded:g3,WaterfallChartRounded:C3},Symbol.toStringTag,{value:"Module"})),k3={SOLID:"solid",GHOST:"ghost",OUTLINE:"outline"},Na={SM:"sm",MD:"md",LG:"lg",XL:"xl"},Qc={PRIMARY:"primary",PRIMARY_LIGHTER:"primary-lighter",NEUTRAL:"neutral",BLACK:"black"},w3={WARNING:"warning",SUCCESS:"success",DANGER:"danger"};({...Qc,...w3});const kp={ROUND:"round",ROUNDED:"rounded"},E3={SOLID:"solid",OUTLINE:"outline",SOLID_ICON:"solid_icon"},ke=r.defineComponent({__name:"AoIcon",props:{name:{},size:{default:Na.MD}},setup(t){const e=t,n=r.computed(()=>b3[e.name]);return(o,i)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),{class:r.normalizeClass(["ao-icon",`ao-icon--${t.size}`])},null,8,["class"]))}});const S3=["type"],x3={key:0,class:"ao-button__label"},de=r.defineComponent({__name:"AoButton",props:{label:{default:()=>""},variant:{default:()=>k3.SOLID},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{},footer:{type:Boolean,default:()=>!1},size:{default:()=>Na.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>kp.ROUNDED}},setup(t){const e=t,n=r.computed(()=>e.size),o=r.computed(()=>e.isLoading?"Loading":e.iconName);return(i,s)=>(r.openBlock(),r.createElementBlock("button",{type:t.type,class:r.normalizeClass(["ao-button",`ao-button--${t.variant}`,t.color?`ao-button--${t.color}`:"",`ao-button--${t.corners}`,t.footer?"ao-button--footer":"",t.size?`ao-button--${t.size}`:"",t.iconName&&t.iconPosition?`ao-button--icon-${t.iconPosition}`:"",i.$attrs.disabled?"ao-button--is-disabled":""])},[r.renderSlot(i.$slots,"default",{},()=>[t.label?(r.openBlock(),r.createElementBlock("span",x3,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0)]),o.value?(r.openBlock(),r.createBlock(ke,{key:0,name:o.value,class:"ao-button__icon",size:n.value},null,8,["name","size"])):r.createCommentVNode("",!0)],10,S3))}});function A3(t){const e=r.ref(!1),n=r.ref(""),o=r.computed(()=>"value"in t.value?"value":"innerHTML"),i=()=>{e.value=!e.value},s=c=>{e.value=c},a=c=>async()=>{s(!1),await r.nextTick(()=>{t.value[o.value]=n.value,c==null||c()})},l=c=>async u=>{const d=t.value[o.value];s(!1),await r.nextTick(()=>{c(d,u)})};return r.watch(e,async c=>{await r.nextTick(()=>{setTimeout(()=>{t.value&&c&&(t.value.focus(),n.value=t.value[o.value])},1)})}),{isEditing:e,setIsEditing:s,toggleIsEditing:i,onUpdate:l,onDiscard:a}}const ht=r.defineComponent({__name:"AoTitle",props:{id:{},title:{},level:{default:1},tag:{},color:{},isEditable:{type:Boolean,default:!1}},emits:["update:title","toggle-is-editing"],setup(t,{emit:e}){const n=r.ref(null),o=t,i=e,{isEditing:s,setIsEditing:a,onUpdate:l,onDiscard:c}=A3(n),u=r.computed(()=>s.value?"input":o.tag||`h${o.level}`),d=r.computed(()=>o.isEditable?s.value?{change:p,click:C=>C.stopPropagation(),blur:m}:{click:v,focus:v}:{}),p=l((C,y)=>{const _=y.target.value;i("update:title",_)}),f=c(),m=async()=>{s.value&&a(!1)},h=()=>{i("toggle-is-editing",!1)},v=C=>{C.stopPropagation(),s.value||a(!0)};return r.watch(()=>o.isEditable,C=>{C||f()}),(C,y)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(u.value),r.mergeProps({id:t.id,ref_key:"target",ref:n,class:["ao-title",`ao-title--${t.level}`,{[`ao-title--${t.color}`]:!!t.color,"ao-title--editable":t.isEditable,"ao-field__input ao-title--editing":r.unref(s),"ao-title--readonly":!r.unref(s)}],type:r.unref(s)?"text":null,value:r.unref(s)?t.title:null,tabindex:"0",onKeyup:r.withKeys(h,["enter"])},r.toHandlers(d.value),{onKeydown:r.withKeys(r.unref(f),["esc"])}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.title),1)]),_:1},16,["id","class","type","value","onKeydown"]))}});const T3={key:0,class:"ao-card-horiz__drag ao-card__drag"},N3={class:"ao-card-horiz__header"},D3={key:0,class:"ao-card-horiz__avatar"},$3={class:"ao-card-horiz__title-group"},B3={key:0,class:"ao-card-horiz__subtitle"},M3={key:1,class:"ao-card-horiz__header"},L3={key:1,class:"ao-card-horiz__body"},O3={key:2,class:"ao-card-horiz__footer"},V3={key:3,class:"ao-card-horiz__secondary"},wp=r.defineComponent({__name:"AoCardHoriz",props:{id:{},title:{},subtitle:{},icon:{},isActive:{type:Boolean},isEditing:{type:Boolean},tagName:{default:"div"},isDraggable:{type:Boolean}},emits:["update:title"],setup(t,{emit:e}){const n=e,o=i=>{n("update:title",i)};return(i,s)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:r.normalizeClass(["ao-card-horiz",{"ao-card-horiz--active":t.isActive}])},{default:r.withCtx(()=>[t.isDraggable?(r.openBlock(),r.createElementBlock("div",T3,[r.createVNode(ke,{name:"DragIndicator",class:"ao-card-horiz__drag-handle"})])):r.createCommentVNode("",!0),r.createElementVNode("div",N3,[t.icon?(r.openBlock(),r.createElementBlock("div",D3,[r.createVNode(ke,{class:"ao-card-horiz__icon",name:t.icon,size:"xl"},null,8,["name"])])):r.createCommentVNode("",!0),r.createElementVNode("div",$3,[r.createVNode(ht,{id:t.id,class:"ao-card-horiz__title",level:4,title:t.title||"","is-editable":!0,"onUpdate:title":o},null,8,["id","title"]),r.renderSlot(i.$slots,"subtitle",{},()=>[t.subtitle?(r.openBlock(),r.createElementBlock("span",B3,r.toDisplayString(t.subtitle),1)):r.createCommentVNode("",!0)])]),i.$slots.header?(r.openBlock(),r.createElementBlock("div",M3,[r.renderSlot(i.$slots,"header")])):r.createCommentVNode("",!0)]),i.$slots.default?(r.openBlock(),r.createElementBlock("div",L3,[r.renderSlot(i.$slots,"default")])):r.createCommentVNode("",!0),i.$slots.footer?(r.openBlock(),r.createElementBlock("div",O3,[r.renderSlot(i.$slots,"footer")])):r.createCommentVNode("",!0),i.$slots.secondary?(r.openBlock(),r.createElementBlock("div",V3,[r.renderSlot(i.$slots,"secondary")])):r.createCommentVNode("",!0)]),_:3},8,["class"]))}});const Ii=r.defineComponent({__name:"AoTag",props:{label:{},color:{},rawColor:{},clickable:{type:Boolean},closable:{type:Boolean},variant:{},iconName:{}},emits:["click","close"],setup(t){const e=t,n=r.computed(()=>e.clickable?"button":"span"),o=r.computed(()=>n.value==="button"?{type:"button"}:{});return(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-tag",t.color?`ao-tag--${t.color}`:"",t.clickable?"ao-tag--clickable":"",t.closable?"ao-tag--closable":"",t.variant?`ao-tag--${t.variant}`:""]),style:r.normalizeStyle(t.rawColor?{"--ao-tag-bg":t.rawColor}:{})},[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.value),r.mergeProps({class:"ao-tag__label"},o.value,{onClick:s[0]||(s[0]=a=>i.$emit("click",a))}),{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.label)+" ",1),t.variant===r.unref(E3).SOLID_ICON&&t.iconName?(r.openBlock(),r.createBlock(ke,{key:0,name:t.iconName,class:"ao-tag__icon",size:"sm"},null,8,["name"])):r.createCommentVNode("",!0)]),_:1},16)),t.closable?(r.openBlock(),r.createElementBlock("button",{key:0,class:"ao-tag__close",onClick:s[1]||(s[1]=a=>i.$emit("close",a))},[r.createVNode(ke,{name:"CloseRounded",size:"sm",class:"ao-tag__close-icon"})])):r.createCommentVNode("",!0)],6))}});const Pi={todo:"todo",done:"done",archived:"archived"},I3={months:"months",weeks:"weeks",days:"days"},P3={future:"future",this_month:"this_month",this_week:"this_week",today:"today",done:"done"},Ep={BEFORE:"before",AFTER:"after"},Sp={START:"start",end:"end"},xp={DAYS:"days",WEEKS:"weeks",MONTHS:"months"},qe={TEMPLATES:"templates",PHASES:"phases",MILESTONES:"milestones",ACTIVITIES:"activities",TASKS:"tasks"};var Ap=(t=>(t.PHASES="phases",t.MILESTONES="milestones",t.ACTIVITIES="activities",t))(Ap||{});const F3={add:"add",remove:"remove",moved:"moved"};var Tp=(t=>(t.HOURS="hours",t.DAYS="days",t))(Tp||{});const ln={project:"projectId",assignee:"assigneeId",sprint:"sprintId",milestone:"milestoneId"};function Js(t){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Js(t)}function Gn(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function nt(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Tt(t){nt(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||Js(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function R3(t,e){nt(2,arguments);var n=Tt(t).getTime(),o=Gn(e);return new Date(n+o)}var z3={};function Qi(){return z3}function Fi(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function Sd(t){nt(1,arguments);var e=Tt(t);return e.setHours(0,0,0,0),e}var U3=864e5;function H3(t,e){nt(2,arguments);var n=Sd(t),o=Sd(e),i=n.getTime()-Fi(n),s=o.getTime()-Fi(o);return Math.round((i-s)/U3)}function q3(t,e){nt(2,arguments);var n=Tt(t),o=Tt(e),i=n.getTime()-o.getTime();return i<0?-1:i>0?1:i}var Np=6e4,Dp=36e5;function j3(t){return nt(1,arguments),t instanceof Date||Js(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function $p(t){if(nt(1,arguments),!j3(t)&&typeof t!="number")return!1;var e=Tt(t);return!isNaN(Number(e))}function dc(t,e){nt(2,arguments);var n=Gn(e);return R3(t,-n)}var W3=864e5;function Z3(t){nt(1,arguments);var e=Tt(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var o=e.getTime(),i=n-o;return Math.floor(i/W3)+1}function Xs(t){nt(1,arguments);var e=1,n=Tt(t),o=n.getUTCDay(),i=(o<e?7:0)+o-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Bp(t){nt(1,arguments);var e=Tt(t),n=e.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var i=Xs(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=Xs(s);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function K3(t){nt(1,arguments);var e=Bp(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var o=Xs(n);return o}var G3=6048e5;function Y3(t){nt(1,arguments);var e=Tt(t),n=Xs(e).getTime()-K3(e).getTime();return Math.round(n/G3)+1}function Qs(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Qi(),p=Gn((n=(o=(i=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=Tt(t),m=f.getUTCDay(),h=(m<p?7:0)+m-p;return f.setUTCDate(f.getUTCDate()-h),f.setUTCHours(0,0,0,0),f}function Mp(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Tt(t),p=d.getUTCFullYear(),f=Qi(),m=Gn((n=(o=(i=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&o!==void 0?o:(c=f.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(p+1,0,m),h.setUTCHours(0,0,0,0);var v=Qs(h,e),C=new Date(0);C.setUTCFullYear(p,0,m),C.setUTCHours(0,0,0,0);var y=Qs(C,e);return d.getTime()>=v.getTime()?p+1:d.getTime()>=y.getTime()?p:p-1}function J3(t,e){var n,o,i,s,a,l,c,u;nt(1,arguments);var d=Qi(),p=Gn((n=(o=(i=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(a=e.locale)===null||a===void 0||(l=a.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&o!==void 0?o:(c=d.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),f=Mp(t,e),m=new Date(0);m.setUTCFullYear(f,0,p),m.setUTCHours(0,0,0,0);var h=Qs(m,e);return h}var X3=6048e5;function Q3(t,e){nt(1,arguments);var n=Tt(t),o=Qs(n,e).getTime()-J3(n,e).getTime();return Math.round(o/X3)+1}function Oe(t,e){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<e;)o="0"+o;return n+o}var e5={y:function(e,n){var o=e.getUTCFullYear(),i=o>0?o:1-o;return Oe(n==="yy"?i%100:i,n.length)},M:function(e,n){var o=e.getUTCMonth();return n==="M"?String(o+1):Oe(o+1,2)},d:function(e,n){return Oe(e.getUTCDate(),n.length)},a:function(e,n){var o=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h:function(e,n){return Oe(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Oe(e.getUTCHours(),n.length)},m:function(e,n){return Oe(e.getUTCMinutes(),n.length)},s:function(e,n){return Oe(e.getUTCSeconds(),n.length)},S:function(e,n){var o=n.length,i=e.getUTCMilliseconds(),s=Math.floor(i*Math.pow(10,o-3));return Oe(s,n.length)}};const ao=e5;var hr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},t5={G:function(e,n,o){var i=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(i,{width:"abbreviated"});case"GGGGG":return o.era(i,{width:"narrow"});case"GGGG":default:return o.era(i,{width:"wide"})}},y:function(e,n,o){if(n==="yo"){var i=e.getUTCFullYear(),s=i>0?i:1-i;return o.ordinalNumber(s,{unit:"year"})}return ao.y(e,n)},Y:function(e,n,o,i){var s=Mp(e,i),a=s>0?s:1-s;if(n==="YY"){var l=a%100;return Oe(l,2)}return n==="Yo"?o.ordinalNumber(a,{unit:"year"}):Oe(a,n.length)},R:function(e,n){var o=Bp(e);return Oe(o,n.length)},u:function(e,n){var o=e.getUTCFullYear();return Oe(o,n.length)},Q:function(e,n,o){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Oe(i,2);case"Qo":return o.ordinalNumber(i,{unit:"quarter"});case"QQQ":return o.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,n,o){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Oe(i,2);case"qo":return o.ordinalNumber(i,{unit:"quarter"});case"qqq":return o.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,n,o){var i=e.getUTCMonth();switch(n){case"M":case"MM":return ao.M(e,n);case"Mo":return o.ordinalNumber(i+1,{unit:"month"});case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(i,{width:"wide",context:"formatting"})}},L:function(e,n,o){var i=e.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Oe(i+1,2);case"Lo":return o.ordinalNumber(i+1,{unit:"month"});case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(i,{width:"wide",context:"standalone"})}},w:function(e,n,o,i){var s=Q3(e,i);return n==="wo"?o.ordinalNumber(s,{unit:"week"}):Oe(s,n.length)},I:function(e,n,o){var i=Y3(e);return n==="Io"?o.ordinalNumber(i,{unit:"week"}):Oe(i,n.length)},d:function(e,n,o){return n==="do"?o.ordinalNumber(e.getUTCDate(),{unit:"date"}):ao.d(e,n)},D:function(e,n,o){var i=Z3(e);return n==="Do"?o.ordinalNumber(i,{unit:"dayOfYear"}):Oe(i,n.length)},E:function(e,n,o){var i=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(i,{width:"short",context:"formatting"});case"EEEE":default:return o.day(i,{width:"wide",context:"formatting"})}},e:function(e,n,o,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Oe(a,2);case"eo":return o.ordinalNumber(a,{unit:"day"});case"eee":return o.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(s,{width:"short",context:"formatting"});case"eeee":default:return o.day(s,{width:"wide",context:"formatting"})}},c:function(e,n,o,i){var s=e.getUTCDay(),a=(s-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Oe(a,n.length);case"co":return o.ordinalNumber(a,{unit:"day"});case"ccc":return o.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(s,{width:"narrow",context:"standalone"});case"cccccc":return o.day(s,{width:"short",context:"standalone"});case"cccc":default:return o.day(s,{width:"wide",context:"standalone"})}},i:function(e,n,o){var i=e.getUTCDay(),s=i===0?7:i;switch(n){case"i":return String(s);case"ii":return Oe(s,n.length);case"io":return o.ordinalNumber(s,{unit:"day"});case"iii":return o.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(i,{width:"short",context:"formatting"});case"iiii":default:return o.day(i,{width:"wide",context:"formatting"})}},a:function(e,n,o){var i=e.getUTCHours(),s=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,n,o){var i=e.getUTCHours(),s;switch(i===12?s=hr.noon:i===0?s=hr.midnight:s=i/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,n,o){var i=e.getUTCHours(),s;switch(i>=17?s=hr.evening:i>=12?s=hr.afternoon:i>=4?s=hr.morning:s=hr.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,n,o){if(n==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),o.ordinalNumber(i,{unit:"hour"})}return ao.h(e,n)},H:function(e,n,o){return n==="Ho"?o.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ao.H(e,n)},K:function(e,n,o){var i=e.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},k:function(e,n,o){var i=e.getUTCHours();return i===0&&(i=24),n==="ko"?o.ordinalNumber(i,{unit:"hour"}):Oe(i,n.length)},m:function(e,n,o){return n==="mo"?o.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ao.m(e,n)},s:function(e,n,o){return n==="so"?o.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ao.s(e,n)},S:function(e,n){return ao.S(e,n)},X:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Ad(a);case"XXXX":case"XX":return Oo(a);case"XXXXX":case"XXX":default:return Oo(a,":")}},x:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"x":return Ad(a);case"xxxx":case"xx":return Oo(a);case"xxxxx":case"xxx":default:return Oo(a,":")}},O:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+xd(a,":");case"OOOO":default:return"GMT"+Oo(a,":")}},z:function(e,n,o,i){var s=i._originalDate||e,a=s.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+xd(a,":");case"zzzz":default:return"GMT"+Oo(a,":")}},t:function(e,n,o,i){var s=i._originalDate||e,a=Math.floor(s.getTime()/1e3);return Oe(a,n.length)},T:function(e,n,o,i){var s=i._originalDate||e,a=s.getTime();return Oe(a,n.length)}};function xd(t,e){var n=t>0?"-":"+",o=Math.abs(t),i=Math.floor(o/60),s=o%60;if(s===0)return n+String(i);var a=e||"";return n+String(i)+a+Oe(s,2)}function Ad(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Oe(Math.abs(t)/60,2)}return Oo(t,e)}function Oo(t,e){var n=e||"",o=t>0?"-":"+",i=Math.abs(t),s=Oe(Math.floor(i/60),2),a=Oe(i%60,2);return o+s+n+a}const n5=t5;var Td=function(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},Lp=function(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},o5=function(e,n){var o=e.match(/(P+)(p+)?/)||[],i=o[1],s=o[2];if(!s)return Td(e,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Td(i,n)).replace("{{time}}",Lp(s,n))},r5={p:Lp,P:o5};const i5=r5;var s5=["D","DD"],a5=["YY","YYYY"];function l5(t){return s5.indexOf(t)!==-1}function c5(t){return a5.indexOf(t)!==-1}function Nd(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var u5={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},d5=function(e,n,o){var i,s=u5[e];return typeof s=="string"?i=s:n===1?i=s.one:i=s.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+i:i+" ago":i};const f5=d5;function kl(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,o=t.formats[n]||t.formats[t.defaultWidth];return o}}var p5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},m5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},h5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g5={date:kl({formats:p5,defaultWidth:"full"}),time:kl({formats:m5,defaultWidth:"full"}),dateTime:kl({formats:h5,defaultWidth:"full"})};const v5=g5;var y5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},_5=function(e,n,o,i){return y5[e]};const C5=_5;function fi(t){return function(e,n){var o=n!=null&&n.context?String(n.context):"standalone",i;if(o==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=t.formattingValues[a]||t.formattingValues[s]}else{var l=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[c]||t.values[l]}var u=t.argumentCallback?t.argumentCallback(e):e;return i[u]}}var b5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},k5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},w5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},E5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},S5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},x5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},A5=function(e,n){var o=Number(e),i=o%100;if(i>20||i<10)switch(i%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},T5={ordinalNumber:A5,era:fi({values:b5,defaultWidth:"wide"}),quarter:fi({values:k5,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:fi({values:w5,defaultWidth:"wide"}),day:fi({values:E5,defaultWidth:"wide"}),dayPeriod:fi({values:S5,defaultWidth:"wide",formattingValues:x5,defaultFormattingWidth:"wide"})};const N5=T5;function pi(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,i=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;var a=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?$5(l,function(p){return p.test(a)}):D5(l,function(p){return p.test(a)}),u;u=t.valueCallback?t.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;var d=e.slice(a.length);return{value:u,rest:d}}}function D5(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function $5(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function B5(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.match(t.matchPattern);if(!o)return null;var i=o[0],s=e.match(t.parsePattern);if(!s)return null;var a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var l=e.slice(i.length);return{value:a,rest:l}}}var M5=/^(\d+)(th|st|nd|rd)?/i,L5=/\d+/i,O5={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},V5={any:[/^b/i,/^(a|c)/i]},I5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},P5={any:[/1/i,/2/i,/3/i,/4/i]},F5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},R5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},z5={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},U5={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},H5={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},q5={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},j5={ordinalNumber:B5({matchPattern:M5,parsePattern:L5,valueCallback:function(e){return parseInt(e,10)}}),era:pi({matchPatterns:O5,defaultMatchWidth:"wide",parsePatterns:V5,defaultParseWidth:"any"}),quarter:pi({matchPatterns:I5,defaultMatchWidth:"wide",parsePatterns:P5,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:pi({matchPatterns:F5,defaultMatchWidth:"wide",parsePatterns:R5,defaultParseWidth:"any"}),day:pi({matchPatterns:z5,defaultMatchWidth:"wide",parsePatterns:U5,defaultParseWidth:"any"}),dayPeriod:pi({matchPatterns:H5,defaultMatchWidth:"any",parsePatterns:q5,defaultParseWidth:"any"})};const W5=j5;var Z5={code:"en-US",formatDistance:f5,formatLong:v5,formatRelative:C5,localize:N5,match:W5,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Op=Z5;var K5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,G5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Y5=/^'([^]*?)'?$/,J5=/''/g,X5=/[a-zA-Z]/;function Vp(t,e,n){var o,i,s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b;nt(2,arguments);var w=String(e),k=Qi(),A=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:k.locale)!==null&&o!==void 0?o:Op,S=Gn((s=(a=(l=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&l!==void 0?l:k.firstWeekContainsDate)!==null&&a!==void 0?a:(p=k.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=Gn((m=(h=(v=(C=n==null?void 0:n.weekStartsOn)!==null&&C!==void 0?C:n==null||(y=n.locale)===null||y===void 0||(g=y.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&v!==void 0?v:k.weekStartsOn)!==null&&h!==void 0?h:(_=k.locale)===null||_===void 0||(b=_.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&m!==void 0?m:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var D=Tt(t);if(!$p(D))throw new RangeError("Invalid time value");var V=Fi(D),T=dc(D,V),M={firstWeekContainsDate:S,weekStartsOn:E,locale:A,_originalDate:D},x=w.match(G5).map(function($){var B=$[0];if(B==="p"||B==="P"){var q=i5[B];return q($,A.formatLong)}return $}).join("").match(K5).map(function($){if($==="''")return"'";var B=$[0];if(B==="'")return Q5($);var q=n5[B];if(q)return!(n!=null&&n.useAdditionalWeekYearTokens)&&c5($)&&Nd($,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&l5($)&&Nd($,e,String(t)),q(T,$,A.localize,M);if(B.match(X5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");return $}).join("");return x}function Q5(t){var e=t.match(Y5);return e?e[1].replace(J5,"'"):t}function eC(t,e,n){var o,i,s,a,l,c,u,d,p,f;nt(2,arguments);var m=Tt(t),h=Tt(e),v=Qi(),C=(o=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:v.locale)!==null&&o!==void 0?o:Op,y=Gn((s=(a=(l=(c=n==null?void 0:n.weekStartsOn)!==null&&c!==void 0?c:n==null||(u=n.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&l!==void 0?l:v.weekStartsOn)!==null&&a!==void 0?a:(p=v.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&s!==void 0?s:0);if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");if(!C.formatRelative)throw new RangeError("locale must contain formatRelative property");var g=H3(m,h);if(isNaN(g))throw new RangeError("Invalid time value");var _;g<-6?_="other":g<-1?_="lastWeek":g<0?_="yesterday":g<1?_="today":g<2?_="tomorrow":g<7?_="nextWeek":_="other";var b=dc(m,Fi(m)),w=dc(h,Fi(h)),k=C.formatRelative(_,b,w,{locale:C,weekStartsOn:y});return Vp(m,k,{locale:C,weekStartsOn:y})}function Ri(t,e){var n;nt(1,arguments);var o=Gn((n=e==null?void 0:e.additionalDigits)!==null&&n!==void 0?n:2);if(o!==2&&o!==1&&o!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=rC(t),s;if(i.date){var a=iC(i.date,o);s=sC(a.restDateString,a.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);var l=s.getTime(),c=0,u;if(i.time&&(c=aC(i.time),isNaN(c)))return new Date(NaN);if(i.timezone){if(u=lC(i.timezone),isNaN(u))return new Date(NaN)}else{var d=new Date(l+c),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return new Date(l+c+u)}var xs={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},tC=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,nC=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,oC=/^([+-])(\d{2})(?::?(\d{2}))?$/;function rC(t){var e={},n=t.split(xs.dateTimeDelimiter),o;if(n.length>2)return e;if(/:/.test(n[0])?o=n[0]:(e.date=n[0],o=n[1],xs.timeZoneDelimiter.test(e.date)&&(e.date=t.split(xs.timeZoneDelimiter)[0],o=t.substr(e.date.length,t.length))),o){var i=xs.timezone.exec(o);i?(e.time=o.replace(i[1],""),e.timezone=i[1]):e.time=o}return e}function iC(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),o=t.match(n);if(!o)return{year:NaN,restDateString:""};var i=o[1]?parseInt(o[1]):null,s=o[2]?parseInt(o[2]):null;return{year:s===null?i:s*100,restDateString:t.slice((o[1]||o[2]).length)}}function sC(t,e){if(e===null)return new Date(NaN);var n=t.match(tC);if(!n)return new Date(NaN);var o=!!n[4],i=mi(n[1]),s=mi(n[2])-1,a=mi(n[3]),l=mi(n[4]),c=mi(n[5])-1;if(o)return pC(e,l,c)?cC(e,l,c):new Date(NaN);var u=new Date(0);return!dC(e,s,a)||!fC(e,i)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(i,a)),u)}function mi(t){return t?parseInt(t):1}function aC(t){var e=t.match(nC);if(!e)return NaN;var n=wl(e[1]),o=wl(e[2]),i=wl(e[3]);return mC(n,o,i)?n*Dp+o*Np+i*1e3:NaN}function wl(t){return t&&parseFloat(t.replace(",","."))||0}function lC(t){if(t==="Z")return 0;var e=t.match(oC);if(!e)return 0;var n=e[1]==="+"?-1:1,o=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return hC(o,i)?n*(o*Dp+i*Np):NaN}function cC(t,e,n){var o=new Date(0);o.setUTCFullYear(t,0,4);var i=o.getUTCDay()||7,s=(e-1)*7+n+1-i;return o.setUTCDate(o.getUTCDate()+s),o}var uC=[31,null,31,30,31,30,31,31,30,31,30,31];function Ip(t){return t%400===0||t%4===0&&t%100!==0}function dC(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(uC[e]||(Ip(t)?29:28))}function fC(t,e){return e>=1&&e<=(Ip(t)?366:365)}function pC(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function mC(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function hC(t,e){return e>=0&&e<=59}var $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gC(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function vC(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){if(this instanceof o){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(e,i);return new s}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:function(){return t[o]}})}),n}var Xe={},Pp={},hi={},es={},jr={},Da={};Object.defineProperty(Da,"__esModule",{value:!0});Da.lexoHelper=void 0;Da.lexoHelper={arrayCopy:yC};function yC(t,e,n,o,i){let s=o;const a=e+i;for(let l=e;l<a;l++)n[s]=t[l],++s}var ts={};Object.defineProperty(ts,"__esModule",{value:!0});class _C{constructor(e=""){this.str=e}get length(){return this.str.length}set length(e){this.str=this.str.substring(0,e)}append(e){return this.str=this.str+e,this}remove(e,n){return this.str=this.str.substr(0,e)+this.str.substr(e+n),this}insert(e,n){return this.str=this.str.substr(0,e)+n+this.str.substr(e),this}toString(){return this.str}}ts.default=_C;Object.defineProperty(jr,"__esModule",{value:!0});jr.LexoInteger=void 0;const As=Da,CC=ts;class ye{constructor(e,n,o){this.sys=e,this.sign=n,this.mag=o}static parse(e,n){let o=e,i=1;e.indexOf(n.getPositiveChar())===0?o=e.substring(1):e.indexOf(n.getNegativeChar())===0&&(o=e.substring(1),i=-1);const s=new Array(o.length);let a=s.length-1;for(let l=0;a>=0;++l)s[l]=n.toDigit(o.charAt(a)),--a;return ye.make(n,i,s)}static zero(e){return new ye(e,0,ye.ZERO_MAG)}static one(e){return ye.make(e,1,ye.ONE_MAG)}static make(e,n,o){let i;for(i=o.length;i>0&&o[i-1]===0;--i);if(i===0)return ye.zero(e);if(i===o.length)return new ye(e,n,o);const s=new Array(i).fill(0);return As.lexoHelper.arrayCopy(o,0,s,0,i),new ye(e,n,s)}static add(e,n,o){const i=Math.max(n.length,o.length),s=new Array(i).fill(0);let a=0;for(let l=0;l<i;++l){const c=l<n.length?n[l]:0,u=l<o.length?o[l]:0;let d=c+u+a;for(a=0;d>=e.getBase();d-=e.getBase())++a;s[l]=d}return ye.extendWithCarry(s,a)}static extendWithCarry(e,n){if(n>0){const o=new Array(e.length+1).fill(0);return As.lexoHelper.arrayCopy(e,0,o,0,e.length),o[o.length-1]=n,o}return e}static subtract(e,n,o){const i=ye.complement(e,o,n.length),s=ye.add(e,n,i);return s[s.length-1]=0,ye.add(e,s,ye.ONE_MAG)}static multiply(e,n,o){const i=new Array(n.length+o.length).fill(0);for(let s=0;s<n.length;++s)for(let a=0;a<o.length;++a){const l=s+a;for(i[l]+=n[s]*o[a];i[l]>=e.getBase();i[l]-=e.getBase())++i[l+1]}return i}static complement(e,n,o){if(o<=0)throw new Error("Expected at least 1 digit");const i=new Array(o).fill(e.getBase()-1);for(let s=0;s<n.length;++s)i[s]=e.getBase()-1-n[s];return i}static compare(e,n){if(e.length<n.length)return-1;if(e.length>n.length)return 1;for(let o=e.length-1;o>=0;--o){if(e[o]<n[o])return-1;if(e[o]>n[o])return 1}return 0}add(e){if(this.checkSystem(e),this.isZero())return e;if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.subtract(e).negate()):(o=e.negate(),this.subtract(o))}const n=ye.add(this.sys,this.mag,e.mag);return ye.make(this.sys,this.sign,n)}subtract(e){if(this.checkSystem(e),this.isZero())return e.negate();if(e.isZero())return this;if(this.sign!==e.sign){let o;return this.sign===-1?(o=this.negate(),o.add(e).negate()):(o=e.negate(),this.add(o))}const n=ye.compare(this.mag,e.mag);return n===0?ye.zero(this.sys):n<0?ye.make(this.sys,this.sign===-1?1:-1,ye.subtract(this.sys,e.mag,this.mag)):ye.make(this.sys,this.sign===-1?-1:1,ye.subtract(this.sys,this.mag,e.mag))}multiply(e){if(this.checkSystem(e),this.isZero())return this;if(e.isZero())return e;if(this.isOneish())return this.sign===e.sign?ye.make(this.sys,1,e.mag):ye.make(this.sys,-1,e.mag);if(e.isOneish())return this.sign===e.sign?ye.make(this.sys,1,this.mag):ye.make(this.sys,-1,this.mag);const n=ye.multiply(this.sys,this.mag,e.mag);return this.sign===e.sign?ye.make(this.sys,1,n):ye.make(this.sys,-1,n)}negate(){return this.isZero()?this:ye.make(this.sys,this.sign===1?-1:1,this.mag)}shiftLeft(e=1){if(e===0)return this;if(e<0)return this.shiftRight(Math.abs(e));const n=new Array(this.mag.length+e).fill(0);return As.lexoHelper.arrayCopy(this.mag,0,n,e,this.mag.length),ye.make(this.sys,this.sign,n)}shiftRight(e=1){if(this.mag.length-e<=0)return ye.zero(this.sys);const n=new Array(this.mag.length-e).fill(0);return As.lexoHelper.arrayCopy(this.mag,e,n,0,n.length),ye.make(this.sys,this.sign,n)}complement(){return this.complementDigits(this.mag.length)}complementDigits(e){return ye.make(this.sys,this.sign,ye.complement(this.sys,this.mag,e))}isZero(){return this.sign===0&&this.mag.length===1&&this.mag[0]===0}isOne(){return this.sign===1&&this.mag.length===1&&this.mag[0]===1}getMag(e){return this.mag[e]}compareTo(e){if(this===e)return 0;if(!e)return 1;if(this.sign===-1){if(e.sign===-1){const n=ye.compare(this.mag,e.mag);return n===-1?1:n===1?-1:0}return-1}return this.sign===1?e.sign===1?ye.compare(this.mag,e.mag):1:e.sign===-1?1:e.sign===1?-1:0}getSystem(){return this.sys}format(){if(this.isZero())return""+this.sys.toChar(0);const e=new CC.default,n=this.mag,o=n.length;for(let i=0;i<o;++i){const s=n[i];e.insert(0,this.sys.toChar(s))}return this.sign===-1&&e.insert(0,this.sys.getNegativeChar()),e.toString()}equals(e){return this===e?!0:e?this.sys.getBase()===e.sys.getBase()&&this.compareTo(e)===0:!1}toString(){return this.format()}isOneish(){return this.mag.length===1&&this.mag[0]===1}checkSystem(e){if(this.sys.getBase()!==e.sys.getBase())throw new Error("Expected numbers of same numeral sys")}}jr.LexoInteger=ye;ye.ZERO_MAG=[0];ye.ONE_MAG=[1];ye.NEGATIVE_SIGN=-1;ye.ZERO_SIGN=0;ye.POSITIVE_SIGN=1;Object.defineProperty(es,"__esModule",{value:!0});es.LexoDecimal=void 0;const gi=jr,bC=ts;class Zt{constructor(e,n){this.mag=e,this.sig=n}static half(e){const n=e.getBase()/2|0;return Zt.make(gi.LexoInteger.make(e,1,[n]),1)}static parse(e,n){const o=e.indexOf(n.getRadixPointChar());if(e.lastIndexOf(n.getRadixPointChar())!==o)throw new Error("More than one "+n.getRadixPointChar());if(o<0)return Zt.make(gi.LexoInteger.parse(e,n),0);const i=e.substring(0,o)+e.substring(o+1);return Zt.make(gi.LexoInteger.parse(i,n),e.length-1-o)}static from(e){return Zt.make(e,0)}static make(e,n){if(e.isZero())return new Zt(e,0);let o=0;for(let a=0;a<n&&e.getMag(a)===0;++a)++o;const i=e.shiftRight(o),s=n-o;return new Zt(i,s)}getSystem(){return this.mag.getSystem()}add(e){let n=this.mag,o=this.sig,i=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)i=i.shiftLeft(),++s;return Zt.make(n.add(i),o)}subtract(e){let n=this.mag,o=this.sig,i=e.mag,s;for(s=e.sig;o<s;++o)n=n.shiftLeft();for(;o>s;)i=i.shiftLeft(),++s;return Zt.make(n.subtract(i),o)}multiply(e){return Zt.make(this.mag.multiply(e.mag),this.sig+e.sig)}floor(){return this.mag.shiftRight(this.sig)}ceil(){if(this.isExact())return this.mag;const e=this.floor();return e.add(gi.LexoInteger.one(e.getSystem()))}isExact(){if(this.sig===0)return!0;for(let e=0;e<this.sig;++e)if(this.mag.getMag(e)!==0)return!1;return!0}getScale(){return this.sig}setScale(e,n=!1){if(e>=this.sig)return this;e<0&&(e=0);const o=this.sig-e;let i=this.mag.shiftRight(o);return n&&(i=i.add(gi.LexoInteger.one(i.getSystem()))),Zt.make(i,e)}compareTo(e){if(this===e)return 0;if(!e)return 1;let n=this.mag,o=e.mag;return this.sig>e.sig?o=o.shiftLeft(this.sig-e.sig):this.sig<e.sig&&(n=n.shiftLeft(e.sig-this.sig)),n.compareTo(o)}format(){const e=this.mag.format();if(this.sig===0)return e;const n=new bC.default(e),o=n[0],i=o===this.mag.getSystem().getPositiveChar()||o===this.mag.getSystem().getNegativeChar();for(i&&n.remove(0,1);n.length<this.sig+1;)n.insert(0,this.mag.getSystem().toChar(0));return n.insert(n.length-this.sig,this.mag.getSystem().getRadixPointChar()),n.length-this.sig===0&&n.insert(0,this.mag.getSystem().toChar(0)),i&&n.insert(0,o),n.toString()}equals(e){return this===e?!0:e?this.mag.equals(e.mag)&&this.sig===e.sig:!1}toString(){return this.format()}}es.LexoDecimal=Zt;var Ts={},Dd;function Fp(){if(Dd)return Ts;Dd=1,Object.defineProperty(Ts,"__esModule",{value:!0});const t=jr,e=zp();class n{constructor(i){this.value=t.LexoInteger.parse(i,e.LexoRank.NUMERAL_SYSTEM)}static get BUCKET_0(){return this._BUCKET_0||(this._BUCKET_0=new n("0")),this._BUCKET_0}static get BUCKET_1(){return this._BUCKET_1||(this._BUCKET_1=new n("1")),this._BUCKET_1}static get BUCKET_2(){return this._BUCKET_2||(this._BUCKET_2=new n("2")),this._BUCKET_2}static get VALUES(){return this._VALUES||(this._VALUES=[n.BUCKET_0,n.BUCKET_1,n.BUCKET_2]),this._VALUES}static max(){return n.VALUES[n.VALUES.length-1]}static from(i){const s=t.LexoInteger.parse(i,e.LexoRank.NUMERAL_SYSTEM),a=n.VALUES,l=a.length;for(let c=0;c<l;++c){const u=a[c];if(u.value.equals(s))return u}throw new Error("Unknown bucket: "+i)}static resolve(i){const s=n.VALUES,a=s.length;for(let l=0;l<a;++l){const c=s[l];if(c.equals(n.from(i.toString())))return c}throw new Error("No bucket found with id "+i)}format(){return this.value.format()}next(){return this.equals(n.BUCKET_0)?n.BUCKET_1:this.equals(n.BUCKET_1)?n.BUCKET_2:this.equals(n.BUCKET_2)?n.BUCKET_0:n.BUCKET_2}prev(){return this.equals(n.BUCKET_0)?n.BUCKET_2:this.equals(n.BUCKET_1)?n.BUCKET_0:this.equals(n.BUCKET_2)?n.BUCKET_1:n.BUCKET_0}equals(i){return this===i?!0:i?this.value.equals(i.value):!1}}return Ts.default=n,Ts}var eu={},Rp={};Object.defineProperty(Rp,"__esModule",{value:!0});var $a={};Object.defineProperty($a,"__esModule",{value:!0});$a.LexoNumeralSystem10=void 0;class kC{getBase(){return 10}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return"."}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;throw new Error("Not valid digit: "+e)}toChar(e){return String.fromCharCode(e+48)}}$a.LexoNumeralSystem10=kC;var Ba={};Object.defineProperty(Ba,"__esModule",{value:!0});Ba.LexoNumeralSystem36=void 0;class wC{constructor(){this.DIGITS="0123456789abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 36}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+10;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Ba.LexoNumeralSystem36=wC;var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0});Ma.LexoNumeralSystem64=void 0;class EC{constructor(){this.DIGITS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("")}getBase(){return 64}getPositiveChar(){return"+"}getNegativeChar(){return"-"}getRadixPointChar(){return":"}toDigit(e){if(e>="0"&&e<="9")return e.charCodeAt(0)-48;if(e>="A"&&e<="Z")return e.charCodeAt(0)-65+10;if(e==="^")return 36;if(e==="_")return 37;if(e>="a"&&e<="z")return e.charCodeAt(0)-97+38;throw new Error("Not valid digit: "+e)}toChar(e){return this.DIGITS[e]}}Ma.LexoNumeralSystem64=EC;(function(t){var e=$t&&$t.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=$t&&$t.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Rp,t),n($a,t),n(Ba,t),n(Ma,t)})(eu);var $d;function zp(){if($d)return hi;$d=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.LexoRank=void 0;const t=es,e=Fp(),n=ts,o=eu;class i{constructor(a,l){this.value=a.format()+"|"+i.formatDecimal(l),this.bucket=a,this.decimal=l}static get NUMERAL_SYSTEM(){return this._NUMERAL_SYSTEM||(this._NUMERAL_SYSTEM=new o.LexoNumeralSystem36),this._NUMERAL_SYSTEM}static get ZERO_DECIMAL(){return this._ZERO_DECIMAL||(this._ZERO_DECIMAL=t.LexoDecimal.parse("0",i.NUMERAL_SYSTEM)),this._ZERO_DECIMAL}static get ONE_DECIMAL(){return this._ONE_DECIMAL||(this._ONE_DECIMAL=t.LexoDecimal.parse("1",i.NUMERAL_SYSTEM)),this._ONE_DECIMAL}static get EIGHT_DECIMAL(){return this._EIGHT_DECIMAL||(this._EIGHT_DECIMAL=t.LexoDecimal.parse("8",i.NUMERAL_SYSTEM)),this._EIGHT_DECIMAL}static get MIN_DECIMAL(){return this._MIN_DECIMAL||(this._MIN_DECIMAL=i.ZERO_DECIMAL),this._MIN_DECIMAL}static get MAX_DECIMAL(){return this._MAX_DECIMAL||(this._MAX_DECIMAL=t.LexoDecimal.parse("1000000",i.NUMERAL_SYSTEM).subtract(i.ONE_DECIMAL)),this._MAX_DECIMAL}static get MID_DECIMAL(){return this._MID_DECIMAL||(this._MID_DECIMAL=i.between(i.MIN_DECIMAL,i.MAX_DECIMAL)),this._MID_DECIMAL}static get INITIAL_MIN_DECIMAL(){return this._INITIAL_MIN_DECIMAL||(this._INITIAL_MIN_DECIMAL=t.LexoDecimal.parse("100000",i.NUMERAL_SYSTEM)),this._INITIAL_MIN_DECIMAL}static get INITIAL_MAX_DECIMAL(){return this._INITIAL_MAX_DECIMAL||(this._INITIAL_MAX_DECIMAL=t.LexoDecimal.parse(i.NUMERAL_SYSTEM.toChar(i.NUMERAL_SYSTEM.getBase()-2)+"00000",i.NUMERAL_SYSTEM)),this._INITIAL_MAX_DECIMAL}static min(){return i.from(e.default.BUCKET_0,i.MIN_DECIMAL)}static middle(){const a=i.min();return a.between(i.max(a.bucket))}static max(a=e.default.BUCKET_0){return i.from(a,i.MAX_DECIMAL)}static initial(a){return a===e.default.BUCKET_0?i.from(a,i.INITIAL_MIN_DECIMAL):i.from(a,i.INITIAL_MAX_DECIMAL)}static between(a,l){if(a.getSystem().getBase()!==l.getSystem().getBase())throw new Error("Expected same system");let c=a,u=l,d;if(a.getScale()<l.getScale()){if(d=l.setScale(a.getScale(),!1),a.compareTo(d)>=0)return i.mid(a,l);u=d}if(a.getScale()>u.getScale()){if(d=a.setScale(u.getScale(),!0),d.compareTo(u)>=0)return i.mid(a,l);c=d}let p;for(let h=c.getScale();h>0;u=p){const v=h-1,C=c.setScale(v,!0);if(p=u.setScale(v,!1),C.compareTo(p)===0)return i.checkMid(a,l,C);if(C.compareTo(p)>0)break;h=v,c=C}let f=i.middleInternal(a,l,c,u),m;for(let h=f.getScale();h>0;h=m){m=h-1;const v=f.setScale(m);if(a.compareTo(v)>=0||v.compareTo(l)>=0)break;f=v}return f}static parse(a){const l=a.split("|"),c=e.default.from(l[0]),u=t.LexoDecimal.parse(l[1],i.NUMERAL_SYSTEM);return new i(c,u)}static from(a,l){if(l.getSystem().getBase()!==i.NUMERAL_SYSTEM.getBase())throw new Error("Expected different system");return new i(a,l)}static middleInternal(a,l,c,u){const d=i.mid(c,u);return i.checkMid(a,l,d)}static checkMid(a,l,c){return a.compareTo(c)>=0||c.compareTo(l)>=0?i.mid(a,l):c}static mid(a,l){const u=a.add(l).multiply(t.LexoDecimal.half(a.getSystem())),d=a.getScale()>l.getScale()?a.getScale():l.getScale();if(u.getScale()>d){const p=u.setScale(d,!1);if(p.compareTo(a)>0)return p;const f=u.setScale(d,!0);if(f.compareTo(l)<0)return f}return u}static formatDecimal(a){const l=a.format(),c=new n.default(l);let u=l.indexOf(i.NUMERAL_SYSTEM.getRadixPointChar());const d=i.NUMERAL_SYSTEM.toChar(0);for(u<0&&(u=l.length,c.append(i.NUMERAL_SYSTEM.getRadixPointChar()));u<6;)c.insert(0,d),++u;for(;c[c.length-1]===d;)c.length=c.length-1;return c.toString()}genPrev(){if(this.isMax())return new i(this.bucket,i.INITIAL_MAX_DECIMAL);const a=this.decimal.floor();let c=t.LexoDecimal.from(a).subtract(i.EIGHT_DECIMAL);return c.compareTo(i.MIN_DECIMAL)<=0&&(c=i.between(i.MIN_DECIMAL,this.decimal)),new i(this.bucket,c)}genNext(){if(this.isMin())return new i(this.bucket,i.INITIAL_MIN_DECIMAL);const a=this.decimal.ceil();let c=t.LexoDecimal.from(a).add(i.EIGHT_DECIMAL);return c.compareTo(i.MAX_DECIMAL)>=0&&(c=i.between(this.decimal,i.MAX_DECIMAL)),new i(this.bucket,c)}between(a){if(!this.bucket.equals(a.bucket))throw new Error("Between works only within the same bucket");const l=this.decimal.compareTo(a.decimal);if(l>0)return new i(this.bucket,i.between(a.decimal,this.decimal));if(l===0)throw new Error("Try to rank between issues with same rank this="+this+" other="+a+" this.decimal="+this.decimal+" other.decimal="+a.decimal);return new i(this.bucket,i.between(this.decimal,a.decimal))}getBucket(){return this.bucket}getDecimal(){return this.decimal}inNextBucket(){return i.from(this.bucket.next(),this.decimal)}inPrevBucket(){return i.from(this.bucket.prev(),this.decimal)}isMin(){return this.decimal.equals(i.MIN_DECIMAL)}isMax(){return this.decimal.equals(i.MAX_DECIMAL)}format(){return this.value}equals(a){return this===a?!0:a?this.value===a.value:!1}toString(){return this.value}compareTo(a){return this===a?0:a?this.value.localeCompare(a.value):1}}return hi.LexoRank=i,hi}(function(t){var e=$t&&$t.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=$t&&$t.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(zp(),t),n(Fp(),t),n(es,t),n(jr,t)})(Pp);(function(t){var e=$t&&$t.__createBinding||(Object.create?function(o,i,s,a){a===void 0&&(a=s);var l=Object.getOwnPropertyDescriptor(i,s);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,a,l)}:function(o,i,s,a){a===void 0&&(a=s),o[a]=i[s]}),n=$t&&$t.__exportStar||function(o,i){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,o,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(Pp,t),n(eu,t)})(Xe);const Ei=60,SC=8,Bd=Ei*SC;function La(t,e){if(!t)return"0m";if(e==="days"){const o=Math.floor(t/Bd),i=Math.floor(t%Bd/Ei);if(o>0&&i>0)return`${o}d ${i}h`;if(o>0)return`${o}d`;{const s=t%Ei;return s>0?`${i}h ${s}m`:`${i}h`}}else{const o=Math.floor(t/Ei),i=t%Ei;return o>0&&i>0?`${o}h ${i}m`:o>0?`${o}h`:`${i}m`}}function Up(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.activities)==null?void 0:o.length)??0)},0))??0}function xC(t){return(t==null?void 0:t.reduce((e,n)=>{var o;return e+(((o=n.milestones)==null?void 0:o.length)??0)},0))??0}function AC(t){return(t==null?void 0:t.reduce((e,n)=>{var i;const o=(i=n.milestones)!=null&&i.length?Up(n.milestones):0;return e+o},0))??0}function TC(t){return t.split(" ").slice(0,2).map(e=>e.charAt(0).toLocaleLowerCase()).join("")}function ns(t,e){if(t.moved)return Br(e,t.moved.newIndex)}function Br(t,e){if(e===0)if(t.length>1){const n=t[e+1];return Xe.LexoRank.parse(n.rank).genPrev().format()}else return Xe.LexoRank.middle().format();else if(e===t.length-1){const n=t[e-1];return Xe.LexoRank.parse(n.rank).genNext().format()}else{const n=t[e-1],o=t[e+1];return Xe.LexoRank.parse(o.rank).between(Xe.LexoRank.parse(n.rank)).format()}}function os(t){if(t.length===0)return Xe.LexoRank.middle().format();const e=t[0];return Xe.LexoRank.parse(e.rank).genPrev().format()}function tu(t,e){if(e===0)return[];let n;if(t.length===0)n=Xe.LexoRank.middle();else{const i=t[t.length-1];n=Xe.LexoRank.parse(i.rank).genNext()}const o=[];for(let i=0;i<e;i++)o.push(n.format()),n=n.genNext();return o}function Mr(t,e="dd/MM/yyyy"){if(!t)return"";const n=Ri(t);return $p(n)?Vp(n,e):""}function nu(t,e){return t.status.id===e.id}function NC(t,e){return t.activities.length===0?!1:!t.activities.some(n=>!nu(n,e))}function DC(t,e){return{...t,status:NC(t,e)?Pi.done:Pi.todo}}const Hp=t=>{const{firstName:e,lastName:n}=t||{};return`${e??""}${e?" ":""}${n??""}`};function $C(t,e){const n=t.replace("#",""),o=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),s=parseInt(n.slice(4,6),16);return`rgba(${o}, ${i}, ${s}, ${e})`}function BC(t,e=.15){var n;if(t.startsWith("#"))return $C(t,e);if(t.startsWith("rgba")){const o=(n=t.match(/rgba?\(([^)]+)\)/))==null?void 0:n[1].split(",").map(i=>i.trim());if(o&&o.length>=3){const[i,s,a]=o;return`rgba(${i}, ${s}, ${a}, ${e})`}}return t}function qp(t){return[t.firstName,t.lastName].filter(Boolean).join("_").replace(/\s+/g,"_")}function Md(t,e){const n=e.filter(i=>i.firstName||i.lastName).map(i=>({id:i.id,name:qp(i)})),o=Array.from(t.matchAll(/@([\p{L}\p{M}0-9_-]+)/gu)).map(i=>i[1]);return Array.from(new Set(n.filter(i=>o.includes(i.name)).map(i=>i.id)))}const MC=["title"],LC={key:0,className:"ao-avatar__initials"},OC=["src"],Xt=r.defineComponent({__name:"AoAvatar",props:{userName:{},avatarUrl:{},isClosable:{type:Boolean},size:{default:Na.MD},color:{default:"primary"}},emits:["close"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>[`ao-avatar--${n.color}`,...n.avatarUrl?["ao-avatar-img",`ao-avatar-img--${n.size}`]:["ao-avatar",`ao-avatar--${n.size}`]]),s=TC(n.userName),a=l=>{o("close",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",{role:"img",class:r.normalizeClass(i.value),title:t.userName},[t.avatarUrl?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",LC,r.toDisplayString(r.unref(s)),1)),t.avatarUrl?(r.openBlock(),r.createElementBlock("img",{key:1,className:"ao-avatar__image",src:t.avatarUrl},null,8,OC)):r.createCommentVNode("",!0),t.isClosable?(r.openBlock(),r.createBlock(de,{key:2,"icon-name":"CloseRounded",class:"ao-avatar__close",color:t.color,corners:"round",onClick:r.withModifiers(a,["stop"])},null,8,["color"])):r.createCommentVNode("",!0)],10,MC))}});const VC={class:"ao-card-template__subitems"},IC={class:"ao-card-template__subitem"},PC={class:"ao-card-template__subitem-number"},FC={class:"ao-card-template__subitem"},RC={class:"ao-card-template__subitem"},zC={class:"ao-card-template__body"},UC={class:"ao-card-template__col ao-card-template__col--phases"},HC={class:"ao-card-template__col-title"},qC={class:"ao-card-template__col-label"},jC={key:0,class:"ao-card-template__col-body ao-card-template__phases-list"},WC={class:"ao-card-template__footer"},ZC={key:0,class:"ao-card-template__col ao-card-template__col--updated-at"},KC={class:"ao-card-template__col-title"},GC={class:"ao-card-template__col-label"},YC={class:"ao-card-template__col-body"},JC={key:1,class:"ao-card-template__col ao-card-template__col--updated-by"},XC={class:"ao-card-template__col-title"},QC={class:"ao-card-template__col-label"},eb={class:"ao-card-template__col-body"},tb={class:"ao-card-template-item__secondary"},El=5,nb=r.defineComponent({__name:"AoCardTemplate",props:{id:{},title:{},activities:{},milestones:{},phases:{},updatedAt:{},updatedBy:{}},emits:["updateTitle","deleteItem"],setup(t,{emit:e}){const n=t,o=e,i=c=>{o("updateTitle",c)},s=(c,u)=>{o("deleteItem",c,u)},a=r.computed(()=>{var c;return((c=n.phases)==null?void 0:c.slice(0,El))??[]}),l=r.computed(()=>n.phases&&n.phases.length>El?n.phases.length-El:0);return(c,u)=>(r.openBlock(),r.createBlock(wp,{id:t.id,title:t.title,"is-draggable":!0,"onUpdate:title":i},r.createSlots({subtitle:r.withCtx(()=>[r.createElementVNode("ul",VC,[r.createElementVNode("li",IC,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",PC,r.toDisplayString(t.milestones),1)]),r.createElementVNode("li",FC,[r.createVNode(ke,{name:"TaskOutlineRounded",size:"sm"}),r.createElementVNode("span",RC,r.toDisplayString(t.activities),1)])])]),default:r.withCtx(()=>[r.createElementVNode("div",zC,[r.createElementVNode("div",UC,[r.createElementVNode("div",HC,[r.createVNode(ke,{name:"WaterfallChartRounded",size:"sm"}),r.createElementVNode("span",qC,r.toDisplayString(c.$t("template.phases.title")),1)]),t.phases?(r.openBlock(),r.createElementBlock("ul",jC,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,d=>(r.openBlock(),r.createBlock(Ii,{key:d.id,label:d.name||d.id,color:"primary",variant:"solid"},null,8,["label"]))),128)),l.value>0?(r.openBlock(),r.createBlock(Ii,{key:0,label:`+${l.value} more`,color:"primary-lighter",variant:"solid"},null,8,["label"])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)])])]),secondary:r.withCtx(()=>[r.createElementVNode("div",tb,[r.createVNode(de,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:u[0]||(u[0]=r.withModifiers(d=>s(t.id,t.title),["stop"]))})])]),_:2},[t.updatedBy||t.updatedAt?{name:"footer",fn:r.withCtx(()=>[r.createElementVNode("div",WC,[t.updatedAt?(r.openBlock(),r.createElementBlock("div",ZC,[r.createElementVNode("div",KC,[r.createElementVNode("span",GC,r.toDisplayString(c.$t("template.updatedAt.label")),1)]),r.createElementVNode("div",YC,[r.createElementVNode("span",null,r.toDisplayString(t.updatedAt),1)])])):r.createCommentVNode("",!0),t.updatedBy?(r.openBlock(),r.createElementBlock("div",JC,[r.createElementVNode("div",XC,[r.createElementVNode("span",QC,r.toDisplayString(c.$t("template.updatedBy.label")),1)]),r.createElementVNode("div",eb,[r.createVNode(Xt,{"user-name":t.updatedBy},null,8,["user-name"])])])):r.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["id","title"]))}});const ob={class:"ao-page-header"},rb={class:"ao-page-header-main"},ib={key:0,class:"ao-page-header-secondary"},rs=r.defineComponent({__name:"AoPageHeader",props:{canGoBack:{type:Boolean}},emits:["goBack"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",ob,[r.createElementVNode("div",rb,[t.canGoBack?(r.openBlock(),r.createBlock(de,{key:0,"icon-name":"ArrowBackRounded",variant:"ghost",onClick:n[0]||(n[0]=o=>e.$emit("goBack"))})):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"primary")]),e.$slots.secondary?(r.openBlock(),r.createElementBlock("div",ib,[r.renderSlot(e.$slots,"secondary")])):r.createCommentVNode("",!0)]))}});const sb=["type"],ab={key:0,class:"ao-button-card__label"},Eo=r.defineComponent({__name:"AoButtonCard",props:{label:{default:()=>""},iconName:{},iconPosition:{},type:{default:()=>"button"},color:{default:()=>Qc.BLACK},size:{default:()=>Na.MD},isLoading:{type:Boolean,default:()=>!1},corners:{default:()=>kp.ROUNDED}},setup(t){const e=t,n=r.computed(()=>e.size),o=r.computed(()=>e.isLoading?"Loading":e.iconName);return(i,s)=>(r.openBlock(),r.createElementBlock("button",{type:t.type,class:r.normalizeClass(["ao-button-card",`ao-button-card--${t.color}`,`ao-button-card--${t.corners}`,i.$attrs.disabled?"ao-button-card--is-disabled":""])},[r.renderSlot(i.$slots,"default",{},()=>[t.label?(r.openBlock(),r.createElementBlock("span",ab,r.toDisplayString(t.label),1)):r.createCommentVNode("",!0)]),o.value?(r.openBlock(),r.createBlock(ke,{key:0,name:o.value,class:"ao-button-card__icon",size:n.value},null,8,["name","size"])):r.createCommentVNode("",!0)],10,sb))}});const lb={class:"ao-card-template-item__footer"},cb={key:0,class:"ao-card-template-item__subitem"},ub={class:"ao-card-template-item__subitem-number"},db={class:"ao-card-template-item__secondary"},ou=r.defineComponent({__name:"AoCardTemplateItem",props:{milestones:{},activities:{},tasks:{},rules:{}},emits:["update:title","remove"],setup(t,{emit:e}){const n=e,o=l=>{n("update:title",l)},i=["milestones","activities","rules","tasks"],s={milestones:"MountainFlagOutlineRounded",activities:"TaskOutlineRounded",rules:"FlowsheetOutlineRounded",tasks:"ChecklistRounded"},a=()=>{n("remove")};return(l,c)=>(r.openBlock(),r.createBlock(wp,{"onUpdate:title":o},{footer:r.withCtx(()=>[r.createElementVNode("ul",lb,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(i,u=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:u},[l.$props[u]?(r.openBlock(),r.createElementBlock("li",cb,[r.createVNode(ke,{name:s[u],size:"sm"},null,8,["name"]),r.createElementVNode("span",ub,r.toDisplayString(l.$props[u]),1)])):r.createCommentVNode("",!0)],64))),64))])]),secondary:r.withCtx(()=>[r.createElementVNode("div",db,[r.createVNode(de,{"icon-name":"DeleteOutlineRounded",variant:"ghost",size:"md",corners:"round",onClick:r.withModifiers(a,["stop"])})])]),_:1}))}});const fb=r.defineComponent({__name:"AoCardTemplateItemPhase",props:{id:{},name:{},milestones:{}},setup(t){const e=t,n=r.computed(()=>{var i;return(i=e.milestones)==null?void 0:i.length}),o=r.computed(()=>e.milestones?Up(e.milestones):0);return(i,s)=>(r.openBlock(),r.createBlock(ou,r.mergeProps({id:t.id,title:t.name,activities:o.value,milestones:n.value},i.$attrs),{default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},16,["id","title","activities","milestones"]))}}),pb=r.defineComponent({__name:"AoCardTemplateItemMilestone",props:{activities:{}},setup(t){const e=t,n=r.computed(()=>{var o;return((o=e.activities)==null?void 0:o.length)||0});return(o,i)=>(r.openBlock(),r.createBlock(ou,{activities:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["activities"]))}}),mb={class:"ao-list__footer"},hb=r.defineComponent({__name:"AoTemplateDetailsMilestones",props:{templateId:{},milestoneId:{},phase:{}},emits:["addMilestone","updateMilestone","updatePhase","removeMilestone"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("addMilestone",{phaseId:n.phase.id})},s=c=>{o("removeMilestone",{phaseId:n.phase.id,id:c})},a=c=>{o("updateMilestone",c)},l=c=>{if(c.moved){const u=ns(c,n.phase.milestones);o("updateMilestone",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.phase?(r.openBlock(),r.createBlock(r.unref(Vn),{key:0,"model-value":t.phase.milestones,class:"ao-templates__list",title:c.$t("template.milestones.title"),handle:".ao-card__drag","item-key":"id",onChange:l},{header:r.withCtx(()=>[r.createVNode(ht,{title:"Milestones",level:3,class:"ao-list__title"})]),item:r.withCtx(({element:d})=>[(r.openBlock(),r.createBlock(pb,{id:d.id,key:d.id,title:d.name,activities:d.activities,"is-active":t.milestoneId===d.id,"is-draggable":!0,"onUpdate:title":p=>a({id:d.id,name:p}),onClick:p=>c.$router.push({params:{milestoneId:d.id}}),onRemove:()=>s(d.id)},null,8,["id","title","activities","is-active","onUpdate:title","onClick","onRemove"]))]),footer:r.withCtx(()=>[r.createElementVNode("div",mb,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.milestones.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),gb=r.defineComponent({__name:"AoCardTemplateItemActivity",props:{name:{},tasks:{}},setup(t){const e=t,n=r.computed(()=>{var o;return((o=e.tasks)==null?void 0:o.length)||0});return(o,i)=>(r.openBlock(),r.createBlock(ou,{tasks:n.value},{default:r.withCtx(()=>[r.renderSlot(o.$slots,"default")]),_:3},8,["tasks"]))}}),vb={class:"ao-list__footer"},yb=r.defineComponent({__name:"AoTemplateDetailsActivities",props:{templateId:{},phaseId:{},milestone:{},activityId:{}},emits:["addActivity","updateActivity","updateMilestone","removeActivity"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("addActivity",{milestoneId:n.milestone.id})},s=c=>{o("updateActivity",{...c})},a=c=>{o("removeActivity",{id:c})},l=c=>{if(c.moved){const u=ns(c,n.milestone.activities);o("updateActivity",{id:c.moved.element.id,rank:u})}};return(c,u)=>t.milestone?(r.openBlock(),r.createBlock(r.unref(Vn),{key:0,"model-value":t.milestone.activities,title:c.$t("template.activities.title"),class:"ao-templates__list",handle:".ao-card__drag","item-key":"id",onChange:l},{header:r.withCtx(()=>[r.createVNode(ht,{title:"Activities",level:3,class:"ao-list__title"})]),item:r.withCtx(({element:d})=>[(r.openBlock(),r.createBlock(gb,{id:d.id,key:d.id,title:d.name,tasks:d.tasks,"is-active":t.activityId===d.id,"is-draggable":!0,"onUpdate:title":p=>s({id:d.id,name:p}),onClick:p=>c.$router.push({params:{activityId:d.id}}),onRemove:()=>a(d.id)},null,8,["id","title","tasks","is-active","onUpdate:title","onClick","onRemove"]))]),footer:r.withCtx(()=>[r.createElementVNode("div",vb,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:c.$t("template.activities.add"),onClick:i},null,8,["label"])])]),_:1},8,["model-value","title"])):r.createCommentVNode("",!0)}}),_b={class:"ao-modal"},Cb={key:0,class:"ao-modal__header"},bb={class:"ao-modal__header-meta"},kb={class:"ao-modal__title-group"},wb={class:"ao-modal__body"},Eb={key:1,class:"ao-modal__footer"},Oa=r.defineComponent({__name:"AoModal",props:{size:{default:"md"}},emits:["close"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-modal__wrapper",`ao-modal__wrapper--${t.size}`])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:n[0]||(n[0]=o=>e.$emit("close"))}),r.createElementVNode("div",_b,[e.$slots.header?(r.openBlock(),r.createElementBlock("div",Cb,[r.createElementVNode("div",bb,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:n[1]||(n[1]=o=>e.$emit("close"))})]),r.createElementVNode("header",kb,[r.renderSlot(e.$slots,"header")])])):r.createCommentVNode("",!0),r.createElementVNode("div",wb,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",Eb,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])],2))}});const zi=Math.min,Kt=Math.max,ea=Math.round,Ns=Math.floor,_o=t=>({x:t,y:t}),Sb={left:"right",right:"left",bottom:"top",top:"bottom"},xb={start:"end",end:"start"};function ru(t,e){return typeof t=="function"?t(e):t}function Lr(t){return t.split("-")[0]}function Va(t){return t.split("-")[1]}function Ab(t){return t==="x"?"y":"x"}function jp(t){return t==="y"?"height":"width"}function iu(t){return["top","bottom"].includes(Lr(t))?"y":"x"}function Wp(t){return Ab(iu(t))}function Tb(t,e,n){n===void 0&&(n=!1);const o=Va(t),i=Wp(t),s=jp(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=ta(a)),[a,ta(a)]}function Nb(t){const e=ta(t);return[fc(t),e,fc(e)]}function fc(t){return t.replace(/start|end/g,e=>xb[e])}function Db(t,e,n){const o=["left","right"],i=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?s:a;default:return[]}}function $b(t,e,n,o){const i=Va(t);let s=Db(Lr(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(fc)))),s}function ta(t){return t.replace(/left|right|bottom|top/g,e=>Sb[e])}function Bb(t){return{top:0,right:0,bottom:0,left:0,...t}}function Mb(t){return typeof t!="number"?Bb(t):{top:t,right:t,bottom:t,left:t}}function na(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ld(t,e,n){let{reference:o,floating:i}=t;const s=iu(e),a=Wp(e),l=jp(a),c=Lr(e),u=s==="y",d=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,f=o[l]/2-i[l]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-i.width,y:p};break;default:m={x:o.x,y:o.y}}switch(Va(e)){case"start":m[a]-=f*(n&&u?-1:1);break;case"end":m[a]+=f*(n&&u?-1:1);break}return m}const Lb=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:p}=Ld(u,o,c),f=o,m={},h=0;for(let v=0;v<l.length;v++){const{name:C,fn:y}=l[v],{x:g,y:_,data:b,reset:w}=await y({x:d,y:p,initialPlacement:o,placement:f,strategy:i,middlewareData:m,rects:u,platform:a,elements:{reference:t,floating:e}});if(d=g??d,p=_??p,m={...m,[C]:{...m[C],...b}},w&&h<=50){h++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):w.rects),{x:d,y:p}=Ld(u,f,c)),v=-1;continue}}return{x:d,y:p,placement:f,strategy:i,middlewareData:m}};async function Zp(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:m=0}=ru(e,t),h=Mb(m),C=l[f?p==="floating"?"reference":"floating":p],y=na(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(C)))==null||n?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),g=p==="floating"?{...a.floating,x:o,y:i}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),b=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},w=na(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:_,strategy:c}):g);return{top:(y.top-w.top+h.top)/b.y,bottom:(w.bottom-y.bottom+h.bottom)/b.y,left:(y.left-w.left+h.left)/b.x,right:(w.right-y.right+h.right)/b.x}}const Ob=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...C}=ru(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Lr(i),g=Lr(l)===l,_=await(c.isRTL==null?void 0:c.isRTL(u.floating)),b=f||(g||!v?[ta(l)]:Nb(l));!f&&h!=="none"&&b.push(...$b(l,v,h,_));const w=[l,...b],k=await Zp(e,C),A=[];let S=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&A.push(k[y]),p){const T=Tb(i,a,_);A.push(k[T[0]],k[T[1]])}if(S=[...S,{placement:i,overflows:A}],!A.every(T=>T<=0)){var E,D;const T=(((E=s.flip)==null?void 0:E.index)||0)+1,M=w[T];if(M)return{data:{index:T,overflows:S},reset:{placement:M}};let x=(D=S.filter($=>$.overflows[0]<=0).sort(($,B)=>$.overflows[1]-B.overflows[1])[0])==null?void 0:D.placement;if(!x)switch(m){case"bestFit":{var V;const $=(V=S.map(B=>[B.placement,B.overflows.filter(q=>q>0).reduce((q,I)=>q+I,0)]).sort((B,q)=>B[1]-q[1])[0])==null?void 0:V[0];$&&(x=$);break}case"initialPlacement":x=l;break}if(i!==x)return{reset:{placement:x}}}return{}}}},Vb=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:i,elements:s}=e,{apply:a=()=>{},...l}=ru(t,e),c=await Zp(e,l),u=Lr(n),d=Va(n),p=iu(n)==="y",{width:f,height:m}=o.floating;let h,v;u==="top"||u==="bottom"?(h=u,v=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=u,h=d==="end"?"top":"bottom");const C=m-c[h],y=f-c[v],g=!e.middlewareData.shift;let _=C,b=y;if(p){const k=f-c.left-c.right;b=d||g?zi(y,k):k}else{const k=m-c.top-c.bottom;_=d||g?zi(C,k):k}if(g&&!d){const k=Kt(c.left,0),A=Kt(c.right,0),S=Kt(c.top,0),E=Kt(c.bottom,0);p?b=f-2*(k!==0||A!==0?k+A:Kt(c.left,c.right)):_=m-2*(S!==0||E!==0?S+E:Kt(c.top,c.bottom))}await a({...e,availableWidth:b,availableHeight:_});const w=await i.getDimensions(s.floating);return f!==w.width||m!==w.height?{reset:{rects:!0}}:{}}}};function Co(t){return Kp(t)?(t.nodeName||"").toLowerCase():"#document"}function Ut(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function eo(t){var e;return(e=(Kp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Kp(t){return t instanceof Node||t instanceof Ut(t).Node}function Yn(t){return t instanceof Element||t instanceof Ut(t).Element}function Bn(t){return t instanceof HTMLElement||t instanceof Ut(t).HTMLElement}function Od(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ut(t).ShadowRoot}function is(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=tn(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function Ib(t){return["table","td","th"].includes(Co(t))}function su(t){const e=au(),n=tn(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Pb(t){let e=Or(t);for(;Bn(e)&&!Ia(e);){if(su(e))return e;e=Or(e)}return null}function au(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ia(t){return["html","body","#document"].includes(Co(t))}function tn(t){return Ut(t).getComputedStyle(t)}function Pa(t){return Yn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Or(t){if(Co(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Od(t)&&t.host||eo(t);return Od(e)?e.host:e}function Gp(t){const e=Or(t);return Ia(e)?t.ownerDocument?t.ownerDocument.body:t.body:Bn(e)&&is(e)?e:Gp(e)}function Ui(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Gp(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=Ut(i);return s?e.concat(a,a.visualViewport||[],is(i)?i:[],a.frameElement&&n?Ui(a.frameElement):[]):e.concat(i,Ui(i))}function Yp(t){const e=tn(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=Bn(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,l=ea(n)!==s||ea(o)!==a;return l&&(n=s,o=a),{width:n,height:o,$:l}}function lu(t){return Yn(t)?t:t.contextElement}function Sr(t){const e=lu(t);if(!Bn(e))return _o(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Yp(e);let a=(s?ea(n.width):n.width)/o,l=(s?ea(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Fb=_o(0);function Jp(t){const e=Ut(t);return!au()||!e.visualViewport?Fb:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Rb(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ut(t)?!1:e}function Yo(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=lu(t);let a=_o(1);e&&(o?Yn(o)&&(a=Sr(o)):a=Sr(t));const l=Rb(s,n,o)?Jp(s):_o(0);let c=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(s){const f=Ut(s),m=o&&Yn(o)?Ut(o):o;let h=f.frameElement;for(;h&&o&&m!==f;){const v=Sr(h),C=h.getBoundingClientRect(),y=tn(h),g=C.left+(h.clientLeft+parseFloat(y.paddingLeft))*v.x,_=C.top+(h.clientTop+parseFloat(y.paddingTop))*v.y;c*=v.x,u*=v.y,d*=v.x,p*=v.y,c+=g,u+=_,h=Ut(h).frameElement}}return na({width:d,height:p,x:c,y:u})}function zb(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=Bn(n),s=eo(n);if(n===s)return e;let a={scrollLeft:0,scrollTop:0},l=_o(1);const c=_o(0);if((i||!i&&o!=="fixed")&&((Co(n)!=="body"||is(s))&&(a=Pa(n)),Bn(n))){const u=Yo(n);l=Sr(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-a.scrollLeft*l.x+c.x,y:e.y*l.y-a.scrollTop*l.y+c.y}}function Ub(t){return Array.from(t.getClientRects())}function Xp(t){return Yo(eo(t)).left+Pa(t).scrollLeft}function Hb(t){const e=eo(t),n=Pa(t),o=t.ownerDocument.body,i=Kt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=Kt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+Xp(t);const l=-n.scrollTop;return tn(o).direction==="rtl"&&(a+=Kt(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:l}}function qb(t,e){const n=Ut(t),o=eo(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;const u=au();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l,y:c}}function jb(t,e){const n=Yo(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=Bn(t)?Sr(t):_o(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,u=o*s.y;return{width:a,height:l,x:c,y:u}}function Vd(t,e,n){let o;if(e==="viewport")o=qb(t,n);else if(e==="document")o=Hb(eo(t));else if(Yn(e))o=jb(e,n);else{const i=Jp(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return na(o)}function Qp(t,e){const n=Or(t);return n===e||!Yn(n)||Ia(n)?!1:tn(n).position==="fixed"||Qp(n,e)}function Wb(t,e){const n=e.get(t);if(n)return n;let o=Ui(t,[],!1).filter(l=>Yn(l)&&Co(l)!=="body"),i=null;const s=tn(t).position==="fixed";let a=s?Or(t):t;for(;Yn(a)&&!Ia(a);){const l=tn(a),c=su(a);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||is(a)&&!c&&Qp(t,a))?o=o.filter(d=>d!==a):i=l,a=Or(a)}return e.set(t,o),o}function Zb(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?Wb(e,this._c):[].concat(n),o],l=a[0],c=a.reduce((u,d)=>{const p=Vd(e,d,i);return u.top=Kt(p.top,u.top),u.right=zi(p.right,u.right),u.bottom=zi(p.bottom,u.bottom),u.left=Kt(p.left,u.left),u},Vd(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Kb(t){return Yp(t)}function Gb(t,e,n){const o=Bn(e),i=eo(e),s=n==="fixed",a=Yo(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=_o(0);if(o||!o&&!s)if((Co(e)!=="body"||is(i))&&(l=Pa(e)),o){const u=Yo(e,!0,s,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=Xp(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Id(t,e){return!Bn(t)||tn(t).position==="fixed"?null:e?e(t):t.offsetParent}function em(t,e){const n=Ut(t);if(!Bn(t))return n;let o=Id(t,e);for(;o&&Ib(o)&&tn(o).position==="static";)o=Id(o,e);return o&&(Co(o)==="html"||Co(o)==="body"&&tn(o).position==="static"&&!su(o))?n:o||Pb(t)||n}const Yb=async function(t){let{reference:e,floating:n,strategy:o}=t;const i=this.getOffsetParent||em,s=this.getDimensions;return{reference:Gb(e,await i(n),o),floating:{x:0,y:0,...await s(n)}}};function Jb(t){return tn(t).direction==="rtl"}const Xb={convertOffsetParentRelativeRectToViewportRelativeRect:zb,getDocumentElement:eo,getClippingRect:Zb,getOffsetParent:em,getElementRects:Yb,getClientRects:Ub,getDimensions:Kb,getScale:Sr,isElement:Yn,isRTL:Jb};function Qb(t,e){let n=null,o;const i=eo(t);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:p,height:f}=t.getBoundingClientRect();if(l||e(),!p||!f)return;const m=Ns(d),h=Ns(i.clientWidth-(u+p)),v=Ns(i.clientHeight-(d+f)),C=Ns(u),g={rootMargin:-m+"px "+-h+"px "+-v+"px "+-C+"px",threshold:Kt(0,zi(1,c))||1};let _=!0;function b(w){const k=w[0].intersectionRatio;if(k!==c){if(!_)return a();k?a(!1,k):o=setTimeout(()=>{a(!1,1e-7)},100)}_=!1}try{n=new IntersectionObserver(b,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,g)}n.observe(t)}return a(!0),s}function e7(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=lu(t),d=i||s?[...u?Ui(u):[],...Ui(e)]:[];d.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const p=u&&l?Qb(u,n):null;let f=-1,m=null;a&&(m=new ResizeObserver(y=>{let[g]=y;g&&g.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),u&&!c&&m.observe(u),m.observe(e));let h,v=c?Yo(t):null;c&&C();function C(){const y=Yo(t);v&&(y.x!==v.x||y.y!==v.y||y.width!==v.width||y.height!==v.height)&&n(),v=y,h=requestAnimationFrame(C)}return n(),()=>{d.forEach(y=>{i&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),p&&p(),m&&m.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const t7=(t,e,n)=>{const o=new Map,i={platform:Xb,...n},s={...i.platform,_c:o};return Lb(t,e,{...i,platform:s})},n7=t=>{const e=r.ref(!1),n=r.ref(),o=r.ref(),i=r.ref(0);function s(){const p=r.unref(t.appendTo);return p?typeof p=="string"?document.getElementById(p)??document.body:p:document.getElementById("floatingElements")??document.body}const a=s(),l=r.ref(()=>{});function c(p){p.relatedTarget&&o.value&&o.value.contains(p.relatedTarget)||t.multiselect.value.deactivate()}function u(){const p=t.multiselect.value.$el,f=p.querySelector(".multiselect-dropdown");if(!f||!p||e.value===!0)return;o.value=f,n.value=p,getComputedStyle(f).getPropertyValue("display")==="none"&&(f.style.display="flex"),i.value=f.offsetHeight,f.style.removeProperty("display"),Object.assign(f.style,{position:"absolute",width:"max-content",top:0,left:0,right:"auto",bottom:"auto",transform:"none",marginTop:0}),a.appendChild(f),t.multiselect.value.handleFocusOut=c;const h=e7(n.value,o.value,d);l.value=()=>{o.value&&a.contains(o.value)&&a.removeChild(o.value),h()}}function d(){!o.value||!n.value||t7(n.value,o.value,{strategy:"absolute",placement:"bottom-start",middleware:[Ob({fallbackStrategy:"initialPlacement",fallbackPlacements:["top-start","bottom-start"]}),Vb({apply({availableWidth:p,availableHeight:f,elements:m,rects:h}){Object.assign(m.floating.style,{minHeight:`${i.value}px`,width:`${h.reference.width}px`,maxWidth:`${p}px`,maxHeight:`${f}px`})}})]}).then(({x:p,y:f})=>{Object.assign(o.value.style,{left:`${p}px`,top:`${f}px`})})}r.onMounted(()=>{u()}),r.onBeforeUnmount(()=>{l.value()}),r.onUnmounted(()=>{l.value()})};function En(t){return[null,void 0].indexOf(t)!==-1}function o7(t,e,n){const{object:o,valueProp:i,mode:s}=r.toRefs(t),a=r.getCurrentInstance().proxy,l=n.iv,c=(p,f=!0)=>{l.value=d(p);const m=u(p);e.emit("change",m,a),f&&(e.emit("input",m),e.emit("update:modelValue",m))},u=p=>o.value||En(p)?p:Array.isArray(p)?p.map(f=>f[i.value]):p[i.value],d=p=>En(p)?s.value==="single"?{}:[]:p;return{update:c}}function r7(t,e){const{value:n,modelValue:o,mode:i,valueProp:s}=r.toRefs(t),a=r.ref(i.value!=="single"?[]:{}),l=r.computed(()=>o&&o.value!==void 0?o.value:n.value),c=r.computed(()=>i.value==="single"?a.value[s.value]:a.value.map(d=>d[s.value])),u=r.computed(()=>i.value!=="single"?a.value.map(d=>d[s.value]).join(","):a.value[s.value]);return{iv:a,internalValue:a,ev:l,externalValue:l,textValue:u,plainValue:c}}function i7(t,e,n){const{regex:o}=r.toRefs(t),i=r.getCurrentInstance().proxy,s=n.isOpen,a=n.open,l=r.ref(null),c=()=>{l.value=""},u=f=>{l.value=f.target.value},d=f=>{if(o&&o.value){let m=o.value;typeof m=="string"&&(m=new RegExp(m)),f.key.match(m)||f.preventDefault()}},p=f=>{if(o&&o.value){let h=(f.clipboardData||window.clipboardData).getData("Text"),v=o.value;typeof v=="string"&&(v=new RegExp(v)),h.split("").every(C=>!!C.match(v))||f.preventDefault()}e.emit("paste",f,i)};return r.watch(l,f=>{!s.value&&f&&a(),e.emit("search-change",f,i)}),{search:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:p}}function s7(t,e,n){const{groupSelect:o,mode:i,groups:s,disabledProp:a}=r.toRefs(t),l=r.ref(null),c=d=>{d===void 0||d!==null&&d[a.value]||s.value&&d&&d.group&&(i.value==="single"||!o.value)||(l.value=d)};return{pointer:l,setPointer:c,clearPointer:()=>{c(null)}}}function Sl(t,e=!0){return e?String(t).toLowerCase().trim():String(t).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function a7(t){return Object.prototype.toString.call(t)==="[object Object]"}function l7(t,e){const n=e.slice().sort();return t.length===e.length&&t.slice().sort().every(function(o,i){return o===n[i]})}function c7(t,e,n){const{options:o,mode:i,trackBy:s,limit:a,hideSelected:l,createTag:c,createOption:u,label:d,appendNewTag:p,appendNewOption:f,multipleLabel:m,object:h,loading:v,delay:C,resolveOnLoad:y,minChars:g,filterResults:_,clearOnSearch:b,clearOnSelect:w,valueProp:k,allowAbsent:A,groupLabel:S,canDeselect:E,max:D,strict:V,closeOnSelect:T,closeOnDeselect:M,groups:x,reverse:$,infinite:B,groupOptions:q,groupHideEmpty:I,groupSelect:H,onCreate:Y,disabledProp:le,searchStart:oe,searchFilter:Ne}=r.toRefs(t),ce=r.getCurrentInstance().proxy,ne=n.iv,z=n.ev,F=n.search,re=n.clearSearch,Ee=n.update,ze=n.pointer,we=n.setPointer,Ce=n.clearPointer,_t=n.focus,R=n.deactivate,ie=n.close,he=n.localize,pe=r.ref([]),Ze=r.ref([]),De=r.ref(!1),$e=r.ref(null),Fe=r.ref(B.value&&a.value===-1?10:a.value),Ge=r.computed(()=>c.value||u.value||!1),Ye=r.computed(()=>p.value!==void 0?p.value:f.value!==void 0?f.value:!0),Me=r.computed(()=>{if(x.value){let O=Lt.value||[],J=[];return O.forEach(be=>{si(be[q.value]).forEach(Ue=>{J.push(Object.assign({},Ue,be[le.value]?{[le.value]:!0}:{}))})}),J}else{let O=si(Ze.value||[]);return pe.value.length&&(O=O.concat(pe.value)),O}}),Ct=r.computed(()=>{let O=Me.value;return $.value&&(O=O.reverse()),W.value.length&&(O=W.value.concat(O)),ii(O)}),it=r.computed(()=>{let O=Ct.value;return Fe.value>0&&(O=O.slice(0,Fe.value)),O}),Lt=r.computed(()=>{if(!x.value)return[];let O=[],J=Ze.value||[];return pe.value.length&&O.push({[S.value]:" ",[q.value]:[...pe.value],__CREATE__:!0}),O.concat(J)}),rn=r.computed(()=>{let O=[...Lt.value].map(J=>({...J}));return W.value.length&&(O[0]&&O[0].__CREATE__?O[0][q.value]=[...W.value,...O[0][q.value]]:O=[{[S.value]:" ",[q.value]:[...W.value],__CREATE__:!0}].concat(O)),O}),Cn=r.computed(()=>{if(!x.value)return[];let O=rn.value;return Do((O||[]).map((J,be)=>{const Ue=si(J[q.value]);return{...J,index:be,group:!0,[q.value]:ii(Ue,!1).map(Fn=>Object.assign({},Fn,J[le.value]?{[le.value]:!0}:{})),__VISIBLE__:ii(Ue).map(Fn=>Object.assign({},Fn,J[le.value]?{[le.value]:!0}:{}))}}))}),bn=r.computed(()=>{switch(i.value){case"single":return!En(ne.value[k.value]);case"multiple":case"tags":return!En(ne.value)&&ne.value.length>0}}),kn=r.computed(()=>m!==void 0&&m.value!==void 0?m.value(ne.value,ce):ne.value&&ne.value.length>1?`${ne.value.length} options selected`:"1 option selected"),no=r.computed(()=>!Me.value.length&&!De.value&&!W.value.length),L=r.computed(()=>Me.value.length>0&&it.value.length==0&&(F.value&&x.value||!x.value)),W=r.computed(()=>Ge.value===!1||!F.value?[]:Cs(F.value)!==-1?[]:[{[k.value]:F.value,[ae.value[0]]:F.value,[d.value]:F.value,__CREATE__:!0}]),ae=r.computed(()=>s.value?Array.isArray(s.value)?s.value:[s.value]:[d.value]),Je=r.computed(()=>{switch(i.value){case"single":return null;case"multiple":case"tags":return[]}}),Ot=r.computed(()=>v.value||De.value),bt=O=>{switch(typeof O!="object"&&(O=Pt(O)),i.value){case"single":Ee(O);break;case"multiple":case"tags":Ee(ne.value.concat(O));break}e.emit("select",Et(O),O,ce)},ve=O=>{switch(typeof O!="object"&&(O=Pt(O)),i.value){case"single":ni();break;case"tags":case"multiple":Ee(Array.isArray(O)?ne.value.filter(J=>O.map(be=>be[k.value]).indexOf(J[k.value])===-1):ne.value.filter(J=>J[k.value]!=O[k.value]));break}e.emit("deselect",Et(O),O,ce)},Et=O=>h.value?O:O[k.value],oo=O=>{ve(O)},ys=(O,J)=>{if(J.button!==0){J.preventDefault();return}oo(O)},ni=()=>{Ee(Je.value),e.emit("clear",ce)},Vt=O=>{if(O.group!==void 0)return i.value==="single"?!1:_s(O[q.value])&&O[q.value].length;switch(i.value){case"single":return!En(ne.value)&&ne.value[k.value]==O[k.value];case"tags":case"multiple":return!En(ne.value)&&ne.value.map(J=>J[k.value]).indexOf(O[k.value])!==-1}},fr=O=>O[le.value]===!0,ro=()=>D===void 0||D.value===-1||!bn.value&&D.value>0?!1:ne.value.length>=D.value,pr=O=>{if(!fr(O)){if(Y&&Y.value&&!Vt(O)&&O.__CREATE__&&(O={...O},delete O.__CREATE__,O=Y.value(O,ce),O instanceof Promise)){De.value=!0,O.then(J=>{De.value=!1,It(J)});return}It(O)}},It=O=>{switch(O.__CREATE__&&(O={...O},delete O.__CREATE__),i.value){case"single":if(O&&Vt(O)){E.value&&ve(O),M.value&&(Ce(),ie());return}O&&No(O),w.value&&re(),T.value&&(Ce(),ie()),O&&bt(O);break;case"multiple":if(O&&Vt(O)){ve(O),M.value&&(Ce(),ie());return}if(ro()){e.emit("max",ce);return}O&&(No(O),bt(O)),w.value&&re(),l.value&&Ce(),T.value&&ie();break;case"tags":if(O&&Vt(O)){ve(O),M.value&&(Ce(),ie());return}if(ro()){e.emit("max",ce);return}O&&No(O),w.value&&re(),O&&bt(O),l.value&&Ce(),T.value&&ie();break}T.value||_t()},io=O=>{if(!(fr(O)||i.value==="single"||!H.value)){switch(i.value){case"multiple":case"tags":vl(O[q.value])?ve(O[q.value]):bt(O[q.value].filter(J=>ne.value.map(be=>be[k.value]).indexOf(J[k.value])===-1).filter(J=>!J[le.value]).filter((J,be)=>ne.value.length+1+be<=D.value||D.value===-1)),l.value&&ze.value&&we(Cn.value.filter(J=>!J[le.value])[ze.value.index]);break}T.value&&R()}},No=O=>{Pt(O[k.value])===void 0&&Ge.value&&(e.emit("tag",O[k.value],ce),e.emit("option",O[k.value],ce),e.emit("create",O[k.value],ce),Ye.value&&yl(O),re())},oi=()=>{i.value!=="single"&&bt(it.value.filter(O=>!O.disabled&&!Vt(O)))},vl=O=>O.find(J=>!Vt(J)&&!J[le.value])===void 0,_s=O=>O.find(J=>!Vt(J))===void 0,Pt=O=>Me.value[Me.value.map(J=>String(J[k.value])).indexOf(String(O))],Cs=O=>Me.value.findIndex(J=>ae.value.some(be=>(parseInt(J[be])==J[be]?parseInt(J[be]):J[be])===(parseInt(O)==O?parseInt(O):O))),ri=O=>["tags","multiple"].indexOf(i.value)!==-1&&l.value&&Vt(O),yl=O=>{pe.value.push(O)},Do=O=>I.value?O.filter(J=>F.value?J.__VISIBLE__.length:J[q.value].length):O.filter(J=>F.value?J.__VISIBLE__.length:!0),ii=(O,J=!0)=>{let be=O;if(F.value&&_.value){let Ue=Ne.value;Ue||(Ue=(Fn,an,ci)=>ae.value.some(Rn=>{let ks=Sl(he(Fn[Rn]),V.value);return oe.value?ks.startsWith(Sl(an,V.value)):ks.indexOf(Sl(an,V.value))!==-1})),be=be.filter(Fn=>Ue(Fn,F.value,ce))}return l.value&&J&&(be=be.filter(Ue=>!ri(Ue))),be},si=O=>{let J=O;return a7(J)&&(J=Object.keys(J).map(be=>{let Ue=J[be];return{[k.value]:be,[ae.value[0]]:Ue,[d.value]:Ue}})),J=J.map(be=>typeof be=="object"?be:{[k.value]:be,[ae.value[0]]:be,[d.value]:be}),J},Ve=()=>{En(z.value)||(ne.value=so(z.value))},sn=O=>(De.value=!0,new Promise((J,be)=>{o.value(F.value,ce).then(Ue=>{Ze.value=Ue||[],typeof O=="function"&&O(Ue),De.value=!1}).catch(Ue=>{console.error(Ue),Ze.value=[],De.value=!1}).finally(()=>{J()})})),ai=()=>{if(bn.value)if(i.value==="single"){let O=Pt(ne.value[k.value]);if(O!==void 0){let J=O[d.value];ne.value[d.value]=J,h.value&&(z.value[d.value]=J)}}else ne.value.forEach((O,J)=>{let be=Pt(ne.value[J][k.value]);if(be!==void 0){let Ue=be[d.value];ne.value[J][d.value]=Ue,h.value&&(z.value[J][d.value]=Ue)}})},bs=O=>{sn(O)},so=O=>En(O)?i.value==="single"?{}:[]:h.value?O:i.value==="single"?Pt(O)||(A.value?{[d.value]:O,[k.value]:O,[ae.value[0]]:O}:{}):O.filter(J=>!!Pt(J)||A.value).map(J=>Pt(J)||{[d.value]:J,[k.value]:J,[ae.value[0]]:J}),li=()=>{$e.value=r.watch(F,O=>{O.length<g.value||!O&&g.value!==0||(De.value=!0,b.value&&(Ze.value=[]),setTimeout(()=>{O==F.value&&o.value(F.value,ce).then(J=>{(O==F.value||!F.value)&&(Ze.value=J,ze.value=it.value.filter(be=>be[le.value]!==!0)[0]||null,De.value=!1)}).catch(J=>{console.error(J)})},C.value))},{flush:"sync"})};if(i.value!=="single"&&!En(z.value)&&!Array.isArray(z.value))throw new Error(`v-model must be an array when using "${i.value}" mode`);return o&&typeof o.value=="function"?y.value?sn(Ve):h.value==!0&&Ve():(Ze.value=o.value,Ve()),C.value>-1&&li(),r.watch(C,(O,J)=>{$e.value&&$e.value(),O>=0&&li()}),r.watch(z,O=>{if(En(O)){Ee(so(O),!1);return}switch(i.value){case"single":(h.value?O[k.value]!=ne.value[k.value]:O!=ne.value[k.value])&&Ee(so(O),!1);break;case"multiple":case"tags":l7(h.value?O.map(J=>J[k.value]):O,ne.value.map(J=>J[k.value]))||Ee(so(O),!1);break}},{deep:!0}),r.watch(o,(O,J)=>{typeof t.options=="function"?y.value&&(!J||O&&O.toString()!==J.toString())&&sn():(Ze.value=t.options,Object.keys(ne.value).length||Ve(),ai())}),r.watch(d,ai),r.watch(a,(O,J)=>{Fe.value=B.value&&O===-1?10:O}),{pfo:Ct,fo:it,filteredOptions:it,hasSelected:bn,multipleLabelText:kn,eo:Me,extendedOptions:Me,eg:Lt,extendedGroups:Lt,fg:Cn,filteredGroups:Cn,noOptions:no,noResults:L,resolving:De,busy:Ot,offset:Fe,select:bt,deselect:ve,remove:oo,selectAll:oi,clear:ni,isSelected:Vt,isDisabled:fr,isMax:ro,getOption:Pt,handleOptionClick:pr,handleGroupClick:io,handleTagRemove:ys,refreshOptions:bs,resolveOptions:sn,refreshLabels:ai}}function u7(t,e,n){const{valueProp:o,showOptions:i,searchable:s,groupLabel:a,groups:l,mode:c,groupSelect:u,disabledProp:d,groupOptions:p}=r.toRefs(t),f=n.fo,m=n.fg,h=n.handleOptionClick,v=n.handleGroupClick,C=n.search,y=n.pointer,g=n.setPointer,_=n.clearPointer,b=n.multiselect,w=n.isOpen,k=r.computed(()=>f.value.filter(z=>!z[d.value])),A=r.computed(()=>m.value.filter(z=>!z[d.value])),S=r.computed(()=>c.value!=="single"&&u.value),E=r.computed(()=>y.value&&y.value.group),D=r.computed(()=>ce(y.value)),V=r.computed(()=>{const z=E.value?y.value:ce(y.value),F=A.value.map(Ee=>Ee[a.value]).indexOf(z[a.value]);let re=A.value[F-1];return re===void 0&&(re=M.value),re}),T=r.computed(()=>{let z=A.value.map(F=>F.label).indexOf(E.value?y.value[a.value]:ce(y.value)[a.value])+1;return A.value.length<=z&&(z=0),A.value[z]}),M=r.computed(()=>[...A.value].slice(-1)[0]),x=r.computed(()=>y.value.__VISIBLE__.filter(z=>!z[d.value])[0]),$=r.computed(()=>{const z=D.value.__VISIBLE__.filter(F=>!F[d.value]);return z[z.map(F=>F[o.value]).indexOf(y.value[o.value])-1]}),B=r.computed(()=>{const z=ce(y.value).__VISIBLE__.filter(F=>!F[d.value]);return z[z.map(F=>F[o.value]).indexOf(y.value[o.value])+1]}),q=r.computed(()=>[...V.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),I=r.computed(()=>[...M.value.__VISIBLE__.filter(z=>!z[d.value])].slice(-1)[0]),H=z=>y.value&&(!z.group&&y.value[o.value]===z[o.value]||z.group!==void 0&&y.value[a.value]===z[a.value])?!0:void 0,Y=()=>{g(k.value[0]||null)},le=()=>{!y.value||y.value[d.value]===!0||(E.value?v(y.value):h(y.value))},oe=()=>{if(y.value===null)g((l.value&&S.value?A.value[0].__CREATE__?k.value[0]:A.value[0]:k.value[0])||null);else if(l.value&&S.value){let z=E.value?x.value:B.value;z===void 0&&(z=T.value,z.__CREATE__&&(z=z[p.value][0])),g(z||null)}else{let z=k.value.map(F=>F[o.value]).indexOf(y.value[o.value])+1;k.value.length<=z&&(z=0),g(k.value[z]||null)}r.nextTick(()=>{ne()})},Ne=()=>{if(y.value===null){let z=k.value[k.value.length-1];l.value&&S.value&&(z=I.value,z===void 0&&(z=M.value)),g(z||null)}else if(l.value&&S.value){let z=E.value?q.value:$.value;z===void 0&&(z=E.value?V.value:D.value,z.__CREATE__&&(z=q.value,z===void 0&&(z=V.value))),g(z||null)}else{let z=k.value.map(F=>F[o.value]).indexOf(y.value[o.value])-1;z<0&&(z=k.value.length-1),g(k.value[z]||null)}r.nextTick(()=>{ne()})},ce=z=>A.value.find(F=>F.__VISIBLE__.map(re=>re[o.value]).indexOf(z[o.value])!==-1),ne=()=>{let z=b.value.querySelector("[data-pointed]");if(!z)return;let F=z.parentElement.parentElement;l.value&&(F=E.value?z.parentElement.parentElement.parentElement:z.parentElement.parentElement.parentElement.parentElement),z.offsetTop+z.offsetHeight>F.clientHeight+F.scrollTop&&(F.scrollTop=z.offsetTop+z.offsetHeight-F.clientHeight),z.offsetTop<F.scrollTop&&(F.scrollTop=z.offsetTop)};return r.watch(C,z=>{s.value&&(z.length&&i.value?Y():_())}),r.watch(w,z=>{if(z){let F=b.value.querySelectorAll("[data-selected]")[0];if(!F)return;let re=F.parentElement.parentElement;r.nextTick(()=>{re.scrollTop>0||(re.scrollTop=F.offsetTop)})}}),{pointer:y,canPointGroups:S,isPointed:H,setPointerFirst:Y,selectPointer:le,forwardPointer:oe,backwardPointer:Ne}}function Ht(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Jo(t){var e=Ht(t).Element;return t instanceof e||t instanceof Element}function Qt(t){var e=Ht(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function cu(t){if(typeof ShadowRoot>"u")return!1;var e=Ht(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var qo=Math.max,oa=Math.min,Vr=Math.round;function pc(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function tm(){return!/^((?!chrome|android).)*safari/i.test(pc())}function Ir(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),i=1,s=1;e&&Qt(t)&&(i=t.offsetWidth>0&&Vr(o.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Vr(o.height)/t.offsetHeight||1);var a=Jo(t)?Ht(t):window,l=a.visualViewport,c=!tm()&&n,u=(o.left+(c&&l?l.offsetLeft:0))/i,d=(o.top+(c&&l?l.offsetTop:0))/s,p=o.width/i,f=o.height/s;return{width:p,height:f,top:d,right:u+p,bottom:d+f,left:u,x:u,y:d}}function uu(t){var e=Ht(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function d7(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function f7(t){return t===Ht(t)||!Qt(t)?uu(t):d7(t)}function Mn(t){return t?(t.nodeName||"").toLowerCase():null}function So(t){return((Jo(t)?t.ownerDocument:t.document)||window.document).documentElement}function du(t){return Ir(So(t)).left+uu(t).scrollLeft}function Jn(t){return Ht(t).getComputedStyle(t)}function fu(t){var e=Jn(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}function p7(t){var e=t.getBoundingClientRect(),n=Vr(e.width)/t.offsetWidth||1,o=Vr(e.height)/t.offsetHeight||1;return n!==1||o!==1}function m7(t,e,n){n===void 0&&(n=!1);var o=Qt(e),i=Qt(e)&&p7(e),s=So(e),a=Ir(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((Mn(e)!=="body"||fu(s))&&(l=f7(e)),Qt(e)?(c=Ir(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=du(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function nm(t){var e=Ir(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function Fa(t){return Mn(t)==="html"?t:t.assignedSlot||t.parentNode||(cu(t)?t.host:null)||So(t)}function om(t){return["html","body","#document"].indexOf(Mn(t))>=0?t.ownerDocument.body:Qt(t)&&fu(t)?t:om(Fa(t))}function Ni(t,e){var n;e===void 0&&(e=[]);var o=om(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),s=Ht(o),a=i?[s].concat(s.visualViewport||[],fu(o)?o:[]):o,l=e.concat(a);return i?l:l.concat(Ni(Fa(a)))}function h7(t){return["table","td","th"].indexOf(Mn(t))>=0}function Pd(t){return!Qt(t)||Jn(t).position==="fixed"?null:t.offsetParent}function g7(t){var e=/firefox/i.test(pc()),n=/Trident/i.test(pc());if(n&&Qt(t)){var o=Jn(t);if(o.position==="fixed")return null}var i=Fa(t);for(cu(i)&&(i=i.host);Qt(i)&&["html","body"].indexOf(Mn(i))<0;){var s=Jn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ra(t){for(var e=Ht(t),n=Pd(t);n&&h7(n)&&Jn(n).position==="static";)n=Pd(n);return n&&(Mn(n)==="html"||Mn(n)==="body"&&Jn(n).position==="static")?e:n||g7(t)||e}var dn="top",Ln="bottom",bo="right",Zn="left",pu="auto",za=[dn,Ln,bo,Zn],Pr="start",Hi="end",v7="clippingParents",rm="viewport",vi="popper",y7="reference",Fd=za.reduce(function(t,e){return t.concat([e+"-"+Pr,e+"-"+Hi])},[]),_7=[].concat(za,[pu]).reduce(function(t,e){return t.concat([e,e+"-"+Pr,e+"-"+Hi])},[]),C7="beforeRead",b7="read",k7="afterRead",w7="beforeMain",E7="main",S7="afterMain",x7="beforeWrite",A7="write",T7="afterWrite",N7=[C7,b7,k7,w7,E7,S7,x7,A7,T7];function D7(t){var e=new Map,n=new Set,o=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&i(c)}}),o.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),o}function $7(t){var e=D7(t);return N7.reduce(function(n,o){return n.concat(e.filter(function(i){return i.phase===o}))},[])}function B7(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function M7(t){var e=t.reduce(function(n,o){var i=n[o.name];return n[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}function L7(t,e){var n=Ht(t),o=So(t),i=n.visualViewport,s=o.clientWidth,a=o.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var u=tm();(u||!u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+du(t),y:c}}function O7(t){var e,n=So(t),o=uu(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=qo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=qo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-o.scrollLeft+du(t),c=-o.scrollTop;return Jn(i||n).direction==="rtl"&&(l+=qo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function V7(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&cu(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function mc(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function I7(t,e){var n=Ir(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Rd(t,e,n){return e===rm?mc(L7(t,n)):Jo(e)?I7(e,n):mc(O7(So(t)))}function P7(t){var e=Ni(Fa(t)),n=["absolute","fixed"].indexOf(Jn(t).position)>=0,o=n&&Qt(t)?Ra(t):t;return Jo(o)?e.filter(function(i){return Jo(i)&&V7(i,o)&&Mn(i)!=="body"}):[]}function F7(t,e,n,o){var i=e==="clippingParents"?P7(t):[].concat(e),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(c,u){var d=Rd(t,u,o);return c.top=qo(d.top,c.top),c.right=oa(d.right,c.right),c.bottom=oa(d.bottom,c.bottom),c.left=qo(d.left,c.left),c},Rd(t,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ho(t){return t.split("-")[0]}function Fr(t){return t.split("-")[1]}function im(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function sm(t){var e=t.reference,n=t.element,o=t.placement,i=o?ho(o):null,s=o?Fr(o):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(i){case dn:c={x:a,y:e.y-n.height};break;case Ln:c={x:a,y:e.y+e.height};break;case bo:c={x:e.x+e.width,y:l};break;case Zn:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var u=i?im(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(s){case Pr:c[u]=c[u]-(e[d]/2-n[d]/2);break;case Hi:c[u]=c[u]+(e[d]/2-n[d]/2);break}}return c}function am(){return{top:0,right:0,bottom:0,left:0}}function R7(t){return Object.assign({},am(),t)}function z7(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}function mu(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=o===void 0?t.placement:o,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?v7:l,u=n.rootBoundary,d=u===void 0?rm:u,p=n.elementContext,f=p===void 0?vi:p,m=n.altBoundary,h=m===void 0?!1:m,v=n.padding,C=v===void 0?0:v,y=R7(typeof C!="number"?C:z7(C,za)),g=f===vi?y7:vi,_=t.rects.popper,b=t.elements[h?g:f],w=F7(Jo(b)?b:b.contextElement||So(t.elements.popper),c,d,a),k=Ir(t.elements.reference),A=sm({reference:k,element:_,strategy:"absolute",placement:i}),S=mc(Object.assign({},_,A)),E=f===vi?S:k,D={top:w.top-E.top+y.top,bottom:E.bottom-w.bottom+y.bottom,left:w.left-E.left+y.left,right:E.right-w.right+y.right},V=t.modifiersData.offset;if(f===vi&&V){var T=V[i];Object.keys(D).forEach(function(M){var x=[bo,Ln].indexOf(M)>=0?1:-1,$=[dn,Ln].indexOf(M)>=0?"y":"x";D[M]+=T[$]*x})}return D}var zd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ud(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function U7(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?zd:i;return function(l,c,u){u===void 0&&(u=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},zd,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],f=!1,m={state:d,setOptions:function(y){var g=typeof y=="function"?y(d.options):y;v(),d.options=Object.assign({},s,d.options,g),d.scrollParents={reference:Jo(l)?Ni(l):l.contextElement?Ni(l.contextElement):[],popper:Ni(c)};var _=$7(M7([].concat(o,d.options.modifiers)));return d.orderedModifiers=_.filter(function(b){return b.enabled}),h(),m.update()},forceUpdate:function(){if(!f){var y=d.elements,g=y.reference,_=y.popper;if(Ud(g,_)){d.rects={reference:m7(g,Ra(_),d.options.strategy==="fixed"),popper:nm(_)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(D){return d.modifiersData[D.name]=Object.assign({},D.data)});for(var b=0;b<d.orderedModifiers.length;b++){if(d.reset===!0){d.reset=!1,b=-1;continue}var w=d.orderedModifiers[b],k=w.fn,A=w.options,S=A===void 0?{}:A,E=w.name;typeof k=="function"&&(d=k({state:d,options:S,name:E,instance:m})||d)}}}},update:B7(function(){return new Promise(function(C){m.forceUpdate(),C(d)})}),destroy:function(){v(),f=!0}};if(!Ud(l,c))return m;m.setOptions(u).then(function(C){!f&&u.onFirstUpdate&&u.onFirstUpdate(C)});function h(){d.orderedModifiers.forEach(function(C){var y=C.name,g=C.options,_=g===void 0?{}:g,b=C.effect;if(typeof b=="function"){var w=b({state:d,name:y,instance:m,options:_}),k=function(){};p.push(w||k)}})}function v(){p.forEach(function(C){return C()}),p=[]}return m}}var Ds={passive:!0};function H7(t){var e=t.state,n=t.instance,o=t.options,i=o.scroll,s=i===void 0?!0:i,a=o.resize,l=a===void 0?!0:a,c=Ht(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ds)}),l&&c.addEventListener("resize",n.update,Ds),function(){s&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ds)}),l&&c.removeEventListener("resize",n.update,Ds)}}var q7={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:H7,data:{}};function j7(t){var e=t.state,n=t.name;e.modifiersData[n]=sm({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var W7={name:"popperOffsets",enabled:!0,phase:"read",fn:j7,data:{}},Z7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K7(t,e){var n=t.x,o=t.y,i=e.devicePixelRatio||1;return{x:Vr(n*i)/i||0,y:Vr(o*i)/i||0}}function Hd(t){var e,n=t.popper,o=t.popperRect,i=t.placement,s=t.variation,a=t.offsets,l=t.position,c=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,p=t.isFixed,f=a.x,m=f===void 0?0:f,h=a.y,v=h===void 0?0:h,C=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=C.x,v=C.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),_=Zn,b=dn,w=window;if(u){var k=Ra(n),A="clientHeight",S="clientWidth";if(k===Ht(n)&&(k=So(n),Jn(k).position!=="static"&&l==="absolute"&&(A="scrollHeight",S="scrollWidth")),k=k,i===dn||(i===Zn||i===bo)&&s===Hi){b=Ln;var E=p&&k===w&&w.visualViewport?w.visualViewport.height:k[A];v-=E-o.height,v*=c?1:-1}if(i===Zn||(i===dn||i===Ln)&&s===Hi){_=bo;var D=p&&k===w&&w.visualViewport?w.visualViewport.width:k[S];m-=D-o.width,m*=c?1:-1}}var V=Object.assign({position:l},u&&Z7),T=d===!0?K7({x:m,y:v},Ht(n)):{x:m,y:v};if(m=T.x,v=T.y,c){var M;return Object.assign({},V,(M={},M[b]=g?"0":"",M[_]=y?"0":"",M.transform=(w.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",M))}return Object.assign({},V,(e={},e[b]=g?v+"px":"",e[_]=y?m+"px":"",e.transform="",e))}function G7(t){var e=t.state,n=t.options,o=n.gpuAcceleration,i=o===void 0?!0:o,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,u={placement:ho(e.placement),variation:Fr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Hd(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Hd(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Y7={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:G7,data:{}};function J7(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!Qt(s)||!Mn(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function X7(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var i=e.elements[o],s=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),l=a.reduce(function(c,u){return c[u]="",c},{});!Qt(i)||!Mn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}var Q7={name:"applyStyles",enabled:!0,phase:"write",fn:J7,effect:X7,requires:["computeStyles"]},ek=[q7,W7,Y7,Q7],tk=U7({defaultModifiers:ek});function nk(t){return t==="x"?"y":"x"}function js(t,e,n){return qo(t,oa(e,n))}function ok(t,e,n){var o=js(t,e,n);return o>n?n:o}function rk(t){var e=t.state,n=t.options,o=t.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,d=n.altBoundary,p=n.padding,f=n.tether,m=f===void 0?!0:f,h=n.tetherOffset,v=h===void 0?0:h,C=mu(e,{boundary:c,rootBoundary:u,padding:p,altBoundary:d}),y=ho(e.placement),g=Fr(e.placement),_=!g,b=im(y),w=nk(b),k=e.modifiersData.popperOffsets,A=e.rects.reference,S=e.rects.popper,E=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,D=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(k){if(s){var M,x=b==="y"?dn:Zn,$=b==="y"?Ln:bo,B=b==="y"?"height":"width",q=k[b],I=q+C[x],H=q-C[$],Y=m?-S[B]/2:0,le=g===Pr?A[B]:S[B],oe=g===Pr?-S[B]:-A[B],Ne=e.elements.arrow,ce=m&&Ne?nm(Ne):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:am(),z=ne[x],F=ne[$],re=js(0,A[B],ce[B]),Ee=_?A[B]/2-Y-re-z-D.mainAxis:le-re-z-D.mainAxis,ze=_?-A[B]/2+Y+re+F+D.mainAxis:oe+re+F+D.mainAxis,we=e.elements.arrow&&Ra(e.elements.arrow),Ce=we?b==="y"?we.clientTop||0:we.clientLeft||0:0,_t=(M=V==null?void 0:V[b])!=null?M:0,R=q+Ee-_t-Ce,ie=q+ze-_t,he=js(m?oa(I,R):I,q,m?qo(H,ie):H);k[b]=he,T[b]=he-q}if(l){var pe,Ze=b==="x"?dn:Zn,De=b==="x"?Ln:bo,$e=k[w],Fe=w==="y"?"height":"width",Ge=$e+C[Ze],Ye=$e-C[De],Me=[dn,Zn].indexOf(y)!==-1,Ct=(pe=V==null?void 0:V[w])!=null?pe:0,it=Me?Ge:$e-A[Fe]-S[Fe]-Ct+D.altAxis,Lt=Me?$e+A[Fe]+S[Fe]-Ct-D.altAxis:Ye,rn=m&&Me?ok(it,$e,Lt):js(m?it:Ge,$e,m?Lt:Ye);k[w]=rn,T[w]=rn-$e}e.modifiersData[o]=T}}var ik={name:"preventOverflow",enabled:!0,phase:"main",fn:rk,requiresIfExists:["offset"]},sk={left:"right",right:"left",bottom:"top",top:"bottom"};function Ws(t){return t.replace(/left|right|bottom|top/g,function(e){return sk[e]})}var ak={start:"end",end:"start"};function qd(t){return t.replace(/start|end/g,function(e){return ak[e]})}function lk(t,e){e===void 0&&(e={});var n=e,o=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?_7:c,d=Fr(o),p=d?l?Fd:Fd.filter(function(h){return Fr(h)===d}):za,f=p.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=p);var m=f.reduce(function(h,v){return h[v]=mu(t,{placement:v,boundary:i,rootBoundary:s,padding:a})[ho(v)],h},{});return Object.keys(m).sort(function(h,v){return m[h]-m[v]})}function ck(t){if(ho(t)===pu)return[];var e=Ws(t);return[qd(t),e,qd(e)]}function uk(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,d=n.boundary,p=n.rootBoundary,f=n.altBoundary,m=n.flipVariations,h=m===void 0?!0:m,v=n.allowedAutoPlacements,C=e.options.placement,y=ho(C),g=y===C,_=c||(g||!h?[Ws(C)]:ck(C)),b=[C].concat(_).reduce(function(ce,ne){return ce.concat(ho(ne)===pu?lk(e,{placement:ne,boundary:d,rootBoundary:p,padding:u,flipVariations:h,allowedAutoPlacements:v}):ne)},[]),w=e.rects.reference,k=e.rects.popper,A=new Map,S=!0,E=b[0],D=0;D<b.length;D++){var V=b[D],T=ho(V),M=Fr(V)===Pr,x=[dn,Ln].indexOf(T)>=0,$=x?"width":"height",B=mu(e,{placement:V,boundary:d,rootBoundary:p,altBoundary:f,padding:u}),q=x?M?bo:Zn:M?Ln:dn;w[$]>k[$]&&(q=Ws(q));var I=Ws(q),H=[];if(s&&H.push(B[T]<=0),l&&H.push(B[q]<=0,B[I]<=0),H.every(function(ce){return ce})){E=V,S=!1;break}A.set(V,H)}if(S)for(var Y=h?3:1,le=function(ne){var z=b.find(function(F){var re=A.get(F);if(re)return re.slice(0,ne).every(function(Ee){return Ee})});if(z)return E=z,"break"},oe=Y;oe>0;oe--){var Ne=le(oe);if(Ne==="break")break}e.placement!==E&&(e.modifiersData[o]._skip=!0,e.placement=E,e.reset=!0)}}var dk={name:"flip",enabled:!0,phase:"main",fn:uk,requiresIfExists:["offset"],data:{_skip:!1}};function fk(t,e,n){const{disabled:o,appendTo:i,appendToBody:s,openDirection:a}=r.toRefs(t),l=r.getCurrentInstance().proxy,c=n.multiselect,u=n.dropdown,d=r.ref(!1),p=r.ref(null),f=r.ref(null),m=r.computed(()=>i.value||s.value),h=r.computed(()=>a.value==="top"&&f.value==="bottom"||a.value==="bottom"&&f.value!=="top"?"bottom":"top"),v=()=>{d.value||o.value||(d.value=!0,e.emit("open",l),m.value&&r.nextTick(()=>{y()}))},C=()=>{d.value&&(d.value=!1,e.emit("close",l))},y=()=>{if(!p.value)return;let _=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),b=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));p.value.setOptions(w=>({...w,modifiers:[...w.modifiers,{name:"offset",options:{offset:[0,(h.value==="top"?_:b)*-1]}}]})),p.value.update()},g=_=>{for(;_&&_!==document.body;){if(getComputedStyle(_).position==="fixed")return!0;_=_.parentElement}return!1};return r.onMounted(()=>{m.value&&(p.value=tk(c.value,u.value,{strategy:g(c.value)?"fixed":void 0,placement:a.value,modifiers:[ik,dk,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:_})=>{_.styles.popper.width=`${_.rects.reference.width}px`},effect:({state:_})=>{_.elements.popper.style.width=`${_.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:_}){f.value=_.placement}}]}))}),r.onBeforeUnmount(()=>{!m.value||!p.value||(p.value.destroy(),p.value=null)}),{popper:p,isOpen:d,open:v,close:C,placement:h,updatePopper:y}}function pk(t,e,n){const{searchable:o,disabled:i,clearOnBlur:s}=r.toRefs(t),a=n.input,l=n.open,c=n.close,u=n.clearSearch,d=n.isOpen,p=n.wrapper,f=n.tags,m=r.ref(!1),h=r.ref(!1),v=r.computed(()=>o.value||i.value?-1:0),C=()=>{o.value&&a.value.blur(),p.value.blur()},y=()=>{o.value&&!i.value&&a.value.focus()},g=(S=!0)=>{i.value||(m.value=!0,S&&l())},_=()=>{m.value=!1,setTimeout(()=>{m.value||(c(),s.value&&u())},1)};return{tabindex:v,isActive:m,mouseClicked:h,blur:C,focus:y,activate:g,deactivate:_,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||g(h.value)},handleFocusOut:()=>{_()},handleCaretClick:()=>{_(),C()},handleMousedown:S=>{h.value=!0,d.value&&(S.target.isEqualNode(p.value)||S.target.isEqualNode(f.value))?setTimeout(()=>{_()},0):!d.value&&(document.activeElement.isEqualNode(p.value)||document.activeElement.isEqualNode(a.value))&&g(),setTimeout(()=>{h.value=!1},0)}}}function mk(t,e,n){const{mode:o,addTagOn:i,openDirection:s,searchable:a,showOptions:l,valueProp:c,groups:u,addOptionOn:d,createTag:p,createOption:f,reverse:m}=r.toRefs(t),h=r.getCurrentInstance().proxy,v=n.iv,C=n.update,y=n.deselect,g=n.search,_=n.setPointer,b=n.selectPointer,w=n.backwardPointer,k=n.forwardPointer,A=n.multiselect,S=n.wrapper,E=n.tags,D=n.isOpen,V=n.open,T=n.blur,M=n.fo,x=r.computed(()=>p.value||f.value||!1),$=r.computed(()=>i.value!==void 0?i.value:d.value!==void 0?d.value:["enter"]),B=()=>{o.value==="tags"&&!l.value&&x.value&&a.value&&!u.value&&_(M.value[M.value.map(H=>H[c.value]).indexOf(g.value)])};return{handleKeydown:H=>{e.emit("keydown",H,h);let Y,le;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(H.key)!==-1&&o.value==="tags"&&(Y=[...A.value.querySelectorAll("[data-tags] > *")].filter(oe=>oe!==E.value),le=Y.findIndex(oe=>oe===document.activeElement)),H.key){case"Backspace":if(o.value==="single"||a.value&&[null,""].indexOf(g.value)===-1||v.value.length===0)return;let oe=v.value.filter(Ne=>!Ne.disabled&&Ne.remove!==!1);oe.length&&y(oe[oe.length-1]);break;case"Enter":if(H.preventDefault(),H.keyCode===229)return;if(le!==-1&&le!==void 0){C([...v.value].filter((Ne,ce)=>ce!==le)),le===Y.length-1&&(Y.length-1?Y[Y.length-2].focus():a.value?E.value.querySelector("input").focus():S.value.focus());return}if($.value.indexOf("enter")===-1&&x.value)return;B(),b();break;case" ":if(!x.value&&!a.value){H.preventDefault(),B(),b();return}if(!x.value)return!1;if($.value.indexOf("space")===-1&&x.value)return;H.preventDefault(),B(),b();break;case"Tab":case";":case",":if($.value.indexOf(H.key.toLowerCase())===-1||!x.value)return;B(),b(),H.preventDefault();break;case"Escape":T();break;case"ArrowUp":if(H.preventDefault(),!l.value)return;D.value||V(),w();break;case"ArrowDown":if(H.preventDefault(),!l.value)return;D.value||V(),k();break;case"ArrowLeft":if(a.value&&E.value&&E.value.querySelector("input").selectionStart||H.shiftKey||o.value!=="tags"||!v.value||!v.value.length)return;H.preventDefault(),le===-1?Y[Y.length-1].focus():le>0&&Y[le-1].focus();break;case"ArrowRight":if(le===-1||H.shiftKey||o.value!=="tags"||!v.value||!v.value.length)return;H.preventDefault(),Y.length>le+1?Y[le+1].focus():a.value?E.value.querySelector("input").focus():a.value||S.value.focus();break}},handleKeyup:H=>{e.emit("keyup",H,h)},preparePointer:B}}function hk(t,e,n){const{classes:o,disabled:i,showOptions:s,breakTags:a}=r.toRefs(t),l=n.isOpen,c=n.isPointed,u=n.isSelected,d=n.isDisabled,p=n.isActive,f=n.canPointGroups,m=n.resolving,h=n.fo,v=n.placement,C=r.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...o.value})),y=r.computed(()=>!!(l.value&&s.value&&(!m.value||m.value&&h.value.length)));return{classList:r.computed(()=>{const _=C.value;return{container:[_.container].concat(i.value?_.containerDisabled:[]).concat(y.value&&v.value==="top"?_.containerOpenTop:[]).concat(y.value&&v.value!=="top"?_.containerOpen:[]).concat(p.value?_.containerActive:[]),wrapper:_.wrapper,spacer:_.spacer,singleLabel:_.singleLabel,singleLabelText:_.singleLabelText,multipleLabel:_.multipleLabel,search:_.search,tags:_.tags,tag:[_.tag].concat(i.value?_.tagDisabled:[]),tagWrapper:[_.tagWrapper,a.value?_.tagWrapperBreak:null],tagDisabled:_.tagDisabled,tagRemove:_.tagRemove,tagRemoveIcon:_.tagRemoveIcon,tagsSearchWrapper:_.tagsSearchWrapper,tagsSearch:_.tagsSearch,tagsSearchCopy:_.tagsSearchCopy,placeholder:_.placeholder,caret:[_.caret].concat(l.value?_.caretOpen:[]),clear:_.clear,clearIcon:_.clearIcon,spinner:_.spinner,inifinite:_.inifinite,inifiniteSpinner:_.inifiniteSpinner,dropdown:[_.dropdown].concat(v.value==="top"?_.dropdownTop:[]).concat(!l.value||!s.value||!y.value?_.dropdownHidden:[]),options:[_.options].concat(v.value==="top"?_.optionsTop:[]),group:_.group,groupLabel:b=>{let w=[_.groupLabel];return c(b)?w.push(u(b)?_.groupLabelSelectedPointed:_.groupLabelPointed):u(b)&&f.value?w.push(d(b)?_.groupLabelSelectedDisabled:_.groupLabelSelected):d(b)&&w.push(_.groupLabelDisabled),f.value&&w.push(_.groupLabelPointable),w},groupOptions:_.groupOptions,option:(b,w)=>{let k=[_.option];return c(b)?k.push(u(b)?_.optionSelectedPointed:_.optionPointed):u(b)?k.push(d(b)?_.optionSelectedDisabled:_.optionSelected):(d(b)||w&&d(w))&&k.push(_.optionDisabled),k},noOptions:_.noOptions,noResults:_.noResults,assist:_.assist,fakeInput:_.fakeInput}}),showDropdown:y}}function gk(t,e,n){const{limit:o,infinite:i}=r.toRefs(t),s=n.isOpen,a=n.offset,l=n.search,c=n.pfo,u=n.eo,d=r.ref(null),p=r.ref(null),f=r.computed(()=>a.value<c.value.length),m=v=>{const{isIntersecting:C,target:y}=v[0];if(C){const g=y.offsetParent,_=g.scrollTop;a.value+=o.value==-1?10:o.value,r.nextTick(()=>{g.scrollTop=_})}},h=()=>{s.value&&a.value<c.value.length?d.value.observe(p.value):!s.value&&d.value&&d.value.disconnect()};return r.watch(s,()=>{i.value&&h()}),r.watch(l,()=>{i.value&&(a.value=o.value,h())},{flush:"post"}),r.watch(u,()=>{i.value&&h()},{immediate:!1,flush:"post"}),r.onMounted(()=>{window&&window.IntersectionObserver&&(d.value=new IntersectionObserver(m))}),{hasMore:f,infiniteLoader:p}}function vk(t,e,n){const{placeholder:o,id:i,valueProp:s,label:a,mode:l,groupLabel:c,aria:u,searchable:d}=r.toRefs(t),p=n.pointer,f=n.iv,m=n.hasSelected,h=n.multipleLabelText,v=r.ref(null),C=r.computed(()=>{let T=[];return i&&i.value&&T.push(i.value),T.push("assist"),T.join("-")}),y=r.computed(()=>{let T=[];return i&&i.value&&T.push(i.value),T.push("multiselect-options"),T.join("-")}),g=r.computed(()=>{let T=[];if(i&&i.value&&T.push(i.value),p.value)return T.push(p.value.group?"multiselect-group":"multiselect-option"),T.push(p.value.group?p.value.index:p.value[s.value]),T.join("-")}),_=r.computed(()=>o.value),b=r.computed(()=>l.value!=="single"),w=r.computed(()=>{let T="";return l.value==="single"&&m.value&&(T+=f.value[a.value]),l.value==="multiple"&&m.value&&(T+=h.value),l.value==="tags"&&m.value&&(T+=f.value.map(M=>M[a.value]).join(", ")),T}),k=r.computed(()=>{let T={...u.value};return d.value&&(T["aria-labelledby"]=T["aria-labelledby"]?`${C.value} ${T["aria-labelledby"]}`:C.value,w.value&&T["aria-label"]&&(T["aria-label"]=`${w.value}, ${T["aria-label"]}`)),T}),A=T=>{let M=[];return i&&i.value&&M.push(i.value),M.push("multiselect-option"),M.push(T[s.value]),M.join("-")},S=T=>{let M=[];return i&&i.value&&M.push(i.value),M.push("multiselect-group"),M.push(T.index),M.join("-")},E=T=>{let M=[];return M.push(T),M.join(" ")},D=T=>{let M=[];return M.push(T),M.join(" ")},V=T=>`${T} ❎`;return r.onMounted(()=>{if(i&&i.value&&document&&document.querySelector){let T=document.querySelector(`[for="${i.value}"]`);v.value=T?T.innerText:null}}),{arias:k,ariaLabel:w,ariaAssist:C,ariaControls:y,ariaPlaceholder:_,ariaMultiselectable:b,ariaActiveDescendant:g,ariaOptionId:A,ariaOptionLabel:E,ariaGroupId:S,ariaGroupLabel:D,ariaTagLabel:V}}function yk(t,e,n){const{locale:o,fallbackLocale:i}=r.toRefs(t);return{localize:a=>!a||typeof a!="object"?a:a&&a[o.value]?a[o.value]:a&&o.value&&a[o.value.toUpperCase()]?a[o.value.toUpperCase()]:a&&a[i.value]?a[i.value]:a&&i.value&&a[i.value.toUpperCase()]?a[i.value.toUpperCase()]:a&&Object.keys(a)[0]?a[Object.keys(a)[0]]:""}}function _k(t,e,n){const o=r.ref(null),i=r.ref(null),s=r.ref(null),a=r.ref(null),l=r.ref(null);return{multiselect:o,wrapper:i,tags:s,input:a,dropdown:l}}function Ck(t,e,n,o={}){return n.forEach(i=>{i&&(o={...o,...i(t,e,o)})}),o}var uo={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String}},setup(t,e){return Ck(t,e,[_k,yk,r7,s7,fk,i7,o7,pk,c7,gk,u7,mk,hk,vk])},beforeMount(){var t,e;((e=(t=this.$root.constructor)==null?void 0:t.version)!=null&&e.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const bk=["id","dir"],kk=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],wk=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Ek=["onKeyup","aria-label"],Sk=["onClick"],xk=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Ak=["innerHTML"],Tk=["id"],Nk=["id"],Dk=["id","aria-label","aria-selected"],$k=["data-pointed","onMouseenter","onMousedown"],Bk=["innerHTML"],Mk=["aria-label"],Lk=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Ok=["data-pointed","data-selected","onMouseenter","onMousedown","id","aria-selected","aria-label"],Vk=["innerHTML"],Ik=["innerHTML"],Pk=["value"],Fk=["name","value"],Rk=["name","value"],zk=["id"];function Uk(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",{ref:"multiselect",class:r.normalizeClass(t.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:e[10]||(e[10]=(...a)=>t.handleFocusIn&&t.handleFocusIn(...a)),onFocusout:e[11]||(e[11]=(...a)=>t.handleFocusOut&&t.handleFocusOut(...a)),onKeyup:e[12]||(e[12]=(...a)=>t.handleKeyup&&t.handleKeyup(...a)),onKeydown:e[13]||(e[13]=(...a)=>t.handleKeydown&&t.handleKeydown(...a))},[r.createElementVNode("div",r.mergeProps({class:t.classList.wrapper,onMousedown:e[9]||(e[9]=(...a)=>t.handleMousedown&&t.handleMousedown(...a)),ref:"wrapper",tabindex:t.tabindex,"aria-controls":n.searchable?void 0:t.ariaControls,"aria-placeholder":n.searchable?void 0:t.ariaPlaceholder,"aria-expanded":n.searchable?void 0:t.isOpen,"aria-activedescendant":n.searchable?void 0:t.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:t.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:t.arias),[r.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:e[0]||(e[0]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[1]||(e[1]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[2]||(e[2]=r.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,wk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(r.openBlock(),r.createElementBlock("div",{key:1,class:r.normalizeClass(t.classList.tags),"data-tags":""},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.iv,(a,l,c)=>r.renderSlot(t.$slots,"tag",{option:a,handleTagRemove:t.handleTagRemove,disabled:n.disabled},()=>[(r.openBlock(),r.createElementBlock("span",{class:r.normalizeClass([t.classList.tag,a.disabled?t.classList.tagDisabled:null]),tabindex:"-1",onKeyup:r.withKeys(u=>t.handleTagRemove(a,u),["enter"]),key:c,"aria-label":t.ariaTagLabel(t.localize(a[n.label]))},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagWrapper)},r.toDisplayString(t.localize(a[n.label])),3),!n.disabled&&!a.disabled?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(t.classList.tagRemove),onClick:r.withModifiers(u=>t.handleTagRemove(a,u),["stop"])},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagRemoveIcon)},null,2)],10,Sk)):r.createCommentVNode("v-if",!0)],42,Ek))])),256)),r.createElementVNode("div",{class:r.normalizeClass(t.classList.tagsSearchWrapper),ref:"tags"},[r.createCommentVNode(" Used for measuring search width "),r.createElementVNode("span",{class:r.normalizeClass(t.classList.tagsSearchCopy)},r.toDisplayString(t.search),3),r.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:0,type:n.inputType,modelValue:t.search,value:t.search,class:t.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:e[3]||(e[3]=(...a)=>t.handleSearchInput&&t.handleSearchInput(...a)),onKeypress:e[4]||(e[4]=(...a)=>t.handleKeypress&&t.handleKeypress(...a)),onPaste:e[5]||(e[5]=r.withModifiers((...a)=>t.handlePaste&&t.handlePaste(...a),["stop"])),ref:"input","aria-controls":t.ariaControls,"aria-placeholder":t.ariaPlaceholder,"aria-expanded":t.isOpen,"aria-activedescendant":t.ariaActiveDescendant,"aria-multiselectable":t.ariaMultiselectable,role:"combobox"},{...n.attrs,...t.arias}),null,16,xk)):r.createCommentVNode("v-if",!0)],2)],2)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Single label "),n.mode=="single"&&t.hasSelected&&!t.search&&t.iv?r.renderSlot(t.$slots,"singlelabel",{key:2,value:t.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.singleLabel)},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.singleLabelText)},r.toDisplayString(t.localize(t.iv[n.label])),3)],2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Multiple label "),n.mode=="multiple"&&t.hasSelected&&!t.search?r.renderSlot(t.$slots,"multiplelabel",{key:3,values:t.iv},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.multipleLabel),innerHTML:t.multipleLabelText},null,10,Ak)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Placeholder "),n.placeholder&&!t.hasSelected&&!t.search?r.renderSlot(t.$slots,"placeholder",{key:4},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.placeholder),"aria-hidden":"true"},r.toDisplayString(n.placeholder),3)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Spinner "),n.loading||t.resolving?r.renderSlot(t.$slots,"spinner",{key:5},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.spinner),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Clear "),t.hasSelected&&!n.disabled&&n.canClear&&!t.busy?r.renderSlot(t.$slots,"clear",{key:6,clear:t.clear},()=>[r.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:r.normalizeClass(t.classList.clear),onClick:e[6]||(e[6]=(...a)=>t.clear&&t.clear(...a)),onKeyup:e[7]||(e[7]=r.withKeys((...a)=>t.clear&&t.clear(...a),["enter"]))},[r.createElementVNode("span",{class:r.normalizeClass(t.classList.clearIcon)},null,2)],34)]):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Caret "),n.caret&&n.showOptions?r.renderSlot(t.$slots,"caret",{key:7,handleCaretClick:t.handleCaretClick,isOpen:t.isOpen},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.caret),onClick:e[8]||(e[8]=(...a)=>t.handleCaretClick&&t.handleCaretClick(...a)),"aria-hidden":"true"},null,2)]):r.createCommentVNode("v-if",!0)],16,kk),r.createCommentVNode(" Options "),(r.openBlock(),r.createBlock(r.Teleport,{to:n.appendTo||"body",disabled:!n.appendToBody&&!n.appendTo},[r.createElementVNode("div",{id:`${n.id}-dropdown`,class:r.normalizeClass(t.classList.dropdown),tabindex:"-1",ref:"dropdown"},[r.renderSlot(t.$slots,"beforelist",{options:t.fo}),r.createElementVNode("ul",{class:r.normalizeClass(t.classList.options),id:t.ariaControls,role:"listbox"},[n.groups?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(t.fg,(a,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.group),key:c,id:t.ariaGroupId(a),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),"aria-selected":t.isSelected(a),role:"option"},[a.__CREATE__?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(t.classList.groupLabel(a)),"data-pointed":t.isPointed(a),onMouseenter:u=>t.setPointer(a,l),onMousedown:r.withModifiers(u=>t.handleGroupClick(a),["prevent"])},[r.renderSlot(t.$slots,"grouplabel",{group:a,isSelected:t.isSelected,isPointed:t.isPointed},()=>[r.createElementVNode("span",{innerHTML:t.localize(a[n.groupLabel])},null,8,Bk)])],42,$k)),r.createElementVNode("ul",{class:r.normalizeClass(t.classList.groupOptions),"aria-label":t.ariaGroupLabel(t.localize(a[n.groupLabel])),role:"group"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.__VISIBLE__,(u,d,p)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.option(u,a)),"data-pointed":t.isPointed(u),"data-selected":t.isSelected(u)||void 0,key:p,onMouseenter:f=>t.setPointer(u),onMousedown:r.withModifiers(f=>t.handleOptionClick(u),["prevent"]),id:t.ariaOptionId(u),"aria-selected":t.isSelected(u),"aria-label":t.ariaOptionLabel(t.localize(u[n.label])),role:"option"},[r.renderSlot(t.$slots,"option",{option:u,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[r.createElementVNode("span",null,r.toDisplayString(t.localize(u[n.label])),1)])],42,Lk))),128))],10,Mk)],10,Dk))),128)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(t.fo,(a,l,c)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(t.classList.option(a)),"data-pointed":t.isPointed(a),"data-selected":t.isSelected(a)||void 0,key:c,onMouseenter:u=>t.setPointer(a),onMousedown:r.withModifiers(u=>t.handleOptionClick(a),["prevent"]),id:t.ariaOptionId(a),"aria-selected":t.isSelected(a),"aria-label":t.ariaOptionLabel(t.localize(a[n.label])),role:"option"},[r.renderSlot(t.$slots,"option",{option:a,isSelected:t.isSelected,isPointed:t.isPointed,search:t.search},()=>[r.createElementVNode("span",null,r.toDisplayString(t.localize(a[n.label])),1)])],42,Ok))),128))],10,Nk),t.noOptions?r.renderSlot(t.$slots,"nooptions",{key:0},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.noOptions),innerHTML:t.localize(n.noOptionsText)},null,10,Vk)]):r.createCommentVNode("v-if",!0),t.noResults?r.renderSlot(t.$slots,"noresults",{key:1},()=>[r.createElementVNode("div",{class:r.normalizeClass(t.classList.noResults),innerHTML:t.localize(n.noResultsText)},null,10,Ik)]):r.createCommentVNode("v-if",!0),n.infinite&&t.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(t.classList.inifinite),ref:"infiniteLoader"},[r.renderSlot(t.$slots,"infinite",{},()=>[r.createElementVNode("span",{class:r.normalizeClass(t.classList.inifiniteSpinner)},null,2)])],2)):r.createCommentVNode("v-if",!0),r.renderSlot(t.$slots,"afterlist",{options:t.fo})],10,Tk)],8,["to","disabled"])),r.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(r.openBlock(),r.createElementBlock("input",{key:0,class:r.normalizeClass(t.classList.fakeInput),tabindex:"-1",value:t.textValue,required:""},null,10,Pk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Native input support "),n.nativeSupport?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[n.mode=="single"?(r.openBlock(),r.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:t.plainValue!==void 0?t.plainValue:""},null,8,Fk)):(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(t.plainValue,(a,l)=>(r.openBlock(),r.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:a,key:l},null,8,Rk))),128))],64)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Screen reader assistive text "),n.searchable&&t.hasSelected?(r.openBlock(),r.createElementBlock("div",{key:2,class:r.normalizeClass(t.classList.assist),id:t.ariaAssist,"aria-hidden":"true"},r.toDisplayString(t.ariaLabel),11,zk)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" Create height for empty input "),r.createElementVNode("div",{class:r.normalizeClass(t.classList.spacer)},null,2)],42,bk)}uo.render=Uk;uo.__file="src/Multiselect.vue";const dt=r.defineComponent({__name:"AoMultiselect",props:{detached:{type:Boolean,default:!1},appendTo:{default:void 0},closeOnSelect:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0}},setup(t){const e=t,n=r.toRef(()=>e.appendTo),o=r.ref();return e.detached&&n7({multiselect:o,appendTo:n.value}),(i,s)=>(r.openBlock(),r.createBlock(r.unref(uo),{ref_key:"multiselectRef",ref:o,class:"ao-multiselect","close-on-select":e.closeOnSelect,"clear-on-select":e.clearOnSelect},r.createSlots({_:2},[r.renderList(i.$slots,(a,l)=>({name:l,fn:r.withCtx(c=>[r.renderSlot(i.$slots,l,r.normalizeProps(r.guardReactiveProps(c??{})))])}))]),1032,["close-on-select","clear-on-select"]))}});var jd;function yt(){const t=Hk(),e=t.appContext.config.globalProperties;return{i18next:e.$i18next,t:e.$t.bind(t.proxy)}}function Hk(){const t=r.getCurrentInstance();if(!t)throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");return t}r.defineComponent({props:{translation:{type:String,required:!0}},setup(t,{slots:e}){return()=>{const n=t.translation,o=[];let i,s=0;for(;(i=jd.exec(n))!==null;){o.push(n.substring(s,i.index));const a=e[i[1]];a?o.push(...a()):o.push(i[0]),s=jd.lastIndex}return o.push(n.substring(s)),o}}});async function Kn(t,e){if(e&&t&&t.length-e.length===1){const n=new Set(e.map(l=>l.id)),o=t.filter(l=>!n.has(l.id));if(o.length!==1)return;const i=o[0].id;await r.nextTick();const s=document.getElementById(i);s==null||s.focus(),await r.nextTick();const a=document.getElementById(i);a==null||a.select()}}const qk={class:"ao-tasks__list"},jk=["id","value","readonly","onChange","onKeydown"],Wk={class:"ao-tasks__list-footer"},Zk=r.defineComponent({__name:"AoActivityTasks",props:{activityId:{},tasks:{},isCheckable:{type:Function},users:{},isEditable:{type:Boolean},isTemplate:{type:Boolean}},emits:["add","delete","update"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.ref(null);let a=null,l=null;const c=_=>{_.style.height="auto",_.style.height=`${_.scrollHeight}px`},u=_=>{c(_.target)},d=()=>{var _;(_=s.value)==null||_.querySelectorAll(".ao-subtask__field").forEach(c)},p=()=>{l!==null&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{d(),l=null})};r.watch(()=>o.tasks,(_,b)=>{Kn(_,b),p()},{deep:!0}),r.onMounted(()=>{p(),s.value&&(a=new ResizeObserver(()=>{p()}),a.observe(s.value))}),r.onBeforeUnmount(()=>{a==null||a.disconnect(),l!==null&&cancelAnimationFrame(l)});const f=r.computed(()=>{var _;return((_=o.users)==null?void 0:_.map(b=>({label:`${b.firstName} ${b.lastName}`,value:b.id,avatar:b.avatarUrl})))??[]}),m=()=>{const _=o.tasks.length;i("add",{name:n("task.defaultName",{idx:_+1}),activityId:o.activityId})},h=(_,b)=>{const w=_.target;i("update",{id:b,name:w.value})},v=(_,b)=>{o.isEditable&&i("update",{id:_,isDone:b})},C=_=>{i("delete",{id:_})},y=(_,b)=>{i("update",{id:b,assigneeId:_[0]??null})},g=_=>{_.target.blur()};return(_,b)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"tasksRoot",ref:s,class:"ao-tasks"},[r.createElementVNode("ul",qk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tasks,w=>{var k,A;return r.openBlock(),r.createElementBlock("li",{key:w.id,class:"ao-subtask"},[((k=t.isCheckable)==null?void 0:k.call(t,w))??!1?(r.openBlock(),r.createBlock(de,{key:0,class:"ao-subtask__check","icon-name":w.isDone?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank",disabled:!t.isEditable,variant:"ghost",color:"primary",onClick:()=>v(w.id,!w.isDone)},null,8,["icon-name","disabled","onClick"])):r.createCommentVNode("",!0),r.createElementVNode("textarea",{id:w.id,value:w.name,readonly:!t.isEditable,class:r.normalizeClass(["ao-field__input ao-subtask__field",{"ao-subtask__field--checked":w.isDone}]),rows:"1",onInput:u,onChange:S=>h(S,w.id),onKeydown:r.withKeys(r.withModifiers(g,["prevent"]),["enter"])},null,42,jk),!t.isTemplate&&t.users?(r.openBlock(),r.createBlock(dt,{key:1,value:(A=w.assignee)!=null&&A.id?[w.assignee.id]:[],options:f.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-subtask__assignees",mode:"tags",placeholder:_.$t("feed.filters.assignee.placeholder"),disabled:!t.isEditable,caret:t.isEditable,detached:"","append-to":"body",onChange:S=>y(S,w.id)},{tag:r.withCtx(({option:S,handleTagRemove:E})=>[r.createVNode(Xt,{"user-name":S.label,"avatar-url":S.avatar,"is-closable":!0,onClose:D=>E(S,D)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["value","options","placeholder","disabled","caret","onChange"])):r.createCommentVNode("",!0),t.isEditable?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-subtask__delete","icon-name":"CancelRounded",size:"sm",variant:"ghost",color:"neutral",onClick:()=>C(w.id)},null,8,["onClick"])):r.createCommentVNode("",!0)])}),128))]),r.createElementVNode("div",Wk,[t.isEditable?(r.openBlock(),r.createBlock(de,{key:0,label:_.$t("activity.tasks.add"),"icon-name":"Add",variant:"ghost",color:"primary",onClick:m},null,8,["label"])):r.createCommentVNode("",!0)])],512))}});const Kk={class:"ao-files__placeholder"},Gk={key:0,class:"ao-files__list"},Yk=["onClick"],Jk={class:"ao-file__title"},Xk={class:"ao-file__actions"},Qk={key:0},e9={class:"ao-files__input"},t9={class:"ao-files__button ao-button ao-button--primary ao-button--ghost ao-button--sm"},n9={class:"ao-button__label"},o9={class:"ao-files__dropzone"},r9={class:"ao-files__dropzone-label"},i9=r.defineComponent({__name:"AoActivityDetailsFiles",props:{attachments:{},isEditable:{type:Boolean}},emits:["add","toggleIsDropActive","remove","preview"],setup(t,{emit:e}){const n=e,o=t,i=r.ref(!1),s=["dragenter","dragover","dragleave","drop"];function a(m){n("remove",m)}function l(m){if(!m.url)return;const h=document.createElement("a");h.href=m.url,h.download=m.name,h.target="_blank",h.rel="noopener noreferrer",document.body.appendChild(h),h.click(),h.remove()}function c(m){const h=m.target,v=Array.from(h.files??[]);v.length&&n("add",v),h.value=""}function u(m){m.preventDefault()}r.onMounted(()=>{s.forEach(m=>{document.body.addEventListener(m,u)})}),r.onUnmounted(()=>{s.forEach(m=>{document.body.removeEventListener(m,u)})});function d(){o.isEditable&&(i.value=!0)}function p(){i.value=!1}r.watch(i,m=>{n("toggleIsDropActive",m)});function f(m){var v;if(p(),!o.isEditable)return;const h=Array.from(((v=m.dataTransfer)==null?void 0:v.files)??[]);h.length&&n("add",h)}return(m,h)=>{var v;return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-files__wrapper",{"ao-files__wrapper--drop-active":i.value}]),onDrop:r.withModifiers(f,["prevent"]),onDragenter:r.withModifiers(d,["prevent"]),onDragover:r.withModifiers(d,["prevent"]),onDragleave:r.withModifiers(p,["prevent"])},[r.renderSlot(m.$slots,"default",{},()=>[r.createElementVNode("span",Kk,r.toDisplayString(m.$t("activity.attachment.placeholder.resting")),1)]),(v=t.attachments)!=null&&v.length||t.isEditable?(r.openBlock(),r.createElementBlock("ul",Gk,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.attachments,(C,y)=>(r.openBlock(),r.createElementBlock("li",{key:C.id,class:"ao-file"},[r.createElementVNode("button",{type:"button",class:"ao-file__link",onClick:g=>n("preview",y)},[r.createVNode(ke,{class:"ao-file__icon",name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Jk,r.toDisplayString(C.name),1)],8,Yk),r.createElementVNode("div",Xk,[r.createVNode(de,{"icon-name":"DownloadRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Download",title:"Download",onClick:r.withModifiers(g=>l(C),["stop"])},null,8,["onClick"]),t.isEditable?(r.openBlock(),r.createBlock(de,{key:0,"icon-name":"DeleteOutlineRounded",variant:"ghost",color:"primary",size:"sm",corners:"round","aria-label":"Delete",title:"Delete",onClick:r.withModifiers(g=>a(C),["stop"])},null,8,["onClick"])):r.createCommentVNode("",!0)])]))),128)),t.isEditable?(r.openBlock(),r.createElementBlock("li",Qk,[r.createElementVNode("label",e9,[r.createElementVNode("div",t9,[r.createVNode(ke,{name:"Add",size:"sm"}),r.createElementVNode("span",n9,r.toDisplayString(m.$t("activity.attachment.button.resting")),1)]),r.createElementVNode("input",{class:"input-field",type:"file",name:"pictures",multiple:"",accept:"image/*",onChange:c},null,32)])])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("div",o9,[r.createElementVNode("span",r9,r.toDisplayString(m.$t("activity.attachment.placeholder.active")),1)],512),[[r.vShow,i.value]])],34)}}});var Be={};const s9="Á",a9="á",l9="Ă",c9="ă",u9="∾",d9="∿",f9="∾̳",p9="Â",m9="â",h9="´",g9="А",v9="а",y9="Æ",_9="æ",C9="⁡",b9="𝔄",k9="𝔞",w9="À",E9="à",S9="ℵ",x9="ℵ",A9="Α",T9="α",N9="Ā",D9="ā",$9="⨿",B9="&",M9="&",L9="⩕",O9="⩓",V9="∧",I9="⩜",P9="⩘",F9="⩚",R9="∠",z9="⦤",U9="∠",H9="⦨",q9="⦩",j9="⦪",W9="⦫",Z9="⦬",K9="⦭",G9="⦮",Y9="⦯",J9="∡",X9="∟",Q9="⊾",e8="⦝",t8="∢",n8="Å",o8="⍼",r8="Ą",i8="ą",s8="𝔸",a8="𝕒",l8="⩯",c8="≈",u8="⩰",d8="≊",f8="≋",p8="'",m8="⁡",h8="≈",g8="≊",v8="Å",y8="å",_8="𝒜",C8="𝒶",b8="≔",k8="*",w8="≈",E8="≍",S8="Ã",x8="ã",A8="Ä",T8="ä",N8="∳",D8="⨑",$8="≌",B8="϶",M8="‵",L8="∽",O8="⋍",V8="∖",I8="⫧",P8="⊽",F8="⌅",R8="⌆",z8="⌅",U8="⎵",H8="⎶",q8="≌",j8="Б",W8="б",Z8="„",K8="∵",G8="∵",Y8="∵",J8="⦰",X8="϶",Q8="ℬ",e4="ℬ",t4="Β",n4="β",o4="ℶ",r4="≬",i4="𝔅",s4="𝔟",a4="⋂",l4="◯",c4="⋃",u4="⨀",d4="⨁",f4="⨂",p4="⨆",m4="★",h4="▽",g4="△",v4="⨄",y4="⋁",_4="⋀",C4="⤍",b4="⧫",k4="▪",w4="▴",E4="▾",S4="◂",x4="▸",A4="␣",T4="▒",N4="░",D4="▓",$4="█",B4="=⃥",M4="≡⃥",L4="⫭",O4="⌐",V4="𝔹",I4="𝕓",P4="⊥",F4="⊥",R4="⋈",z4="⧉",U4="┐",H4="╕",q4="╖",j4="╗",W4="┌",Z4="╒",K4="╓",G4="╔",Y4="─",J4="═",X4="┬",Q4="╤",e6="╥",t6="╦",n6="┴",o6="╧",r6="╨",i6="╩",s6="⊟",a6="⊞",l6="⊠",c6="┘",u6="╛",d6="╜",f6="╝",p6="└",m6="╘",h6="╙",g6="╚",v6="│",y6="║",_6="┼",C6="╪",b6="╫",k6="╬",w6="┤",E6="╡",S6="╢",x6="╣",A6="├",T6="╞",N6="╟",D6="╠",$6="‵",B6="˘",M6="˘",L6="¦",O6="𝒷",V6="ℬ",I6="⁏",P6="∽",F6="⋍",R6="⧅",z6="\\",U6="⟈",H6="•",q6="•",j6="≎",W6="⪮",Z6="≏",K6="≎",G6="≏",Y6="Ć",J6="ć",X6="⩄",Q6="⩉",ew="⩋",tw="∩",nw="⋒",ow="⩇",rw="⩀",iw="ⅅ",sw="∩︀",aw="⁁",lw="ˇ",cw="ℭ",uw="⩍",dw="Č",fw="č",pw="Ç",mw="ç",hw="Ĉ",gw="ĉ",vw="∰",yw="⩌",_w="⩐",Cw="Ċ",bw="ċ",kw="¸",ww="¸",Ew="⦲",Sw="¢",xw="·",Aw="·",Tw="𝔠",Nw="ℭ",Dw="Ч",$w="ч",Bw="✓",Mw="✓",Lw="Χ",Ow="χ",Vw="ˆ",Iw="≗",Pw="↺",Fw="↻",Rw="⊛",zw="⊚",Uw="⊝",Hw="⊙",qw="®",jw="Ⓢ",Ww="⊖",Zw="⊕",Kw="⊗",Gw="○",Yw="⧃",Jw="≗",Xw="⨐",Qw="⫯",eE="⧂",tE="∲",nE="”",oE="’",rE="♣",iE="♣",sE=":",aE="∷",lE="⩴",cE="≔",uE="≔",dE=",",fE="@",pE="∁",mE="∘",hE="∁",gE="ℂ",vE="≅",yE="⩭",_E="≡",CE="∮",bE="∯",kE="∮",wE="𝕔",EE="ℂ",SE="∐",xE="∐",AE="©",TE="©",NE="℗",DE="∳",$E="↵",BE="✗",ME="⨯",LE="𝒞",OE="𝒸",VE="⫏",IE="⫑",PE="⫐",FE="⫒",RE="⋯",zE="⤸",UE="⤵",HE="⋞",qE="⋟",jE="↶",WE="⤽",ZE="⩈",KE="⩆",GE="≍",YE="∪",JE="⋓",XE="⩊",QE="⊍",eS="⩅",tS="∪︀",nS="↷",oS="⤼",rS="⋞",iS="⋟",sS="⋎",aS="⋏",lS="¤",cS="↶",uS="↷",dS="⋎",fS="⋏",pS="∲",mS="∱",hS="⌭",gS="†",vS="‡",yS="ℸ",_S="↓",CS="↡",bS="⇓",kS="‐",wS="⫤",ES="⊣",SS="⤏",xS="˝",AS="Ď",TS="ď",NS="Д",DS="д",$S="‡",BS="⇊",MS="ⅅ",LS="ⅆ",OS="⤑",VS="⩷",IS="°",PS="∇",FS="Δ",RS="δ",zS="⦱",US="⥿",HS="𝔇",qS="𝔡",jS="⥥",WS="⇃",ZS="⇂",KS="´",GS="˙",YS="˝",JS="`",XS="˜",QS="⋄",ex="⋄",tx="⋄",nx="♦",ox="♦",rx="¨",ix="ⅆ",sx="ϝ",ax="⋲",lx="÷",cx="÷",ux="⋇",dx="⋇",fx="Ђ",px="ђ",mx="⌞",hx="⌍",gx="$",vx="𝔻",yx="𝕕",_x="¨",Cx="˙",bx="⃜",kx="≐",wx="≑",Ex="≐",Sx="∸",xx="∔",Ax="⊡",Tx="⌆",Nx="∯",Dx="¨",$x="⇓",Bx="⇐",Mx="⇔",Lx="⫤",Ox="⟸",Vx="⟺",Ix="⟹",Px="⇒",Fx="⊨",Rx="⇑",zx="⇕",Ux="∥",Hx="⤓",qx="↓",jx="↓",Wx="⇓",Zx="⇵",Kx="̑",Gx="⇊",Yx="⇃",Jx="⇂",Xx="⥐",Qx="⥞",eA="⥖",tA="↽",nA="⥟",oA="⥗",rA="⇁",iA="↧",sA="⊤",aA="⤐",lA="⌟",cA="⌌",uA="𝒟",dA="𝒹",fA="Ѕ",pA="ѕ",mA="⧶",hA="Đ",gA="đ",vA="⋱",yA="▿",_A="▾",CA="⇵",bA="⥯",kA="⦦",wA="Џ",EA="џ",SA="⟿",xA="É",AA="é",TA="⩮",NA="Ě",DA="ě",$A="Ê",BA="ê",MA="≖",LA="≕",OA="Э",VA="э",IA="⩷",PA="Ė",FA="ė",RA="≑",zA="ⅇ",UA="≒",HA="𝔈",qA="𝔢",jA="⪚",WA="È",ZA="è",KA="⪖",GA="⪘",YA="⪙",JA="∈",XA="⏧",QA="ℓ",eT="⪕",tT="⪗",nT="Ē",oT="ē",rT="∅",iT="∅",sT="◻",aT="∅",lT="▫",cT=" ",uT=" ",dT=" ",fT="Ŋ",pT="ŋ",mT=" ",hT="Ę",gT="ę",vT="𝔼",yT="𝕖",_T="⋕",CT="⧣",bT="⩱",kT="ε",wT="Ε",ET="ε",ST="ϵ",xT="≖",AT="≕",TT="≂",NT="⪖",DT="⪕",$T="⩵",BT="=",MT="≂",LT="≟",OT="⇌",VT="≡",IT="⩸",PT="⧥",FT="⥱",RT="≓",zT="ℯ",UT="ℰ",HT="≐",qT="⩳",jT="≂",WT="Η",ZT="η",KT="Ð",GT="ð",YT="Ë",JT="ë",XT="€",QT="!",eN="∃",tN="∃",nN="ℰ",oN="ⅇ",rN="ⅇ",iN="≒",sN="Ф",aN="ф",lN="♀",cN="ffi",uN="ff",dN="ffl",fN="𝔉",pN="𝔣",mN="fi",hN="◼",gN="▪",vN="fj",yN="♭",_N="fl",CN="▱",bN="ƒ",kN="𝔽",wN="𝕗",EN="∀",SN="∀",xN="⋔",AN="⫙",TN="ℱ",NN="⨍",DN="½",$N="⅓",BN="¼",MN="⅕",LN="⅙",ON="⅛",VN="⅔",IN="⅖",PN="¾",FN="⅗",RN="⅜",zN="⅘",UN="⅚",HN="⅝",qN="⅞",jN="⁄",WN="⌢",ZN="𝒻",KN="ℱ",GN="ǵ",YN="Γ",JN="γ",XN="Ϝ",QN="ϝ",eD="⪆",tD="Ğ",nD="ğ",oD="Ģ",rD="Ĝ",iD="ĝ",sD="Г",aD="г",lD="Ġ",cD="ġ",uD="≥",dD="≧",fD="⪌",pD="⋛",mD="≥",hD="≧",gD="⩾",vD="⪩",yD="⩾",_D="⪀",CD="⪂",bD="⪄",kD="⋛︀",wD="⪔",ED="𝔊",SD="𝔤",xD="≫",AD="⋙",TD="⋙",ND="ℷ",DD="Ѓ",$D="ѓ",BD="⪥",MD="≷",LD="⪒",OD="⪤",VD="⪊",ID="⪊",PD="⪈",FD="≩",RD="⪈",zD="≩",UD="⋧",HD="𝔾",qD="𝕘",jD="`",WD="≥",ZD="⋛",KD="≧",GD="⪢",YD="≷",JD="⩾",XD="≳",QD="𝒢",e$="ℊ",t$="≳",n$="⪎",o$="⪐",r$="⪧",i$="⩺",s$=">",a$=">",l$="≫",c$="⋗",u$="⦕",d$="⩼",f$="⪆",p$="⥸",m$="⋗",h$="⋛",g$="⪌",v$="≷",y$="≳",_$="≩︀",C$="≩︀",b$="ˇ",k$=" ",w$="½",E$="ℋ",S$="Ъ",x$="ъ",A$="⥈",T$="↔",N$="⇔",D$="↭",$$="^",B$="ℏ",M$="Ĥ",L$="ĥ",O$="♥",V$="♥",I$="…",P$="⊹",F$="𝔥",R$="ℌ",z$="ℋ",U$="⤥",H$="⤦",q$="⇿",j$="∻",W$="↩",Z$="↪",K$="𝕙",G$="ℍ",Y$="―",J$="─",X$="𝒽",Q$="ℋ",eB="ℏ",tB="Ħ",nB="ħ",oB="≎",rB="≏",iB="⁃",sB="‐",aB="Í",lB="í",cB="⁣",uB="Î",dB="î",fB="И",pB="и",mB="İ",hB="Е",gB="е",vB="¡",yB="⇔",_B="𝔦",CB="ℑ",bB="Ì",kB="ì",wB="ⅈ",EB="⨌",SB="∭",xB="⧜",AB="℩",TB="IJ",NB="ij",DB="Ī",$B="ī",BB="ℑ",MB="ⅈ",LB="ℐ",OB="ℑ",VB="ı",IB="ℑ",PB="⊷",FB="Ƶ",RB="⇒",zB="℅",UB="∞",HB="⧝",qB="ı",jB="⊺",WB="∫",ZB="∬",KB="ℤ",GB="∫",YB="⊺",JB="⋂",XB="⨗",QB="⨼",eM="⁣",tM="⁢",nM="Ё",oM="ё",rM="Į",iM="į",sM="𝕀",aM="𝕚",lM="Ι",cM="ι",uM="⨼",dM="¿",fM="𝒾",pM="ℐ",mM="∈",hM="⋵",gM="⋹",vM="⋴",yM="⋳",_M="∈",CM="⁢",bM="Ĩ",kM="ĩ",wM="І",EM="і",SM="Ï",xM="ï",AM="Ĵ",TM="ĵ",NM="Й",DM="й",$M="𝔍",BM="𝔧",MM="ȷ",LM="𝕁",OM="𝕛",VM="𝒥",IM="𝒿",PM="Ј",FM="ј",RM="Є",zM="є",UM="Κ",HM="κ",qM="ϰ",jM="Ķ",WM="ķ",ZM="К",KM="к",GM="𝔎",YM="𝔨",JM="ĸ",XM="Х",QM="х",eL="Ќ",tL="ќ",nL="𝕂",oL="𝕜",rL="𝒦",iL="𝓀",sL="⇚",aL="Ĺ",lL="ĺ",cL="⦴",uL="ℒ",dL="Λ",fL="λ",pL="⟨",mL="⟪",hL="⦑",gL="⟨",vL="⪅",yL="ℒ",_L="«",CL="⇤",bL="⤟",kL="←",wL="↞",EL="⇐",SL="⤝",xL="↩",AL="↫",TL="⤹",NL="⥳",DL="↢",$L="⤙",BL="⤛",ML="⪫",LL="⪭",OL="⪭︀",VL="⤌",IL="⤎",PL="❲",FL="{",RL="[",zL="⦋",UL="⦏",HL="⦍",qL="Ľ",jL="ľ",WL="Ļ",ZL="ļ",KL="⌈",GL="{",YL="Л",JL="л",XL="⤶",QL="“",eO="„",tO="⥧",nO="⥋",oO="↲",rO="≤",iO="≦",sO="⟨",aO="⇤",lO="←",cO="←",uO="⇐",dO="⇆",fO="↢",pO="⌈",mO="⟦",hO="⥡",gO="⥙",vO="⇃",yO="⌊",_O="↽",CO="↼",bO="⇇",kO="↔",wO="↔",EO="⇔",SO="⇆",xO="⇋",AO="↭",TO="⥎",NO="↤",DO="⊣",$O="⥚",BO="⋋",MO="⧏",LO="⊲",OO="⊴",VO="⥑",IO="⥠",PO="⥘",FO="↿",RO="⥒",zO="↼",UO="⪋",HO="⋚",qO="≤",jO="≦",WO="⩽",ZO="⪨",KO="⩽",GO="⩿",YO="⪁",JO="⪃",XO="⋚︀",QO="⪓",eV="⪅",tV="⋖",nV="⋚",oV="⪋",rV="⋚",iV="≦",sV="≶",aV="≶",lV="⪡",cV="≲",uV="⩽",dV="≲",fV="⥼",pV="⌊",mV="𝔏",hV="𝔩",gV="≶",vV="⪑",yV="⥢",_V="↽",CV="↼",bV="⥪",kV="▄",wV="Љ",EV="љ",SV="⇇",xV="≪",AV="⋘",TV="⌞",NV="⇚",DV="⥫",$V="◺",BV="Ŀ",MV="ŀ",LV="⎰",OV="⎰",VV="⪉",IV="⪉",PV="⪇",FV="≨",RV="⪇",zV="≨",UV="⋦",HV="⟬",qV="⇽",jV="⟦",WV="⟵",ZV="⟵",KV="⟸",GV="⟷",YV="⟷",JV="⟺",XV="⟼",QV="⟶",eI="⟶",tI="⟹",nI="↫",oI="↬",rI="⦅",iI="𝕃",sI="𝕝",aI="⨭",lI="⨴",cI="∗",uI="_",dI="↙",fI="↘",pI="◊",mI="◊",hI="⧫",gI="(",vI="⦓",yI="⇆",_I="⌟",CI="⇋",bI="⥭",kI="‎",wI="⊿",EI="‹",SI="𝓁",xI="ℒ",AI="↰",TI="↰",NI="≲",DI="⪍",$I="⪏",BI="[",MI="‘",LI="‚",OI="Ł",VI="ł",II="⪦",PI="⩹",FI="<",RI="<",zI="≪",UI="⋖",HI="⋋",qI="⋉",jI="⥶",WI="⩻",ZI="◃",KI="⊴",GI="◂",YI="⦖",JI="⥊",XI="⥦",QI="≨︀",eP="≨︀",tP="¯",nP="♂",oP="✠",rP="✠",iP="↦",sP="↦",aP="↧",lP="↤",cP="↥",uP="▮",dP="⨩",fP="М",pP="м",mP="—",hP="∺",gP="∡",vP=" ",yP="ℳ",_P="𝔐",CP="𝔪",bP="℧",kP="µ",wP="*",EP="⫰",SP="∣",xP="·",AP="⊟",TP="−",NP="∸",DP="⨪",$P="∓",BP="⫛",MP="…",LP="∓",OP="⊧",VP="𝕄",IP="𝕞",PP="∓",FP="𝓂",RP="ℳ",zP="∾",UP="Μ",HP="μ",qP="⊸",jP="⊸",WP="∇",ZP="Ń",KP="ń",GP="∠⃒",YP="≉",JP="⩰̸",XP="≋̸",QP="ʼn",eF="≉",tF="♮",nF="ℕ",oF="♮",rF=" ",iF="≎̸",sF="≏̸",aF="⩃",lF="Ň",cF="ň",uF="Ņ",dF="ņ",fF="≇",pF="⩭̸",mF="⩂",hF="Н",gF="н",vF="–",yF="⤤",_F="↗",CF="⇗",bF="↗",kF="≠",wF="≐̸",EF="​",SF="​",xF="​",AF="​",TF="≢",NF="⤨",DF="≂̸",$F="≫",BF="≪",MF=`
2
2
  `,LF="∄",OF="∄",VF="𝔑",IF="𝔫",PF="≧̸",FF="≱",RF="≱",zF="≧̸",UF="⩾̸",HF="⩾̸",qF="⋙̸",jF="≵",WF="≫⃒",ZF="≯",KF="≯",GF="≫̸",YF="↮",JF="⇎",XF="⫲",QF="∋",eR="⋼",tR="⋺",nR="∋",oR="Њ",rR="њ",iR="↚",sR="⇍",aR="‥",lR="≦̸",cR="≰",uR="↚",dR="⇍",fR="↮",pR="⇎",mR="≰",hR="≦̸",gR="⩽̸",vR="⩽̸",yR="≮",_R="⋘̸",CR="≴",bR="≪⃒",kR="≮",wR="⋪",ER="⋬",SR="≪̸",xR="∤",AR="⁠",TR=" ",NR="𝕟",DR="ℕ",$R="⫬",BR="¬",MR="≢",LR="≭",OR="∦",VR="∉",IR="≠",PR="≂̸",FR="∄",RR="≯",zR="≱",UR="≧̸",HR="≫̸",qR="≹",jR="⩾̸",WR="≵",ZR="≎̸",KR="≏̸",GR="∉",YR="⋵̸",JR="⋹̸",XR="∉",QR="⋷",ez="⋶",tz="⧏̸",nz="⋪",oz="⋬",rz="≮",iz="≰",sz="≸",az="≪̸",lz="⩽̸",cz="≴",uz="⪢̸",dz="⪡̸",fz="∌",pz="∌",mz="⋾",hz="⋽",gz="⊀",vz="⪯̸",yz="⋠",_z="∌",Cz="⧐̸",bz="⋫",kz="⋭",wz="⊏̸",Ez="⋢",Sz="⊐̸",xz="⋣",Az="⊂⃒",Tz="⊈",Nz="⊁",Dz="⪰̸",$z="⋡",Bz="≿̸",Mz="⊃⃒",Lz="⊉",Oz="≁",Vz="≄",Iz="≇",Pz="≉",Fz="∤",Rz="∦",zz="∦",Uz="⫽⃥",Hz="∂̸",qz="⨔",jz="⊀",Wz="⋠",Zz="⊀",Kz="⪯̸",Gz="⪯̸",Yz="⤳̸",Jz="↛",Xz="⇏",Qz="↝̸",eU="↛",tU="⇏",nU="⋫",oU="⋭",rU="⊁",iU="⋡",sU="⪰̸",aU="𝒩",lU="𝓃",cU="∤",uU="∦",dU="≁",fU="≄",pU="≄",mU="∤",hU="∦",gU="⋢",vU="⋣",yU="⊄",_U="⫅̸",CU="⊈",bU="⊂⃒",kU="⊈",wU="⫅̸",EU="⊁",SU="⪰̸",xU="⊅",AU="⫆̸",TU="⊉",NU="⊃⃒",DU="⊉",$U="⫆̸",BU="≹",MU="Ñ",LU="ñ",OU="≸",VU="⋪",IU="⋬",PU="⋫",FU="⋭",RU="Ν",zU="ν",UU="#",HU="№",qU=" ",jU="≍⃒",WU="⊬",ZU="⊭",KU="⊮",GU="⊯",YU="≥⃒",JU=">⃒",XU="⤄",QU="⧞",eH="⤂",tH="≤⃒",nH="<⃒",oH="⊴⃒",rH="⤃",iH="⊵⃒",sH="∼⃒",aH="⤣",lH="↖",cH="⇖",uH="↖",dH="⤧",fH="Ó",pH="ó",mH="⊛",hH="Ô",gH="ô",vH="⊚",yH="О",_H="о",CH="⊝",bH="Ő",kH="ő",wH="⨸",EH="⊙",SH="⦼",xH="Œ",AH="œ",TH="⦿",NH="𝔒",DH="𝔬",$H="˛",BH="Ò",MH="ò",LH="⧁",OH="⦵",VH="Ω",IH="∮",PH="↺",FH="⦾",RH="⦻",zH="‾",UH="⧀",HH="Ō",qH="ō",jH="Ω",WH="ω",ZH="Ο",KH="ο",GH="⦶",YH="⊖",JH="𝕆",XH="𝕠",QH="⦷",eq="“",tq="‘",nq="⦹",oq="⊕",rq="↻",iq="⩔",sq="∨",aq="⩝",lq="ℴ",cq="ℴ",uq="ª",dq="º",fq="⊶",pq="⩖",mq="⩗",hq="⩛",gq="Ⓢ",vq="𝒪",yq="ℴ",_q="Ø",Cq="ø",bq="⊘",kq="Õ",wq="õ",Eq="⨶",Sq="⨷",xq="⊗",Aq="Ö",Tq="ö",Nq="⌽",Dq="‾",$q="⏞",Bq="⎴",Mq="⏜",Lq="¶",Oq="∥",Vq="∥",Iq="⫳",Pq="⫽",Fq="∂",Rq="∂",zq="П",Uq="п",Hq="%",qq=".",jq="‰",Wq="⊥",Zq="‱",Kq="𝔓",Gq="𝔭",Yq="Φ",Jq="φ",Xq="ϕ",Qq="ℳ",ej="☎",tj="Π",nj="π",oj="⋔",rj="ϖ",ij="ℏ",sj="ℎ",aj="ℏ",lj="⨣",cj="⊞",uj="⨢",dj="+",fj="∔",pj="⨥",mj="⩲",hj="±",gj="±",vj="⨦",yj="⨧",_j="±",Cj="ℌ",bj="⨕",kj="𝕡",wj="ℙ",Ej="£",Sj="⪷",xj="⪻",Aj="≺",Tj="≼",Nj="⪷",Dj="≺",$j="≼",Bj="≺",Mj="⪯",Lj="≼",Oj="≾",Vj="⪯",Ij="⪹",Pj="⪵",Fj="⋨",Rj="⪯",zj="⪳",Uj="≾",Hj="′",qj="″",jj="ℙ",Wj="⪹",Zj="⪵",Kj="⋨",Gj="∏",Yj="∏",Jj="⌮",Xj="⌒",Qj="⌓",eW="∝",tW="∝",nW="∷",oW="∝",rW="≾",iW="⊰",sW="𝒫",aW="𝓅",lW="Ψ",cW="ψ",uW=" ",dW="𝔔",fW="𝔮",pW="⨌",mW="𝕢",hW="ℚ",gW="⁗",vW="𝒬",yW="𝓆",_W="ℍ",CW="⨖",bW="?",kW="≟",wW='"',EW='"',SW="⇛",xW="∽̱",AW="Ŕ",TW="ŕ",NW="√",DW="⦳",$W="⟩",BW="⟫",MW="⦒",LW="⦥",OW="⟩",VW="»",IW="⥵",PW="⇥",FW="⤠",RW="⤳",zW="→",UW="↠",HW="⇒",qW="⤞",jW="↪",WW="↬",ZW="⥅",KW="⥴",GW="⤖",YW="↣",JW="↝",XW="⤚",QW="⤜",eZ="∶",tZ="ℚ",nZ="⤍",oZ="⤏",rZ="⤐",iZ="❳",sZ="}",aZ="]",lZ="⦌",cZ="⦎",uZ="⦐",dZ="Ř",fZ="ř",pZ="Ŗ",mZ="ŗ",hZ="⌉",gZ="}",vZ="Р",yZ="р",_Z="⤷",CZ="⥩",bZ="”",kZ="”",wZ="↳",EZ="ℜ",SZ="ℛ",xZ="ℜ",AZ="ℝ",TZ="ℜ",NZ="▭",DZ="®",$Z="®",BZ="∋",MZ="⇋",LZ="⥯",OZ="⥽",VZ="⌋",IZ="𝔯",PZ="ℜ",FZ="⥤",RZ="⇁",zZ="⇀",UZ="⥬",HZ="Ρ",qZ="ρ",jZ="ϱ",WZ="⟩",ZZ="⇥",KZ="→",GZ="→",YZ="⇒",JZ="⇄",XZ="↣",QZ="⌉",eK="⟧",tK="⥝",nK="⥕",oK="⇂",rK="⌋",iK="⇁",sK="⇀",aK="⇄",lK="⇌",cK="⇉",uK="↝",dK="↦",fK="⊢",pK="⥛",mK="⋌",hK="⧐",gK="⊳",vK="⊵",yK="⥏",_K="⥜",CK="⥔",bK="↾",kK="⥓",wK="⇀",EK="˚",SK="≓",xK="⇄",AK="⇌",TK="‏",NK="⎱",DK="⎱",$K="⫮",BK="⟭",MK="⇾",LK="⟧",OK="⦆",VK="𝕣",IK="ℝ",PK="⨮",FK="⨵",RK="⥰",zK=")",UK="⦔",HK="⨒",qK="⇉",jK="⇛",WK="›",ZK="𝓇",KK="ℛ",GK="↱",YK="↱",JK="]",XK="’",QK="’",eG="⋌",tG="⋊",nG="▹",oG="⊵",rG="▸",iG="⧎",sG="⧴",aG="⥨",lG="℞",cG="Ś",uG="ś",dG="‚",fG="⪸",pG="Š",mG="š",hG="⪼",gG="≻",vG="≽",yG="⪰",_G="⪴",CG="Ş",bG="ş",kG="Ŝ",wG="ŝ",EG="⪺",SG="⪶",xG="⋩",AG="⨓",TG="≿",NG="С",DG="с",$G="⊡",BG="⋅",MG="⩦",LG="⤥",OG="↘",VG="⇘",IG="↘",PG="§",FG=";",RG="⤩",zG="∖",UG="∖",HG="✶",qG="𝔖",jG="𝔰",WG="⌢",ZG="♯",KG="Щ",GG="щ",YG="Ш",JG="ш",XG="↓",QG="←",eY="∣",tY="∥",nY="→",oY="↑",rY="­",iY="Σ",sY="σ",aY="ς",lY="ς",cY="∼",uY="⩪",dY="≃",fY="≃",pY="⪞",mY="⪠",hY="⪝",gY="⪟",vY="≆",yY="⨤",_Y="⥲",CY="←",bY="∘",kY="∖",wY="⨳",EY="⧤",SY="∣",xY="⌣",AY="⪪",TY="⪬",NY="⪬︀",DY="Ь",$Y="ь",BY="⌿",MY="⧄",LY="/",OY="𝕊",VY="𝕤",IY="♠",PY="♠",FY="∥",RY="⊓",zY="⊓︀",UY="⊔",HY="⊔︀",qY="√",jY="⊏",WY="⊑",ZY="⊏",KY="⊑",GY="⊐",YY="⊒",JY="⊐",XY="⊒",QY="□",eJ="□",tJ="⊓",nJ="⊏",oJ="⊑",rJ="⊐",iJ="⊒",sJ="⊔",aJ="▪",lJ="□",cJ="▪",uJ="→",dJ="𝒮",fJ="𝓈",pJ="∖",mJ="⌣",hJ="⋆",gJ="⋆",vJ="☆",yJ="★",_J="ϵ",CJ="ϕ",bJ="¯",kJ="⊂",wJ="⋐",EJ="⪽",SJ="⫅",xJ="⊆",AJ="⫃",TJ="⫁",NJ="⫋",DJ="⊊",$J="⪿",BJ="⥹",MJ="⊂",LJ="⋐",OJ="⊆",VJ="⫅",IJ="⊆",PJ="⊊",FJ="⫋",RJ="⫇",zJ="⫕",UJ="⫓",HJ="⪸",qJ="≻",jJ="≽",WJ="≻",ZJ="⪰",KJ="≽",GJ="≿",YJ="⪰",JJ="⪺",XJ="⪶",QJ="⋩",eX="≿",tX="∋",nX="∑",oX="∑",rX="♪",iX="¹",sX="²",aX="³",lX="⊃",cX="⋑",uX="⪾",dX="⫘",fX="⫆",pX="⊇",mX="⫄",hX="⊃",gX="⊇",vX="⟉",yX="⫗",_X="⥻",CX="⫂",bX="⫌",kX="⊋",wX="⫀",EX="⊃",SX="⋑",xX="⊇",AX="⫆",TX="⊋",NX="⫌",DX="⫈",$X="⫔",BX="⫖",MX="⤦",LX="↙",OX="⇙",VX="↙",IX="⤪",PX="ß",FX=" ",RX="⌖",zX="Τ",UX="τ",HX="⎴",qX="Ť",jX="ť",WX="Ţ",ZX="ţ",KX="Т",GX="т",YX="⃛",JX="⌕",XX="𝔗",QX="𝔱",eQ="∴",tQ="∴",nQ="∴",oQ="Θ",rQ="θ",iQ="ϑ",sQ="ϑ",aQ="≈",lQ="∼",cQ="  ",uQ=" ",dQ=" ",fQ="≈",pQ="∼",mQ="Þ",hQ="þ",gQ="˜",vQ="∼",yQ="≃",_Q="≅",CQ="≈",bQ="⨱",kQ="⊠",wQ="×",EQ="⨰",SQ="∭",xQ="⤨",AQ="⌶",TQ="⫱",NQ="⊤",DQ="𝕋",$Q="𝕥",BQ="⫚",MQ="⤩",LQ="‴",OQ="™",VQ="™",IQ="▵",PQ="▿",FQ="◃",RQ="⊴",zQ="≜",UQ="▹",HQ="⊵",qQ="◬",jQ="≜",WQ="⨺",ZQ="⃛",KQ="⨹",GQ="⧍",YQ="⨻",JQ="⏢",XQ="𝒯",QQ="𝓉",eee="Ц",tee="ц",nee="Ћ",oee="ћ",ree="Ŧ",iee="ŧ",see="≬",aee="↞",lee="↠",cee="Ú",uee="ú",dee="↑",fee="↟",pee="⇑",mee="⥉",hee="Ў",gee="ў",vee="Ŭ",yee="ŭ",_ee="Û",Cee="û",bee="У",kee="у",wee="⇅",Eee="Ű",See="ű",xee="⥮",Aee="⥾",Tee="𝔘",Nee="𝔲",Dee="Ù",$ee="ù",Bee="⥣",Mee="↿",Lee="↾",Oee="▀",Vee="⌜",Iee="⌜",Pee="⌏",Fee="◸",Ree="Ū",zee="ū",Uee="¨",Hee="_",qee="⏟",jee="⎵",Wee="⏝",Zee="⋃",Kee="⊎",Gee="Ų",Yee="ų",Jee="𝕌",Xee="𝕦",Qee="⤒",ete="↑",tte="↑",nte="⇑",ote="⇅",rte="↕",ite="↕",ste="⇕",ate="⥮",lte="↿",cte="↾",ute="⊎",dte="↖",fte="↗",pte="υ",mte="ϒ",hte="ϒ",gte="Υ",vte="υ",yte="↥",_te="⊥",Cte="⇈",bte="⌝",kte="⌝",wte="⌎",Ete="Ů",Ste="ů",xte="◹",Ate="𝒰",Tte="𝓊",Nte="⋰",Dte="Ũ",$te="ũ",Bte="▵",Mte="▴",Lte="⇈",Ote="Ü",Vte="ü",Ite="⦧",Pte="⦜",Fte="ϵ",Rte="ϰ",zte="∅",Ute="ϕ",Hte="ϖ",qte="∝",jte="↕",Wte="⇕",Zte="ϱ",Kte="ς",Gte="⊊︀",Yte="⫋︀",Jte="⊋︀",Xte="⫌︀",Qte="ϑ",ene="⊲",tne="⊳",nne="⫨",one="⫫",rne="⫩",ine="В",sne="в",ane="⊢",lne="⊨",cne="⊩",une="⊫",dne="⫦",fne="⊻",pne="∨",mne="⋁",hne="≚",gne="⋮",vne="|",yne="‖",_ne="|",Cne="‖",bne="∣",kne="|",wne="❘",Ene="≀",Sne=" ",xne="𝔙",Ane="𝔳",Tne="⊲",Nne="⊂⃒",Dne="⊃⃒",$ne="𝕍",Bne="𝕧",Mne="∝",Lne="⊳",One="𝒱",Vne="𝓋",Ine="⫋︀",Pne="⊊︀",Fne="⫌︀",Rne="⊋︀",zne="⊪",Une="⦚",Hne="Ŵ",qne="ŵ",jne="⩟",Wne="∧",Zne="⋀",Kne="≙",Gne="℘",Yne="𝔚",Jne="𝔴",Xne="𝕎",Qne="𝕨",eoe="℘",toe="≀",noe="≀",ooe="𝒲",roe="𝓌",ioe="⋂",soe="◯",aoe="⋃",loe="▽",coe="𝔛",uoe="𝔵",doe="⟷",foe="⟺",poe="Ξ",moe="ξ",hoe="⟵",goe="⟸",voe="⟼",yoe="⋻",_oe="⨀",Coe="𝕏",boe="𝕩",koe="⨁",woe="⨂",Eoe="⟶",Soe="⟹",xoe="𝒳",Aoe="𝓍",Toe="⨆",Noe="⨄",Doe="△",$oe="⋁",Boe="⋀",Moe="Ý",Loe="ý",Ooe="Я",Voe="я",Ioe="Ŷ",Poe="ŷ",Foe="Ы",Roe="ы",zoe="¥",Uoe="𝔜",Hoe="𝔶",qoe="Ї",joe="ї",Woe="𝕐",Zoe="𝕪",Koe="𝒴",Goe="𝓎",Yoe="Ю",Joe="ю",Xoe="ÿ",Qoe="Ÿ",ere="Ź",tre="ź",nre="Ž",ore="ž",rre="З",ire="з",sre="Ż",are="ż",lre="ℨ",cre="​",ure="Ζ",dre="ζ",fre="𝔷",pre="ℨ",mre="Ж",hre="ж",gre="⇝",vre="𝕫",yre="ℤ",_re="𝒵",Cre="𝓏",bre="‍",kre="‌",wre={Aacute:s9,aacute:a9,Abreve:l9,abreve:c9,ac:u9,acd:d9,acE:f9,Acirc:p9,acirc:m9,acute:h9,Acy:g9,acy:v9,AElig:y9,aelig:_9,af:C9,Afr:b9,afr:k9,Agrave:w9,agrave:E9,alefsym:S9,aleph:x9,Alpha:A9,alpha:T9,Amacr:N9,amacr:D9,amalg:$9,amp:B9,AMP:M9,andand:L9,And:O9,and:V9,andd:I9,andslope:P9,andv:F9,ang:R9,ange:z9,angle:U9,angmsdaa:H9,angmsdab:q9,angmsdac:j9,angmsdad:W9,angmsdae:Z9,angmsdaf:K9,angmsdag:G9,angmsdah:Y9,angmsd:J9,angrt:X9,angrtvb:Q9,angrtvbd:e8,angsph:t8,angst:n8,angzarr:o8,Aogon:r8,aogon:i8,Aopf:s8,aopf:a8,apacir:l8,ap:c8,apE:u8,ape:d8,apid:f8,apos:p8,ApplyFunction:m8,approx:h8,approxeq:g8,Aring:v8,aring:y8,Ascr:_8,ascr:C8,Assign:b8,ast:k8,asymp:w8,asympeq:E8,Atilde:S8,atilde:x8,Auml:A8,auml:T8,awconint:N8,awint:D8,backcong:$8,backepsilon:B8,backprime:M8,backsim:L8,backsimeq:O8,Backslash:V8,Barv:I8,barvee:P8,barwed:F8,Barwed:R8,barwedge:z8,bbrk:U8,bbrktbrk:H8,bcong:q8,Bcy:j8,bcy:W8,bdquo:Z8,becaus:K8,because:G8,Because:Y8,bemptyv:J8,bepsi:X8,bernou:Q8,Bernoullis:e4,Beta:t4,beta:n4,beth:o4,between:r4,Bfr:i4,bfr:s4,bigcap:a4,bigcirc:l4,bigcup:c4,bigodot:u4,bigoplus:d4,bigotimes:f4,bigsqcup:p4,bigstar:m4,bigtriangledown:h4,bigtriangleup:g4,biguplus:v4,bigvee:y4,bigwedge:_4,bkarow:C4,blacklozenge:b4,blacksquare:k4,blacktriangle:w4,blacktriangledown:E4,blacktriangleleft:S4,blacktriangleright:x4,blank:A4,blk12:T4,blk14:N4,blk34:D4,block:$4,bne:B4,bnequiv:M4,bNot:L4,bnot:O4,Bopf:V4,bopf:I4,bot:P4,bottom:F4,bowtie:R4,boxbox:z4,boxdl:U4,boxdL:H4,boxDl:q4,boxDL:j4,boxdr:W4,boxdR:Z4,boxDr:K4,boxDR:G4,boxh:Y4,boxH:J4,boxhd:X4,boxHd:Q4,boxhD:e6,boxHD:t6,boxhu:n6,boxHu:o6,boxhU:r6,boxHU:i6,boxminus:s6,boxplus:a6,boxtimes:l6,boxul:c6,boxuL:u6,boxUl:d6,boxUL:f6,boxur:p6,boxuR:m6,boxUr:h6,boxUR:g6,boxv:v6,boxV:y6,boxvh:_6,boxvH:C6,boxVh:b6,boxVH:k6,boxvl:w6,boxvL:E6,boxVl:S6,boxVL:x6,boxvr:A6,boxvR:T6,boxVr:N6,boxVR:D6,bprime:$6,breve:B6,Breve:M6,brvbar:L6,bscr:O6,Bscr:V6,bsemi:I6,bsim:P6,bsime:F6,bsolb:R6,bsol:z6,bsolhsub:U6,bull:H6,bullet:q6,bump:j6,bumpE:W6,bumpe:Z6,Bumpeq:K6,bumpeq:G6,Cacute:Y6,cacute:J6,capand:X6,capbrcup:Q6,capcap:ew,cap:tw,Cap:nw,capcup:ow,capdot:rw,CapitalDifferentialD:iw,caps:sw,caret:aw,caron:lw,Cayleys:cw,ccaps:uw,Ccaron:dw,ccaron:fw,Ccedil:pw,ccedil:mw,Ccirc:hw,ccirc:gw,Cconint:vw,ccups:yw,ccupssm:_w,Cdot:Cw,cdot:bw,cedil:kw,Cedilla:ww,cemptyv:Ew,cent:Sw,centerdot:xw,CenterDot:Aw,cfr:Tw,Cfr:Nw,CHcy:Dw,chcy:$w,check:Bw,checkmark:Mw,Chi:Lw,chi:Ow,circ:Vw,circeq:Iw,circlearrowleft:Pw,circlearrowright:Fw,circledast:Rw,circledcirc:zw,circleddash:Uw,CircleDot:Hw,circledR:qw,circledS:jw,CircleMinus:Ww,CirclePlus:Zw,CircleTimes:Kw,cir:Gw,cirE:Yw,cire:Jw,cirfnint:Xw,cirmid:Qw,cirscir:eE,ClockwiseContourIntegral:tE,CloseCurlyDoubleQuote:nE,CloseCurlyQuote:oE,clubs:rE,clubsuit:iE,colon:sE,Colon:aE,Colone:lE,colone:cE,coloneq:uE,comma:dE,commat:fE,comp:pE,compfn:mE,complement:hE,complexes:gE,cong:vE,congdot:yE,Congruent:_E,conint:CE,Conint:bE,ContourIntegral:kE,copf:wE,Copf:EE,coprod:SE,Coproduct:xE,copy:AE,COPY:TE,copysr:NE,CounterClockwiseContourIntegral:DE,crarr:$E,cross:BE,Cross:ME,Cscr:LE,cscr:OE,csub:VE,csube:IE,csup:PE,csupe:FE,ctdot:RE,cudarrl:zE,cudarrr:UE,cuepr:HE,cuesc:qE,cularr:jE,cularrp:WE,cupbrcap:ZE,cupcap:KE,CupCap:GE,cup:YE,Cup:JE,cupcup:XE,cupdot:QE,cupor:eS,cups:tS,curarr:nS,curarrm:oS,curlyeqprec:rS,curlyeqsucc:iS,curlyvee:sS,curlywedge:aS,curren:lS,curvearrowleft:cS,curvearrowright:uS,cuvee:dS,cuwed:fS,cwconint:pS,cwint:mS,cylcty:hS,dagger:gS,Dagger:vS,daleth:yS,darr:_S,Darr:CS,dArr:bS,dash:kS,Dashv:wS,dashv:ES,dbkarow:SS,dblac:xS,Dcaron:AS,dcaron:TS,Dcy:NS,dcy:DS,ddagger:$S,ddarr:BS,DD:MS,dd:LS,DDotrahd:OS,ddotseq:VS,deg:IS,Del:PS,Delta:FS,delta:RS,demptyv:zS,dfisht:US,Dfr:HS,dfr:qS,dHar:jS,dharl:WS,dharr:ZS,DiacriticalAcute:KS,DiacriticalDot:GS,DiacriticalDoubleAcute:YS,DiacriticalGrave:JS,DiacriticalTilde:XS,diam:QS,diamond:ex,Diamond:tx,diamondsuit:nx,diams:ox,die:rx,DifferentialD:ix,digamma:sx,disin:ax,div:lx,divide:cx,divideontimes:ux,divonx:dx,DJcy:fx,djcy:px,dlcorn:mx,dlcrop:hx,dollar:gx,Dopf:vx,dopf:yx,Dot:_x,dot:Cx,DotDot:bx,doteq:kx,doteqdot:wx,DotEqual:Ex,dotminus:Sx,dotplus:xx,dotsquare:Ax,doublebarwedge:Tx,DoubleContourIntegral:Nx,DoubleDot:Dx,DoubleDownArrow:$x,DoubleLeftArrow:Bx,DoubleLeftRightArrow:Mx,DoubleLeftTee:Lx,DoubleLongLeftArrow:Ox,DoubleLongLeftRightArrow:Vx,DoubleLongRightArrow:Ix,DoubleRightArrow:Px,DoubleRightTee:Fx,DoubleUpArrow:Rx,DoubleUpDownArrow:zx,DoubleVerticalBar:Ux,DownArrowBar:Hx,downarrow:qx,DownArrow:jx,Downarrow:Wx,DownArrowUpArrow:Zx,DownBreve:Kx,downdownarrows:Gx,downharpoonleft:Yx,downharpoonright:Jx,DownLeftRightVector:Xx,DownLeftTeeVector:Qx,DownLeftVectorBar:eA,DownLeftVector:tA,DownRightTeeVector:nA,DownRightVectorBar:oA,DownRightVector:rA,DownTeeArrow:iA,DownTee:sA,drbkarow:aA,drcorn:lA,drcrop:cA,Dscr:uA,dscr:dA,DScy:fA,dscy:pA,dsol:mA,Dstrok:hA,dstrok:gA,dtdot:vA,dtri:yA,dtrif:_A,duarr:CA,duhar:bA,dwangle:kA,DZcy:wA,dzcy:EA,dzigrarr:SA,Eacute:xA,eacute:AA,easter:TA,Ecaron:NA,ecaron:DA,Ecirc:$A,ecirc:BA,ecir:MA,ecolon:LA,Ecy:OA,ecy:VA,eDDot:IA,Edot:PA,edot:FA,eDot:RA,ee:zA,efDot:UA,Efr:HA,efr:qA,eg:jA,Egrave:WA,egrave:ZA,egs:KA,egsdot:GA,el:YA,Element:JA,elinters:XA,ell:QA,els:eT,elsdot:tT,Emacr:nT,emacr:oT,empty:rT,emptyset:iT,EmptySmallSquare:sT,emptyv:aT,EmptyVerySmallSquare:lT,emsp13:cT,emsp14:uT,emsp:dT,ENG:fT,eng:pT,ensp:mT,Eogon:hT,eogon:gT,Eopf:vT,eopf:yT,epar:_T,eparsl:CT,eplus:bT,epsi:kT,Epsilon:wT,epsilon:ET,epsiv:ST,eqcirc:xT,eqcolon:AT,eqsim:TT,eqslantgtr:NT,eqslantless:DT,Equal:$T,equals:BT,EqualTilde:MT,equest:LT,Equilibrium:OT,equiv:VT,equivDD:IT,eqvparsl:PT,erarr:FT,erDot:RT,escr:zT,Escr:UT,esdot:HT,Esim:qT,esim:jT,Eta:WT,eta:ZT,ETH:KT,eth:GT,Euml:YT,euml:JT,euro:XT,excl:QT,exist:eN,Exists:tN,expectation:nN,exponentiale:oN,ExponentialE:rN,fallingdotseq:iN,Fcy:sN,fcy:aN,female:lN,ffilig:cN,fflig:uN,ffllig:dN,Ffr:fN,ffr:pN,filig:mN,FilledSmallSquare:hN,FilledVerySmallSquare:gN,fjlig:vN,flat:yN,fllig:_N,fltns:CN,fnof:bN,Fopf:kN,fopf:wN,forall:EN,ForAll:SN,fork:xN,forkv:AN,Fouriertrf:TN,fpartint:NN,frac12:DN,frac13:$N,frac14:BN,frac15:MN,frac16:LN,frac18:ON,frac23:VN,frac25:IN,frac34:PN,frac35:FN,frac38:RN,frac45:zN,frac56:UN,frac58:HN,frac78:qN,frasl:jN,frown:WN,fscr:ZN,Fscr:KN,gacute:GN,Gamma:YN,gamma:JN,Gammad:XN,gammad:QN,gap:eD,Gbreve:tD,gbreve:nD,Gcedil:oD,Gcirc:rD,gcirc:iD,Gcy:sD,gcy:aD,Gdot:lD,gdot:cD,ge:uD,gE:dD,gEl:fD,gel:pD,geq:mD,geqq:hD,geqslant:gD,gescc:vD,ges:yD,gesdot:_D,gesdoto:CD,gesdotol:bD,gesl:kD,gesles:wD,Gfr:ED,gfr:SD,gg:xD,Gg:AD,ggg:TD,gimel:ND,GJcy:DD,gjcy:$D,gla:BD,gl:MD,glE:LD,glj:OD,gnap:VD,gnapprox:ID,gne:PD,gnE:FD,gneq:RD,gneqq:zD,gnsim:UD,Gopf:HD,gopf:qD,grave:jD,GreaterEqual:WD,GreaterEqualLess:ZD,GreaterFullEqual:KD,GreaterGreater:GD,GreaterLess:YD,GreaterSlantEqual:JD,GreaterTilde:XD,Gscr:QD,gscr:e$,gsim:t$,gsime:n$,gsiml:o$,gtcc:r$,gtcir:i$,gt:s$,GT:a$,Gt:l$,gtdot:c$,gtlPar:u$,gtquest:d$,gtrapprox:f$,gtrarr:p$,gtrdot:m$,gtreqless:h$,gtreqqless:g$,gtrless:v$,gtrsim:y$,gvertneqq:_$,gvnE:C$,Hacek:b$,hairsp:k$,half:w$,hamilt:E$,HARDcy:S$,hardcy:x$,harrcir:A$,harr:T$,hArr:N$,harrw:D$,Hat:$$,hbar:B$,Hcirc:M$,hcirc:L$,hearts:O$,heartsuit:V$,hellip:I$,hercon:P$,hfr:F$,Hfr:R$,HilbertSpace:z$,hksearow:U$,hkswarow:H$,hoarr:q$,homtht:j$,hookleftarrow:W$,hookrightarrow:Z$,hopf:K$,Hopf:G$,horbar:Y$,HorizontalLine:J$,hscr:X$,Hscr:Q$,hslash:eB,Hstrok:tB,hstrok:nB,HumpDownHump:oB,HumpEqual:rB,hybull:iB,hyphen:sB,Iacute:aB,iacute:lB,ic:cB,Icirc:uB,icirc:dB,Icy:fB,icy:pB,Idot:mB,IEcy:hB,iecy:gB,iexcl:vB,iff:yB,ifr:_B,Ifr:CB,Igrave:bB,igrave:kB,ii:wB,iiiint:EB,iiint:SB,iinfin:xB,iiota:AB,IJlig:TB,ijlig:NB,Imacr:DB,imacr:$B,image:BB,ImaginaryI:MB,imagline:LB,imagpart:OB,imath:VB,Im:IB,imof:PB,imped:FB,Implies:RB,incare:zB,in:"∈",infin:UB,infintie:HB,inodot:qB,intcal:jB,int:WB,Int:ZB,integers:KB,Integral:GB,intercal:YB,Intersection:JB,intlarhk:XB,intprod:QB,InvisibleComma:eM,InvisibleTimes:tM,IOcy:nM,iocy:oM,Iogon:rM,iogon:iM,Iopf:sM,iopf:aM,Iota:lM,iota:cM,iprod:uM,iquest:dM,iscr:fM,Iscr:pM,isin:mM,isindot:hM,isinE:gM,isins:vM,isinsv:yM,isinv:_M,it:CM,Itilde:bM,itilde:kM,Iukcy:wM,iukcy:EM,Iuml:SM,iuml:xM,Jcirc:AM,jcirc:TM,Jcy:NM,jcy:DM,Jfr:$M,jfr:BM,jmath:MM,Jopf:LM,jopf:OM,Jscr:VM,jscr:IM,Jsercy:PM,jsercy:FM,Jukcy:RM,jukcy:zM,Kappa:UM,kappa:HM,kappav:qM,Kcedil:jM,kcedil:WM,Kcy:ZM,kcy:KM,Kfr:GM,kfr:YM,kgreen:JM,KHcy:XM,khcy:QM,KJcy:eL,kjcy:tL,Kopf:nL,kopf:oL,Kscr:rL,kscr:iL,lAarr:sL,Lacute:aL,lacute:lL,laemptyv:cL,lagran:uL,Lambda:dL,lambda:fL,lang:pL,Lang:mL,langd:hL,langle:gL,lap:vL,Laplacetrf:yL,laquo:_L,larrb:CL,larrbfs:bL,larr:kL,Larr:wL,lArr:EL,larrfs:SL,larrhk:xL,larrlp:AL,larrpl:TL,larrsim:NL,larrtl:DL,latail:$L,lAtail:BL,lat:ML,late:LL,lates:OL,lbarr:VL,lBarr:IL,lbbrk:PL,lbrace:FL,lbrack:RL,lbrke:zL,lbrksld:UL,lbrkslu:HL,Lcaron:qL,lcaron:jL,Lcedil:WL,lcedil:ZL,lceil:KL,lcub:GL,Lcy:YL,lcy:JL,ldca:XL,ldquo:QL,ldquor:eO,ldrdhar:tO,ldrushar:nO,ldsh:oO,le:rO,lE:iO,LeftAngleBracket:sO,LeftArrowBar:aO,leftarrow:lO,LeftArrow:cO,Leftarrow:uO,LeftArrowRightArrow:dO,leftarrowtail:fO,LeftCeiling:pO,LeftDoubleBracket:mO,LeftDownTeeVector:hO,LeftDownVectorBar:gO,LeftDownVector:vO,LeftFloor:yO,leftharpoondown:_O,leftharpoonup:CO,leftleftarrows:bO,leftrightarrow:kO,LeftRightArrow:wO,Leftrightarrow:EO,leftrightarrows:SO,leftrightharpoons:xO,leftrightsquigarrow:AO,LeftRightVector:TO,LeftTeeArrow:NO,LeftTee:DO,LeftTeeVector:$O,leftthreetimes:BO,LeftTriangleBar:MO,LeftTriangle:LO,LeftTriangleEqual:OO,LeftUpDownVector:VO,LeftUpTeeVector:IO,LeftUpVectorBar:PO,LeftUpVector:FO,LeftVectorBar:RO,LeftVector:zO,lEg:UO,leg:HO,leq:qO,leqq:jO,leqslant:WO,lescc:ZO,les:KO,lesdot:GO,lesdoto:YO,lesdotor:JO,lesg:XO,lesges:QO,lessapprox:eV,lessdot:tV,lesseqgtr:nV,lesseqqgtr:oV,LessEqualGreater:rV,LessFullEqual:iV,LessGreater:sV,lessgtr:aV,LessLess:lV,lesssim:cV,LessSlantEqual:uV,LessTilde:dV,lfisht:fV,lfloor:pV,Lfr:mV,lfr:hV,lg:gV,lgE:vV,lHar:yV,lhard:_V,lharu:CV,lharul:bV,lhblk:kV,LJcy:wV,ljcy:EV,llarr:SV,ll:xV,Ll:AV,llcorner:TV,Lleftarrow:NV,llhard:DV,lltri:$V,Lmidot:BV,lmidot:MV,lmoustache:LV,lmoust:OV,lnap:VV,lnapprox:IV,lne:PV,lnE:FV,lneq:RV,lneqq:zV,lnsim:UV,loang:HV,loarr:qV,lobrk:jV,longleftarrow:WV,LongLeftArrow:ZV,Longleftarrow:KV,longleftrightarrow:GV,LongLeftRightArrow:YV,Longleftrightarrow:JV,longmapsto:XV,longrightarrow:QV,LongRightArrow:eI,Longrightarrow:tI,looparrowleft:nI,looparrowright:oI,lopar:rI,Lopf:iI,lopf:sI,loplus:aI,lotimes:lI,lowast:cI,lowbar:uI,LowerLeftArrow:dI,LowerRightArrow:fI,loz:pI,lozenge:mI,lozf:hI,lpar:gI,lparlt:vI,lrarr:yI,lrcorner:_I,lrhar:CI,lrhard:bI,lrm:kI,lrtri:wI,lsaquo:EI,lscr:SI,Lscr:xI,lsh:AI,Lsh:TI,lsim:NI,lsime:DI,lsimg:$I,lsqb:BI,lsquo:MI,lsquor:LI,Lstrok:OI,lstrok:VI,ltcc:II,ltcir:PI,lt:FI,LT:RI,Lt:zI,ltdot:UI,lthree:HI,ltimes:qI,ltlarr:jI,ltquest:WI,ltri:ZI,ltrie:KI,ltrif:GI,ltrPar:YI,lurdshar:JI,luruhar:XI,lvertneqq:QI,lvnE:eP,macr:tP,male:nP,malt:oP,maltese:rP,Map:"⤅",map:iP,mapsto:sP,mapstodown:aP,mapstoleft:lP,mapstoup:cP,marker:uP,mcomma:dP,Mcy:fP,mcy:pP,mdash:mP,mDDot:hP,measuredangle:gP,MediumSpace:vP,Mellintrf:yP,Mfr:_P,mfr:CP,mho:bP,micro:kP,midast:wP,midcir:EP,mid:SP,middot:xP,minusb:AP,minus:TP,minusd:NP,minusdu:DP,MinusPlus:$P,mlcp:BP,mldr:MP,mnplus:LP,models:OP,Mopf:VP,mopf:IP,mp:PP,mscr:FP,Mscr:RP,mstpos:zP,Mu:UP,mu:HP,multimap:qP,mumap:jP,nabla:WP,Nacute:ZP,nacute:KP,nang:GP,nap:YP,napE:JP,napid:XP,napos:QP,napprox:eF,natural:tF,naturals:nF,natur:oF,nbsp:rF,nbump:iF,nbumpe:sF,ncap:aF,Ncaron:lF,ncaron:cF,Ncedil:uF,ncedil:dF,ncong:fF,ncongdot:pF,ncup:mF,Ncy:hF,ncy:gF,ndash:vF,nearhk:yF,nearr:_F,neArr:CF,nearrow:bF,ne:kF,nedot:wF,NegativeMediumSpace:EF,NegativeThickSpace:SF,NegativeThinSpace:xF,NegativeVeryThinSpace:AF,nequiv:TF,nesear:NF,nesim:DF,NestedGreaterGreater:$F,NestedLessLess:BF,NewLine:MF,nexist:LF,nexists:OF,Nfr:VF,nfr:IF,ngE:PF,nge:FF,ngeq:RF,ngeqq:zF,ngeqslant:UF,nges:HF,nGg:qF,ngsim:jF,nGt:WF,ngt:ZF,ngtr:KF,nGtv:GF,nharr:YF,nhArr:JF,nhpar:XF,ni:QF,nis:eR,nisd:tR,niv:nR,NJcy:oR,njcy:rR,nlarr:iR,nlArr:sR,nldr:aR,nlE:lR,nle:cR,nleftarrow:uR,nLeftarrow:dR,nleftrightarrow:fR,nLeftrightarrow:pR,nleq:mR,nleqq:hR,nleqslant:gR,nles:vR,nless:yR,nLl:_R,nlsim:CR,nLt:bR,nlt:kR,nltri:wR,nltrie:ER,nLtv:SR,nmid:xR,NoBreak:AR,NonBreakingSpace:TR,nopf:NR,Nopf:DR,Not:$R,not:BR,NotCongruent:MR,NotCupCap:LR,NotDoubleVerticalBar:OR,NotElement:VR,NotEqual:IR,NotEqualTilde:PR,NotExists:FR,NotGreater:RR,NotGreaterEqual:zR,NotGreaterFullEqual:UR,NotGreaterGreater:HR,NotGreaterLess:qR,NotGreaterSlantEqual:jR,NotGreaterTilde:WR,NotHumpDownHump:ZR,NotHumpEqual:KR,notin:GR,notindot:YR,notinE:JR,notinva:XR,notinvb:QR,notinvc:ez,NotLeftTriangleBar:tz,NotLeftTriangle:nz,NotLeftTriangleEqual:oz,NotLess:rz,NotLessEqual:iz,NotLessGreater:sz,NotLessLess:az,NotLessSlantEqual:lz,NotLessTilde:cz,NotNestedGreaterGreater:uz,NotNestedLessLess:dz,notni:fz,notniva:pz,notnivb:mz,notnivc:hz,NotPrecedes:gz,NotPrecedesEqual:vz,NotPrecedesSlantEqual:yz,NotReverseElement:_z,NotRightTriangleBar:Cz,NotRightTriangle:bz,NotRightTriangleEqual:kz,NotSquareSubset:wz,NotSquareSubsetEqual:Ez,NotSquareSuperset:Sz,NotSquareSupersetEqual:xz,NotSubset:Az,NotSubsetEqual:Tz,NotSucceeds:Nz,NotSucceedsEqual:Dz,NotSucceedsSlantEqual:$z,NotSucceedsTilde:Bz,NotSuperset:Mz,NotSupersetEqual:Lz,NotTilde:Oz,NotTildeEqual:Vz,NotTildeFullEqual:Iz,NotTildeTilde:Pz,NotVerticalBar:Fz,nparallel:Rz,npar:zz,nparsl:Uz,npart:Hz,npolint:qz,npr:jz,nprcue:Wz,nprec:Zz,npreceq:Kz,npre:Gz,nrarrc:Yz,nrarr:Jz,nrArr:Xz,nrarrw:Qz,nrightarrow:eU,nRightarrow:tU,nrtri:nU,nrtrie:oU,nsc:rU,nsccue:iU,nsce:sU,Nscr:aU,nscr:lU,nshortmid:cU,nshortparallel:uU,nsim:dU,nsime:fU,nsimeq:pU,nsmid:mU,nspar:hU,nsqsube:gU,nsqsupe:vU,nsub:yU,nsubE:_U,nsube:CU,nsubset:bU,nsubseteq:kU,nsubseteqq:wU,nsucc:EU,nsucceq:SU,nsup:xU,nsupE:AU,nsupe:TU,nsupset:NU,nsupseteq:DU,nsupseteqq:$U,ntgl:BU,Ntilde:MU,ntilde:LU,ntlg:OU,ntriangleleft:VU,ntrianglelefteq:IU,ntriangleright:PU,ntrianglerighteq:FU,Nu:RU,nu:zU,num:UU,numero:HU,numsp:qU,nvap:jU,nvdash:WU,nvDash:ZU,nVdash:KU,nVDash:GU,nvge:YU,nvgt:JU,nvHarr:XU,nvinfin:QU,nvlArr:eH,nvle:tH,nvlt:nH,nvltrie:oH,nvrArr:rH,nvrtrie:iH,nvsim:sH,nwarhk:aH,nwarr:lH,nwArr:cH,nwarrow:uH,nwnear:dH,Oacute:fH,oacute:pH,oast:mH,Ocirc:hH,ocirc:gH,ocir:vH,Ocy:yH,ocy:_H,odash:CH,Odblac:bH,odblac:kH,odiv:wH,odot:EH,odsold:SH,OElig:xH,oelig:AH,ofcir:TH,Ofr:NH,ofr:DH,ogon:$H,Ograve:BH,ograve:MH,ogt:LH,ohbar:OH,ohm:VH,oint:IH,olarr:PH,olcir:FH,olcross:RH,oline:zH,olt:UH,Omacr:HH,omacr:qH,Omega:jH,omega:WH,Omicron:ZH,omicron:KH,omid:GH,ominus:YH,Oopf:JH,oopf:XH,opar:QH,OpenCurlyDoubleQuote:eq,OpenCurlyQuote:tq,operp:nq,oplus:oq,orarr:rq,Or:iq,or:sq,ord:aq,order:lq,orderof:cq,ordf:uq,ordm:dq,origof:fq,oror:pq,orslope:mq,orv:hq,oS:gq,Oscr:vq,oscr:yq,Oslash:_q,oslash:Cq,osol:bq,Otilde:kq,otilde:wq,otimesas:Eq,Otimes:Sq,otimes:xq,Ouml:Aq,ouml:Tq,ovbar:Nq,OverBar:Dq,OverBrace:$q,OverBracket:Bq,OverParenthesis:Mq,para:Lq,parallel:Oq,par:Vq,parsim:Iq,parsl:Pq,part:Fq,PartialD:Rq,Pcy:zq,pcy:Uq,percnt:Hq,period:qq,permil:jq,perp:Wq,pertenk:Zq,Pfr:Kq,pfr:Gq,Phi:Yq,phi:Jq,phiv:Xq,phmmat:Qq,phone:ej,Pi:tj,pi:nj,pitchfork:oj,piv:rj,planck:ij,planckh:sj,plankv:aj,plusacir:lj,plusb:cj,pluscir:uj,plus:dj,plusdo:fj,plusdu:pj,pluse:mj,PlusMinus:hj,plusmn:gj,plussim:vj,plustwo:yj,pm:_j,Poincareplane:Cj,pointint:bj,popf:kj,Popf:wj,pound:Ej,prap:Sj,Pr:xj,pr:Aj,prcue:Tj,precapprox:Nj,prec:Dj,preccurlyeq:$j,Precedes:Bj,PrecedesEqual:Mj,PrecedesSlantEqual:Lj,PrecedesTilde:Oj,preceq:Vj,precnapprox:Ij,precneqq:Pj,precnsim:Fj,pre:Rj,prE:zj,precsim:Uj,prime:Hj,Prime:qj,primes:jj,prnap:Wj,prnE:Zj,prnsim:Kj,prod:Gj,Product:Yj,profalar:Jj,profline:Xj,profsurf:Qj,prop:eW,Proportional:tW,Proportion:nW,propto:oW,prsim:rW,prurel:iW,Pscr:sW,pscr:aW,Psi:lW,psi:cW,puncsp:uW,Qfr:dW,qfr:fW,qint:pW,qopf:mW,Qopf:hW,qprime:gW,Qscr:vW,qscr:yW,quaternions:_W,quatint:CW,quest:bW,questeq:kW,quot:wW,QUOT:EW,rAarr:SW,race:xW,Racute:AW,racute:TW,radic:NW,raemptyv:DW,rang:$W,Rang:BW,rangd:MW,range:LW,rangle:OW,raquo:VW,rarrap:IW,rarrb:PW,rarrbfs:FW,rarrc:RW,rarr:zW,Rarr:UW,rArr:HW,rarrfs:qW,rarrhk:jW,rarrlp:WW,rarrpl:ZW,rarrsim:KW,Rarrtl:GW,rarrtl:YW,rarrw:JW,ratail:XW,rAtail:QW,ratio:eZ,rationals:tZ,rbarr:nZ,rBarr:oZ,RBarr:rZ,rbbrk:iZ,rbrace:sZ,rbrack:aZ,rbrke:lZ,rbrksld:cZ,rbrkslu:uZ,Rcaron:dZ,rcaron:fZ,Rcedil:pZ,rcedil:mZ,rceil:hZ,rcub:gZ,Rcy:vZ,rcy:yZ,rdca:_Z,rdldhar:CZ,rdquo:bZ,rdquor:kZ,rdsh:wZ,real:EZ,realine:SZ,realpart:xZ,reals:AZ,Re:TZ,rect:NZ,reg:DZ,REG:$Z,ReverseElement:BZ,ReverseEquilibrium:MZ,ReverseUpEquilibrium:LZ,rfisht:OZ,rfloor:VZ,rfr:IZ,Rfr:PZ,rHar:FZ,rhard:RZ,rharu:zZ,rharul:UZ,Rho:HZ,rho:qZ,rhov:jZ,RightAngleBracket:WZ,RightArrowBar:ZZ,rightarrow:KZ,RightArrow:GZ,Rightarrow:YZ,RightArrowLeftArrow:JZ,rightarrowtail:XZ,RightCeiling:QZ,RightDoubleBracket:eK,RightDownTeeVector:tK,RightDownVectorBar:nK,RightDownVector:oK,RightFloor:rK,rightharpoondown:iK,rightharpoonup:sK,rightleftarrows:aK,rightleftharpoons:lK,rightrightarrows:cK,rightsquigarrow:uK,RightTeeArrow:dK,RightTee:fK,RightTeeVector:pK,rightthreetimes:mK,RightTriangleBar:hK,RightTriangle:gK,RightTriangleEqual:vK,RightUpDownVector:yK,RightUpTeeVector:_K,RightUpVectorBar:CK,RightUpVector:bK,RightVectorBar:kK,RightVector:wK,ring:EK,risingdotseq:SK,rlarr:xK,rlhar:AK,rlm:TK,rmoustache:NK,rmoust:DK,rnmid:$K,roang:BK,roarr:MK,robrk:LK,ropar:OK,ropf:VK,Ropf:IK,roplus:PK,rotimes:FK,RoundImplies:RK,rpar:zK,rpargt:UK,rppolint:HK,rrarr:qK,Rrightarrow:jK,rsaquo:WK,rscr:ZK,Rscr:KK,rsh:GK,Rsh:YK,rsqb:JK,rsquo:XK,rsquor:QK,rthree:eG,rtimes:tG,rtri:nG,rtrie:oG,rtrif:rG,rtriltri:iG,RuleDelayed:sG,ruluhar:aG,rx:lG,Sacute:cG,sacute:uG,sbquo:dG,scap:fG,Scaron:pG,scaron:mG,Sc:hG,sc:gG,sccue:vG,sce:yG,scE:_G,Scedil:CG,scedil:bG,Scirc:kG,scirc:wG,scnap:EG,scnE:SG,scnsim:xG,scpolint:AG,scsim:TG,Scy:NG,scy:DG,sdotb:$G,sdot:BG,sdote:MG,searhk:LG,searr:OG,seArr:VG,searrow:IG,sect:PG,semi:FG,seswar:RG,setminus:zG,setmn:UG,sext:HG,Sfr:qG,sfr:jG,sfrown:WG,sharp:ZG,SHCHcy:KG,shchcy:GG,SHcy:YG,shcy:JG,ShortDownArrow:XG,ShortLeftArrow:QG,shortmid:eY,shortparallel:tY,ShortRightArrow:nY,ShortUpArrow:oY,shy:rY,Sigma:iY,sigma:sY,sigmaf:aY,sigmav:lY,sim:cY,simdot:uY,sime:dY,simeq:fY,simg:pY,simgE:mY,siml:hY,simlE:gY,simne:vY,simplus:yY,simrarr:_Y,slarr:CY,SmallCircle:bY,smallsetminus:kY,smashp:wY,smeparsl:EY,smid:SY,smile:xY,smt:AY,smte:TY,smtes:NY,SOFTcy:DY,softcy:$Y,solbar:BY,solb:MY,sol:LY,Sopf:OY,sopf:VY,spades:IY,spadesuit:PY,spar:FY,sqcap:RY,sqcaps:zY,sqcup:UY,sqcups:HY,Sqrt:qY,sqsub:jY,sqsube:WY,sqsubset:ZY,sqsubseteq:KY,sqsup:GY,sqsupe:YY,sqsupset:JY,sqsupseteq:XY,square:QY,Square:eJ,SquareIntersection:tJ,SquareSubset:nJ,SquareSubsetEqual:oJ,SquareSuperset:rJ,SquareSupersetEqual:iJ,SquareUnion:sJ,squarf:aJ,squ:lJ,squf:cJ,srarr:uJ,Sscr:dJ,sscr:fJ,ssetmn:pJ,ssmile:mJ,sstarf:hJ,Star:gJ,star:vJ,starf:yJ,straightepsilon:_J,straightphi:CJ,strns:bJ,sub:kJ,Sub:wJ,subdot:EJ,subE:SJ,sube:xJ,subedot:AJ,submult:TJ,subnE:NJ,subne:DJ,subplus:$J,subrarr:BJ,subset:MJ,Subset:LJ,subseteq:OJ,subseteqq:VJ,SubsetEqual:IJ,subsetneq:PJ,subsetneqq:FJ,subsim:RJ,subsub:zJ,subsup:UJ,succapprox:HJ,succ:qJ,succcurlyeq:jJ,Succeeds:WJ,SucceedsEqual:ZJ,SucceedsSlantEqual:KJ,SucceedsTilde:GJ,succeq:YJ,succnapprox:JJ,succneqq:XJ,succnsim:QJ,succsim:eX,SuchThat:tX,sum:nX,Sum:oX,sung:rX,sup1:iX,sup2:sX,sup3:aX,sup:lX,Sup:cX,supdot:uX,supdsub:dX,supE:fX,supe:pX,supedot:mX,Superset:hX,SupersetEqual:gX,suphsol:vX,suphsub:yX,suplarr:_X,supmult:CX,supnE:bX,supne:kX,supplus:wX,supset:EX,Supset:SX,supseteq:xX,supseteqq:AX,supsetneq:TX,supsetneqq:NX,supsim:DX,supsub:$X,supsup:BX,swarhk:MX,swarr:LX,swArr:OX,swarrow:VX,swnwar:IX,szlig:PX,Tab:FX,target:RX,Tau:zX,tau:UX,tbrk:HX,Tcaron:qX,tcaron:jX,Tcedil:WX,tcedil:ZX,Tcy:KX,tcy:GX,tdot:YX,telrec:JX,Tfr:XX,tfr:QX,there4:eQ,therefore:tQ,Therefore:nQ,Theta:oQ,theta:rQ,thetasym:iQ,thetav:sQ,thickapprox:aQ,thicksim:lQ,ThickSpace:cQ,ThinSpace:uQ,thinsp:dQ,thkap:fQ,thksim:pQ,THORN:mQ,thorn:hQ,tilde:gQ,Tilde:vQ,TildeEqual:yQ,TildeFullEqual:_Q,TildeTilde:CQ,timesbar:bQ,timesb:kQ,times:wQ,timesd:EQ,tint:SQ,toea:xQ,topbot:AQ,topcir:TQ,top:NQ,Topf:DQ,topf:$Q,topfork:BQ,tosa:MQ,tprime:LQ,trade:OQ,TRADE:VQ,triangle:IQ,triangledown:PQ,triangleleft:FQ,trianglelefteq:RQ,triangleq:zQ,triangleright:UQ,trianglerighteq:HQ,tridot:qQ,trie:jQ,triminus:WQ,TripleDot:ZQ,triplus:KQ,trisb:GQ,tritime:YQ,trpezium:JQ,Tscr:XQ,tscr:QQ,TScy:eee,tscy:tee,TSHcy:nee,tshcy:oee,Tstrok:ree,tstrok:iee,twixt:see,twoheadleftarrow:aee,twoheadrightarrow:lee,Uacute:cee,uacute:uee,uarr:dee,Uarr:fee,uArr:pee,Uarrocir:mee,Ubrcy:hee,ubrcy:gee,Ubreve:vee,ubreve:yee,Ucirc:_ee,ucirc:Cee,Ucy:bee,ucy:kee,udarr:wee,Udblac:Eee,udblac:See,udhar:xee,ufisht:Aee,Ufr:Tee,ufr:Nee,Ugrave:Dee,ugrave:$ee,uHar:Bee,uharl:Mee,uharr:Lee,uhblk:Oee,ulcorn:Vee,ulcorner:Iee,ulcrop:Pee,ultri:Fee,Umacr:Ree,umacr:zee,uml:Uee,UnderBar:Hee,UnderBrace:qee,UnderBracket:jee,UnderParenthesis:Wee,Union:Zee,UnionPlus:Kee,Uogon:Gee,uogon:Yee,Uopf:Jee,uopf:Xee,UpArrowBar:Qee,uparrow:ete,UpArrow:tte,Uparrow:nte,UpArrowDownArrow:ote,updownarrow:rte,UpDownArrow:ite,Updownarrow:ste,UpEquilibrium:ate,upharpoonleft:lte,upharpoonright:cte,uplus:ute,UpperLeftArrow:dte,UpperRightArrow:fte,upsi:pte,Upsi:mte,upsih:hte,Upsilon:gte,upsilon:vte,UpTeeArrow:yte,UpTee:_te,upuparrows:Cte,urcorn:bte,urcorner:kte,urcrop:wte,Uring:Ete,uring:Ste,urtri:xte,Uscr:Ate,uscr:Tte,utdot:Nte,Utilde:Dte,utilde:$te,utri:Bte,utrif:Mte,uuarr:Lte,Uuml:Ote,uuml:Vte,uwangle:Ite,vangrt:Pte,varepsilon:Fte,varkappa:Rte,varnothing:zte,varphi:Ute,varpi:Hte,varpropto:qte,varr:jte,vArr:Wte,varrho:Zte,varsigma:Kte,varsubsetneq:Gte,varsubsetneqq:Yte,varsupsetneq:Jte,varsupsetneqq:Xte,vartheta:Qte,vartriangleleft:ene,vartriangleright:tne,vBar:nne,Vbar:one,vBarv:rne,Vcy:ine,vcy:sne,vdash:ane,vDash:lne,Vdash:cne,VDash:une,Vdashl:dne,veebar:fne,vee:pne,Vee:mne,veeeq:hne,vellip:gne,verbar:vne,Verbar:yne,vert:_ne,Vert:Cne,VerticalBar:bne,VerticalLine:kne,VerticalSeparator:wne,VerticalTilde:Ene,VeryThinSpace:Sne,Vfr:xne,vfr:Ane,vltri:Tne,vnsub:Nne,vnsup:Dne,Vopf:$ne,vopf:Bne,vprop:Mne,vrtri:Lne,Vscr:One,vscr:Vne,vsubnE:Ine,vsubne:Pne,vsupnE:Fne,vsupne:Rne,Vvdash:zne,vzigzag:Une,Wcirc:Hne,wcirc:qne,wedbar:jne,wedge:Wne,Wedge:Zne,wedgeq:Kne,weierp:Gne,Wfr:Yne,wfr:Jne,Wopf:Xne,wopf:Qne,wp:eoe,wr:toe,wreath:noe,Wscr:ooe,wscr:roe,xcap:ioe,xcirc:soe,xcup:aoe,xdtri:loe,Xfr:coe,xfr:uoe,xharr:doe,xhArr:foe,Xi:poe,xi:moe,xlarr:hoe,xlArr:goe,xmap:voe,xnis:yoe,xodot:_oe,Xopf:Coe,xopf:boe,xoplus:koe,xotime:woe,xrarr:Eoe,xrArr:Soe,Xscr:xoe,xscr:Aoe,xsqcup:Toe,xuplus:Noe,xutri:Doe,xvee:$oe,xwedge:Boe,Yacute:Moe,yacute:Loe,YAcy:Ooe,yacy:Voe,Ycirc:Ioe,ycirc:Poe,Ycy:Foe,ycy:Roe,yen:zoe,Yfr:Uoe,yfr:Hoe,YIcy:qoe,yicy:joe,Yopf:Woe,yopf:Zoe,Yscr:Koe,yscr:Goe,YUcy:Yoe,yucy:Joe,yuml:Xoe,Yuml:Qoe,Zacute:ere,zacute:tre,Zcaron:nre,zcaron:ore,Zcy:rre,zcy:ire,Zdot:sre,zdot:are,zeetrf:lre,ZeroWidthSpace:cre,Zeta:ure,zeta:dre,zfr:fre,Zfr:pre,ZHcy:mre,zhcy:hre,zigrarr:gre,zopf:vre,Zopf:yre,Zscr:_re,zscr:Cre,zwj:bre,zwnj:kre};var lm=wre,hu=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Wr={},Wd={};function Ere(t){var e,n,o=Wd[t];if(o)return o;for(o=Wd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)o[t.charCodeAt(e)]=t[e];return o}function Ua(t,e,n){var o,i,s,a,l,c="";for(typeof e!="string"&&(n=e,e=Ua.defaultChars),typeof n>"u"&&(n=!0),l=Ere(e),o=0,i=t.length;o<i;o++){if(s=t.charCodeAt(o),n&&s===37&&o+2<i&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){c+=t.slice(o,o+3),o+=2;continue}if(s<128){c+=l[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<i&&(a=t.charCodeAt(o+1),a>=56320&&a<=57343)){c+=encodeURIComponent(t[o]+t[o+1]),o++;continue}c+="%EF%BF%BD";continue}c+=encodeURIComponent(t[o])}return c}Ua.defaultChars=";/?:@&=+$,-_.!~*'()#";Ua.componentChars="-_.!~*'()";var Sre=Ua,Zd={};function xre(t){var e,n,o=Zd[t];if(o)return o;for(o=Zd[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),o.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),o[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return o}function Ha(t,e){var n;return typeof e!="string"&&(e=Ha.defaultChars),n=xre(e),t.replace(/(%[a-f0-9]{2})+/gi,function(o){var i,s,a,l,c,u,d,p="";for(i=0,s=o.length;i<s;i+=3){if(a=parseInt(o.slice(i+1,i+3),16),a<128){p+=n[a];continue}if((a&224)===192&&i+3<s&&(l=parseInt(o.slice(i+4,i+6),16),(l&192)===128)){d=a<<6&1984|l&63,d<128?p+="��":p+=String.fromCharCode(d),i+=3;continue}if((a&240)===224&&i+6<s&&(l=parseInt(o.slice(i+4,i+6),16),c=parseInt(o.slice(i+7,i+9),16),(l&192)===128&&(c&192)===128)){d=a<<12&61440|l<<6&4032|c&63,d<2048||d>=55296&&d<=57343?p+="���":p+=String.fromCharCode(d),i+=6;continue}if((a&248)===240&&i+9<s&&(l=parseInt(o.slice(i+4,i+6),16),c=parseInt(o.slice(i+7,i+9),16),u=parseInt(o.slice(i+10,i+12),16),(l&192)===128&&(c&192)===128&&(u&192)===128)){d=a<<18&1835008|l<<12&258048|c<<6&4032|u&63,d<65536||d>1114111?p+="����":(d-=65536,p+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),i+=9;continue}p+="�"}return p})}Ha.defaultChars=";/?:@&=+$,#";Ha.componentChars="";var Are=Ha,Tre=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function ra(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Nre=/^([a-z0-9.+-]+:)/i,Dre=/:[0-9]*$/,$re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Bre=["<",">",'"',"`"," ","\r",`
3
- `," "],Mre=["{","}","|","\\","^","`"].concat(Bre),Lre=["'"].concat(Mre),Kd=["%","/","?",";","#"].concat(Lre),Gd=["/","?","#"],Ore=255,Yd=/^[+a-z0-9A-Z_-]{0,63}$/,Vre=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jd={javascript:!0,"javascript:":!0},Xd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ire(t,e){if(t&&t instanceof ra)return t;var n=new ra;return n.parse(t,e),n}ra.prototype.parse=function(t,e){var n,o,i,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=$re.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=Nre.exec(l);if(u&&(u=u[0],i=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(e||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=l.substr(0,2)==="//",a&&!(u&&Jd[u])&&(l=l.substr(2),this.slashes=!0)),!Jd[u]&&(a||u&&!Xd[u])){var d=-1;for(n=0;n<Gd.length;n++)s=l.indexOf(Gd[n]),s!==-1&&(d===-1||s<d)&&(d=s);var p,f;for(d===-1?f=l.lastIndexOf("@"):f=l.lastIndexOf("@",d),f!==-1&&(p=l.slice(0,f),l=l.slice(f+1),this.auth=p),d=-1,n=0;n<Kd.length;n++)s=l.indexOf(Kd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var m=l.slice(0,d);l=l.slice(d),this.parseHost(m),this.hostname=this.hostname||"";var h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){var v=this.hostname.split(/\./);for(n=0,o=v.length;n<o;n++){var C=v[n];if(C&&!C.match(Yd)){for(var y="",g=0,_=C.length;g<_;g++)C.charCodeAt(g)>127?y+="x":y+=C[g];if(!y.match(Yd)){var b=v.slice(0,n),w=v.slice(n+1),k=C.match(Vre);k&&(b.push(k[1]),w.unshift(k[2])),w.length&&(l=w.join(".")+l),this.hostname=b.join(".");break}}}}this.hostname.length>Ore&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var x=l.indexOf("#");x!==-1&&(this.hash=l.substr(x),l=l.slice(0,x));var S=l.indexOf("?");return S!==-1&&(this.search=l.substr(S),l=l.slice(0,S)),l&&(this.pathname=l),Xd[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ra.prototype.parseHost=function(t){var e=Dre.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Pre=Ire;Wr.encode=Sre;Wr.decode=Are;Wr.format=Tre;Wr.parse=Pre;var $o={},xl,Qd;function cm(){return Qd||(Qd=1,xl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),xl}var Al,e1;function um(){return e1||(e1=1,Al=/[\0-\x1F\x7F-\x9F]/),Al}var Tl,t1;function Fre(){return t1||(t1=1,Tl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Tl}var Nl,n1;function dm(){return n1||(n1=1,Nl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Nl}var o1;function Rre(){return o1||(o1=1,$o.Any=cm(),$o.Cc=um(),$o.Cf=Fre(),$o.P=hu,$o.Z=dm()),$o}(function(t){function e(D){return Object.prototype.toString.call(D)}function n(D){return e(D)==="[object String]"}var o=Object.prototype.hasOwnProperty;function i(D,$){return o.call(D,$)}function s(D){var $=Array.prototype.slice.call(arguments,1);return $.forEach(function(B){if(B){if(typeof B!="object")throw new TypeError(B+"must be object");Object.keys(B).forEach(function(P){D[P]=B[P]})}}),D}function a(D,$,B){return[].concat(D.slice(0,$),B,D.slice($+1))}function l(D){return!(D>=55296&&D<=57343||D>=64976&&D<=65007||(D&65535)===65535||(D&65535)===65534||D>=0&&D<=8||D===11||D>=14&&D<=31||D>=127&&D<=159||D>1114111)}function c(D){if(D>65535){D-=65536;var $=55296+(D>>10),B=56320+(D&1023);return String.fromCharCode($,B)}return String.fromCharCode(D)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(u.source+"|"+d.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=lm;function h(D,$){var B;return i(m,$)?m[$]:$.charCodeAt(0)===35&&f.test($)&&(B=$[1].toLowerCase()==="x"?parseInt($.slice(2),16):parseInt($.slice(1),10),l(B))?c(B):D}function v(D){return D.indexOf("\\")<0?D:D.replace(u,"$1")}function C(D){return D.indexOf("\\")<0&&D.indexOf("&")<0?D:D.replace(p,function($,B,P){return B||h($,P)})}var y=/[&<>"]/,g=/[&<>"]/g,_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function b(D){return _[D]}function w(D){return y.test(D)?D.replace(g,b):D}var k=/[.?*+^$[\]\\(){}|-]/g;function x(D){return D.replace(k,"\\$&")}function S(D){switch(D){case 9:case 32:return!0}return!1}function E(D){if(D>=8192&&D<=8202)return!0;switch(D){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var N=hu;function I(D){return N.test(D)}function A(D){switch(D){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(D){return D=D.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(D=D.replace(/ẞ/g,"ß")),D.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Wr,t.lib.ucmicro=Rre(),t.assign=s,t.isString=n,t.has=i,t.unescapeMd=v,t.unescapeAll=C,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=w,t.arrayReplaceAt=a,t.isSpace=S,t.isWhiteSpace=E,t.isMdAsciiPunct=A,t.isPunctChar=I,t.escapeRE=x,t.normalizeReference=M})(Be);var qa={},zre=function(e,n,o){var i,s,a,l,c=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,i=1;e.pos<u;){if(a=e.src.charCodeAt(e.pos),a===93&&(i--,i===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)i++;else if(o)return e.pos=d,-1}}return s&&(c=e.pos),e.pos=d,c},r1=Be.unescapeAll,Ure=function(e,n,o){var i,s,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<o;){if(i=e.charCodeAt(a),i===10||i===60)return l;if(i===62)return l.pos=a+1,l.str=r1(e.slice(n+1,a)),l.ok=!0,l;if(i===92&&a+1<o){a+=2;continue}a++}return l}for(s=0;a<o&&(i=e.charCodeAt(a),!(i===32||i<32||i===127));){if(i===92&&a+1<o){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(i===40&&(s++,s>32))return l;if(i===41){if(s===0)break;s--}a++}return n===a||s!==0||(l.str=r1(e.slice(n,a)),l.pos=a,l.ok=!0),l},Hre=Be.unescapeAll,qre=function(e,n,o){var i,s,a=0,l=n,c={ok:!1,pos:0,lines:0,str:""};if(l>=o||(s=e.charCodeAt(l),s!==34&&s!==39&&s!==40))return c;for(l++,s===40&&(s=41);l<o;){if(i=e.charCodeAt(l),i===s)return c.pos=l+1,c.lines=a,c.str=Hre(e.slice(n+1,l)),c.ok=!0,c;if(i===40&&s===41)return c;i===10?a++:i===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};qa.parseLinkLabel=zre;qa.parseLinkDestination=Ure;qa.parseLinkTitle=qre;var jre=Be.assign,Wre=Be.unescapeAll,Xo=Be.escapeHtml,In={};In.code_inline=function(t,e,n,o,i){var s=t[e];return"<code"+i.renderAttrs(s)+">"+Xo(s.content)+"</code>"};In.code_block=function(t,e,n,o,i){var s=t[e];return"<pre"+i.renderAttrs(s)+"><code>"+Xo(t[e].content)+`</code></pre>
3
+ `," "],Mre=["{","}","|","\\","^","`"].concat(Bre),Lre=["'"].concat(Mre),Kd=["%","/","?",";","#"].concat(Lre),Gd=["/","?","#"],Ore=255,Yd=/^[+a-z0-9A-Z_-]{0,63}$/,Vre=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jd={javascript:!0,"javascript:":!0},Xd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ire(t,e){if(t&&t instanceof ra)return t;var n=new ra;return n.parse(t,e),n}ra.prototype.parse=function(t,e){var n,o,i,s,a,l=t;if(l=l.trim(),!e&&t.split("#").length===1){var c=$re.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var u=Nre.exec(l);if(u&&(u=u[0],i=u.toLowerCase(),this.protocol=u,l=l.substr(u.length)),(e||u||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=l.substr(0,2)==="//",a&&!(u&&Jd[u])&&(l=l.substr(2),this.slashes=!0)),!Jd[u]&&(a||u&&!Xd[u])){var d=-1;for(n=0;n<Gd.length;n++)s=l.indexOf(Gd[n]),s!==-1&&(d===-1||s<d)&&(d=s);var p,f;for(d===-1?f=l.lastIndexOf("@"):f=l.lastIndexOf("@",d),f!==-1&&(p=l.slice(0,f),l=l.slice(f+1),this.auth=p),d=-1,n=0;n<Kd.length;n++)s=l.indexOf(Kd[n]),s!==-1&&(d===-1||s<d)&&(d=s);d===-1&&(d=l.length),l[d-1]===":"&&d--;var m=l.slice(0,d);l=l.slice(d),this.parseHost(m),this.hostname=this.hostname||"";var h=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!h){var v=this.hostname.split(/\./);for(n=0,o=v.length;n<o;n++){var C=v[n];if(C&&!C.match(Yd)){for(var y="",g=0,_=C.length;g<_;g++)C.charCodeAt(g)>127?y+="x":y+=C[g];if(!y.match(Yd)){var b=v.slice(0,n),w=v.slice(n+1),k=C.match(Vre);k&&(b.push(k[1]),w.unshift(k[2])),w.length&&(l=w.join(".")+l),this.hostname=b.join(".");break}}}}this.hostname.length>Ore&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=l.indexOf("#");A!==-1&&(this.hash=l.substr(A),l=l.slice(0,A));var S=l.indexOf("?");return S!==-1&&(this.search=l.substr(S),l=l.slice(0,S)),l&&(this.pathname=l),Xd[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};ra.prototype.parseHost=function(t){var e=Dre.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var Pre=Ire;Wr.encode=Sre;Wr.decode=Are;Wr.format=Tre;Wr.parse=Pre;var $o={},xl,Qd;function cm(){return Qd||(Qd=1,xl=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),xl}var Al,e1;function um(){return e1||(e1=1,Al=/[\0-\x1F\x7F-\x9F]/),Al}var Tl,t1;function Fre(){return t1||(t1=1,Tl=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Tl}var Nl,n1;function dm(){return n1||(n1=1,Nl=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Nl}var o1;function Rre(){return o1||(o1=1,$o.Any=cm(),$o.Cc=um(),$o.Cf=Fre(),$o.P=hu,$o.Z=dm()),$o}(function(t){function e(x){return Object.prototype.toString.call(x)}function n(x){return e(x)==="[object String]"}var o=Object.prototype.hasOwnProperty;function i(x,$){return o.call(x,$)}function s(x){var $=Array.prototype.slice.call(arguments,1);return $.forEach(function(B){if(B){if(typeof B!="object")throw new TypeError(B+"must be object");Object.keys(B).forEach(function(q){x[q]=B[q]})}}),x}function a(x,$,B){return[].concat(x.slice(0,$),B,x.slice($+1))}function l(x){return!(x>=55296&&x<=57343||x>=64976&&x<=65007||(x&65535)===65535||(x&65535)===65534||x>=0&&x<=8||x===11||x>=14&&x<=31||x>=127&&x<=159||x>1114111)}function c(x){if(x>65535){x-=65536;var $=55296+(x>>10),B=56320+(x&1023);return String.fromCharCode($,B)}return String.fromCharCode(x)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(u.source+"|"+d.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,m=lm;function h(x,$){var B;return i(m,$)?m[$]:$.charCodeAt(0)===35&&f.test($)&&(B=$[1].toLowerCase()==="x"?parseInt($.slice(2),16):parseInt($.slice(1),10),l(B))?c(B):x}function v(x){return x.indexOf("\\")<0?x:x.replace(u,"$1")}function C(x){return x.indexOf("\\")<0&&x.indexOf("&")<0?x:x.replace(p,function($,B,q){return B||h($,q)})}var y=/[&<>"]/,g=/[&<>"]/g,_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function b(x){return _[x]}function w(x){return y.test(x)?x.replace(g,b):x}var k=/[.?*+^$[\]\\(){}|-]/g;function A(x){return x.replace(k,"\\$&")}function S(x){switch(x){case 9:case 32:return!0}return!1}function E(x){if(x>=8192&&x<=8202)return!0;switch(x){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var D=hu;function V(x){return D.test(x)}function T(x){switch(x){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function M(x){return x=x.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(x=x.replace(/ẞ/g,"ß")),x.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Wr,t.lib.ucmicro=Rre(),t.assign=s,t.isString=n,t.has=i,t.unescapeMd=v,t.unescapeAll=C,t.isValidEntityCode=l,t.fromCodePoint=c,t.escapeHtml=w,t.arrayReplaceAt=a,t.isSpace=S,t.isWhiteSpace=E,t.isMdAsciiPunct=T,t.isPunctChar=V,t.escapeRE=A,t.normalizeReference=M})(Be);var qa={},zre=function(e,n,o){var i,s,a,l,c=-1,u=e.posMax,d=e.pos;for(e.pos=n+1,i=1;e.pos<u;){if(a=e.src.charCodeAt(e.pos),a===93&&(i--,i===0)){s=!0;break}if(l=e.pos,e.md.inline.skipToken(e),a===91){if(l===e.pos-1)i++;else if(o)return e.pos=d,-1}}return s&&(c=e.pos),e.pos=d,c},r1=Be.unescapeAll,Ure=function(e,n,o){var i,s,a=n,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(a)===60){for(a++;a<o;){if(i=e.charCodeAt(a),i===10||i===60)return l;if(i===62)return l.pos=a+1,l.str=r1(e.slice(n+1,a)),l.ok=!0,l;if(i===92&&a+1<o){a+=2;continue}a++}return l}for(s=0;a<o&&(i=e.charCodeAt(a),!(i===32||i<32||i===127));){if(i===92&&a+1<o){if(e.charCodeAt(a+1)===32)break;a+=2;continue}if(i===40&&(s++,s>32))return l;if(i===41){if(s===0)break;s--}a++}return n===a||s!==0||(l.str=r1(e.slice(n,a)),l.pos=a,l.ok=!0),l},Hre=Be.unescapeAll,qre=function(e,n,o){var i,s,a=0,l=n,c={ok:!1,pos:0,lines:0,str:""};if(l>=o||(s=e.charCodeAt(l),s!==34&&s!==39&&s!==40))return c;for(l++,s===40&&(s=41);l<o;){if(i=e.charCodeAt(l),i===s)return c.pos=l+1,c.lines=a,c.str=Hre(e.slice(n+1,l)),c.ok=!0,c;if(i===40&&s===41)return c;i===10?a++:i===92&&l+1<o&&(l++,e.charCodeAt(l)===10&&a++),l++}return c};qa.parseLinkLabel=zre;qa.parseLinkDestination=Ure;qa.parseLinkTitle=qre;var jre=Be.assign,Wre=Be.unescapeAll,Xo=Be.escapeHtml,In={};In.code_inline=function(t,e,n,o,i){var s=t[e];return"<code"+i.renderAttrs(s)+">"+Xo(s.content)+"</code>"};In.code_block=function(t,e,n,o,i){var s=t[e];return"<pre"+i.renderAttrs(s)+"><code>"+Xo(t[e].content)+`</code></pre>
4
4
  `};In.fence=function(t,e,n,o,i){var s=t[e],a=s.info?Wre(s.info).trim():"",l="",c="",u,d,p,f,m;return a&&(p=a.split(/(\s+)/g),l=p[0],c=p.slice(2).join("")),n.highlight?u=n.highlight(s.content,l,c)||Xo(s.content):u=Xo(s.content),u.indexOf("<pre")===0?u+`
5
5
  `:a?(d=s.attrIndex("class"),f=s.attrs?s.attrs.slice():[],d<0?f.push(["class",n.langPrefix+l]):(f[d]=f[d].slice(),f[d][1]+=" "+n.langPrefix+l),m={attrs:f},"<pre><code"+i.renderAttrs(m)+">"+u+`</code></pre>
6
6
  `):"<pre><code"+i.renderAttrs(s)+">"+u+`</code></pre>
@@ -14,50 +14,50 @@
14
14
  `:">",s)};Zr.prototype.renderInline=function(t,e,n){for(var o,i="",s=this.rules,a=0,l=t.length;a<l;a++)o=t[a].type,typeof s[o]<"u"?i+=s[o](t,a,e,n,this):i+=this.renderToken(t,a,e);return i};Zr.prototype.renderInlineAsText=function(t,e,n){for(var o="",i=0,s=t.length;i<s;i++)t[i].type==="text"?o+=t[i].content:t[i].type==="image"?o+=this.renderInlineAsText(t[i].children,e,n):t[i].type==="softbreak"&&(o+=`
15
15
  `);return o};Zr.prototype.render=function(t,e,n){var o,i,s,a="",l=this.rules;for(o=0,i=t.length;o<i;o++)s=t[o].type,s==="inline"?a+=this.renderInline(t[o].children,e,n):typeof l[s]<"u"?a+=l[s](t,o,e,n,this):a+=this.renderToken(t,o,e,n);return a};var Zre=Zr;function vn(){this.__rules__=[],this.__cache__=null}vn.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1};vn.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(o){o.enabled&&(n&&o.alt.indexOf(n)<0||t.__cache__[n].push(o.fn))})})};vn.prototype.at=function(t,e,n){var o=this.__find__(t),i=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__[o].fn=e,this.__rules__[o].alt=i.alt||[],this.__cache__=null};vn.prototype.before=function(t,e,n,o){var i=this.__find__(t),s=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};vn.prototype.after=function(t,e,n,o){var i=this.__find__(t),s=o||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};vn.prototype.push=function(t,e,n){var o=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};vn.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!0,n.push(o)},this),this.__cache__=null,n};vn.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)};vn.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(o){var i=this.__find__(o);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[i].enabled=!1,n.push(o)},this),this.__cache__=null,n};vn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var gu=vn,Kre=/\r\n?|\n/g,Gre=/\0/g,Yre=function(e){var n;n=e.src.replace(Kre,`
16
16
  `),n=n.replace(Gre,"�"),e.src=n},Jre=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Xre=function(e){var n=e.tokens,o,i,s;for(i=0,s=n.length;i<s;i++)o=n[i],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},Qre=Be.arrayReplaceAt;function eie(t){return/^<a[>\s]/i.test(t)}function tie(t){return/^<\/a\s*>/i.test(t)}var nie=function(e){var n,o,i,s,a,l,c,u,d,p,f,m,h,v,C,y,g=e.tokens,_;if(e.md.options.linkify){for(o=0,i=g.length;o<i;o++)if(!(g[o].type!=="inline"||!e.md.linkify.pretest(g[o].content)))for(s=g[o].children,h=0,n=s.length-1;n>=0;n--){if(l=s[n],l.type==="link_close"){for(n--;s[n].level!==l.level&&s[n].type!=="link_open";)n--;continue}if(l.type==="html_inline"&&(eie(l.content)&&h>0&&h--,tie(l.content)&&h++),!(h>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(d=l.content,_=e.md.linkify.match(d),c=[],m=l.level,f=0,_.length>0&&_[0].index===0&&n>0&&s[n-1].type==="text_special"&&(_=_.slice(1)),u=0;u<_.length;u++)v=_[u].url,C=e.md.normalizeLink(v),e.md.validateLink(C)&&(y=_[u].text,_[u].schema?_[u].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),p=_[u].index,p>f&&(a=new e.Token("text","",0),a.content=d.slice(f,p),a.level=m,c.push(a)),a=new e.Token("link_open","a",1),a.attrs=[["href",C]],a.level=m++,a.markup="linkify",a.info="auto",c.push(a),a=new e.Token("text","",0),a.content=y,a.level=m,c.push(a),a=new e.Token("link_close","a",-1),a.level=--m,a.markup="linkify",a.info="auto",c.push(a),f=_[u].lastIndex);f<d.length&&(a=new e.Token("text","",0),a.content=d.slice(f),a.level=m,c.push(a)),g[o].children=s=Qre(s,n,c)}}}},fm=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,oie=/\((c|tm|r)\)/i,rie=/\((c|tm|r)\)/ig,iie={c:"©",r:"®",tm:"™"};function sie(t,e){return iie[e.toLowerCase()]}function aie(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&(n.content=n.content.replace(rie,sie)),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}function lie(t){var e,n,o=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!o&&fm.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&o--,n.type==="link_close"&&n.info==="auto"&&o++}var cie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(oie.test(e.tokens[n].content)&&aie(e.tokens[n].children),fm.test(e.tokens[n].content)&&lie(e.tokens[n].children))},i1=Be.isWhiteSpace,s1=Be.isPunctChar,a1=Be.isMdAsciiPunct,uie=/['"]/,l1=/['"]/g,c1="’";function $s(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function die(t,e){var n,o,i,s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b,w,k;for(b=[],n=0;n<t.length;n++){for(o=t[n],c=t[n].level,g=b.length-1;g>=0&&!(b[g].level<=c);g--);if(b.length=g+1,o.type==="text"){i=o.content,a=0,l=i.length;e:for(;a<l&&(l1.lastIndex=a,s=l1.exec(i),!!s);){if(C=y=!0,a=s.index+1,_=s[0]==="'",d=32,s.index-1>=0)d=i.charCodeAt(s.index-1);else for(g=n-1;g>=0&&!(t[g].type==="softbreak"||t[g].type==="hardbreak");g--)if(t[g].content){d=t[g].content.charCodeAt(t[g].content.length-1);break}if(p=32,a<l)p=i.charCodeAt(a);else for(g=n+1;g<t.length&&!(t[g].type==="softbreak"||t[g].type==="hardbreak");g++)if(t[g].content){p=t[g].content.charCodeAt(0);break}if(f=a1(d)||s1(String.fromCharCode(d)),m=a1(p)||s1(String.fromCharCode(p)),h=i1(d),v=i1(p),v?C=!1:m&&(h||f||(C=!1)),h?y=!1:f&&(v||m||(y=!1)),p===34&&s[0]==='"'&&d>=48&&d<=57&&(y=C=!1),C&&y&&(C=f,y=m),!C&&!y){_&&(o.content=$s(o.content,s.index,c1));continue}if(y){for(g=b.length-1;g>=0&&(u=b[g],!(b[g].level<c));g--)if(u.single===_&&b[g].level===c){u=b[g],_?(w=e.md.options.quotes[2],k=e.md.options.quotes[3]):(w=e.md.options.quotes[0],k=e.md.options.quotes[1]),o.content=$s(o.content,s.index,k),t[u.token].content=$s(t[u.token].content,u.pos,w),a+=k.length-1,u.token===n&&(a+=w.length-1),i=o.content,l=i.length,b.length=g;continue e}}C?b.push({token:n,pos:s.index,single:_,level:c}):y&&_&&(o.content=$s(o.content,s.index,c1))}}}}var fie=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!uie.test(e.tokens[n].content)||die(e.tokens[n].children,e)},pie=function(e){var n,o,i,s,a,l,c=e.tokens;for(n=0,o=c.length;n<o;n++)if(c[n].type==="inline"){for(i=c[n].children,a=i.length,s=0;s<a;s++)i[s].type==="text_special"&&(i[s].type="text");for(s=l=0;s<a;s++)i[s].type==="text"&&s+1<a&&i[s+1].type==="text"?i[s+1].content=i[s].content+i[s+1].content:(s!==l&&(i[l]=i[s]),l++);s!==l&&(i.length=l)}};function Kr(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Kr.prototype.attrIndex=function(e){var n,o,i;if(!this.attrs)return-1;for(n=this.attrs,o=0,i=n.length;o<i;o++)if(n[o][0]===e)return o;return-1};Kr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Kr.prototype.attrSet=function(e,n){var o=this.attrIndex(e),i=[e,n];o<0?this.attrPush(i):this.attrs[o]=i};Kr.prototype.attrGet=function(e){var n=this.attrIndex(e),o=null;return n>=0&&(o=this.attrs[n][1]),o};Kr.prototype.attrJoin=function(e,n){var o=this.attrIndex(e);o<0?this.attrPush([e,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var vu=Kr,mie=vu;function pm(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}pm.prototype.Token=mie;var hie=pm,gie=gu,Dl=[["normalize",Yre],["block",Jre],["inline",Xre],["linkify",nie],["replacements",cie],["smartquotes",fie],["text_join",pie]];function yu(){this.ruler=new gie;for(var t=0;t<Dl.length;t++)this.ruler.push(Dl[t][0],Dl[t][1])}yu.prototype.process=function(t){var e,n,o;for(o=this.ruler.getRules(""),e=0,n=o.length;e<n;e++)o[e](t)};yu.prototype.State=hie;var vie=yu,$l=Be.isSpace;function Bl(t,e){var n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];return t.src.slice(n,o)}function u1(t){var e=[],n=0,o=t.length,i,s=!1,a=0,l="";for(i=t.charCodeAt(n);n<o;)i===124&&(s?(l+=t.substring(a,n-1),a=n):(e.push(l+t.substring(a,n)),l="",a=n+1)),s=i===92,n++,i=t.charCodeAt(n);return e.push(l+t.substring(a)),e}var yie=function(e,n,o,i){var s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b,w,k;if(n+2>o||(d=n+1,e.sCount[d]<e.blkIndent)||e.sCount[d]-e.blkIndent>=4||(l=e.bMarks[d]+e.tShift[d],l>=e.eMarks[d])||(w=e.src.charCodeAt(l++),w!==124&&w!==45&&w!==58)||l>=e.eMarks[d]||(k=e.src.charCodeAt(l++),k!==124&&k!==45&&k!==58&&!$l(k))||w===45&&$l(k))return!1;for(;l<e.eMarks[d];){if(s=e.src.charCodeAt(l),s!==124&&s!==45&&s!==58&&!$l(s))return!1;l++}for(a=Bl(e,n+1),p=a.split("|"),h=[],c=0;c<p.length;c++){if(v=p[c].trim(),!v){if(c===0||c===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;v.charCodeAt(v.length-1)===58?h.push(v.charCodeAt(0)===58?"center":"right"):v.charCodeAt(0)===58?h.push("left"):h.push("")}if(a=Bl(e,n).trim(),a.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(p=u1(a),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),f=p.length,f===0||f!==h.length))return!1;if(i)return!0;for(g=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),m.map=C=[n,0],m=e.push("thead_open","thead",1),m.map=[n,n+1],m=e.push("tr_open","tr",1),m.map=[n,n+1],c=0;c<p.length;c++)m=e.push("th_open","th",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=p[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),d=n+2;d<o&&!(e.sCount[d]<e.blkIndent);d++){for(_=!1,c=0,u=b.length;c<u;c++)if(b[c](e,d,o,!0)){_=!0;break}if(_||(a=Bl(e,d).trim(),!a)||e.sCount[d]-e.blkIndent>=4)break;for(p=u1(a),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),d===n+2&&(m=e.push("tbody_open","tbody",1),m.map=y=[n+2,0]),m=e.push("tr_open","tr",1),m.map=[d,d+1],c=0;c<f;c++)m=e.push("td_open","td",1),h[c]&&(m.attrs=[["style","text-align:"+h[c]]]),m=e.push("inline","",0),m.content=p[c]?p[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return y&&(m=e.push("tbody_close","tbody",-1),y[1]=d),m=e.push("table_close","table",-1),C[1]=d,e.parentType=g,e.line=d,!0},_ie=function(e,n,o){var i,s,a;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=i=n+1;i<o;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,s=i;continue}break}return e.line=s,a=e.push("code_block","code",0),a.content=e.getLines(n,s,4+e.blkIndent,!1)+`
17
- `,a.map=[n,e.line],!0},Cie=function(e,n,o,i){var s,a,l,c,u,d,p,f=!1,m=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>h||(s=e.src.charCodeAt(m),s!==126&&s!==96)||(u=m,m=e.skipChars(m,s),a=m-u,a<3)||(p=e.src.slice(u,m),l=e.src.slice(m,h),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(i)return!0;for(c=n;c++,!(c>=o||(m=u=e.bMarks[c]+e.tShift[c],h=e.eMarks[c],m<h&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(m)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(m=e.skipChars(m,s),!(m-u<a)&&(m=e.skipSpaces(m),!(m<h)))){f=!0;break}return a=e.sCount[n],e.line=c+(f?1:0),d=e.push("fence","code",0),d.info=l,d.content=e.getLines(n+1,c,a,!0),d.markup=p,d.map=[n,e.line],!0},bie=Be.isSpace,kie=function(e,n,o,i){var s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b,w,k,x,S,E=e.lineMax,N=e.bMarks[n]+e.tShift[n],I=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(N)!==62)return!1;if(i)return!0;for(h=[],v=[],g=[],_=[],k=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",f=n;f<o&&(S=e.sCount[f]<e.blkIndent,N=e.bMarks[f]+e.tShift[f],I=e.eMarks[f],!(N>=I));f++){if(e.src.charCodeAt(N++)===62&&!S){for(c=e.sCount[f]+1,e.src.charCodeAt(N)===32?(N++,c++,s=!1,b=!0):e.src.charCodeAt(N)===9?(b=!0,(e.bsCount[f]+c)%4===3?(N++,c++,s=!1):s=!0):b=!1,m=c,h.push(e.bMarks[f]),e.bMarks[f]=N;N<I&&(a=e.src.charCodeAt(N),bie(a));){a===9?m+=4-(m+e.bsCount[f]+(s?1:0))%4:m++;N++}d=N>=I,v.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),g.push(e.sCount[f]),e.sCount[f]=m-c,_.push(e.tShift[f]),e.tShift[f]=N-e.bMarks[f];continue}if(d)break;for(w=!1,l=0,u=k.length;l<u;l++)if(k[l](e,f,o,!0)){w=!0;break}if(w){e.lineMax=f,e.blkIndent!==0&&(h.push(e.bMarks[f]),v.push(e.bsCount[f]),_.push(e.tShift[f]),g.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}h.push(e.bMarks[f]),v.push(e.bsCount[f]),_.push(e.tShift[f]),g.push(e.sCount[f]),e.sCount[f]=-1}for(C=e.blkIndent,e.blkIndent=0,x=e.push("blockquote_open","blockquote",1),x.markup=">",x.map=p=[n,0],e.md.block.tokenize(e,n,f),x=e.push("blockquote_close","blockquote",-1),x.markup=">",e.lineMax=E,e.parentType=y,p[1]=e.line,l=0;l<_.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=_[l],e.sCount[l+n]=g[l],e.bsCount[l+n]=v[l];return e.blkIndent=C,!0},wie=Be.isSpace,Eie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(a=1;u<d;){if(l=e.src.charCodeAt(u++),l!==s&&!wie(l))return!1;l===s&&a++}return a<3?!1:(i||(e.line=n+1,c=e.push("hr","hr",0),c.map=[n,e.line],c.markup=Array(a+1).join(String.fromCharCode(s))),!0)},mm=Be.isSpace;function d1(t,e){var n,o,i,s;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(s=t.src.charCodeAt(o),!mm(s))?-1:o}function f1(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,s=t.eMarks[e];if(i+1>=s||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=s)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<s&&(n=t.src.charCodeAt(i),!mm(n))?-1:i}function Sie(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var xie=function(e,n,o,i){var s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b,w,k,x,S,E,N,I,A,M,D,$,B=n,P=!1,L=!0;if(e.sCount[B]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[B]-e.listIndent>=4&&e.sCount[B]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[B]>=e.blkIndent&&(P=!0),(N=f1(e,B))>=0){if(p=!0,A=e.bMarks[B]+e.tShift[B],y=Number(e.src.slice(A,N-1)),P&&y!==1)return!1}else if((N=d1(e,B))>=0)p=!1;else return!1;if(P&&e.skipSpaces(N)>=e.eMarks[B])return!1;if(i)return!0;for(C=e.src.charCodeAt(N-1),v=e.tokens.length,p?($=e.push("ordered_list_open","ol",1),y!==1&&($.attrs=[["start",y]])):$=e.push("bullet_list_open","ul",1),$.map=h=[B,0],$.markup=String.fromCharCode(C),I=!1,D=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";B<o;){for(E=N,g=e.eMarks[B],d=_=e.sCount[B]+N-(e.bMarks[B]+e.tShift[B]);E<g;){if(s=e.src.charCodeAt(E),s===9)_+=4-(_+e.bsCount[B])%4;else if(s===32)_++;else break;E++}if(a=E,a>=g?u=1:u=_-d,u>4&&(u=1),c=d+u,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(C),$.map=f=[B,0],p&&($.info=e.src.slice(A,N-1)),S=e.tight,x=e.tShift[B],k=e.sCount[B],b=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[B]=a-e.bMarks[B],e.sCount[B]=_,a>=g&&e.isEmpty(B+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,B,o,!0),(!e.tight||I)&&(L=!1),I=e.line-B>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=b,e.tShift[B]=x,e.sCount[B]=k,e.tight=S,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(C),B=e.line,f[1]=B,B>=o||e.sCount[B]<e.blkIndent||e.sCount[B]-e.blkIndent>=4)break;for(M=!1,l=0,m=D.length;l<m;l++)if(D[l](e,B,o,!0)){M=!0;break}if(M)break;if(p){if(N=f1(e,B),N<0)break;A=e.bMarks[B]+e.tShift[B]}else if(N=d1(e,B),N<0)break;if(C!==e.src.charCodeAt(N-1))break}return p?$=e.push("ordered_list_close","ol",-1):$=e.push("bullet_list_close","ul",-1),$.markup=String.fromCharCode(C),h[1]=B,e.line=B,e.parentType=w,L&&Sie(e,v),!0},Aie=Be.normalizeReference,Bs=Be.isSpace,Tie=function(e,n,o,i){var s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b,w=0,k=e.bMarks[n]+e.tShift[n],x=e.eMarks[n],S=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(k)!==91)return!1;for(;++k<x;)if(e.src.charCodeAt(k)===93&&e.src.charCodeAt(k-1)!==92){if(k+1===x||e.src.charCodeAt(k+1)!==58)return!1;break}for(c=e.lineMax,_=e.md.block.ruler.getRules("reference"),h=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3)&&!(e.sCount[S]<0)){for(g=!1,d=0,p=_.length;d<p;d++)if(_[d](e,S,c,!0)){g=!0;break}if(g)break}for(y=e.getLines(n,S,e.blkIndent,!1).trim(),x=y.length,k=1;k<x;k++){if(s=y.charCodeAt(k),s===91)return!1;if(s===93){m=k;break}else s===10?w++:s===92&&(k++,k<x&&y.charCodeAt(k)===10&&w++)}if(m<0||y.charCodeAt(m+1)!==58)return!1;for(k=m+2;k<x;k++)if(s=y.charCodeAt(k),s===10)w++;else if(!Bs(s))break;if(v=e.md.helpers.parseLinkDestination(y,k,x),!v.ok||(u=e.md.normalizeLink(v.str),!e.md.validateLink(u)))return!1;for(k=v.pos,w+=v.lines,a=k,l=w,C=k;k<x;k++)if(s=y.charCodeAt(k),s===10)w++;else if(!Bs(s))break;for(v=e.md.helpers.parseLinkTitle(y,k,x),k<x&&C!==k&&v.ok?(b=v.str,k=v.pos,w+=v.lines):(b="",k=a,w=l);k<x&&(s=y.charCodeAt(k),!!Bs(s));)k++;if(k<x&&y.charCodeAt(k)!==10&&b)for(b="",k=a,w=l;k<x&&(s=y.charCodeAt(k),!!Bs(s));)k++;return k<x&&y.charCodeAt(k)!==10||(f=Aie(y.slice(1,m)),!f)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:b,href:u}),e.parentType=h,e.line=n+w+1),!0)},Nie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ja={},Die="[a-zA-Z_:][a-zA-Z0-9:._-]*",$ie="[^\"'=<>`\\x00-\\x20]+",Bie="'[^']*'",Mie='"[^"]*"',Lie="(?:"+$ie+"|"+Bie+"|"+Mie+")",Oie="(?:\\s+"+Die+"(?:\\s*=\\s*"+Lie+")?)",hm="<[A-Za-z][A-Za-z0-9\\-]*"+Oie+"*\\s*\\/?>",gm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Vie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Iie="<[?][\\s\\S]*?[?]>",Pie="<![A-Z]+\\s+[^>]*>",Fie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Rie=new RegExp("^(?:"+hm+"|"+gm+"|"+Vie+"|"+Iie+"|"+Pie+"|"+Fie+")"),zie=new RegExp("^(?:"+hm+"|"+gm+")");ja.HTML_TAG_RE=Rie;ja.HTML_OPEN_CLOSE_TAG_RE=zie;var Uie=Nie,Hie=ja.HTML_OPEN_CLOSE_TAG_RE,gr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Uie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Hie.source+"\\s*$"),/^$/,!1]],qie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(c=e.src.slice(u,d),s=0;s<gr.length&&!gr[s][0].test(c);s++);if(s===gr.length)return!1;if(i)return gr[s][2];if(a=n+1,!gr[s][1].test(c)){for(;a<o&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],d=e.eMarks[a],c=e.src.slice(u,d),gr[s][1].test(c)){c.length!==0&&a++;break}}return e.line=a,l=e.push("html_block","",0),l.map=[n,a],l.content=e.getLines(n,a,e.blkIndent,!0),!0},p1=Be.isSpace,jie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u),s!==35||u>=d))return!1;for(a=1,s=e.src.charCodeAt(++u);s===35&&u<d&&a<=6;)a++,s=e.src.charCodeAt(++u);return a>6||u<d&&!p1(s)?!1:(i||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&p1(e.src.charCodeAt(l-1))&&(d=l),e.line=n+1,c=e.push("heading_open","h"+String(a),1),c.markup="########".slice(0,a),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(u,d).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(a),-1),c.markup="########".slice(0,a)),!0)},Wie=function(e,n,o){var i,s,a,l,c,u,d,p,f,m=n+1,h,v=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<o&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(u=e.bMarks[m]+e.tShift[m],d=e.eMarks[m],u<d&&(f=e.src.charCodeAt(u),(f===45||f===61)&&(u=e.skipChars(u,f),u=e.skipSpaces(u),u>=d)))){p=f===61?1:2;break}if(!(e.sCount[m]<0)){for(s=!1,a=0,l=v.length;a<l;a++)if(v[a](e,m,o,!0)){s=!0;break}if(s)break}}return p?(i=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+1,c=e.push("heading_open","h"+String(p),1),c.markup=String.fromCharCode(f),c.map=[n,e.line],c=e.push("inline","",0),c.content=i,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(p),-1),c.markup=String.fromCharCode(f),e.parentType=h,!0):!1},Zie=function(e,n,o){var i,s,a,l,c,u,d=n+1,p=e.md.block.ruler.getRules("paragraph");for(u=e.parentType,e.parentType="paragraph";d<o&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(s=!1,a=0,l=p.length;a<l;a++)if(p[a](e,d,o,!0)){s=!0;break}if(s)break}return i=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d,c=e.push("paragraph_open","p",1),c.map=[n,e.line],c=e.push("inline","",0),c.content=i,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},vm=vu,Wa=Be.isSpace;function Pn(t,e,n,o){var i,s,a,l,c,u,d,p;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,p=!1,a=l=u=d=0,c=s.length;l<c;l++){if(i=s.charCodeAt(l),!p)if(Wa(i)){u++,i===9?d+=4-d%4:d++;continue}else p=!0;(i===10||l===c-1)&&(i!==10&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),p=!1,u=0,d=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Pn.prototype.push=function(t,e,n){var o=new vm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Pn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Pn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Pn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Wa(n));e++);return e};Pn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Wa(this.src.charCodeAt(--e)))return e+1;return e};Pn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Pn.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Pn.prototype.getLines=function(e,n,o,i){var s,a,l,c,u,d,p,f=e;if(e>=n)return"";for(d=new Array(n-e),s=0;f<n;f++,s++){for(a=0,p=c=this.bMarks[f],f+1<n||i?u=this.eMarks[f]+1:u=this.eMarks[f];c<u&&a<o;){if(l=this.src.charCodeAt(c),Wa(l))l===9?a+=4-(a+this.bsCount[f])%4:a++;else if(c-p<this.tShift[f])a++;else break;c++}a>o?d[s]=new Array(a-o+1).join(" ")+this.src.slice(c,u):d[s]=this.src.slice(c,u)}return d.join("")};Pn.prototype.Token=vm;var Kie=Pn,Gie=gu,Ms=[["table",yie,["paragraph","reference"]],["code",_ie],["fence",Cie,["paragraph","reference","blockquote","list"]],["blockquote",kie,["paragraph","reference","blockquote","list"]],["hr",Eie,["paragraph","reference","blockquote","list"]],["list",xie,["paragraph","reference","blockquote"]],["reference",Tie],["html_block",qie,["paragraph","reference","blockquote"]],["heading",jie,["paragraph","reference","blockquote"]],["lheading",Wie],["paragraph",Zie]];function Za(){this.ruler=new Gie;for(var t=0;t<Ms.length;t++)this.ruler.push(Ms[t][0],Ms[t][1],{alt:(Ms[t][2]||[]).slice()})}Za.prototype.tokenize=function(t,e,n){for(var o,i,s,a=this.ruler.getRules(""),l=a.length,c=e,u=!1,d=t.md.options.maxNesting;c<n&&(t.line=c=t.skipEmptyLines(c),!(c>=n||t.sCount[c]<t.blkIndent));){if(t.level>=d){t.line=n;break}for(s=t.line,i=0;i<l;i++)if(o=a[i](t,c,n,!1),o){if(s>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),c=t.line,c<n&&t.isEmpty(c)&&(u=!0,c++,t.line=c)}};Za.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Za.prototype.State=Kie;var Yie=Za;function Jie(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var Xie=function(e,n){for(var o=e.pos;o<e.posMax&&!Jie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Qie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,ese=function(e,n){var o,i,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,i=e.posMax,o+3>i)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(Qie),!s)||(a=s[1],l=e.md.linkify.matchAtStart(e.src.slice(o-a.length)),!l)||(c=l.url,c.length<=a.length)||(c=c.replace(/\*+$/,""),u=e.md.normalizeLink(c),!e.md.validateLink(u))?!1:(n||(e.pending=e.pending.slice(0,-a.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(c),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=c.length-a.length,!0)},tse=Be.isSpace,nse=function(e,n){var o,i,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,i=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(s=o-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<i&&tse(e.src.charCodeAt(a));)a++;return e.pos=a,!0},ose=Be.isSpace,_u=[];for(var m1=0;m1<256;m1++)_u.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){_u[t.charCodeAt(0)]=1});var rse=function(e,n){var o,i,s,a,l,c=e.pos,u=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=u))return!1;if(o=e.src.charCodeAt(c),o===10){for(n||e.push("hardbreak","br",0),c++;c<u&&(o=e.src.charCodeAt(c),!!ose(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(i=e.src.charCodeAt(c+1),i>=56320&&i<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&_u[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},ise=function(e,n){var o,i,s,a,l,c,u,d,p=e.pos,f=e.src.charCodeAt(p);if(f!==96)return!1;for(o=p,p++,i=e.posMax;p<i&&e.src.charCodeAt(p)===96;)p++;if(s=e.src.slice(o,p),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=o)return n||(e.pending+=s),e.pos+=u,!0;for(c=p;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<i&&e.src.charCodeAt(c)===96;)c++;if(d=c-l,d===u)return n||(a=e.push("code_inline","code",0),a.markup=s,a.content=e.src.slice(p,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[d]=l}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=u,!0},Ka={};Ka.tokenize=function(e,n){var o,i,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(i=e.scanDelims(e.pos,!0),a=i.length,l=String.fromCharCode(u),a<2))return!1;for(a%2&&(s=e.push("text","",0),s.content=l,a--),o=0;o<a;o+=2)s=e.push("text","",0),s.content=l+l,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function h1(t,e){var n,o,i,s,a,l=[],c=e.length;for(n=0;n<c;n++)i=e[n],i.marker===126&&i.end!==-1&&(s=e[i.end],a=t.tokens[i.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[s.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&l.push(s.token-1));for(;l.length;){for(n=l.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(a=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=a)}}Ka.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(h1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&h1(e,o[n].delimiters)};var Ga={};Ga.tokenize=function(e,n){var o,i,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(i=e.scanDelims(e.pos,l===42),o=0;o<i.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function g1(t,e){var n,o,i,s,a,l,c=e.length;for(n=c-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],l=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1,a=String.fromCharCode(o.marker),s=t.tokens[o.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?a+a:a,s.content="",s=t.tokens[i.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?a+a:a,s.content="",l&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Ga.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(g1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&g1(e,o[n].delimiters)};var sse=Be.normalizeReference,Ml=Be.isSpace,ase=function(e,n){var o,i,s,a,l,c,u,d,p,f="",m="",h=e.pos,v=e.posMax,C=e.pos,y=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(c=a+1,c<v&&e.src.charCodeAt(c)===40){for(y=!1,c++;c<v&&(i=e.src.charCodeAt(c),!(!Ml(i)&&i!==10));c++);if(c>=v)return!1;if(C=c,u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),u.ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?c=u.pos:f="",C=c;c<v&&(i=e.src.charCodeAt(c),!(!Ml(i)&&i!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<v&&C!==c&&u.ok)for(m=u.str,c=u.pos;c<v&&(i=e.src.charCodeAt(c),!(!Ml(i)&&i!==10));c++);}(c>=v||e.src.charCodeAt(c)!==41)&&(y=!0),c++}if(y){if(typeof e.env.references>"u")return!1;if(c<v&&e.src.charCodeAt(c)===91?(C=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(C,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[sse(s)],!d)return e.pos=h,!1;f=d.href,m=d.title}return n||(e.pos=l,e.posMax=a,p=e.push("link_open","a",1),p.attrs=o=[["href",f]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,p=e.push("link_close","a",-1)),e.pos=c,e.posMax=v,!0},lse=Be.normalizeReference,Ll=Be.isSpace,cse=function(e,n){var o,i,s,a,l,c,u,d,p,f,m,h,v,C="",y=e.pos,g=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(u=l+1,u<g&&e.src.charCodeAt(u)===40){for(u++;u<g&&(i=e.src.charCodeAt(u),!(!Ll(i)&&i!==10));u++);if(u>=g)return!1;for(v=u,p=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),p.ok&&(C=e.md.normalizeLink(p.str),e.md.validateLink(C)?u=p.pos:C=""),v=u;u<g&&(i=e.src.charCodeAt(u),!(!Ll(i)&&i!==10));u++);if(p=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<g&&v!==u&&p.ok)for(f=p.str,u=p.pos;u<g&&(i=e.src.charCodeAt(u),!(!Ll(i)&&i!==10));u++);else f="";if(u>=g||e.src.charCodeAt(u)!==41)return e.pos=y,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<g&&e.src.charCodeAt(u)===91?(v=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?a=e.src.slice(v,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),d=e.env.references[lse(a)],!d)return e.pos=y,!1;C=d.href,f=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,h=[]),m=e.push("image","img",0),m.attrs=o=[["src",C],["alt",""]],m.children=h,m.content=s,f&&o.push(["title",f])),e.pos=u,e.posMax=g,!0},use=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,dse=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,fse=function(e,n){var o,i,s,a,l,c,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c||(a=e.src.charCodeAt(u),a===60))return!1;if(a===62)break}return o=e.src.slice(l+1,u),dse.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):use.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):!1},pse=ja.HTML_TAG_RE;function mse(t){return/^<a[>\s]/i.test(t)}function hse(t){return/^<\/a\s*>/i.test(t)}function gse(t){var e=t|32;return e>=97&&e<=122}var vse=function(e,n){var o,i,s,a,l=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(l)!==60||l+2>=s)||(o=e.src.charCodeAt(l+1),o!==33&&o!==63&&o!==47&&!gse(o))||(i=e.src.slice(l).match(pse),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=i[0],mse(a.content)&&e.linkLevel++,hse(a.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},v1=lm,yse=Be.has,_se=Be.isValidEntityCode,y1=Be.fromCodePoint,Cse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,bse=/^&([a-z][a-z0-9]{1,31});/i,kse=function(e,n){var o,i,s,a,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=c)return!1;if(o=e.src.charCodeAt(l+1),o===35){if(s=e.src.slice(l).match(Cse),s)return n||(i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=_se(i)?y1(i):y1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(bse),s&&yse(v1,s[1]))return n||(a=e.push("text_special","",0),a.content=v1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function _1(t){var e,n,o,i,s,a,l,c,u={},d=t.length;if(d){var p=0,f=-2,m=[];for(e=0;e<d;e++)if(o=t[e],m.push(0),(t[p].marker!==o.marker||f!==o.token-1)&&(p=e),f=o.token,o.length=o.length||0,!!o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),s=u[o.marker][(o.open?3:0)+o.length%3],n=p-m[p]-1,a=n;n>s;n-=m[n]+1)if(i=t[n],i.marker===o.marker&&i.open&&i.end<0&&(l=!1,(i.close||o.open)&&(i.length+o.length)%3===0&&(i.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?m[n-1]+1:0,m[e]=e-n+c,m[n]=c,o.open=!1,i.end=e,i.close=!1,a=-1,f=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var wse=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(_1(e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&_1(o[n].delimiters)},Ese=function(e){var n,o,i=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&i--,s[n].level=i,s[n].nesting>0&&i++,s[n].type==="text"&&n+1<a&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==o&&(s[o]=s[n]),o++);n!==o&&(s.length=o)},Cu=vu,C1=Be.isWhiteSpace,b1=Be.isPunctChar,k1=Be.isMdAsciiPunct;function ss(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}ss.prototype.pushPending=function(){var t=new Cu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ss.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Cu(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};ss.prototype.scanDelims=function(t,e){var n=t,o,i,s,a,l,c,u,d,p,f=!0,m=!0,h=this.posMax,v=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===v;)n++;return s=n-t,i=n<h?this.src.charCodeAt(n):32,u=k1(o)||b1(String.fromCharCode(o)),p=k1(i)||b1(String.fromCharCode(i)),c=C1(o),d=C1(i),d?f=!1:p&&(c||u||(f=!1)),c?m=!1:u&&(d||p||(m=!1)),e?(a=f,l=m):(a=f&&(!m||u),l=m&&(!f||p)),{can_open:a,can_close:l,length:s}};ss.prototype.Token=Cu;var Sse=ss,w1=gu,Ol=[["text",Xie],["linkify",ese],["newline",nse],["escape",rse],["backticks",ise],["strikethrough",Ka.tokenize],["emphasis",Ga.tokenize],["link",ase],["image",cse],["autolink",fse],["html_inline",vse],["entity",kse]],Vl=[["balance_pairs",wse],["strikethrough",Ka.postProcess],["emphasis",Ga.postProcess],["fragments_join",Ese]];function as(){var t;for(this.ruler=new w1,t=0;t<Ol.length;t++)this.ruler.push(Ol[t][0],Ol[t][1]);for(this.ruler2=new w1,t=0;t<Vl.length;t++)this.ruler2.push(Vl[t][0],Vl[t][1])}as.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),s=i.length,a=t.md.options.maxNesting,l=t.cache;if(typeof l[o]<"u"){t.pos=l[o];return}if(t.level<a){for(n=0;n<s;n++)if(t.level++,e=i[n](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,l[o]=t.pos};as.prototype.tokenize=function(t){for(var e,n,o,i=this.ruler.getRules(""),s=i.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(o=t.pos,t.level<l){for(n=0;n<s;n++)if(e=i[n](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};as.prototype.parse=function(t,e,n,o){var i,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,i=0;i<a;i++)s[i](l)};as.prototype.State=Sse;var xse=as,Il,E1;function Ase(){return E1||(E1=1,Il=function(t){var e={};t=t||{},e.src_Any=cm().source,e.src_Cc=um().source,e.src_Z=dm().source,e.src_P=hu.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Il}function hc(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function Ya(t){return Object.prototype.toString.call(t)}function Tse(t){return Ya(t)==="[object String]"}function Nse(t){return Ya(t)==="[object Object]"}function Dse(t){return Ya(t)==="[object RegExp]"}function S1(t){return Ya(t)==="[object Function]"}function $se(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var ym={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Bse(t){return Object.keys(t||{}).reduce(function(e,n){return e||ym.hasOwnProperty(n)},!1)}var Mse={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},Lse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Ose="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Vse(t){t.__index__=-1,t.__text_cache__=""}function Ise(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function x1(){return function(t,e){e.normalize(t)}}function ia(t){var e=t.re=Ase()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Lse),n.push(e.src_xn),e.src_tlds=n.join("|");function o(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function s(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){var c=t.__schemas__[l];if(c!==null){var u={validate:null,link:null};if(t.__compiled__[l]=u,Nse(c)){Dse(c.validate)?u.validate=Ise(c.validate):S1(c.validate)?u.validate=c.validate:s(l,c),S1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=x1();return}if(Tse(c)){i.push(l);return}s(l,c)}}),i.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:x1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map($se).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Vse(t)}function Pse(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}function gc(t,e){var n=new Pse(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function qt(t,e){if(!(this instanceof qt))return new qt(t,e);e||Bse(t)&&(e=t,t={}),this.__opts__=hc({},ym,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=hc({},Mse,t),this.__compiled__={},this.__tlds__=Ose,this.__tlds_replaced__=!1,this.re={},ia(this)}qt.prototype.add=function(e,n){return this.__schemas__[e]=n,ia(this),this};qt.prototype.set=function(e){return this.__opts__=hc(this.__opts__,e),this};qt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,s,a,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],c.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=o.index+o[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=l))),this.__index__>=0};qt.prototype.pretest=function(e){return this.re.pretest.test(e)};qt.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};qt.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(gc(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(gc(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};qt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,gc(this,0)):null};qt.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,s){return o!==s[i-1]}).reverse(),ia(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ia(this),this)};qt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};qt.prototype.onCompile=function(){};var Fse=qt;const xr=2147483647,Tn=36,bu=1,qi=26,Rse=38,zse=700,_m=72,Cm=128,bm="-",Use=/^xn--/,Hse=/[^\0-\x7F]/,qse=/[\x2E\u3002\uFF0E\uFF61]/g,jse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Pl=Tn-bu,Nn=Math.floor,Fl=String.fromCharCode;function co(t){throw new RangeError(jse[t])}function Wse(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function km(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(qse,".");const i=t.split("."),s=Wse(i,e).join(".");return o+s}function ku(t){const e=[];let n=0;const o=t.length;for(;n<o;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((i&1023)<<10)+(s&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const wm=t=>String.fromCodePoint(...t),Zse=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Tn},A1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Em=function(t,e,n){let o=0;for(t=n?Nn(t/zse):t>>1,t+=Nn(t/e);t>Pl*qi>>1;o+=Tn)t=Nn(t/Pl);return Nn(o+(Pl+1)*t/(t+Rse))},wu=function(t){const e=[],n=t.length;let o=0,i=Cm,s=_m,a=t.lastIndexOf(bm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&co("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const c=o;for(let d=1,p=Tn;;p+=Tn){l>=n&&co("invalid-input");const f=Zse(t.charCodeAt(l++));f>=Tn&&co("invalid-input"),f>Nn((xr-o)/d)&&co("overflow"),o+=f*d;const m=p<=s?bu:p>=s+qi?qi:p-s;if(f<m)break;const h=Tn-m;d>Nn(xr/h)&&co("overflow"),d*=h}const u=e.length+1;s=Em(o-c,u,c==0),Nn(o/u)>xr-i&&co("overflow"),i+=Nn(o/u),o%=u,e.splice(o++,0,i)}return String.fromCodePoint(...e)},Eu=function(t){const e=[];t=ku(t);const n=t.length;let o=Cm,i=0,s=_m;for(const c of t)c<128&&e.push(Fl(c));const a=e.length;let l=a;for(a&&e.push(bm);l<n;){let c=xr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>Nn((xr-i)/u)&&co("overflow"),i+=(c-o)*u,o=c;for(const d of t)if(d<o&&++i>xr&&co("overflow"),d===o){let p=i;for(let f=Tn;;f+=Tn){const m=f<=s?bu:f>=s+qi?qi:f-s;if(p<m)break;const h=p-m,v=Tn-m;e.push(Fl(A1(m+h%v,0))),p=Nn(h/v)}e.push(Fl(A1(p,0))),s=Em(i,u,l===a),i=0,++l}++i,++o}return e.join("")},Sm=function(t){return km(t,function(e){return Use.test(e)?wu(e.slice(4).toLowerCase()):e})},xm=function(t){return km(t,function(e){return Hse.test(e)?"xn--"+Eu(e):e})},Kse={version:"2.1.0",ucs2:{decode:ku,encode:wm},decode:wu,encode:Eu,toASCII:xm,toUnicode:Sm},Gse=Object.freeze(Object.defineProperty({__proto__:null,decode:wu,default:Kse,encode:Eu,toASCII:xm,toUnicode:Sm,ucs2decode:ku,ucs2encode:wm},Symbol.toStringTag,{value:"Module"})),Yse=vC(Gse);var Jse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Xse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Qse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Di=Be,eae=qa,tae=Zre,nae=vie,oae=Yie,rae=xse,iae=Fse,Ro=Wr,Am=Yse,sae={default:Jse,zero:Xse,commonmark:Qse},aae=/^(vbscript|javascript|file|data):/,lae=/^data:image\/(gif|png|jpeg|webp);/;function cae(t){var e=t.trim().toLowerCase();return aae.test(e)?!!lae.test(e):!0}var Tm=["http:","https:","mailto:"];function uae(t){var e=Ro.parse(t,!0);if(e.hostname&&(!e.protocol||Tm.indexOf(e.protocol)>=0))try{e.hostname=Am.toASCII(e.hostname)}catch{}return Ro.encode(Ro.format(e))}function dae(t){var e=Ro.parse(t,!0);if(e.hostname&&(!e.protocol||Tm.indexOf(e.protocol)>=0))try{e.hostname=Am.toUnicode(e.hostname)}catch{}return Ro.decode(Ro.format(e),Ro.decode.defaultChars+"%")}function nn(t,e){if(!(this instanceof nn))return new nn(t,e);e||Di.isString(t)||(e=t||{},t="default"),this.inline=new rae,this.block=new oae,this.core=new nae,this.renderer=new tae,this.linkify=new iae,this.validateLink=cae,this.normalizeLink=uae,this.normalizeLinkText=dae,this.utils=Di,this.helpers=Di.assign({},eae),this.options={},this.configure(t),e&&this.set(e)}nn.prototype.set=function(t){return Di.assign(this.options,t),this};nn.prototype.configure=function(t){var e=this,n;if(Di.isString(t)&&(n=t,t=sae[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};nn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};nn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};nn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};nn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};nn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};nn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};nn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var fae=nn,pae=fae;const mae=gC(pae);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function T1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function hae(t){if(Array.isArray(t))return t}function gae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function vae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yae(t,e){return hae(t)||gae(t,e)||_ae(t,e)||vae()}function _ae(t,e){if(t){if(typeof t=="string")return T1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T1(t,e):void 0}}const Nm=Object.entries,N1=Object.setPrototypeOf,Cae=Object.isFrozen,bae=Object.getPrototypeOf,kae=Object.getOwnPropertyDescriptor;let pt=Object.freeze,gt=Object.seal,br=Object.create,Dm=typeof Reflect<"u"&&Reflect,vc=Dm.apply,yc=Dm.construct;pt||(pt=function(e){return e});gt||(gt=function(e){return e});vc||(vc=function(e,n){for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];return e.apply(n,i)});yc||(yc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return new e(...o)});const vr=et(Array.prototype.forEach),wae=et(Array.prototype.lastIndexOf),D1=et(Array.prototype.pop),yr=et(Array.prototype.push),Eae=et(Array.prototype.splice),fo=Array.isArray,Si=et(String.prototype.toLowerCase),Rl=et(String.prototype.toString),$1=et(String.prototype.match),yi=et(String.prototype.replace),B1=et(String.prototype.indexOf),Sae=et(String.prototype.trim),xae=et(Number.prototype.toString),Aae=et(Boolean.prototype.toString),M1=typeof BigInt>"u"?null:et(BigInt.prototype.toString),L1=typeof Symbol>"u"?null:et(Symbol.prototype.toString),at=et(Object.prototype.hasOwnProperty),_i=et(Object.prototype.toString),st=et(RegExp.prototype.test),Bo=Tae(TypeError);function et(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return vc(t,e,o)}}function Tae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return yc(t,n)}}function Se(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si;if(N1&&N1(t,null),!fo(e))return t;let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const s=n(i);s!==i&&(Cae(e)||(e[o]=s),i=s)}t[i]=!0}return t}function Nae(t){for(let e=0;e<t.length;e++)at(t,e)||(t[e]=null);return t}function kt(t){const e=br(null);for(const o of Nm(t)){var n=yae(o,2);const i=n[0],s=n[1];at(t,i)&&(fo(s)?e[i]=Nae(s):s&&typeof s=="object"&&s.constructor===Object?e[i]=kt(s):e[i]=s)}return e}function Dae(t){switch(typeof t){case"string":return t;case"number":return xae(t);case"boolean":return Aae(t);case"bigint":return M1?M1(t):"0";case"symbol":return L1?L1(t):"Symbol()";case"undefined":return _i(t);case"function":case"object":{if(t===null)return _i(t);const e=t,n=cn(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:_i(o)}return _i(t)}default:return _i(t)}}function cn(t,e){for(;t!==null;){const o=kae(t,e);if(o){if(o.get)return et(o.get);if(typeof o.value=="function")return et(o.value)}t=bae(t)}function n(){return null}return n}function $ae(t){try{return st(t,""),!0}catch{return!1}}const O1=pt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zl=pt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ul=pt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Bae=pt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hl=pt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Mae=pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V1=pt(["#text"]),I1=pt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ql=pt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P1=pt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ls=pt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Lae=gt(/{{[\w\W]*|^[\w\W]*}}/g),Oae=gt(/<%[\w\W]*|^[\w\W]*%>/g),Vae=gt(/\${[\w\W]*/g),Iae=gt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Pae=gt(/^aria-[\-\w]+$/),F1=gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fae=gt(/^(?:\w+script|data):/i),Rae=gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zae=gt(/^html$/i),Uae=gt(/^[a-z][.\w]*(-[.\w]+)+$/i),R1=gt(/<[/\w!]/g),z1=gt(/<[/\w]/g),Hae=gt(/<\/no(script|embed|frames)/i),qae=gt(/\/>/i),Ft={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},jae=function(){return typeof window>"u"?null:window},Wae=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},U1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},lo=function(e,n,o,i){return at(e,n)&&fo(e[n])?Se(i.base?kt(i.base):{},e[n],i.transform):o};function $m(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jae();const e=X=>$m(X);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Ft.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,i=o.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,p=t.trustedTypes,f=l.prototype,m=cn(f,"cloneNode"),h=cn(f,"remove"),v=cn(f,"nextSibling"),C=cn(f,"childNodes"),y=cn(f,"parentNode"),g=cn(f,"shadowRoot"),_=cn(f,"attributes"),b=a&&a.prototype?cn(a.prototype,"nodeType"):null,w=a&&a.prototype?cn(a.prototype,"nodeName"):null,k=a&&a.prototype?cn(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const X=n.createElement("template");X.content&&X.content.ownerDocument&&(n=X.content.ownerDocument)}let x,S="",E,N=!1,I=0;const A=function(){if(I>0)throw Bo('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(T){A(),I++;try{return x.createHTML(T)}finally{I--}},D=function(T){A(),I++;try{return x.createScriptURL(T)}finally{I--}},$=function(){return N||(E=Wae(p,i),N=!0),E},B=n,P=B.implementation,L=B.createNodeIterator,R=B.createDocumentFragment,Y=B.getElementsByTagName,ae=o.importNode;let oe=U1();e.isSupported=typeof Nm=="function"&&typeof y=="function"&&P&&P.createHTMLDocument!==void 0;const Ne=Lae,ce=Oae,ne=Vae,H=Iae,z=Pae,re=Fae,Ee=Rae,ze=Uae;let we=F1,Ce=null;const _t=Se({},[...O1,...zl,...Ul,...Hl,...V1]);let U=null;const ie=Se({},[...I1,...ql,...P1,...Ls]);let he=Object.seal(br(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,Ze=null;const De=Object.seal(br(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,Fe=!0,Ge=!1,Ye=!0,Me=!1,Ct=!0,it=!1,Lt=!1,rn=null,Cn=null,bn=!1,kn=!1,no=!1,O=!1,W=!0,le=!1;const Je="user-content-";let Ot=!0,bt=!1,ve={},Et=null;const oo=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ys=null;const ni=Se({},["audio","video","img","source","image","track"]);let Vt=null;const fr=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ro="http://www.w3.org/1998/Math/MathML",pr="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let io=It,No=!1,oi=null;const vl=Se({},[ro,pr,It],Rl),_s=pt(["mi","mo","mn","ms","mtext"]);let Pt=Se({},_s);const Cs=pt(["annotation-xml"]);let ri=Se({},Cs);const yl=Se({},["title","style","font","a","script"]);let Do=null;const ii=["application/xhtml+xml","text/html"],si="text/html";let Ve=null,sn=null;const ai=n.createElement("form"),bs=function(T){return T instanceof RegExp||T instanceof Function},so=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(sn&&sn===T)return;(!T||typeof T!="object")&&(T={}),T=kt(T),Do=ii.indexOf(T.PARSER_MEDIA_TYPE)===-1?si:T.PARSER_MEDIA_TYPE,Ve=Do==="application/xhtml+xml"?Rl:Si,Ce=lo(T,"ALLOWED_TAGS",_t,{transform:Ve}),U=lo(T,"ALLOWED_ATTR",ie,{transform:Ve}),oi=lo(T,"ALLOWED_NAMESPACES",vl,{transform:Rl}),Vt=lo(T,"ADD_URI_SAFE_ATTR",fr,{transform:Ve,base:fr}),ys=lo(T,"ADD_DATA_URI_TAGS",ni,{transform:Ve,base:ni}),Et=lo(T,"FORBID_CONTENTS",oo,{transform:Ve}),pe=lo(T,"FORBID_TAGS",kt({}),{transform:Ve}),Ze=lo(T,"FORBID_ATTR",kt({}),{transform:Ve}),ve=at(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?kt(T.USE_PROFILES):T.USE_PROFILES:!1,$e=T.ALLOW_ARIA_ATTR!==!1,Fe=T.ALLOW_DATA_ATTR!==!1,Ge=T.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=T.SAFE_FOR_TEMPLATES||!1,Ct=T.SAFE_FOR_XML!==!1,it=T.WHOLE_DOCUMENT||!1,kn=T.RETURN_DOM||!1,no=T.RETURN_DOM_FRAGMENT||!1,O=T.RETURN_TRUSTED_TYPE||!1,bn=T.FORCE_BODY||!1,W=T.SANITIZE_DOM!==!1,le=T.SANITIZE_NAMED_PROPS||!1,Ot=T.KEEP_CONTENT!==!1,bt=T.IN_PLACE||!1,we=$ae(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:F1,io=typeof T.NAMESPACE=="string"?T.NAMESPACE:It,Pt=at(T,"MATHML_TEXT_INTEGRATION_POINTS")&&T.MATHML_TEXT_INTEGRATION_POINTS&&typeof T.MATHML_TEXT_INTEGRATION_POINTS=="object"?kt(T.MATHML_TEXT_INTEGRATION_POINTS):Se({},_s),ri=at(T,"HTML_INTEGRATION_POINTS")&&T.HTML_INTEGRATION_POINTS&&typeof T.HTML_INTEGRATION_POINTS=="object"?kt(T.HTML_INTEGRATION_POINTS):Se({},Cs);const F=at(T,"CUSTOM_ELEMENT_HANDLING")&&T.CUSTOM_ELEMENT_HANDLING&&typeof T.CUSTOM_ELEMENT_HANDLING=="object"?kt(T.CUSTOM_ELEMENT_HANDLING):br(null);if(he=br(null),at(F,"tagNameCheck")&&bs(F.tagNameCheck)&&(he.tagNameCheck=F.tagNameCheck),at(F,"attributeNameCheck")&&bs(F.attributeNameCheck)&&(he.attributeNameCheck=F.attributeNameCheck),at(F,"allowCustomizedBuiltInElements")&&typeof F.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=F.allowCustomizedBuiltInElements),gt(he),Me&&(Fe=!1),no&&(kn=!0),ve&&(Ce=Se({},V1),U=br(null),ve.html===!0&&(Se(Ce,O1),Se(U,I1)),ve.svg===!0&&(Se(Ce,zl),Se(U,ql),Se(U,Ls)),ve.svgFilters===!0&&(Se(Ce,Ul),Se(U,ql),Se(U,Ls)),ve.mathMl===!0&&(Se(Ce,Hl),Se(U,P1),Se(U,Ls))),De.tagCheck=null,De.attributeCheck=null,at(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?De.tagCheck=T.ADD_TAGS:fo(T.ADD_TAGS)&&(Ce===_t&&(Ce=kt(Ce)),Se(Ce,T.ADD_TAGS,Ve))),at(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?De.attributeCheck=T.ADD_ATTR:fo(T.ADD_ATTR)&&(U===ie&&(U=kt(U)),Se(U,T.ADD_ATTR,Ve))),at(T,"ADD_URI_SAFE_ATTR")&&fo(T.ADD_URI_SAFE_ATTR)&&Se(Vt,T.ADD_URI_SAFE_ATTR,Ve),at(T,"FORBID_CONTENTS")&&fo(T.FORBID_CONTENTS)&&(Et===oo&&(Et=kt(Et)),Se(Et,T.FORBID_CONTENTS,Ve)),at(T,"ADD_FORBID_CONTENTS")&&fo(T.ADD_FORBID_CONTENTS)&&(Et===oo&&(Et=kt(Et)),Se(Et,T.ADD_FORBID_CONTENTS,Ve)),Ot&&(Ce["#text"]=!0),it&&Se(Ce,["html","head","body"]),Ce.table&&(Se(Ce,["tbody"]),delete pe.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Z=x;x=T.TRUSTED_TYPES_POLICY;try{S=M("")}catch(ue){throw x=Z,ue}}else T.TRUSTED_TYPES_POLICY===null?(x=void 0,S=""):(x===void 0&&(x=$()),x&&typeof S=="string"&&(S=M("")));pt&&pt(T),sn=T},li=Se({},[...zl,...Ul,...Bae]),V=Se({},[...Hl,...Mae]),J=function(T,F,Z){return F.namespaceURI===It?T==="svg":F.namespaceURI===ro?T==="svg"&&(Z==="annotation-xml"||Pt[Z]):!!li[T]},be=function(T,F,Z){return F.namespaceURI===It?T==="math":F.namespaceURI===pr?T==="math"&&ri[Z]:!!V[T]},Ue=function(T,F,Z){return F.namespaceURI===pr&&!ri[Z]||F.namespaceURI===ro&&!Pt[Z]?!1:!V[T]&&(yl[T]||!li[T])},Fn=function(T){let F=y(T);(!F||!F.tagName)&&(F={namespaceURI:io,tagName:"template"});const Z=Si(T.tagName),ue=Si(F.tagName);return oi[T.namespaceURI]?T.namespaceURI===pr?J(Z,F,ue):T.namespaceURI===ro?be(Z,F,ue):T.namespaceURI===It?Ue(Z,F,ue):!!(Do==="application/xhtml+xml"&&oi[T.namespaceURI]):!1},an=function(T){yr(e.removed,{element:T});try{y(T).removeChild(T)}catch{if(h(T),!y(T))throw Bo("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ci=function(T){ui(T);const F=C(T);if(F){const ue=[];vr(F,fe=>{yr(ue,fe)}),vr(ue,fe=>{try{h(fe)}catch{}})}const Z=_(T);if(Z)for(let ue=Z.length-1;ue>=0;--ue){const fe=Z[ue],_e=fe&&fe.name;if(typeof _e=="string")try{T.removeAttribute(_e)}catch{}}},Rn=function(T,F){try{yr(e.removed,{attribute:F.getAttributeNode(T),from:F})}catch{yr(e.removed,{attribute:null,from:F})}if(F.removeAttribute(T),T==="is")if(kn||no)try{an(F)}catch{}else try{F.setAttribute(T,"")}catch{}},ks=function(T){const F=_(T);if(F)for(let Z=F.length-1;Z>=0;--Z){const ue=F[Z],fe=ue&&ue.name;if(!(typeof fe!="string"||U[Ve(fe)]))try{T.removeAttribute(fe)}catch{}}},ui=function(T){const F=[T];for(;F.length>0;){const Z=F.pop();(b?b(Z):Z.nodeType)===Ft.element&&ks(Z);const fe=C(Z);if(fe)for(let _e=fe.length-1;_e>=0;--_e)F.push(fe[_e])}},n0=function(T){if(!Ct)return;const F=[T];for(;F.length>0;){const Z=F.pop(),ue=b?b(Z):Z.nodeType;if(ue===Ft.processingInstruction||ue===Ft.comment&&st(z1,Z.data)){try{h(Z)}catch{}continue}if(ue===Ft.element){const _e=Z,Ie=Ve(w?w(Z):Z.nodeName);try{_e.hasAttribute&&_e.hasAttribute("patchsrc")&&_e.removeAttribute("patchsrc"),_e.hasAttribute&&_e.hasAttribute("for")&&Ie!=="label"&&Ie!=="output"&&_e.removeAttribute("for")}catch{}}const fe=C(Z);if(fe)for(let _e=fe.length-1;_e>=0;--_e)F.push(fe[_e])}},yd=function(T){let F=null,Z=null;if(bn)T="<remove></remove>"+T;else{const _e=$1(T,/^[\r\n\t ]+/);Z=_e&&_e[0]}Do==="application/xhtml+xml"&&io===It&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const ue=x?M(T):T;if(io===It)try{F=new d().parseFromString(ue,Do)}catch{}if(!F||!F.documentElement){F=P.createDocument(io,"template",null);try{F.documentElement.innerHTML=No?S:ue}catch{}}const fe=F.body||F.documentElement;return T&&Z&&fe.insertBefore(n.createTextNode(Z),fe.childNodes[0]||null),io===It?Y.call(F,it?"html":"body")[0]:it?F.documentElement:fe},_d=function(T){const F=k?k(T):T.ownerDocument;return L.call(F||T,T,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ws=function(T){return T=yi(T,Ne," "),T=yi(T,ce," "),T=yi(T,ne," "),T},_l=function(T){var F;T.normalize();const Z=k?k(T):T.ownerDocument,ue=L.call(Z||T,T,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let fe=ue.nextNode();for(;fe;)fe.data=ws(fe.data),fe=ue.nextNode();const _e=(F=T.querySelectorAll)===null||F===void 0?void 0:F.call(T,"template");_e&&vr(_e,Ie=>{mr(Ie.content)&&_l(Ie.content)})},Es=function(T){const F=w?w(T):null;return typeof F!="string"||Ve(F)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==_(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==b(T)||T.childNodes!==C(T)},mr=function(T){if(!b||typeof T!="object"||T===null)return!1;try{return b(T)===Ft.documentFragment}catch{return!1}},di=function(T){if(!b||typeof T!="object"||T===null)return!1;try{return typeof b(T)=="number"}catch{return!1}};function wn(X,T,F){X.length!==0&&vr(X,Z=>{Z.call(e,T,F,sn)})}const o0=function(T,F){return!!(Ct&&T.hasChildNodes()&&!di(T.firstElementChild)&&st(R1,T.textContent)&&st(R1,T.innerHTML)||Ct&&T.namespaceURI===It&&F==="style"&&di(T.firstElementChild)||T.nodeType===Ft.processingInstruction||Ct&&T.nodeType===Ft.comment&&st(z1,T.data))},r0=function(T,F,Z){if(!pe[F]&&wd(F)&&(he.tagNameCheck instanceof RegExp&&st(he.tagNameCheck,F)||he.tagNameCheck instanceof Function&&he.tagNameCheck(F)))return!1;if(Ot&&!Et[F]){const ue=y(T),fe=C(T);if(fe&&ue){const _e=fe.length;for(let Ie=_e-1;Ie>=0;--Ie){const He=T===Z?m(fe[Ie],!0):fe[Ie];ue.insertBefore(He,v(T))}}}return an(T),!0},Cd=function(T,F,Z,ue){return T.length===0?F:F===Z||F===ue?kt(F):F},bd=function(T,F){if(wn(oe.beforeSanitizeElements,T,null),T!==F&&y(T)===null)return bt&&ui(T),!0;if(Es(T))return an(T),!0;const Z=Ve(w?w(T):T.nodeName);if(Ce=Cd(oe.uponSanitizeElement,Ce,_t,rn),wn(oe.uponSanitizeElement,T,{tagName:Z,allowedTags:Ce}),T!==F&&y(T)===null)return bt&&ui(T),!0;if(o0(T,Z))return an(T),!0;if(pe[Z]||!(De.tagCheck instanceof Function&&De.tagCheck(Z))&&!Ce[Z]){const fe=r0(T,Z,F);return fe===!1&&wn(oe.afterSanitizeElements,T,null),fe}if((b?b(T):T.nodeType)===Ft.element&&!Fn(T)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&st(Hae,T.innerHTML))return an(T),!0;if(Me&&T.nodeType===Ft.text){const fe=ws(T.textContent);T.textContent!==fe&&(yr(e.removed,{element:T.cloneNode()}),T.textContent=fe)}return wn(oe.afterSanitizeElements,T,null),!1},kd=function(T,F,Z){if(Ze[F]||Ct&&F==="patchsrc"||Ct&&F==="for"&&T!=="label"&&T!=="output"||W&&(F==="id"||F==="name")&&(Z in n||Z in ai))return!1;const ue=U[F]||De.attributeCheck instanceof Function&&De.attributeCheck(F,T);if(!(Fe&&st(H,F))){if(!($e&&st(z,F))){if(ue){if(!Vt[F]){if(!st(we,yi(Z,Ee,""))){if(!((F==="src"||F==="xlink:href"||F==="href")&&T!=="script"&&B1(Z,"data:")===0&&ys[T])){if(!(Ge&&!st(re,yi(Z,Ee,"")))){if(Z)return!1}}}}}else if(!(wd(T)&&(he.tagNameCheck instanceof RegExp&&st(he.tagNameCheck,T)||he.tagNameCheck instanceof Function&&he.tagNameCheck(T))&&(he.attributeNameCheck instanceof RegExp&&st(he.attributeNameCheck,F)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(F,T))||F==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&st(he.tagNameCheck,Z)||he.tagNameCheck instanceof Function&&he.tagNameCheck(Z))))return!1}}return!0},i0=Se({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wd=function(T){return!i0[Si(T)]&&st(ze,T)},s0=function(T,F,Z,ue){if(x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Z)switch(p.getAttributeType(T,F)){case"TrustedHTML":return M(ue);case"TrustedScriptURL":return D(ue)}return ue},a0=function(T,F,Z,ue){try{Z?T.setAttributeNS(Z,F,ue):T.setAttribute(F,ue),Es(T)?an(T):D1(e.removed)}catch{Rn(F,T)}},Ed=function(T){wn(oe.beforeSanitizeAttributes,T,null);const F=T.attributes;if(!F||Es(T))return;U=Cd(oe.uponSanitizeAttribute,U,ie,Cn);const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let ue=F.length;const fe=Ve(T.nodeName);for(;ue--;){const _e=F[ue],Ie=_e.name,He=_e.namespaceURI,Nt=_e.value,Dt=Ve(Ie),bl=Nt;let St=Ie==="value"?bl:Sae(bl);if(Z.attrName=Dt,Z.attrValue=St,Z.keepAttr=!0,Z.forceKeepAttr=void 0,wn(oe.uponSanitizeAttribute,T,Z),St=Z.attrValue,le&&(Dt==="id"||Dt==="name")&&B1(St,Je)!==0&&(Rn(Ie,T),St=Je+St),Ct&&st(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,St)){Rn(Ie,T);continue}if(Dt==="attributename"&&$1(St,"href")){Rn(Ie,T);continue}if(!Z.forceKeepAttr){if(!Z.keepAttr){Rn(Ie,T);continue}if(!Ye&&st(qae,St)){Rn(Ie,T);continue}if(Me&&(St=ws(St)),!kd(fe,Dt,St)){Rn(Ie,T);continue}St=s0(fe,Dt,He,St),St!==bl&&a0(T,Ie,He,St)}}wn(oe.afterSanitizeAttributes,T,null)},Ss=function(T){let F=null;const Z=_d(T);for(wn(oe.beforeSanitizeShadowDOM,T,null);F=Z.nextNode();)if(wn(oe.uponSanitizeShadowNode,F,null),bd(F,T),Ed(F),mr(F.content)&&Ss(F.content),(b?b(F):F.nodeType)===Ft.element){const fe=g(F);mr(fe)&&(Cl(fe),Ss(fe))}wn(oe.afterSanitizeShadowDOM,T,null)},Cl=function(T){const F=[{node:T,shadow:null}];for(;F.length>0;){const Z=F.pop();if(Z.shadow){Ss(Z.shadow);continue}const ue=Z.node,_e=(b?b(ue):ue.nodeType)===Ft.element,Ie=C(ue);if(Ie)for(let He=Ie.length-1;He>=0;--He)F.push({node:Ie[He],shadow:null});if(_e){const He=w?w(ue):null;if(typeof He=="string"&&Ve(He)==="template"){const Nt=ue.content;mr(Nt)&&F.push({node:Nt,shadow:null})}}if(_e){const He=g(ue);mr(He)&&F.push({node:null,shadow:He},{node:He,shadow:null})}}};return e.sanitize=function(X){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=null,Z=null,ue=null,fe=null;if(No=!X,No&&(X="<!-->"),typeof X!="string"&&!di(X)&&(X=Dae(X),typeof X!="string"))throw Bo("dirty is not a string, aborting");if(!e.isSupported)return X;Lt?(Ce=rn,U=Cn):so(T),(oe.uponSanitizeElement.length>0||oe.uponSanitizeAttribute.length>0)&&(Ce=kt(Ce)),oe.uponSanitizeAttribute.length>0&&(U=kt(U)),e.removed=[];const _e=bt&&typeof X!="string"&&di(X);if(_e){n0(X);const Nt=w?w(X):X.nodeName;if(typeof Nt=="string"){const Dt=Ve(Nt);if(!Ce[Dt]||pe[Dt])throw ci(X),Bo("root node is forbidden and cannot be sanitized in-place")}if(Es(X))throw ci(X),Bo("root node is clobbered and cannot be sanitized in-place");try{Cl(X)}catch(Dt){throw ci(X),Dt}}else if(di(X))F=yd("<!---->"),Z=F.ownerDocument.importNode(X,!0),Z.nodeType===Ft.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?F=Z:F.appendChild(Z),Cl(Z);else{if(!kn&&!Me&&!it&&X.indexOf("<")===-1)return x&&O?M(X):X;if(F=yd(X),!F)return kn?null:O?S:""}F&&bn&&an(F.firstChild);const Ie=_e?X:F;try{const Nt=_d(Ie);for(;ue=Nt.nextNode();)bd(ue,Ie),Ed(ue),mr(ue.content)&&Ss(ue.content)}catch(Nt){throw _e&&(ci(X),vr(e.removed,Dt=>{Dt.element&&ui(Dt.element)})),Nt}if(_e)return vr(e.removed,Nt=>{Nt.element&&ui(Nt.element)}),Me&&_l(X),X;if(kn){if(Me&&_l(F),no)for(fe=R.call(F.ownerDocument);F.firstChild;)fe.appendChild(F.firstChild);else fe=F;return(U.shadowroot||U.shadowrootmode)&&(fe=ae.call(o,fe,!0)),fe}let He=it?F.outerHTML:F.innerHTML;return it&&Ce["!doctype"]&&F.ownerDocument&&F.ownerDocument.doctype&&F.ownerDocument.doctype.name&&st(zae,F.ownerDocument.doctype.name)&&(He="<!DOCTYPE "+F.ownerDocument.doctype.name+`>
19
- `+He),Me&&(He=ws(He)),x&&O?M(He):He},e.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};so(X),Lt=!0,rn=Ce,Cn=U},e.clearConfig=function(){sn=null,Lt=!1,rn=null,Cn=null,x=E,S=""},e.isValidAttribute=function(X,T,F){sn||so({});const Z=Ve(X),ue=Ve(T);return kd(Z,ue,F)},e.addHook=function(X,T){typeof T=="function"&&at(oe,X)&&yr(oe[X],T)},e.removeHook=function(X,T){if(at(oe,X)){if(T!==void 0){const F=wae(oe[X],T);return F===-1?void 0:Eae(oe[X],F,1)[0]}return D1(oe[X])}},e.removeHooks=function(X){at(oe,X)&&(oe[X]=[])},e.removeAllHooks=function(){oe=U1()},e}var Zae=$m();const Kae=["innerHTML"],Gae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},Bm=r.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new mae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=r.computed(()=>e.content?Zae.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(i,s)=>t.content?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,Kae)):(r.openBlock(),r.createElementBlock("div",Gae,r.toDisplayString(t.placeholder),1))}});function G(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Mm(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);n.search=o.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const yn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Yae=yn&&"documentMode"in document?document.documentMode:null,un=yn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Qo=yn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),sa=!(!yn||!("InputEvent"in window)||Yae)&&"getTargetRanges"in new window.InputEvent("input"),ji=yn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Rr=yn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jae=yn&&/Android/.test(navigator.userAgent),Lm=yn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),H1=yn&&Jae&&Lm,Wi=yn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&un&&!Lm;function Om(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}const Xae=0,Qae=1,ele=2,Vm=128,tle=1,nle=2,ole=3,rle=4,ile=5,sle=6,Ja=ji||Rr||Wi?" ":"​",ko=`
17
+ `,a.map=[n,e.line],!0},Cie=function(e,n,o,i){var s,a,l,c,u,d,p,f=!1,m=e.bMarks[n]+e.tShift[n],h=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||m+3>h||(s=e.src.charCodeAt(m),s!==126&&s!==96)||(u=m,m=e.skipChars(m,s),a=m-u,a<3)||(p=e.src.slice(u,m),l=e.src.slice(m,h),s===96&&l.indexOf(String.fromCharCode(s))>=0))return!1;if(i)return!0;for(c=n;c++,!(c>=o||(m=u=e.bMarks[c]+e.tShift[c],h=e.eMarks[c],m<h&&e.sCount[c]<e.blkIndent));)if(e.src.charCodeAt(m)===s&&!(e.sCount[c]-e.blkIndent>=4)&&(m=e.skipChars(m,s),!(m-u<a)&&(m=e.skipSpaces(m),!(m<h)))){f=!0;break}return a=e.sCount[n],e.line=c+(f?1:0),d=e.push("fence","code",0),d.info=l,d.content=e.getLines(n+1,c,a,!0),d.markup=p,d.map=[n,e.line],!0},bie=Be.isSpace,kie=function(e,n,o,i){var s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b,w,k,A,S,E=e.lineMax,D=e.bMarks[n]+e.tShift[n],V=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(D)!==62)return!1;if(i)return!0;for(h=[],v=[],g=[],_=[],k=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",f=n;f<o&&(S=e.sCount[f]<e.blkIndent,D=e.bMarks[f]+e.tShift[f],V=e.eMarks[f],!(D>=V));f++){if(e.src.charCodeAt(D++)===62&&!S){for(c=e.sCount[f]+1,e.src.charCodeAt(D)===32?(D++,c++,s=!1,b=!0):e.src.charCodeAt(D)===9?(b=!0,(e.bsCount[f]+c)%4===3?(D++,c++,s=!1):s=!0):b=!1,m=c,h.push(e.bMarks[f]),e.bMarks[f]=D;D<V&&(a=e.src.charCodeAt(D),bie(a));){a===9?m+=4-(m+e.bsCount[f]+(s?1:0))%4:m++;D++}d=D>=V,v.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),g.push(e.sCount[f]),e.sCount[f]=m-c,_.push(e.tShift[f]),e.tShift[f]=D-e.bMarks[f];continue}if(d)break;for(w=!1,l=0,u=k.length;l<u;l++)if(k[l](e,f,o,!0)){w=!0;break}if(w){e.lineMax=f,e.blkIndent!==0&&(h.push(e.bMarks[f]),v.push(e.bsCount[f]),_.push(e.tShift[f]),g.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}h.push(e.bMarks[f]),v.push(e.bsCount[f]),_.push(e.tShift[f]),g.push(e.sCount[f]),e.sCount[f]=-1}for(C=e.blkIndent,e.blkIndent=0,A=e.push("blockquote_open","blockquote",1),A.markup=">",A.map=p=[n,0],e.md.block.tokenize(e,n,f),A=e.push("blockquote_close","blockquote",-1),A.markup=">",e.lineMax=E,e.parentType=y,p[1]=e.line,l=0;l<_.length;l++)e.bMarks[l+n]=h[l],e.tShift[l+n]=_[l],e.sCount[l+n]=g[l],e.bsCount[l+n]=v[l];return e.blkIndent=C,!0},wie=Be.isSpace,Eie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(a=1;u<d;){if(l=e.src.charCodeAt(u++),l!==s&&!wie(l))return!1;l===s&&a++}return a<3?!1:(i||(e.line=n+1,c=e.push("hr","hr",0),c.map=[n,e.line],c.markup=Array(a+1).join(String.fromCharCode(s))),!0)},mm=Be.isSpace;function d1(t,e){var n,o,i,s;return o=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n=t.src.charCodeAt(o++),n!==42&&n!==45&&n!==43||o<i&&(s=t.src.charCodeAt(o),!mm(s))?-1:o}function f1(t,e){var n,o=t.bMarks[e]+t.tShift[e],i=o,s=t.eMarks[e];if(i+1>=s||(n=t.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=s)return-1;if(n=t.src.charCodeAt(i++),n>=48&&n<=57){if(i-o>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<s&&(n=t.src.charCodeAt(i),!mm(n))?-1:i}function Sie(t,e){var n,o,i=t.level+2;for(n=e+2,o=t.tokens.length-2;n<o;n++)t.tokens[n].level===i&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var xie=function(e,n,o,i){var s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b,w,k,A,S,E,D,V,T,M,x,$,B=n,q=!1,I=!0;if(e.sCount[B]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[B]-e.listIndent>=4&&e.sCount[B]<e.blkIndent)return!1;if(i&&e.parentType==="paragraph"&&e.sCount[B]>=e.blkIndent&&(q=!0),(D=f1(e,B))>=0){if(p=!0,T=e.bMarks[B]+e.tShift[B],y=Number(e.src.slice(T,D-1)),q&&y!==1)return!1}else if((D=d1(e,B))>=0)p=!1;else return!1;if(q&&e.skipSpaces(D)>=e.eMarks[B])return!1;if(i)return!0;for(C=e.src.charCodeAt(D-1),v=e.tokens.length,p?($=e.push("ordered_list_open","ol",1),y!==1&&($.attrs=[["start",y]])):$=e.push("bullet_list_open","ul",1),$.map=h=[B,0],$.markup=String.fromCharCode(C),V=!1,x=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";B<o;){for(E=D,g=e.eMarks[B],d=_=e.sCount[B]+D-(e.bMarks[B]+e.tShift[B]);E<g;){if(s=e.src.charCodeAt(E),s===9)_+=4-(_+e.bsCount[B])%4;else if(s===32)_++;else break;E++}if(a=E,a>=g?u=1:u=_-d,u>4&&(u=1),c=d+u,$=e.push("list_item_open","li",1),$.markup=String.fromCharCode(C),$.map=f=[B,0],p&&($.info=e.src.slice(T,D-1)),S=e.tight,A=e.tShift[B],k=e.sCount[B],b=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[B]=a-e.bMarks[B],e.sCount[B]=_,a>=g&&e.isEmpty(B+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,B,o,!0),(!e.tight||V)&&(I=!1),V=e.line-B>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=b,e.tShift[B]=A,e.sCount[B]=k,e.tight=S,$=e.push("list_item_close","li",-1),$.markup=String.fromCharCode(C),B=e.line,f[1]=B,B>=o||e.sCount[B]<e.blkIndent||e.sCount[B]-e.blkIndent>=4)break;for(M=!1,l=0,m=x.length;l<m;l++)if(x[l](e,B,o,!0)){M=!0;break}if(M)break;if(p){if(D=f1(e,B),D<0)break;T=e.bMarks[B]+e.tShift[B]}else if(D=d1(e,B),D<0)break;if(C!==e.src.charCodeAt(D-1))break}return p?$=e.push("ordered_list_close","ol",-1):$=e.push("bullet_list_close","ul",-1),$.markup=String.fromCharCode(C),h[1]=B,e.line=B,e.parentType=w,I&&Sie(e,v),!0},Aie=Be.normalizeReference,Bs=Be.isSpace,Tie=function(e,n,o,i){var s,a,l,c,u,d,p,f,m,h,v,C,y,g,_,b,w=0,k=e.bMarks[n]+e.tShift[n],A=e.eMarks[n],S=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(k)!==91)return!1;for(;++k<A;)if(e.src.charCodeAt(k)===93&&e.src.charCodeAt(k-1)!==92){if(k+1===A||e.src.charCodeAt(k+1)!==58)return!1;break}for(c=e.lineMax,_=e.md.block.ruler.getRules("reference"),h=e.parentType,e.parentType="reference";S<c&&!e.isEmpty(S);S++)if(!(e.sCount[S]-e.blkIndent>3)&&!(e.sCount[S]<0)){for(g=!1,d=0,p=_.length;d<p;d++)if(_[d](e,S,c,!0)){g=!0;break}if(g)break}for(y=e.getLines(n,S,e.blkIndent,!1).trim(),A=y.length,k=1;k<A;k++){if(s=y.charCodeAt(k),s===91)return!1;if(s===93){m=k;break}else s===10?w++:s===92&&(k++,k<A&&y.charCodeAt(k)===10&&w++)}if(m<0||y.charCodeAt(m+1)!==58)return!1;for(k=m+2;k<A;k++)if(s=y.charCodeAt(k),s===10)w++;else if(!Bs(s))break;if(v=e.md.helpers.parseLinkDestination(y,k,A),!v.ok||(u=e.md.normalizeLink(v.str),!e.md.validateLink(u)))return!1;for(k=v.pos,w+=v.lines,a=k,l=w,C=k;k<A;k++)if(s=y.charCodeAt(k),s===10)w++;else if(!Bs(s))break;for(v=e.md.helpers.parseLinkTitle(y,k,A),k<A&&C!==k&&v.ok?(b=v.str,k=v.pos,w+=v.lines):(b="",k=a,w=l);k<A&&(s=y.charCodeAt(k),!!Bs(s));)k++;if(k<A&&y.charCodeAt(k)!==10&&b)for(b="",k=a,w=l;k<A&&(s=y.charCodeAt(k),!!Bs(s));)k++;return k<A&&y.charCodeAt(k)!==10||(f=Aie(y.slice(1,m)),!f)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:b,href:u}),e.parentType=h,e.line=n+w+1),!0)},Nie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ja={},Die="[a-zA-Z_:][a-zA-Z0-9:._-]*",$ie="[^\"'=<>`\\x00-\\x20]+",Bie="'[^']*'",Mie='"[^"]*"',Lie="(?:"+$ie+"|"+Bie+"|"+Mie+")",Oie="(?:\\s+"+Die+"(?:\\s*=\\s*"+Lie+")?)",hm="<[A-Za-z][A-Za-z0-9\\-]*"+Oie+"*\\s*\\/?>",gm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Vie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Iie="<[?][\\s\\S]*?[?]>",Pie="<![A-Z]+\\s+[^>]*>",Fie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Rie=new RegExp("^(?:"+hm+"|"+gm+"|"+Vie+"|"+Iie+"|"+Pie+"|"+Fie+")"),zie=new RegExp("^(?:"+hm+"|"+gm+")");ja.HTML_TAG_RE=Rie;ja.HTML_OPEN_CLOSE_TAG_RE=zie;var Uie=Nie,Hie=ja.HTML_OPEN_CLOSE_TAG_RE,gr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Uie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Hie.source+"\\s*$"),/^$/,!1]],qie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(c=e.src.slice(u,d),s=0;s<gr.length&&!gr[s][0].test(c);s++);if(s===gr.length)return!1;if(i)return gr[s][2];if(a=n+1,!gr[s][1].test(c)){for(;a<o&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],d=e.eMarks[a],c=e.src.slice(u,d),gr[s][1].test(c)){c.length!==0&&a++;break}}return e.line=a,l=e.push("html_block","",0),l.map=[n,a],l.content=e.getLines(n,a,e.blkIndent,!0),!0},p1=Be.isSpace,jie=function(e,n,o,i){var s,a,l,c,u=e.bMarks[n]+e.tShift[n],d=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(u),s!==35||u>=d))return!1;for(a=1,s=e.src.charCodeAt(++u);s===35&&u<d&&a<=6;)a++,s=e.src.charCodeAt(++u);return a>6||u<d&&!p1(s)?!1:(i||(d=e.skipSpacesBack(d,u),l=e.skipCharsBack(d,35,u),l>u&&p1(e.src.charCodeAt(l-1))&&(d=l),e.line=n+1,c=e.push("heading_open","h"+String(a),1),c.markup="########".slice(0,a),c.map=[n,e.line],c=e.push("inline","",0),c.content=e.src.slice(u,d).trim(),c.map=[n,e.line],c.children=[],c=e.push("heading_close","h"+String(a),-1),c.markup="########".slice(0,a)),!0)},Wie=function(e,n,o){var i,s,a,l,c,u,d,p,f,m=n+1,h,v=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";m<o&&!e.isEmpty(m);m++)if(!(e.sCount[m]-e.blkIndent>3)){if(e.sCount[m]>=e.blkIndent&&(u=e.bMarks[m]+e.tShift[m],d=e.eMarks[m],u<d&&(f=e.src.charCodeAt(u),(f===45||f===61)&&(u=e.skipChars(u,f),u=e.skipSpaces(u),u>=d)))){p=f===61?1:2;break}if(!(e.sCount[m]<0)){for(s=!1,a=0,l=v.length;a<l;a++)if(v[a](e,m,o,!0)){s=!0;break}if(s)break}}return p?(i=e.getLines(n,m,e.blkIndent,!1).trim(),e.line=m+1,c=e.push("heading_open","h"+String(p),1),c.markup=String.fromCharCode(f),c.map=[n,e.line],c=e.push("inline","",0),c.content=i,c.map=[n,e.line-1],c.children=[],c=e.push("heading_close","h"+String(p),-1),c.markup=String.fromCharCode(f),e.parentType=h,!0):!1},Zie=function(e,n,o){var i,s,a,l,c,u,d=n+1,p=e.md.block.ruler.getRules("paragraph");for(u=e.parentType,e.parentType="paragraph";d<o&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)&&!(e.sCount[d]<0)){for(s=!1,a=0,l=p.length;a<l;a++)if(p[a](e,d,o,!0)){s=!0;break}if(s)break}return i=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d,c=e.push("paragraph_open","p",1),c.map=[n,e.line],c=e.push("inline","",0),c.content=i,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=u,!0},vm=vu,Wa=Be.isSpace;function Pn(t,e,n,o){var i,s,a,l,c,u,d,p;for(this.src=t,this.md=e,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,p=!1,a=l=u=d=0,c=s.length;l<c;l++){if(i=s.charCodeAt(l),!p)if(Wa(i)){u++,i===9?d+=4-d%4:d++;continue}else p=!0;(i===10||l===c-1)&&(i!==10&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(u),this.sCount.push(d),this.bsCount.push(0),p=!1,u=0,d=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Pn.prototype.push=function(t,e,n){var o=new vm(t,e,n);return o.block=!0,n<0&&this.level--,o.level=this.level,n>0&&this.level++,this.tokens.push(o),o};Pn.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Pn.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Pn.prototype.skipSpaces=function(e){for(var n,o=this.src.length;e<o&&(n=this.src.charCodeAt(e),!!Wa(n));e++);return e};Pn.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Wa(this.src.charCodeAt(--e)))return e+1;return e};Pn.prototype.skipChars=function(e,n){for(var o=this.src.length;e<o&&this.src.charCodeAt(e)===n;e++);return e};Pn.prototype.skipCharsBack=function(e,n,o){if(e<=o)return e;for(;e>o;)if(n!==this.src.charCodeAt(--e))return e+1;return e};Pn.prototype.getLines=function(e,n,o,i){var s,a,l,c,u,d,p,f=e;if(e>=n)return"";for(d=new Array(n-e),s=0;f<n;f++,s++){for(a=0,p=c=this.bMarks[f],f+1<n||i?u=this.eMarks[f]+1:u=this.eMarks[f];c<u&&a<o;){if(l=this.src.charCodeAt(c),Wa(l))l===9?a+=4-(a+this.bsCount[f])%4:a++;else if(c-p<this.tShift[f])a++;else break;c++}a>o?d[s]=new Array(a-o+1).join(" ")+this.src.slice(c,u):d[s]=this.src.slice(c,u)}return d.join("")};Pn.prototype.Token=vm;var Kie=Pn,Gie=gu,Ms=[["table",yie,["paragraph","reference"]],["code",_ie],["fence",Cie,["paragraph","reference","blockquote","list"]],["blockquote",kie,["paragraph","reference","blockquote","list"]],["hr",Eie,["paragraph","reference","blockquote","list"]],["list",xie,["paragraph","reference","blockquote"]],["reference",Tie],["html_block",qie,["paragraph","reference","blockquote"]],["heading",jie,["paragraph","reference","blockquote"]],["lheading",Wie],["paragraph",Zie]];function Za(){this.ruler=new Gie;for(var t=0;t<Ms.length;t++)this.ruler.push(Ms[t][0],Ms[t][1],{alt:(Ms[t][2]||[]).slice()})}Za.prototype.tokenize=function(t,e,n){for(var o,i,s,a=this.ruler.getRules(""),l=a.length,c=e,u=!1,d=t.md.options.maxNesting;c<n&&(t.line=c=t.skipEmptyLines(c),!(c>=n||t.sCount[c]<t.blkIndent));){if(t.level>=d){t.line=n;break}for(s=t.line,i=0;i<l;i++)if(o=a[i](t,c,n,!1),o){if(s>=t.line)throw new Error("block rule didn't increment state.line");break}if(!o)throw new Error("none of the block rules matched");t.tight=!u,t.isEmpty(t.line-1)&&(u=!0),c=t.line,c<n&&t.isEmpty(c)&&(u=!0,c++,t.line=c)}};Za.prototype.parse=function(t,e,n,o){var i;t&&(i=new this.State(t,e,n,o),this.tokenize(i,i.line,i.lineMax))};Za.prototype.State=Kie;var Yie=Za;function Jie(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}var Xie=function(e,n){for(var o=e.pos;o<e.posMax&&!Jie(e.src.charCodeAt(o));)o++;return o===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,o)),e.pos=o,!0)},Qie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,ese=function(e,n){var o,i,s,a,l,c,u,d;return!e.md.options.linkify||e.linkLevel>0||(o=e.pos,i=e.posMax,o+3>i)||e.src.charCodeAt(o)!==58||e.src.charCodeAt(o+1)!==47||e.src.charCodeAt(o+2)!==47||(s=e.pending.match(Qie),!s)||(a=s[1],l=e.md.linkify.matchAtStart(e.src.slice(o-a.length)),!l)||(c=l.url,c.length<=a.length)||(c=c.replace(/\*+$/,""),u=e.md.normalizeLink(c),!e.md.validateLink(u))?!1:(n||(e.pending=e.pending.slice(0,-a.length),d=e.push("link_open","a",1),d.attrs=[["href",u]],d.markup="linkify",d.info="auto",d=e.push("text","",0),d.content=e.md.normalizeLinkText(c),d=e.push("link_close","a",-1),d.markup="linkify",d.info="auto"),e.pos+=c.length-a.length,!0)},tse=Be.isSpace,nse=function(e,n){var o,i,s,a=e.pos;if(e.src.charCodeAt(a)!==10)return!1;if(o=e.pending.length-1,i=e.posMax,!n)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){for(s=o-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(a++;a<i&&tse(e.src.charCodeAt(a));)a++;return e.pos=a,!0},ose=Be.isSpace,_u=[];for(var m1=0;m1<256;m1++)_u.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){_u[t.charCodeAt(0)]=1});var rse=function(e,n){var o,i,s,a,l,c=e.pos,u=e.posMax;if(e.src.charCodeAt(c)!==92||(c++,c>=u))return!1;if(o=e.src.charCodeAt(c),o===10){for(n||e.push("hardbreak","br",0),c++;c<u&&(o=e.src.charCodeAt(c),!!ose(o));)c++;return e.pos=c,!0}return a=e.src[c],o>=55296&&o<=56319&&c+1<u&&(i=e.src.charCodeAt(c+1),i>=56320&&i<=57343&&(a+=e.src[c+1],c++)),s="\\"+a,n||(l=e.push("text_special","",0),o<256&&_u[o]!==0?l.content=a:l.content=s,l.markup=s,l.info="escape"),e.pos=c+1,!0},ise=function(e,n){var o,i,s,a,l,c,u,d,p=e.pos,f=e.src.charCodeAt(p);if(f!==96)return!1;for(o=p,p++,i=e.posMax;p<i&&e.src.charCodeAt(p)===96;)p++;if(s=e.src.slice(o,p),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=o)return n||(e.pending+=s),e.pos+=u,!0;for(c=p;(l=e.src.indexOf("`",c))!==-1;){for(c=l+1;c<i&&e.src.charCodeAt(c)===96;)c++;if(d=c-l,d===u)return n||(a=e.push("code_inline","code",0),a.markup=s,a.content=e.src.slice(p,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[d]=l}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=u,!0},Ka={};Ka.tokenize=function(e,n){var o,i,s,a,l,c=e.pos,u=e.src.charCodeAt(c);if(n||u!==126||(i=e.scanDelims(e.pos,!0),a=i.length,l=String.fromCharCode(u),a<2))return!1;for(a%2&&(s=e.push("text","",0),s.content=l,a--),o=0;o<a;o+=2)s=e.push("text","",0),s.content=l+l,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function h1(t,e){var n,o,i,s,a,l=[],c=e.length;for(n=0;n<c;n++)i=e[n],i.marker===126&&i.end!==-1&&(s=e[i.end],a=t.tokens[i.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=t.tokens[s.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&l.push(s.token-1));for(;l.length;){for(n=l.pop(),o=n+1;o<t.tokens.length&&t.tokens[o].type==="s_close";)o++;o--,n!==o&&(a=t.tokens[o],t.tokens[o]=t.tokens[n],t.tokens[n]=a)}}Ka.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(h1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&h1(e,o[n].delimiters)};var Ga={};Ga.tokenize=function(e,n){var o,i,s,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==95&&l!==42)return!1;for(i=e.scanDelims(e.pos,l===42),o=0;o<i.length;o++)s=e.push("text","",0),s.content=String.fromCharCode(l),e.delimiters.push({marker:l,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function g1(t,e){var n,o,i,s,a,l,c=e.length;for(n=c-1;n>=0;n--)o=e[n],!(o.marker!==95&&o.marker!==42)&&o.end!==-1&&(i=e[o.end],l=n>0&&e[n-1].end===o.end+1&&e[n-1].marker===o.marker&&e[n-1].token===o.token-1&&e[o.end+1].token===i.token+1,a=String.fromCharCode(o.marker),s=t.tokens[o.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?a+a:a,s.content="",s=t.tokens[i.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?a+a:a,s.content="",l&&(t.tokens[e[n-1].token].content="",t.tokens[e[o.end+1].token].content="",n--))}Ga.postProcess=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(g1(e,e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&g1(e,o[n].delimiters)};var sse=Be.normalizeReference,Ml=Be.isSpace,ase=function(e,n){var o,i,s,a,l,c,u,d,p,f="",m="",h=e.pos,v=e.posMax,C=e.pos,y=!0;if(e.src.charCodeAt(e.pos)!==91||(l=e.pos+1,a=e.md.helpers.parseLinkLabel(e,e.pos,!0),a<0))return!1;if(c=a+1,c<v&&e.src.charCodeAt(c)===40){for(y=!1,c++;c<v&&(i=e.src.charCodeAt(c),!(!Ml(i)&&i!==10));c++);if(c>=v)return!1;if(C=c,u=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),u.ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?c=u.pos:f="",C=c;c<v&&(i=e.src.charCodeAt(c),!(!Ml(i)&&i!==10));c++);if(u=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<v&&C!==c&&u.ok)for(m=u.str,c=u.pos;c<v&&(i=e.src.charCodeAt(c),!(!Ml(i)&&i!==10));c++);}(c>=v||e.src.charCodeAt(c)!==41)&&(y=!0),c++}if(y){if(typeof e.env.references>"u")return!1;if(c<v&&e.src.charCodeAt(c)===91?(C=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?s=e.src.slice(C,c++):c=a+1):c=a+1,s||(s=e.src.slice(l,a)),d=e.env.references[sse(s)],!d)return e.pos=h,!1;f=d.href,m=d.title}return n||(e.pos=l,e.posMax=a,p=e.push("link_open","a",1),p.attrs=o=[["href",f]],m&&o.push(["title",m]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,p=e.push("link_close","a",-1)),e.pos=c,e.posMax=v,!0},lse=Be.normalizeReference,Ll=Be.isSpace,cse=function(e,n){var o,i,s,a,l,c,u,d,p,f,m,h,v,C="",y=e.pos,g=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(c=e.pos+2,l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),l<0))return!1;if(u=l+1,u<g&&e.src.charCodeAt(u)===40){for(u++;u<g&&(i=e.src.charCodeAt(u),!(!Ll(i)&&i!==10));u++);if(u>=g)return!1;for(v=u,p=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),p.ok&&(C=e.md.normalizeLink(p.str),e.md.validateLink(C)?u=p.pos:C=""),v=u;u<g&&(i=e.src.charCodeAt(u),!(!Ll(i)&&i!==10));u++);if(p=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<g&&v!==u&&p.ok)for(f=p.str,u=p.pos;u<g&&(i=e.src.charCodeAt(u),!(!Ll(i)&&i!==10));u++);else f="";if(u>=g||e.src.charCodeAt(u)!==41)return e.pos=y,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<g&&e.src.charCodeAt(u)===91?(v=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?a=e.src.slice(v,u++):u=l+1):u=l+1,a||(a=e.src.slice(c,l)),d=e.env.references[lse(a)],!d)return e.pos=y,!1;C=d.href,f=d.title}return n||(s=e.src.slice(c,l),e.md.inline.parse(s,e.md,e.env,h=[]),m=e.push("image","img",0),m.attrs=o=[["src",C],["alt",""]],m.children=h,m.content=s,f&&o.push(["title",f])),e.pos=u,e.posMax=g,!0},use=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,dse=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,fse=function(e,n){var o,i,s,a,l,c,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(l=e.pos,c=e.posMax;;){if(++u>=c||(a=e.src.charCodeAt(u),a===60))return!1;if(a===62)break}return o=e.src.slice(l+1,u),dse.test(o)?(i=e.md.normalizeLink(o),e.md.validateLink(i)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):use.test(o)?(i=e.md.normalizeLink("mailto:"+o),e.md.validateLink(i)?(n||(s=e.push("link_open","a",1),s.attrs=[["href",i]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(o),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=o.length+2,!0):!1):!1},pse=ja.HTML_TAG_RE;function mse(t){return/^<a[>\s]/i.test(t)}function hse(t){return/^<\/a\s*>/i.test(t)}function gse(t){var e=t|32;return e>=97&&e<=122}var vse=function(e,n){var o,i,s,a,l=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(l)!==60||l+2>=s)||(o=e.src.charCodeAt(l+1),o!==33&&o!==63&&o!==47&&!gse(o))||(i=e.src.slice(l).match(pse),!i)?!1:(n||(a=e.push("html_inline","",0),a.content=i[0],mse(a.content)&&e.linkLevel++,hse(a.content)&&e.linkLevel--),e.pos+=i[0].length,!0)},v1=lm,yse=Be.has,_se=Be.isValidEntityCode,y1=Be.fromCodePoint,Cse=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,bse=/^&([a-z][a-z0-9]{1,31});/i,kse=function(e,n){var o,i,s,a,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==38||l+1>=c)return!1;if(o=e.src.charCodeAt(l+1),o===35){if(s=e.src.slice(l).match(Cse),s)return n||(i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0),a.content=_se(i)?y1(i):y1(65533),a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(l).match(bse),s&&yse(v1,s[1]))return n||(a=e.push("text_special","",0),a.content=v1[s[1]],a.markup=s[0],a.info="entity"),e.pos+=s[0].length,!0;return!1};function _1(t){var e,n,o,i,s,a,l,c,u={},d=t.length;if(d){var p=0,f=-2,m=[];for(e=0;e<d;e++)if(o=t[e],m.push(0),(t[p].marker!==o.marker||f!==o.token-1)&&(p=e),f=o.token,o.length=o.length||0,!!o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),s=u[o.marker][(o.open?3:0)+o.length%3],n=p-m[p]-1,a=n;n>s;n-=m[n]+1)if(i=t[n],i.marker===o.marker&&i.open&&i.end<0&&(l=!1,(i.close||o.open)&&(i.length+o.length)%3===0&&(i.length%3!==0||o.length%3!==0)&&(l=!0),!l)){c=n>0&&!t[n-1].open?m[n-1]+1:0,m[e]=e-n+c,m[n]=c,o.open=!1,i.end=e,i.close=!1,a=-1,f=-2;break}a!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var wse=function(e){var n,o=e.tokens_meta,i=e.tokens_meta.length;for(_1(e.delimiters),n=0;n<i;n++)o[n]&&o[n].delimiters&&_1(o[n].delimiters)},Ese=function(e){var n,o,i=0,s=e.tokens,a=e.tokens.length;for(n=o=0;n<a;n++)s[n].nesting<0&&i--,s[n].level=i,s[n].nesting>0&&i++,s[n].type==="text"&&n+1<a&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==o&&(s[o]=s[n]),o++);n!==o&&(s.length=o)},Cu=vu,C1=Be.isWhiteSpace,b1=Be.isPunctChar,k1=Be.isMdAsciiPunct;function ss(t,e,n,o){this.src=t,this.env=n,this.md=e,this.tokens=o,this.tokens_meta=Array(o.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}ss.prototype.pushPending=function(){var t=new Cu("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ss.prototype.push=function(t,e,n){this.pending&&this.pushPending();var o=new Cu(t,e,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o};ss.prototype.scanDelims=function(t,e){var n=t,o,i,s,a,l,c,u,d,p,f=!0,m=!0,h=this.posMax,v=this.src.charCodeAt(t);for(o=t>0?this.src.charCodeAt(t-1):32;n<h&&this.src.charCodeAt(n)===v;)n++;return s=n-t,i=n<h?this.src.charCodeAt(n):32,u=k1(o)||b1(String.fromCharCode(o)),p=k1(i)||b1(String.fromCharCode(i)),c=C1(o),d=C1(i),d?f=!1:p&&(c||u||(f=!1)),c?m=!1:u&&(d||p||(m=!1)),e?(a=f,l=m):(a=f&&(!m||u),l=m&&(!f||p)),{can_open:a,can_close:l,length:s}};ss.prototype.Token=Cu;var Sse=ss,w1=gu,Ol=[["text",Xie],["linkify",ese],["newline",nse],["escape",rse],["backticks",ise],["strikethrough",Ka.tokenize],["emphasis",Ga.tokenize],["link",ase],["image",cse],["autolink",fse],["html_inline",vse],["entity",kse]],Vl=[["balance_pairs",wse],["strikethrough",Ka.postProcess],["emphasis",Ga.postProcess],["fragments_join",Ese]];function as(){var t;for(this.ruler=new w1,t=0;t<Ol.length;t++)this.ruler.push(Ol[t][0],Ol[t][1]);for(this.ruler2=new w1,t=0;t<Vl.length;t++)this.ruler2.push(Vl[t][0],Vl[t][1])}as.prototype.skipToken=function(t){var e,n,o=t.pos,i=this.ruler.getRules(""),s=i.length,a=t.md.options.maxNesting,l=t.cache;if(typeof l[o]<"u"){t.pos=l[o];return}if(t.level<a){for(n=0;n<s;n++)if(t.level++,e=i[n](t,!0),t.level--,e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,l[o]=t.pos};as.prototype.tokenize=function(t){for(var e,n,o,i=this.ruler.getRules(""),s=i.length,a=t.posMax,l=t.md.options.maxNesting;t.pos<a;){if(o=t.pos,t.level<l){for(n=0;n<s;n++)if(e=i[n](t,!1),e){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=a)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};as.prototype.parse=function(t,e,n,o){var i,s,a,l=new this.State(t,e,n,o);for(this.tokenize(l),s=this.ruler2.getRules(""),a=s.length,i=0;i<a;i++)s[i](l)};as.prototype.State=Sse;var xse=as,Il,E1;function Ase(){return E1||(E1=1,Il=function(t){var e={};t=t||{},e.src_Any=cm().source,e.src_Cc=um().source,e.src_Z=dm().source,e.src_P=hu.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Il}function hc(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(o){t[o]=n[o]})}),t}function Ya(t){return Object.prototype.toString.call(t)}function Tse(t){return Ya(t)==="[object String]"}function Nse(t){return Ya(t)==="[object Object]"}function Dse(t){return Ya(t)==="[object RegExp]"}function S1(t){return Ya(t)==="[object Function]"}function $se(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var ym={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Bse(t){return Object.keys(t||{}).reduce(function(e,n){return e||ym.hasOwnProperty(n)},!1)}var Mse={"http:":{validate:function(t,e,n){var o=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var o=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var o=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},Lse="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Ose="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Vse(t){t.__index__=-1,t.__text_cache__=""}function Ise(t){return function(e,n){var o=e.slice(n);return t.test(o)?o.match(t)[0].length:0}}function x1(){return function(t,e){e.normalize(t)}}function ia(t){var e=t.re=Ase()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Lse),n.push(e.src_xn),e.src_tlds=n.join("|");function o(l){return l.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(o(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(o(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(o(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(o(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function s(l,c){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+c)}Object.keys(t.__schemas__).forEach(function(l){var c=t.__schemas__[l];if(c!==null){var u={validate:null,link:null};if(t.__compiled__[l]=u,Nse(c)){Dse(c.validate)?u.validate=Ise(c.validate):S1(c.validate)?u.validate=c.validate:s(l,c),S1(c.normalize)?u.normalize=c.normalize:c.normalize?s(l,c):u.normalize=x1();return}if(Tse(c)){i.push(l);return}s(l,c)}}),i.forEach(function(l){t.__compiled__[t.__schemas__[l]]&&(t.__compiled__[l].validate=t.__compiled__[t.__schemas__[l]].validate,t.__compiled__[l].normalize=t.__compiled__[t.__schemas__[l]].normalize)}),t.__compiled__[""]={validate:null,normalize:x1()};var a=Object.keys(t.__compiled__).filter(function(l){return l.length>0&&t.__compiled__[l]}).map($se).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+a+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),Vse(t)}function Pse(t,e){var n=t.__index__,o=t.__last_index__,i=t.__text_cache__.slice(n,o);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=o+e,this.raw=i,this.text=i,this.url=i}function gc(t,e){var n=new Pse(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function qt(t,e){if(!(this instanceof qt))return new qt(t,e);e||Bse(t)&&(e=t,t={}),this.__opts__=hc({},ym,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=hc({},Mse,t),this.__compiled__={},this.__tlds__=Ose,this.__tlds_replaced__=!1,this.re={},ia(this)}qt.prototype.add=function(e,n){return this.__schemas__[e]=n,ia(this),this};qt.prototype.set=function(e){return this.__opts__=hc(this.__opts__,e),this};qt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,o,i,s,a,l,c,u,d;if(this.re.schema_test.test(e)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],c.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(o=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=o.index+o[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(d=e.indexOf("@"),d>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=l))),this.__index__>=0};qt.prototype.pretest=function(e){return this.re.pretest.test(e)};qt.prototype.testSchemaAt=function(e,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,o,this):0};qt.prototype.match=function(e){var n=0,o=[];this.__index__>=0&&this.__text_cache__===e&&(o.push(gc(this,n)),n=this.__last_index__);for(var i=n?e.slice(n):e;this.test(i);)o.push(gc(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return o.length?o:null};qt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var n=this.re.schema_at_start.exec(e);if(!n)return null;var o=this.testSchemaAt(e,n[2],n[0].length);return o?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o,gc(this,0)):null};qt.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(o,i,s){return o!==s[i-1]}).reverse(),ia(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ia(this),this)};qt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};qt.prototype.onCompile=function(){};var Fse=qt;const xr=2147483647,Tn=36,bu=1,qi=26,Rse=38,zse=700,_m=72,Cm=128,bm="-",Use=/^xn--/,Hse=/[^\0-\x7F]/,qse=/[\x2E\u3002\uFF0E\uFF61]/g,jse={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Pl=Tn-bu,Nn=Math.floor,Fl=String.fromCharCode;function co(t){throw new RangeError(jse[t])}function Wse(t,e){const n=[];let o=t.length;for(;o--;)n[o]=e(t[o]);return n}function km(t,e){const n=t.split("@");let o="";n.length>1&&(o=n[0]+"@",t=n[1]),t=t.replace(qse,".");const i=t.split("."),s=Wse(i,e).join(".");return o+s}function ku(t){const e=[];let n=0;const o=t.length;for(;n<o;){const i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<o){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((i&1023)<<10)+(s&1023)+65536):(e.push(i),n--)}else e.push(i)}return e}const wm=t=>String.fromCodePoint(...t),Zse=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:Tn},A1=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Em=function(t,e,n){let o=0;for(t=n?Nn(t/zse):t>>1,t+=Nn(t/e);t>Pl*qi>>1;o+=Tn)t=Nn(t/Pl);return Nn(o+(Pl+1)*t/(t+Rse))},wu=function(t){const e=[],n=t.length;let o=0,i=Cm,s=_m,a=t.lastIndexOf(bm);a<0&&(a=0);for(let l=0;l<a;++l)t.charCodeAt(l)>=128&&co("not-basic"),e.push(t.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const c=o;for(let d=1,p=Tn;;p+=Tn){l>=n&&co("invalid-input");const f=Zse(t.charCodeAt(l++));f>=Tn&&co("invalid-input"),f>Nn((xr-o)/d)&&co("overflow"),o+=f*d;const m=p<=s?bu:p>=s+qi?qi:p-s;if(f<m)break;const h=Tn-m;d>Nn(xr/h)&&co("overflow"),d*=h}const u=e.length+1;s=Em(o-c,u,c==0),Nn(o/u)>xr-i&&co("overflow"),i+=Nn(o/u),o%=u,e.splice(o++,0,i)}return String.fromCodePoint(...e)},Eu=function(t){const e=[];t=ku(t);const n=t.length;let o=Cm,i=0,s=_m;for(const c of t)c<128&&e.push(Fl(c));const a=e.length;let l=a;for(a&&e.push(bm);l<n;){let c=xr;for(const d of t)d>=o&&d<c&&(c=d);const u=l+1;c-o>Nn((xr-i)/u)&&co("overflow"),i+=(c-o)*u,o=c;for(const d of t)if(d<o&&++i>xr&&co("overflow"),d===o){let p=i;for(let f=Tn;;f+=Tn){const m=f<=s?bu:f>=s+qi?qi:f-s;if(p<m)break;const h=p-m,v=Tn-m;e.push(Fl(A1(m+h%v,0))),p=Nn(h/v)}e.push(Fl(A1(p,0))),s=Em(i,u,l===a),i=0,++l}++i,++o}return e.join("")},Sm=function(t){return km(t,function(e){return Use.test(e)?wu(e.slice(4).toLowerCase()):e})},xm=function(t){return km(t,function(e){return Hse.test(e)?"xn--"+Eu(e):e})},Kse={version:"2.1.0",ucs2:{decode:ku,encode:wm},decode:wu,encode:Eu,toASCII:xm,toUnicode:Sm},Gse=Object.freeze(Object.defineProperty({__proto__:null,decode:wu,default:Kse,encode:Eu,toASCII:xm,toUnicode:Sm,ucs2decode:ku,ucs2encode:wm},Symbol.toStringTag,{value:"Module"})),Yse=vC(Gse);var Jse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Xse={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},Qse={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},Di=Be,eae=qa,tae=Zre,nae=vie,oae=Yie,rae=xse,iae=Fse,Ro=Wr,Am=Yse,sae={default:Jse,zero:Xse,commonmark:Qse},aae=/^(vbscript|javascript|file|data):/,lae=/^data:image\/(gif|png|jpeg|webp);/;function cae(t){var e=t.trim().toLowerCase();return aae.test(e)?!!lae.test(e):!0}var Tm=["http:","https:","mailto:"];function uae(t){var e=Ro.parse(t,!0);if(e.hostname&&(!e.protocol||Tm.indexOf(e.protocol)>=0))try{e.hostname=Am.toASCII(e.hostname)}catch{}return Ro.encode(Ro.format(e))}function dae(t){var e=Ro.parse(t,!0);if(e.hostname&&(!e.protocol||Tm.indexOf(e.protocol)>=0))try{e.hostname=Am.toUnicode(e.hostname)}catch{}return Ro.decode(Ro.format(e),Ro.decode.defaultChars+"%")}function nn(t,e){if(!(this instanceof nn))return new nn(t,e);e||Di.isString(t)||(e=t||{},t="default"),this.inline=new rae,this.block=new oae,this.core=new nae,this.renderer=new tae,this.linkify=new iae,this.validateLink=cae,this.normalizeLink=uae,this.normalizeLinkText=dae,this.utils=Di,this.helpers=Di.assign({},eae),this.options={},this.configure(t),e&&this.set(e)}nn.prototype.set=function(t){return Di.assign(this.options,t),this};nn.prototype.configure=function(t){var e=this,n;if(Di.isString(t)&&(n=t,t=sae[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(o){t.components[o].rules&&e[o].ruler.enableOnly(t.components[o].rules),t.components[o].rules2&&e[o].ruler2.enableOnly(t.components[o].rules2)}),this};nn.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};nn.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var o=t.filter(function(i){return n.indexOf(i)<0});if(o.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};nn.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};nn.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens};nn.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};nn.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens};nn.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var fae=nn,pae=fae;const mae=gC(pae);/*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */function T1(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function hae(t){if(Array.isArray(t))return t}function gae(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,a,l=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function vae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yae(t,e){return hae(t)||gae(t,e)||_ae(t,e)||vae()}function _ae(t,e){if(t){if(typeof t=="string")return T1(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T1(t,e):void 0}}const Nm=Object.entries,N1=Object.setPrototypeOf,Cae=Object.isFrozen,bae=Object.getPrototypeOf,kae=Object.getOwnPropertyDescriptor;let pt=Object.freeze,gt=Object.seal,br=Object.create,Dm=typeof Reflect<"u"&&Reflect,vc=Dm.apply,yc=Dm.construct;pt||(pt=function(e){return e});gt||(gt=function(e){return e});vc||(vc=function(e,n){for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];return e.apply(n,i)});yc||(yc=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return new e(...o)});const vr=et(Array.prototype.forEach),wae=et(Array.prototype.lastIndexOf),D1=et(Array.prototype.pop),yr=et(Array.prototype.push),Eae=et(Array.prototype.splice),fo=Array.isArray,Si=et(String.prototype.toLowerCase),Rl=et(String.prototype.toString),$1=et(String.prototype.match),yi=et(String.prototype.replace),B1=et(String.prototype.indexOf),Sae=et(String.prototype.trim),xae=et(Number.prototype.toString),Aae=et(Boolean.prototype.toString),M1=typeof BigInt>"u"?null:et(BigInt.prototype.toString),L1=typeof Symbol>"u"?null:et(Symbol.prototype.toString),at=et(Object.prototype.hasOwnProperty),_i=et(Object.prototype.toString),st=et(RegExp.prototype.test),Bo=Tae(TypeError);function et(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return vc(t,e,o)}}function Tae(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return yc(t,n)}}function Se(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Si;if(N1&&N1(t,null),!fo(e))return t;let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const s=n(i);s!==i&&(Cae(e)||(e[o]=s),i=s)}t[i]=!0}return t}function Nae(t){for(let e=0;e<t.length;e++)at(t,e)||(t[e]=null);return t}function kt(t){const e=br(null);for(const o of Nm(t)){var n=yae(o,2);const i=n[0],s=n[1];at(t,i)&&(fo(s)?e[i]=Nae(s):s&&typeof s=="object"&&s.constructor===Object?e[i]=kt(s):e[i]=s)}return e}function Dae(t){switch(typeof t){case"string":return t;case"number":return xae(t);case"boolean":return Aae(t);case"bigint":return M1?M1(t):"0";case"symbol":return L1?L1(t):"Symbol()";case"undefined":return _i(t);case"function":case"object":{if(t===null)return _i(t);const e=t,n=cn(e,"toString");if(typeof n=="function"){const o=n(e);return typeof o=="string"?o:_i(o)}return _i(t)}default:return _i(t)}}function cn(t,e){for(;t!==null;){const o=kae(t,e);if(o){if(o.get)return et(o.get);if(typeof o.value=="function")return et(o.value)}t=bae(t)}function n(){return null}return n}function $ae(t){try{return st(t,""),!0}catch{return!1}}const O1=pt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zl=pt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ul=pt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Bae=pt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hl=pt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Mae=pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V1=pt(["#text"]),I1=pt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ql=pt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P1=pt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ls=pt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Lae=gt(/{{[\w\W]*|^[\w\W]*}}/g),Oae=gt(/<%[\w\W]*|^[\w\W]*%>/g),Vae=gt(/\${[\w\W]*/g),Iae=gt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Pae=gt(/^aria-[\-\w]+$/),F1=gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fae=gt(/^(?:\w+script|data):/i),Rae=gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zae=gt(/^html$/i),Uae=gt(/^[a-z][.\w]*(-[.\w]+)+$/i),R1=gt(/<[/\w!]/g),z1=gt(/<[/\w]/g),Hae=gt(/<\/no(script|embed|frames)/i),qae=gt(/\/>/i),Ft={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},jae=function(){return typeof window>"u"?null:window},Wae=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},U1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},lo=function(e,n,o,i){return at(e,n)&&fo(e[n])?Se(i.base?kt(i.base):{},e[n],i.transform):o};function $m(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:jae();const e=X=>$m(X);if(e.version="3.4.13",e.removed=[],!t||!t.document||t.document.nodeType!==Ft.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const o=n,i=o.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,a=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;u===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,p=t.trustedTypes,f=l.prototype,m=cn(f,"cloneNode"),h=cn(f,"remove"),v=cn(f,"nextSibling"),C=cn(f,"childNodes"),y=cn(f,"parentNode"),g=cn(f,"shadowRoot"),_=cn(f,"attributes"),b=a&&a.prototype?cn(a.prototype,"nodeType"):null,w=a&&a.prototype?cn(a.prototype,"nodeName"):null,k=a&&a.prototype?cn(a.prototype,"ownerDocument"):null;if(typeof s=="function"){const X=n.createElement("template");X.content&&X.content.ownerDocument&&(n=X.content.ownerDocument)}let A,S="",E,D=!1,V=0;const T=function(){if(V>0)throw Bo('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(N){T(),V++;try{return A.createHTML(N)}finally{V--}},x=function(N){T(),V++;try{return A.createScriptURL(N)}finally{V--}},$=function(){return D||(E=Wae(p,i),D=!0),E},B=n,q=B.implementation,I=B.createNodeIterator,H=B.createDocumentFragment,Y=B.getElementsByTagName,le=o.importNode;let oe=U1();e.isSupported=typeof Nm=="function"&&typeof y=="function"&&q&&q.createHTMLDocument!==void 0;const Ne=Lae,ce=Oae,ne=Vae,z=Iae,F=Pae,re=Fae,Ee=Rae,ze=Uae;let we=F1,Ce=null;const _t=Se({},[...O1,...zl,...Ul,...Hl,...V1]);let R=null;const ie=Se({},[...I1,...ql,...P1,...Ls]);let he=Object.seal(br(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,Ze=null;const De=Object.seal(br(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,Fe=!0,Ge=!1,Ye=!0,Me=!1,Ct=!0,it=!1,Lt=!1,rn=null,Cn=null,bn=!1,kn=!1,no=!1,L=!1,W=!0,ae=!1;const Je="user-content-";let Ot=!0,bt=!1,ve={},Et=null;const oo=Se({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ys=null;const ni=Se({},["audio","video","img","source","image","track"]);let Vt=null;const fr=Se({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ro="http://www.w3.org/1998/Math/MathML",pr="http://www.w3.org/2000/svg",It="http://www.w3.org/1999/xhtml";let io=It,No=!1,oi=null;const vl=Se({},[ro,pr,It],Rl),_s=pt(["mi","mo","mn","ms","mtext"]);let Pt=Se({},_s);const Cs=pt(["annotation-xml"]);let ri=Se({},Cs);const yl=Se({},["title","style","font","a","script"]);let Do=null;const ii=["application/xhtml+xml","text/html"],si="text/html";let Ve=null,sn=null;const ai=n.createElement("form"),bs=function(N){return N instanceof RegExp||N instanceof Function},so=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(sn&&sn===N)return;(!N||typeof N!="object")&&(N={}),N=kt(N),Do=ii.indexOf(N.PARSER_MEDIA_TYPE)===-1?si:N.PARSER_MEDIA_TYPE,Ve=Do==="application/xhtml+xml"?Rl:Si,Ce=lo(N,"ALLOWED_TAGS",_t,{transform:Ve}),R=lo(N,"ALLOWED_ATTR",ie,{transform:Ve}),oi=lo(N,"ALLOWED_NAMESPACES",vl,{transform:Rl}),Vt=lo(N,"ADD_URI_SAFE_ATTR",fr,{transform:Ve,base:fr}),ys=lo(N,"ADD_DATA_URI_TAGS",ni,{transform:Ve,base:ni}),Et=lo(N,"FORBID_CONTENTS",oo,{transform:Ve}),pe=lo(N,"FORBID_TAGS",kt({}),{transform:Ve}),Ze=lo(N,"FORBID_ATTR",kt({}),{transform:Ve}),ve=at(N,"USE_PROFILES")?N.USE_PROFILES&&typeof N.USE_PROFILES=="object"?kt(N.USE_PROFILES):N.USE_PROFILES:!1,$e=N.ALLOW_ARIA_ATTR!==!1,Fe=N.ALLOW_DATA_ATTR!==!1,Ge=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=N.SAFE_FOR_TEMPLATES||!1,Ct=N.SAFE_FOR_XML!==!1,it=N.WHOLE_DOCUMENT||!1,kn=N.RETURN_DOM||!1,no=N.RETURN_DOM_FRAGMENT||!1,L=N.RETURN_TRUSTED_TYPE||!1,bn=N.FORCE_BODY||!1,W=N.SANITIZE_DOM!==!1,ae=N.SANITIZE_NAMED_PROPS||!1,Ot=N.KEEP_CONTENT!==!1,bt=N.IN_PLACE||!1,we=$ae(N.ALLOWED_URI_REGEXP)?N.ALLOWED_URI_REGEXP:F1,io=typeof N.NAMESPACE=="string"?N.NAMESPACE:It,Pt=at(N,"MATHML_TEXT_INTEGRATION_POINTS")&&N.MATHML_TEXT_INTEGRATION_POINTS&&typeof N.MATHML_TEXT_INTEGRATION_POINTS=="object"?kt(N.MATHML_TEXT_INTEGRATION_POINTS):Se({},_s),ri=at(N,"HTML_INTEGRATION_POINTS")&&N.HTML_INTEGRATION_POINTS&&typeof N.HTML_INTEGRATION_POINTS=="object"?kt(N.HTML_INTEGRATION_POINTS):Se({},Cs);const P=at(N,"CUSTOM_ELEMENT_HANDLING")&&N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING=="object"?kt(N.CUSTOM_ELEMENT_HANDLING):br(null);if(he=br(null),at(P,"tagNameCheck")&&bs(P.tagNameCheck)&&(he.tagNameCheck=P.tagNameCheck),at(P,"attributeNameCheck")&&bs(P.attributeNameCheck)&&(he.attributeNameCheck=P.attributeNameCheck),at(P,"allowCustomizedBuiltInElements")&&typeof P.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=P.allowCustomizedBuiltInElements),gt(he),Me&&(Fe=!1),no&&(kn=!0),ve&&(Ce=Se({},V1),R=br(null),ve.html===!0&&(Se(Ce,O1),Se(R,I1)),ve.svg===!0&&(Se(Ce,zl),Se(R,ql),Se(R,Ls)),ve.svgFilters===!0&&(Se(Ce,Ul),Se(R,ql),Se(R,Ls)),ve.mathMl===!0&&(Se(Ce,Hl),Se(R,P1),Se(R,Ls))),De.tagCheck=null,De.attributeCheck=null,at(N,"ADD_TAGS")&&(typeof N.ADD_TAGS=="function"?De.tagCheck=N.ADD_TAGS:fo(N.ADD_TAGS)&&(Ce===_t&&(Ce=kt(Ce)),Se(Ce,N.ADD_TAGS,Ve))),at(N,"ADD_ATTR")&&(typeof N.ADD_ATTR=="function"?De.attributeCheck=N.ADD_ATTR:fo(N.ADD_ATTR)&&(R===ie&&(R=kt(R)),Se(R,N.ADD_ATTR,Ve))),at(N,"ADD_URI_SAFE_ATTR")&&fo(N.ADD_URI_SAFE_ATTR)&&Se(Vt,N.ADD_URI_SAFE_ATTR,Ve),at(N,"FORBID_CONTENTS")&&fo(N.FORBID_CONTENTS)&&(Et===oo&&(Et=kt(Et)),Se(Et,N.FORBID_CONTENTS,Ve)),at(N,"ADD_FORBID_CONTENTS")&&fo(N.ADD_FORBID_CONTENTS)&&(Et===oo&&(Et=kt(Et)),Se(Et,N.ADD_FORBID_CONTENTS,Ve)),Ot&&(Ce["#text"]=!0),it&&Se(Ce,["html","head","body"]),Ce.table&&(Se(Ce,["tbody"]),delete pe.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Bo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Z=A;A=N.TRUSTED_TYPES_POLICY;try{S=M("")}catch(ue){throw A=Z,ue}}else N.TRUSTED_TYPES_POLICY===null?(A=void 0,S=""):(A===void 0&&(A=$()),A&&typeof S=="string"&&(S=M("")));pt&&pt(N),sn=N},li=Se({},[...zl,...Ul,...Bae]),O=Se({},[...Hl,...Mae]),J=function(N,P,Z){return P.namespaceURI===It?N==="svg":P.namespaceURI===ro?N==="svg"&&(Z==="annotation-xml"||Pt[Z]):!!li[N]},be=function(N,P,Z){return P.namespaceURI===It?N==="math":P.namespaceURI===pr?N==="math"&&ri[Z]:!!O[N]},Ue=function(N,P,Z){return P.namespaceURI===pr&&!ri[Z]||P.namespaceURI===ro&&!Pt[Z]?!1:!O[N]&&(yl[N]||!li[N])},Fn=function(N){let P=y(N);(!P||!P.tagName)&&(P={namespaceURI:io,tagName:"template"});const Z=Si(N.tagName),ue=Si(P.tagName);return oi[N.namespaceURI]?N.namespaceURI===pr?J(Z,P,ue):N.namespaceURI===ro?be(Z,P,ue):N.namespaceURI===It?Ue(Z,P,ue):!!(Do==="application/xhtml+xml"&&oi[N.namespaceURI]):!1},an=function(N){yr(e.removed,{element:N});try{y(N).removeChild(N)}catch{if(h(N),!y(N))throw Bo("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ci=function(N){ui(N);const P=C(N);if(P){const ue=[];vr(P,fe=>{yr(ue,fe)}),vr(ue,fe=>{try{h(fe)}catch{}})}const Z=_(N);if(Z)for(let ue=Z.length-1;ue>=0;--ue){const fe=Z[ue],_e=fe&&fe.name;if(typeof _e=="string")try{N.removeAttribute(_e)}catch{}}},Rn=function(N,P){try{yr(e.removed,{attribute:P.getAttributeNode(N),from:P})}catch{yr(e.removed,{attribute:null,from:P})}if(P.removeAttribute(N),N==="is")if(kn||no)try{an(P)}catch{}else try{P.setAttribute(N,"")}catch{}},ks=function(N){const P=_(N);if(P)for(let Z=P.length-1;Z>=0;--Z){const ue=P[Z],fe=ue&&ue.name;if(!(typeof fe!="string"||R[Ve(fe)]))try{N.removeAttribute(fe)}catch{}}},ui=function(N){const P=[N];for(;P.length>0;){const Z=P.pop();(b?b(Z):Z.nodeType)===Ft.element&&ks(Z);const fe=C(Z);if(fe)for(let _e=fe.length-1;_e>=0;--_e)P.push(fe[_e])}},n0=function(N){if(!Ct)return;const P=[N];for(;P.length>0;){const Z=P.pop(),ue=b?b(Z):Z.nodeType;if(ue===Ft.processingInstruction||ue===Ft.comment&&st(z1,Z.data)){try{h(Z)}catch{}continue}if(ue===Ft.element){const _e=Z,Ie=Ve(w?w(Z):Z.nodeName);try{_e.hasAttribute&&_e.hasAttribute("patchsrc")&&_e.removeAttribute("patchsrc"),_e.hasAttribute&&_e.hasAttribute("for")&&Ie!=="label"&&Ie!=="output"&&_e.removeAttribute("for")}catch{}}const fe=C(Z);if(fe)for(let _e=fe.length-1;_e>=0;--_e)P.push(fe[_e])}},yd=function(N){let P=null,Z=null;if(bn)N="<remove></remove>"+N;else{const _e=$1(N,/^[\r\n\t ]+/);Z=_e&&_e[0]}Do==="application/xhtml+xml"&&io===It&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const ue=A?M(N):N;if(io===It)try{P=new d().parseFromString(ue,Do)}catch{}if(!P||!P.documentElement){P=q.createDocument(io,"template",null);try{P.documentElement.innerHTML=No?S:ue}catch{}}const fe=P.body||P.documentElement;return N&&Z&&fe.insertBefore(n.createTextNode(Z),fe.childNodes[0]||null),io===It?Y.call(P,it?"html":"body")[0]:it?P.documentElement:fe},_d=function(N){const P=k?k(N):N.ownerDocument;return I.call(P||N,N,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ws=function(N){return N=yi(N,Ne," "),N=yi(N,ce," "),N=yi(N,ne," "),N},_l=function(N){var P;N.normalize();const Z=k?k(N):N.ownerDocument,ue=I.call(Z||N,N,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let fe=ue.nextNode();for(;fe;)fe.data=ws(fe.data),fe=ue.nextNode();const _e=(P=N.querySelectorAll)===null||P===void 0?void 0:P.call(N,"template");_e&&vr(_e,Ie=>{mr(Ie.content)&&_l(Ie.content)})},Es=function(N){const P=w?w(N):null;return typeof P!="string"||Ve(P)!=="form"?!1:typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||N.attributes!==_(N)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function"||N.nodeType!==b(N)||N.childNodes!==C(N)},mr=function(N){if(!b||typeof N!="object"||N===null)return!1;try{return b(N)===Ft.documentFragment}catch{return!1}},di=function(N){if(!b||typeof N!="object"||N===null)return!1;try{return typeof b(N)=="number"}catch{return!1}};function wn(X,N,P){X.length!==0&&vr(X,Z=>{Z.call(e,N,P,sn)})}const o0=function(N,P){return!!(Ct&&N.hasChildNodes()&&!di(N.firstElementChild)&&st(R1,N.textContent)&&st(R1,N.innerHTML)||Ct&&N.namespaceURI===It&&P==="style"&&di(N.firstElementChild)||N.nodeType===Ft.processingInstruction||Ct&&N.nodeType===Ft.comment&&st(z1,N.data))},r0=function(N,P,Z){if(!pe[P]&&wd(P)&&(he.tagNameCheck instanceof RegExp&&st(he.tagNameCheck,P)||he.tagNameCheck instanceof Function&&he.tagNameCheck(P)))return!1;if(Ot&&!Et[P]){const ue=y(N),fe=C(N);if(fe&&ue){const _e=fe.length;for(let Ie=_e-1;Ie>=0;--Ie){const He=N===Z?m(fe[Ie],!0):fe[Ie];ue.insertBefore(He,v(N))}}}return an(N),!0},Cd=function(N,P,Z,ue){return N.length===0?P:P===Z||P===ue?kt(P):P},bd=function(N,P){if(wn(oe.beforeSanitizeElements,N,null),N!==P&&y(N)===null)return bt&&ui(N),!0;if(Es(N))return an(N),!0;const Z=Ve(w?w(N):N.nodeName);if(Ce=Cd(oe.uponSanitizeElement,Ce,_t,rn),wn(oe.uponSanitizeElement,N,{tagName:Z,allowedTags:Ce}),N!==P&&y(N)===null)return bt&&ui(N),!0;if(o0(N,Z))return an(N),!0;if(pe[Z]||!(De.tagCheck instanceof Function&&De.tagCheck(Z))&&!Ce[Z]){const fe=r0(N,Z,P);return fe===!1&&wn(oe.afterSanitizeElements,N,null),fe}if((b?b(N):N.nodeType)===Ft.element&&!Fn(N)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&st(Hae,N.innerHTML))return an(N),!0;if(Me&&N.nodeType===Ft.text){const fe=ws(N.textContent);N.textContent!==fe&&(yr(e.removed,{element:N.cloneNode()}),N.textContent=fe)}return wn(oe.afterSanitizeElements,N,null),!1},kd=function(N,P,Z){if(Ze[P]||Ct&&P==="patchsrc"||Ct&&P==="for"&&N!=="label"&&N!=="output"||W&&(P==="id"||P==="name")&&(Z in n||Z in ai))return!1;const ue=R[P]||De.attributeCheck instanceof Function&&De.attributeCheck(P,N);if(!(Fe&&st(z,P))){if(!($e&&st(F,P))){if(ue){if(!Vt[P]){if(!st(we,yi(Z,Ee,""))){if(!((P==="src"||P==="xlink:href"||P==="href")&&N!=="script"&&B1(Z,"data:")===0&&ys[N])){if(!(Ge&&!st(re,yi(Z,Ee,"")))){if(Z)return!1}}}}}else if(!(wd(N)&&(he.tagNameCheck instanceof RegExp&&st(he.tagNameCheck,N)||he.tagNameCheck instanceof Function&&he.tagNameCheck(N))&&(he.attributeNameCheck instanceof RegExp&&st(he.attributeNameCheck,P)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(P,N))||P==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&st(he.tagNameCheck,Z)||he.tagNameCheck instanceof Function&&he.tagNameCheck(Z))))return!1}}return!0},i0=Se({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),wd=function(N){return!i0[Si(N)]&&st(ze,N)},s0=function(N,P,Z,ue){if(A&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Z)switch(p.getAttributeType(N,P)){case"TrustedHTML":return M(ue);case"TrustedScriptURL":return x(ue)}return ue},a0=function(N,P,Z,ue){try{Z?N.setAttributeNS(Z,P,ue):N.setAttribute(P,ue),Es(N)?an(N):D1(e.removed)}catch{Rn(P,N)}},Ed=function(N){wn(oe.beforeSanitizeAttributes,N,null);const P=N.attributes;if(!P||Es(N))return;R=Cd(oe.uponSanitizeAttribute,R,ie,Cn);const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0};let ue=P.length;const fe=Ve(N.nodeName);for(;ue--;){const _e=P[ue],Ie=_e.name,He=_e.namespaceURI,Nt=_e.value,Dt=Ve(Ie),bl=Nt;let St=Ie==="value"?bl:Sae(bl);if(Z.attrName=Dt,Z.attrValue=St,Z.keepAttr=!0,Z.forceKeepAttr=void 0,wn(oe.uponSanitizeAttribute,N,Z),St=Z.attrValue,ae&&(Dt==="id"||Dt==="name")&&B1(St,Je)!==0&&(Rn(Ie,N),St=Je+St),Ct&&st(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,St)){Rn(Ie,N);continue}if(Dt==="attributename"&&$1(St,"href")){Rn(Ie,N);continue}if(!Z.forceKeepAttr){if(!Z.keepAttr){Rn(Ie,N);continue}if(!Ye&&st(qae,St)){Rn(Ie,N);continue}if(Me&&(St=ws(St)),!kd(fe,Dt,St)){Rn(Ie,N);continue}St=s0(fe,Dt,He,St),St!==bl&&a0(N,Ie,He,St)}}wn(oe.afterSanitizeAttributes,N,null)},Ss=function(N){let P=null;const Z=_d(N);for(wn(oe.beforeSanitizeShadowDOM,N,null);P=Z.nextNode();)if(wn(oe.uponSanitizeShadowNode,P,null),bd(P,N),Ed(P),mr(P.content)&&Ss(P.content),(b?b(P):P.nodeType)===Ft.element){const fe=g(P);mr(fe)&&(Cl(fe),Ss(fe))}wn(oe.afterSanitizeShadowDOM,N,null)},Cl=function(N){const P=[{node:N,shadow:null}];for(;P.length>0;){const Z=P.pop();if(Z.shadow){Ss(Z.shadow);continue}const ue=Z.node,_e=(b?b(ue):ue.nodeType)===Ft.element,Ie=C(ue);if(Ie)for(let He=Ie.length-1;He>=0;--He)P.push({node:Ie[He],shadow:null});if(_e){const He=w?w(ue):null;if(typeof He=="string"&&Ve(He)==="template"){const Nt=ue.content;mr(Nt)&&P.push({node:Nt,shadow:null})}}if(_e){const He=g(ue);mr(He)&&P.push({node:null,shadow:He},{node:He,shadow:null})}}};return e.sanitize=function(X){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=null,Z=null,ue=null,fe=null;if(No=!X,No&&(X="<!-->"),typeof X!="string"&&!di(X)&&(X=Dae(X),typeof X!="string"))throw Bo("dirty is not a string, aborting");if(!e.isSupported)return X;Lt?(Ce=rn,R=Cn):so(N),(oe.uponSanitizeElement.length>0||oe.uponSanitizeAttribute.length>0)&&(Ce=kt(Ce)),oe.uponSanitizeAttribute.length>0&&(R=kt(R)),e.removed=[];const _e=bt&&typeof X!="string"&&di(X);if(_e){n0(X);const Nt=w?w(X):X.nodeName;if(typeof Nt=="string"){const Dt=Ve(Nt);if(!Ce[Dt]||pe[Dt])throw ci(X),Bo("root node is forbidden and cannot be sanitized in-place")}if(Es(X))throw ci(X),Bo("root node is clobbered and cannot be sanitized in-place");try{Cl(X)}catch(Dt){throw ci(X),Dt}}else if(di(X))P=yd("<!---->"),Z=P.ownerDocument.importNode(X,!0),Z.nodeType===Ft.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?P=Z:P.appendChild(Z),Cl(Z);else{if(!kn&&!Me&&!it&&X.indexOf("<")===-1)return A&&L?M(X):X;if(P=yd(X),!P)return kn?null:L?S:""}P&&bn&&an(P.firstChild);const Ie=_e?X:P;try{const Nt=_d(Ie);for(;ue=Nt.nextNode();)bd(ue,Ie),Ed(ue),mr(ue.content)&&Ss(ue.content)}catch(Nt){throw _e&&(ci(X),vr(e.removed,Dt=>{Dt.element&&ui(Dt.element)})),Nt}if(_e)return vr(e.removed,Nt=>{Nt.element&&ui(Nt.element)}),Me&&_l(X),X;if(kn){if(Me&&_l(P),no)for(fe=H.call(P.ownerDocument);P.firstChild;)fe.appendChild(P.firstChild);else fe=P;return(R.shadowroot||R.shadowrootmode)&&(fe=le.call(o,fe,!0)),fe}let He=it?P.outerHTML:P.innerHTML;return it&&Ce["!doctype"]&&P.ownerDocument&&P.ownerDocument.doctype&&P.ownerDocument.doctype.name&&st(zae,P.ownerDocument.doctype.name)&&(He="<!DOCTYPE "+P.ownerDocument.doctype.name+`>
19
+ `+He),Me&&(He=ws(He)),A&&L?M(He):He},e.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};so(X),Lt=!0,rn=Ce,Cn=R},e.clearConfig=function(){sn=null,Lt=!1,rn=null,Cn=null,A=E,S=""},e.isValidAttribute=function(X,N,P){sn||so({});const Z=Ve(X),ue=Ve(N);return kd(Z,ue,P)},e.addHook=function(X,N){typeof N=="function"&&at(oe,X)&&yr(oe[X],N)},e.removeHook=function(X,N){if(at(oe,X)){if(N!==void 0){const P=wae(oe[X],N);return P===-1?void 0:Eae(oe[X],P,1)[0]}return D1(oe[X])}},e.removeHooks=function(X){at(oe,X)&&(oe[X]=[])},e.removeAllHooks=function(){oe=U1()},e}var Zae=$m();const Kae=["innerHTML"],Gae={key:1,class:"ao-markdown-content ao-markdown-content--placeholder"},Bm=r.defineComponent({__name:"AoMarkdownContent",props:{content:{default:""},placeholder:{default:"Add description"}},setup(t){const e=t,n=new mae({html:!1,breaks:!0,linkify:!1,typographer:!1}),o=r.computed(()=>e.content?Zae.sanitize(n.render(e.content),{ALLOWED_TAGS:["p","br","strong","em","s","del","ul","ol","li","h1","h2","h3","pre","code"],ALLOWED_ATTR:[]}):"");return(i,s)=>t.content?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-markdown-content",innerHTML:o.value},null,8,Kae)):(r.openBlock(),r.createElementBlock("div",Gae,r.toDisplayString(t.placeholder),1))}});function G(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Mm(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);n.search=o.toString(),console.warn(`Minified Lexical warning #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const yn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Yae=yn&&"documentMode"in document?document.documentMode:null,un=yn&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Qo=yn&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),sa=!(!yn||!("InputEvent"in window)||Yae)&&"getTargetRanges"in new window.InputEvent("input"),ji=yn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Rr=yn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Jae=yn&&/Android/.test(navigator.userAgent),Lm=yn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),H1=yn&&Jae&&Lm,Wi=yn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&un&&!Lm;function Om(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}const Xae=0,Qae=1,ele=2,Vm=128,tle=1,nle=2,ole=3,rle=4,ile=5,sle=6,Ja=ji||Rr||Wi?" ":"​",ko=`
20
20
 
21
- `,ale=Qo?" ":Ja,xt={bold:1,capitalize:1024,code:16,highlight:Vm,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},lle={directionless:1,unmergeable:2},q1={center:2,end:6,justify:4,left:1,right:3,start:5},cle={[nle]:"center",[sle]:"end",[rle]:"justify",[tle]:"left",[ole]:"right",[ile]:"start"},ule={normal:0,segmented:2,token:1},dle={[Xae]:"normal",[ele]:"segmented",[Qae]:"token"},j1="$config";function Im(t,e,n,o,i,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(q(a)&&Im(a,l,n,o,i,s),n.has(l)||s.delete(l),i.push(l)),a=a.getNextSibling()}}let _c=!1,Su=0;function fle(t){Su=t.timeStamp}function jl(t,e,n){const o=t.nodeName==="BR",i=e.__lexicalLineBreak;return i&&(t===i||o&&t.previousSibling===i)||o&&sl(t,n)!==void 0}function ple(t,e,n){const o=hn(on(n));let i=null,s=null;o!==null&&o.anchorNode===t&&(i=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&zu(e,a,i,s,!1)}function mle(t,e,n){if(K(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return to(e)&&n.isAttached()}function hle(t,e,n,o){for(let i=t;i&&!yce(i);i=hs(i)){const s=sl(i,e);if(s!==void 0){const a=rt(s,n);if(a)return Ae(a)||!tt(i)?void 0:[i,a]}else if(i===o)return[o,Fh(n)]}}function Pm(t,e,n){_c=!0;const o=performance.now()-Su>100;try{zt(t,()=>{const i=te()||function(f){return f.getEditorState().read(()=>{const m=te();return m!==null?m.clone():null})}(t),s=new Map,a=t.getRootElement(),l=t._editorState,c=t._blockCursorElement;let u=!1,d="";for(let f=0;f<e.length;f++){const m=e[f],h=m.type,v=m.target,C=hle(v,t,l,a);if(!C)continue;const[y,g]=C;if(h==="characterData")o&&Q(g)&&to(v)&&mle(i,v,g)&&ple(v,g,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let k=0;k<_.length;k++){const x=_[k],S=Ih(x),E=x.parentNode;if(E!=null&&x!==c&&S===null&&!jl(x,E,t)){if(Qo){const N=(tt(x)?x.innerText:null)||x.nodeValue;N&&(d+=N)}E.removeChild(x)}}const b=m.removedNodes,w=b.length;if(w>0){let k=0;for(let x=0;x<w;x++){const S=b[x];(jl(S,v,t)||c===S)&&(v.appendChild(S),k++)}w!==k&&s.set(y,g)}}}if(s.size>0)for(const[f,m]of s)m.reconcileObservedMutation(f,t);const p=n.takeRecords();if(p.length>0){for(let f=0;f<p.length;f++){const m=p[f],h=m.addedNodes,v=m.target;for(let C=0;C<h.length;C++){const y=h[C],g=y.parentNode;g==null||y.nodeName!=="BR"||jl(y,v,t)||g.removeChild(y)}}n.takeRecords()}i!==null&&(u&&vt(i),Qo&&Hh(t)&&i.insertRawText(d))})}finally{_c=!1}}function Fm(t){const e=t._observer;e!==null&&Pm(t,e.takeRecords(),e)}function Rm(t){(function(e){Su===0&&on(e).addEventListener("textInput",fle,!0)})(t),t._observer=new MutationObserver((e,n)=>{Pm(t,e,n)})}let gle=class{constructor(e,n){j(this,"key");j(this,"parse");j(this,"unparse");j(this,"isEqual");j(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||Cle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function vle(t,e){return new gle(t,e)}function zm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function Wl(t,e,n){let o;if(lt(),typeof n=="function"){const s=t.getLatest(),a=zm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const i=t.getWritable();return Hm(i).updateFromKnown(e,o),i}function yle(t){const e=new Map,n=new Set;for(let o=typeof t=="function"?t:t.replace;o.prototype&&o.prototype.getType!==void 0;o=Object.getPrototypeOf(o)){const{ownNodeConfig:i}=cl(o);if(i&&i.stateConfigs)for(const s of i.stateConfigs){let a;"stateConfig"in s?(a=s.stateConfig,s.flat&&n.add(a.key)):a=s,e.set(a.key,a)}}return{flatKeys:n,sharedConfigMap:e}}let _le=class Um{constructor(e,n,o=void 0,i=new Map,s=void 0){j(this,"node");j(this,"knownState");j(this,"unknownState");j(this,"sharedNodeState");j(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=i;const{sharedConfigMap:a}=this.sharedNodeState,l=s!==void 0?s:function(c,u,d){let p=d.size;if(u)for(const f in u){const m=c.get(f);m&&d.has(m)||p++}return p}(a,o,i);this.size=l}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let o=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const i=this.unknownState[e.key];i!==void 0&&(o=e.parse(i)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,i]of this.knownState)o.isEqual(i,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(i);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return W1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,i=new Map(this.knownState);return new Um(e,n,function(s,a,l){let c;if(l)for(const[u,d]of Object.entries(l)){const p=s.get(u);p?a.has(p)||a.set(p,p.parse(d)):(c=c||{},c[u]=d)}return c}(n.sharedConfigMap,i,o),i,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:i,unknownState:s}=this;i.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=W1(s)),this.size++),i.set(e,n)}updateFromUnknown(e,n){const o=this.sharedNodeState.sharedConfigMap.get(e);o?this.updateFromKnown(o,o.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const o of n.keys())n.set(o,o.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[o,i]of Object.entries(e))this.updateFromUnknown(o,i)}};function Hm(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new _le(e,qm(e));return e.__state=n,n}function qm(t){return t.__state?t.__state.sharedNodeState:Mh(ll(),t.getType()).sharedNodeState}function W1(t){if(t)for(const e in t)return t}function Cle(t){return t}function Z1(t,e,n){for(const[o,i]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==i&&!o.isEqual(s,i))return!0}return!1}function K1(t,e,n){const{unknownState:o}=e,i=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(i?i[s]:void 0)))return!0}return!1}function G1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function Y1(t,e){const n=t.__mode,o=t.__format,i=t.__style,s=e.__mode,a=e.__format,l=e.__style,c=t.__state,u=e.__state;return(n===null||n===s)&&(o===null||o===a)&&(i===null||i===l)&&(t.__state===null||c===u||function(d,p){if(d===p)return!0;if(d&&p&&d.size!==p.size)return!1;const f=new Set;return!(d&&Z1(f,d,p)||p&&Z1(f,p,d)||d&&K1(f,d,p)||p&&K1(f,p,d))}(c,u))}function J1(t,e){const n=t.mergeWithSibling(e),o=je()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function X1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&Q(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(Y1(e,o)){o=J1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&Q(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(Y1(o,n)){o=J1(o,n);break}break}n.remove()}}else o.remove()}function aa(t){return Q1(t.anchor),Q1(t.focus),t}function Q1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,i;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),i=!0):(o=e.getChildAtIndex(n),i=!1),Q(o)){t.set(o.__key,i?o.getTextContentSize():0,"text",!0);break}if(!q(o))break;t.set(o.__key,i?o.getChildrenSize():0,"element",!0)}}let er,wt,Zi,Xa,Cc,bc,tr,fn,kc,Ki,ot="",Sn=null,xn="",jn="",kr=!1,la=!1;function ca(t,e){const n=tr.get(t);if(e!==null){const o=xc(t);o.parentNode===e&&e.removeChild(o)}if(fn.has(t)||wt._keyToDOMMap.delete(t),q(n)){const o=da(n,tr);wc(o,0,o.length-1,null)}n!==void 0&&Uu(Ki,Zi,Xa,n,"destroyed")}function wc(t,e,n,o){let i=e;for(;i<=n;++i){const s=t[i];s!==void 0&&ca(s,o)}}function Mo(t,e){t.setProperty("text-align",e)}const ble="40px";function jm(t,e){const n=er.theme.indent;if(typeof n=="string"){const i=t.classList.contains(n);e>0&&!i?t.classList.add(n):e<1&&i&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||ble;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Wm(t,e){const n=t.style;e===0?Mo(n,""):e===1?Mo(n,"left"):e===2?Mo(n,"center"):e===3?Mo(n,"right"):e===4?Mo(n,"justify"):e===5?Mo(n,"start"):e===6&&Mo(n,"end")}function Ec(t,e){const n=function(o){const i=o.__dir;if(i!==null)return i;if(Qe(o))return null;const s=o.getParentOrThrow();return Qe(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function ua(t,e){const n=fn.get(t);n===void 0&&G(60);const o=n.createDOM(er,wt);if(function(i,s,a){const l=a._keyToDOMMap;(function(c,u,d){const p=`__lexicalKey_${u._key}`;c[p]=d})(s,a,i),l.set(i,s)}(t,o,wt),Q(n)?o.setAttribute("data-lexical-text","true"):Ae(n)&&o.setAttribute("data-lexical-decorator","true"),q(n)){const i=n.__indent,s=n.__size;if(Ec(o,n),i!==0&&jm(o,i),s!==0){const l=s-1;Sc(da(n,fn),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Wm(o,a),n.isInline()||Zm(null,n,o),al(n)&&(ot+=ko,jn+=ko)}else{const i=n.getTextContent();if(Ae(n)){const s=n.decorate(wt,er);s!==null&&Km(t,s),o.contentEditable="false"}ot+=i,jn+=i}return e!==null&&e.insertChild(o),Uu(Ki,Zi,Xa,n,"created"),o}function Sc(t,e,n,o,i){const s=ot;ot="";let a=n;for(;a<=o;++a){ua(t[a],i);const l=fn.get(t[a]);l!==null&&Q(l)&&(Sn===null&&(Sn=l.getFormat()),xn===""&&(xn=l.getStyle()))}al(e)&&(ot+=ko),i.element.__lexicalTextContent=ot,ot=s+ot}function ef(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return go(o)?"line-break":Ae(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Zm(t,e,n){const o=ef(t,tr),i=ef(e,fn);o!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function kle(t,e,n){var o;Sn=null,xn="",function(i,s,a){const l=ot,c=i.__size,u=s.__size;ot="";const d=a.element;if(c===1&&u===1){const p=i.__first,f=s.__first;if(p===f)xi(p,d);else{const h=xc(p),v=ua(f,null);try{d.replaceChild(v,h)}catch(C){if(typeof C=="object"&&C!=null){const y=`${C.toString()} Parent: ${d.tagName}, new child: {tag: ${v.tagName} key: ${f}}, old child: {tag: ${h.tagName}, key: ${p}}.`;throw new Error(y)}throw C}ca(p,null)}const m=fn.get(f);Q(m)&&(Sn===null&&(Sn=m.getFormat()),xn===""&&(xn=m.getStyle()))}else{const p=da(i,tr),f=da(s,fn);if(p.length!==c&&G(227),f.length!==u&&G(228),c===0)u!==0&&Sc(f,s,0,u-1,a);else if(u===0){if(c!==0){const m=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;wc(p,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,v,C,y,g){const _=C-1,b=y-1;let w,k,x=g.getFirstChild(),S=0,E=0;for(;S<=_&&E<=b;){const A=h[S],M=v[E];if(A===M)x=Zl(xi(M,g.element)),S++,E++;else{w===void 0&&(w=new Set(h)),k===void 0&&(k=new Set(v));const $=k.has(A),B=w.has(M);if($)if(B){const P=or(wt,M);P===x?x=Zl(xi(M,g.element)):(g.withBefore(x).insertChild(P),xi(M,g.element)),S++,E++}else ua(M,g.withBefore(x)),E++;else x=Zl(xc(A)),ca(A,g.element),S++}const D=fn.get(M);D!==null&&Q(D)&&(Sn===null&&(Sn=D.getFormat()),xn===""&&(xn=D.getStyle()))}const N=S>_,I=E>b;if(N&&!I){const A=v[b+1],M=A===void 0?null:wt.getElementByKey(A);Sc(v,m,E,b,g.withBefore(M))}else I&&!N&&wc(h,S,_,g.element)})(s,p,f,c,u,a)}al(s)&&(ot+=ko),d.__lexicalTextContent=ot,ot=l+ot}(t,e,e.getDOMSlot(n)),o=e,Sn==null||Sn===o.__textFormat||la||o.setTextFormat(Sn),function(i){xn===""||xn===i.__textStyle||la||i.setTextStyle(xn)}(e)}function da(t,e){const n=[];let o=t.__first;for(;o!==null;){const i=e.get(o);i===void 0&&G(101),n.push(o),o=i.__next}return n}function xi(t,e){const n=tr.get(t);let o=fn.get(t);n!==void 0&&o!==void 0||G(61);const i=kr||bc.has(t)||Cc.has(t),s=or(wt,t);if(n===o&&!i){if(q(n)){const a=s.__lexicalTextContent;a!==void 0&&(ot+=a,jn+=a)}else{const a=n.getTextContent();jn+=a,ot+=a}return s}if(n!==o&&i&&Uu(Ki,Zi,Xa,o,"updated"),o.updateDOM(n,s,er)){const a=ua(t,null);return e===null&&G(62),e.replaceChild(a,s),ca(t,null),a}if(q(n)&&q(o)){const a=o.__indent;(kr||a!==n.__indent)&&jm(s,a);const l=o.__format;if((kr||l!==n.__format)&&Wm(s,l),i&&(kle(n,o,s),Qe(o)||o.isInline()||Zm(n,o,s)),al(o)&&(ot+=ko,jn+=ko),(kr||o.__dir!==n.__dir)&&(Ec(s,o),Qe(o)&&!kr))for(const c of o.getChildren())q(c)&&Ec(or(wt,c.getKey()),c)}else{const a=o.getTextContent();if(Ae(o)){const l=o.decorate(wt,er);l!==null&&Km(t,l)}ot+=a,jn+=a}if(!la&&Qe(o)&&o.__cachedText!==jn){const a=o.getWritable();a.__cachedText=jn,o=a}return s}function Km(t,e){let n=wt._pendingDecorators;const o=wt._decorators;if(n===null){if(o[t]===e)return;n=Ph(wt)}n[t]=e}function Zl(t){let e=t.nextSibling;return e!==null&&e===wt._blockCursorElement&&(e=e.nextSibling),e}function wle(t,e,n,o,i,s){ot="",jn="",kr=o===2,wt=n,er=n._config,Zi=n._nodes,Xa=wt._listeners.mutation,Cc=i,bc=s,tr=t._nodeMap,fn=e._nodeMap,la=e._readOnly,kc=new Map(n._keyToDOMMap);const a=new Map;return Ki=a,xi("root",null),wt=void 0,Zi=void 0,Cc=void 0,bc=void 0,tr=void 0,fn=void 0,er=void 0,kc=void 0,Ki=void 0,a}function xc(t){const e=kc.get(t);return e===void 0&&G(75,t),e}function me(t){return{type:t}}const Gm=me("SELECTION_CHANGE_COMMAND"),Ele=me("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ym=me("CLICK_COMMAND"),jo=me("DELETE_CHARACTER_COMMAND"),Ar=me("INSERT_LINE_BREAK_COMMAND"),Gi=me("INSERT_PARAGRAPH_COMMAND"),Tr=me("CONTROLLED_TEXT_INSERTION_COMMAND"),xu=me("PASTE_COMMAND"),Ac=me("REMOVE_TEXT_COMMAND"),Yi=me("DELETE_WORD_COMMAND"),Ji=me("DELETE_LINE_COMMAND"),Yt=me("FORMAT_TEXT_COMMAND"),Au=me("UNDO_COMMAND"),Tu=me("REDO_COMMAND"),Sle=me("KEYDOWN_COMMAND"),Jm=me("KEY_ARROW_RIGHT_COMMAND"),xle=me("MOVE_TO_END"),Xm=me("KEY_ARROW_LEFT_COMMAND"),Ale=me("MOVE_TO_START"),Qm=me("KEY_ARROW_UP_COMMAND"),eh=me("KEY_ARROW_DOWN_COMMAND"),fa=me("KEY_ENTER_COMMAND"),th=me("KEY_SPACE_COMMAND"),nh=me("KEY_BACKSPACE_COMMAND"),oh=me("KEY_ESCAPE_COMMAND"),rh=me("KEY_DELETE_COMMAND"),ih=me("KEY_TAB_COMMAND"),Tle=me("INSERT_TAB_COMMAND"),Nle=me("INDENT_CONTENT_COMMAND"),tf=me("OUTDENT_CONTENT_COMMAND"),sh=me("DROP_COMMAND"),Dle=me("FORMAT_ELEMENT_COMMAND"),ah=me("DRAGSTART_COMMAND"),lh=me("DRAGOVER_COMMAND"),$le=me("DRAGEND_COMMAND"),Qa=me("COPY_COMMAND"),Nu=me("CUT_COMMAND"),Tc=me("SELECT_ALL_COMMAND"),Ble=me("CLEAR_EDITOR_COMMAND"),Mle=me("CLEAR_HISTORY_COMMAND"),Os=me("CAN_REDO_COMMAND"),Vs=me("CAN_UNDO_COMMAND"),Lle=me("FOCUS_COMMAND"),Ole=me("BLUR_COMMAND"),Vle=me("KEY_MODIFIER_COMMAND"),zn=Object.freeze({}),Nc=[["keydown",function(t,e){if($i=t.timeStamp,ch=t.key,!e.isComposing()&&!se(e,Sle,t)&&t.key!=null){if(Kl&&$f(t))return zt(e,()=>{Is(e,Gl)}),Kl=!1,void(Gl="");if(function(n){return Le(n,"ArrowRight",{shiftKey:"any"})}(t))se(e,Jm,t);else if(function(n){return Le(n,"ArrowRight",Hn)}(t))se(e,xle,t);else if(function(n){return Le(n,"ArrowLeft",{shiftKey:"any"})}(t))se(e,Xm,t);else if(function(n){return Le(n,"ArrowLeft",Hn)}(t))se(e,Ale,t);else if(function(n){return Le(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))se(e,Qm,t);else if(function(n){return Le(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))se(e,eh,t);else if(function(n){return Le(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Bi=!0,se(e,fa,t);else if(function(n){return n.key===" "}(t))se(e,th,t);else if(function(n){return un&&Le(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Bi=!0,se(e,Ar,!0);else if(function(n){return Le(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Bi=!1,se(e,fa,t);else if(function(n){return Le(n,"Backspace",{shiftKey:"any"})||un&&Le(n,"h",{ctrlKey:!0})}(t))$f(t)?se(e,nh,t):(t.preventDefault(),se(e,jo,!0));else if(function(n){return n.key==="Escape"}(t))se(e,oh,t);else if(function(n){return Le(n,"Delete",{})||un&&Le(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?se(e,rh,t):(t.preventDefault(),se(e,jo,!1));else if(function(n){return Le(n,"Backspace",Df)}(t))t.preventDefault(),se(e,Yi,!0);else if(function(n){return Le(n,"Delete",Df)}(t))t.preventDefault(),se(e,Yi,!1);else if(function(n){return un&&Le(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),se(e,Ji,!0);else if(function(n){return un&&(Le(n,"Delete",{metaKey:!0})||Le(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),se(e,Ji,!1);else if(function(n){return Le(n,"b",Hn)}(t))t.preventDefault(),se(e,Yt,"bold");else if(function(n){return Le(n,"u",Hn)}(t))t.preventDefault(),se(e,Yt,"underline");else if(function(n){return Le(n,"i",Hn)}(t))t.preventDefault(),se(e,Yt,"italic");else if(function(n){return Le(n,"Tab",{shiftKey:"any"})}(t))se(e,ih,t);else if(function(n){return Le(n,"z",Hn)}(t))t.preventDefault(),se(e,Au,void 0);else if(function(n){return un?Le(n,"z",{metaKey:!0,shiftKey:!0}):Le(n,"y",{ctrlKey:!0})||Le(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),se(e,Tu,void 0);else{const n=e._editorState._selection;n===null||K(n)?Bf(t)&&(t.preventDefault(),se(e,Tc,t)):function(o){return Le(o,"c",Hn)}(t)?(t.preventDefault(),se(e,Qa,t)):function(o){return Le(o,"x",Hn)}(t)?(t.preventDefault(),se(e,Nu,t)):Bf(t)&&(t.preventDefault(),se(e,Tc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&se(e,Vle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Jr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&zt(e,()=>{Af(n)||(Bc=!0)})}],["compositionstart",function(t,e){zt(e,()=>{const n=te();if(K(n)&&!e.isComposing()){const o=n.anchor,i=n.anchor.getNode();ft(o.key),(t.timeStamp<$i+30||o.type==="element"||!n.isCollapsed()||i.getFormat()!==n.format||Q(i)&&i.getStyle()!==n.style)&&se(e,Tr,ale)}})}],["compositionend",function(t,e){Qo?Ci=!0:Rr||!ji&&!Wi?zt(e,()=>{Is(e,t.data)}):(Kl=!0,Gl=t.data)}],["input",function(t,e){t.stopPropagation(),zt(e,()=>{if(tt(t.target)&&Af(t.target))return;const n=te(),o=t.data,i=mh(t);if(o!=null&&K(n)&&fh(n,i,o,t.timeStamp,!1)){Ci&&(Is(e,o),Ci=!1);const s=n.anchor.getNode(),a=hn(on(e));if(a===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,u=l?n.focus.offset:n.anchor.offset;sa&&!n.isCollapsed()&&Q(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Uh(a.anchorNode)||se(e,Tr,o);const d=o.length;Qo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),ji||Rr||Wi||!e.isComposing()||($i=0,ft(null))}else Ru(!1,e,o!==null?o:void 0),Ci&&(Is(e,o||void 0),Ci=!1);(function(){lt();const s=je();Fm(s)})()},{event:t}),wr=null}],["click",function(t,e){zt(e,()=>{const n=te(),o=hn(on(e)),i=Yr();if(o){if(K(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Qe(a)&&We().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=en(a,c=>q(c)&&!c.isInline());q(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(tt(s)||to(s))&&vt($u(i,o,e,t))}}se(e,Ym,t)})}],["cut",zn],["copy",zn],["dragstart",zn],["dragover",zn],["dragend",zn],["paste",zn],["focus",zn],["blur",zn],["drop",zn]];sa&&Nc.push(["beforeinput",(t,e)=>function(n,o){const i=n.inputType,s=mh(n);i==="deleteCompositionText"||Qo&&Hh(o)||i!=="insertCompositionText"&&zt(o,()=>{const a=te();if(i==="deleteContentBackward"){if(a===null){const m=Yr();if(!K(m))return;vt(m.clone())}if(K(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,ch==="MediaLast"&&l<$i+30&&o.isComposing()&&m){if(ft(null),$i=0,setTimeout(()=>{zt(o,()=>{ft(null)})},30),K(a)){const h=a.anchor.getNode();h.markDirty(),Q(h)||G(142),ph(a,h)}}else{ft(null),n.preventDefault();const h=a.anchor.getNode(),v=h.getTextContent(),C=h.canInsertTextAfter(),y=a.anchor.offset===0&&a.focus.offset===v.length;let g=H1&&m&&!y&&C;if(g&&a.isCollapsed()&&(g=!Ae(Ic(a.anchor,!0))),!g){se(o,jo,!0);const _=te();H1&&K(_)&&_.isCollapsed()&&(Fo=_,setTimeout(()=>Fo=null))}}return}}var l;if(!K(a))return;const c=n.data;wr!==null&&Ru(!1,o,wr),a.dirty&&wr===null||!a.isCollapsed()||Qe(a.anchor.getNode())||s===null||a.applyDOMRange(s),wr=null;const u=a.anchor,d=a.focus,p=u.getNode(),f=d.getNode();if(i!=="insertText"&&i!=="insertTranspose")switch(n.preventDefault(),i){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":se(o,Tr,n);break;case"insertFromComposition":ft(null),se(o,Tr,n);break;case"insertLineBreak":ft(null),se(o,Ar,!1);break;case"insertParagraph":ft(null),Bi&&!Rr?(Bi=!1,se(o,Ar,!1)):se(o,Gi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":se(o,xu,n);break;case"deleteByComposition":(function(m,h){return m!==h||q(m)||q(h)||!Wo(m)||!Wo(h)})(p,f)&&se(o,Ac,n);break;case"deleteByDrag":case"deleteByCut":se(o,Ac,n);break;case"deleteContent":se(o,jo,!1);break;case"deleteWordBackward":se(o,Yi,!0);break;case"deleteWordForward":se(o,Yi,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":se(o,Ji,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":se(o,Ji,!1);break;case"formatStrikeThrough":se(o,Yt,"strikethrough");break;case"formatBold":se(o,Yt,"bold");break;case"formatItalic":se(o,Yt,"italic");break;case"formatUnderline":se(o,Yt,"underline");break;case"historyUndo":se(o,Au,void 0);break;case"historyRedo":se(o,Tu,void 0)}else{if(c===`
22
- `)n.preventDefault(),se(o,Ar,!1);else if(c===ko)n.preventDefault(),se(o,Gi,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&fh(a,s,c,n.timeStamp,!0)?(n.preventDefault(),se(o,Tr,c)):wr=c;uh=n.timeStamp}})}(t,e)]);let $i=0,ch=null,uh=0,wr=null;const Dc=new WeakMap,pa=new WeakMap;let $c=!1,Bc=!1,Bi=!1,Ci=!1,Kl=!1,Gl="",Fo=null,dh=[0,"",0,"root",0];function fh(t,e,n,o,i){const s=t.anchor,a=t.focus,l=s.getNode(),c=je(),u=hn(on(c)),d=u!==null?u.anchorNode:null,p=s.key,f=c.getElementByKey(p),m=n.length;return p!==a.key||!Q(l)||(!i&&(!sa||uh<o+50)||l.isDirty()&&m<2||Rh(n))&&s.offset!==a.offset&&!l.isComposing()||qn(l)||l.isDirty()&&m>1||(i||!sa)&&f!==null&&!l.isComposing()&&d!==zr(f)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,v){if(v.isSegmented())return!0;if(!h.isCollapsed())return!1;const C=h.anchor.offset,y=v.getParentOrThrow(),g=Wo(v);return C===0?!v.canInsertTextBefore()||!y.canInsertTextBefore()&&!v.isComposing()||g||function(_){const b=_.getPreviousSibling();return(Q(b)||q(b)&&b.isInline())&&!b.canInsertTextAfter()}(v):C===v.getTextContentSize()&&(!v.canInsertTextAfter()||!y.canInsertTextAfter()&&!v.isComposing()||g)}(t,l)}function nf(t,e){return to(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function of(t,e,n){const{anchorNode:o,anchorOffset:i,focusNode:s,focusOffset:a}=t;$c&&($c=!1,nf(o,i)&&nf(s,a)&&!Fo)||zt(e,()=>{if(!n)return void vt(null);if(!ms(e,o,s))return;let l=te();if(Fo&&K(l)&&l.isCollapsed()){const c=l.anchor,u=Fo.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=Fo.clone(),vt(l))}if(Fo=null,K(l)){const c=l.anchor,u=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const d=on(e).event,p=d?d.timeStamp:performance.now(),[f,m,h,v,C]=dh,y=We(),g=e.isComposing()===!1&&y.getTextContent()==="";if(p<C+200&&c.offset===h&&c.key===v)Zs(l,f,m);else if(c.type==="text")Q(u)||G(141),ph(l,u);else if(c.type==="element"&&!g){q(u)||G(259);const _=c.getNode();_.isEmpty()?function(b,w){const k=w.getTextFormat(),x=w.getTextStyle();Zs(b,k,x)}(l,_):Zs(l,0,"")}}else{const d=c.key,p=l.focus.key,f=l.getNodes(),m=f.length,h=l.isBackward(),v=h?a:i,C=h?i:a,y=h?p:d,g=h?d:p;let _=2047,b=!1;for(let w=0;w<m;w++){const k=f[w],x=k.getTextContentSize();if(Q(k)&&x!==0&&!(w===0&&k.__key===y&&v===x||w===m-1&&k.__key===g&&C===0)&&(b=!0,_&=k.getFormat(),_===0))break}l.format=b?_:0}}se(e,Gm,void 0)})}function Zs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function ph(t,e){Zs(t,e.getFormat(),e.getStyle())}function mh(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function Is(t,e){const n=t._compositionKey;if(ft(null),n!==null&&e!=null){if(e===""){const o=rt(n),i=zr(t.getElementByKey(n));return void(i!==null&&i.nodeValue!==null&&Q(o)&&zu(o,i.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
- `){const o=te();if(K(o)){const i=o.focus;return o.anchor.set(i.key,i.offset,i.type),void se(t,fa,null)}}}Ru(!0,t,e)}function hh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Nr=new Map;function gh(t){const e=hce(t.target);if(e===null)return;const n=Lh(e.anchorNode);if(n===null)return;Bc&&(Bc=!1,zt(n,()=>{const c=Yr(),u=e.anchorNode;(tt(u)||to(u))&&vt($u(c,e,n,t))}));const o=Fu(n),i=o[o.length-1],s=i._key,a=Nr.get(s),l=a||i;l!==n&&of(e,l,!1),of(e,n,!0),n!==i?Nr.set(s,n):a&&Nr.delete(s)}function rf(t){t._lexicalHandled=!0}function sf(t){return t._lexicalHandled===!0}const af=()=>{};function Ile(t){const e=Dc.get(t);if(e===void 0)return void af();const n=pa.get(e);if(n===void 0)return void af();const o=n-1;o>=0||G(164),Dc.delete(t),pa.set(e,o),o===0&&e.removeEventListener("selectionchange",gh);const i=il(t);Pu(i)?(function(a){if(a._parentEditor!==null){const l=Fu(a),c=l[l.length-1]._key;Nr.get(c)===a&&Nr.delete(c)}else Nr.delete(a._key)}(i),t.__lexicalEditor=null):i&&G(198);const s=hh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Mc(t,e,n){lt();const o=t.__key,i=t.getParent();if(i===null)return;const s=function(l){const c=te();if(!K(c)||!q(l))return c;const{anchor:u,focus:d}=c,p=u.getNode(),f=d.getNode();return Pc(p,l)&&u.set(l.__key,0,"element"),Pc(f,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(K(s)&&e){const l=s.anchor,c=s.focus;l.key===o&&(va(l,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(va(c,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Rt(s)&&e&&t.isSelected()&&t.selectPrevious();if(K(s)&&e&&!a){const l=t.getIndexWithinParent();Zo(t),ga(s,i,l,-1)}else Zo(t);n||At(i)||i.canBeEmpty()||!i.isEmpty()||Mc(i,e),e&&s&&Qe(i)&&i.isEmpty()&&i.selectEnd()}const vh=Symbol.for("ephemeral");function ma(t){return t[vh]||!1}class pn{constructor(e){j(this,"__type");j(this,"__key");j(this,"__parent");j(this,"__prev");j(this,"__next");j(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),lce(this,e)}static getType(){const{ownNodeType:e}=cl(this);return e===void 0&&G(64,this.name),e}static clone(e){G(65,this.name)}$config(){return{}}config(e,n){const o=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:o,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){G(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=rt(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||te();if(n==null)return!1;const o=n.getNodes().some(i=>i.__key===this.__key);if(Q(this))return o;if(K(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const i=this.getParent();if(Ae(this)&&this.isInline()&&i){const s=n.isBackward()?n.focus:n.anchor;if(i.is(s.getNode())&&s.offset===i.getChildrenSize()&&this.is(i.getLastChild()))return!1}}return o}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),o=0;for(;n!==null;){if(this.is(n))return o;o++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:rt(e)}getParentOrThrow(){const e=this.getParent();return e===null&&G(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(At(n))return q(e)||e===this&&Ae(e)||G(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&G(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:rt(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let o=n.getFirstChild();for(;o!==null&&!o.is(this);)e.push(o),o=o.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:rt(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=q(this)?this:this.getParent(),o=q(e)?e:e.getParent(),i=n&&o?Gs(n,o):null;return i?i.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Gs(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Gh(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&G(279),!1)))}isParentOf(e){const n=Gs(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],i=new Set;let s=this;for(;s!==null;){const a=s.__key;if(i.has(a)||(i.add(a),o.push(s)),s===e)break;const l=q(s)?n?s.getFirstChild():s.getLastChild():null;if(l!==null){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(c!==null){s=c;continue}const u=s.getParentOrThrow();if(i.has(u.__key)||o.push(u),u===e)break;let d=null,p=u;do{if(p===null&&G(68),d=n?p.getNextSibling():p.getPreviousSibling(),p=p.getParent(),p===null)break;d!==null||i.has(p.__key)||o.push(p)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=je()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(ma(this))return this;const e=rt(this.__key);return e===null&&G(113),e}getWritable(){if(ma(this))return this;lt();const e=Ao(),n=je(),o=e._nodeMap,i=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=te();if(l!==null&&l.setCachedNodes(null),a.has(i))return _a(s),s;const c=Wh(s);return a.add(i),_a(c),o.set(i,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){G(70)}updateDOM(e,n,o){G(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){G(18,this.name)}updateFromJSON(e){return function(n,o){const i=n.getWritable(),s=o.$;let a=s;for(const l of qm(i).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(i.__state||a)&&Hm(n).updateFromJSON(a),i}(this,e)}static transform(){return null}remove(e){Mc(this,!0,e)}replace(e,n){lt();let o=te();o!==null&&(o=o.clone()),tc(this,e);const i=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;Zo(l);const d=i.getPreviousSibling(),p=i.getNextSibling(),f=i.__prev,m=i.__next,h=i.__parent;if(Mc(i,!1,!0),d===null?c.__first=a:d.getWritable().__next=a,l.__prev=f,p===null?c.__last=a:p.getWritable().__prev=a,l.__next=m,l.__parent=h,c.__size=u,n&&(q(this)&&q(l)||G(139),this.getChildren().forEach(v=>{l.append(v)})),K(o)){vt(o);const v=o.anchor,C=o.focus;v.key===s&&df(v,l),C.key===s&&df(C,l)}return po()===s&&ft(a),l}insertAfter(e,n=!0){lt(),tc(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.getParent(),a=te();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(Zo(i),K(a)){const h=s.__key,v=a.anchor,C=a.focus;l=v.type==="element"&&v.key===h&&v.offset===m+1,c=C.type==="element"&&C.key===h&&C.offset===m+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),p=i.__key,f=o.__next;if(u===null?d.__last=p:u.getWritable().__prev=p,d.__size++,o.__next=p,i.__next=f,i.__prev=o.__key,i.__parent=o.__parent,n&&K(a)){const m=this.getIndexWithinParent();ga(a,d,m+1);const h=d.__key;l&&a.anchor.set(h,m+2,"element"),c&&a.focus.set(h,m+2,"element")}return e}insertBefore(e,n=!0){lt(),tc(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.__key;Zo(i);const a=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),c=o.__prev,u=this.getIndexWithinParent();a===null?l.__first=s:a.getWritable().__next=s,l.__size++,o.__prev=s,i.__prev=c,i.__next=o.__key,i.__parent=o.__parent;const d=te();return n&&K(d)&&ga(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return Re()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){lt();const o=this.getPreviousSibling(),i=this.getParentOrThrow();if(o===null)return i.select(0,0);if(q(o))return o.select();if(!Q(o)){const s=o.getIndexWithinParent()+1;return i.select(s,s)}return o.select(e,n)}selectNext(e,n){lt();const o=this.getNextSibling(),i=this.getParentOrThrow();if(o===null)return i.select();if(q(o))return o.select(0,0);if(!Q(o)){const s=o.getIndexWithinParent();return i.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}j(pn,"importDOM");const ha="historic",Ple="history-push",Mi="history-merge",Fle="paste",yh="collaboration",Rle="skip-scroll-into-view",zle="skip-dom-selection",Ule="skip-selection-focus";class ls extends pn{static getType(){return"linebreak"}static clone(e){return new ls(e.__key)}constructor(e){super(e)}getTextContent(){return`
24
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(n){const o=n.parentElement;if(o!==null&&Ca(o)){const i=o.firstChild;if(i===n||i.nextSibling===n&&Ps(i)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Ps(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&Ca(o)){const i=o.firstChild;if(i===n||i.nextSibling===n&&Ps(i))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Ps(s))return!0}return!1}(e)?null:{conversion:Hle,priority:0}}}static importJSON(e){return mn().updateFromJSON(e)}}function Hle(t){return{node:mn()}}function mn(){return _n(new ls)}function go(t){return t instanceof ls}function Ps(t){return to(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Yl(t,e){return 16&e?"code":e&Vm?"mark":32&e?"sub":64&e?"sup":null}function Jl(t,e){return 1&e?"strong":2&e?"em":"span"}function _h(t,e,n,o,i){const s=o.classList;let a=Dr(i,"base");a!==void 0&&s.add(...a),a=Dr(i,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;a!==void 0&&(8&n&&4&n?(l=!0,c||s.add(...a)):c&&s.remove(...a));for(const u in xt){const d=xt[u];if(a=Dr(i,u),a!==void 0)if(n&d){if(l&&(u==="underline"||u==="strikethrough")){e&d&&s.remove(...a);continue}(!(e&d)||c&&u==="underline"||u==="strikethrough")&&s.add(...a)}else e&d&&s.remove(...a)}}function Ch(t,e,n){const o=e.firstChild,i=n.isComposing(),s=t+(i?Ja:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(i||Qo){const[l,c,u]=function(d,p){const f=d.length,m=p.length;let h=0,v=0;for(;h<f&&h<m&&d[h]===p[h];)h++;for(;v+h<f&&v+h<m&&d[f-v-1]===p[m-v-1];)v++;return[h,f-h-v,p.slice(h,m-v)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function lf(t,e,n,o,i,s){Ch(i,t,e);const a=s.theme.text;a!==void 0&&_h(0,0,o,t,a)}function Fs(t,e){const n=document.createElement(e);return n.appendChild(t),n}class xo extends pn{constructor(n="",o){super(o);j(this,"__text");j(this,"__format");j(this,"__style");j(this,"__mode");j(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new xo(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return dle[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===po()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=xt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return ya(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const i=this.__format,s=Yl(0,i),a=Jl(0,i),l=s===null?a:s,c=document.createElement(l);let u=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),s!==null&&(u=document.createElement(a),c.appendChild(u)),lf(u,this,0,i,this.__text,n);const d=this.__style;return d!==""&&(c.style.cssText=d),c}updateDOM(n,o,i){const s=this.__text,a=n.__format,l=this.__format,c=Yl(0,a),u=Yl(0,l),d=Jl(0,a),p=Jl(0,l);if((c===null?d:c)!==(u===null?p:u))return!0;if(c===u&&d!==p){const C=o.firstChild;C==null&&G(48);const y=document.createElement(p);return lf(y,this,0,l,s,i),o.replaceChild(y,C),!1}let f=o;u!==null&&c!==null&&(f=o.firstChild,f==null&&G(49)),Ch(s,f,this);const m=i.theme.text;m!==void 0&&a!==l&&_h(0,a,l,f,m);const h=n.__style,v=this.__style;return h!==v&&(o.style.cssText=v),!1}static importDOM(){return{"#text":()=>({conversion:Zle,priority:0}),b:()=>({conversion:jle,priority:0}),code:()=>({conversion:Un,priority:0}),em:()=>({conversion:Un,priority:0}),i:()=>({conversion:Un,priority:0}),mark:()=>({conversion:Un,priority:0}),s:()=>({conversion:Un,priority:0}),span:()=>({conversion:qle,priority:0}),strong:()=>({conversion:Un,priority:0}),sub:()=>({conversion:Un,priority:0}),sup:()=>({conversion:Un,priority:0}),u:()=>({conversion:Un,priority:0})}}static importJSON(n){return Ke().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:o}=super.exportDOM(n);return tt(o)||G(132),o.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?o.style.textTransform="lowercase":this.hasFormat("uppercase")?o.style.textTransform="uppercase":this.hasFormat("capitalize")&&(o.style.textTransform="capitalize"),this.hasFormat("bold")&&(o=Fs(o,"b")),this.hasFormat("italic")&&(o=Fs(o,"i")),this.hasFormat("strikethrough")&&(o=Fs(o,"s")),this.hasFormat("underline")&&(o=Fs(o,"u")),{element:o}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,o){}setFormat(n){const o=this.getWritable();return o.__format=typeof n=="string"?xt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?lle[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=ya(this.getFormat(),n,null);return this.setFormat(o)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const o=ule[n];if(this.__mode===o)return this;const i=this.getWritable();return i.__mode=o,i}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){lt();let i=n,s=o;const a=te(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const u=l.length;i===void 0&&(i=u),s===void 0&&(s=u)}else i=0,s=0;if(!K(a))return wh(c,i,c,s,"text","text");{const u=po();u!==a.anchor.key&&u!==a.focus.key||ft(c),a.setTextNodeRange(this,i,this,s)}return a}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,i,s){const a=this.getWritable(),l=a.__text,c=i.length;let u=n;u<0&&(u=c+u,u<0&&(u=0));const d=te();if(s&&K(d)){const f=n+c;d.setTextNodeRange(a,f,a,f)}const p=l.slice(0,u)+i+l.slice(u+o);return a.__text=p,a}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){lt();const o=this.getLatest(),i=o.getTextContent();if(i==="")return[];const s=o.__key,a=po(),l=i.length;n.sort((E,N)=>E-N),n.push(l);const c=[],u=n.length;for(let E=0,N=0;E<l&&N<=u;N++){const I=n[N];I>E&&(c.push(i.slice(E,I)),E=I)}const d=c.length;if(d===1)return[o];const p=c[0],f=o.getParent();let m;const h=o.getFormat(),v=o.getStyle(),C=o.__detail;let y=!1,g=null,_=null;const b=te();if(K(b)){const[E,N]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];E.type==="text"&&E.key===s&&(g=E),N.type==="text"&&N.key===s&&(_=N)}o.isSegmented()?(m=Ke(p),m.__format=h,m.__style=v,m.__detail=C,m.__state=G1(o,m),y=!0):m=o.setTextContent(p);const w=[m];for(let E=1;E<d;E++){const N=Ke(c[E]);N.__format=h,N.__style=v,N.__detail=C,N.__state=G1(o,N);const I=N.__key;a===s&&ft(I),w.push(N)}const k=g?g.offset:null,x=_?_.offset:null;let S=0;for(const E of w){if(!g&&!_)break;const N=S+E.getTextContentSize();if(g!==null&&k!==null&&k<=N&&k>=S&&(g.set(E.getKey(),k-S,"text"),k<N&&(g=null)),_!==null&&x!==null&&x<=N&&x>=S){_.set(E.getKey(),x-S,"text");break}S=N}if(f!==null){(function(I){const A=I.getPreviousSibling(),M=I.getNextSibling();A!==null&&_a(A),M!==null&&_a(M)})(this);const E=f.getWritable(),N=this.getIndexWithinParent();y?(E.splice(N,0,w),this.remove()):E.splice(N,1,w),K(b)&&ga(b,f,N,d-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||G(50);const i=this.__key,s=n.__key,a=this.__text,l=a.length;po()===s&&ft(i);const c=te();if(K(c)){const f=c.anchor,m=c.focus;f!==null&&f.key===s&&yf(f,o,i,n,l),m!==null&&m.key===s&&yf(m,o,i,n,l)}const u=n.__text,d=o?u+a:a+u;this.setTextContent(d);const p=this.getWritable();return n.remove(),p}isTextEntity(){return!1}}function qle(t){return{forChild:Du(t.style),node:null}}function jle(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:Du(e.style,n?void 0:"bold"),node:null}}const cf=new WeakMap;function Wle(t){if(!tt(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Zle(t){const e=t;t.parentElement===null&&G(129);let n=e.textContent||"";if(function(o){let i,s=o.parentNode;const a=[o];for(;s!==null&&(i=cf.get(s))===void 0&&!Wle(s);)a.push(s),s=s.parentNode;const l=i===void 0?s:i;for(let c=0;c<a.length;c++)cf.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),i=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
21
+ `,ale=Qo?" ":Ja,xt={bold:1,capitalize:1024,code:16,highlight:Vm,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},lle={directionless:1,unmergeable:2},q1={center:2,end:6,justify:4,left:1,right:3,start:5},cle={[nle]:"center",[sle]:"end",[rle]:"justify",[tle]:"left",[ole]:"right",[ile]:"start"},ule={normal:0,segmented:2,token:1},dle={[Xae]:"normal",[ele]:"segmented",[Qae]:"token"},j1="$config";function Im(t,e,n,o,i,s){let a=t.getFirstChild();for(;a!==null;){const l=a.__key;a.__parent===e&&(U(a)&&Im(a,l,n,o,i,s),n.has(l)||s.delete(l),i.push(l)),a=a.getNextSibling()}}let _c=!1,Su=0;function fle(t){Su=t.timeStamp}function jl(t,e,n){const o=t.nodeName==="BR",i=e.__lexicalLineBreak;return i&&(t===i||o&&t.previousSibling===i)||o&&sl(t,n)!==void 0}function ple(t,e,n){const o=hn(on(n));let i=null,s=null;o!==null&&o.anchorNode===t&&(i=o.anchorOffset,s=o.focusOffset);const a=t.nodeValue;a!==null&&zu(e,a,i,s,!1)}function mle(t,e,n){if(K(t)){const o=t.anchor.getNode();if(o.is(n)&&t.format!==o.getFormat())return!1}return to(e)&&n.isAttached()}function hle(t,e,n,o){for(let i=t;i&&!yce(i);i=hs(i)){const s=sl(i,e);if(s!==void 0){const a=rt(s,n);if(a)return Ae(a)||!tt(i)?void 0:[i,a]}else if(i===o)return[o,Fh(n)]}}function Pm(t,e,n){_c=!0;const o=performance.now()-Su>100;try{zt(t,()=>{const i=te()||function(f){return f.getEditorState().read(()=>{const m=te();return m!==null?m.clone():null})}(t),s=new Map,a=t.getRootElement(),l=t._editorState,c=t._blockCursorElement;let u=!1,d="";for(let f=0;f<e.length;f++){const m=e[f],h=m.type,v=m.target,C=hle(v,t,l,a);if(!C)continue;const[y,g]=C;if(h==="characterData")o&&Q(g)&&to(v)&&mle(i,v,g)&&ple(v,g,t);else if(h==="childList"){u=!0;const _=m.addedNodes;for(let k=0;k<_.length;k++){const A=_[k],S=Ih(A),E=A.parentNode;if(E!=null&&A!==c&&S===null&&!jl(A,E,t)){if(Qo){const D=(tt(A)?A.innerText:null)||A.nodeValue;D&&(d+=D)}E.removeChild(A)}}const b=m.removedNodes,w=b.length;if(w>0){let k=0;for(let A=0;A<w;A++){const S=b[A];(jl(S,v,t)||c===S)&&(v.appendChild(S),k++)}w!==k&&s.set(y,g)}}}if(s.size>0)for(const[f,m]of s)m.reconcileObservedMutation(f,t);const p=n.takeRecords();if(p.length>0){for(let f=0;f<p.length;f++){const m=p[f],h=m.addedNodes,v=m.target;for(let C=0;C<h.length;C++){const y=h[C],g=y.parentNode;g==null||y.nodeName!=="BR"||jl(y,v,t)||g.removeChild(y)}}n.takeRecords()}i!==null&&(u&&vt(i),Qo&&Hh(t)&&i.insertRawText(d))})}finally{_c=!1}}function Fm(t){const e=t._observer;e!==null&&Pm(t,e.takeRecords(),e)}function Rm(t){(function(e){Su===0&&on(e).addEventListener("textInput",fle,!0)})(t),t._observer=new MutationObserver((e,n)=>{Pm(t,e,n)})}let gle=class{constructor(e,n){j(this,"key");j(this,"parse");j(this,"unparse");j(this,"isEqual");j(this,"defaultValue");this.key=e,this.parse=n.parse.bind(n),this.unparse=(n.unparse||Cle).bind(n),this.isEqual=(n.isEqual||Object.is).bind(n),this.defaultValue=this.parse(void 0)}};function vle(t,e){return new gle(t,e)}function zm(t,e,n="latest"){const o=(n==="latest"?t.getLatest():t).__state;return o?o.getValue(e):e.defaultValue}function Wl(t,e,n){let o;if(lt(),typeof n=="function"){const s=t.getLatest(),a=zm(s,e);if(o=n(a),e.isEqual(a,o))return s}else o=n;const i=t.getWritable();return Hm(i).updateFromKnown(e,o),i}function yle(t){const e=new Map,n=new Set;for(let o=typeof t=="function"?t:t.replace;o.prototype&&o.prototype.getType!==void 0;o=Object.getPrototypeOf(o)){const{ownNodeConfig:i}=cl(o);if(i&&i.stateConfigs)for(const s of i.stateConfigs){let a;"stateConfig"in s?(a=s.stateConfig,s.flat&&n.add(a.key)):a=s,e.set(a.key,a)}}return{flatKeys:n,sharedConfigMap:e}}let _le=class Um{constructor(e,n,o=void 0,i=new Map,s=void 0){j(this,"node");j(this,"knownState");j(this,"unknownState");j(this,"sharedNodeState");j(this,"size");this.node=e,this.sharedNodeState=n,this.unknownState=o,this.knownState=i;const{sharedConfigMap:a}=this.sharedNodeState,l=s!==void 0?s:function(c,u,d){let p=d.size;if(u)for(const f in u){const m=c.get(f);m&&d.has(m)||p++}return p}(a,o,i);this.size=l}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let o=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const i=this.unknownState[e.key];i!==void 0&&(o=e.parse(i)),this.updateFromKnown(e,o)}return o}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[o,i]of this.knownState)o.isEqual(i,o.defaultValue)?delete e[o.key]:e[o.key]=o.unparse(i);for(const o of this.sharedNodeState.flatKeys)o in e&&(n[o]=e[o],delete e[o]);return W1(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:o}=this,i=new Map(this.knownState);return new Um(e,n,function(s,a,l){let c;if(l)for(const[u,d]of Object.entries(l)){const p=s.get(u);p?a.has(p)||a.set(p,p.parse(d)):(c=c||{},c[u]=d)}return c}(n.sharedConfigMap,i,o),i,this.size)}updateFromKnown(e,n){const o=e.key;this.sharedNodeState.sharedConfigMap.set(o,e);const{knownState:i,unknownState:s}=this;i.has(e)||s&&o in s||(s&&(delete s[o],this.unknownState=W1(s)),this.size++),i.set(e,n)}updateFromUnknown(e,n){const o=this.sharedNodeState.sharedConfigMap.get(e);o?this.updateFromKnown(o,o.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const o of n.keys())n.set(o,o.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[o,i]of Object.entries(e))this.updateFromUnknown(o,i)}};function Hm(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new _le(e,qm(e));return e.__state=n,n}function qm(t){return t.__state?t.__state.sharedNodeState:Mh(ll(),t.getType()).sharedNodeState}function W1(t){if(t)for(const e in t)return t}function Cle(t){return t}function Z1(t,e,n){for(const[o,i]of e.knownState){if(t.has(o.key))continue;t.add(o.key);const s=n?n.getValue(o):o.defaultValue;if(s!==i&&!o.isEqual(s,i))return!0}return!1}function K1(t,e,n){const{unknownState:o}=e,i=n?n.unknownState:void 0;if(o){for(const[s,a]of Object.entries(o))if(!t.has(s)&&(t.add(s),a!==(i?i[s]:void 0)))return!0}return!1}function G1(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function Y1(t,e){const n=t.__mode,o=t.__format,i=t.__style,s=e.__mode,a=e.__format,l=e.__style,c=t.__state,u=e.__state;return(n===null||n===s)&&(o===null||o===a)&&(i===null||i===l)&&(t.__state===null||c===u||function(d,p){if(d===p)return!0;if(d&&p&&d.size!==p.size)return!1;const f=new Set;return!(d&&Z1(f,d,p)||p&&Z1(f,p,d)||d&&K1(f,d,p)||p&&K1(f,p,d))}(c,u))}function J1(t,e){const n=t.mergeWithSibling(e),o=je()._normalizedNodes;return o.add(t.__key),o.add(e.__key),n}function X1(t){let e,n,o=t;if(o.__text!==""||!o.isSimpleText()||o.isUnmergeable()){for(;(e=o.getPreviousSibling())!==null&&Q(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(Y1(e,o)){o=J1(e,o);break}break}e.remove()}for(;(n=o.getNextSibling())!==null&&Q(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(Y1(o,n)){o=J1(o,n);break}break}n.remove()}}else o.remove()}function aa(t){return Q1(t.anchor),Q1(t.focus),t}function Q1(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let o,i;if(n===e.getChildrenSize()?(o=e.getChildAtIndex(n-1),i=!0):(o=e.getChildAtIndex(n),i=!1),Q(o)){t.set(o.__key,i?o.getTextContentSize():0,"text",!0);break}if(!U(o))break;t.set(o.__key,i?o.getChildrenSize():0,"element",!0)}}let er,wt,Zi,Xa,Cc,bc,tr,fn,kc,Ki,ot="",Sn=null,xn="",jn="",kr=!1,la=!1;function ca(t,e){const n=tr.get(t);if(e!==null){const o=xc(t);o.parentNode===e&&e.removeChild(o)}if(fn.has(t)||wt._keyToDOMMap.delete(t),U(n)){const o=da(n,tr);wc(o,0,o.length-1,null)}n!==void 0&&Uu(Ki,Zi,Xa,n,"destroyed")}function wc(t,e,n,o){let i=e;for(;i<=n;++i){const s=t[i];s!==void 0&&ca(s,o)}}function Mo(t,e){t.setProperty("text-align",e)}const ble="40px";function jm(t,e){const n=er.theme.indent;if(typeof n=="string"){const i=t.classList.contains(n);e>0&&!i?t.classList.add(n):e<1&&i&&t.classList.remove(n)}const o=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||ble;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${o})`)}function Wm(t,e){const n=t.style;e===0?Mo(n,""):e===1?Mo(n,"left"):e===2?Mo(n,"center"):e===3?Mo(n,"right"):e===4?Mo(n,"justify"):e===5?Mo(n,"start"):e===6&&Mo(n,"end")}function Ec(t,e){const n=function(o){const i=o.__dir;if(i!==null)return i;if(Qe(o))return null;const s=o.getParentOrThrow();return Qe(s)&&s.__dir===null?"auto":null}(e);n!==null?t.dir=n:t.removeAttribute("dir")}function ua(t,e){const n=fn.get(t);n===void 0&&G(60);const o=n.createDOM(er,wt);if(function(i,s,a){const l=a._keyToDOMMap;(function(c,u,d){const p=`__lexicalKey_${u._key}`;c[p]=d})(s,a,i),l.set(i,s)}(t,o,wt),Q(n)?o.setAttribute("data-lexical-text","true"):Ae(n)&&o.setAttribute("data-lexical-decorator","true"),U(n)){const i=n.__indent,s=n.__size;if(Ec(o,n),i!==0&&jm(o,i),s!==0){const l=s-1;Sc(da(n,fn),n,0,l,n.getDOMSlot(o))}const a=n.__format;a!==0&&Wm(o,a),n.isInline()||Zm(null,n,o),al(n)&&(ot+=ko,jn+=ko)}else{const i=n.getTextContent();if(Ae(n)){const s=n.decorate(wt,er);s!==null&&Km(t,s),o.contentEditable="false"}ot+=i,jn+=i}return e!==null&&e.insertChild(o),Uu(Ki,Zi,Xa,n,"created"),o}function Sc(t,e,n,o,i){const s=ot;ot="";let a=n;for(;a<=o;++a){ua(t[a],i);const l=fn.get(t[a]);l!==null&&Q(l)&&(Sn===null&&(Sn=l.getFormat()),xn===""&&(xn=l.getStyle()))}al(e)&&(ot+=ko),i.element.__lexicalTextContent=ot,ot=s+ot}function ef(t,e){if(t){const n=t.__last;if(n){const o=e.get(n);if(o)return go(o)?"line-break":Ae(o)&&o.isInline()?"decorator":null}return"empty"}return null}function Zm(t,e,n){const o=ef(t,tr),i=ef(e,fn);o!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function kle(t,e,n){var o;Sn=null,xn="",function(i,s,a){const l=ot,c=i.__size,u=s.__size;ot="";const d=a.element;if(c===1&&u===1){const p=i.__first,f=s.__first;if(p===f)xi(p,d);else{const h=xc(p),v=ua(f,null);try{d.replaceChild(v,h)}catch(C){if(typeof C=="object"&&C!=null){const y=`${C.toString()} Parent: ${d.tagName}, new child: {tag: ${v.tagName} key: ${f}}, old child: {tag: ${h.tagName}, key: ${p}}.`;throw new Error(y)}throw C}ca(p,null)}const m=fn.get(f);Q(m)&&(Sn===null&&(Sn=m.getFormat()),xn===""&&(xn=m.getStyle()))}else{const p=da(i,tr),f=da(s,fn);if(p.length!==c&&G(227),f.length!==u&&G(228),c===0)u!==0&&Sc(f,s,0,u-1,a);else if(u===0){if(c!==0){const m=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;wc(p,0,c-1,m?null:d),m&&(d.textContent="")}}else(function(m,h,v,C,y,g){const _=C-1,b=y-1;let w,k,A=g.getFirstChild(),S=0,E=0;for(;S<=_&&E<=b;){const T=h[S],M=v[E];if(T===M)A=Zl(xi(M,g.element)),S++,E++;else{w===void 0&&(w=new Set(h)),k===void 0&&(k=new Set(v));const $=k.has(T),B=w.has(M);if($)if(B){const q=or(wt,M);q===A?A=Zl(xi(M,g.element)):(g.withBefore(A).insertChild(q),xi(M,g.element)),S++,E++}else ua(M,g.withBefore(A)),E++;else A=Zl(xc(T)),ca(T,g.element),S++}const x=fn.get(M);x!==null&&Q(x)&&(Sn===null&&(Sn=x.getFormat()),xn===""&&(xn=x.getStyle()))}const D=S>_,V=E>b;if(D&&!V){const T=v[b+1],M=T===void 0?null:wt.getElementByKey(T);Sc(v,m,E,b,g.withBefore(M))}else V&&!D&&wc(h,S,_,g.element)})(s,p,f,c,u,a)}al(s)&&(ot+=ko),d.__lexicalTextContent=ot,ot=l+ot}(t,e,e.getDOMSlot(n)),o=e,Sn==null||Sn===o.__textFormat||la||o.setTextFormat(Sn),function(i){xn===""||xn===i.__textStyle||la||i.setTextStyle(xn)}(e)}function da(t,e){const n=[];let o=t.__first;for(;o!==null;){const i=e.get(o);i===void 0&&G(101),n.push(o),o=i.__next}return n}function xi(t,e){const n=tr.get(t);let o=fn.get(t);n!==void 0&&o!==void 0||G(61);const i=kr||bc.has(t)||Cc.has(t),s=or(wt,t);if(n===o&&!i){if(U(n)){const a=s.__lexicalTextContent;a!==void 0&&(ot+=a,jn+=a)}else{const a=n.getTextContent();jn+=a,ot+=a}return s}if(n!==o&&i&&Uu(Ki,Zi,Xa,o,"updated"),o.updateDOM(n,s,er)){const a=ua(t,null);return e===null&&G(62),e.replaceChild(a,s),ca(t,null),a}if(U(n)&&U(o)){const a=o.__indent;(kr||a!==n.__indent)&&jm(s,a);const l=o.__format;if((kr||l!==n.__format)&&Wm(s,l),i&&(kle(n,o,s),Qe(o)||o.isInline()||Zm(n,o,s)),al(o)&&(ot+=ko,jn+=ko),(kr||o.__dir!==n.__dir)&&(Ec(s,o),Qe(o)&&!kr))for(const c of o.getChildren())U(c)&&Ec(or(wt,c.getKey()),c)}else{const a=o.getTextContent();if(Ae(o)){const l=o.decorate(wt,er);l!==null&&Km(t,l)}ot+=a,jn+=a}if(!la&&Qe(o)&&o.__cachedText!==jn){const a=o.getWritable();a.__cachedText=jn,o=a}return s}function Km(t,e){let n=wt._pendingDecorators;const o=wt._decorators;if(n===null){if(o[t]===e)return;n=Ph(wt)}n[t]=e}function Zl(t){let e=t.nextSibling;return e!==null&&e===wt._blockCursorElement&&(e=e.nextSibling),e}function wle(t,e,n,o,i,s){ot="",jn="",kr=o===2,wt=n,er=n._config,Zi=n._nodes,Xa=wt._listeners.mutation,Cc=i,bc=s,tr=t._nodeMap,fn=e._nodeMap,la=e._readOnly,kc=new Map(n._keyToDOMMap);const a=new Map;return Ki=a,xi("root",null),wt=void 0,Zi=void 0,Cc=void 0,bc=void 0,tr=void 0,fn=void 0,er=void 0,kc=void 0,Ki=void 0,a}function xc(t){const e=kc.get(t);return e===void 0&&G(75,t),e}function me(t){return{type:t}}const Gm=me("SELECTION_CHANGE_COMMAND"),Ele=me("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),Ym=me("CLICK_COMMAND"),jo=me("DELETE_CHARACTER_COMMAND"),Ar=me("INSERT_LINE_BREAK_COMMAND"),Gi=me("INSERT_PARAGRAPH_COMMAND"),Tr=me("CONTROLLED_TEXT_INSERTION_COMMAND"),xu=me("PASTE_COMMAND"),Ac=me("REMOVE_TEXT_COMMAND"),Yi=me("DELETE_WORD_COMMAND"),Ji=me("DELETE_LINE_COMMAND"),Yt=me("FORMAT_TEXT_COMMAND"),Au=me("UNDO_COMMAND"),Tu=me("REDO_COMMAND"),Sle=me("KEYDOWN_COMMAND"),Jm=me("KEY_ARROW_RIGHT_COMMAND"),xle=me("MOVE_TO_END"),Xm=me("KEY_ARROW_LEFT_COMMAND"),Ale=me("MOVE_TO_START"),Qm=me("KEY_ARROW_UP_COMMAND"),eh=me("KEY_ARROW_DOWN_COMMAND"),fa=me("KEY_ENTER_COMMAND"),th=me("KEY_SPACE_COMMAND"),nh=me("KEY_BACKSPACE_COMMAND"),oh=me("KEY_ESCAPE_COMMAND"),rh=me("KEY_DELETE_COMMAND"),ih=me("KEY_TAB_COMMAND"),Tle=me("INSERT_TAB_COMMAND"),Nle=me("INDENT_CONTENT_COMMAND"),tf=me("OUTDENT_CONTENT_COMMAND"),sh=me("DROP_COMMAND"),Dle=me("FORMAT_ELEMENT_COMMAND"),ah=me("DRAGSTART_COMMAND"),lh=me("DRAGOVER_COMMAND"),$le=me("DRAGEND_COMMAND"),Qa=me("COPY_COMMAND"),Nu=me("CUT_COMMAND"),Tc=me("SELECT_ALL_COMMAND"),Ble=me("CLEAR_EDITOR_COMMAND"),Mle=me("CLEAR_HISTORY_COMMAND"),Os=me("CAN_REDO_COMMAND"),Vs=me("CAN_UNDO_COMMAND"),Lle=me("FOCUS_COMMAND"),Ole=me("BLUR_COMMAND"),Vle=me("KEY_MODIFIER_COMMAND"),zn=Object.freeze({}),Nc=[["keydown",function(t,e){if($i=t.timeStamp,ch=t.key,!e.isComposing()&&!se(e,Sle,t)&&t.key!=null){if(Kl&&$f(t))return zt(e,()=>{Is(e,Gl)}),Kl=!1,void(Gl="");if(function(n){return Le(n,"ArrowRight",{shiftKey:"any"})}(t))se(e,Jm,t);else if(function(n){return Le(n,"ArrowRight",Hn)}(t))se(e,xle,t);else if(function(n){return Le(n,"ArrowLeft",{shiftKey:"any"})}(t))se(e,Xm,t);else if(function(n){return Le(n,"ArrowLeft",Hn)}(t))se(e,Ale,t);else if(function(n){return Le(n,"ArrowUp",{altKey:"any",shiftKey:"any"})}(t))se(e,Qm,t);else if(function(n){return Le(n,"ArrowDown",{altKey:"any",shiftKey:"any"})}(t))se(e,eh,t);else if(function(n){return Le(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})}(t))Bi=!0,se(e,fa,t);else if(function(n){return n.key===" "}(t))se(e,th,t);else if(function(n){return un&&Le(n,"o",{ctrlKey:!0})}(t))t.preventDefault(),Bi=!0,se(e,Ar,!0);else if(function(n){return Le(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})}(t))Bi=!1,se(e,fa,t);else if(function(n){return Le(n,"Backspace",{shiftKey:"any"})||un&&Le(n,"h",{ctrlKey:!0})}(t))$f(t)?se(e,nh,t):(t.preventDefault(),se(e,jo,!0));else if(function(n){return n.key==="Escape"}(t))se(e,oh,t);else if(function(n){return Le(n,"Delete",{})||un&&Le(n,"d",{ctrlKey:!0})}(t))(function(n){return n.key==="Delete"})(t)?se(e,rh,t):(t.preventDefault(),se(e,jo,!1));else if(function(n){return Le(n,"Backspace",Df)}(t))t.preventDefault(),se(e,Yi,!0);else if(function(n){return Le(n,"Delete",Df)}(t))t.preventDefault(),se(e,Yi,!1);else if(function(n){return un&&Le(n,"Backspace",{metaKey:!0})}(t))t.preventDefault(),se(e,Ji,!0);else if(function(n){return un&&(Le(n,"Delete",{metaKey:!0})||Le(n,"k",{ctrlKey:!0}))}(t))t.preventDefault(),se(e,Ji,!1);else if(function(n){return Le(n,"b",Hn)}(t))t.preventDefault(),se(e,Yt,"bold");else if(function(n){return Le(n,"u",Hn)}(t))t.preventDefault(),se(e,Yt,"underline");else if(function(n){return Le(n,"i",Hn)}(t))t.preventDefault(),se(e,Yt,"italic");else if(function(n){return Le(n,"Tab",{shiftKey:"any"})}(t))se(e,ih,t);else if(function(n){return Le(n,"z",Hn)}(t))t.preventDefault(),se(e,Au,void 0);else if(function(n){return un?Le(n,"z",{metaKey:!0,shiftKey:!0}):Le(n,"y",{ctrlKey:!0})||Le(n,"z",{ctrlKey:!0,shiftKey:!0})}(t))t.preventDefault(),se(e,Tu,void 0);else{const n=e._editorState._selection;n===null||K(n)?Bf(t)&&(t.preventDefault(),se(e,Tc,t)):function(o){return Le(o,"c",Hn)}(t)?(t.preventDefault(),se(e,Qa,t)):function(o){return Le(o,"x",Hn)}(t)?(t.preventDefault(),se(e,Nu,t)):Bf(t)&&(t.preventDefault(),se(e,Tc,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&se(e,Vle,t)}}],["pointerdown",function(t,e){const n=t.target,o=t.pointerType;Jr(n)&&o!=="touch"&&o!=="pen"&&t.button===0&&zt(e,()=>{Af(n)||(Bc=!0)})}],["compositionstart",function(t,e){zt(e,()=>{const n=te();if(K(n)&&!e.isComposing()){const o=n.anchor,i=n.anchor.getNode();ft(o.key),(t.timeStamp<$i+30||o.type==="element"||!n.isCollapsed()||i.getFormat()!==n.format||Q(i)&&i.getStyle()!==n.style)&&se(e,Tr,ale)}})}],["compositionend",function(t,e){Qo?Ci=!0:Rr||!ji&&!Wi?zt(e,()=>{Is(e,t.data)}):(Kl=!0,Gl=t.data)}],["input",function(t,e){t.stopPropagation(),zt(e,()=>{if(tt(t.target)&&Af(t.target))return;const n=te(),o=t.data,i=mh(t);if(o!=null&&K(n)&&fh(n,i,o,t.timeStamp,!1)){Ci&&(Is(e,o),Ci=!1);const s=n.anchor.getNode(),a=hn(on(e));if(a===null)return;const l=n.isBackward(),c=l?n.anchor.offset:n.focus.offset,u=l?n.focus.offset:n.anchor.offset;sa&&!n.isCollapsed()&&Q(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,c)+o+s.getTextContent().slice(c+u)===Uh(a.anchorNode)||se(e,Tr,o);const d=o.length;Qo&&d>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=d),ji||Rr||Wi||!e.isComposing()||($i=0,ft(null))}else Ru(!1,e,o!==null?o:void 0),Ci&&(Is(e,o||void 0),Ci=!1);(function(){lt();const s=je();Fm(s)})()},{event:t}),wr=null}],["click",function(t,e){zt(e,()=>{const n=te(),o=hn(on(e)),i=Yr();if(o){if(K(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!Qe(a)&&We().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i))o.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const l=en(a,c=>U(c)&&!c.isInline());U(l)&&l.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=o.anchorNode;(tt(s)||to(s))&&vt($u(i,o,e,t))}}se(e,Ym,t)})}],["cut",zn],["copy",zn],["dragstart",zn],["dragover",zn],["dragend",zn],["paste",zn],["focus",zn],["blur",zn],["drop",zn]];sa&&Nc.push(["beforeinput",(t,e)=>function(n,o){const i=n.inputType,s=mh(n);i==="deleteCompositionText"||Qo&&Hh(o)||i!=="insertCompositionText"&&zt(o,()=>{const a=te();if(i==="deleteContentBackward"){if(a===null){const m=Yr();if(!K(m))return;vt(m.clone())}if(K(a)){const m=a.anchor.key===a.focus.key;if(l=n.timeStamp,ch==="MediaLast"&&l<$i+30&&o.isComposing()&&m){if(ft(null),$i=0,setTimeout(()=>{zt(o,()=>{ft(null)})},30),K(a)){const h=a.anchor.getNode();h.markDirty(),Q(h)||G(142),ph(a,h)}}else{ft(null),n.preventDefault();const h=a.anchor.getNode(),v=h.getTextContent(),C=h.canInsertTextAfter(),y=a.anchor.offset===0&&a.focus.offset===v.length;let g=H1&&m&&!y&&C;if(g&&a.isCollapsed()&&(g=!Ae(Ic(a.anchor,!0))),!g){se(o,jo,!0);const _=te();H1&&K(_)&&_.isCollapsed()&&(Fo=_,setTimeout(()=>Fo=null))}}return}}var l;if(!K(a))return;const c=n.data;wr!==null&&Ru(!1,o,wr),a.dirty&&wr===null||!a.isCollapsed()||Qe(a.anchor.getNode())||s===null||a.applyDOMRange(s),wr=null;const u=a.anchor,d=a.focus,p=u.getNode(),f=d.getNode();if(i!=="insertText"&&i!=="insertTranspose")switch(n.preventDefault(),i){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":se(o,Tr,n);break;case"insertFromComposition":ft(null),se(o,Tr,n);break;case"insertLineBreak":ft(null),se(o,Ar,!1);break;case"insertParagraph":ft(null),Bi&&!Rr?(Bi=!1,se(o,Ar,!1)):se(o,Gi,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":se(o,xu,n);break;case"deleteByComposition":(function(m,h){return m!==h||U(m)||U(h)||!Wo(m)||!Wo(h)})(p,f)&&se(o,Ac,n);break;case"deleteByDrag":case"deleteByCut":se(o,Ac,n);break;case"deleteContent":se(o,jo,!1);break;case"deleteWordBackward":se(o,Yi,!0);break;case"deleteWordForward":se(o,Yi,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":se(o,Ji,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":se(o,Ji,!1);break;case"formatStrikeThrough":se(o,Yt,"strikethrough");break;case"formatBold":se(o,Yt,"bold");break;case"formatItalic":se(o,Yt,"italic");break;case"formatUnderline":se(o,Yt,"underline");break;case"historyUndo":se(o,Au,void 0);break;case"historyRedo":se(o,Tu,void 0)}else{if(c===`
22
+ `)n.preventDefault(),se(o,Ar,!1);else if(c===ko)n.preventDefault(),se(o,Gi,void 0);else if(c==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else c!=null&&fh(a,s,c,n.timeStamp,!0)?(n.preventDefault(),se(o,Tr,c)):wr=c;uh=n.timeStamp}})}(t,e)]);let $i=0,ch=null,uh=0,wr=null;const Dc=new WeakMap,pa=new WeakMap;let $c=!1,Bc=!1,Bi=!1,Ci=!1,Kl=!1,Gl="",Fo=null,dh=[0,"",0,"root",0];function fh(t,e,n,o,i){const s=t.anchor,a=t.focus,l=s.getNode(),c=je(),u=hn(on(c)),d=u!==null?u.anchorNode:null,p=s.key,f=c.getElementByKey(p),m=n.length;return p!==a.key||!Q(l)||(!i&&(!sa||uh<o+50)||l.isDirty()&&m<2||Rh(n))&&s.offset!==a.offset&&!l.isComposing()||qn(l)||l.isDirty()&&m>1||(i||!sa)&&f!==null&&!l.isComposing()&&d!==zr(f)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||l.getFormat()!==t.format||l.getStyle()!==t.style||function(h,v){if(v.isSegmented())return!0;if(!h.isCollapsed())return!1;const C=h.anchor.offset,y=v.getParentOrThrow(),g=Wo(v);return C===0?!v.canInsertTextBefore()||!y.canInsertTextBefore()&&!v.isComposing()||g||function(_){const b=_.getPreviousSibling();return(Q(b)||U(b)&&b.isInline())&&!b.canInsertTextAfter()}(v):C===v.getTextContentSize()&&(!v.canInsertTextAfter()||!y.canInsertTextAfter()&&!v.isComposing()||g)}(t,l)}function nf(t,e){return to(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function of(t,e,n){const{anchorNode:o,anchorOffset:i,focusNode:s,focusOffset:a}=t;$c&&($c=!1,nf(o,i)&&nf(s,a)&&!Fo)||zt(e,()=>{if(!n)return void vt(null);if(!ms(e,o,s))return;let l=te();if(Fo&&K(l)&&l.isCollapsed()){const c=l.anchor,u=Fo.anchor;(c.key===u.key&&c.offset===u.offset+1||c.offset===1&&u.getNode().is(c.getNode().getPreviousSibling()))&&(l=Fo.clone(),vt(l))}if(Fo=null,K(l)){const c=l.anchor,u=c.getNode();if(l.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(l.dirty=!0);const d=on(e).event,p=d?d.timeStamp:performance.now(),[f,m,h,v,C]=dh,y=We(),g=e.isComposing()===!1&&y.getTextContent()==="";if(p<C+200&&c.offset===h&&c.key===v)Zs(l,f,m);else if(c.type==="text")Q(u)||G(141),ph(l,u);else if(c.type==="element"&&!g){U(u)||G(259);const _=c.getNode();_.isEmpty()?function(b,w){const k=w.getTextFormat(),A=w.getTextStyle();Zs(b,k,A)}(l,_):Zs(l,0,"")}}else{const d=c.key,p=l.focus.key,f=l.getNodes(),m=f.length,h=l.isBackward(),v=h?a:i,C=h?i:a,y=h?p:d,g=h?d:p;let _=2047,b=!1;for(let w=0;w<m;w++){const k=f[w],A=k.getTextContentSize();if(Q(k)&&A!==0&&!(w===0&&k.__key===y&&v===A||w===m-1&&k.__key===g&&C===0)&&(b=!0,_&=k.getFormat(),_===0))break}l.format=b?_:0}}se(e,Gm,void 0)})}function Zs(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function ph(t,e){Zs(t,e.getFormat(),e.getStyle())}function mh(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function Is(t,e){const n=t._compositionKey;if(ft(null),n!==null&&e!=null){if(e===""){const o=rt(n),i=zr(t.getElementByKey(n));return void(i!==null&&i.nodeValue!==null&&Q(o)&&zu(o,i.nodeValue,null,null,!0))}if(e[e.length-1]===`
23
+ `){const o=te();if(K(o)){const i=o.focus;return o.anchor.set(i.key,i.offset,i.type),void se(t,fa,null)}}}Ru(!0,t,e)}function hh(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Nr=new Map;function gh(t){const e=hce(t.target);if(e===null)return;const n=Lh(e.anchorNode);if(n===null)return;Bc&&(Bc=!1,zt(n,()=>{const c=Yr(),u=e.anchorNode;(tt(u)||to(u))&&vt($u(c,e,n,t))}));const o=Fu(n),i=o[o.length-1],s=i._key,a=Nr.get(s),l=a||i;l!==n&&of(e,l,!1),of(e,n,!0),n!==i?Nr.set(s,n):a&&Nr.delete(s)}function rf(t){t._lexicalHandled=!0}function sf(t){return t._lexicalHandled===!0}const af=()=>{};function Ile(t){const e=Dc.get(t);if(e===void 0)return void af();const n=pa.get(e);if(n===void 0)return void af();const o=n-1;o>=0||G(164),Dc.delete(t),pa.set(e,o),o===0&&e.removeEventListener("selectionchange",gh);const i=il(t);Pu(i)?(function(a){if(a._parentEditor!==null){const l=Fu(a),c=l[l.length-1]._key;Nr.get(c)===a&&Nr.delete(c)}else Nr.delete(a._key)}(i),t.__lexicalEditor=null):i&&G(198);const s=hh(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function Mc(t,e,n){lt();const o=t.__key,i=t.getParent();if(i===null)return;const s=function(l){const c=te();if(!K(c)||!U(l))return c;const{anchor:u,focus:d}=c,p=u.getNode(),f=d.getNode();return Pc(p,l)&&u.set(l.__key,0,"element"),Pc(f,l)&&d.set(l.__key,0,"element"),c}(t);let a=!1;if(K(s)&&e){const l=s.anchor,c=s.focus;l.key===o&&(va(l,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0),c.key===o&&(va(c,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else Rt(s)&&e&&t.isSelected()&&t.selectPrevious();if(K(s)&&e&&!a){const l=t.getIndexWithinParent();Zo(t),ga(s,i,l,-1)}else Zo(t);n||At(i)||i.canBeEmpty()||!i.isEmpty()||Mc(i,e),e&&s&&Qe(i)&&i.isEmpty()&&i.selectEnd()}const vh=Symbol.for("ephemeral");function ma(t){return t[vh]||!1}class pn{constructor(e){j(this,"__type");j(this,"__key");j(this,"__parent");j(this,"__prev");j(this,"__next");j(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),lce(this,e)}static getType(){const{ownNodeType:e}=cl(this);return e===void 0&&G(64,this.name),e}static clone(e){G(65,this.name)}$config(){return{}}config(e,n){const o=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:o,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}getType(){return this.__type}isInline(){G(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=rt(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||te();if(n==null)return!1;const o=n.getNodes().some(i=>i.__key===this.__key);if(Q(this))return o;if(K(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const i=this.getParent();if(Ae(this)&&this.isInline()&&i){const s=n.isBackward()?n.focus:n.anchor;if(i.is(s.getNode())&&s.offset===i.getChildrenSize()&&this.is(i.getLastChild()))return!1}}return o}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),o=0;for(;n!==null;){if(this.is(n))return o;o++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:rt(e)}getParentOrThrow(){const e=this.getParent();return e===null&&G(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(At(n))return U(e)||e===this&&Ae(e)||G(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&G(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:rt(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let o=n.getFirstChild();for(;o!==null&&!o.is(this);)e.push(o),o=o.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:rt(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=U(this)?this:this.getParent(),o=U(e)?e:e.getParent(),i=n&&o?Gs(n,o):null;return i?i.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Gs(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?Gh(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&G(279),!1)))}isParentOf(e){const n=Gs(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),o=[],i=new Set;let s=this;for(;s!==null;){const a=s.__key;if(i.has(a)||(i.add(a),o.push(s)),s===e)break;const l=U(s)?n?s.getFirstChild():s.getLastChild():null;if(l!==null){s=l;continue}const c=n?s.getNextSibling():s.getPreviousSibling();if(c!==null){s=c;continue}const u=s.getParentOrThrow();if(i.has(u.__key)||o.push(u),u===e)break;let d=null,p=u;do{if(p===null&&G(68),d=n?p.getNextSibling():p.getPreviousSibling(),p=p.getParent(),p===null)break;d!==null||i.has(p.__key)||o.push(p)}while(d===null);s=d}return n||o.reverse(),o}isDirty(){const e=je()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(ma(this))return this;const e=rt(this.__key);return e===null&&G(113),e}getWritable(){if(ma(this))return this;lt();const e=Ao(),n=je(),o=e._nodeMap,i=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,l=te();if(l!==null&&l.setCachedNodes(null),a.has(i))return _a(s),s;const c=Wh(s);return a.add(i),_a(c),o.set(i,c),c}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){G(70)}updateDOM(e,n,o){G(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){G(18,this.name)}updateFromJSON(e){return function(n,o){const i=n.getWritable(),s=o.$;let a=s;for(const l of qm(i).flatKeys)l in o&&(a!==void 0&&a!==s||(a={...s}),a[l]=o[l]);return(i.__state||a)&&Hm(n).updateFromJSON(a),i}(this,e)}static transform(){return null}remove(e){Mc(this,!0,e)}replace(e,n){lt();let o=te();o!==null&&(o=o.clone()),tc(this,e);const i=this.getLatest(),s=this.__key,a=e.__key,l=e.getWritable(),c=this.getParentOrThrow().getWritable(),u=c.__size;Zo(l);const d=i.getPreviousSibling(),p=i.getNextSibling(),f=i.__prev,m=i.__next,h=i.__parent;if(Mc(i,!1,!0),d===null?c.__first=a:d.getWritable().__next=a,l.__prev=f,p===null?c.__last=a:p.getWritable().__prev=a,l.__next=m,l.__parent=h,c.__size=u,n&&(U(this)&&U(l)||G(139),this.getChildren().forEach(v=>{l.append(v)})),K(o)){vt(o);const v=o.anchor,C=o.focus;v.key===s&&df(v,l),C.key===s&&df(C,l)}return po()===s&&ft(a),l}insertAfter(e,n=!0){lt(),tc(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.getParent(),a=te();let l=!1,c=!1;if(s!==null){const m=e.getIndexWithinParent();if(Zo(i),K(a)){const h=s.__key,v=a.anchor,C=a.focus;l=v.type==="element"&&v.key===h&&v.offset===m+1,c=C.type==="element"&&C.key===h&&C.offset===m+1}}const u=this.getNextSibling(),d=this.getParentOrThrow().getWritable(),p=i.__key,f=o.__next;if(u===null?d.__last=p:u.getWritable().__prev=p,d.__size++,o.__next=p,i.__next=f,i.__prev=o.__key,i.__parent=o.__parent,n&&K(a)){const m=this.getIndexWithinParent();ga(a,d,m+1);const h=d.__key;l&&a.anchor.set(h,m+2,"element"),c&&a.focus.set(h,m+2,"element")}return e}insertBefore(e,n=!0){lt(),tc(this,e);const o=this.getWritable(),i=e.getWritable(),s=i.__key;Zo(i);const a=this.getPreviousSibling(),l=this.getParentOrThrow().getWritable(),c=o.__prev,u=this.getIndexWithinParent();a===null?l.__first=s:a.getWritable().__next=s,l.__size++,o.__prev=s,i.__prev=c,i.__next=o.__key,i.__parent=o.__parent;const d=te();return n&&K(d)&&ga(d,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return Re()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){lt();const o=this.getPreviousSibling(),i=this.getParentOrThrow();if(o===null)return i.select(0,0);if(U(o))return o.select();if(!Q(o)){const s=o.getIndexWithinParent()+1;return i.select(s,s)}return o.select(e,n)}selectNext(e,n){lt();const o=this.getNextSibling(),i=this.getParentOrThrow();if(o===null)return i.select();if(U(o))return o.select(0,0);if(!Q(o)){const s=o.getIndexWithinParent();return i.select(s,s)}return o.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}j(pn,"importDOM");const ha="historic",Ple="history-push",Mi="history-merge",Fle="paste",yh="collaboration",Rle="skip-scroll-into-view",zle="skip-dom-selection",Ule="skip-selection-focus";class ls extends pn{static getType(){return"linebreak"}static clone(e){return new ls(e.__key)}constructor(e){super(e)}getTextContent(){return`
24
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>function(n){const o=n.parentElement;if(o!==null&&Ca(o)){const i=o.firstChild;if(i===n||i.nextSibling===n&&Ps(i)){const s=o.lastChild;if(s===n||s.previousSibling===n&&Ps(s))return!0}}return!1}(e)||function(n){const o=n.parentElement;if(o!==null&&Ca(o)){const i=o.firstChild;if(i===n||i.nextSibling===n&&Ps(i))return!1;const s=o.lastChild;if(s===n||s.previousSibling===n&&Ps(s))return!0}return!1}(e)?null:{conversion:Hle,priority:0}}}static importJSON(e){return mn().updateFromJSON(e)}}function Hle(t){return{node:mn()}}function mn(){return _n(new ls)}function go(t){return t instanceof ls}function Ps(t){return to(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function Yl(t,e){return 16&e?"code":e&Vm?"mark":32&e?"sub":64&e?"sup":null}function Jl(t,e){return 1&e?"strong":2&e?"em":"span"}function _h(t,e,n,o,i){const s=o.classList;let a=Dr(i,"base");a!==void 0&&s.add(...a),a=Dr(i,"underlineStrikethrough");let l=!1;const c=8&e&&4&e;a!==void 0&&(8&n&&4&n?(l=!0,c||s.add(...a)):c&&s.remove(...a));for(const u in xt){const d=xt[u];if(a=Dr(i,u),a!==void 0)if(n&d){if(l&&(u==="underline"||u==="strikethrough")){e&d&&s.remove(...a);continue}(!(e&d)||c&&u==="underline"||u==="strikethrough")&&s.add(...a)}else e&d&&s.remove(...a)}}function Ch(t,e,n){const o=e.firstChild,i=n.isComposing(),s=t+(i?Ja:"");if(o==null)e.textContent=s;else{const a=o.nodeValue;if(a!==s)if(i||Qo){const[l,c,u]=function(d,p){const f=d.length,m=p.length;let h=0,v=0;for(;h<f&&h<m&&d[h]===p[h];)h++;for(;v+h<f&&v+h<m&&d[f-v-1]===p[m-v-1];)v++;return[h,f-h-v,p.slice(h,m-v)]}(a,s);c!==0&&o.deleteData(l,c),o.insertData(l,u)}else o.nodeValue=s}}function lf(t,e,n,o,i,s){Ch(i,t,e);const a=s.theme.text;a!==void 0&&_h(0,0,o,t,a)}function Fs(t,e){const n=document.createElement(e);return n.appendChild(t),n}class xo extends pn{constructor(n="",o){super(o);j(this,"__text");j(this,"__format");j(this,"__style");j(this,"__mode");j(this,"__detail");this.__text=n,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}static getType(){return"text"}static clone(n){return new xo(n.__text,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__text=n.__text,this.__format=n.__format,this.__style=n.__style,this.__mode=n.__mode,this.__detail=n.__detail}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const n=this.getLatest();return dle[n.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===po()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(n){const o=xt[n];return(this.getFormat()&o)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(n,o){return ya(this.getLatest().__format,n,o)}canHaveFormat(){return!0}isInline(){return!0}createDOM(n,o){const i=this.__format,s=Yl(0,i),a=Jl(0,i),l=s===null?a:s,c=document.createElement(l);let u=c;this.hasFormat("code")&&c.setAttribute("spellcheck","false"),s!==null&&(u=document.createElement(a),c.appendChild(u)),lf(u,this,0,i,this.__text,n);const d=this.__style;return d!==""&&(c.style.cssText=d),c}updateDOM(n,o,i){const s=this.__text,a=n.__format,l=this.__format,c=Yl(0,a),u=Yl(0,l),d=Jl(0,a),p=Jl(0,l);if((c===null?d:c)!==(u===null?p:u))return!0;if(c===u&&d!==p){const C=o.firstChild;C==null&&G(48);const y=document.createElement(p);return lf(y,this,0,l,s,i),o.replaceChild(y,C),!1}let f=o;u!==null&&c!==null&&(f=o.firstChild,f==null&&G(49)),Ch(s,f,this);const m=i.theme.text;m!==void 0&&a!==l&&_h(0,a,l,f,m);const h=n.__style,v=this.__style;return h!==v&&(o.style.cssText=v),!1}static importDOM(){return{"#text":()=>({conversion:Zle,priority:0}),b:()=>({conversion:jle,priority:0}),code:()=>({conversion:Un,priority:0}),em:()=>({conversion:Un,priority:0}),i:()=>({conversion:Un,priority:0}),mark:()=>({conversion:Un,priority:0}),s:()=>({conversion:Un,priority:0}),span:()=>({conversion:qle,priority:0}),strong:()=>({conversion:Un,priority:0}),sub:()=>({conversion:Un,priority:0}),sup:()=>({conversion:Un,priority:0}),u:()=>({conversion:Un,priority:0})}}static importJSON(n){return Ke().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTextContent(n.text).setFormat(n.format).setDetail(n.detail).setMode(n.mode).setStyle(n.style)}exportDOM(n){let{element:o}=super.exportDOM(n);return tt(o)||G(132),o.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?o.style.textTransform="lowercase":this.hasFormat("uppercase")?o.style.textTransform="uppercase":this.hasFormat("capitalize")&&(o.style.textTransform="capitalize"),this.hasFormat("bold")&&(o=Fs(o,"b")),this.hasFormat("italic")&&(o=Fs(o,"i")),this.hasFormat("strikethrough")&&(o=Fs(o,"s")),this.hasFormat("underline")&&(o=Fs(o,"u")),{element:o}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(n,o){}setFormat(n){const o=this.getWritable();return o.__format=typeof n=="string"?xt[n]:n,o}setDetail(n){const o=this.getWritable();return o.__detail=typeof n=="string"?lle[n]:n,o}setStyle(n){const o=this.getWritable();return o.__style=n,o}toggleFormat(n){const o=ya(this.getFormat(),n,null);return this.setFormat(o)}toggleDirectionless(){const n=this.getWritable();return n.__detail^=1,n}toggleUnmergeable(){const n=this.getWritable();return n.__detail^=2,n}setMode(n){const o=ule[n];if(this.__mode===o)return this;const i=this.getWritable();return i.__mode=o,i}setTextContent(n){if(this.__text===n)return this;const o=this.getWritable();return o.__text=n,o}select(n,o){lt();let i=n,s=o;const a=te(),l=this.getTextContent(),c=this.__key;if(typeof l=="string"){const u=l.length;i===void 0&&(i=u),s===void 0&&(s=u)}else i=0,s=0;if(!K(a))return wh(c,i,c,s,"text","text");{const u=po();u!==a.anchor.key&&u!==a.focus.key||ft(c),a.setTextNodeRange(this,i,this,s)}return a}selectStart(){return this.select(0,0)}selectEnd(){const n=this.getTextContentSize();return this.select(n,n)}spliceText(n,o,i,s){const a=this.getWritable(),l=a.__text,c=i.length;let u=n;u<0&&(u=c+u,u<0&&(u=0));const d=te();if(s&&K(d)){const f=n+c;d.setTextNodeRange(a,f,a,f)}const p=l.slice(0,u)+i+l.slice(u+o);return a.__text=p,a}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...n){lt();const o=this.getLatest(),i=o.getTextContent();if(i==="")return[];const s=o.__key,a=po(),l=i.length;n.sort((E,D)=>E-D),n.push(l);const c=[],u=n.length;for(let E=0,D=0;E<l&&D<=u;D++){const V=n[D];V>E&&(c.push(i.slice(E,V)),E=V)}const d=c.length;if(d===1)return[o];const p=c[0],f=o.getParent();let m;const h=o.getFormat(),v=o.getStyle(),C=o.__detail;let y=!1,g=null,_=null;const b=te();if(K(b)){const[E,D]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];E.type==="text"&&E.key===s&&(g=E),D.type==="text"&&D.key===s&&(_=D)}o.isSegmented()?(m=Ke(p),m.__format=h,m.__style=v,m.__detail=C,m.__state=G1(o,m),y=!0):m=o.setTextContent(p);const w=[m];for(let E=1;E<d;E++){const D=Ke(c[E]);D.__format=h,D.__style=v,D.__detail=C,D.__state=G1(o,D);const V=D.__key;a===s&&ft(V),w.push(D)}const k=g?g.offset:null,A=_?_.offset:null;let S=0;for(const E of w){if(!g&&!_)break;const D=S+E.getTextContentSize();if(g!==null&&k!==null&&k<=D&&k>=S&&(g.set(E.getKey(),k-S,"text"),k<D&&(g=null)),_!==null&&A!==null&&A<=D&&A>=S){_.set(E.getKey(),A-S,"text");break}S=D}if(f!==null){(function(V){const T=V.getPreviousSibling(),M=V.getNextSibling();T!==null&&_a(T),M!==null&&_a(M)})(this);const E=f.getWritable(),D=this.getIndexWithinParent();y?(E.splice(D,0,w),this.remove()):E.splice(D,1,w),K(b)&&ga(b,f,D,d-1)}return w}mergeWithSibling(n){const o=n===this.getPreviousSibling();o||n===this.getNextSibling()||G(50);const i=this.__key,s=n.__key,a=this.__text,l=a.length;po()===s&&ft(i);const c=te();if(K(c)){const f=c.anchor,m=c.focus;f!==null&&f.key===s&&yf(f,o,i,n,l),m!==null&&m.key===s&&yf(m,o,i,n,l)}const u=n.__text,d=o?u+a:a+u;this.setTextContent(d);const p=this.getWritable();return n.remove(),p}isTextEntity(){return!1}}function qle(t){return{forChild:Du(t.style),node:null}}function jle(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:Du(e.style,n?void 0:"bold"),node:null}}const cf=new WeakMap;function Wle(t){if(!tt(t))return!1;if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Zle(t){const e=t;t.parentElement===null&&G(129);let n=e.textContent||"";if(function(o){let i,s=o.parentNode;const a=[o];for(;s!==null&&(i=cf.get(s))===void 0&&!Wle(s);)a.push(s),s=s.parentNode;const l=i===void 0?s:i;for(let c=0;c<a.length;c++)cf.set(a[c],l);return l}(e)!==null){const o=n.split(/(\r?\n|\t)/),i=[],s=o.length;for(let a=0;a<s;a++){const l=o[a];l===`
25
25
  `||l===`\r
26
- `?i.push(mn()):l===" "?i.push(Gr()):l!==""&&i.push(Ke(l))}return{node:i}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,i=!0;for(;o!==null&&(o=uf(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),i=!1;break}}i&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,i=!0;for(;o!==null&&(o=uf(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Ke(n)}}function uf(t,e){let n=t;for(;;){let o;for(;(o=e?n.nextSibling:n.previousSibling)===null;){const s=n.parentElement;if(s===null)return null;n=s}if(n=o,tt(n)){const s=n.style.display;if(s===""&&!zc(n)||s!==""&&!s.startsWith("inline"))return null}let i=n;for(;(i=e?n.firstChild:n.lastChild)!==null;)n=i;if(to(n))return n;if(n.nodeName==="BR")return null}}const Kle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Un(t){const e=Kle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Du(t.style,e),node:null}}function Ke(t=""){return _n(new xo(t))}function Q(t){return t instanceof xo}function Du(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),i=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(Q(u)&&(i&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),a&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class cs extends xo{static getType(){return"tab"}static clone(e){return new cs(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Dr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Gr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Mm(126),super.setTextContent(" ")}spliceText(e,n,o,i){return o===""&&n===0||o===" "&&n===1||G(286),this}setDetail(e){return e!==2&&G(127),this}setMode(e){return e!=="normal"&&G(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Gr(){return _n(new cs)}function el(t){return t instanceof cs}class Gle{constructor(e,n,o){j(this,"key");j(this,"offset");j(this,"type");j(this,"_selection");this._selection=null,this.key=e,this.offset=n,this.type=o}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Kh(Jt(Xn(this,"next")),Jt(Xn(e,"next")))<0}getNode(){const e=rt(this.key);return e===null&&G(20),e}set(e,n,o,i){const s=this._selection,a=this.key;i&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,us()||(po()===a&&ft(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function On(t,e,n){return new Gle(t,e,n)}function Xl(t,e){let n=e.__key,o=t.offset,i="element";if(Q(e)){i="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!q(e)){const s=e.getNextSibling();if(Q(s))n=s.__key,o=0,i="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,i)}function df(t,e){if(q(e)){const n=e.getLastDescendant();q(n)||Q(n)?Xl(t,n):Xl(t,e)}else Xl(t,e)}class tl{constructor(e){j(this,"_nodes");j(this,"_cachedNodes");j(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Rt(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(i=>o.has(i))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new tl(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,i=n[o-1];let s;if(Q(i))s=i.select();else{const a=i.getIndexWithinParent()+1;s=i.getParentOrThrow().select(a,a)}s.insertNodes(e);for(let a=0;a<o;a++)n[a].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const i of n){const s=rt(i);s!==null&&o.push(s)}return us()||(this._cachedNodes=o),o}getTextContent(){const e=this.getNodes();let n="";for(let o=0;o<e.length;o++)n+=e[o].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((te()||Yr())===this&&e[0]){const n=mt(e[0],"next");Tce(wo(n,n))}for(const n of e)n.remove()}}function K(t){return t instanceof cr}class cr{constructor(e,n,o,i){j(this,"format");j(this,"style");j(this,"anchor");j(this,"focus");j(this,"_cachedNodes");j(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=i,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!K(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=function(o){const i=[],[s,a]=o.getTextSlices();s&&i.push(s.caret.origin);const l=new Set,c=new Set;for(const u of o)if($n(u)){const{origin:d}=u;i.length===0?l.add(d):(c.add(d),i.push(d))}else{const{origin:d}=u;q(d)&&c.has(d)||i.push(d)}if(a&&i.push(a.caret.origin),Hr(o.focus)&&q(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=gn(o.focus.origin,"previous");$n(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(i[i.length-1]);u=Zu(u))l.delete(u.origin),i.pop();for(;i.length>1;){const u=i[i.length-1];if(!q(u)||c.has(u)||u.isEmpty()||l.has(u))break;i.pop()}if(i.length===0&&o.isCollapsed()){const u=Jt(o.anchor),d=Jt(o.anchor.getFlipped()),p=m=>vo(m)?m.origin:m.getNodeAtCaret(),f=p(u)||p(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);i.push(f)}return i}(Jh(Pf(this),"next"));return us()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,i){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,i,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],i=this.anchor,s=this.focus,a=i.isBefore(s),[l,c]=Lc(this);let u="",d=!0;for(let p=0;p<e.length;p++){const f=e[p];if(q(f)&&!f.isInline())d||(u+=`
26
+ `?i.push(mn()):l===" "?i.push(Gr()):l!==""&&i.push(Ke(l))}return{node:i}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let o=e,i=!0;for(;o!==null&&(o=uf(o,!1))!==null;){const s=o.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),i=!1;break}}i&&(n=n.slice(1))}if(n[n.length-1]===" "){let o=e,i=!0;for(;o!==null&&(o=uf(o,!0))!==null;)if((o.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:Ke(n)}}function uf(t,e){let n=t;for(;;){let o;for(;(o=e?n.nextSibling:n.previousSibling)===null;){const s=n.parentElement;if(s===null)return null;n=s}if(n=o,tt(n)){const s=n.style.display;if(s===""&&!zc(n)||s!==""&&!s.startsWith("inline"))return null}let i=n;for(;(i=e?n.firstChild:n.lastChild)!==null;)n=i;if(to(n))return n;if(n.nodeName==="BR")return null}}const Kle={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Un(t){const e=Kle[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Du(t.style,e),node:null}}function Ke(t=""){return _n(new xo(t))}function Q(t){return t instanceof xo}function Du(t,e){const n=t.fontWeight,o=t.textDecoration.split(" "),i=n==="700"||n==="bold",s=o.includes("line-through"),a=t.fontStyle==="italic",l=o.includes("underline"),c=t.verticalAlign;return u=>(Q(u)&&(i&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),a&&!u.hasFormat("italic")&&u.toggleFormat("italic"),l&&!u.hasFormat("underline")&&u.toggleFormat("underline"),c!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),c!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class cs extends xo{static getType(){return"tab"}static clone(e){return new cs(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),o=Dr(e.theme,"tab");return o!==void 0&&n.classList.add(...o),n}static importJSON(e){return Gr().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Mm(126),super.setTextContent(" ")}spliceText(e,n,o,i){return o===""&&n===0||o===" "&&n===1||G(286),this}setDetail(e){return e!==2&&G(127),this}setMode(e){return e!=="normal"&&G(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function Gr(){return _n(new cs)}function el(t){return t instanceof cs}class Gle{constructor(e,n,o){j(this,"key");j(this,"offset");j(this,"type");j(this,"_selection");this._selection=null,this.key=e,this.offset=n,this.type=o}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:Kh(Jt(Xn(this,"next")),Jt(Xn(e,"next")))<0}getNode(){const e=rt(this.key);return e===null&&G(20),e}set(e,n,o,i){const s=this._selection,a=this.key;i&&this.key===e&&this.offset===n&&this.type===o||(this.key=e,this.offset=n,this.type=o,us()||(po()===a&&ft(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function On(t,e,n){return new Gle(t,e,n)}function Xl(t,e){let n=e.__key,o=t.offset,i="element";if(Q(e)){i="text";const s=e.getTextContentSize();o>s&&(o=s)}else if(!U(e)){const s=e.getNextSibling();if(Q(s))n=s.__key,o=0,i="text";else{const a=e.getParent();a&&(n=a.__key,o=e.getIndexWithinParent()+1)}}t.set(n,o,i)}function df(t,e){if(U(e)){const n=e.getLastDescendant();U(n)||Q(n)?Xl(t,n):Xl(t,e)}else Xl(t,e)}class tl{constructor(e){j(this,"_nodes");j(this,"_cachedNodes");j(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Rt(e))return!1;const n=this._nodes,o=e._nodes;return n.size===o.size&&Array.from(n).every(i=>o.has(i))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new tl(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),o=n.length,i=n[o-1];let s;if(Q(i))s=i.select();else{const a=i.getIndexWithinParent()+1;s=i.getParentOrThrow().select(a,a)}s.insertNodes(e);for(let a=0;a<o;a++)n[a].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,o=[];for(const i of n){const s=rt(i);s!==null&&o.push(s)}return us()||(this._cachedNodes=o),o}getTextContent(){const e=this.getNodes();let n="";for(let o=0;o<e.length;o++)n+=e[o].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((te()||Yr())===this&&e[0]){const n=mt(e[0],"next");Tce(wo(n,n))}for(const n of e)n.remove()}}function K(t){return t instanceof cr}class cr{constructor(e,n,o,i){j(this,"format");j(this,"style");j(this,"anchor");j(this,"focus");j(this,"_cachedNodes");j(this,"dirty");this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=o,this.style=i,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!K(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=function(o){const i=[],[s,a]=o.getTextSlices();s&&i.push(s.caret.origin);const l=new Set,c=new Set;for(const u of o)if($n(u)){const{origin:d}=u;i.length===0?l.add(d):(c.add(d),i.push(d))}else{const{origin:d}=u;U(d)&&c.has(d)||i.push(d)}if(a&&i.push(a.caret.origin),Hr(o.focus)&&U(o.focus.origin)&&o.focus.getNodeAtCaret()===null)for(let u=gn(o.focus.origin,"previous");$n(u)&&l.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(i[i.length-1]);u=Zu(u))l.delete(u.origin),i.pop();for(;i.length>1;){const u=i[i.length-1];if(!U(u)||c.has(u)||u.isEmpty()||l.has(u))break;i.pop()}if(i.length===0&&o.isCollapsed()){const u=Jt(o.anchor),d=Jt(o.anchor.getFlipped()),p=m=>vo(m)?m.origin:m.getNodeAtCaret(),f=p(u)||p(d)||(o.anchor.getNodeAtCaret()?u.origin:d.origin);i.push(f)}return i}(Jh(Pf(this),"next"));return us()||(this._cachedNodes=n),n}setTextNodeRange(e,n,o,i){this.anchor.set(e.__key,n,"text"),this.focus.set(o.__key,i,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],o=e[e.length-1],i=this.anchor,s=this.focus,a=i.isBefore(s),[l,c]=Lc(this);let u="",d=!0;for(let p=0;p<e.length;p++){const f=e[p];if(U(f)&&!f.isInline())d||(u+=`
27
27
  `),d=!f.isEmpty();else if(d=!1,Q(f)){let m=f.getTextContent();f===n?f===o?i.type==="element"&&s.type==="element"&&s.offset!==i.offset||(m=l<c?m.slice(l,c):m.slice(c,l)):m=a?m.slice(l):m.slice(c):f===o&&(m=a?m.slice(0,c):m.slice(0,l)),u+=m}else!Ae(f)&&!go(f)||f===o&&this.isCollapsed()||(u+=f.getTextContent())}return u}applyDOMRange(e){const n=je(),o=n.getEditorState()._selection,i=kh(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,o);if(i===null)return;const[s,a]=i;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(a.key,a.offset,a.type,!0),aa(this)}clone(){const e=this.anchor,n=this.focus;return new cr(On(e.key,e.offset,e.type),On(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=ya(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const n=xt[e];return(this.format&n)!==0}insertRawText(e){const n=e.split(/(\r?\n|\t)/),o=[],i=n.length;for(let s=0;s<i;s++){const a=n[s];a===`
28
28
  `||a===`\r
29
- `?o.push(mn()):a===" "?o.push(Gr()):o.push(Ke(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,i=this.format,s=this.style;let a=n,l=o;!this.isCollapsed()&&o.isBefore(n)&&(a=o,l=n),a.type==="element"&&function(C,y,g,_){const b=C.getNode(),w=b.getChildAtIndex(C.offset),k=Ke();if(k.setFormat(g),k.setStyle(_),ps(w))w.splice(0,0,[k]);else{const x=Qe(b)?Re().append(k):k;w===null?b.append(x):w.insertBefore(x)}C.is(y)&&y.set(k.__key,0,"text"),C.set(k.__key,0,"text")}(a,l,i,s),l.type==="element"&&ar(l,Jt(Xn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),p=d.length;let f=d[0];Q(f)||G(26);const m=f.getTextContent().length,h=f.getParentOrThrow();let v=d[p-1];if(p===1&&l.type==="element"&&(u=m,l.set(a.key,u,"text")),this.isCollapsed()&&c===m&&(qn(f)||!f.canInsertTextAfter()||!h.canInsertTextAfter()&&f.getNextSibling()===null)){let C=f.getNextSibling();if(Q(C)&&C.canInsertTextBefore()&&!qn(C)||(C=Ke(),C.setFormat(i),C.setStyle(s),h.canInsertTextAfter()?f.insertAfter(C):h.insertAfter(C)),C.select(0,0),f=C,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(qn(f)||!f.canInsertTextBefore()||!h.canInsertTextBefore()&&f.getPreviousSibling()===null)){let C=f.getPreviousSibling();if(Q(C)&&!qn(C)||(C=Ke(),C.setFormat(i),h.canInsertTextBefore()?f.insertBefore(C):h.insertBefore(C)),C.select(),f=C,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&c!==m){const C=Ke(f.getTextContent());C.setFormat(i),f.replace(C),f=C}else if(!this.isCollapsed()&&e!==""){const C=v.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||q(C)&&(!C.canInsertTextBefore()||!C.canInsertTextAfter()))return this.insertText(""),bh(this.anchor,this.focus,null),void this.insertText(e)}if(p===1){if(Wo(f)){const _=Ke(e);return _.select(),void f.replace(_)}const C=f.getFormat(),y=f.getStyle();if(c!==u||C===i&&y===s){if(el(f)){const _=Ke(e);return _.setFormat(i),_.setStyle(s),_.select(),void f.replace(_)}}else{if(f.getTextContent()!==""){const _=Ke(e);if(_.setFormat(i),_.setStyle(s),_.select(),c===0)f.insertBefore(_,!1);else{const[b]=f.splitText(c);b.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(s)}const g=u-c;f=f.spliceText(c,g,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=C,this.style=y))}else{const C=new Set([...f.getParentKeys(),...v.getParentKeys()]),y=q(f)?f:f.getParentOrThrow();let g=q(v)?v:v.getParentOrThrow(),_=v;if(!y.is(g)&&g.isInline())do _=g,g=g.getParentOrThrow();while(g.isInline());if(l.type==="text"&&(u!==0||v.getTextContent()==="")||l.type==="element"&&v.getIndexWithinParent()<u)if(Q(v)&&!Wo(v)&&u!==v.getTextContentSize()){if(v.isSegmented()){const S=Ke(v.getTextContent());v.replace(S),v=S}Qe(l.getNode())||l.type!=="text"||(v=v.spliceText(0,u,"")),C.add(v.__key)}else{const S=v.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?v.remove():S.remove()}else C.add(v.__key);const b=g.getChildren(),w=new Set(d),k=y.is(g),x=y.isInline()&&f.getNextSibling()===null?y:f;for(let S=b.length-1;S>=0;S--){const E=b[S];if(E.is(f)||q(E)&&E.isParentOf(f))break;E.isAttached()&&(!w.has(E)||E.is(_)?k||x.insertAfter(E,!1):E.remove())}if(!k){let S=g,E=null;for(;S!==null;){const N=S.getChildren(),I=N.length;(I===0||N[I-1].is(E))&&(C.delete(S.__key),E=S),S=S.getParent()}}if(Wo(f))if(c===m)f.select();else{const S=Ke(e);S.select(),f.replace(S)}else f=f.spliceText(c,m-c,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let S=1;S<p;S++){const E=d[S],N=E.__key;C.has(N)||E.remove()}}}removeText(){const e=te()===this;Ys(this,Nce(Pf(this))),e&&te()!==this&&vt(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void ft(null);const o=this.getNodes(),i=[];for(const b of o)Q(b)&&i.push(b);const s=b=>{o.forEach(w=>{if(q(w)){const k=w.getFormatFlags(e,b);w.setTextFormat(k)}})},a=i.length;if(a===0)return this.toggleFormat(e),ft(null),void s(n);const l=this.anchor,c=this.focus,u=this.isBackward(),d=u?c:l,p=u?l:c;let f=0,m=i[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(f=1,m=i[1],h=0),m==null)return;const v=m.getFormatFlags(e,n);s(v);const C=a-1;let y=i[C];const g=p.type==="text"?p.offset:y.getTextContentSize();if(m.is(y)){if(h===g)return;if(qn(m)||h===0&&g===m.getTextContentSize())m.setFormat(v);else{const b=m.splitText(h,g),w=h===0?b[0]:b[1];w.setFormat(v),d.type==="text"&&d.set(w.__key,0,"text"),p.type==="text"&&p.set(w.__key,g-h,"text")}return void(this.format=v)}h===0||qn(m)||([,m]=m.splitText(h),h=0),m.setFormat(v);const _=y.getFormatFlags(e,v);g>0&&(g===y.getTextContentSize()||qn(y)||([y]=y.splitText(g)),y.setFormat(_));for(let b=f+1;b<C;b++){const w=i[b],k=w.getFormatFlags(e,_);w.setFormat(k)}d.type==="text"&&d.set(m.__key,h,"text"),p.type==="text"&&p.set(y.__key,g,"text"),this.format=v|_}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=te();return K(h)||G(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=en(n,Gt),i=e[e.length-1];if(q(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Ql(this);o.splice(h,0,e),i.selectEnd()}return}if(!e.some(h=>(q(h)||Ae(h))&&!h.isInline())){q(o)||G(211,n.constructor.name,n.getType());const h=Ql(this);return o.splice(h,0,e),void i.selectEnd()}const s=function(h){const v=Re();let C=null;for(let y=0;y<h.length;y++){const g=h[y],_=go(g);if(_||Ae(g)&&g.isInline()||q(g)&&g.isInline()||Q(g)||g.isParentRequired()){if(C===null&&(C=g.createParentElementNode(),v.append(C),_))continue;C!==null&&C.append(g)}else v.append(g),C=null}return v}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!q(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var p;q(p=d)&&Gt(p)&&!p.isEmpty()&&q(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(q(o)||G(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&G(212,n.constructor.name,n.getType()),function(h,v){const C=v.getParentOrThrow().getLastChild();let y=v;const g=[v];for(;y!==C;)y.getNextSibling()||G(140),y=y.getNextSibling(),g.push(y);let _=h;for(const b of g)_=_.insertAfter(b)}(o,d));const f=en(a,Gt);c&&q(f)&&(c.canMergeWhenEmpty()||Gt(u))&&(f.append(...c.getChildren()),c.remove()),q(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=q(o)?o.getLastChild():null;go(m)&&f!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Re();return We().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Ql(this),n=en(this.anchor.getNode(),Gt);q(n)||G(213);const o=n.getChildAtIndex(e),i=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(e){const n=mn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),i=n.getIndexWithinParent();o.select(i,i)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],i=e[n-1];const[s,a]=Lc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,p]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(Q(o)&&!this.isCollapsed()){const f=o.splitText(d,p),m=d===0?f[0]:f[1];return m?(c.set(m.getKey(),0,"text"),u.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(Q(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),Q(i)){const f=i.getTextContent().length;p===0?e.pop():p!==f&&([i]=i.splitText(p),e[e.length-1]=i,u.set(i.getKey(),i.getTextContentSize(),"text"))}return e}modify(e,n,o){if(_f(this,e,n,o))return;const i=e==="move",s=je(),a=hn(on(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!q(u)||u.isInline()||u.canBeEmpty()||Fc(l,s,c),this.dirty){let d=or(s,this.anchor.key),p=or(s,this.focus.key);this.anchor.type==="text"&&(d=zr(d)),this.focus.type==="text"&&(p=zr(p)),d&&p&&Sh(a,d,this.anchor.offset,p,this.focus.offset)}if(function(d,p,f,m){d.modify(p,f,m)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),p=this.anchor.getNode(),f=Qe(p)?p:pce(p);if(this.applyDOMRange(d),this.dirty=!0,!i){const m=this.getNodes(),h=[];let v=!1;for(let C=0;C<m.length;C++){const y=m[C];Pc(y,f)?h.push(y):v=!0}if(v&&h.length>0)if(n){const C=h[0];q(C)?C.selectStart():C.getParentOrThrow().selectStart()}else{const C=h[h.length-1];q(C)?C.selectEnd():C.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(C){const y=C.focus,g=C.anchor,_=g.key,b=g.offset,w=g.type;g.set(y.key,y.offset,y.type,!0),y.set(_,b,w,!0)}(this)}}o==="lineboundary"&&_f(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&q(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const i=n.getParent(),s=n.getNextSibling()||(i===null?null:i.getNextSibling());if(q(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let i=o.getNode();if(this.forwardDeletion(o,i,e))return;const s=Gu(Xn(o,e?"previous":"next"));if(s.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const c of s.iterNodeCarets("shadowRoot"))if($n(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(q(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=Jt(c);Ys(this,wo(u,u)),s.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Hr(c)){if(q(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(Ae(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&q(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=Eh();u.add(c.origin.getKey()),vt(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Ys(this,wo(!c.origin.isEmpty()&&u.isEmpty()?Yu(mt(u,c.direction)):s.anchor,c)),this.removeText()}}const a=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&o.offset===0&&pf(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(i=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(i)||e&&c!==u||!e&&c!==0)return void mf(l,e,c)}else if(i!==null&&i.isSegmented()){const c=o.offset,u=i.getTextContentSize();if(i.is(l)||e&&c!==0||!e&&c!==u)return void mf(i,e,c)}(function(c,u){const d=c.anchor,p=c.focus,f=d.getNode(),m=p.getNode();if(f===m&&d.type==="text"&&p.type==="text"){const h=d.offset,v=p.offset,C=h<v,y=C?h:v,g=C?v:h,_=g-1;y!==_&&function(b){return!(Rh(b)||Yle(b))}(f.getTextContent().slice(y,g))&&(u?p.set(p.key,_,p.type):d.set(d.key,_,d.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const o=this.anchor.getNode();o.isEmpty()&&Qe(o.getParent())&&o.getPreviousSibling()===null&&pf(this,o)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,o=n.getNode();if(this.forwardDeletion(n,o,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Rt(t){return t instanceof tl}function ff(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Lc(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,o]=e;return n.type==="element"&&o.type==="element"&&n.key===o.key&&n.offset===o.offset?[0,0]:[ff(n),ff(o)]}function pf(t,e){for(let n=e;n;n=n.getParent()){if(q(n)){if(n.collapseAtStart(t))return!0;if(At(n))break}if(n.getPreviousSibling())break}return!1}const Yle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function mf(t,e,n){const o=t,i=o.getTextContent().split(/(?=\s)/g),s=i.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=i[u].length,e&&a===n||a>n||d){i.splice(u,1),d&&(l=void 0);break}}const c=i.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function hf(t,e,n,o){let i,s=e;if(tt(t)){let a=!1;const l=t.childNodes,c=l.length,u=o._blockCursorElement;s===c&&(a=!0,s=c-1);let d=l[s],p=!1;if(d===u)d=l[s+1],p=!0;else if(u!==null){const f=u.parentNode;t===f&&e>Array.prototype.indexOf.call(f.children,u)&&s--}if(i=Er(d),Q(i))s=yo(i,a?"next":"previous");else{let f=Er(t);if(f===null)return null;if(q(f)){const m=o.getElementByKey(f.getKey());m===null&&G(214),[f,s]=f.getDOMSlot(m).resolveChildIndex(f,m,t,e),q(f)||G(215),a&&s>=f.getChildrenSize()&&(s=Math.max(0,f.getChildrenSize()-1));let v=f.getChildAtIndex(s);if(q(v)&&function(C,y,g){const _=C.getParent();return g===null||_===null||!_.canBeEmpty()||_!==g.getNode()}(v,0,n)){const C=a?v.getLastDescendant():v.getFirstDescendant();C===null?f=v:(v=C,f=q(v)?v:v.getParentOrThrow()),s=0}Q(v)?(i=v,f=null,s=yo(v,a?"next":"previous")):v!==f&&a&&!p&&(q(f)||G(216),s=Math.min(f.getChildrenSize(),s+1))}else{const m=f.getIndexWithinParent();s=e===0&&Ae(f)&&Er(t)===f?m:m+1,f=f.getParentOrThrow()}if(q(f))return On(f.__key,s,"element")}}else i=Er(t);return Q(i)?On(i.__key,yo(i,s,"clamp"),"text"):null}function gf(t,e,n){const o=t.offset,i=t.getNode();if(o===0){const s=i.getPreviousSibling(),a=i.getParent();if(e){if((n||!e)&&s===null&&q(a)&&a.isInline()){const l=a.getPreviousSibling();Q(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else q(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):Q(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===i.getTextContent().length){const s=i.getNextSibling(),a=i.getParent();if(e&&q(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&q(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();Q(l)&&t.set(l.__key,0,"text")}}}function bh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),i=t.is(e);gf(t,o,i),gf(e,!o,i),i&&e.set(t.key,t.offset,t.type);const s=je();if(s.isComposing()&&s._compositionKey!==t.key&&K(n)){const a=n.anchor,l=n.focus;t.set(a.key,a.offset,a.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function kh(t,e,n,o,i,s){if(t===null||n===null||!ms(i,t,n))return null;const a=hf(t,e,K(s)?s.anchor:null,i);if(a===null)return null;const l=hf(n,o,K(s)?s.focus:null,i);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=Er(t),u=Er(n);if(Ae(c)&&Ae(u))return null}return bh(a,l,s),[a,l]}function Oc(t){return q(t)&&!t.isInline()}function wh(t,e,n,o,i,s){const a=Ao(),l=new cr(On(t,e,i),On(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function nl(){const t=On("root",0,"element"),e=On("root",0,"element");return new cr(t,e,0,"")}function Eh(){return new tl(new Set)}function $u(t,e,n,o){const i=n._window;if(i===null)return null;const s=o||i.event,a=s?s.type:void 0,l=a==="selectionchange",c=!_c&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,p,f;if(K(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,p=e.anchorOffset,f=e.focusOffset,(l||a===void 0)&&K(t)&&!ms(n,u,d))return t.clone();const m=kh(u,p,d,f,n,t);if(m===null)return null;const[h,v]=m;return new cr(h,v,K(t)?t.format:0,K(t)?t.style:"")}function te(){return Ao()._selection}function Yr(){return je()._editorState._selection}function ga(t,e,n,o=1){const i=t.anchor,s=t.focus,a=i.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=i.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);i.set(c,d,"element"),s.set(c,d,"element"),vf(t)}}else{const u=t.isBackward(),d=u?s:i,p=d.getNode(),f=u?i:s,m=f.getNode();if(e.is(p)){const h=d.offset;(n<=h&&o>0||n<h&&o<0)&&d.set(c,Math.max(0,h+o),"element")}if(e.is(m)){const h=f.offset;(n<=h&&o>0||n<h&&o<0)&&f.set(c,Math.max(0,h+o),"element")}}vf(t)}function vf(t){const e=t.anchor,n=e.offset,o=t.focus,i=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!q(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(q(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(q(a)){const l=a.getChildrenSize(),c=i>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(i);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function va(t,e,n,o,i){let s=null,a=0,l=null;o!==null?(s=o.__key,Q(o)?(a=o.getTextContentSize(),l="text"):q(o)&&(a=o.getChildrenSize(),l="element")):i!==null&&(s=i.__key,Q(i)?l="text":q(i)&&(l="element")),s!==null&&l!==null?t.set(s,a,l):(a=e.getIndexWithinParent(),a===-1&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function yf(t,e,n,o,i){t.type==="text"?t.set(n,t.offset+(e?0:i),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function Sh(t,e,n,o,i){try{t.setBaseAndExtent(e,n,o,i)}catch{}}function Jle(t,e,n,o,i,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,p=document.activeElement;if(i.has(yh)&&p!==s||p!==null&&Iu(p))return;if(!K(e))return void(t!==null&&ms(n,l,c)&&o.removeAllRanges());const f=e.anchor,m=e.focus,h=f.key,v=m.key,C=or(n,h),y=or(n,v),g=f.offset,_=m.offset,b=e.format,w=e.style,k=e.isCollapsed();let x=C,S=y,E=!1;if(f.type==="text"){x=zr(C);const $=f.getNode();E=$.getFormat()!==b||$.getStyle()!==w}else K(t)&&t.anchor.type==="text"&&(E=!0);var N,I,A,M,D;if(m.type==="text"&&(S=zr(y)),x!==null&&S!==null&&(k&&(t===null||E||K(t)&&(t.format!==b||t.style!==w))&&(N=b,I=w,A=g,M=h,D=performance.now(),dh=[N,I,A,M,D]),u!==g||d!==_||l!==x||c!==S||o.type==="Range"&&k||(p!==null&&s.contains(p)||i.has(Ule)||s.focus({preventScroll:!0}),f.type==="element"))){if(Sh(o,x,g,S,_),!i.has(Rle)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const $=K(e)&&e.anchor.type==="element"?x.childNodes[g]||null:o.rangeCount>0?o.getRangeAt(0):null;if($!==null){let B;if($ instanceof Text){const P=document.createRange();P.selectNode($),B=P.getBoundingClientRect()}else B=$.getBoundingClientRect();(function(P,L,R){const Y=qh(R),ae=Hu(Y);if(Y===null||ae===null)return;let{top:oe,bottom:Ne}=L,ce=0,ne=0,H=R;for(;H!==null;){const z=H===Y.body;if(z)ce=0,ne=on(P).innerHeight;else{const Ee=H.getBoundingClientRect();ce=Ee.top,ne=Ee.bottom}let re=0;if(oe<ce?re=-(ce-oe):Ne>ne&&(re=Ne-ne),re!==0)if(z)ae.scrollBy(0,re);else{const Ee=H.scrollTop;H.scrollTop+=re;const ze=H.scrollTop-Ee;oe-=ze,Ne-=ze}if(z)break;H=hs(H)}})(n,B,s)}}$c=!0}}function Xle(t){let e=te()||Yr();e===null&&(e=We().selectEnd()),e.insertNodes(t)}function Ql(t){let e=t;t.isCollapsed()||e.removeText();const n=te();K(n)&&(e=n),K(e)||G(161);const o=e.anchor;let i=o.getNode(),s=o.offset;for(;!Gt(i);){const a=i;if([i,s]=Qle(i,s),a.is(i))break}return s}function Qle(t,e){const n=t.getParent();if(!n){const i=Re();return We().append(i),i.select(),[We(),0]}if(Q(t)){const i=t.splitText(e);if(i.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,i[0].getIndexWithinParent()+s]}if(!q(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const i=new cr(On(t.__key,e,"element"),On(t.__key,e,"element"),0,""),s=t.insertNewAfter(i);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function _f(t,e,n,o,i="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[d,p]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return p.set(d.key,d.offset,d.type),!0}const s=Xn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=i==="decorators-and-blocks";if(!Yh(c)){for(const d of c){u=!1;const{origin:p}=d;if(!Ae(p)||p.isIsolated()||(c=d,!a||!p.isInline()))break}if(u)for(const d of Gu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if($n(d))d.origin.isInline()||(c=d);else{if(q(d.origin))continue;Ae(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ae(c.origin)&&c.origin.isKeyboardSelectable()){const d=Eh();return d.add(c.origin.getKey()),vt(d),!0}return c=Jt(c),l&&ar(t.anchor,c),ar(t.focus,c),u||!a}let ct=null,ut=null,Bt=!1,ec=!1,Ks=0;const Cf={characterData:!0,childList:!0,subtree:!0};function us(){return Bt||ct!==null&&ct._readOnly}function lt(){Bt&&G(13)}function xh(){Ks>99&&G(14)}function Ao(){return ct===null&&G(195,Ah()),ct}function je(){return ut===null&&G(196,Ah()),ut}function Ah(){let t=0;const e=new Set,n=nr.version;if(typeof window<"u")for(const i of document.querySelectorAll("[contenteditable]")){const s=il(i);if(Pu(s))t++;else if(s){let a=String(s.constructor.version||"<0.17.1");a===n&&(a+=" (separately built, likely a bundler configuration issue)"),e.add(a)}}let o=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(o+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),o}function ece(){return ut}function bf(t,e,n){const o=e.__type,i=Mh(t,o);let s=n.get(o);s===void 0&&(s=Array.from(i.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function kf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function Th(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const i of o)n.add(i)}function tce(t){return Bu(t,je()._nodes)}function Bu(t,e){const n=t.type,o=e.get(n);o===void 0&&G(17,n);const i=o.klass;t.type!==i.getType()&&G(18,i.name);const s=i.importJSON(t),a=t.children;if(q(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=Bu(a[l],e);s.append(c)}return s}function wf(t,e,n){const o=ct,i=Bt,s=ut;ct=e,Bt=!0,ut=t;try{return n()}finally{ct=o,Bt=i,ut=s}}function Wn(t,e){const n=t._pendingEditorState,o=t._rootElement,i=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=ct,d=Bt,p=ut,f=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&m!==null){ut=t,ct=n,Bt=!1,t._updating=!0;try{const k=t._dirtyType,x=t._dirtyElements,S=t._dirtyLeaves;m.disconnect(),h=wle(s,n,t,k,x,S)}catch(k){if(k instanceof Error&&t._onError(k),ec)throw k;return Bh(t,null,o,n),Rm(t),t._dirtyType=2,ec=!0,Wn(t,s),void(ec=!1)}finally{m.observe(o,Cf),t._updating=f,ct=u,Bt=d,ut=p}}n._readOnly||(n._readOnly=!0);const v=t._dirtyLeaves,C=t._dirtyElements,y=t._normalizedNodes,g=t._updateTags,_=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(k,x){const S=k._decorators;let E=k._pendingDecorators||S;const N=x._nodeMap;let I;for(I in E)N.has(I)||(E===S&&(E=Ph(k)),delete E[I])}(t,n);const b=i?null:hn(on(t));if(t._editable&&b!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!g.has(zle)){ut=t,ct=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const k=t._blockCursorElement;k!==null&&Fc(k,t,o),Jle(a,l,t,b,g,o)}(function(k,x,S){let E=k._blockCursorElement;if(K(S)&&S.isCollapsed()&&S.anchor.type==="element"&&x.contains(document.activeElement)){const N=S.anchor,I=N.getNode(),A=N.offset;let M=!1,D=null;if(A===I.getChildrenSize())nc(I.getChildAtIndex(A-1))&&(M=!0);else{const $=I.getChildAtIndex(A);if($!==null&&nc($)){const B=$.getPreviousSibling();(B===null||nc(B))&&(M=!0,D=k.getElementByKey($.__key))}}if(M){const $=k.getElementByKey(I.__key);return E===null&&(k._blockCursorElement=E=function(B){const P=B.theme,L=document.createElement("div");L.contentEditable="false",L.setAttribute("data-lexical-cursor","true");let R=P.blockCursor;if(R!==void 0){if(typeof R=="string"){const Y=Om(R);R=P.blockCursor=Y}R!==void 0&&L.classList.add(...R)}return L}(k._config)),x.style.caretColor="transparent",void(D===null?$.appendChild(E):$.insertBefore(E,D))}}E!==null&&Fc(E,k,x)})(t,o,l)}finally{m!==null&&m.observe(o,Cf),ut=p,ct=u}}h!==null&&function(k,x,S,E,N){const I=Array.from(k._listeners.mutation),A=I.length;for(let M=0;M<A;M++){const[D,$]=I[M];for(const B of $){const P=x.get(B);P!==void 0&&D(P,{dirtyLeaves:E,prevEditorState:N,updateTags:S})}}}(t,h,g,v,s),K(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Gm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Li("decorator",t,!0,w)),function(k,x,S){const E=Tf(x),N=Tf(S);E!==N&&Li("textcontent",k,!0,N)}(t,e||s,n),Li("update",t,!0,{dirtyElements:C,dirtyLeaves:v,editorState:n,mutatedNodes:h,normalizedNodes:y,prevEditorState:e||s,tags:g}),function(k,x){if(k._deferred=[],x.length!==0){const S=k._updating;k._updating=!0;try{for(let E=0;E<x.length;E++)x[E]()}finally{k._updating=S}}}(t,_),function(k){const x=k._updates;if(x.length!==0){const S=x.shift();if(S){const[E,N]=S;ol(k,E,N)}}}(t)}function Li(t,e,n,...o){const i=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let a=0;a<s.length;a++)s[a].apply(null,o)}finally{e._updating=i}}function Ef(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const i=n.shift();if(i){const[s,a]=i,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&G(191),l._flushSync=!0),c&&t._deferred.push(c),Th(t,a.tag)),l==null?ol(t,s,a):s()}}return o}function ol(t,e,n){const o=t._updateTags;let i,s=!1,a=!1;n!==void 0&&(i=n.onUpdate,Th(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),i&&t._deferred.push(i);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=Dh(c||l),u=!0),c._flushSync=a;const d=ct,p=Bt,f=ut,m=t._updating;ct=c,Bt=!1,t._updating=!0,ut=t;const h=t._headless||t.getRootElement()===null;Ou(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(g,_){const b=g.getEditorState()._selection,w=hn(on(g));return K(b)||b==null?$u(b,w,g,_):b.clone()}(t,n&&n.event||null));const C=t._compositionKey;e(),s=Ef(t,s),function(g,_){const b=_.getEditorState()._selection,w=g._selection;if(K(w)){const k=w.anchor,x=w.focus;let S;if(k.type==="text"&&(S=k.getNode(),S.selectionTransform(b,w)),x.type==="text"){const E=x.getNode();S!==E&&E.selectionTransform(b,w)}}}(c,t),t._dirtyType!==0&&(s?function(g,_){const b=_._dirtyLeaves,w=g._nodeMap;for(const k of b){const x=w.get(k);Q(x)&&x.isAttached()&&x.isSimpleText()&&!x.isUnmergeable()&&X1(x)}}(c,t):function(g,_){const b=_._dirtyLeaves,w=_._dirtyElements,k=g._nodeMap,x=po(),S=new Map;let E=b,N=E.size,I=w,A=I.size;for(;N>0||A>0;){if(N>0){_._dirtyLeaves=new Set;for(const M of E){const D=k.get(M);Q(D)&&D.isAttached()&&D.isSimpleText()&&!D.isUnmergeable()&&X1(D),D!==void 0&&kf(D,x)&&bf(_,D,S),b.add(M)}if(E=_._dirtyLeaves,N=E.size,N>0){Ks++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,I.delete("root")&&I.set("root",!0);for(const M of I){const D=M[0],$=M[1];if(w.set(D,$),!$)continue;const B=k.get(D);B!==void 0&&kf(B,x)&&bf(_,B,S)}E=_._dirtyLeaves,N=E.size,I=_._dirtyElements,A=I.size,Ks++}_._dirtyLeaves=b,_._dirtyElements=w}(c,t),Ef(t),function(g,_,b,w){const k=g._nodeMap,x=_._nodeMap,S=[];for(const[E]of w){const N=x.get(E);N!==void 0&&(N.isAttached()||(q(N)&&Im(N,E,k,x,S,w),k.has(E)||w.delete(E),S.push(E)))}for(const E of S)x.delete(E);for(const E of b){const N=x.get(E);N===void 0||N.isAttached()||(k.has(E)||b.delete(E),x.delete(E))}}(l,c,t._dirtyLeaves,t._dirtyElements)),C!==t._compositionKey&&(c._flushSync=!0);const y=c._selection;if(K(y)){const g=c._nodeMap,_=y.anchor.key,b=y.focus.key;g.get(_)!==void 0&&g.get(b)!==void 0||G(19)}else Rt(y)&&y._nodes.size===0&&(c._selection=null)}catch(C){return C instanceof Error&&t._onError(C),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void Wn(t)}finally{ct=d,Bt=p,ut=f,t._updating=m,Ks=0}t._dirtyType!==0||t._deferred.length>0||function(C,y){const g=y.getEditorState()._selection,_=C._selection;if(_!==null){if(_.dirty||!_.is(g))return!0}else if(g!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Wn(t)):u&&ace(()=>{Wn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function zt(t,e,n){ut===t&&n===void 0?e():ol(t,e,n)}class Oi{constructor(e,n,o){j(this,"element");j(this,"before");j(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Oi(this.element,e,this.after)}withAfter(e){return new Oi(this.element,this.before,e)}withElement(e){return this.element===e?this:new Oi(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&G(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&G(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&G(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(Wi||Rr||ji);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,i=this.before,s=document.createElement("br");if(o.insertBefore(s,i),e){const a=document.createElement("img");a.setAttribute("data-lexical-linebreak","true"),a.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",a.alt="",o.insertBefore(a,s),o.__lexicalLineBreak=a}else o.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,i){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,i))]}const s=Sf(n,o);s.push(i);const a=Sf(n,this.element);let l=e.getIndexWithinParent();for(let c=0;c<a.length;c++){const u=s[c],d=a[c];if(u===void 0||u<d)break;if(u>d){l+=1;break}}return[e.getParentOrThrow(),l]}}function Sf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let i=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)i++;n.push(i)}return o!==t&&G(225),n.reverse()}class jt extends pn{constructor(n){super(n);j(this,"__first");j(this,"__last");j(this,"__size");j(this,"__format");j(this,"__style");j(this,"__indent");j(this,"__dir");j(this,"__textFormat");j(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return cle[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o),o=o.getNextSibling();return n}getChildrenKeys(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o.__key),o=o.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=je()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(Q(o)&&n.push(o),q(o)){const i=o.getAllTextNodes();n.push(...i)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;q(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;q(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),i=o.length;if(n>=i){const a=o[i-1];return q(a)&&a.getLastDescendant()||a||null}const s=o[n];return q(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:rt(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&G(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:rt(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&G(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let i,s;if(n<o/2){for(i=this.getFirstChild(),s=0;i!==null&&s<=n;){if(s===n)return i;i=i.getNextSibling(),s++}return null}for(i=this.getLastChild(),s=o-1;i!==null&&s>=n;){if(s===n)return i;i=i.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),i=o.length;for(let s=0;s<i;s++){const a=o[s];n+=a.getTextContent(),q(a)&&s!==i-1&&!a.isInline()&&(n+=ko)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),i=o.length;for(let s=0;s<i;s++){const a=o[s];n+=a.getTextContentSize(),q(a)&&s!==i-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=q1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=xt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ya(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){lt();const i=te();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(Q(u)||q(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(Q(u)||q(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return K(i)?(i.anchor.set(c,s,"element"),i.focus.set(c,a,"element"),i.dirty=!0,i):wh(c,s,c,a,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(o=>o.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const o=this.getWritable();return o.__dir=n,o}setFormat(n){return this.getWritable().__format=n!==""?q1[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const o=this.getWritable();return o.__textFormat=n,o}setTextStyle(n){const o=this.getWritable();return o.__textStyle=n,o}setIndent(n){return this.getWritable().__indent=n,this}splice(n,o,i){ma(this)&&G(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||G(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let p=null,f=s-o+i.length;if(n!==0)if(n===s)p=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(p=h.getPreviousSibling())}if(o>0){let h=p===null?this.getFirstChild():p.getNextSibling();for(let v=0;v<o;v++){h===null&&G(100);const C=h.getNextSibling(),y=h.__key;Zo(h.getWritable()),u.push(y),h=C}}let m=p;for(const h of i){m!==null&&h.is(m)&&(p=m=m.getPreviousSibling());const v=h.getWritable();v.__parent===l&&f--,Zo(v);const C=h.__key;if(m===null)a.__first=C,v.__prev=null;else{const y=m.getWritable();y.__next=C,v.__prev=y.__key}h.__key===l&&G(76),v.__parent=l,c.push(C),m=h}if(n+o===s)m!==null&&(m.getWritable().__next=null,a.__last=m.__key);else if(d!==null){const h=d.getWritable();if(m!==null){const v=m.getWritable();h.__prev=m.__key,v.__next=d.__key}else h.__prev=null}if(a.__size=f,u.length){const h=te();if(K(h)){const v=new Set(u),C=new Set(c),{anchor:y,focus:g}=h;xf(y,v,C)&&va(y,y.getNode(),this,p,d),xf(g,v,C)&&va(g,g.getNode(),this,p,d),f!==0||this.canBeEmpty()||At(this)||this.remove()}}return a}getDOMSlot(n){return new Oi(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(tt(o)){const i=this.getIndent();i>0&&(o.style.paddingInlineStart=40*i+"px");const s=this.getDirection();s&&(o.dir=s)}return{element:o}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},o=this.getTextFormat(),i=this.getTextStyle();return o!==0&&(n.textFormat=o),i!==""&&(n.textStyle=i),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,o){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,o,i){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const i=this.getDOMSlot(n);let s=i.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(i.insertChild(l),s=l):s!==l&&i.replaceChild(l,s),s=s.nextSibling)}}}function q(t){return t instanceof jt}function xf(t,e,n){let o=t.getNode();for(;o;){const i=o.__key;if(e.has(i)&&!n.has(i))return!0;o=o.getParent()}return!1}class Nh extends pn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ae(t){return t instanceof Nh}class ds extends jt{constructor(){super("root");j(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new ds}getTopLevelElementOrThrow(){G(51)}getTextContent(){const n=this.__cachedText;return!us()&&je()._dirtyType!==0||n===null?super.getTextContent():n}remove(){G(52)}replace(n){G(53)}insertBefore(n){G(54)}insertAfter(n){G(55)}updateDOM(n,o){return!1}splice(n,o,i){for(const s of i)q(s)||Ae(s)||G(282);return super.splice(n,o,i)}static importJSON(n){return We().updateFromJSON(n)}collapseAtStart(){return!0}}function Qe(t){return t instanceof ds}function Dh(t){return new rl(new Map(t._nodeMap))}function Mu(){return new rl(new Map([["root",new ds]]))}function $h(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&G(130,n.name),q(t)){const o=e.children;Array.isArray(o)||G(59,n.name);const i=t.getChildren();for(let s=0;s<i.length;s++){const a=$h(i[s]);o.push(a)}}return e}class rl{constructor(e,n){j(this,"_nodeMap");j(this,"_selection");j(this,"_flushSync");j(this,"_readOnly");this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return wf(n&&n.editor||null,this,e)}clone(e){const n=new rl(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return wf(null,this,()=>({root:$h(We())}))}}class Lu extends jt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class fs extends jt{static getType(){return"paragraph"}static clone(e){return new fs(e.__key)}createDOM(e){const n=document.createElement("p"),o=Dr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:nce,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(tt(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Re().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Re();o.setTextFormat(e.format),o.setTextStyle(e.style);const i=this.getDirection();return o.setDirection(i),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||Q(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function nce(t){const e=Re();return t.style&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function Re(){return _n(new fs)}function ps(t){return t instanceof fs}const xe=0,bi=1,oce=4;function Bh(t,e,n,o){const i=t._keyToDOMMap;i.clear(),t._editorState=Mu(),t._pendingEditorState=o,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;s!==null&&(s.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function rce(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:i}=cl(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(i){const a=i.$transform;a&&e.add(a),o=i.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof pn&&a!==pn?a:void 0}}return e}function ice(t){const e=t||{},n=ece(),o=e.theme||{},i=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Mu(),l=e.namespace||(i!==null?i._config.namespace:zh()),c=e.editorState,u=[ds,xo,ls,cs,fs,Lu,...e.nodes||[]],{onError:d,html:p}=e,f=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let v=0;v<u.length;v++){let C=u[v],y=null,g=null;if(typeof C!="function"){const w=C;C=w.replace,y=w.with,g=w.withKlass||null}cl(C);const _=C.getType(),b=rce(C);m.set(_,{exportDOM:p&&p.export?p.export.get(C):void 0,klass:C,replace:y,replaceWithKlass:g,sharedNodeState:yle(u[v]),transforms:b})}}const h=new nr(a,i,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(v,C){const y=new Map,g=new Set,_=b=>{Object.keys(b).forEach(w=>{let k=y.get(w);k===void 0&&(k=[],y.set(w,k)),k.push(b[w])})};return v.forEach(b=>{const w=b.klass.importDOM;if(w==null||g.has(w))return;g.add(w);const k=w.call(b.klass);k!==null&&_(k)}),C&&_(C),y}(m,p?p.import:void 0),f,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class nr{constructor(e,n,o,i,s,a,l,c){j(this,"_headless");j(this,"_parentEditor");j(this,"_rootElement");j(this,"_editorState");j(this,"_pendingEditorState");j(this,"_compositionKey");j(this,"_deferred");j(this,"_keyToDOMMap");j(this,"_updates");j(this,"_updating");j(this,"_listeners");j(this,"_commands");j(this,"_nodes");j(this,"_decorators");j(this,"_pendingDecorators");j(this,"_config");j(this,"_dirtyType");j(this,"_cloneNotNeeded");j(this,"_dirtyLeaves");j(this,"_dirtyElements");j(this,"_normalizedNodes");j(this,"_updateTags");j(this,"_observer");j(this,"_key");j(this,"_onError");j(this,"_htmlConversions");j(this,"_window");j(this,"_editable");j(this,"_blockCursorElement");j(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=i,this._nodes=o,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=zh(),this._onError=s,this._htmlConversions=a,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&G(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);s===void 0&&G(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&i.delete(e)}}registerMutationListener(e,n,o){const i=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let a=s.get(n);a===void 0&&(a=new Set,s.set(n,a)),a.add(i);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,i),()=>{a.delete(i),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&G(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,i=Of(o).get(n.getType());if(!i)return;const s=new Map;for(const a of i.keys())s.set(a,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:o,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const o=this.getRegisteredNode(e);return o.transforms.add(n),o}registerNodeTransform(e,n){const o=this.registerNodeTransformToKlass(e,n),i=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);i.push(a)}return function(a,l){const c=Of(a.getEditorState()),u=[];for(const d of l){const p=c.get(d);p&&u.push(p)}u.length!==0&&a.update(()=>{for(const d of u)for(const p of d.keys()){const f=rt(p);f&&f.markDirty()}},a._pendingEditorState===null?{tag:Mi}:void 0)}(this,i.map(a=>a.klass.getType())),()=>{i.forEach(a=>a.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return se(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Dr(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,Bh(this,n,e,i),n!==null&&(this._config.disableEvents||Ile(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Hu(e),a=e.style;a.userSelect="text",a.whiteSpace="pre-wrap",a.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=2,Rm(this),this._updateTags.add(Mi),Wn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Dc.set(l,u);const d=pa.get(u)??0;d<1&&u.addEventListener("selectionchange",gh),pa.set(u,d+1),l.__lexicalEditor=c;const p=hh(l);for(let f=0;f<Nc.length;f++){const[m,h]=Nc[f],v=typeof h=="function"?C=>{sf(C)||(rf(C),(c.isEditable()||m==="click")&&h(C,c))}:C=>{if(sf(C))return;rf(C);const y=c.isEditable();switch(m){case"cut":return y&&se(c,Nu,C);case"copy":return se(c,Qa,C);case"paste":return y&&se(c,xu,C);case"dragstart":return y&&se(c,ah,C);case"dragover":return y&&se(c,lh,C);case"dragend":return y&&se(c,$le,C);case"focus":return y&&se(c,Lle,C);case"blur":return y&&se(c,Ole,C);case"drop":return y&&se(c,sh,C)}};l.addEventListener(m,v),p.push(()=>{l.removeEventListener(m,v)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Mi),Wn(this);Li("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&G(38);let o=e;o._readOnly&&(o=Dh(e),o._selection=e._selection?e._selection.clone():null),Fm(this);const i=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;i===null||i.isEmpty()||(a!=null&&s.add(a),Wn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Wn(this)}parseEditorState(e,n){return function(o,i,s){const a=Mu(),l=ct,c=Bt,u=ut,d=i._dirtyElements,p=i._dirtyLeaves,f=i._cloneNotNeeded,m=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Set,i._dirtyType=0,ct=a,Bt=!1,ut=i,Ou(null);try{const h=i._nodes;Bu(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&i._onError(h)}finally{i._dirtyElements=d,i._dirtyLeaves=p,i._cloneNotNeeded=f,i._dirtyType=m,ct=l,Bt=c,ut=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Wn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,i,s){o._updating?o._updates.push([i,s]):ol(o,i,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),zt(this,()=>{const i=te(),s=We();i!==null?i.dirty||vt(i.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),dce("focus"),fce(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=hn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Li("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}j(nr,"version");nr.version="0.38.1+prod.esm";let Vc=null;function Ou(t){Vc=t}let sce=1;function Mh(t,e){const n=Vu(t,e);return n===void 0&&G(30,e),n}function Vu(t,e){return t._nodes.get(e)}const ace=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Af(t){return Ae(Ur(t))}function Iu(t){const e=document.activeElement;if(!tt(e))return!1;const n=e.nodeName;return Ae(Ur(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&il(e)==null)}function ms(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Iu(e)&&Lh(e)===t}catch{return!1}}function Pu(t){return t instanceof nr}function Lh(t){let e=t;for(;e!=null;){const n=il(e);if(Pu(n))return n;e=hs(e)}return null}function il(t){return t?t.__lexicalEditor:null}function Wo(t){return el(t)||t.isToken()}function qn(t){return Wo(t)||t.isSegmented()}function to(t){return Jr(t)&&t.nodeType===3}function Oh(t){return Jr(t)&&t.nodeType===9}function zr(t){let e=t;for(;e!=null;){if(to(e))return e;e=e.firstChild}return null}function ya(t,e,n){const o=xt[e];if(n!==null&&(t&o)===(n&o))return t;let i=t^o;return e==="subscript"?i&=~xt.superscript:e==="superscript"?i&=~xt.subscript:e==="lowercase"?(i&=~xt.uppercase,i&=~xt.capitalize):e==="uppercase"?(i&=~xt.lowercase,i&=~xt.capitalize):e==="capitalize"&&(i&=~xt.lowercase,i&=~xt.uppercase),i}function Vh(t){return Q(t)||go(t)||Ae(t)}function lce(t,e){const n=function(){const a=Vc;return Vc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);lt(),xh();const o=je(),i=Ao(),s=""+sce++;i._nodeMap.set(s,t),q(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function Zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=i!==null?i.__key:null,c=i!==null?i.getWritable():null,u=s!==null?s.getWritable():null;i===null&&(o.__first=a),s===null&&(o.__last=l),c!==null&&(c.__next=a),u!==null&&(u.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function _a(t){xh(),ma(t)&&G(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=Ao(),i=je(),s=o._nodeMap,a=i._dirtyElements;n!==null&&function(c,u,d){let p=c;for(;p!==null;){if(d.has(p))return;const f=u.get(p);if(f===void 0)break;d.set(p,!1),p=f.__parent}}(n,s,a);const l=e.__key;i._dirtyType=1,q(t)?a.set(l,!0):i._dirtyLeaves.add(l)}function ft(t){lt();const e=je(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=rt(n);o!==null&&o.getWritable()}if(t!==null){const o=rt(t);o!==null&&o.getWritable()}}}function po(){return us()?null:je()._compositionKey}function rt(t,e){const n=(e||Ao())._nodeMap.get(t);return n===void 0?null:n}function Ih(t,e){const n=sl(t,je());return n!==void 0?rt(n,e):null}function sl(t,e){return t[`__lexicalKey_${e._key}`]}function Ur(t,e){let n=t;for(;n!=null;){const o=Ih(n,e);if(o!==null)return o;n=hs(n)}return null}function Ph(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Tf(t){return t.read(()=>We().getTextContent())}function We(){return Fh(Ao())}function Fh(t){return t._nodeMap.get("root")}function vt(t){lt();const e=Ao();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Er(t){const e=je(),n=function(o,i){let s=o;for(;s!=null;){const a=sl(s,i);if(a!==void 0)return a;s=hs(s)}return null}(t,e);return n===null?t===e.getRootElement()?rt("root"):null:rt(n)}function Rh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Fu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function zh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Uh(t){return to(t)?t.nodeValue:null}function Ru(t,e,n){const o=hn(on(e));if(o===null)return;const i=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(i!==null){let l=Uh(i);const c=Ur(i);if(l!==null&&Q(c)){if(l===Ja&&n){const u=n.length;l=n,s=u,a=u}l!==null&&zu(c,l,s,a,t)}}}function zu(t,e,n,o,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const a=s.isComposing();let l=e;(a||i)&&e[e.length-1]===Ja&&(l=e.slice(0,-1));const c=s.getTextContent();if(i||l!==c){if(l===""){if(ft(null),ji||Rr||Wi)s.remove();else{const v=je();setTimeout(()=>{v.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Yr(),p=s.getTextContentSize(),f=po(),m=s.getKey();if(s.isToken()||f!==null&&m===f&&!a||K(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===t.__key&&d.anchor.offset===0&&!s.canInsertTextBefore()&&!a||d.focus.key===t.__key&&d.focus.offset===p&&!s.canInsertTextAfter()&&!a))return void s.markDirty();const h=te();if(!K(h)||n===null||o===null)return void Nf(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const v=Ke(s.getTextContent());s.replace(v),s=v}Nf(s,l,h)}}}function Nf(t,e,n){if(t.setTextContent(e),K(n)){const o=t.getKey();for(const i of["anchor","focus"]){const s=n[i];s.type==="text"&&s.key===o&&(s.offset=yo(t,s.offset,"clamp"))}}}function Rs(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function cce(t,e){return Rs(t,e,"altKey")&&Rs(t,e,"ctrlKey")&&Rs(t,e,"shiftKey")&&Rs(t,e,"metaKey")}function Le(t,e,n){return cce(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const Hn={ctrlKey:!un,metaKey:un},Df={altKey:un,ctrlKey:!un};function $f(t){return t.key==="Backspace"}function Bf(t){return Le(t,"a",Hn)}function uce(t){const e=We();if(K(t)){const n=t.anchor,o=t.focus,i=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(i.getKey(),0,"element"),o.set(i.getKey(),i.getChildrenSize(),"element"),aa(t),t}{const n=e.select(0,e.getChildrenSize());return vt(aa(n)),n}}function Dr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const i=t[e];if(typeof i=="string"){const s=Om(i);return n[e]=s,s}return i}function Uu(t,e,n,o,i){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&G(33,s);const c=l.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(a),p=d==="destroyed"&&i==="created";(d===void 0||p)&&u.set(a,p?"updated":i)}function Mf(t,e,n){const o=t.getParent();let i=n,s=t;return o!==null&&(e&&n===0?(i=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?i-1:i)}function Ic(t,e){const n=t.offset;if(t.type==="element")return Mf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const i=e?o.getPreviousSibling():o.getNextSibling();return i===null?Mf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):i}}return null}function Hh(t){const e=on(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function se(t,e,n){return function(o,i,s){const a=Fu(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(i);if(d!==void 0){const p=d[l];if(p!==void 0){const f=Array.from(p),m=f.length;let h=!1;if(zt(u,()=>{for(let v=0;v<m;v++)if(f[v](s,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function al(t){return!Qe(t)&&!t.isLastChild()&&!t.isInline()}function or(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&G(75,e),n}function hs(t){const e=t.assignedSlot||t.parentElement;return Rc(e)?e.host:e}function qh(t){return Oh(t)?t:tt(t)?t.ownerDocument:null}function dce(t){lt(),je()._updateTags.add(t)}function fce(t){lt(),je()._deferred.push(t)}function Pc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Hu(t){const e=qh(t);return e?e.defaultView:null}function on(t){const e=t._window;return e===null&&G(78),e}function pce(t){let e=t.getParentOrThrow();for(;e!==null;){if(At(e))return e;e=e.getParentOrThrow()}return e}function At(t){return Qe(t)||q(t)&&t.isShadowRoot()}function _n(t){const e=je(),n=t.getType(),o=Vu(e,n);o===void 0&&G(200,t.constructor.name,n);const{replace:i,replaceWithKlass:s}=o;if(i!==null){const a=i(t),l=a.constructor;return s!==null?a instanceof s||G(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||G(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&G(203,t.constructor.name,n,l.name,l.getType()),a}return t}function tc(t,e){!Qe(t.getParent())||q(e)||Ae(e)||G(99)}function mce(t){const e=rt(t);return e===null&&G(63,t),e}function nc(t){return(Ae(t)||q(t)&&!t.canBeEmpty())&&!t.isInline()}function Fc(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function hn(t){return yn?(t||window).getSelection():null}function hce(t){const e=Hu(t);return e?e.getSelection():null}function jh(t){return tt(t)&&t.tagName==="A"}function tt(t){return Jr(t)&&t.nodeType===1}function Jr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Rc(t){return Jr(t)&&t.nodeType===11}function zc(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function Ca(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Gt(t){if(Ae(t)&&!t.isInline())return!0;if(!q(t)||At(t))return!1;const e=t.getFirstChild(),n=e===null||go(e)||Q(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function ll(){return je()}const Lf=new WeakMap,gce=new Map;function Of(t){if(!t._readOnly&&t.isEmpty())return gce;t._readOnly||G(192);let e=Lf.get(t);return e||(e=function(n){const o=new Map;for(const[i,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(i,s)}return o}(t),Lf.set(t,e)),e}function Wh(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function vce(t){return(e=Wh(t))[vh]=!0,e;var e}function qu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function yce(t){return t.__lexicalUnmanaged===!0}function ki(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==pn[e]}function cl(t){const e=j1 in t.prototype?t.prototype[j1]():void 0,n=function(a){if(!(a===pn||a.prototype instanceof pn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{nr.version&&(c=JSON.parse(nr.version))}catch{}G(290,a.name,l,c)}return a===Nh||a===jt||a===pn}(t),o=!n&&ki(t,"getType")?t.getType():void 0;let i,s=o;if(e)if(o)i=e[o];else for(const[a,l]of Object.entries(e))s=a,i=l;if(!n&&s&&(ki(t,"getType")||(t.getType=()=>s),ki(t,"clone")||(t.clone=a=>(Ou(a),new t)),ki(t,"importJSON")||(t.importJSON=i&&i.$importJSON||(a=>new t().updateFromJSON(a))),!ki(t,"importDOM")&&i)){const{importDOM:a}=i;a&&(t.importDOM=()=>a)}return{ownNodeConfig:i,ownNodeType:s}}function _ce(t){const e=ll();return lt(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const en=(t,e)=>{let n=t;for(;n!=null&&!Qe(n);){if(e(n))return n;n=n.getParent()}return null},Cce={next:"previous",previous:"next"};class ju{constructor(e){j(this,"origin");this.origin=e}[Symbol.iterator](){return Zh({hasNext:Hr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return mt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return mt(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const i=o===this.direction?n:Array.from(n).reverse();let s=this;const a=this.getParentAtCaret(),l=new Map;for(let c=s.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();l.set(u.getKey(),u)}for(const c of i){if(l.size>0){const u=s.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(a)&&c.remove(),u.replace(c)}}else u===null&&G(263,Array.from(l).join(" "))}else s.insert(c);s=mt(c,this.direction)}for(const c of l.values())c.remove();return this}}class Xi extends ju{constructor(){super(...arguments);j(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:gn(n,this.direction)}getParentCaret(n="root"){return mt(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Xr(this.direction);return mt(this.getNodeAtCaret(),n)||gn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Xi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const bce={root:Qe,shadowRoot:At};function Xr(t){return Cce[t]}function Wu(t,e="root"){return bce[e](t)?null:t}class rr extends ju{constructor(){super(...arguments);j(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:mt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return q(this.origin)?gn(this.origin,this.direction):null}getParentCaret(n="root"){return mt(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Xr(this.direction);return mt(this.getNodeAtCaret(),n)||gn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof rr&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof rr||n instanceof ir)&&this.direction===n.direction&&this.origin.is(n.origin)}}class ir extends ju{constructor(n,o){super(n);j(this,"type","text");j(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:sr(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return mt(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return sr(this.origin,Xr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof ir&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof rr||n instanceof ir)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return mt(this.origin,this.direction)}}function vo(t){return t instanceof ir}function Hr(t){return t instanceof rr}function $n(t){return t instanceof Xi}const kce={next:class extends ir{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ir{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},wce={next:class extends rr{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends rr{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ece={next:class extends Xi{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Xi{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function mt(t,e){return t?new wce[e](t):null}function sr(t,e,n){return t?new kce[e](t,yo(t,n)):null}function yo(t,e,n="error"){const o=t.getTextContentSize();let i=e==="next"?o:e==="previous"?0:e;return(i<0||i>o)&&(n!=="clamp"&&Mm(284,String(e),String(o),t.getKey()),i=i<0?0:o),i}function Vf(t,e){return new xce(t,e)}function gn(t,e){return q(t)?new Ece[e](t):null}function Sce(t){return t&&t.getChildCaret()||t}function Zu(t){return t&&Sce(t.getAdjacentCaret())}class Ku{constructor(e,n,o){j(this,"type","node-caret-range");j(this,"direction");j(this,"anchor");j(this,"focus");this.anchor=e,this.focus=n,this.direction=o}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new Ku(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i].getLatest();return vo(s)?function(a,l){const{direction:c,origin:u}=a,d=yo(u,l==="focus"?Xr(c):c);return Vf(a,d-a.offset)}(s,i):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:i}=n,{caret:s}=o;if(i.isSameNodeCaret(s))return[Vf(i,s.offset-i.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=vo(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),i=vo(o),s=a=>a.isSameNodeCaret(o)?null:Zu(a)||a.getParentCaret(e);return Zh({hasNext:a=>a!==null&&!(i&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class xce{constructor(e,n){j(this,"type","slice");j(this,"caret");j(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,i]=this.getSliceIndices(),s=e.getTextContent();return sr(e.setTextContent(s.slice(0,o)+s.slice(i)),n,o)}}function Gu(t){return wo(t,mt(We(),t.direction))}function Ace(t){return wo(t,t)}function wo(t,e){return t.direction!==e.direction&&G(265),new Ku(t,e,t.direction)}function Zh(t){const{initial:e,hasNext:n,step:o,map:i}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:i(s)};return s=o(s),a}}}function Kh(t,e){const n=Gs(t.origin,e.origin);switch(n===null&&G(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",i=e.type==="text";return o&&i?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:i?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Gh(n)}}function Gh(t){const{a:e,b:n}=t,o=e.__key,i=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===i)return-1;if(a.__key===o)return 1}return s===null?1:-1}function zs(t,e){return e.is(t)}function If(t){return q(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Gs(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,i]=If(t);o;i=o,o=o.getParent())n.set(o,i);for(let[o,i]=If(e);o;i=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(zs(t,o)||G(276),{commonAncestor:o,type:"ancestor"}):i===null?(zs(e,o)||G(277),{commonAncestor:o,type:"descendant"}):((q(s)||zs(t,s))&&(q(i)||zs(e,i))&&o.is(s.getParent())&&o.is(i.getParent())||G(278),{a:s,b:i,commonAncestor:o,type:"branch"})}return null}function Xn(t,e){const{type:n,key:o,offset:i}=t,s=mce(t.key);return n==="text"?(Q(s)||G(266,s.getType(),o),sr(s,e,i)):(q(s)||G(267,s.getType(),o),Dce(s,t.offset,e))}function ar(t,e){const{origin:n,direction:o}=e,i=o==="next";vo(e)?t.set(n.getKey(),e.offset,"text"):Hr(e)?Q(n)?t.set(n.getKey(),yo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):($n(e)&&q(n)||G(268),t.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function Tce(t){const e=te(),n=K(e)?e:nl();return Ys(n,t),vt(n),n}function Ys(t,e){ar(t.anchor,e.anchor),ar(t.focus,e.focus)}function Pf(t){const{anchor:e,focus:n}=t,o=Xn(e,"next"),i=Xn(n,"next"),s=Kh(o,i)<=0?"next":"previous";return wo(qr(o,s),qr(i,s))}function Yu(t){const{direction:e,origin:n}=t,o=mt(n,Xr(e)).getNodeAtCaret();return o?mt(o,e):gn(n.getParentOrThrow(),e)}function Ff(t,e="root"){const n=[t];for(let o=$n(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Yu(o));return n}function oc(t){return!!t&&t.origin.isAttached()}function Nce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let i=e;const s=Jh(t,o),a=Ff(s.anchor,n),l=Ff(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if($n(h))c.add(h.origin.getKey());else if(Hr(h)){const{origin:v}=h;q(v)&&!c.has(v.getKey())||u.push(v)}for(const h of u)h.remove();for(const h of s.getTextSlices()){if(!h)continue;const{origin:v}=h.caret,C=v.getTextContentSize(),y=Yu(mt(v,o)),g=v.getMode();if(Math.abs(h.distance)===C&&i==="removeEmptySlices"||g==="token"&&h.distance!==0)y.remove();else if(h.distance!==0){i="removeEmptySlices";let _=h.removeTextSlice();const b=h.caret.origin;if(g==="segmented"){const w=_.origin,k=Ke(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());y.replaceOrInsert(k),_=sr(k,o,_.offset)}b.is(a[0].origin)&&(a[0]=_),b.is(l[0].origin)&&(l[0]=_.getFlipped())}}let d,p;for(const h of a)if(oc(h)){d=Jt(h);break}for(const h of l)if(oc(h)){p=Jt(h);break}const f=function(h,v,C){if(!h||!v)return null;const y=h.getParentAtCaret(),g=v.getParentAtCaret();if(!y||!g)return null;const _=y.getParents().reverse();_.push(y);const b=g.getParents().reverse();b.push(g);const w=Math.min(_.length,b.length);let k;for(k=0;k<w&&_[k]===b[k];k++);const x=(N,I)=>{let A;for(let M=k;M<N.length;M++){const D=N[M];if(At(D))return;!A&&I(D)&&(A=D)}return A},S=x(_,Gt),E=S&&x(b,N=>C.has(N.getKey())&&Gt(N));return S&&E?[S,E]:null}(d,p,c);if(f){const[h,v]=f;gn(h,"previous").splice(0,v.getChildren()),v.remove()}const m=[d,p,...a,...l].find(oc);if(m)return Ace(qr(Jt(m),t.direction));G(269,JSON.stringify(a.map(h=>h.origin.__key)))}function Jt(t){const e=function(i){let s=i;for(;$n(s);){const a=Zu(s);if(!$n(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(Q(e.origin))return vo(e)?e:sr(e.origin,n,n);const o=e.getAdjacentCaret();return Hr(o)&&Q(o.origin)?sr(o.origin,n,Xr(n)):e}function Yh(t){return vo(t)&&t.offset!==yo(t.origin,t.direction)}function qr(t,e){return t.direction===e?t:t.getFlipped()}function Jh(t,e){return t.direction===e?t:wo(qr(t.focus,e),qr(t.anchor,e))}function Dce(t,e,n){let o=gn(t,"next");for(let i=0;i<e;i++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return qr(o,n)}const Uc=new Map;function Xh(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[i,s]=o.split(/:([^]+)/);i&&s&&(e[i.trim()]=s.trim())}return e}function Rf(t){let e=Uc.get(t);return e===void 0&&(e=Xh(t),Uc.set(t,e)),e}function Qh(t){const e=ll().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function eg(t){return Qh(Qe(t)?t:t.getParentOrThrow())}function zf(t){const e=eg(t);return e!==null&&e.direction==="rtl"}function tg(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!qn(e)&&o!==null){const[i,s]=o,a=t.isBackward(),l=i.getNode(),c=s.getNode(),u=e.is(l),d=e.is(c);if(u||d){const[p,f]=Lc(t),m=l.is(c),h=e.is(a?c:l),v=e.is(a?l:c);let C,y=0;m?(y=p>f?f:p,C=p>f?p:f):h?(y=a?f:p,C=void 0):v&&(y=0,C=a?p:f);const g=e.__text.slice(y,C);g!==e.__text&&(n==="clone"&&(e=vce(e)),e.__text=g)}}return e}function $ce(t){const e=t.getStyle(),n=Xh(e);Uc.set(e,n)}function Bce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function rc(t,e,n=Bce){if(t===null)return;const o=t.getStartEndPoints(),i=new Map;let s=null;if(o){const[a,l]=o;s=nl(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=en(a.getNode(),Gt),u=en(l.getNode(),Gt);q(c)&&i.set(c.getKey(),c),q(u)&&i.set(u.getKey(),u)}for(const a of t.getNodes())if(q(a)&&Gt(a))i.set(a.getKey(),a);else if(o===null){const l=en(a,Gt);q(l)&&i.set(l.getKey(),l)}for(const[a,l]of i){const c=e();n(l,c),l.replace(c,!0),s&&(a===s.anchor.key&&s.anchor.set(c.getKey(),s.anchor.offset,s.anchor.type),a===s.focus.key&&s.focus.set(c.getKey(),s.focus.offset,s.focus.type))}s&&t.is(te())&&vt(s)}function ng(t){const e=og(t);return e!==null&&e.writingMode==="vertical-rl"}function og(t){const e=t.anchor.getNode();return q(e)?Qh(e):eg(e)}function Uf(t,e){let n=ng(t)?!e:e;rg(t)&&(n=!n);const o=Xn(t.focus,n?"previous":"next");if(Yh(o))return!1;for(const i of Gu(o)){if($n(i))return!i.origin.isInline();if(!q(i.origin)){if(Ae(i.origin))return!0;break}}return!1}function Mce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function rg(t){const e=og(t);return e!==null&&e.direction==="rtl"}function Hf(t,e,n){const o=rg(t);let i;i=ng(t)||o?!n:n,Mce(t,e,i,"character")}function Lce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ju=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Oce=Ju&&"documentMode"in document?document.documentMode:null;!(!Ju||!("InputEvent"in window)||Oce)&&"getTargetRanges"in new window.InputEvent("input");function ig(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}function gs(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const Vce=Ju;function Qn(t,...e){const n=ig(...e);n.length>0&&t.classList.add(...n)}function Xu(t,...e){const n=ig(...e);n.length>0&&t.classList.remove(...n)}function Ice(t){return t?t.getAdjacentCaret():null}function Pce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Fce(t){const e=en(t,n=>q(n)&&!n.isInline());return q(e)||Lce(4,t.__key),e}function zo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function mo(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Hc(t){let e=1,n=t.getParent();for(;n!=null;){if(Te(n)){const o=n.getParent();if(ge(o)){e++,n=o.getParent();continue}mo(40)}return e}return e}function qc(t){let e=t.getParent();ge(e)||mo(40);let n=e;for(;n!==null;)n=n.getParent(),ge(n)&&(e=n);return e}function sg(t){let e=[];const n=t.getChildren().filter(Te);for(let o=0;o<n.length;o++){const i=n[o],s=i.getFirstChild();ge(s)?e=e.concat(sg(s)):e.push(i)}return e}function An(t){return Te(t)&&ge(t.getFirstChild())}function qf(t){return Wt().append(t)}function ag(t,e){return Te(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function jf(t){const e=te();if(e!==null){let n=e.getNodes();if(K(e)){const i=e.getStartEndPoints();i===null&&mo(143);const[s]=i,a=s.getNode(),l=a.getParent();if(At(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Re();a.append(u),n=u.select().getNodes()}}else if(ag(a,n)){const c=Mt(t);if(At(l)){a.replace(c);const u=Wt();q(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(Te(a)){const u=a.getParentOrThrow();lr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let i=0;i<n.length;i++){const s=n[i];if(q(s)&&s.isEmpty()&&!Te(s)&&!o.has(s.getKey())){Wf(s,t);continue}let a=Vh(s)?s.getParent():Te(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(ge(a)){if(!o.has(l)){const c=Mt(t);lr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(At(c)&&!o.has(l)){o.add(l),Wf(a,t);break}a=c}}}}}function lr(t,e){t.splice(t.getChildrenSize(),0,e)}function Wf(t,e){if(ge(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),i=Wt();let s;if(lr(i,t.getChildren()),ge(n)&&e===n.getListType())n.append(i),ge(o)&&e===o.getListType()&&(lr(n,o.getChildren()),o.remove()),s=n;else if(ge(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(i),s=o;else{const a=Mt(e);a.append(i),t.replace(a),s=a}return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),t.remove(),s}function Qu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&An(n)&&An(o)&&(Qu(n.getFirstChild(),o.getFirstChild()),o.remove());const i=e.getChildren();i.length>0&&t.append(...i),e.remove()}function Rce(){const t=te();if(K(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(ag(o,n))e.add(qc(o));else for(let i=0;i<n.length;i++){const s=n[i];if(Vh(s)){const a=Pce(s,To);a!=null&&e.add(qc(a))}}for(const i of e){let s=i;const a=sg(i);for(const l of a){const c=Re().setTextStyle(t.style).setTextFormat(t.format);lr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&ar(t.anchor,Jt(gn(c,"next"))),l.__key===t.focus.key&&ar(t.focus,Jt(gn(c,"next"))),l.remove()}i.remove()}}}function lg(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())Te(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),ge(o.getFirstChild())||n++)}function zce(t){const e=new Set;if(An(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),i=t.getPreviousSibling();if(An(o)&&An(i)){const s=i.getFirstChild();if(ge(s)){s.append(t);const a=o.getFirstChild();ge(a)&&(lr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(An(o)){const s=o.getFirstChild();if(ge(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(An(i)){const s=i.getFirstChild();ge(s)&&s.append(t)}else if(ge(n)){const s=Wt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=Mt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),i?i.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function Uce(t){if(An(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(ge(n?n.getParent():void 0)&&Te(n)&&ge(e)){const o=e?e.getFirstChild():void 0,i=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(i))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=Wt(),l=Mt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=Wt(),u=Mt(s);c.append(u),lr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Hce(){const t=te();if(!K(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!Te(e)||e.getChildrenSize()!==0)return!1;const n=qc(e),o=e.getParent();ge(o)||mo(40);const i=o.getParent();let s;if(At(i))s=Re(),n.insertAfter(s);else{if(!Te(i))return!1;s=Wt(),i.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=Mt(o.getListType());if(Te(s)){const c=Wt();c.append(l),s.insertAfter(c)}else s.insertAfter(l);l.append(...a)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const u=c.getParent();if(u==null||!Te(u)&&!ge(u))break;c=u}c.remove()}(e),!0}function ba(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}let To=class extends jt{constructor(n=1,o=void 0,i){super(i);j(this,"__value");j(this,"__checked");this.__value=n===void 0?1:n,this.__checked=o}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const o=n.getParent();ge(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:jt,importDOM:{li:()=>({conversion:qce,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const o=document.createElement("li");return this.updateListItemDOM(null,o,n),o}updateListItemDOM(n,o,i){(function(l,c,u){const d=c.getParent();!ge(d)||d.getListType()!=="check"||ge(c.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),u&&c.__checked===u.__checked||l.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(o,this,n),o.value=this.__value,function(l,c,u){const d=[],p=[],f=c.list,m=f?f.listitem:void 0;let h;if(f&&f.nested&&(h=f.nested.listitem),m!==void 0&&d.push(...ba(m)),f){const v=u.getParent(),C=ge(v)&&v.getListType()==="check",y=u.getChecked();C&&!y||p.push(f.listitemUnchecked),C&&y||p.push(f.listitemChecked),C&&d.push(y?f.listitemChecked:f.listitemUnchecked)}if(h!==void 0){const v=ba(h);u.getChildren().some(C=>ge(C))?d.push(...v):p.push(...v)}p.length>0&&Xu(l,...p),d.length>0&&Qn(l,...d)}(o,i.theme,this);const s=n?n.__style:"",a=this.__style;s!==a&&(a===""?o.removeAttribute("style"):o.style.cssText=a),function(l,c,u){const d=Rf(c.__textStyle);for(const p in d)l.style.setProperty(`--listitem-marker-${p}`,d[p]);if(u)for(const p in Rf(u.__textStyle))p in d||l.style.removeProperty(`--listitem-marker-${p}`)}(o,this,n)}updateDOM(n,o,i){const s=o;return this.updateListItemDOM(n,s,i),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),i=this.getFormatType();i&&(o.style.textAlign=i);const s=this.getDirection();return s&&(o.dir=s),{element:o}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let o=0;o<n.length;o++){const i=n[o];if(q(i)&&this.canMergeWith(i)){const s=i.getChildren();this.append(...s),i.remove()}else super.append(i)}return this}replace(n,o){if(Te(n))return super.replace(n);this.setIndent(0);const i=this.getParentOrThrow();if(!ge(i))return n;if(i.__first===this.getKey())i.insertBefore(n);else if(i.__last===this.getKey())i.insertAfter(n);else{const s=Mt(i.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}i.insertAfter(n),n.insertAfter(s)}return o&&(q(n)||mo(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),i.getChildrenSize()===0&&i.remove(),n}insertAfter(n,o=!0){const i=this.getParentOrThrow();if(ge(i)||mo(39),Te(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(i.insertAfter(n,o),s.length!==0){const a=Mt(i.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),i=this.getNextSibling();super.remove(n),o&&i&&An(o)&&An(i)&&(Qu(o.getFirstChild(),i.getFirstChild()),i.remove())}insertNewAfter(n,o=!0){const i=Wt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(i,o),i}collapseAtStart(n){const o=Re();this.getChildren().forEach(l=>o.append(l));const i=this.getParentOrThrow(),s=i.getParentOrThrow(),a=Te(s);if(i.getChildrenSize()===1)if(a)i.remove(),s.select();else{i.insertBefore(o),i.remove();const l=n.anchor,c=n.focus,u=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(u,c.offset,"element")}else i.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const i=this.getParent();return ge(i)&&(o=i.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),i=0;for(;Te(o);)o=o.getParentOrThrow().getParentOrThrow(),i++;return i}setIndent(n){typeof n!="number"&&mo(117),(n=Math.floor(n))>=0||mo(199);let o=this.getIndent();for(;o!==n;)o<n?(zce(this),o++):(Uce(this),o--);return this}canInsertAfter(n){return Te(n)}canReplaceWith(n){return Te(n)}canMergeWith(n){return Te(n)||ps(n)}extractWithChild(n,o){if(!K(o))return!1;const i=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Mt("bullet")}canMergeWhenEmpty(){return!0}};function qce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Zf(n)}if(t.classList.contains("joplin-checkbox")){for(const n of t.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return Zf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:Wt(e==="true"||e!=="false"&&void 0)}}function Zf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:Wt(t.hasAttribute("checked"))}}function Wt(t){return _n(new To(void 0,t))}function Te(t){return t instanceof To}let ur=class extends jt{constructor(n="number",o=1,i){super(i);j(this,"__tag");j(this,"__start");j(this,"__listType");const s=Wce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const i=o.getNextSibling();ge(i)&&o.getListType()===i.getListType()&&Qu(o,i)})(n),lg(n)},extends:jt,importDOM:{ol:()=>({conversion:Gf,priority:0}),ul:()=>({conversion:Gf,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const i=this.__tag,s=document.createElement(i);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Kf(s,n.theme,this),s}updateDOM(n,o,i){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Kf(o,i.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return tt(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,i){let s=i;for(let a=0;a<i.length;a++){const l=i[a];Te(l)||(s===i&&(s=[...i]),s[a]=Wt().append(!q(l)||ge(l)||l.isInline()?l:Ke(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return Te(n)}};function Kf(t,e,n){const o=[],i=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Hc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let p;const f=s.nested,m=s.checklist;if(f!==void 0&&f.list&&(p=f.list),d!==void 0&&o.push(d),m!==void 0&&n.__listType==="check"&&o.push(m),u!==void 0){o.push(...ba(u));for(let h=0;h<a.length;h++)h!==c&&i.push(n.__tag+h)}if(p!==void 0){const h=ba(p);l>1?o.push(...h):i.push(...h)}}i.length>0&&Xu(t,...i),o.length>0&&Qn(t,...o)}function jce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(Te(o)){e.push(o);const i=o.getChildren();i.length>1&&i.forEach(s=>{ge(s)&&e.push(qf(s))})}else e.push(qf(o))}return e}function Gf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=Mt("number",t.start):e==="ul"&&(n=function(o){if(o.getAttribute("__lexicallisttype")==="check"||o.classList.contains("contains-task-list")||o.getAttribute("data-is-checklist")==="1")return!0;for(const i of o.childNodes)if(tt(i)&&i.hasAttribute("aria-checked"))return!0;return!1}(t)?Mt("check"):Mt("bullet")),{after:jce,node:n}}const Wce={ol:"number",ul:"bullet"};function Mt(t="number",e=1){return _n(new ur(t,e))}function ge(t){return t instanceof ur}const Zce=me("UPDATE_LIST_START_COMMAND"),cg=me("INSERT_UNORDERED_LIST_COMMAND"),ug=me("INSERT_ORDERED_LIST_COMMAND"),Kce=me("REMOVE_LIST_COMMAND");function Gce(t){return gs(t.registerCommand(ug,()=>(jf("number"),!0),bi),t.registerCommand(Zce,e=>{const{listNodeKey:n,newStart:o}=e,i=rt(n);return!!ge(i)&&(i.getListType()==="number"&&(i.setStart(o),lg(i)),!0)},bi),t.registerCommand(cg,()=>(jf("bullet"),!0),bi),t.registerCommand(Kce,()=>(Rce(),!0),bi),t.registerCommand(Gi,()=>Hce(),bi),t.registerNodeTransform(To,e=>{const n=e.getFirstChild();if(n){if(Q(n)){const o=n.getStyle(),i=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==i&&e.setTextFormat(i)}}else{const o=te();K(o)&&(o.style!==e.getTextStyle()||o.format!==e.getTextFormat())&&o.isCollapsed()&&e.is(o.anchor.getNode())&&e.setTextStyle(o.style).setTextFormat(o.format)}}),t.registerNodeTransform(xo,e=>{const n=e.getParent();if(Te(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),i=e.getFormat();o===n.getTextStyle()&&i===n.getTextFormat()||n.setTextStyle(o).setTextFormat(i)}}))}function Yce(t){const e=n=>{const o=n.getParent();if(ge(n.getFirstChild())||!ge(o))return;const i=en(n,s=>Te(s)&&ge(s.getParent())&&Te(s.getPreviousSibling()));if(i===null&&n.getIndent()>0)n.setIndent(0);else if(Te(i)){const s=i.getPreviousSibling();if(Te(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;ge(d);){const p=d.getLastChild();if(!Te(p))break;u=p,d=u.getFirstChild()}return u}(s),l=a.getParent();if(ge(l)){const c=Hc(l);c+1<Hc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(ur,n=>{const o=[n];for(;o.length>0;){const i=o.shift();if(ge(i)){for(const s of i.getChildren())if(Te(s)){e(s);const a=s.getFirstChild();ge(a)&&o.push(a)}}}})}function Jce(t,e){const n=Oh(e)?e.body.childNodes:e.childNodes;let o=[];const i=[];for(const s of n)if(!fg.has(s.nodeName)){const a=pg(s,t,i,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Lu&&a.insertAfter(mn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(i),o}function Xce(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),o=We().getChildren();for(let i=0;i<o.length;i++)dg(t,o[i],n,e);return n.innerHTML}function dg(t,e,n,o=null){let i=o===null||e.isSelected(o);const s=q(e)&&e.excludeFromCopy("html");let a=e;o!==null&&Q(e)&&(a=tg(o,e,"clone"));const l=q(a)?a.getChildren():[],c=Vu(t,a.getType());let u;u=c&&c.exportDOM!==void 0?c.exportDOM(t,a):a.exportDOM(t);const{element:d,after:p}=u;if(!d)return!1;const f=document.createDocumentFragment();for(let m=0;m<l.length;m++){const h=l[m],v=dg(t,h,f,o);!i&&q(e)&&v&&e.extractWithChild(h,o,"html")&&(i=!0)}if(i&&!s){if((tt(d)||Rc(d))&&d.append(f),n.append(d),p){const m=p.call(a,d);m&&(Rc(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(f);return i}const fg=new Set(["STYLE","SCRIPT"]);function pg(t,e,n,o,i=new Map,s){let a=[];if(fg.has(t.nodeName))return a;let l=null;const c=function(h,v){const{nodeName:C}=h,y=v._htmlConversions.get(C.toLowerCase());let g=null;if(y!==void 0)for(const _ of y){const b=_(h);b!==null&&(g===null||(g.priority||0)<=(b.priority||0))&&(g=b)}return g!==null?g.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const h=u.node;if(l=Array.isArray(h)?h[h.length-1]:h,l!==null){for(const[,v]of i)if(l=v(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&i.set(t.nodeName,u.forChild)}const p=t.childNodes;let f=[];const m=(l==null||!At(l))&&(l!=null&&Oc(l)||o);for(let h=0;h<p.length;h++)f.push(...pg(p[h],e,n,m,new Map(i),l));return d!=null&&(f=d(f)),Ca(t)&&(f=Qce(t,f,m?()=>{const h=new Lu;return n.push(h),h}:Re)),l==null?f.length>0?a=a.concat(f):Ca(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:zc(h.nextSibling)&&zc(h.previousSibling)}(t)&&(a=a.concat(mn())):q(l)&&l.append(...f),a}function Qce(t,e,n){const o=t.style.textAlign,i=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Oc(l))o&&!l.getFormat()&&l.setFormat(o),i.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Oc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),i.push(c),s=[]}}return i}function ka(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function eue(t,e=te()){return e==null&&ka(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?"":Xce(t,e)}function tue(t,e=te()){return e==null&&ka(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(nue(t,e))}function Yf(t,e,n){const o=t.getData("application/x-lexical-editor");if(o)try{const l=JSON.parse(o);if(l.namespace===n._config.namespace&&Array.isArray(l.nodes))return Jf(n,oue(l.nodes),e)}catch(l){console.error(l)}const i=t.getData("text/html"),s=t.getData("text/plain");if(i&&s!==i)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(i),"text/html");return Jf(n,Jce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(K(e)){const l=a.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const u=te();if(K(u)){const d=l[c];d===`
29
+ `?o.push(mn()):a===" "?o.push(Gr()):o.push(Ke(a))}this.insertNodes(o)}insertText(e){const n=this.anchor,o=this.focus,i=this.format,s=this.style;let a=n,l=o;!this.isCollapsed()&&o.isBefore(n)&&(a=o,l=n),a.type==="element"&&function(C,y,g,_){const b=C.getNode(),w=b.getChildAtIndex(C.offset),k=Ke();if(k.setFormat(g),k.setStyle(_),ps(w))w.splice(0,0,[k]);else{const A=Qe(b)?Re().append(k):k;w===null?b.append(A):w.insertBefore(A)}C.is(y)&&y.set(k.__key,0,"text"),C.set(k.__key,0,"text")}(a,l,i,s),l.type==="element"&&ar(l,Jt(Xn(l,"next")));const c=a.offset;let u=l.offset;const d=this.getNodes(),p=d.length;let f=d[0];Q(f)||G(26);const m=f.getTextContent().length,h=f.getParentOrThrow();let v=d[p-1];if(p===1&&l.type==="element"&&(u=m,l.set(a.key,u,"text")),this.isCollapsed()&&c===m&&(qn(f)||!f.canInsertTextAfter()||!h.canInsertTextAfter()&&f.getNextSibling()===null)){let C=f.getNextSibling();if(Q(C)&&C.canInsertTextBefore()&&!qn(C)||(C=Ke(),C.setFormat(i),C.setStyle(s),h.canInsertTextAfter()?f.insertAfter(C):h.insertAfter(C)),C.select(0,0),f=C,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&c===0&&(qn(f)||!f.canInsertTextBefore()||!h.canInsertTextBefore()&&f.getPreviousSibling()===null)){let C=f.getPreviousSibling();if(Q(C)&&!qn(C)||(C=Ke(),C.setFormat(i),h.canInsertTextBefore()?f.insertBefore(C):h.insertBefore(C)),C.select(),f=C,e!=="")return void this.insertText(e)}else if(f.isSegmented()&&c!==m){const C=Ke(f.getTextContent());C.setFormat(i),f.replace(C),f=C}else if(!this.isCollapsed()&&e!==""){const C=v.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||U(C)&&(!C.canInsertTextBefore()||!C.canInsertTextAfter()))return this.insertText(""),bh(this.anchor,this.focus,null),void this.insertText(e)}if(p===1){if(Wo(f)){const _=Ke(e);return _.select(),void f.replace(_)}const C=f.getFormat(),y=f.getStyle();if(c!==u||C===i&&y===s){if(el(f)){const _=Ke(e);return _.setFormat(i),_.setStyle(s),_.select(),void f.replace(_)}}else{if(f.getTextContent()!==""){const _=Ke(e);if(_.setFormat(i),_.setStyle(s),_.select(),c===0)f.insertBefore(_,!1);else{const[b]=f.splitText(c);b.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(s)}const g=u-c;f=f.spliceText(c,g,e,!0),f.getTextContent()===""?f.remove():this.anchor.type==="text"&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=C,this.style=y))}else{const C=new Set([...f.getParentKeys(),...v.getParentKeys()]),y=U(f)?f:f.getParentOrThrow();let g=U(v)?v:v.getParentOrThrow(),_=v;if(!y.is(g)&&g.isInline())do _=g,g=g.getParentOrThrow();while(g.isInline());if(l.type==="text"&&(u!==0||v.getTextContent()==="")||l.type==="element"&&v.getIndexWithinParent()<u)if(Q(v)&&!Wo(v)&&u!==v.getTextContentSize()){if(v.isSegmented()){const S=Ke(v.getTextContent());v.replace(S),v=S}Qe(l.getNode())||l.type!=="text"||(v=v.spliceText(0,u,"")),C.add(v.__key)}else{const S=v.getParentOrThrow();S.canBeEmpty()||S.getChildrenSize()!==1?v.remove():S.remove()}else C.add(v.__key);const b=g.getChildren(),w=new Set(d),k=y.is(g),A=y.isInline()&&f.getNextSibling()===null?y:f;for(let S=b.length-1;S>=0;S--){const E=b[S];if(E.is(f)||U(E)&&E.isParentOf(f))break;E.isAttached()&&(!w.has(E)||E.is(_)?k||A.insertAfter(E,!1):E.remove())}if(!k){let S=g,E=null;for(;S!==null;){const D=S.getChildren(),V=D.length;(V===0||D[V-1].is(E))&&(C.delete(S.__key),E=S),S=S.getParent()}}if(Wo(f))if(c===m)f.select();else{const S=Ke(e);S.select(),f.replace(S)}else f=f.spliceText(c,m-c,e,!0),f.getTextContent()===""?f.remove():f.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let S=1;S<p;S++){const E=d[S],D=E.__key;C.has(D)||E.remove()}}}removeText(){const e=te()===this;Ys(this,Nce(Pf(this))),e&&te()!==this&&vt(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void ft(null);const o=this.getNodes(),i=[];for(const b of o)Q(b)&&i.push(b);const s=b=>{o.forEach(w=>{if(U(w)){const k=w.getFormatFlags(e,b);w.setTextFormat(k)}})},a=i.length;if(a===0)return this.toggleFormat(e),ft(null),void s(n);const l=this.anchor,c=this.focus,u=this.isBackward(),d=u?c:l,p=u?l:c;let f=0,m=i[0],h=d.type==="element"?0:d.offset;if(d.type==="text"&&h===m.getTextContentSize()&&(f=1,m=i[1],h=0),m==null)return;const v=m.getFormatFlags(e,n);s(v);const C=a-1;let y=i[C];const g=p.type==="text"?p.offset:y.getTextContentSize();if(m.is(y)){if(h===g)return;if(qn(m)||h===0&&g===m.getTextContentSize())m.setFormat(v);else{const b=m.splitText(h,g),w=h===0?b[0]:b[1];w.setFormat(v),d.type==="text"&&d.set(w.__key,0,"text"),p.type==="text"&&p.set(w.__key,g-h,"text")}return void(this.format=v)}h===0||qn(m)||([,m]=m.splitText(h),h=0),m.setFormat(v);const _=y.getFormatFlags(e,v);g>0&&(g===y.getTextContentSize()||qn(y)||([y]=y.splitText(g)),y.setFormat(_));for(let b=f+1;b<C;b++){const w=i[b],k=w.getFormatFlags(e,_);w.setFormat(k)}d.type==="text"&&d.set(m.__key,h,"text"),p.type==="text"&&p.set(y.__key,g,"text"),this.format=v|_}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const h=te();return K(h)||G(134),h.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),o=en(n,Gt),i=e[e.length-1];if(U(o)&&"__language"in o){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const h=Ql(this);o.splice(h,0,e),i.selectEnd()}return}if(!e.some(h=>(U(h)||Ae(h))&&!h.isInline())){U(o)||G(211,n.constructor.name,n.getType());const h=Ql(this);return o.splice(h,0,e),void i.selectEnd()}const s=function(h){const v=Re();let C=null;for(let y=0;y<h.length;y++){const g=h[y],_=go(g);if(_||Ae(g)&&g.isInline()||U(g)&&g.isInline()||Q(g)||g.isParentRequired()){if(C===null&&(C=g.createParentElementNode(),v.append(C),_))continue;C!==null&&C.append(g)}else v.append(g),C=null}return v}(e),a=s.getLastDescendant(),l=s.getChildren(),c=!U(o)||!o.isEmpty()?this.insertParagraph():null,u=l[l.length-1];let d=l[0];var p;U(p=d)&&Gt(p)&&!p.isEmpty()&&U(o)&&(!o.isEmpty()||o.canMergeWhenEmpty())&&(U(o)||G(211,n.constructor.name,n.getType()),o.append(...d.getChildren()),d=l[1]),d&&(o===null&&G(212,n.constructor.name,n.getType()),function(h,v){const C=v.getParentOrThrow().getLastChild();let y=v;const g=[v];for(;y!==C;)y.getNextSibling()||G(140),y=y.getNextSibling(),g.push(y);let _=h;for(const b of g)_=_.insertAfter(b)}(o,d));const f=en(a,Gt);c&&U(f)&&(c.canMergeWhenEmpty()||Gt(u))&&(f.append(...c.getChildren()),c.remove()),U(o)&&o.isEmpty()&&o.remove(),a.selectEnd();const m=U(o)?o.getLastChild():null;go(m)&&f!==o&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=Re();return We().splice(this.anchor.offset,0,[a]),a.select(),a}const e=Ql(this),n=en(this.anchor.getNode(),Gt);U(n)||G(213);const o=n.getChildAtIndex(e),i=o?[o,...o.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(e){const n=mn();if(this.insertNodes([n]),e){const o=n.getParentOrThrow(),i=n.getIndexWithinParent();o.select(i,i)}}extract(){const e=[...this.getNodes()],n=e.length;let o=e[0],i=e[n-1];const[s,a]=Lc(this),l=this.isBackward(),[c,u]=l?[this.focus,this.anchor]:[this.anchor,this.focus],[d,p]=l?[a,s]:[s,a];if(n===0)return[];if(n===1){if(Q(o)&&!this.isCollapsed()){const f=o.splitText(d,p),m=d===0?f[0]:f[1];return m?(c.set(m.getKey(),0,"text"),u.set(m.getKey(),m.getTextContentSize(),"text"),[m]):[]}return[o]}if(Q(o)&&(d===o.getTextContentSize()?e.shift():d!==0&&([,o]=o.splitText(d),e[0]=o,c.set(o.getKey(),0,"text"))),Q(i)){const f=i.getTextContent().length;p===0?e.pop():p!==f&&([i]=i.splitText(p),e[e.length-1]=i,u.set(i.getKey(),i.getTextContentSize(),"text"))}return e}modify(e,n,o){if(_f(this,e,n,o))return;const i=e==="move",s=je(),a=hn(on(s));if(!a)return;const l=s._blockCursorElement,c=s._rootElement,u=this.focus.getNode();if(c===null||l===null||!U(u)||u.isInline()||u.canBeEmpty()||Fc(l,s,c),this.dirty){let d=or(s,this.anchor.key),p=or(s,this.focus.key);this.anchor.type==="text"&&(d=zr(d)),this.focus.type==="text"&&(p=zr(p)),d&&p&&Sh(a,d,this.anchor.offset,p,this.focus.offset)}if(function(d,p,f,m){d.modify(p,f,m)}(a,e,n?"backward":"forward",o),a.rangeCount>0){const d=a.getRangeAt(0),p=this.anchor.getNode(),f=Qe(p)?p:pce(p);if(this.applyDOMRange(d),this.dirty=!0,!i){const m=this.getNodes(),h=[];let v=!1;for(let C=0;C<m.length;C++){const y=m[C];Pc(y,f)?h.push(y):v=!0}if(v&&h.length>0)if(n){const C=h[0];U(C)?C.selectStart():C.getParentOrThrow().selectStart()}else{const C=h[h.length-1];U(C)?C.selectEnd():C.getParentOrThrow().selectEnd()}a.anchorNode===d.startContainer&&a.anchorOffset===d.startOffset||function(C){const y=C.focus,g=C.anchor,_=g.key,b=g.offset,w=g.type;g.set(y.key,y.offset,y.type,!0),y.set(_,b,w,!0)}(this)}}o==="lineboundary"&&_f(this,e,n,o,"decorators")}forwardDeletion(e,n,o){if(!o&&(e.type==="element"&&U(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const i=n.getParent(),s=n.getNextSibling()||(i===null?null:i.getNextSibling());if(U(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const o=this.anchor;let i=o.getNode();if(this.forwardDeletion(o,i,e))return;const s=Gu(Xn(o,e?"previous":"next"));if(s.getTextSlices().every(l=>l===null||l.distance===0)){let l={type:"initial"};for(const c of s.iterNodeCarets("shadowRoot"))if($n(c)){if(!c.origin.isInline()){if(c.origin.isShadowRoot()){if(l.type==="merge-block")break;if(U(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=Jt(c);Ys(this,wo(u,u)),s.anchor.origin.remove()}return}l.type!=="merge-next-block"&&l.type!=="merge-block"||(l={block:l.block,caret:c,type:"merge-block"})}}else{if(l.type==="merge-block")break;if(Hr(c)){if(U(c.origin)){if(c.origin.isInline()){if(!c.origin.isParentOf(s.anchor.origin))break}else l={block:c.origin,type:"merge-next-block"};continue}if(Ae(c.origin)){if(!c.origin.isIsolated())if(l.type==="merge-next-block"&&(c.origin.isKeyboardSelectable()||!c.origin.isInline())&&U(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=Eh();u.add(c.origin.getKey()),vt(u)}else c.origin.remove();return}break}}if(l.type==="merge-block"){const{caret:c,block:u}=l;return Ys(this,wo(!c.origin.isEmpty()&&u.isEmpty()?Yu(mt(u,c.direction)):s.anchor,c)),this.removeText()}}const a=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&o.offset===0&&pf(this,o.getNode()))return}else{const l=a.type==="text"?a.getNode():null;if(i=o.type==="text"?o.getNode():null,l!==null&&l.isSegmented()){const c=a.offset,u=l.getTextContentSize();if(l.is(i)||e&&c!==u||!e&&c!==0)return void mf(l,e,c)}else if(i!==null&&i.isSegmented()){const c=o.offset,u=i.getTextContentSize();if(i.is(l)||e&&c!==0||!e&&c!==u)return void mf(i,e,c)}(function(c,u){const d=c.anchor,p=c.focus,f=d.getNode(),m=p.getNode();if(f===m&&d.type==="text"&&p.type==="text"){const h=d.offset,v=p.offset,C=h<v,y=C?h:v,g=C?v:h,_=g-1;y!==_&&function(b){return!(Rh(b)||Yle(b))}(f.getTextContent().slice(y,g))&&(u?p.set(p.key,_,p.type):d.set(d.key,_,d.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const o=this.anchor.getNode();o.isEmpty()&&Qe(o.getParent())&&o.getPreviousSibling()===null&&pf(this,o)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,o=n.getNode();if(this.forwardDeletion(n,o,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Rt(t){return t instanceof tl}function ff(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function Lc(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,o]=e;return n.type==="element"&&o.type==="element"&&n.key===o.key&&n.offset===o.offset?[0,0]:[ff(n),ff(o)]}function pf(t,e){for(let n=e;n;n=n.getParent()){if(U(n)){if(n.collapseAtStart(t))return!0;if(At(n))break}if(n.getPreviousSibling())break}return!1}const Yle=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1})();function mf(t,e,n){const o=t,i=o.getTextContent().split(/(?=\s)/g),s=i.length;let a=0,l=0;for(let u=0;u<s;u++){const d=u===s-1;if(l=a,a+=i[u].length,e&&a===n||a>n||d){i.splice(u,1),d&&(l=void 0);break}}const c=i.join("").trim();c===""?o.remove():(o.setTextContent(c),o.select(l,l))}function hf(t,e,n,o){let i,s=e;if(tt(t)){let a=!1;const l=t.childNodes,c=l.length,u=o._blockCursorElement;s===c&&(a=!0,s=c-1);let d=l[s],p=!1;if(d===u)d=l[s+1],p=!0;else if(u!==null){const f=u.parentNode;t===f&&e>Array.prototype.indexOf.call(f.children,u)&&s--}if(i=Er(d),Q(i))s=yo(i,a?"next":"previous");else{let f=Er(t);if(f===null)return null;if(U(f)){const m=o.getElementByKey(f.getKey());m===null&&G(214),[f,s]=f.getDOMSlot(m).resolveChildIndex(f,m,t,e),U(f)||G(215),a&&s>=f.getChildrenSize()&&(s=Math.max(0,f.getChildrenSize()-1));let v=f.getChildAtIndex(s);if(U(v)&&function(C,y,g){const _=C.getParent();return g===null||_===null||!_.canBeEmpty()||_!==g.getNode()}(v,0,n)){const C=a?v.getLastDescendant():v.getFirstDescendant();C===null?f=v:(v=C,f=U(v)?v:v.getParentOrThrow()),s=0}Q(v)?(i=v,f=null,s=yo(v,a?"next":"previous")):v!==f&&a&&!p&&(U(f)||G(216),s=Math.min(f.getChildrenSize(),s+1))}else{const m=f.getIndexWithinParent();s=e===0&&Ae(f)&&Er(t)===f?m:m+1,f=f.getParentOrThrow()}if(U(f))return On(f.__key,s,"element")}}else i=Er(t);return Q(i)?On(i.__key,yo(i,s,"clamp"),"text"):null}function gf(t,e,n){const o=t.offset,i=t.getNode();if(o===0){const s=i.getPreviousSibling(),a=i.getParent();if(e){if((n||!e)&&s===null&&U(a)&&a.isInline()){const l=a.getPreviousSibling();Q(l)&&t.set(l.__key,l.getTextContent().length,"text")}}else U(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):Q(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(o===i.getTextContent().length){const s=i.getNextSibling(),a=i.getParent();if(e&&U(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&U(a)&&a.isInline()&&!a.canInsertTextAfter()){const l=a.getNextSibling();Q(l)&&t.set(l.__key,0,"text")}}}function bh(t,e,n){if(t.type==="text"&&e.type==="text"){const o=t.isBefore(e),i=t.is(e);gf(t,o,i),gf(e,!o,i),i&&e.set(t.key,t.offset,t.type);const s=je();if(s.isComposing()&&s._compositionKey!==t.key&&K(n)){const a=n.anchor,l=n.focus;t.set(a.key,a.offset,a.type,!0),e.set(l.key,l.offset,l.type,!0)}}}function kh(t,e,n,o,i,s){if(t===null||n===null||!ms(i,t,n))return null;const a=hf(t,e,K(s)?s.anchor:null,i);if(a===null)return null;const l=hf(n,o,K(s)?s.focus:null,i);if(l===null)return null;if(a.type==="element"&&l.type==="element"){const c=Er(t),u=Er(n);if(Ae(c)&&Ae(u))return null}return bh(a,l,s),[a,l]}function Oc(t){return U(t)&&!t.isInline()}function wh(t,e,n,o,i,s){const a=Ao(),l=new cr(On(t,e,i),On(n,o,s),0,"");return l.dirty=!0,a._selection=l,l}function nl(){const t=On("root",0,"element"),e=On("root",0,"element");return new cr(t,e,0,"")}function Eh(){return new tl(new Set)}function $u(t,e,n,o){const i=n._window;if(i===null)return null;const s=o||i.event,a=s?s.type:void 0,l=a==="selectionchange",c=!_c&&(l||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,d,p,f;if(K(t)&&!c)return t.clone();if(e===null)return null;if(u=e.anchorNode,d=e.focusNode,p=e.anchorOffset,f=e.focusOffset,(l||a===void 0)&&K(t)&&!ms(n,u,d))return t.clone();const m=kh(u,p,d,f,n,t);if(m===null)return null;const[h,v]=m;return new cr(h,v,K(t)?t.format:0,K(t)?t.style:"")}function te(){return Ao()._selection}function Yr(){return je()._editorState._selection}function ga(t,e,n,o=1){const i=t.anchor,s=t.focus,a=i.getNode(),l=s.getNode();if(!e.is(a)&&!e.is(l))return;const c=e.__key;if(t.isCollapsed()){const u=i.offset;if(n<=u&&o>0||n<u&&o<0){const d=Math.max(0,u+o);i.set(c,d,"element"),s.set(c,d,"element"),vf(t)}}else{const u=t.isBackward(),d=u?s:i,p=d.getNode(),f=u?i:s,m=f.getNode();if(e.is(p)){const h=d.offset;(n<=h&&o>0||n<h&&o<0)&&d.set(c,Math.max(0,h+o),"element")}if(e.is(m)){const h=f.offset;(n<=h&&o>0||n<h&&o<0)&&f.set(c,Math.max(0,h+o),"element")}}vf(t)}function vf(t){const e=t.anchor,n=e.offset,o=t.focus,i=o.offset,s=e.getNode(),a=o.getNode();if(t.isCollapsed()){if(!U(s))return;const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text"),o.set(u.__key,d,"text")}return}if(U(s)){const l=s.getChildrenSize(),c=n>=l,u=c?s.getChildAtIndex(l-1):s.getChildAtIndex(n);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),e.set(u.__key,d,"text")}}if(U(a)){const l=a.getChildrenSize(),c=i>=l,u=c?a.getChildAtIndex(l-1):a.getChildAtIndex(i);if(Q(u)){let d=0;c&&(d=u.getTextContentSize()),o.set(u.__key,d,"text")}}}function va(t,e,n,o,i){let s=null,a=0,l=null;o!==null?(s=o.__key,Q(o)?(a=o.getTextContentSize(),l="text"):U(o)&&(a=o.getChildrenSize(),l="element")):i!==null&&(s=i.__key,Q(i)?l="text":U(i)&&(l="element")),s!==null&&l!==null?t.set(s,a,l):(a=e.getIndexWithinParent(),a===-1&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function yf(t,e,n,o,i){t.type==="text"?t.set(n,t.offset+(e?0:i),"text"):t.offset>o.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function Sh(t,e,n,o,i){try{t.setBaseAndExtent(e,n,o,i)}catch{}}function Jle(t,e,n,o,i,s,a){const l=o.anchorNode,c=o.focusNode,u=o.anchorOffset,d=o.focusOffset,p=document.activeElement;if(i.has(yh)&&p!==s||p!==null&&Iu(p))return;if(!K(e))return void(t!==null&&ms(n,l,c)&&o.removeAllRanges());const f=e.anchor,m=e.focus,h=f.key,v=m.key,C=or(n,h),y=or(n,v),g=f.offset,_=m.offset,b=e.format,w=e.style,k=e.isCollapsed();let A=C,S=y,E=!1;if(f.type==="text"){A=zr(C);const $=f.getNode();E=$.getFormat()!==b||$.getStyle()!==w}else K(t)&&t.anchor.type==="text"&&(E=!0);var D,V,T,M,x;if(m.type==="text"&&(S=zr(y)),A!==null&&S!==null&&(k&&(t===null||E||K(t)&&(t.format!==b||t.style!==w))&&(D=b,V=w,T=g,M=h,x=performance.now(),dh=[D,V,T,M,x]),u!==g||d!==_||l!==A||c!==S||o.type==="Range"&&k||(p!==null&&s.contains(p)||i.has(Ule)||s.focus({preventScroll:!0}),f.type==="element"))){if(Sh(o,A,g,S,_),!i.has(Rle)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const $=K(e)&&e.anchor.type==="element"?A.childNodes[g]||null:o.rangeCount>0?o.getRangeAt(0):null;if($!==null){let B;if($ instanceof Text){const q=document.createRange();q.selectNode($),B=q.getBoundingClientRect()}else B=$.getBoundingClientRect();(function(q,I,H){const Y=qh(H),le=Hu(Y);if(Y===null||le===null)return;let{top:oe,bottom:Ne}=I,ce=0,ne=0,z=H;for(;z!==null;){const F=z===Y.body;if(F)ce=0,ne=on(q).innerHeight;else{const Ee=z.getBoundingClientRect();ce=Ee.top,ne=Ee.bottom}let re=0;if(oe<ce?re=-(ce-oe):Ne>ne&&(re=Ne-ne),re!==0)if(F)le.scrollBy(0,re);else{const Ee=z.scrollTop;z.scrollTop+=re;const ze=z.scrollTop-Ee;oe-=ze,Ne-=ze}if(F)break;z=hs(z)}})(n,B,s)}}$c=!0}}function Xle(t){let e=te()||Yr();e===null&&(e=We().selectEnd()),e.insertNodes(t)}function Ql(t){let e=t;t.isCollapsed()||e.removeText();const n=te();K(n)&&(e=n),K(e)||G(161);const o=e.anchor;let i=o.getNode(),s=o.offset;for(;!Gt(i);){const a=i;if([i,s]=Qle(i,s),a.is(i))break}return s}function Qle(t,e){const n=t.getParent();if(!n){const i=Re();return We().append(i),i.select(),[We(),0]}if(Q(t)){const i=t.splitText(e);if(i.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,i[0].getIndexWithinParent()+s]}if(!U(t)||e===0)return[n,t.getIndexWithinParent()];const o=t.getChildAtIndex(e);if(o){const i=new cr(On(t.__key,e,"element"),On(t.__key,e,"element"),0,""),s=t.insertNewAfter(i);s&&s.append(o,...o.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function _f(t,e,n,o,i="decorators-and-blocks"){if(e==="move"&&o==="character"&&!t.isCollapsed()){const[d,p]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return p.set(d.key,d.offset,d.type),!0}const s=Xn(t.focus,n?"previous":"next"),a=o==="lineboundary",l=e==="move";let c=s,u=i==="decorators-and-blocks";if(!Yh(c)){for(const d of c){u=!1;const{origin:p}=d;if(!Ae(p)||p.isIsolated()||(c=d,!a||!p.isInline()))break}if(u)for(const d of Gu(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if($n(d))d.origin.isInline()||(c=d);else{if(U(d.origin))continue;Ae(d.origin)&&!d.origin.isInline()&&(c=d)}break}}if(c===s)return!1;if(l&&!a&&Ae(c.origin)&&c.origin.isKeyboardSelectable()){const d=Eh();return d.add(c.origin.getKey()),vt(d),!0}return c=Jt(c),l&&ar(t.anchor,c),ar(t.focus,c),u||!a}let ct=null,ut=null,Bt=!1,ec=!1,Ks=0;const Cf={characterData:!0,childList:!0,subtree:!0};function us(){return Bt||ct!==null&&ct._readOnly}function lt(){Bt&&G(13)}function xh(){Ks>99&&G(14)}function Ao(){return ct===null&&G(195,Ah()),ct}function je(){return ut===null&&G(196,Ah()),ut}function Ah(){let t=0;const e=new Set,n=nr.version;if(typeof window<"u")for(const i of document.querySelectorAll("[contenteditable]")){const s=il(i);if(Pu(s))t++;else if(s){let a=String(s.constructor.version||"<0.17.1");a===n&&(a+=" (separately built, likely a bundler configuration issue)"),e.add(a)}}let o=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(o+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),o}function ece(){return ut}function bf(t,e,n){const o=e.__type,i=Mh(t,o);let s=n.get(o);s===void 0&&(s=Array.from(i.transforms),n.set(o,s));const a=s.length;for(let l=0;l<a&&(s[l](e),e.isAttached());l++);}function kf(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function Th(t,e){if(!e)return;const n=t._updateTags;let o=e;Array.isArray(e)||(o=[e]);for(const i of o)n.add(i)}function tce(t){return Bu(t,je()._nodes)}function Bu(t,e){const n=t.type,o=e.get(n);o===void 0&&G(17,n);const i=o.klass;t.type!==i.getType()&&G(18,i.name);const s=i.importJSON(t),a=t.children;if(U(s)&&Array.isArray(a))for(let l=0;l<a.length;l++){const c=Bu(a[l],e);s.append(c)}return s}function wf(t,e,n){const o=ct,i=Bt,s=ut;ct=e,Bt=!0,ut=t;try{return n()}finally{ct=o,Bt=i,ut=s}}function Wn(t,e){const n=t._pendingEditorState,o=t._rootElement,i=t._headless||o===null;if(n===null)return;const s=t._editorState,a=s._selection,l=n._selection,c=t._dirtyType!==0,u=ct,d=Bt,p=ut,f=t._updating,m=t._observer;let h=null;if(t._pendingEditorState=null,t._editorState=n,!i&&c&&m!==null){ut=t,ct=n,Bt=!1,t._updating=!0;try{const k=t._dirtyType,A=t._dirtyElements,S=t._dirtyLeaves;m.disconnect(),h=wle(s,n,t,k,A,S)}catch(k){if(k instanceof Error&&t._onError(k),ec)throw k;return Bh(t,null,o,n),Rm(t),t._dirtyType=2,ec=!0,Wn(t,s),void(ec=!1)}finally{m.observe(o,Cf),t._updating=f,ct=u,Bt=d,ut=p}}n._readOnly||(n._readOnly=!0);const v=t._dirtyLeaves,C=t._dirtyElements,y=t._normalizedNodes,g=t._updateTags,_=t._deferred;c&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(k,A){const S=k._decorators;let E=k._pendingDecorators||S;const D=A._nodeMap;let V;for(V in E)D.has(V)||(E===S&&(E=Ph(k)),delete E[V])}(t,n);const b=i?null:hn(on(t));if(t._editable&&b!==null&&(c||l===null||l.dirty||!l.is(a))&&o!==null&&!g.has(zle)){ut=t,ct=n;try{if(m!==null&&m.disconnect(),c||l===null||l.dirty){const k=t._blockCursorElement;k!==null&&Fc(k,t,o),Jle(a,l,t,b,g,o)}(function(k,A,S){let E=k._blockCursorElement;if(K(S)&&S.isCollapsed()&&S.anchor.type==="element"&&A.contains(document.activeElement)){const D=S.anchor,V=D.getNode(),T=D.offset;let M=!1,x=null;if(T===V.getChildrenSize())nc(V.getChildAtIndex(T-1))&&(M=!0);else{const $=V.getChildAtIndex(T);if($!==null&&nc($)){const B=$.getPreviousSibling();(B===null||nc(B))&&(M=!0,x=k.getElementByKey($.__key))}}if(M){const $=k.getElementByKey(V.__key);return E===null&&(k._blockCursorElement=E=function(B){const q=B.theme,I=document.createElement("div");I.contentEditable="false",I.setAttribute("data-lexical-cursor","true");let H=q.blockCursor;if(H!==void 0){if(typeof H=="string"){const Y=Om(H);H=q.blockCursor=Y}H!==void 0&&I.classList.add(...H)}return I}(k._config)),A.style.caretColor="transparent",void(x===null?$.appendChild(E):$.insertBefore(E,x))}}E!==null&&Fc(E,k,A)})(t,o,l)}finally{m!==null&&m.observe(o,Cf),ut=p,ct=u}}h!==null&&function(k,A,S,E,D){const V=Array.from(k._listeners.mutation),T=V.length;for(let M=0;M<T;M++){const[x,$]=V[M];for(const B of $){const q=A.get(B);q!==void 0&&x(q,{dirtyLeaves:E,prevEditorState:D,updateTags:S})}}}(t,h,g,v,s),K(l)||l===null||a!==null&&a.is(l)||t.dispatchCommand(Gm,void 0);const w=t._pendingDecorators;w!==null&&(t._decorators=w,t._pendingDecorators=null,Li("decorator",t,!0,w)),function(k,A,S){const E=Tf(A),D=Tf(S);E!==D&&Li("textcontent",k,!0,D)}(t,e||s,n),Li("update",t,!0,{dirtyElements:C,dirtyLeaves:v,editorState:n,mutatedNodes:h,normalizedNodes:y,prevEditorState:e||s,tags:g}),function(k,A){if(k._deferred=[],A.length!==0){const S=k._updating;k._updating=!0;try{for(let E=0;E<A.length;E++)A[E]()}finally{k._updating=S}}}(t,_),function(k){const A=k._updates;if(A.length!==0){const S=A.shift();if(S){const[E,D]=S;ol(k,E,D)}}}(t)}function Li(t,e,n,...o){const i=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let a=0;a<s.length;a++)s[a].apply(null,o)}finally{e._updating=i}}function Ef(t,e){const n=t._updates;let o=e||!1;for(;n.length!==0;){const i=n.shift();if(i){const[s,a]=i,l=t._pendingEditorState;let c;a!==void 0&&(c=a.onUpdate,a.skipTransforms&&(o=!0),a.discrete&&(l===null&&G(191),l._flushSync=!0),c&&t._deferred.push(c),Th(t,a.tag)),l==null?ol(t,s,a):s()}}return o}function ol(t,e,n){const o=t._updateTags;let i,s=!1,a=!1;n!==void 0&&(i=n.onUpdate,Th(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),i&&t._deferred.push(i);const l=t._editorState;let c=t._pendingEditorState,u=!1;(c===null||c._readOnly)&&(c=t._pendingEditorState=Dh(c||l),u=!0),c._flushSync=a;const d=ct,p=Bt,f=ut,m=t._updating;ct=c,Bt=!1,t._updating=!0,ut=t;const h=t._headless||t.getRootElement()===null;Ou(null);try{u&&(h?l._selection!==null&&(c._selection=l._selection.clone()):c._selection=function(g,_){const b=g.getEditorState()._selection,w=hn(on(g));return K(b)||b==null?$u(b,w,g,_):b.clone()}(t,n&&n.event||null));const C=t._compositionKey;e(),s=Ef(t,s),function(g,_){const b=_.getEditorState()._selection,w=g._selection;if(K(w)){const k=w.anchor,A=w.focus;let S;if(k.type==="text"&&(S=k.getNode(),S.selectionTransform(b,w)),A.type==="text"){const E=A.getNode();S!==E&&E.selectionTransform(b,w)}}}(c,t),t._dirtyType!==0&&(s?function(g,_){const b=_._dirtyLeaves,w=g._nodeMap;for(const k of b){const A=w.get(k);Q(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&X1(A)}}(c,t):function(g,_){const b=_._dirtyLeaves,w=_._dirtyElements,k=g._nodeMap,A=po(),S=new Map;let E=b,D=E.size,V=w,T=V.size;for(;D>0||T>0;){if(D>0){_._dirtyLeaves=new Set;for(const M of E){const x=k.get(M);Q(x)&&x.isAttached()&&x.isSimpleText()&&!x.isUnmergeable()&&X1(x),x!==void 0&&kf(x,A)&&bf(_,x,S),b.add(M)}if(E=_._dirtyLeaves,D=E.size,D>0){Ks++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,V.delete("root")&&V.set("root",!0);for(const M of V){const x=M[0],$=M[1];if(w.set(x,$),!$)continue;const B=k.get(x);B!==void 0&&kf(B,A)&&bf(_,B,S)}E=_._dirtyLeaves,D=E.size,V=_._dirtyElements,T=V.size,Ks++}_._dirtyLeaves=b,_._dirtyElements=w}(c,t),Ef(t),function(g,_,b,w){const k=g._nodeMap,A=_._nodeMap,S=[];for(const[E]of w){const D=A.get(E);D!==void 0&&(D.isAttached()||(U(D)&&Im(D,E,k,A,S,w),k.has(E)||w.delete(E),S.push(E)))}for(const E of S)A.delete(E);for(const E of b){const D=A.get(E);D===void 0||D.isAttached()||(k.has(E)||b.delete(E),A.delete(E))}}(l,c,t._dirtyLeaves,t._dirtyElements)),C!==t._compositionKey&&(c._flushSync=!0);const y=c._selection;if(K(y)){const g=c._nodeMap,_=y.anchor.key,b=y.focus.key;g.get(_)!==void 0&&g.get(b)!==void 0||G(19)}else Rt(y)&&y._nodes.size===0&&(c._selection=null)}catch(C){return C instanceof Error&&t._onError(C),t._pendingEditorState=l,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void Wn(t)}finally{ct=d,Bt=p,ut=f,t._updating=m,Ks=0}t._dirtyType!==0||t._deferred.length>0||function(C,y){const g=y.getEditorState()._selection,_=C._selection;if(_!==null){if(_.dirty||!_.is(g))return!0}else if(g!==null)return!0;return!1}(c,t)?c._flushSync?(c._flushSync=!1,Wn(t)):u&&ace(()=>{Wn(t)}):(c._flushSync=!1,u&&(o.clear(),t._deferred=[],t._pendingEditorState=null))}function zt(t,e,n){ut===t&&n===void 0?e():ol(t,e,n)}class Oi{constructor(e,n,o){j(this,"element");j(this,"before");j(this,"after");this.element=e,this.before=n||null,this.after=o||null}withBefore(e){return new Oi(this.element,e,this.after)}withAfter(e){return new Oi(this.element,this.before,e)}withElement(e){return this.element===e?this:new Oi(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&G(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&G(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&G(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(Wi||Rr||ji);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,o=e.nodeName==="IMG"?e.nextSibling:null;o&&n.removeChild(o),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}const o=this.element,i=this.before,s=document.createElement("br");if(o.insertBefore(s,i),e){const a=document.createElement("img");a.setAttribute("data-lexical-linebreak","true"),a.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",a.alt="",o.insertBefore(a,s),o.__lexicalLineBreak=a}else o.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,o,i){if(o===this.element){const c=this.getFirstChildOffset();return[e,Math.min(c+e.getChildrenSize(),Math.max(c,i))]}const s=Sf(n,o);s.push(i);const a=Sf(n,this.element);let l=e.getIndexWithinParent();for(let c=0;c<a.length;c++){const u=s[c],d=a[c];if(u===void 0||u<d)break;if(u>d){l+=1;break}}return[e.getParentOrThrow(),l]}}function Sf(t,e){const n=[];let o=e;for(;o!==t&&o!==null;o=o.parentNode){let i=0;for(let s=o.previousSibling;s!==null;s=s.previousSibling)i++;n.push(i)}return o!==t&&G(225),n.reverse()}class jt extends pn{constructor(n){super(n);j(this,"__first");j(this,"__last");j(this,"__size");j(this,"__format");j(this,"__style");j(this,"__indent");j(this,"__dir");j(this,"__textFormat");j(this,"__textStyle");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(n){super.afterCloneFrom(n),this.__key===n.__key&&(this.__first=n.__first,this.__last=n.__last,this.__size=n.__size),this.__indent=n.__indent,this.__format=n.__format,this.__style=n.__style,this.__dir=n.__dir,this.__textFormat=n.__textFormat,this.__textStyle=n.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const n=this.getFormat();return cle[n]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o),o=o.getNextSibling();return n}getChildrenKeys(){const n=[];let o=this.getFirstChild();for(;o!==null;)n.push(o.__key),o=o.getNextSibling();return n}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const n=je()._dirtyElements;return n!==null&&n.has(this.__key)}isLastChild(){const n=this.getLatest(),o=this.getParentOrThrow().getLastChild();return o!==null&&o.is(n)}getAllTextNodes(){const n=[];let o=this.getFirstChild();for(;o!==null;){if(Q(o)&&n.push(o),U(o)){const i=o.getAllTextNodes();n.push(...i)}o=o.getNextSibling()}return n}getFirstDescendant(){let n=this.getFirstChild();for(;U(n);){const o=n.getFirstChild();if(o===null)break;n=o}return n}getLastDescendant(){let n=this.getLastChild();for(;U(n);){const o=n.getLastChild();if(o===null)break;n=o}return n}getDescendantByIndex(n){const o=this.getChildren(),i=o.length;if(n>=i){const a=o[i-1];return U(a)&&a.getLastDescendant()||a||null}const s=o[n];return U(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const n=this.getLatest().__first;return n===null?null:rt(n)}getFirstChildOrThrow(){const n=this.getFirstChild();return n===null&&G(45,this.__key),n}getLastChild(){const n=this.getLatest().__last;return n===null?null:rt(n)}getLastChildOrThrow(){const n=this.getLastChild();return n===null&&G(96,this.__key),n}getChildAtIndex(n){const o=this.getChildrenSize();let i,s;if(n<o/2){for(i=this.getFirstChild(),s=0;i!==null&&s<=n;){if(s===n)return i;i=i.getNextSibling(),s++}return null}for(i=this.getLastChild(),s=o-1;i!==null&&s>=n;){if(s===n)return i;i=i.getPreviousSibling(),s--}return null}getTextContent(){let n="";const o=this.getChildren(),i=o.length;for(let s=0;s<i;s++){const a=o[s];n+=a.getTextContent(),U(a)&&s!==i-1&&!a.isInline()&&(n+=ko)}return n}getTextContentSize(){let n=0;const o=this.getChildren(),i=o.length;for(let s=0;s<i;s++){const a=o[s];n+=a.getTextContentSize(),U(a)&&s!==i-1&&!a.isInline()&&(n+=2)}return n}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(n){if(n!==""){const o=q1[n];return(this.getFormat()&o)!==0}return!1}hasTextFormat(n){const o=xt[n];return(this.getTextFormat()&o)!==0}getFormatFlags(n,o){return ya(this.getLatest().__textFormat,n,o)}getTextStyle(){return this.getLatest().__textStyle}select(n,o){lt();const i=te();let s=n,a=o;const l=this.getChildrenSize();if(!this.canBeEmpty()){if(n===0&&o===0){const u=this.getFirstChild();if(Q(u)||U(u))return u.select(0,0)}else if(!(n!==void 0&&n!==l||o!==void 0&&o!==l)){const u=this.getLastChild();if(Q(u)||U(u))return u.select()}}s===void 0&&(s=l),a===void 0&&(a=l);const c=this.__key;return K(i)?(i.anchor.set(c,s,"element"),i.focus.set(c,a,"element"),i.dirty=!0,i):wh(c,s,c,a,"element","element")}selectStart(){const n=this.getFirstDescendant();return n?n.selectStart():this.select()}selectEnd(){const n=this.getLastDescendant();return n?n.selectEnd():this.select()}clear(){const n=this.getWritable();return this.getChildren().forEach(o=>o.remove()),n}append(...n){return this.splice(this.getChildrenSize(),0,n)}setDirection(n){const o=this.getWritable();return o.__dir=n,o}setFormat(n){return this.getWritable().__format=n!==""?q1[n]:0,this}setStyle(n){return this.getWritable().__style=n||"",this}setTextFormat(n){const o=this.getWritable();return o.__textFormat=n,o}setTextStyle(n){const o=this.getWritable();return o.__textStyle=n,o}setIndent(n){return this.getWritable().__indent=n,this}splice(n,o,i){ma(this)&&G(324,this.__key,this.__type);const s=this.getChildrenSize(),a=this.getWritable();n+o<=s||G(226,String(n),String(o),String(s));const l=a.__key,c=[],u=[],d=this.getChildAtIndex(n+o);let p=null,f=s-o+i.length;if(n!==0)if(n===s)p=this.getLastChild();else{const h=this.getChildAtIndex(n);h!==null&&(p=h.getPreviousSibling())}if(o>0){let h=p===null?this.getFirstChild():p.getNextSibling();for(let v=0;v<o;v++){h===null&&G(100);const C=h.getNextSibling(),y=h.__key;Zo(h.getWritable()),u.push(y),h=C}}let m=p;for(const h of i){m!==null&&h.is(m)&&(p=m=m.getPreviousSibling());const v=h.getWritable();v.__parent===l&&f--,Zo(v);const C=h.__key;if(m===null)a.__first=C,v.__prev=null;else{const y=m.getWritable();y.__next=C,v.__prev=y.__key}h.__key===l&&G(76),v.__parent=l,c.push(C),m=h}if(n+o===s)m!==null&&(m.getWritable().__next=null,a.__last=m.__key);else if(d!==null){const h=d.getWritable();if(m!==null){const v=m.getWritable();h.__prev=m.__key,v.__next=d.__key}else h.__prev=null}if(a.__size=f,u.length){const h=te();if(K(h)){const v=new Set(u),C=new Set(c),{anchor:y,focus:g}=h;xf(y,v,C)&&va(y,y.getNode(),this,p,d),xf(g,v,C)&&va(g,g.getNode(),this,p,d),f!==0||this.canBeEmpty()||At(this)||this.remove()}}return a}getDOMSlot(n){return new Oi(n)}exportDOM(n){const{element:o}=super.exportDOM(n);if(tt(o)){const i=this.getIndent();i>0&&(o.style.paddingInlineStart=40*i+"px");const s=this.getDirection();s&&(o.dir=s)}return{element:o}}exportJSON(){const n={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},o=this.getTextFormat(),i=this.getTextStyle();return o!==0&&(n.textFormat=o),i!==""&&(n.textStyle=i),n}updateFromJSON(n){return super.updateFromJSON(n).setFormat(n.format).setIndent(n.indent).setDirection(n.direction).setTextFormat(n.textFormat||0).setTextStyle(n.textStyle||"")}insertNewAfter(n,o){return null}canIndent(){return!0}collapseAtStart(n){return!1}excludeFromCopy(n){return!1}canReplaceWith(n){return!0}canInsertAfter(n){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(n){return!1}extractWithChild(n,o,i){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(n,o){const i=this.getDOMSlot(n);let s=i.getFirstChild();for(let a=this.getFirstChild();a;a=a.getNextSibling()){const l=o.getElementByKey(a.getKey());l!==null&&(s==null?(i.insertChild(l),s=l):s!==l&&i.replaceChild(l,s),s=s.nextSibling)}}}function U(t){return t instanceof jt}function xf(t,e,n){let o=t.getNode();for(;o;){const i=o.__key;if(e.has(i)&&!n.has(i))return!0;o=o.getParent()}return!1}class Nh extends pn{decorate(e,n){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Ae(t){return t instanceof Nh}class ds extends jt{constructor(){super("root");j(this,"__cachedText");this.__cachedText=null}static getType(){return"root"}static clone(){return new ds}getTopLevelElementOrThrow(){G(51)}getTextContent(){const n=this.__cachedText;return!us()&&je()._dirtyType!==0||n===null?super.getTextContent():n}remove(){G(52)}replace(n){G(53)}insertBefore(n){G(54)}insertAfter(n){G(55)}updateDOM(n,o){return!1}splice(n,o,i){for(const s of i)U(s)||Ae(s)||G(282);return super.splice(n,o,i)}static importJSON(n){return We().updateFromJSON(n)}collapseAtStart(){return!0}}function Qe(t){return t instanceof ds}function Dh(t){return new rl(new Map(t._nodeMap))}function Mu(){return new rl(new Map([["root",new ds]]))}function $h(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&G(130,n.name),U(t)){const o=e.children;Array.isArray(o)||G(59,n.name);const i=t.getChildren();for(let s=0;s<i.length;s++){const a=$h(i[s]);o.push(a)}}return e}class rl{constructor(e,n){j(this,"_nodeMap");j(this,"_selection");j(this,"_flushSync");j(this,"_readOnly");this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return wf(n&&n.editor||null,this,e)}clone(e){const n=new rl(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return wf(null,this,()=>({root:$h(We())}))}}class Lu extends jt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class fs extends jt{static getType(){return"paragraph"}static clone(e){return new fs(e.__key)}createDOM(e){const n=document.createElement("p"),o=Dr(e.theme,"paragraph");return o!==void 0&&n.classList.add(...o),n}updateDOM(e,n,o){return!1}static importDOM(){return{p:e=>({conversion:nce,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(tt(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o)}return{element:n}}static importJSON(e){return Re().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const o=Re();o.setTextFormat(e.format),o.setTextStyle(e.style);const i=this.getDirection();return o.setDirection(i),o.setFormat(this.getFormatType()),o.setStyle(this.getStyle()),this.insertAfter(o,n),o}collapseAtStart(){const e=this.getChildren();if(e.length===0||Q(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function nce(t){const e=Re();return t.style&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function Re(){return _n(new fs)}function ps(t){return t instanceof fs}const xe=0,bi=1,oce=4;function Bh(t,e,n,o){const i=t._keyToDOMMap;i.clear(),t._editorState=Mu(),t._pendingEditorState=o,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;s!==null&&(s.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function rce(t){const e=new Set,n=new Set;let o=t;for(;o;){const{ownNodeConfig:i}=cl(o),s=o.transform;if(!n.has(s)){n.add(s);const a=o.transform();a&&e.add(a)}if(i){const a=i.$transform;a&&e.add(a),o=i.extends}else{const a=Object.getPrototypeOf(o);o=a.prototype instanceof pn&&a!==pn?a:void 0}}return e}function ice(t){const e=t||{},n=ece(),o=e.theme||{},i=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=Mu(),l=e.namespace||(i!==null?i._config.namespace:zh()),c=e.editorState,u=[ds,xo,ls,cs,fs,Lu,...e.nodes||[]],{onError:d,html:p}=e,f=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let v=0;v<u.length;v++){let C=u[v],y=null,g=null;if(typeof C!="function"){const w=C;C=w.replace,y=w.with,g=w.withKlass||null}cl(C);const _=C.getType(),b=rce(C);m.set(_,{exportDOM:p&&p.export?p.export.get(C):void 0,klass:C,replace:y,replaceWithKlass:g,sharedNodeState:yle(u[v]),transforms:b})}}const h=new nr(a,i,m,{disableEvents:s,namespace:l,theme:o},d||console.error,function(v,C){const y=new Map,g=new Set,_=b=>{Object.keys(b).forEach(w=>{let k=y.get(w);k===void 0&&(k=[],y.set(w,k)),k.push(b[w])})};return v.forEach(b=>{const w=b.klass.importDOM;if(w==null||g.has(w))return;g.add(w);const k=w.call(b.klass);k!==null&&_(k)}),C&&_(C),y}(m,p?p.import:void 0),f,t);return c!==void 0&&(h._pendingEditorState=c,h._dirtyType=2),h}class nr{constructor(e,n,o,i,s,a,l,c){j(this,"_headless");j(this,"_parentEditor");j(this,"_rootElement");j(this,"_editorState");j(this,"_pendingEditorState");j(this,"_compositionKey");j(this,"_deferred");j(this,"_keyToDOMMap");j(this,"_updates");j(this,"_updating");j(this,"_listeners");j(this,"_commands");j(this,"_nodes");j(this,"_decorators");j(this,"_pendingDecorators");j(this,"_config");j(this,"_dirtyType");j(this,"_cloneNotNeeded");j(this,"_dirtyLeaves");j(this,"_dirtyElements");j(this,"_normalizedNodes");j(this,"_updateTags");j(this,"_observer");j(this,"_key");j(this,"_onError");j(this,"_htmlConversions");j(this,"_window");j(this,"_editable");j(this,"_blockCursorElement");j(this,"_createEditorArgs");this._createEditorArgs=c,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=i,this._nodes=o,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=zh(),this._onError=s,this._htmlConversions=a,this._editable=l,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,o){o===void 0&&G(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);s===void 0&&G(36,String(e));const a=s[o];return a.add(n),()=>{a.delete(n),s.every(l=>l.size===0)&&i.delete(e)}}registerMutationListener(e,n,o){const i=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let a=s.get(n);a===void 0&&(a=new Set,s.set(n,a)),a.add(i);const l=o&&o.skipInitialization;return l!==void 0&&l||this.initializeMutationListener(n,i),()=>{a.delete(i),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&G(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const o=this._editorState,i=Of(o).get(n.getType());if(!i)return;const s=new Map;for(const a of i.keys())s.set(a,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:o,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const o=this.getRegisteredNode(e);return o.transforms.add(n),o}registerNodeTransform(e,n){const o=this.registerNodeTransformToKlass(e,n),i=[o],s=o.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);i.push(a)}return function(a,l){const c=Of(a.getEditorState()),u=[];for(const d of l){const p=c.get(d);p&&u.push(p)}u.length!==0&&a.update(()=>{for(const d of u)for(const p of d.keys()){const f=rt(p);f&&f.markDirty()}},a._pendingEditorState===null?{tag:Mi}:void 0)}(this,i.map(a=>a.klass.getType())),()=>{i.forEach(a=>a.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return se(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const o=Dr(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,Bh(this,n,e,i),n!==null&&(this._config.disableEvents||Ile(n),o!=null&&n.classList.remove(...o)),e!==null){const s=Hu(e),a=e.style;a.userSelect="text",a.whiteSpace="pre-wrap",a.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=2,Rm(this),this._updateTags.add(Mi),Wn(this),this._config.disableEvents||function(l,c){const u=l.ownerDocument;Dc.set(l,u);const d=pa.get(u)??0;d<1&&u.addEventListener("selectionchange",gh),pa.set(u,d+1),l.__lexicalEditor=c;const p=hh(l);for(let f=0;f<Nc.length;f++){const[m,h]=Nc[f],v=typeof h=="function"?C=>{sf(C)||(rf(C),(c.isEditable()||m==="click")&&h(C,c))}:C=>{if(sf(C))return;rf(C);const y=c.isEditable();switch(m){case"cut":return y&&se(c,Nu,C);case"copy":return se(c,Qa,C);case"paste":return y&&se(c,xu,C);case"dragstart":return y&&se(c,ah,C);case"dragover":return y&&se(c,lh,C);case"dragend":return y&&se(c,$le,C);case"focus":return y&&se(c,Lle,C);case"blur":return y&&se(c,Ole,C);case"drop":return y&&se(c,sh,C)}};l.addEventListener(m,v),p.push(()=>{l.removeEventListener(m,v)})}}(e,this),o!=null&&e.classList.add(...o)}else this._window=null,this._updateTags.add(Mi),Wn(this);Li("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&G(38);let o=e;o._readOnly&&(o=Dh(e),o._selection=e._selection?e._selection.clone():null),Fm(this);const i=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;i===null||i.isEmpty()||(a!=null&&s.add(a),Wn(this)),this._pendingEditorState=o,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||Wn(this)}parseEditorState(e,n){return function(o,i,s){const a=Mu(),l=ct,c=Bt,u=ut,d=i._dirtyElements,p=i._dirtyLeaves,f=i._cloneNotNeeded,m=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Set,i._dirtyType=0,ct=a,Bt=!1,ut=i,Ou(null);try{const h=i._nodes;Bu(o.root,h),s&&s(),a._readOnly=!0}catch(h){h instanceof Error&&i._onError(h)}finally{i._dirtyElements=d,i._dirtyLeaves=p,i._cloneNotNeeded=f,i._dirtyType=m,ct=l,Bt=c,ut=u}return a}(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return Wn(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(o,i,s){o._updating?o._updates.push([i,s]):ol(o,i,s)})(this,e,n)}focus(e,n={}){const o=this._rootElement;o!==null&&(o.setAttribute("autocapitalize","off"),zt(this,()=>{const i=te(),s=We();i!==null?i.dirty||vt(i.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),dce("focus"),fce(()=>{o.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&o.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=hn(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Li("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}j(nr,"version");nr.version="0.38.1+prod.esm";let Vc=null;function Ou(t){Vc=t}let sce=1;function Mh(t,e){const n=Vu(t,e);return n===void 0&&G(30,e),n}function Vu(t,e){return t._nodes.get(e)}const ace=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Af(t){return Ae(Ur(t))}function Iu(t){const e=document.activeElement;if(!tt(e))return!1;const n=e.nodeName;return Ae(Ur(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&il(e)==null)}function ms(t,e,n){const o=t.getRootElement();try{return o!==null&&o.contains(e)&&o.contains(n)&&e!==null&&!Iu(e)&&Lh(e)===t}catch{return!1}}function Pu(t){return t instanceof nr}function Lh(t){let e=t;for(;e!=null;){const n=il(e);if(Pu(n))return n;e=hs(e)}return null}function il(t){return t?t.__lexicalEditor:null}function Wo(t){return el(t)||t.isToken()}function qn(t){return Wo(t)||t.isSegmented()}function to(t){return Jr(t)&&t.nodeType===3}function Oh(t){return Jr(t)&&t.nodeType===9}function zr(t){let e=t;for(;e!=null;){if(to(e))return e;e=e.firstChild}return null}function ya(t,e,n){const o=xt[e];if(n!==null&&(t&o)===(n&o))return t;let i=t^o;return e==="subscript"?i&=~xt.superscript:e==="superscript"?i&=~xt.subscript:e==="lowercase"?(i&=~xt.uppercase,i&=~xt.capitalize):e==="uppercase"?(i&=~xt.lowercase,i&=~xt.capitalize):e==="capitalize"&&(i&=~xt.lowercase,i&=~xt.uppercase),i}function Vh(t){return Q(t)||go(t)||Ae(t)}function lce(t,e){const n=function(){const a=Vc;return Vc=null,a}();if((e=e||n&&n.__key)!=null)return void(t.__key=e);lt(),xh();const o=je(),i=Ao(),s=""+sce++;i._nodeMap.set(s,t),U(t)?o._dirtyElements.set(s,!0):o._dirtyLeaves.add(s),o._cloneNotNeeded.add(s),o._dirtyType=1,t.__key=s}function Zo(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),o=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,l=i!==null?i.__key:null,c=i!==null?i.getWritable():null,u=s!==null?s.getWritable():null;i===null&&(o.__first=a),s===null&&(o.__last=l),c!==null&&(c.__next=a),u!==null&&(u.__prev=l),n.__prev=null,n.__next=null,n.__parent=null,o.__size--}}function _a(t){xh(),ma(t)&&G(323,t.__key,t.__type);const e=t.getLatest(),n=e.__parent,o=Ao(),i=je(),s=o._nodeMap,a=i._dirtyElements;n!==null&&function(c,u,d){let p=c;for(;p!==null;){if(d.has(p))return;const f=u.get(p);if(f===void 0)break;d.set(p,!1),p=f.__parent}}(n,s,a);const l=e.__key;i._dirtyType=1,U(t)?a.set(l,!0):i._dirtyLeaves.add(l)}function ft(t){lt();const e=je(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const o=rt(n);o!==null&&o.getWritable()}if(t!==null){const o=rt(t);o!==null&&o.getWritable()}}}function po(){return us()?null:je()._compositionKey}function rt(t,e){const n=(e||Ao())._nodeMap.get(t);return n===void 0?null:n}function Ih(t,e){const n=sl(t,je());return n!==void 0?rt(n,e):null}function sl(t,e){return t[`__lexicalKey_${e._key}`]}function Ur(t,e){let n=t;for(;n!=null;){const o=Ih(n,e);if(o!==null)return o;n=hs(n)}return null}function Ph(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function Tf(t){return t.read(()=>We().getTextContent())}function We(){return Fh(Ao())}function Fh(t){return t._nodeMap.get("root")}function vt(t){lt();const e=Ao();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Er(t){const e=je(),n=function(o,i){let s=o;for(;s!=null;){const a=sl(s,i);if(a!==void 0)return a;s=hs(s)}return null}(t,e);return n===null?t===e.getRootElement()?rt("root"):null:rt(n)}function Rh(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Fu(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function zh(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Uh(t){return to(t)?t.nodeValue:null}function Ru(t,e,n){const o=hn(on(e));if(o===null)return;const i=o.anchorNode;let{anchorOffset:s,focusOffset:a}=o;if(i!==null){let l=Uh(i);const c=Ur(i);if(l!==null&&Q(c)){if(l===Ja&&n){const u=n.length;l=n,s=u,a=u}l!==null&&zu(c,l,s,a,t)}}}function zu(t,e,n,o,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const a=s.isComposing();let l=e;(a||i)&&e[e.length-1]===Ja&&(l=e.slice(0,-1));const c=s.getTextContent();if(i||l!==c){if(l===""){if(ft(null),ji||Rr||Wi)s.remove();else{const v=je();setTimeout(()=>{v.update(()=>{s.isAttached()&&s.remove()})},20)}return}const u=s.getParent(),d=Yr(),p=s.getTextContentSize(),f=po(),m=s.getKey();if(s.isToken()||f!==null&&m===f&&!a||K(d)&&(u!==null&&!u.canInsertTextBefore()&&d.anchor.offset===0||d.anchor.key===t.__key&&d.anchor.offset===0&&!s.canInsertTextBefore()&&!a||d.focus.key===t.__key&&d.focus.offset===p&&!s.canInsertTextAfter()&&!a))return void s.markDirty();const h=te();if(!K(h)||n===null||o===null)return void Nf(s,l,h);if(h.setTextNodeRange(s,n,s,o),s.isSegmented()){const v=Ke(s.getTextContent());s.replace(v),s=v}Nf(s,l,h)}}}function Nf(t,e,n){if(t.setTextContent(e),K(n)){const o=t.getKey();for(const i of["anchor","focus"]){const s=n[i];s.type==="text"&&s.key===o&&(s.offset=yo(t,s.offset,"clamp"))}}}function Rs(t,e,n){const o=e[n]||!1;return o==="any"||o===t[n]}function cce(t,e){return Rs(t,e,"altKey")&&Rs(t,e,"ctrlKey")&&Rs(t,e,"shiftKey")&&Rs(t,e,"metaKey")}function Le(t,e,n){return cce(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const Hn={ctrlKey:!un,metaKey:un},Df={altKey:un,ctrlKey:!un};function $f(t){return t.key==="Backspace"}function Bf(t){return Le(t,"a",Hn)}function uce(t){const e=We();if(K(t)){const n=t.anchor,o=t.focus,i=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(i.getKey(),0,"element"),o.set(i.getKey(),i.getChildrenSize(),"element"),aa(t),t}{const n=e.select(0,e.getChildrenSize());return vt(aa(n)),n}}function Dr(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,o=n[e];if(o!==void 0)return o;const i=t[e];if(typeof i=="string"){const s=Om(i);return n[e]=s,s}return i}function Uu(t,e,n,o,i){if(n.size===0)return;const s=o.__type,a=o.__key,l=e.get(s);l===void 0&&G(33,s);const c=l.klass;let u=t.get(c);u===void 0&&(u=new Map,t.set(c,u));const d=u.get(a),p=d==="destroyed"&&i==="created";(d===void 0||p)&&u.set(a,p?"updated":i)}function Mf(t,e,n){const o=t.getParent();let i=n,s=t;return o!==null&&(e&&n===0?(i=s.getIndexWithinParent(),s=o):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=o)),s.getChildAtIndex(e?i-1:i)}function Ic(t,e){const n=t.offset;if(t.type==="element")return Mf(t.getNode(),e,n);{const o=t.getNode();if(e&&n===0||!e&&n===o.getTextContentSize()){const i=e?o.getPreviousSibling():o.getNextSibling();return i===null?Mf(o.getParentOrThrow(),e,o.getIndexWithinParent()+(e?0:1)):i}}return null}function Hh(t){const e=on(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function se(t,e,n){return function(o,i,s){const a=Fu(o);for(let l=4;l>=0;l--)for(let c=0;c<a.length;c++){const u=a[c],d=u._commands.get(i);if(d!==void 0){const p=d[l];if(p!==void 0){const f=Array.from(p),m=f.length;let h=!1;if(zt(u,()=>{for(let v=0;v<m;v++)if(f[v](s,o))return void(h=!0)}),h)return h}}}return!1}(t,e,n)}function al(t){return!Qe(t)&&!t.isLastChild()&&!t.isInline()}function or(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&G(75,e),n}function hs(t){const e=t.assignedSlot||t.parentElement;return Rc(e)?e.host:e}function qh(t){return Oh(t)?t:tt(t)?t.ownerDocument:null}function dce(t){lt(),je()._updateTags.add(t)}function fce(t){lt(),je()._deferred.push(t)}function Pc(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function Hu(t){const e=qh(t);return e?e.defaultView:null}function on(t){const e=t._window;return e===null&&G(78),e}function pce(t){let e=t.getParentOrThrow();for(;e!==null;){if(At(e))return e;e=e.getParentOrThrow()}return e}function At(t){return Qe(t)||U(t)&&t.isShadowRoot()}function _n(t){const e=je(),n=t.getType(),o=Vu(e,n);o===void 0&&G(200,t.constructor.name,n);const{replace:i,replaceWithKlass:s}=o;if(i!==null){const a=i(t),l=a.constructor;return s!==null?a instanceof s||G(201,s.name,s.getType(),l.name,l.getType(),t.constructor.name,n):a instanceof t.constructor&&l!==t.constructor||G(202,l.name,l.getType(),t.constructor.name,n),a.__key===t.__key&&G(203,t.constructor.name,n,l.name,l.getType()),a}return t}function tc(t,e){!Qe(t.getParent())||U(e)||Ae(e)||G(99)}function mce(t){const e=rt(t);return e===null&&G(63,t),e}function nc(t){return(Ae(t)||U(t)&&!t.canBeEmpty())&&!t.isInline()}function Fc(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const o=t.parentElement;o!==null&&o.removeChild(t)}function hn(t){return yn?(t||window).getSelection():null}function hce(t){const e=Hu(t);return e?e.getSelection():null}function jh(t){return tt(t)&&t.tagName==="A"}function tt(t){return Jr(t)&&t.nodeType===1}function Jr(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function Rc(t){return Jr(t)&&t.nodeType===11}function zc(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function Ca(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Gt(t){if(Ae(t)&&!t.isInline())return!0;if(!U(t)||At(t))return!1;const e=t.getFirstChild(),n=e===null||go(e)||Q(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function ll(){return je()}const Lf=new WeakMap,gce=new Map;function Of(t){if(!t._readOnly&&t.isEmpty())return gce;t._readOnly||G(192);let e=Lf.get(t);return e||(e=function(n){const o=new Map;for(const[i,s]of n._nodeMap){const a=s.__type;let l=o.get(a);l||(l=new Map,o.set(a,l)),l.set(i,s)}return o}(t),Lf.set(t,e)),e}function Wh(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function vce(t){return(e=Wh(t))[vh]=!0,e;var e}function qu(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,o=Math.round(n/40);e.setIndent(o)}function yce(t){return t.__lexicalUnmanaged===!0}function ki(t,e){return function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(t,e)&&t[e]!==pn[e]}function cl(t){const e=j1 in t.prototype?t.prototype[j1]():void 0,n=function(a){if(!(a===pn||a.prototype instanceof pn)){let l="<unknown>",c="<unknown>";try{l=a.getType()}catch{}try{nr.version&&(c=JSON.parse(nr.version))}catch{}G(290,a.name,l,c)}return a===Nh||a===jt||a===pn}(t),o=!n&&ki(t,"getType")?t.getType():void 0;let i,s=o;if(e)if(o)i=e[o];else for(const[a,l]of Object.entries(e))s=a,i=l;if(!n&&s&&(ki(t,"getType")||(t.getType=()=>s),ki(t,"clone")||(t.clone=a=>(Ou(a),new t)),ki(t,"importJSON")||(t.importJSON=i&&i.$importJSON||(a=>new t().updateFromJSON(a))),!ki(t,"importDOM")&&i)){const{importDOM:a}=i;a&&(t.importDOM=()=>a)}return{ownNodeConfig:i,ownNodeType:s}}function _ce(t){const e=ll();return lt(),new(e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(t))).klass}const en=(t,e)=>{let n=t;for(;n!=null&&!Qe(n);){if(e(n))return n;n=n.getParent()}return null},Cce={next:"previous",previous:"next"};class ju{constructor(e){j(this,"origin");this.origin=e}[Symbol.iterator](){return Zh({hasNext:Hr,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return mt(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return mt(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const o=this.getNodeAtCaret();return e.is(this.origin)||e.is(o)||(o===null?this.insert(e):o.replace(e,n)),this}splice(e,n,o="next"){const i=o===this.direction?n:Array.from(n).reverse();let s=this;const a=this.getParentAtCaret(),l=new Map;for(let c=s.getAdjacentCaret();c!==null&&l.size<e;c=c.getAdjacentCaret()){const u=c.origin.getWritable();l.set(u.getKey(),u)}for(const c of i){if(l.size>0){const u=s.getNodeAtCaret();if(u){if(l.delete(u.getKey()),l.delete(c.getKey()),!(u.is(c)||s.origin.is(c))){const d=c.getParent();d&&d.is(a)&&c.remove(),u.replace(c)}}else u===null&&G(263,Array.from(l).join(" "))}else s.insert(c);s=mt(c,this.direction)}for(const c of l.values())c.remove();return this}}class Xi extends ju{constructor(){super(...arguments);j(this,"type","child")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:gn(n,this.direction)}getParentCaret(n="root"){return mt(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Xr(this.direction);return mt(this.getNodeAtCaret(),n)||gn(this.origin,n)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(n){return n instanceof Xi&&this.direction===n.direction&&this.origin.is(n.origin)}isSamePointCaret(n){return this.isSameNodeCaret(n)}}const bce={root:Qe,shadowRoot:At};function Xr(t){return Cce[t]}function Wu(t,e="root"){return bce[e](t)?null:t}class rr extends ju{constructor(){super(...arguments);j(this,"type","sibling")}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:mt(n,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return U(this.origin)?gn(this.origin,this.direction):null}getParentCaret(n="root"){return mt(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){const n=Xr(this.direction);return mt(this.getNodeAtCaret(),n)||gn(this.origin.getParentOrThrow(),n)}isSamePointCaret(n){return n instanceof rr&&this.direction===n.direction&&this.origin.is(n.origin)}isSameNodeCaret(n){return(n instanceof rr||n instanceof ir)&&this.direction===n.direction&&this.origin.is(n.origin)}}class ir extends ju{constructor(n,o){super(n);j(this,"type","text");j(this,"offset");this.offset=o}getLatest(){const n=this.origin.getLatest();return n===this.origin?this:sr(n,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(n="root"){return mt(Wu(this.getParentAtCaret(),n),this.direction)}getFlipped(){return sr(this.origin,Xr(this.direction),this.offset)}isSamePointCaret(n){return n instanceof ir&&this.direction===n.direction&&this.origin.is(n.origin)&&this.offset===n.offset}isSameNodeCaret(n){return(n instanceof rr||n instanceof ir)&&this.direction===n.direction&&this.origin.is(n.origin)}getSiblingCaret(){return mt(this.origin,this.direction)}}function vo(t){return t instanceof ir}function Hr(t){return t instanceof rr}function $n(t){return t instanceof Xi}const kce={next:class extends ir{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ir{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},wce={next:class extends rr{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends rr{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Ece={next:class extends Xi{constructor(){super(...arguments);j(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Xi{constructor(){super(...arguments);j(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function mt(t,e){return t?new wce[e](t):null}function sr(t,e,n){return t?new kce[e](t,yo(t,n)):null}function yo(t,e,n="error"){const o=t.getTextContentSize();let i=e==="next"?o:e==="previous"?0:e;return(i<0||i>o)&&(n!=="clamp"&&Mm(284,String(e),String(o),t.getKey()),i=i<0?0:o),i}function Vf(t,e){return new xce(t,e)}function gn(t,e){return U(t)?new Ece[e](t):null}function Sce(t){return t&&t.getChildCaret()||t}function Zu(t){return t&&Sce(t.getAdjacentCaret())}class Ku{constructor(e,n,o){j(this,"type","node-caret-range");j(this,"direction");j(this,"anchor");j(this,"focus");this.anchor=e,this.focus=n,this.direction=o}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new Ku(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i].getLatest();return vo(s)?function(a,l){const{direction:c,origin:u}=a,d=yo(u,l==="focus"?Xr(c):c);return Vf(a,d-a.offset)}(s,i):null},n=e("anchor"),o=e("focus");if(n&&o){const{caret:i}=n,{caret:s}=o;if(i.isSameNodeCaret(s))return[Vf(i,s.offset-i.offset),null]}return[n,o]}iterNodeCarets(e="root"){const n=vo(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),o=this.focus.getLatest(),i=vo(o),s=a=>a.isSameNodeCaret(o)?null:Zu(a)||a.getParentCaret(e);return Zh({hasNext:a=>a!==null&&!(i&&o.isSameNodeCaret(a)),initial:n.isSameNodeCaret(o)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class xce{constructor(e,n){j(this,"type","slice");j(this,"caret");j(this,"distance");this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,o=n+e;return o<n?[o,n]:[n,o]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[o,i]=this.getSliceIndices(),s=e.getTextContent();return sr(e.setTextContent(s.slice(0,o)+s.slice(i)),n,o)}}function Gu(t){return wo(t,mt(We(),t.direction))}function Ace(t){return wo(t,t)}function wo(t,e){return t.direction!==e.direction&&G(265),new Ku(t,e,t.direction)}function Zh(t){const{initial:e,hasNext:n,step:o,map:i}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:i(s)};return s=o(s),a}}}function Kh(t,e){const n=Gs(t.origin,e.origin);switch(n===null&&G(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const o=t.type==="text",i=e.type==="text";return o&&i?function(s,a){return Math.sign(s-a)}(t.offset,e.offset):t.type===e.type?0:o?-1:i?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Gh(n)}}function Gh(t){const{a:e,b:n}=t,o=e.__key,i=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===i)return-1;if(a.__key===o)return 1}return s===null?1:-1}function zs(t,e){return e.is(t)}function If(t){return U(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Gs(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[o,i]=If(t);o;i=o,o=o.getParent())n.set(o,i);for(let[o,i]=If(e);o;i=o,o=o.getParent()){const s=n.get(o);if(s!==void 0)return s===null?(zs(t,o)||G(276),{commonAncestor:o,type:"ancestor"}):i===null?(zs(e,o)||G(277),{commonAncestor:o,type:"descendant"}):((U(s)||zs(t,s))&&(U(i)||zs(e,i))&&o.is(s.getParent())&&o.is(i.getParent())||G(278),{a:s,b:i,commonAncestor:o,type:"branch"})}return null}function Xn(t,e){const{type:n,key:o,offset:i}=t,s=mce(t.key);return n==="text"?(Q(s)||G(266,s.getType(),o),sr(s,e,i)):(U(s)||G(267,s.getType(),o),Dce(s,t.offset,e))}function ar(t,e){const{origin:n,direction:o}=e,i=o==="next";vo(e)?t.set(n.getKey(),e.offset,"text"):Hr(e)?Q(n)?t.set(n.getKey(),yo(n,o),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):($n(e)&&U(n)||G(268),t.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function Tce(t){const e=te(),n=K(e)?e:nl();return Ys(n,t),vt(n),n}function Ys(t,e){ar(t.anchor,e.anchor),ar(t.focus,e.focus)}function Pf(t){const{anchor:e,focus:n}=t,o=Xn(e,"next"),i=Xn(n,"next"),s=Kh(o,i)<=0?"next":"previous";return wo(qr(o,s),qr(i,s))}function Yu(t){const{direction:e,origin:n}=t,o=mt(n,Xr(e)).getNodeAtCaret();return o?mt(o,e):gn(n.getParentOrThrow(),e)}function Ff(t,e="root"){const n=[t];for(let o=$n(t)?t.getParentCaret(e):t.getSiblingCaret();o!==null;o=o.getParentCaret(e))n.push(Yu(o));return n}function oc(t){return!!t&&t.origin.isAttached()}function Nce(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",o="next";let i=e;const s=Jh(t,o),a=Ff(s.anchor,n),l=Ff(s.focus.getFlipped(),n),c=new Set,u=[];for(const h of s.iterNodeCarets(n))if($n(h))c.add(h.origin.getKey());else if(Hr(h)){const{origin:v}=h;U(v)&&!c.has(v.getKey())||u.push(v)}for(const h of u)h.remove();for(const h of s.getTextSlices()){if(!h)continue;const{origin:v}=h.caret,C=v.getTextContentSize(),y=Yu(mt(v,o)),g=v.getMode();if(Math.abs(h.distance)===C&&i==="removeEmptySlices"||g==="token"&&h.distance!==0)y.remove();else if(h.distance!==0){i="removeEmptySlices";let _=h.removeTextSlice();const b=h.caret.origin;if(g==="segmented"){const w=_.origin,k=Ke(w.getTextContent()).setStyle(w.getStyle()).setFormat(w.getFormat());y.replaceOrInsert(k),_=sr(k,o,_.offset)}b.is(a[0].origin)&&(a[0]=_),b.is(l[0].origin)&&(l[0]=_.getFlipped())}}let d,p;for(const h of a)if(oc(h)){d=Jt(h);break}for(const h of l)if(oc(h)){p=Jt(h);break}const f=function(h,v,C){if(!h||!v)return null;const y=h.getParentAtCaret(),g=v.getParentAtCaret();if(!y||!g)return null;const _=y.getParents().reverse();_.push(y);const b=g.getParents().reverse();b.push(g);const w=Math.min(_.length,b.length);let k;for(k=0;k<w&&_[k]===b[k];k++);const A=(D,V)=>{let T;for(let M=k;M<D.length;M++){const x=D[M];if(At(x))return;!T&&V(x)&&(T=x)}return T},S=A(_,Gt),E=S&&A(b,D=>C.has(D.getKey())&&Gt(D));return S&&E?[S,E]:null}(d,p,c);if(f){const[h,v]=f;gn(h,"previous").splice(0,v.getChildren()),v.remove()}const m=[d,p,...a,...l].find(oc);if(m)return Ace(qr(Jt(m),t.direction));G(269,JSON.stringify(a.map(h=>h.origin.__key)))}function Jt(t){const e=function(i){let s=i;for(;$n(s);){const a=Zu(s);if(!$n(a))break;s=a}return s}(t.getLatest()),{direction:n}=e;if(Q(e.origin))return vo(e)?e:sr(e.origin,n,n);const o=e.getAdjacentCaret();return Hr(o)&&Q(o.origin)?sr(o.origin,n,Xr(n)):e}function Yh(t){return vo(t)&&t.offset!==yo(t.origin,t.direction)}function qr(t,e){return t.direction===e?t:t.getFlipped()}function Jh(t,e){return t.direction===e?t:wo(qr(t.focus,e),qr(t.anchor,e))}function Dce(t,e,n){let o=gn(t,"next");for(let i=0;i<e;i++){const s=o.getAdjacentCaret();if(s===null)break;o=s}return qr(o,n)}const Uc=new Map;function Xh(t){const e={};if(!t)return e;const n=t.split(";");for(const o of n)if(o!==""){const[i,s]=o.split(/:([^]+)/);i&&s&&(e[i.trim()]=s.trim())}return e}function Rf(t){let e=Uc.get(t);return e===void 0&&(e=Xh(t),Uc.set(t,e)),e}function Qh(t){const e=ll().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function eg(t){return Qh(Qe(t)?t:t.getParentOrThrow())}function zf(t){const e=eg(t);return e!==null&&e.direction==="rtl"}function tg(t,e,n="self"){const o=t.getStartEndPoints();if(e.isSelected(t)&&!qn(e)&&o!==null){const[i,s]=o,a=t.isBackward(),l=i.getNode(),c=s.getNode(),u=e.is(l),d=e.is(c);if(u||d){const[p,f]=Lc(t),m=l.is(c),h=e.is(a?c:l),v=e.is(a?l:c);let C,y=0;m?(y=p>f?f:p,C=p>f?p:f):h?(y=a?f:p,C=void 0):v&&(y=0,C=a?p:f);const g=e.__text.slice(y,C);g!==e.__text&&(n==="clone"&&(e=vce(e)),e.__text=g)}}return e}function $ce(t){const e=t.getStyle(),n=Xh(e);Uc.set(e,n)}function Bce(t,e){const n=t.getFormatType(),o=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),o!==e.getIndent()&&e.setIndent(o)}function rc(t,e,n=Bce){if(t===null)return;const o=t.getStartEndPoints(),i=new Map;let s=null;if(o){const[a,l]=o;s=nl(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(l.key,l.offset,l.type);const c=en(a.getNode(),Gt),u=en(l.getNode(),Gt);U(c)&&i.set(c.getKey(),c),U(u)&&i.set(u.getKey(),u)}for(const a of t.getNodes())if(U(a)&&Gt(a))i.set(a.getKey(),a);else if(o===null){const l=en(a,Gt);U(l)&&i.set(l.getKey(),l)}for(const[a,l]of i){const c=e();n(l,c),l.replace(c,!0),s&&(a===s.anchor.key&&s.anchor.set(c.getKey(),s.anchor.offset,s.anchor.type),a===s.focus.key&&s.focus.set(c.getKey(),s.focus.offset,s.focus.type))}s&&t.is(te())&&vt(s)}function ng(t){const e=og(t);return e!==null&&e.writingMode==="vertical-rl"}function og(t){const e=t.anchor.getNode();return U(e)?Qh(e):eg(e)}function Uf(t,e){let n=ng(t)?!e:e;rg(t)&&(n=!n);const o=Xn(t.focus,n?"previous":"next");if(Yh(o))return!1;for(const i of Gu(o)){if($n(i))return!i.origin.isInline();if(!U(i.origin)){if(Ae(i.origin))return!0;break}}return!1}function Mce(t,e,n,o){t.modify(e?"extend":"move",n,o)}function rg(t){const e=og(t);return e!==null&&e.direction==="rtl"}function Hf(t,e,n){const o=rg(t);let i;i=ng(t)||o?!n:n,Mce(t,e,i,"character")}function Lce(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Ju=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Oce=Ju&&"documentMode"in document?document.documentMode:null;!(!Ju||!("InputEvent"in window)||Oce)&&"getTargetRanges"in new window.InputEvent("input");function ig(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}function gs(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const Vce=Ju;function Qn(t,...e){const n=ig(...e);n.length>0&&t.classList.add(...n)}function Xu(t,...e){const n=ig(...e);n.length>0&&t.classList.remove(...n)}function Ice(t){return t?t.getAdjacentCaret():null}function Pce(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function Fce(t){const e=en(t,n=>U(n)&&!n.isInline());return U(e)||Lce(4,t.__key),e}function zo(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function mo(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Hc(t){let e=1,n=t.getParent();for(;n!=null;){if(Te(n)){const o=n.getParent();if(ge(o)){e++,n=o.getParent();continue}mo(40)}return e}return e}function qc(t){let e=t.getParent();ge(e)||mo(40);let n=e;for(;n!==null;)n=n.getParent(),ge(n)&&(e=n);return e}function sg(t){let e=[];const n=t.getChildren().filter(Te);for(let o=0;o<n.length;o++){const i=n[o],s=i.getFirstChild();ge(s)?e=e.concat(sg(s)):e.push(i)}return e}function An(t){return Te(t)&&ge(t.getFirstChild())}function qf(t){return Wt().append(t)}function ag(t,e){return Te(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function jf(t){const e=te();if(e!==null){let n=e.getNodes();if(K(e)){const i=e.getStartEndPoints();i===null&&mo(143);const[s]=i,a=s.getNode(),l=a.getParent();if(At(a)){const c=a.getFirstChild();if(c)n=c.selectStart().getNodes();else{const u=Re();a.append(u),n=u.select().getNodes()}}else if(ag(a,n)){const c=Mt(t);if(At(l)){a.replace(c);const u=Wt();U(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),c.append(u)}else if(Te(a)){const u=a.getParentOrThrow();lr(c,u.getChildren()),u.replace(c)}return}}const o=new Set;for(let i=0;i<n.length;i++){const s=n[i];if(U(s)&&s.isEmpty()&&!Te(s)&&!o.has(s.getKey())){Wf(s,t);continue}let a=Vh(s)?s.getParent():Te(s)&&s.isEmpty()?s:null;for(;a!=null;){const l=a.getKey();if(ge(a)){if(!o.has(l)){const c=Mt(t);lr(c,a.getChildren()),a.replace(c),o.add(l)}break}{const c=a.getParent();if(At(c)&&!o.has(l)){o.add(l),Wf(a,t);break}a=c}}}}}function lr(t,e){t.splice(t.getChildrenSize(),0,e)}function Wf(t,e){if(ge(t))return t;const n=t.getPreviousSibling(),o=t.getNextSibling(),i=Wt();let s;if(lr(i,t.getChildren()),ge(n)&&e===n.getListType())n.append(i),ge(o)&&e===o.getListType()&&(lr(n,o.getChildren()),o.remove()),s=n;else if(ge(o)&&e===o.getListType())o.getFirstChildOrThrow().insertBefore(i),s=o;else{const a=Mt(e);a.append(i),t.replace(a),s=a}return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),t.remove(),s}function Qu(t,e){const n=t.getLastChild(),o=e.getFirstChild();n&&o&&An(n)&&An(o)&&(Qu(n.getFirstChild(),o.getFirstChild()),o.remove());const i=e.getChildren();i.length>0&&t.append(...i),e.remove()}function Rce(){const t=te();if(K(t)){const e=new Set,n=t.getNodes(),o=t.anchor.getNode();if(ag(o,n))e.add(qc(o));else for(let i=0;i<n.length;i++){const s=n[i];if(Vh(s)){const a=Pce(s,To);a!=null&&e.add(qc(a))}}for(const i of e){let s=i;const a=sg(i);for(const l of a){const c=Re().setTextStyle(t.style).setTextFormat(t.format);lr(c,l.getChildren()),s.insertAfter(c),s=c,l.__key===t.anchor.key&&ar(t.anchor,Jt(gn(c,"next"))),l.__key===t.focus.key&&ar(t.focus,Jt(gn(c,"next"))),l.remove()}i.remove()}}}function lg(t){const e=t.getListType()!=="check";let n=t.getStart();for(const o of t.getChildren())Te(o)&&(o.getValue()!==n&&o.setValue(n),e&&o.getLatest().__checked!=null&&o.setChecked(void 0),ge(o.getFirstChild())||n++)}function zce(t){const e=new Set;if(An(t)||e.has(t.getKey()))return;const n=t.getParent(),o=t.getNextSibling(),i=t.getPreviousSibling();if(An(o)&&An(i)){const s=i.getFirstChild();if(ge(s)){s.append(t);const a=o.getFirstChild();ge(a)&&(lr(s,a.getChildren()),o.remove(),e.add(o.getKey()))}}else if(An(o)){const s=o.getFirstChild();if(ge(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(An(i)){const s=i.getFirstChild();ge(s)&&s.append(t)}else if(ge(n)){const s=Wt().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=Mt(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),i?i.insertAfter(s):o?o.insertBefore(s):n.append(s)}}function Uce(t){if(An(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(ge(n?n.getParent():void 0)&&Te(n)&&ge(e)){const o=e?e.getFirstChild():void 0,i=e?e.getLastChild():void 0;if(t.is(o))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(i))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=Wt(),l=Mt(s);a.append(l),t.getPreviousSiblings().forEach(d=>l.append(d));const c=Wt(),u=Mt(s);c.append(u),lr(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(c),n.replace(t)}}}function Hce(){const t=te();if(!K(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!Te(e)||e.getChildrenSize()!==0)return!1;const n=qc(e),o=e.getParent();ge(o)||mo(40);const i=o.getParent();let s;if(At(i))s=Re(),n.insertAfter(s);else{if(!Te(i))return!1;s=Wt(),i.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const l=Mt(o.getListType());if(Te(s)){const c=Wt();c.append(l),s.insertAfter(c)}else s.insertAfter(l);l.append(...a)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const u=c.getParent();if(u==null||!Te(u)&&!ge(u))break;c=u}c.remove()}(e),!0}function ba(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[o]of n.matchAll(/\S+/g))e.push(o);return e}let To=class extends jt{constructor(n=1,o=void 0,i){super(i);j(this,"__value");j(this,"__checked");this.__value=n===void 0?1:n,this.__checked=o}$config(){return this.config("listitem",{$transform:n=>{if(n.__checked==null)return;const o=n.getParent();ge(o)&&o.getListType()!=="check"&&n.getChecked()!=null&&n.setChecked(void 0)},extends:jt,importDOM:{li:()=>({conversion:qce,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__value=n.__value,this.__checked=n.__checked}createDOM(n){const o=document.createElement("li");return this.updateListItemDOM(null,o,n),o}updateListItemDOM(n,o,i){(function(l,c,u){const d=c.getParent();!ge(d)||d.getListType()!=="check"||ge(c.getFirstChild())?(l.removeAttribute("role"),l.removeAttribute("tabIndex"),l.removeAttribute("aria-checked")):(l.setAttribute("role","checkbox"),l.setAttribute("tabIndex","-1"),u&&c.__checked===u.__checked||l.setAttribute("aria-checked",c.getChecked()?"true":"false"))})(o,this,n),o.value=this.__value,function(l,c,u){const d=[],p=[],f=c.list,m=f?f.listitem:void 0;let h;if(f&&f.nested&&(h=f.nested.listitem),m!==void 0&&d.push(...ba(m)),f){const v=u.getParent(),C=ge(v)&&v.getListType()==="check",y=u.getChecked();C&&!y||p.push(f.listitemUnchecked),C&&y||p.push(f.listitemChecked),C&&d.push(y?f.listitemChecked:f.listitemUnchecked)}if(h!==void 0){const v=ba(h);u.getChildren().some(C=>ge(C))?d.push(...v):p.push(...v)}p.length>0&&Xu(l,...p),d.length>0&&Qn(l,...d)}(o,i.theme,this);const s=n?n.__style:"",a=this.__style;s!==a&&(a===""?o.removeAttribute("style"):o.style.cssText=a),function(l,c,u){const d=Rf(c.__textStyle);for(const p in d)l.style.setProperty(`--listitem-marker-${p}`,d[p]);if(u)for(const p in Rf(u.__textStyle))p in d||l.style.removeProperty(`--listitem-marker-${p}`)}(o,this,n)}updateDOM(n,o,i){const s=o;return this.updateListItemDOM(n,s,i),!1}updateFromJSON(n){return super.updateFromJSON(n).setValue(n.value).setChecked(n.checked)}exportDOM(n){const o=this.createDOM(n._config),i=this.getFormatType();i&&(o.style.textAlign=i);const s=this.getDirection();return s&&(o.dir=s),{element:o}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...n){for(let o=0;o<n.length;o++){const i=n[o];if(U(i)&&this.canMergeWith(i)){const s=i.getChildren();this.append(...s),i.remove()}else super.append(i)}return this}replace(n,o){if(Te(n))return super.replace(n);this.setIndent(0);const i=this.getParentOrThrow();if(!ge(i))return n;if(i.__first===this.getKey())i.insertBefore(n);else if(i.__last===this.getKey())i.insertAfter(n);else{const s=Mt(i.getListType());let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),s.append(l)}i.insertAfter(n),n.insertAfter(s)}return o&&(U(n)||mo(139),this.getChildren().forEach(s=>{n.append(s)})),this.remove(),i.getChildrenSize()===0&&i.remove(),n}insertAfter(n,o=!0){const i=this.getParentOrThrow();if(ge(i)||mo(39),Te(n))return super.insertAfter(n,o);const s=this.getNextSiblings();if(i.insertAfter(n,o),s.length!==0){const a=Mt(i.getListType());s.forEach(l=>a.append(l)),n.insertAfter(a,o)}return n}remove(n){const o=this.getPreviousSibling(),i=this.getNextSibling();super.remove(n),o&&i&&An(o)&&An(i)&&(Qu(o.getFirstChild(),i.getFirstChild()),i.remove())}insertNewAfter(n,o=!0){const i=Wt().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(i,o),i}collapseAtStart(n){const o=Re();this.getChildren().forEach(l=>o.append(l));const i=this.getParentOrThrow(),s=i.getParentOrThrow(),a=Te(s);if(i.getChildrenSize()===1)if(a)i.remove(),s.select();else{i.insertBefore(o),i.remove();const l=n.anchor,c=n.focus,u=o.getKey();l.type==="element"&&l.getNode().is(this)&&l.set(u,l.offset,"element"),c.type==="element"&&c.getNode().is(this)&&c.set(u,c.offset,"element")}else i.insertBefore(o),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(n){const o=this.getWritable();return o.__value=n,o}getChecked(){const n=this.getLatest();let o;const i=this.getParent();return ge(i)&&(o=i.getListType()),o==="check"?!!n.__checked:void 0}setChecked(n){const o=this.getWritable();return o.__checked=n,o}toggleChecked(){const n=this.getWritable();return n.setChecked(!n.__checked)}getIndent(){const n=this.getParent();if(n===null||!this.isAttached())return this.getLatest().__indent;let o=n.getParentOrThrow(),i=0;for(;Te(o);)o=o.getParentOrThrow().getParentOrThrow(),i++;return i}setIndent(n){typeof n!="number"&&mo(117),(n=Math.floor(n))>=0||mo(199);let o=this.getIndent();for(;o!==n;)o<n?(zce(this),o++):(Uce(this),o--);return this}canInsertAfter(n){return Te(n)}canReplaceWith(n){return Te(n)}canMergeWith(n){return Te(n)||ps(n)}extractWithChild(n,o){if(!K(o))return!1;const i=o.anchor.getNode(),s=o.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&this.getTextContent().length===o.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Mt("bullet")}canMergeWhenEmpty(){return!0}};function qce(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return Zf(n)}if(t.classList.contains("joplin-checkbox")){for(const n of t.children)if(n.classList.contains("checkbox-wrapper")&&n.children.length>0&&n.children[0].tagName==="INPUT")return Zf(n.children[0])}const e=t.getAttribute("aria-checked");return{node:Wt(e==="true"||e!=="false"&&void 0)}}function Zf(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:Wt(t.hasAttribute("checked"))}}function Wt(t){return _n(new To(void 0,t))}function Te(t){return t instanceof To}let ur=class extends jt{constructor(n="number",o=1,i){super(i);j(this,"__tag");j(this,"__start");j(this,"__listType");const s=Wce[n]||n;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=o}$config(){return this.config("list",{$transform:n=>{(function(o){const i=o.getNextSibling();ge(i)&&o.getListType()===i.getListType()&&Qu(o,i)})(n),lg(n)},extends:jt,importDOM:{ol:()=>({conversion:Gf,priority:0}),ul:()=>({conversion:Gf,priority:0})}})}afterCloneFrom(n){super.afterCloneFrom(n),this.__listType=n.__listType,this.__tag=n.__tag,this.__start=n.__start}getTag(){return this.getLatest().__tag}setListType(n){const o=this.getWritable();return o.__listType=n,o.__tag=n==="number"?"ol":"ul",o}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(n){const o=this.getWritable();return o.__start=n,o}createDOM(n,o){const i=this.__tag,s=document.createElement(i);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Kf(s,n.theme,this),s}updateDOM(n,o,i){return n.__tag!==this.__tag||n.__listType!==this.__listType||(Kf(o,i.theme,this),!1)}updateFromJSON(n){return super.updateFromJSON(n).setListType(n.listType).setStart(n.start)}exportDOM(n){const o=this.createDOM(n._config,n);return tt(o)&&(this.__start!==1&&o.setAttribute("start",String(this.__start)),this.__listType==="check"&&o.setAttribute("__lexicalListType","check")),{element:o}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(n,o,i){let s=i;for(let a=0;a<i.length;a++){const l=i[a];Te(l)||(s===i&&(s=[...i]),s[a]=Wt().append(!U(l)||ge(l)||l.isInline()?l:Ke(l.getTextContent())))}return super.splice(n,o,s)}extractWithChild(n){return Te(n)}};function Kf(t,e,n){const o=[],i=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],l=Hc(n)-1,c=l%a.length,u=a[c],d=s[n.__tag];let p;const f=s.nested,m=s.checklist;if(f!==void 0&&f.list&&(p=f.list),d!==void 0&&o.push(d),m!==void 0&&n.__listType==="check"&&o.push(m),u!==void 0){o.push(...ba(u));for(let h=0;h<a.length;h++)h!==c&&i.push(n.__tag+h)}if(p!==void 0){const h=ba(p);l>1?o.push(...h):i.push(...h)}}i.length>0&&Xu(t,...i),o.length>0&&Qn(t,...o)}function jce(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(Te(o)){e.push(o);const i=o.getChildren();i.length>1&&i.forEach(s=>{ge(s)&&e.push(qf(s))})}else e.push(qf(o))}return e}function Gf(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=Mt("number",t.start):e==="ul"&&(n=function(o){if(o.getAttribute("__lexicallisttype")==="check"||o.classList.contains("contains-task-list")||o.getAttribute("data-is-checklist")==="1")return!0;for(const i of o.childNodes)if(tt(i)&&i.hasAttribute("aria-checked"))return!0;return!1}(t)?Mt("check"):Mt("bullet")),{after:jce,node:n}}const Wce={ol:"number",ul:"bullet"};function Mt(t="number",e=1){return _n(new ur(t,e))}function ge(t){return t instanceof ur}const Zce=me("UPDATE_LIST_START_COMMAND"),cg=me("INSERT_UNORDERED_LIST_COMMAND"),ug=me("INSERT_ORDERED_LIST_COMMAND"),Kce=me("REMOVE_LIST_COMMAND");function Gce(t){return gs(t.registerCommand(ug,()=>(jf("number"),!0),bi),t.registerCommand(Zce,e=>{const{listNodeKey:n,newStart:o}=e,i=rt(n);return!!ge(i)&&(i.getListType()==="number"&&(i.setStart(o),lg(i)),!0)},bi),t.registerCommand(cg,()=>(jf("bullet"),!0),bi),t.registerCommand(Kce,()=>(Rce(),!0),bi),t.registerCommand(Gi,()=>Hce(),bi),t.registerNodeTransform(To,e=>{const n=e.getFirstChild();if(n){if(Q(n)){const o=n.getStyle(),i=n.getFormat();e.getTextStyle()!==o&&e.setTextStyle(o),e.getTextFormat()!==i&&e.setTextFormat(i)}}else{const o=te();K(o)&&(o.style!==e.getTextStyle()||o.format!==e.getTextFormat())&&o.isCollapsed()&&e.is(o.anchor.getNode())&&e.setTextStyle(o.style).setTextFormat(o.format)}}),t.registerNodeTransform(xo,e=>{const n=e.getParent();if(Te(n)&&e.is(n.getFirstChild())){const o=e.getStyle(),i=e.getFormat();o===n.getTextStyle()&&i===n.getTextFormat()||n.setTextStyle(o).setTextFormat(i)}}))}function Yce(t){const e=n=>{const o=n.getParent();if(ge(n.getFirstChild())||!ge(o))return;const i=en(n,s=>Te(s)&&ge(s.getParent())&&Te(s.getPreviousSibling()));if(i===null&&n.getIndent()>0)n.setIndent(0);else if(Te(i)){const s=i.getPreviousSibling();if(Te(s)){const a=function(c){let u=c,d=u.getFirstChild();for(;ge(d);){const p=d.getLastChild();if(!Te(p))break;u=p,d=u.getFirstChild()}return u}(s),l=a.getParent();if(ge(l)){const c=Hc(l);c+1<Hc(o)&&n.setIndent(c)}}}};return t.registerNodeTransform(ur,n=>{const o=[n];for(;o.length>0;){const i=o.shift();if(ge(i)){for(const s of i.getChildren())if(Te(s)){e(s);const a=s.getFirstChild();ge(a)&&o.push(a)}}}})}function Jce(t,e){const n=Oh(e)?e.body.childNodes:e.childNodes;let o=[];const i=[];for(const s of n)if(!fg.has(s.nodeName)){const a=pg(s,t,i,!1);a!==null&&(o=o.concat(a))}return function(s){for(const a of s)a.getNextSibling()instanceof Lu&&a.insertAfter(mn());for(const a of s){const l=a.getChildren();for(const c of l)a.insertBefore(c);a.remove()}}(i),o}function Xce(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),o=We().getChildren();for(let i=0;i<o.length;i++)dg(t,o[i],n,e);return n.innerHTML}function dg(t,e,n,o=null){let i=o===null||e.isSelected(o);const s=U(e)&&e.excludeFromCopy("html");let a=e;o!==null&&Q(e)&&(a=tg(o,e,"clone"));const l=U(a)?a.getChildren():[],c=Vu(t,a.getType());let u;u=c&&c.exportDOM!==void 0?c.exportDOM(t,a):a.exportDOM(t);const{element:d,after:p}=u;if(!d)return!1;const f=document.createDocumentFragment();for(let m=0;m<l.length;m++){const h=l[m],v=dg(t,h,f,o);!i&&U(e)&&v&&e.extractWithChild(h,o,"html")&&(i=!0)}if(i&&!s){if((tt(d)||Rc(d))&&d.append(f),n.append(d),p){const m=p.call(a,d);m&&(Rc(d)?d.replaceChildren(m):d.replaceWith(m))}}else n.append(f);return i}const fg=new Set(["STYLE","SCRIPT"]);function pg(t,e,n,o,i=new Map,s){let a=[];if(fg.has(t.nodeName))return a;let l=null;const c=function(h,v){const{nodeName:C}=h,y=v._htmlConversions.get(C.toLowerCase());let g=null;if(y!==void 0)for(const _ of y){const b=_(h);b!==null&&(g===null||(g.priority||0)<=(b.priority||0))&&(g=b)}return g!==null?g.conversion:null}(t,e),u=c?c(t):null;let d=null;if(u!==null){d=u.after;const h=u.node;if(l=Array.isArray(h)?h[h.length-1]:h,l!==null){for(const[,v]of i)if(l=v(l,s),!l)break;l&&a.push(...Array.isArray(h)?h:[l])}u.forChild!=null&&i.set(t.nodeName,u.forChild)}const p=t.childNodes;let f=[];const m=(l==null||!At(l))&&(l!=null&&Oc(l)||o);for(let h=0;h<p.length;h++)f.push(...pg(p[h],e,n,m,new Map(i),l));return d!=null&&(f=d(f)),Ca(t)&&(f=Qce(t,f,m?()=>{const h=new Lu;return n.push(h),h}:Re)),l==null?f.length>0?a=a.concat(f):Ca(t)&&function(h){return h.nextSibling==null||h.previousSibling==null?!1:zc(h.nextSibling)&&zc(h.previousSibling)}(t)&&(a=a.concat(mn())):U(l)&&l.append(...f),a}function Qce(t,e,n){const o=t.style.textAlign,i=[];let s=[];for(let a=0;a<e.length;a++){const l=e[a];if(Oc(l))o&&!l.getFormat()&&l.setFormat(o),i.push(l);else if(s.push(l),a===e.length-1||a<e.length-1&&Oc(e[a+1])){const c=n();c.setFormat(o),c.append(...s),i.push(c),s=[]}}return i}function ka(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function eue(t,e=te()){return e==null&&ka(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?"":Xce(t,e)}function tue(t,e=te()){return e==null&&ka(166),K(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(nue(t,e))}function Yf(t,e,n){const o=t.getData("application/x-lexical-editor");if(o)try{const l=JSON.parse(o);if(l.namespace===n._config.namespace&&Array.isArray(l.nodes))return Jf(n,oue(l.nodes),e)}catch(l){console.error(l)}const i=t.getData("text/html"),s=t.getData("text/plain");if(i&&s!==i)try{const l=new DOMParser().parseFromString(function(c){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(c):c}(i),"text/html");return Jf(n,Jce(n,l),e)}catch(l){console.error(l)}const a=s||t.getData("text/uri-list");if(a!=null)if(K(e)){const l=a.split(/(\r?\n|\t)/);l[l.length-1]===""&&l.pop();for(let c=0;c<l.length;c++){const u=te();if(K(u)){const d=l[c];d===`
30
30
  `||d===`\r
31
- `?u.insertParagraph():d===" "?u.insertNodes([Gr()]):u.insertText(d)}}}else e.insertRawText(a)}function Jf(t,e,n){t.dispatchCommand(Ele,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(K(o)&&o.isCollapsed()){const i=o.anchor;let s=null;const a=Xn(i,"previous");if(a)if(vo(a))s=a.origin;else{const l=wo(a,gn(We(),"next").getFlipped());for(const c of l){if(Q(c.origin)){s=c.origin;break}if(q(c.origin)&&!c.origin.isInline())break}}if(s&&Q(s)){const l=s.getFormat(),c=s.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function mg(t,e,n,o=[]){let i=e===null||n.isSelected(e);const s=q(n)&&n.excludeFromCopy("html");let a=n;e!==null&&Q(a)&&(a=tg(e,a,"clone"));const l=q(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),p=u.constructor;if(d.type!==p.getType()&&ka(58,p.name),q(u)){const f=d.children;Array.isArray(f)||ka(59,p.name)}return d}(a);Q(a)&&a.getTextContentSize()===0&&(i=!1);for(let u=0;u<l.length;u++){const d=l[u],p=mg(t,e,d,c.children);!i&&q(n)&&p&&n.extractWithChild(d,e,"clone")&&(i=!0)}if(i&&!s)o.push(c);else if(Array.isArray(c.children))for(let u=0;u<c.children.length;u++){const d=c.children[u];o.push(d)}return i}function nue(t,e){const n=[],o=We().getChildren();for(let i=0;i<o.length;i++)mg(t,e,o[i],n);return{namespace:t._config.namespace,nodes:n}}function oue(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],i=tce(o);Q(i)&&$ce(i),e.push(i)}return e}let _r=null;async function Xf(t,e,n){if(_r!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Qf(t,e,n))})});const o=t.getRootElement(),i=t._window||window,s=i.document,a=hn(i);if(o===null||a===null)return!1;const l=s.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(s.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),a.removeAllRanges(),a.addRange(c),new Promise((u,d)=>{const p=t.registerCommand(Qa,f=>(zo(f,ClipboardEvent)&&(p(),_r!==null&&(i.clearTimeout(_r),_r=null),u(Qf(t,f,n))),!0),oce);_r=i.setTimeout(()=>{p(),_r=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Qf(t,e,n){if(n===void 0){const i=hn(t._window),s=te();if(!s||s.isCollapsed()||!i)return!1;const a=i.anchorNode,l=i.focusNode;if(a!==null&&l!==null&&!ms(t,a,l))return!1;n=rue(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(iue(o,n),!0)}const hg=[["text/html",eue],["application/x-lexical-editor",tue]];function rue(t=te()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=ll();for(const[o,i]of hg){const s=i(n,t);s!==null&&(e[o]=s)}}return e}function iue(t,e){for(const[n]of hg)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function sue(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const i=t.getRootElement();if(document.activeElement!==i)return;const s=o.data;if(typeof s=="string"){let a;try{a=JSON.parse(s)}catch{return}if(a&&a.protocol==="nuanria_messaging"&&a.type==="request"){const l=a.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[u,d,p,f,m]=c;t.update(()=>{const h=te();if(K(h)){const v=h.anchor;let C=v.getNode(),y=0,g=0;if(Q(C)&&u>=0&&d>=0&&(y=u,g=u+d,h.setTextNodeRange(C,y,C,g)),y===g&&p===""||(h.insertRawText(p),C=v.getNode()),Q(C)){y=f,g=f+m;const _=C.getTextContentSize();y=y>_?_:y,g=g>_?_:g,h.setTextNodeRange(C,y,C,g)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function ep(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const dr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,aue=dr&&"documentMode"in document?document.documentMode:null,lue=dr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),cue=!(!dr||!("InputEvent"in window)||aue)&&"getTargetRanges"in new window.InputEvent("input"),uue=dr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),tp=dr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,due=dr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),fue=dr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&lue&&!due,np=me("DRAG_DROP_PASTE_FILE");let ed=class gg extends jt{static getType(){return"quote"}static clone(e){return new gg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Qn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:pue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(tt(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const i=this.getDirection();i&&(n.dir=i)}return{element:n}}static importJSON(e){return td().updateFromJSON(e)}insertNewAfter(e,n){const o=Re(),i=this.getDirection();return o.setDirection(i),this.insertAfter(o,n),o}collapseAtStart(){const e=Re();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function td(){return _n(new ed)}function jc(t){return t instanceof ed}let ul=class vg extends jt{constructor(n,o){super(o);j(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new vg(n.__tag,n.__key)}getTag(){return this.__tag}setTag(n){const o=this.getWritable();return this.__tag=n,o}createDOM(n){const o=this.__tag,i=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];Qn(i,a)}return i}updateDOM(n,o,i){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:Cr,priority:0}),h2:n=>({conversion:Cr,priority:0}),h3:n=>({conversion:Cr,priority:0}),h4:n=>({conversion:Cr,priority:0}),h5:n=>({conversion:Cr,priority:0}),h6:n=>({conversion:Cr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&op(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>op(n)?{conversion:o=>({node:Uo("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(tt(o)){this.isEmpty()&&o.append(document.createElement("br"));const i=this.getFormatType();i&&(o.style.textAlign=i);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Uo(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const i=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&i===s.getTextContentSize()||!n?Re():Uo(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),i===0&&!this.isEmpty()&&n){const c=Re();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Re():Uo(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function op(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function Cr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Uo(e),t.style!==null&&(qu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function pue(t){const e=td();return t.style!==null&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function Uo(t="h1"){return _n(new ul(t))}function yg(t){return t instanceof ul}function Us(t){let e=null;if(zo(t,DragEvent)?e=t.dataTransfer:zo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),i]}function rp(t){const e=te();if(!K(e))return!1;const n=new Set,o=e.getNodes();for(let i=0;i<o.length;i++){const s=o[i],a=s.getKey();if(n.has(a))continue;const l=en(s,u=>q(u)&&!u.isInline());if(l===null)continue;const c=l.getKey();l.canIndent()&&!n.has(c)&&(n.add(c),t(l))}return n.size>0}function ip(t){const e=Ur(t);return Ae(e)}function ic(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function mue(t){return gs(t.registerCommand(Ym,e=>{const n=te();return!!Rt(n)&&(n.clear(),!0)},xe),t.registerCommand(jo,e=>{const n=te();return K(n)?(n.deleteCharacter(e),!0):!!Rt(n)&&(n.deleteNodes(),!0)},xe),t.registerCommand(Yi,e=>{const n=te();return!!K(n)&&(n.deleteWord(e),!0)},xe),t.registerCommand(Ji,e=>{const n=te();return!!K(n)&&(n.deleteLine(e),!0)},xe),t.registerCommand(Tr,e=>{const n=te();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Yf(o,n,t);else if(K(n)){const i=e.data;return i&&n.insertText(i),!0}}return!0},xe),t.registerCommand(Ac,()=>{const e=te();return!!K(e)&&(e.removeText(),!0)},xe),t.registerCommand(Yt,e=>{const n=te();return!!K(n)&&(n.formatText(e),!0)},xe),t.registerCommand(Dle,e=>{const n=te();if(!K(n)&&!Rt(n))return!1;const o=n.getNodes();for(const i of o){const s=en(i,a=>q(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},xe),t.registerCommand(Ar,e=>{const n=te();return!!K(n)&&(n.insertLineBreak(e),!0)},xe),t.registerCommand(Gi,()=>{const e=te();return!!K(e)&&(e.insertParagraph(),!0)},xe),t.registerCommand(Tle,()=>(Xle([Gr()]),!0),xe),t.registerCommand(Nle,()=>rp(e=>{const n=e.getIndent();e.setIndent(n+1)}),xe),t.registerCommand(tf,()=>rp(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),xe),t.registerCommand(Qm,e=>{const n=te();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(K(n)){const o=Ic(n.focus,!0);if(!e.shiftKey&&Ae(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},xe),t.registerCommand(eh,e=>{const n=te();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(K(n)){if(function(i){const s=i.focus;return s.key==="root"&&s.offset===We().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Ic(n.focus,!1);if(!e.shiftKey&&Ae(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},xe),t.registerCommand(Xm,e=>{const n=te();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),zf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!K(n))return!1;if(Uf(n,!0)){const o=e.shiftKey;return e.preventDefault(),Hf(n,o,!0),!0}return!1},xe),t.registerCommand(Jm,e=>{const n=te();if(Rt(n)){const i=n.getNodes();if(i.length>0)return e.preventDefault(),zf(i[0])?i[0].selectPrevious():i[0].selectNext(0,0),!0}if(!K(n))return!1;const o=e.shiftKey;return!!Uf(n,!1)&&(e.preventDefault(),Hf(n,o,!1),!0)},xe),t.registerCommand(nh,e=>{if(ip(e.target))return!1;const n=te();if(K(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:i}=o;if(i.offset!==0)return!1;const s=i.getNode();if(Qe(s))return!1;const a=Fce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(tf,void 0);if(tp&&navigator.language==="ko-KR")return!1}else if(!Rt(n))return!1;return e.preventDefault(),t.dispatchCommand(jo,!0)},xe),t.registerCommand(rh,e=>{if(ip(e.target))return!1;const n=te();return!(!K(n)&&!Rt(n))&&(e.preventDefault(),t.dispatchCommand(jo,!1))},xe),t.registerCommand(fa,e=>{const n=te();if(!K(n))return!1;if(ic(n),e!==null){if((tp||uue||fue)&&cue)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(Ar,!1)}return t.dispatchCommand(Gi,void 0)},xe),t.registerCommand(oh,()=>{const e=te();return!!K(e)&&(t.blur(),!0)},xe),t.registerCommand(sh,e=>{const[,n]=Us(e);if(n.length>0){const i=ep(e.clientX,e.clientY);if(i!==null){const{offset:s,node:a}=i,l=Ur(a);if(l!==null){const c=nl();if(Q(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),p=l.getIndexWithinParent()+1;c.anchor.set(d,p,"element"),c.focus.set(d,p,"element")}const u=aa(c);vt(u)}t.dispatchCommand(np,n)}return e.preventDefault(),!0}const o=te();return!!K(o)},xe),t.registerCommand(ah,e=>{const[n]=Us(e),o=te();return!(n&&!K(o))},xe),t.registerCommand(lh,e=>{const[n]=Us(e),o=te();if(n&&!K(o))return!1;const i=ep(e.clientX,e.clientY);if(i!==null){const s=Ur(i.node);Ae(s)&&e.preventDefault()}return!0},xe),t.registerCommand(Tc,()=>(uce(),!0),xe),t.registerCommand(Qa,e=>(Xf(t,zo(e,ClipboardEvent)?e:null),!0),xe),t.registerCommand(Nu,e=>(async function(n,o){await Xf(o,zo(n,ClipboardEvent)?n:null),o.update(()=>{const i=te();K(i)?i.removeText():Rt(i)&&i.getNodes().forEach(s=>s.remove())})}(e,t),!0),xe),t.registerCommand(xu,e=>{const[,n,o]=Us(e);return n.length>0&&!o?(t.dispatchCommand(np,n),!0):Jr(e.target)&&Iu(e.target)?!1:te()!==null&&(function(i,s){i.preventDefault(),s.update(()=>{const a=te(),l=zo(i,InputEvent)||zo(i,KeyboardEvent)?null:i.clipboardData;l!=null&&a!==null&&Yf(l,a,s)},{tag:Fle})}(e,t),!0)},xe),t.registerCommand(th,e=>{const n=te();return K(n)&&ic(n),!1},xe),t.registerCommand(ih,e=>{const n=te();return K(n)&&ic(n),!1},xe))}var hue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
31
+ `?u.insertParagraph():d===" "?u.insertNodes([Gr()]):u.insertText(d)}}}else e.insertRawText(a)}function Jf(t,e,n){t.dispatchCommand(Ele,{nodes:e,selection:n})||(n.insertNodes(e),function(o){if(K(o)&&o.isCollapsed()){const i=o.anchor;let s=null;const a=Xn(i,"previous");if(a)if(vo(a))s=a.origin;else{const l=wo(a,gn(We(),"next").getFlipped());for(const c of l){if(Q(c.origin)){s=c.origin;break}if(U(c.origin)&&!c.origin.isInline())break}}if(s&&Q(s)){const l=s.getFormat(),c=s.getStyle();o.format===l&&o.style===c||(o.format=l,o.style=c,o.dirty=!0)}}}(n))}function mg(t,e,n,o=[]){let i=e===null||n.isSelected(e);const s=U(n)&&n.excludeFromCopy("html");let a=n;e!==null&&Q(a)&&(a=tg(e,a,"clone"));const l=U(a)?a.getChildren():[],c=function(u){const d=u.exportJSON(),p=u.constructor;if(d.type!==p.getType()&&ka(58,p.name),U(u)){const f=d.children;Array.isArray(f)||ka(59,p.name)}return d}(a);Q(a)&&a.getTextContentSize()===0&&(i=!1);for(let u=0;u<l.length;u++){const d=l[u],p=mg(t,e,d,c.children);!i&&U(n)&&p&&n.extractWithChild(d,e,"clone")&&(i=!0)}if(i&&!s)o.push(c);else if(Array.isArray(c.children))for(let u=0;u<c.children.length;u++){const d=c.children[u];o.push(d)}return i}function nue(t,e){const n=[],o=We().getChildren();for(let i=0;i<o.length;i++)mg(t,e,o[i],n);return{namespace:t._config.namespace,nodes:n}}function oue(t){const e=[];for(let n=0;n<t.length;n++){const o=t[n],i=tce(o);Q(i)&&$ce(i),e.push(i)}return e}let _r=null;async function Xf(t,e,n){if(_r!==null)return!1;if(e!==null)return new Promise((u,d)=>{t.update(()=>{u(Qf(t,e,n))})});const o=t.getRootElement(),i=t._window||window,s=i.document,a=hn(i);if(o===null||a===null)return!1;const l=s.createElement("span");l.style.cssText="position: fixed; top: -1000px;",l.append(s.createTextNode("#")),o.append(l);const c=new Range;return c.setStart(l,0),c.setEnd(l,1),a.removeAllRanges(),a.addRange(c),new Promise((u,d)=>{const p=t.registerCommand(Qa,f=>(zo(f,ClipboardEvent)&&(p(),_r!==null&&(i.clearTimeout(_r),_r=null),u(Qf(t,f,n))),!0),oce);_r=i.setTimeout(()=>{p(),_r=null,u(!1)},50),s.execCommand("copy"),l.remove()})}function Qf(t,e,n){if(n===void 0){const i=hn(t._window),s=te();if(!s||s.isCollapsed()||!i)return!1;const a=i.anchorNode,l=i.focusNode;if(a!==null&&l!==null&&!ms(t,a,l))return!1;n=rue(s)}e.preventDefault();const o=e.clipboardData;return o!==null&&(iue(o,n),!0)}const hg=[["text/html",eue],["application/x-lexical-editor",tue]];function rue(t=te()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=ll();for(const[o,i]of hg){const s=i(n,t);s!==null&&(e[o]=s)}}return e}function iue(t,e){for(const[n]of hg)e[n]===void 0&&t.setData(n,"");for(const n in e){const o=e[n];o!==void 0&&t.setData(n,o)}}function sue(t){const e=window.location.origin,n=o=>{if(o.origin!==e)return;const i=t.getRootElement();if(document.activeElement!==i)return;const s=o.data;if(typeof s=="string"){let a;try{a=JSON.parse(s)}catch{return}if(a&&a.protocol==="nuanria_messaging"&&a.type==="request"){const l=a.payload;if(l&&l.functionId==="makeChanges"){const c=l.args;if(c){const[u,d,p,f,m]=c;t.update(()=>{const h=te();if(K(h)){const v=h.anchor;let C=v.getNode(),y=0,g=0;if(Q(C)&&u>=0&&d>=0&&(y=u,g=u+d,h.setTextNodeRange(C,y,C,g)),y===g&&p===""||(h.insertRawText(p),C=v.getNode()),Q(C)){y=f,g=f+m;const _=C.getTextContentSize();y=y>_?_:y,g=g>_?_:g,h.setTextNodeRange(C,y,C,g)}o.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}function ep(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const dr=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,aue=dr&&"documentMode"in document?document.documentMode:null,lue=dr&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),cue=!(!dr||!("InputEvent"in window)||aue)&&"getTargetRanges"in new window.InputEvent("input"),uue=dr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),tp=dr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,due=dr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),fue=dr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&lue&&!due,np=me("DRAG_DROP_PASTE_FILE");let ed=class gg extends jt{static getType(){return"quote"}static clone(e){return new gg(e.__key)}createDOM(e){const n=document.createElement("blockquote");return Qn(n,e.theme.quote),n}updateDOM(e,n){return!1}static importDOM(){return{blockquote:e=>({conversion:pue,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(tt(n)){this.isEmpty()&&n.append(document.createElement("br"));const o=this.getFormatType();o&&(n.style.textAlign=o);const i=this.getDirection();i&&(n.dir=i)}return{element:n}}static importJSON(e){return td().updateFromJSON(e)}insertNewAfter(e,n){const o=Re(),i=this.getDirection();return o.setDirection(i),this.insertAfter(o,n),o}collapseAtStart(){const e=Re();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}canMergeWhenEmpty(){return!0}};function td(){return _n(new ed)}function jc(t){return t instanceof ed}let ul=class vg extends jt{constructor(n,o){super(o);j(this,"__tag");this.__tag=n}static getType(){return"heading"}static clone(n){return new vg(n.__tag,n.__key)}getTag(){return this.__tag}setTag(n){const o=this.getWritable();return this.__tag=n,o}createDOM(n){const o=this.__tag,i=document.createElement(o),s=n.theme.heading;if(s!==void 0){const a=s[o];Qn(i,a)}return i}updateDOM(n,o,i){return n.__tag!==this.__tag}static importDOM(){return{h1:n=>({conversion:Cr,priority:0}),h2:n=>({conversion:Cr,priority:0}),h3:n=>({conversion:Cr,priority:0}),h4:n=>({conversion:Cr,priority:0}),h5:n=>({conversion:Cr,priority:0}),h6:n=>({conversion:Cr,priority:0}),p:n=>{const o=n.firstChild;return o!==null&&op(o)?{conversion:()=>({node:null}),priority:3}:null},span:n=>op(n)?{conversion:o=>({node:Uo("h1")}),priority:3}:null}}exportDOM(n){const{element:o}=super.exportDOM(n);if(tt(o)){this.isEmpty()&&o.append(document.createElement("br"));const i=this.getFormatType();i&&(o.style.textAlign=i);const s=this.getDirection();s&&(o.dir=s)}return{element:o}}static importJSON(n){return Uo(n.tag).updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setTag(n.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(n,o=!0){const i=n?n.anchor.offset:0,s=this.getLastDescendant(),a=!s||n&&n.anchor.key===s.getKey()&&i===s.getTextContentSize()||!n?Re():Uo(this.getTag()),l=this.getDirection();if(a.setDirection(l),this.insertAfter(a,o),i===0&&!this.isEmpty()&&n){const c=Re();c.select(),this.replace(c,!0)}return a}collapseAtStart(){const n=this.isEmpty()?Re():Uo(this.getTag());return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}extractWithChild(){return!0}};function op(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function Cr(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Uo(e),t.style!==null&&(qu(t,n),n.setFormat(t.style.textAlign))),{node:n}}function pue(t){const e=td();return t.style!==null&&(e.setFormat(t.style.textAlign),qu(t,e)),{node:e}}function Uo(t="h1"){return _n(new ul(t))}function yg(t){return t instanceof ul}function Us(t){let e=null;if(zo(t,DragEvent)?e=t.dataTransfer:zo(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,o=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[o,Array.from(e.files),i]}function rp(t){const e=te();if(!K(e))return!1;const n=new Set,o=e.getNodes();for(let i=0;i<o.length;i++){const s=o[i],a=s.getKey();if(n.has(a))continue;const l=en(s,u=>U(u)&&!u.isInline());if(l===null)continue;const c=l.getKey();l.canIndent()&&!n.has(c)&&(n.add(c),t(l))}return n.size>0}function ip(t){const e=Ur(t);return Ae(e)}function ic(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function mue(t){return gs(t.registerCommand(Ym,e=>{const n=te();return!!Rt(n)&&(n.clear(),!0)},xe),t.registerCommand(jo,e=>{const n=te();return K(n)?(n.deleteCharacter(e),!0):!!Rt(n)&&(n.deleteNodes(),!0)},xe),t.registerCommand(Yi,e=>{const n=te();return!!K(n)&&(n.deleteWord(e),!0)},xe),t.registerCommand(Ji,e=>{const n=te();return!!K(n)&&(n.deleteLine(e),!0)},xe),t.registerCommand(Tr,e=>{const n=te();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const o=e.dataTransfer;if(o!=null)Yf(o,n,t);else if(K(n)){const i=e.data;return i&&n.insertText(i),!0}}return!0},xe),t.registerCommand(Ac,()=>{const e=te();return!!K(e)&&(e.removeText(),!0)},xe),t.registerCommand(Yt,e=>{const n=te();return!!K(n)&&(n.formatText(e),!0)},xe),t.registerCommand(Dle,e=>{const n=te();if(!K(n)&&!Rt(n))return!1;const o=n.getNodes();for(const i of o){const s=en(i,a=>U(a)&&!a.isInline());s!==null&&s.setFormat(e)}return!0},xe),t.registerCommand(Ar,e=>{const n=te();return!!K(n)&&(n.insertLineBreak(e),!0)},xe),t.registerCommand(Gi,()=>{const e=te();return!!K(e)&&(e.insertParagraph(),!0)},xe),t.registerCommand(Tle,()=>(Xle([Gr()]),!0),xe),t.registerCommand(Nle,()=>rp(e=>{const n=e.getIndent();e.setIndent(n+1)}),xe),t.registerCommand(tf,()=>rp(e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}),xe),t.registerCommand(Qm,e=>{const n=te();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectPrevious(),!0}else if(K(n)){const o=Ic(n.focus,!0);if(!e.shiftKey&&Ae(o)&&!o.isIsolated()&&!o.isInline())return o.selectPrevious(),e.preventDefault(),!0}return!1},xe),t.registerCommand(eh,e=>{const n=te();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),o[0].selectNext(0,0),!0}else if(K(n)){if(function(i){const s=i.focus;return s.key==="root"&&s.offset===We().getChildrenSize()}(n))return e.preventDefault(),!0;const o=Ic(n.focus,!1);if(!e.shiftKey&&Ae(o)&&!o.isIsolated()&&!o.isInline())return o.selectNext(),e.preventDefault(),!0}return!1},xe),t.registerCommand(Xm,e=>{const n=te();if(Rt(n)){const o=n.getNodes();if(o.length>0)return e.preventDefault(),zf(o[0])?o[0].selectNext(0,0):o[0].selectPrevious(),!0}if(!K(n))return!1;if(Uf(n,!0)){const o=e.shiftKey;return e.preventDefault(),Hf(n,o,!0),!0}return!1},xe),t.registerCommand(Jm,e=>{const n=te();if(Rt(n)){const i=n.getNodes();if(i.length>0)return e.preventDefault(),zf(i[0])?i[0].selectPrevious():i[0].selectNext(0,0),!0}if(!K(n))return!1;const o=e.shiftKey;return!!Uf(n,!1)&&(e.preventDefault(),Hf(n,o,!1),!0)},xe),t.registerCommand(nh,e=>{if(ip(e.target))return!1;const n=te();if(K(n)){if(function(o){if(!o.isCollapsed())return!1;const{anchor:i}=o;if(i.offset!==0)return!1;const s=i.getNode();if(Qe(s))return!1;const a=Fce(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))}(n))return e.preventDefault(),t.dispatchCommand(tf,void 0);if(tp&&navigator.language==="ko-KR")return!1}else if(!Rt(n))return!1;return e.preventDefault(),t.dispatchCommand(jo,!0)},xe),t.registerCommand(rh,e=>{if(ip(e.target))return!1;const n=te();return!(!K(n)&&!Rt(n))&&(e.preventDefault(),t.dispatchCommand(jo,!1))},xe),t.registerCommand(fa,e=>{const n=te();if(!K(n))return!1;if(ic(n),e!==null){if((tp||uue||fue)&&cue)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(Ar,!1)}return t.dispatchCommand(Gi,void 0)},xe),t.registerCommand(oh,()=>{const e=te();return!!K(e)&&(t.blur(),!0)},xe),t.registerCommand(sh,e=>{const[,n]=Us(e);if(n.length>0){const i=ep(e.clientX,e.clientY);if(i!==null){const{offset:s,node:a}=i,l=Ur(a);if(l!==null){const c=nl();if(Q(l))c.anchor.set(l.getKey(),s,"text"),c.focus.set(l.getKey(),s,"text");else{const d=l.getParentOrThrow().getKey(),p=l.getIndexWithinParent()+1;c.anchor.set(d,p,"element"),c.focus.set(d,p,"element")}const u=aa(c);vt(u)}t.dispatchCommand(np,n)}return e.preventDefault(),!0}const o=te();return!!K(o)},xe),t.registerCommand(ah,e=>{const[n]=Us(e),o=te();return!(n&&!K(o))},xe),t.registerCommand(lh,e=>{const[n]=Us(e),o=te();if(n&&!K(o))return!1;const i=ep(e.clientX,e.clientY);if(i!==null){const s=Ur(i.node);Ae(s)&&e.preventDefault()}return!0},xe),t.registerCommand(Tc,()=>(uce(),!0),xe),t.registerCommand(Qa,e=>(Xf(t,zo(e,ClipboardEvent)?e:null),!0),xe),t.registerCommand(Nu,e=>(async function(n,o){await Xf(o,zo(n,ClipboardEvent)?n:null),o.update(()=>{const i=te();K(i)?i.removeText():Rt(i)&&i.getNodes().forEach(s=>s.remove())})}(e,t),!0),xe),t.registerCommand(xu,e=>{const[,n,o]=Us(e);return n.length>0&&!o?(t.dispatchCommand(np,n),!0):Jr(e.target)&&Iu(e.target)?!1:te()!==null&&(function(i,s){i.preventDefault(),s.update(()=>{const a=te(),l=zo(i,InputEvent)||zo(i,KeyboardEvent)?null:i.clipboardData;l!=null&&a!==null&&Yf(l,a,s)},{tag:Fle})}(e,t),!0)},xe),t.registerCommand(th,e=>{const n=te();return K(n)&&ic(n),!1},xe),t.registerCommand(ih,e=>{const n=te();return K(n)&&ic(n),!1},xe))}var hue={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
32
32
  * Prism: Lightweight, robust, elegant syntax highlighting
33
33
  *
34
34
  * @license MIT <https://opensource.org/licenses/MIT>
35
35
  * @author Lea Verou <https://lea.verou.me>
36
36
  * @namespace
37
37
  * @public
38
- */var n=function(o){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function g(_){return _ instanceof c?new c(_.type,g(_.content),_.alias):Array.isArray(_)?_.map(g):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++s}),g.__id},clone:function g(_,b){b=b||{};var w,k;switch(l.util.type(_)){case"Object":if(k=l.util.objId(_),b[k])return b[k];w={},b[k]=w;for(var x in _)_.hasOwnProperty(x)&&(w[x]=g(_[x],b));return w;case"Array":return k=l.util.objId(_),b[k]?b[k]:(w=[],b[k]=w,_.forEach(function(S,E){w[E]=g(S,b)}),w);default:return _}},getLanguage:function(g){for(;g;){var _=i.exec(g.className);if(_)return _[1].toLowerCase();g=g.parentElement}return"none"},setLanguage:function(g,_){g.className=g.className.replace(RegExp(i,"gi"),""),g.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT"&&1<2)return document.currentScript;try{throw new Error}catch(w){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(g){var _=document.getElementsByTagName("script");for(var b in _)if(_[b].src==g)return _[b]}return null}},isActive:function(g,_,b){for(var w="no-"+_;g;){var k=g.classList;if(k.contains(_))return!0;if(k.contains(w))return!1;g=g.parentElement}return!!b}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(g,_){var b=l.util.clone(l.languages[g]);for(var w in _)b[w]=_[w];return b},insertBefore:function(g,_,b,w){w=w||l.languages;var k=w[g],x={};for(var S in k)if(k.hasOwnProperty(S)){if(S==_)for(var E in b)b.hasOwnProperty(E)&&(x[E]=b[E]);b.hasOwnProperty(S)||(x[S]=k[S])}var N=w[g];return w[g]=x,l.languages.DFS(l.languages,function(I,A){A===N&&I!=g&&(this[I]=x)}),x},DFS:function g(_,b,w,k){k=k||{};var x=l.util.objId;for(var S in _)if(_.hasOwnProperty(S)){b.call(_,S,_[S],w||S);var E=_[S],N=l.util.type(E);N==="Object"&&!k[x(E)]?(k[x(E)]=!0,g(E,b,null,k)):N==="Array"&&!k[x(E)]&&(k[x(E)]=!0,g(E,b,S,k))}}},plugins:{},highlightAll:function(g,_){l.highlightAllUnder(document,g,_)},highlightAllUnder:function(g,_,b){var w={callback:b,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var k=0,x;x=w.elements[k++];)l.highlightElement(x,_===!0,w.callback)},highlightElement:function(g,_,b){var w=l.util.getLanguage(g),k=l.languages[w];l.util.setLanguage(g,w);var x=g.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(x,w);var S=g.textContent,E={element:g,language:w,grammar:k,code:S};function N(A){E.highlightedCode=A,l.hooks.run("before-insert",E),E.element.innerHTML=E.highlightedCode,l.hooks.run("after-highlight",E),l.hooks.run("complete",E),b&&b.call(E.element)}if(l.hooks.run("before-sanity-check",E),x=E.element.parentElement,x&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!E.code){l.hooks.run("complete",E),b&&b.call(E.element);return}if(l.hooks.run("before-highlight",E),!E.grammar){N(l.util.encode(E.code));return}if(_&&o.Worker){var I=new Worker(l.filename);I.onmessage=function(A){N(A.data)},I.postMessage(JSON.stringify({language:E.language,code:E.code,immediateClose:!0}))}else N(l.highlight(E.code,E.grammar,E.language))},highlight:function(g,_,b){var w={code:g,grammar:_,language:b};if(l.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),c.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(g,_){var b=_.rest;if(b){for(var w in b)_[w]=b[w];delete _.rest}var k=new p;return f(k,k.head,g),d(g,k,_,k.head,0),h(k)},hooks:{all:{},add:function(g,_){var b=l.hooks.all;b[g]=b[g]||[],b[g].push(_)},run:function(g,_){var b=l.hooks.all[g];if(!(!b||!b.length))for(var w=0,k;k=b[w++];)k(_)}},Token:c};o.Prism=l;function c(g,_,b,w){this.type=g,this.content=_,this.alias=b,this.length=(w||"").length|0}c.stringify=function g(_,b){if(typeof _=="string")return _;if(Array.isArray(_)){var w="";return _.forEach(function(N){w+=g(N,b)}),w}var k={type:_.type,content:g(_.content,b),tag:"span",classes:["token",_.type],attributes:{},language:b},x=_.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(k.classes,x):k.classes.push(x)),l.hooks.run("wrap",k);var S="";for(var E in k.attributes)S+=" "+E+'="'+(k.attributes[E]||"").replace(/"/g,"&quot;")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+S+">"+k.content+"</"+k.tag+">"};function u(g,_,b,w){g.lastIndex=_;var k=g.exec(b);if(k&&w&&k[1]){var x=k[1].length;k.index+=x,k[0]=k[0].slice(x)}return k}function d(g,_,b,w,k,x){for(var S in b)if(!(!b.hasOwnProperty(S)||!b[S])){var E=b[S];E=Array.isArray(E)?E:[E];for(var N=0;N<E.length;++N){if(x&&x.cause==S+","+N)return;var I=E[N],A=I.inside,M=!!I.lookbehind,D=!!I.greedy,$=I.alias;if(D&&!I.pattern.global){var B=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,B+"g")}for(var P=I.pattern||I,L=w.next,R=k;L!==_.tail&&!(x&&R>=x.reach);R+=L.value.length,L=L.next){var Y=L.value;if(_.length>g.length)return;if(!(Y instanceof c)){var ae=1,oe;if(D){if(oe=u(P,R,g,M),!oe||oe.index>=g.length)break;var H=oe.index,Ne=oe.index+oe[0].length,ce=R;for(ce+=L.value.length;H>=ce;)L=L.next,ce+=L.value.length;if(ce-=L.value.length,R=ce,L.value instanceof c)continue;for(var ne=L;ne!==_.tail&&(ce<Ne||typeof ne.value=="string");ne=ne.next)ae++,ce+=ne.value.length;ae--,Y=g.slice(R,ce),oe.index-=R}else if(oe=u(P,0,Y,M),!oe)continue;var H=oe.index,z=oe[0],re=Y.slice(0,H),Ee=Y.slice(H+z.length),ze=R+Y.length;x&&ze>x.reach&&(x.reach=ze);var we=L.prev;re&&(we=f(_,we,re),R+=re.length),m(_,we,ae);var Ce=new c(S,A?l.tokenize(z,A):z,$,z);if(L=f(_,we,Ce),Ee&&f(_,L,Ee),ae>1){var _t={cause:S+","+N,reach:ze};d(g,_,b,L.prev,R,_t),x&&_t.reach>x.reach&&(x.reach=_t.reach)}}}}}}function p(){var g={value:null,prev:null,next:null},_={value:null,prev:g,next:null};g.next=_,this.head=g,this.tail=_,this.length=0}function f(g,_,b){var w=_.next,k={value:b,prev:_,next:w};return _.next=k,w.prev=k,g.length++,k}function m(g,_,b){for(var w=_.next,k=0;k<b&&w!==g.tail;k++)w=w.next;_.next=w,w.prev=_,g.length-=k}function h(g){for(var _=[],b=g.head.next;b!==g.tail;)_.push(b.value),b=b.next;return _}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(g){var _=JSON.parse(g.data),b=_.language,w=_.code,k=_.immediateClose;o.postMessage(l.highlight(w,l.languages[b],b)),k&&o.close()},!1)),l;var v=l.util.currentScript();v&&(l.filename=v.src,v.hasAttribute("data-manual")&&(l.manual=!0));function C(){l.manual||l.highlightAll()}if(!l.manual){var y=document.readyState;y==="loading"||y==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return l}(e);t.exports&&(t.exports=n),typeof $t<"u"&&($t.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};l["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(o){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var s=o.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var o="Loading…",i=function(v,C){return"✖ Error "+v+" while fetching file: "+C},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",u="loaded",d="failed",p="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+c+'"])';function f(v,C,y){var g=new XMLHttpRequest;g.open("GET",v,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?C(g.responseText):g.status>=400?y(i(g.status,g.statusText)):y(s))},g.send(null)}function m(v){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(C){var y=Number(C[1]),g=C[2],_=C[3];return g?_?[y,Number(_)]:[y,void 0]:[y,y]}}n.hooks.add("before-highlightall",function(v){v.selector+=", "+p}),n.hooks.add("before-sanity-check",function(v){var C=v.element;if(C.matches(p)){v.code="",C.setAttribute(l,c);var y=C.appendChild(document.createElement("CODE"));y.textContent=o;var g=C.getAttribute("data-src"),_=v.language;if(_==="none"){var b=(/\.(\w+)$/.exec(g)||[,"none"])[1];_=a[b]||b}n.util.setLanguage(y,_),n.util.setLanguage(C,_);var w=n.plugins.autoloader;w&&w.loadLanguages(_),f(g,function(k){C.setAttribute(l,u);var x=m(C.getAttribute("data-range"));if(x){var S=k.split(/\r\n?|\n/g),E=x[0],N=x[1]==null?S.length:x[1];E<0&&(E+=S.length),E=Math.max(0,Math.min(E-1,S.length)),N<0&&(N+=S.length),N=Math.max(0,Math.min(N,S.length)),k=S.slice(E,N).join(`
38
+ */var n=function(o){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,a={},l={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function g(_){return _ instanceof c?new c(_.type,g(_.content),_.alias):Array.isArray(_)?_.map(g):_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++s}),g.__id},clone:function g(_,b){b=b||{};var w,k;switch(l.util.type(_)){case"Object":if(k=l.util.objId(_),b[k])return b[k];w={},b[k]=w;for(var A in _)_.hasOwnProperty(A)&&(w[A]=g(_[A],b));return w;case"Array":return k=l.util.objId(_),b[k]?b[k]:(w=[],b[k]=w,_.forEach(function(S,E){w[E]=g(S,b)}),w);default:return _}},getLanguage:function(g){for(;g;){var _=i.exec(g.className);if(_)return _[1].toLowerCase();g=g.parentElement}return"none"},setLanguage:function(g,_){g.className=g.className.replace(RegExp(i,"gi"),""),g.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT"&&1<2)return document.currentScript;try{throw new Error}catch(w){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(g){var _=document.getElementsByTagName("script");for(var b in _)if(_[b].src==g)return _[b]}return null}},isActive:function(g,_,b){for(var w="no-"+_;g;){var k=g.classList;if(k.contains(_))return!0;if(k.contains(w))return!1;g=g.parentElement}return!!b}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(g,_){var b=l.util.clone(l.languages[g]);for(var w in _)b[w]=_[w];return b},insertBefore:function(g,_,b,w){w=w||l.languages;var k=w[g],A={};for(var S in k)if(k.hasOwnProperty(S)){if(S==_)for(var E in b)b.hasOwnProperty(E)&&(A[E]=b[E]);b.hasOwnProperty(S)||(A[S]=k[S])}var D=w[g];return w[g]=A,l.languages.DFS(l.languages,function(V,T){T===D&&V!=g&&(this[V]=A)}),A},DFS:function g(_,b,w,k){k=k||{};var A=l.util.objId;for(var S in _)if(_.hasOwnProperty(S)){b.call(_,S,_[S],w||S);var E=_[S],D=l.util.type(E);D==="Object"&&!k[A(E)]?(k[A(E)]=!0,g(E,b,null,k)):D==="Array"&&!k[A(E)]&&(k[A(E)]=!0,g(E,b,S,k))}}},plugins:{},highlightAll:function(g,_){l.highlightAllUnder(document,g,_)},highlightAllUnder:function(g,_,b){var w={callback:b,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),l.hooks.run("before-all-elements-highlight",w);for(var k=0,A;A=w.elements[k++];)l.highlightElement(A,_===!0,w.callback)},highlightElement:function(g,_,b){var w=l.util.getLanguage(g),k=l.languages[w];l.util.setLanguage(g,w);var A=g.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(A,w);var S=g.textContent,E={element:g,language:w,grammar:k,code:S};function D(T){E.highlightedCode=T,l.hooks.run("before-insert",E),E.element.innerHTML=E.highlightedCode,l.hooks.run("after-highlight",E),l.hooks.run("complete",E),b&&b.call(E.element)}if(l.hooks.run("before-sanity-check",E),A=E.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!E.code){l.hooks.run("complete",E),b&&b.call(E.element);return}if(l.hooks.run("before-highlight",E),!E.grammar){D(l.util.encode(E.code));return}if(_&&o.Worker){var V=new Worker(l.filename);V.onmessage=function(T){D(T.data)},V.postMessage(JSON.stringify({language:E.language,code:E.code,immediateClose:!0}))}else D(l.highlight(E.code,E.grammar,E.language))},highlight:function(g,_,b){var w={code:g,grammar:_,language:b};if(l.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=l.tokenize(w.code,w.grammar),l.hooks.run("after-tokenize",w),c.stringify(l.util.encode(w.tokens),w.language)},tokenize:function(g,_){var b=_.rest;if(b){for(var w in b)_[w]=b[w];delete _.rest}var k=new p;return f(k,k.head,g),d(g,k,_,k.head,0),h(k)},hooks:{all:{},add:function(g,_){var b=l.hooks.all;b[g]=b[g]||[],b[g].push(_)},run:function(g,_){var b=l.hooks.all[g];if(!(!b||!b.length))for(var w=0,k;k=b[w++];)k(_)}},Token:c};o.Prism=l;function c(g,_,b,w){this.type=g,this.content=_,this.alias=b,this.length=(w||"").length|0}c.stringify=function g(_,b){if(typeof _=="string")return _;if(Array.isArray(_)){var w="";return _.forEach(function(D){w+=g(D,b)}),w}var k={type:_.type,content:g(_.content,b),tag:"span",classes:["token",_.type],attributes:{},language:b},A=_.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(k.classes,A):k.classes.push(A)),l.hooks.run("wrap",k);var S="";for(var E in k.attributes)S+=" "+E+'="'+(k.attributes[E]||"").replace(/"/g,"&quot;")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+S+">"+k.content+"</"+k.tag+">"};function u(g,_,b,w){g.lastIndex=_;var k=g.exec(b);if(k&&w&&k[1]){var A=k[1].length;k.index+=A,k[0]=k[0].slice(A)}return k}function d(g,_,b,w,k,A){for(var S in b)if(!(!b.hasOwnProperty(S)||!b[S])){var E=b[S];E=Array.isArray(E)?E:[E];for(var D=0;D<E.length;++D){if(A&&A.cause==S+","+D)return;var V=E[D],T=V.inside,M=!!V.lookbehind,x=!!V.greedy,$=V.alias;if(x&&!V.pattern.global){var B=V.pattern.toString().match(/[imsuy]*$/)[0];V.pattern=RegExp(V.pattern.source,B+"g")}for(var q=V.pattern||V,I=w.next,H=k;I!==_.tail&&!(A&&H>=A.reach);H+=I.value.length,I=I.next){var Y=I.value;if(_.length>g.length)return;if(!(Y instanceof c)){var le=1,oe;if(x){if(oe=u(q,H,g,M),!oe||oe.index>=g.length)break;var z=oe.index,Ne=oe.index+oe[0].length,ce=H;for(ce+=I.value.length;z>=ce;)I=I.next,ce+=I.value.length;if(ce-=I.value.length,H=ce,I.value instanceof c)continue;for(var ne=I;ne!==_.tail&&(ce<Ne||typeof ne.value=="string");ne=ne.next)le++,ce+=ne.value.length;le--,Y=g.slice(H,ce),oe.index-=H}else if(oe=u(q,0,Y,M),!oe)continue;var z=oe.index,F=oe[0],re=Y.slice(0,z),Ee=Y.slice(z+F.length),ze=H+Y.length;A&&ze>A.reach&&(A.reach=ze);var we=I.prev;re&&(we=f(_,we,re),H+=re.length),m(_,we,le);var Ce=new c(S,T?l.tokenize(F,T):F,$,F);if(I=f(_,we,Ce),Ee&&f(_,I,Ee),le>1){var _t={cause:S+","+D,reach:ze};d(g,_,b,I.prev,H,_t),A&&_t.reach>A.reach&&(A.reach=_t.reach)}}}}}}function p(){var g={value:null,prev:null,next:null},_={value:null,prev:g,next:null};g.next=_,this.head=g,this.tail=_,this.length=0}function f(g,_,b){var w=_.next,k={value:b,prev:_,next:w};return _.next=k,w.prev=k,g.length++,k}function m(g,_,b){for(var w=_.next,k=0;k<b&&w!==g.tail;k++)w=w.next;_.next=w,w.prev=_,g.length-=k}function h(g){for(var _=[],b=g.head.next;b!==g.tail;)_.push(b.value),b=b.next;return _}if(!o.document)return o.addEventListener&&(l.disableWorkerMessageHandler||o.addEventListener("message",function(g){var _=JSON.parse(g.data),b=_.language,w=_.code,k=_.immediateClose;o.postMessage(l.highlight(w,l.languages[b],b)),k&&o.close()},!1)),l;var v=l.util.currentScript();v&&(l.filename=v.src,v.hasAttribute("data-manual")&&(l.manual=!0));function C(){l.manual||l.highlightAll()}if(!l.manual){var y=document.readyState;y==="loading"||y==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return l}(e);t.exports&&(t.exports=n),typeof $t<"u"&&($t.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,s){var a={};a["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};l["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var c={};c[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",c)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(o,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(o){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var s=o.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var o="Loading…",i=function(v,C){return"✖ Error "+v+" while fetching file: "+C},s="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},l="data-src-status",c="loading",u="loaded",d="failed",p="pre[data-src]:not(["+l+'="'+u+'"]):not(['+l+'="'+c+'"])';function f(v,C,y){var g=new XMLHttpRequest;g.open("GET",v,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?C(g.responseText):g.status>=400?y(i(g.status,g.statusText)):y(s))},g.send(null)}function m(v){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(C){var y=Number(C[1]),g=C[2],_=C[3];return g?_?[y,Number(_)]:[y,void 0]:[y,y]}}n.hooks.add("before-highlightall",function(v){v.selector+=", "+p}),n.hooks.add("before-sanity-check",function(v){var C=v.element;if(C.matches(p)){v.code="",C.setAttribute(l,c);var y=C.appendChild(document.createElement("CODE"));y.textContent=o;var g=C.getAttribute("data-src"),_=v.language;if(_==="none"){var b=(/\.(\w+)$/.exec(g)||[,"none"])[1];_=a[b]||b}n.util.setLanguage(y,_),n.util.setLanguage(C,_);var w=n.plugins.autoloader;w&&w.loadLanguages(_),f(g,function(k){C.setAttribute(l,u);var A=m(C.getAttribute("data-range"));if(A){var S=k.split(/\r\n?|\n/g),E=A[0],D=A[1]==null?S.length:A[1];E<0&&(E+=S.length),E=Math.max(0,Math.min(E-1,S.length)),D<0&&(D+=S.length),D=Math.max(0,Math.min(D,S.length)),k=S.slice(E,D).join(`
39
39
  `),C.hasAttribute("data-start")||C.setAttribute("data-start",String(E+1))}y.textContent=k,n.highlightElement(y)},function(k){C.setAttribute(l,d),y.textContent=k})}}),n.plugins.fileHighlight={highlight:function(C){for(var y=(C||document).querySelectorAll(p),g=0,_;_=y[g++];)n.highlightElement(_)}};var h=!1;n.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(hue);Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var s={};s[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",s)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;(function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+s+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+s+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(d){["url","bold","italic","strike","code-snippet"].forEach(function(p){d!==p&&(t.languages.markdown[d].inside.content.inside[p]=t.languages.markdown[p])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function p(f){if(!(!f||typeof f=="string"))for(var m=0,h=f.length;m<h;m++){var v=f[m];if(v.type!=="code"){p(v.content);continue}var C=v.content[1],y=v.content[3];if(C&&y&&C.type==="code-language"&&y.type==="code-block"&&typeof C.content=="string"){var g=C.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");g=(/[a-z][\w-]*/i.exec(g)||[""])[0].toLowerCase();var _="language-"+g;y.alias?typeof y.alias=="string"?y.alias=[y.alias,_]:y.alias.push(_):y.alias=[_]}}}p(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var p="",f=0,m=d.classes.length;f<m;f++){var h=d.classes[f],v=/language-(.+)/.exec(h);if(v){p=v[1];break}}var C=t.languages[p];if(C)d.content=t.highlight(u(d.content),C,p);else if(p&&p!=="none"&&t.plugins.autoloader){var y="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=y,t.plugins.autoloader.loadLanguages(p,function(){var g=document.getElementById(y);g&&(g.innerHTML=t.highlight(g.textContent,t.languages[p],p))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),l={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function u(d){var p=d.replace(a,"");return p=p.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(f,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),c(h)}else{var v=l[m];return v||f}}),p}t.languages.md=t.languages.markdown})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(Prism);Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/});delete Prism.languages.objectivec["class-name"];Prism.languages.objc=Prism.languages.objectivec;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(Prism);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(Prism);Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/};Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift});(function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript})(Prism);(function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:o.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:o.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:o.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:o.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism);(function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])})(Prism);function _g(t,e){for(const n of t.childNodes){if(tt(n)&&n.tagName===e)return!0;_g(n,e)}return!1}const Ai="data-language",wi="data-highlight-language",Hs="data-theme";let dl=class Cg extends jt{constructor(n,o){super(o);j(this,"__language");j(this,"__theme");j(this,"__isSyntaxHighlightSupported");this.__language=n||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}static getType(){return"code"}static clone(n){return new Cg(n.__language,n.__key)}afterCloneFrom(n){super.afterCloneFrom(n),this.__language=n.__language,this.__theme=n.__theme,this.__isSyntaxHighlightSupported=n.__isSyntaxHighlightSupported}createDOM(n){const o=document.createElement("code");Qn(o,n.theme.code),o.setAttribute("spellcheck","false");const i=this.getLanguage();i&&(o.setAttribute(Ai,i),this.getIsSyntaxHighlightSupported()&&o.setAttribute(wi,i));const s=this.getTheme();s&&o.setAttribute(Hs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),o}updateDOM(n,o,i){const s=this.__language,a=n.__language;s?s!==a&&o.setAttribute(Ai,s):a&&o.removeAttribute(Ai);const l=this.__isSyntaxHighlightSupported;n.__isSyntaxHighlightSupported&&a?l&&s?s!==a&&o.setAttribute(wi,s):o.removeAttribute(wi):l&&s&&o.setAttribute(wi,s);const c=this.__theme,u=n.__theme;c?c!==u&&o.setAttribute(Hs,c):u&&o.removeAttribute(Hs);const d=this.__style,p=n.__style;return d?d!==p&&o.setAttribute("style",d):p&&o.removeAttribute("style"),!1}exportDOM(n){const o=document.createElement("pre");Qn(o,n._config.theme.code),o.setAttribute("spellcheck","false");const i=this.getLanguage();i&&(o.setAttribute(Ai,i),this.getIsSyntaxHighlightSupported()&&o.setAttribute(wi,i));const s=this.getTheme();s&&o.setAttribute(Hs,s);const a=this.getStyle();return a&&o.setAttribute("style",a),{element:o}}static importDOM(){return{code:n=>n.textContent!=null&&(/\r?\n/.test(n.textContent)||_g(n,"BR"))?{conversion:sp,priority:1}:null,div:()=>({conversion:gue,priority:1}),pre:()=>({conversion:sp,priority:0}),table:n=>sc(n)?{conversion:vue,priority:3}:null,td:n=>{const o=n,i=o.closest("table");return o.classList.contains("js-file-line")||i&&sc(i)?{conversion:ap,priority:3}:null},tr:n=>{const o=n.closest("table");return o&&sc(o)?{conversion:ap,priority:3}:null}}}static importJSON(n){return Dn().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setLanguage(n.language).setTheme(n.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(n,o=!0){const i=this.getChildren(),s=i.length;if(s>=2&&i[s-1].getTextContent()===`
40
40
  `&&i[s-2].getTextContent()===`
41
41
  `&&n.isCollapsed()&&n.anchor.key===this.__key&&n.anchor.offset===s){i[s-1].remove(),i[s-2].remove();const u=Re();return this.insertAfter(u,o),u}const{anchor:a,focus:l}=n,c=(a.isBefore(l)?a:l).getNode();if(Q(c)){let u=_ue(c);const d=[];for(;;)if(el(u))d.push(Gr()),u=u.getNextSibling();else{if(!Eg(u))break;{let y=0;const g=u.getTextContent(),_=u.getTextContentSize();for(;y<_&&g[y]===" ";)y++;if(y!==0&&d.push(wg(" ".repeat(y))),y!==_)break;u=u.getNextSibling()}}const p=c.splitText(a.offset)[0],f=a.offset===0?0:1,m=p.getIndexWithinParent()+f,h=c.getParentOrThrow(),v=[mn(),...d];h.splice(m,0,v);const C=d[d.length-1];C?C.select():a.offset===0?p.selectPrevious():p.getNextSibling().selectNext(0,0)}if(fl(c)){const{offset:u}=n.anchor;c.splice(u,0,[mn()]),c.select(u+1,u+1)}return null}canIndent(){return!1}collapseAtStart(){const n=Re();return this.getChildren().forEach(o=>n.append(o)),this.replace(n),!0}setLanguage(n){const o=this.getWritable();return o.__language=n||void 0,o}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(n){const o=this.getWritable();return o.__isSyntaxHighlightSupported=n,o}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(n){const o=this.getWritable();return o.__theme=n||void 0,o}getTheme(){return this.getLatest().__theme}};function Dn(t,e){return _ce(dl).setLanguage(t).setTheme(e)}function fl(t){return t instanceof dl}function sp(t){return{node:Dn(t.getAttribute(Ai))}}function gue(t){const e=t,n=lp(e);return n||function(o){let i=o.parentElement;for(;i!==null;){if(lp(i))return!0;i=i.parentElement}return!1}(e)?{node:n?Dn():null}:{node:null}}function vue(){return{node:Dn()}}function ap(){return{node:null}}function lp(t){return t.style.fontFamily.match("monospace")!==null}function sc(t){return t.classList.contains("js-file-line-container")}let bg=class kg extends xo{constructor(n="",o,i){super(n,i);j(this,"__highlightType");this.__highlightType=o}static getType(){return"code-highlight"}static clone(n){return new kg(n.__text,n.__highlightType||void 0,n.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(n){const o=this.getWritable();return o.__highlightType=n||void 0,o}canHaveFormat(){return!1}createDOM(n){const o=super.createDOM(n),i=ac(n.theme,this.__highlightType);return Qn(o,i),o}updateDOM(n,o,i){const s=super.updateDOM(n,o,i),a=ac(i.theme,n.__highlightType),l=ac(i.theme,this.__highlightType);return a!==l&&(a&&Xu(o,a),l&&Qn(o,l)),s}static importJSON(n){return wg().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setHighlightType(n.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(n){return this}isParentRequired(){return!0}createParentElementNode(){return Dn()}};function ac(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function wg(t="",e){return _n(new bg(t,e))}function Eg(t){return t instanceof bg}function yue(t,e){let n=t;for(let o=mt(t,e);o&&(Eg(o.origin)||el(o.origin));o=Ice(o))n=o.origin;return n}function _ue(t){return yue(t,"previous")}(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var e={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(e).forEach(function(n){var o=e[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),n==="diff"&&i.push("bold"),t.languages.diff[n]={pattern:RegExp("^(?:["+o+`].*(?:\r
42
42
  ?|
43
- |(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);const Cue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Qr extends jt{constructor(n="",o={},i){super(i);j(this,"__url");j(this,"__target");j(this,"__rel");j(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new Qr(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),Qn(o,n.theme.link),o}updateLinkDOM(n,o,i){if(jh(o)){n&&n.__url===this.__url||(o.href=this.sanitizeUrl(this.__url));for(const s of["target","rel","title"]){const a=`__${s}`,l=this[a];n&&n[a]===l||(l?o[s]=l:o.removeAttribute(s))}}}updateDOM(n,o,i){return this.updateLinkDOM(n,o,i),!1}static importDOM(){return{a:n=>({conversion:bue,priority:1})}}static importJSON(n){return wa().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=up(n);try{const o=new URL(up(n));if(!Cue.has(o.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const o=this.getWritable();return o.__url=n,o}getTarget(){return this.getLatest().__target}setTarget(n){const o=this.getWritable();return o.__target=n,o}getRel(){return this.getLatest().__rel}setRel(n){const o=this.getWritable();return o.__rel=n,o}getTitle(){return this.getLatest().__title}setTitle(n){const o=this.getWritable();return o.__title=n,o}insertNewAfter(n,o=!0){const i=wa(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(i,o),i}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,i){if(!K(o))return!1;const s=o.anchor.getNode(),a=o.focus.getNode();return this.isParentOf(s)&&this.isParentOf(a)&&o.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function bue(t){let e=null;if(jh(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=wa(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function wa(t="",e){return _n(new Qr(t,e))}function kue(t){return t instanceof Qr}class pl extends Qr{constructor(n="",o={},i){super(n,o,i);j(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new pl(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const o=this.getWritable();return o.__isUnlinked=n,o}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,o,i){return super.updateDOM(n,o,i)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return cp().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,o=!0){const i=this.getParentOrThrow().insertNewAfter(n,o);if(q(i)){const s=cp(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return i.append(s),s}return null}}function cp(t="",e){return _n(new pl(t,e))}function wue(t){return t instanceof pl}const Eue=/^\+?[0-9\s()-]{5,}$/;function up(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:Eue.test(t)?`tel:${t}`:`https://${t}`}function Wc(t,e){const n={};for(const o of t){const i=e(o);i&&(n[i]?n[i].push(o):n[i]=[o])}return n}function nd(t){const e=Wc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const Ea=/[!-/:-@[-`{-~\s]/,Sue=/^\s{0,3}$/;function Zc(t){if(!ps(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&Q(e)&&Sue.test(e.getTextContent())}function xue(t,e,n,o){for(const i of e){if(!i.export)continue;const s=i.export(t,a=>Sa(a,n,o));if(s!=null)return s}return q(t)?Sa(t,n,o):Ae(t)?t.getTextContent():null}function Sa(t,e,n,o,i){const s=[],a=t.getChildren();o||(o=[]),i||(i=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>Sa(d,e,n,o,[...i,...o]),(d,p)=>dp(d,p,e,o,i));if(u!=null){s.push(u);continue e}}go(l)?s.push(`
44
- `):Q(l)?s.push(dp(l,l.getTextContent(),e,o,i)):q(l)?s.push(Sa(l,e,n,o,i)):Ae(l)&&s.push(l.getTextContent())}return s.join("")}function dp(t,e,n,o,i){let s=t.getFormat()===0?e:function(f){return f.replace(/^\s+|\s+$/g,m=>[...m].map(h=>"&#"+h.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=fp(t,!0),d=fp(t,!1),p=new Set;for(const f of n){const m=f.format[0],h=f.tag;qs(t,m)&&!p.has(m)&&(p.add(m),qs(u,m)&&o.find(v=>v.tag===h)||(o.push({format:m,tag:h}),a+=h))}for(let f=0;f<o.length;f++){const m=qs(t,o[f].format),h=qs(d,o[f].format);if(m&&h)continue;const v=[...o];for(;v.length>f;){const C=v.pop();i&&C&&i.find(y=>y.tag===C.tag)||(C&&typeof C.tag=="string"&&(m?h||(c+=C.tag):l+=C.tag),o.pop())}break}return s=a+s+c,l+s}function fp(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(q(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(Q(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(Q(n))return n;if(!q(n))return null}return null}function qs(t,e){return Q(t)&&t.hasFormat(e)}function Aue(t,e){const n=function(i,s){const a=i.match(s.openTagsRegExp);if(a==null)return null;for(const l of a){const c=l.replace(/^\s/,""),u=s.fullMatchRegExpByTag[c];if(u==null)continue;const d=i.match(u),p=s.transformersByTag[c];if(d!=null&&p!=null){if(p.intraword!==!1)return d;const{index:f=0}=d,m=i[f-1],h=i[f+d[0].length];if((!m||Ea.test(m))&&(!h||Ea.test(h)))return d}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function Vo(t){return Q(t)&&!t.hasFormat("code")}function Io(t,e,n){let o=Aue(t,e),i=function(a,l){const c=a;let u,d,p,f;for(const m of l){if(!m.replace||!m.importRegExp)continue;const h=c.getTextContent().match(m.importRegExp);if(!h)continue;const v=h.index||0,C=m.getEndIndex?m.getEndIndex(c,h):v+h[0].length;C!==!1&&(u===void 0||d===void 0||v<u&&(C>d||C<=u))&&(u=v,d=C,p=m,f=h)}return u===void 0||d===void 0||p===void 0||f===void 0?null:{endIndex:d,match:f,startIndex:u,transformer:p}}(t,n);if(o&&i&&(o.startIndex<=i.startIndex&&o.endIndex>=i.endIndex||i.startIndex>o.endIndex?i=null:o=null),o){const a=function(l,c,u,d,p){const f=l.getTextContent();let m,h,v;if(p[0]===f?m=l:c===0?[m,h]=l.splitText(u):[v,m,h]=l.splitText(c,u),m.setTextContent(p[2]),d)for(const C of d.format)m.hasFormat(C)||m.toggleFormat(C);return{nodeAfter:h,nodeBefore:v,transformedNode:m}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Vo(a.nodeAfter)&&Io(a.nodeAfter,e,n),Vo(a.nodeBefore)&&Io(a.nodeBefore,e,n),Vo(a.transformedNode)&&Io(a.transformedNode,e,n)}else if(i){const a=function(l,c,u,d,p){let f,m,h;return c===0?[f,m]=l.splitText(u):[h,f,m]=l.splitText(c,u),d.replace?{nodeAfter:m,nodeBefore:h,transformedNode:d.replace(f,p)||void 0}:null}(t,i.startIndex,i.endIndex,i.transformer,i.match);if(!a)return;Vo(a.nodeAfter)&&Io(a.nodeAfter,e,n),Vo(a.nodeBefore)&&Io(a.nodeBefore,e,n),Vo(a.transformedNode)&&Io(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function Tue(t,e=!1){const n=nd(t),o=function(i){const s={},a={},l=[],c="(?<![\\\\])";for(const u of i){const{tag:d}=u;s[d]=u;const p=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(p),d.length===1?a[d]=new RegExp(`(?<![\\\\${p}])(${p})((\\\\${p})?.*?[^${p}\\s](\\\\${p})?)((?<!\\\\)|(?<=\\\\\\\\))(${p})(?![\\\\${p}])`):a[d]=new RegExp(`(?<!\\\\)(${p})((\\\\${p})?.*?[^\\s](\\\\${p})?)((?<!\\\\)|(?<=\\\\\\\\))(${p})(?!\\\\)`)}return{fullMatchRegExpByTag:a,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:s}}(n.textFormat);return(i,s)=>{const a=i.split(`
43
+ |(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:e})})(Prism);const Cue=new Set(["http:","https:","mailto:","sms:","tel:"]);class Qr extends jt{constructor(n="",o={},i){super(i);j(this,"__url");j(this,"__target");j(this,"__rel");j(this,"__title");const{target:s=null,rel:a=null,title:l=null}=o;this.__url=n,this.__target=s,this.__rel=a,this.__title=l}static getType(){return"link"}static clone(n){return new Qr(n.__url,{rel:n.__rel,target:n.__target,title:n.__title},n.__key)}createDOM(n){const o=document.createElement("a");return this.updateLinkDOM(null,o,n),Qn(o,n.theme.link),o}updateLinkDOM(n,o,i){if(jh(o)){n&&n.__url===this.__url||(o.href=this.sanitizeUrl(this.__url));for(const s of["target","rel","title"]){const a=`__${s}`,l=this[a];n&&n[a]===l||(l?o[s]=l:o.removeAttribute(s))}}}updateDOM(n,o,i){return this.updateLinkDOM(n,o,i),!1}static importDOM(){return{a:n=>({conversion:bue,priority:1})}}static importJSON(n){return wa().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setURL(n.url).setRel(n.rel||null).setTarget(n.target||null).setTitle(n.title||null)}sanitizeUrl(n){n=up(n);try{const o=new URL(up(n));if(!Cue.has(o.protocol))return"about:blank"}catch{return n}return n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(n){const o=this.getWritable();return o.__url=n,o}getTarget(){return this.getLatest().__target}setTarget(n){const o=this.getWritable();return o.__target=n,o}getRel(){return this.getLatest().__rel}setRel(n){const o=this.getWritable();return o.__rel=n,o}getTitle(){return this.getLatest().__title}setTitle(n){const o=this.getWritable();return o.__title=n,o}insertNewAfter(n,o=!0){const i=wa(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(i,o),i}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(n,o,i){if(!K(o))return!1;const s=o.anchor.getNode(),a=o.focus.getNode();return this.isParentOf(s)&&this.isParentOf(a)&&o.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function bue(t){let e=null;if(jh(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=wa(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function wa(t="",e){return _n(new Qr(t,e))}function kue(t){return t instanceof Qr}class pl extends Qr{constructor(n="",o={},i){super(n,o,i);j(this,"__isUnlinked");this.__isUnlinked=o.isUnlinked!==void 0&&o.isUnlinked!==null&&o.isUnlinked}static getType(){return"autolink"}static clone(n){return new pl(n.__url,{isUnlinked:n.__isUnlinked,rel:n.__rel,target:n.__target,title:n.__title},n.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(n){const o=this.getWritable();return o.__isUnlinked=n,o}createDOM(n){return this.__isUnlinked?document.createElement("span"):super.createDOM(n)}updateDOM(n,o,i){return super.updateDOM(n,o,i)||n.__isUnlinked!==this.__isUnlinked}static importJSON(n){return cp().updateFromJSON(n)}updateFromJSON(n){return super.updateFromJSON(n).setIsUnlinked(n.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(n,o=!0){const i=this.getParentOrThrow().insertNewAfter(n,o);if(U(i)){const s=cp(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return i.append(s),s}return null}}function cp(t="",e){return _n(new pl(t,e))}function wue(t){return t instanceof pl}const Eue=/^\+?[0-9\s()-]{5,}$/;function up(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:Eue.test(t)?`tel:${t}`:`https://${t}`}function Wc(t,e){const n={};for(const o of t){const i=e(o);i&&(n[i]?n[i].push(o):n[i]=[o])}return n}function nd(t){const e=Wc(t,n=>n.type);return{element:e.element||[],multilineElement:e["multiline-element"]||[],textFormat:e["text-format"]||[],textMatch:e["text-match"]||[]}}const Ea=/[!-/:-@[-`{-~\s]/,Sue=/^\s{0,3}$/;function Zc(t){if(!ps(t))return!1;const e=t.getFirstChild();return e==null||t.getChildrenSize()===1&&Q(e)&&Sue.test(e.getTextContent())}function xue(t,e,n,o){for(const i of e){if(!i.export)continue;const s=i.export(t,a=>Sa(a,n,o));if(s!=null)return s}return U(t)?Sa(t,n,o):Ae(t)?t.getTextContent():null}function Sa(t,e,n,o,i){const s=[],a=t.getChildren();o||(o=[]),i||(i=[]);e:for(const l of a){for(const c of n){if(!c.export)continue;const u=c.export(l,d=>Sa(d,e,n,o,[...i,...o]),(d,p)=>dp(d,p,e,o,i));if(u!=null){s.push(u);continue e}}go(l)?s.push(`
44
+ `):Q(l)?s.push(dp(l,l.getTextContent(),e,o,i)):U(l)?s.push(Sa(l,e,n,o,i)):Ae(l)&&s.push(l.getTextContent())}return s.join("")}function dp(t,e,n,o,i){let s=t.getFormat()===0?e:function(f){return f.replace(/^\s+|\s+$/g,m=>[...m].map(h=>"&#"+h.codePointAt(0)+";").join(""))}(e);t.hasFormat("code")||(s=s.replace(/([*_`~\\])/g,"\\$1"));let a="",l="",c="";const u=fp(t,!0),d=fp(t,!1),p=new Set;for(const f of n){const m=f.format[0],h=f.tag;qs(t,m)&&!p.has(m)&&(p.add(m),qs(u,m)&&o.find(v=>v.tag===h)||(o.push({format:m,tag:h}),a+=h))}for(let f=0;f<o.length;f++){const m=qs(t,o[f].format),h=qs(d,o[f].format);if(m&&h)continue;const v=[...o];for(;v.length>f;){const C=v.pop();i&&C&&i.find(y=>y.tag===C.tag)||(C&&typeof C.tag=="string"&&(m?h||(c+=C.tag):l+=C.tag),o.pop())}break}return s=a+s+c,l+s}function fp(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();if(!n){const o=t.getParentOrThrow();o.isInline()&&(n=e?o.getPreviousSibling():o.getNextSibling())}for(;n;){if(U(n)){if(!n.isInline())break;const o=e?n.getLastDescendant():n.getFirstDescendant();if(Q(o))return o;n=e?n.getPreviousSibling():n.getNextSibling()}if(Q(n))return n;if(!U(n))return null}return null}function qs(t,e){return Q(t)&&t.hasFormat(e)}function Aue(t,e){const n=function(i,s){const a=i.match(s.openTagsRegExp);if(a==null)return null;for(const l of a){const c=l.replace(/^\s/,""),u=s.fullMatchRegExpByTag[c];if(u==null)continue;const d=i.match(u),p=s.transformersByTag[c];if(d!=null&&p!=null){if(p.intraword!==!1)return d;const{index:f=0}=d,m=i[f-1],h=i[f+d[0].length];if((!m||Ea.test(m))&&(!h||Ea.test(h)))return d}}return null}(t.getTextContent(),e);if(!n)return null;const o=n.index||0;return{endIndex:o+n[0].length,match:n,startIndex:o,transformer:e.transformersByTag[n[1]]}}function Vo(t){return Q(t)&&!t.hasFormat("code")}function Io(t,e,n){let o=Aue(t,e),i=function(a,l){const c=a;let u,d,p,f;for(const m of l){if(!m.replace||!m.importRegExp)continue;const h=c.getTextContent().match(m.importRegExp);if(!h)continue;const v=h.index||0,C=m.getEndIndex?m.getEndIndex(c,h):v+h[0].length;C!==!1&&(u===void 0||d===void 0||v<u&&(C>d||C<=u))&&(u=v,d=C,p=m,f=h)}return u===void 0||d===void 0||p===void 0||f===void 0?null:{endIndex:d,match:f,startIndex:u,transformer:p}}(t,n);if(o&&i&&(o.startIndex<=i.startIndex&&o.endIndex>=i.endIndex||i.startIndex>o.endIndex?i=null:o=null),o){const a=function(l,c,u,d,p){const f=l.getTextContent();let m,h,v;if(p[0]===f?m=l:c===0?[m,h]=l.splitText(u):[v,m,h]=l.splitText(c,u),m.setTextContent(p[2]),d)for(const C of d.format)m.hasFormat(C)||m.toggleFormat(C);return{nodeAfter:h,nodeBefore:v,transformedNode:m}}(t,o.startIndex,o.endIndex,o.transformer,o.match);Vo(a.nodeAfter)&&Io(a.nodeAfter,e,n),Vo(a.nodeBefore)&&Io(a.nodeBefore,e,n),Vo(a.transformedNode)&&Io(a.transformedNode,e,n)}else if(i){const a=function(l,c,u,d,p){let f,m,h;return c===0?[f,m]=l.splitText(u):[h,f,m]=l.splitText(c,u),d.replace?{nodeAfter:m,nodeBefore:h,transformedNode:d.replace(f,p)||void 0}:null}(t,i.startIndex,i.endIndex,i.transformer,i.match);if(!a)return;Vo(a.nodeAfter)&&Io(a.nodeAfter,e,n),Vo(a.nodeBefore)&&Io(a.nodeBefore,e,n),Vo(a.transformedNode)&&Io(a.transformedNode,e,n)}const s=t.getTextContent().replace(/\\([*_`~\\])/g,"$1").replace(/&#(\d+);/g,(a,l)=>String.fromCodePoint(l));t.setTextContent(s)}function Tue(t,e=!1){const n=nd(t),o=function(i){const s={},a={},l=[],c="(?<![\\\\])";for(const u of i){const{tag:d}=u;s[d]=u;const p=d.replace(/(\*|\^|\+)/g,"\\$1");l.push(p),d.length===1?a[d]=new RegExp(`(?<![\\\\${p}])(${p})((\\\\${p})?.*?[^${p}\\s](\\\\${p})?)((?<!\\\\)|(?<=\\\\\\\\))(${p})(?![\\\\${p}])`):a[d]=new RegExp(`(?<!\\\\)(${p})((\\\\${p})?.*?[^\\s](\\\\${p})?)((?<!\\\\)|(?<=\\\\\\\\))(${p})(?!\\\\)`)}return{fullMatchRegExpByTag:a,openTagsRegExp:new RegExp(`${c}(${l.join("|")})`,"g"),transformersByTag:s}}(n.textFormat);return(i,s)=>{const a=i.split(`
45
45
  `),l=a.length,c=s||We();c.clear();for(let d=0;d<l;d++){const p=a[d],[f,m]=Nue(a,d,n.multilineElement,c);f?d=m:Due(p,c,n.element,o,n.textMatch,e)}const u=c.getChildren();for(const d of u)!e&&Zc(d)&&c.getChildrenSize()>1&&d.remove();te()!==null&&c.selectStart()}}function Nue(t,e,n,o){for(const i of n){const{handleImportAfterStartMatch:s,regExpEnd:a,regExpStart:l,replace:c}=i,u=t[e].match(l);if(!u)continue;if(s){const h=s({lines:t,rootNode:o,startLineIndex:e,startMatch:u,transformer:i});if(h===null)continue;if(h)return h}const d=typeof a=="object"&&"regExp"in a?a.regExp:a,p=a&&typeof a=="object"&&"optional"in a?a.optional:!a;let f=e;const m=t.length;for(;f<m;){const h=d?t[f].match(d):null;if(!h&&(!p||p&&f<m-1)){f++;continue}if(h&&e===f&&h.index===u.index){f++;continue}const v=[];if(h&&e===f)v.push(t[e].slice(u[0].length,-h[0].length));else for(let C=e;C<=f;C++)if(C===e){const y=t[C].slice(u[0].length);v.push(y)}else if(C===f&&h){const y=t[C].slice(0,-h[0].length);v.push(y)}else v.push(t[C]);if(c(o,null,u,h,v,!0)!==!1)return[!0,f];break}}return[!1,e]}function Due(t,e,n,o,i,s){const a=Ke(t),l=Re();l.append(a),e.append(l);for(const{regExp:c,replace:u}of n){const d=t.match(c);if(d&&(a.setTextContent(t.slice(d[0].length)),u(l,[a],d,!0)!==!1))break}if(Io(a,o,i),l.isAttached()&&t.length>0){const c=l.getPreviousSibling();if(!s&&(ps(c)||jc(c)||ge(c))){let u=c;if(ge(c)){const d=c.getLastDescendant();u=d==null?null:en(d,Te)}u!=null&&u.getTextContentSize()>0&&(u.splice(u.getChildrenSize(),0,[mn(),...l.getChildren()]),l.remove())}}}function $ue(t,...e){const n=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",t);for(const i of e)o.append("v",i);throw n.search=o.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const Sg=/^(\s*)(\d{1,})\.\s/,xg=/^(\s*)[-*+]\s/,Bue=/^(\s*)(?:[-*+]\s)?\s?(\[(\s|x)?\])\s/i,Kc=/^(#{1,6})\s/,Ag=/^>\s/,Tg=/^[ \t]*```([\w-]+)?/,Gc=/[ \t]*```$/,Mue=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,Lue=/^(?:\|)(.+)(?:\|)\s?$/,Oue=/^(\| ?:?-*:? ?)+\|\s?$/,pp=/^<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,mp=/^<\/[a-z_][\w-]*\s*>/i,hp=t=>new RegExp(`(?:${t.source})$`,t.flags),Ti=vle("mdListMarker",{parse:t=>typeof t=="string"&&/^[-*+]$/.test(t)?t:"-"}),Ng=t=>(e,n,o,i)=>{const s=t(o);s.append(...n),e.replace(s),i||s.select(0,0)},Dg=t=>(e,n,o,i)=>{const s=e.getPreviousSibling(),a=e.getNextSibling(),l=Wt(t==="check"?o[3]==="x":void 0),c=o[0].trim()[0],u=t!=="bullet"&&t!=="check"||c!==Ti.parse(c)?void 0:c;if(ge(a)&&a.getListType()===t){u&&Wl(a,Ti,u);const p=a.getFirstChild();p!==null?p.insertBefore(l):a.append(l),e.remove()}else if(ge(s)&&s.getListType()===t)u&&Wl(s,Ti,u),s.append(l),e.remove();else{const p=Mt(t,t==="number"?Number(o[2]):void 0);u&&Wl(p,Ti,u),p.append(l),e.replace(p)}l.append(...n),i||l.select(0,0);const d=function(p){const f=p.match(/\t/g),m=p.match(/ /g);let h=0;return f&&(h+=f.length),m&&(h+=Math.floor(m.length/4)),h}(o[1]);d&&l.setIndent(d)},od=(t,e,n)=>{const o=[],i=t.getChildren();let s=0;for(const a of i)if(Te(a)){if(a.getChildrenSize()===1){const p=a.getFirstChild();if(ge(p)){o.push(od(p,e,n+1));continue}}const l=" ".repeat(4*n),c=t.getListType(),u=zm(t,Ti),d=c==="number"?`${t.getStart()+s}. `:c==="check"?`${u} [${a.getChecked()?"x":" "}] `:u+" ";o.push(l+d+e(a)),s++}return o.join(`
46
46
  `)},$g={dependencies:[ul],export:(t,e)=>{if(!yg(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:Kc,replace:Ng(t=>{const e="h"+t[1].length;return Uo(e)}),type:"element"},Vue={dependencies:[ed],export:(t,e)=>{if(!jc(t))return null;const n=e(t).split(`
47
47
  `),o=[];for(const i of n)o.push("> "+i);return o.join(`
48
48
  `)},regExp:Ag,replace:(t,e,n,o)=>{if(o){const s=t.getPreviousSibling();if(jc(s))return s.splice(s.getChildrenSize(),0,[mn(),...e]),void t.remove()}const i=td();i.append(...e),t.replace(i),o||i.select(0,0)},type:"element"},Bg={dependencies:[dl],export:t=>{if(!fl(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
49
49
  `+e:"")+"\n```"},regExpEnd:{optional:!0,regExp:Gc},regExpStart:Tg,replace:(t,e,n,o,i,s)=>{let a,l;if(!e&&i){if(i.length===1)o?(a=Dn(),l=n[1]+i[0]):(a=Dn(n[1]),l=i[0].startsWith(" ")?i[0].slice(1):i[0]);else{if(a=Dn(n[1]),i[0].trim().length===0)for(;i.length>0&&!i[0].length;)i.shift();else i[0]=i[0].startsWith(" ")?i[0].slice(1):i[0];for(;i.length>0&&!i[i.length-1].length;)i.pop();l=i.join(`
50
- `)}const c=Ke(l);a.append(c),t.append(a)}else e&&Ng(c=>Dn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},Mg={dependencies:[ur,To],export:(t,e)=>ge(t)?od(t,e,0):null,regExp:xg,replace:Dg("bullet"),type:"element"},Lg={dependencies:[ur,To],export:(t,e)=>ge(t)?od(t,e,0):null,regExp:Sg,replace:Dg("number"),type:"element"},Og={format:["code"],tag:"`",type:"text-format"},Iue={format:["highlight"],tag:"==",type:"text-format"},Vg={format:["bold","italic"],tag:"***",type:"text-format"},Pue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Ig={format:["bold"],tag:"**",type:"text-format"},Fue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Pg={format:["strikethrough"],tag:"~~",type:"text-format"},Fg={format:["italic"],tag:"*",type:"text-format"},Rue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},zue={dependencies:[Qr],export:(t,e,n)=>{if(!kue(t)||wue(t))return null;const o=t.getTitle(),i=e(t);return o?`[${i}](${t.getURL()} "${o}")`:`[${i}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,i]=e,s=wa(o,{title:i}),a=n.split("[").length-1,l=n.split("]").length-1;let c=n,u="";if(a<l)return;if(a>l){const p=n.split("[");u="["+p[0],c=p.slice(1).join("[")}const d=Ke(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ke(u)),d},trigger:")",type:"text-match"},Uue=[$g,Vue,Mg,Lg],Hue=[Bg],que=[Og,Vg,Pue,Ig,Fue,Iue,Fg,Rue,Pg],jue=[zue],rd=[...Uue,...Hue,...que,...jue];function gp(t,e,n){const o=n.length;for(let i=e;i>=o;i--){const s=i-o;if(Rg(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Rg(t,e,n,o,i){for(let s=0;s<i;s++)if(t[e+s]!==n[o+s])return!1;return!0}function Wue(t,e=rd){const n=nd(e),o=Wc(n.textFormat,({tag:a})=>a[a.length-1]),i=Wc(n.textMatch,({trigger:a})=>a);for(const a of e){const l=a.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const c=a.dependencies;for(const u of c)t.hasNode(u)||$ue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,p,f){const m=u.getParent();if(!At(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[p-1]!==" ")return!1;for(const{regExp:v,replace:C}of f){const y=h.match(v);if(y&&y[0].length===(y[0].endsWith(" ")?p:p-1)){const g=d.getNextSiblings(),[_,b]=d.splitText(p);if(C(u,b?[b,...g]:g,y,!1)!==!1)return _.remove(),!0}}return!1})(a,l,c,n.element)||function(u,d,p,f){const m=u.getParent();if(!At(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[p-1]!==" ")return!1;for(const{regExpStart:v,replace:C,regExpEnd:y}of f){if(y&&!("optional"in y)||y&&"optional"in y&&!y.optional)continue;const g=h.match(v);if(g&&g[0].length===(g[0].endsWith(" ")?p:p-1)){const _=d.getNextSiblings(),[b,w]=d.splitText(p);if(C(u,w?[w,..._]:_,g,null,null,!1)!==!1)return b.remove(),!0}}return!1}(a,l,c,n.multilineElement)||function(u,d,p){let f=u.getTextContent();const m=p[f[d-1]];if(m==null)return!1;d<f.length&&(f=f.slice(0,d));for(const h of m){if(!h.replace||!h.regExp)continue;const v=f.match(h.regExp);if(v===null)continue;const C=v.index||0,y=C+v[0].length;let g;return C===0?[g]=u.splitText(y):[,g]=u.splitText(C,y),g.selectNext(0,0),h.replace(g,v),!0}return!1}(l,c,i)||function(u,d,p){const f=u.getTextContent(),m=d-1,h=f[m],v=p[h];if(!v)return!1;for(const C of v){const{tag:y}=C,g=y.length,_=m-g+1;if(g>1&&!Rg(f,_,y,0,g)||f[_-1]===" ")continue;const b=f[m+1];if(C.intraword===!1&&b&&!Ea.test(b))continue;const w=u;let k=w,x=gp(f,_,y),S=k;for(;x<0&&(S=S.getPreviousSibling())&&!go(S);)if(Q(S)){if(S.hasFormat("code"))continue;const P=S.getTextContent();k=S,x=gp(P,P.length,y)}if(x<0||k===w&&x+g===_)continue;const E=k.getTextContent();if(x>0&&E[x-1]===h)continue;const N=E[x-1];if(C.intraword===!1&&N&&!Ea.test(N))continue;const I=w.getTextContent(),A=I.slice(0,_)+I.slice(m+1);w.setTextContent(A);const M=k===w?A:E;k.setTextContent(M.slice(0,x)+M.slice(x+g));const D=te(),$=nl();vt($);const B=m-g*(k===w?2:1)+1;$.anchor.set(k.__key,x,"text"),$.focus.set(w.__key,B,"text");for(const P of C.format)$.hasFormat(P)||$.formatText(P);$.anchor.set($.focus.key,$.focus.offset,$.focus.type);for(const P of C.format)$.hasFormat(P)&&$.toggleFormat(P);return K(D)&&($.format=D.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(yh)||a.has(ha)||t.isComposing())return;const d=c.read(te),p=u.read(te);if(!K(p)||!K(d)||!d.isCollapsed()||d.is(p))return;const f=d.anchor.key,m=d.anchor.offset,h=c._nodeMap.get(f);!Q(h)||!l.has(f)||m!==1&&m>p.anchor.offset+1||t.update(()=>{if(!Vo(h))return;const v=h.getParent();v===null||fl(v)||s(v,h,d.anchor.offset)})})}function Zue(t,e=rd,n,o=!1,i=!1){const s=o?t:function(a,l=!1){const c=a.split(`
50
+ `)}const c=Ke(l);a.append(c),t.append(a)}else e&&Ng(c=>Dn(c?c[1]:void 0))(t,e,n,s)},type:"multiline-element"},Mg={dependencies:[ur,To],export:(t,e)=>ge(t)?od(t,e,0):null,regExp:xg,replace:Dg("bullet"),type:"element"},Lg={dependencies:[ur,To],export:(t,e)=>ge(t)?od(t,e,0):null,regExp:Sg,replace:Dg("number"),type:"element"},Og={format:["code"],tag:"`",type:"text-format"},Iue={format:["highlight"],tag:"==",type:"text-format"},Vg={format:["bold","italic"],tag:"***",type:"text-format"},Pue={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Ig={format:["bold"],tag:"**",type:"text-format"},Fue={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Pg={format:["strikethrough"],tag:"~~",type:"text-format"},Fg={format:["italic"],tag:"*",type:"text-format"},Rue={format:["italic"],intraword:!1,tag:"_",type:"text-format"},zue={dependencies:[Qr],export:(t,e,n)=>{if(!kue(t)||wue(t))return null;const o=t.getTitle(),i=e(t);return o?`[${i}](${t.getURL()} "${o}")`:`[${i}](${t.getURL()})`},importRegExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.+?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,o,i]=e,s=wa(o,{title:i}),a=n.split("[").length-1,l=n.split("]").length-1;let c=n,u="";if(a<l)return;if(a>l){const p=n.split("[");u="["+p[0],c=p.slice(1).join("[")}const d=Ke(c);return d.setFormat(t.getFormat()),s.append(d),t.replace(s),u&&s.insertBefore(Ke(u)),d},trigger:")",type:"text-match"},Uue=[$g,Vue,Mg,Lg],Hue=[Bg],que=[Og,Vg,Pue,Ig,Fue,Iue,Fg,Rue,Pg],jue=[zue],rd=[...Uue,...Hue,...que,...jue];function gp(t,e,n){const o=n.length;for(let i=e;i>=o;i--){const s=i-o;if(Rg(t,s,n,0,o)&&t[s+o]!==" ")return s}return-1}function Rg(t,e,n,o,i){for(let s=0;s<i;s++)if(t[e+s]!==n[o+s])return!1;return!0}function Wue(t,e=rd){const n=nd(e),o=Wc(n.textFormat,({tag:a})=>a[a.length-1]),i=Wc(n.textMatch,({trigger:a})=>a);for(const a of e){const l=a.type;if(l==="element"||l==="text-match"||l==="multiline-element"){const c=a.dependencies;for(const u of c)t.hasNode(u)||$ue(173,u.getType())}}const s=(a,l,c)=>{(function(u,d,p,f){const m=u.getParent();if(!At(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[p-1]!==" ")return!1;for(const{regExp:v,replace:C}of f){const y=h.match(v);if(y&&y[0].length===(y[0].endsWith(" ")?p:p-1)){const g=d.getNextSiblings(),[_,b]=d.splitText(p);if(C(u,b?[b,...g]:g,y,!1)!==!1)return _.remove(),!0}}return!1})(a,l,c,n.element)||function(u,d,p,f){const m=u.getParent();if(!At(m)||u.getFirstChild()!==d)return!1;const h=d.getTextContent();if(h[p-1]!==" ")return!1;for(const{regExpStart:v,replace:C,regExpEnd:y}of f){if(y&&!("optional"in y)||y&&"optional"in y&&!y.optional)continue;const g=h.match(v);if(g&&g[0].length===(g[0].endsWith(" ")?p:p-1)){const _=d.getNextSiblings(),[b,w]=d.splitText(p);if(C(u,w?[w,..._]:_,g,null,null,!1)!==!1)return b.remove(),!0}}return!1}(a,l,c,n.multilineElement)||function(u,d,p){let f=u.getTextContent();const m=p[f[d-1]];if(m==null)return!1;d<f.length&&(f=f.slice(0,d));for(const h of m){if(!h.replace||!h.regExp)continue;const v=f.match(h.regExp);if(v===null)continue;const C=v.index||0,y=C+v[0].length;let g;return C===0?[g]=u.splitText(y):[,g]=u.splitText(C,y),g.selectNext(0,0),h.replace(g,v),!0}return!1}(l,c,i)||function(u,d,p){const f=u.getTextContent(),m=d-1,h=f[m],v=p[h];if(!v)return!1;for(const C of v){const{tag:y}=C,g=y.length,_=m-g+1;if(g>1&&!Rg(f,_,y,0,g)||f[_-1]===" ")continue;const b=f[m+1];if(C.intraword===!1&&b&&!Ea.test(b))continue;const w=u;let k=w,A=gp(f,_,y),S=k;for(;A<0&&(S=S.getPreviousSibling())&&!go(S);)if(Q(S)){if(S.hasFormat("code"))continue;const q=S.getTextContent();k=S,A=gp(q,q.length,y)}if(A<0||k===w&&A+g===_)continue;const E=k.getTextContent();if(A>0&&E[A-1]===h)continue;const D=E[A-1];if(C.intraword===!1&&D&&!Ea.test(D))continue;const V=w.getTextContent(),T=V.slice(0,_)+V.slice(m+1);w.setTextContent(T);const M=k===w?T:E;k.setTextContent(M.slice(0,A)+M.slice(A+g));const x=te(),$=nl();vt($);const B=m-g*(k===w?2:1)+1;$.anchor.set(k.__key,A,"text"),$.focus.set(w.__key,B,"text");for(const q of C.format)$.hasFormat(q)||$.formatText(q);$.anchor.set($.focus.key,$.focus.offset,$.focus.type);for(const q of C.format)$.hasFormat(q)&&$.toggleFormat(q);return K(x)&&($.format=x.format),!0}}(l,c,o)};return t.registerUpdateListener(({tags:a,dirtyLeaves:l,editorState:c,prevEditorState:u})=>{if(a.has(yh)||a.has(ha)||t.isComposing())return;const d=c.read(te),p=u.read(te);if(!K(p)||!K(d)||!d.isCollapsed()||d.is(p))return;const f=d.anchor.key,m=d.anchor.offset,h=c._nodeMap.get(f);!Q(h)||!l.has(f)||m!==1&&m>p.anchor.offset+1||t.update(()=>{if(!Vo(h))return;const v=h.getParent();v===null||fl(v)||s(v,h,d.anchor.offset)})})}function Zue(t,e=rd,n,o=!1,i=!1){const s=o?t:function(a,l=!1){const c=a.split(`
51
51
  `);let u=!1;const d=[];for(let p=0;p<c.length;p++){const f=c[p].trimEnd(),m=d[d.length-1];Mue.test(f)?d.push(f):Tg.test(f)||Gc.test(f)?(u=!u,d.push(f)):u||f===""||m===""||!m||Kc.test(m)||Kc.test(f)||Ag.test(f)||Sg.test(f)||xg.test(f)||Bue.test(f)||Lue.test(f)||Oue.test(f)||!l||pp.test(f)||mp.test(f)||hp(mp).test(m)||hp(pp).test(m)||Gc.test(m)?d.push(f):d[d.length-1]=m+" "+f.trimStart()}return d.join(`
52
52
  `)}(t,i);return Tue(e,o)(s,n)}function Kue(t=rd,e,n=!1){return function(i,s=!1){const a=nd(i),l=[...a.multilineElement,...a.element],c=!s,u=a.textFormat.filter(d=>d.format.length===1).sort((d,p)=>Number(d.format.includes("code"))-Number(p.format.includes("code")));return d=>{const p=[],f=(d||We()).getChildren();for(let m=0;m<f.length;m++){const h=f[m],v=xue(h,l,u,a.textMatch);v!=null&&p.push(c&&m>0&&!Zc(h)&&!Zc(f[m-1])?`
53
53
  `.concat(v):v)}return p.join(`
54
- `)}}(t,n)(e)}var Gue=process.env.NODE_ENV==="production",lc="Invariant failed";function Yue(t,e){if(!t){if(Gue)throw new Error(lc);var n=typeof e=="function"?e():e,o=n?"".concat(lc,": ").concat(n):lc;throw new Error(o)}}const zg=Symbol("LexicalEditor"),Jue=(()=>{const t=r.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:i}=n;const s=o;i();const a=e,l={tag:Mi},{theme:c,namespace:u,nodes:d,onError:p,editorState:f,html:m}=a.initialConfig,h=ice({editable:a.initialConfig.editable,html:m,namespace:u,nodes:d,theme:c,onError(C){s("error",C,h),p==null||p(C,h)}});v(h,f);function v(C,y){if(y!==null){if(y===void 0)C.update(()=>{const g=We();if(g.isEmpty()){const _=Re();g.append(_);const b=Vce?document.activeElement:null;(te()!==null||b!==null&&b===C.getRootElement())&&_.select()}},l);else if(y!==null)switch(typeof y){case"string":{const g=C.parseEditorState(y);C.setEditorState(g,l);break}case"object":C.setEditorState(y,l);break;case"function":C.update(()=>{We().isEmpty()&&y(C)},l);break}}}return r.provide(zg,h),r.onMounted(()=>{const C=a.initialConfig.editable;h.setEditable(C!==void 0?C:!0)}),(C,y)=>r.renderSlot(C.$slots,"default")}});return t.__vue_vine=!0,t})();function ei(){const t=r.inject(zg,null);return t||Yue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Xue(t,e){if(t==null)return{};var n=Que(t,e),o,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)o=s[i],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Que(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,s;for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}const ede=(()=>{const t=["aria-activedescendant","aria-autocomplete","aria-controls","aria-describedby","aria-expanded","aria-label","aria-labelledby","aria-multiline","aria-owns","aria-readonly","aria-required","autocapitalize","contenteditable","role","spellcheck","tabindex"],e=r.defineComponent({name:"ContentEditableElement",props:{editor:{required:!0},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean},onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{}},setup(n,o){let{expose:i}=o;i();const s=n,a=r.useTemplateRef("root"),l=r.ref(s.editor.isEditable()),c=r.computed(()=>Xue(s,["editor"]));r.onMounted(()=>{function d(f){f&&f.ownerDocument&&f.ownerDocument.defaultView?s.editor.setRootElement(f):s.editor.setRootElement(null)}d(a.value),l.value=s.editor.isEditable();const p=s.editor.registerEditableListener(f=>{l.value=f});r.onUnmounted(p)});const u=r.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,p)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({ref_key:"root",ref:a},c.value,{"aria-activedescendant":l.value?d.ariaActiveDescendant:void 0,"aria-autocomplete":l.value?d.ariaAutoComplete:"none","aria-controls":l.value?d.ariaControls:void 0,"aria-describedby":d.ariaDescribedBy,"aria-expanded":l.value&&u.value==="combobox"?!!d.ariaExpanded:void 0,"aria-label":d.ariaLabel,"aria-labelledby":d.ariaLabelledBy,"aria-multiline":d.ariaMultiline,"aria-owns":l.value?d.ariaOwns:void 0,"aria-readonly":l.value?void 0:!0,"aria-required":d.ariaRequired,autocapitalize:d.autocapitalize,contenteditable:l.value,role:l.value?u.value:void 0,spellcheck:d.spellcheck||!0,tabindex:d.tabindex}),null,16,t))}});return e.__vue_vine=!0,e})();function tde(){return We().getTextContent()}function nde(t,e=!0){if(t)return!1;let n=tde();return e&&(n=n.trim()),n===""}function ode(t){if(!nde(t,!1))return!1;const e=We().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const i=e[o];if(Ae(i))return!1;if(q(i)){if(!ps(i)||i.__indent!==0)return!1;const s=i.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!Q(c))return!1}}}return!0}function Ug(t){return()=>ode(t)}function rde(t){return t.getEditorState().read(Ug(t.isComposing()))}function Hg(t){const e=t.getEditorState().read(Ug(t.isComposing())),n=r.ref(e);function o(){const i=rde(t);n.value=i}return r.onMounted(()=>{const i=gs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));r.onUnmounted(()=>{i()})}),r.readonly(n)}function ide(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sde(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),o.forEach(function(i){ide(t,i,n[i])})}return t}function ade(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function lde(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ade(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const cde=(()=>{const t={key:0,"aria-hidden":"true"},e=r.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:i}=o;i();const s=ei(),a=r.ref(!1),l=Hg(s);return r.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});r.onUnmounted(c)}),(c,u)=>{var d,p;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(ede),r.mergeProps({editor:r.unref(s)},lde(sde({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(p=c.spellcheck)!=null?p:!0})),null,16,["editor"]),r.unref(l)?(r.openBlock(),r.createElementBlock("div",t,[r.renderSlot(c.$slots,"placeholder")])):r.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function ude(t,e,n,o,i){if(t===null||n.size===0&&o.size===0&&!i)return 0;const s=e._selection,a=t._selection;if(i)return 1;if(!(K(s)&&K(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(y,g,_){const b=y._nodeMap,w=[];for(const k of g){const x=b.get(k);x!==void 0&&w.push(x)}for(const[k,x]of _){if(!x)continue;const S=b.get(k);S===void 0||Qe(S)||w.push(S)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const y=e._nodeMap,g=y.get(s.anchor.key),_=y.get(a.anchor.key);return g&&_&&!t._nodeMap.has(g.__key)&&Q(g)&&g.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!Q(u)||!Q(c)||u.__mode!==c.__mode)return 0;const d=u.__text,p=c.__text;if(d===p)return 0;const f=s.anchor,m=a.anchor;if(f.key!==m.key||f.type!=="text")return 0;const h=f.offset,v=m.offset,C=p.length-d.length;return C===1&&v===h-1?2:C===-1&&v===h+1?3:C===-1&&v===h?4:0}function dde(t,e){let n=Date.now(),o=0;return(i,s,a,l,c,u)=>{const d=Date.now();if(u.has(ha))return o=0,n=d,2;const p=ude(i,s,l,c,t.isComposing()),f=(()=>{const m=a===null||a.editor===t,h=u.has(Ple);if(!h&&m&&u.has(Mi))return 0;if(i===null)return 1;const v=s._selection;if(!(l.size>0||c.size>0))return v!==null?0:2;const C=typeof e=="number"?e:e.peek();return h===!1&&p!==0&&p===o&&d<n+C&&m||l.size===1&&function(y,g,_){const b=g._nodeMap.get(y),w=_._nodeMap.get(y),k=g._selection,x=_._selection;return!(K(k)&&K(x)&&k.anchor.type==="element"&&k.focus.type==="element"&&x.anchor.type==="text"&&x.focus.type==="text"||!Q(b)||!Q(w)||b.__parent!==w.__parent)&&JSON.stringify(g.read(()=>b.exportJSON()))===JSON.stringify(_.read(()=>w.exportJSON()))}(Array.from(l)[0],i,s)?0:1})();return n=d,o=p,f}}function vp(t){t.undoStack=[],t.redoStack=[],t.current=null}function fde(t,e,n){const o=dde(t,n);return gs(t.registerCommand(Au,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(c.length!==0){const u=a.current,d=c.pop();u!==null&&(l.push(u),s.dispatchCommand(Os,!0)),c.length===0&&s.dispatchCommand(Vs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:ha})}}(t,e),!0),xe),t.registerCommand(Tu,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(l.length!==0){const u=a.current;u!==null&&(c.push(u),s.dispatchCommand(Vs,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Os,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:ha})}}(t,e),!0),xe),t.registerCommand(Ble,()=>(vp(e),!1),xe),t.registerCommand(Mle,()=>(vp(e),t.dispatchCommand(Os,!1),t.dispatchCommand(Vs,!1),!0),xe),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,p=e.redoStack,f=e.undoStack,m=d===null?null:d.editorState;if(d!==null&&s===m)return;const h=o(a,s,d,l,c,u);if(h===1)p.length!==0&&(e.redoStack=[],t.dispatchCommand(Os,!1)),d!==null&&(f.push({...d}),t.dispatchCommand(Vs,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function pde(){return{current:null,redoStack:[],undoStack:[]}}function mde(t,e,n){const o=r.computed(()=>r.toValue(e)||pde());r.watchEffect(i=>{const s=fde(r.toValue(t),o.value,r.toValue(n)||1e3);i(s)})}const hde=(()=>{const t=r.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const i=e,s=ei();return mde(s,()=>i.externalHistoryState,()=>i.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function gde(t){r.onMounted(()=>{const e=Gce(t);r.onUnmounted(()=>{e()})})}const vde=(()=>{const t=r.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const i=e,s=ei();return r.watchEffect(a=>{if(!s.hasNodes([ur,To]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!i.hasStrictIndent)return;const l=Yce(s);a(l)}),gde(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function yde(t){const e=r.shallowRef(t.getDecorators());return r.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});r.onUnmounted(()=>{n()})}),r.computed(()=>{const n=[],o=Object.keys(r.unref(e));for(let i=0;i<o.length;i++){const s=o[i],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(r.h(r.Teleport,{to:l},a))}return n})}const _de=r.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=ei(),e=yde(t);return()=>e.value}});function Cde(t){r.onMounted(()=>{const e=gs(mue(t),sue(t));r.onUnmounted(e)})}const bde=(()=>{const t=r.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const i=ei(),s=Hg(i);return Cde(i),(a,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(s)?r.renderSlot(a.$slots,"placeholder",{key:0}):r.createCommentVNode("",!0),r.renderSlot(a.$slots,"contentEditable"),r.createVNode(r.unref(_de))],64))}});return t.__vue_vine=!0,t})(),cc=[$g,Bg,Mg,Lg,Vg,Ig,Fg,Pg,Og],kde={class:"ao-lexical-editor__placeholder"},qg=r.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown","paste"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.shallowRef(null),a=r.shallowRef(null),l=r.ref("paragraph"),c=r.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),u={namespace:"AoLexicalEditor",nodes:[ur,To,ul,dl],theme:{paragraph:"ao-lexical-editor__paragraph",heading:{h1:"ao-lexical-editor__heading-h1",h2:"ao-lexical-editor__heading-h2",h3:"ao-lexical-editor__heading-h3"},code:"ao-lexical-editor__code-block",text:{bold:"ao-lexical-editor__text-bold",italic:"ao-lexical-editor__text-italic",strikethrough:"ao-lexical-editor__text-strikethrough",code:"ao-lexical-editor__inline-code"},list:{ul:"ao-lexical-editor__list-ul",ol:"ao-lexical-editor__list-ol",listitem:"ao-lexical-editor__list-item"}},editorState:()=>{Zue(o.initialMarkdown||"",cc)},onError(A){console.error("Lexical error:",A)}},d=r.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:A=>!0,blockStyleChange:A=>!0,selectionChange:A=>!0},setup(A,{emit:M}){const D=ei();let $=null,B=null;function P(){D.getEditorState().read(()=>{const L=te();if(!K(L))return;M("selectionChange",L.clone());const R=L.anchor.getNode(),Y=R.getKey()==="root"?R:R.getTopLevelElementOrThrow();if(yg(Y)){const ae=Y.getTag();if(ae==="h1"||ae==="h2"||ae==="h3"){M("blockStyleChange",ae);return}}if(fl(Y)){M("blockStyleChange","code");return}M("blockStyleChange","paragraph")})}return r.onMounted(()=>{M("ready",D),P(),B=Wue(D,cc),$=D.registerUpdateListener(()=>{P()})}),r.onUnmounted(()=>{B==null||B(),$==null||$()}),()=>null}});function p(A){s.value=A,i("ready",A)}function f(A){a.value=A}function m(A){i("keydown",A)}function h(A){const M=A.clipboardData;if(!M)return;const D=[],$=M.items;if($){for(const B of $)if(B.kind==="file"&&B.type.startsWith("image/")){const P=B.getAsFile();if(P){const L=v(P);D.push(L)}}D.length>0&&(A.preventDefault(),i("paste",D))}}function v(A){if(A.name&&A.name.length>0&&A.name!=="image.png"&&A.name!=="screenshot.png"&&!A.name.startsWith("image-"))return A;const D=new Date,$=D.getFullYear(),B=String(D.getMonth()+1).padStart(2,"0"),P=String(D.getDate()).padStart(2,"0"),L=String(D.getHours()).padStart(2,"0"),R=String(D.getMinutes()).padStart(2,"0");let Y="png";A.type==="image/jpeg"?Y="jpg":A.type==="image/webp"?Y="webp":A.type==="image/gif"&&(Y="gif");const ae=`pasted-image-${$}-${B}-${P}-${L}${R}.${Y}`;return new File([A],ae,{type:A.type})}function C(){a.value&&vt(a.value.clone())}function y(A){const M=s.value;M&&(M.update(()=>{C(),A()}),M.focus())}function g(){const A=s.value;A&&(A.update(()=>{C()}),A.dispatchCommand(Yt,"bold"),A.focus())}function _(){const A=s.value;A&&(A.update(()=>{C()}),A.dispatchCommand(Yt,"italic"),A.focus())}function b(){const A=s.value;A&&(A.update(()=>{C()}),A.dispatchCommand(Yt,"strikethrough"),A.focus())}function w(){const A=s.value;A&&(A.update(()=>{C()}),A.dispatchCommand(Yt,"code"),A.focus())}function k(){const A=s.value;A&&(A.update(()=>{C()}),A.dispatchCommand(cg,void 0),A.focus())}function x(){const A=s.value;A&&(A.update(()=>{C()}),A.dispatchCommand(ug,void 0),A.focus())}function S(A){y(()=>{const M=te();if(K(M)){if(M.isCollapsed()||M.focus.set(M.anchor.key,M.anchor.offset,M.anchor.type),A==="paragraph"){rc(M,()=>Re());return}if(A==="code"){rc(M,()=>Dn());return}rc(M,()=>Uo(A))}}),l.value=A}function E(){const A=s.value;return A?A.getEditorState().read(()=>Kue(cc)):""}function N(){const A=s.value;A&&A.update(()=>{const M=We();M.clear(),M.append(Re())})}function I(){var A;(A=s.value)==null||A.focus()}return e({toggleBold:g,toggleItalic:_,toggleStrikethrough:b,toggleInlineCode:w,insertBulletList:k,insertNumberedList:x,setBlockStyle:S,getMarkdown:E,clear:N,focus:I,blockStyle:l}),(A,M)=>(r.openBlock(),r.createBlock(r.unref(Jue),{"initial-config":u},{default:r.withCtx(()=>[r.renderSlot(A.$slots,"toolbar"),r.createElementVNode("div",{class:r.normalizeClass(["ao-lexical-editor",c.value])},[r.createVNode(r.unref(bde),null,{contentEditable:r.withCtx(()=>[r.createVNode(r.unref(cde),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:r.withCtx(()=>[r.createElementVNode("div",kde,r.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),r.createVNode(r.unref(hde)),r.createVNode(r.unref(vde)),r.createVNode(r.unref(d),{onReady:p,onBlockStyleChange:M[0]||(M[0]=D=>l.value=D),onSelectionChange:f})]),_:3}))}});function wde(t,e){const n=r.ref(""),o=r.ref(!1),i=r.ref({top:0,left:0}),s=r.ref(0),a=r.computed(()=>e.value.filter(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:qp(h)}))),l=r.computed(()=>a.value.filter(h=>h.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",s.value=0}function u(){const h=te();if(!K(h)||!h.isCollapsed()){c();return}const v=h.anchor.getNode();if(!Q(v)){c();return}const y=v.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!y){c();return}n.value=y[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const h=t.value;if(!h||!o.value)return;const v=window.getSelection();if(!v||v.rangeCount===0)return;const C=v.getRangeAt(0),y=C.getClientRects().item(0)??C.getBoundingClientRect(),g=h.getRootElement();if(!g)return;const _=g.getBoundingClientRect();i.value={top:y.bottom-_.top+4,left:y.left-_.left}}function p(h){const v=t.value;v&&(v.update(()=>{const C=te();if(!K(C)||!C.isCollapsed())return;const y=C.anchor.getNode();if(!Q(y))return;const g=y.getTextContent(),_=C.anchor.offset,w=g.slice(0,_).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const k=_-w[0].length,x=`@${h} `,S=g.slice(0,k)+x+g.slice(_);y.setTextContent(S);const E=k+x.length;C.anchor.set(y.getKey(),E,"text"),C.focus.set(y.getKey(),E,"text")}),c(),v.focus())}function f(h){if(!o.value)return!1;switch(h.key){case"ArrowDown":return h.preventDefault(),l.value.length>0&&(s.value=(s.value+1)%l.value.length),!0;case"ArrowUp":return h.preventDefault(),l.value.length>0&&(s.value=(s.value-1+l.value.length)%l.value.length),!0;case"Enter":{if(l.value.length===0)return!1;h.preventDefault();const v=l.value[s.value];return v&&p(v.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.registerUpdateListener(({editorState:v})=>{v.read(()=>{u()}),o.value&&requestAnimationFrame(()=>{d()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:i,filteredUsers:l,selectedIndex:s,selectUserMention:p,handleKeydown:f,closeMentionList:c,setupMentionTracking:m}}const Ede={key:0,class:"ao-comment-editor__toolbar"},Sde=["onClick"],jg=r.defineComponent({__name:"AoCommentEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Add a comment..."},mentionableUsers:{default:()=>[]},showSubmitButton:{type:Boolean,default:!0},toolbarVisibility:{default:"focus"}},emits:["submit","cancel","focus","blur"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(null),a=r.shallowRef(null),l=r.ref(!1),c=r.toRef(o,"mentionableUsers"),{showMentionList:u,mentionListPosition:d,filteredUsers:p,selectedIndex:f,selectUserMention:m,handleKeydown:h,closeMentionList:v,setupMentionTracking:C}=wde(a,c);let y,g;const _=r.computed(()=>o.toolbarVisibility==="always"||l.value);r.onUnmounted(()=>{y==null||y(),g!==void 0&&window.clearTimeout(g)});function b(A){a.value=A,y==null||y(),y=C()}function w(){g!==void 0&&(window.clearTimeout(g),g=void 0),l.value||(l.value=!0,i("focus"))}function k(){g!==void 0&&window.clearTimeout(g),g=window.setTimeout(()=>{var D;g=void 0;const A=(D=a.value)==null?void 0:D.getRootElement(),M=document.activeElement;A&&M instanceof Node&&A.contains(M)||l.value&&(l.value=!1,i("blur"))},100)}function x(A){if(!h(A)){if(A.key==="Enter"&&(A.ctrlKey||A.metaKey)){A.preventDefault(),S();return}if(A.key==="Escape"){if(u.value){v();return}A.preventDefault(),E()}}}function S(){const A=s.value;if(!A)return;const M=A.getMarkdown();M.trim()&&i("submit",M)}function E(){v(),i("cancel")}function N(){var A;(A=s.value)==null||A.clear(),v()}function I(){var A;(A=s.value)==null||A.focus()}return e({submit:S,cancel:E,reset:N,focus:I}),(A,M)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[_.value?(r.openBlock(),r.createElementBlock("div",Ede,[r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:M[0]||(M[0]=r.withModifiers(()=>{},["prevent"])),onClick:M[1]||(M[1]=D=>{var $;return($=s.value)==null?void 0:$.toggleBold()})},[...M[14]||(M[14]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:M[2]||(M[2]=r.withModifiers(()=>{},["prevent"])),onClick:M[3]||(M[3]=D=>{var $;return($=s.value)==null?void 0:$.toggleItalic()})},[...M[15]||(M[15]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:M[4]||(M[4]=r.withModifiers(()=>{},["prevent"])),onClick:M[5]||(M[5]=D=>{var $;return($=s.value)==null?void 0:$.toggleStrikethrough()})},[...M[16]||(M[16]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:M[6]||(M[6]=r.withModifiers(()=>{},["prevent"])),onClick:M[7]||(M[7]=D=>{var $;return($=s.value)==null?void 0:$.toggleInlineCode()})},[...M[17]||(M[17]=[r.createElementVNode("span",null,"</>",-1)])],32),M[18]||(M[18]=r.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:M[8]||(M[8]=r.withModifiers(()=>{},["prevent"])),onClick:M[9]||(M[9]=D=>{var $;return($=s.value)==null?void 0:$.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:M[10]||(M[10]=r.withModifiers(()=>{},["prevent"])),onClick:M[11]||(M[11]=D=>{var $;return($=s.value)==null?void 0:$.insertNumberedList()})}," 1. ",32)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:k},[r.createVNode(qg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:b,onKeydown:x},null,8,["initial-markdown","placeholder"]),r.unref(u)&&r.unref(p).length>0?(r.openBlock(),r.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:r.normalizeStyle({top:r.unref(d).top+"px",left:r.unref(d).left+"px"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(p),(D,$)=>(r.openBlock(),r.createElementBlock("li",{key:D.id,class:r.normalizeClass({"ao-comment-editor__mention-item--selected":$===r.unref(f)}),onMousedown:M[12]||(M[12]=r.withModifiers(()=>{},["prevent"])),onClick:B=>r.unref(m)(D.name)}," @"+r.toDisplayString(D.name),43,Sde))),128))],4)):r.createCommentVNode("",!0),t.showSubmitButton?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:M[13]||(M[13]=r.withModifiers(()=>{},["prevent"])),onClick:S},[r.createVNode(ke,{name:"SendRounded"})],32)):r.createCommentVNode("",!0)],32)],2))}});const xde={class:"ao-comment"},Ade={class:"ao-comment__created-at"},Tde={class:"ao-comment__body"},Nde={class:"ao-comment__content-wrapper"},Dde={key:0,class:"ao-comment__footer"},$de=r.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{const h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),s=r.ref(!1),a=r.ref(n.content),l=r.ref(null),c=r.computed(()=>{const h=n.editedAt&&Ri(n.editedAt),v=Ri(n.createdAt),C=new Date,y=h??v;return y&&eC(y,C)});r.watch(()=>n.content,h=>{s.value||(a.value=h)});function u(){a.value=n.content,s.value=!0,r.nextTick(()=>{var h;(h=l.value)==null||h.focus()})}function d(h){o("edit",h),s.value=!1}function p(){var h;(h=l.value)==null||h.submit()}function f(){s.value=!1,a.value=n.content}function m(){o("remove")}return(h,v)=>{var C;return r.openBlock(),r.createElementBlock("li",xde,[r.createElementVNode("span",Ade,r.toDisplayString(c.value),1),i.value?(r.openBlock(),r.createBlock(Xt,{key:0,"avatar-url":(C=t.user)==null?void 0:C.avatarUrl,"user-name":i.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):r.createCommentVNode("",!0),r.createElementVNode("div",Tde,[r.createElementVNode("div",Nde,[s.value?(r.openBlock(),r.createBlock(jg,{key:1,ref_key:"commentEditorRef",ref:l,"initial-markdown":a.value,"mentionable-users":t.mentionableUsers,"show-submit-button":!1,"toolbar-visibility":"always",onSubmit:d,onCancel:f},null,8,["initial-markdown","mentionable-users"])):(r.openBlock(),r.createBlock(Bm,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Dde,[s.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(de,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:f}),r.createVNode(de,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:p})],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(de,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),r.createVNode(de,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):r.createCommentVNode("",!0)])])}}});const Bde={class:"ao-comments__new"},Mde={key:0,class:"ao-comments__list"},Lde=r.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>[...n.comments].sort((p,f)=>q3(Ri(p.createdAt),Ri(f.createdAt)))),s=p=>n.users.find(f=>f.id===p),a=r.ref(null);r.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=r.ref(null);function c(p){var m;if(!p.trim())return;const f=Md(p,n.users);o("createComment",{authorId:n.userId,message:p,mentionedUserIds:f}),(m=l.value)==null||m.reset()}function u(p,f){const m=Md(f,n.users);o("updateComment",{id:p,message:f,mentionedUserIds:m})}function d(p){o("removeComment",{id:p})}return(p,f)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[r.createElementVNode("div",Bde,[r.createVNode(jg,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:p.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),i.value.length>0?(r.openBlock(),r.createElementBlock("ul",Mde,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,m=>(r.openBlock(),r.createBlock($de,{key:m.id,user:s(m.author.id),content:m.message,"created-at":m.createdAt,"edited-at":m.updatedAt,"is-editable":m.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:h=>u(m.id,h),onRemove:()=>d(m.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):r.createCommentVNode("",!0)],512))}});const Ode=["aria-label"],Vde={class:"ao-file-preview__actions"},Ide=["aria-label"],Pde={key:0,class:"ao-file-preview__loading"},Fde=["src","alt"],Rde=["src","title"],zde={key:3,class:"ao-file-preview__fallback"},Ude={class:"ao-file-preview__fallback-title"},Hde={class:"ao-file-preview__fallback-filename"},qde=["aria-label"],jde={key:2,class:"ao-file-preview__info"},Wde=["title"],Zde={key:0,class:"ao-file-preview__info-counter"},Kde={key:3,class:"ao-file-preview__info"},Gde={class:"ao-file-preview__info-counter"},Yde=r.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){yt();const n=t,o=e,i=r.ref(null),s=r.ref(!1),a=r.ref(!1);let l=0;const c=r.computed(()=>n.attachments[n.currentIndex]),u=r.computed(()=>n.currentIndex===0),d=r.computed(()=>n.currentIndex===n.attachments.length-1),p=r.computed(()=>{var N,I;return((I=(N=c.value)==null?void 0:N.mimeType)==null?void 0:I.toLowerCase())??""}),f=r.computed(()=>{var N;return((N=c.value)==null?void 0:N.name)??""}),m=r.computed(()=>{var N;return((N=f.value.split(".").pop())==null?void 0:N.toLowerCase())??""}),h=r.computed(()=>p.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),v=r.computed(()=>p.value==="application/pdf"||m.value==="pdf"),C=r.computed(()=>h.value||v.value),y=r.computed(()=>h.value?"ImageRounded":v.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function g(){i.value&&(URL.revokeObjectURL(i.value),i.value=null)}async function _(){const N=c.value,I=++l;if(g(),a.value=!1,s.value=!1,!N||!C.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const A=await n.loadPreview(N);if(I!==l)return;if(!A.size)throw new Error("Empty file received");i.value=URL.createObjectURL(A)}catch(A){if(I!==l)return;console.error("Failed to load attachment preview:",A),a.value=!0}finally{I===l&&(s.value=!1)}}function b(){u.value||o("update:currentIndex",n.currentIndex-1)}function w(){d.value||o("update:currentIndex",n.currentIndex+1)}function k(){const N=c.value;if(!(N!=null&&N.url))return;const I=document.createElement("a");I.href=N.url,I.download=N.name,I.target="_blank",I.rel="noopener noreferrer",document.body.appendChild(I),I.click(),I.remove()}function x(){g(),a.value=!0}function S(){++l,g(),o("close")}function E(N){switch(N.key){case"Escape":S();break;case"ArrowLeft":b();break;case"ArrowRight":w();break}}return r.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){S();return}_()},{immediate:!0}),r.onMounted(()=>{document.addEventListener("keydown",E)}),r.onUnmounted(()=>{++l,document.removeEventListener("keydown",E),g()}),(N,I)=>{var A,M,D,$,B,P;return r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(A=c.value)==null?void 0:A.name},[r.createElementVNode("div",Vde,[r.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:r.withModifiers(k,["stop"])},[r.createVNode(ke,{name:"DownloadRounded",size:"sm"}),I[2]||(I[2]=r.createElementVNode("span",null,"Download",-1))]),r.createElementVNode("button",{type:"button",class:"ao-file-preview__action ao-file-preview__action--close",title:"Close","aria-label":"Close",onClick:r.withModifiers(S,["stop"])},[r.createVNode(ke,{name:"CloseRounded",size:"sm"})])]),r.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:S}),u.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--prev","aria-label":N.$t("activity.attachment.preview.previous"),onClick:r.withModifiers(b,["stop"])},[r.createVNode(ke,{name:"ArrowBackRounded",size:"lg"})],8,Ide)),r.createElementVNode("div",{class:"ao-file-preview__content",onClick:I[1]||(I[1]=r.withModifiers(()=>{},["stop"]))},[s.value?(r.openBlock(),r.createElementBlock("div",Pde,[...I[3]||(I[3]=[r.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),r.createElementVNode("span",null,"Loading...",-1)])])):h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("img",{key:1,src:i.value,alt:(M=c.value)==null?void 0:M.name,class:"ao-file-preview__image",onError:x},null,40,Fde)):v.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:I[0]||(I[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("iframe",{src:i.value,title:(D=c.value)==null?void 0:D.name,class:"ao-file-preview__pdf"},null,8,Rde)])):(r.openBlock(),r.createElementBlock("div",zde,[r.createVNode(ke,{name:y.value,size:"xl"},null,8,["name"]),r.createElementVNode("p",Ude,r.toDisplayString(N.$t("activity.attachment.preview.notAvailable")),1),r.createElementVNode("p",Hde,r.toDisplayString(($=c.value)==null?void 0:$.name),1),r.createVNode(de,{variant:"solid",color:"primary",size:"sm",label:N.$t("activity.attachment.preview.download"),onClick:k},null,8,["label"])]))]),d.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--next","aria-label":N.$t("activity.attachment.preview.next"),onClick:r.withModifiers(w,["stop"])},[r.createVNode(ke,{name:"ArrowForwardRounded",size:"lg"})],8,qde)),h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",jde,[r.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(B=c.value)==null?void 0:B.name},r.toDisplayString((P=c.value)==null?void 0:P.name),9,Wde),t.attachments.length>1?(r.openBlock(),r.createElementBlock("span",Zde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)):r.createCommentVNode("",!0)])):t.attachments.length>1?(r.openBlock(),r.createElementBlock("div",Kde,[r.createElementVNode("span",Gde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)])):r.createCommentVNode("",!0)],8,Ode)])}}});const Yc=r.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(r.openBlock(),r.createBlock(de,{color:t.modelValue?t.color:r.unref(Qc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>i())},null,8,["color"]))}}),Jde={class:"ao-history"},Xde={key:0,class:"ao-history__loading"},Qde={key:1,class:"ao-history__empty"},e1e={key:2,class:"ao-history__list"},t1e={class:"ao-history__transaction-header"},n1e={class:"ao-history__actor"},o1e={class:"ao-history__transaction-date"},r1e={class:"ao-history__event-header"},i1e={class:"ao-history__event-action"},s1e={key:0,class:"ao-history__event-entity-name"},a1e={key:0,class:"ao-history__changes"},l1e={class:"ao-history__change-label"},c1e={class:"ao-history__change-values"},u1e={class:"ao-history__change-old"},d1e={class:"ao-history__change-new"},yp=120,f1e=r.defineComponent({__name:"AoHistory",props:{events:{},presentationConfig:{},loading:{type:Boolean}},setup(t){const{t:e}=yt(),n=t;function o(f){var v,C,y;if((y=(C=(v=n.presentationConfig)==null?void 0:v.fields)==null?void 0:C[f])!=null&&y.label)return n.presentationConfig.fields[f].label;const m=`history.field.${f}`,h=e(m);return h!==m?h:f.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,g=>g.toUpperCase())}function i(f){var v,C,y;if((y=(C=(v=n.presentationConfig)==null?void 0:v.entities)==null?void 0:C[f])!=null&&y.label)return n.presentationConfig.entities[f].label;const m=`history.entity.${f}`,h=e(m);return h!==m?h:f.replace(/_/g," ").replace(/\b\w/g,g=>g.toUpperCase())}function s(f){const m=e(`history.operation.${f.toLowerCase()}`);if(m===`history.operation.${f.toLowerCase()}`){if(f.toLowerCase()==="create")return"Created";if(f.toLowerCase()==="update")return"Updated";if(f.toLowerCase()==="delete")return"Deleted"}return m}function a(f){if(f==null||f==="")return null;try{return JSON.parse(f)}catch{return f}}function l(f){if(f==null)return e("history.value.null","None");const m=String(f).replace(/\s+/g," ").trim();return m?m.length<=yp?m:`${m.slice(0,yp).trimEnd()}…`:e("history.value.null","None")}function c(f,m){var y,g,_,b;const h=m?f.oldValue:f.newValue,v=h==null?void 0:h.raw;if(!h||v===null||v===void 0||v==="")return e("history.value.null","None");if(h.display!==null&&h.display!==void 0)return h.display;const C=a(v);if(C===null)return e("history.value.null","None");if(f.type==="BOOLEAN"){const w=C===!0||C==="true",k=(g=(y=n.presentationConfig)==null?void 0:y.fields)==null?void 0:g[f.field];if(k!=null&&k.booleanLabels)return w?k.booleanLabels.true:k.booleanLabels.false;const x=`history.boolean.${f.field}.${w}`,S=e(x);return S!==x?S:e(`history.boolean.default.${w}`)}if(f.type==="RELATION"){const w=(b=(_=n.presentationConfig)==null?void 0:_.resolvedValues)==null?void 0:b[f.field];if(w){const k=String(C);if(w[k])return w[k]}return e("history.value.unresolved","?")}return f.type==="LONG_TEXT"?l(C):String(C??v)}function u(f){var m,h;return f?f.name?f.name:(h=(m=n.presentationConfig)==null?void 0:m.users)!=null&&h[f.id]?n.presentationConfig.users[f.id]:e("history.actor.unknown","Someone"):e("history.actor.unknown","Someone")}function d(f){return`${s(f.operation)} ${i(f.entity.type)}`}function p(f){return f.entity.type==="comment"?null:f.entity.label??null}return(f,m)=>(r.openBlock(),r.createElementBlock("div",Jde,[t.loading?(r.openBlock(),r.createElementBlock("div",Xde,r.toDisplayString(r.unref(e)("history.loading","Loading history...")),1)):!t.events||t.events.length===0?(r.openBlock(),r.createElementBlock("div",Qde,r.toDisplayString(r.unref(e)("history.empty","No history available")),1)):(r.openBlock(),r.createElementBlock("div",e1e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.events,h=>(r.openBlock(),r.createElementBlock("div",{key:h.id,class:"ao-history__transaction"},[r.createElementVNode("div",t1e,[r.createElementVNode("span",n1e,r.toDisplayString(u(h.actor)),1),r.createElementVNode("span",o1e,r.toDisplayString(new Date(h.createdAt).toLocaleString()),1)]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.events,v=>(r.openBlock(),r.createElementBlock("div",{key:v.id,class:"ao-history__event"},[r.createElementVNode("div",r1e,[r.createElementVNode("span",i1e,r.toDisplayString(d(v)),1),p(v)?(r.openBlock(),r.createElementBlock("span",s1e,r.toDisplayString(p(v)),1)):r.createCommentVNode("",!0)]),v.changes.length>0?(r.openBlock(),r.createElementBlock("div",a1e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.changes,C=>(r.openBlock(),r.createElementBlock("div",{key:C.field,class:"ao-history__change"},[r.createElementVNode("strong",l1e,r.toDisplayString(o(C.field)),1),r.createElementVNode("span",c1e,[r.createElementVNode("span",u1e,r.toDisplayString(c(C,!0)),1),m[0]||(m[0]=r.createElementVNode("span",{class:"ao-history__change-arrow"},"→",-1)),r.createElementVNode("span",d1e,r.toDisplayString(c(C,!1)),1)])]))),128))])):r.createCommentVNode("",!0)]))),128))]))),128))]))]))}});const Wg=ee(f1e,[["__scopeId","data-v-d88ea484"]]),p1e=r.defineComponent({props:{isLeft:{type:Boolean,required:!1,default:!0},leftLabel:{type:String,required:!0},rightLabel:{type:String,required:!0}},emits:["update:isLeft"],methods:{switchValue(t){this.$emit("update:isLeft",t)},selectLeft(){this.switchValue(!0)},selectRight(){this.switchValue(!1)}}});const m1e={class:"toggle-wrapper"};function h1e(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",m1e,[r.createElementVNode("button",{class:r.normalizeClass({button:!0,"button--left":!0,"button--inactive":!t.isLeft}),type:"button",onClick:e[0]||(e[0]=(...a)=>t.selectLeft&&t.selectLeft(...a))},r.toDisplayString(t.leftLabel),3),r.createElementVNode("button",{class:r.normalizeClass({button:!0,"button--right":!0,"button--inactive":t.isLeft}),type:"button",onClick:e[1]||(e[1]=(...a)=>t.selectRight&&t.selectRight(...a))},r.toDisplayString(t.rightLabel),3)])}const g1e=ee(p1e,[["render",h1e],["__scopeId","data-v-40c1f714"]]),v1e=r.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:t=>["underline"].includes(t)}},emits:["update:modelValue"],methods:{selectTab(t){this.$emit("update:modelValue",t)}}});const y1e=["onClick"],_1e={class:"tab-button__label"},C1e={key:0,class:"tab-button__badge"};function b1e(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tabs,a=>(r.openBlock(),r.createElementBlock("button",{key:a.value,class:r.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[r.createElementVNode("span",_1e,r.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(r.openBlock(),r.createElementBlock("span",C1e,r.toDisplayString(a.count),1)):r.createCommentVNode("",!0)],10,y1e))),128))],2)}const vs=ee(v1e,[["render",b1e],["__scopeId","data-v-3d268d7b"]]),k1e={class:"ao-rich-text-editor"},w1e={class:"ao-rich-text-editor__toolbar"},E1e=["value"],S1e={class:"ao-rich-text-editor__actions"},x1e=r.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel","paste"],setup(t,{emit:e}){const n=e,o=r.ref(null);function i(c){var d;const u=c.target;(d=o.value)==null||d.setBlockStyle(u.value)}function s(){const c=o.value;c&&n("save",c.getMarkdown())}function a(){n("cancel")}function l(c){n("paste",c)}return(c,u)=>(r.openBlock(),r.createElementBlock("div",k1e,[r.createVNode(qg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:r.withCtx(()=>{var d;return[r.createElementVNode("div",w1e,[r.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:i},[...u[12]||(u[12]=[r.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),r.createElementVNode("option",{value:"h1"},"Heading 1",-1),r.createElementVNode("option",{value:"h2"},"Heading 2",-1),r.createElementVNode("option",{value:"h3"},"Heading 3",-1),r.createElementVNode("option",{value:"code"},"Code block",-1)])],40,E1e),u[17]||(u[17]=r.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:u[0]||(u[0]=r.withModifiers(()=>{},["prevent"])),onClick:u[1]||(u[1]=p=>{var f;return(f=o.value)==null?void 0:f.toggleBold()})},[...u[13]||(u[13]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:u[2]||(u[2]=r.withModifiers(()=>{},["prevent"])),onClick:u[3]||(u[3]=p=>{var f;return(f=o.value)==null?void 0:f.toggleItalic()})},[...u[14]||(u[14]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:u[4]||(u[4]=r.withModifiers(()=>{},["prevent"])),onClick:u[5]||(u[5]=p=>{var f;return(f=o.value)==null?void 0:f.toggleStrikethrough()})},[...u[15]||(u[15]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:u[6]||(u[6]=r.withModifiers(()=>{},["prevent"])),onClick:u[7]||(u[7]=p=>{var f;return(f=o.value)==null?void 0:f.toggleInlineCode()})},[...u[16]||(u[16]=[r.createElementVNode("span",null,"</>",-1)])],32),u[18]||(u[18]=r.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:u[8]||(u[8]=r.withModifiers(()=>{},["prevent"])),onClick:u[9]||(u[9]=p=>{var f;return(f=o.value)==null?void 0:f.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:u[10]||(u[10]=r.withModifiers(()=>{},["prevent"])),onClick:u[11]||(u[11]=p=>{var f;return(f=o.value)==null?void 0:f.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),r.createElementVNode("div",S1e,[r.createVNode(de,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),r.createVNode(de,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const A1e={class:"ao-activity-details"},T1e={class:"ao-activity-details__main"},N1e={class:"ao-activity-details__header"},D1e={key:1,class:"ao-activity__category"},$1e={key:2,class:"ao-activity-details__created-by"},B1e={class:"ao-feed__activity-details__header"},M1e={key:0,class:"ao-field ao-feed__activity-details__project"},L1e={class:"ao-field__label"},O1e={key:1,class:"ao-field ao-feed__activity-details__project"},V1e={class:"ao-field__label"},I1e={class:"ao-activity-details__content"},P1e={class:"ao-activity-details__tab-content"},F1e={class:"ao-fieldset"},R1e={class:"ao-field__row"},z1e={class:"ao-activity-details__tab-content"},U1e={class:"ao-fieldset"},H1e={class:"ao-fieldset__body"},q1e={class:"ao-activity-details__tab-content"},j1e={key:0,class:"ao-fieldset"},W1e={class:"ao-activity-details__tab-content"},Z1e={class:"ao-activity-details__aside"},K1e={class:"ao-activity-details__close-button"},G1e={class:"ao-activity-details__aside-section"},Y1e={class:"ao-field__label"},J1e={key:0,class:"ao-activity-details__aside-section"},X1e={class:"ao-field"},Q1e={class:"ao-field__label"},efe={key:1,class:"ao-activity-details__aside-section"},tfe={class:"ao-field"},nfe={class:"ao-field__label"},ofe={class:"ao-field ao-field--multiselect"},rfe={class:"assignee-inline"},ife={class:"ao-field__label"},sfe={key:1,class:"ao-sprint-form"},afe={class:"ao-sprint-form__field"},lfe={class:"ao-field__label"},cfe=["placeholder"],ufe={class:"ao-sprint-form__field"},dfe={class:"ao-field__label"},ffe={class:"ao-sprint-form__field"},pfe={class:"ao-field__label"},mfe={class:"ao-sprint-form__actions"},hfe={class:"ao-activity-details__aside-section"},gfe={class:"ao-field ao-field--multiselect"},vfe={class:"assignee-inline"},yfe={class:"ao-field__label"},_fe={class:"ao-activity-details__aside-section"},Cfe={key:0,class:"ao-field__row"},bfe={class:"ao-field"},kfe={class:"ao-field__label"},wfe=["readonly"],Efe={class:"ao-activity-details__aside-section"},Sfe={class:"ao-field__row"},xfe={class:"ao-field ao-field--inline"},Afe={class:"ao-field__label"},Tfe=["readonly"],Nfe={class:"ao-field__row"},Dfe={class:"ao-field ao-field--inline"},$fe={class:"ao-field__label"},Bfe={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},Mfe={class:"ao-activity-details__aside-section"},Lfe={class:"ao-activity-details__aside-section"},Ofe={class:"ao-fieldset ao-activity-details__aside-section"},Vfe={class:"ao-fieldset__title"},Ife={class:"ao-fieldset__body"},Pfe={class:"ao-field__row"},Ffe={class:"ao-field ao-field--multiselect"},Rfe={class:"ao-field__label"},zfe={class:"ao-field__row"},Ufe={class:"ao-field ao-field--multiselect"},Hfe={class:"ao-field__label"},ml=r.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{default:()=>[]},breadcrumbs:{default:""},milestoneId:{default:void 0},templateActivities:{},templateMilestones:{default:()=>[]},isTemplate:{type:Boolean,default:!1},users:{},userId:{default:void 0},isTaskCheckable:{type:Function,default:void 0},statuses:{default:()=>[]},devStatuses:{default:()=>[]},sprints:{default:()=>[]},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{default:()=>({})},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","createSprint","fetchHistory"],setup(t,{emit:e}){const n=O=>O.label?`Sprint ${O.number}: ${O.label}`:`Sprint ${O.number}`,o=t,i=e,{t:s}=yt();function a(O){return O.reduce((W,le)=>(le.name&&(W[le.id]=le.name),W),{})}const l=r.computed(()=>{const O=o.users.reduce((W,le)=>{const Je=[le.firstName,le.lastName].filter(Boolean).join(" ").trim();return Je&&(W[le.id]=Je),W},{});return{users:O,resolvedValues:{assignee_id:O,author_id:O,created_by:O,project_id:a(o.projects)}}}),c=r.ref("description");r.watch(c,(O,W)=>{O==="history"&&W!=="history"&&i("fetchHistory")}),r.watch(()=>{var O;return(O=o.activity)==null?void 0:O.id},(O,W)=>{O!==W&&c.value==="history"&&i("fetchHistory")});const u=r.computed(()=>{var O,W,le;return[{label:s("activity.description.label")||"Description",value:"description"},{label:s("activity.tasks.title")||"Checklist",value:"checklist",count:((O=o.activity.tasks)==null?void 0:O.length)??0},{label:s("activity.comments.title")||"Commentaires",value:"comments",count:((W=o.activity.comments)==null?void 0:W.length)??0},{label:s("activity.history.title")||"History",value:"history",count:((le=o.history)==null?void 0:le.length)??0}]}),d=r.computed(()=>{var O;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((O=o.activity.assignee)==null?void 0:O.id):!1}),p=r.ref(!1),f=r.ref(null),m=O=>{i("update:activity",{id:o.activity.id,name:O})},h=r.computed(()=>o.activity.description??""),v=()=>{d.value&&(p.value=!0)},C=O=>{i("update:activity",{id:o.activity.id,description:O}),p.value=!1},y=()=>{p.value=!1};r.watch(()=>o.activity.id,()=>{p.value=!1});const g=r.computed({get(){return o.activity.estimation??0},set(O){i("update:activity",{id:o.activity.id,estimation:O})}}),_=r.computed({get(){var W;const O=(W=o.timeTrackingData)==null?void 0:W[o.activity.id];return(O==null?void 0:O.timeSpent)??0},set(){}}),b=r.computed(()=>{var W;return((W=o.activity.project)==null?void 0:W.estimationUnit)==="days"?"d":"h"}),w=r.computed(()=>{var W;const O=(W=o.activity.project)==null?void 0:W.estimationUnit;return La(_.value,O)}),k=r.computed({get(){return o.activity.important??!1},set(O){i("update:activity",{id:o.activity.id,important:O})}}),x=r.computed({get(){return o.activity.blocked??!1},set(O){i("update:activity",{id:o.activity.id,blocked:O})}});r.computed({get(){return o.activity.private??!1},set(O){i("update:activity",{id:o.activity.id,private:O})}});const S=r.computed({get(){return o.activity.deadline},set(O){i("update:activity",{id:o.activity.id,deadline:O})}}),E=r.computed({get(){return o.activity.activityType!=="dev"},set(O){var le;const W=O?"standard":"dev";o.activity.activityType!=="dev"&&W==="dev"&&!o.activity.devStatus&&((le=o.devStatuses)!=null&&le.length)?i("update:activity",{id:o.activity.id,type:W,statusDevId:o.devStatuses[0].id}):i("update:activity",{id:o.activity.id,type:W})}}),N=r.computed(()=>{var O;return((O=o.devStatuses)==null?void 0:O.map(W=>({value:W.id,label:W.name})))??[]}),I=r.computed({get(){var O;return(O=o.activity.devStatus)==null?void 0:O.id},set(O){i("update:activity",{id:o.activity.id,statusDevId:O})}}),A=r.computed(()=>{var W;const O=(W=o.activity.project)==null?void 0:W.id;return O?o.sprints.filter(le=>le.projectId===O).map(le=>({value:le.id,label:n(le),startDate:le.startDate})).sort((le,Je)=>le.startDate&&Je.startDate?new Date(le.startDate).getTime()-new Date(Je.startDate).getTime():le.label.localeCompare(Je.label)):[]}),M=r.computed(()=>{var O;return(O=o.activity.sprint)==null?void 0:O.id}),D=O=>{i("update:activity",{id:o.activity.id,sprintId:O})},$=()=>{i("update:activity",{id:o.activity.id,sprintId:null})},B=r.computed(()=>{var O;return!((O=o.activity.project)!=null&&O.id)}),P=r.ref(!1),L=r.ref(""),R=r.ref(""),Y=r.ref(""),ae=r.computed(()=>{var Je;if(!((Je=o.activity.project)==null?void 0:Je.id))return!1;const W=R.value,le=Y.value;return!W||!le?!1:new Date(le)>=new Date(W)}),oe=()=>{var W;(W=o.activity.project)!=null&&W.id&&(P.value=!0,L.value="",R.value="",Y.value="")},Ne=()=>{P.value=!1,L.value="",R.value="",Y.value=""},ce=()=>{var W;if(!ae.value)return;const O=(W=o.activity.project)==null?void 0:W.id;O&&(i("createSprint",{projectId:O,label:L.value.trim()||void 0,startDate:R.value,endDate:Y.value}),P.value=!1,L.value="",R.value="",Y.value="")},ne=r.computed(()=>o.templateActivities.filter(O=>O.id!==o.activity.id).map(O=>({label:O.name,value:O.id}))),H=r.computed({get(){var O;return(O=o.activity.dependingOn)==null?void 0:O.map(W=>W.id)},set(O){O&&i("update:activity",{id:o.activity.id,dependingOn:O})}}),z=r.computed(()=>ne.value.map(O=>{var W;return{...O,disabled:(W=o.activity.blocking)==null?void 0:W.some(le=>le.id===O.value)}})),re=r.computed({get(){var O;return(O=o.activity.blocking)==null?void 0:O.map(W=>W.id)},set(O){O&&i("update:activity",{id:o.activity.id,blocking:O})}}),Ee=r.computed(()=>ne.value.map(O=>{var W;return{...O,disabled:(W=o.activity.dependingOn)==null?void 0:W.some(le=>le.id===O.value)}})),ze=O=>{i("addSubtask",O)},we=O=>{i("updateSubtask",O)},Ce=O=>{i("deleteSubtask",O)};function _t(){o.userId?he.value=[o.userId]:console.error("Failed assigning to self: userId is missing")}function U(O){he.value=[O]}const ie=r.computed(()=>{var W;const O=new Map;return(W=o.users)==null||W.forEach(le=>{O.has(le.id)||O.set(le.id,le)}),Array.from(O.values()).map(le=>({label:`${le.firstName} ${le.lastName}`,value:le.id,avatar:le.avatarUrl}))}),he=r.computed({get(){var O,W;return(O=o.activity.assignee)!=null&&O.id?[(W=o.activity.assignee)==null?void 0:W.id]:[]},set(O){i("update:activity",{id:o.activity.id,assigneeId:O[0]??null})}}),pe=O=>{i("addFiles",{activityId:o.activity.id,files:O})},Ze=O=>{pe(O)},De=O=>{i("removeFile",{activityId:o.activity.id,file:O})},$e=r.computed(()=>o.projects.map(O=>({value:O.id,label:O.name}))),Fe=r.computed(()=>{var W,le,Je;const O=(Je=(le=(W=o.activity)==null?void 0:W.project)==null?void 0:le.phases)==null?void 0:Je.reduce((Ot,bt)=>[...Ot,...bt.milestones],[]);return O==null?void 0:O.map(Ot=>({value:Ot.id,label:Ot.name}))}),Ge=O=>{o.activity&&i("update:activity",{id:o.activity.id,projectId:O})},Ye=O=>{o.activity&&i("update:activity",{id:o.activity.id,milestoneId:O})},Me=r.computed(()=>{var O;return(O=o.statuses)==null?void 0:O.map(W=>({value:W.id,label:W.name}))}),Ct=O=>{i("update:activity",{id:o.activity.id,statusId:O})},it=O=>{i("update:activity",{id:o.activity.id,statusDevId:O})},Lt=O=>{i("addComment",{...O,activityId:o.activity.id})},rn=O=>{i("updateComment",O)},Cn=O=>{i("removeComment",O)},bn=r.computed(()=>{var O,W;return((O=o.activity.createdBy)==null?void 0:O.firstName)&&((W=o.activity.createdBy)==null?void 0:W.lastName)&&`${o.activity.createdBy.firstName} ${o.activity.createdBy.lastName}`}),kn=r.computed(()=>o.activity.createdAt?new Date(o.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function no(){const O=window.location.origin,W=o.activity.slug,le=`${O}/activity-feed/slug/${W}`;navigator.clipboard.writeText(le).then(()=>{console.log(`Link copied to clipboard: ${le}`),i("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),i("toast","clipboard.copy.error","error")})}return(O,W)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Oa,{onClose:W[14]||(W[14]=le=>O.$emit("close"))},{default:r.withCtx(()=>{var le,Je,Ot,bt;return[r.createElementVNode("div",A1e,[r.createElementVNode("div",T1e,[r.createElementVNode("div",N1e,[t.activity.slug?(r.openBlock(),r.createBlock(Ii,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:no},null,8,["label"])):r.createCommentVNode("",!0),t.breadcrumbs?(r.openBlock(),r.createElementBlock("div",D1e,r.toDisplayString(t.breadcrumbs),1)):r.createCommentVNode("",!0),r.createVNode(ht,{title:t.activity.name||"",level:4,"is-editable":d.value,"onUpdate:title":m},null,8,["title","is-editable"]),bn.value?(r.openBlock(),r.createElementBlock("div",$1e,r.toDisplayString(O.$t("activity.createdBy.label",{name:bn.value,date:kn.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",B1e,[$e.value?(r.openBlock(),r.createElementBlock("label",M1e,[r.createElementVNode("span",L1e,r.toDisplayString(O.$t("activity.project.label")),1),r.createVNode(dt,{options:$e.value,value:(le=t.activity.project)==null?void 0:le.id,searchable:!0,disabled:!d.value,caret:d.value,onChange:Ge},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0),Fe.value?(r.openBlock(),r.createElementBlock("label",O1e,[r.createElementVNode("span",V1e,r.toDisplayString(O.$t("activity.milestone.label")),1),r.createVNode(dt,{options:Fe.value,value:(Je=t.activity.milestone)==null?void 0:Je.id,searchable:!0,disabled:!d.value,caret:d.value,onChange:Ye},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0)]),r.renderSlot(O.$slots,"header")]),r.createElementVNode("div",I1e,[r.createVNode(vs,{modelValue:c.value,"onUpdate:modelValue":W[0]||(W[0]=ve=>c.value=ve),tabs:u.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),r.withDirectives(r.createElementVNode("div",P1e,[r.createElementVNode("fieldset",F1e,[r.createElementVNode("div",R1e,[r.createVNode(i9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&d.value&&!t.isTemplate&&!!t.userId,onAdd:pe,onRemove:De,onPreview:W[1]||(W[1]=ve=>f.value=ve)},{default:r.withCtx(()=>[p.value?(r.openBlock(),r.createBlock(x1e,{key:1,"initial-markdown":h.value,onSave:C,onCancel:y,onPaste:Ze},null,8,["initial-markdown"])):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":d.value}]),onClick:v},[r.createVNode(Bm,{content:h.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[r.vShow,c.value==="description"]]),r.withDirectives(r.createElementVNode("div",z1e,[r.createElementVNode("fieldset",U1e,[r.createElementVNode("div",H1e,[r.createVNode(Zk,{class:"ao-activity-details__tasks ao-field__row",tasks:t.activity.tasks||[],"activity-id":t.activity.id,users:t.users,"is-checkable":t.isTaskCheckable,"is-editable":d.value,"is-template":t.isTemplate,onAdd:ze,onUpdate:we,onDelete:Ce},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[r.vShow,c.value==="checklist"]]),r.withDirectives(r.createElementVNode("div",q1e,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",j1e,[r.createVNode(Lde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Lt,onUpdateComment:rn,onRemoveComment:Cn},null,8,["comments","users","user-id"])])):r.createCommentVNode("",!0)],512),[[r.vShow,c.value==="comments"]]),r.withDirectives(r.createElementVNode("div",W1e,[r.createVNode(Wg,{events:t.history??[],"presentation-config":l.value,loading:t.historyLoading},null,8,["events","presentation-config","loading"])],512),[[r.vShow,c.value==="history"]])])]),r.createElementVNode("div",Z1e,[r.createElementVNode("div",K1e,[r.createVNode(ke,{name:"CloseRounded",onClick:W[2]||(W[2]=ve=>O.$emit("close"))})]),r.createElementVNode("div",G1e,[r.createElementVNode("span",Y1e,r.toDisplayString(O.$t("activity.type.label")),1),r.createVNode(g1e,{"is-left":E.value,"onUpdate:isLeft":W[3]||(W[3]=ve=>E.value=ve),"left-label":"Standard","right-label":"Development",class:"ao-activity-type-toggle"},null,8,["is-left"])]),Me.value?(r.openBlock(),r.createElementBlock("div",J1e,[r.createElementVNode("label",X1e,[r.createElementVNode("span",Q1e,r.toDisplayString(O.$t("activity.status.label")),1),r.createVNode(dt,{class:"ao-activity-details__multiselect",options:Me.value,value:(Ot=t.activity.status)==null?void 0:Ot.id,"can-clear":!1,"can-deselect":!1,disabled:!d.value,caret:d.value,onChange:Ct},null,8,["options","value","disabled","caret"])])])):r.createCommentVNode("",!0),t.activity.activityType==="dev"?(r.openBlock(),r.createElementBlock("div",efe,[r.createElementVNode("label",tfe,[r.createElementVNode("span",nfe,r.toDisplayString(O.$t("activity.devStatus.label")),1),r.createVNode(dt,{class:"ao-activity-details__multiselect",options:N.value,value:I.value,"can-clear":!1,"can-deselect":!1,disabled:!d.value,caret:d.value,onChange:it},null,8,["options","value","disabled","caret"])]),r.createElementVNode("div",ofe,[r.createElementVNode("div",rfe,[r.createElementVNode("span",ife,r.toDisplayString(O.$t("activity.sprint.label")),1),(bt=t.activity.project)!=null&&bt.id&&d.value&&!P.value?(r.openBlock(),r.createBlock(de,{key:0,label:O.$t("activity.sprint.new"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:oe},null,8,["label"])):r.createCommentVNode("",!0)]),P.value?(r.openBlock(),r.createElementBlock("div",sfe,[r.createElementVNode("div",afe,[r.createElementVNode("label",lfe,r.toDisplayString(O.$t("activity.sprint.labelLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[4]||(W[4]=ve=>L.value=ve),class:"ao-field__input",type:"text",placeholder:O.$t("activity.sprint.labelPlaceholder")},null,8,cfe),[[r.vModelText,L.value]])]),r.createElementVNode("div",ufe,[r.createElementVNode("label",dfe,r.toDisplayString(O.$t("activity.sprint.startDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[5]||(W[5]=ve=>R.value=ve),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,R.value]])]),r.createElementVNode("div",ffe,[r.createElementVNode("label",pfe,r.toDisplayString(O.$t("activity.sprint.endDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[6]||(W[6]=ve=>Y.value=ve),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,Y.value]])]),r.createElementVNode("div",mfe,[r.createVNode(de,{type:"button",variant:"ghost",label:O.$t("common.cancel"),onClick:Ne},null,8,["label"]),r.createVNode(de,{type:"button",color:"primary",variant:"solid",label:O.$t("common.create"),disabled:!ae.value,onClick:ce},null,8,["label","disabled"])])])):(r.openBlock(),r.createBlock(dt,{key:0,class:"ao-activity-details__multiselect",options:A.value,value:M.value,"can-clear":!0,"can-deselect":!0,searchable:!0,disabled:B.value||!d.value,placeholder:B.value?O.$t("activity.sprint.selectProjectFirst"):O.$t("activity.sprint.placeholder"),caret:d.value,onSelect:D,onClear:$,onDeselect:$},null,8,["options","value","disabled","placeholder","caret"]))]),r.renderSlot(O.$slots,"sprintModal")])):r.createCommentVNode("",!0),r.createElementVNode("div",hfe,[r.createElementVNode("div",gfe,[r.createElementVNode("div",vfe,[r.createElementVNode("span",yfe,r.toDisplayString(O.$t("activity.assignee.label")),1),r.createVNode(de,{label:O.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:_t},null,8,["label"])]),r.createVNode(dt,{modelValue:he.value,"onUpdate:modelValue":W[7]||(W[7]=ve=>he.value=ve),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:ie.value,"close-on-select":!0,searchable:!0,placeholder:O.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!d.value,caret:d.value,onSelect:U},{tag:r.withCtx(({option:ve,handleTagRemove:Et})=>[r.createVNode(Xt,{"user-name":ve.label,"avatar-url":ve.avatar,"is-closable":!0,onClose:oo=>Et(ve,oo)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",_fe,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",Cfe,[r.createElementVNode("label",bfe,[r.createElementVNode("span",kfe,r.toDisplayString(O.$t("activity.deadline.label")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[8]||(W[8]=ve=>S.value=ve),readonly:!d.value,class:"ao-field__input",type:"date"},null,8,wfe),[[r.vModelText,S.value,void 0,{lazy:!0}]])])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Efe,[r.createElementVNode("div",Sfe,[r.createElementVNode("label",xfe,[r.createElementVNode("span",Afe,r.toDisplayString(O.$t("activity.estimation.label"))+" ("+r.toDisplayString(b.value)+")",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[9]||(W[9]=ve=>g.value=ve),readonly:!d.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,Tfe),[[r.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),r.createElementVNode("div",Nfe,[r.createElementVNode("label",Dfe,[r.createElementVNode("span",$fe,r.toDisplayString(O.$t("activity.timeSpent.label"))+" ("+r.toDisplayString(b.value)+")",1),r.createElementVNode("span",Bfe,r.toDisplayString(w.value),1)])])]),r.createElementVNode("div",Mfe,[r.createVNode(Yc,{modelValue:k.value,"onUpdate:modelValue":W[10]||(W[10]=ve=>k.value=ve),modelModifiers:{lazy:!0},label:O.$t("activity.important.label"),disabled:!d.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("div",Lfe,[r.createVNode(Yc,{modelValue:x.value,"onUpdate:modelValue":W[11]||(W[11]=ve=>x.value=ve),modelModifiers:{lazy:!0},label:O.$t("activity.blocked.label"),disabled:!d.value,variant:"ghost","icon-name":"BlockRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("fieldset",Ofe,[r.createElementVNode("div",Vfe,[r.createVNode(ke,{name:"FlowsheetOutlineRounded"}),r.createVNode(ht,{level:4,title:O.$t("activity.dependencies.title")},null,8,["title"])]),r.createElementVNode("div",Ife,[r.createElementVNode("div",Pfe,[r.createElementVNode("label",Ffe,[r.createElementVNode("span",Rfe,r.toDisplayString(O.$t("activity.dependingOn.label")),1),r.createVNode(dt,{modelValue:H.value,"onUpdate:modelValue":W[12]||(W[12]=ve=>H.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:z.value,disabled:!d.value,caret:d.value},null,8,["modelValue","options","disabled","caret"])])]),r.createElementVNode("div",zfe,[r.createElementVNode("label",Ufe,[r.createElementVNode("span",Hfe,r.toDisplayString(O.$t("activity.blocking.label")),1),r.createVNode(dt,{modelValue:re.value,"onUpdate:modelValue":W[13]||(W[13]=ve=>re.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:Ee.value,disabled:!d.value,caret:d.value},null,8,["modelValue","options","disabled","caret"])])])])]),r.renderSlot(O.$slots,"default",{activity:t.activity})])])]}),_:3}),f.value!==null?(r.openBlock(),r.createBlock(Yde,{key:0,attachments:t.activity.attachments||[],"current-index":f.value,"load-preview":o.loadAttachmentPreview,"onUpdate:currentIndex":W[15]||(W[15]=le=>f.value=le),onClose:W[16]||(W[16]=le=>f.value=null)},null,8,["attachments","current-index","load-preview"])):r.createCommentVNode("",!0)],64))}});const qfe=r.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,i=r.toRef(n.rule.itemType||qe.ACTIVITIES),s=r.computed({get(){return i.value},set(g){i.value=g,o("update:rule",{...n.rule,itemType:g,subItemId:void 0})}}),a=r.computed(()=>Object.values(qe)),l=r.computed({get(){return n.rule.subItemId},set(g){o("update:rule",{...n.rule,subItemId:g,itemType:n.rule.itemType||s.value})}}),c=r.computed(()=>{var _;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(_={[qe.ACTIVITIES]:n.templateActivities,[qe.MILESTONES]:n.templateMilestones,[qe.PHASES]:n.templatePhases}[i.value])==null?void 0:_.map(b=>({value:b.id,label:b.name}))}),u=r.toRef(n.rule.comparator),d=r.computed({get(){return u.value},set(g){o("update:rule",{...n.rule,comparator:g})}}),p=r.computed(()=>Object.values(Ep)),f=r.toRef(n.rule.trigger),m=r.computed({get(){return f.value},set(g){o("update:rule",{...n.rule,trigger:g})}}),h=r.computed(()=>Object.values(Sp)),v=r.computed({get(){return n.rule.duration},set(g){o("update:rule",{...n.rule,duration:g})}}),C=r.computed({get(){return n.rule.durationUnit},set(g){o("update:rule",{...n.rule,durationUnit:g})}}),y=r.computed(()=>Object.values(xp));return(g,_)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:r.withCtx(()=>[r.createVNode(r.unref(uo),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=b=>s.value=b),options:a.value},null,8,["modelValue","options"]),r.createVNode(r.unref(uo),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=b=>l.value=b),options:c.value},null,8,["modelValue","options"]),r.createVNode(r.unref(uo),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=b=>m.value=b),options:h.value},null,8,["modelValue","options"]),r.createVNode(r.unref(uo),{modelValue:d.value,"onUpdate:modelValue":_[3]||(_[3]=b=>d.value=b),options:p.value},null,8,["modelValue","options"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=b=>v.value=b),type:"number",min:"0"},null,512),[[r.vModelText,v.value,void 0,{number:!0}]]),r.createVNode(r.unref(uo),{modelValue:C.value,"onUpdate:modelValue":_[5]||(_[5]=b=>C.value=b),options:y.value},null,8,["modelValue","options"]),r.createVNode(de,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=b=>g.$emit("close"))})]),_:1}))}});const jfe={class:"ao-template-rules__body"},Wfe={class:"ao-template-rules__list"},Zfe=r.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},i=s=>{n("removeRule",s)};return(s,a)=>(r.openBlock(),r.createBlock(Oa,null,{header:r.withCtx(()=>[r.createVNode(ht,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("div",jfe,[r.createElementVNode("ul",Wfe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.rules,l=>(r.openBlock(),r.createBlock(qfe,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>i(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),r.createVNode(Eo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Ko(t,e,n){const o=t.length,i=t.at(-1),s=i?Xe.LexoRank.parse(i.rank).genNext():Xe.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const Kfe={key:0,class:"ao-template-details"},Gfe={class:"ao-template-details__body"},Yfe={class:"ao-template-details__cols"},Jfe={class:"ao-template-details__col"},Xfe={class:"ao-list__footer"},Qfe={class:"ao-template-details__col"},epe={class:"ao-template-details__col"},Zg=r.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.computed(()=>{var L;return(L=o.templates)==null?void 0:L.find(R=>R.id===o.templateId)}),a=r.ref(!1);r.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),r.watch(()=>{var L;return(L=s.value)==null?void 0:L.phases},(L,R)=>{a.value&&Kn(L,R)});const l=r.computed(()=>{var L,R;return(R=(L=s==null?void 0:s.value)==null?void 0:L.phases)==null?void 0:R.find(Y=>Y.id===o.phaseId)});r.watch(()=>{var L;return(L=l.value)==null?void 0:L.milestones},(L,R)=>{a.value&&Kn(L,R)});const c=r.computed(()=>{var L,R;return(R=(L=l.value)==null?void 0:L.milestones)==null?void 0:R.find(Y=>Y.id===o.milestoneId)});r.watch(()=>{var L;return(L=c.value)==null?void 0:L.activities},(L,R)=>{a.value&&Kn(L,R)});const u=r.computed(()=>{var L,R;return((R=(L=s.value)==null?void 0:L.phases)==null?void 0:R.reduce((Y,ae)=>{const oe=ae.milestones||[];return[...Y,...oe]},[]))||[]}),d=r.computed(()=>{var L,R;return((R=(L=s.value)==null?void 0:L.phases)==null?void 0:R.reduce((Y,ae)=>{const Ne=(ae.milestones||[]).reduce((ce,ne)=>ne.activities?[...ce,...ne.activities]:ce,[]);return[...Y,...Ne]},[]))||[]}),p=r.computed(()=>{var L,R;return(R=(L=c.value)==null?void 0:L.activities)==null?void 0:R.find(Y=>Y.id===o.activityId)}),f=r.computed(()=>{var L;return((L=s.value)==null?void 0:L.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:L,rank:R}=Ko(s.value.phases,"phase",n);a.value=!0,i("addItem",{type:qe.PHASES,templateId:o.templateId,item:{name:L,rank:R}})},h=L=>{i("updateItem",{templateId:o.templateId,id:o.templateId,itemType:qe.TEMPLATES,data:{name:L}})},v=L=>{i("removeItem",{itemType:qe.PHASES,templateId:o.templateId,data:{id:L}})},C=(L,R)=>{i("updateItem",{templateId:o.templateId,id:L,itemType:qe.PHASES,data:{name:R}})},y=L=>{i("updateItem",L)},g=L=>{if(!l.value)return;const{name:R,rank:Y}=Ko(l.value.milestones,"milestone",n);a.value=!0,i("addItem",{type:qe.MILESTONES,templateId:o.templateId,phaseId:L.phaseId,item:{name:R,rank:Y,phaseId:L.phaseId}})},_=L=>{i("removeItem",{itemType:qe.MILESTONES,templateId:o.templateId,phaseId:L.phaseId,data:{id:L.id}})},b=L=>{const{id:R,...Y}=L;i("updateItem",{itemType:qe.MILESTONES,id:R,templateId:o.templateId,data:Y})},w=L=>{const{milestoneId:R}=L;if(!c.value)return;const{name:Y,rank:ae}=Ko(c.value.activities,"activity",n);a.value=!0,i("addItem",{type:qe.ACTIVITIES,milestoneId:R,templateId:o.templateId,item:{name:Y,rank:ae,milestoneId:R}})},k=L=>{var R,Y;i("removeItem",{itemType:qe.ACTIVITIES,templateId:o.templateId,phaseId:(R=l.value)==null?void 0:R.id,milestoneId:(Y=c.value)==null?void 0:Y.id,data:{id:L.id}})},x=L=>{const{id:R,...Y}=L;i("updateItem",{itemType:qe.ACTIVITIES,id:R,templateId:o.templateId,data:Y})},S=r.ref(!1),E=()=>{S.value=!S.value},N=()=>{i("addRule",{templateId:o.templateId})},I=L=>{i("removeRule",{id:L,templateId:o.templateId})},A=L=>{var R;if(L.moved){const Y=ns(L,((R=s.value)==null?void 0:R.phases)??[]);i("updateItem",{itemType:qe.PHASES,id:L.moved.element.id,templateId:o.templateId,data:{rank:Y}})}},M=L=>{!l.value||!c.value||!p.value||i("addItem",{type:qe.TASKS,activityId:L.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:L})},D=L=>{!l.value||!c.value||!p.value||i("updateItem",{itemType:qe.TASKS,id:L.id,templateId:o.templateId,data:L})},$=L=>{!l.value||!c.value||!p.value||i("removeItem",{itemType:qe.TASKS,activityId:p.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:L})},B=L=>{i("addFiles",L)},P=L=>{i("removeFile",L)};return(L,R)=>{var Y,ae,oe,Ne,ce,ne;return s.value?(r.openBlock(),r.createElementBlock("div",Kfe,[r.createVNode(rs,{"can-go-back":!0,onGoBack:R[1]||(R[1]=H=>L.$router.push({name:r.unref(Ho).TEMPLATES_LIST}))},{primary:r.withCtx(()=>[r.createVNode(ht,{title:f.value,level:2,"is-editable":!0,"onUpdate:title":R[0]||(R[0]=H=>{h(H)})},null,8,["title"])]),_:1}),r.createElementVNode("div",Gfe,[r.createElementVNode("ol",Yfe,[r.createElementVNode("li",Jfe,[r.createVNode(r.unref(Vn),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:A},{header:r.withCtx(()=>[r.createVNode(ht,{title:L.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:r.withCtx(({element:H})=>{var z;return[r.createVNode(fb,{id:H.id,name:H.name,milestones:H.milestones,"is-active":((z=l.value)==null?void 0:z.id)===H.id,"is-draggable":!0,onClick:re=>L.$router.push({params:{templateId:t.templateId,phaseId:H.id}}),"onUpdate:title":re=>{C(H.id,re)},onRemove:()=>v(H.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:r.withCtx(()=>[r.createElementVNode("div",Xfe,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:L.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),r.createElementVNode("li",Qfe,[l.value?(r.openBlock(),r.createBlock(hb,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(Y=c.value)==null?void 0:Y.id,onAddMilestone:g,onUpdateMilestone:b,onUpdatePhase:y,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):r.createCommentVNode("",!0)]),r.createElementVNode("li",epe,[l.value&&c.value?(r.openBlock(),r.createBlock(yb,{key:0,"template-id":t.templateId,"phase-id":(ae=l.value)==null?void 0:ae.id,milestone:c.value,"activity-id":(oe=p.value)==null?void 0:oe.id,onAddActivity:w,onUpdateActivity:x,onRemoveActivity:k},null,8,["template-id","phase-id","milestone","activity-id"])):r.createCommentVNode("",!0)])])]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[p.value?(r.openBlock(),r.createBlock(ml,{key:0,activity:p.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(Ne=l.value)==null?void 0:Ne.name} / ${(ce=c.value)==null?void 0:ce.name}`,"milestone-id":(ne=c.value)==null?void 0:ne.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,sprints:[],"onUpdate:activity":R[2]||(R[2]=H=>{p.value&&x(H)}),onClose:L.$router.back,onAddSubtask:M,onUpdateSubtask:D,onDeleteSubtask:$,onAddFiles:B,onRemoveFile:P},{default:r.withCtx(H=>[r.renderSlot(L.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(H)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):r.createCommentVNode("",!0)])),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[S.value?(r.openBlock(),r.createBlock(Zfe,{key:0,"template-id":s.value.id,rules:s.value.rules||[],"template-phases":s.value.phases,"template-milestones":u.value,"template-activities":d.value,onClose:E,onAddRule:N,onRemoveRule:I},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):r.createCommentVNode("",!0)]))])):r.createCommentVNode("",!0)}}});const tpe={class:"ao-card__content"},npe={key:0,class:"ao-card__header"},ope={class:"ao-card__body"},rpe={key:1,class:"ao-card__footer"},hl=r.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1},variant:{default:"default"}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:r.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable,"ao-card--danger":t.variant==="danger"}]),style:r.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:r.withCtx(()=>[t.withLeftBorder?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-card__left-border",style:r.normalizeStyle({backgroundColor:t.color})},null,4)):r.createCommentVNode("",!0),r.createElementVNode("div",tpe,[e.$slots.header?(r.openBlock(),r.createElementBlock("header",npe,[r.renderSlot(e.$slots,"header")])):r.createCommentVNode("",!0),r.createElementVNode("div",ope,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",rpe,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const gl=r.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=r.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,s=>(r.openBlock(),r.createElementBlock("div",{key:s,class:r.normalizeClass(["ao-progress__progress"]),style:r.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
54
+ `)}}(t,n)(e)}var Gue=process.env.NODE_ENV==="production",lc="Invariant failed";function Yue(t,e){if(!t){if(Gue)throw new Error(lc);var n=typeof e=="function"?e():e,o=n?"".concat(lc,": ").concat(n):lc;throw new Error(o)}}const zg=Symbol("LexicalEditor"),Jue=(()=>{const t=r.defineComponent({name:"LexicalComposer",props:{initialConfig:{required:!0}},emits:["error"],setup(e,n){let{emit:o,expose:i}=n;const s=o;i();const a=e,l={tag:Mi},{theme:c,namespace:u,nodes:d,onError:p,editorState:f,html:m}=a.initialConfig,h=ice({editable:a.initialConfig.editable,html:m,namespace:u,nodes:d,theme:c,onError(C){s("error",C,h),p==null||p(C,h)}});v(h,f);function v(C,y){if(y!==null){if(y===void 0)C.update(()=>{const g=We();if(g.isEmpty()){const _=Re();g.append(_);const b=Vce?document.activeElement:null;(te()!==null||b!==null&&b===C.getRootElement())&&_.select()}},l);else if(y!==null)switch(typeof y){case"string":{const g=C.parseEditorState(y);C.setEditorState(g,l);break}case"object":C.setEditorState(y,l);break;case"function":C.update(()=>{We().isEmpty()&&y(C)},l);break}}}return r.provide(zg,h),r.onMounted(()=>{const C=a.initialConfig.editable;h.setEditable(C!==void 0?C:!0)}),(C,y)=>r.renderSlot(C.$slots,"default")}});return t.__vue_vine=!0,t})();function ei(){const t=r.inject(zg,null);return t||Yue(!1,"useLexicalComposer: cannot find a LexicalComposer"),t}function Xue(t,e){if(t==null)return{};var n=Que(t,e),o,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)o=s[i],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Que(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,s;for(s=0;s<o.length;s++)i=o[s],e.indexOf(i)>=0||(n[i]=t[i]);return n}const ede=(()=>{const t=["aria-activedescendant","aria-autocomplete","aria-controls","aria-describedby","aria-expanded","aria-label","aria-labelledby","aria-multiline","aria-owns","aria-readonly","aria-required","autocapitalize","contenteditable","role","spellcheck","tabindex"],e=r.defineComponent({name:"ContentEditableElement",props:{editor:{required:!0},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean},onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{}},setup(n,o){let{expose:i}=o;i();const s=n,a=r.useTemplateRef("root"),l=r.ref(s.editor.isEditable()),c=r.computed(()=>Xue(s,["editor"]));r.onMounted(()=>{function d(f){f&&f.ownerDocument&&f.ownerDocument.defaultView?s.editor.setRootElement(f):s.editor.setRootElement(null)}d(a.value),l.value=s.editor.isEditable();const p=s.editor.registerEditableListener(f=>{l.value=f});r.onUnmounted(p)});const u=r.computed(()=>{var d;return(d=s.role)!=null?d:"textbox"});return(d,p)=>(r.openBlock(),r.createElementBlock("div",r.mergeProps({ref_key:"root",ref:a},c.value,{"aria-activedescendant":l.value?d.ariaActiveDescendant:void 0,"aria-autocomplete":l.value?d.ariaAutoComplete:"none","aria-controls":l.value?d.ariaControls:void 0,"aria-describedby":d.ariaDescribedBy,"aria-expanded":l.value&&u.value==="combobox"?!!d.ariaExpanded:void 0,"aria-label":d.ariaLabel,"aria-labelledby":d.ariaLabelledBy,"aria-multiline":d.ariaMultiline,"aria-owns":l.value?d.ariaOwns:void 0,"aria-readonly":l.value?void 0:!0,"aria-required":d.ariaRequired,autocapitalize:d.autocapitalize,contenteditable:l.value,role:l.value?u.value:void 0,spellcheck:d.spellcheck||!0,tabindex:d.tabindex}),null,16,t))}});return e.__vue_vine=!0,e})();function tde(){return We().getTextContent()}function nde(t,e=!0){if(t)return!1;let n=tde();return e&&(n=n.trim()),n===""}function ode(t){if(!nde(t,!1))return!1;const e=We().getChildren(),n=e.length;if(n>1)return!1;for(let o=0;o<n;o++){const i=e[o];if(Ae(i))return!1;if(U(i)){if(!ps(i)||i.__indent!==0)return!1;const s=i.getChildren(),a=s.length;for(let l=0;l<a;l++){const c=s[o];if(!Q(c))return!1}}}return!0}function Ug(t){return()=>ode(t)}function rde(t){return t.getEditorState().read(Ug(t.isComposing()))}function Hg(t){const e=t.getEditorState().read(Ug(t.isComposing())),n=r.ref(e);function o(){const i=rde(t);n.value=i}return r.onMounted(()=>{const i=gs(t.registerUpdateListener(()=>{o()}),t.registerEditableListener(()=>{o()}));r.onUnmounted(()=>{i()})}),r.readonly(n)}function ide(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sde(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),o.forEach(function(i){ide(t,i,n[i])})}return t}function ade(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function lde(t,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ade(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}const cde=(()=>{const t={key:0,"aria-hidden":"true"},e=r.defineComponent({name:"ContentEditable",props:{onCopy:{},onCut:{},onPaste:{},onCompositionend:{},onCompositionstart:{},onCompositionupdate:{},onDrag:{},onDragend:{},onDragenter:{},onDragexit:{},onDragleave:{},onDragover:{},onDragstart:{},onDrop:{},onFocus:{},onFocusin:{},onFocusout:{},onBlur:{},onChange:{},onBeforeinput:{},onFormdata:{},onInput:{},onReset:{},onSubmit:{},onInvalid:{},onFullscreenchange:{},onFullscreenerror:{},onLoad:{},onError:{},onKeydown:{},onKeypress:{},onKeyup:{},onDblclick:{},onMousedown:{},onMouseenter:{},onMouseleave:{},onMousemove:{},onMouseout:{},onMouseover:{},onMouseup:{},onAbort:{},onCanplay:{},onCanplaythrough:{},onDurationchange:{},onEmptied:{},onEncrypted:{},onEnded:{},onLoadeddata:{},onLoadedmetadata:{},onLoadstart:{},onPause:{},onPlay:{},onPlaying:{},onProgress:{},onRatechange:{},onSeeked:{},onSeeking:{},onStalled:{},onSuspend:{},onTimeupdate:{},onVolumechange:{},onWaiting:{},onSelect:{},onScroll:{},onScrollend:{},onTouchcancel:{},onTouchend:{},onTouchmove:{},onTouchstart:{},onAuxclick:{},onClick:{},onContextmenu:{},onGotpointercapture:{},onLostpointercapture:{},onPointerdown:{},onPointermove:{},onPointerup:{},onPointercancel:{},onPointerenter:{},onPointerleave:{},onPointerover:{},onPointerout:{},onBeforetoggle:{},onToggle:{},onWheel:{},onAnimationcancel:{},onAnimationstart:{},onAnimationend:{},onAnimationiteration:{},onSecuritypolicyviolation:{},onTransitioncancel:{},onTransitionend:{},onTransitionrun:{},onTransitionstart:{},innerHTML:{},class:{},style:{type:Boolean},accesskey:{},contenteditable:{type:Boolean},contextmenu:{},dir:{},draggable:{type:Boolean},hidden:{type:Boolean},id:{},inert:{type:Boolean},lang:{},spellcheck:{type:Boolean},tabindex:{},title:{},translate:{},radiogroup:{},role:{},about:{},datatype:{},inlist:{},prefix:{},property:{},resource:{},typeof:{},vocab:{},autocapitalize:{},autocorrect:{},autosave:{},color:{},itemprop:{},itemscope:{type:Boolean},itemtype:{},itemid:{},itemref:{},results:{},security:{},unselectable:{},inputmode:{},is:{},"aria-activedescendant":{},"aria-atomic":{type:Boolean},"aria-autocomplete":{},"aria-busy":{type:Boolean},"aria-checked":{type:Boolean},"aria-colcount":{},"aria-colindex":{},"aria-colspan":{},"aria-controls":{},"aria-current":{type:Boolean},"aria-describedby":{},"aria-details":{},"aria-disabled":{type:Boolean},"aria-dropeffect":{},"aria-errormessage":{},"aria-expanded":{type:Boolean},"aria-flowto":{},"aria-grabbed":{type:Boolean},"aria-haspopup":{type:Boolean},"aria-hidden":{type:Boolean},"aria-invalid":{type:Boolean},"aria-keyshortcuts":{},"aria-label":{},"aria-labelledby":{},"aria-level":{},"aria-live":{},"aria-modal":{type:Boolean},"aria-multiline":{type:Boolean},"aria-multiselectable":{type:Boolean},"aria-orientation":{},"aria-owns":{},"aria-placeholder":{},"aria-posinset":{},"aria-pressed":{type:Boolean},"aria-readonly":{type:Boolean},"aria-relevant":{},"aria-required":{type:Boolean},"aria-roledescription":{},"aria-rowcount":{},"aria-rowindex":{},"aria-rowspan":{},"aria-selected":{type:Boolean},"aria-setsize":{},"aria-sort":{},"aria-valuemax":{},"aria-valuemin":{},"aria-valuenow":{},"aria-valuetext":{},ariaActiveDescendant:{},ariaAutoComplete:{},ariaControls:{},ariaDescribedBy:{},ariaErrorMessage:{},ariaExpanded:{type:Boolean},ariaInvalid:{type:Boolean},ariaLabel:{},ariaLabelledBy:{},ariaMultiline:{type:Boolean},ariaOwns:{},ariaRequired:{type:Boolean}},setup(n,o){let{expose:i}=o;i();const s=ei(),a=r.ref(!1),l=Hg(s);return r.onMounted(()=>{a.value=s.isEditable();const c=s.registerEditableListener(u=>{a.value=u});r.onUnmounted(c)}),(c,u)=>{var d,p;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(ede),r.mergeProps({editor:r.unref(s)},lde(sde({},c.$props),{role:(d=c.role)!=null?d:"textbox",spellcheck:(p=c.spellcheck)!=null?p:!0})),null,16,["editor"]),r.unref(l)?(r.openBlock(),r.createElementBlock("div",t,[r.renderSlot(c.$slots,"placeholder")])):r.createCommentVNode("",!0)],64)}}});return e.__vue_vine=!0,e})();function ude(t,e,n,o,i){if(t===null||n.size===0&&o.size===0&&!i)return 0;const s=e._selection,a=t._selection;if(i)return 1;if(!(K(s)&&K(a)&&a.isCollapsed()&&s.isCollapsed()))return 0;const l=function(y,g,_){const b=y._nodeMap,w=[];for(const k of g){const A=b.get(k);A!==void 0&&w.push(A)}for(const[k,A]of _){if(!A)continue;const S=b.get(k);S===void 0||Qe(S)||w.push(S)}return w}(e,n,o);if(l.length===0)return 0;if(l.length>1){const y=e._nodeMap,g=y.get(s.anchor.key),_=y.get(a.anchor.key);return g&&_&&!t._nodeMap.has(g.__key)&&Q(g)&&g.__text.length===1&&s.anchor.offset===1?2:0}const c=l[0],u=t._nodeMap.get(c.__key);if(!Q(u)||!Q(c)||u.__mode!==c.__mode)return 0;const d=u.__text,p=c.__text;if(d===p)return 0;const f=s.anchor,m=a.anchor;if(f.key!==m.key||f.type!=="text")return 0;const h=f.offset,v=m.offset,C=p.length-d.length;return C===1&&v===h-1?2:C===-1&&v===h+1?3:C===-1&&v===h?4:0}function dde(t,e){let n=Date.now(),o=0;return(i,s,a,l,c,u)=>{const d=Date.now();if(u.has(ha))return o=0,n=d,2;const p=ude(i,s,l,c,t.isComposing()),f=(()=>{const m=a===null||a.editor===t,h=u.has(Ple);if(!h&&m&&u.has(Mi))return 0;if(i===null)return 1;const v=s._selection;if(!(l.size>0||c.size>0))return v!==null?0:2;const C=typeof e=="number"?e:e.peek();return h===!1&&p!==0&&p===o&&d<n+C&&m||l.size===1&&function(y,g,_){const b=g._nodeMap.get(y),w=_._nodeMap.get(y),k=g._selection,A=_._selection;return!(K(k)&&K(A)&&k.anchor.type==="element"&&k.focus.type==="element"&&A.anchor.type==="text"&&A.focus.type==="text"||!Q(b)||!Q(w)||b.__parent!==w.__parent)&&JSON.stringify(g.read(()=>b.exportJSON()))===JSON.stringify(_.read(()=>w.exportJSON()))}(Array.from(l)[0],i,s)?0:1})();return n=d,o=p,f}}function vp(t){t.undoStack=[],t.redoStack=[],t.current=null}function fde(t,e,n){const o=dde(t,n);return gs(t.registerCommand(Au,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(c.length!==0){const u=a.current,d=c.pop();u!==null&&(l.push(u),s.dispatchCommand(Os,!0)),c.length===0&&s.dispatchCommand(Vs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:ha})}}(t,e),!0),xe),t.registerCommand(Tu,()=>(function(s,a){const l=a.redoStack,c=a.undoStack;if(l.length!==0){const u=a.current;u!==null&&(c.push(u),s.dispatchCommand(Vs,!0));const d=l.pop();l.length===0&&s.dispatchCommand(Os,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:ha})}}(t,e),!0),xe),t.registerCommand(Ble,()=>(vp(e),!1),xe),t.registerCommand(Mle,()=>(vp(e),t.dispatchCommand(Os,!1),t.dispatchCommand(Vs,!1),!0),xe),t.registerUpdateListener(({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:u})=>{const d=e.current,p=e.redoStack,f=e.undoStack,m=d===null?null:d.editorState;if(d!==null&&s===m)return;const h=o(a,s,d,l,c,u);if(h===1)p.length!==0&&(e.redoStack=[],t.dispatchCommand(Os,!1)),d!==null&&(f.push({...d}),t.dispatchCommand(Vs,!0));else if(h===2)return;e.current={editor:t,editorState:s}}))}function pde(){return{current:null,redoStack:[],undoStack:[]}}function mde(t,e,n){const o=r.computed(()=>r.toValue(e)||pde());r.watchEffect(i=>{const s=fde(r.toValue(t),o.value,r.toValue(n)||1e3);i(s)})}const hde=(()=>{const t=r.defineComponent({name:"HistoryPlugin",props:{delay:{},externalHistoryState:{}},setup(e,n){let{expose:o}=n;o();const i=e,s=ei();return mde(s,()=>i.externalHistoryState,()=>i.delay),(a,l)=>null}});return t.__vue_vine=!0,t})();function gde(t){r.onMounted(()=>{const e=Gce(t);r.onUnmounted(()=>{e()})})}const vde=(()=>{const t=r.defineComponent({name:"ListPlugin",props:{hasStrictIndent:{type:Boolean}},setup(e,n){let{expose:o}=n;o();const i=e,s=ei();return r.watchEffect(a=>{if(!s.hasNodes([ur,To]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");if(!i.hasStrictIndent)return;const l=Yce(s);a(l)}),gde(s),(a,l)=>null}});return t.__vue_vine=!0,t})();function yde(t){const e=r.shallowRef(t.getDecorators());return r.onMounted(()=>{const n=t.registerDecoratorListener(o=>{e.value=o});r.onUnmounted(()=>{n()})}),r.computed(()=>{const n=[],o=Object.keys(r.unref(e));for(let i=0;i<o.length;i++){const s=o[i],a=e.value[s],l=t.getElementByKey(s);l!==null&&n.push(r.h(r.Teleport,{to:l},a))}return n})}const _de=r.defineComponent({name:"LexicalDecoratedTeleports",setup(){const t=ei(),e=yde(t);return()=>e.value}});function Cde(t){r.onMounted(()=>{const e=gs(mue(t),sue(t));r.onUnmounted(e)})}const bde=(()=>{const t=r.defineComponent({name:"RichTextPlugin",setup(e,n){let{expose:o}=n;o();const i=ei(),s=Hg(i);return Cde(i),(a,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(s)?r.renderSlot(a.$slots,"placeholder",{key:0}):r.createCommentVNode("",!0),r.renderSlot(a.$slots,"contentEditable"),r.createVNode(r.unref(_de))],64))}});return t.__vue_vine=!0,t})(),cc=[$g,Bg,Mg,Lg,Vg,Ig,Fg,Pg,Og],kde={class:"ao-lexical-editor__placeholder"},qg=r.defineComponent({__name:"AoLexicalEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter text..."},variant:{default:"default"}},emits:["ready","keydown","paste"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.shallowRef(null),a=r.shallowRef(null),l=r.ref("paragraph"),c=r.computed(()=>({"ao-lexical-editor--compact":o.variant==="compact"})),u={namespace:"AoLexicalEditor",nodes:[ur,To,ul,dl],theme:{paragraph:"ao-lexical-editor__paragraph",heading:{h1:"ao-lexical-editor__heading-h1",h2:"ao-lexical-editor__heading-h2",h3:"ao-lexical-editor__heading-h3"},code:"ao-lexical-editor__code-block",text:{bold:"ao-lexical-editor__text-bold",italic:"ao-lexical-editor__text-italic",strikethrough:"ao-lexical-editor__text-strikethrough",code:"ao-lexical-editor__inline-code"},list:{ul:"ao-lexical-editor__list-ul",ol:"ao-lexical-editor__list-ol",listitem:"ao-lexical-editor__list-item"}},editorState:()=>{Zue(o.initialMarkdown||"",cc)},onError(T){console.error("Lexical error:",T)}},d=r.defineComponent({name:"AoLexicalEditorBridge",emits:{ready:T=>!0,blockStyleChange:T=>!0,selectionChange:T=>!0},setup(T,{emit:M}){const x=ei();let $=null,B=null;function q(){x.getEditorState().read(()=>{const I=te();if(!K(I))return;M("selectionChange",I.clone());const H=I.anchor.getNode(),Y=H.getKey()==="root"?H:H.getTopLevelElementOrThrow();if(yg(Y)){const le=Y.getTag();if(le==="h1"||le==="h2"||le==="h3"){M("blockStyleChange",le);return}}if(fl(Y)){M("blockStyleChange","code");return}M("blockStyleChange","paragraph")})}return r.onMounted(()=>{M("ready",x),q(),B=Wue(x,cc),$=x.registerUpdateListener(()=>{q()})}),r.onUnmounted(()=>{B==null||B(),$==null||$()}),()=>null}});function p(T){s.value=T,i("ready",T)}function f(T){a.value=T}function m(T){i("keydown",T)}function h(T){const M=T.clipboardData;if(!M)return;const x=[],$=M.items;if($){for(const B of $)if(B.kind==="file"&&B.type.startsWith("image/")){const q=B.getAsFile();if(q){const I=v(q);x.push(I)}}x.length>0&&(T.preventDefault(),i("paste",x))}}function v(T){if(T.name&&T.name.length>0&&T.name!=="image.png"&&T.name!=="screenshot.png"&&!T.name.startsWith("image-"))return T;const x=new Date,$=x.getFullYear(),B=String(x.getMonth()+1).padStart(2,"0"),q=String(x.getDate()).padStart(2,"0"),I=String(x.getHours()).padStart(2,"0"),H=String(x.getMinutes()).padStart(2,"0");let Y="png";T.type==="image/jpeg"?Y="jpg":T.type==="image/webp"?Y="webp":T.type==="image/gif"&&(Y="gif");const le=`pasted-image-${$}-${B}-${q}-${I}${H}.${Y}`;return new File([T],le,{type:T.type})}function C(){a.value&&vt(a.value.clone())}function y(T){const M=s.value;M&&(M.update(()=>{C(),T()}),M.focus())}function g(){const T=s.value;T&&(T.update(()=>{C()}),T.dispatchCommand(Yt,"bold"),T.focus())}function _(){const T=s.value;T&&(T.update(()=>{C()}),T.dispatchCommand(Yt,"italic"),T.focus())}function b(){const T=s.value;T&&(T.update(()=>{C()}),T.dispatchCommand(Yt,"strikethrough"),T.focus())}function w(){const T=s.value;T&&(T.update(()=>{C()}),T.dispatchCommand(Yt,"code"),T.focus())}function k(){const T=s.value;T&&(T.update(()=>{C()}),T.dispatchCommand(cg,void 0),T.focus())}function A(){const T=s.value;T&&(T.update(()=>{C()}),T.dispatchCommand(ug,void 0),T.focus())}function S(T){y(()=>{const M=te();if(K(M)){if(M.isCollapsed()||M.focus.set(M.anchor.key,M.anchor.offset,M.anchor.type),T==="paragraph"){rc(M,()=>Re());return}if(T==="code"){rc(M,()=>Dn());return}rc(M,()=>Uo(T))}}),l.value=T}function E(){const T=s.value;return T?T.getEditorState().read(()=>Kue(cc)):""}function D(){const T=s.value;T&&T.update(()=>{const M=We();M.clear(),M.append(Re())})}function V(){var T;(T=s.value)==null||T.focus()}return e({toggleBold:g,toggleItalic:_,toggleStrikethrough:b,toggleInlineCode:w,insertBulletList:k,insertNumberedList:A,setBlockStyle:S,getMarkdown:E,clear:D,focus:V,blockStyle:l}),(T,M)=>(r.openBlock(),r.createBlock(r.unref(Jue),{"initial-config":u},{default:r.withCtx(()=>[r.renderSlot(T.$slots,"toolbar"),r.createElementVNode("div",{class:r.normalizeClass(["ao-lexical-editor",c.value])},[r.createVNode(r.unref(bde),null,{contentEditable:r.withCtx(()=>[r.createVNode(r.unref(cde),{class:"ao-lexical-editor__content",onKeydown:m,onPaste:h},{placeholder:r.withCtx(()=>[r.createElementVNode("div",kde,r.toDisplayString(t.placeholder),1)]),_:1})]),_:1})],2),r.createVNode(r.unref(hde)),r.createVNode(r.unref(vde)),r.createVNode(r.unref(d),{onReady:p,onBlockStyleChange:M[0]||(M[0]=x=>l.value=x),onSelectionChange:f})]),_:3}))}});function wde(t,e){const n=r.ref(""),o=r.ref(!1),i=r.ref({top:0,left:0}),s=r.ref(0),a=r.computed(()=>e.value.filter(h=>h.firstName||h.lastName).map(h=>({id:h.id,name:qp(h)}))),l=r.computed(()=>a.value.filter(h=>h.name.toLowerCase().includes(n.value.toLowerCase())));function c(){o.value=!1,n.value="",s.value=0}function u(){const h=te();if(!K(h)||!h.isCollapsed()){c();return}const v=h.anchor.getNode();if(!Q(v)){c();return}const y=v.getTextContent().slice(0,h.anchor.offset).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!y){c();return}n.value=y[1],o.value=!0,s.value>=l.value.length&&(s.value=0)}function d(){const h=t.value;if(!h||!o.value)return;const v=window.getSelection();if(!v||v.rangeCount===0)return;const C=v.getRangeAt(0),y=C.getClientRects().item(0)??C.getBoundingClientRect(),g=h.getRootElement();if(!g)return;const _=g.getBoundingClientRect();i.value={top:y.bottom-_.top+4,left:y.left-_.left}}function p(h){const v=t.value;v&&(v.update(()=>{const C=te();if(!K(C)||!C.isCollapsed())return;const y=C.anchor.getNode();if(!Q(y))return;const g=y.getTextContent(),_=C.anchor.offset,w=g.slice(0,_).match(/@([\p{L}\p{M}0-9_-]*)$/u);if(!w)return;const k=_-w[0].length,A=`@${h} `,S=g.slice(0,k)+A+g.slice(_);y.setTextContent(S);const E=k+A.length;C.anchor.set(y.getKey(),E,"text"),C.focus.set(y.getKey(),E,"text")}),c(),v.focus())}function f(h){if(!o.value)return!1;switch(h.key){case"ArrowDown":return h.preventDefault(),l.value.length>0&&(s.value=(s.value+1)%l.value.length),!0;case"ArrowUp":return h.preventDefault(),l.value.length>0&&(s.value=(s.value-1+l.value.length)%l.value.length),!0;case"Enter":{if(l.value.length===0)return!1;h.preventDefault();const v=l.value[s.value];return v&&p(v.name),!0}case"Escape":return h.preventDefault(),c(),!0;default:return!1}}function m(){const h=t.value;if(h)return h.registerUpdateListener(({editorState:v})=>{v.read(()=>{u()}),o.value&&requestAnimationFrame(()=>{d()})})}return{mentionQuery:n,showMentionList:o,mentionListPosition:i,filteredUsers:l,selectedIndex:s,selectUserMention:p,handleKeydown:f,closeMentionList:c,setupMentionTracking:m}}const Ede={key:0,class:"ao-comment-editor__toolbar"},Sde=["onClick"],jg=r.defineComponent({__name:"AoCommentEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Add a comment..."},mentionableUsers:{default:()=>[]},showSubmitButton:{type:Boolean,default:!0},toolbarVisibility:{default:"focus"}},emits:["submit","cancel","focus","blur"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(null),a=r.shallowRef(null),l=r.ref(!1),c=r.toRef(o,"mentionableUsers"),{showMentionList:u,mentionListPosition:d,filteredUsers:p,selectedIndex:f,selectUserMention:m,handleKeydown:h,closeMentionList:v,setupMentionTracking:C}=wde(a,c);let y,g;const _=r.computed(()=>o.toolbarVisibility==="always"||l.value);r.onUnmounted(()=>{y==null||y(),g!==void 0&&window.clearTimeout(g)});function b(T){a.value=T,y==null||y(),y=C()}function w(){g!==void 0&&(window.clearTimeout(g),g=void 0),l.value||(l.value=!0,i("focus"))}function k(){g!==void 0&&window.clearTimeout(g),g=window.setTimeout(()=>{var x;g=void 0;const T=(x=a.value)==null?void 0:x.getRootElement(),M=document.activeElement;T&&M instanceof Node&&T.contains(M)||l.value&&(l.value=!1,i("blur"))},100)}function A(T){if(!h(T)){if(T.key==="Enter"&&(T.ctrlKey||T.metaKey)){T.preventDefault(),S();return}if(T.key==="Escape"){if(u.value){v();return}T.preventDefault(),E()}}}function S(){const T=s.value;if(!T)return;const M=T.getMarkdown();M.trim()&&i("submit",M)}function E(){v(),i("cancel")}function D(){var T;(T=s.value)==null||T.clear(),v()}function V(){var T;(T=s.value)==null||T.focus()}return e({submit:S,cancel:E,reset:D,focus:V}),(T,M)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-comment-editor",{"ao-comment-editor--focused":l.value}])},[_.value?(r.openBlock(),r.createElementBlock("div",Ede,[r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bold",onMousedown:M[0]||(M[0]=r.withModifiers(()=>{},["prevent"])),onClick:M[1]||(M[1]=x=>{var $;return($=s.value)==null?void 0:$.toggleBold()})},[...M[14]||(M[14]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Italic",onMousedown:M[2]||(M[2]=r.withModifiers(()=>{},["prevent"])),onClick:M[3]||(M[3]=x=>{var $;return($=s.value)==null?void 0:$.toggleItalic()})},[...M[15]||(M[15]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Strikethrough",onMousedown:M[4]||(M[4]=r.withModifiers(()=>{},["prevent"])),onClick:M[5]||(M[5]=x=>{var $;return($=s.value)==null?void 0:$.toggleStrikethrough()})},[...M[16]||(M[16]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Inline code",onMousedown:M[6]||(M[6]=r.withModifiers(()=>{},["prevent"])),onClick:M[7]||(M[7]=x=>{var $;return($=s.value)==null?void 0:$.toggleInlineCode()})},[...M[17]||(M[17]=[r.createElementVNode("span",null,"</>",-1)])],32),M[18]||(M[18]=r.createElementVNode("span",{class:"ao-comment-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Bullet list",onMousedown:M[8]||(M[8]=r.withModifiers(()=>{},["prevent"])),onClick:M[9]||(M[9]=x=>{var $;return($=s.value)==null?void 0:$.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-comment-editor__toolbar-button",title:"Numbered list",onMousedown:M[10]||(M[10]=r.withModifiers(()=>{},["prevent"])),onClick:M[11]||(M[11]=x=>{var $;return($=s.value)==null?void 0:$.insertNumberedList()})}," 1. ",32)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:"ao-comment-editor__wrapper",onFocusin:w,onFocusout:k},[r.createVNode(qg,{ref_key:"lexicalEditorRef",ref:s,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,variant:"compact",onReady:b,onKeydown:A},null,8,["initial-markdown","placeholder"]),r.unref(u)&&r.unref(p).length>0?(r.openBlock(),r.createElementBlock("ul",{key:0,class:"ao-comment-editor__mention-list",style:r.normalizeStyle({top:r.unref(d).top+"px",left:r.unref(d).left+"px"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(p),(x,$)=>(r.openBlock(),r.createElementBlock("li",{key:x.id,class:r.normalizeClass({"ao-comment-editor__mention-item--selected":$===r.unref(f)}),onMousedown:M[12]||(M[12]=r.withModifiers(()=>{},["prevent"])),onClick:B=>r.unref(m)(x.name)}," @"+r.toDisplayString(x.name),43,Sde))),128))],4)):r.createCommentVNode("",!0),t.showSubmitButton?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-comment-editor__submit",title:"Send comment",onMousedown:M[13]||(M[13]=r.withModifiers(()=>{},["prevent"])),onClick:S},[r.createVNode(ke,{name:"SendRounded"})],32)):r.createCommentVNode("",!0)],32)],2))}});const xde={class:"ao-comment"},Ade={class:"ao-comment__created-at"},Tde={class:"ao-comment__body"},Nde={class:"ao-comment__content-wrapper"},Dde={key:0,class:"ao-comment__footer"},$de=r.defineComponent({__name:"AoComment",props:{user:{},content:{},createdAt:{},editedAt:{},isEditable:{type:Boolean},mentionableUsers:{}},emits:["edit","remove"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{const h=n.user;return h?`${h.firstName??""}${h.firstName?" ":""}${h.lastName??""}`:null}),s=r.ref(!1),a=r.ref(n.content),l=r.ref(null),c=r.computed(()=>{const h=n.editedAt&&Ri(n.editedAt),v=Ri(n.createdAt),C=new Date,y=h??v;return y&&eC(y,C)});r.watch(()=>n.content,h=>{s.value||(a.value=h)});function u(){a.value=n.content,s.value=!0,r.nextTick(()=>{var h;(h=l.value)==null||h.focus()})}function d(h){o("edit",h),s.value=!1}function p(){var h;(h=l.value)==null||h.submit()}function f(){s.value=!1,a.value=n.content}function m(){o("remove")}return(h,v)=>{var C;return r.openBlock(),r.createElementBlock("li",xde,[r.createElementVNode("span",Ade,r.toDisplayString(c.value),1),i.value?(r.openBlock(),r.createBlock(Xt,{key:0,"avatar-url":(C=t.user)==null?void 0:C.avatarUrl,"user-name":i.value,class:"ao-comment__avatar"},null,8,["avatar-url","user-name"])):r.createCommentVNode("",!0),r.createElementVNode("div",Tde,[r.createElementVNode("div",Nde,[s.value?(r.openBlock(),r.createBlock(jg,{key:1,ref_key:"commentEditorRef",ref:l,"initial-markdown":a.value,"mentionable-users":t.mentionableUsers,"show-submit-button":!1,"toolbar-visibility":"always",onSubmit:d,onCancel:f},null,8,["initial-markdown","mentionable-users"])):(r.openBlock(),r.createBlock(Bm,{key:0,content:t.content,placeholder:"",class:"ao-comment__content"},null,8,["content"]))]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Dde,[s.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(de,{"icon-name":"CloseRounded",size:"sm",variant:"ghost",color:"neutral",onClick:f}),r.createVNode(de,{"icon-name":"CheckSmallRounded",size:"sm",variant:"solid",corners:"round",color:"black",onClick:p})],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createVNode(de,{label:h.$t("activity.comment.edit"),size:"sm",variant:"ghost",color:"neutral",onClick:u},null,8,["label"]),r.createVNode(de,{label:h.$t("activity.comment.delete"),size:"sm",variant:"ghost",color:"neutral",onClick:m},null,8,["label"])],64))])):r.createCommentVNode("",!0)])])}}});const Bde={class:"ao-comments__new"},Mde={key:0,class:"ao-comments__list"},Lde=r.defineComponent({__name:"AoActivityDetailsComments",props:{comments:{default:()=>[]},users:{},newComment:{default:""},userId:{}},emits:["createComment","updateComment","removeComment"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>[...n.comments].sort((p,f)=>q3(Ri(p.createdAt),Ri(f.createdAt)))),s=p=>n.users.find(f=>f.id===p),a=r.ref(null);r.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)});const l=r.ref(null);function c(p){var m;if(!p.trim())return;const f=Md(p,n.users);o("createComment",{authorId:n.userId,message:p,mentionedUserIds:f}),(m=l.value)==null||m.reset()}function u(p,f){const m=Md(f,n.users);o("updateComment",{id:p,message:f,mentionedUserIds:m})}function d(p){o("removeComment",{id:p})}return(p,f)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"commentsContainer",ref:a,class:"ao-comments"},[r.createElementVNode("div",Bde,[r.createVNode(jg,{ref_key:"newCommentEditorRef",ref:l,"initial-markdown":t.newComment,"mentionable-users":t.users,placeholder:p.$t("activity.comment.label"),onSubmit:c},null,8,["initial-markdown","mentionable-users","placeholder"])]),i.value.length>0?(r.openBlock(),r.createElementBlock("ul",Mde,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.value,m=>(r.openBlock(),r.createBlock($de,{key:m.id,user:s(m.author.id),content:m.message,"created-at":m.createdAt,"edited-at":m.updatedAt,"is-editable":m.author.id===t.userId,"mentionable-users":t.users,class:"ao-comment",onEdit:h=>u(m.id,h),onRemove:()=>d(m.id)},null,8,["user","content","created-at","edited-at","is-editable","mentionable-users","onEdit","onRemove"]))),128))])):r.createCommentVNode("",!0)],512))}});const Ode=["aria-label"],Vde={class:"ao-file-preview__actions"},Ide=["aria-label"],Pde={key:0,class:"ao-file-preview__loading"},Fde=["src","alt"],Rde=["src","title"],zde={key:3,class:"ao-file-preview__fallback"},Ude={class:"ao-file-preview__fallback-title"},Hde={class:"ao-file-preview__fallback-filename"},qde=["aria-label"],jde={key:2,class:"ao-file-preview__info"},Wde=["title"],Zde={key:0,class:"ao-file-preview__info-counter"},Kde={key:3,class:"ao-file-preview__info"},Gde={class:"ao-file-preview__info-counter"},Yde=r.defineComponent({__name:"AoFilePreview",props:{attachments:{},currentIndex:{},loadPreview:{type:Function}},emits:["update:currentIndex","close"],setup(t,{emit:e}){yt();const n=t,o=e,i=r.ref(null),s=r.ref(!1),a=r.ref(!1);let l=0;const c=r.computed(()=>n.attachments[n.currentIndex]),u=r.computed(()=>n.currentIndex===0),d=r.computed(()=>n.currentIndex===n.attachments.length-1),p=r.computed(()=>{var D,V;return((V=(D=c.value)==null?void 0:D.mimeType)==null?void 0:V.toLowerCase())??""}),f=r.computed(()=>{var D;return((D=c.value)==null?void 0:D.name)??""}),m=r.computed(()=>{var D;return((D=f.value.split(".").pop())==null?void 0:D.toLowerCase())??""}),h=r.computed(()=>p.value.startsWith("image/")?!0:["jpg","jpeg","png","gif","webp"].includes(m.value)),v=r.computed(()=>p.value==="application/pdf"||m.value==="pdf"),C=r.computed(()=>h.value||v.value),y=r.computed(()=>h.value?"ImageRounded":v.value?"PictureAsPdfRounded":"InsertDriveFileRounded");function g(){i.value&&(URL.revokeObjectURL(i.value),i.value=null)}async function _(){const D=c.value,V=++l;if(g(),a.value=!1,s.value=!1,!D||!C.value){a.value=!0;return}s.value=!0;try{if(!n.loadPreview)throw new Error("Attachment preview loader is missing");const T=await n.loadPreview(D);if(V!==l)return;if(!T.size)throw new Error("Empty file received");i.value=URL.createObjectURL(T)}catch(T){if(V!==l)return;console.error("Failed to load attachment preview:",T),a.value=!0}finally{V===l&&(s.value=!1)}}function b(){u.value||o("update:currentIndex",n.currentIndex-1)}function w(){d.value||o("update:currentIndex",n.currentIndex+1)}function k(){const D=c.value;if(!(D!=null&&D.url))return;const V=document.createElement("a");V.href=D.url,V.download=D.name,V.target="_blank",V.rel="noopener noreferrer",document.body.appendChild(V),V.click(),V.remove()}function A(){g(),a.value=!0}function S(){++l,g(),o("close")}function E(D){switch(D.key){case"Escape":S();break;case"ArrowLeft":b();break;case"ArrowRight":w();break}}return r.watch(()=>n.currentIndex,()=>{if(n.currentIndex<0||n.currentIndex>=n.attachments.length){S();return}_()},{immediate:!0}),r.onMounted(()=>{document.addEventListener("keydown",E)}),r.onUnmounted(()=>{++l,document.removeEventListener("keydown",E),g()}),(D,V)=>{var T,M,x,$,B,q;return r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createElementVNode("div",{class:"ao-file-preview",role:"dialog","aria-modal":"true","aria-label":(T=c.value)==null?void 0:T.name},[r.createElementVNode("div",Vde,[r.createElementVNode("button",{type:"button",class:"ao-file-preview__action",title:"Download","aria-label":"Download",onClick:r.withModifiers(k,["stop"])},[r.createVNode(ke,{name:"DownloadRounded",size:"sm"}),V[2]||(V[2]=r.createElementVNode("span",null,"Download",-1))]),r.createElementVNode("button",{type:"button",class:"ao-file-preview__action ao-file-preview__action--close",title:"Close","aria-label":"Close",onClick:r.withModifiers(S,["stop"])},[r.createVNode(ke,{name:"CloseRounded",size:"sm"})])]),r.createElementVNode("div",{class:"ao-file-preview__backdrop",onClick:S}),u.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--prev","aria-label":D.$t("activity.attachment.preview.previous"),onClick:r.withModifiers(b,["stop"])},[r.createVNode(ke,{name:"ArrowBackRounded",size:"lg"})],8,Ide)),r.createElementVNode("div",{class:"ao-file-preview__content",onClick:V[1]||(V[1]=r.withModifiers(()=>{},["stop"]))},[s.value?(r.openBlock(),r.createElementBlock("div",Pde,[...V[3]||(V[3]=[r.createElementVNode("div",{class:"ao-file-preview__spinner","aria-hidden":"true"},null,-1),r.createElementVNode("span",null,"Loading...",-1)])])):h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("img",{key:1,src:i.value,alt:(M=c.value)==null?void 0:M.name,class:"ao-file-preview__image",onError:A},null,40,Fde)):v.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",{key:2,class:"ao-file-preview__pdf-container",onClick:V[0]||(V[0]=r.withModifiers(()=>{},["stop"]))},[r.createElementVNode("iframe",{src:i.value,title:(x=c.value)==null?void 0:x.name,class:"ao-file-preview__pdf"},null,8,Rde)])):(r.openBlock(),r.createElementBlock("div",zde,[r.createVNode(ke,{name:y.value,size:"xl"},null,8,["name"]),r.createElementVNode("p",Ude,r.toDisplayString(D.$t("activity.attachment.preview.notAvailable")),1),r.createElementVNode("p",Hde,r.toDisplayString(($=c.value)==null?void 0:$.name),1),r.createVNode(de,{variant:"solid",color:"primary",size:"sm",label:D.$t("activity.attachment.preview.download"),onClick:k},null,8,["label"])]))]),d.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-file-preview__nav ao-file-preview__nav--next","aria-label":D.$t("activity.attachment.preview.next"),onClick:r.withModifiers(w,["stop"])},[r.createVNode(ke,{name:"ArrowForwardRounded",size:"lg"})],8,qde)),h.value&&i.value&&!a.value?(r.openBlock(),r.createElementBlock("div",jde,[r.createElementVNode("span",{class:"ao-file-preview__info-filename",title:(B=c.value)==null?void 0:B.name},r.toDisplayString((q=c.value)==null?void 0:q.name),9,Wde),t.attachments.length>1?(r.openBlock(),r.createElementBlock("span",Zde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)):r.createCommentVNode("",!0)])):t.attachments.length>1?(r.openBlock(),r.createElementBlock("div",Kde,[r.createElementVNode("span",Gde,r.toDisplayString(t.currentIndex+1)+" / "+r.toDisplayString(t.attachments.length),1)])):r.createCommentVNode("",!0)],8,Ode)])}}});const Yc=r.defineComponent({__name:"AoButtonCheck",props:{modelValue:{type:Boolean},color:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("update:modelValue",!n.modelValue)};return(s,a)=>(r.openBlock(),r.createBlock(de,{color:t.modelValue?t.color:r.unref(Qc).NEUTRAL,"icon-position":"start",onClick:a[0]||(a[0]=()=>i())},null,8,["color"]))}}),Jde={class:"ao-history"},Xde={key:0,class:"ao-history__loading"},Qde={key:1,class:"ao-history__empty"},e1e={key:2,class:"ao-history__list"},t1e={class:"ao-history__transaction-header"},n1e={class:"ao-history__actor"},o1e={class:"ao-history__transaction-date"},r1e={class:"ao-history__event-header"},i1e={class:"ao-history__event-action"},s1e={key:0,class:"ao-history__event-entity-name"},a1e={key:0,class:"ao-history__changes"},l1e={class:"ao-history__change-label"},c1e={class:"ao-history__change-values"},u1e={class:"ao-history__change-old"},d1e={class:"ao-history__change-new"},yp=120,f1e=r.defineComponent({__name:"AoHistory",props:{events:{},presentationConfig:{},loading:{type:Boolean}},setup(t){const{t:e}=yt(),n=t;function o(f){var v,C,y;if((y=(C=(v=n.presentationConfig)==null?void 0:v.fields)==null?void 0:C[f])!=null&&y.label)return n.presentationConfig.fields[f].label;const m=`history.field.${f}`,h=e(m);return h!==m?h:f.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,g=>g.toUpperCase())}function i(f){var v,C,y;if((y=(C=(v=n.presentationConfig)==null?void 0:v.entities)==null?void 0:C[f])!=null&&y.label)return n.presentationConfig.entities[f].label;const m=`history.entity.${f}`,h=e(m);return h!==m?h:f.replace(/_/g," ").replace(/\b\w/g,g=>g.toUpperCase())}function s(f){const m=e(`history.operation.${f.toLowerCase()}`);if(m===`history.operation.${f.toLowerCase()}`){if(f.toLowerCase()==="create")return"Created";if(f.toLowerCase()==="update")return"Updated";if(f.toLowerCase()==="delete")return"Deleted"}return m}function a(f){if(f==null||f==="")return null;try{return JSON.parse(f)}catch{return f}}function l(f){if(f==null)return e("history.value.null","None");const m=String(f).replace(/\s+/g," ").trim();return m?m.length<=yp?m:`${m.slice(0,yp).trimEnd()}…`:e("history.value.null","None")}function c(f,m){var y,g,_,b;const h=m?f.oldValue:f.newValue,v=h==null?void 0:h.raw;if(!h||v===null||v===void 0||v==="")return e("history.value.null","None");if(h.display!==null&&h.display!==void 0)return h.display;const C=a(v);if(C===null)return e("history.value.null","None");if(f.type==="BOOLEAN"){const w=C===!0||C==="true",k=(g=(y=n.presentationConfig)==null?void 0:y.fields)==null?void 0:g[f.field];if(k!=null&&k.booleanLabels)return w?k.booleanLabels.true:k.booleanLabels.false;const A=`history.boolean.${f.field}.${w}`,S=e(A);return S!==A?S:e(`history.boolean.default.${w}`)}if(f.type==="RELATION"){const w=(b=(_=n.presentationConfig)==null?void 0:_.resolvedValues)==null?void 0:b[f.field];if(w){const k=String(C);if(w[k])return w[k]}return e("history.value.unresolved","?")}return f.type==="LONG_TEXT"?l(C):String(C??v)}function u(f){var m,h;return f?f.name?f.name:(h=(m=n.presentationConfig)==null?void 0:m.users)!=null&&h[f.id]?n.presentationConfig.users[f.id]:e("history.actor.unknown","Someone"):e("history.actor.unknown","Someone")}function d(f){return`${s(f.operation)} ${i(f.entity.type)}`}function p(f){return f.entity.type==="comment"?null:f.entity.label??null}return(f,m)=>(r.openBlock(),r.createElementBlock("div",Jde,[t.loading?(r.openBlock(),r.createElementBlock("div",Xde,r.toDisplayString(r.unref(e)("history.loading","Loading history...")),1)):!t.events||t.events.length===0?(r.openBlock(),r.createElementBlock("div",Qde,r.toDisplayString(r.unref(e)("history.empty","No history available")),1)):(r.openBlock(),r.createElementBlock("div",e1e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.events,h=>(r.openBlock(),r.createElementBlock("div",{key:h.id,class:"ao-history__transaction"},[r.createElementVNode("div",t1e,[r.createElementVNode("span",n1e,r.toDisplayString(u(h.actor)),1),r.createElementVNode("span",o1e,r.toDisplayString(new Date(h.createdAt).toLocaleString()),1)]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.events,v=>(r.openBlock(),r.createElementBlock("div",{key:v.id,class:"ao-history__event"},[r.createElementVNode("div",r1e,[r.createElementVNode("span",i1e,r.toDisplayString(d(v)),1),p(v)?(r.openBlock(),r.createElementBlock("span",s1e,r.toDisplayString(p(v)),1)):r.createCommentVNode("",!0)]),v.changes.length>0?(r.openBlock(),r.createElementBlock("div",a1e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(v.changes,C=>(r.openBlock(),r.createElementBlock("div",{key:C.field,class:"ao-history__change"},[r.createElementVNode("strong",l1e,r.toDisplayString(o(C.field)),1),r.createElementVNode("span",c1e,[r.createElementVNode("span",u1e,r.toDisplayString(c(C,!0)),1),m[0]||(m[0]=r.createElementVNode("span",{class:"ao-history__change-arrow"},"→",-1)),r.createElementVNode("span",d1e,r.toDisplayString(c(C,!1)),1)])]))),128))])):r.createCommentVNode("",!0)]))),128))]))),128))]))]))}});const Wg=ee(f1e,[["__scopeId","data-v-d88ea484"]]),p1e=r.defineComponent({props:{isLeft:{type:Boolean,required:!1,default:!0},leftLabel:{type:String,required:!0},rightLabel:{type:String,required:!0}},emits:["update:isLeft"],methods:{switchValue(t){this.$emit("update:isLeft",t)},selectLeft(){this.switchValue(!0)},selectRight(){this.switchValue(!1)}}});const m1e={class:"toggle-wrapper"};function h1e(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",m1e,[r.createElementVNode("button",{class:r.normalizeClass({button:!0,"button--left":!0,"button--inactive":!t.isLeft}),type:"button",onClick:e[0]||(e[0]=(...a)=>t.selectLeft&&t.selectLeft(...a))},r.toDisplayString(t.leftLabel),3),r.createElementVNode("button",{class:r.normalizeClass({button:!0,"button--right":!0,"button--inactive":t.isLeft}),type:"button",onClick:e[1]||(e[1]=(...a)=>t.selectRight&&t.selectRight(...a))},r.toDisplayString(t.rightLabel),3)])}const g1e=ee(p1e,[["render",h1e],["__scopeId","data-v-40c1f714"]]),v1e=r.defineComponent({props:{modelValue:{type:[String,Number],required:!0},tabs:{type:Array,required:!0},variant:{type:String,default:void 0,validator:t=>["underline"].includes(t)}},emits:["update:modelValue"],methods:{selectTab(t){this.$emit("update:modelValue",t)}}});const y1e=["onClick"],_1e={class:"tab-button__label"},C1e={key:0,class:"tab-button__badge"};function b1e(t,e,n,o,i,s){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["tabbar-wrapper",{"tabbar-wrapper--underline":t.variant==="underline"}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tabs,a=>(r.openBlock(),r.createElementBlock("button",{key:a.value,class:r.normalizeClass(["tab-button",{"tab-button--active":a.value===t.modelValue,"tab-button--underline":t.variant==="underline"}]),type:"button",onClick:l=>t.selectTab(a.value)},[r.createElementVNode("span",_1e,r.toDisplayString(a.label),1),a.count!==void 0&&a.count>0?(r.openBlock(),r.createElementBlock("span",C1e,r.toDisplayString(a.count),1)):r.createCommentVNode("",!0)],10,y1e))),128))],2)}const vs=ee(v1e,[["render",b1e],["__scopeId","data-v-3d268d7b"]]),k1e={class:"ao-rich-text-editor"},w1e={class:"ao-rich-text-editor__toolbar"},E1e=["value"],S1e={class:"ao-rich-text-editor__actions"},x1e=r.defineComponent({__name:"AoRichTextEditor",props:{initialMarkdown:{default:""},placeholder:{default:"Enter description..."}},emits:["save","cancel","paste"],setup(t,{emit:e}){const n=e,o=r.ref(null);function i(c){var d;const u=c.target;(d=o.value)==null||d.setBlockStyle(u.value)}function s(){const c=o.value;c&&n("save",c.getMarkdown())}function a(){n("cancel")}function l(c){n("paste",c)}return(c,u)=>(r.openBlock(),r.createElementBlock("div",k1e,[r.createVNode(qg,{ref_key:"lexicalEditorRef",ref:o,"initial-markdown":t.initialMarkdown,placeholder:t.placeholder,onPaste:l},{toolbar:r.withCtx(()=>{var d;return[r.createElementVNode("div",w1e,[r.createElementVNode("select",{class:"ao-rich-text-editor__select",title:"Text style",value:(d=o.value)==null?void 0:d.blockStyle,onChange:i},[...u[12]||(u[12]=[r.createElementVNode("option",{value:"paragraph"},"Paragraph",-1),r.createElementVNode("option",{value:"h1"},"Heading 1",-1),r.createElementVNode("option",{value:"h2"},"Heading 2",-1),r.createElementVNode("option",{value:"h3"},"Heading 3",-1),r.createElementVNode("option",{value:"code"},"Code block",-1)])],40,E1e),u[17]||(u[17]=r.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bold",onMousedown:u[0]||(u[0]=r.withModifiers(()=>{},["prevent"])),onClick:u[1]||(u[1]=p=>{var f;return(f=o.value)==null?void 0:f.toggleBold()})},[...u[13]||(u[13]=[r.createElementVNode("strong",null,"B",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Italic",onMousedown:u[2]||(u[2]=r.withModifiers(()=>{},["prevent"])),onClick:u[3]||(u[3]=p=>{var f;return(f=o.value)==null?void 0:f.toggleItalic()})},[...u[14]||(u[14]=[r.createElementVNode("em",null,"I",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Strikethrough",onMousedown:u[4]||(u[4]=r.withModifiers(()=>{},["prevent"])),onClick:u[5]||(u[5]=p=>{var f;return(f=o.value)==null?void 0:f.toggleStrikethrough()})},[...u[15]||(u[15]=[r.createElementVNode("s",null,"S",-1)])],32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Inline code",onMousedown:u[6]||(u[6]=r.withModifiers(()=>{},["prevent"])),onClick:u[7]||(u[7]=p=>{var f;return(f=o.value)==null?void 0:f.toggleInlineCode()})},[...u[16]||(u[16]=[r.createElementVNode("span",null,"</>",-1)])],32),u[18]||(u[18]=r.createElementVNode("span",{class:"ao-rich-text-editor__toolbar-divider"},null,-1)),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Bullet list",onMousedown:u[8]||(u[8]=r.withModifiers(()=>{},["prevent"])),onClick:u[9]||(u[9]=p=>{var f;return(f=o.value)==null?void 0:f.insertBulletList()})}," • ",32),r.createElementVNode("button",{type:"button",class:"ao-rich-text-editor__toolbar-button",title:"Numbered list",onMousedown:u[10]||(u[10]=r.withModifiers(()=>{},["prevent"])),onClick:u[11]||(u[11]=p=>{var f;return(f=o.value)==null?void 0:f.insertNumberedList()})}," 1. ",32)])]}),_:1},8,["initial-markdown","placeholder"]),r.createElementVNode("div",S1e,[r.createVNode(de,{variant:"ghost",color:"neutral",label:"Cancel",onClick:a}),r.createVNode(de,{variant:"solid",color:"primary",label:"Save",onClick:s})])]))}});const A1e={class:"ao-activity-details"},T1e={class:"ao-activity-details__main"},N1e={class:"ao-activity-details__header"},D1e={key:1,class:"ao-activity__category"},$1e={key:2,class:"ao-activity-details__created-by"},B1e={class:"ao-feed__activity-details__header"},M1e={key:0,class:"ao-field ao-feed__activity-details__project"},L1e={class:"ao-field__label"},O1e={key:1,class:"ao-field ao-feed__activity-details__project"},V1e={class:"ao-field__label"},I1e={class:"ao-activity-details__content"},P1e={class:"ao-activity-details__tab-content"},F1e={class:"ao-fieldset"},R1e={class:"ao-field__row"},z1e={class:"ao-activity-details__tab-content"},U1e={class:"ao-fieldset"},H1e={class:"ao-fieldset__body"},q1e={class:"ao-activity-details__tab-content"},j1e={key:0,class:"ao-fieldset"},W1e={class:"ao-activity-details__tab-content"},Z1e={class:"ao-activity-details__aside"},K1e={class:"ao-activity-details__close-button"},G1e={class:"ao-activity-details__aside-section"},Y1e={class:"ao-field__label"},J1e={key:0,class:"ao-activity-details__aside-section"},X1e={class:"ao-field"},Q1e={class:"ao-field__label"},efe={key:1,class:"ao-activity-details__aside-section"},tfe={class:"ao-field"},nfe={class:"ao-field__label"},ofe={class:"ao-field ao-field--multiselect"},rfe={class:"assignee-inline"},ife={class:"ao-field__label"},sfe={key:1,class:"ao-sprint-form"},afe={class:"ao-sprint-form__field"},lfe={class:"ao-field__label"},cfe=["placeholder"],ufe={class:"ao-sprint-form__field"},dfe={class:"ao-field__label"},ffe={class:"ao-sprint-form__field"},pfe={class:"ao-field__label"},mfe={class:"ao-sprint-form__actions"},hfe={class:"ao-activity-details__aside-section"},gfe={class:"ao-field ao-field--multiselect"},vfe={class:"assignee-inline"},yfe={class:"ao-field__label"},_fe={class:"ao-activity-details__aside-section"},Cfe={key:0,class:"ao-field__row"},bfe={class:"ao-field"},kfe={class:"ao-field__label"},wfe=["readonly"],Efe={class:"ao-activity-details__aside-section"},Sfe={class:"ao-field__row"},xfe={class:"ao-field ao-field--inline"},Afe={class:"ao-field__label"},Tfe=["readonly"],Nfe={class:"ao-field__row"},Dfe={class:"ao-field ao-field--inline"},$fe={class:"ao-field__label"},Bfe={class:"ao-field__input ao-field__input--estim ao-field__input--readonly"},Mfe={class:"ao-activity-details__aside-section"},Lfe={class:"ao-activity-details__aside-section"},Ofe={class:"ao-fieldset ao-activity-details__aside-section"},Vfe={class:"ao-fieldset__title"},Ife={class:"ao-fieldset__body"},Pfe={class:"ao-field__row"},Ffe={class:"ao-field ao-field--multiselect"},Rfe={class:"ao-field__label"},zfe={class:"ao-field__row"},Ufe={class:"ao-field ao-field--multiselect"},Hfe={class:"ao-field__label"},ml=r.defineComponent({__name:"AoActivityDetails",props:{activity:{},activityTypes:{default:()=>[]},breadcrumbs:{default:""},milestoneId:{default:void 0},templateActivities:{},templateMilestones:{default:()=>[]},isTemplate:{type:Boolean,default:!1},users:{},userId:{default:void 0},isTaskCheckable:{type:Function,default:void 0},statuses:{default:()=>[]},devStatuses:{default:()=>[]},sprints:{default:()=>[]},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean},projects:{default:()=>[]},timeTrackingData:{default:()=>({})},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1},loadAttachmentPreview:{type:Function,default:void 0}},emits:["update:activity","close","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","createSprint","fetchHistory"],setup(t,{emit:e}){const n=L=>L.label?`Sprint ${L.number}: ${L.label}`:`Sprint ${L.number}`,o=t,i=e,{t:s}=yt();function a(L){return L.reduce((W,ae)=>(ae.name&&(W[ae.id]=ae.name),W),{})}const l=r.computed(()=>{const L=o.users.reduce((W,ae)=>{const Je=[ae.firstName,ae.lastName].filter(Boolean).join(" ").trim();return Je&&(W[ae.id]=Je),W},{});return{users:L,resolvedValues:{assignee_id:L,author_id:L,created_by:L,project_id:a(o.projects)}}}),c=r.ref("description");r.watch(c,(L,W)=>{L==="history"&&W!=="history"&&i("fetchHistory")}),r.watch(()=>{var L;return(L=o.activity)==null?void 0:L.id},(L,W)=>{L!==W&&c.value==="history"&&i("fetchHistory")});const u=r.computed(()=>{var L,W,ae;return[{label:s("activity.description.label")||"Description",value:"description"},{label:s("activity.tasks.title")||"Checklist",value:"checklist",count:((L=o.activity.tasks)==null?void 0:L.length)??0},{label:s("activity.comments.title")||"Commentaires",value:"comments",count:((W=o.activity.comments)==null?void 0:W.length)??0},{label:s("activity.history.title")||"History",value:"history",count:((ae=o.history)==null?void 0:ae.length)??0}]}),d=r.computed(()=>{var L;return o.isEditable===!0?!0:o.userId&&o.isEditable==="only-own"?o.userId===((L=o.activity.assignee)==null?void 0:L.id):!1}),p=r.ref(!1),f=r.ref(null),m=L=>{i("update:activity",{id:o.activity.id,name:L})},h=r.computed(()=>o.activity.description??""),v=()=>{d.value&&(p.value=!0)},C=L=>{i("update:activity",{id:o.activity.id,description:L}),p.value=!1},y=()=>{p.value=!1};r.watch(()=>o.activity.id,()=>{p.value=!1});const g=r.computed({get(){return o.activity.estimation??0},set(L){i("update:activity",{id:o.activity.id,estimation:L})}}),_=r.computed({get(){var W;const L=(W=o.timeTrackingData)==null?void 0:W[o.activity.id];return(L==null?void 0:L.timeSpent)??0},set(){}}),b=r.computed(()=>{var W;return((W=o.activity.project)==null?void 0:W.estimationUnit)==="days"?"":"h"}),w=r.computed(()=>{var W;const L=(W=o.activity.project)==null?void 0:W.estimationUnit;return La(_.value,L)}),k=r.computed({get(){return o.activity.important??!1},set(L){i("update:activity",{id:o.activity.id,important:L})}}),A=r.computed({get(){return o.activity.blocked??!1},set(L){i("update:activity",{id:o.activity.id,blocked:L})}});r.computed({get(){return o.activity.private??!1},set(L){i("update:activity",{id:o.activity.id,private:L})}});const S=r.computed({get(){return o.activity.deadline},set(L){i("update:activity",{id:o.activity.id,deadline:L})}}),E=r.computed({get(){return o.activity.activityType!=="dev"},set(L){var ae;const W=L?"standard":"dev";o.activity.activityType!=="dev"&&W==="dev"&&!o.activity.devStatus&&((ae=o.devStatuses)!=null&&ae.length)?i("update:activity",{id:o.activity.id,type:W,statusDevId:o.devStatuses[0].id}):i("update:activity",{id:o.activity.id,type:W})}}),D=r.computed(()=>{var L;return((L=o.devStatuses)==null?void 0:L.map(W=>({value:W.id,label:W.name})))??[]}),V=r.computed({get(){var L;return(L=o.activity.devStatus)==null?void 0:L.id},set(L){i("update:activity",{id:o.activity.id,statusDevId:L})}}),T=r.computed(()=>{var W;const L=(W=o.activity.project)==null?void 0:W.id;return L?o.sprints.filter(ae=>ae.projectId===L).map(ae=>({value:ae.id,label:n(ae),startDate:ae.startDate})).sort((ae,Je)=>ae.startDate&&Je.startDate?new Date(ae.startDate).getTime()-new Date(Je.startDate).getTime():ae.label.localeCompare(Je.label)):[]}),M=r.computed(()=>{var L;return(L=o.activity.sprint)==null?void 0:L.id}),x=L=>{i("update:activity",{id:o.activity.id,sprintId:L})},$=()=>{i("update:activity",{id:o.activity.id,sprintId:null})},B=r.computed(()=>{var L;return!((L=o.activity.project)!=null&&L.id)}),q=r.ref(!1),I=r.ref(""),H=r.ref(""),Y=r.ref(""),le=r.computed(()=>{var Je;if(!((Je=o.activity.project)==null?void 0:Je.id))return!1;const W=H.value,ae=Y.value;return!W||!ae?!1:new Date(ae)>=new Date(W)}),oe=()=>{var W;(W=o.activity.project)!=null&&W.id&&(q.value=!0,I.value="",H.value="",Y.value="")},Ne=()=>{q.value=!1,I.value="",H.value="",Y.value=""},ce=()=>{var W;if(!le.value)return;const L=(W=o.activity.project)==null?void 0:W.id;L&&(i("createSprint",{projectId:L,label:I.value.trim()||void 0,startDate:H.value,endDate:Y.value}),q.value=!1,I.value="",H.value="",Y.value="")},ne=r.computed(()=>o.templateActivities.filter(L=>L.id!==o.activity.id).map(L=>({label:L.name,value:L.id}))),z=r.computed({get(){var L;return(L=o.activity.dependingOn)==null?void 0:L.map(W=>W.id)},set(L){L&&i("update:activity",{id:o.activity.id,dependingOn:L})}}),F=r.computed(()=>ne.value.map(L=>{var W;return{...L,disabled:(W=o.activity.blocking)==null?void 0:W.some(ae=>ae.id===L.value)}})),re=r.computed({get(){var L;return(L=o.activity.blocking)==null?void 0:L.map(W=>W.id)},set(L){L&&i("update:activity",{id:o.activity.id,blocking:L})}}),Ee=r.computed(()=>ne.value.map(L=>{var W;return{...L,disabled:(W=o.activity.dependingOn)==null?void 0:W.some(ae=>ae.id===L.value)}})),ze=L=>{i("addSubtask",L)},we=L=>{i("updateSubtask",L)},Ce=L=>{i("deleteSubtask",L)};function _t(){o.userId?he.value=[o.userId]:console.error("Failed assigning to self: userId is missing")}function R(L){he.value=[L]}const ie=r.computed(()=>{var W;const L=new Map;return(W=o.users)==null||W.forEach(ae=>{L.has(ae.id)||L.set(ae.id,ae)}),Array.from(L.values()).map(ae=>({label:`${ae.firstName} ${ae.lastName}`,value:ae.id,avatar:ae.avatarUrl}))}),he=r.computed({get(){var L,W;return(L=o.activity.assignee)!=null&&L.id?[(W=o.activity.assignee)==null?void 0:W.id]:[]},set(L){i("update:activity",{id:o.activity.id,assigneeId:L[0]??null})}}),pe=L=>{i("addFiles",{activityId:o.activity.id,files:L})},Ze=L=>{pe(L)},De=L=>{i("removeFile",{activityId:o.activity.id,file:L})},$e=r.computed(()=>o.projects.map(L=>({value:L.id,label:L.name}))),Fe=r.computed(()=>{var W,ae,Je;const L=(Je=(ae=(W=o.activity)==null?void 0:W.project)==null?void 0:ae.phases)==null?void 0:Je.reduce((Ot,bt)=>[...Ot,...bt.milestones],[]);return L==null?void 0:L.map(Ot=>({value:Ot.id,label:Ot.name}))}),Ge=L=>{o.activity&&i("update:activity",{id:o.activity.id,projectId:L})},Ye=L=>{o.activity&&i("update:activity",{id:o.activity.id,milestoneId:L})},Me=r.computed(()=>{var L;return(L=o.statuses)==null?void 0:L.map(W=>({value:W.id,label:W.name}))}),Ct=L=>{i("update:activity",{id:o.activity.id,statusId:L})},it=L=>{i("update:activity",{id:o.activity.id,statusDevId:L})},Lt=L=>{i("addComment",{...L,activityId:o.activity.id})},rn=L=>{i("updateComment",L)},Cn=L=>{i("removeComment",L)},bn=r.computed(()=>{var L,W;return((L=o.activity.createdBy)==null?void 0:L.firstName)&&((W=o.activity.createdBy)==null?void 0:W.lastName)&&`${o.activity.createdBy.firstName} ${o.activity.createdBy.lastName}`}),kn=r.computed(()=>o.activity.createdAt?new Date(o.activity.createdAt).toLocaleDateString("en-UK",{day:"2-digit",month:"2-digit",year:"numeric"}):"");function no(){const L=window.location.origin,W=o.activity.slug,ae=`${L}/activity-feed/slug/${W}`;navigator.clipboard.writeText(ae).then(()=>{console.log(`Link copied to clipboard: ${ae}`),i("toast","clipboard.copy.success","success")}).catch(()=>{console.log("Failed to copy link"),i("toast","clipboard.copy.error","error")})}return(L,W)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Oa,{onClose:W[14]||(W[14]=ae=>L.$emit("close"))},{default:r.withCtx(()=>{var ae,Je,Ot,bt;return[r.createElementVNode("div",A1e,[r.createElementVNode("div",T1e,[r.createElementVNode("div",N1e,[t.activity.slug?(r.openBlock(),r.createBlock(Ii,{key:0,label:t.activity.slug,clickable:!0,variant:"solid_icon",color:"primary","icon-name":"ContentCopyOutline",class:"ao-activity__ao-tag",onClick:no},null,8,["label"])):r.createCommentVNode("",!0),t.breadcrumbs?(r.openBlock(),r.createElementBlock("div",D1e,r.toDisplayString(t.breadcrumbs),1)):r.createCommentVNode("",!0),r.createVNode(ht,{title:t.activity.name||"",level:4,"is-editable":d.value,"onUpdate:title":m},null,8,["title","is-editable"]),bn.value?(r.openBlock(),r.createElementBlock("div",$1e,r.toDisplayString(L.$t("activity.createdBy.label",{name:bn.value,date:kn.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",B1e,[$e.value?(r.openBlock(),r.createElementBlock("label",M1e,[r.createElementVNode("span",L1e,r.toDisplayString(L.$t("activity.project.label")),1),r.createVNode(dt,{options:$e.value,value:(ae=t.activity.project)==null?void 0:ae.id,searchable:!0,disabled:!d.value,caret:d.value,onChange:Ge},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0),Fe.value?(r.openBlock(),r.createElementBlock("label",O1e,[r.createElementVNode("span",V1e,r.toDisplayString(L.$t("activity.milestone.label")),1),r.createVNode(dt,{options:Fe.value,value:(Je=t.activity.milestone)==null?void 0:Je.id,searchable:!0,disabled:!d.value,caret:d.value,onChange:Ye},null,8,["options","value","disabled","caret"])])):r.createCommentVNode("",!0)]),r.renderSlot(L.$slots,"header")]),r.createElementVNode("div",I1e,[r.createVNode(vs,{modelValue:c.value,"onUpdate:modelValue":W[0]||(W[0]=ve=>c.value=ve),tabs:u.value,variant:"underline",class:"ao-activity-details__tabs"},null,8,["modelValue","tabs"]),r.withDirectives(r.createElementVNode("div",P1e,[r.createElementVNode("fieldset",F1e,[r.createElementVNode("div",R1e,[r.createVNode(i9,{attachments:t.activity.attachments,"is-editable":t.attachmentEnabled&&d.value&&!t.isTemplate&&!!t.userId,onAdd:pe,onRemove:De,onPreview:W[1]||(W[1]=ve=>f.value=ve)},{default:r.withCtx(()=>[p.value?(r.openBlock(),r.createBlock(x1e,{key:1,"initial-markdown":h.value,onSave:C,onCancel:y,onPaste:Ze},null,8,["initial-markdown"])):(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-activity-details__description",{"ao-activity-details__description--editable":d.value}]),onClick:v},[r.createVNode(Bm,{content:h.value},null,8,["content"])],2))]),_:1},8,["attachments","is-editable"])])])],512),[[r.vShow,c.value==="description"]]),r.withDirectives(r.createElementVNode("div",z1e,[r.createElementVNode("fieldset",U1e,[r.createElementVNode("div",H1e,[r.createVNode(Zk,{class:"ao-activity-details__tasks ao-field__row",tasks:t.activity.tasks||[],"activity-id":t.activity.id,users:t.users,"is-checkable":t.isTaskCheckable,"is-editable":d.value,"is-template":t.isTemplate,onAdd:ze,onUpdate:we,onDelete:Ce},null,8,["tasks","activity-id","users","is-checkable","is-editable","is-template"])])])],512),[[r.vShow,c.value==="checklist"]]),r.withDirectives(r.createElementVNode("div",q1e,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",j1e,[r.createVNode(Lde,{comments:t.activity.comments,users:t.users,"user-id":t.userId,onCreateComment:Lt,onUpdateComment:rn,onRemoveComment:Cn},null,8,["comments","users","user-id"])])):r.createCommentVNode("",!0)],512),[[r.vShow,c.value==="comments"]]),r.withDirectives(r.createElementVNode("div",W1e,[r.createVNode(Wg,{events:t.history??[],"presentation-config":l.value,loading:t.historyLoading},null,8,["events","presentation-config","loading"])],512),[[r.vShow,c.value==="history"]])])]),r.createElementVNode("div",Z1e,[r.createElementVNode("div",K1e,[r.createVNode(ke,{name:"CloseRounded",onClick:W[2]||(W[2]=ve=>L.$emit("close"))})]),r.createElementVNode("div",G1e,[r.createElementVNode("span",Y1e,r.toDisplayString(L.$t("activity.type.label")),1),r.createVNode(g1e,{"is-left":E.value,"onUpdate:isLeft":W[3]||(W[3]=ve=>E.value=ve),"left-label":"Standard","right-label":"Development",class:"ao-activity-type-toggle"},null,8,["is-left"])]),Me.value?(r.openBlock(),r.createElementBlock("div",J1e,[r.createElementVNode("label",X1e,[r.createElementVNode("span",Q1e,r.toDisplayString(L.$t("activity.status.label")),1),r.createVNode(dt,{class:"ao-activity-details__multiselect",options:Me.value,value:(Ot=t.activity.status)==null?void 0:Ot.id,"can-clear":!1,"can-deselect":!1,disabled:!d.value,caret:d.value,onChange:Ct},null,8,["options","value","disabled","caret"])])])):r.createCommentVNode("",!0),t.activity.activityType==="dev"?(r.openBlock(),r.createElementBlock("div",efe,[r.createElementVNode("label",tfe,[r.createElementVNode("span",nfe,r.toDisplayString(L.$t("activity.devStatus.label")),1),r.createVNode(dt,{class:"ao-activity-details__multiselect",options:D.value,value:V.value,"can-clear":!1,"can-deselect":!1,disabled:!d.value,caret:d.value,onChange:it},null,8,["options","value","disabled","caret"])]),r.createElementVNode("div",ofe,[r.createElementVNode("div",rfe,[r.createElementVNode("span",ife,r.toDisplayString(L.$t("activity.sprint.label")),1),(bt=t.activity.project)!=null&&bt.id&&d.value&&!q.value?(r.openBlock(),r.createBlock(de,{key:0,label:L.$t("activity.sprint.new"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:oe},null,8,["label"])):r.createCommentVNode("",!0)]),q.value?(r.openBlock(),r.createElementBlock("div",sfe,[r.createElementVNode("div",afe,[r.createElementVNode("label",lfe,r.toDisplayString(L.$t("activity.sprint.labelLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[4]||(W[4]=ve=>I.value=ve),class:"ao-field__input",type:"text",placeholder:L.$t("activity.sprint.labelPlaceholder")},null,8,cfe),[[r.vModelText,I.value]])]),r.createElementVNode("div",ufe,[r.createElementVNode("label",dfe,r.toDisplayString(L.$t("activity.sprint.startDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[5]||(W[5]=ve=>H.value=ve),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,H.value]])]),r.createElementVNode("div",ffe,[r.createElementVNode("label",pfe,r.toDisplayString(L.$t("activity.sprint.endDateLabel")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[6]||(W[6]=ve=>Y.value=ve),class:"ao-field__input",type:"date"},null,512),[[r.vModelText,Y.value]])]),r.createElementVNode("div",mfe,[r.createVNode(de,{type:"button",variant:"ghost",label:L.$t("common.cancel"),onClick:Ne},null,8,["label"]),r.createVNode(de,{type:"button",color:"primary",variant:"solid",label:L.$t("common.create"),disabled:!le.value,onClick:ce},null,8,["label","disabled"])])])):(r.openBlock(),r.createBlock(dt,{key:0,class:"ao-activity-details__multiselect",options:T.value,value:M.value,"can-clear":!0,"can-deselect":!0,searchable:!0,disabled:B.value||!d.value,placeholder:B.value?L.$t("activity.sprint.selectProjectFirst"):L.$t("activity.sprint.placeholder"),caret:d.value,onSelect:x,onClear:$,onDeselect:$},null,8,["options","value","disabled","placeholder","caret"]))]),r.renderSlot(L.$slots,"sprintModal")])):r.createCommentVNode("",!0),r.createElementVNode("div",hfe,[r.createElementVNode("div",gfe,[r.createElementVNode("div",vfe,[r.createElementVNode("span",yfe,r.toDisplayString(L.$t("activity.assignee.label")),1),r.createVNode(de,{label:L.$t("activity.assignee.toMe"),type:"button",color:"primary",variant:"solid",class:"ao-button--sm",onClick:_t},null,8,["label"])]),r.createVNode(dt,{modelValue:he.value,"onUpdate:modelValue":W[7]||(W[7]=ve=>he.value=ve),class:"ao-activity-details__assignees ao-activity-details__multiselect",options:ie.value,"close-on-select":!0,searchable:!0,placeholder:L.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!d.value,caret:d.value,onSelect:R},{tag:r.withCtx(({option:ve,handleTagRemove:Et})=>[r.createVNode(Xt,{"user-name":ve.label,"avatar-url":ve.avatar,"is-closable":!0,onClose:oo=>Et(ve,oo)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",_fe,[t.isTemplate!==!0&&t.userId?(r.openBlock(),r.createElementBlock("div",Cfe,[r.createElementVNode("label",bfe,[r.createElementVNode("span",kfe,r.toDisplayString(L.$t("activity.deadline.label")),1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[8]||(W[8]=ve=>S.value=ve),readonly:!d.value,class:"ao-field__input",type:"date"},null,8,wfe),[[r.vModelText,S.value,void 0,{lazy:!0}]])])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Efe,[r.createElementVNode("div",Sfe,[r.createElementVNode("label",xfe,[r.createElementVNode("span",Afe,r.toDisplayString(L.$t("activity.estimation.label"))+" ("+r.toDisplayString(b.value)+")",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":W[9]||(W[9]=ve=>g.value=ve),readonly:!d.value,class:"ao-field__input ao-field__input--estim",type:"number",min:"0"},null,8,Tfe),[[r.vModelText,g.value,void 0,{lazy:!0,number:!0}]])])]),r.createElementVNode("div",Nfe,[r.createElementVNode("label",Dfe,[r.createElementVNode("span",$fe,r.toDisplayString(L.$t("activity.timeSpent.label"))+" ("+r.toDisplayString(b.value)+")",1),r.createElementVNode("span",Bfe,r.toDisplayString(w.value),1)])])]),r.createElementVNode("div",Mfe,[r.createVNode(Yc,{modelValue:k.value,"onUpdate:modelValue":W[10]||(W[10]=ve=>k.value=ve),modelModifiers:{lazy:!0},label:L.$t("activity.important.label"),disabled:!d.value,variant:"ghost","icon-name":"FlagRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("div",Lfe,[r.createVNode(Yc,{modelValue:A.value,"onUpdate:modelValue":W[11]||(W[11]=ve=>A.value=ve),modelModifiers:{lazy:!0},label:L.$t("activity.blocked.label"),disabled:!d.value,variant:"ghost","icon-name":"BlockRounded",class:"ao-field__input",color:"danger",type:"checkbox",size:"sm"},null,8,["modelValue","label","disabled"])]),r.createElementVNode("fieldset",Ofe,[r.createElementVNode("div",Vfe,[r.createVNode(ke,{name:"FlowsheetOutlineRounded"}),r.createVNode(ht,{level:4,title:L.$t("activity.dependencies.title")},null,8,["title"])]),r.createElementVNode("div",Ife,[r.createElementVNode("div",Pfe,[r.createElementVNode("label",Ffe,[r.createElementVNode("span",Rfe,r.toDisplayString(L.$t("activity.dependingOn.label")),1),r.createVNode(dt,{modelValue:z.value,"onUpdate:modelValue":W[12]||(W[12]=ve=>z.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:F.value,disabled:!d.value,caret:d.value},null,8,["modelValue","options","disabled","caret"])])]),r.createElementVNode("div",zfe,[r.createElementVNode("label",Ufe,[r.createElementVNode("span",Hfe,r.toDisplayString(L.$t("activity.blocking.label")),1),r.createVNode(dt,{modelValue:re.value,"onUpdate:modelValue":W[13]||(W[13]=ve=>re.value=ve),class:"ao-activity-details__multiselect",mode:"tags","close-on-select":!1,searchable:!0,options:Ee.value,disabled:!d.value,caret:d.value},null,8,["modelValue","options","disabled","caret"])])])])]),r.renderSlot(L.$slots,"default",{activity:t.activity})])])]}),_:3}),f.value!==null?(r.openBlock(),r.createBlock(Yde,{key:0,attachments:t.activity.attachments||[],"current-index":f.value,"load-preview":o.loadAttachmentPreview,"onUpdate:currentIndex":W[15]||(W[15]=ae=>f.value=ae),onClose:W[16]||(W[16]=ae=>f.value=null)},null,8,["attachments","current-index","load-preview"])):r.createCommentVNode("",!0)],64))}});const qfe=r.defineComponent({__name:"AoRuleLine",props:{rule:{},templatePhases:{},templateMilestones:{},templateActivities:{},tagName:{default:"li"}},emits:["update:rule","close"],setup(t,{emit:e}){const n=t,o=e,i=r.toRef(n.rule.itemType||qe.ACTIVITIES),s=r.computed({get(){return i.value},set(g){i.value=g,o("update:rule",{...n.rule,itemType:g,subItemId:void 0})}}),a=r.computed(()=>Object.values(qe)),l=r.computed({get(){return n.rule.subItemId},set(g){o("update:rule",{...n.rule,subItemId:g,itemType:n.rule.itemType||s.value})}}),c=r.computed(()=>{var _;return!n.templateActivities||!n.templateMilestones||!n.templatePhases?null:(_={[qe.ACTIVITIES]:n.templateActivities,[qe.MILESTONES]:n.templateMilestones,[qe.PHASES]:n.templatePhases}[i.value])==null?void 0:_.map(b=>({value:b.id,label:b.name}))}),u=r.toRef(n.rule.comparator),d=r.computed({get(){return u.value},set(g){o("update:rule",{...n.rule,comparator:g})}}),p=r.computed(()=>Object.values(Ep)),f=r.toRef(n.rule.trigger),m=r.computed({get(){return f.value},set(g){o("update:rule",{...n.rule,trigger:g})}}),h=r.computed(()=>Object.values(Sp)),v=r.computed({get(){return n.rule.duration},set(g){o("update:rule",{...n.rule,duration:g})}}),C=r.computed({get(){return n.rule.durationUnit},set(g){o("update:rule",{...n.rule,durationUnit:g})}}),y=r.computed(()=>Object.values(xp));return(g,_)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:"ao-rule-line"},{default:r.withCtx(()=>[r.createVNode(r.unref(uo),{modelValue:s.value,"onUpdate:modelValue":_[0]||(_[0]=b=>s.value=b),options:a.value},null,8,["modelValue","options"]),r.createVNode(r.unref(uo),{modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=b=>l.value=b),options:c.value},null,8,["modelValue","options"]),r.createVNode(r.unref(uo),{modelValue:m.value,"onUpdate:modelValue":_[2]||(_[2]=b=>m.value=b),options:h.value},null,8,["modelValue","options"]),r.createVNode(r.unref(uo),{modelValue:d.value,"onUpdate:modelValue":_[3]||(_[3]=b=>d.value=b),options:p.value},null,8,["modelValue","options"]),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":_[4]||(_[4]=b=>v.value=b),type:"number",min:"0"},null,512),[[r.vModelText,v.value,void 0,{number:!0}]]),r.createVNode(r.unref(uo),{modelValue:C.value,"onUpdate:modelValue":_[5]||(_[5]=b=>C.value=b),options:y.value},null,8,["modelValue","options"]),r.createVNode(de,{class:"ao-rule-line__remove","icon-name":"CloseRounded",variant:"ghost",onClick:_[6]||(_[6]=b=>g.$emit("close"))})]),_:1}))}});const jfe={class:"ao-template-rules__body"},Wfe={class:"ao-template-rules__list"},Zfe=r.defineComponent({__name:"AoTemplateRules",props:{templateId:{},rules:{},templatePhases:{},templateMilestones:{},templateActivities:{}},emits:["addRule","removeRule"],setup(t,{emit:e}){const n=e,o=()=>{n("addRule")},i=s=>{n("removeRule",s)};return(s,a)=>(r.openBlock(),r.createBlock(Oa,null,{header:r.withCtx(()=>[r.createVNode(ht,{title:s.$t("template.rules.title"),level:2},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("div",jfe,[r.createElementVNode("ul",Wfe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.rules,l=>(r.openBlock(),r.createBlock(qfe,{key:l.id,rule:l,"template-phases":t.templatePhases,"template-milestones":t.templateMilestones,"template-activities":t.templateActivities,class:"ao-template-rule",onClose:()=>i(l.id)},null,8,["rule","template-phases","template-milestones","template-activities","onClose"]))),128))]),r.createVNode(Eo,{label:s.$t("template.rules.add"),"icon-name":"Add",onClick:o},null,8,["label"])])]),_:1}))}});function Ko(t,e,n){const o=t.length,i=t.at(-1),s=i?Xe.LexoRank.parse(i.rank).genNext():Xe.LexoRank.middle();return{name:n(`template.defaultName.${e}`,{idx:o+1}),rank:s.format()}}const Kfe={key:0,class:"ao-template-details"},Gfe={class:"ao-template-details__body"},Yfe={class:"ao-template-details__cols"},Jfe={class:"ao-template-details__col"},Xfe={class:"ao-list__footer"},Qfe={class:"ao-template-details__col"},epe={class:"ao-template-details__col"},Zg=r.defineComponent({__name:"AoTemplateDetails",props:{templateId:{},templates:{},users:{},phaseId:{},milestoneId:{},activityId:{},activityTypes:{}},emits:["addItem","removeItem","updateItem","addRule","removeRule","addFiles","removeFile"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.computed(()=>{var I;return(I=o.templates)==null?void 0:I.find(H=>H.id===o.templateId)}),a=r.ref(!1);r.watch(()=>[o.templateId,o.phaseId,o.milestoneId],()=>a.value=!1),r.watch(()=>{var I;return(I=s.value)==null?void 0:I.phases},(I,H)=>{a.value&&Kn(I,H)});const l=r.computed(()=>{var I,H;return(H=(I=s==null?void 0:s.value)==null?void 0:I.phases)==null?void 0:H.find(Y=>Y.id===o.phaseId)});r.watch(()=>{var I;return(I=l.value)==null?void 0:I.milestones},(I,H)=>{a.value&&Kn(I,H)});const c=r.computed(()=>{var I,H;return(H=(I=l.value)==null?void 0:I.milestones)==null?void 0:H.find(Y=>Y.id===o.milestoneId)});r.watch(()=>{var I;return(I=c.value)==null?void 0:I.activities},(I,H)=>{a.value&&Kn(I,H)});const u=r.computed(()=>{var I,H;return((H=(I=s.value)==null?void 0:I.phases)==null?void 0:H.reduce((Y,le)=>{const oe=le.milestones||[];return[...Y,...oe]},[]))||[]}),d=r.computed(()=>{var I,H;return((H=(I=s.value)==null?void 0:I.phases)==null?void 0:H.reduce((Y,le)=>{const Ne=(le.milestones||[]).reduce((ce,ne)=>ne.activities?[...ce,...ne.activities]:ce,[]);return[...Y,...Ne]},[]))||[]}),p=r.computed(()=>{var I,H;return(H=(I=c.value)==null?void 0:I.activities)==null?void 0:H.find(Y=>Y.id===o.activityId)}),f=r.computed(()=>{var I;return((I=s.value)==null?void 0:I.name)||o.templateId}),m=()=>{if(!s.value)return;const{name:I,rank:H}=Ko(s.value.phases,"phase",n);a.value=!0,i("addItem",{type:qe.PHASES,templateId:o.templateId,item:{name:I,rank:H}})},h=I=>{i("updateItem",{templateId:o.templateId,id:o.templateId,itemType:qe.TEMPLATES,data:{name:I}})},v=I=>{i("removeItem",{itemType:qe.PHASES,templateId:o.templateId,data:{id:I}})},C=(I,H)=>{i("updateItem",{templateId:o.templateId,id:I,itemType:qe.PHASES,data:{name:H}})},y=I=>{i("updateItem",I)},g=I=>{if(!l.value)return;const{name:H,rank:Y}=Ko(l.value.milestones,"milestone",n);a.value=!0,i("addItem",{type:qe.MILESTONES,templateId:o.templateId,phaseId:I.phaseId,item:{name:H,rank:Y,phaseId:I.phaseId}})},_=I=>{i("removeItem",{itemType:qe.MILESTONES,templateId:o.templateId,phaseId:I.phaseId,data:{id:I.id}})},b=I=>{const{id:H,...Y}=I;i("updateItem",{itemType:qe.MILESTONES,id:H,templateId:o.templateId,data:Y})},w=I=>{const{milestoneId:H}=I;if(!c.value)return;const{name:Y,rank:le}=Ko(c.value.activities,"activity",n);a.value=!0,i("addItem",{type:qe.ACTIVITIES,milestoneId:H,templateId:o.templateId,item:{name:Y,rank:le,milestoneId:H}})},k=I=>{var H,Y;i("removeItem",{itemType:qe.ACTIVITIES,templateId:o.templateId,phaseId:(H=l.value)==null?void 0:H.id,milestoneId:(Y=c.value)==null?void 0:Y.id,data:{id:I.id}})},A=I=>{const{id:H,...Y}=I;i("updateItem",{itemType:qe.ACTIVITIES,id:H,templateId:o.templateId,data:Y})},S=r.ref(!1),E=()=>{S.value=!S.value},D=()=>{i("addRule",{templateId:o.templateId})},V=I=>{i("removeRule",{id:I,templateId:o.templateId})},T=I=>{var H;if(I.moved){const Y=ns(I,((H=s.value)==null?void 0:H.phases)??[]);i("updateItem",{itemType:qe.PHASES,id:I.moved.element.id,templateId:o.templateId,data:{rank:Y}})}},M=I=>{!l.value||!c.value||!p.value||i("addItem",{type:qe.TASKS,activityId:I.activityId,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,item:I})},x=I=>{!l.value||!c.value||!p.value||i("updateItem",{itemType:qe.TASKS,id:I.id,templateId:o.templateId,data:I})},$=I=>{!l.value||!c.value||!p.value||i("removeItem",{itemType:qe.TASKS,activityId:p.value.id,milestoneId:c.value.id,phaseId:l.value.id,templateId:o.templateId,data:I})},B=I=>{i("addFiles",I)},q=I=>{i("removeFile",I)};return(I,H)=>{var Y,le,oe,Ne,ce,ne;return s.value?(r.openBlock(),r.createElementBlock("div",Kfe,[r.createVNode(rs,{"can-go-back":!0,onGoBack:H[1]||(H[1]=z=>I.$router.push({name:r.unref(Ho).TEMPLATES_LIST}))},{primary:r.withCtx(()=>[r.createVNode(ht,{title:f.value,level:2,"is-editable":!0,"onUpdate:title":H[0]||(H[0]=z=>{h(z)})},null,8,["title"])]),_:1}),r.createElementVNode("div",Gfe,[r.createElementVNode("ol",Yfe,[r.createElementVNode("li",Jfe,[r.createVNode(r.unref(Vn),{"model-value":s.value.phases,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:T},{header:r.withCtx(()=>[r.createVNode(ht,{title:I.$t("template.phases.title"),level:3,class:"ao-list__title"},null,8,["title"])]),item:r.withCtx(({element:z})=>{var F;return[r.createVNode(fb,{id:z.id,name:z.name,milestones:z.milestones,"is-active":((F=l.value)==null?void 0:F.id)===z.id,"is-draggable":!0,onClick:re=>I.$router.push({params:{templateId:t.templateId,phaseId:z.id}}),"onUpdate:title":re=>{C(z.id,re)},onRemove:()=>v(z.id)},null,8,["id","name","milestones","is-active","onClick","onUpdate:title","onRemove"])]}),footer:r.withCtx(()=>[r.createElementVNode("div",Xfe,[r.createVNode(Eo,{"icon-name":"AddBoxOutlineRounded",label:I.$t("template.phases.add"),onClick:m},null,8,["label"])])]),_:1},8,["model-value"])]),r.createElementVNode("li",Qfe,[l.value?(r.openBlock(),r.createBlock(hb,{key:0,"template-id":t.templateId,phase:l.value,"milestone-id":(Y=c.value)==null?void 0:Y.id,onAddMilestone:g,onUpdateMilestone:b,onUpdatePhase:y,onRemoveMilestone:_},null,8,["template-id","phase","milestone-id"])):r.createCommentVNode("",!0)]),r.createElementVNode("li",epe,[l.value&&c.value?(r.openBlock(),r.createBlock(yb,{key:0,"template-id":t.templateId,"phase-id":(le=l.value)==null?void 0:le.id,milestone:c.value,"activity-id":(oe=p.value)==null?void 0:oe.id,onAddActivity:w,onUpdateActivity:A,onRemoveActivity:k},null,8,["template-id","phase-id","milestone","activity-id"])):r.createCommentVNode("",!0)])])]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[p.value?(r.openBlock(),r.createBlock(ml,{key:0,activity:p.value,"activity-types":t.activityTypes,breadcrumbs:`${s.value.name} / ${(Ne=l.value)==null?void 0:Ne.name} / ${(ce=c.value)==null?void 0:ce.name}`,"milestone-id":(ne=c.value)==null?void 0:ne.id,"template-activities":d.value,"template-milestones":u.value,"is-template":!0,"is-editable":!0,users:t.users,"attachment-enabled":!1,sprints:[],"onUpdate:activity":H[2]||(H[2]=z=>{p.value&&A(z)}),onClose:I.$router.back,onAddSubtask:M,onUpdateSubtask:x,onDeleteSubtask:$,onAddFiles:B,onRemoveFile:q},{default:r.withCtx(z=>[r.renderSlot(I.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(z)))]),_:3},8,["activity","activity-types","breadcrumbs","milestone-id","template-activities","template-milestones","users","onClose"])):r.createCommentVNode("",!0)])),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[S.value?(r.openBlock(),r.createBlock(Zfe,{key:0,"template-id":s.value.id,rules:s.value.rules||[],"template-phases":s.value.phases,"template-milestones":u.value,"template-activities":d.value,onClose:E,onAddRule:D,onRemoveRule:V},null,8,["template-id","rules","template-phases","template-milestones","template-activities"])):r.createCommentVNode("",!0)]))])):r.createCommentVNode("",!0)}}});const tpe={class:"ao-card__content"},npe={key:0,class:"ao-card__header"},ope={class:"ao-card__body"},rpe={key:1,class:"ao-card__footer"},hl=r.defineComponent({__name:"AoCard",props:{isClickable:{type:Boolean},tagName:{default:"div"},isSelected:{type:Boolean},color:{},withLeftBorder:{type:Boolean,default:!1},variant:{default:"default"}},setup(t){return(e,n)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.tagName),{class:r.normalizeClass(["ao-card",{"ao-card--clickable":t.isClickable,"ao-card--danger":t.variant==="danger"}]),style:r.normalizeStyle(t.isSelected?{border:"solid",borderColor:t.color||"var(--ao-color-blue-base)",borderWidth:"thick"}:{})},{default:r.withCtx(()=>[t.withLeftBorder?(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-card__left-border",style:r.normalizeStyle({backgroundColor:t.color})},null,4)):r.createCommentVNode("",!0),r.createElementVNode("div",tpe,[e.$slots.header?(r.openBlock(),r.createElementBlock("header",npe,[r.renderSlot(e.$slots,"header")])):r.createCommentVNode("",!0),r.createElementVNode("div",ope,[r.renderSlot(e.$slots,"default")]),e.$slots.footer?(r.openBlock(),r.createElementBlock("footer",rpe,[r.renderSlot(e.$slots,"footer")])):r.createCommentVNode("",!0)])]),_:3},8,["class","style"]))}});const gl=r.defineComponent({__name:"AoProgress",props:{percentages:{},status:{},color:{}},setup(t){const e=t,n=r.computed(()=>typeof e.percentages=="number"?[e.percentages]:e.percentages??[]);return(o,i)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-progress",t.status?`ao-progress--${t.status}`:""]),role:"meter"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,s=>(r.openBlock(),r.createElementBlock("div",{key:s,class:r.normalizeClass(["ao-progress__progress"]),style:r.normalizeStyle({width:`${s*100}%`,"--ao-progress-color":t.color||"var(--ao-color-primary-base)"})},null,4))),128))],2))}});/*!
55
55
  * vue-color-kit v1.0.6
56
56
  * (c) 2023
57
57
  * @license MIT
58
- */function Lo(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=spe(t):/rgb/.test(t)?e=_p(t):typeof t=="string"?e=_p(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:i,a:s}=e,{h:a,s:l,v:c}=ape(e);return{r:n,g:o,b:i,a:s===void 0?1:s,h:a,s:l,v:c}}function id(t){const e=document.createElement("canvas"),n=e.getContext("2d"),o=t*2;return e.width=o,e.height=o,n.fillStyle="#ffffff",n.fillRect(0,0,o,o),n.fillStyle="#ccd5db",n.fillRect(0,0,t,t),n.fillRect(t,t,t,t),e}function Jc(t,e,n,o,i,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,i),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function ipe({r:t,g:e,b:n},o){const i=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${i(t)}${i(e)}${i(n)}`;return o?s.toUpperCase():s}function spe(t){t=t.slice(1);const e=n=>parseInt(n,16)||0;return{r:e(t.slice(0,2)),g:e(t.slice(2,4)),b:e(t.slice(4,6))}}function _p(t){return typeof t=="string"?(t=(/rgba?\((.*?)\)/.exec(t)||["","0,0,0,1"])[1].split(","),{r:Number(t[0])||0,g:Number(t[1])||0,b:Number(t[2])||0,a:Number(t[3]?t[3]:1)}):t}function ape({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),i=Math.min(t,e,n),s=o-i;let a=0;o===i?a=0:o===t?e>=n?a=60*(e-n)/s:a=60*(e-n)/s+360:o===e?a=60*(n-t)/s+120:o===n&&(a=60*(t-e)/s+240),a=Math.floor(a);let l=parseFloat((o===0?0:1-i/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var sd=r.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasSaturation,e=this.size,n=t.getContext("2d");t.width=e,t.height=e,n.fillStyle=this.color,n.fillRect(0,0,e,e),Jc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Jc("p",n,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(t){const{top:e,left:n}=this.$el.getBoundingClientRect(),o=t.target.getContext("2d"),i=a=>{let l=a.clientX-n,c=a.clientY-e;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const u=o.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,p,f]=u.data;this.$emit("selectSaturation",{r:d,g:p,b:f})};i(t);const s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",s)}}});const lpe={ref:"canvasSaturation"};function cpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[r.createVNode("canvas",lpe,null,512),r.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}sd.render=cpe;sd.__file="src/color/Saturation.vue";var ad=r.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasHue,e=this.width,n=this.height,o=t.getContext("2d");t.width=e,t.height=n;const i=o.createLinearGradient(0,0,0,n);i.addColorStop(0,"#FF0000"),i.addColorStop(.17*1,"#FF00FF"),i.addColorStop(.17*2,"#0000FF"),i.addColorStop(.17*3,"#00FFFF"),i.addColorStop(.17*4,"#00FF00"),i.addColorStop(.17*5,"#FFFF00"),i.addColorStop(1,"#FF0000"),o.fillStyle=i,o.fillRect(0,0,e,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(t){const{top:e}=this.$el.getBoundingClientRect(),n=t.target.getContext("2d"),o=s=>{let a=s.clientY-e;a<0&&(a=0),a>this.height&&(a=this.height),this.slideHueStyle={top:a-2+"px"};const l=n.getImageData(0,Math.min(a,this.height-1),1,1),[c,u,d]=l.data;this.$emit("selectHue",{r:c,g:u,b:d})};o(t);const i=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}}});const upe={ref:"canvasHue"};function dpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[r.createVNode("canvas",upe,null,512),r.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ad.render=dpe;ad.__file="src/color/Hue.vue";var ld=r.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasAlpha,e=this.width,n=this.height,o=this.alphaSize,i=id(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(i,"repeat"),s.fillRect(0,0,e,n),Jc("p",s,e,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(t){const{top:e}=this.$el.getBoundingClientRect(),n=i=>{let s=i.clientY-e;s<0&&(s=0),s>this.height&&(s=this.height);let a=parseFloat((s/this.height).toFixed(2));this.$emit("selectAlpha",a)};n(t);const o=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)}}});const fpe={ref:"canvasAlpha"};function ppe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[r.createVNode("canvas",fpe,null,512),r.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}ld.render=ppe;ld.__file="src/color/Alpha.vue";var cd=r.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const t=this.$el,e=this.width,n=this.height,o=this.alphaSize,i=id(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(i,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function mpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("canvas")}cd.render=mpe;cd.__file="src/color/Preview.vue";var ud=r.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(t){this.isSucking=!1,this.suckColor(t)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(t){t.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(t){const{clientX:e,clientY:n}=t,{top:o,left:i,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-i,c=n-o,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,a-1),1,1);let[p,f,m,h]=d.data;h=parseFloat((h/255).toFixed(2));const v=this.suckerPreview.style;Object.assign(v,{position:"absolute",left:e+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${p}, ${f}, ${m}, ${h})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?v.display="":v.display="none"},suckColor(t){t&&t.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),t.addEventListener("click",e=>{const{clientX:n,clientY:o}=e,{top:i,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-i,p=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[f,m,h,v]=p.data;v=parseFloat((v/255).toFixed(2)),this.$emit("selectSucker",{r:f,g:m,b:h,a:v})}))}}});const hpe=r.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),gpe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},vpe=r.createVNode("g",{fill:"none","fill-rule":"evenodd"},[r.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[r.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),r.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[r.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function ype(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[t.isSucking?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock("svg",{key:0,class:[{active:t.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...a)=>t.openSucker&&t.openSucker(...a))},[hpe],2)),t.isSucking?(r.openBlock(),r.createBlock("svg",gpe,[vpe])):r.createCommentVNode("v-if",!0)])}ud.render=ype;ud.__file="src/color/Sucker.vue";var dd=r.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:r.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const _pe={class:"color-type"},Cpe={class:"name"};function bpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",_pe,[r.createVNode("span",Cpe,r.toDisplayString(t.name),1),r.withDirectives(r.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>t.modelColor=a),class:"value",onFocus:e[2]||(e[2]=(...a)=>t.handleFocus&&t.handleFocus(...a)),onBlur:e[3]||(e[3]=(...a)=>t.handleBlur&&t.handleBlur(...a))},null,544),[[r.vModelText,t.modelColor]])])}dd.render=bpe;dd.__file="src/color/Box.vue";var fd=r.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(t,{emit:e}){const n=r.ref(),o=r.ref([]),i=r.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),i.value=id(4).toDataURL(),r.onUnmounted(()=>{s(n.value)});function s(l){if(!l)return;const c=o.value||[],u=c.indexOf(l);u>=0&&c.splice(u,1),c.length>=8&&(c.length=7),c.unshift(l),o.value=c||[],localStorage&&t.colorsHistoryKey&&localStorage.setItem(t.colorsHistoryKey,JSON.stringify(c))}function a(l){e("selectColor",l)}return{setColorsHistory:s,colorsHistory:o,color:n,imgAlphaBase64:i,selectColor:a}}});const kpe={class:"colors"},wpe={key:0,class:"colors history"};function Epe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[r.createVNode("ul",kpe,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(t.colorsDefault,a=>(r.openBlock(),r.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[r.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),r.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(r.openBlock(),r.createBlock("ul",wpe,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(t.colorsHistory,a=>(r.openBlock(),r.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[r.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),r.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):r.createCommentVNode("v-if",!0)])}fd.render=Epe;fd.__file="src/color/Colors.vue";var $r=r.defineComponent({components:{Saturation:sd,Hue:ad,Alpha:ld,Preview:cd,Sucker:ud,Box:dd,Colors:fd},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return ipe(this.rgba,!0)}},created(){Object.assign(this,Lo(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:i,s,v:a}=Lo(t);Object.assign(this,{r:e,g:n,b:o,h:i,s,v:a}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:i,s,v:a}=Lo(t);Object.assign(this,{r:e,g:n,b:o,h:i,s,v:a}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Spe={class:"color-set"};function xpe(t,e,n,o,i,s){const a=r.resolveComponent("Saturation"),l=r.resolveComponent("Hue"),c=r.resolveComponent("Alpha"),u=r.resolveComponent("Preview"),d=r.resolveComponent("Sucker"),p=r.resolveComponent("Box"),f=r.resolveComponent("Colors");return r.openBlock(),r.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[r.createVNode("div",Spe,[r.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),r.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),r.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),r.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[r.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(d,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),r.createVNode(p,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(p,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(f,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),r.createCommentVNode(" custom options "),r.renderSlot(t.$slots,"default")],6)}$r.render=xpe;$r.__file="src/color/ColorPicker.vue";$r.install=t=>{t.component($r.name,$r)};const Ape={class:"color-picker-wrapper"},ti=r.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),s=r.ref(null),a=r.ref(0),l=r.ref(0),c=r.ref(n.color),u=async h=>{c.value=n.color,i.value=!0,await r.nextTick();const v=h.getBoundingClientRect(),C=s.value,y=(C==null?void 0:C.offsetHeight)||300,g=window.innerHeight-v.bottom,_=v.top,b=g<y&&_>y;a.value=b?v.top-y-8:v.bottom+8,l.value=v.left,setTimeout(()=>{window.addEventListener("pointerdown",f,!0)},0)},d=r.computed(()=>({position:"fixed",top:`${a.value}px`,left:`${l.value}px`,zIndex:1e3})),p=()=>{i.value=!1,c.value!==n.color&&o("update:color",c.value),window.removeEventListener("pointerdown",f,!0)},f=h=>{const v=h.target;s.value&&!s.value.contains(v)&&p()},m=h=>{const{r:v,g:C,b:y,a:g}=h.rgba;c.value=`rgba(${v}, ${C}, ${y}, ${g})`};return r.watch(()=>n.color,h=>{i.value||(c.value=h)}),r.onBeforeUnmount(()=>{window.removeEventListener("pointerdown",f,!0)}),(h,v)=>(r.openBlock(),r.createElementBlock("div",Ape,[r.renderSlot(h.$slots,"clickable",{openPicker:u,bgColor:c.value}),i.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:r.normalizeStyle(d.value)},[r.createVNode(r.unref($r),{class:"color-picker-box",theme:"light",color:c.value,onChangeColor:m},null,8,["color"])],4)):r.createCommentVNode("",!0)]))}});const Tpe={class:"ao-card-project-phase__header"},Npe={class:"ao-card-project-item__title-line"},Dpe={key:0,class:"ao-card-project-item-phase__estimation"},$pe={class:"ao-card-project-phase__footer"},Bpe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},Mpe={class:"ao-card-project-phase__subitem"},Lpe={class:"ao-card-project-phase__subitem"},Ope={key:0,class:"ao-card-project-phase__secondary"},Vpe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Ipe=r.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(t,{emit:e}){const n=t,o=e,i=v=>{o("update:title",v)},s=r.computed(()=>{var v;return((v=n.milestones)==null?void 0:v.reduce((C,y)=>{var g;return C+((g=y.activities)==null?void 0:g.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((v,C)=>{var y;return v+(((y=C.activities)==null?void 0:y.reduce((g,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return g+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>La(a.value,n.estimationUnit)),u=r.computed(()=>{var v;return(v=n.milestones)==null?void 0:v.length}),d=r.computed(()=>{var v;return(v=n.milestones)==null?void 0:v.filter(C=>C.status===Pi.done).length}),p=r.computed(()=>(d.value||0)/(u.value||1)),f=r.computed({get:()=>n.deadline??"",set:v=>o("update:deadline",v!=null&&v.length?v:null)}),m=r.computed({get:()=>n.color,set:v=>{o("updatePhase",{id:n.id,color:v})}}),h=(v,C)=>{const y=v.target;y.closest("button")||y.closest("input")||y.closest(".ao-title")||C(y)};return(v,C)=>(r.openBlock(),r.createBlock(ti,{color:m.value,"onUpdate:color":C[2]||(C[2]=y=>m.value=y)},{clickable:r.withCtx(({openPicker:y,bgColor:g})=>[r.createVNode(hl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:g,"with-left-border":!0,onClick:_=>h(_,y)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",Npe,[r.createVNode(ht,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":i},null,8,["id","title","is-editable"]),s.value||a.value?(r.openBlock(),r.createElementBlock("span",Dpe," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",$pe,[u.value?(r.openBlock(),r.createElementBlock("div",Bpe,[r.createElementVNode("div",Mpe,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",Lpe,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(gl,{percentages:p.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),v.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Ope,[r.renderSlot(v.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-card-project-phase__footer-row",f.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=_=>f.value=_),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,f.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",Vpe,r.toDisplayString(r.unref(Mr)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",Tpe,[r.createVNode(de,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?v.$t("archive"):v.$t("unarchive"),onClick:C[0]||(C[0]=r.withModifiers(()=>t.active?v.$emit("archivePhase",{id:t.id}):v.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Ppe=r.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("span",{class:"aoBadge",style:r.normalizeStyle({backgroundColor:t.color})},null,4))}});const Fpe={class:"ao-card-project-milestone__default"},Rpe={class:"ao-title-with-badge-wrapper"},zpe={class:"ao-card-project-item__title-line"},Upe={key:0,class:"ao-card-project-item-milestone__estimation"},Hpe={key:0,class:"ao-card-project-milestone__archive"},qpe={class:"ao-card-project-milestone__activities"},jpe={class:"ao-card-project-milestone__activities-row"},Wpe={class:"ao-card-project-milestone__subitem"},Zpe={class:"ao-card-project-milestone__subitem"},Kpe={key:1,class:"ao-card-project-milestone__secondary"},Gpe={class:"ao-card-project-milestone__footer"},Ype={key:1,class:"ao-field ao-card-project-milestone__deadline"},Jpe={class:"ao-field__label"},Xpe={key:2,class:"ao-card-project-milestone__assignee"},Qpe=r.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var f;return((f=n.activities)==null?void 0:f.reduce((m,h)=>m+(h.estimation||0),0))||0}),s=r.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((f,m)=>{var v;const h=(v=n.timeTrackingData)==null?void 0:v[m.id];return f+((h==null?void 0:h.timeSpent)||0)},0)),a=r.computed(()=>n.estimationUnit==="days"?"d":"h"),l=r.computed(()=>La(s.value,n.estimationUnit));r.computed(()=>{const f=s.value/60;return f%1===0?f.toString():f.toFixed(2)});const c=r.computed(()=>{var f;return(f=n.activities)==null?void 0:f.length}),u=r.computed(()=>{var f;return(f=n.activities)==null?void 0:f.filter(m=>nu(m,n.closedStatus)).length}),d=r.computed(()=>(u.value||0)/(c.value||1)),p=f=>{o("updateMilestone",{id:n.id,name:f})};return(f,m)=>(r.openBlock(),r.createBlock(hl,{class:r.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:r.withCtx(()=>[r.createElementVNode("div",Fpe,[r.createElementVNode("div",Rpe,[r.createVNode(Ppe,{color:t.color||""},null,8,["color"]),r.createElementVNode("div",zpe,[r.createVNode(ht,{id:t.id,title:t.name||"",level:5,"is-editable":!t.readonly&&t.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":p},null,8,["id","title","is-editable"]),i.value||s.value?(r.openBlock(),r.createElementBlock("span",Upe," ("+r.toDisplayString(l.value)+"/"+r.toDisplayString(i.value)+r.toDisplayString(a.value)+")",1)):r.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(r.openBlock(),r.createElementBlock("div",Hpe,[r.createVNode(de,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?f.$t("archive"):f.$t("unarchive"),onClick:m[0]||(m[0]=r.withModifiers(()=>t.active?f.$emit("archiveMilestone",{id:t.id}):f.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",qpe,[r.createElementVNode("div",jpe,[c.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",Wpe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",Zpe,r.toDisplayString(u.value)+" / "+r.toDisplayString(c.value),1)]),r.createVNode(gl,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):r.createCommentVNode("",!0),f.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Kpe,[r.renderSlot(f.$slots,"secondary")])):r.createCommentVNode("",!0)])])]),footer:r.withCtx(()=>[r.createElementVNode("div",Gpe,[t.important?(r.openBlock(),r.createBlock(ke,{key:0,name:"FlagRounded",class:r.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):r.createCommentVNode("",!0),t.deadline?(r.openBlock(),r.createElementBlock("label",Ype,[r.createElementVNode("span",Jpe,r.toDisplayString(r.unref(Mr)(t.deadline)),1)])):r.createCommentVNode("",!0),t.assignee?(r.openBlock(),r.createElementBlock("div",Xpe,[r.createVNode(Xt,{"user-name":r.unref(Hp)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):r.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const eme=["onKeydown"],xa=r.defineComponent({inheritAttrs:!1,__name:"AoPopoverMenu",props:{placement:{default:"bottom-start"}},emits:["open","close"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(!1),a=r.ref(null),l=r.ref(null),c=r.ref(null),u=()=>{const y=a.value;if(!y)return;const g=y.getBoundingClientRect();c.value={top:g.top,left:g.left,width:g.width,height:g.height}},d=r.computed(()=>{const y=c.value;if(!y)return{};const g=y.top+y.height+window.scrollY+4;return o.placement==="bottom-end"?{position:"absolute",top:`${g}px`,left:"auto",right:`${Math.max(0,window.innerWidth-(y.left+y.width+window.scrollX))}px`,zIndex:200}:{position:"absolute",top:`${g}px`,left:`${y.left+window.scrollX}px`,zIndex:200}}),p=async()=>{if(s.value)return;u(),s.value=!0,i("open"),await r.nextTick();const y=l.value;if(y){const g=y.querySelector('button, [href], [tabindex]:not([tabindex="-1"])');g==null||g.focus()}},f=()=>{s.value&&(s.value=!1,i("close"))},m=()=>{s.value?f():p()},h=y=>{var _,b;if(!s.value)return;const g=y.target;g&&((_=a.value)!=null&&_.contains(g)||(b=l.value)!=null&&b.contains(g)||f())},v=y=>{s.value&&y.key==="Escape"&&(y.preventDefault(),f())},C=()=>{s.value&&u()};return r.watch(s,y=>{y?(document.addEventListener("mousedown",h,!0),document.addEventListener("keydown",v,!0),window.addEventListener("resize",C),window.addEventListener("scroll",C,!0)):(document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",v,!0),window.removeEventListener("resize",C),window.removeEventListener("scroll",C,!0))}),r.onBeforeUnmount(()=>{document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",v,!0),window.removeEventListener("resize",C),window.removeEventListener("scroll",C,!0)}),e({open:p,close:f,toggle:m}),(y,g)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("span",r.mergeProps({ref_key:"triggerRef",ref:a,class:"ao-popover-menu"},y.$attrs),[r.renderSlot(y.$slots,"trigger",{open:p,toggle:m})],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[s.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"menuRef",ref:l,class:"ao-popover-menu__menu",style:r.normalizeStyle(d.value),role:"menu",onKeydown:r.withKeys(r.withModifiers(f,["stop"]),["esc"])},[r.renderSlot(y.$slots,"menu",{close:f})],44,eme)):r.createCommentVNode("",!0)]))],64))}});const Cp=["phase","milestone","activity","task"],Aa={indentSize:1,indentCharacter:" "};function tme(t){const e=Cp.indexOf(t);if(e<0)throw new Error(`Invalid root type: ${t}`);return Cp.slice(e)}function pd(t){return{rootType:t,levels:tme(t),indentSize:Aa.indentSize,indentCharacter:Aa.indentCharacter}}function nme(t=Aa){return t.indentCharacter.repeat(t.indentSize)}function ome(t,e=Aa){return nme(e).repeat(t)}function rme(t,e){const n=pd(t);return n.levels.map((o,i)=>`${ome(i,n)}${e(o)}`).join(`
58
+ */function Lo(t){let e={r:0,g:0,b:0,a:1};/#/.test(t)?e=spe(t):/rgb/.test(t)?e=_p(t):typeof t=="string"?e=_p(`rgba(${t})`):Object.prototype.toString.call(t)==="[object Object]"&&(e=t);const{r:n,g:o,b:i,a:s}=e,{h:a,s:l,v:c}=ape(e);return{r:n,g:o,b:i,a:s===void 0?1:s,h:a,s:l,v:c}}function id(t){const e=document.createElement("canvas"),n=e.getContext("2d"),o=t*2;return e.width=o,e.height=o,n.fillStyle="#ffffff",n.fillRect(0,0,o,o),n.fillStyle="#ccd5db",n.fillRect(0,0,t,t),n.fillRect(t,t,t,t),e}function Jc(t,e,n,o,i,s){const a=t==="l",l=e.createLinearGradient(0,0,a?n:0,a?0:o);l.addColorStop(.01,i),l.addColorStop(.99,s),e.fillStyle=l,e.fillRect(0,0,n,o)}function ipe({r:t,g:e,b:n},o){const i=a=>("0"+Number(a).toString(16)).slice(-2),s=`#${i(t)}${i(e)}${i(n)}`;return o?s.toUpperCase():s}function spe(t){t=t.slice(1);const e=n=>parseInt(n,16)||0;return{r:e(t.slice(0,2)),g:e(t.slice(2,4)),b:e(t.slice(4,6))}}function _p(t){return typeof t=="string"?(t=(/rgba?\((.*?)\)/.exec(t)||["","0,0,0,1"])[1].split(","),{r:Number(t[0])||0,g:Number(t[1])||0,b:Number(t[2])||0,a:Number(t[3]?t[3]:1)}):t}function ape({r:t,g:e,b:n}){t=t/255,e=e/255,n=n/255;const o=Math.max(t,e,n),i=Math.min(t,e,n),s=o-i;let a=0;o===i?a=0:o===t?e>=n?a=60*(e-n)/s:a=60*(e-n)/s+360:o===e?a=60*(n-t)/s+120:o===n&&(a=60*(t-e)/s+240),a=Math.floor(a);let l=parseFloat((o===0?0:1-i/o).toFixed(2)),c=parseFloat(o.toFixed(2));return{h:a,s:l,v:c}}var sd=r.defineComponent({props:{color:{type:String,default:"#000000"},hsv:{type:Object,default:null},size:{type:Number,default:152}},emits:["selectSaturation"],data(){return{slideSaturationStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasSaturation,e=this.size,n=t.getContext("2d");t.width=e,t.height=e,n.fillStyle=this.color,n.fillRect(0,0,e,e),Jc("l",n,e,e,"#FFFFFF","rgba(255,255,255,0)"),Jc("p",n,e,e,"rgba(0,0,0,0)","#000000")},renderSlide(){this.slideSaturationStyle={left:this.hsv.s*this.size-5+"px",top:(1-this.hsv.v)*this.size-5+"px"}},selectSaturation(t){const{top:e,left:n}=this.$el.getBoundingClientRect(),o=t.target.getContext("2d"),i=a=>{let l=a.clientX-n,c=a.clientY-e;l<0&&(l=0),c<0&&(c=0),l>this.size&&(l=this.size),c>this.size&&(c=this.size),this.slideSaturationStyle={left:l-5+"px",top:c-5+"px"};const u=o.getImageData(Math.min(l,this.size-1),Math.min(c,this.size-1),1,1),[d,p,f]=u.data;this.$emit("selectSaturation",{r:d,g:p,b:f})};i(t);const s=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",s)}}});const lpe={ref:"canvasSaturation"};function cpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"saturation",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectSaturation&&t.selectSaturation(...a),["prevent","stop"]))},[r.createVNode("canvas",lpe,null,512),r.createVNode("div",{style:t.slideSaturationStyle,class:"slide"},null,4)],32)}sd.render=cpe;sd.__file="src/color/Saturation.vue";var ad=r.defineComponent({props:{hsv:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectHue"],data(){return{slideHueStyle:{}}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasHue,e=this.width,n=this.height,o=t.getContext("2d");t.width=e,t.height=n;const i=o.createLinearGradient(0,0,0,n);i.addColorStop(0,"#FF0000"),i.addColorStop(.17*1,"#FF00FF"),i.addColorStop(.17*2,"#0000FF"),i.addColorStop(.17*3,"#00FFFF"),i.addColorStop(.17*4,"#00FF00"),i.addColorStop(.17*5,"#FFFF00"),i.addColorStop(1,"#FF0000"),o.fillStyle=i,o.fillRect(0,0,e,n)},renderSlide(){this.slideHueStyle={top:(1-this.hsv.h/360)*this.height-2+"px"}},selectHue(t){const{top:e}=this.$el.getBoundingClientRect(),n=t.target.getContext("2d"),o=s=>{let a=s.clientY-e;a<0&&(a=0),a>this.height&&(a=this.height),this.slideHueStyle={top:a-2+"px"};const l=n.getImageData(0,Math.min(a,this.height-1),1,1),[c,u,d]=l.data;this.$emit("selectHue",{r:c,g:u,b:d})};o(t);const i=()=>{document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",o),document.addEventListener("mouseup",i)}}});const upe={ref:"canvasHue"};function dpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"hue",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectHue&&t.selectHue(...a),["prevent","stop"]))},[r.createVNode("canvas",upe,null,512),r.createVNode("div",{style:t.slideHueStyle,class:"slide"},null,4)],32)}ad.render=dpe;ad.__file="src/color/Hue.vue";var ld=r.defineComponent({props:{color:{type:String,default:"#000000"},rgba:{type:Object,default:null},width:{type:Number,default:15},height:{type:Number,default:152}},emits:["selectAlpha"],data(){return{slideAlphaStyle:{},alphaSize:5}},watch:{color(){this.renderColor()},"rgba.a"(){this.renderSlide()}},mounted(){this.renderColor(),this.renderSlide()},methods:{renderColor(){const t=this.$refs.canvasAlpha,e=this.width,n=this.height,o=this.alphaSize,i=id(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(i,"repeat"),s.fillRect(0,0,e,n),Jc("p",s,e,n,"rgba(255,255,255,0)",this.color)},renderSlide(){this.slideAlphaStyle={top:this.rgba.a*this.height-2+"px"}},selectAlpha(t){const{top:e}=this.$el.getBoundingClientRect(),n=i=>{let s=i.clientY-e;s<0&&(s=0),s>this.height&&(s=this.height);let a=parseFloat((s/this.height).toFixed(2));this.$emit("selectAlpha",a)};n(t);const o=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",o)};document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)}}});const fpe={ref:"canvasAlpha"};function ppe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",{class:"color-alpha",onMousedown:e[1]||(e[1]=r.withModifiers((...a)=>t.selectAlpha&&t.selectAlpha(...a),["prevent","stop"]))},[r.createVNode("canvas",fpe,null,512),r.createVNode("div",{style:t.slideAlphaStyle,class:"slide"},null,4)],32)}ld.render=ppe;ld.__file="src/color/Alpha.vue";var cd=r.defineComponent({props:{color:{type:String,default:"#000000"},width:{type:Number,default:100},height:{type:Number,default:30}},data(){return{alphaSize:5}},watch:{color(){this.renderColor()}},mounted(){this.renderColor()},methods:{renderColor(){const t=this.$el,e=this.width,n=this.height,o=this.alphaSize,i=id(o),s=t.getContext("2d");t.width=e,t.height=n,s.fillStyle=s.createPattern(i,"repeat"),s.fillRect(0,0,e,n),s.fillStyle=this.color,s.fillRect(0,0,e,n)}}});function mpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("canvas")}cd.render=mpe;cd.__file="src/color/Preview.vue";var ud=r.defineComponent({props:{suckerCanvas:{type:Object,default:null},suckerArea:{type:Array,default:()=>[]}},data(){return{isOpenSucker:!1,suckerPreview:null,isSucking:!1}},watch:{suckerCanvas(t){this.isSucking=!1,this.suckColor(t)}},methods:{openSucker(){this.isOpenSucker?this.keydownHandler({keyCode:27}):(this.isOpenSucker=!0,this.isSucking=!0,this.$emit("openSucker",!0),document.addEventListener("keydown",this.keydownHandler))},keydownHandler(t){t.keyCode===27&&(this.isOpenSucker=!1,this.isSucking=!1,this.$emit("openSucker",!1),document.removeEventListener("keydown",this.keydownHandler),document.removeEventListener("mousemove",this.mousemoveHandler),document.removeEventListener("mouseup",this.mousemoveHandler),this.suckerPreview&&(document.body.removeChild(this.suckerPreview),this.suckerPreview=null))},mousemoveHandler(t){const{clientX:e,clientY:n}=t,{top:o,left:i,width:s,height:a}=this.suckerCanvas.getBoundingClientRect(),l=e-i,c=n-o,d=this.suckerCanvas.getContext("2d").getImageData(Math.min(l,s-1),Math.min(c,a-1),1,1);let[p,f,m,h]=d.data;h=parseFloat((h/255).toFixed(2));const v=this.suckerPreview.style;Object.assign(v,{position:"absolute",left:e+20+"px",top:n-36+"px",width:"24px",height:"24px",borderRadius:"50%",border:"2px solid #fff",boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.16)",background:`rgba(${p}, ${f}, ${m}, ${h})`,zIndex:95}),this.suckerArea.length&&e>=this.suckerArea[0]&&n>=this.suckerArea[1]&&e<=this.suckerArea[2]&&n<=this.suckerArea[3]?v.display="":v.display="none"},suckColor(t){t&&t.tagName!=="CANVAS"||(this.suckerPreview=document.createElement("div"),this.suckerPreview&&document.body.appendChild(this.suckerPreview),document.addEventListener("mousemove",this.mousemoveHandler),document.addEventListener("mouseup",this.mousemoveHandler),t.addEventListener("click",e=>{const{clientX:n,clientY:o}=e,{top:i,left:s,width:a,height:l}=t.getBoundingClientRect(),c=n-s,u=o-i,p=t.getContext("2d").getImageData(Math.min(c,a-1),Math.min(u,l-1),1,1);let[f,m,h,v]=p.data;v=parseFloat((v/255).toFixed(2)),this.$emit("selectSucker",{r:f,g:m,b:h,a:v})}))}}});const hpe=r.createVNode("path",{d:"M13.1,8.2l5.6,5.6c0.4,0.4,0.5,1.1,0.1,1.5s-1.1,0.5-1.5,0.1c0,0-0.1,0-0.1-0.1l-1.4-1.4l-7.7,7.7C7.9,21.9,7.6,22,7.3,22H3.1C2.5,22,2,21.5,2,20.9l0,0v-4.2c0-0.3,0.1-0.6,0.3-0.8l5.8-5.8C8.5,9.7,9.2,9.6,9.7,10s0.5,1.1,0.1,1.5c0,0,0,0.1-0.1,0.1l-5.5,5.5v2.7h2.7l7.4-7.4L8.7,6.8c-0.5-0.4-0.5-1-0.1-1.5s1.1-0.5,1.5-0.1c0,0,0.1,0,0.1,0.1l1.4,1.4l3.5-3.5c1.6-1.6,4.1-1.6,5.8-0.1c1.6,1.6,1.6,4.1,0.1,5.8L20.9,9l-3.6,3.6c-0.4,0.4-1.1,0.5-1.5,0.1"},null,-1),gpe={key:1,class:"sucker",viewBox:"-16 -16 68 68",xmlns:"http://www.w3.org/2000/svg",stroke:"#9099a4"},vpe=r.createVNode("g",{fill:"none","fill-rule":"evenodd"},[r.createVNode("g",{transform:"translate(1 1)","stroke-width":"4"},[r.createVNode("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),r.createVNode("path",{d:"M36 18c0-9.94-8.06-18-18-18"},[r.createVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})])])],-1);function ype(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[t.isSucking?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock("svg",{key:0,class:[{active:t.isOpenSucker},"sucker"],xmlns:"http://www.w3.org/2000/svg",viewBox:"-12 -12 48 48",onClick:e[1]||(e[1]=(...a)=>t.openSucker&&t.openSucker(...a))},[hpe],2)),t.isSucking?(r.openBlock(),r.createBlock("svg",gpe,[vpe])):r.createCommentVNode("v-if",!0)])}ud.render=ype;ud.__file="src/color/Sucker.vue";var dd=r.defineComponent({props:{name:{type:String,default:""},color:{type:String,default:""}},emits:["inputColor","inputFocus","inputBlur"],setup(t,{emit:e}){return{modelColor:r.computed({get(){return t.color||""},set(s){e("inputColor",s)}}),handleFocus:s=>{e("inputFocus",s)},handleBlur:s=>{e("inputBlur",s)}}}});const _pe={class:"color-type"},Cpe={class:"name"};function bpe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",_pe,[r.createVNode("span",Cpe,r.toDisplayString(t.name),1),r.withDirectives(r.createVNode("input",{"onUpdate:modelValue":e[1]||(e[1]=a=>t.modelColor=a),class:"value",onFocus:e[2]||(e[2]=(...a)=>t.handleFocus&&t.handleFocus(...a)),onBlur:e[3]||(e[3]=(...a)=>t.handleBlur&&t.handleBlur(...a))},null,544),[[r.vModelText,t.modelColor]])])}dd.render=bpe;dd.__file="src/color/Box.vue";var fd=r.defineComponent({name:"ColorPicker",props:{color:{type:String,default:"#000000"},colorsDefault:{type:Array,default:()=>[]},colorsHistoryKey:{type:String,default:""}},emits:["selectColor"],setup(t,{emit:e}){const n=r.ref(),o=r.ref([]),i=r.ref();t.colorsHistoryKey&&localStorage&&(o.value=JSON.parse(localStorage.getItem(t.colorsHistoryKey))||[]),i.value=id(4).toDataURL(),r.onUnmounted(()=>{s(n.value)});function s(l){if(!l)return;const c=o.value||[],u=c.indexOf(l);u>=0&&c.splice(u,1),c.length>=8&&(c.length=7),c.unshift(l),o.value=c||[],localStorage&&t.colorsHistoryKey&&localStorage.setItem(t.colorsHistoryKey,JSON.stringify(c))}function a(l){e("selectColor",l)}return{setColorsHistory:s,colorsHistory:o,color:n,imgAlphaBase64:i,selectColor:a}}});const kpe={class:"colors"},wpe={key:0,class:"colors history"};function Epe(t,e,n,o,i,s){return r.openBlock(),r.createBlock("div",null,[r.createVNode("ul",kpe,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(t.colorsDefault,a=>(r.openBlock(),r.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[r.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),r.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))]),t.colorsHistory.length?(r.openBlock(),r.createBlock("ul",wpe,[(r.openBlock(!0),r.createBlock(r.Fragment,null,r.renderList(t.colorsHistory,a=>(r.openBlock(),r.createBlock("li",{key:a,class:"item",onClick:l=>t.selectColor(a)},[r.createVNode("div",{style:{background:`url(${t.imgAlphaBase64})`},class:"alpha"},null,4),r.createVNode("div",{style:{background:a},class:"color"},null,4)],8,["onClick"]))),128))])):r.createCommentVNode("v-if",!0)])}fd.render=Epe;fd.__file="src/color/Colors.vue";var $r=r.defineComponent({components:{Saturation:sd,Hue:ad,Alpha:ld,Preview:cd,Sucker:ud,Box:dd,Colors:fd},emits:["changeColor","openSucker","inputFocus","inputBlur"],props:{color:{type:String,default:"#000000"},theme:{type:String,default:"dark"},suckerHide:{type:Boolean,default:!0},suckerCanvas:{type:null,default:null},suckerArea:{type:Array,default:()=>[]},colorsDefault:{type:Array,default:()=>["#000000","#FFFFFF","#FF1900","#F47365","#FFB243","#FFE623","#6EFF2A","#1BC7B1","#00BEFF","#2E81FF","#5D61FF","#FF89CF","#FC3CAD","#BF3DCE","#8E00A7","rgba(0,0,0,0)"]},colorsHistoryKey:{type:String,default:"vue-colorpicker-history"}},data(){return{hueWidth:15,hueHeight:152,previewHeight:30,modelRgba:"",modelHex:"",r:0,g:0,b:0,a:1,h:0,s:0,v:0}},computed:{isLightTheme(){return this.theme==="light"},totalWidth(){return this.hueHeight+(this.hueWidth+8)*2},previewWidth(){return this.totalWidth-(this.suckerHide?0:this.previewHeight)},rgba(){return{r:this.r,g:this.g,b:this.b,a:this.a}},hsv(){return{h:this.h,s:this.s,v:this.v}},rgbString(){return`rgb(${this.r}, ${this.g}, ${this.b})`},rgbaStringShort(){return`${this.r}, ${this.g}, ${this.b}, ${this.a}`},rgbaString(){return`rgba(${this.rgbaStringShort})`},hexString(){return ipe(this.rgba,!0)}},created(){Object.assign(this,Lo(this.color)),this.setText(),this.$watch("rgba",()=>{this.$emit("changeColor",{rgba:this.rgba,hsv:this.hsv,hex:this.modelHex})})},methods:{selectSaturation(t){const{r:e,g:n,b:o,h:i,s,v:a}=Lo(t);Object.assign(this,{r:e,g:n,b:o,h:i,s,v:a}),this.setText()},handleFocus(t){this.$emit("inputFocus",t)},handleBlur(t){this.$emit("inputBlur",t)},selectHue(t){const{r:e,g:n,b:o,h:i,s,v:a}=Lo(t);Object.assign(this,{r:e,g:n,b:o,h:i,s,v:a}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide()})},selectAlpha(t){this.a=t,this.setText()},inputHex(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.modelHex=t,this.modelRgba=this.rgbaStringShort,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},inputRgba(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.modelHex=this.hexString,this.modelRgba=t,this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},setText(){this.modelHex=this.hexString,this.modelRgba=this.rgbaStringShort},openSucker(t){this.$emit("openSucker",t)},selectSucker(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})},selectColor(t){const{r:e,g:n,b:o,a:i,h:s,s:a,v:l}=Lo(t);Object.assign(this,{r:e,g:n,b:o,a:i,h:s,s:a,v:l}),this.setText(),this.$nextTick(()=>{this.$refs.saturation.renderColor(),this.$refs.saturation.renderSlide(),this.$refs.hue.renderSlide()})}}});const Spe={class:"color-set"};function xpe(t,e,n,o,i,s){const a=r.resolveComponent("Saturation"),l=r.resolveComponent("Hue"),c=r.resolveComponent("Alpha"),u=r.resolveComponent("Preview"),d=r.resolveComponent("Sucker"),p=r.resolveComponent("Box"),f=r.resolveComponent("Colors");return r.openBlock(),r.createBlock("div",{class:["hu-color-picker",{light:t.isLightTheme}],style:{width:t.totalWidth+"px"}},[r.createVNode("div",Spe,[r.createVNode(a,{ref:"saturation",color:t.rgbString,hsv:t.hsv,size:t.hueHeight,onSelectSaturation:t.selectSaturation},null,8,["color","hsv","size","onSelectSaturation"]),r.createVNode(l,{ref:"hue",hsv:t.hsv,width:t.hueWidth,height:t.hueHeight,onSelectHue:t.selectHue},null,8,["hsv","width","height","onSelectHue"]),r.createVNode(c,{ref:"alpha",color:t.rgbString,rgba:t.rgba,width:t.hueWidth,height:t.hueHeight,onSelectAlpha:t.selectAlpha},null,8,["color","rgba","width","height","onSelectAlpha"])]),r.createVNode("div",{style:{height:t.previewHeight+"px"},class:"color-show"},[r.createVNode(u,{color:t.rgbaString,width:t.previewWidth,height:t.previewHeight},null,8,["color","width","height"]),t.suckerHide?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(d,{key:0,"sucker-canvas":t.suckerCanvas,"sucker-area":t.suckerArea,onOpenSucker:t.openSucker,onSelectSucker:t.selectSucker},null,8,["sucker-canvas","sucker-area","onOpenSucker","onSelectSucker"]))],4),r.createVNode(p,{name:"HEX",color:t.modelHex,onInputColor:t.inputHex,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(p,{name:"RGBA",color:t.modelRgba,onInputColor:t.inputRgba,onInputFocus:t.handleFocus,onInputBlur:t.handleBlur},null,8,["color","onInputColor","onInputFocus","onInputBlur"]),r.createVNode(f,{color:t.rgbaString,"colors-default":t.colorsDefault,"colors-history-key":t.colorsHistoryKey,onSelectColor:t.selectColor},null,8,["color","colors-default","colors-history-key","onSelectColor"]),r.createCommentVNode(" custom options "),r.renderSlot(t.$slots,"default")],6)}$r.render=xpe;$r.__file="src/color/ColorPicker.vue";$r.install=t=>{t.component($r.name,$r)};const Ape={class:"color-picker-wrapper"},ti=r.defineComponent({__name:"AoColorPicker",props:{color:{}},emits:["update:color"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),s=r.ref(null),a=r.ref(0),l=r.ref(0),c=r.ref(n.color),u=async h=>{c.value=n.color,i.value=!0,await r.nextTick();const v=h.getBoundingClientRect(),C=s.value,y=(C==null?void 0:C.offsetHeight)||300,g=window.innerHeight-v.bottom,_=v.top,b=g<y&&_>y;a.value=b?v.top-y-8:v.bottom+8,l.value=v.left,setTimeout(()=>{window.addEventListener("pointerdown",f,!0)},0)},d=r.computed(()=>({position:"fixed",top:`${a.value}px`,left:`${l.value}px`,zIndex:1e3})),p=()=>{i.value=!1,c.value!==n.color&&o("update:color",c.value),window.removeEventListener("pointerdown",f,!0)},f=h=>{const v=h.target;s.value&&!s.value.contains(v)&&p()},m=h=>{const{r:v,g:C,b:y,a:g}=h.rgba;c.value=`rgba(${v}, ${C}, ${y}, ${g})`};return r.watch(()=>n.color,h=>{i.value||(c.value=h)}),r.onBeforeUnmount(()=>{window.removeEventListener("pointerdown",f,!0)}),(h,v)=>(r.openBlock(),r.createElementBlock("div",Ape,[r.renderSlot(h.$slots,"clickable",{openPicker:u,bgColor:c.value}),i.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"pickerRef",ref:s,class:"color-picker",style:r.normalizeStyle(d.value)},[r.createVNode(r.unref($r),{class:"color-picker-box",theme:"light",color:c.value,onChangeColor:m},null,8,["color"])],4)):r.createCommentVNode("",!0)]))}});const Tpe={class:"ao-card-project-phase__header"},Npe={class:"ao-card-project-item__title-line"},Dpe={key:0,class:"ao-card-project-item-phase__estimation"},$pe={class:"ao-card-project-phase__footer"},Bpe={key:0,class:"ao-card-project-phase__footer-row ao-card-project-phase__footer-row--progress"},Mpe={class:"ao-card-project-phase__subitem"},Lpe={class:"ao-card-project-phase__subitem"},Ope={key:0,class:"ao-card-project-phase__secondary"},Vpe={class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--readonly"},Ipe=r.defineComponent({__name:"AoCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","unarchivePhase","updatePhase"],setup(t,{emit:e}){const n=t,o=e,i=v=>{o("update:title",v)},s=r.computed(()=>{var v;return((v=n.milestones)==null?void 0:v.reduce((C,y)=>{var g;return C+((g=y.activities)==null?void 0:g.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((v,C)=>{var y;return v+(((y=C.activities)==null?void 0:y.reduce((g,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return g+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"":"h"),c=r.computed(()=>La(a.value,n.estimationUnit)),u=r.computed(()=>{var v;return(v=n.milestones)==null?void 0:v.length}),d=r.computed(()=>{var v;return(v=n.milestones)==null?void 0:v.filter(C=>C.status===Pi.done).length}),p=r.computed(()=>(d.value||0)/(u.value||1)),f=r.computed({get:()=>n.deadline??"",set:v=>o("update:deadline",v!=null&&v.length?v:null)}),m=r.computed({get:()=>n.color,set:v=>{o("updatePhase",{id:n.id,color:v})}}),h=(v,C)=>{const y=v.target;y.closest("button")||y.closest("input")||y.closest(".ao-title")||C(y)};return(v,C)=>(r.openBlock(),r.createBlock(ti,{color:m.value,"onUpdate:color":C[2]||(C[2]=y=>m.value=y)},{clickable:r.withCtx(({openPicker:y,bgColor:g})=>[r.createVNode(hl,{class:"ao-card-project-phase","is-clickable":t.isEditable,color:g,"with-left-border":!0,onClick:_=>h(_,y)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",Npe,[r.createVNode(ht,{id:t.id,class:"ao-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":i},null,8,["id","title","is-editable"]),s.value||a.value?(r.openBlock(),r.createElementBlock("span",Dpe," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",$pe,[u.value?(r.openBlock(),r.createElementBlock("div",Bpe,[r.createElementVNode("div",Mpe,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",Lpe,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(gl,{percentages:p.value,class:"ao-card-project-phase__progress",color:t.color},null,8,["percentages","color"]),v.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Ope,[r.renderSlot(v.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-card-project-phase__footer-row",f.value?"":"ao-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=_=>f.value=_),class:"ao-card-project-phase__deadline ao-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,f.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",Vpe,r.toDisplayString(r.unref(Mr)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",Tpe,[r.createVNode(de,{class:"ao-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?v.$t("archive"):v.$t("unarchive"),onClick:C[0]||(C[0]=r.withModifiers(()=>t.active?v.$emit("archivePhase",{id:t.id}):v.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Ppe=r.defineComponent({__name:"AoBadge",props:{color:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("span",{class:"aoBadge",style:r.normalizeStyle({backgroundColor:t.color})},null,4))}});const Fpe={class:"ao-card-project-milestone__default"},Rpe={class:"ao-title-with-badge-wrapper"},zpe={class:"ao-card-project-item__title-line"},Upe={key:0,class:"ao-card-project-item-milestone__estimation"},Hpe={key:0,class:"ao-card-project-milestone__archive"},qpe={class:"ao-card-project-milestone__activities"},jpe={class:"ao-card-project-milestone__activities-row"},Wpe={class:"ao-card-project-milestone__subitem"},Zpe={class:"ao-card-project-milestone__subitem"},Kpe={key:1,class:"ao-card-project-milestone__secondary"},Gpe={class:"ao-card-project-milestone__footer"},Ype={key:1,class:"ao-field ao-card-project-milestone__deadline"},Jpe={class:"ao-field__label"},Xpe={key:2,class:"ao-card-project-milestone__assignee"},Qpe=r.defineComponent({__name:"AoCardProjectItemMilestone",props:{id:{},name:{},color:{},phaseColor:{},activities:{},closedStatus:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},isSelected:{type:Boolean},assignee:{},important:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["updateMilestone","archiveMilestone","unarchiveMilestone"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var f;return((f=n.activities)==null?void 0:f.reduce((m,h)=>m+(h.estimation||0),0))||0}),s=r.computed(()=>!n.activities||!n.timeTrackingData?0:n.activities.reduce((f,m)=>{var v;const h=(v=n.timeTrackingData)==null?void 0:v[m.id];return f+((h==null?void 0:h.timeSpent)||0)},0)),a=r.computed(()=>n.estimationUnit==="days"?"":"h"),l=r.computed(()=>La(s.value,n.estimationUnit));r.computed(()=>{const f=s.value/60;return f%1===0?f.toString():f.toFixed(2)});const c=r.computed(()=>{var f;return(f=n.activities)==null?void 0:f.length}),u=r.computed(()=>{var f;return(f=n.activities)==null?void 0:f.filter(m=>nu(m,n.closedStatus)).length}),d=r.computed(()=>(u.value||0)/(c.value||1)),p=f=>{o("updateMilestone",{id:n.id,name:f})};return(f,m)=>(r.openBlock(),r.createBlock(hl,{class:r.normalizeClass(["ao-card-project-milestone"]),"is-clickable":!t.readonly,"tag-name":"li","is-selected":t.isSelected,color:t.phaseColor},{default:r.withCtx(()=>[r.createElementVNode("div",Fpe,[r.createElementVNode("div",Rpe,[r.createVNode(Ppe,{color:t.color||""},null,8,["color"]),r.createElementVNode("div",zpe,[r.createVNode(ht,{id:t.id,title:t.name||"",level:5,"is-editable":!t.readonly&&t.isEditable,class:"ao-card-project-milestone__title","onUpdate:title":p},null,8,["id","title","is-editable"]),i.value||s.value?(r.openBlock(),r.createElementBlock("span",Upe," ("+r.toDisplayString(l.value)+"/"+r.toDisplayString(i.value)+r.toDisplayString(a.value)+")",1)):r.createCommentVNode("",!0)])]),!t.readonly&&t.isEditable?(r.openBlock(),r.createElementBlock("div",Hpe,[r.createVNode(de,{color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?f.$t("archive"):f.$t("unarchive"),onClick:m[0]||(m[0]=r.withModifiers(()=>t.active?f.$emit("archiveMilestone",{id:t.id}):f.$emit("unarchiveMilestone",{id:t.id}),["stop"]))},null,8,["label"])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",qpe,[r.createElementVNode("div",jpe,[c.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",Wpe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",Zpe,r.toDisplayString(u.value)+" / "+r.toDisplayString(c.value),1)]),r.createVNode(gl,{percentages:d.value,color:t.phaseColor,class:"ao-card-project-milestone__progress"},null,8,["percentages","color"])],64)):r.createCommentVNode("",!0),f.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Kpe,[r.renderSlot(f.$slots,"secondary")])):r.createCommentVNode("",!0)])])]),footer:r.withCtx(()=>[r.createElementVNode("div",Gpe,[t.important?(r.openBlock(),r.createBlock(ke,{key:0,name:"FlagRounded",class:r.normalizeClass(t.isSelected?"ao-card-project-milestone__important--selected":"ao-card-project-milestone__important"),size:"sm"},null,8,["class"])):r.createCommentVNode("",!0),t.deadline?(r.openBlock(),r.createElementBlock("label",Ype,[r.createElementVNode("span",Jpe,r.toDisplayString(r.unref(Mr)(t.deadline)),1)])):r.createCommentVNode("",!0),t.assignee?(r.openBlock(),r.createElementBlock("div",Xpe,[r.createVNode(Xt,{"user-name":r.unref(Hp)(t.assignee),"avatar-url":t.assignee.avatarUrl,color:t.isSelected?"black":"primary",size:"sm"},null,8,["user-name","avatar-url","color"])])):r.createCommentVNode("",!0)])]),_:3},8,["is-clickable","is-selected","color"]))}});const eme=["onKeydown"],xa=r.defineComponent({inheritAttrs:!1,__name:"AoPopoverMenu",props:{placement:{default:"bottom-start"}},emits:["open","close"],setup(t,{expose:e,emit:n}){const o=t,i=n,s=r.ref(!1),a=r.ref(null),l=r.ref(null),c=r.ref(null),u=()=>{const y=a.value;if(!y)return;const g=y.getBoundingClientRect();c.value={top:g.top,left:g.left,width:g.width,height:g.height}},d=r.computed(()=>{const y=c.value;if(!y)return{};const g=y.top+y.height+window.scrollY+4;return o.placement==="bottom-end"?{position:"absolute",top:`${g}px`,left:"auto",right:`${Math.max(0,window.innerWidth-(y.left+y.width+window.scrollX))}px`,zIndex:200}:{position:"absolute",top:`${g}px`,left:`${y.left+window.scrollX}px`,zIndex:200}}),p=async()=>{if(s.value)return;u(),s.value=!0,i("open"),await r.nextTick();const y=l.value;if(y){const g=y.querySelector('button, [href], [tabindex]:not([tabindex="-1"])');g==null||g.focus()}},f=()=>{s.value&&(s.value=!1,i("close"))},m=()=>{s.value?f():p()},h=y=>{var _,b;if(!s.value)return;const g=y.target;g&&((_=a.value)!=null&&_.contains(g)||(b=l.value)!=null&&b.contains(g)||f())},v=y=>{s.value&&y.key==="Escape"&&(y.preventDefault(),f())},C=()=>{s.value&&u()};return r.watch(s,y=>{y?(document.addEventListener("mousedown",h,!0),document.addEventListener("keydown",v,!0),window.addEventListener("resize",C),window.addEventListener("scroll",C,!0)):(document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",v,!0),window.removeEventListener("resize",C),window.removeEventListener("scroll",C,!0))}),r.onBeforeUnmount(()=>{document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",v,!0),window.removeEventListener("resize",C),window.removeEventListener("scroll",C,!0)}),e({open:p,close:f,toggle:m}),(y,g)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("span",r.mergeProps({ref_key:"triggerRef",ref:a,class:"ao-popover-menu"},y.$attrs),[r.renderSlot(y.$slots,"trigger",{open:p,toggle:m})],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[s.value?(r.openBlock(),r.createElementBlock("div",{key:0,ref_key:"menuRef",ref:l,class:"ao-popover-menu__menu",style:r.normalizeStyle(d.value),role:"menu",onKeydown:r.withKeys(r.withModifiers(f,["stop"]),["esc"])},[r.renderSlot(y.$slots,"menu",{close:f})],44,eme)):r.createCommentVNode("",!0)]))],64))}});const Cp=["phase","milestone","activity","task"],Aa={indentSize:1,indentCharacter:" "};function tme(t){const e=Cp.indexOf(t);if(e<0)throw new Error(`Invalid root type: ${t}`);return Cp.slice(e)}function pd(t){return{rootType:t,levels:tme(t),indentSize:Aa.indentSize,indentCharacter:Aa.indentCharacter}}function nme(t=Aa){return t.indentCharacter.repeat(t.indentSize)}function ome(t,e=Aa){return nme(e).repeat(t)}function rme(t,e){const n=pd(t);return n.levels.map((o,i)=>`${ome(i,n)}${e(o)}`).join(`
59
59
  `)}function ime(t,e,n){var i;const o=((i=t.match(/^\s*/))==null?void 0:i[0])??"";return[...o].some(s=>s!==e)?{code:"INVALID_INDENTATION_CHARACTER"}:o.length%n!==0?{code:"INVALID_INDENTATION_SIZE",params:{expected:n,found:o.length}}:{level:o.length/n,content:t.slice(o.length).trim()}}function sme(t,e){const n=pd(e),o=[],i=[],s=[];if(!t||t.trim().length===0)return{valid:!0,data:[],errors:[]};const a=t.split(/\r?\n/);for(let l=0;l<a.length;l+=1){const c=l+1,u=a[l];if(u.trim().length===0)continue;const d=ime(u,n.indentCharacter,n.indentSize);if("code"in d){o.push({line:c,code:d.code,params:d.params});continue}const{level:p,content:f}=d,m=n.levels[p];if(!m){o.push({line:c,code:"TOO_MANY_INDENTATION_LEVELS",params:{max:n.levels.length-1}});continue}if(p>0&&!s[p-1]){const v=n.levels[p-1];o.push({line:c,code:"EXPECTED_PARENT_BEFORE",params:{parent:v,child:m}});continue}const h={type:m,name:f,children:[]};p===0?i.push(h):s[p-1].children.push(h),s[p]=h,s.length=p+1}return{valid:o.length===0,data:i,errors:o}}const ame=["onKeydown"],lme={class:"ao-modal ao-bulk-insert-modal"},cme={class:"ao-modal__header"},ume={class:"ao-modal__header-meta"},dme={class:"ao-modal__title-group"},fme={class:"ao-modal__body ao-bulk-insert-modal__body"},pme={key:0,class:"ao-bulk-insert-modal__intro"},mme=["placeholder","disabled"],hme={key:1,class:"ao-bulk-insert-modal__errors"},gme={key:2,class:"ao-bulk-insert-modal__count"},vme={class:"ao-bulk-insert-modal__help"},yme={class:"ao-bulk-insert-modal__help-title"},_me={class:"ao-bulk-insert-modal__help-list"},Cme={class:"ao-bulk-insert-modal__help-entity"},bme={class:"ao-bulk-insert-modal__help-rule"},kme={class:"ao-bulk-insert-modal__footer"},md=r.defineComponent({__name:"AoBulkInsertModal",props:{open:{type:Boolean,default:!0},title:{},rootType:{},hint:{default:""},placeholder:{default:""},isLoading:{type:Boolean,default:!1},size:{default:"md"}},emits:["update:open","submit","close"],setup(t,{emit:e}){const n=t,o=e,{t:i}=yt(),s=r.ref(""),a=r.ref(null),l={phase:"project.bulk.entity.phase",milestone:"project.bulk.entity.milestone",activity:"project.bulk.entity.activity",task:"project.bulk.entity.task"},c={INVALID_INDENTATION_CHARACTER:"project.bulk.parser.invalidIndentationCharacter",INVALID_INDENTATION_SIZE:"project.bulk.parser.invalidIndentationSize",TOO_MANY_INDENTATION_LEVELS:"project.bulk.parser.tooManyIndentationLevels",EXPECTED_PARENT_BEFORE:"project.bulk.parser.expectedParentBefore"},u=r.computed(()=>pd(n.rootType)),d=r.computed(()=>sme(s.value,n.rootType)),p=b=>String(i(l[b])),f=r.computed(()=>`${rme(n.rootType,p).split(`
60
60
  `).map(k=>k.trim()?`${k} 1`:k).join(`
61
61
  `)}
62
- ...`),m=r.computed(()=>n.placeholder||f.value),h=r.computed(()=>s.value.trim().length>0&&d.value.valid&&d.value.data.length>0&&!n.isLoading),v=r.computed(()=>{const b=w=>w.reduce((k,x)=>k+1+b(x.children??[]),0);return b(d.value.data)});r.watch(()=>n.open,async b=>{var w;b&&(s.value="",await r.nextTick(),(w=a.value)==null||w.focus())},{immediate:!0});const C=()=>{n.isLoading||(o("update:open",!1),o("close"))},y=()=>{h.value&&o("submit",d.value.data)},g=b=>String(b===0?i("project.bulk.modal.noSpace"):b===1?i("project.bulk.modal.oneSpace"):i("project.bulk.modal.spaces",{count:b})),_=b=>String(i(c[b.code],b.params??{}));return(b,w)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.open?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-modal__wrapper","ao-bulk-insert-modal__wrapper",`ao-modal__wrapper--${t.size}`]),onKeydown:r.withKeys(r.withModifiers(C,["stop"]),["esc"])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:C}),r.createElementVNode("div",lme,[r.createElementVNode("div",cme,[r.createElementVNode("div",ume,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:C})]),r.createElementVNode("header",dme,[r.createVNode(ht,{title:t.title,level:3},null,8,["title"])])]),r.createElementVNode("div",fme,[r.createElementVNode("form",{class:"ao-bulk-insert-modal__form",onSubmit:r.withModifiers(y,["prevent"])},[t.hint?(r.openBlock(),r.createElementBlock("p",pme,r.toDisplayString(t.hint),1)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("textarea",{ref_key:"textareaRef",ref:a,"onUpdate:modelValue":w[0]||(w[0]=k=>s.value=k),class:"ao-bulk-insert-modal__textarea",placeholder:m.value,disabled:t.isLoading,rows:"9",spellcheck:"false"},null,8,mme),[[r.vModelText,s.value]]),d.value.errors.length>0?(r.openBlock(),r.createElementBlock("div",hme,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value.errors,k=>(r.openBlock(),r.createElementBlock("p",{key:`${k.line}-${k.code}`,class:"ao-bulk-insert-modal__error"},r.toDisplayString(r.unref(i)("project.bulk.modal.lineError",{line:k.line,message:_(k)})),1))),128))])):s.value.trim().length>0?(r.openBlock(),r.createElementBlock("p",gme,r.toDisplayString(r.unref(i)("project.bulk.modal.count",{count:v.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",vme,[r.createElementVNode("span",yme,r.toDisplayString(r.unref(i)("project.bulk.modal.indentation")),1),r.createElementVNode("div",_me,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value.levels,(k,x)=>(r.openBlock(),r.createElementBlock("div",{key:k,class:"ao-bulk-insert-modal__help-row"},[r.createElementVNode("span",Cme,r.toDisplayString(p(k)),1),r.createElementVNode("span",bme,r.toDisplayString(g(x)),1)]))),128))])]),r.createElementVNode("footer",kme,[r.createVNode(de,{color:"primary",variant:"ghost",label:r.unref(i)("common.cancel"),disabled:t.isLoading,onClick:C},null,8,["label","disabled"]),r.createVNode(de,{type:"submit",color:"primary",variant:"solid",label:r.unref(i)("common.create"),"is-loading":t.isLoading,disabled:!h.value},null,8,["label","is-loading","disabled"])])],32)])])],42,ame)):r.createCommentVNode("",!0)]))}});function hd(t,e){return(t.children??[]).filter(n=>n.type===e)}function wme(t){return hd(t,"task").map(e=>({name:e.name}))}function Kg(t,e=[]){const n=t.filter(i=>i.type==="activity"),o=tu(e,n.length);return n.map((i,s)=>{const a=wme(i);return{name:i.name,rank:o[s],...a.length?{tasks:a}:{}}})}function Eme(t,e){return Kg(t,e)}function Gg(t,e){const n=t.filter(i=>i.type==="milestone"),o=tu(e,n.length);return n.map((i,s)=>{const a=Kg(hd(i,"activity"));return{name:i.name,rank:o[s],...a.length?{activities:a}:{}}})}function Sme(t,e){const n=t.filter(i=>i.type==="phase"),o=tu(e,n.length);return n.map((i,s)=>{const a=Gg(hd(i,"milestone"),[]);return{name:i.name,rank:o[s],...a.length?{milestones:a}:{}}})}const xme={class:"ao-mapping-card-project-phase__header"},Ame={class:"ao-card-project-item__title-line"},Tme={key:0,class:"ao-card-project-item-phase__estimation"},Nme={class:"ao-mapping-card-project-phase__footer"},Dme={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},$me={class:"ao-mapping-card-project-phase__subitem"},Bme={class:"ao-mapping-card-project-phase__subitem"},Mme={key:0,class:"ao-mapping-card-project-phase__secondary"},Lme={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Ome=r.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e,i=v=>{o("update:title",v)},s=r.computed(()=>{var v;return((v=n.milestones)==null?void 0:v.reduce((C,y)=>{var g;return C+((g=y.activities)==null?void 0:g.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((v,C)=>{var y;return v+(((y=C.activities)==null?void 0:y.reduce((g,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return g+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"d":"h"),c=r.computed(()=>La(a.value,n.estimationUnit)),u=r.computed(()=>{var v;return(v=n.milestones)==null?void 0:v.length}),d=r.computed(()=>{var v;return(v=n.milestones)==null?void 0:v.filter(C=>C.status===Pi.done).length}),p=r.computed(()=>(d.value||0)/(u.value||1)),f=r.computed({get:()=>n.deadline??"",set:v=>o("update:deadline",v!=null&&v.length?v:null)}),m=r.computed({get:()=>n.color,set:v=>{o("updatePhase",{id:n.id,color:v})}}),h=(v,C)=>{const y=v.target;y.closest("button")||y.closest("input")||y.closest(".ao-title")||C()};return(v,C)=>(r.openBlock(),r.createBlock(ti,{color:m.value,"onUpdate:color":C[2]||(C[2]=y=>m.value=y)},{clickable:r.withCtx(({openPicker:y,bgColor:g})=>[r.createVNode(hl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:g,"with-left-border":!0,onClick:_=>h(_,y)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",Ame,[r.createVNode(ht,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":i},null,8,["id","title","is-editable"]),s.value||a.value?(r.openBlock(),r.createElementBlock("span",Tme," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",Nme,[u.value?(r.openBlock(),r.createElementBlock("div",Dme,[r.createElementVNode("div",$me,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",Bme,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(gl,{percentages:p.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),v.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Mme,[r.renderSlot(v.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-mapping-card-project-phase__footer-row",f.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=_=>f.value=_),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,f.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",Lme,r.toDisplayString(r.unref(Mr)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",xme,[r.createVNode(de,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?v.$t("archive"):v.$t("unarchive"),onClick:C[0]||(C[0]=r.withModifiers(()=>t.active?v.$emit("archivePhase",{id:t.id}):v.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Vme={class:"ao-project-phase"},Ime={key:0,class:"ao-project-phase__drag ao-card__drag"},Pme={key:1,class:"ao-project-phase__col-phase"},Fme={key:2,class:"ao-mapping-project-phase__col-phase"},Rme={key:0,class:"ao-project-phase__col-milestones"},zme=["title","onClick"],Ume=["onClick"],Hme=["onClick"],qme={class:"ao-project-phase__milestones-list-footer"},jme=r.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e;r.watch(()=>o.phase.milestones,(S,E)=>{Kn(S,E)});const s=S=>{i("updatePhase",{id:o.phase.id,name:S})},a=S=>{i("updatePhase",{id:o.phase.id,deadline:S})},l=S=>{i("updatePhase",S)},c=r.computed(()=>o.phase.milestones.map(S=>DC(S,o.closedStatus))),u=S=>{const{name:E,rank:N}=Ko(c.value??[],"milestone",n);i("addMilestone",{name:E,rank:N,phaseId:S})},d=S=>{const E=n("template.defaultName.milestone",{idx:1}),N=os(c.value??[]);i("addMilestone",{name:E,rank:N,phaseId:S})},p=S=>{i("updateMilestone",S)},f=S=>{i("archiveMilestone",S)},m=S=>{i("unarchiveMilestone",S)},h=S=>{i("archivePhase",S)},v=S=>{i("unarchivePhase",S)},C=S=>{"added"in S?i("updateMilestone",{id:S.added.element.id,phaseId:o.phase.id,rank:Br(c.value,S.added.newIndex)}):"removed"in S||"moved"in S&&i("updateMilestone",{id:S.moved.element.id,rank:Br(c.value,S.moved.newIndex)})},y=r.ref(!1),g=r.ref(!1),_=S=>{g.value=!0;const E=Gg(S,o.phase.milestones??[]);i("bulkAddMilestone",{phaseId:o.phase.id,milestones:E,onSuccess:()=>{g.value=!1,y.value=!1},onError:()=>{g.value=!1}})};r.watch(y,S=>{S&&(g.value=!1)});const b=Go.useRoute(),w=r.computed(()=>b.path.includes("/mapping")),k=r.computed(()=>{var S;return o.phase.id===((S=b.params)==null?void 0:S.phaseId)});r.ref(!1);const x=r.computed(()=>{var S;return o.phase.id!==((S=b.params)==null?void 0:S.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:BC(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(S,E)=>(r.openBlock(),r.createElementBlock("li",Vme,[r.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:r.normalizeStyle(x.value)},[t.isEditable?(r.openBlock(),r.createElementBlock("div",Ime,[r.createVNode(ke,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):r.createCommentVNode("",!0),w.value?(r.openBlock(),r.createElementBlock("div",Fme,[r.createVNode(Ome,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:v,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(r.openBlock(),r.createElementBlock("div",Pme,[r.createVNode(Ipe,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:v,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),w.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Rme,[r.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:r.normalizeStyle(x.value)},[t.isEditable?(r.openBlock(),r.createBlock(xa,{key:0,class:r.normalizeClass(["ao-project-phase__milestone-quick-add",{"ao-project-phase__milestone-quick-add--visible":k.value}]),placement:"bottom-end"},{trigger:r.withCtx(({open:N})=>[r.createElementVNode("button",{type:"button",class:"ao-project-phase__milestone-quick-add-trigger",title:S.$t("project.milestone.add"),onClick:N},[r.createVNode(ke,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],8,zme)]),menu:r.withCtx(({close:N})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{N(),d(t.phase.id)}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,Ume),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{N(),y.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,Hme)]),_:1},8,["class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(Vn),r.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},S.$attrs,{onChange:C}),{item:r.withCtx(({element:N})=>{var I;return[r.createVNode(Qpe,{id:N.id,name:N.name,color:N.color,"phase-color":t.phase.color,activities:N.activities,deadline:N.deadline,active:N.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":N.id===((I=S.$route.params)==null?void 0:I.milestoneId),assignee:N.assignee,important:N.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:r.normalizeClass(["ao-project-phase__milestone"]),onClick:A=>!t.readonly&&S.$router.push({name:r.unref(Pe).milestone,params:{phaseId:t.phase.id,milestoneId:N.id}}),onUpdateMilestone:p,onArchiveMilestone:f,onUnarchiveMilestone:m},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),r.createElementVNode("div",qme,[t.isEditable?(r.openBlock(),r.createBlock(Eo,{key:0,label:S.$t("project.milestone.add"),"icon-name":"Add",class:"ao-project-phase__milestone-add",onClick:E[0]||(E[0]=N=>u(t.phase.id))},null,8,["label"])):r.createCommentVNode("",!0)])],4)])),y.value?(r.openBlock(),r.createBlock(md,{key:1,open:y.value,"onUpdate:open":E[1]||(E[1]=N=>y.value=N),title:S.$t("project.bulk.modal.milestone.title"),"root-type":"milestone","is-loading":g.value,onSubmit:_},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)]))}});const Wme={class:"ao-project__phases"},Zme={key:0,class:"ao-project-phase__phases-list-footer"},Kme={class:"ao-project-phase__col-phase"},gd=r.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;r.watch(()=>n.phases,(m,h)=>{Kn(m,h)});const i=m=>{o("addMilestone",m)},s=m=>{o("updateMilestone",m)},a=m=>{o("archiveMilestone",m)},l=m=>{o("unarchiveMilestone",m)},c=m=>{o("archivePhase",m)},u=m=>{o("unarchivePhase",m)},d=m=>{if(m.moved){const h=ns(m,n.phases??[]);o("updatePhase",{id:m.moved.element.id,rank:h})}},p=m=>{o("updatePhase",m)},f=m=>{o("addPhase",m)};return(m,h)=>(r.openBlock(),r.createElementBlock("div",Wme,[r.createVNode(r.unref(Vn),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:r.withCtx(({element:v})=>[r.createVNode(jme,{phase:v,"is-editable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,users:t.users,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,onAddMilestone:i,onBulkAddMilestone:h[0]||(h[0]=C=>m.$emit("bulkAddMilestone",C)),onUpdateMilestone:s,onArchiveMilestone:a,onUnarchiveMilestone:l,onUpdatePhase:p,onArchivePhase:c,onUnarchivePhase:u},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Zme,[h[1]||(h[1]=r.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),r.createElementVNode("div",Kme,[r.createVNode(Eo,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:f},null,8,["label"])]),h[2]||(h[2]=r.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):r.createCommentVNode("",!0)]))}});const Gme={class:"ao-add-template-modal__form-body"},Yme={class:"field__row"},Jme={class:"ao-add-template-modal__form-footer"},Yg=r.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=r.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(r.openBlock(),r.createBlock(Oa,{size:"sm"},{header:r.withCtx(()=>[r.createVNode(ht,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:r.withModifiers(l,["prevent"])},[r.createElementVNode("p",null,r.toDisplayString(c.$t("project.template.apply.notice")),1),r.createElementVNode("div",Gme,[r.createElementVNode("div",Yme,[r.createVNode(dt,{value:s.value,options:i.value,detached:!0,onChange:a},null,8,["value","options"])])]),r.createElementVNode("footer",Jme,[r.createVNode(de,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Xme={class:"ao-save-template-modal__form-body"},Qme={class:"field__row"},ehe={class:"ao-field ao-field--inline"},the={class:"ao-field__label"},nhe={class:"ao-save-template-modal__phases"},ohe={class:"ao-field__label"},rhe={class:"ao-save-template-modal__phases-list"},ihe=["value"],she={class:"ao-save-template-modal__form-footer"},Jg=r.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(""),s=r.ref([]);r.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{i.value&&o("save",i.value,s.value)};return(l,c)=>(r.openBlock(),r.createBlock(Oa,{size:"sm"},{header:r.withCtx(()=>[r.createVNode(ht,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:r.withModifiers(a,["prevent"])},[r.createElementVNode("div",Xme,[r.createElementVNode("div",Qme,[r.createElementVNode("label",ehe,[r.createElementVNode("span",the,r.toDisplayString(l.$t("project.template.name.label"))+": ",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),type:"text"},null,512),[[r.vModelText,i.value]])])]),r.createElementVNode("div",nhe,[r.createElementVNode("div",ohe,r.toDisplayString(l.$t("project.template.phases.label")),1),r.createElementVNode("div",rhe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.phases,u=>(r.openBlock(),r.createElementBlock("label",{key:u.id,class:"ao-field ao-field--checkbox"},[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),type:"checkbox",value:u.id},null,8,ihe),[[r.vModelCheckbox,s.value]]),r.createElementVNode("span",null,r.toDisplayString(u.name),1)]))),128))])])]),r.createElementVNode("footer",she,[r.createVNode(de,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const ahe={class:"ao-project"},lhe=["onClick"],che=["onClick"],uhe={class:"ao-project__body"},dhe=r.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{},statuses:{},activityTypes:{},devStatuses:{},sprints:{},selectedActivity:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1}},emits:["addPhase","bulkAddPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","bulkAddActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived","fetchHistory"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.computed(()=>o.phases.flatMap(z=>z.milestones)),a=()=>{const{name:z,rank:re}=Ko(o.phases,"phase",n);i("addPhase",{name:z,rank:re,projectId:o.project.id})},l=()=>{const z=n("template.defaultName.phase",{idx:1}),re=os(o.phases);i("addPhase",{name:z,rank:re,projectId:o.project.id})},c=z=>{i("updatePhase",z)},u=z=>{i("archivePhase",z)},d=z=>{i("unarchivePhase",z)},p=z=>{i("copyPhaseToTemplate",z)},f=z=>{i("addMilestone",z)},m=z=>{i("bulkAddMilestone",z)},h=z=>{i("updateMilestone",z)},v=z=>{i("archiveMilestone",z)},C=z=>{i("unarchiveMilestone",z)},y=z=>{i("addActivity",z)},g=z=>{i("bulkAddActivity",z)},_=z=>{i("update:activity",z)},b=z=>{i("archiveActivity",z)},w=z=>{i("unarchiveActivity",z)},k=z=>{i("addSubtask",z)},x=z=>{i("updateSubtask",z)},S=z=>{i("deleteSubtask",z)},E=r.computed(()=>s.value.flatMap(z=>z.activities)),N=r.computed(()=>o.devStatuses??[]),I=r.computed(()=>o.sprints??[]),A=z=>{i("addFiles",z)},M=z=>{i("removeFile",z)},D=z=>{i("addComment",z)},$=z=>{i("updateComment",z)},B=z=>{i("removeComment",z)},P=r.ref(!1),L=r.ref(!1),R=r.ref(!1),Y=r.ref(!1),ae=(z,re)=>{i("applyTemplate",{templateId:z,projectId:re}),P.value=!1},oe=(z,re)=>{var we;const Ee=(we=o.templates)==null?void 0:we.at(-1),ze=Ee?Xe.LexoRank.parse(Ee.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:z,rank:ze.format(),phaseIds:re}),L.value=!1},Ne=z=>{Y.value=!0;const re=Sme(z,o.phases);i("bulkAddPhase",{projectId:o.project.id,phases:re,onSuccess:()=>{Y.value=!1,R.value=!1},onError:()=>{Y.value=!1}})};r.watch(R,z=>{z&&(Y.value=!1)});const ce=Go.useRouter(),ne=r.ref("overview"),H=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(ne,z=>{z==="feed"?(ce.push({name:Pe.feed}),console.log("Navigating to feed...")):z==="dev"?(ce.push({name:Pe.dev}),console.log("Navigating to dev...")):z==="overview"?(ce.push({name:Pe.project}),console.log("Navigating to feed...")):z==="mapping"&&(ce.push({name:Pe.mapping}),console.log("Navigating to feed..."))}),(z,re)=>{var ze;const Ee=r.resolveComponent("RouterView");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-overview"},z.$attrs),[r.createElementVNode("div",ahe,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createVNode(vs,{modelValue:ne.value,"onUpdate:modelValue":re[0]||(re[0]=we=>ne.value=we),tabs:H},null,8,["modelValue"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:z.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:re[1]||(re[1]=we=>z.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(xa,{key:0,class:"ao-project-overview__quick-add-phase"},{trigger:r.withCtx(({open:we})=>[r.createVNode(de,{size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:z.$t("project.phase.add"),onClick:we},null,8,["label","onClick"])]),menu:r.withCtx(({close:we})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{we(),l()}},r.toDisplayString(z.$t("project.bulk.menu.single")),9,lhe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{we(),R.value=!0}},r.toDisplayString(z.$t("project.bulk.menu.bulkInsert")),9,che)]),_:1})):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:z.$t("project.template.save.label"),onClick:re[2]||(re[2]=we=>L.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-project-overview__add-template",color:"primary",label:z.$t("project.template.apply.label"),onClick:re[3]||(re[3]=we=>P.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",uhe,[r.createVNode(gd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(ze=t.project)==null?void 0:ze.estimationUnit,onAddMilestone:f,onBulkAddMilestone:m,onUpdateMilestone:h,onArchiveMilestone:v,onUnarchiveMilestone:C,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:p},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),r.createVNode(Ee,{class:"ao-project__sidebar",phases:t.phases,"project-id":t.project.id,"project-name":t.project.name,users:t.users,"is-editable":t.isEditable===!0,"closed-status":t.closedStatus,"time-tracking-data":t.timeTrackingData,onClose:re[4]||(re[4]=we=>z.$router.push({name:r.unref(Pe).project})),onUpdateMilestone:h,onAddActivity:y,onBulkAddActivity:g,onUpdateActivity:_,onArchiveActivity:b,onUnarchiveActivity:w},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(Ee,{name:"modal",activities:E.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,"dev-statuses":N.value,sprints:I.value,"selected-activity":t.selectedActivity,phases:t.phases,project:t.project,users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":t.loadAttachmentPreview,history:t.history,"history-loading":t.historyLoading,"onUpdate:activity":_,onAddSubtask:k,onUpdateSubtask:x,onDeleteSubtask:S,onAddFiles:A,onRemoveFile:M,onAddComment:D,onUpdateComment:$,onRemoveComment:B,onFetchHistory:re[5]||(re[5]=()=>i("fetchHistory"))},{default:r.withCtx(({Component:we})=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(we),null,{default:r.withCtx(Ce=>[r.renderSlot(z.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(Ce)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","dev-statuses","sprints","selected-activity","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data","load-attachment-preview","history","history-loading"])]))],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[L.value?(r.openBlock(),r.createBlock(Jg,{key:0,phases:t.phases,onClose:re[6]||(re[6]=we=>L.value=!1),onSave:oe},null,8,["phases"])):r.createCommentVNode("",!0),P.value?(r.openBlock(),r.createBlock(Yg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:re[7]||(re[7]=we=>P.value=!1),onApply:ae},null,8,["project-id","templates"])):r.createCommentVNode("",!0),R.value?(r.openBlock(),r.createBlock(md,{key:2,open:R.value,"onUpdate:open":re[8]||(re[8]=we=>R.value=we),title:z.$t("project.bulk.modal.phase.title"),"root-type":"phase","is-loading":Y.value,onSubmit:Ne},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)]))],64)}}});const fhe={class:"ao-card-feed__header"},phe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},mhe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},hhe={class:"ao-card-feed__body"},ghe={key:0,class:"ao-card-feed__breadcrumbs"},vhe={class:r.normalizeClass(["ao-card-feed__title-group"])},yhe={class:"ao-card-feed__title-line"},_he={key:0,class:"ao-card-feed__slug"},Che={key:1,class:"ao-card-feed__deadline"},bhe={class:"ao-card-feed__footer"},khe={class:"ao-card-feed__footer-row"},whe={class:"ao-assignees"},Ehe={key:0,class:"ao-assignee"},She={key:0,class:"ao-card-feed__subitems"},xhe={key:0,class:"ao-card-feed__subitem"},Ahe={class:"ao-card-feed__subitem"},The={key:1,class:"ao-card-feed__subitem"},Nhe={class:"ao-card-feed__subitem"},Dhe={class:"ao-card-feed__timer-wrapper"},$he={class:"ao-card-feed__footer-row"},Bhe={key:0,class:"ao-card-feed__progress-wrapper"},Mhe={class:"ao-card-feed__subitem"},Lhe={class:"ao-card-feed__subitem"},vd=r.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},blocked:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=r.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=v=>{o("updateActivity",{id:n.id,name:v})},l=r.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=r.computed(()=>n.assignee?[n.assignee]:[]),u=r.computed(()=>Mr(n.deadline)),d=v=>{o("removeAssignee",v)},p=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},f=r.computed(()=>{var v;return(v=n.tasks)==null?void 0:v.length}),m=r.computed(()=>{var v;return(v=n.tasks)==null?void 0:v.filter(C=>C.isDone).length}),h=r.computed(()=>(m.value||0)/(f.value||1));return(v,C)=>(r.openBlock(),r.createBlock(hl,{class:r.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0,variant:t.blocked?"danger":"default"},{header:r.withCtx(()=>[r.createElementVNode("div",fhe,[i.value?(r.openBlock(),r.createBlock(Ii,{key:0,label:i.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):r.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed||t.blocked?(r.openBlock(),r.createElementBlock("div",phe,[t.isPrivate?(r.openBlock(),r.createBlock(ke,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):r.createCommentVNode("",!0),t.important?(r.openBlock(),r.createBlock(ke,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):r.createCommentVNode("",!0),t.isClosed?(r.openBlock(),r.createBlock(ke,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),v.$slots.secondary?(r.openBlock(),r.createElementBlock("div",mhe,[r.renderSlot(v.$slots,"secondary")])):r.createCommentVNode("",!0)])]),default:r.withCtx(()=>[r.createElementVNode("div",hhe,[l.value?(r.openBlock(),r.createElementBlock("span",ghe,r.toDisplayString(l.value),1)):r.createCommentVNode("",!0),r.createElementVNode("div",vhe,[r.createElementVNode("div",yhe,[t.slug?(r.openBlock(),r.createElementBlock("span",_he,r.toDisplayString(t.slug)+": ",1)):r.createCommentVNode("",!0),r.createVNode(ht,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,class:"ao-card-feed__title-inline","onUpdate:title":a},null,8,["id","title","is-editable"])])]),t.deadline?(r.openBlock(),r.createElementBlock("span",Che,r.toDisplayString(u.value),1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",bhe,[r.createElementVNode("div",khe,[r.createElementVNode("ul",whe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,y=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:y.id},[y?(r.openBlock(),r.createElementBlock("li",Ehe,[r.createVNode(Xt,{"user-name":r.unref(Hp)(y),"avatar-url":y.avatarUrl,"is-closable":!0,onClose:()=>d(y.id)},null,8,["user-name","avatar-url","onClose"])])):r.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(r.openBlock(),r.createElementBlock("ul",She,[t.comments?(r.openBlock(),r.createElementBlock("li",xhe,[r.createVNode(ke,{name:"ChatOutline",size:"sm"}),r.createElementVNode("span",Ahe,r.toDisplayString(t.comments),1)])):r.createCommentVNode("",!0),t.attachments?(r.openBlock(),r.createElementBlock("li",The,[r.createVNode(ke,{name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Nhe,r.toDisplayString(t.attachments),1)])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",Dhe,[r.createVNode(ke,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:r.withModifiers(p,["stop"])})])]),r.createElementVNode("div",$he,[t.tasks&&t.tasks.length?(r.openBlock(),r.createElementBlock("div",Bhe,[r.createElementVNode("div",Mhe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",Lhe,r.toDisplayString(m.value)+" / "+r.toDisplayString(f.value),1)]),r.createVNode(gl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):r.createCommentVNode("",!0)])])]),_:3},8,["class","variant"]))}});const Ohe={class:"ao-project-milestone"},Vhe={class:"ao-project-milestone__header"},Ihe={class:"ao-project-milestone__header_line"},Phe={class:"ao-project-milestone__header_line"},Fhe={class:"ao-project-milestone__title"},Rhe={key:0,class:"ao-fieldset ao-milestone__fieldset"},zhe={class:"ao-field__row ao-milestone__field-row"},Uhe={class:"ao-field ao-field--inline"},Hhe={class:"ao-field__row ao-milestone__field-row"},qhe={class:"ao-field ao-milestone__field-multiselect"},jhe={class:"ao-milestone__color-actions"},Whe=["onClick"],Zhe=["title","onClick"],Khe=["onClick"],Ghe=["onClick"],Yhe={class:"ao-project-milestone__body"},Jhe={key:0,class:"ao-project-milestone__footer"},Xhe=["onClick"],Qhe=["onClick"],bp=r.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","bulkAddActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=E=>{var N;i("startTimer",E),(N=window.parent)==null||N.postMessage({type:"startTimer",data:E},"*")},a=r.computed(()=>{var E;return(E=o.phases)==null?void 0:E.find(N=>N.id===o.phaseId)}),l=r.computed(()=>{var E;return(E=o.phases)==null?void 0:E.flatMap(N=>N.milestones)}),c=r.computed(()=>{var E;return(E=l.value)==null?void 0:E.find(N=>N.id===o.milestoneId)}),u=r.computed(()=>{var E;return(E=c.value)==null?void 0:E.activities});r.watch(u,(E,N)=>{Kn(E,N)});const d=E=>{i("close",E)},p=()=>{const{name:E,rank:N}=Ko(u.value??[],"activity",n);i("addActivity",{milestoneId:o.milestoneId,name:E,rank:N,projectId:o.projectId})},f=()=>{const E=n("template.defaultName.activity",{idx:1}),N=os(u.value??[]);i("addActivity",{milestoneId:o.milestoneId,name:E,rank:N,projectId:o.projectId})},m=r.ref(!1),h=r.ref(!1),v=E=>{h.value=!0;const N=Eme(E,u.value??[]);i("bulkAddActivity",{projectId:o.projectId,phaseId:o.phaseId,milestoneId:o.milestoneId,activities:N,onSuccess:()=>{h.value=!1,m.value=!1},onError:()=>{h.value=!1}})};r.watch(m,E=>{E&&(h.value=!1)});const C=E=>{i("updateActivity",E)},y=E=>{u.value&&"moved"in E&&i("updateActivity",{id:E.moved.element.id,rank:Br(u.value,E.moved.newIndex)})},g=r.computed({get:()=>{var E;return(E=c.value)==null?void 0:E.color},set:E=>{c.value&&i("updateMilestone",{id:c.value.id,color:E})}}),_=r.computed({get:()=>{var E;return((E=c.value)==null?void 0:E.deadline)??""},set:E=>{c.value&&i("updateMilestone",{id:c.value.id,deadline:E!=null&&E.length?E:null})}}),b=E=>o.closedStatus?nu(E,o.closedStatus):!1,w=r.computed(()=>{var E;return((E=o.users)==null?void 0:E.map(N=>({label:`${N.firstName} ${N.lastName}`,value:N.id,avatar:N.avatarUrl})))||[]}),k=r.computed({get(){var E,N;return(N=(E=c.value)==null?void 0:E.assignee)!=null&&N.id?[c.value.assignee.id]:[]},set(E){i("updateMilestone",{id:o.milestoneId,assigneeId:E[0]??null})}}),x=r.computed({get(){var E;return((E=c.value)==null?void 0:E.important)??!1},set(E){i("updateMilestone",{id:o.milestoneId,important:E})}}),S=(E,N)=>{const I=E.currentTarget;I instanceof HTMLElement&&N(I)};return(E,N)=>{var I;return r.openBlock(),r.createElementBlock("div",Ohe,[r.createElementVNode("header",Vhe,[r.createElementVNode("div",Ihe,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),r.createElementVNode("div",Phe,[r.createElementVNode("div",Fhe,[r.createVNode(ht,{title:((I=c.value)==null?void 0:I.name)||t.milestoneId,level:5},null,8,["title"]),r.createVNode(Yc,{modelValue:x.value,"onUpdate:modelValue":N[0]||(N[0]=A=>x.value=A),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:E.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(r.openBlock(),r.createElementBlock("div",Rhe,[r.createElementVNode("div",zhe,[r.createElementVNode("label",Uhe,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":N[1]||(N[1]=A=>_.value=A),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[r.vModelText,_.value,void 0,{lazy:!0}]])])]),r.createElementVNode("div",Hhe,[r.createElementVNode("label",qhe,[r.createVNode(dt,{modelValue:k.value,"onUpdate:modelValue":N[2]||(N[2]=A=>k.value=A),options:w.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:E.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:r.withCtx(({option:A,handleTagRemove:M})=>[r.createVNode(Xt,{"user-name":A.label,"avatar-url":A.avatar,"is-closable":!0,onClose:D=>M(A,D)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",jhe,[r.createVNode(ti,{color:g.value,"onUpdate:color":N[3]||(N[3]=A=>g.value=A)},{clickable:r.withCtx(({openPicker:A,bgColor:M})=>[r.createElementVNode("button",{style:r.normalizeStyle({background:M}),class:"color-button",onClick:D=>S(D,A)},null,12,Whe)]),_:1},8,["color"]),t.isEditable?(r.openBlock(),r.createBlock(xa,{key:0,placement:"bottom-end"},{trigger:r.withCtx(({open:A})=>[r.createElementVNode("button",{type:"button",class:"ao-project-milestone__quick-add",title:E.$t("project.activity.add"),onClick:A},[r.createVNode(ke,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,Zhe)]),menu:r.withCtx(({close:A})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{A(),f()}},r.toDisplayString(E.$t("project.bulk.menu.single")),9,Khe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{A(),m.value=!0}},r.toDisplayString(E.$t("project.bulk.menu.bulkInsert")),9,Ghe)]),_:1})):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Yhe,[r.createVNode(r.unref(Vn),r.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},E.$attrs,{onChange:y}),{item:r.withCtx(({element:A})=>{var M,D,$,B,P;return[r.createVNode(vd,{id:A.id,name:A.name||A.id,"project-id":t.projectId,"phase-name":(M=a.value)==null?void 0:M.name,"milestone-name":(D=c.value)==null?void 0:D.name,"milestone-color":($=c.value)==null?void 0:$.color,deadline:A.deadline,important:A.important,blocked:A.blocked,users:t.users,assignee:A.assignee,slug:A.slug,comments:(B=A.comments)==null?void 0:B.length,attachments:(P=A.attachments)==null?void 0:P.length,tasks:A.tasks,"is-editable":t.isEditable,"is-private":A.private,"is-closed":b(A),onClick:L=>E.$router.push({name:r.unref(Pe).activity,params:{milestoneId:t.milestoneId,activityId:A.id}}),onUpdateActivity:C,onRemoveAssignee:()=>C({id:A.id,assigneeId:null}),onStartTimer:s},r.createSlots({_:2},[t.isEditable?{name:"secondary",fn:r.withCtx(()=>[t.isEditable&&A.active?(r.openBlock(),r.createBlock(de,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:E.$t("archive"),onClick:r.withModifiers(()=>E.$emit("archiveActivity",{id:A.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),t.isEditable&&!A.active?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:E.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>E.$emit("unarchiveActivity",{id:A.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","blocked","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Jhe,[r.createVNode(xa,null,{trigger:r.withCtx(({open:A})=>[r.createVNode(Eo,{"icon-name":"Add",label:E.$t("project.activity.add"),onClick:A},null,8,["label","onClick"])]),menu:r.withCtx(({close:A})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{A(),p()}},r.toDisplayString(E.$t("project.bulk.menu.single")),9,Xhe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{A(),m.value=!0}},r.toDisplayString(E.$t("project.bulk.menu.bulkInsert")),9,Qhe)]),_:1})])):r.createCommentVNode("",!0)]),m.value?(r.openBlock(),r.createBlock(md,{key:0,open:m.value,"onUpdate:open":N[4]||(N[4]=A=>m.value=A),title:E.$t("project.bulk.modal.activity.title"),"root-type":"activity","is-loading":h.value,onSubmit:v},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)])}}});const ege=r.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},selectedActivity:{},isTaskCheckable:{},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{},sprints:{},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","createSprint","fetchHistory"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var y;return(y=n.phases)==null?void 0:y.find(g=>g.id===n.phaseId)}),s=r.computed(()=>{var y;return(y=n.phases)==null?void 0:y.flatMap(g=>g.milestones)}),a=r.computed(()=>{var y;return(y=s.value)==null?void 0:y.find(g=>g.id===n.milestoneId)}),l=r.computed(()=>{var y;return n.selectedActivity??((y=n.activities)==null?void 0:y.find(g=>g.id===n.activityId))}),c=y=>{o("update:activity",y)},u=y=>{o("addSubtask",y)},d=y=>{o("updateSubtask",y)},p=y=>{o("deleteSubtask",y)},f=y=>{o("addFiles",y)},m=y=>{o("removeFile",y)},h=y=>{o("addComment",y)},v=y=>{o("updateComment",y)},C=y=>{o("removeComment",y)};return(y,g)=>{var _,b;return l.value?(r.openBlock(),r.createBlock(ml,{key:0,activity:l.value,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":t.milestoneId,"template-activities":t.activities,"is-template":!1,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:`${(_=i.value)==null?void 0:_.name} / ${(b=a.value)==null?void 0:b.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,"load-attachment-preview":n.loadAttachmentPreview,sprints:t.sprints,history:t.history,"history-loading":t.historyLoading,onClose:y.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:p,onAddFiles:f,onRemoveFile:m,onAddComment:h,onUpdateComment:v,onRemoveComment:C,onCreateSprint:g[0]||(g[0]=w=>o("createSprint",w)),onFetchHistory:g[1]||(g[1]=()=>o("fetchHistory"))},{default:r.withCtx(w=>[r.renderSlot(y.$slots,"default",r.normalizeProps(r.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints","history","history-loading","onClose"])):r.createCommentVNode("",!0)}}}),tge={class:"ao-col-header"},nge=r.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",tge,[r.createVNode(ht,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(r.openBlock(),r.createBlock(Ii,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):r.createCommentVNode("",!0)]))}});function oge(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function Ta(t){return typeof t=="function"?t():r.unref(t)}const rge=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ige=t=>t!=null,Vi=()=>{};function sge(t,e){function n(...o){return new Promise((i,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(i).catch(s)})}return n}function age(t,e={}){let n,o,i=Vi;const s=l=>{clearTimeout(l),i(),i=Vi};return l=>{const c=Ta(t),u=Ta(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,p)=>{i=e.rejectOnCancel?p:d,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},c)})}}function lge(t,e=200,n={}){return sge(age(e,n),t)}function uc(t){var e;const n=Ta(t);return(e=n==null?void 0:n.$el)!=null?e:n}const cge=rge?window:void 0;function uge(){const t=r.ref(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function dge(t){const e=uge();return r.computed(()=>(e.value,!!t()))}function fge(t,e,n={}){const{root:o,rootMargin:i="0px",threshold:s=.1,window:a=cge,immediate:l=!0}=n,c=dge(()=>a&&"IntersectionObserver"in a),u=r.computed(()=>{const h=Ta(t);return(Array.isArray(h)?h:[h]).map(uc).filter(ige)});let d=Vi;const p=r.ref(l),f=c.value?r.watch(()=>[u.value,uc(o),p.value],([h,v])=>{if(d(),!p.value||!h.length)return;const C=new IntersectionObserver(e,{root:uc(v),rootMargin:i,threshold:s});h.forEach(y=>y&&C.observe(y)),d=()=>{C.disconnect(),d=Vi}},{immediate:l,flush:"post"}):Vi,m=()=>{d(),f(),p.value=!1};return oge(m),{isSupported:c,isActive:p,pause(){d(),p.value=!1},resume(){p.value=!0},stop:m}}const pge={class:r.normalizeClass(["ao-list-kanban"])},mge={class:"ao-list-kanban__header"},hge=["title"],gge={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},vge={key:1,class:"ao-list-kanban__end"},yge={key:0,class:"ao-list-kanban__no-more"},_ge={key:1,class:"ao-list-kanban__divider"},Cge={key:1,class:"ao-list-kanban__footer"},bge=r.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{},showHeaderAdd:{type:Boolean},isDevMode:{type:Boolean}},emits:["add","addAtBeginning","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),s=r.ref(null);fge(s,([{isIntersecting:p}])=>{i.value=p}),r.watch(i,p=>{p&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=p=>{var f;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((f=p.assignee)==null?void 0:f.id):!1},l=p=>{o("selectActivity",p)},c=p=>{o("updateActivity",p)},u=p=>{if("added"in p){const f={id:p.added.element.id,rank:Br(n.list,p.added.newIndex)};n.isDevMode?f.statusDevId=n.status.id:f.statusId=n.status.id,o("updateActivity",f)}else"removed"in p||"moved"in p&&o("updateActivity",{id:p.moved.element.id,rank:Br(n.list,p.moved.newIndex)})},d=r.ref(!1);return(p,f)=>(r.openBlock(),r.createElementBlock("div",pge,[t.title||p.$slots.header?r.renderSlot(p.$slots,"header",{},()=>{var m;return[r.createElementVNode("div",mge,[t.title?(r.openBlock(),r.createBlock(nge,{key:0,class:"ao-list-kanban__col-header",title:t.title,level:3,items:(m=t.list)==null?void 0:m.length},null,8,["title","items"])):r.createCommentVNode("",!0),t.showHeaderAdd?(r.openBlock(),r.createElementBlock("button",{key:1,class:"ao-list-kanban__header-add",title:p.$t("feed.activity.add"),onClick:f[0]||(f[0]=h=>p.$emit("addAtBeginning"))},[r.createVNode(ke,{name:"Add"})],8,hge)):r.createCommentVNode("",!0)])]},void 0,0):r.createCommentVNode("",!0),r.createVNode(r.unref(Vn),r.mergeProps({class:["ao-list-kanban__list",d.value?"ao-list-kanban__transition":void 0],list:t.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},p.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"},onChange:u,onStart:f[2]||(f[2]=m=>d.value=!0),onEnd:f[3]||(f[3]=m=>d.value=!1)}),{item:r.withCtx(({element:m})=>{var h,v,C,y,g,_,b,w,k,x;return[r.createVNode(vd,{id:m.id,class:r.normalizeClass(a(m)?"ao-list-draggable":""),name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(v=m.project)==null?void 0:v.id,"project-color":(C=m.project)==null?void 0:C.color,"phase-name":(g=(y=m.milestone)==null?void 0:y.phase)==null?void 0:g.name,"milestone-name":(_=m.milestone)==null?void 0:_.name,"milestone-color":(b=m.milestone)==null?void 0:b.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,blocked:m.blocked,type:m.type,comments:(k=m.comments)==null?void 0:k.length,attachments:(x=m.attachments)==null?void 0:x.length,users:t.users,assignee:m.assignee,slug:m.slug,"is-editable":a(m),"is-private":m.private,"tag-type":t.tagType,onUpdateActivity:[S=>a(m)&&c(S),()=>a(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>a(m)&&c({id:m.id,assigneeId:null}),onStartTimer:f[1]||(f[1]=S=>p.$emit("startTimer",S))},{secondary:r.withCtx(()=>[a(m)&&m.active?(r.openBlock(),r.createBlock(de,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.archive"),onClick:r.withModifiers(()=>p.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),a(m)&&!m.active?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>p.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0)]),_:2},1032,["id","class","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","blocked","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:r.withCtx(()=>[t.isLoading?(r.openBlock(),r.createElementBlock("div",gge,[r.createVNode(ke,{name:"Loading"})])):t.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(r.openBlock(),r.createElementBlock("div",vge,[t.noMoreLabel?(r.openBlock(),r.createElementBlock("span",yge,r.toDisplayString(t.noMoreLabel),1)):t.isEditable?(r.openBlock(),r.createElementBlock("span",_ge)):r.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),p.$slots.footer||t.footerLabel?(r.openBlock(),r.createElementBlock("div",Cge,[r.renderSlot(p.$slots,"footer",{},()=>[t.isEditable?(r.openBlock(),r.createBlock(Eo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:f[4]||(f[4]=m=>p.$emit("add"))},null,8,["label"])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]))}});const kge={class:"ao-field ao-search-field"},wge=["value","placeholder"],Ege=r.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,i=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=lge(i,n.delay),a=l=>{o("clear",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",kge,[r.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>r.unref(s)&&r.unref(s)(...u)),onKeypress:r.withKeys(i,["enter"])},null,40,wge),r.createVNode(ke,{name:"SearchRounded",class:r.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),r.createVNode(de,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:r.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const Sge={class:"ao-sprint-metrics"},xge=["onClick"],Age={class:"ao-sprint-metrics__header-left"},Tge={class:"ao-sprint-metrics__icon"},Nge={class:"ao-sprint-metrics__title"},Dge={class:"ao-sprint-metrics__dates"},$ge={key:0,class:"ao-sprint-metrics__project"},Bge={class:"ao-sprint-metrics__advancement"},Mge={class:"ao-sprint-metrics__progress-bar"},Lge={class:"ao-sprint-metrics__percent"},Oge={class:"ao-sprint-metrics__tooltip ao-sprint-metrics__tooltip--advancement"},Vge={class:"ao-sprint-metrics__tooltip-row"},Ige={class:"ao-sprint-metrics__tooltip-row"},Pge={class:"ao-sprint-metrics__tooltip-row"},Fge={class:"ao-sprint-metrics__tooltip-row"},Rge={class:"ao-sprint-metrics__tooltip-row"},zge={class:"ao-sprint-metrics__tooltip-row"},Uge={class:"ao-sprint-metrics__tooltip-row"},Hge={class:"ao-sprint-metrics__content"},qge={class:"ao-sprint-metrics__grid"},jge={class:"ao-sprint-metrics__item"},Wge={class:"ao-sprint-metrics__label"},Zge={class:"ao-sprint-metrics__value"},Kge={key:0,class:"ao-sprint-metrics__tooltip"},Gge={class:"ao-sprint-metrics__tooltip-title"},Yge={class:"ao-sprint-metrics__item"},Jge={class:"ao-sprint-metrics__label"},Xge={class:"ao-sprint-metrics__value"},Qge={class:"ao-sprint-metrics__item ao-sprint-metrics__item--editable"},e0e={class:"ao-sprint-metrics__label"},t0e={class:"ao-sprint-metrics__input-row"},n0e=["value","placeholder","onInput"],o0e={class:"ao-sprint-metrics__unit"},r0e={key:0,class:"ao-sprint-metrics__secondary"},i0e={class:"ao-sprint-metrics__item"},s0e={class:"ao-sprint-metrics__label"},a0e={class:"ao-sprint-metrics__value"},l0e=r.defineComponent({__name:"AoSprintMetrics",props:{sprints:{},activities:{},planningData:{default:()=>({})},projects:{default:()=>[]},businessDayHours:{default:8}},setup(t){const e=D=>D.label?`Sprint ${D.number}: ${D.label}`:`Sprint ${D.number}`,n=t,{t:o}=yt(),i=["Ok for prod","Done"],s=r.ref(new Set),a=r.ref({}),l=D=>{s.value.has(D)?s.value.delete(D):s.value.add(D)},c=D=>n.projects.find($=>$.id===D.projectId),u=D=>{var $;return(($=n.planningData[D])==null?void 0:$.plannedManDays)??0},d=D=>{var $;return(($=n.planningData[D])==null?void 0:$.remainingPlannedManDays)??0},p=D=>{var $;return(($=n.planningData[D])==null?void 0:$.users)??[]},f=D=>n.activities.filter($=>{var B;return((B=$.sprint)==null?void 0:B.id)===D}).reduce(($,B)=>$+(B.estimation??0),0),m=D=>n.activities.filter($=>{var P,L;if(((P=$.sprint)==null?void 0:P.id)!==D)return!1;const B=(L=$.devStatus)==null?void 0:L.name;return B&&i.includes(B)}).reduce(($,B)=>$+(B.estimation??0),0),h=D=>{const $=n.sprints.find(P=>P.id===D),B=$?c($):void 0;return(B==null?void 0:B.estimationUnit)==="hours"?"hours":"days"},v=(D,$)=>h(D)==="hours"?$*n.businessDayHours:$,C=D=>h(D)==="hours"?"h":"d",y=D=>{const $=v(D,u(D));return $<=0?0:f(D)/$},g=D=>{if(a.value[D]!==void 0)return a.value[D];const $=n.sprints.find(B=>B.id===D);if($){const B=c($);if((B==null?void 0:B.velocity)!==void 0&&B.velocity>0)return B.velocity}return 1},_=(D,$)=>{const B=parseFloat($);isNaN(B)||B<=0?delete a.value[D]:a.value[D]=B},b=D=>{const $=g(D);return $===void 0?0:v(D,u(D))*$},w=D=>{const $=b(D);return $<=0?null:f(D)/$},k=D=>{const $=w(D);return $===null?0:Math.round($*100)},x=D=>{const $=f(D);if($<=0)return 0;const B=m(D);return Math.round(B/$*100)},S=D=>{const $=f(D),B=m(D);return Math.max(0,$-B)},E=D=>{const $=v(D,d(D)),B=y(D);return $*B},N=D=>{const $=E(D),B=S(D);return $<=0&&B>0?!1:$<B},I=D=>D.toFixed(1),A=(D,$)=>`${D.toFixed(2)} pts / ${C($)}`,M=(D,$)=>{const B=new Date(D),P=new Date($),L={day:"numeric",month:"short"};return`${B.toLocaleDateString("en-UK",L)} – ${P.toLocaleDateString("en-UK",L)}`};return(D,$)=>(r.openBlock(),r.createElementBlock("div",Sge,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sprints,B=>{var P;return r.openBlock(),r.createElementBlock("div",{key:B.id,class:"ao-sprint-metrics__section"},[r.createElementVNode("div",{class:"ao-sprint-metrics__header",onClick:L=>l(B.id)},[r.createElementVNode("div",Age,[r.createElementVNode("span",Tge,r.toDisplayString(s.value.has(B.id)?"▸":"▾"),1),r.createElementVNode("span",Nge,r.toDisplayString(e(B)),1),r.createElementVNode("span",Dge," · "+r.toDisplayString(M(B.startDate,B.endDate)),1),!s.value.has(B.id)&&c(B)?(r.openBlock(),r.createElementBlock("span",$ge," · "+r.toDisplayString((P=c(B))==null?void 0:P.name),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__header-right",{"ao-sprint-metrics__header-right--behind":N(B.id)}])},[r.createElementVNode("div",Bge,[r.createElementVNode("div",Mge,[r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__progress-fill",{"ao-sprint-metrics__progress-fill--behind":N(B.id)}]),style:r.normalizeStyle({width:x(B.id)+"%"})},null,6)]),r.createElementVNode("span",Lge,r.toDisplayString(x(B.id))+"% ",1),r.createElementVNode("div",Oge,[$[7]||($[7]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-title"}," Sprint advancement ",-1)),r.createElementVNode("span",Vge,[$[0]||($[0]=r.createElementVNode("span",null,"Advancement",-1)),r.createElementVNode("span",null,r.toDisplayString(x(B.id))+"%",1)]),r.createElementVNode("span",Ige,[$[1]||($[1]=r.createElementVNode("span",null,"Completed",-1)),r.createElementVNode("span",null,r.toDisplayString(I(m(B.id)))+" / "+r.toDisplayString(I(f(B.id)))+" pts ",1)]),r.createElementVNode("span",Pge,[$[2]||($[2]=r.createElementVNode("span",null,"Remaining",-1)),r.createElementVNode("span",null,r.toDisplayString(I(S(B.id)))+" pts",1)]),$[8]||($[8]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",Fge,[$[3]||($[3]=r.createElementVNode("span",null,"Remaining capacity",-1)),r.createElementVNode("span",null,r.toDisplayString(I(E(B.id)))+" pts",1)]),r.createElementVNode("span",Rge,[$[4]||($[4]=r.createElementVNode("span",null,"Remaining planning",-1)),r.createElementVNode("span",null,r.toDisplayString(I(d(B.id)))+" MD",1)]),r.createElementVNode("span",zge,[$[5]||($[5]=r.createElementVNode("span",null,"Estimated velocity",-1)),r.createElementVNode("span",null,r.toDisplayString(A(y(B.id),B.id)),1)]),$[9]||($[9]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",Uge,[$[6]||($[6]=r.createElementVNode("span",null,"Status",-1)),r.createElementVNode("span",null,r.toDisplayString(N(B.id)?"Behind plan":"On track"),1)])])])],2)],8,xge),r.withDirectives(r.createElementVNode("div",Hge,[r.createElementVNode("div",qge,[r.createElementVNode("div",jge,[r.createElementVNode("div",Wge,r.toDisplayString(r.unref(o)("sprintMetrics.manDaysPlanned")),1),r.createElementVNode("div",Zge,[r.createElementVNode("span",{class:r.normalizeClass(["ao-sprint-metrics__man-days",{"ao-sprint-metrics__man-days--has-tooltip":p(B.id).length>0}])},[r.createTextVNode(r.toDisplayString(I(u(B.id)))+" MD ",1),p(B.id).length>0?(r.openBlock(),r.createElementBlock("span",Kge,[r.createElementVNode("span",Gge,r.toDisplayString(I(u(B.id)))+" MD planned ",1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p(B.id),L=>(r.openBlock(),r.createElementBlock("span",{key:L.userId,class:"ao-sprint-metrics__tooltip-row"},[r.createElementVNode("span",null,r.toDisplayString(L.fullName),1),r.createElementVNode("span",null,r.toDisplayString(I(L.plannedManDays))+" MD",1)]))),128))])):r.createCommentVNode("",!0)],2)])]),r.createElementVNode("div",Yge,[r.createElementVNode("div",Jge,r.toDisplayString(r.unref(o)("sprintMetrics.estimatedPoints")),1),r.createElementVNode("div",Xge,r.toDisplayString(I(f(B.id)))+" pts ",1)]),r.createElementVNode("div",Qge,[r.createElementVNode("div",e0e,r.toDisplayString(r.unref(o)("sprintMetrics.targetVelocity")),1),r.createElementVNode("div",t0e,[r.createElementVNode("input",{type:"number",step:"0.1",min:"0",class:"ao-sprint-metrics__input",value:g(B.id),placeholder:r.unref(o)("sprintMetrics.targetVelocityPlaceholder"),onInput:L=>_(B.id,L.target.value)},null,40,n0e),r.createElementVNode("span",o0e," pts / "+r.toDisplayString(C(B.id)),1)]),y(B.id)>0?(r.openBlock(),r.createElementBlock("div",r0e,r.toDisplayString(r.unref(o)("sprintMetrics.currentlyEstimated"))+": "+r.toDisplayString(A(y(B.id),B.id)),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",i0e,[r.createElementVNode("div",s0e,r.toDisplayString(r.unref(o)("sprintMetrics.planningProgress")),1),r.createElementVNode("div",a0e,[w(B.id)!==null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(k(B.id))+"% · "+r.toDisplayString(I(f(B.id)))+" / "+r.toDisplayString(I(b(B.id)))+" pts ",1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))])])])],512),[[r.vShow,!s.value.has(B.id)]])])}),128))]))}});const c0e=ee(l0e,[["__scopeId","data-v-d05fbe31"]]),u0e={class:"ao-feed"},d0e={class:"ao-feed__filters"},f0e={class:"ao-feed__body"},Xc=r.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},devStatuses:{default:()=>[]},project:{default:void 0},projects:{default:()=>[]},filters:{},activityTypes:{default:()=>[]},users:{},userId:{},initialActivityId:{default:void 0},initialActivitySlug:{default:void 0},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{default:void 0},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0},feedMode:{default:"standard"},sprints:{default:()=>[]},activitySprints:{default:()=>[]},milestones:{default:()=>[]},sprintPlanningData:{default:()=>({})},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer","createSprint","fetchHistory"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e;function s(U,ie){i("toast",U,ie)}const a=r.toRef(o,"activities"),l=r.computed(()=>o.feedMode==="dev"?o.devStatuses:o.statuses),c=r.computed(()=>o.feedMode==="dev"?a.value.filter(U=>U.activityType==="dev"):a.value),u=async(U,ie)=>{await i("selectActivity",U,ie)},d=r.ref({}),p=r.ref(!1),f=r.ref(!1),m=r.computed(()=>o.project?"milestone":"project");r.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([U,ie,he,pe],[Ze,De])=>{const $e=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(U.map(Fe=>[Fe.id,ie.filter(Ge=>{const Ye=Ge[$e];return(Ye==null?void 0:Ye.id)===Fe.id})])),he&&!p.value?(u(he,null),p.value=!0):pe&&!p.value&&(u(null,pe),p.value=!0),f.value&&Kn(ie,De)},{immediate:!0});const h=r.computed(()=>{var U;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((U=o.selectedActivity.milestone.phase)==null?void 0:U.name)??""} / ${o.selectedActivity.milestone.name??""}`}),v=U=>{var Fe;const ie=o.feedMode==="dev"?o.activities.filter(Ge=>Ge.activityType==="dev"):o.activities,he=ie==null?void 0:ie.at(-1),pe=he?Xe.LexoRank.parse(he.rank).genNext():Xe.LexoRank.middle(),Ze=((Fe=o.activities)==null?void 0:Fe.length)??0,De=o.feedMode==="dev",$e={name:n("activity.defaultName",{idx:Ze+1}),rank:pe.format(),...De?{statusDevId:U.id,type:"dev"}:{statusId:U.id}};if(o.filters.assigneeId.length>0&&($e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&($e.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Ge=o.sprints.find(Ye=>Ye.id===o.filters.sprintId[0]);Ge&&($e.sprintId=Ge.id,$e.projectId=Ge.projectId)}f.value=!0,i("addActivity",$e)},C=U=>{var Fe,Ge;const ie=o.feedMode==="dev"?"devStatus":"status",he=((Fe=o.activities)==null?void 0:Fe.filter(Ye=>{const Me=Ye[ie];return(Me==null?void 0:Me.id)===U.id}))??[],pe=os(he),Ze=((Ge=o.activities)==null?void 0:Ge.length)??0,De=o.feedMode==="dev",$e={name:n("activity.defaultName",{idx:Ze+1}),rank:pe,...De?{statusDevId:U.id,type:"dev"}:{statusId:U.id}};if(o.filters.assigneeId.length>0&&($e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&($e.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Ye=o.sprints.find(Me=>Me.id===o.filters.sprintId[0]);Ye&&($e.sprintId=Ye.id,$e.projectId=Ye.projectId)}f.value=!0,i("addActivity",$e)},y=(U,ie)=>{f.value=!1,i("update:filters",{...o.filters,[U]:ie})},g=r.computed(()=>o.project?[o.project]:o.projects??[]),_=r.computed(()=>g.value.map(U=>({value:U.id,label:U.name}))),b=r.computed(()=>o.sprints.map(U=>({value:U.id,label:`${U.name} · ${U.startDate} – ${U.endDate}`,startDate:U.startDate,endDate:U.endDate,projectId:U.projectId}))),w=r.computed(()=>{const U=o.filters[ln.sprint]??[];return o.sprints.filter(ie=>U.includes(ie.id))}),k=r.computed(()=>{var he;const U=o.filters[ln.project]??[],ie=(he=o.project)!=null&&he.id?[o.project.id]:[];return[...U,...ie]}),x=r.computed(()=>o.milestones.map(U=>{var ie;return{value:U.id,label:(ie=U.phase)!=null&&ie.name?`${U.phase.name} - ${U.name}`:U.name,color:U.color,important:U.important}}));r.computed(()=>{var U;return(U=o.activityTypes)==null?void 0:U.map(ie=>({value:ie.id,label:ie.name}))});const S=r.computed(()=>o.users.map(U=>({value:U.id,label:`${U.firstName} ${U.lastName}`,avatar:U.avatarUrl}))),E=U=>{o.selectedActivity&&i("update:activity",U)},N=U=>{i("update:activity",U)},I=U=>{i("archiveActivity",U)},A=U=>{i("unarchiveActivity",U)},M=U=>{var ie;i("startTimer",U),(ie=window.parent)==null||ie.postMessage({type:"startTimer",data:U},"*")},D=U=>{f.value=!1,i("update:searchText",U)},$=U=>{f.value=!1,i("clear:searchText",U)},B=U=>{o.selectedActivity&&i("addSubtask",U)},P=U=>{o.selectedActivity&&i("updateSubtask",U)},L=U=>{o.selectedActivity&&i("deleteSubtask",U)},R=U=>{i("addFiles",U)},Y=U=>{i("removeFile",U)},ae=U=>{o.selectedActivity&&i("addComment",{...U,activityId:o.selectedActivity.id})},oe=U=>{const{id:ie}=o.selectedActivity||{};ie&&i("updateComment",U)},Ne=U=>{const{id:ie}=o.selectedActivity||{};ie&&i("removeComment",U)},ce=Go.useRouter(),ne=Go.useRoute(),H=r.ref("feed");r.watch(()=>ne.name,U=>{U===Po.feed||U==="ActivityFeed"||U==="ActivityFeedWithActivity"?H.value="feed":U===Po.dev||U==="ActivityFeedDev"||U==="ActivityFeedDevWithActivity"?H.value="dev":U===Pe.feed?H.value="feed":U===Pe.dev?H.value="dev":U===Pe.project?H.value="overview":U===Pe.mapping&&(H.value="mapping")},{immediate:!0});const z=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}],re=r.computed(()=>Ee.value?z.filter(U=>U.value==="feed"||U.value==="dev"):z),Ee=r.computed(()=>!o.project&&ne.name&&(ne.name===Po.feed||ne.name===Po.dev||ne.name==="ActivityFeed"||ne.name==="ActivityFeedDev"||ne.name==="ActivityFeedWithActivity"||ne.name==="ActivityFeedDevWithActivity")),ze=r.computed(()=>Ee.value?Po.feed:Pe.feed),we=r.computed(()=>Ee.value?Po.dev:Pe.dev),Ce=r.computed(()=>Pe.project),_t=r.computed(()=>Pe.mapping);return r.watch(H,U=>{U==="feed"?ce.push({name:ze.value}):U==="dev"?ce.push({name:we.value}):U==="overview"?ce.push({name:Ce.value}):U==="mapping"&&ce.push({name:_t.value})}),(U,ie)=>{var he;return r.openBlock(),r.createElementBlock("div",u0e,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createElementVNode("div",d0e,[r.createVNode(vs,{modelValue:H.value,"onUpdate:modelValue":ie[0]||(ie[0]=pe=>H.value=pe),tabs:re.value},null,8,["modelValue","tabs"]),r.createVNode(Ege,{"model-value":t.searchText,placeholder:U.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":D,onClear:$},null,8,["model-value","placeholder"]),o.project?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(dt,{key:0,"model-value":t.filters[r.unref(ln).project],mode:"tags",options:_.value,"close-on-select":!1,"clear-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:U.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":ie[1]||(ie[1]=pe=>y(r.unref(ln).project,pe))},null,8,["model-value","options","placeholder"])),t.feedMode==="dev"?(r.openBlock(),r.createBlock(dt,{key:1,"model-value":t.filters[r.unref(ln).sprint],mode:"tags",options:b.value,"close-on-select":!1,searchable:!0,disabled:!b.value.length,class:"ao-feed__filter ao-feed__filter__sprints",placeholder:U.$t("feed.filters.sprint.placeholder"),"onUpdate:modelValue":ie[2]||(ie[2]=pe=>y(r.unref(ln).sprint,pe))},null,8,["model-value","options","disabled","placeholder"])):r.createCommentVNode("",!0),r.createVNode(dt,{"model-value":t.filters[r.unref(ln).milestone],mode:"tags",options:x.value,"close-on-select":!1,"clear-on-select":!1,searchable:!0,disabled:k.value.length===0,class:"ao-feed__filter ao-feed__filter__milestones",placeholder:U.$t("feed.filters.milestone.placeholder"),"onUpdate:modelValue":ie[3]||(ie[3]=pe=>y(r.unref(ln).milestone,pe))},null,8,["model-value","options","disabled","placeholder"]),S.value.length?(r.openBlock(),r.createBlock(dt,{key:2,"model-value":t.filters[r.unref(ln).assignee],mode:"tags",options:S.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:U.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":ie[4]||(ie[4]=pe=>y(r.unref(ln).assignee,pe))},{tag:r.withCtx(({option:pe,handleTagRemove:Ze})=>[r.createVNode(Xt,{"user-name":pe.label,"avatar-url":pe.avatar,"is-closable":!0,onClose:De=>Ze(pe,De)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):r.createCommentVNode("",!0)]),r.createVNode(de,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:U.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:ie[5]||(ie[5]=pe=>U.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),r.createVNode(de,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:U.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:ie[6]||(ie[6]=pe=>U.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:U.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:ie[7]||(ie[7]=pe=>U.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),t.feedMode==="dev"&&w.value.length>0?(r.openBlock(),r.createBlock(c0e,{key:0,sprints:w.value,activities:c.value,"planning-data":t.sprintPlanningData,projects:g.value},null,8,["sprints","activities","planning-data","projects"])):r.createCommentVNode("",!0),r.createElementVNode("div",f0e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,pe=>(r.openBlock(),r.createBlock(bge,{key:pe.id,status:pe,list:d.value[pe.id],title:pe.name,"footer-label":U.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":m.value,"show-header-add":t.isEditable,"is-dev-mode":t.feedMode==="dev",onAdd:()=>v(pe),onAddAtBeginning:()=>C(pe),onSelectActivity:u,onArchiveActivity:I,onUnarchiveActivity:A,onUpdateActivity:N,onStartTimer:M},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","is-dev-mode","onAdd","onAddAtBeginning"]))),128))]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.selectedActivity?(r.openBlock(),r.createBlock(ml,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(he=t.selectedActivity.milestone)==null?void 0:he.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:h.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:g.value,"time-tracking-data":t.timeTrackingData,history:t.history,"history-loading":t.historyLoading,"load-attachment-preview":o.loadAttachmentPreview,sprints:t.activitySprints,onClose:ie[8]||(ie[8]=()=>u(null,null)),onFetchHistory:ie[9]||(ie[9]=()=>i("fetchHistory")),"onUpdate:activity":E,onAddSubtask:B,onUpdateSubtask:P,onDeleteSubtask:L,onAddFiles:R,onRemoveFile:Y,onAddComment:ae,onUpdateComment:oe,onRemoveComment:Ne,onToast:s,onCreateSprint:ie[10]||(ie[10]=pe=>i("createSprint",pe))},{default:r.withCtx(pe=>[r.renderSlot(U.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(pe)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","history","history-loading","load-attachment-preview","sprints"])):r.createCommentVNode("",!0)]))])}}});const p0e={class:"ao-project-mapping"},m0e={class:"ao-project-mapping-mapping__body"},h0e={class:"ao-project-mapping-mapping__phases"},g0e={key:0,class:"ao-project-mapping-mapping__image-wrapper"},v0e=["src","alt"],y0e=r.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=()=>{const{name:g,rank:_}=Ko(o.phases,"phase",n);i("addPhase",{name:g,rank:_,projectId:o.project.id})},a=()=>{const g=n("template.defaultName.phase",{idx:1}),_=os(o.phases);i("addPhase",{name:g,rank:_,projectId:o.project.id})},l=g=>{i("updatePhase",g)},c=g=>{i("archivePhase",g)},u=g=>{i("unarchivePhase",g)},d=g=>{i("copyPhaseToTemplate",g)},p=r.ref(!1),f=r.ref(!1),m=(g,_)=>{i("applyTemplate",{templateId:g,projectId:_}),p.value=!1},h=(g,_)=>{var k;const b=(k=o.templates)==null?void 0:k.at(-1),w=b?Xe.LexoRank.parse(b.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:g,rank:w.format(),phaseIds:_}),f.value=!1},v=Go.useRouter(),C=r.ref("mapping"),y=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(C,g=>{g==="feed"?(v.push({name:Pe.feed}),console.log("Navigating to feed...")):g==="dev"?(v.push({name:Pe.dev}),console.log("Navigating to dev...")):g==="overview"?(v.push({name:Pe.project}),console.log("Navigating to feed...")):g==="mapping"&&(v.push({name:Pe.mapping}),console.log("Navigating to feed..."))}),(g,_)=>{var b;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-mapping-overview"},g.$attrs),[r.createElementVNode("div",p0e,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createVNode(vs,{modelValue:C.value,"onUpdate:modelValue":_[0]||(_[0]=w=>C.value=w),tabs:y},null,8,["modelValue"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:g.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:_[1]||(_[1]=w=>g.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:0,class:"ao-mapping__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:g.$t("project.phase.add"),onClick:a},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:1,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:g.$t("project.template.save.label"),onClick:_[2]||(_[2]=w=>f.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-project-mapping-overview__add-template",color:"primary",label:g.$t("project.template.apply.label"),onClick:_[3]||(_[3]=w=>p.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",m0e,[r.createElementVNode("div",h0e,[r.createVNode(gd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(b=t.project)==null?void 0:b.estimationUnit,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(r.openBlock(),r.createElementBlock("div",g0e,[r.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:r.unref(n)("architectureImage.alt")},null,8,v0e)])):r.createCommentVNode("",!0)])])],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[f.value?(r.openBlock(),r.createBlock(Jg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=w=>f.value=!1),onSave:h},null,8,["phases"])):r.createCommentVNode("",!0),p.value?(r.openBlock(),r.createBlock(Yg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=w=>p.value=!1),onApply:m},null,8,["project-id","templates"])):r.createCommentVNode("",!0)]))],64)}}});const Ho={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},_0e=(t,e={})=>[{path:t,name:Ho.TEMPLATES,redirect:{name:Ho.TEMPLATES_LIST},...e,children:[{path:"",name:Ho.TEMPLATES_LIST,component:Xg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Ho.TEMPLATE_DETAILS,component:Zg,props:!0}]}],Pe={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Po={feed:"ActivityFeed",dev:"ActivityFeedDev"},C0e=(t,e={})=>[{path:t,...e,redirect:{name:Pe.project},children:[{path:"",name:Pe.project,component:dhe,props:!0,children:[{path:":phaseId/:milestoneId",name:Pe.milestone,component:bp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Pe.activity,props:{default:!0,modal:!0},components:{default:bp,modal:ege}}]},{path:"feed",name:Pe.feed,component:Xc,props:n=>({...n.params,feedMode:"standard"})},{path:"dev",name:Pe.dev,component:Xc,props:n=>({...n.params,feedMode:"dev"})},{path:"mapping",name:Pe.mapping,component:y0e,props:!0}]}],b0e={class:"ao-templates"},Xg=r.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e;r.watch(()=>o.templates,(u,d)=>{Kn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?Xe.LexoRank.parse(u.rank).genNext():Xe.LexoRank.middle(),p=((h=o.templates)==null?void 0:h.length)??0,f={name:n("template.defaultName.template",{idx:p+1}),rank:d.format()};i("addTemplate",f)},a=(u,d)=>{i("updateItem",{itemType:qe.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{i("removeItem",{itemType:qe.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=ns(u,o.templates??[]);i("updateItem",{itemType:qe.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(r.openBlock(),r.createElementBlock("div",b0e,[r.createVNode(rs,null,{secondary:r.withCtx(()=>[r.createVNode(de,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),r.createVNode(r.unref(Vn),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:r.withCtx(({element:p})=>{var f;return[r.createVNode(nb,{id:p.id,title:p.name,phases:p.phases,milestones:(f=p.phases)!=null&&f.length?r.unref(xC)(p.phases):0,activities:p.phases?r.unref(AC)(p.phases):0,"updated-at":p.updatedAt,"updated-by":p.updatedBy,onUpdateTitle:m=>a(p.id,m),onClick:m=>u.$router.push({name:r.unref(Ho).TEMPLATE_DETAILS,params:{templateId:p.id}}),onDeleteItem:d[0]||(d[0]=(m,h)=>l(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const k0e={class:"ao-field__label"},Qg=r.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[r.createElementVNode("span",k0e,r.toDisplayString(t.label),1),r.renderSlot(e.$slots,"default")],2))}}),w0e=["type","value","disabled","readonly"],E0e=r.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(r.openBlock(),r.createBlock(Qg,{label:t.label},{default:r.withCtx(()=>[r.createElementVNode("input",r.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[r.toHandlerKey(i.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,w0e)]),_:1},8,["label"]))}}),S0e={class:"ao-field"},x0e={class:"ao-field__label"},A0e=["checked","disabled"],e0=r.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("label",S0e,[r.createElementVNode("span",x0e,r.toDisplayString(t.label),1),r.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var i;return e.$emit("update:modelValue",((i=o.target)==null?void 0:i.checked)??!1)})},null,40,A0e)]))}}),T0e={class:"ao-audit-config"},N0e={key:0,class:"ao-audit-config__loading"},D0e={key:1,class:"ao-audit-config__error"},$0e={key:2,class:"ao-audit-config__empty"},B0e={key:3,class:"ao-audit-config__table"},M0e={class:"ao-audit-config__th ao-audit-config__th--table"},L0e={class:"ao-audit-config__th ao-audit-config__th--audit"},O0e={class:"ao-audit-config__th ao-audit-config__th--excluded"},V0e={class:"ao-audit-config__td ao-audit-config__td--table"},I0e={class:"ao-audit-config__table-name"},P0e={key:0,class:"ao-audit-config__schema"},F0e={class:"ao-audit-config__td ao-audit-config__td--audit"},R0e={class:"ao-audit-config__checkbox"},z0e={class:"ao-audit-config__td ao-audit-config__td--excluded"},U0e={key:0,class:"ao-audit-config__disabled-note"},H0e={class:"ao-audit-config__option"},q0e=["title"],j0e={key:0,class:"ao-audit-config__all-tracked"},W0e=r.defineComponent({__name:"AoAuditConfigTable",props:{tables:{},loading:{type:Boolean,default:!1},error:{default:null},disabled:{type:Boolean,default:!1}},emits:["update"],setup(t,{emit:e}){const n=t,o=e,{t:i}=yt(),s=r.computed(()=>n.tables);function a(u){return u.columns.map(d=>({value:d.name,label:d.name,isPrimaryKey:d.isPrimaryKey}))}function l(u,d){o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:d,excludeColumns:u.excludeColumns})}function c(u,d){const p=Array.from(new Set(d??[]));o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:u.isEnabled,excludeColumns:p})}return(u,d)=>(r.openBlock(),r.createElementBlock("div",T0e,[t.loading?(r.openBlock(),r.createElementBlock("div",N0e,r.toDisplayString(r.unref(i)("audit.loading")),1)):t.error?(r.openBlock(),r.createElementBlock("div",D0e,r.toDisplayString(r.unref(i)("audit.error",{message:t.error})),1)):s.value.length?(r.openBlock(),r.createElementBlock("table",B0e,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[r.createElementVNode("th",M0e,r.toDisplayString(r.unref(i)("audit.tableHeader")),1),r.createElementVNode("th",L0e,r.toDisplayString(r.unref(i)("audit.auditHeader")),1),r.createElementVNode("th",O0e,r.toDisplayString(r.unref(i)("audit.ignoredHeader")),1)])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,p=>(r.openBlock(),r.createElementBlock("tr",{key:`${p.schemaName}.${p.tableName}`},[r.createElementVNode("td",V0e,[r.createElementVNode("span",I0e,r.toDisplayString(p.tableName),1),p.schemaName!=="public"?(r.openBlock(),r.createElementBlock("span",P0e,r.toDisplayString(p.schemaName),1)):r.createCommentVNode("",!0)]),r.createElementVNode("td",F0e,[r.createElementVNode("div",R0e,[r.createVNode(e0,{label:"","model-value":p.isEnabled,"is-disabled":t.disabled,"is-readonly":!1,"onUpdate:modelValue":f=>l(p,f)},null,8,["model-value","is-disabled","onUpdate:modelValue"])])]),r.createElementVNode("td",z0e,[p.isEnabled?(r.openBlock(),r.createBlock(dt,{key:1,"model-value":p.excludeColumns,class:"ao-audit-config__multiselect",mode:"tags","value-prop":"value",label:"label","track-by":"label","close-on-select":!1,searchable:!0,options:a(p),disabled:t.disabled,caret:!t.disabled,"onUpdate:modelValue":f=>c(p,f)},{option:r.withCtx(({option:f})=>[r.createElementVNode("span",H0e,[r.createTextVNode(r.toDisplayString(f.label)+" ",1),f.isPrimaryKey?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-audit-config__pk",title:r.unref(i)("audit.primaryKey")}," PK ",8,q0e)):r.createCommentVNode("",!0)])]),placeholder:r.withCtx(()=>[p.excludeColumns.length===0?(r.openBlock(),r.createElementBlock("span",j0e,r.toDisplayString(r.unref(i)("audit.allTracked")),1)):r.createCommentVNode("",!0)]),_:2},1032,["model-value","options","disabled","caret","onUpdate:modelValue"])):(r.openBlock(),r.createElementBlock("div",U0e,r.toDisplayString(r.unref(i)("audit.auditDisabled")),1))])]))),128))])])):(r.openBlock(),r.createElementBlock("div",$0e,r.toDisplayString(r.unref(i)("audit.empty")),1))]))}});const Z0e={key:0,class:"ao-activity-inline__drag-handle"},K0e={class:"ao-activity-inline__title"},G0e={class:"ao-activity-inline__name"},Y0e={class:"ao-activity-inline__assignee"},J0e={key:1,class:"ao-activity-inline__unassigned"},X0e={class:"ao-activity-inline__estimation"},Q0e={class:"ao-activity-inline__status"},eve={class:"ao-activity-inline__title"},tve={class:"ao-activity-inline__name"},nve={class:"ao-activity-inline__assignee"},ove={key:1,class:"ao-activity-inline__unassigned"},rve={class:"ao-activity-inline__estimation"},ive={class:"ao-activity-inline__status"},sve={key:3,class:"ao-activity-inline__content ao-activity-inline--disabled"},ave={class:"ao-activity-inline__title"},lve={class:"ao-activity-inline__name"},cve={class:"ao-activity-inline__assignee"},uve={key:1},dve={class:"ao-activity-inline__estimation"},fve={class:"ao-activity-inline__status"},pve=r.defineComponent({__name:"AoActivityInline",props:{activity:{},showMilestone:{type:Boolean,default:!0},isDraggable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},emits:["openActivity"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("openActivity",n.activity.id)},s=r.computed(()=>{const u=n.activity.milestone,d=u==null?void 0:u.phase,p=n.activity.project;return!(p!=null&&p.id)||!(d!=null&&d.id)||!(u!=null&&u.id)?null:{name:Pe.activity,params:{id:p.id,phaseId:d.id,milestoneId:u.id,activityId:n.activity.id}}}),a=r.computed(()=>n.activity.assignee?[n.activity.assignee.firstName,n.activity.assignee.lastName].filter(Boolean).join(" "):""),l=r.computed(()=>{var u,d;return((u=n.activity.devStatus)==null?void 0:u.name)??((d=n.activity.status)==null?void 0:d.name)??""}),c=r.computed(()=>{var u;return((u=n.activity.project)==null?void 0:u.estimationUnit)==="days"?"d":"h"});return(u,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-activity-inline",t.isDraggable?"ao-activity-inline--draggable":""])},[t.isDraggable?(r.openBlock(),r.createElementBlock("div",Z0e,[r.createVNode(ke,{name:"DragIndicator"})])):r.createCommentVNode("",!0),t.clickable?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-activity-inline__content",onClick:r.withModifiers(i,["stop"])},[r.createElementVNode("div",K0e,[t.showMilestone&&t.activity.milestone?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-activity-inline__milestone",style:r.normalizeStyle({"--milestone-color":t.activity.milestone.color||void 0})},r.toDisplayString(t.activity.milestone.name),5)):r.createCommentVNode("",!0),r.createElementVNode("span",G0e,r.toDisplayString(t.activity.name),1)]),r.createElementVNode("div",Y0e,[t.activity.assignee?(r.openBlock(),r.createBlock(Xt,{key:0,"user-name":a.value,"avatar-url":t.activity.assignee.avatarUrl,size:"sm",color:"neutral"},null,8,["user-name","avatar-url"])):(r.openBlock(),r.createElementBlock("span",J0e," — "))]),r.createElementVNode("div",X0e,[t.activity.estimation!=null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(t.activity.estimation)+r.toDisplayString(c.value),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))]),r.createElementVNode("div",Q0e,r.toDisplayString(l.value),1)])):s.value?(r.openBlock(),r.createBlock(r.unref(Go.RouterLink),{key:2,to:s.value,class:"ao-activity-inline__content"},{default:r.withCtx(()=>[r.createElementVNode("div",eve,[t.showMilestone&&t.activity.milestone?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-activity-inline__milestone",style:r.normalizeStyle({"--milestone-color":t.activity.milestone.color||void 0})},r.toDisplayString(t.activity.milestone.name),5)):r.createCommentVNode("",!0),r.createElementVNode("span",tve,r.toDisplayString(t.activity.name),1)]),r.createElementVNode("div",nve,[t.activity.assignee?(r.openBlock(),r.createBlock(Xt,{key:0,"user-name":a.value,"avatar-url":t.activity.assignee.avatarUrl,size:"sm",color:"neutral"},null,8,["user-name","avatar-url"])):(r.openBlock(),r.createElementBlock("span",ove," — "))]),r.createElementVNode("div",rve,[t.activity.estimation!=null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(t.activity.estimation)+r.toDisplayString(c.value),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))]),r.createElementVNode("div",ive,r.toDisplayString(l.value),1)]),_:1},8,["to"])):(r.openBlock(),r.createElementBlock("div",sve,[r.createElementVNode("div",ave,[r.createElementVNode("span",lve,r.toDisplayString(t.activity.name),1)]),r.createElementVNode("div",cve,[t.activity.assignee?(r.openBlock(),r.createBlock(Xt,{key:0,"user-name":a.value,"avatar-url":t.activity.assignee.avatarUrl,size:"sm",color:"neutral"},null,8,["user-name","avatar-url"])):(r.openBlock(),r.createElementBlock("span",uve,"—"))]),r.createElementVNode("div",dve,[t.activity.estimation!=null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(t.activity.estimation)+r.toDisplayString(c.value),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))]),r.createElementVNode("div",fve,r.toDisplayString(l.value),1)]))],2))}});const t0=ee(pve,[["__scopeId","data-v-dba59e2d"]]),mve={class:"ao-sprint-section__header-left"},hve={class:"ao-sprint-section__expand-icon"},gve={class:"ao-sprint-section__title"},vve={key:0,class:"ao-sprint-section__archived-badge"},yve={class:"ao-sprint-section__header-right"},_ve={class:"ao-sprint-section__dates"},Cve={class:"ao-sprint-section__meta"},bve=["title"],kve=["onClick"],wve={class:"ao-sprint-section__edit-title"},Eve={class:"ao-sprint-section__fixed-number"},Sve={class:"ao-sprint-section__date-fields"},xve={class:"ao-sprint-section__actions"},Ave={class:"ao-sprint-section__content"},Tve={key:0,class:"ao-sprint-section__empty"},Nve=r.defineComponent({__name:"AoSprintSection",props:{sprint:{},activities:{},isEditable:{type:Boolean,default:!1},planningData:{default:()=>({})},projects:{default:()=>[]},businessDayHours:{default:8}},emits:["updateSprint","archiveSprint","unarchiveSprint","activityChange","openActivity"],setup(t,{emit:e}){const n=t,o=e,i=P=>{P.added&&o("activityChange",{id:P.added.element.id,sprintId:n.sprint.id})},s=P=>{const L=n.activities.map(R=>R.id);o("openActivity",{activityId:P,activityIds:L})},a=r.ref(!0),l=r.ref(!1),c=r.ref({label:"",startDate:"",endDate:"",color:""}),u=r.computed(()=>n.sprint.label?`Sprint ${n.sprint.number}: ${n.sprint.label}`:`Sprint ${n.sprint.number}`),d=r.computed(()=>{const P=Mr(n.sprint.startDate,"dd/MM/yy"),L=Mr(n.sprint.endDate,"dd/MM/yy");return`${P} – ${L}`}),p=r.computed(()=>n.activities.length),f=r.computed(()=>n.activities.filter(P=>P.estimation!=null)),m=r.computed(()=>f.value.length>0),h=r.computed(()=>f.value.reduce((P,L)=>P+(L.estimation??0),0)),v=r.computed(()=>{var L,R;return((R=(L=n.activities.find(Y=>{var ae;return(ae=Y.project)==null?void 0:ae.estimationUnit}))==null?void 0:L.project)==null?void 0:R.estimationUnit)==="days"?"d":"h"}),C=r.computed(()=>{var P;return(P=n.planningData)==null?void 0:P[n.sprint.id]}),y=r.computed(()=>{var R;const P=n.sprint.projectId,L=n.projects.find(Y=>Y.id===P);return L||((R=n.activities.find(Y=>Y.project))==null?void 0:R.project)}),g=r.computed(()=>{const P=y.value;return(P==null?void 0:P.velocity)??1}),_=r.computed(()=>{const P=y.value;return(P==null?void 0:P.estimationUnit)??"days"}),b=r.computed(()=>{const P=C.value;return P!=null&&P.plannedManDays?_.value==="hours"?P.plannedManDays*n.businessDayHours:P.plannedManDays:null}),w=r.computed(()=>{const P=b.value;return P==null?null:P*g.value}),k=r.computed(()=>{const P=w.value;return P==null||P===0?null:Math.round(h.value/P*100)}),x=r.computed(()=>{const P=w.value;return P==null?!1:h.value>P}),S=r.computed(()=>{if(w.value==null)return null;const P=Math.round(h.value*10)/10,L=Math.round(w.value*10)/10,R=k.value;return R!=null?`${P} / ${L} pts · ${R}%`:`${P} / ${L} pts`}),E=r.computed(()=>{if(w.value==null)return null;const P=_.value==="hours"?"hours":"days",L=_.value==="hours"?"h":"d",R=b.value;return[`Estimated work: ${h.value} pts`,`Planned capacity: ${R} ${P}`,`Velocity: ${g.value} pt / ${L}`,`Sprint capacity: ${w.value} pts`,`Load: ${k.value}%`].join(`
63
- `)}),N=r.computed(()=>!!(c.value.startDate&&c.value.endDate)),I=()=>{l.value||(a.value=!a.value)},A=()=>{l.value=!0,c.value={label:n.sprint.label||"",startDate:n.sprint.startDate,endDate:n.sprint.endDate,color:n.sprint.color||""}},M=()=>{l.value=!1},D=()=>{N.value&&(o("updateSprint",{id:n.sprint.id,label:c.value.label||void 0,startDate:c.value.startDate,endDate:c.value.endDate,color:c.value.color||void 0}),l.value=!1)},$=()=>{window.confirm("Archive this sprint?")&&o("archiveSprint",{id:n.sprint.id})},B=()=>{o("unarchiveSprint",{id:n.sprint.id})};return(P,L)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-sprint-section",{"ao-sprint-section--archived":!t.sprint.active}])},[l.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:"ao-sprint-section__edit",onClick:L[6]||(L[6]=r.withModifiers(()=>{},["stop"]))},[r.createVNode(ti,{color:c.value.color,"onUpdate:color":L[2]||(L[2]=R=>c.value.color=R)},{clickable:r.withCtx(({openPicker:R,bgColor:Y})=>[r.createElementVNode("button",{class:"ao-sprint-section__color-trigger",style:r.normalizeStyle({backgroundColor:Y}),title:"Sprint color",onClick:ae=>R(ae.currentTarget)},null,12,kve)]),_:1},8,["color"]),r.createElementVNode("div",wve,[r.createElementVNode("span",Eve,"Sprint "+r.toDisplayString(t.sprint.number)+":",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":L[3]||(L[3]=R=>c.value.label=R),type:"text",class:"ao-sprint-section__input ao-sprint-section__input--label",placeholder:"Label"},null,512),[[r.vModelText,c.value.label]])]),r.createElementVNode("div",Sve,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":L[4]||(L[4]=R=>c.value.startDate=R),type:"date",class:"ao-sprint-section__input ao-sprint-section__input--date"},null,512),[[r.vModelText,c.value.startDate]]),L[7]||(L[7]=r.createElementVNode("span",null,"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":L[5]||(L[5]=R=>c.value.endDate=R),type:"date",class:"ao-sprint-section__input ao-sprint-section__input--date"},null,512),[[r.vModelText,c.value.endDate]])]),r.createElementVNode("div",xve,[r.createVNode(de,{color:"success",variant:"ghost",size:"sm","icon-name":"CheckSmallRounded",disabled:!N.value,title:"Save",onClick:D},null,8,["disabled"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm","icon-name":"CloseRounded",title:"Cancel",onClick:M})])])):(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-sprint-section__header",onClick:I},[r.createElementVNode("div",mve,[r.createElementVNode("span",hve,r.toDisplayString(a.value?"▾":"▸"),1),r.createElementVNode("span",{class:"ao-sprint-section__color-dot",style:r.normalizeStyle({backgroundColor:t.sprint.color||"var(--ao-color-primary-base)"})},null,4),r.createElementVNode("span",gve,r.toDisplayString(u.value),1),t.sprint.active?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",vve," Archived "))]),r.createElementVNode("div",yve,[r.createElementVNode("span",_ve,r.toDisplayString(d.value),1),r.createElementVNode("span",Cve,[r.createTextVNode(r.toDisplayString(p.value)+" "+r.toDisplayString(p.value===1?"activity":"activities")+" ",1),m.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(" · "+r.toDisplayString(h.value)+r.toDisplayString(v.value),1)],64)):r.createCommentVNode("",!0)]),S.value?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["ao-sprint-section__capacity",{"ao-sprint-section__capacity--over":x.value}]),title:E.value},r.toDisplayString(S.value),11,bve)):r.createCommentVNode("",!0),t.isEditable?(r.openBlock(),r.createElementBlock("div",{key:1,class:"ao-sprint-section__actions",onClick:L[1]||(L[1]=r.withModifiers(()=>{},["stop"]))},[r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm","icon-name":"EditOutline",title:"Edit sprint",onClick:A}),r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm",corners:"round","icon-name":"ArchiveOutlineRounded",label:t.sprint.active?"Archive":"Unarchive",onClick:L[0]||(L[0]=R=>t.sprint.active?$():B())},null,8,["label"])])):r.createCommentVNode("",!0)])])),r.withDirectives(r.createElementVNode("div",Ave,[r.createVNode(r.unref(Vn),{list:t.activities,class:"ao-sprint-section__draggable",group:"sprint-planning-activities","item-key":"id",handle:".ao-activity-inline__drag-handle",disabled:!t.isEditable,"ghost-class":"ao-sprint-section__ghost",onChange:i},{item:r.withCtx(({element:R})=>[r.createVNode(t0,{activity:R,"is-draggable":t.isEditable,clickable:!0,onOpenActivity:s},null,8,["activity","is-draggable"])]),_:1},8,["list","disabled"]),t.activities.length===0?(r.openBlock(),r.createElementBlock("div",Tve," No activities ")):r.createCommentVNode("",!0)],512),[[r.vShow,a.value&&!l.value]])],2))}});const Dve=ee(Nve,[["__scopeId","data-v-be017aa5"]]),$ve={class:"ao-sprint-list"},Bve={class:"ao-sprint-list__header"},Mve={class:"ao-sprint-list__title-group"},Lve={class:"ao-sprint-list__count"},Ove={class:"ao-sprint-list__actions"},Vve={key:0,class:"ao-sprint-list__toggle"},Ive={key:0,class:"ao-sprint-list__create"},Pve=["title","onClick"],Fve={class:"ao-sprint-list__create-title"},Rve={class:"ao-sprint-list__fixed-number"},zve=["placeholder"],Uve={class:"ao-sprint-list__date-fields"},Hve={class:"ao-sprint-list__row-actions"},qve={class:"ao-sprint-list__sections"},jve={key:1,class:"ao-sprint-list__empty"},Wve=r.defineComponent({__name:"AoSprintList",props:{sprints:{},activities:{},isEditable:{type:Boolean,default:!1},planningData:{default:()=>({})},projects:{default:()=>[]},businessDayHours:{default:8}},emits:["updateSprint","archiveSprint","unarchiveSprint","createSprint","activityChange","openActivity"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.ref(!1),a=r.ref(!1),l=r.ref({label:"",startDate:"",endDate:"",color:"#4f5cff"}),c=r.computed(()=>(s.value?[...o.sprints]:o.sprints.filter(y=>y.active)).sort((y,g)=>g.number-y.number)),u=r.computed(()=>o.sprints.reduce((C,y)=>Math.max(C,y.number),0)+1),d=r.computed(()=>!!(l.value.startDate&&l.value.endDate)),p=r.computed(()=>{var y;const C={};for(const g of o.activities){const _=(y=g.sprint)==null?void 0:y.id;_&&(C[_]??(C[_]=[])).push(g)}return C}),f=C=>p.value[C]??[],m=()=>{a.value=!0,l.value={label:"",startDate:"",endDate:"",color:"#4f5cff"}},h=()=>{a.value=!1},v=()=>{d.value&&(i("createSprint",{label:l.value.label||void 0,startDate:l.value.startDate,endDate:l.value.endDate,color:l.value.color||void 0}),a.value=!1)};return(C,y)=>(r.openBlock(),r.createElementBlock("section",$ve,[r.createElementVNode("div",Bve,[r.createElementVNode("div",Mve,[r.createElementVNode("h3",null,r.toDisplayString(r.unref(n)("sprint.planning")),1),r.createElementVNode("span",Lve,r.toDisplayString(c.value.length),1)]),r.createElementVNode("div",Ove,[t.sprints.some(g=>!g.active)?(r.openBlock(),r.createElementBlock("label",Vve,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=g=>s.value=g),type:"checkbox"},null,512),[[r.vModelCheckbox,s.value]]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("sprint.showArchived")),1)])):r.createCommentVNode("",!0),t.isEditable&&!a.value?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"solid",size:"sm","icon-name":"Add","icon-position":"start",label:r.unref(n)("sprint.add"),onClick:m},null,8,["label"])):r.createCommentVNode("",!0)])]),a.value?(r.openBlock(),r.createElementBlock("div",Ive,[r.createVNode(ti,{color:l.value.color,"onUpdate:color":y[1]||(y[1]=g=>l.value.color=g)},{clickable:r.withCtx(({openPicker:g,bgColor:_})=>[r.createElementVNode("button",{class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:_}),title:r.unref(n)("sprint.color"),onClick:b=>g(b.currentTarget)},null,12,Pve)]),_:1},8,["color"]),r.createElementVNode("div",Fve,[r.createElementVNode("span",Rve,"Sprint "+r.toDisplayString(u.value)+":",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[2]||(y[2]=g=>l.value.label=g),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--label",placeholder:r.unref(n)("sprint.label")},null,8,zve),[[r.vModelText,l.value.label]])]),r.createElementVNode("div",Uve,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[3]||(y[3]=g=>l.value.startDate=g),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,l.value.startDate]]),y[10]||(y[10]=r.createElementVNode("span",null,"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[4]||(y[4]=g=>l.value.endDate=g),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,l.value.endDate]])]),r.createElementVNode("div",Hve,[r.createVNode(de,{color:"success",variant:"ghost",size:"sm","icon-name":"CheckSmallRounded",disabled:!d.value,title:r.unref(n)("common.save"),onClick:v},null,8,["disabled","title"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm","icon-name":"CloseRounded",title:r.unref(n)("common.cancel"),onClick:h},null,8,["title"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",qve,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,g=>(r.openBlock(),r.createBlock(Dve,{key:g.id,sprint:g,activities:f(g.id),"is-editable":t.isEditable,"planning-data":t.planningData,projects:t.projects,"business-day-hours":t.businessDayHours,onUpdateSprint:y[5]||(y[5]=_=>i("updateSprint",_)),onArchiveSprint:y[6]||(y[6]=_=>i("archiveSprint",_)),onUnarchiveSprint:y[7]||(y[7]=_=>i("unarchiveSprint",_)),onActivityChange:y[8]||(y[8]=_=>i("activityChange",_)),onOpenActivity:y[9]||(y[9]=_=>i("openActivity",_))},null,8,["sprint","activities","is-editable","planning-data","projects","business-day-hours"]))),128))]),c.value.length===0&&!a.value?(r.openBlock(),r.createElementBlock("div",jve,r.toDisplayString(r.unref(n)("sprint.noSprints")),1)):r.createCommentVNode("",!0)]))}});const Zve=ee(Wve,[["__scopeId","data-v-97d6bf84"]]),Kve={class:"ao-backlog-section"},Gve={class:"ao-backlog-section__header-left"},Yve={class:"ao-backlog-section__expand-icon"},Jve={class:"ao-backlog-section__name"},Xve={key:0,class:"ao-backlog-section__phase"},Qve={class:"ao-backlog-section__header-right"},e2e={class:"ao-backlog-section__count"},t2e={class:"ao-backlog-section__content"},n2e={key:1,class:"ao-backlog-section__empty"},o2e={class:"ao-backlog-section__drop-hint"},r2e=r.defineComponent({__name:"AoBacklogSection",props:{milestoneId:{},milestoneName:{},milestoneColor:{},phaseName:{},activities:{},isEditable:{type:Boolean,default:!1}},emits:["activityChange","openActivity"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.ref(!0),a=r.computed(()=>o.activities.length),l=r.computed(()=>{if(o.milestoneColor)return{"--milestone-color":o.milestoneColor}}),c=()=>{s.value=!s.value},u=p=>{if(!p.added)return;const f=o.milestoneId==="__no_milestone__"?null:o.milestoneId;i("activityChange",{id:p.added.element.id,sprintId:null,milestoneId:f})},d=p=>{i("openActivity",{activityId:p,activityIds:o.activities.map(f=>f.id)})};return(p,f)=>(r.openBlock(),r.createElementBlock("div",Kve,[r.createElementVNode("div",{class:r.normalizeClass(["ao-backlog-section__header",{"ao-backlog-section__header--no-milestone":!t.milestoneColor}]),style:r.normalizeStyle(l.value),onClick:c},[r.createElementVNode("div",Gve,[r.createElementVNode("span",Yve,r.toDisplayString(s.value?"▾":"▸"),1),r.createElementVNode("span",Jve,r.toDisplayString(t.milestoneName),1),t.phaseName?(r.openBlock(),r.createElementBlock("span",Xve,r.toDisplayString(t.phaseName),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",Qve,[r.createElementVNode("span",e2e,r.toDisplayString(a.value)+" "+r.toDisplayString(a.value===1?r.unref(n)("backlog.activity"):r.unref(n)("backlog.activities")),1)])],6),r.withDirectives(r.createElementVNode("div",t2e,[t.activities.length>0?(r.openBlock(),r.createBlock(r.unref(Vn),{key:0,list:t.activities,class:"ao-backlog-section__draggable",group:"sprint-planning-activities","item-key":"id",handle:".ao-activity-inline__drag-handle",disabled:!t.isEditable,"ghost-class":"ao-backlog-section__ghost",onChange:u},{item:r.withCtx(({element:m})=>[r.createVNode(t0,{activity:m,"is-draggable":t.isEditable,"show-milestone":!1,clickable:!0,onOpenActivity:d},null,8,["activity","is-draggable"])]),_:1},8,["list","disabled"])):(r.openBlock(),r.createElementBlock("div",n2e,[r.createElementVNode("span",o2e,r.toDisplayString(r.unref(n)("backlog.dropHere")),1)]))],512),[[r.vShow,s.value]])]))}});const i2e=ee(r2e,[["__scopeId","data-v-fd191163"]]),s2e={class:"ao-backlog"},a2e={class:"ao-backlog__header"},l2e={class:"ao-backlog__count"},c2e={key:0,class:"ao-backlog__sections"},u2e={key:1,class:"ao-backlog__empty"},d2e=r.defineComponent({__name:"AoBacklog",props:{activities:{},isEditable:{type:Boolean,default:!1}},emits:["activityChange","openActivity"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.computed(()=>o.activities.filter(l=>{var d,p,f,m;if(l.sprint||l.active===!1)return!1;const c=((p=(d=l.status)==null?void 0:d.name)==null?void 0:p.toLowerCase())??"",u=((m=(f=l.devStatus)==null?void 0:f.name)==null?void 0:m.toLowerCase())??"";return!(c==="done"||u==="done")})),a=r.computed(()=>{var d;const l=new Map,c=new Map;let u=0;for(const p of o.activities){const f=((d=p.milestone)==null?void 0:d.id)??"__no_milestone__";c.has(f)||(c.set(f,u),u+=1)}for(const p of s.value){const f=p.milestone,m=f==null?void 0:f.phase,h=(f==null?void 0:f.id)??"__no_milestone__",v=l.get(h);if(v){v.activities.push(p);continue}l.set(h,{milestoneId:h,milestoneName:(f==null?void 0:f.name)??n("backlog.noMilestone"),milestoneColor:(f==null?void 0:f.color)||void 0,phaseName:m==null?void 0:m.name,activities:[p]})}return Array.from(l.values()).sort((p,f)=>{const m=c.get(p.milestoneId)??Number.MAX_SAFE_INTEGER,h=c.get(f.milestoneId)??Number.MAX_SAFE_INTEGER;return m-h})});return(l,c)=>(r.openBlock(),r.createElementBlock("section",s2e,[r.createElementVNode("div",a2e,[r.createElementVNode("h3",null,r.toDisplayString(r.unref(n)("backlog.title")),1),r.createElementVNode("span",l2e,r.toDisplayString(s.value.length),1)]),a.value.length>0?(r.openBlock(),r.createElementBlock("div",c2e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,u=>(r.openBlock(),r.createBlock(i2e,{key:u.milestoneId,"milestone-id":u.milestoneId,"milestone-name":u.milestoneName,"milestone-color":u.milestoneColor,"phase-name":u.phaseName,activities:u.activities,"is-editable":t.isEditable,onActivityChange:c[0]||(c[0]=d=>i("activityChange",d)),onOpenActivity:c[1]||(c[1]=d=>i("openActivity",d))},null,8,["milestone-id","milestone-name","milestone-color","phase-name","activities","is-editable"]))),128))])):(r.openBlock(),r.createElementBlock("div",u2e,r.toDisplayString(r.unref(n)("backlog.empty")),1))]))}});const f2e=ee(d2e,[["__scopeId","data-v-59715eab"]]),p2e={class:"ao-sprint-planning"},m2e={class:"ao-sprint-planning__sprint"},h2e={class:"ao-sprint-planning__backlog"},g2e=r.defineComponent({__name:"AoSprintPlanning",props:{sprints:{},activities:{},selectedActivity:{default:void 0},isEditable:{type:[Boolean,String],default:!1},users:{default:()=>[]},userId:{default:void 0},statuses:{default:()=>[]},devStatuses:{default:()=>[]},isTaskCheckable:{type:Function,default:void 0},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0},planningData:{default:()=>({})},projects:{default:()=>[]},businessDayHours:{default:8}},emits:["updateSprint","archiveSprint","unarchiveSprint","createSprint","activityChange","selectActivity","updateActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","fetchHistory"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(null),s=r.ref([]),a=r.computed(()=>i.value?s.value.indexOf(i.value):-1),l=r.computed(()=>a.value>0),c=r.computed(()=>a.value>=0&&a.value<s.value.length-1),u=r.computed(()=>{var g,_;const y=(g=n.selectedActivity)==null?void 0:g.milestone;return y?`${((_=y.phase)==null?void 0:_.name)??""} / ${y.name??""}`:""}),d=r.computed(()=>{var g;const y=(g=n.selectedActivity)==null?void 0:g.project;return y?[y]:[]}),p=y=>{i.value=y,o("selectActivity",y)},f=y=>{s.value=y.activityIds,p(y.activityId)},m=()=>{s.value=[],p(null)},h=()=>{l.value&&p(s.value[a.value-1])},v=()=>{c.value&&p(s.value[a.value+1])},C=y=>{if(!i.value)return;const g=y.target;g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement||g instanceof HTMLSelectElement||g.isContentEditable||(y.key==="ArrowLeft"?(y.preventDefault(),y.stopImmediatePropagation(),h()):y.key==="ArrowRight"?(y.preventDefault(),y.stopImmediatePropagation(),v()):y.key==="Escape"&&(y.preventDefault(),y.stopImmediatePropagation(),m()))};return r.onMounted(()=>{window.addEventListener("keydown",C)}),r.onUnmounted(()=>{window.removeEventListener("keydown",C)}),(y,g)=>{var _;return r.openBlock(),r.createElementBlock("div",p2e,[r.createElementVNode("div",m2e,[r.createVNode(Zve,{sprints:t.sprints,activities:t.activities,"is-editable":t.isEditable,"planning-data":t.planningData,projects:t.projects,"business-day-hours":t.businessDayHours,onUpdateSprint:g[0]||(g[0]=b=>o("updateSprint",b)),onArchiveSprint:g[1]||(g[1]=b=>o("archiveSprint",b)),onUnarchiveSprint:g[2]||(g[2]=b=>o("unarchiveSprint",b)),onCreateSprint:g[3]||(g[3]=b=>o("createSprint",b)),onActivityChange:g[4]||(g[4]=b=>o("activityChange",b)),onOpenActivity:f},null,8,["sprints","activities","is-editable","planning-data","projects","business-day-hours"])]),r.createElementVNode("div",h2e,[r.createVNode(f2e,{activities:t.activities,"is-editable":t.isEditable,onActivityChange:g[5]||(g[5]=b=>o("activityChange",b)),onOpenActivity:f},null,8,["activities","is-editable"])]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[i.value&&t.selectedActivity?(r.openBlock(),r.createBlock(ml,{key:0,activity:t.selectedActivity,"dev-statuses":t.devStatuses,"milestone-id":(_=t.selectedActivity.milestone)==null?void 0:_.id,"template-activities":t.activities,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:u.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:d.value,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":t.loadAttachmentPreview,sprints:t.sprints,onClose:m,"onUpdate:activity":g[6]||(g[6]=b=>o("updateActivity",b)),onAddSubtask:g[7]||(g[7]=b=>o("addSubtask",b)),onUpdateSubtask:g[8]||(g[8]=b=>o("updateSubtask",b)),onDeleteSubtask:g[9]||(g[9]=b=>o("deleteSubtask",b)),onAddFiles:g[10]||(g[10]=b=>o("addFiles",b)),onRemoveFile:g[11]||(g[11]=b=>o("removeFile",b)),onAddComment:g[12]||(g[12]=b=>o("addComment",b)),onUpdateComment:g[13]||(g[13]=b=>o("updateComment",b)),onRemoveComment:g[14]||(g[14]=b=>o("removeComment",b)),onFetchHistory:g[15]||(g[15]=b=>o("fetchHistory"))},null,8,["activity","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints"])):r.createCommentVNode("",!0)]))])}}});const v2e=ee(g2e,[["__scopeId","data-v-de9a1fe3"]]);exports.AoAuditConfigTable=W0e;exports.AoAvatar=Xt;exports.AoCardFeed=vd;exports.AoCheckboxField=e0;exports.AoColorPicker=ti;exports.AoFeed=Xc;exports.AoField=Qg;exports.AoHistory=Wg;exports.AoInputField=E0e;exports.AoMultiselect=dt;exports.AoProjectPhases=gd;exports.AoSprintPlanning=v2e;exports.AoTabBar=vs;exports.AoTemplateDetails=Zg;exports.AoTemplates=u0;exports.AoTemplatesList=Xg;exports.EstimationUnit=Tp;exports.TemplateItemTypeEnum=Ap;exports.activityFeedRoutes=Po;exports.activityFeedStatus=P3;exports.durationTypes=I3;exports.feedFilterTypes=ln;exports.getProjectOverviewRoutes=C0e;exports.getTemplateRoutes=_0e;exports.listUpdateTypes=F3;exports.milestoneStatus=Pi;exports.projectOverviewRoutes=Pe;exports.ruleComparators=Ep;exports.ruleDurationUnits=xp;exports.ruleTriggerTypes=Sp;exports.templateItemType=qe;exports.templateRouteNames=Ho;
62
+ ...`),m=r.computed(()=>n.placeholder||f.value),h=r.computed(()=>s.value.trim().length>0&&d.value.valid&&d.value.data.length>0&&!n.isLoading),v=r.computed(()=>{const b=w=>w.reduce((k,A)=>k+1+b(A.children??[]),0);return b(d.value.data)});r.watch(()=>n.open,async b=>{var w;b&&(s.value="",await r.nextTick(),(w=a.value)==null||w.focus())},{immediate:!0});const C=()=>{n.isLoading||(o("update:open",!1),o("close"))},y=()=>{h.value&&o("submit",d.value.data)},g=b=>String(b===0?i("project.bulk.modal.noSpace"):b===1?i("project.bulk.modal.oneSpace"):i("project.bulk.modal.spaces",{count:b})),_=b=>String(i(c[b.code],b.params??{}));return(b,w)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.open?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["ao-modal__wrapper","ao-bulk-insert-modal__wrapper",`ao-modal__wrapper--${t.size}`]),onKeydown:r.withKeys(r.withModifiers(C,["stop"]),["esc"])},[r.createElementVNode("div",{class:"ao-modal__backdrop",onClick:C}),r.createElementVNode("div",lme,[r.createElementVNode("div",cme,[r.createElementVNode("div",ume,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",color:"primary",onClick:C})]),r.createElementVNode("header",dme,[r.createVNode(ht,{title:t.title,level:3},null,8,["title"])])]),r.createElementVNode("div",fme,[r.createElementVNode("form",{class:"ao-bulk-insert-modal__form",onSubmit:r.withModifiers(y,["prevent"])},[t.hint?(r.openBlock(),r.createElementBlock("p",pme,r.toDisplayString(t.hint),1)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("textarea",{ref_key:"textareaRef",ref:a,"onUpdate:modelValue":w[0]||(w[0]=k=>s.value=k),class:"ao-bulk-insert-modal__textarea",placeholder:m.value,disabled:t.isLoading,rows:"9",spellcheck:"false"},null,8,mme),[[r.vModelText,s.value]]),d.value.errors.length>0?(r.openBlock(),r.createElementBlock("div",hme,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(d.value.errors,k=>(r.openBlock(),r.createElementBlock("p",{key:`${k.line}-${k.code}`,class:"ao-bulk-insert-modal__error"},r.toDisplayString(r.unref(i)("project.bulk.modal.lineError",{line:k.line,message:_(k)})),1))),128))])):s.value.trim().length>0?(r.openBlock(),r.createElementBlock("p",gme,r.toDisplayString(r.unref(i)("project.bulk.modal.count",{count:v.value})),1)):r.createCommentVNode("",!0),r.createElementVNode("div",vme,[r.createElementVNode("span",yme,r.toDisplayString(r.unref(i)("project.bulk.modal.indentation")),1),r.createElementVNode("div",_me,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value.levels,(k,A)=>(r.openBlock(),r.createElementBlock("div",{key:k,class:"ao-bulk-insert-modal__help-row"},[r.createElementVNode("span",Cme,r.toDisplayString(p(k)),1),r.createElementVNode("span",bme,r.toDisplayString(g(A)),1)]))),128))])]),r.createElementVNode("footer",kme,[r.createVNode(de,{color:"primary",variant:"ghost",label:r.unref(i)("common.cancel"),disabled:t.isLoading,onClick:C},null,8,["label","disabled"]),r.createVNode(de,{type:"submit",color:"primary",variant:"solid",label:r.unref(i)("common.create"),"is-loading":t.isLoading,disabled:!h.value},null,8,["label","is-loading","disabled"])])],32)])])],42,ame)):r.createCommentVNode("",!0)]))}});function hd(t,e){return(t.children??[]).filter(n=>n.type===e)}function wme(t){return hd(t,"task").map(e=>({name:e.name}))}function Kg(t,e=[]){const n=t.filter(i=>i.type==="activity"),o=tu(e,n.length);return n.map((i,s)=>{const a=wme(i);return{name:i.name,rank:o[s],...a.length?{tasks:a}:{}}})}function Eme(t,e){return Kg(t,e)}function Gg(t,e){const n=t.filter(i=>i.type==="milestone"),o=tu(e,n.length);return n.map((i,s)=>{const a=Kg(hd(i,"activity"));return{name:i.name,rank:o[s],...a.length?{activities:a}:{}}})}function Sme(t,e){const n=t.filter(i=>i.type==="phase"),o=tu(e,n.length);return n.map((i,s)=>{const a=Gg(hd(i,"milestone"),[]);return{name:i.name,rank:o[s],...a.length?{milestones:a}:{}}})}const xme={class:"ao-mapping-card-project-phase__header"},Ame={class:"ao-card-project-item__title-line"},Tme={key:0,class:"ao-card-project-item-phase__estimation"},Nme={class:"ao-mapping-card-project-phase__footer"},Dme={key:0,class:"ao-mapping-card-project-phase__footer-row ao-mapping-card-project-phase__footer-row--progress"},$me={class:"ao-mapping-card-project-phase__subitem"},Bme={class:"ao-mapping-card-project-phase__subitem"},Mme={key:0,class:"ao-mapping-card-project-phase__secondary"},Lme={class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--readonly"},Ome=r.defineComponent({__name:"AoCondensedCardProjectItemPhase",props:{id:{},projectName:{},name:{},milestones:{},isEditable:{type:Boolean},deadline:{},active:{type:Boolean},color:{},timeTrackingData:{},estimationUnit:{}},emits:["update:title","update:deadline","archivePhase","updatePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e,i=v=>{o("update:title",v)},s=r.computed(()=>{var v;return((v=n.milestones)==null?void 0:v.reduce((C,y)=>{var g;return C+((g=y.activities)==null?void 0:g.reduce((_,b)=>_+(b.estimation||0),0))},0))||0}),a=r.computed(()=>!n.milestones||!n.timeTrackingData?0:n.milestones.reduce((v,C)=>{var y;return v+(((y=C.activities)==null?void 0:y.reduce((g,_)=>{var w;const b=(w=n.timeTrackingData)==null?void 0:w[_.id];return g+((b==null?void 0:b.timeSpent)||0)},0))||0)},0)),l=r.computed(()=>n.estimationUnit==="days"?"":"h"),c=r.computed(()=>La(a.value,n.estimationUnit)),u=r.computed(()=>{var v;return(v=n.milestones)==null?void 0:v.length}),d=r.computed(()=>{var v;return(v=n.milestones)==null?void 0:v.filter(C=>C.status===Pi.done).length}),p=r.computed(()=>(d.value||0)/(u.value||1)),f=r.computed({get:()=>n.deadline??"",set:v=>o("update:deadline",v!=null&&v.length?v:null)}),m=r.computed({get:()=>n.color,set:v=>{o("updatePhase",{id:n.id,color:v})}}),h=(v,C)=>{const y=v.target;y.closest("button")||y.closest("input")||y.closest(".ao-title")||C()};return(v,C)=>(r.openBlock(),r.createBlock(ti,{color:m.value,"onUpdate:color":C[2]||(C[2]=y=>m.value=y)},{clickable:r.withCtx(({openPicker:y,bgColor:g})=>[r.createVNode(hl,{class:"ao-mapping-card-project-phase","is-clickable":t.isEditable,color:g,"with-left-border":!0,onClick:_=>h(_,y)},r.createSlots({default:r.withCtx(()=>[r.createElementVNode("div",Ame,[r.createVNode(ht,{id:t.id,class:"ao-mapping-card-project-phase__title",title:t.name||"",level:4,"is-editable":t.isEditable,"onUpdate:title":i},null,8,["id","title","is-editable"]),s.value||a.value?(r.openBlock(),r.createElementBlock("span",Tme," ("+r.toDisplayString(c.value)+"/"+r.toDisplayString(s.value)+r.toDisplayString(l.value)+")",1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",Nme,[u.value?(r.openBlock(),r.createElementBlock("div",Dme,[r.createElementVNode("div",$me,[r.createVNode(ke,{name:"MountainFlagOutlineRounded",size:"sm"}),r.createElementVNode("span",Bme,r.toDisplayString(d.value)+" / "+r.toDisplayString(u.value),1)]),r.createVNode(gl,{percentages:p.value,class:"ao-mapping-card-project-phase__progress",color:m.value},null,8,["percentages","color"]),v.$slots.secondary?(r.openBlock(),r.createElementBlock("div",Mme,[r.renderSlot(v.$slots,"secondary")])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(["ao-mapping-card-project-phase__footer-row",f.value?"":"ao-mapping-card-project-phase__no_deadline"])},[t.isEditable?r.withDirectives((r.openBlock(),r.createElementBlock("input",{key:0,"onUpdate:modelValue":C[1]||(C[1]=_=>f.value=_),class:"ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",type:"date"},null,512)),[[r.vModelText,f.value,void 0,{lazy:!0}]]):r.createCommentVNode("",!0),r.createElementVNode("span",Lme,r.toDisplayString(r.unref(Mr)(t.deadline)),1)],2)])]),_:2},[t.isEditable?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("div",xme,[r.createVNode(de,{class:"ao-mapping-card-project-phase__archive",color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:t.active?v.$t("archive"):v.$t("unarchive"),onClick:C[0]||(C[0]=r.withModifiers(()=>t.active?v.$emit("archivePhase",{id:t.id}):v.$emit("unarchivePhase",{id:t.id}),["stop"]))},null,8,["label"])])]),key:"0"}:void 0]),1032,["is-clickable","color","onClick"])]),_:3},8,["color"]))}});const Vme={class:"ao-project-phase"},Ime={key:0,class:"ao-project-phase__drag ao-card__drag"},Pme={key:1,class:"ao-project-phase__col-phase"},Fme={key:2,class:"ao-mapping-project-phase__col-phase"},Rme={key:0,class:"ao-project-phase__col-milestones"},zme=["title","onClick"],Ume=["onClick"],Hme=["onClick"],qme={class:"ao-project-phase__milestones-list-footer"},jme=r.defineComponent({__name:"AoProjectPhase",props:{phase:{},closedStatus:{},users:{},isEditable:{type:Boolean},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e;r.watch(()=>o.phase.milestones,(S,E)=>{Kn(S,E)});const s=S=>{i("updatePhase",{id:o.phase.id,name:S})},a=S=>{i("updatePhase",{id:o.phase.id,deadline:S})},l=S=>{i("updatePhase",S)},c=r.computed(()=>o.phase.milestones.map(S=>DC(S,o.closedStatus))),u=S=>{const{name:E,rank:D}=Ko(c.value??[],"milestone",n);i("addMilestone",{name:E,rank:D,phaseId:S})},d=S=>{const E=n("template.defaultName.milestone",{idx:1}),D=os(c.value??[]);i("addMilestone",{name:E,rank:D,phaseId:S})},p=S=>{i("updateMilestone",S)},f=S=>{i("archiveMilestone",S)},m=S=>{i("unarchiveMilestone",S)},h=S=>{i("archivePhase",S)},v=S=>{i("unarchivePhase",S)},C=S=>{"added"in S?i("updateMilestone",{id:S.added.element.id,phaseId:o.phase.id,rank:Br(c.value,S.added.newIndex)}):"removed"in S||"moved"in S&&i("updateMilestone",{id:S.moved.element.id,rank:Br(c.value,S.moved.newIndex)})},y=r.ref(!1),g=r.ref(!1),_=S=>{g.value=!0;const E=Gg(S,o.phase.milestones??[]);i("bulkAddMilestone",{phaseId:o.phase.id,milestones:E,onSuccess:()=>{g.value=!1,y.value=!1},onError:()=>{g.value=!1}})};r.watch(y,S=>{S&&(g.value=!1)});const b=Go.useRoute(),w=r.computed(()=>b.path.includes("/mapping")),k=r.computed(()=>{var S;return o.phase.id===((S=b.params)==null?void 0:S.phaseId)});r.ref(!1);const A=r.computed(()=>{var S;return o.phase.id!==((S=b.params)==null?void 0:S.phaseId)?{backgroundColor:"var(--ao-color-sheet)"}:o.phase.color?{backgroundColor:BC(o.phase.color)}:{backgroundColor:"var(--ao-color-primary-lightest)"}});return(S,E)=>(r.openBlock(),r.createElementBlock("li",Vme,[r.createElementVNode("div",{class:"ao-project-phases__draggable-card",style:r.normalizeStyle(A.value)},[t.isEditable?(r.openBlock(),r.createElementBlock("div",Ime,[r.createVNode(ke,{name:"DragIndicator",class:"ao-project-phase__drag-handle"})])):r.createCommentVNode("",!0),w.value?(r.openBlock(),r.createElementBlock("div",Fme,[r.createVNode(Ome,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:v,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","estimation-unit"])])):(r.openBlock(),r.createElementBlock("div",Pme,[r.createVNode(Ipe,{id:t.phase.id,milestones:c.value,name:t.phase.name,deadline:t.phase.deadline,active:t.phase.active,"is-editable":t.isEditable,color:t.phase.color,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,"onUpdate:deadline":a,"onUpdate:title":s,onArchivePhase:h,onUnarchivePhase:v,onUpdatePhase:l},null,8,["id","milestones","name","deadline","active","is-editable","color","time-tracking-data","estimation-unit"])]))],4),w.value?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Rme,[r.createElementVNode("div",{class:"ao-project-phase__milestones ao-project-phase__milestones--hoverable",style:r.normalizeStyle(A.value)},[t.isEditable?(r.openBlock(),r.createBlock(xa,{key:0,class:r.normalizeClass(["ao-project-phase__milestone-quick-add",{"ao-project-phase__milestone-quick-add--visible":k.value}]),placement:"bottom-end"},{trigger:r.withCtx(({open:D})=>[r.createElementVNode("button",{type:"button",class:"ao-project-phase__milestone-quick-add-trigger",title:S.$t("project.milestone.add"),onClick:D},[r.createVNode(ke,{name:"Add",class:"ao-project-phase__milestone-quick-add-icon"})],8,zme)]),menu:r.withCtx(({close:D})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{D(),d(t.phase.id)}},r.toDisplayString(S.$t("project.bulk.menu.single")),9,Ume),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{D(),y.value=!0}},r.toDisplayString(S.$t("project.bulk.menu.bulkInsert")),9,Hme)]),_:1},8,["class"])):r.createCommentVNode("",!0),r.createVNode(r.unref(Vn),r.mergeProps({class:"ao-project-phase__milestones-list",list:c.value,disabled:t.readonly||!t.isEditable,"item-key":"id",group:"kanban"},S.$attrs,{onChange:C}),{item:r.withCtx(({element:D})=>{var V;return[r.createVNode(Qpe,{id:D.id,name:D.name,color:D.color,"phase-color":t.phase.color,activities:D.activities,deadline:D.deadline,active:D.active,"is-editable":!t.readonly&&t.isEditable,"is-draggable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,"is-selected":D.id===((V=S.$route.params)==null?void 0:V.milestoneId),assignee:D.assignee,important:D.important,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,class:r.normalizeClass(["ao-project-phase__milestone"]),onClick:T=>!t.readonly&&S.$router.push({name:r.unref(Pe).milestone,params:{phaseId:t.phase.id,milestoneId:D.id}}),onUpdateMilestone:p,onArchiveMilestone:f,onUnarchiveMilestone:m},null,8,["id","name","color","phase-color","activities","deadline","active","is-editable","is-draggable","closed-status","is-selected","assignee","important","readonly","time-tracking-data","estimation-unit","onClick"])]}),_:1},16,["list","disabled"]),r.createElementVNode("div",qme,[t.isEditable?(r.openBlock(),r.createBlock(Eo,{key:0,label:S.$t("project.milestone.add"),"icon-name":"Add",class:"ao-project-phase__milestone-add",onClick:E[0]||(E[0]=D=>u(t.phase.id))},null,8,["label"])):r.createCommentVNode("",!0)])],4)])),y.value?(r.openBlock(),r.createBlock(md,{key:1,open:y.value,"onUpdate:open":E[1]||(E[1]=D=>y.value=D),title:S.$t("project.bulk.modal.milestone.title"),"root-type":"milestone","is-loading":g.value,onSubmit:_},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)]))}});const Wme={class:"ao-project__phases"},Zme={key:0,class:"ao-project-phase__phases-list-footer"},Kme={class:"ao-project-phase__col-phase"},gd=r.defineComponent({__name:"AoProjectPhases",props:{phases:{},closedStatus:{},isEditable:{type:Boolean},users:{},readonly:{type:Boolean},timeTrackingData:{},estimationUnit:{}},emits:["addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addPhase","updatePhase","archivePhase","unarchivePhase"],setup(t,{emit:e}){const n=t,o=e;r.watch(()=>n.phases,(m,h)=>{Kn(m,h)});const i=m=>{o("addMilestone",m)},s=m=>{o("updateMilestone",m)},a=m=>{o("archiveMilestone",m)},l=m=>{o("unarchiveMilestone",m)},c=m=>{o("archivePhase",m)},u=m=>{o("unarchivePhase",m)},d=m=>{if(m.moved){const h=ns(m,n.phases??[]);o("updatePhase",{id:m.moved.element.id,rank:h})}},p=m=>{o("updatePhase",m)},f=m=>{o("addPhase",m)};return(m,h)=>(r.openBlock(),r.createElementBlock("div",Wme,[r.createVNode(r.unref(Vn),{class:"ao-project-phase__phases-list","model-value":t.phases,"item-key":"id",handle:".ao-card__drag",onChange:d},{item:r.withCtx(({element:v})=>[r.createVNode(jme,{phase:v,"is-editable":!t.readonly&&t.isEditable,"closed-status":t.closedStatus,users:t.users,readonly:t.readonly,"time-tracking-data":t.timeTrackingData,"estimation-unit":t.estimationUnit,onAddMilestone:i,onBulkAddMilestone:h[0]||(h[0]=C=>m.$emit("bulkAddMilestone",C)),onUpdateMilestone:s,onArchiveMilestone:a,onUnarchiveMilestone:l,onUpdatePhase:p,onArchivePhase:c,onUnarchivePhase:u},null,8,["phase","is-editable","closed-status","users","readonly","time-tracking-data","estimation-unit"])]),_:1},8,["model-value"]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Zme,[h[1]||(h[1]=r.createElementVNode("div",{class:"ao-project-phase__empty_drag"},null,-1)),r.createElementVNode("div",Kme,[r.createVNode(Eo,{label:m.$t("project.phases.add"),"icon-name":"Add",class:"ao-project-phase__add-phase",onClick:f},null,8,["label"])]),h[2]||(h[2]=r.createElementVNode("div",{class:"ao-project-phase__col-milestones"},null,-1))])):r.createCommentVNode("",!0)]))}});const Gme={class:"ao-add-template-modal__form-body"},Yme={class:"field__row"},Jme={class:"ao-add-template-modal__form-footer"},Yg=r.defineComponent({__name:"AoAddTemplateModal",props:{projectId:{},templates:{}},emits:["apply"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.templates.map(c=>({value:c.id,label:c.name}))),s=r.ref(null),a=c=>{s.value=c},l=()=>{s.value&&o("apply",s.value,n.projectId)};return(c,u)=>(r.openBlock(),r.createBlock(Oa,{size:"sm"},{header:r.withCtx(()=>[r.createVNode(ht,{title:c.$t("project.template.apply.title"),level:3},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("form",{class:"ao-add-template-modal__form",onSubmit:r.withModifiers(l,["prevent"])},[r.createElementVNode("p",null,r.toDisplayString(c.$t("project.template.apply.notice")),1),r.createElementVNode("div",Gme,[r.createElementVNode("div",Yme,[r.createVNode(dt,{value:s.value,options:i.value,detached:!0,onChange:a},null,8,["value","options"])])]),r.createElementVNode("footer",Jme,[r.createVNode(de,{label:c.$t("project.template.apply.label"),type:"submit",color:"primary",variant:"solid",onClick:l},null,8,["label"])])],32)]),_:1}))}});const Xme={class:"ao-save-template-modal__form-body"},Qme={class:"field__row"},ehe={class:"ao-field ao-field--inline"},the={class:"ao-field__label"},nhe={class:"ao-save-template-modal__phases"},ohe={class:"ao-field__label"},rhe={class:"ao-save-template-modal__phases-list"},ihe=["value"],she={class:"ao-save-template-modal__form-footer"},Jg=r.defineComponent({__name:"AoSaveTemplateModal",props:{phases:{}},emits:["save"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(""),s=r.ref([]);r.onMounted(()=>{s.value=n.phases.map(l=>l.id)});const a=()=>{i.value&&o("save",i.value,s.value)};return(l,c)=>(r.openBlock(),r.createBlock(Oa,{size:"sm"},{header:r.withCtx(()=>[r.createVNode(ht,{title:l.$t("project.template.save.title"),level:3},null,8,["title"])]),default:r.withCtx(()=>[r.createElementVNode("form",{class:"ao-save-template-modal__form",onSubmit:r.withModifiers(a,["prevent"])},[r.createElementVNode("div",Xme,[r.createElementVNode("div",Qme,[r.createElementVNode("label",ehe,[r.createElementVNode("span",the,r.toDisplayString(l.$t("project.template.name.label"))+": ",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),type:"text"},null,512),[[r.vModelText,i.value]])])]),r.createElementVNode("div",nhe,[r.createElementVNode("div",ohe,r.toDisplayString(l.$t("project.template.phases.label")),1),r.createElementVNode("div",rhe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.phases,u=>(r.openBlock(),r.createElementBlock("label",{key:u.id,class:"ao-field ao-field--checkbox"},[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>s.value=d),type:"checkbox",value:u.id},null,8,ihe),[[r.vModelCheckbox,s.value]]),r.createElementVNode("span",null,r.toDisplayString(u.name),1)]))),128))])])]),r.createElementVNode("footer",she,[r.createVNode(de,{label:l.$t("project.template.save.label"),type:"submit",color:"primary",variant:"solid",onClick:a},null,8,["label"])])],32)]),_:1}))}});const ahe={class:"ao-project"},lhe=["onClick"],che=["onClick"],uhe={class:"ao-project__body"},dhe=r.defineComponent({__name:"AoProjectOverviewProject",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{},statuses:{},activityTypes:{},devStatuses:{},sprints:{},selectedActivity:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1}},emits:["addPhase","bulkAddPhase","updatePhase","archivePhase","unarchivePhase","addMilestone","bulkAddMilestone","updateMilestone","archiveMilestone","unarchiveMilestone","addActivity","bulkAddActivity","update:activity","archiveActivity","copyPhaseToTemplate","unarchiveActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","applyTemplate","saveTemplate","update:showsArchived","fetchHistory"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.computed(()=>o.phases.flatMap(F=>F.milestones)),a=()=>{const{name:F,rank:re}=Ko(o.phases,"phase",n);i("addPhase",{name:F,rank:re,projectId:o.project.id})},l=()=>{const F=n("template.defaultName.phase",{idx:1}),re=os(o.phases);i("addPhase",{name:F,rank:re,projectId:o.project.id})},c=F=>{i("updatePhase",F)},u=F=>{i("archivePhase",F)},d=F=>{i("unarchivePhase",F)},p=F=>{i("copyPhaseToTemplate",F)},f=F=>{i("addMilestone",F)},m=F=>{i("bulkAddMilestone",F)},h=F=>{i("updateMilestone",F)},v=F=>{i("archiveMilestone",F)},C=F=>{i("unarchiveMilestone",F)},y=F=>{i("addActivity",F)},g=F=>{i("bulkAddActivity",F)},_=F=>{i("update:activity",F)},b=F=>{i("archiveActivity",F)},w=F=>{i("unarchiveActivity",F)},k=F=>{i("addSubtask",F)},A=F=>{i("updateSubtask",F)},S=F=>{i("deleteSubtask",F)},E=r.computed(()=>s.value.flatMap(F=>F.activities)),D=r.computed(()=>o.devStatuses??[]),V=r.computed(()=>o.sprints??[]),T=F=>{i("addFiles",F)},M=F=>{i("removeFile",F)},x=F=>{i("addComment",F)},$=F=>{i("updateComment",F)},B=F=>{i("removeComment",F)},q=r.ref(!1),I=r.ref(!1),H=r.ref(!1),Y=r.ref(!1),le=(F,re)=>{i("applyTemplate",{templateId:F,projectId:re}),q.value=!1},oe=(F,re)=>{var we;const Ee=(we=o.templates)==null?void 0:we.at(-1),ze=Ee?Xe.LexoRank.parse(Ee.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:F,rank:ze.format(),phaseIds:re}),I.value=!1},Ne=F=>{Y.value=!0;const re=Sme(F,o.phases);i("bulkAddPhase",{projectId:o.project.id,phases:re,onSuccess:()=>{Y.value=!1,H.value=!1},onError:()=>{Y.value=!1}})};r.watch(H,F=>{F&&(Y.value=!1)});const ce=Go.useRouter(),ne=r.ref("overview"),z=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(ne,F=>{F==="feed"?(ce.push({name:Pe.feed}),console.log("Navigating to feed...")):F==="dev"?(ce.push({name:Pe.dev}),console.log("Navigating to dev...")):F==="overview"?(ce.push({name:Pe.project}),console.log("Navigating to feed...")):F==="mapping"&&(ce.push({name:Pe.mapping}),console.log("Navigating to feed..."))}),(F,re)=>{var ze;const Ee=r.resolveComponent("RouterView");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-overview"},F.$attrs),[r.createElementVNode("div",ahe,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createVNode(vs,{modelValue:ne.value,"onUpdate:modelValue":re[0]||(re[0]=we=>ne.value=we),tabs:z},null,8,["modelValue"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:re[1]||(re[1]=we=>F.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(xa,{key:0,class:"ao-project-overview__quick-add-phase"},{trigger:r.withCtx(({open:we})=>[r.createVNode(de,{size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:F.$t("project.phase.add"),onClick:we},null,8,["label","onClick"])]),menu:r.withCtx(({close:we})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{we(),l()}},r.toDisplayString(F.$t("project.bulk.menu.single")),9,lhe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{we(),H.value=!0}},r.toDisplayString(F.$t("project.bulk.menu.bulkInsert")),9,che)]),_:1})):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:1,class:"ao-project-overview__save-as-template",color:"primary",label:F.$t("project.template.save.label"),onClick:re[2]||(re[2]=we=>I.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-project-overview__add-template",color:"primary",label:F.$t("project.template.apply.label"),onClick:re[3]||(re[3]=we=>q.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",uhe,[r.createVNode(gd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"time-tracking-data":t.timeTrackingData,"estimation-unit":(ze=t.project)==null?void 0:ze.estimationUnit,onAddMilestone:f,onBulkAddMilestone:m,onUpdateMilestone:h,onArchiveMilestone:v,onUnarchiveMilestone:C,onAddPhase:a,onUpdatePhase:c,onArchivePhase:u,onUnarchivePhase:d,onCopyPhaseToTemplate:p},null,8,["phases","closed-status","is-editable","users","time-tracking-data","estimation-unit"])])]),r.createVNode(Ee,{class:"ao-project__sidebar",phases:t.phases,"project-id":t.project.id,"project-name":t.project.name,users:t.users,"is-editable":t.isEditable===!0,"closed-status":t.closedStatus,"time-tracking-data":t.timeTrackingData,onClose:re[4]||(re[4]=we=>F.$router.push({name:r.unref(Pe).project})),onUpdateMilestone:h,onAddActivity:y,onBulkAddActivity:g,onUpdateActivity:_,onArchiveActivity:b,onUnarchiveActivity:w},null,8,["phases","project-id","project-name","users","is-editable","closed-status","time-tracking-data"]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(Ee,{name:"modal",activities:E.value,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,"activity-types":t.activityTypes,"dev-statuses":D.value,sprints:V.value,"selected-activity":t.selectedActivity,phases:t.phases,project:t.project,users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":t.loadAttachmentPreview,history:t.history,"history-loading":t.historyLoading,"onUpdate:activity":_,onAddSubtask:k,onUpdateSubtask:A,onDeleteSubtask:S,onAddFiles:T,onRemoveFile:M,onAddComment:x,onUpdateComment:$,onRemoveComment:B,onFetchHistory:re[5]||(re[5]=()=>i("fetchHistory"))},{default:r.withCtx(({Component:we})=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(we),null,{default:r.withCtx(Ce=>[r.renderSlot(F.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(Ce)))]),_:3}))]),_:3},8,["activities","is-task-checkable","statuses","activity-types","dev-statuses","sprints","selected-activity","phases","project","users","user-id","is-editable","attachment-enabled","time-tracking-data","load-attachment-preview","history","history-loading"])]))],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[I.value?(r.openBlock(),r.createBlock(Jg,{key:0,phases:t.phases,onClose:re[6]||(re[6]=we=>I.value=!1),onSave:oe},null,8,["phases"])):r.createCommentVNode("",!0),q.value?(r.openBlock(),r.createBlock(Yg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:re[7]||(re[7]=we=>q.value=!1),onApply:le},null,8,["project-id","templates"])):r.createCommentVNode("",!0),H.value?(r.openBlock(),r.createBlock(md,{key:2,open:H.value,"onUpdate:open":re[8]||(re[8]=we=>H.value=we),title:F.$t("project.bulk.modal.phase.title"),"root-type":"phase","is-loading":Y.value,onSubmit:Ne},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)]))],64)}}});const fhe={class:"ao-card-feed__header"},phe={key:1,class:"ao-card-feed__header-secondary ao-card-feed__header-icons"},mhe={key:2,class:"ao-card-feed__header-secondary ao-card-feed__secondary"},hhe={class:"ao-card-feed__body"},ghe={key:0,class:"ao-card-feed__breadcrumbs"},vhe={class:r.normalizeClass(["ao-card-feed__title-group"])},yhe={class:"ao-card-feed__title-line"},_he={key:0,class:"ao-card-feed__slug"},Che={key:1,class:"ao-card-feed__deadline"},bhe={class:"ao-card-feed__footer"},khe={class:"ao-card-feed__footer-row"},whe={class:"ao-assignees"},Ehe={key:0,class:"ao-assignee"},She={key:0,class:"ao-card-feed__subitems"},xhe={key:0,class:"ao-card-feed__subitem"},Ahe={class:"ao-card-feed__subitem"},The={key:1,class:"ao-card-feed__subitem"},Nhe={class:"ao-card-feed__subitem"},Dhe={class:"ao-card-feed__timer-wrapper"},$he={class:"ao-card-feed__footer-row"},Bhe={key:0,class:"ao-card-feed__progress-wrapper"},Mhe={class:"ao-card-feed__subitem"},Lhe={class:"ao-card-feed__subitem"},vd=r.defineComponent({__name:"AoCardFeed",props:{id:{},name:{},projectName:{},projectId:{},projectColor:{},phaseName:{},milestoneName:{},milestoneColor:{},deadline:{},important:{type:Boolean},blocked:{type:Boolean},assignee:{},slug:{},comments:{},attachments:{},tasks:{},isEditable:{type:Boolean},isPrivate:{type:Boolean},isClosed:{type:Boolean},tagType:{}},emits:["removeAssignee","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.tagType==="milestone"?n.milestoneName:n.projectName),s=r.computed(()=>n.tagType==="milestone"?n.milestoneColor:n.projectColor),a=v=>{o("updateActivity",{id:n.id,name:v})},l=r.computed(()=>n.tagType==="milestone"&&n.phaseName?`${n.phaseName}`:n.phaseName&&n.milestoneName?`${n.phaseName} / ${n.milestoneName}`:""),c=r.computed(()=>n.assignee?[n.assignee]:[]),u=r.computed(()=>Mr(n.deadline)),d=v=>{o("removeAssignee",v)},p=()=>{o("startTimer",{activityId:n.id,name:n.name,project:n.projectName,projectId:n.projectId,slug:n.slug})},f=r.computed(()=>{var v;return(v=n.tasks)==null?void 0:v.length}),m=r.computed(()=>{var v;return(v=n.tasks)==null?void 0:v.filter(C=>C.isDone).length}),h=r.computed(()=>(m.value||0)/(f.value||1));return(v,C)=>(r.openBlock(),r.createBlock(hl,{class:r.normalizeClass(["ao-card-feed",{"ao-card-feed--closed":t.isClosed}]),"is-clickable":!0,variant:t.blocked?"danger":"default"},{header:r.withCtx(()=>[r.createElementVNode("div",fhe,[i.value?(r.openBlock(),r.createBlock(Ii,{key:0,label:i.value,class:"ao-card-feed__project",variant:"solid",color:t.projectColor?void 0:"primary","raw-color":s.value},null,8,["label","color","raw-color"])):r.createCommentVNode("",!0),t.isPrivate||t.important||t.isClosed||t.blocked?(r.openBlock(),r.createElementBlock("div",phe,[t.isPrivate?(r.openBlock(),r.createBlock(ke,{key:0,name:"Lock",class:"ao-card-feed__warning",size:"sm"})):r.createCommentVNode("",!0),t.important?(r.openBlock(),r.createBlock(ke,{key:1,name:"FlagRounded",class:"ao-card-feed__important",size:"sm"})):r.createCommentVNode("",!0),t.isClosed?(r.openBlock(),r.createBlock(ke,{key:2,name:"CheckSmallRounded",class:"ao-card-feed__closed"})):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),v.$slots.secondary?(r.openBlock(),r.createElementBlock("div",mhe,[r.renderSlot(v.$slots,"secondary")])):r.createCommentVNode("",!0)])]),default:r.withCtx(()=>[r.createElementVNode("div",hhe,[l.value?(r.openBlock(),r.createElementBlock("span",ghe,r.toDisplayString(l.value),1)):r.createCommentVNode("",!0),r.createElementVNode("div",vhe,[r.createElementVNode("div",yhe,[t.slug?(r.openBlock(),r.createElementBlock("span",_he,r.toDisplayString(t.slug)+": ",1)):r.createCommentVNode("",!0),r.createVNode(ht,{id:t.id,title:t.name,level:5,"is-editable":t.isEditable,class:"ao-card-feed__title-inline","onUpdate:title":a},null,8,["id","title","is-editable"])])]),t.deadline?(r.openBlock(),r.createElementBlock("span",Che,r.toDisplayString(u.value),1)):r.createCommentVNode("",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("div",bhe,[r.createElementVNode("div",khe,[r.createElementVNode("ul",whe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,y=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:y.id},[y?(r.openBlock(),r.createElementBlock("li",Ehe,[r.createVNode(Xt,{"user-name":r.unref(Hp)(y),"avatar-url":y.avatarUrl,"is-closable":!0,onClose:()=>d(y.id)},null,8,["user-name","avatar-url","onClose"])])):r.createCommentVNode("",!0)],64))),128))]),t.comments||t.attachments?(r.openBlock(),r.createElementBlock("ul",She,[t.comments?(r.openBlock(),r.createElementBlock("li",xhe,[r.createVNode(ke,{name:"ChatOutline",size:"sm"}),r.createElementVNode("span",Ahe,r.toDisplayString(t.comments),1)])):r.createCommentVNode("",!0),t.attachments?(r.openBlock(),r.createElementBlock("li",The,[r.createVNode(ke,{name:"AttachFileRounded",size:"sm"}),r.createElementVNode("span",Nhe,r.toDisplayString(t.attachments),1)])):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0),r.createElementVNode("div",Dhe,[r.createVNode(ke,{name:"TimerOutline",class:"ao-card-feed__timer",size:"md",onClick:r.withModifiers(p,["stop"])})])]),r.createElementVNode("div",$he,[t.tasks&&t.tasks.length?(r.openBlock(),r.createElementBlock("div",Bhe,[r.createElementVNode("div",Mhe,[r.createVNode(ke,{name:"SelectCheckBox",size:"sm"}),r.createElementVNode("span",Lhe,r.toDisplayString(m.value)+" / "+r.toDisplayString(f.value),1)]),r.createVNode(gl,{percentages:h.value,class:"ao-card-feed__progress"},null,8,["percentages"])])):r.createCommentVNode("",!0)])])]),_:3},8,["class","variant"]))}});const Ohe={class:"ao-project-milestone"},Vhe={class:"ao-project-milestone__header"},Ihe={class:"ao-project-milestone__header_line"},Phe={class:"ao-project-milestone__header_line"},Fhe={class:"ao-project-milestone__title"},Rhe={key:0,class:"ao-fieldset ao-milestone__fieldset"},zhe={class:"ao-field__row ao-milestone__field-row"},Uhe={class:"ao-field ao-field--inline"},Hhe={class:"ao-field__row ao-milestone__field-row"},qhe={class:"ao-field ao-milestone__field-multiselect"},jhe={class:"ao-milestone__color-actions"},Whe=["onClick"],Zhe=["title","onClick"],Khe=["onClick"],Ghe=["onClick"],Yhe={class:"ao-project-milestone__body"},Jhe={key:0,class:"ao-project-milestone__footer"},Xhe=["onClick"],Qhe=["onClick"],bp=r.defineComponent({__name:"AoProjectOverviewMilestoneDetails",props:{milestoneId:{},users:{},projectId:{},phases:{},phaseId:{},isEditable:{type:Boolean},closedStatus:{},timeTrackingData:{}},emits:["close","addActivity","bulkAddActivity","updateMilestone","updateActivity","archiveActivity","unarchiveActivity","startTimer"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=E=>{var D;i("startTimer",E),(D=window.parent)==null||D.postMessage({type:"startTimer",data:E},"*")},a=r.computed(()=>{var E;return(E=o.phases)==null?void 0:E.find(D=>D.id===o.phaseId)}),l=r.computed(()=>{var E;return(E=o.phases)==null?void 0:E.flatMap(D=>D.milestones)}),c=r.computed(()=>{var E;return(E=l.value)==null?void 0:E.find(D=>D.id===o.milestoneId)}),u=r.computed(()=>{var E;return(E=c.value)==null?void 0:E.activities});r.watch(u,(E,D)=>{Kn(E,D)});const d=E=>{i("close",E)},p=()=>{const{name:E,rank:D}=Ko(u.value??[],"activity",n);i("addActivity",{milestoneId:o.milestoneId,name:E,rank:D,projectId:o.projectId})},f=()=>{const E=n("template.defaultName.activity",{idx:1}),D=os(u.value??[]);i("addActivity",{milestoneId:o.milestoneId,name:E,rank:D,projectId:o.projectId})},m=r.ref(!1),h=r.ref(!1),v=E=>{h.value=!0;const D=Eme(E,u.value??[]);i("bulkAddActivity",{projectId:o.projectId,phaseId:o.phaseId,milestoneId:o.milestoneId,activities:D,onSuccess:()=>{h.value=!1,m.value=!1},onError:()=>{h.value=!1}})};r.watch(m,E=>{E&&(h.value=!1)});const C=E=>{i("updateActivity",E)},y=E=>{u.value&&"moved"in E&&i("updateActivity",{id:E.moved.element.id,rank:Br(u.value,E.moved.newIndex)})},g=r.computed({get:()=>{var E;return(E=c.value)==null?void 0:E.color},set:E=>{c.value&&i("updateMilestone",{id:c.value.id,color:E})}}),_=r.computed({get:()=>{var E;return((E=c.value)==null?void 0:E.deadline)??""},set:E=>{c.value&&i("updateMilestone",{id:c.value.id,deadline:E!=null&&E.length?E:null})}}),b=E=>o.closedStatus?nu(E,o.closedStatus):!1,w=r.computed(()=>{var E;return((E=o.users)==null?void 0:E.map(D=>({label:`${D.firstName} ${D.lastName}`,value:D.id,avatar:D.avatarUrl})))||[]}),k=r.computed({get(){var E,D;return(D=(E=c.value)==null?void 0:E.assignee)!=null&&D.id?[c.value.assignee.id]:[]},set(E){i("updateMilestone",{id:o.milestoneId,assigneeId:E[0]??null})}}),A=r.computed({get(){var E;return((E=c.value)==null?void 0:E.important)??!1},set(E){i("updateMilestone",{id:o.milestoneId,important:E})}}),S=(E,D)=>{const V=E.currentTarget;V instanceof HTMLElement&&D(V)};return(E,D)=>{var V;return r.openBlock(),r.createElementBlock("div",Ohe,[r.createElementVNode("header",Vhe,[r.createElementVNode("div",Ihe,[r.createVNode(de,{"icon-name":"CloseRounded",variant:"ghost",size:"sm",class:"ao-milestone__close",onClick:d})]),r.createElementVNode("div",Phe,[r.createElementVNode("div",Fhe,[r.createVNode(ht,{title:((V=c.value)==null?void 0:V.name)||t.milestoneId,level:5},null,8,["title"]),r.createVNode(Yc,{modelValue:A.value,"onUpdate:modelValue":D[0]||(D[0]=T=>A.value=T),modelModifiers:{lazy:!0},disabled:!t.isEditable,class:"ao-milestone__important",color:"danger",label:E.$t("activity.important.label"),"icon-name":"FlagRounded",variant:"ghost",size:"sm"},null,8,["modelValue","disabled","label"])])]),c.value?(r.openBlock(),r.createElementBlock("div",Rhe,[r.createElementVNode("div",zhe,[r.createElementVNode("label",Uhe,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":D[1]||(D[1]=T=>_.value=T),class:"ao-milestone__field ao-milestone__date-field",type:"date"},null,512),[[r.vModelText,_.value,void 0,{lazy:!0}]])])]),r.createElementVNode("div",Hhe,[r.createElementVNode("label",qhe,[r.createVNode(dt,{modelValue:k.value,"onUpdate:modelValue":D[2]||(D[2]=T=>k.value=T),options:w.value,"close-on-select":!0,searchable:!0,max:1,class:"ao-milestone__field ao-milestone__multiselect",placeholder:E.$t("activity.filters.assignee.placeholder"),mode:"tags",disabled:!t.isEditable,caret:t.isEditable},{tag:r.withCtx(({option:T,handleTagRemove:M})=>[r.createVNode(Xt,{"user-name":T.label,"avatar-url":T.avatar,"is-closable":!0,onClose:x=>M(T,x)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["modelValue","options","placeholder","disabled","caret"])])]),r.createElementVNode("div",jhe,[r.createVNode(ti,{color:g.value,"onUpdate:color":D[3]||(D[3]=T=>g.value=T)},{clickable:r.withCtx(({openPicker:T,bgColor:M})=>[r.createElementVNode("button",{style:r.normalizeStyle({background:M}),class:"color-button",onClick:x=>S(x,T)},null,12,Whe)]),_:1},8,["color"]),t.isEditable?(r.openBlock(),r.createBlock(xa,{key:0,placement:"bottom-end"},{trigger:r.withCtx(({open:T})=>[r.createElementVNode("button",{type:"button",class:"ao-project-milestone__quick-add",title:E.$t("project.activity.add"),onClick:T},[r.createVNode(ke,{name:"Add",class:"ao-project-milestone__quick-add-icon"})],8,Zhe)]),menu:r.withCtx(({close:T})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{T(),f()}},r.toDisplayString(E.$t("project.bulk.menu.single")),9,Khe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{T(),m.value=!0}},r.toDisplayString(E.$t("project.bulk.menu.bulkInsert")),9,Ghe)]),_:1})):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]),r.createElementVNode("div",Yhe,[r.createVNode(r.unref(Vn),r.mergeProps({class:"ao-project-milestone__activities",list:u.value,disabled:!t.isEditable,"item-key":"id",group:"kanban"},E.$attrs,{onChange:y}),{item:r.withCtx(({element:T})=>{var M,x,$,B,q;return[r.createVNode(vd,{id:T.id,name:T.name||T.id,"project-id":t.projectId,"phase-name":(M=a.value)==null?void 0:M.name,"milestone-name":(x=c.value)==null?void 0:x.name,"milestone-color":($=c.value)==null?void 0:$.color,deadline:T.deadline,important:T.important,blocked:T.blocked,users:t.users,assignee:T.assignee,slug:T.slug,comments:(B=T.comments)==null?void 0:B.length,attachments:(q=T.attachments)==null?void 0:q.length,tasks:T.tasks,"is-editable":t.isEditable,"is-private":T.private,"is-closed":b(T),onClick:I=>E.$router.push({name:r.unref(Pe).activity,params:{milestoneId:t.milestoneId,activityId:T.id}}),onUpdateActivity:C,onRemoveAssignee:()=>C({id:T.id,assigneeId:null}),onStartTimer:s},r.createSlots({_:2},[t.isEditable?{name:"secondary",fn:r.withCtx(()=>[t.isEditable&&T.active?(r.openBlock(),r.createBlock(de,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:E.$t("archive"),onClick:r.withModifiers(()=>E.$emit("archiveActivity",{id:T.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),t.isEditable&&!T.active?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:E.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>E.$emit("unarchiveActivity",{id:T.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["id","name","project-id","phase-name","milestone-name","milestone-color","deadline","important","blocked","users","assignee","slug","comments","attachments","tasks","is-editable","is-private","is-closed","onClick","onRemoveAssignee"])]}),_:1},16,["list","disabled"]),t.isEditable?(r.openBlock(),r.createElementBlock("div",Jhe,[r.createVNode(xa,null,{trigger:r.withCtx(({open:T})=>[r.createVNode(Eo,{"icon-name":"Add",label:E.$t("project.activity.add"),onClick:T},null,8,["label","onClick"])]),menu:r.withCtx(({close:T})=>[r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{T(),p()}},r.toDisplayString(E.$t("project.bulk.menu.single")),9,Xhe),r.createElementVNode("button",{type:"button",class:"ao-popover-menu__item",onClick:()=>{T(),m.value=!0}},r.toDisplayString(E.$t("project.bulk.menu.bulkInsert")),9,Qhe)]),_:1})])):r.createCommentVNode("",!0)]),m.value?(r.openBlock(),r.createBlock(md,{key:0,open:m.value,"onUpdate:open":D[4]||(D[4]=T=>m.value=T),title:E.$t("project.bulk.modal.activity.title"),"root-type":"activity","is-loading":h.value,onSubmit:v},null,8,["open","title","is-loading"])):r.createCommentVNode("",!0)])}}});const ege=r.defineComponent({__name:"AoProjectOverviewActivityDetails",props:{phaseId:{},milestoneId:{},activityId:{},activityTypes:{},devStatuses:{},activities:{},selectedActivity:{},isTaskCheckable:{},statuses:{},phases:{},users:{},project:{},userId:{},isEditable:{type:Boolean},attachmentEnabled:{type:Boolean},timeTrackingData:{},loadAttachmentPreview:{},sprints:{},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1}},emits:["update:activity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","createSprint","fetchHistory"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>{var y;return(y=n.phases)==null?void 0:y.find(g=>g.id===n.phaseId)}),s=r.computed(()=>{var y;return(y=n.phases)==null?void 0:y.flatMap(g=>g.milestones)}),a=r.computed(()=>{var y;return(y=s.value)==null?void 0:y.find(g=>g.id===n.milestoneId)}),l=r.computed(()=>{var y;return n.selectedActivity??((y=n.activities)==null?void 0:y.find(g=>g.id===n.activityId))}),c=y=>{o("update:activity",y)},u=y=>{o("addSubtask",y)},d=y=>{o("updateSubtask",y)},p=y=>{o("deleteSubtask",y)},f=y=>{o("addFiles",y)},m=y=>{o("removeFile",y)},h=y=>{o("addComment",y)},v=y=>{o("updateComment",y)},C=y=>{o("removeComment",y)};return(y,g)=>{var _,b;return l.value?(r.openBlock(),r.createBlock(ml,{key:0,activity:l.value,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":t.milestoneId,"template-activities":t.activities,"is-template":!1,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:`${(_=i.value)==null?void 0:_.name} / ${(b=a.value)==null?void 0:b.name}`,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:[t.project],"time-tracking-data":t.timeTrackingData,"load-attachment-preview":n.loadAttachmentPreview,sprints:t.sprints,history:t.history,"history-loading":t.historyLoading,onClose:y.$router.back,"onUpdate:activity":c,onAddSubtask:u,onUpdateSubtask:d,onDeleteSubtask:p,onAddFiles:f,onRemoveFile:m,onAddComment:h,onUpdateComment:v,onRemoveComment:C,onCreateSprint:g[0]||(g[0]=w=>o("createSprint",w)),onFetchHistory:g[1]||(g[1]=()=>o("fetchHistory"))},{default:r.withCtx(w=>[r.renderSlot(y.$slots,"default",r.normalizeProps(r.guardReactiveProps(w)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints","history","history-loading","onClose"])):r.createCommentVNode("",!0)}}}),tge={class:"ao-col-header"},nge=r.defineComponent({__name:"AoColHeader",props:{title:{},items:{}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("header",tge,[r.createVNode(ht,{title:t.title,class:"ao-col-header__title",level:4},null,8,["title"]),t.items?(r.openBlock(),r.createBlock(Ii,{key:0,label:t.items,class:"ao-col-header__items",variant:"solid",color:"primary"},null,8,["label"])):r.createCommentVNode("",!0)]))}});function oge(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function Ta(t){return typeof t=="function"?t():r.unref(t)}const rge=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ige=t=>t!=null,Vi=()=>{};function sge(t,e){function n(...o){return new Promise((i,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(i).catch(s)})}return n}function age(t,e={}){let n,o,i=Vi;const s=l=>{clearTimeout(l),i(),i=Vi};return l=>{const c=Ta(t),u=Ta(e.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(o&&(s(o),o=null),Promise.resolve(l())):new Promise((d,p)=>{i=e.rejectOnCancel?p:d,u&&!o&&(o=setTimeout(()=>{n&&s(n),o=null,d(l())},u)),n=setTimeout(()=>{o&&s(o),o=null,d(l())},c)})}}function lge(t,e=200,n={}){return sge(age(e,n),t)}function uc(t){var e;const n=Ta(t);return(e=n==null?void 0:n.$el)!=null?e:n}const cge=rge?window:void 0;function uge(){const t=r.ref(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function dge(t){const e=uge();return r.computed(()=>(e.value,!!t()))}function fge(t,e,n={}){const{root:o,rootMargin:i="0px",threshold:s=.1,window:a=cge,immediate:l=!0}=n,c=dge(()=>a&&"IntersectionObserver"in a),u=r.computed(()=>{const h=Ta(t);return(Array.isArray(h)?h:[h]).map(uc).filter(ige)});let d=Vi;const p=r.ref(l),f=c.value?r.watch(()=>[u.value,uc(o),p.value],([h,v])=>{if(d(),!p.value||!h.length)return;const C=new IntersectionObserver(e,{root:uc(v),rootMargin:i,threshold:s});h.forEach(y=>y&&C.observe(y)),d=()=>{C.disconnect(),d=Vi}},{immediate:l,flush:"post"}):Vi,m=()=>{d(),f(),p.value=!1};return oge(m),{isSupported:c,isActive:p,pause(){d(),p.value=!1},resume(){p.value=!0},stop:m}}const pge={class:r.normalizeClass(["ao-list-kanban"])},mge={class:"ao-list-kanban__header"},hge=["title"],gge={key:0,class:"ao-list-kanban__end ao-list-kanban__end--loading"},vge={key:1,class:"ao-list-kanban__end"},yge={key:0,class:"ao-list-kanban__no-more"},_ge={key:1,class:"ao-list-kanban__divider"},Cge={key:1,class:"ao-list-kanban__footer"},bge=r.defineComponent({__name:"AoListKanban",props:{list:{},status:{},users:{},userId:{},title:{},footerLabel:{},isLoading:{type:Boolean},hasMore:{type:Boolean},noMoreLabel:{},isEditable:{type:[Boolean,String]},tagType:{},showHeaderAdd:{type:Boolean},isDevMode:{type:Boolean}},emits:["add","addAtBeginning","update:list","change:list","loadMore","selectActivity","archiveActivity","unarchiveActivity","updateActivity","startTimer"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(!1),s=r.ref(null);fge(s,([{isIntersecting:p}])=>{i.value=p}),r.watch(i,p=>{p&&n.hasMore&&!n.isLoading&&o("loadMore")});const a=p=>{var f;return n.isEditable===!0?!0:n.userId&&n.isEditable==="only-own"?n.userId===((f=p.assignee)==null?void 0:f.id):!1},l=p=>{o("selectActivity",p)},c=p=>{o("updateActivity",p)},u=p=>{if("added"in p){const f={id:p.added.element.id,rank:Br(n.list,p.added.newIndex)};n.isDevMode?f.statusDevId=n.status.id:f.statusId=n.status.id,o("updateActivity",f)}else"removed"in p||"moved"in p&&o("updateActivity",{id:p.moved.element.id,rank:Br(n.list,p.moved.newIndex)})},d=r.ref(!1);return(p,f)=>(r.openBlock(),r.createElementBlock("div",pge,[t.title||p.$slots.header?r.renderSlot(p.$slots,"header",{},()=>{var m;return[r.createElementVNode("div",mge,[t.title?(r.openBlock(),r.createBlock(nge,{key:0,class:"ao-list-kanban__col-header",title:t.title,level:3,items:(m=t.list)==null?void 0:m.length},null,8,["title","items"])):r.createCommentVNode("",!0),t.showHeaderAdd?(r.openBlock(),r.createElementBlock("button",{key:1,class:"ao-list-kanban__header-add",title:p.$t("feed.activity.add"),onClick:f[0]||(f[0]=h=>p.$emit("addAtBeginning"))},[r.createVNode(ke,{name:"Add"})],8,hge)):r.createCommentVNode("",!0)])]},void 0,0):r.createCommentVNode("",!0),r.createVNode(r.unref(Vn),r.mergeProps({class:["ao-list-kanban__list",d.value?"ao-list-kanban__transition":void 0],list:t.list,"item-key":"id",group:"kanban","ghost-class":"ao-list-kanban__ghost",animation:"200"},p.$attrs,{draggable:".ao-list-draggable",disabled:!t.isEditable,"component-data":{tag:"transition-group",name:"ao-list-kanban__transition"},onChange:u,onStart:f[2]||(f[2]=m=>d.value=!0),onEnd:f[3]||(f[3]=m=>d.value=!1)}),{item:r.withCtx(({element:m})=>{var h,v,C,y,g,_,b,w,k,A;return[r.createVNode(vd,{id:m.id,class:r.normalizeClass(a(m)?"ao-list-draggable":""),name:m.name,"project-name":(h=m.project)==null?void 0:h.name,"project-id":(v=m.project)==null?void 0:v.id,"project-color":(C=m.project)==null?void 0:C.color,"phase-name":(g=(y=m.milestone)==null?void 0:y.phase)==null?void 0:g.name,"milestone-name":(_=m.milestone)==null?void 0:_.name,"milestone-color":(b=m.milestone)==null?void 0:b.color,deadline:m.deadline,rules:((w=m.rules)==null?void 0:w.length)||0,tasks:m.tasks,description:m.description,important:m.important,blocked:m.blocked,type:m.type,comments:(k=m.comments)==null?void 0:k.length,attachments:(A=m.attachments)==null?void 0:A.length,users:t.users,assignee:m.assignee,slug:m.slug,"is-editable":a(m),"is-private":m.private,"tag-type":t.tagType,onUpdateActivity:[S=>a(m)&&c(S),()=>a(m)&&c],onClick:()=>l(m.id),onRemoveAssignee:()=>a(m)&&c({id:m.id,assigneeId:null}),onStartTimer:f[1]||(f[1]=S=>p.$emit("startTimer",S))},{secondary:r.withCtx(()=>[a(m)&&m.active?(r.openBlock(),r.createBlock(de,{key:0,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.archive"),onClick:r.withModifiers(()=>p.$emit("archiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0),a(m)&&!m.active?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"ghost","icon-name":"ArchiveOutlineRounded",size:"sm","icon-position":"start",corners:"round",label:p.$t("feed.activity.unarchive"),onClick:r.withModifiers(()=>p.$emit("unarchiveActivity",{id:m.id}),["stop"])},null,8,["label","onClick"])):r.createCommentVNode("",!0)]),_:2},1032,["id","class","name","project-name","project-id","project-color","phase-name","milestone-name","milestone-color","deadline","rules","tasks","description","important","blocked","type","comments","attachments","users","assignee","slug","is-editable","is-private","tag-type","onUpdateActivity","onClick","onRemoveAssignee"])]}),footer:r.withCtx(()=>[t.isLoading?(r.openBlock(),r.createElementBlock("div",gge,[r.createVNode(ke,{name:"Loading"})])):t.hasMore?(r.openBlock(),r.createElementBlock("div",{key:2,ref_key:"scrollEnd",ref:s,class:"ao-list-kanban__end"},null,512)):(r.openBlock(),r.createElementBlock("div",vge,[t.noMoreLabel?(r.openBlock(),r.createElementBlock("span",yge,r.toDisplayString(t.noMoreLabel),1)):t.isEditable?(r.openBlock(),r.createElementBlock("span",_ge)):r.createCommentVNode("",!0)]))]),_:1},16,["class","list","disabled"]),p.$slots.footer||t.footerLabel?(r.openBlock(),r.createElementBlock("div",Cge,[r.renderSlot(p.$slots,"footer",{},()=>[t.isEditable?(r.openBlock(),r.createBlock(Eo,{key:0,"icon-name":"AddBoxOutlineRounded",label:t.footerLabel,onClick:f[4]||(f[4]=m=>p.$emit("add"))},null,8,["label"])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0)]))}});const kge={class:"ao-field ao-search-field"},wge=["value","placeholder"],Ege=r.defineComponent({__name:"AoSearchField",props:{modelValue:{},delay:{default:250},placeholder:{default:"Search"}},emits:["update:modelValue","clear"],setup(t,{emit:e}){const n=t,o=e,i=async l=>{const u=l.target.value;o("update:modelValue",u,l)},s=lge(i,n.delay),a=l=>{o("clear",l)};return(l,c)=>(r.openBlock(),r.createElementBlock("div",kge,[r.createElementVNode("input",{value:t.modelValue,type:"text",class:"ao-field__input ao-search-field__input",placeholder:t.placeholder,onInput:c[0]||(c[0]=(...u)=>r.unref(s)&&r.unref(s)(...u)),onKeypress:r.withKeys(i,["enter"])},null,40,wge),r.createVNode(ke,{name:"SearchRounded",class:r.normalizeClass(`ao-search-field__icon ao-search-field__action ${t.modelValue?"":"ao-search-field__action--visible"}`)},null,8,["class"]),r.createVNode(de,{"icon-name":"CloseRounded",size:"sm",color:"primary",corners:"round",class:r.normalizeClass(`ao-search-field__button ao-search-field__action ${t.modelValue?"ao-search-field__action--visible":""}`),onClick:a},null,8,["class"])]))}});const Sge={class:"ao-sprint-metrics"},xge=["onClick"],Age={class:"ao-sprint-metrics__header-left"},Tge={class:"ao-sprint-metrics__icon"},Nge={class:"ao-sprint-metrics__title"},Dge={class:"ao-sprint-metrics__dates"},$ge={key:0,class:"ao-sprint-metrics__project"},Bge={class:"ao-sprint-metrics__advancement"},Mge={class:"ao-sprint-metrics__progress-bar"},Lge={class:"ao-sprint-metrics__percent"},Oge={class:"ao-sprint-metrics__tooltip ao-sprint-metrics__tooltip--advancement"},Vge={class:"ao-sprint-metrics__tooltip-row"},Ige={class:"ao-sprint-metrics__tooltip-row"},Pge={class:"ao-sprint-metrics__tooltip-row"},Fge={class:"ao-sprint-metrics__tooltip-row"},Rge={class:"ao-sprint-metrics__tooltip-row"},zge={class:"ao-sprint-metrics__tooltip-row"},Uge={class:"ao-sprint-metrics__tooltip-row"},Hge={class:"ao-sprint-metrics__content"},qge={class:"ao-sprint-metrics__grid"},jge={class:"ao-sprint-metrics__item"},Wge={class:"ao-sprint-metrics__label"},Zge={class:"ao-sprint-metrics__value"},Kge={key:0,class:"ao-sprint-metrics__tooltip"},Gge={class:"ao-sprint-metrics__tooltip-title"},Yge={class:"ao-sprint-metrics__item"},Jge={class:"ao-sprint-metrics__label"},Xge={class:"ao-sprint-metrics__value"},Qge={class:"ao-sprint-metrics__item ao-sprint-metrics__item--editable"},e0e={class:"ao-sprint-metrics__label"},t0e={class:"ao-sprint-metrics__input-row"},n0e=["value","placeholder","onInput"],o0e={class:"ao-sprint-metrics__unit"},r0e={key:0,class:"ao-sprint-metrics__secondary"},i0e={class:"ao-sprint-metrics__item"},s0e={class:"ao-sprint-metrics__label"},a0e={class:"ao-sprint-metrics__value"},l0e=r.defineComponent({__name:"AoSprintMetrics",props:{sprints:{},activities:{},planningData:{default:()=>({})},projects:{default:()=>[]},businessDayHours:{default:8}},setup(t){const e=x=>x.label?`Sprint ${x.number}: ${x.label}`:`Sprint ${x.number}`,n=t,{t:o}=yt(),i=["Ok for prod","Done"],s=r.ref(new Set),a=r.ref({}),l=x=>{s.value.has(x)?s.value.delete(x):s.value.add(x)},c=x=>n.projects.find($=>$.id===x.projectId),u=x=>{var $;return(($=n.planningData[x])==null?void 0:$.plannedManDays)??0},d=x=>{var $;return(($=n.planningData[x])==null?void 0:$.remainingPlannedManDays)??0},p=x=>{var $;return(($=n.planningData[x])==null?void 0:$.users)??[]},f=x=>n.activities.filter($=>{var B;return((B=$.sprint)==null?void 0:B.id)===x}).reduce(($,B)=>$+(B.estimation??0),0),m=x=>n.activities.filter($=>{var q,I;if(((q=$.sprint)==null?void 0:q.id)!==x)return!1;const B=(I=$.devStatus)==null?void 0:I.name;return B&&i.includes(B)}).reduce(($,B)=>$+(B.estimation??0),0),h=x=>{const $=n.sprints.find(q=>q.id===x),B=$?c($):void 0;return(B==null?void 0:B.estimationUnit)==="hours"?"hours":""},v=(x,$)=>h(x)==="hours"?$*n.businessDayHours:$,C=x=>h(x)==="hours"?"h":"",y=x=>{const $=v(x,u(x));return $<=0?0:f(x)/$},g=x=>{if(a.value[x]!==void 0)return a.value[x];const $=n.sprints.find(B=>B.id===x);if($){const B=c($);if((B==null?void 0:B.velocity)!==void 0&&B.velocity>0)return B.velocity}return 1},_=(x,$)=>{const B=parseFloat($);isNaN(B)||B<=0?delete a.value[x]:a.value[x]=B},b=x=>{const $=g(x);return $===void 0?0:v(x,u(x))*$},w=x=>{const $=b(x);return $<=0?null:f(x)/$},k=x=>{const $=w(x);return $===null?0:Math.round($*100)},A=x=>{const $=f(x);if($<=0)return 0;const B=m(x);return Math.round(B/$*100)},S=x=>{const $=f(x),B=m(x);return Math.max(0,$-B)},E=x=>{const $=v(x,d(x)),B=y(x);return $*B},D=x=>{const $=E(x),B=S(x);return $<=0&&B>0?!1:$<B},V=x=>x.toFixed(1),T=(x,$)=>`${x.toFixed(2)} pts / ${C($)}`,M=(x,$)=>{const B=new Date(x),q=new Date($),I={day:"numeric",month:"short"};return`${B.toLocaleDateString("en-UK",I)} – ${q.toLocaleDateString("en-UK",I)}`};return(x,$)=>(r.openBlock(),r.createElementBlock("div",Sge,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sprints,B=>{var q;return r.openBlock(),r.createElementBlock("div",{key:B.id,class:"ao-sprint-metrics__section"},[r.createElementVNode("div",{class:"ao-sprint-metrics__header",onClick:I=>l(B.id)},[r.createElementVNode("div",Age,[r.createElementVNode("span",Tge,r.toDisplayString(s.value.has(B.id)?"▸":"▾"),1),r.createElementVNode("span",Nge,r.toDisplayString(e(B)),1),r.createElementVNode("span",Dge," · "+r.toDisplayString(M(B.startDate,B.endDate)),1),!s.value.has(B.id)&&c(B)?(r.openBlock(),r.createElementBlock("span",$ge," · "+r.toDisplayString((q=c(B))==null?void 0:q.name),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__header-right",{"ao-sprint-metrics__header-right--behind":D(B.id)}])},[r.createElementVNode("div",Bge,[r.createElementVNode("div",Mge,[r.createElementVNode("div",{class:r.normalizeClass(["ao-sprint-metrics__progress-fill",{"ao-sprint-metrics__progress-fill--behind":D(B.id)}]),style:r.normalizeStyle({width:A(B.id)+"%"})},null,6)]),r.createElementVNode("span",Lge,r.toDisplayString(A(B.id))+"% ",1),r.createElementVNode("div",Oge,[$[7]||($[7]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-title"}," Sprint advancement ",-1)),r.createElementVNode("span",Vge,[$[0]||($[0]=r.createElementVNode("span",null,"Advancement",-1)),r.createElementVNode("span",null,r.toDisplayString(A(B.id))+"%",1)]),r.createElementVNode("span",Ige,[$[1]||($[1]=r.createElementVNode("span",null,"Completed",-1)),r.createElementVNode("span",null,r.toDisplayString(V(m(B.id)))+" / "+r.toDisplayString(V(f(B.id)))+" pts ",1)]),r.createElementVNode("span",Pge,[$[2]||($[2]=r.createElementVNode("span",null,"Remaining",-1)),r.createElementVNode("span",null,r.toDisplayString(V(S(B.id)))+" pts",1)]),$[8]||($[8]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",Fge,[$[3]||($[3]=r.createElementVNode("span",null,"Remaining capacity",-1)),r.createElementVNode("span",null,r.toDisplayString(V(E(B.id)))+" pts",1)]),r.createElementVNode("span",Rge,[$[4]||($[4]=r.createElementVNode("span",null,"Remaining planning",-1)),r.createElementVNode("span",null,r.toDisplayString(V(d(B.id)))+" MD",1)]),r.createElementVNode("span",zge,[$[5]||($[5]=r.createElementVNode("span",null,"Estimated velocity",-1)),r.createElementVNode("span",null,r.toDisplayString(T(y(B.id),B.id)),1)]),$[9]||($[9]=r.createElementVNode("span",{class:"ao-sprint-metrics__tooltip-separator"},null,-1)),r.createElementVNode("span",Uge,[$[6]||($[6]=r.createElementVNode("span",null,"Status",-1)),r.createElementVNode("span",null,r.toDisplayString(D(B.id)?"Behind plan":"On track"),1)])])])],2)],8,xge),r.withDirectives(r.createElementVNode("div",Hge,[r.createElementVNode("div",qge,[r.createElementVNode("div",jge,[r.createElementVNode("div",Wge,r.toDisplayString(r.unref(o)("sprintMetrics.manDaysPlanned")),1),r.createElementVNode("div",Zge,[r.createElementVNode("span",{class:r.normalizeClass(["ao-sprint-metrics__man-days",{"ao-sprint-metrics__man-days--has-tooltip":p(B.id).length>0}])},[r.createTextVNode(r.toDisplayString(V(u(B.id)))+" MD ",1),p(B.id).length>0?(r.openBlock(),r.createElementBlock("span",Kge,[r.createElementVNode("span",Gge,r.toDisplayString(V(u(B.id)))+" MD planned ",1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p(B.id),I=>(r.openBlock(),r.createElementBlock("span",{key:I.userId,class:"ao-sprint-metrics__tooltip-row"},[r.createElementVNode("span",null,r.toDisplayString(I.fullName),1),r.createElementVNode("span",null,r.toDisplayString(V(I.plannedManDays))+" MD",1)]))),128))])):r.createCommentVNode("",!0)],2)])]),r.createElementVNode("div",Yge,[r.createElementVNode("div",Jge,r.toDisplayString(r.unref(o)("sprintMetrics.estimatedPoints")),1),r.createElementVNode("div",Xge,r.toDisplayString(V(f(B.id)))+" pts ",1)]),r.createElementVNode("div",Qge,[r.createElementVNode("div",e0e,r.toDisplayString(r.unref(o)("sprintMetrics.targetVelocity")),1),r.createElementVNode("div",t0e,[r.createElementVNode("input",{type:"number",step:"0.1",min:"0",class:"ao-sprint-metrics__input",value:g(B.id),placeholder:r.unref(o)("sprintMetrics.targetVelocityPlaceholder"),onInput:I=>_(B.id,I.target.value)},null,40,n0e),r.createElementVNode("span",o0e," pts / "+r.toDisplayString(C(B.id)),1)]),y(B.id)>0?(r.openBlock(),r.createElementBlock("div",r0e,r.toDisplayString(r.unref(o)("sprintMetrics.currentlyEstimated"))+": "+r.toDisplayString(T(y(B.id),B.id)),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",i0e,[r.createElementVNode("div",s0e,r.toDisplayString(r.unref(o)("sprintMetrics.planningProgress")),1),r.createElementVNode("div",a0e,[w(B.id)!==null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(k(B.id))+"% · "+r.toDisplayString(V(f(B.id)))+" / "+r.toDisplayString(V(b(B.id)))+" pts ",1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))])])])],512),[[r.vShow,!s.value.has(B.id)]])])}),128))]))}});const c0e=ee(l0e,[["__scopeId","data-v-8efa522d"]]),u0e={class:"ao-feed"},d0e={class:"ao-feed__filters"},f0e={class:"ao-feed__body"},Xc=r.defineComponent({__name:"AoFeed",props:{activities:{},statuses:{},devStatuses:{default:()=>[]},project:{default:void 0},projects:{default:()=>[]},filters:{},activityTypes:{default:()=>[]},users:{},userId:{},initialActivityId:{default:void 0},initialActivitySlug:{default:void 0},searchText:{default:""},showsArchivedActivities:{type:Boolean},showsOnlyImportant:{type:Boolean},showsOnlyNonAssigned:{type:Boolean},selectedActivity:{default:void 0},isTaskCheckable:{type:Function,default:void 0},isEditable:{type:[Boolean,String]},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0},feedMode:{default:"standard"},sprints:{default:()=>[]},activitySprints:{default:()=>[]},milestones:{default:()=>[]},sprintPlanningData:{default:()=>({})},history:{default:()=>[]},historyLoading:{type:Boolean,default:!1}},emits:["change:activities","addActivity","update:filters","selectActivity","update:activity","archiveActivity","unarchiveActivity","update:searchText","clear:searchText","update:showsArchivedActivities","update:showsOnlyImportant","update:showsOnlyNonAssigned","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","toast","startTimer","createSprint","fetchHistory"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e;function s(R,ie){i("toast",R,ie)}const a=r.toRef(o,"activities"),l=r.computed(()=>o.feedMode==="dev"?o.devStatuses:o.statuses),c=r.computed(()=>o.feedMode==="dev"?a.value.filter(R=>R.activityType==="dev"):a.value),u=async(R,ie)=>{await i("selectActivity",R,ie)},d=r.ref({}),p=r.ref(!1),f=r.ref(!1),m=r.computed(()=>o.project?"milestone":"project");r.watch([()=>l.value,()=>c.value,()=>o.initialActivityId,()=>o.initialActivitySlug,()=>o.feedMode],async([R,ie,he,pe],[Ze,De])=>{const $e=o.feedMode==="dev"?"devStatus":"status";d.value=Object.fromEntries(R.map(Fe=>[Fe.id,ie.filter(Ge=>{const Ye=Ge[$e];return(Ye==null?void 0:Ye.id)===Fe.id})])),he&&!p.value?(u(he,null),p.value=!0):pe&&!p.value&&(u(null,pe),p.value=!0),f.value&&Kn(ie,De)},{immediate:!0});const h=r.computed(()=>{var R;return!o.selectedActivity||!o.selectedActivity.milestone?"":`${((R=o.selectedActivity.milestone.phase)==null?void 0:R.name)??""} / ${o.selectedActivity.milestone.name??""}`}),v=R=>{var Fe;const ie=o.feedMode==="dev"?o.activities.filter(Ge=>Ge.activityType==="dev"):o.activities,he=ie==null?void 0:ie.at(-1),pe=he?Xe.LexoRank.parse(he.rank).genNext():Xe.LexoRank.middle(),Ze=((Fe=o.activities)==null?void 0:Fe.length)??0,De=o.feedMode==="dev",$e={name:n("activity.defaultName",{idx:Ze+1}),rank:pe.format(),...De?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&($e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&($e.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Ge=o.sprints.find(Ye=>Ye.id===o.filters.sprintId[0]);Ge&&($e.sprintId=Ge.id,$e.projectId=Ge.projectId)}f.value=!0,i("addActivity",$e)},C=R=>{var Fe,Ge;const ie=o.feedMode==="dev"?"devStatus":"status",he=((Fe=o.activities)==null?void 0:Fe.filter(Ye=>{const Me=Ye[ie];return(Me==null?void 0:Me.id)===R.id}))??[],pe=os(he),Ze=((Ge=o.activities)==null?void 0:Ge.length)??0,De=o.feedMode==="dev",$e={name:n("activity.defaultName",{idx:Ze+1}),rank:pe,...De?{statusDevId:R.id,type:"dev"}:{statusId:R.id}};if(o.filters.assigneeId.length>0&&($e.assigneeId=o.filters.assigneeId[0]),o.filters.projectId.length>0&&($e.projectId=o.filters.projectId[0]),o.filters.sprintId&&o.filters.sprintId.length===1){const Ye=o.sprints.find(Me=>Me.id===o.filters.sprintId[0]);Ye&&($e.sprintId=Ye.id,$e.projectId=Ye.projectId)}f.value=!0,i("addActivity",$e)},y=(R,ie)=>{f.value=!1,i("update:filters",{...o.filters,[R]:ie})},g=r.computed(()=>o.project?[o.project]:o.projects??[]),_=r.computed(()=>g.value.map(R=>({value:R.id,label:R.name}))),b=r.computed(()=>o.sprints.map(R=>({value:R.id,label:`${R.name} · ${R.startDate} – ${R.endDate}`,startDate:R.startDate,endDate:R.endDate,projectId:R.projectId}))),w=r.computed(()=>{const R=o.filters[ln.sprint]??[];return o.sprints.filter(ie=>R.includes(ie.id))}),k=r.computed(()=>{var he;const R=o.filters[ln.project]??[],ie=(he=o.project)!=null&&he.id?[o.project.id]:[];return[...R,...ie]}),A=r.computed(()=>o.milestones.map(R=>{var ie;return{value:R.id,label:(ie=R.phase)!=null&&ie.name?`${R.phase.name} - ${R.name}`:R.name,color:R.color,important:R.important}}));r.computed(()=>{var R;return(R=o.activityTypes)==null?void 0:R.map(ie=>({value:ie.id,label:ie.name}))});const S=r.computed(()=>o.users.map(R=>({value:R.id,label:`${R.firstName} ${R.lastName}`,avatar:R.avatarUrl}))),E=R=>{o.selectedActivity&&i("update:activity",R)},D=R=>{i("update:activity",R)},V=R=>{i("archiveActivity",R)},T=R=>{i("unarchiveActivity",R)},M=R=>{var ie;i("startTimer",R),(ie=window.parent)==null||ie.postMessage({type:"startTimer",data:R},"*")},x=R=>{f.value=!1,i("update:searchText",R)},$=R=>{f.value=!1,i("clear:searchText",R)},B=R=>{o.selectedActivity&&i("addSubtask",R)},q=R=>{o.selectedActivity&&i("updateSubtask",R)},I=R=>{o.selectedActivity&&i("deleteSubtask",R)},H=R=>{i("addFiles",R)},Y=R=>{i("removeFile",R)},le=R=>{o.selectedActivity&&i("addComment",{...R,activityId:o.selectedActivity.id})},oe=R=>{const{id:ie}=o.selectedActivity||{};ie&&i("updateComment",R)},Ne=R=>{const{id:ie}=o.selectedActivity||{};ie&&i("removeComment",R)},ce=Go.useRouter(),ne=Go.useRoute(),z=r.ref("feed");r.watch(()=>ne.name,R=>{R===Po.feed||R==="ActivityFeed"||R==="ActivityFeedWithActivity"?z.value="feed":R===Po.dev||R==="ActivityFeedDev"||R==="ActivityFeedDevWithActivity"?z.value="dev":R===Pe.feed?z.value="feed":R===Pe.dev?z.value="dev":R===Pe.project?z.value="overview":R===Pe.mapping&&(z.value="mapping")},{immediate:!0});const F=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}],re=r.computed(()=>Ee.value?F.filter(R=>R.value==="feed"||R.value==="dev"):F),Ee=r.computed(()=>!o.project&&ne.name&&(ne.name===Po.feed||ne.name===Po.dev||ne.name==="ActivityFeed"||ne.name==="ActivityFeedDev"||ne.name==="ActivityFeedWithActivity"||ne.name==="ActivityFeedDevWithActivity")),ze=r.computed(()=>Ee.value?Po.feed:Pe.feed),we=r.computed(()=>Ee.value?Po.dev:Pe.dev),Ce=r.computed(()=>Pe.project),_t=r.computed(()=>Pe.mapping);return r.watch(z,R=>{R==="feed"?ce.push({name:ze.value}):R==="dev"?ce.push({name:we.value}):R==="overview"?ce.push({name:Ce.value}):R==="mapping"&&ce.push({name:_t.value})}),(R,ie)=>{var he;return r.openBlock(),r.createElementBlock("div",u0e,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createElementVNode("div",d0e,[r.createVNode(vs,{modelValue:z.value,"onUpdate:modelValue":ie[0]||(ie[0]=pe=>z.value=pe),tabs:re.value},null,8,["modelValue","tabs"]),r.createVNode(Ege,{"model-value":t.searchText,placeholder:R.$t("feed.search.placeholder"),class:"ao-feed__search","onUpdate:modelValue":x,onClear:$},null,8,["model-value","placeholder"]),o.project?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(dt,{key:0,"model-value":t.filters[r.unref(ln).project],mode:"tags",options:_.value,"close-on-select":!1,"clear-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__projects",placeholder:R.$t("feed.filters.project.placeholder"),"onUpdate:modelValue":ie[1]||(ie[1]=pe=>y(r.unref(ln).project,pe))},null,8,["model-value","options","placeholder"])),t.feedMode==="dev"?(r.openBlock(),r.createBlock(dt,{key:1,"model-value":t.filters[r.unref(ln).sprint],mode:"tags",options:b.value,"close-on-select":!1,searchable:!0,disabled:!b.value.length,class:"ao-feed__filter ao-feed__filter__sprints",placeholder:R.$t("feed.filters.sprint.placeholder"),"onUpdate:modelValue":ie[2]||(ie[2]=pe=>y(r.unref(ln).sprint,pe))},null,8,["model-value","options","disabled","placeholder"])):r.createCommentVNode("",!0),r.createVNode(dt,{"model-value":t.filters[r.unref(ln).milestone],mode:"tags",options:A.value,"close-on-select":!1,"clear-on-select":!1,searchable:!0,disabled:k.value.length===0,class:"ao-feed__filter ao-feed__filter__milestones",placeholder:R.$t("feed.filters.milestone.placeholder"),"onUpdate:modelValue":ie[3]||(ie[3]=pe=>y(r.unref(ln).milestone,pe))},null,8,["model-value","options","disabled","placeholder"]),S.value.length?(r.openBlock(),r.createBlock(dt,{key:2,"model-value":t.filters[r.unref(ln).assignee],mode:"tags",options:S.value,"close-on-select":!1,searchable:!0,class:"ao-feed__filter ao-feed__filter__assignees",placeholder:R.$t("feed.filters.assignee.placeholder"),"onUpdate:modelValue":ie[4]||(ie[4]=pe=>y(r.unref(ln).assignee,pe))},{tag:r.withCtx(({option:pe,handleTagRemove:Ze})=>[r.createVNode(Xt,{"user-name":pe.label,"avatar-url":pe.avatar,"is-closable":!0,onClose:De=>Ze(pe,De)},null,8,["user-name","avatar-url","onClose"])]),_:1},8,["model-value","options","placeholder"])):r.createCommentVNode("",!0)]),r.createVNode(de,{class:"ao-feed__only-non-assigned",size:"sm","icon-name":t.showsOnlyNonAssigned?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:R.$t("feed.filters.showsOnlyNonAssigned.label"),role:"checkbox","aria-checked":t.showsOnlyNonAssigned,onClick:ie[5]||(ie[5]=pe=>R.$emit("update:showsOnlyNonAssigned",!t.showsOnlyNonAssigned))},null,8,["icon-name","label","aria-checked"]),r.createVNode(de,{class:"ao-feed__only-important",size:"sm","icon-name":t.showsOnlyImportant?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:R.$t("feed.filters.showsOnlyImportant.label"),role:"checkbox","aria-checked":t.showsOnlyImportant,onClick:ie[6]||(ie[6]=pe=>R.$emit("update:showsOnlyImportant",!t.showsOnlyImportant))},null,8,["icon-name","label","aria-checked"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchivedActivities?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:R.$t("feed.filters.showsArchivedActivities.label"),role:"checkbox","aria-checked":t.showsArchivedActivities,onClick:ie[7]||(ie[7]=pe=>R.$emit("update:showsArchivedActivities",!t.showsArchivedActivities))},null,8,["icon-name","label","aria-checked"])]),_:1}),t.feedMode==="dev"&&w.value.length>0?(r.openBlock(),r.createBlock(c0e,{key:0,sprints:w.value,activities:c.value,"planning-data":t.sprintPlanningData,projects:g.value},null,8,["sprints","activities","planning-data","projects"])):r.createCommentVNode("",!0),r.createElementVNode("div",f0e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.value,pe=>(r.openBlock(),r.createBlock(bge,{key:pe.id,status:pe,list:d.value[pe.id],title:pe.name,"footer-label":R.$t("feed.activity.add"),users:t.users,"user-id":t.userId,"is-editable":t.isEditable,"tag-type":m.value,"show-header-add":t.isEditable,"is-dev-mode":t.feedMode==="dev",onAdd:()=>v(pe),onAddAtBeginning:()=>C(pe),onSelectActivity:u,onArchiveActivity:V,onUnarchiveActivity:T,onUpdateActivity:D,onStartTimer:M},null,8,["status","list","title","footer-label","users","user-id","is-editable","tag-type","show-header-add","is-dev-mode","onAdd","onAddAtBeginning"]))),128))]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[t.selectedActivity?(r.openBlock(),r.createBlock(ml,{key:0,activity:t.selectedActivity,"activity-types":t.activityTypes,"dev-statuses":t.devStatuses,"milestone-id":(he=t.selectedActivity.milestone)==null?void 0:he.id,"template-activities":a.value,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:h.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:g.value,"time-tracking-data":t.timeTrackingData,history:t.history,"history-loading":t.historyLoading,"load-attachment-preview":o.loadAttachmentPreview,sprints:t.activitySprints,onClose:ie[8]||(ie[8]=()=>u(null,null)),onFetchHistory:ie[9]||(ie[9]=()=>i("fetchHistory")),"onUpdate:activity":E,onAddSubtask:B,onUpdateSubtask:q,onDeleteSubtask:I,onAddFiles:H,onRemoveFile:Y,onAddComment:le,onUpdateComment:oe,onRemoveComment:Ne,onToast:s,onCreateSprint:ie[10]||(ie[10]=pe=>i("createSprint",pe))},{default:r.withCtx(pe=>[r.renderSlot(R.$slots,"activityDetailsBody",r.normalizeProps(r.guardReactiveProps(pe)))]),_:3},8,["activity","activity-types","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","history","history-loading","load-attachment-preview","sprints"])):r.createCommentVNode("",!0)]))])}}});const p0e={class:"ao-project-mapping"},m0e={class:"ao-project-mapping-mapping__body"},h0e={class:"ao-project-mapping-mapping__phases"},g0e={key:0,class:"ao-project-mapping-mapping__image-wrapper"},v0e=["src","alt"],y0e=r.defineComponent({__name:"AoMapping",props:{project:{},phases:{},closedStatus:{},users:{},userId:{},templates:{},isTaskCheckable:{type:Function},statuses:{},activityTypes:{},isEditable:{type:[Boolean,String]},showsArchived:{type:Boolean},attachmentEnabled:{type:Boolean}},emits:["addPhase","updatePhase","archivePhase","unarchivePhase","copyPhaseToTemplate","applyTemplate","saveTemplate","update:showsArchived"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=()=>{const{name:g,rank:_}=Ko(o.phases,"phase",n);i("addPhase",{name:g,rank:_,projectId:o.project.id})},a=()=>{const g=n("template.defaultName.phase",{idx:1}),_=os(o.phases);i("addPhase",{name:g,rank:_,projectId:o.project.id})},l=g=>{i("updatePhase",g)},c=g=>{i("archivePhase",g)},u=g=>{i("unarchivePhase",g)},d=g=>{i("copyPhaseToTemplate",g)},p=r.ref(!1),f=r.ref(!1),m=(g,_)=>{i("applyTemplate",{templateId:g,projectId:_}),p.value=!1},h=(g,_)=>{var k;const b=(k=o.templates)==null?void 0:k.at(-1),w=b?Xe.LexoRank.parse(b.rank).genNext():Xe.LexoRank.middle();i("saveTemplate",{templateName:g,rank:w.format(),phaseIds:_}),f.value=!1},v=Go.useRouter(),C=r.ref("mapping"),y=[{label:"Overview",value:"overview"},{label:"Feed",value:"feed"},{label:"Dev",value:"dev"},{label:"Mapping",value:"mapping"}];return r.watch(C,g=>{g==="feed"?(v.push({name:Pe.feed}),console.log("Navigating to feed...")):g==="dev"?(v.push({name:Pe.dev}),console.log("Navigating to dev...")):g==="overview"?(v.push({name:Pe.project}),console.log("Navigating to feed...")):g==="mapping"&&(v.push({name:Pe.mapping}),console.log("Navigating to feed..."))}),(g,_)=>{var b;return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",r.mergeProps({class:"ao-project-mapping-overview"},g.$attrs),[r.createElementVNode("div",p0e,[r.createVNode(rs,null,{primary:r.withCtx(()=>[r.createVNode(vs,{modelValue:C.value,"onUpdate:modelValue":_[0]||(_[0]=w=>C.value=w),tabs:y},null,8,["modelValue"]),r.createVNode(de,{class:"ao-feed__show-archived",size:"sm","icon-name":t.showsArchived?"CheckBoxOutlineRounded":"CheckBoxOutlineBlank","icon-position":"start",color:"primary",variant:"ghost",label:g.$t("feed.filters.showsArchived.label"),role:"checkbox","aria-checked":t.showsArchived,onClick:_[1]||(_[1]=w=>g.$emit("update:showsArchived",!t.showsArchived))},null,8,["icon-name","label","aria-checked"])]),secondary:r.withCtx(()=>[t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:0,class:"ao-mapping__quick-add-phase",size:"sm","icon-name":"Add","icon-position":"start",color:"primary",variant:"ghost",label:g.$t("project.phase.add"),onClick:a},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:1,class:"ao-project-mapping-overview__save-as-template",color:"primary",label:g.$t("project.template.save.label"),onClick:_[2]||(_[2]=w=>f.value=!0)},null,8,["label"])):r.createCommentVNode("",!0),t.isEditable===!0?(r.openBlock(),r.createBlock(de,{key:2,class:"ao-project-mapping-overview__add-template",color:"primary",label:g.$t("project.template.apply.label"),onClick:_[3]||(_[3]=w=>p.value=!0)},null,8,["label"])):r.createCommentVNode("",!0)]),_:1}),r.createElementVNode("div",m0e,[r.createElementVNode("div",h0e,[r.createVNode(gd,{phases:t.phases,"closed-status":t.closedStatus,"is-editable":t.isEditable===!0,users:t.users,"estimation-unit":(b=t.project)==null?void 0:b.estimationUnit,onAddPhase:s,onUpdatePhase:l,onArchivePhase:c,onUnarchivePhase:u,onCopyPhaseToTemplate:d},null,8,["phases","closed-status","is-editable","users","estimation-unit"])]),t.project.architectureImage?(r.openBlock(),r.createElementBlock("div",g0e,[r.createElementVNode("img",{class:"architecture-image",src:t.project.architectureImage.url,alt:r.unref(n)("architectureImage.alt")},null,8,v0e)])):r.createCommentVNode("",!0)])])],16),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[f.value?(r.openBlock(),r.createBlock(Jg,{key:0,phases:t.phases,onClose:_[4]||(_[4]=w=>f.value=!1),onSave:h},null,8,["phases"])):r.createCommentVNode("",!0),p.value?(r.openBlock(),r.createBlock(Yg,{key:1,"project-id":t.project.id,templates:t.templates,onClose:_[5]||(_[5]=w=>p.value=!1),onApply:m},null,8,["project-id","templates"])):r.createCommentVNode("",!0)]))],64)}}});const Ho={TEMPLATES:"templates",TEMPLATE_DETAILS:"template_details",TEMPLATES_LIST:"templates_list"},_0e=(t,e={})=>[{path:t,name:Ho.TEMPLATES,redirect:{name:Ho.TEMPLATES_LIST},...e,children:[{path:"",name:Ho.TEMPLATES_LIST,component:Xg},{path:":templateId/:phaseId?/:milestoneId?/:activityId?",name:Ho.TEMPLATE_DETAILS,component:Zg,props:!0}]}],Pe={project:"AoProject",feed:"AoProjectFeed",dev:"AoProjectDev",mapping:"AoProjectMapping",milestone:"AoMilestone",activity:"AoActivity"},Po={feed:"ActivityFeed",dev:"ActivityFeedDev"},C0e=(t,e={})=>[{path:t,...e,redirect:{name:Pe.project},children:[{path:"",name:Pe.project,component:dhe,props:!0,children:[{path:":phaseId/:milestoneId",name:Pe.milestone,component:bp,props:!0},{path:":phaseId/:milestoneId/:activityId",name:Pe.activity,props:{default:!0,modal:!0},components:{default:bp,modal:ege}}]},{path:"feed",name:Pe.feed,component:Xc,props:n=>({...n.params,feedMode:"standard"})},{path:"dev",name:Pe.dev,component:Xc,props:n=>({...n.params,feedMode:"dev"})},{path:"mapping",name:Pe.mapping,component:y0e,props:!0}]}],b0e={class:"ao-templates"},Xg=r.defineComponent({__name:"AoTemplatesList",props:{templates:{}},emits:["addTemplate","updateTemplates","updateItem","removeItem"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e;r.watch(()=>o.templates,(u,d)=>{Kn(u,d)});const s=()=>{var m,h;const u=(m=o.templates)==null?void 0:m.at(-1),d=u?Xe.LexoRank.parse(u.rank).genNext():Xe.LexoRank.middle(),p=((h=o.templates)==null?void 0:h.length)??0,f={name:n("template.defaultName.template",{idx:p+1}),rank:d.format()};i("addTemplate",f)},a=(u,d)=>{i("updateItem",{itemType:qe.TEMPLATES,id:u,templateId:u,data:{name:d}})},l=(u,d)=>{i("removeItem",{itemType:qe.TEMPLATES,templateId:u,data:{id:u,...d?{name:d}:{}}})},c=u=>{if(u.moved){const d=ns(u,o.templates??[]);i("updateItem",{itemType:qe.TEMPLATES,id:u.moved.element.id,templateId:u.moved.element.id,data:{rank:d}})}};return(u,d)=>(r.openBlock(),r.createElementBlock("div",b0e,[r.createVNode(rs,null,{secondary:r.withCtx(()=>[r.createVNode(de,{label:u.$t("templates.new"),color:"primary","icon-name":"Add","icon-position":"start",onClick:s},null,8,["label"])]),_:1}),r.createVNode(r.unref(Vn),{"model-value":t.templates,class:"ao-templates__list","item-key":"id",handle:".ao-card__drag",onChange:c},{item:r.withCtx(({element:p})=>{var f;return[r.createVNode(nb,{id:p.id,title:p.name,phases:p.phases,milestones:(f=p.phases)!=null&&f.length?r.unref(xC)(p.phases):0,activities:p.phases?r.unref(AC)(p.phases):0,"updated-at":p.updatedAt,"updated-by":p.updatedBy,onUpdateTitle:m=>a(p.id,m),onClick:m=>u.$router.push({name:r.unref(Ho).TEMPLATE_DETAILS,params:{templateId:p.id}}),onDeleteItem:d[0]||(d[0]=(m,h)=>l(m,h))},null,8,["id","title","phases","milestones","activities","updated-at","updated-by","onUpdateTitle","onClick"])]}),_:1},8,["model-value"])]))}});const k0e={class:"ao-field__label"},Qg=r.defineComponent({__name:"AoField",props:{label:{},isMultiselect:{type:Boolean,default:!1}},setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("label",{class:r.normalizeClass(["ao-field",{"ao-field--multiselect":t.isMultiselect}])},[r.createElementVNode("span",k0e,r.toDisplayString(t.label),1),r.renderSlot(e.$slots,"default")],2))}}),w0e=["type","value","disabled","readonly"],E0e=r.defineComponent({__name:"AoInputField",props:{label:{default:""},type:{default:"text"},modelValue:{default:""},modelModifiers:{default:()=>({})},isDisabled:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,i=r.computed(()=>n.modelModifiers.lazy?"change":"input"),s=a=>{n.modelModifiers.number&&(a=Number(a)),o("update:modelValue",a)};return(a,l)=>(r.openBlock(),r.createBlock(Qg,{label:t.label},{default:r.withCtx(()=>[r.createElementVNode("input",r.mergeProps({class:"ao-field__input",type:t.type,value:t.modelValue,disabled:t.isDisabled,readonly:t.isReadonly},{[r.toHandlerKey(i.value)]:l[0]||(l[0]=c=>s(c.target.value))}),null,16,w0e)]),_:1},8,["label"]))}}),S0e={class:"ao-field"},x0e={class:"ao-field__label"},A0e=["checked","disabled"],e0=r.defineComponent({__name:"AoCheckboxField",props:{label:{default:""},modelValue:{type:Boolean,default:!1},isReadonly:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("label",S0e,[r.createElementVNode("span",x0e,r.toDisplayString(t.label),1),r.createElementVNode("input",{class:"ao-field__input",type:"checkbox",checked:t.modelValue,disabled:t.isDisabled,onChange:n[0]||(n[0]=o=>{var i;return e.$emit("update:modelValue",((i=o.target)==null?void 0:i.checked)??!1)})},null,40,A0e)]))}}),T0e={class:"ao-audit-config"},N0e={key:0,class:"ao-audit-config__loading"},D0e={key:1,class:"ao-audit-config__error"},$0e={key:2,class:"ao-audit-config__empty"},B0e={key:3,class:"ao-audit-config__table"},M0e={class:"ao-audit-config__th ao-audit-config__th--table"},L0e={class:"ao-audit-config__th ao-audit-config__th--audit"},O0e={class:"ao-audit-config__th ao-audit-config__th--excluded"},V0e={class:"ao-audit-config__td ao-audit-config__td--table"},I0e={class:"ao-audit-config__table-name"},P0e={key:0,class:"ao-audit-config__schema"},F0e={class:"ao-audit-config__td ao-audit-config__td--audit"},R0e={class:"ao-audit-config__checkbox"},z0e={class:"ao-audit-config__td ao-audit-config__td--excluded"},U0e={key:0,class:"ao-audit-config__disabled-note"},H0e={class:"ao-audit-config__option"},q0e=["title"],j0e={key:0,class:"ao-audit-config__all-tracked"},W0e=r.defineComponent({__name:"AoAuditConfigTable",props:{tables:{},loading:{type:Boolean,default:!1},error:{default:null},disabled:{type:Boolean,default:!1}},emits:["update"],setup(t,{emit:e}){const n=t,o=e,{t:i}=yt(),s=r.computed(()=>n.tables);function a(u){return u.columns.map(d=>({value:d.name,label:d.name,isPrimaryKey:d.isPrimaryKey}))}function l(u,d){o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:d,excludeColumns:u.excludeColumns})}function c(u,d){const p=Array.from(new Set(d??[]));o("update",{schemaName:u.schemaName,tableName:u.tableName,isEnabled:u.isEnabled,excludeColumns:p})}return(u,d)=>(r.openBlock(),r.createElementBlock("div",T0e,[t.loading?(r.openBlock(),r.createElementBlock("div",N0e,r.toDisplayString(r.unref(i)("audit.loading")),1)):t.error?(r.openBlock(),r.createElementBlock("div",D0e,r.toDisplayString(r.unref(i)("audit.error",{message:t.error})),1)):s.value.length?(r.openBlock(),r.createElementBlock("table",B0e,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[r.createElementVNode("th",M0e,r.toDisplayString(r.unref(i)("audit.tableHeader")),1),r.createElementVNode("th",L0e,r.toDisplayString(r.unref(i)("audit.auditHeader")),1),r.createElementVNode("th",O0e,r.toDisplayString(r.unref(i)("audit.ignoredHeader")),1)])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,p=>(r.openBlock(),r.createElementBlock("tr",{key:`${p.schemaName}.${p.tableName}`},[r.createElementVNode("td",V0e,[r.createElementVNode("span",I0e,r.toDisplayString(p.tableName),1),p.schemaName!=="public"?(r.openBlock(),r.createElementBlock("span",P0e,r.toDisplayString(p.schemaName),1)):r.createCommentVNode("",!0)]),r.createElementVNode("td",F0e,[r.createElementVNode("div",R0e,[r.createVNode(e0,{label:"","model-value":p.isEnabled,"is-disabled":t.disabled,"is-readonly":!1,"onUpdate:modelValue":f=>l(p,f)},null,8,["model-value","is-disabled","onUpdate:modelValue"])])]),r.createElementVNode("td",z0e,[p.isEnabled?(r.openBlock(),r.createBlock(dt,{key:1,"model-value":p.excludeColumns,class:"ao-audit-config__multiselect",mode:"tags","value-prop":"value",label:"label","track-by":"label","close-on-select":!1,searchable:!0,options:a(p),disabled:t.disabled,caret:!t.disabled,"onUpdate:modelValue":f=>c(p,f)},{option:r.withCtx(({option:f})=>[r.createElementVNode("span",H0e,[r.createTextVNode(r.toDisplayString(f.label)+" ",1),f.isPrimaryKey?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-audit-config__pk",title:r.unref(i)("audit.primaryKey")}," PK ",8,q0e)):r.createCommentVNode("",!0)])]),placeholder:r.withCtx(()=>[p.excludeColumns.length===0?(r.openBlock(),r.createElementBlock("span",j0e,r.toDisplayString(r.unref(i)("audit.allTracked")),1)):r.createCommentVNode("",!0)]),_:2},1032,["model-value","options","disabled","caret","onUpdate:modelValue"])):(r.openBlock(),r.createElementBlock("div",U0e,r.toDisplayString(r.unref(i)("audit.auditDisabled")),1))])]))),128))])])):(r.openBlock(),r.createElementBlock("div",$0e,r.toDisplayString(r.unref(i)("audit.empty")),1))]))}});const Z0e={key:0,class:"ao-activity-inline__drag-handle"},K0e={class:"ao-activity-inline__title"},G0e={class:"ao-activity-inline__name"},Y0e={class:"ao-activity-inline__assignee"},J0e={key:1,class:"ao-activity-inline__unassigned"},X0e={class:"ao-activity-inline__estimation"},Q0e={class:"ao-activity-inline__status"},eve={class:"ao-activity-inline__title"},tve={class:"ao-activity-inline__name"},nve={class:"ao-activity-inline__assignee"},ove={key:1,class:"ao-activity-inline__unassigned"},rve={class:"ao-activity-inline__estimation"},ive={class:"ao-activity-inline__status"},sve={key:3,class:"ao-activity-inline__content ao-activity-inline--disabled"},ave={class:"ao-activity-inline__title"},lve={class:"ao-activity-inline__name"},cve={class:"ao-activity-inline__assignee"},uve={key:1},dve={class:"ao-activity-inline__estimation"},fve={class:"ao-activity-inline__status"},pve=r.defineComponent({__name:"AoActivityInline",props:{activity:{},showMilestone:{type:Boolean,default:!0},isDraggable:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},emits:["openActivity"],setup(t,{emit:e}){const n=t,o=e,i=()=>{o("openActivity",n.activity.id)},s=r.computed(()=>{const u=n.activity.milestone,d=u==null?void 0:u.phase,p=n.activity.project;return!(p!=null&&p.id)||!(d!=null&&d.id)||!(u!=null&&u.id)?null:{name:Pe.activity,params:{id:p.id,phaseId:d.id,milestoneId:u.id,activityId:n.activity.id}}}),a=r.computed(()=>n.activity.assignee?[n.activity.assignee.firstName,n.activity.assignee.lastName].filter(Boolean).join(" "):""),l=r.computed(()=>{var u,d;return((u=n.activity.devStatus)==null?void 0:u.name)??((d=n.activity.status)==null?void 0:d.name)??""}),c=r.computed(()=>{var u;return((u=n.activity.project)==null?void 0:u.estimationUnit)==="days"?"":"h"});return(u,d)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-activity-inline",t.isDraggable?"ao-activity-inline--draggable":""])},[t.isDraggable?(r.openBlock(),r.createElementBlock("div",Z0e,[r.createVNode(ke,{name:"DragIndicator"})])):r.createCommentVNode("",!0),t.clickable?(r.openBlock(),r.createElementBlock("button",{key:1,type:"button",class:"ao-activity-inline__content",onClick:r.withModifiers(i,["stop"])},[r.createElementVNode("div",K0e,[t.showMilestone&&t.activity.milestone?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-activity-inline__milestone",style:r.normalizeStyle({"--milestone-color":t.activity.milestone.color||void 0})},r.toDisplayString(t.activity.milestone.name),5)):r.createCommentVNode("",!0),r.createElementVNode("span",G0e,r.toDisplayString(t.activity.name),1)]),r.createElementVNode("div",Y0e,[t.activity.assignee?(r.openBlock(),r.createBlock(Xt,{key:0,"user-name":a.value,"avatar-url":t.activity.assignee.avatarUrl,size:"sm",color:"neutral"},null,8,["user-name","avatar-url"])):(r.openBlock(),r.createElementBlock("span",J0e," — "))]),r.createElementVNode("div",X0e,[t.activity.estimation!=null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(t.activity.estimation)+r.toDisplayString(c.value),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))]),r.createElementVNode("div",Q0e,r.toDisplayString(l.value),1)])):s.value?(r.openBlock(),r.createBlock(r.unref(Go.RouterLink),{key:2,to:s.value,class:"ao-activity-inline__content"},{default:r.withCtx(()=>[r.createElementVNode("div",eve,[t.showMilestone&&t.activity.milestone?(r.openBlock(),r.createElementBlock("span",{key:0,class:"ao-activity-inline__milestone",style:r.normalizeStyle({"--milestone-color":t.activity.milestone.color||void 0})},r.toDisplayString(t.activity.milestone.name),5)):r.createCommentVNode("",!0),r.createElementVNode("span",tve,r.toDisplayString(t.activity.name),1)]),r.createElementVNode("div",nve,[t.activity.assignee?(r.openBlock(),r.createBlock(Xt,{key:0,"user-name":a.value,"avatar-url":t.activity.assignee.avatarUrl,size:"sm",color:"neutral"},null,8,["user-name","avatar-url"])):(r.openBlock(),r.createElementBlock("span",ove," — "))]),r.createElementVNode("div",rve,[t.activity.estimation!=null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(t.activity.estimation)+r.toDisplayString(c.value),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))]),r.createElementVNode("div",ive,r.toDisplayString(l.value),1)]),_:1},8,["to"])):(r.openBlock(),r.createElementBlock("div",sve,[r.createElementVNode("div",ave,[r.createElementVNode("span",lve,r.toDisplayString(t.activity.name),1)]),r.createElementVNode("div",cve,[t.activity.assignee?(r.openBlock(),r.createBlock(Xt,{key:0,"user-name":a.value,"avatar-url":t.activity.assignee.avatarUrl,size:"sm",color:"neutral"},null,8,["user-name","avatar-url"])):(r.openBlock(),r.createElementBlock("span",uve,"—"))]),r.createElementVNode("div",dve,[t.activity.estimation!=null?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createTextVNode(r.toDisplayString(t.activity.estimation)+r.toDisplayString(c.value),1)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(" — ")],64))]),r.createElementVNode("div",fve,r.toDisplayString(l.value),1)]))],2))}});const t0=ee(pve,[["__scopeId","data-v-d71c72bc"]]),mve={class:"ao-sprint-section__header-left"},hve={class:"ao-sprint-section__expand-icon"},gve={class:"ao-sprint-section__title"},vve={key:0,class:"ao-sprint-section__archived-badge"},yve={class:"ao-sprint-section__header-right"},_ve={class:"ao-sprint-section__dates"},Cve={class:"ao-sprint-section__meta"},bve=["title"],kve=["onClick"],wve={class:"ao-sprint-section__edit-title"},Eve={class:"ao-sprint-section__fixed-number"},Sve={class:"ao-sprint-section__date-fields"},xve={class:"ao-sprint-section__actions"},Ave={class:"ao-sprint-section__content"},Tve={key:0,class:"ao-sprint-section__empty"},Nve=r.defineComponent({__name:"AoSprintSection",props:{sprint:{},activities:{},isEditable:{type:Boolean,default:!1},planningData:{default:()=>({})},projects:{default:()=>[]},businessDayHours:{default:8}},emits:["updateSprint","archiveSprint","unarchiveSprint","activityChange","openActivity"],setup(t,{emit:e}){const n=t,o=e,i=x=>{x.added&&o("activityChange",{id:x.added.element.id,sprintId:n.sprint.id})},s=x=>{o("openActivity",{activityId:x,activityIds:n.activities.map($=>$.id)})},a=r.ref(!0),l=r.ref(!1),c=r.ref({label:"",startDate:"",endDate:"",color:""}),u=r.computed(()=>n.sprint.label?`Sprint ${n.sprint.number}: ${n.sprint.label}`:`Sprint ${n.sprint.number}`),d=r.computed(()=>{const x=Mr(n.sprint.startDate,"dd/MM/yy"),$=Mr(n.sprint.endDate,"dd/MM/yy");return`${x} – ${$}`}),p=r.computed(()=>n.activities.length),f=r.computed(()=>n.activities.reduce((x,$)=>x+($.estimation??0),0)),m=r.computed(()=>{var x;return(x=n.planningData)==null?void 0:x[n.sprint.id]}),h=r.computed(()=>{var $;const x=n.projects.find(B=>B.id===n.sprint.projectId);return x||(($=n.activities.find(B=>B.project))==null?void 0:$.project)}),v=r.computed(()=>{var x;return((x=h.value)==null?void 0:x.velocity)??1}),C=r.computed(()=>{var x;return((x=h.value)==null?void 0:x.estimationUnit)??""}),y=r.computed(()=>{const x=m.value;return x!=null&&x.plannedManDays?C.value==="hours"?x.plannedManDays*n.businessDayHours:x.plannedManDays:null}),g=r.computed(()=>{const x=y.value;return x==null?null:x*v.value}),_=r.computed(()=>{const x=g.value;return x==null||x===0?null:Math.round(f.value/x*100)}),b=r.computed(()=>{const x=g.value;return x==null?!1:f.value>x}),w=r.computed(()=>{const x=g.value;if(x==null)return null;const $=Math.round(f.value*10)/10,B=Math.round(x*10)/10,q=_.value;return q!=null?`${$} / ${B} pts · ${q}%`:`${$} / ${B} pts`}),k=r.computed(()=>{const x=g.value;if(x==null)return;const $=C.value==="hours"?"hours":"",B=C.value==="hours"?"h":"";return[`Estimated work: ${f.value} pts`,`Planned capacity: ${y.value} ${$}`,`Velocity: ${v.value} pt / ${B}`,`Sprint capacity: ${x} pts`,`Load: ${_.value}%`].join(`
63
+ `)}),A=r.computed(()=>!!(c.value.startDate&&c.value.endDate)),S=()=>{l.value||(a.value=!a.value)},E=()=>{l.value=!0,c.value={label:n.sprint.label||"",startDate:n.sprint.startDate,endDate:n.sprint.endDate,color:n.sprint.color||""}},D=()=>{l.value=!1},V=()=>{A.value&&(o("updateSprint",{id:n.sprint.id,label:c.value.label||void 0,startDate:c.value.startDate,endDate:c.value.endDate,color:c.value.color||void 0}),l.value=!1)},T=()=>{window.confirm("Archive this sprint?")&&o("archiveSprint",{id:n.sprint.id})},M=()=>{o("unarchiveSprint",{id:n.sprint.id})};return(x,$)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ao-sprint-section",{"ao-sprint-section--archived":!t.sprint.active}])},[l.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:"ao-sprint-section__edit",onClick:$[6]||($[6]=r.withModifiers(()=>{},["stop"]))},[r.createVNode(ti,{color:c.value.color,"onUpdate:color":$[2]||($[2]=B=>c.value.color=B)},{clickable:r.withCtx(({openPicker:B,bgColor:q})=>[r.createElementVNode("button",{class:"ao-sprint-section__color-trigger",style:r.normalizeStyle({backgroundColor:q}),title:"Sprint color",onClick:I=>B(I.currentTarget)},null,12,kve)]),_:1},8,["color"]),r.createElementVNode("div",wve,[r.createElementVNode("span",Eve," Sprint "+r.toDisplayString(t.sprint.number)+": ",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":$[3]||($[3]=B=>c.value.label=B),type:"text",class:"ao-sprint-section__input ao-sprint-section__input--label",placeholder:"Label"},null,512),[[r.vModelText,c.value.label]])]),r.createElementVNode("div",Sve,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":$[4]||($[4]=B=>c.value.startDate=B),type:"date",class:"ao-sprint-section__input ao-sprint-section__input--date"},null,512),[[r.vModelText,c.value.startDate]]),$[7]||($[7]=r.createElementVNode("span",null,"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":$[5]||($[5]=B=>c.value.endDate=B),type:"date",class:"ao-sprint-section__input ao-sprint-section__input--date"},null,512),[[r.vModelText,c.value.endDate]])]),r.createElementVNode("div",xve,[r.createVNode(de,{color:"success",variant:"ghost",size:"sm","icon-name":"CheckSmallRounded",disabled:!A.value,title:"Save",onClick:V},null,8,["disabled"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm","icon-name":"CloseRounded",title:"Cancel",onClick:D})])])):(r.openBlock(),r.createElementBlock("div",{key:0,class:"ao-sprint-section__header",onClick:S},[r.createElementVNode("div",mve,[r.createElementVNode("span",hve,r.toDisplayString(a.value?"▾":"▸"),1),r.createElementVNode("span",{class:"ao-sprint-section__color-dot",style:r.normalizeStyle({backgroundColor:t.sprint.color||"var(--ao-color-primary-base)"})},null,4),r.createElementVNode("span",gve,r.toDisplayString(u.value),1),t.sprint.active?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("span",vve," Archived "))]),r.createElementVNode("div",yve,[r.createElementVNode("span",_ve,r.toDisplayString(d.value),1),r.createElementVNode("span",Cve,r.toDisplayString(p.value)+" "+r.toDisplayString(p.value===1?"activity":"activities"),1),w.value?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["ao-sprint-section__capacity",{"ao-sprint-section__capacity--over":b.value}]),title:k.value},r.toDisplayString(w.value),11,bve)):r.createCommentVNode("",!0),t.isEditable?(r.openBlock(),r.createElementBlock("div",{key:1,class:"ao-sprint-section__actions",onClick:$[1]||($[1]=r.withModifiers(()=>{},["stop"]))},[r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm","icon-name":"EditOutline",title:"Edit sprint",onClick:E}),r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm",corners:"round","icon-name":"ArchiveOutlineRounded",label:t.sprint.active?"Archive":"Unarchive",onClick:$[0]||($[0]=B=>t.sprint.active?T():M())},null,8,["label"])])):r.createCommentVNode("",!0)])])),r.withDirectives(r.createElementVNode("div",Ave,[r.createVNode(r.unref(Vn),{list:t.activities,class:"ao-sprint-section__draggable",group:"sprint-planning-activities","item-key":"id",handle:".ao-activity-inline__drag-handle",disabled:!t.isEditable,"ghost-class":"ao-sprint-section__ghost",onChange:i},{item:r.withCtx(({element:B})=>[r.createVNode(t0,{activity:B,"is-draggable":t.isEditable,clickable:!0,onOpenActivity:s},null,8,["activity","is-draggable"])]),_:1},8,["list","disabled"]),t.activities.length===0?(r.openBlock(),r.createElementBlock("div",Tve," No activities ")):r.createCommentVNode("",!0)],512),[[r.vShow,a.value&&!l.value]])],2))}});const Dve=ee(Nve,[["__scopeId","data-v-72b9ec74"]]),$ve={class:"ao-sprint-list"},Bve={class:"ao-sprint-list__header"},Mve={class:"ao-sprint-list__title-group"},Lve={class:"ao-sprint-list__count"},Ove={class:"ao-sprint-list__actions"},Vve={key:0,class:"ao-sprint-list__toggle"},Ive={key:0,class:"ao-sprint-list__create"},Pve=["title","onClick"],Fve={class:"ao-sprint-list__create-title"},Rve={class:"ao-sprint-list__fixed-number"},zve=["placeholder"],Uve={class:"ao-sprint-list__date-fields"},Hve={class:"ao-sprint-list__row-actions"},qve={class:"ao-sprint-list__sections"},jve={key:1,class:"ao-sprint-list__empty"},Wve=r.defineComponent({__name:"AoSprintList",props:{sprints:{},activities:{},isEditable:{type:Boolean,default:!1},planningData:{default:()=>({})},projects:{default:()=>[]},businessDayHours:{default:8}},emits:["updateSprint","archiveSprint","unarchiveSprint","createSprint","activityChange","openActivity"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.ref(!1),a=r.ref(!1),l=r.ref({label:"",startDate:"",endDate:"",color:"#4f5cff"}),c=r.computed(()=>(s.value?[...o.sprints]:o.sprints.filter(y=>y.active)).sort((y,g)=>g.number-y.number)),u=r.computed(()=>o.sprints.reduce((C,y)=>Math.max(C,y.number),0)+1),d=r.computed(()=>!!(l.value.startDate&&l.value.endDate)),p=r.computed(()=>{var y;const C={};for(const g of o.activities){const _=(y=g.sprint)==null?void 0:y.id;_&&(C[_]??(C[_]=[])).push(g)}return C}),f=C=>p.value[C]??[],m=()=>{a.value=!0,l.value={label:"",startDate:"",endDate:"",color:"#4f5cff"}},h=()=>{a.value=!1},v=()=>{d.value&&(i("createSprint",{label:l.value.label||void 0,startDate:l.value.startDate,endDate:l.value.endDate,color:l.value.color||void 0}),a.value=!1)};return(C,y)=>(r.openBlock(),r.createElementBlock("section",$ve,[r.createElementVNode("div",Bve,[r.createElementVNode("div",Mve,[r.createElementVNode("h3",null,r.toDisplayString(r.unref(n)("sprint.planning")),1),r.createElementVNode("span",Lve,r.toDisplayString(c.value.length),1)]),r.createElementVNode("div",Ove,[t.sprints.some(g=>!g.active)?(r.openBlock(),r.createElementBlock("label",Vve,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=g=>s.value=g),type:"checkbox"},null,512),[[r.vModelCheckbox,s.value]]),r.createTextVNode(" "+r.toDisplayString(r.unref(n)("sprint.showArchived")),1)])):r.createCommentVNode("",!0),t.isEditable&&!a.value?(r.openBlock(),r.createBlock(de,{key:1,color:"primary",variant:"solid",size:"sm","icon-name":"Add","icon-position":"start",label:r.unref(n)("sprint.add"),onClick:m},null,8,["label"])):r.createCommentVNode("",!0)])]),a.value?(r.openBlock(),r.createElementBlock("div",Ive,[r.createVNode(ti,{color:l.value.color,"onUpdate:color":y[1]||(y[1]=g=>l.value.color=g)},{clickable:r.withCtx(({openPicker:g,bgColor:_})=>[r.createElementVNode("button",{class:"ao-sprint-list__color-trigger",style:r.normalizeStyle({backgroundColor:_}),title:r.unref(n)("sprint.color"),onClick:b=>g(b.currentTarget)},null,12,Pve)]),_:1},8,["color"]),r.createElementVNode("div",Fve,[r.createElementVNode("span",Rve,"Sprint "+r.toDisplayString(u.value)+":",1),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[2]||(y[2]=g=>l.value.label=g),type:"text",class:"ao-sprint-list__input ao-sprint-list__input--label",placeholder:r.unref(n)("sprint.label")},null,8,zve),[[r.vModelText,l.value.label]])]),r.createElementVNode("div",Uve,[r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[3]||(y[3]=g=>l.value.startDate=g),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,l.value.startDate]]),y[10]||(y[10]=r.createElementVNode("span",null,"–",-1)),r.withDirectives(r.createElementVNode("input",{"onUpdate:modelValue":y[4]||(y[4]=g=>l.value.endDate=g),type:"date",class:"ao-sprint-list__input ao-sprint-list__input--date"},null,512),[[r.vModelText,l.value.endDate]])]),r.createElementVNode("div",Hve,[r.createVNode(de,{color:"success",variant:"ghost",size:"sm","icon-name":"CheckSmallRounded",disabled:!d.value,title:r.unref(n)("common.save"),onClick:v},null,8,["disabled","title"]),r.createVNode(de,{color:"neutral",variant:"ghost",size:"sm","icon-name":"CloseRounded",title:r.unref(n)("common.cancel"),onClick:h},null,8,["title"])])])):r.createCommentVNode("",!0),r.createElementVNode("div",qve,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,g=>(r.openBlock(),r.createBlock(Dve,{key:g.id,sprint:g,activities:f(g.id),"is-editable":t.isEditable,"planning-data":t.planningData,projects:t.projects,"business-day-hours":t.businessDayHours,onUpdateSprint:y[5]||(y[5]=_=>i("updateSprint",_)),onArchiveSprint:y[6]||(y[6]=_=>i("archiveSprint",_)),onUnarchiveSprint:y[7]||(y[7]=_=>i("unarchiveSprint",_)),onActivityChange:y[8]||(y[8]=_=>i("activityChange",_)),onOpenActivity:y[9]||(y[9]=_=>i("openActivity",_))},null,8,["sprint","activities","is-editable","planning-data","projects","business-day-hours"]))),128))]),c.value.length===0&&!a.value?(r.openBlock(),r.createElementBlock("div",jve,r.toDisplayString(r.unref(n)("sprint.noSprints")),1)):r.createCommentVNode("",!0)]))}});const Zve=ee(Wve,[["__scopeId","data-v-97d6bf84"]]),Kve={class:"ao-backlog-section"},Gve={class:"ao-backlog-section__header-left"},Yve={class:"ao-backlog-section__expand-icon"},Jve={class:"ao-backlog-section__name"},Xve={key:0,class:"ao-backlog-section__phase"},Qve={class:"ao-backlog-section__header-right"},e2e={class:"ao-backlog-section__count"},t2e={class:"ao-backlog-section__content"},n2e={key:1,class:"ao-backlog-section__empty"},o2e={class:"ao-backlog-section__drop-hint"},r2e=r.defineComponent({__name:"AoBacklogSection",props:{milestoneId:{},milestoneName:{},milestoneColor:{},phaseName:{},activities:{},isEditable:{type:Boolean,default:!1}},emits:["activityChange","openActivity"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.ref(!0),a=r.computed(()=>o.activities.length),l=r.computed(()=>{if(o.milestoneColor)return{"--milestone-color":o.milestoneColor}}),c=()=>{s.value=!s.value},u=p=>{if(!p.added)return;const f=o.milestoneId==="__no_milestone__"?null:o.milestoneId;i("activityChange",{id:p.added.element.id,sprintId:null,milestoneId:f})},d=p=>{i("openActivity",{activityId:p,activityIds:o.activities.map(f=>f.id)})};return(p,f)=>(r.openBlock(),r.createElementBlock("div",Kve,[r.createElementVNode("div",{class:r.normalizeClass(["ao-backlog-section__header",{"ao-backlog-section__header--no-milestone":!t.milestoneColor}]),style:r.normalizeStyle(l.value),onClick:c},[r.createElementVNode("div",Gve,[r.createElementVNode("span",Yve,r.toDisplayString(s.value?"▾":"▸"),1),r.createElementVNode("span",Jve,r.toDisplayString(t.milestoneName),1),t.phaseName?(r.openBlock(),r.createElementBlock("span",Xve,r.toDisplayString(t.phaseName),1)):r.createCommentVNode("",!0)]),r.createElementVNode("div",Qve,[r.createElementVNode("span",e2e,r.toDisplayString(a.value)+" "+r.toDisplayString(a.value===1?r.unref(n)("backlog.activity"):r.unref(n)("backlog.activities")),1)])],6),r.withDirectives(r.createElementVNode("div",t2e,[t.activities.length>0?(r.openBlock(),r.createBlock(r.unref(Vn),{key:0,list:t.activities,class:"ao-backlog-section__draggable",group:"sprint-planning-activities","item-key":"id",handle:".ao-activity-inline__drag-handle",disabled:!t.isEditable,"ghost-class":"ao-backlog-section__ghost",onChange:u},{item:r.withCtx(({element:m})=>[r.createVNode(t0,{activity:m,"is-draggable":t.isEditable,"show-milestone":!1,clickable:!0,onOpenActivity:d},null,8,["activity","is-draggable"])]),_:1},8,["list","disabled"])):(r.openBlock(),r.createElementBlock("div",n2e,[r.createElementVNode("span",o2e,r.toDisplayString(r.unref(n)("backlog.dropHere")),1)]))],512),[[r.vShow,s.value]])]))}});const i2e=ee(r2e,[["__scopeId","data-v-fd191163"]]),s2e={class:"ao-backlog"},a2e={class:"ao-backlog__header"},l2e={class:"ao-backlog__count"},c2e={key:0,class:"ao-backlog__sections"},u2e={key:1,class:"ao-backlog__empty"},d2e=r.defineComponent({__name:"AoBacklog",props:{activities:{},isEditable:{type:Boolean,default:!1}},emits:["activityChange","openActivity"],setup(t,{emit:e}){const{t:n}=yt(),o=t,i=e,s=r.computed(()=>o.activities.filter(l=>{var d,p,f,m;if(l.sprint||l.active===!1)return!1;const c=((p=(d=l.status)==null?void 0:d.name)==null?void 0:p.toLowerCase())??"",u=((m=(f=l.devStatus)==null?void 0:f.name)==null?void 0:m.toLowerCase())??"";return!(c==="done"||u==="done")})),a=r.computed(()=>{var d;const l=new Map,c=new Map;let u=0;for(const p of o.activities){const f=((d=p.milestone)==null?void 0:d.id)??"__no_milestone__";c.has(f)||(c.set(f,u),u+=1)}for(const p of s.value){const f=p.milestone,m=f==null?void 0:f.phase,h=(f==null?void 0:f.id)??"__no_milestone__",v=l.get(h);if(v){v.activities.push(p);continue}l.set(h,{milestoneId:h,milestoneName:(f==null?void 0:f.name)??n("backlog.noMilestone"),milestoneColor:(f==null?void 0:f.color)||void 0,phaseName:m==null?void 0:m.name,activities:[p]})}return Array.from(l.values()).sort((p,f)=>{const m=c.get(p.milestoneId)??Number.MAX_SAFE_INTEGER,h=c.get(f.milestoneId)??Number.MAX_SAFE_INTEGER;return m-h})});return(l,c)=>(r.openBlock(),r.createElementBlock("section",s2e,[r.createElementVNode("div",a2e,[r.createElementVNode("h3",null,r.toDisplayString(r.unref(n)("backlog.title")),1),r.createElementVNode("span",l2e,r.toDisplayString(s.value.length),1)]),a.value.length>0?(r.openBlock(),r.createElementBlock("div",c2e,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(a.value,u=>(r.openBlock(),r.createBlock(i2e,{key:u.milestoneId,"milestone-id":u.milestoneId,"milestone-name":u.milestoneName,"milestone-color":u.milestoneColor,"phase-name":u.phaseName,activities:u.activities,"is-editable":t.isEditable,onActivityChange:c[0]||(c[0]=d=>i("activityChange",d)),onOpenActivity:c[1]||(c[1]=d=>i("openActivity",d))},null,8,["milestone-id","milestone-name","milestone-color","phase-name","activities","is-editable"]))),128))])):(r.openBlock(),r.createElementBlock("div",u2e,r.toDisplayString(r.unref(n)("backlog.empty")),1))]))}});const f2e=ee(d2e,[["__scopeId","data-v-59715eab"]]),p2e={class:"ao-sprint-planning"},m2e={class:"ao-sprint-planning__sprint"},h2e={class:"ao-sprint-planning__backlog"},g2e=r.defineComponent({__name:"AoSprintPlanning",props:{sprints:{},activities:{},selectedActivity:{default:void 0},isEditable:{type:[Boolean,String],default:!1},users:{default:()=>[]},userId:{default:void 0},statuses:{default:()=>[]},devStatuses:{default:()=>[]},isTaskCheckable:{type:Function,default:void 0},attachmentEnabled:{type:Boolean,default:!0},timeTrackingData:{default:()=>({})},loadAttachmentPreview:{type:Function,default:void 0},planningData:{default:()=>({})},projects:{default:()=>[]},businessDayHours:{default:8}},emits:["updateSprint","archiveSprint","unarchiveSprint","createSprint","activityChange","selectActivity","updateActivity","addSubtask","updateSubtask","deleteSubtask","addFiles","removeFile","addComment","updateComment","removeComment","fetchHistory"],setup(t,{emit:e}){const n=t,o=e,i=r.ref(null),s=r.ref([]),a=r.computed(()=>i.value?s.value.indexOf(i.value):-1),l=r.computed(()=>a.value>0),c=r.computed(()=>a.value>=0&&a.value<s.value.length-1),u=r.computed(()=>{var g,_;const y=(g=n.selectedActivity)==null?void 0:g.milestone;return y?`${((_=y.phase)==null?void 0:_.name)??""} / ${y.name??""}`:""}),d=r.computed(()=>{var g;const y=(g=n.selectedActivity)==null?void 0:g.project;return y?[y]:[]}),p=y=>{i.value=y,o("selectActivity",y)},f=y=>{s.value=y.activityIds,p(y.activityId)},m=()=>{s.value=[],p(null)},h=()=>{l.value&&p(s.value[a.value-1])},v=()=>{c.value&&p(s.value[a.value+1])},C=y=>{if(!i.value)return;const g=y.target;g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement||g instanceof HTMLSelectElement||g.isContentEditable||(y.key==="ArrowLeft"?(y.preventDefault(),y.stopImmediatePropagation(),h()):y.key==="ArrowRight"?(y.preventDefault(),y.stopImmediatePropagation(),v()):y.key==="Escape"&&(y.preventDefault(),y.stopImmediatePropagation(),m()))};return r.onMounted(()=>{window.addEventListener("keydown",C)}),r.onUnmounted(()=>{window.removeEventListener("keydown",C)}),(y,g)=>{var _;return r.openBlock(),r.createElementBlock("div",p2e,[r.createElementVNode("div",m2e,[r.createVNode(Zve,{sprints:t.sprints,activities:t.activities,"is-editable":t.isEditable,"planning-data":t.planningData,projects:t.projects,"business-day-hours":t.businessDayHours,onUpdateSprint:g[0]||(g[0]=b=>o("updateSprint",b)),onArchiveSprint:g[1]||(g[1]=b=>o("archiveSprint",b)),onUnarchiveSprint:g[2]||(g[2]=b=>o("unarchiveSprint",b)),onCreateSprint:g[3]||(g[3]=b=>o("createSprint",b)),onActivityChange:g[4]||(g[4]=b=>o("activityChange",b)),onOpenActivity:f},null,8,["sprints","activities","is-editable","planning-data","projects","business-day-hours"])]),r.createElementVNode("div",h2e,[r.createVNode(f2e,{activities:t.activities,"is-editable":t.isEditable,onActivityChange:g[5]||(g[5]=b=>o("activityChange",b)),onOpenActivity:f},null,8,["activities","is-editable"])]),(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[i.value&&t.selectedActivity?(r.openBlock(),r.createBlock(ml,{key:0,activity:t.selectedActivity,"dev-statuses":t.devStatuses,"milestone-id":(_=t.selectedActivity.milestone)==null?void 0:_.id,"template-activities":t.activities,users:t.users,"user-id":t.userId,"is-task-checkable":t.isTaskCheckable,statuses:t.statuses,breadcrumbs:u.value,"is-editable":t.isEditable,"attachment-enabled":t.attachmentEnabled,projects:d.value,"time-tracking-data":t.timeTrackingData,"load-attachment-preview":t.loadAttachmentPreview,sprints:t.sprints,onClose:m,"onUpdate:activity":g[6]||(g[6]=b=>o("updateActivity",b)),onAddSubtask:g[7]||(g[7]=b=>o("addSubtask",b)),onUpdateSubtask:g[8]||(g[8]=b=>o("updateSubtask",b)),onDeleteSubtask:g[9]||(g[9]=b=>o("deleteSubtask",b)),onAddFiles:g[10]||(g[10]=b=>o("addFiles",b)),onRemoveFile:g[11]||(g[11]=b=>o("removeFile",b)),onAddComment:g[12]||(g[12]=b=>o("addComment",b)),onUpdateComment:g[13]||(g[13]=b=>o("updateComment",b)),onRemoveComment:g[14]||(g[14]=b=>o("removeComment",b)),onFetchHistory:g[15]||(g[15]=b=>o("fetchHistory"))},null,8,["activity","dev-statuses","milestone-id","template-activities","users","user-id","is-task-checkable","statuses","breadcrumbs","is-editable","attachment-enabled","projects","time-tracking-data","load-attachment-preview","sprints"])):r.createCommentVNode("",!0)]))])}}});const v2e=ee(g2e,[["__scopeId","data-v-de9a1fe3"]]);exports.AoAuditConfigTable=W0e;exports.AoAvatar=Xt;exports.AoCardFeed=vd;exports.AoCheckboxField=e0;exports.AoColorPicker=ti;exports.AoFeed=Xc;exports.AoField=Qg;exports.AoHistory=Wg;exports.AoInputField=E0e;exports.AoMultiselect=dt;exports.AoProjectPhases=gd;exports.AoSprintPlanning=v2e;exports.AoTabBar=vs;exports.AoTemplateDetails=Zg;exports.AoTemplates=u0;exports.AoTemplatesList=Xg;exports.EstimationUnit=Tp;exports.TemplateItemTypeEnum=Ap;exports.activityFeedRoutes=Po;exports.activityFeedStatus=P3;exports.durationTypes=I3;exports.feedFilterTypes=ln;exports.getProjectOverviewRoutes=C0e;exports.getTemplateRoutes=_0e;exports.listUpdateTypes=F3;exports.milestoneStatus=Pi;exports.projectOverviewRoutes=Pe;exports.ruleComparators=Ep;exports.ruleDurationUnits=xp;exports.ruleTriggerTypes=Sp;exports.templateItemType=qe;exports.templateRouteNames=Ho;